;/*FB_PKG_DELIM*/

__d("WASmaxInBizLinkingGetLinkedAccountsResponseError",["WAResultOrError","WASmaxInBizLinkingHackBaseIQErrorResponseMixin","WASmaxInBizLinkingIQErrorInternalServerErrorMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"error");if(!c.success)return c;c=d("WASmaxInBizLinkingIQErrorInternalServerErrorMixin").parseIQErrorInternalServerErrorMixin(c.value);if(!c.success)return c;a=d("WASmaxInBizLinkingHackBaseIQErrorResponseMixin").parseHackBaseIQErrorResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({errorIQErrorInternalServerErrorMixin:c.value},a.value))}g.parseGetLinkedAccountsResponseError=a}),98);
__d("WASmaxInBizLinkingIQErrorForbiddenMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"error");if(!b.success)return b;b=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrString,a,"text","forbidden");if(!b.success)return b;a=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrInt,a,"code",403);return!a.success?a:d("WAResultOrError").makeResult({text:b.value,code:a.value})}g.parseIQErrorForbiddenMixin=a}),98);
__d("WASmaxInBizLinkingGetLinkedAccountsResponseForbidden",["WAResultOrError","WASmaxInBizLinkingHackBaseIQErrorResponseMixin","WASmaxInBizLinkingIQErrorForbiddenMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"error");if(!c.success)return c;c=d("WASmaxInBizLinkingIQErrorForbiddenMixin").parseIQErrorForbiddenMixin(c.value);if(!c.success)return c;a=d("WASmaxInBizLinkingHackBaseIQErrorResponseMixin").parseHackBaseIQErrorResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({errorIQErrorForbiddenMixin:c.value},a.value))}g.parseGetLinkedAccountsResponseForbidden=a}),98);
__d("WASmaxInBizLinkingEnums",[],(function(a,b,c,d,e,f){a={disable:"disable","import":"import"};b={"false":"false","true":"true"};c={off:"off",on:"on"};f.ENUM_DISABLE_IMPORT=a;f.ENUM_FALSE_TRUE=b;f.ENUM_OFF_ON=c}),66);
__d("WASmaxInBizLinkingHasDisplayNameMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"display_name");if(!a.success)return a;a=d("WASmaxParseUtils").contentString(a.value);return!a.success?a:d("WAResultOrError").makeResult({displayNameElementValue:a.value})}g.parseHasDisplayNameMixin=a}),98);
__d("WASmaxInBizLinkingFBBizResponseMixin",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxInBizLinkingHasDisplayNameMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"catalog");if(!b.success)return b;b=d("WASmaxParseUtils").attrStringEnum(a,"state",d("WASmaxInBizLinkingEnums").ENUM_DISABLE_IMPORT);if(!b.success)return b;a=d("WASmaxParseUtils").attrString(a,"id");return!a.success?a:d("WAResultOrError").makeResult({state:b.value,id:a.value})}function a(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_biz");if(!b.success)return b;b=d("WASmaxParseUtils").optionalChildWithTag(a,"catalog",h);if(!b.success)return b;var c=d("WASmaxParseUtils").attrString(a,"id");if(!c.success)return c;a=d("WASmaxInBizLinkingHasDisplayNameMixin").parseHasDisplayNameMixin(a);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({id:c.value},a.value,{catalog:b.value}))}g.parseFBBizResponseCatalog=h;g.parseFBBizResponseMixin=a}),98);
__d("WASmaxInBizLinkingAdStatusMixin",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"ad_status");if(!a.success)return a;var b=d("WASmaxParseUtils").attrStringEnum(a.value,"has_created_ad",d("WASmaxInBizLinkingEnums").ENUM_FALSE_TRUE);if(!b.success)return b;a=d("WASmaxParseUtils").attrStringEnum(a.value,"has_active_ctwa_ad",d("WASmaxInBizLinkingEnums").ENUM_FALSE_TRUE);return!a.success?a:d("WAResultOrError").makeResult({adStatusHasCreatedAd:b.value,adStatusHasActiveCtwaAd:a.value})}g.parseAdStatusMixin=a}),98);
__d("WASmaxInBizLinkingFBPageResponseBaseMixin",["WAResultOrError","WASmaxInBizLinkingAdStatusMixin","WASmaxInBizLinkingEnums","WASmaxInBizLinkingHasDisplayNameMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"profile_sync");if(!b.success)return b;b=d("WASmaxParseUtils").attrStringEnum(a,"state",d("WASmaxInBizLinkingEnums").ENUM_DISABLE_IMPORT);return!b.success?b:d("WAResultOrError").makeResult({state:b.value})}function a(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_page");if(!b.success)return b;b=d("WASmaxParseUtils").optionalChildWithTag(a,"profile_sync",h);if(!b.success)return b;var c=d("WASmaxParseUtils").attrString(a,"id");if(!c.success)return c;var e=d("WASmaxInBizLinkingHasDisplayNameMixin").parseHasDisplayNameMixin(a);if(!e.success)return e;a=d("WASmaxInBizLinkingAdStatusMixin").parseAdStatusMixin(a);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({id:c.value},e.value,a.value,{profileSync:b.value}))}g.parseFBPageResponseBaseProfileSync=h;g.parseFBPageResponseBaseMixin=a}),98);
__d("WASmaxInBizLinkingHasProfilePictureMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"bytes");if(!b.success)return b;b=d("WASmaxParseUtils").contentBytesRange(a,0,void 0);return!b.success?b:d("WAResultOrError").makeResult({elementValue:b.value})}function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"profile_picture");if(!a.success)return a;var b=d("WASmaxParseUtils").flattenedChildWithTag(a.value,"url");if(!b.success)return b;a=d("WASmaxParseUtils").optionalChildWithTag(a.value,"bytes",h);if(!a.success)return a;b=d("WASmaxParseUtils").contentString(b.value);return!b.success?b:d("WAResultOrError").makeResult({profilePictureUrlElementValue:b.value,profilePictureBytes:a.value})}g.parseHasProfilePictureProfilePictureBytes=h;g.parseHasProfilePictureMixin=a}),98);
__d("WASmaxInBizLinkingHasShowOnProfileMixin",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxParseUtils").flattenedChildWithTag(a,"show_on_profile");if(!a.success)return a;a=d("WASmaxParseUtils").contentStringEnum(a.value,d("WASmaxInBizLinkingEnums").ENUM_FALSE_TRUE);return!a.success?a:d("WAResultOrError").makeResult({showOnProfileElementValue:a.value})}g.parseHasShowOnProfileMixin=a}),98);
__d("WASmaxInBizLinkingIGProfessionalResponseBaseMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"ig_professional");if(!b.success)return b;b=d("WASmaxParseUtils").flattenedChildWithTag(a,"ig_handle");if(!b.success)return b;a=d("WASmaxParseUtils").contentString(b.value);return!a.success?a:d("WAResultOrError").makeResult({igHandleElementValue:a.value})}g.parseIGProfessionalResponseBaseMixin=a}),98);
__d("WASmaxInBizLinkingWhatsAppAdIdentityResponseMixin",["WAResultOrError","WASmaxInBizLinkingAdStatusMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"whatsapp_ad_identity");if(!b.success)return b;b=d("WASmaxParseUtils").attrString(a,"id");if(!b.success)return b;a=d("WASmaxInBizLinkingAdStatusMixin").parseAdStatusMixin(a);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({id:b.value},a.value))}g.parseWhatsAppAdIdentityResponseMixin=a}),98);
__d("WASmaxInBizLinkingGetLinkedAccountsResponseSuccess",["WAResultOrError","WASmaxInBizLinkingEnums","WASmaxInBizLinkingFBBizResponseMixin","WASmaxInBizLinkingFBPageResponseBaseMixin","WASmaxInBizLinkingHackBaseIQResultResponseMixin","WASmaxInBizLinkingHasDisplayNameMixin","WASmaxInBizLinkingHasProfilePictureMixin","WASmaxInBizLinkingHasShowOnProfileMixin","WASmaxInBizLinkingIGProfessionalResponseBaseMixin","WASmaxInBizLinkingWhatsAppAdIdentityResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_page");if(!b.success)return b;b=d("WASmaxParseUtils").flattenedChildWithTag(a,"whatsapp_as_page_button");if(!b.success)return b;b=d("WASmaxParseUtils").attrStringEnum(b.value,"state",d("WASmaxInBizLinkingEnums").ENUM_OFF_ON);if(!b.success)return b;var c=d("WASmaxInBizLinkingFBPageResponseBaseMixin").parseFBPageResponseBaseMixin(a);if(!c.success)return c;var e=d("WASmaxInBizLinkingHasProfilePictureMixin").parseHasProfilePictureMixin(a);a=d("WASmaxInBizLinkingHasShowOnProfileMixin").parseHasShowOnProfileMixin(a);return d("WAResultOrError").makeResult(babelHelpers["extends"]({whatsappAsPageButtonState:b.value},c.value,{hasProfilePictureMixin:e.success?e.value:null,hasShowOnProfileMixin:a.success?a.value:null}))}function i(a){var b=d("WASmaxParseUtils").assertTag(a,"fb_biz");if(!b.success)return b;b=d("WASmaxInBizLinkingFBBizResponseMixin").parseFBBizResponseMixin(a);return!b.success?b:b}function j(a){var b=d("WASmaxParseUtils").assertTag(a,"ig_professional");if(!b.success)return b;b=d("WASmaxInBizLinkingIGProfessionalResponseBaseMixin").parseIGProfessionalResponseBaseMixin(a);if(!b.success)return b;var c=d("WASmaxInBizLinkingHasProfilePictureMixin").parseHasProfilePictureMixin(a),e=d("WASmaxInBizLinkingHasDisplayNameMixin").parseHasDisplayNameMixin(a);a=d("WASmaxInBizLinkingHasShowOnProfileMixin").parseHasShowOnProfileMixin(a);return d("WAResultOrError").makeResult(babelHelpers["extends"]({},b.value,{hasProfilePictureMixin:c.success?c.value:null,hasDisplayNameMixin:e.success?e.value:null,hasShowOnProfileMixin:a.success?a.value:null}))}function k(a){var b=d("WASmaxParseUtils").assertTag(a,"whatsapp_ad_identity");if(!b.success)return b;b=d("WASmaxInBizLinkingWhatsAppAdIdentityResponseMixin").parseWhatsAppAdIdentityResponseMixin(a);return!b.success?b:b}function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"linked_accounts");if(!c.success)return c;var e=d("WASmaxParseUtils").optionalChildWithTag(c.value,"fb_page",h);if(!e.success)return e;var f=d("WASmaxParseUtils").optionalChildWithTag(c.value,"fb_biz",i);if(!f.success)return f;var g=d("WASmaxParseUtils").optionalChildWithTag(c.value,"ig_professional",j);if(!g.success)return g;c=d("WASmaxParseUtils").optionalChildWithTag(c.value,"whatsapp_ad_identity",k);if(!c.success)return c;a=d("WASmaxInBizLinkingHackBaseIQResultResponseMixin").parseHackBaseIQResultResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({},a.value,{linkedAccountsFbPage:e.value,linkedAccountsFbBiz:f.value,linkedAccountsIgProfessional:g.value,linkedAccountsWhatsappAdIdentity:c.value}))}g.parseGetLinkedAccountsResponseSuccessLinkedAccountsFbPage=h;g.parseGetLinkedAccountsResponseSuccessLinkedAccountsFbBiz=i;g.parseGetLinkedAccountsResponseSuccessLinkedAccountsIgProfessional=j;g.parseGetLinkedAccountsResponseSuccessLinkedAccountsWhatsappAdIdentity=k;g.parseGetLinkedAccountsResponseSuccess=a}),98);
__d("WASmaxOutBizLinkingGetLinkedAccountsRequest",["WASmaxJsx","WASmaxOutBizLinkingHackBaseIQGetRequestMixin","WAWap"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxOutBizLinkingHackBaseIQGetRequestMixin").mergeHackBaseIQGetRequestMixin(d("WASmaxJsx").smax("iq",{xmlns:"fb:thrift_iq",smax_id:d("WAWap").INT(42)},d("WASmaxJsx").smax("linked_accounts",null)),a);return a}g.makeGetLinkedAccountsRequest=a}),98);
__d("WASmaxBizLinkingGetLinkedAccountsRPC",["WAComms","WASmaxInBizLinkingGetLinkedAccountsResponseError","WASmaxInBizLinkingGetLinkedAccountsResponseForbidden","WASmaxInBizLinkingGetLinkedAccountsResponseSuccess","WASmaxOutBizLinkingGetLinkedAccountsRequest","WASmaxParsingFailure","WASmaxRpcUtils","regeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,c){var e,f,g,h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:e=d("WASmaxOutBizLinkingGetLinkedAccountsRequest").makeGetLinkedAccountsRequest(a);j.next=3;return b("regeneratorRuntime").awrap(d("WAComms").sendSmaxStanza(e,c));case 3:f=j.sent;g=d("WASmaxInBizLinkingGetLinkedAccountsResponseSuccess").parseGetLinkedAccountsResponseSuccess(f,e);if(!g.success){j.next=7;break}return j.abrupt("return",{name:"GetLinkedAccountsResponseSuccess",value:g.value});case 7:h=d("WASmaxInBizLinkingGetLinkedAccountsResponseForbidden").parseGetLinkedAccountsResponseForbidden(f,e);if(!h.success){j.next=10;break}return j.abrupt("return",{name:"GetLinkedAccountsResponseForbidden",value:h.value});case 10:i=d("WASmaxInBizLinkingGetLinkedAccountsResponseError").parseGetLinkedAccountsResponseError(f,e);if(!i.success){j.next=13;break}return j.abrupt("return",{name:"GetLinkedAccountsResponseError",value:i.value});case 13:throw new(d("WASmaxParsingFailure").SmaxParsingFailure)(d("WASmaxRpcUtils").errorMessageRpcParsing("GetLinkedAccounts",{Success:g,Forbidden:h,Error:i}));case 14:case"end":return j.stop()}},null,this)}g.sendGetLinkedAccountsRPC=a}),98);
__d("WASmaxInNewslettersSubscribeToLiveUpdatesClientErrors",["WAResultOrError","WASmaxInNewslettersBadRequestIQErrorResponseMixin","WASmaxInNewslettersItemNotFoundIQErrorResponseMixin","WASmaxInNewslettersRateLimitedIQErrorResponseMixin","WASmaxInNewslettersSuspendedIQErrorResponseMixin","WASmaxInNewslettersUnavailableForLegalReasonsResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxInNewslettersBadRequestIQErrorResponseMixin").parseBadRequestIQErrorResponseMixin(a,b);if(c.success)return d("WAResultOrError").makeResult({name:"BadRequestIQErrorResponse",value:c.value});var e=d("WASmaxInNewslettersUnavailableForLegalReasonsResponseMixin").parseUnavailableForLegalReasonsResponseMixin(a,b);if(e.success)return d("WAResultOrError").makeResult({name:"UnavailableForLegalReasonsResponse",value:e.value});var f=d("WASmaxInNewslettersItemNotFoundIQErrorResponseMixin").parseItemNotFoundIQErrorResponseMixin(a,b);if(f.success)return d("WAResultOrError").makeResult({name:"ItemNotFoundIQErrorResponse",value:f.value});var g=d("WASmaxInNewslettersSuspendedIQErrorResponseMixin").parseSuspendedIQErrorResponseMixin(a,b);if(g.success)return d("WAResultOrError").makeResult({name:"SuspendedIQErrorResponse",value:g.value});b=d("WASmaxInNewslettersRateLimitedIQErrorResponseMixin").parseRateLimitedIQErrorResponseMixin(a,b);return b.success?d("WAResultOrError").makeResult({name:"RateLimitedIQErrorResponse",value:b.value}):d("WASmaxParseUtils").errorMixinDisjunction(a,["BadRequestIQErrorResponse","UnavailableForLegalReasonsResponse","ItemNotFoundIQErrorResponse","SuspendedIQErrorResponse","RateLimitedIQErrorResponse"],[c,e,f,g,b])}g.parseSubscribeToLiveUpdatesClientErrors=a}),98);
__d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError",["WAResultOrError","WASmaxInNewslettersSubscribeToLiveUpdatesClientErrors","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxInNewslettersSubscribeToLiveUpdatesClientErrors").parseSubscribeToLiveUpdatesClientErrors(a,b);return!c.success?c:d("WAResultOrError").makeResult({subscribeToLiveUpdatesClientErrors:c.value})}g.parseSubscribeToLiveUpdatesResponseClientError=a}),98);
__d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError",["WASmaxInNewslettersInternalServerErrorIQErrorResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxInNewslettersInternalServerErrorIQErrorResponseMixin").parseInternalServerErrorIQErrorResponseMixin(a,b);return!c.success?c:c}g.parseSubscribeToLiveUpdatesResponseServerError=a}),98);
__d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess",["WAResultOrError","WASmaxInNewslettersIQResultResponseMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"live_updates");if(!c.success)return c;c=d("WASmaxParseUtils").attrIntRange(c.value,"duration",30,600);if(!c.success)return c;a=d("WASmaxInNewslettersIQResultResponseMixin").parseIQResultResponseMixin(a,b);return!a.success?a:d("WAResultOrError").makeResult(babelHelpers["extends"]({liveUpdatesDuration:c.value},a.value))}g.parseSubscribeToLiveUpdatesResponseSuccess=a}),98);
__d("WASmaxOutNewslettersNewsletterIQSetRequestMixin",["WASmaxJsx","WASmaxMixins","WASmaxOutNewslettersBaseIQSetRequestMixin","WAWap"],(function(a,b,c,d,e,f,g){function h(a){a=a.iqTo;a=d("WASmaxOutNewslettersBaseIQSetRequestMixin").mergeBaseIQSetRequestMixin(d("WASmaxJsx").smax("iq",{to:d("WAWap").JID(a),xmlns:"newsletter"}));return a}function a(a,b){b=h(b);return d("WASmaxMixins").mergeStanzas(a,b)}g.mergeNewsletterIQSetRequestMixin=a}),98);
__d("WASmaxOutNewslettersSubscribeToLiveUpdatesRequest",["WASmaxJsx","WASmaxOutNewslettersNewsletterIQSetRequestMixin"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxOutNewslettersNewsletterIQSetRequestMixin").mergeNewsletterIQSetRequestMixin(d("WASmaxJsx").smax("iq",null,d("WASmaxJsx").smax("live_updates",null)),a);return a}g.makeSubscribeToLiveUpdatesRequest=a}),98);
__d("WASmaxNewslettersSubscribeToLiveUpdatesRPC",["WAComms","WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError","WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError","WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess","WASmaxOutNewslettersSubscribeToLiveUpdatesRequest","WASmaxParsingFailure","WASmaxRpcUtils","regeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,c){var e,f,g,h,i;return b("regeneratorRuntime").async(function(j){while(1)switch(j.prev=j.next){case 0:e=d("WASmaxOutNewslettersSubscribeToLiveUpdatesRequest").makeSubscribeToLiveUpdatesRequest(a);j.next=3;return b("regeneratorRuntime").awrap(d("WAComms").sendSmaxStanza(e,c));case 3:f=j.sent;g=d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseSuccess").parseSubscribeToLiveUpdatesResponseSuccess(f,e);if(!g.success){j.next=7;break}return j.abrupt("return",{name:"SubscribeToLiveUpdatesResponseSuccess",value:g.value});case 7:h=d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseClientError").parseSubscribeToLiveUpdatesResponseClientError(f,e);if(!h.success){j.next=10;break}return j.abrupt("return",{name:"SubscribeToLiveUpdatesResponseClientError",value:h.value});case 10:i=d("WASmaxInNewslettersSubscribeToLiveUpdatesResponseServerError").parseSubscribeToLiveUpdatesResponseServerError(f,e);if(!i.success){j.next=13;break}return j.abrupt("return",{name:"SubscribeToLiveUpdatesResponseServerError",value:i.value});case 13:throw new(d("WASmaxParsingFailure").SmaxParsingFailure)(d("WASmaxRpcUtils").errorMessageRpcParsing("SubscribeToLiveUpdates",{Success:g,ClientError:h,ServerError:i}));case 14:case"end":return j.stop()}},null,this)}g.sendSubscribeToLiveUpdatesRPC=a}),98);
__d("WAWebBizChatAssignmentAiRepliesModal.react",["fbt","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=h._("__JHASH__ci3Tno8Dp2Z__JHASH__");return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("OK"),children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebBizMerchantDetailsEntityTypePopup.react",["fbt","WAWebBizComplianceUtil","WAWebBusinessProfileTypes","WAWebComplianceConstants","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebRichTextField.react","WAWebWDSButton","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useCallback,n=b.useEffect,o=b.useState,p={inputWrapper:{display:"x78zum5",alignSelf:"xamitd3",paddingEnd:"xc73u3c",$$css:!0},footer:{paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",backgroundColor:"x13x2ugz",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0},indentedOption:{marginStart:"x8vdgqj",$$css:!0},cursorPointer:{cursor:"x1ypdohk",$$css:!0}};function a(a){var b=a.legalEntityDetails,e=a.onSave;a=o(b==null?void 0:b.entityType);var f=a[0],g=a[1];a=o(b==null?void 0:b.entityTypeCustom);var i=a[0],j=a[1];a=o(b==null?void 0:b.isRegistered);var k=a[0],r=a[1];n(function(){f!==(b==null?void 0:b.entityType)&&(j(""),r(!1))},[f,b==null?void 0:b.entityType]);a=m(function(){d("WAWebModalManager").ModalManager.close(),e(f,i,k)},[f,i,k,e]);var s=m(function(a){g(a.target.value)},[]),t=m(function(a){return r(a.target.checked)},[]);t=l.jsx(q,{value:k,label:h._("__JHASH___JjsVTYFMs___JHASH__"),inputType:"checkbox",xstyle:p.indentedOption,onChange:t,"data-testid":void 0});return l.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Box,children:l.jsxs(c("WAWebDrawer.react"),{theme:"settings",children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._("__JHASH___acXWFAsgOq__JHASH__"),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}),l.jsx(c("WAWebDrawerBody.react"),{children:l.jsx("form",{className:"xqy66fx x6x52a7 xr1496l xxpdul3",children:l.jsxs("ol",{children:[l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.limitedLiabilityPartnership,value:f,label:h._("__JHASH__Hf08AO7WEpL__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.soleProprietorship,value:f,label:h._("__JHASH__Gbc84UBJYyb__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.partnership,value:f,label:h._("__JHASH__NMb47BimJVH__JHASH__"),onChange:s,"data-testid":void 0}),f===d("WAWebBusinessProfileTypes").businessTypeOptions.partnership&&t,l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.publicCompany,value:f,label:h._("__JHASH__9gptthYJ3PB__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.privateCompany,value:f,label:h._("__JHASH__0aunDM0dvxM__JHASH__"),onChange:s,"data-testid":void 0}),l.jsx(q,{id:d("WAWebBusinessProfileTypes").businessTypeOptions.other,value:f,label:h._("__JHASH__RzUHjpiLHpP__JHASH__"),onChange:s,"data-testid":void 0}),f===d("WAWebBusinessProfileTypes").businessTypeOptions.other&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"x8vdgqj","data-testid":void 0,children:l.jsx(d("WAWebRichTextField.react").RichTextField,{value:i,editable:!0,maxLength:d("WAWebComplianceConstants").COMPLIANCE_INFO_LENGTH.ENTITY_TYPE_CUSTOM,inputPlaceholder:h._("__JHASH__zqCZvtBP0D5__JHASH__"),showRemaining:!0,onChange:function(a){a=a.text;return j(a)},theme:"text-input",lowProfile:!0})}),t]})]})})}),l.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",xstyle:p.footer,children:l.jsx(c("WAWebFlexItem.react"),{children:l.jsx(d("WAWebWDSButton").WDSButtonPrimary,{onClick:a,disabled:f===d("WAWebBusinessProfileTypes").businessTypeOptions.other&&!d("WAWebBizComplianceUtil").existsFieldIgnoreHardEnforcement(i),children:h._("__JHASH__K-FdwULPt2J__JHASH__")})})})]})})}a.displayName=a.name+" [from "+f.id+"]";function q(a){var b=a["data-testid"];b=b===void 0?"merchant-details-entity-type-option-popup":b;b=a.id;var e=a.inputType;e=e===void 0?"radio":e;var f=a.label,g=a.onChange,h=a.value;a=a.xstyle;b=b||f;return l.jsx("li",{className:(j||(j=c("stylex")))(p.cursorPointer,a),children:l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[l.jsx(c("WAWebFlexItem.react"),{xstyle:p.inputWrapper,children:l.jsx("input",{id:b,value:b,type:e,name:"entityType",checked:e==="radio"?h===b:h,className:"x1ypdohk",onChange:g})}),l.jsx(c("WAWebFlexItem.react"),{grow:1,children:l.jsx("label",{htmlFor:b,className:"x1lliihq x889kno x4uap5 x1a8lsjc xkhd6sd x1lkfr7t x1ypdohk","data-testid":void 0,children:f})})]})})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebBusinessMuteWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessMute:[1376,{muteT:[2,d("WAWebWamCodegenUtils").TYPES.TIMER],muteeId:[1,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{BusinessMute:[]});g.BusinessMuteWamEvent=a}),98);
__d("WAWebBusinessUnmuteWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessUnmute:[1378,{muteeId:[1,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{BusinessUnmute:[]});g.BusinessUnmuteWamEvent=a}),98);
__d("WAWebClearChatPopup.react",["fbt","WAWebChatFlowTypes","WAWebCheckBox.react","WAWebConfirmPopup.react","WAWebModalManager","WAWebSendClearChatAction","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebWDSText.react","WAWebWamChatPSALogger","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useMemo,n=b.useState,o={section:{display:"x78zum5",fontSize:"x1f6kntn",lineHeight:"x16h55sf",$$css:!0},control:{display:"x1rg5ohu",flex:"x1okw0bk",verticalAlign:"x1uuroth",transition:"xqz5vs7",$$css:!0}};function a(a){var b=a.chat;a=n(function(){return!1});var e=a[0],f=a[1];a=function(){f(!e)};var g=function(){d("WAWebModalManager").ModalManager.close()},i=function(){b.pendingAction++;if(b.isPSA){var a=b.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(a,5,14)}d("WAWebSendClearChatAction").sendClear(b,e)["finally"](function(){b.pendingAction--});d("WAWebModalManager").ModalManager.close()},k=m(function(){if(b.kind!=null)switch(b.kind){case d("WAWebChatFlowTypes").ChatKindType.Group:return h._("__JHASH__dIxxYcw1a4Y__JHASH__");case d("WAWebChatFlowTypes").ChatKindType.Chat:return h._("__JHASH__Yu2ZIWj2zkD__JHASH__");case d("WAWebChatFlowTypes").ChatKindType.Broadcast:return h._("__JHASH___BK5mMiBXY7__JHASH__");case d("WAWebChatFlowTypes").ChatKindType.Newsletter:case d("WAWebChatFlowTypes").ChatKindType.Community:return""}return""},[b.kind]);a=l.jsxs("div",{className:(j||(j=c("stylex")))(o.section,d("WAWebUISpacing").uiMargin.top18),children:[l.jsx("div",{"data-testid":void 0,className:j(o.control,d("WAWebUISpacing").uiMargin.end10),children:l.jsx(d("WAWebCheckBox.react").CheckBox,{onChange:a,checked:e,id:"menu-icon-clear-chat"})}),l.jsx("label",{htmlFor:"menu-icon-clear-chat",className:"x98rzlu x1ypdohk xqz5vs7",children:h._("__JHASH__zRe4njGKpc2__JHASH__")})]});a=l.jsxs("div",{children:[l.jsx(d("WAWebWDSText.react").WDSTextMuted,{as:"p",children:h._("__JHASH__K_dsWSPgA3l__JHASH__")}),a]});return l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:k,onOK:i,okText:h._("__JHASH__SBWNZPNFYA2__JHASH__"),okButtonType:d("WAWebUIRefreshGatingUtils").modalRefreshEnabled()?"solidWarning":void 0,onCancel:g,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebCountrySelectorPopup.react",["fbt","WAWebBusinessProfileIconSection.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebRichTextField.react","WAWebSearchIcon","WAWebWDSButton","react"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useCallback,m=b.useState,n={inputWrapper:{display:"x78zum5",alignSelf:"xamitd3",paddingEnd:"xc73u3c",$$css:!0},formWrapper:{overflowY:"x1odjw0f",$$css:!0},search:{backgroundColor:"x1y4abq1",paddingTop:"x889kno",paddingEnd:"x6x52a7",paddingBottom:"x1a8lsjc",paddingStart:"xxpdul3",$$css:!0},footer:{paddingTop:"x889kno",paddingEnd:"x1iji9kk",paddingBottom:"x1a8lsjc",paddingStart:"x1sln4lm",backgroundColor:"x13x2ugz",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0}};function a(a){var b=a.countries,e=a.countryCode,f=a.onSave;a=a.title;var g=m(""),i=g[0],j=g[1];g=m(e||"");var p=g[0],q=g[1];e=l(function(){d("WAWebModalManager").ModalManager.close(),f(p)},[p,f]);var r=l(function(a){q(a.target.value)},[]);return k.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Box,children:k.jsxs(c("WAWebDrawer.react"),{theme:"settings",children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:a,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"stretch",children:[k.jsx(c("WAWebFlexItem.react"),{shrink:0,xstyle:n.search,children:k.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,{Icon:d("WAWebSearchIcon").SearchIcon,theme:d("WAWebBusinessProfileIconSection.react").IconSectionTheme.NoMarginSmallGutter,content:k.jsx(d("WAWebRichTextField.react").RichTextField,{value:i,editable:!0,inputPlaceholder:h._("__JHASH__mTVgM6PYlov__JHASH__"),onChange:function(a){return j(a.text)},focusOnMount:!0,theme:"text-input",lowProfile:!0})})}),k.jsx(c("WAWebFlexItem.react"),{xstyle:n.formWrapper,grow:1,children:k.jsx("form",{className:"x123j3cw x4uap5 xs9asl8 xkhd6sd",children:k.jsx("ol",{children:b.filter(function(a){var b=a[0];a=a[1];return b.toLowerCase().includes(i.toLowerCase())||a.toString().toLowerCase().includes(i.toLowerCase())}).map(function(a){var b=a[0];a=a[1];return k.jsx(o,{selectedCountryCode:p,countryCode:b,label:a,onChange:r},b)})})})})]})}),k.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",xstyle:n.footer,children:k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebWDSButton").WDSButtonPrimary,{onClick:e,children:h._("__JHASH__K-FdwULPt2J__JHASH__")})})})]})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.countryCode,e=a["data-testid"];e=e===void 0?"country-selector-popup-option":e;e=a.label;var f=a.onChange;a=a.selectedCountryCode;return k.jsx("li",{className:"x889kno x6x52a7 x1a8lsjc xxpdul3 x1ypdohk",children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[k.jsx(c("WAWebFlexItem.react"),{xstyle:n.inputWrapper,children:k.jsx("input",{id:b,value:b,type:"radio",name:"countryCode",checked:b===a,className:"x1ypdohk",onChange:f})}),k.jsx(c("WAWebFlexItem.react"),{grow:1,children:k.jsx("label",{htmlFor:b,className:"x1lliihq x1lkfr7t x1ypdohk","data-testid":void 0,children:e})})]})})}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebGroupsV4InviteFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingConfirmPopup.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebGroupsV4InviteFlow.react").__setRef("WAWebGroupsV4InviteFlowLoadable").load());return a}),"GroupsV4InviteFlow");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingConfirmPopup.react"),{okText:h._("__JHASH__9lHmApGpjly__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.GroupsV4InviteFlowLoadable=d}),226);
__d("WAWebWamEnumDeleteActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({DELETE_FOR_ME:0,DELETE_FOR_EVERYONE:1});f.DELETE_ACTION_TYPE=a}),66);
__d("WAWebMessageDeleteActionsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDeleteActionType","WAWebWamEnumMediaType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({MessageDeleteActions:[3626,{deleteActionType:[1,d("WAWebWamEnumDeleteActionType").DELETE_ACTION_TYPE],isAGroup:[2,a.TYPES.BOOLEAN],mediaType:[6,d("WAWebWamEnumMediaType").MEDIA_TYPE],messagesDeleted:[3,a.TYPES.INTEGER],threadId:[4,a.TYPES.STRING]},[1,1,1],"regular"]},{MessageDeleteActions:[]});g.MessageDeleteActionsWamEvent=b}),98);
__d("WAWebNewsletterRevokeMsgAction",["Promise","WAAckLevel","WALogger","WATimeUtils","WAWebChatSendMessages","WAWebDBStoreRevokeMsgs","WAWebMsgActionCapability","WAWebMsgKey","WAWebMsgModel","WAWebMsgType","WAWebNewsletterSendMessageJob","WAWebNewsletterValidationUtils","WAWebNewsletterViewModeUtils","WAWebSendMsgResultAction","WAWebUpdateNewsletterMsgUIAction","WAWebUserPrefsMeUser","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Failed to send message"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Failed to send message, "," from server"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] Sent revoke message "," -> ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[sendNewsletterRevokeMsg] missing serverId"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["sendNewsletterRevokeMsg: msg cannot be revoked"]);m=function(){return a};return a}function a(a,c,d){return(h||(h=b("Promise"))).all(c.map(function(b){return n(a,b,d)}))}function n(a,b,c){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){if(!d("WAWebMsgActionCapability").canRevokeNewsletterMsg(b)){d("WALogger").LOG(m()).devConsole(b);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED}}var e=b.serverId;if(e==null){d("WALogger").ERROR(l()).devConsole(b).tags("newsletter").sendLogs("newsletter-revoke-missing-id");return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED}}var f=d("WAWebUserPrefsMeUser").getMeUser(),g=p(b,c,f);try{var h=d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid());h=(yield d("WAWebNewsletterSendMessageJob").sendNewsletterMessageJob({newsletterJid:h,messageId:b.id.id,isContentMedia:b.mediaObject!=null,type:"revoke"}));if(h.success){d("WALogger").DEV(k(),e,a.id.toJid());return yield q({chat:a,msgToBeRevoked:b,revokeMsg:g,me:f})}else if(h.ack.error==="404")return s({chat:a,msgToBeRevoked:b,clearMedia:c});d("WALogger").ERROR(j(),h.ack.error).tags("newsletter").devConsole(h.ack.error).sendLogs("newsletter-send-revoke-message-fail-server");g.updateAck(d("WAAckLevel").ACK.FAILED,!0);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_NETWORK}}catch(a){d("WALogger").ERROR(i()).tags("newsletter").devConsole(a).sendLogs("newsletter-send-revoke-message-fail-client");g.updateAck(d("WAAckLevel").ACK.FAILED,!0);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_UNKNOWN}}});return o.apply(this,arguments)}function p(a,b,e){var f=new(c("WAWebMsgKey"))({id:c("WAWebMsgKey").newId_DEPRECATED(),remote:a.id.remote,fromMe:!0}),g="admin_revoke",h=d("WATimeUtils").unixTime();f={id:f,from:e,to:a.id.remote,t:h,type:d("WAWebMsgType").MSG_TYPE.PROTOCOL,subtype:g,protocolMessageKey:a.id,clearMedia:b,local:!0,revokeDuration:h-a.t,revokeTimestamp:h,serverId:a.serverId,viewMode:d("WAWebNewsletterViewModeUtils").getRevokedNewsletterMsgViewMode()};return new(d("WAWebMsgModel").Msg)(f)}function q(a){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.chat,c=a.msgToBeRevoked,e=a.revokeMsg;a=a.me;yield d("WAWebDBStoreRevokeMsgs").processRevokeMsgs([{revokeMsgKey:c.id,newMsgKey:e.id,timestamp:c.t,revokeTimestamp:e.t,subtype:e.subtype,sender:a,disappearingModeInitiator:c.disappearingModeInitiator,ephemeralDuration:c.ephemeralDuration,ephemeralSettingTimestamp:c.ephemeralSettingTimestamp,viewMode:e.viewMode}]);void d("WAWebUpdateNewsletterMsgUIAction").updateNewsletterMessageUI(e,b.id);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.OK}});return r.apply(this,arguments)}function s(a){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.chat,c=a.msgToBeRevoked;a=a.clearMedia;yield d("WAWebChatSendMessages").sendDeleteMsgs(b,{type:"message",list:[c]},a);return{messageSendResult:d("WAWebSendMsgResultAction").SendMsgResult.OK}});return t.apply(this,arguments)}g.sendNewsletterRevokeMsgs=a;g.sendNewsletterRevokeMsg=n}),98);
__d("WAWebProductCatalogProductImageViewFlow.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={thumbsContainer:"_ahrf",scrollContainer:"_ahrh",viewerThumbs:"_ahri",thumbPadding:"_ahrj"};b=a;g["default"]=b}),98);
__d("WAWebPipOgVideoPlayer.react",["WAWebPipConst","WAWebPipSharedVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){return i.jsx(d("WAWebPipSharedVideoPlayer.react").WrappedSharedVideoPlayer,{type:d("WAWebPipConst").PlayerType.OG_FLOATER,ogVideoInfo:a.ogVideoInfo,startTime:a.startTime,onClose:a.onClose,onVideoEnded:a.onVideoEnded,onError:a.onError,onAspectRatio:a.onAspectRatio,onVideoDimensions:a.onVideoDimensions,autoPlay:a.autoPlay,disablePiPControls:a.disablePiPControls,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebProductCatalogProductImageViewerHeader.react",["WAWebBusinessDescriptionIcon","WAWebCellFrame.react","WAWebContactCollection","WAWebDetailImage.react","WAWebEmojiText.react","WAWebFbtCommon","WAWebMenuBar.react","WAWebName.react","WAWebUISpacing","WAWebWDSText.react","WAWebXViewerIcon","react","stylex","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={productNameIcon:{color:"xt16idv",$$css:!0},mediaPanelHeader:{display:"x78zum5",flexGrow:"x1c4vz4f",flexDirection:"x15zctf7",alignItems:"x6s0dn4",height:"xng8ra",backgroundColor:"x114d0zl",transitionProperty:"xeg851g",transitionDuration:"x1d8287x",transitionTimingFunction:"xeerw82",$$css:!0},mediaPanelHeaderZoomed:{visibility:"xlshs6z",opacity:"xg01cxk",$$css:!0},info:{flexGrow:"x1iyjqo2",order:"x14yy4lh",marginEnd:"x194xeti",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},mediaPanelTools:{order:"x9ek82g",$$css:!0}};function a(a){var b=a.isImgZoomedIn,e=a.onClose;a=a.product;a=d("useWAWebModelValues").useModelValues(a,["name","catalogWid"]);var f=j.jsx(d("WAWebXViewerIcon").XViewerIcon,{}),g=d("WAWebContactCollection").ContactCollection.get(a.catalogWid);if(g){var h=j.jsx(d("WAWebName.react").Name,{contact:g,selectable:!0,useVerifiedName:!0});g=j.jsx(d("WAWebDetailImage.react").DetailImage,{id:g.id,size:40});var l=j.jsxs("div",{children:[j.jsx(d("WAWebBusinessDescriptionIcon").BusinessDescriptionIcon,{xstyle:[k.productNameIcon,d("WAWebUISpacing").uiMargin.end2],displayInline:!0,width:17,height:20}),j.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.name,titlify:!0,ellipsify:!0})]});g=j.jsx(c("WAWebCellFrame.react"),{idle:!0,image:g,primary:h,secondary:l,theme:"media"})}else g=j.jsx(d("WAWebWDSText.react").WDSTextLarge,{as:"span",paddingStart:12,children:j.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.name,titlify:!0,ellipsify:!0})});return j.jsxs("div",{className:(i||(i=c("stylex")))(k.mediaPanelHeader,b&&k.mediaPanelHeaderZoomed),children:[j.jsx("div",{className:i(k.info,d("WAWebUISpacing").uiMargin.start5),children:g}),j.jsx("div",{className:i(k.mediaPanelTools,d("WAWebUISpacing").uiMargin.end18),children:j.jsx(d("WAWebMenuBar.react").MenuBar,{theme:"strong",children:j.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:f,title:c("WAWebFbtCommon")("Close"),onClick:e})},"media-panel-header")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebProductCatalogProductImageViewerModal.react",["WANullthrows","WATypeUtils","WAWebChevronButton.react","WAWebEmojiText.react","WAWebMediaData","WAWebMediaImage.react","WAWebMediaTypes","WAWebMediaViewerConstants","WAWebObjectFit.react","WAWebPipOgVideoPlayer.react","WAWebProductCatalogProductImageViewerHeader.react","WAWebTextSizeUtils","WAWebUISpacing","WAWebUimUie.react","WAWebVelocityAnimate","react","stylex","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i,j;b=j||d("react");var k=h||(h=c("react")),l=b.useRef,m=b.useState,n={mediaCaption:{flexShrink:"xs83m0k",width:"x14atkfc",maxWidth:"x14r61f",minHeight:"xisnujt",maxHeight:"x569fbc",overflowY:"x10wlt62",color:"x16cd2qt",wordWrap:"x1vvkbs",whiteSpace:"x126k92a",transitionProperty:"xeg851g",transitionDuration:"x1d8287x",transitionTimingFunction:"xeerw82",$$css:!0},imgZoomedInMediaCaption:{visibility:"xlshs6z",opacity:"xg01cxk",$$css:!0},btnMediaNext:{position:"x1n2onr6",marginStart:"xczobcr",$$css:!0},btnMediaPrev:{position:"x1n2onr6",marginEnd:"xf6nle2",$$css:!0},mediaContent:{boxSizing:"x9f619",display:"x78zum5",flexGrow:"x1iyjqo2",flexShrink:"x2lah0s",flexDirection:"x1q0g3np",alignItems:"x6s0dn4",justifyContent:"x1qughib",height:"x4t50tc",$$css:!0},media:{position:"x1n2onr6",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"xh8yej3",minWidth:"xeuugli",height:"x5yr21d",$$css:!0},mediaWithCaption:{flexDirection:"xdt5ytf",$$css:!0},mediaViewerAnimate:{animationName:"x127lhb5",animationDuration:"xfbpl4g",animationTimingFunction:"x1alahoq",$$css:!0},cursorZoomOut:{cursor:"xzuqxi3",$$css:!0},mediaViewer:{zIndex:"x1oyvh86",display:"x78zum5",flexDirection:"xdt5ytf",paddingBottom:"xn4wywj",backgroundColor:"x1ecsr37",$$css:!0},overlay:{position:"xixxii4",top:"x13vifvy",start:"x17qophe",left:null,right:null,boxSizing:"x9f619",width:"xh8yej3",height:"x5yr21d",$$css:!0},captionHidden:{opacity:"xg01cxk",$$css:!0}},o=800;function a(a){var b=a.getZoomNode,e=a.zoomIn,f=a.onImgZoomIn,g=a.onExitAnimation,h=a.onBack,j=l(null),p=l(!1),q=l(!1),r=l(!1),s=l(null),t=d("useWAWebModelValues").useModelValues(a.mediaData,["mediaStage","renderableUrl","isGif","type"]),u=d("useWAWebModelValues").useModelValues(a.product,["description"]),v=d("useWAWebModelValues").useModelValues(a.productImage,["videoUrl","mediaUrl"]),w=m(!1),x=w[0],y=w[1];w=m(function(){return t.mediaStage===d("WAWebMediaTypes").MediaDataStage.RESOLVED&&e&&b?b():null});var z=w[0];w=m({width:o,height:o});var A=w[0];w=w[1];var B=d("WAWebTextSizeUtils").getWAWebTextSizeStyles(),C=function(a,b){var e=b.getBoundingClientRect(),f=a.getBoundingClientRect(),g=f.top-e.top;f=f.left-e.left;e=a.clientWidth/b.clientWidth;var h=(b.clientHeight-a.clientHeight)/2;a=(b.clientWidth-a.clientWidth)/2;g-=h;f-=a;void c("WAWebVelocityAnimate")(b,{opacity:[1,0],translateX:[0,f],translateY:[0,g],scale:[1,e]},{duration:d("WAWebMediaViewerConstants").ANIMATION_DURATION,easing:[.1,.82,.25,1]});j.current&&void c("WAWebVelocityAnimate")(j.current,{opacity:[1,0]},{duration:d("WAWebMediaViewerConstants").ANIMATION_DURATION})},D=function(a){if(p.current)return;p.current=!0;var b=z;a=a.currentTarget;if(!b||!a||!e)return;if(!(a instanceof HTMLElement))return;C(b,a)},E=function(a){var b=s.current;a&&b&&(r.current=b.getHeightOverflow()>0||b.getWidthOverflow()>0);y(a);f(a)},F=function(a){var b=s.current;b&&x&&b.onClick(a)},G=function(a,b){var e=s.current;if(!e)return;var f=e.getInsideContainer();if(!f||!(f instanceof HTMLElement))return;var g=e.getOutsideContainer();if(!g||!(g instanceof HTMLElement))return;e=e.getTranslatePosition(g,a,b);g=e.translateX;a=e.translateY;void c("WAWebVelocityAnimate")(f,"stop");void c("WAWebVelocityAnimate")(f,{translateX:g,translateY:a,scale:d("WAWebMediaViewerConstants").ZOOM_IN_FACTOR},{duration:0})},H=function(a){G(a.pageX,a.pageY)},I=function(){if(q.current)return;q.current=!0;d("WATypeUtils").isFunction(g)&&g();if(!b)return h();var a=b();if(!a)return h();if(!(s==null?void 0:s.current))return h();var e=c("WANullthrows")(s.current.getInsideContainer()),f=e.getBoundingClientRect(),i=a.getBoundingClientRect(),j=i.top-f.top;i=i.left-f.left;f=a.clientWidth/e.clientWidth;var k=(e.clientHeight-a.clientHeight)/2;a=(e.clientWidth-a.clientWidth)/2;j-=k;i-=a;void c("WAWebVelocityAnimate")(e,{translateX:[i,0],translateY:[j,0],scale:[f,1]},{duration:200,easing:[.1,.82,.25,1]}).then(function(){h()})},J=function(a){Math.abs(a.deltaY)>7&&I()};v.videoUrl!=null?A=k.jsx(c("WAWebObjectFit.react"),{type:"scaleDown",position:"relative",objectPosition:"relative",size:A,children:k.jsx(c("WAWebPipOgVideoPlayer.react"),{autoPlay:!0,ogVideoInfo:{videoUrl:v.videoUrl,previewUrl:""},onVideoDimensions:w,onClose:I,startTime:0})}):A=k.jsx(c("WAWebMediaImage.react"),{mediaData:t,onLoad:D,onImgZoomIn:E,ref:s,preventDownload:!1},t.renderableUrl);var K;if(u.description!=null&&u.description!==""){v=a.zoomIn&&(t.isGif||t.type===c("WAWebMediaData").TYPE.IMAGE);K=k.jsx("span",{className:(i||(i=c("stylex")))(v&&n.captionHidden),ref:j,children:k.jsx(d("WAWebEmojiText.react").EmojiText,{text:u.description,className:i(n.mediaCaption,d("WAWebUISpacing").uiMargin.top12,a.isImgZoomedIn&&n.imgZoomedInMediaCaption,B.mediaCaptionTextSize)})})}w=function(b){a.onPrev==null?void 0:a.onPrev(b)};D=function(b){a.onNext==null?void 0:a.onNext(b)};E=k.jsx("div",{className:(i||(i=c("stylex")))(n.btnMediaNext,d("WAWebUISpacing").uiMargin.end18),children:k.jsx(d("WAWebChevronButton.react").ChevronButton,{type:d("WAWebChevronButton.react").ButtonType.Next,onClick:D,onKeyDown:D,disabled:!a.onNext||x})});v=k.jsx("div",{className:i(n.btnMediaPrev,d("WAWebUISpacing").uiMargin.start18),children:k.jsx(d("WAWebChevronButton.react").ChevronButton,{type:d("WAWebChevronButton.react").ButtonType.Prev,onClick:w,onKeyDown:w,disabled:!a.onPrev||x})});B=x?null:J;D=x?null:I;w=x&&r.current?H:null;J=x?F:null;return k.jsx(d("WAWebUimUie.react").UIE,{displayName:"ProductViewer",escapable:!0,requestDismiss:I,children:k.jsxs("div",{className:i(a.zoomIn&&n.mediaViewerAnimate,x&&n.cursorZoomOut,n.mediaViewer,n.overlay),"data-animate-media-viewer":!0,onClick:J,onMouseMove:w,children:[k.jsx(c("WAWebProductCatalogProductImageViewerHeader.react"),{onClose:I,product:u,isImgZoomedIn:a.isImgZoomedIn}),k.jsxs("div",{className:i(n.mediaContent,d("WAWebUISpacing").uiPadding.top10,d("WAWebUISpacing").uiPadding.bottom15),dir:"ltr",onWheel:B,onClick:D,children:[v,k.jsxs("div",{className:i(!!K&&n.mediaWithCaption,n.media),children:[k.jsx("div",{className:"x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 xeuugli x5yr21d",children:A}),K]}),E]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebProductCatalogProductImageViewFlow.react",["Keys","WAWebModalManager","WAWebProductCatalogLogEvents","WAWebProductCatalogProductImageViewFlow.scss","WAWebProductCatalogProductImageViewerModal.react","WAWebProductCatalogProductThumb.react","WAWebStateUtils","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","react","useWAWebListener","useWAWebPrevious"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useRef,m=b.useState;function a(a){var b=a.product,e=a.productImageCollection,f=a.activeProductImage,g=a.sessionId,h=l(!1),i=l(null),n=l(null),o=l(null),p=m(function(){return e.toArray().indexOf(f)}),q=p[0],r=p[1];p=m(!1);var s=p[0],t=p[1];p=c("useWAWebPrevious")(b);var u=c("useWAWebPrevious")(g),v=c("useWAWebPrevious")(q),w=function(a){a!==q&&(d("WAWebProductCatalogLogEvents").logImageNavigate({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g}),d("WAWebProductCatalogLogEvents").logImageListClick({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g})),r(a)},x=function(a){a&&a.stopPropagation();if(s)return;a=e.length;a=(q+1)%a;w(a)},y=function(a){a&&a.stopPropagation();if(s)return;a=e.length;a=q-1<0?a-1:(q-1)%a;w(a)},z=function(a){a.keyCode===c("Keys").LEFT?y(a):a.keyCode===c("Keys").RIGHT&&x(a)};d("useWAWebListener").useListener(window,"keydown",z);var A=function(a){var b;a===void 0&&(a=!1);var d=n.current;b=(b=o.current)==null?void 0:b.firstChild;var e=i.current;if(!d||!b||!e)return;var f=0;e instanceof HTMLElement&&(f=e.clientWidth/2-d.clientWidth/2);c("WAWebVelocityAnimate")(e,"stop");d=0;a&&(d=300);c("WAWebVelocityAnimate")(e,"scroll",{duration:d,container:b,offset:f,axis:"x",easing:[.1,.82,.25,1]})};k(function(){A(),n.current&&c("WAWebVelocityAnimate")(n.current,{opacity:[1,0],translateY:["0%","100%"]},{duration:300,delay:100,easing:[.1,.82,.25,1]}),d("WAWebProductCatalogLogEvents").logImageCarouselModalView({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g})},[]);z=function(a){t(a)};var B=function(){d("WAWebModalManager").ModalManager.closeMedia()},C=function(){if(!n.current)return;c("WAWebVelocityAnimate")(n.current,{opacity:[0,1],translateY:["100%","0%"]},{duration:300,easing:[.1,.82,.25,1]})};k(function(){v!==q&&(A(!0),d("WAWebProductCatalogLogEvents").logFullImageView({product:d("WAWebStateUtils").unproxy(b),catalogSessionId:g}))},[q,v,p,u,b,g]);p=e.length;u=q>0?y:null;p=q+1<p?x:null;return j.jsxs("div",{className:s?"img-zoomed-in":null,children:[j.jsx("div",{className:c("WAWebProductCatalogProductImageViewFlow.scss").thumbsContainer,ref:n,children:j.jsx("div",{ref:o,className:c("WAWebProductCatalogProductImageViewFlow.scss").scrollContainer,dir:"ltr",children:j.jsxs(c("WAWebVelocityTransitionGroup"),{className_DONOTUSE:c("WAWebProductCatalogProductImageViewFlow.scss").viewerThumbs,transitionName:"thumb-scale",children:[j.jsx("div",{className:c("WAWebProductCatalogProductImageViewFlow.scss").thumbPadding},"padding-left"),e.toArray().map(function(a,b){var c=b===q;return j.jsx(d("WAWebProductCatalogProductThumb.react").ProductThumb,{theme:"viewerFlow",active:c,ref:c?i:null,mediaData:a.mediaData,onClick:function(){return w(b)}},"product-image-"+b)}),j.jsx("div",{className:c("WAWebProductCatalogProductImageViewFlow.scss").thumbPadding},"padding-right")]})})}),j.jsx(c("WAWebProductCatalogProductImageViewerModal.react"),{mediaData:e.toArray()[q].mediaData,productImage:e.toArray()[q],onBack:B,onExitAnimation:C,onNext:p,onPrev:u,onImgZoomIn:z,getZoomNode:a.getZoomNode,zoomIn:h.current,isImgZoomedIn:s,product:b,sessionId:a.sessionId})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebSendProductModalLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingModal.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizSendProductModal.react").__setRef("WAWebSendProductModalLoadable").load());return a}),"SendProductModal");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingModal.react"),{title:h._("__JHASH__Pz11_y6jv6u__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.SendProductModalLoadable=d}),226);
__d("WAWebSetPinChatAction",["fbt","WAAbortError","WALogger","WATimeUtils","WAWebActionToast.react","WAWebChatPinBridge","WAWebStateUtils","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["models:chat:setPin dropped"]);j=function(){return a};return a}var k=i||c("react");function a(a,b){return l(d("WAWebStateUtils").unproxy(a),b)}function l(a,b,c){c===void 0&&(c=d("WAWebActionToast.react").genId());var e=a.promises;e.setPin&&e.setPin.abortController.abort();var f=0,g,i=d("WATimeUtils").unixTimeMs();b?f=i:g=a.pin;var n=new AbortController(),o=n.signal;i=d("WAWebChatPinBridge").setPin(a.id,f,g,i);var p=b?new(d("WAWebActionToast.react").ActionType)(m.getPinningText(a)):new(d("WAWebActionToast.react").ActionType)(m.getUnpinningText(a)),q=i.then(function(){if(o.aborted)throw new(d("WAAbortError").AbortError)();var e=b?m.getPinnedText(a):m.getUnpinnedText(a);return new(d("WAWebActionToast.react").ActionType)(e,{actionText:h._("__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return l(a,!b,c)}})})["catch"](d("WAAbortError").catchAbort(function(){}))["catch"](function(e){if(e.status===405)return new(d("WAWebActionToast.react").ActionType)(m.getPinLimitExceededText(a));else if(e.status>=400)return b?new(d("WAWebActionToast.react").ActionType)(m.getFailedToPinText(a)):new(d("WAWebActionToast.react").ActionType)(m.getFailedToUnpinText(a));d("WALogger").WARN(j()).devConsole(e);e=b?m.getFailedToPinText(a):m.getFailedToUnpinText(a);return new(d("WAWebActionToast.react").ActionType)(e,{actionText:h._("__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return l(a,b,c)}})});d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebActionToast.react").ActionToast,{id:c,initialAction:p,pendingAction:q}));p=i.then(function(){a.pin=f})["finally"](function(){e.setPin=null});e.setPin={promise:p,abortController:n};return p}var m={getPinnedText:function(a){return a.isNewsletter?h._("__JHASH__oExNR-vYIRW__JHASH__"):h._("__JHASH__-r9TRFJ5S0y__JHASH__")},getUnpinnedText:function(a){return a.isNewsletter?h._("__JHASH__U_A9KUVuL68__JHASH__"):h._("__JHASH__3fp6z6wLXhg__JHASH__")},getPinningText:function(a){return a.isNewsletter?h._("__JHASH__6kf7hJTMpcl__JHASH__"):h._("__JHASH__2SOVYSlhH0t__JHASH__")},getUnpinningText:function(a){return a.isNewsletter?h._("__JHASH__Y5SM9N52ved__JHASH__"):h._("__JHASH__70gJ-_86QzW__JHASH__")},getFailedToPinText:function(a){return a.isNewsletter?h._("__JHASH__7WWnmgbi4JR__JHASH__"):h._("__JHASH__1ywGip8Prrx__JHASH__")},getFailedToUnpinText:function(a){return a.isNewsletter?h._("__JHASH__WOhDs6smwXn__JHASH__"):h._("__JHASH__QVJOwwes6r5__JHASH__")},getPinLimitExceededText:function(a){if(a.isNewsletter){a=d("WAWebChatPinBridge").getPinLimit(a.id);return h._("__JHASH__wxMBmGOC57S__JHASH__",[h._plural(a,"number")])}return h._("__JHASH__UzeP8hBnHlZ__JHASH__")}};g.setPin=a}),226);
__d("WAWebWamEnumSnackbarActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({SNACKBAR_SHOWN:0,MESSAGE_UNDELETE:1});f.SNACKBAR_ACTION_TYPE=a}),66);
__d("WAWebSnackbarDeleteUndoWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumMediaType","WAWebWamEnumSnackbarActionType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({SnackbarDeleteUndo:[3628,{isAGroup:[1,a.TYPES.BOOLEAN],mediaType:[6,d("WAWebWamEnumMediaType").MEDIA_TYPE],messagesUndeleted:[2,a.TYPES.INTEGER],snackbarActionType:[3,d("WAWebWamEnumSnackbarActionType").SNACKBAR_ACTION_TYPE],threadId:[4,a.TYPES.STRING]},[1,1,1],"regular"]},{SnackbarDeleteUndo:[]});g.SnackbarDeleteUndoWamEvent=b}),98);
__d("WAWebUseNewsletterActionListeners",["WAWebChatEntryPoint","WAWebCmd","WAWebDrawerManager","WAWebInfoFlowLoadable","WAWebKeyboardTabUtils","WAWebNewsletterCollection","WAWebNewsletterTabFlowLoadable","react","useWAWebListener","useWAWebUIM"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a=c("useWAWebUIM")(),b=function(b){b=c("WAWebNewsletterCollection").get(b);if(b==null)return;d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebNewsletterTabFlowLoadable").NewsletterTabFlowLoadable,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"slide-left",uim:a});void d("WAWebCmd").Cmd.openChatBottom(b,d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCreationFlow)},e=function(a,b){d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(d("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:a,initialStep:b}),{transition:"slide-left",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_created_newsletter",b);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_newsletter_profile",e)}g["default"]=a}),98);
__d("useWAWebCommunityActionListeners",["WAWebChatCollection","WAWebChatCommunityUtils","WAWebCmd","WAWebCommunityDailyUtils","WAWebCommunityFlow.react","WAWebCommunityFlowLoadable","WAWebCommunityGatingUtils","WAWebCommunityHomeWrapper.react","WAWebCommunitySettingsDrawer.react","WAWebCommunityTabbedInfoDrawer.react","WAWebDrawerManager","WAWebGroupMetadataCollection","WAWebKeyboardTabUtils","WAWebManageCommunityGroupsFlowLoadable","WAWebModalManager","WAWebNewGroupFlow.react","WAWebNewGroupFlowLoadable","WAWebNewSubgroupSuggestionFlowLoadable","WAWebSubgroupJoinModal.react","react","useWAWebListener","useWAWebUIM"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a,b,e=c("useWAWebUIM")(),f=function(a,b){d("WAWebCommunityDailyUtils").incrementCommunityHomeEvent(a,d("WAWebCommunityDailyUtils").CommunityDailyHomeMetricsType.HOME_VIEWS),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:a,hasFetchedSubgroups:b,initialStep:d("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome},"community-nav-"+a.toString()),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},g=function(a,b,c,f){b===void 0&&(b=d("WAWebCommunityTabbedInfoDrawer.react").CommunityInfoTabs.Community),d("WAWebCommunityDailyUtils").incrementCommunityHomeEvent(a,d("WAWebCommunityDailyUtils").CommunityDailyHomeMetricsType.HOME_VIEWS),d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:a,initialStep:d("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome,initialTab:b,homeTheme:d("WAWebCommunityHomeWrapper.react").CommunityHomeTheme.TabbedInfo,scrollToMemberList:f,showFullDescription:c,onBack:function(){d("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"community-info-"+a.toString()),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},h=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{jid:a,initialStep:d("WAWebCommunityFlow.react").CommunityFlowStep.PendingGroups,onBack:function(){d("WAWebCmd").Cmd.openCommunityHome(a)}}),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},j=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebManageCommunityGroupsFlowLoadable").ManageCommunityGroupsFlowLoadable,{parentGroupMetadata:c("WAWebGroupMetadataCollection").assertGet(a),onBack:function(){return f(a,!1)}}))},k=function(a){var b,e=d("WAWebChatCollection").ChatCollection.get(a);if(!e||!((b=e.groupMetadata)==null?void 0:b.hasJoined()))return;d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(c("WAWebCommunitySettingsDrawer.react"),{chat:e,onBack:function(){return f(a,!1)}}),{transition:"flow-transition-drawer-push",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},l=function(a,b,e){var g=c("WAWebGroupMetadataCollection").assertGet(a).participants.iAmAdmin(),h;if(d("WAWebChatCommunityUtils").isSubgroupSuggestionCreation(a))h=i.jsx(d("WAWebNewSubgroupSuggestionFlowLoadable").NewSubgroupSuggestionFlowLoadable,{parentGroup:a,onBack:function(){return f(a,!1)}});else{var j=d("WAWebCommunityGatingUtils").communityShortGroupCreationEnabled();h=i.jsx(d("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onCreateGroup:b,parentGroupWid:a,onEnd:function(){return f(a,!1)},initialSelectedSubgroup:e,initialStep:g&&!j?d("WAWebNewGroupFlow.react").NewGroupFlowStep.ADD_PARTICIPANTS_DRAWER:d("WAWebNewGroupFlow.react").NewGroupFlowStep.SET_GROUP_INFO_DRAWER,shortenedCreationFlow:j})}d("WAWebDrawerManager").DrawerManager.openDrawerLeft(h,{transition:"flow-transition-drawer-push",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},m=function(a,b){d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebSubgroupJoinModal.react"),{subgroupMetadata:a,onSuccess:function(){},source:b}))};(a=d("useWAWebListener")).useListener((b=d("WAWebCmd")).Cmd,"open_subgroup_join_modal",m);a.useListener(b.Cmd,"open_community_home",f);a.useListener(b.Cmd,"open_community_tabbed_info",g);a.useListener(b.Cmd,"open_community_pending_groups_drawer",h);a.useListener(b.Cmd,"open_community_home_manage_groups",j);a.useListener(b.Cmd,"open_community_add_new_group",l);a.useListener(b.Cmd,"open_community_settings_drawer",k)}g["default"]=a}),98);
__d("WAWebActionListener",["fbt","JSResourceForInteraction","Promise","WAAbortError","WAFilteredCatch","WALogger","WAPromiseDelays","WAWebActionToast.react","WAWebAddToFavoritesAction","WAWebBackendErrors","WAWebBizChatAssignmentAiRepliesModal.react","WAWebBizChatAssignmentModal.react","WAWebBizMerchantDetailsEntityTypePopup.react","WAWebBotGating","WAWebBusinessMuteWamEvent","WAWebBusinessUnmuteWamEvent","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentUtils","WAWebChatEphemerality","WAWebChatSendMessages","WAWebChatThreadLogging","WAWebClearChatPopup.react","WAWebCmd","WAWebCommandPalette.react","WAWebConfirmPopup.react","WAWebCountrySelectorPopup.react","WAWebCurrentUser","WAWebDeleteChatPopup.react","WAWebDrawerManager","WAWebEventInfoFlowLoadable","WAWebGroupsV4InviteFlowLoadable","WAWebHeader.react","WAWebKeyboardTabUtils","WAWebLazyLoadedRetriable","WAWebMessageDeleteActionsWamEvent","WAWebMiscErrors","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgDataFromModel","WAWebMsgGetters","WAWebMsgType","WAWebMuteExpirations","WAWebMutePopup.react","WAWebNewsletterRevokeMsgAction","WAWebOTPLoggingHelper","WAWebProductCatalogProductImageViewFlow.react","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebRemoveFromFavoritesAction","WAWebSendMsgResultAction","WAWebSendProductModalLoadable","WAWebSetArchiveChatAction","WAWebSetPinChatAction","WAWebSnackbarDeleteUndoWamEvent","WAWebToast.react","WAWebToastManager","WAWebUpdateUnreadChatAction","WAWebUseNewsletterActionListeners","WAWebWamChatPSALogger","WAWebWamEnumDeleteActionType","WAWebWamEnumMuteEntryPoint","WAWebWamEnumProfileEntryPoint","WAWebWamEnumSnackbarActionType","WAWebWamMsgUtils","asyncToGeneratorRuntime","err","lodash","react","useWAWebCommunityActionListeners","useWAWebListener","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendRevokeMsgs fail"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendDeleteMsgs dropped"]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendUnstarMsgs dropped"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["chatAction:sendStarMsgs dropped"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["DoNotDisturbSettings:globalMuteDurationLabel non standard global mute duration:",""]);o=function(){return a};return a}var p=j||c("react"),q=4e3;function r(a){switch(a){case 1:return h._("__JHASH__UY0l4BaAyyK__JHASH__");case 8:return h._("__JHASH__CDQe2IY-7Cw__JHASH__");case 24:return h._("__JHASH__bxqz5u2On3d__JHASH__");case 168:return h._("__JHASH__o3r8Vlv5p_r__JHASH__");default:d("WALogger").LOG(o(),a);return h._("__JHASH__WxwVAH6fVo9__JHASH__")}}function s(a,c,e,f){f===void 0&&(f="LEFT");if(!c)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(c.some(function(a){return!a.id}))return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var g=e||d("WAWebActionToast.react").genId(),j=c.length;if(a.isPSA){e=0;for(e;e<j;e++)d("WAWebWamChatPSALogger").logChatPSAStar(c[e])}e=new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__XY3GWBIFXUC__JHASH__",[h._plural(j)]));var k=d("WAWebChatSendMessages").sendStarMsgs(a,c,!0).then(function(){return new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__rabZUFZ2g_M__JHASH__",[h._plural(j,"count")]),{actionText:h._("__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return t(a,c,g,f)}})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(b){return b.status>=400?d("WAWebChatEphemerality").isEphemeralSettingOn(a)?new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__aDLrcUUZzSU__JHASH__",[h._plural(j)])):new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__zefk-okWtXu__JHASH__",[h._plural(j)])):void 0}))["catch"](function(b){d("WALogger").WARN(n()).devConsole(b);return new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__zefk-okWtXu__JHASH__",[h._plural(j)]),{actionText:h._("__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return s(a,c,g,f)}})});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:g,toastPosition:f,initialAction:e,pendingAction:k}));return k}function t(a,c,e,f){f===void 0&&(f="LEFT");if(!c)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(c.some(function(a){return!a.id}))return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var g=e||d("WAWebActionToast.react").genId(),j=c.length;e=new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__U4gYH7U8aRS__JHASH__",[h._plural(j)]));var k=d("WAWebChatSendMessages").sendStarMsgs(a,c,!1).then(function(){return new(d("WAWebActionToast.react").ActionType)(h._("__JHASH___4XQ1PiDG26__JHASH__",[h._plural(j,"count")]),{actionText:h._("__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return s(a,c,g,f)}})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(b){return b.status>=400?d("WAWebChatEphemerality").isEphemeralSettingOn(a)?new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__zc68NSpuvJb__JHASH__",[h._plural(j)])):new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__Ky9mWG_8L-j__JHASH__",[h._plural(j)])):void 0}))["catch"](function(b){d("WALogger").WARN(m()).devConsole(b);return new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__Ky9mWG_8L-j__JHASH__",[h._plural(j)]),{actionText:h._("__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return t(a,c,g,f)}})});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:g,toastPosition:f,initialAction:e,pendingAction:k}));return k}function u(a){a=c("lodash").uniq(a.map(function(a){return d("WAWebWamMsgUtils").getWamMediaType(a)}));return a.length===1?a[0]:void 0}function v(a,b,c){return w.apply(this,arguments)}function w(){w=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){if(b.type==="message"){if(a.isPSA){var e=0;for(e;e<b.list.length;e++)d("WAWebWamChatPSALogger").logChatPSADelete(b.list[e])}b.list.filter(d("WAWebMsgGetters").getIsAuthenticationMessage).forEach(function(a){void d("WAWebOTPLoggingHelper").logOTPMessageDeleted(d("WAWebMsgDataFromModel").msgDataFromMsgModel(a))})}return new(d("WAWebMessageDeleteActionsWamEvent").MessageDeleteActionsWamEvent)({deleteActionType:c?d("WAWebWamEnumDeleteActionType").DELETE_ACTION_TYPE.DELETE_FOR_EVERYONE:d("WAWebWamEnumDeleteActionType").DELETE_ACTION_TYPE.DELETE_FOR_ME,isAGroup:a.isGroup,messagesDeleted:b.list.length,threadId:yield d("WAWebChatThreadLogging").getChatThreadID(a.id.toJid()),mediaType:u(b.list)}).commitAndWaitForFlush()});return w.apply(this,arguments)}function x(a,b,c){return y.apply(this,arguments)}function y(){y=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){return new(d("WAWebSnackbarDeleteUndoWamEvent").SnackbarDeleteUndoWamEvent)({snackbarActionType:c==="shown"?d("WAWebWamEnumSnackbarActionType").SNACKBAR_ACTION_TYPE.SNACKBAR_SHOWN:d("WAWebWamEnumSnackbarActionType").SNACKBAR_ACTION_TYPE.MESSAGE_UNDELETE,isAGroup:a.isGroup,messagesUndeleted:b.list.length,threadId:yield d("WAWebChatThreadLogging").getChatThreadID(a.id.toJid()),mediaType:u(b.list)}).commitAndWaitForFlush()});return y.apply(this,arguments)}function a(){var a,e,f=c("useWAWebUIM")(),g=function(a){var b=a.product;a=a.onSend;d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebSendProductModalLoadable").SendProductModalLoadable,{product:b,onSend:a}),{transition:"modal-flow",uim:f})},j=function(a,b){d("WAWebModalManager").ModalManager.openMedia(p.jsx(c("WAWebProductCatalogProductImageViewFlow.react"),{activeProductImage:a.activeProductImage,productImageCollection:a.productImageCollection,getZoomNode:a.getZoomNode,product:a.product,sessionId:b}),{transition:"media-viewer",uim:f})},m=function(a,b,c,e){d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebGroupsV4InviteFlowLoadable").GroupsV4InviteFlowLoadable,{participantNeedInvite:a,groupGid:b,subject:c,groupDesc:e}))},n=function(a){d("WAWebHeader.react").openInfoPanel(a,f,d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.NOTIFICATION_BLOCK_ACTION)},o=function(a,b,e,g){g===void 0&&(g=!0);if(b){b=function(c,f,g){if(a.isPSA&&e!==0){var b;switch(g){case 1:b=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CHAT_LIST_SCREEN;break;case 2:b=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONTACT_INFO;break;default:b=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONVERSATION_SCREEN;break}d("WAWebWamChatPSALogger").logChatPSAMute(b,f===Infinity?-1:f)}a.pendingAction++;a.mute.mute({expiration:c,sendDevice:!0})["finally"](function(){a.pendingAction--});(a.isBusinessGroup||a.contact.isBusiness)&&new(d("WAWebBusinessMuteWamEvent").BusinessMuteWamEvent)().commit()};if(g){g=h._("__JHASH__ZMe4kYxcowI__JHASH__");d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebMutePopup.react"),{title:g,mute:a.mute,onMute:b,entryPoint:e,children:h._("__JHASH__Q4B6e6ALmHY__JHASH__")}),{transition:"modal",uim:f})}else{g=Number.POSITIVE_INFINITY;var i=d("WAWebMuteExpirations").calculateMuteExpiration(g);b(i,g,(b=e)!=null?b:0)}}else{a.pendingAction++;a.mute.unmute({sendDevice:!0})["finally"](function(){a.pendingAction--});if(a.isPSA&&e!==0){var j;switch(e){case 1:j=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CHAT_LIST_SCREEN;break;case 2:j=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONTACT_INFO;break;default:j=d("WAWebWamEnumMuteEntryPoint").MUTE_ENTRY_POINT.CONVERSATION_SCREEN;break}d("WAWebWamChatPSALogger").logChatPSAUnmute(j)}(a.isBusinessGroup||a.contact.isBusiness)&&new(d("WAWebBusinessUnmuteWamEvent").BusinessUnmuteWamEvent)().commit()}},u=function(a,b,e){if(!a)return;var g=h._("__JHASH__CWnkDmWMasg__JHASH__",[h._plural(a.length)]);if(b){b=function(b,c,d){a.forEach(function(a){a.pendingAction++,a.mute.mute({expiration:b,sendDevice:!0,fromMultiselect:!0})["finally"](function(){a.pendingAction--})}),e()};d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebMutePopup.react"),{title:g,mute:a[0].mute,onMute:b}),{transition:"modal",uim:f})}else a.forEach(function(a){a.pendingAction++,a.mute.unmute({sendDevice:!0,fromMultiselect:!0})["finally"](function(){a.pendingAction--})}),e()},w=function(a,b,c){return o(a,b,0,c)},y=function(a,b,e,g){g===void 0&&(g=!1);var i=h._("__JHASH__N8_tlcFiOuj__JHASH__"),j=h._("__JHASH__0sWOkmM3KYg__JHASH__"),k=h._("__JHASH__E6ejWVgM4xM__JHASH__");e&&(i=h._("__JHASH__RgFcG4N2pN___JHASH__"),j=h._("__JHASH__kmBQJ7MWPri__JHASH__"),k=h._("__JHASH__TXi8hHFBxyl__JHASH__"));if(b){e=function(b,c){a.mute({expiration:b}),d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebToast.react").Toast,{msg:r(c),id:d("WAWebToast.react").genId()}))};d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebMutePopup.react"),{mute:a,title:i,onMute:e,muteAll:!0}),{transition:"modal",uim:f})}else{if(g){a.unmute();return}b=function(){a.unmute(),d("WAWebModalManager").ModalManager.close(),d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebToast.react").Toast,{msg:j,id:d("WAWebToast.react").genId()}))};i=function(){return d("WAWebModalManager").ModalManager.close()};d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:b,okText:h._("__JHASH__zQjxkyzbkik__JHASH__"),onCancel:i,cancelText:h._("__JHASH__JomY4EcHzcJ__JHASH__"),children:k}))}},z=function(a,b){var c=function(c){a.pendingAction++;if(a.isPSA&&b!==0){var e=a.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(e,6,b)}c["finally"](function(){a.pendingAction--})};d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebDeleteChatPopup.react").DeleteChatPopup,{chat:a,onDeleteOrExit:c}),{transition:"modal",uim:f})},A=function(a){z(a,0)},B=function(a,b){a.pendingAction++,d("WAWebSetPinChatAction").setPin(a,b)["catch"](function(){})["finally"](function(){a.pendingAction--})},C=function(a,b,c){a.pendingAction++,b?d("WAWebAddToFavoritesAction").addToFavoritesAction([a.id],{entryPoint:c})["catch"](function(){})["finally"](function(){a.pendingAction--}):d("WAWebRemoveFromFavoritesAction").removeFromFavoritesAction(a.id,{entryPoint:c})["catch"](function(){})["finally"](function(){a.pendingAction--})},D=function(a){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebClearChatPopup.react"),{chat:a}),{transition:"modal",uim:f})},E=function(a,b,c,e){if(a.isPSA&&c!==0&&a.msgs.length>0){var f=a.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(f,b?3:4,c)}a.pendingAction++;d("WAWebSetArchiveChatAction").setArchive(a,b,e)["catch"](function(){})["finally"](function(){a.pendingAction--})},F=function(a,b,c){E(a,b,0,c)},G=function(a,b){a.pendingAction++,d("WAWebUpdateUnreadChatAction").markUnread(a,b)["finally"](function(){a.pendingAction--})},H=function(a,b){if(!a)throw new(d("WAWebMiscErrors").ActionError)();if(a.some(function(a){return!a.id}))throw new(d("WAWebMiscErrors").ActionError)();b=b||d("WAWebActionToast.react").genId();d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebToast.react").Toast,{id:b,msg:h._("__JHASH__rIfJvPWPiQi__JHASH__",[h._plural(a.length)])}))},I=function(a,b){if(d("WAWebChatAssignmentUtils").canAssignChat(a)===!1){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizChatAssignmentAiRepliesModal.react"),{}));return}var e=d("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.getName(b);d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,{annotations:{string:{CHAT_ASSIGNMENT_ENTRY_POINT:e}}});d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizChatAssignmentModal.react"),{chats:[a],entryPoint:b}))},J=function a(c,e,f,g,j){j===void 0&&(j="LEFT");var k=e.list;if(!k)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(k.some(function(a){return!a.id}))return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var m=k.length,n=g||d("WAWebActionToast.react").genId(),o=new AbortController(),r=o.signal;if(e.type!=="addon"){x(c,e,"shown");e.list.forEach(function(a){a.pendingDeleteForMe=!0;if(d("WAWebBotGating").isBotReceiveEnabled()){var b=d("WAWebMsgGetters").getBotPluginSearchProvider(a),c=Boolean(!b&&d("WAWebMsgGetters").getBotPluginMaybeParent(a));a=d("WAWebMsgGetters").getBotResponseTargetId(a);(c||b!=null&&a!=null)&&d("WAWebCmd").Cmd.botTogglePluginSearchDetailsToggle(a,!1)}});c.pendingDeleteForMeCount+=e.list.length;k=m===1?h._("__JHASH__ow_nIJa9x2s__JHASH__"):h._("__JHASH__ToEZVdqxlNW__JHASH__",[h._plural(m,"number_of_messages")]);g=new(d("WAWebActionToast.react").ActionType)(k,{actionText:h._("__JHASH___gWecnZvd3i__JHASH__"),actionHandler:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){o.abort(),e.list.forEach(function(a){a.pendingDeleteForMe=!1}),c.pendingDeleteForMeCount-=e.list.length,void x(c,e,"undo"),yield H(e.list,n)});function d(){return a.apply(this,arguments)}return d}()})}else g=new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__puyjZ8S5KX7__JHASH__",[h._plural(m)]));k=(i||(i=b("Promise"))).resolve();e.type!=="addon"&&(k=k.then(function(){return d("WAPromiseDelays").delayMs(q)}));k=k.then(function(){if(r.aborted)throw new(d("WAAbortError").AbortError)();return d("WAWebChatSendMessages").sendDeleteMsgs(c,e,f)}).then(function(a){c.pendingDeleteForMeCount-=a;if(a===m){void v(c,e,!1);return e.type!=="addon"?null:new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__lpt7hEvGjFY__JHASH__",[h._plural(m,"count")]))}a=m-a;return new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__ZpAmSO5CaCb__JHASH__",[h._plural(a)]))})["catch"](d("WAAbortError").catchAbort(function(){}))["catch"](function(b){d("WALogger").WARN(l()).devConsole(b);return new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__ZpAmSO5CaCb__JHASH__",[h._plural(m)]),{actionText:h._("__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return a(c,e,!1,n,j)}})});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:n,toastPosition:j,initialAction:g,pendingAction:k}));return k},K=function(a,b){throw c("err")("This call is not supported")},L=function(a,e,f){var g,j=f.clearMedia;g=(g=f.toastId)!=null?g:d("WAWebActionToast.react").genId();f=(f=f.toastPosition)!=null?f:"LEFT";var l=e.list;if(!l)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());var m=l.reduce(function(a,b){var c=d("WAWebMsgActionCapability").canSenderRevokeMsg(b)||d("WAWebMsgActionCapability").canAdminRevokeMsg(b)||d("WAWebMsgActionCapability").canBotResponseBeRevokeByInvoker(b);b=b.type===d("WAWebMsgType").MSG_TYPE.GROUPS_V4_INVITE&&!d("WAWebMsgGetters").getIsGroupsV4InviteExpired(b)?b:null;return[a[0]||!c,a[1]||b]},[!1,null]),n=m[0];m=m[1];if(n)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());m&&K(a,m);var o=l.length;n=new(d("WAWebActionToast.react").ActionType)(a.isNewsletter?h._("__JHASH__gK2BZoKbZfU__JHASH__",[h._plural(o)]):h._("__JHASH__puyjZ8S5KX7__JHASH__",[h._plural(o)]));e.type==="addon"?m=d("WAWebChatSendMessages").sendRevokeMsgs(a,e,j):a.isNewsletter?m=d("WAWebNewsletterRevokeMsgAction").sendNewsletterRevokeMsgs(a,e.list,j):m=d("WAWebChatSendMessages").sendRevokeMsgs(a,e,j);l=m.then(function(b){var f=b.filter(function(a){return a.messageSendResult!==d("WAWebSendMsgResultAction").SendMsgResult.OK}).length;if(f>0)throw c("err")(f+" / "+b.length+" dropped");void v(a,e,!0);return new(d("WAWebActionToast.react").ActionType)(a.isNewsletter?h._("__JHASH__JTIWcHCO-t7__JHASH__",[h._plural(o,"number_of_updates")]):h._("__JHASH__lpt7hEvGjFY__JHASH__",[h._plural(o,"count")]))})["catch"](function(b){d("WALogger").WARN(k()).devConsole(b);return d("WAWebChatEphemerality").isEphemeralSettingOn(a)?new(d("WAWebActionToast.react").ActionType)(h._("__JHASH__om03U1-CRFa__JHASH__",[h._plural(o,"count")])):new(d("WAWebActionToast.react").ActionType)(a.isNewsletter?h._("__JHASH__gK9K8cvGxk2__JHASH__",[h._plural(o,"number_of_updates")]):h._("__JHASH__ZpAmSO5CaCb__JHASH__",[h._plural(o)]))});d("WAWebToastManager").ToastManager.open(p.jsx(d("WAWebActionToast.react").ActionToast,{id:g,toastPosition:f,initialAction:n,pendingAction:l}));return l},M=function(a,b){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebBizMerchantDetailsEntityTypePopup.react"),{legalEntityDetails:a,onSave:b}),{transition:"modal",uim:f})},N=function(a,b,e,g){d("WAWebModalManager").ModalManager.open(p.jsx(c("WAWebCountrySelectorPopup.react"),{title:a,countryCode:b,countries:e,onSave:g}),{transition:"modal",uim:f})},O=function(){d("WAWebModalManager").ModalManager.open(p.jsx(d("WAWebCommandPalette.react").CommandPaletteModal,{}),{transition:"modal",uim:f})},P=function(a){d("WAWebCurrentUser").isEmployee()&&void c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBugnubV2Popup.react").__setRef("WAWebActionListener").load());return a.openBugNubV2Popup}),"bugnub_v2_popup")().then(function(b){b(a)})},Q=function(a,b,c,e){d("WAWebDrawerManager").DrawerManager.openDrawerRight(p.jsx(d("WAWebEventInfoFlowLoadable").EventInfoFlowLoadable,{chat:a,msg:b,onBack:c,onEnd:e},"event-info-drawer-"+b.id.toString()),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})};(a=d("useWAWebListener")).useListener((e=d("WAWebCmd")).Cmd,["mute_all"],y);a.useListener(e.Cmd,["mute_chat"],w);a.useListener(e.Cmd,["mute_chat_multiselect"],u);a.useListener(e.Cmd,["mute_chat_from_entrypoint"],o);a.useListener(e.Cmd,["archive_chat"],F);a.useListener(e.Cmd,["archive_chat_from_entrypoint"],E);a.useListener(e.Cmd,["clear_chat"],D);a.useListener(e.Cmd,["mark_chat_unread"],G);a.useListener(e.Cmd,["pin_chat"],B);a.useListener(e.Cmd,["assign_chat"],I);a.useListener(e.Cmd,["favorite_chat"],C);a.useListener(e.Cmd,["send_star_msgs"],s);a.useListener(e.Cmd,["send_unstar_msgs"],t);a.useListener(e.Cmd,["send_delete_msgs"],J);a.useListener(e.Cmd,["send_revoke_msgs"],L);a.useListener(e.Cmd,["delete_or_exit_chat"],A);a.useListener(e.Cmd,["delete_or_exit_chat_from_entrypoint"],z);a.useListener(e.Cmd,["product_image_viewer_modal"],j);a.useListener(e.Cmd,["mute_all"],y);a.useListener(e.Cmd,["attach_product"],g);a.useListener(e.Cmd,["show_country_selector_popup"],N);a.useListener(e.Cmd,"show_merchant_details_entity_type_popup",M);a.useListener(e.Cmd,["open_groups_v4_invite_request_flow"],m);a.useListener(e.Cmd,["open_profile"],n);a.useListener(e.Cmd,["open_command_palette"],O);c("useWAWebCommunityActionListeners")();c("WAWebUseNewsletterActionListeners")();a.useListener(e.Cmd,["trigger_bugreport_v2"],P);a.useListener(e.Cmd,["open_event_info_drawer"],Q);return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebBizAdCreationIconTooltip.react",["fbt","WAWebAdCreationLogger","WAWebNux","WAWebWDSTooltip.react","WAWebWamEnumTooltipAction","react","useWAWebNux","useWAWebOnOutsideClick"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useCallback,m=b.useEffect;function a(a){a=a.refAnchorElement;var b=c("useWAWebNux")(d("WAWebNux").NUX.TOOLTIP_AD_CREATION),e=b[0],f=b[1];b=d("WAWebWDSTooltip.react").useWDSTooltip({target:a,element:k.jsx("div",{className:"xqyf9gi",children:h._("__JHASH__k99FPbeySqt__JHASH__")}),position:d("WAWebWDSTooltip.react").PopoverPosition.Bottom,alignment:d("WAWebWDSTooltip.react").PopoverAlignment.Center});var g=b.tooltip,i=b.showTooltip,j=b.hideTooltip,n=b.tooltipIsVisible,o=a.current;d("useWAWebOnOutsideClick").useOnOutsideClick(a,l(function(a,b){n&&(d("WAWebAdCreationLogger").logAdCreationIconTooltip(d("WAWebWamEnumTooltipAction").TOOLTIP_ACTION.DISMISS),f(),j()),b()},[f,j,n]));m(function(){if(!e)return;var a=function(){d("WAWebAdCreationLogger").logAdCreationIconTooltip(d("WAWebWamEnumTooltipAction").TOOLTIP_ACTION.ENTER_AD_CREATION_FLOW),f(),j()};o==null?void 0:o.addEventListener("mousedown",a);return function(){o==null?void 0:o.removeEventListener("mousedown",a)}},[o,e,f,j]);m(function(){if(!e||o==null||g!=null)return;i()},[f,e,g,o,i,j]);m(function(){if(e&&n){var a=self.setTimeout(function(){if(!n)return;f();j();d("WAWebAdCreationLogger").logAdCreationIconTooltip(d("WAWebWamEnumTooltipAction").TOOLTIP_ACTION.IGNORE)},5e3);return function(){self.clearTimeout(a)}}},[e,n,f,j]);return g}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebWamEnumWebcNavbarItemLabel",[],(function(a,b,c,d,e,f){a=Object.freeze({CHATS:1,COMMUNITIES:2,NEWSLETTERS:3,STATUS:4,STARRED:5,ARCHIVED:6,SETTINGS_HELP:7,SETTINGS:8,PROFILE:9,ADS_CREATION:10,BUSINESS_TOOLS:11});f.WEBC_NAVBAR_ITEM_LABEL=a}),66);
__d("WAWebWebcNavbarWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcNavbarItemLabel"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({WebcNavbar:[5258,{webcNavbarItemLabel:[1,d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL]},[1,1,1],"regular"]},{WebcNavbar:[]});g.WebcNavbarWamEvent=a}),98);
__d("WAWebNavBarLogEvents",["WAWebWebcNavbarWamEvent"],(function(a,b,c,d,e,f,g){function a(a){a=new(d("WAWebWebcNavbarWamEvent").WebcNavbarWamEvent)({webcNavbarItemLabel:a});a.commit()}g.logNavBarEvent=a}),98);
__d("WAWebAdCreationMenuBarItem.react",["fbt","WAWebAdCreationLogger","WAWebBizAdCreationIconTooltip.react","WAWebBusinessAdvertiseOutlineIcon","WAWebChatlistUtils","WAWebMenuBar.react","WAWebNavBarLogEvents","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebWamEnumLwiEntryPoint","WAWebWamEnumWebcNavbarItemLabel","react","useMergeRefs"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useRef;e=k.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.activeAccountInfo,f=a.iconStyle,g=a.vertical;a=a.ctaText;var i=m(null);b=c("useMergeRefs")(b,i);l(function(){d("WAWebAdCreationLogger").logAdCreationImpression(d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON,e!=="not-linked"&&e.hasFacebookPage)},[e]);a=(a=a)!=null?a:h._("__JHASH__ITHmMGn1hwx__JHASH__");g=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,vertical:g,testid:void 0,icon:k.jsx(d("WAWebBusinessAdvertiseOutlineIcon").BusinessAdvertiseOutlineIcon,{directional:!0,width:26,height:26}),title:a,onClick:function(){d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ADS_CREATION),d("WAWebChatlistUtils").handleAdCreation({adCreationUrlInput:{activeAccountInfo:e,sourceAdCreation:"whatsapp_smb_web_ad_creation_home_screen_icon"},lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON})},showHoverTooltip:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()});a=k.jsx(c("WAWebBizAdCreationIconTooltip.react"),{refAnchorElement:i});return k.jsxs("div",{ref:b,className:f,children:[a,g]})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),226);
__d("WAWebAnimationGroup",["invariant","Promise","WAAbortError","WAPromiseDelays","WAPromiseRaceAbort","WAWebCmd","WAWebIdleTaskRunner","WAWebResizeObserver.react","WAWebSetRefCache","WAWebVelocityAnimate","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j,k;a=k||d("react");var l=j||(j=c("react"));e=a.Component;var m=a.cloneElement,n={duration:300,easing:[.1,.82,.25,1]};f=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,d;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(b=d=a.call.apply(a,[this].concat(f))||this,d.containerHeight=0,d.$1=[],d.didCancel=!1,d.$2=!1,d.state={children:d.props.children},d.$3=new Map(),d.$4=function(a,b){b?d.$3.set(a,b):d.$3["delete"](a)},d.$5=new(c("WAWebSetRefCache"))(d.$4),d.$10=new Map(),b)||babelHelpers.assertThisInitialized(d)}var f=e.prototype;f.componentWillUnmount=function(){this.$2=!0};f.$6=function(a,b){var c=this;return a.reduce(function(a,d){if(d<b)return a;d=c.$3.get(""+d);return!d?a:a+d.clientHeight},0)};f.$7=function(a,e,f,g){var h,j=this;this.$1[a]&&(this.didCancel=!0,this.$1[a].controller.abort());var k=f>0?[0,f]:[-f,0],l=new AbortController();h=(((h=this.$1[a])==null?void 0:h.promise)||(i||(i=b("Promise"))).resolve()).then(function(){return c("WAWebVelocityAnimate")(e,{translateY:k},n)}).then(function(){return d("WAPromiseDelays").delayMs(100)});h=c("WAPromiseRaceAbort")(h,l.signal).then(function(){if(l.signal.aborted)throw new(d("WAAbortError").AbortError)();f<0&&(!g.includes(a)?e.style.transform="":e.style.opacity="0");return a})["catch"](d("WAAbortError").catchAbort(function(){c("WAWebVelocityAnimate")(e,"stop",!0);e.style.transform="";return!1}))["finally"](function(b){if(j.didCancel)j.didCancel=!1;else{delete j.$1[a];d("WAWebCmd").Cmd.setUiBusy(!1);return b}});this.$1[a]={promise:h,controller:l};return h};f.$8=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){if(!a)return(i||(i=b("Promise"))).resolve(new Set());var d=[],e=a.slice(-1);e=e[0];for(var f=0;f<=e;++f){var g=this.$3.get(""+f);if(!g)continue;d.push(this.$7(f,g,(c?1:-1)*this.$6(a,f),a))}g=(yield (i||(i=b("Promise"))).all(d));return new Set(g.reduce(function(a,b){b!==!1&&a.push(b);return a},[]))});function c(b,c){return a.apply(this,arguments)}return c}();f.$9=function(a,b){if(!a.length||!this.props.onHeightChange)return;this.props.onHeightChange((b?1:-1)*this.$6(a,0))};e.getDerivedStateFromProps=function(a,b){var c=a.children;a=b.children;b=!1;a=a.map(function(a,d){d=(d=c[d])!=null?d:a;d!==a&&(b=!0);return d});return b?{children:a}:null};f.componentDidUpdate=function(a,b){var c=this,e=this.state.children;b=b.children;e.length===b.length&&this.props.children.length===e.length||h(0,56374);b=e.map(function(a,b){return b});e=b.filter(function(b){return c.props.children[b]!=null&&a.children[b]==null});b=b.filter(function(b){return c.props.children[b]==null&&a.children[b]!=null});b.length>0&&(b.forEach(function(){c.busyId=d("WAWebIdleTaskRunner").UIBusyTasks.setBusy(c.busyId),d("WAWebCmd").Cmd.setUiBusy(!0)}),this.$9(b,!1),this.$8(b,!1).then(function(a){if(c.$2)return;if(a.size===0)return;c.setState(function(b){b=b.children.map(function(b,c){return a.has(c)?null:b});return{children:b}},function(){d("WAWebIdleTaskRunner").UIBusyTasks.decBusy(c.busyId)})}));e.length>0&&(e.forEach(function(){c.busyId=d("WAWebIdleTaskRunner").UIBusyTasks.setBusy(c.busyId),d("WAWebCmd").Cmd.setUiBusy(!0)}),this.$9(e,!0),this.$8(e,!0).then(function(){d("WAWebIdleTaskRunner").UIBusyTasks.decBusy(c.busyId)}))};f.componentDidMount=function(){var a=this,b=this.state.children.reduce(function(b,c,d){c=a.$3.get(""+d);if(!c)return b;c.style.transform="translateY(0)";return b+c.clientHeight},0);this.props.onHeightChange(b,!0)};f.$11=function(a){var b=this,c=this.$10.get(a);if(c)return c;c=this.$3.get(""+a);var d=c?c.clientHeight:0;c=function(a){a=a.height;if(!d||!a||a===d){d=a;return}b.props.onHeightChange(a-d);d=a};this.$10.set(a,c);return c};f.$12=function(a,b){if(!a)return a;var c=this.$5.getRefSetter(""+b);b=function(b){c(b);var d=a.ref;if(!d)return;typeof d==="function"?d(b):d.current=b};return m(a,{ref:b})};f.render=function(){var a=this;return this.state.children.map(function(b,d){return l.jsx(c("WAWebResizeObserver.react"),{onResize:a.$11(d),children:a.$12(b,d)},"."+d)})};return e}(e);g["default"]=f}),98);
__d("WAWebAnimationGroupItem.react",["react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=i.forwardRef(a);function a(a,b){a=a.children;return i.jsx("div",{ref:b,children:a})}a.displayName=a.name+" [from "+f.id+"]";d=b;g["default"]=d}),98);
__d("WAWebAttachMediaFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebAttachMediaFlow.react").__setRef("WAWebAttachMediaFlowLoadable").load());return a}),"AttachMediaFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.requireBundle=a;g.AttachMediaFlowLoadable=d}),98);
__d("WAWebWamEnumAutoMuteActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({AUTO_MUTE_EXISTING_GROUP:1,AUTO_MUTE_GROWING_GROUP:2,AUTO_MUTE_NEW_GROUP:3,USER_DIALOG_VIEW:4,USER_ADMIT_BY_OK:5,USER_ADMIT_BY_MESSAGE_SEND:6,USER_DISMISS_BY_UNMUTE:7});f.AUTO_MUTE_ACTION_TYPE=a}),66);
__d("WAWebAutoMuteLargeGroupActionsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumAutoMuteActionType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({AutoMuteLargeGroupActions:[3880,{autoMuteAction:[1,d("WAWebWamEnumAutoMuteActionType").AUTO_MUTE_ACTION_TYPE],autoMuteGroupId:[2,d("WAWebWamCodegenUtils").TYPES.STRING],autoMuteGroupSize:[3,d("WAWebWamCodegenUtils").TYPES.INTEGER]},[1,1,1],"regular"]},{AutoMuteLargeGroupActions:[]});g.AutoMuteLargeGroupActionsWamEvent=a}),98);
__d("WAWebNavBarItem.react",["$InternalEnum","WAWebEmojiText.react","WAWebFlex.react","WAWebPopoverContext.react","WAWebTabOrder","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWDSText.react","WAWebWDSTooltip.react","react","stylex","useMergeRefs","useWAWebFocusState"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=h||(h=c("react")),l=e.useMemo,m=e.useRef,n=b("$InternalEnum")({Counter:"counter",Dot:"dot"}),o={container:{width:"x100vrsf",height:"x1vqgdyp",color:"xhgddhk",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",":hover_cursor":"x1277o0a",":hover_backgroundColor":"x13i9f1t",$$css:!0},fullWidth:{width:"xh8yej3",$$css:!0},active:{color:"xw2npq5",backgroundColor:"xzs022t",$$css:!0},expanded:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0},inlineActivityIndicatorContainer:{position:"x1n2onr6",$$css:!0},inlineActivityIndicator:{position:"x10l6tqk",$$css:!0},counterIndicator:{start:"x14ipxcb",left:null,right:null,bottom:"x1oozmrk",$$css:!0},dotIndicator:{start:"x1nc75zl",left:null,right:null,bottom:"xjifam0",$$css:!0}};function a(a){var b=a.icon,e=a.inlineActivityIndicator,f=a.inlineActivityIndicatorType,g=a.isActive,h=a.isExpanded,j=a.onClick,p=a.spacingXstyle;p=p===void 0?d("WAWebUISpacing").uiPadding.all8:p;var q=a.testid;q=a.text;a=a.title;var r=function(a){a.preventDefault(),j==null?void 0:j(a)},s=m(null),t=c("useWAWebFocusState")(),u=t[0];t[1];t=c("useMergeRefs")(u,s);u=l(function(){return k.jsx("div",{className:"x15hfatp",children:b})},[b]);q=h&&Boolean(q)&&k.jsx(d("WAWebFlex.react").FlexItem,{children:k.jsx(d("WAWebWDSText.react").WDSTextSectionTitle,{color:g?"primary":"secondary",weight:"semibold",textWrap:"ellipsis",textAlign:"start",children:k.jsx(d("WAWebEmojiText.react").EmojiText,{text:q,ellipsify:!0})})});f=!h&&e&&k.jsx(d("WAWebFlex.react").FlexItem,{className:(i||(i=c("stylex")))([o.inlineActivityIndicator,f===n.Counter?o.counterIndicator:o.dotIndicator]),children:e});return k.jsxs(d("WAWebFlex.react").FlexRow,{ref:t,xstyle:[o.container,d("WAWebUISpacing").uiMargin.vert2,g&&o.active,h&&[o.fullWidth,o.expanded]],children:[k.jsx(c("WAWebUnstyledButton.react"),{testid:void 0,"aria-label":a,onClick:r,ref:s,dataTab:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,xstyle:[o.fullWidth,p],children:k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:o.fullWidth,children:[k.jsxs(d("WAWebFlex.react").FlexRow,{grow:1,align:"center",xstyle:o.inlineActivityIndicatorContainer,children:[u,f,q]}),h&&e&&k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",grow:0,basis:30,children:e})]})}),!h&&k.jsx(d("WAWebPopoverContext.react").WDSPopoverController,{targetRef:s,popover:k.jsx(d("WAWebWDSTooltip.react").WDSHoverTooltip,{targetRef:"context",alignment:d("WAWebWDSTooltip.react").PopoverAlignment.Center,position:d("WAWebWDSTooltip.react").PopoverPosition.End,openingDelay:350,children:a})})]})}a.displayName=a.name+" [from "+f.id+"]";g.InlineActivityIndicatorType=n;g.NavBarItem=a}),98);
__d("WAWebBetaNavBarItem.react",["fbt","WAWebDrawerManager","WAWebExperimentIcon","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebExternalBetaOptIn"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn();a=a[0];if(!a)return null;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Beta)return;e(d("WAWebNavBarTypes").NavBarItems.Beta);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:d("WAWebSettingsConst").SettingsSteps.Help}),{transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS_HELP)};var f=h._("__JHASH__yB7zpfFvHyg__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:j.jsx(d("WAWebExperimentIcon").ExperimentIcon,{width:24,height:24}),title:f,text:f,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Beta,onClick:a});return f}a.displayName=a.name+" [from "+f.id+"]";g.BetaNavBarItem=a}),226);
__d("WAWebBizAdCreationNavBarItem.react",["fbt","WAWebAdCreationLogger","WAWebBizGatingUtils","WAWebBusinessAdvertiseOutlineIcon","WAWebChatlistUtils","WAWebMobilePlatforms","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebWamEnumLwiEntryPoint","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebServerGatedAdEntryPoint"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect;function a(a){var b=a.activeAccountInfo;a=a.isNavBarExpanded;var c=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_screen_icon",b),e=c[0];c=c[1];c=(c=c==null?void 0:c.content)!=null?c:h._("__JHASH__ITHmMGn1hwx__JHASH__");l(function(){b!=null&&d("WAWebAdCreationLogger").logAdCreationImpression(d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON,b!=="not-linked"&&b.hasFacebookPage)},[b]);var f=function(){b!=null&&d("WAWebChatlistUtils").handleAdCreation({adCreationUrlInput:{activeAccountInfo:b,sourceAdCreation:"whatsapp_smb_web_ad_creation_home_screen_icon"},lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_ICON}),d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ADS_CREATION)};c=k.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:k.jsx(d("WAWebBusinessAdvertiseOutlineIcon").BusinessAdvertiseOutlineIcon,{directional:!0,width:24,height:24}),text:c,title:c,testid:void 0,isExpanded:a,isActive:!1,onClick:f});return d("WAWebMobilePlatforms").isSMB()&&b!=null&&!e&&d("WAWebBizGatingUtils").shouldShowAdCreationIcon()?c:null}a.displayName=a.name+" [from "+f.id+"]";g.BizAdCreationNavBarItem=a}),226);
__d("WAWebQueryCtwaContextJob",["WABase64","WADeprecatedSendIq","WADeprecatedWapParser","WALogger","WAWap","WAWapDeprecatedSmaxID","WAWebBackendErrors","WAWebProtobufsE2E.pb","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["getCtwaContext error: code "," text ",""]);h=function(){return a};return a}function i(a){var b=a&&a.maybeAttrString("code");a=a&&a.maybeAttrString("text");d("WALogger").WARN(h(),b,a)}var j=new(c("WADeprecatedWapParser"))("ctwaContext",function(a){a.assertTag("iq");a.assertFromServer();var b=a.child("context");if(a.hasChild("error")){i(a.child("error"));throw c("err")("invalid response")}a={sourceUrl:b.child("source").child("url").contentString(),sourceId:b.child("source").child("id").contentString(),sourceType:b.child("source").child("type").contentString()};b.hasChild("headline")&&(a.title=b.child("headline").contentString());b.hasChild("body")&&(a.description=b.child("body").contentString());b.hasChild("thumbnail")&&(b.child("thumbnail").hasChild("url")&&(a.thumbnailUrl=b.child("thumbnail").child("url").contentString()),b.child("thumbnail").hasChild("bytes")&&(a.thumbnail=d("WABase64").encodeB64(b.child("thumbnail").child("bytes").contentBytes())),b.hasChild("video")?(a.mediaUrl=b.child("video").child("url").contentString(),a.mediaType=d("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.VIDEO):a.mediaType=d("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.IMAGE);return a});function a(a,b,c){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){var f;a=d("WAWebWidFactory").createWid(a).toString({legacy:!0});a=(f=d("WAWap")).wap("iq",{xmlns:"fb:thrift_iq",id:f.generateId(),type:"get",to:f.S_WHATSAPP_NET,smax_id:f.SMAX_ID(c("WAWapDeprecatedSmaxID").CtwaGetContext)},f.wap("account_number",null,a),f.wap("code",null,b),f.wap("expected_source_url",null,e));b=(yield d("WADeprecatedSendIq").deprecatedSendIq(a,j));if(b.success)return b.result;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b.errorCode)});return k.apply(this,arguments)}g["default"]=a}),98);
__d("WAWebBizQueryCtwaContextBridge",["Promise","WAWebQueryCtwaContextJob","err"],(function(a,b,c,d,e,f,g){var h;function a(a){var d=a.phone,e=a.sourceUrl;a=a.context;if(d==null||d===""||e==null||e===""||a==null||a==="")return(h||(h=b("Promise"))).reject(c("err")("Invalid params passed to fetchCtwaContextData"));d=c("WAWebQueryCtwaContextJob")(d,a,e);return d}g.fetchCtwaContextData=a}),98);
__d("WAWebBizToolsFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizToolsFlow.react").__setRef("WAWebBizToolsFlowLoadable").load());return a}),"BizToolsFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})},render:function(a,b){return i.jsx(a,{adsAccountInfo:b.adsAccountInfo,entryPoint:b.entryPoint})}});g.BizToolsFlowLoadable=d}),98);
__d("WAWebBizToolsNavBarItem.react",["fbt","WAWebBizGatingUtils","WAWebBizToolsFlow.react","WAWebBusinessProfileCollection","WAWebBusinessToolsIcon","WAWebBusinessToolsOutlineIcon","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebMobilePlatforms","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebUserPrefsMeUser","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumWebcNavbarItemLabel","react","useForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useMemo,m=b.useState;function a(a){var b=a.activeAccountInfo,e=a.activeNavBarItem,f=a.isNavBarExpanded,g=a.updateActiveNavBarItem;a=d("WAWebMobilePlatforms").isSMB();var i=l(function(){return d("WAWebUserPrefsMeUser").assertGetMeUser()},[]),j=m(!1),n=j[0],o=j[1];a&&void d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(i).then(function(){o(!0)});j=l(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(i)},[i]);var p=c("useForceUpdate")();d("useWAWebListener").useListener(j,"change:profileOptions",p);p=n&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(j);n=e===d("WAWebNavBarTypes").NavBarItems.BizTools?k.jsx(d("WAWebBusinessToolsIcon").BusinessToolsIcon,{directional:!0,width:26,height:26}):k.jsx(d("WAWebBusinessToolsOutlineIcon").BusinessToolsOutlineIcon,{directional:!0,width:26,height:26});j=function(){if(e===d("WAWebNavBarTypes").NavBarItems.BizTools)return;g(d("WAWebNavBarTypes").NavBarItems.BizTools);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebBizToolsFlow.react"),{adsAccountInfo:b,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_BUSINESS_TOOLS_TAB}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.BUSINESS_TOOLS)};var q=h._("__JHASH__Aowuf9H3z9F__JHASH__");n=k.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:n,text:q,title:q,testid:void 0,isExpanded:f,isActive:e===d("WAWebNavBarTypes").NavBarItems.BizTools,onClick:j});return a&&p&&d("WAWebBizGatingUtils").isBizToolsDrawerEnabled()?n:null}a.displayName=a.name+" [from "+f.id+"]";g.BizToolsNavBarItem=a}),226);
__d("WAWebBotCommandSuggestionResult.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={result:"_aopp",selected:"_aopq",commandHighlight:"_ap99",commandText:"_ap9a",desc:"_aopu",image:"_aot5"};b=a;g["default"]=b}),98);
__d("WAWebBotCommandSuggestionResult.react",["WAWebBotCommandSuggestionResult.scss","WAWebBotCommandSuggestions.react","WAWebClassnames","WAWebDetailImage.react","WAWebEmojiText.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.command,e=a.query,f=a.selected,g=a.imageWid,h=a.onMouseDown,j=a.onMouseEnter;a=a.onMouseUp;var k=b.name;b=b.description;var l=k.slice(0,e.length);k=k.slice(e.length);return i.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((e={},e[c("WAWebBotCommandSuggestionResult.scss").selected]=f,e[c("WAWebBotCommandSuggestionResult.scss").result]=!0,e)),onMouseDown:h,onMouseUp:a,onMouseEnter:j,children:[g!=null&&i.jsx("div",{className:c("WAWebBotCommandSuggestionResult.scss").image,children:i.jsx(d("WAWebDetailImage.react").DetailImage,{id:g,size:32})}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").commandText,text:d("WAWebBotCommandSuggestions.react").QUERY_TRIGGER}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").commandHighlight,text:l}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").commandText,text:k}),i.jsx(d("WAWebEmojiText.react").EmojiText,{className:c("WAWebBotCommandSuggestionResult.scss").desc,testid:void 0,ellipsify:!0,text:b})]})}a.displayName=a.name+" [from "+f.id+"]";g.BotCommandResult=a}),98);
__d("WAWebBotCommandSuggestions.react",["Lexical","WAWebBotCommandSuggestionResult.react","WAWebLexicalUtils","WAWebListSuggestionsPanel.react","react","useWAWebLexicalTypeAhead","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useMemo,m=b.useState,n="/",o=52,p=25;function a(a){var b,c=a.editor,e=a.kind,f=d("useWAWebModelValues").useOptionalModelValues(a.businessProfile,["id","commands"]);a=d("useWAWebModelValues").useOptionalModelValues(a.botProfile,["id","commands"]);var g=(b=f==null?void 0:f.commands)!=null?b:a==null?void 0:a.commands,h=(b=a==null?void 0:a.id)!=null?b:f==null?void 0:f.id;a=d("useWAWebLexicalTypeAhead").useTypeAhead(c,n,{boundary:!0,maxQueryLength:p});var i=a.query,r=a.replaceQuery,s=a.omitQuery;b=m(function(){return q(c)});var t=b[0],u=b[1];k(function(){return c.registerUpdateListener(function(){u(q(c))})},[c]);f=function(a,b){return j.jsx(d("WAWebBotCommandSuggestionResult.react").BotCommandResult,{command:a.command,query:a.query,selected:b,imageWid:h},a.itemKey)};a=function(a){a=a.command;r(""+n+a.name+" ")};b=function(){s()};var v=l(function(){return i==null||!g||t?null:g.filter(function(a){return a.name.toLowerCase().startsWith(i.toLowerCase())}).map(function(a,b){return{height:o,itemKey:a.name,contentKey:i,index:b,command:a,query:i,selectable:!0}})},[i,g,t]);return j.jsx(d("WAWebListSuggestionsPanel.react").ListSuggestionsPanel,{kind:e,editor:c,items:v,renderItem:f,onSelect:a,onDismiss:b})}a.displayName=a.name+" [from "+f.id+"]";function q(a){return a.getEditorState().read(function(){for(var a=d("WAWebLexicalUtils").textNodesIterator(d("Lexical").$getRoot()),b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(b){if(c>=a.length)break;e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e=e;if((e=e.getStyle())==null?void 0:e.includes("bot-command-text"))return!0}return!1})}g.QUERY_TRIGGER=n;g.BotCommandSuggestions=a}),98);
__d("WAWebBotFeatureNotAvailable.react",["fbt","WAWebBotPictogramIcon","WAWebBox.react","WAWebConfirmPopup.react","WAWebFlex.react","WAWebModal.react","WAWebModalManager","WAWebUISpacing","WAWebWDSText.react","react","useWAWebFocusOnMount"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={headerText:{textAlign:"x2b8uid",$$css:!0}};function a(){var a=function(){d("WAWebModalManager").ModalManager.close()},b=c("useWAWebFocusOnMount")(),e=j.jsx(d("WAWebFlex.react").FlexItem,{children:j.jsx(d("WAWebBotPictogramIcon").BotPictogramIcon,{width:112,height:112})}),f=h._("__JHASH__TTgfgYIgQRH__JHASH__");return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:a,type:d("WAWebModal.react").ModalTheme.Promote,ref:b,children:j.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[(a=d("WAWebUISpacing")).uiMargin.vertAuto,a.uiPadding.bottom16],children:[e,j.jsx(d("WAWebBox.react").Box,{xstyle:[k.headerText,a.uiMargin.horiz8,a.uiMargin.top16,a.uiMargin.bottom8],children:j.jsx(d("WAWebWDSText.react").WDSTextLarge,{weight:"bold",children:f})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebBotFrontendUtils",["WAWebCmd","WAWebComposeBoxActions","WAWebFindChatAction","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=d("WAWebWidFactory").createUserWid("13135550002@c.us");function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield d("WAWebFindChatAction").findOrCreateLatestChat(h,"metaBotChatListShortcut"));a=(yield d("WAWebCmd").Cmd.openChatFromUnread(b,a));if(!a)return;d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)});return i.apply(this,arguments)}g.MetaBotWid=h;g.openMetaBotChat=a}),98);
__d("WAWebWamEnumAdditionalCategoryType",[],(function(a,b,c,d,e,f){a=Object.freeze({META_AI_MODEL_BASE:1,META_AI_MODEL_PREMIUM:2});f.ADDITIONAL_CATEGORY_TYPE=a}),66);
__d("WAWebWamEnumBotDiscoveryPathType",[],(function(a,b,c,d,e,f){a=Object.freeze({CURATED_DISPLAY:1,SEARCH:2,VIEW_ALL:3,DEEPLINK_USER_SHARED:4});f.BOT_DISCOVERY_PATH_TYPE=a}),66);
__d("WAWebWamEnumBotEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({WA_CHAT:1,STATUS:2,NEW_CHAT:3,INVOKE:4,SHARED_AI:5,NOTIFICATION:6,BANNER:7,AI_CHATS_LIST_BUTTON:8,AI_CONTACT_ON_WA:9,DEEPLINK_USER_SHARED:10,DEEPLINK_QP:11,AI_SEARCH_CHATS_LIST:12,CHAT_INFO_PAGE:13,AI_VOICE:14,AI_CHAT_SHORTCUT:15,AI_IMAGINE_BOTTOM_SHEET:16,AI_HOME_PREVIEW:17,AI_SEARCH_CHATS_LIST_VOICE:18,AI_CHAT_THREAD_VOICE:19,AI_FAB_VOICE:20});f.BOT_ENTRY_POINT_TYPE=a}),66);
__d("WAWebBotJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumAdditionalCategoryType","WAWebWamEnumBotDiscoveryPathType","WAWebWamEnumBotEntryPointType","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumTsSurface"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({BotJourney:[4630,{actionType:[1,d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES],additionalCategory:[11,d("WAWebWamEnumAdditionalCategoryType").ADDITIONAL_CATEGORY_TYPE],aiDiscoveryTab:[4,a.TYPES.STRING],appSessionId:[2,a.TYPES.STRING],botDiscoveryPath:[8,d("WAWebWamEnumBotDiscoveryPathType").BOT_DISCOVERY_PATH_TYPE],botEntryPoint:[7,d("WAWebWamEnumBotEntryPointType").BOT_ENTRY_POINT_TYPE],botPersonaId:[5,a.TYPES.STRING],callRandomId:[13,a.TYPES.STRING],isMetaAiAssistant:[12,a.TYPES.BOOLEAN],isMetaAiCharacterBotChat:[9,a.TYPES.BOOLEAN],isUserCreatedAgent:[10,a.TYPES.BOOLEAN],uiSurface:[6,d("WAWebWamEnumTsSurface").TS_SURFACE]},[1,1,1],"regular"]},{BotJourney:[[[],["appSessionId","actionType","botEntryPoint"],[]]]});g.BotJourneyWamEvent=b}),98);
__d("WAWebBotLogging",["$InternalEnum","WAWebBotJourneyWamEvent","WAWebGetSharedSessionId","WAWebWamEnumBotEntryPointType","WAWebWamEnumChatFilterActionTypes"],(function(a,b,c,d,e,f,g){var h=b("$InternalEnum").Mirrored(["Agent","Shortcut"]),i=b("$InternalEnum").Mirrored(["View","Accept","Dismiss"]);function j(a){switch(a){case h.Agent:return d("WAWebWamEnumBotEntryPointType").BOT_ENTRY_POINT_TYPE.AI_CONTACT_ON_WA;case h.Shortcut:return d("WAWebWamEnumBotEntryPointType").BOT_ENTRY_POINT_TYPE.AI_CHATS_LIST_BUTTON}}function k(a){switch(a){case i.View:return d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_TOS_VIEW;case i.Accept:return d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_TOS_ACCEPT_CLICK;case i.Dismiss:return d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_TOS_DISMISS_CLICK}}function a(a){a=new(d("WAWebBotJourneyWamEvent").BotJourneyWamEvent)({appSessionId:d("WAWebGetSharedSessionId").getSharedSessionId(),actionType:d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.AI_CHAT_CLICK,botEntryPoint:j(a)});a.commit()}function c(a,b){b=new(d("WAWebBotJourneyWamEvent").BotJourneyWamEvent)({appSessionId:d("WAWebGetSharedSessionId").getSharedSessionId(),actionType:k(b),botEntryPoint:j(a)});b.commit()}g.BotEntryPointType=h;g.BotTosActionType=i;g.logAiChatClickBotJourneyEvent=a;g.logAiTosBotJourneyEvent=c}),98);
__d("WAWebBotSuggestions.react",["WAWebBotProfileCollection","WAWebUISpacing","WAWebUseBusinessProfile.react","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={container:{display:"x78zum5",position:"x10l6tqk",bottom:"xmgkm54",maxHeight:"x1nu74zi",overflowX:"x14aock7",whiteSpace:"xuxw1ft",width:"x19sv2k2",$$css:!0},pill:{fontSize:"x1f6kntn",lineHeight:"xdod15v",borderTopStartRadius:"xhw592a",borderTopEndRadius:"xwihvcr",borderBottomEndRadius:"x7wuybg",borderBottomStartRadius:"xb9tvrk",fontWeight:"xk50ysn",backgroundColor:"x1w7vc3g",cursor:"x1ypdohk",$$css:!0},emoji:{display:"x1rg5ohu",$$css:!0}};function a(a){var b=a.id,e=a.onPromptSelect;a=d("WAWebUseBusinessProfile.react").useBusinessProfile(b,["prompts"]);b=(b=(b=d("WAWebBotProfileCollection").BotProfileCollection.get(b))==null?void 0:b.prompts)!=null?b:a==null?void 0:a.prompts;return b==null||b.length===0?null:j.jsx("div",{className:(i||(i=c("stylex")))(k.container,d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.horiz20),children:b.map(function(a){return j.jsx(l,{prompt:a,onClick:function(){e(a.text)}},a.text)})})}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b=a.onClick;a=a.prompt;return j.jsxs("div",{onClick:b,className:(i||(i=c("stylex")))(k.pill,d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.start12,d("WAWebUISpacing").uiPadding.end16,d("WAWebUISpacing").uiMargin.horiz4),children:[j.jsx("span",{className:i(k.emoji,d("WAWebUISpacing").uiMargin.end4),children:a.emoji}),j.jsx("span",{children:a.text})]})}l.displayName=l.name+" [from "+f.id+"]";g.BotSuggestions=a}),98);
__d("WAWebUserPrefsEvents",["WATimeUtils","WAWebUserPrefsKeys","WAWebUserPrefsStore"],(function(a,b,c,d,e,f,g){var h=null;function i(){if(h!=null)return h;var a=parseInt(c("WAWebUserPrefsStore").getUser(d("WAWebUserPrefsKeys").UserPrefs.CagEventsAwarenessBannerFirstSeenTimestamp),10);Number.isNaN(a)||(h=d("WATimeUtils").castToUnixTime(a));return h}function a(){c("WAWebUserPrefsStore").setUser(d("WAWebUserPrefsKeys").UserPrefs.CagEventsAwarenessBannerFirstSeenTimestamp,d("WATimeUtils").unixTime())}function b(){var a=i();return a==null?d("WATimeUtils").unixTime():d("WATimeUtils").futureUnixTime(d("WATimeUtils").WEEK_SECONDS,a)}g.getCagEventsAwarenessBannerFirstSeenTimestamp=i;g.setCagEventsAwarenessBannerFirstSeenTimestamp=a;g.getCagEventsAwarenessBannerAutoDismissalExpiration=b}),98);
__d("WAWebCagEventsAwarenessBanner.react",["fbt","WAWebAnnouncementSpeakerIcon","WAWebConversationBanner.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebUISpacing","WAWebUimUie.react","WAWebUserPrefsEvents","WAWebWDSText.react","react","useWAWebTimeout"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0},announcementSpeaker:{color:"x1o6zcso",$$css:!0}};b=j.forwardRef(a);function a(a,b){a=a.onClose;d("WAWebUserPrefsEvents").getCagEventsAwarenessBannerFirstSeenTimestamp()||d("WAWebUserPrefsEvents").setCagEventsAwarenessBannerFirstSeenTimestamp();d("useWAWebTimeout").useAlarm(a,d("WAWebUserPrefsEvents").getCagEventsAwarenessBannerAutoDismissalExpiration(),{immediate:!0,isGlobal:!0});return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"CagEventsAwarenessBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:k.banner,onClose:a,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end18,children:j.jsx(d("WAWebAnnouncementSpeakerIcon").AnnouncementSpeakerIcon,{iconXstyle:k.announcementSpeaker,width:40,height:40})}),j.jsx(c("WAWebFlexItem.react"),{children:j.jsxs(d("WAWebWDSText.react").WDSTextMuted,{as:"span",children:[h._("__JHASH__gzV6bKZWdYb__JHASH__")," ",j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getEventsLearnMoreFaqUrl(),children:c("WAWebFbtCommon")("Learn more")})]})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.CagEventsAwarenessBanner=b}),226);
__d("WAWebChatAutoMutedConfirmation.react",["fbt","WAWebButton.react","WAWebFlex.react","WAWebFlexItem.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useEffect,n={chatAutoMutedConfirmation:{backgroundColor:"x1bmpntp",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xdvm3u5",boxShadow:"xcj5v2p",textAlign:"x2b8uid","::before_position":"x1hmns74","::before_start":"x1mhyesy","::before_left":null,"::before_right":null,"::before_end":"x1ryaae9","::before_top":"x1y3wzot","::before_bottom":"xhq5o37","::before_zIndex":"xvi4grz","::before_pointerEvents":"xkk1bqk","::before_content":"x1cpjm7i","::before_boxShadow":"x183592",$$css:!0},button:{display:"x1rg5ohu",$$css:!0}};function a(a){var b,e=a.onOK,f=a.onOpen;a=a.onUnmute;m(function(){f==null?void 0:f()},[f]);return l.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[n.chatAutoMutedConfirmation,(b=d("WAWebUISpacing")).uiMargin.top0,b.uiPadding.top24,b.uiPadding.bottom20,b.uiPadding.horiz20],testid:void 0,children:[l.jsx(c("WAWebFlexItem.react"),{grow:0,shrink:0,basis:"auto",children:h._("__JHASH__BPKVI2sNlut__JHASH__")}),l.jsxs(c("WAWebFlexItem.react"),{grow:0,shrink:0,basis:"auto",xstyle:d("WAWebUISpacing").uiMargin.top12,children:[l.jsx("div",{className:(j||(j=c("stylex")))(n.button,d("WAWebUISpacing").uiMargin.end8),children:l.jsx(c("WAWebButton.react"),{type:"plain-white",onClick:a,children:h._("__JHASH__B0dRoUbAgSZ__JHASH__")})}),l.jsx("div",{className:"x1rg5ohu",children:l.jsx(c("WAWebButton.react"),{type:"plain-white",onClick:e,children:h._("__JHASH__NhMYAPXg-aK__JHASH__")})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebChatlistHeader.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={listUser:"_ak0w",commerceIconContainer:"_ak0y",listControls:"_ak0z",shopsIcon:"_ak0x"};b=a;g["default"]=b}),98);
__d("WAWebWamEnumWebcMenuType",[],(function(a,b,c,d,e,f){a=Object.freeze({THREADS_SCREEN_CLICK:1,CHAT_SCREEN_CLICK:2,SETTINGS_SCREEN_CLICK:3});f.WEBC_MENU_TYPE=a}),66);
__d("WAWebWamEnumWebcMenuItemLabel",[],(function(a,b,c,d,e,f){a=Object.freeze({NEW_GROUP:1,CREATE_A_ROOM:2,PROFILE:3,CATALOG:4,ARCHIVED:5,STARRED:6,LABELS:7,SETTINGS:8,LOG_OUT:9,CONTACT_INFO:10,SELECT_MESSAGES:11,CLOSE_CHAT:12,MUTE_NOTIFICATIONS:13,CLEAR_MESSAGES:14,DELETE_CHAT:15,REPORT_BUSINESS:16,BLOCK:17,SETTINGS_NOTIFICATIONS:18,SETTINGS_THEME:19,SETTINGS_CHAT_WALLPAPER:20,SETTINGS_BLOCKED:21,SETTINGS_HELP:22,OPEN:23,CLOSE:24,BUSINESS_TOOLS:25});f.WEBC_MENU_ITEM_LABEL=a}),66);
__d("WAWebWebcMenuWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcMenuItemLabel","WAWebWamEnumWebcMenuType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({WebcMenu:[2504,{webcMenuAction:[2,d("WAWebWamEnumWebcMenuType").WEBC_MENU_TYPE],webcMenuItemLabel:[3,d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL]},[1,1,1],"regular"]},{WebcMenu:[]});g.WebcMenuWamEvent=a}),98);
__d("WAWebChatlistHeaderDropdownLogEvents",["WAWebWamEnumWebcMenuType","WAWebWebcMenuWamEvent"],(function(a,b,c,d,e,f,g){function a(a){a=new(d("WAWebWebcMenuWamEvent").WebcMenuWamEvent)({webcMenuAction:d("WAWebWamEnumWebcMenuType").WEBC_MENU_TYPE.THREADS_SCREEN_CLICK,webcMenuItemLabel:a});a.commit()}g["default"]=a}),98);
__d("WAWebManageAdsDropdownItem.react",["fbt","WAWebAdCreationLogger","WAWebChatlistUtils","WAWebDropdownItem.react","WAWebWamEnumManageAdsEntryPoint","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect;function a(a){var b=a.activeAccountInfo;l(function(){d("WAWebAdCreationLogger").logManageAdsEntryPointImpression(d("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.WEB_OVERFLOW_MENU)},[b]);a=function(a){a.preventDefault(),d("WAWebChatlistUtils").handleManageAds(b,"whatsapp_smb_web_manage_ads_home_menu_item",d("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.WEB_OVERFLOW_MENU)};return k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:a,children:h._("__JHASH__wHgJuCH_s1S__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebOrderManagementFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizOrderManagementFlow.react").__setRef("WAWebOrderManagementFlowLoadable").load());return a}),"OrderManagementFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});e=d;g["default"]=e}),98);
__d("WAWebQuickRepliesFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizQuickRepliesFlow.react").__setRef("WAWebQuickRepliesFlowLoadable").load());return a}),"QuickRepliesFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.QuickRepliesFlowLoadable=d}),98);
__d("WAWebChatlistHeaderDropdown.react",["fbt","WAWebABProps","WAWebAdCreationDropdownItem.react","WAWebArchivedFlowLoadable","WAWebBizEntryPoint","WAWebBizGatingUtils","WAWebBizShopsManagePopup.react","WAWebBizToolsFlowLoadable","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebCatalogManagementFlowLoadable","WAWebChatCollection","WAWebChatFolderOpenWamEvent","WAWebChatMessageSearch","WAWebChatSearchFilters","WAWebChatlistHeaderDropdownLogEvents","WAWebCommunityCreationFlowMetricUtils","WAWebCommunityDailyUtils","WAWebCommunityFlowLoadable","WAWebCommunityGatingUtils","WAWebConfirmLogoutModal.react","WAWebConfirmPopup.react","WAWebConnModel","WAWebContactCollection","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDropdown.react","WAWebDropdownItem.react","WAWebKeyboardTabUtils","WAWebLabelFlowLoadable","WAWebListsGatingUtils","WAWebLockScreenResolver","WAWebManageAdsDropdownItem.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebMsgCollection","WAWebNavBarTypes","WAWebNewCommunityInfoDrawer.react","WAWebNewGroupFlowLoadable","WAWebOrderDetailsActionCategory","WAWebOrderDetailsActionsSmbWamEvent","WAWebOrderManagementFlowLoadable","WAWebProductCatalogMetaLinkingGatingUtils","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebQuickRepliesFlowLoadable","WAWebSettingsFlowLoadable","WAWebSettingsGetters","WAWebShopsLog","WAWebStarredDrawerLoadable","WAWebStarredMsgCollection","WAWebTextStatusCollection","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUpdateUnreadChatAction","WAWebUserPrefsMeUser","WAWebUserPrefsScreenLock","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumCommunityCreationCurrentScreenType","WAWebWamEnumCommunityCreationEntrypointType","WAWebWamEnumLwiEntryPoint","WAWebWamEnumOrderDetailsCreationAction","WAWebWamEnumShopsManagementAction","WAWebWamEnumWebcMenuItemLabel","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWamUtils","asyncToGeneratorRuntime","gkx","react","stylex","useWAWebDesktopUpsellWamImpression","useWAWebServerGatedAdEntryPoint","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useEffect,n={communityTabItem:{"@media screen and (min-width: 961px)_display":"x134i773",$$css:!0},desktopUpsellCtaHorizontalRule:{borderTopStyle:"x13fuv20",borderEndStyle:"xd10rxx",borderBottomStyle:"x1sy0etr",borderStartStyle:"x17r0tee",borderTopWidth:"x178xt8z",borderTopColor:"xyj1x25",$$css:!0}};function o(){d("WAWebBusinessProfileUtils").goToCommerceManager(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMaybeMeUser())),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_IN_CATALOG_SETTING)}function p(){c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.LOG_OUT),d("WAWebWamUtils").forceFlushAllWamAndQplBuffers(),d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebConfirmLogoutModal.react"),{checkUnsent:!0}))}function q(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebArchivedFlowLoadable").ArchivedFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}})),new(d("WAWebChatFolderOpenWamEvent").ChatFolderOpenWamEvent)({folderType:"Archive"}).commit(),c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.ARCHIVED)}function r(){var a=d("WAWebUserPrefsMeUser").getMaybeMeUser(),b=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(a),e=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(a);a=d("WAWebContactCollection").ContactCollection.assertGet(a);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:b,profilePicThumb:e,contact:a,conn:d("WAWebConnModel").Conn,isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE});c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.PROFILE)}function s(){new(d("WAWebOrderDetailsActionsSmbWamEvent").OrderDetailsActionsSmbWamEvent)({orderDetailsCreationAction:d("WAWebWamEnumOrderDetailsCreationAction").ORDER_DETAILS_CREATION_ACTION.VIEW_ORDER_DETAILS_HUB,actionCategory:String(c("WAWebOrderDetailsActionCategory").ORDER_DETAILS_MANAGEMENT),orderDetailEntryPoint:String(c("WAWebBizEntryPoint").FROM_BUSINESS_TOOLS),hasCatalog:d("WAWebBusinessProfileUtils").hasCatalog(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMaybeMeUser()))}).commit(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebOrderManagementFlowLoadable"),{isInitialStep:!0}))}function t(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebLabelFlowLoadable").LabelFlowLoadable,{isInitialStep:!0})),c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.LABELS)}function u(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebStarredDrawerLoadable").StarredDrawerLoadable,{starredMsgs:d("WAWebStarredMsgCollection").AllStarredMsgsCollection,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},headerType:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.LARGE}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?"pop-drawer-fast":"drawer-left"}),c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.STARRED)}function v(){var a=d("WAWebChatCollection").ChatCollection.filter(function(a){if(!a.shouldAppearInList)return!1;var b=d("WAWebChatMessageSearch").matchFilter(a,{kind:d("WAWebChatSearchFilters").SearchFilters.UNREAD});a=a.archive;return b&&!a});a.forEach(function(a){var b=!1;d("WAWebUpdateUnreadChatAction").markUnread(a,b,!1)})}function w(){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._("__JHASH__fuuxDeu3oIw__JHASH__"),onOK:function(){d("WAWebModalManager").ModalManager.close(),v()},onCancel:function(){d("WAWebModalManager").ModalManager.close()}}))}function x(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebNewCommunityInfoDrawer.react"),{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),d("WAWebCommunityCreationFlowMetricUtils").UiCommunityCreationAction.startSession(d("WAWebWamEnumCommunityCreationEntrypointType").COMMUNITY_CREATION_ENTRYPOINT_TYPE.CHATS_TAB),d("WAWebCommunityCreationFlowMetricUtils").UiCommunityCreationAction.enter(d("WAWebWamEnumCommunityCreationCurrentScreenType").COMMUNITY_CREATION_CURRENT_SCREEN_TYPE.CHATS_TAB)}function y(){d("WAWebCommunityDailyUtils").incrementCommunityTabEvent(d("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS_VIA_CONTEXT_MENU),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})}function z(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},onCreateGroup:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield a,d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()});return function(b){return a.apply(this,arguments)}}(),isSubFlow:!1})),c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.NEW_GROUP)}function A(){d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebBizShopsManagePopup.react"),{onViewShopClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_VIEW_SHOPS_IN_SHOPS_SETTING)},onCommerceManagerClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_IN_SHOPS_SETTING)},onCancelClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_IN_SHOPS_SETTING)}})),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_SHOPS_SETTING)}function B(){var a=d("WAWebMsgCollection").MsgCollection.hasUnsentMessages();a?d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._("__JHASH__UATx5IE1871__JHASH__"),onOK:function(){void d("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()},okText:h._("__JHASH__R7KgpC_DN6p__JHASH__"),onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:h._("__JHASH__JomY4EcHzcJ__JHASH__"),children:h._("__JHASH__xiQMrcGTdr2__JHASH__")})):void d("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()}function C(){return!d("WAWebConnModel").Conn.isSMB?!1:d("WAWebBusinessProfileUtils").hasShop(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMaybeMeUser()))}function D(a){a.preventDefault();if(C()){a=d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").isShopBanned(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMaybeMeUser()));d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._("__JHASH__fFaOVdV139l__JHASH__"),onOK:o,okText:h._("__JHASH__5riWR6qyguF__JHASH__"),onCancel:function(){d("WAWebModalManager").ModalManager.close(),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_IN_CATALOG_SETTING)},children:a?h._("__JHASH__i4ugKplCstV__JHASH__"):h._("__JHASH__mmVY0Ezbj1M__JHASH__")}));d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CATALOG_SETTING)}else d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:"ToolsMenu"}}}),d("WAWebCatalogManagementFlowLoadable").openCatalogManagementFlow(null,d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_SETTINGS,!0),c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.CATALOG)}function E(){return C()?h._("__JHASH__i8PGpl-HWvL__JHASH__"):h._("__JHASH__Uk6UVgyKYUF__JHASH__")}function F(a){a.preventDefault(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebQuickRepliesFlowLoadable").QuickRepliesFlowLoadable,{isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})}e=l.forwardRef(a);function a(a,b){var e=babelHelpers["extends"]({},a);a=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);a=a[0];var f=e.dirX||d("WAWebDropdown.react").DirX.LEFT,g=e.dirY||d("WAWebDropdown.react").DirY.BOTTOM,i=e.chatListCollapsed,k=e.isMultiSelectMode,o=e.activeAccountInfo;m(function(){c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.OPEN)},[]);var v=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_menu_item",o),G=v[0];v=v[1];var H=function(){c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.BUSINESS_TOOLS),d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&e.updateActiveNavBarItem!=null&&e.updateActiveNavBarItem(d("WAWebNavBarTypes").NavBarItems.BizTools),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:o,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_CONVERSATIONS}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?"pop-drawer-fast":"drawer-left"})},I=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},activeAccountInfo:o}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),c("WAWebChatlistHeaderDropdownLogEvents")(d("WAWebWamEnumWebcMenuItemLabel").WEBC_MENU_ITEM_LABEL.SETTINGS)},J=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:z,children:h._("__JHASH__6EroHqWSWmZ__JHASH__")}),K=d("WAWebCommunityGatingUtils").communitiesCreationEnabled()?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:x,children:h._("__JHASH__KIkd5AW9_IK__JHASH__")}):null,L=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,xstyle:n.communityTabItem,action:y,children:h._("__JHASH__A43R5wo4oR8__JHASH__")}),M=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:u,children:h._("__JHASH__5q5nsTsqpDh__JHASH__")}),N,O;d("WAWebListsGatingUtils").isListsEnabled()?N=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:t,children:h._("__JHASH__8Y8j6BjvmKy__JHASH__")}):d("WAWebBizGatingUtils").canEditLabelAssociation()&&(O=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:t,children:h._("__JHASH__QYeBWxOLrog__JHASH__")}));var P=d("WAWebABProps").getABPropConfigValue("multi_select_from_chat_list");P=P&&!d("WAWebConnModel").Conn.isSMB&&!Boolean(i)&&!k?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:e.startMultiSelect,children:h._("__JHASH__lQXMYzTlNZ2__JHASH__")}):null;i=c("gkx")("26258")?null:l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:w,children:h._("__JHASH__9aBOiUDKyZe__JHASH__")});k=d("WAWebConnModel").Conn.isSMB&&d("WAWebBizGatingUtils").orderManagementEnabled()&&l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:s,children:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._("__JHASH__aSJVxxplgNS__JHASH__"):h._("__JHASH__adN1yKPXtK1__JHASH__")});H=d("WAWebBizGatingUtils").isBizToolsDrawerEnabled()?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:H,children:String(h._("__JHASH__CQ-A7XcVxvl__JHASH__"))}):null;var Q,R=d("WAWebUserPrefsMeUser").getMaybeMeUser();R&&(Q=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(R));R=d("WAWebConnModel").Conn.isSMB&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(Q)&&!d("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf()?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:D,children:E()}):null;var S=d("WAWebConnModel").Conn.isSMB?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:r,children:h._("__JHASH__SRWKcs428BE__JHASH__")}):null,T=C()?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:A,children:d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").isShopBanned(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMaybeMeUser()))?h._("__JHASH__VaFslU7GScE__JHASH__"):h._("__JHASH__dOitml6Yl_0__JHASH__")}):null,U=d("WAWebBizGatingUtils").quickRepliesManagementEnabled()?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:F,children:h._("__JHASH__f3OO6H5v91x__JHASH__")}):null,V=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("chatlist_dropdown"),W=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformAwareCTACheckSynchronous();V=V&&W;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:V===!0,source:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.CHATLIST_DROPDOWN});W=V===!0?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl(d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.CHATLIST_DROPDOWN)},theme:d("WAWebDropdownItem.react").ThemeOptions.COMPACT,children:d("WAWebDesktopUpsellCommonStrings").getChatlistDropdownBtnLabel()}):null;V=o!=null&&!G&&d("WAWebBizGatingUtils").shouldShowAdCreationDropdown()?l.jsx(c("WAWebAdCreationDropdownItem.react"),{adCreationUrlInput:{sourceAdCreation:"whatsapp_smb_web_ad_creation_home_menu_item",activeAccountInfo:o},ctaText:v==null?void 0:v.content,lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_HOME_SCREEN_OVERFLOW_MENU_ITEM}):null;G=o!=null&&o!=="not-linked"&&d("WAWebBizGatingUtils").shouldShowManageAdsDropdown(o)?l.jsx(c("WAWebManageAdsDropdownItem.react"),{activeAccountInfo:o}):null;v=null;d("WAWebMiscGatingUtils").screenLockFeatureSupported()&&d("WAWebUserPrefsScreenLock").getScreenLockEnabled()&&(v=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:B,children:h._("__JHASH__g_MK-7Vvh8k__JHASH__")}));var X=v==null?l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:p,children:h._("__JHASH__3n1bF_cZdZK__JHASH__")}):null,Y=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:q,children:h._("__JHASH__8AB9jeM6fYu__JHASH__")});I=l.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:I,testid:void 0,children:h._("__JHASH__AEGPaJYSERs__JHASH__")});var Z=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();return l.jsxs(d("WAWebDropdown.react").Dropdown,{ref:b,type:d("WAWebUIRefreshGatingUtils").chatListPanelRefreshEnabled()?d("WAWebDropdown.react").MenuType.Dropdown:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:f,dirY:g,style:e.style,testid:void 0,children:[H,J,!Z&&K,!Z&&L,!Z&&S,T,V,G,R,k,!a&&Y,U,M,P,N,O,i,!d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&I,v,X,W!=null?l.jsxs(l.Fragment,{children:[l.jsx("hr",{className:(j||(j=c("stylex")))([n.desktopUpsellCtaHorizontalRule,d("WAWebUISpacing").uiMargin.vert4,d("WAWebUISpacing").uiMargin.horiz1])}),W]}):null]},"ChatlistHeader")}a.displayName=a.name+" [from "+f.id+"]";a=e;g["default"]=a}),226);
__d("WAWebCommunityUnreadOutlineIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="community-unread-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M20.5341 7.96681C20.6876 7.99133 20.8434 8.00391 21 8.00391C21.8 8.00391 22.56 7.68391 23.12 7.12391C23.68 6.56391 24 5.79391 24 5.00391C24 4.21391 23.68 3.44391 23.12 2.88391C22.6649 2.42885 22.0712 2.13227 21.4408 2.03709C21.2872 2.01257 21.1314 2 20.9749 2C20.1849 2 19.4149 2.32 18.8549 2.88C18.2949 3.44 17.9749 4.21 17.9749 5C17.9749 5.79 18.2949 6.56 18.8549 7.12C19.3099 7.57505 19.9036 7.87163 20.5341 7.96681Z",fill:"#009588"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0835 9.33378C15.0262 9.43327 14.9641 9.52971 14.8977 9.6228C14.611 10.0244 14.2427 10.3637 13.8168 10.6166C13.2851 10.9325 12.6638 11.1138 12 11.1138C11.3362 11.1138 10.7148 10.9325 10.1831 10.6166C9.75728 10.3637 9.38894 10.0244 9.10229 9.6228C9.03584 9.52971 8.97378 9.43327 8.91642 9.33378C8.61617 8.81306 8.44443 8.20878 8.44443 7.56378C8.44443 7.37342 8.45939 7.18651 8.4882 7.00417C8.75657 5.30561 10.2267 4.00378 12 4.00378C13.7733 4.00378 15.2434 5.30561 15.5117 7.00417C15.5406 7.18651 15.5555 7.37342 15.5555 7.56378C15.5555 8.20878 15.3838 8.81306 15.0835 9.33378ZM10.4444 7.56378C10.4444 6.70142 11.1441 6.00378 12 6.00378C12.8558 6.00378 13.5555 6.70142 13.5555 7.56378C13.5555 8.41882 12.8632 9.11378 12 9.11378C11.1368 9.11378 10.4444 8.41882 10.4444 7.56378Z",fill:"currentColor"}),j.jsx("path",{d:"M22.222 9.36134C21.8195 9.47847 21.3983 9.53976 20.9695 9.53976C19.7845 9.53976 18.6295 9.05976 17.7895 8.21976C17.6482 8.07844 17.517 7.9282 17.3967 7.7704C17.0772 8.2088 16.8889 8.74877 16.8889 9.33378C16.8889 9.57386 16.9206 9.80661 16.9801 10.028C17.1343 10.6023 17.4753 11.1005 17.9339 11.453C18.2894 11.7262 18.7156 11.9119 19.1802 11.9775C19.3028 11.9948 19.4281 12.0038 19.5555 12.0038C20.1263 12.0038 20.6553 11.8239 21.089 11.5179C21.7674 11.0393 22.213 10.252 22.222 9.36134Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00888 18.201C6.10431 18.3799 6.22765 18.5441 6.37092 18.6766C6.58615 18.8758 6.84632 19.0038 7.12434 19.0038H16.8756C17.1536 19.0038 17.4138 18.8758 17.629 18.6766C17.7723 18.5441 17.8956 18.3799 17.9911 18.2011C18.1198 17.9597 18.1978 17.6913 18.2052 17.4373C18.22 16.9329 18.243 15.9379 18.183 15.4956C18.1563 15.2982 18.1097 15.1148 18.0492 14.9459C17.9768 14.7442 17.882 14.5635 17.7716 14.4015C17.553 14.0807 17.2731 13.8334 16.9851 13.6423C16.951 13.6197 16.9168 13.5979 16.8826 13.5769C16.4206 13.2926 15.9039 13.1155 15.4716 12.9903C15.0969 12.8818 14.6503 12.7731 14.1429 12.6861C13.5149 12.5784 12.7937 12.5039 12 12.5039C11.2062 12.5039 10.485 12.5784 9.85702 12.6861C9.34961 12.7731 8.90306 12.8818 8.52831 12.9903C8.09602 13.1155 7.57933 13.2926 7.11736 13.5769C7.08314 13.5979 7.04895 13.6197 7.01487 13.6423C6.72688 13.8334 6.44698 14.0807 6.22835 14.4015C6.11792 14.5635 6.02312 14.7442 5.95079 14.9459C5.89021 15.1148 5.84367 15.2982 5.81691 15.4956C5.75694 15.9379 5.77992 16.9329 5.79472 17.4373C5.80217 17.6913 5.88011 17.9597 6.00888 18.201ZM9.08457 14.9114C9.78078 14.7098 10.7893 14.5039 12 14.5039C13.2107 14.5039 14.2192 14.7098 14.9154 14.9114C15.2917 15.0204 15.6033 15.138 15.8345 15.2802C16.0575 15.4175 16.1351 15.5334 16.1666 15.6211C16.1816 15.6629 16.1938 15.7102 16.2012 15.7643C16.2005 15.7595 16.2007 15.7634 16.2015 15.7772C16.2037 15.8138 16.2098 15.9197 16.2144 16.1179C16.22 16.3529 16.2222 16.642 16.2222 16.9428C16.2221 17.1247 16.2213 17.0852 16.2199 17.0224C16.2184 16.9516 16.2162 16.8513 16.2138 17.0038H7.78617C7.78379 16.8513 7.7816 16.9516 7.78005 17.0224C7.77867 17.0852 7.77781 17.1247 7.77778 16.9428C7.77773 16.642 7.77998 16.3529 7.78551 16.1179C7.79017 15.9199 7.79627 15.8141 7.79839 15.7774C7.7992 15.7635 7.79943 15.7595 7.79878 15.7643C7.80611 15.7102 7.81839 15.6629 7.83339 15.6211C7.86481 15.5334 7.94245 15.4175 8.16548 15.2802C8.39668 15.138 8.70827 15.0204 9.08457 14.9114Z",fill:"currentColor"}),j.jsx("path",{d:"M19.9934 16.9106L19.992 17.0038C19.9887 17.2237 19.985 17.3963 19.9822 17.4894C19.9692 17.9336 19.8643 18.629 19.6869 19.0038H22.6608C23.3769 19.0038 23.9744 17.1573 23.9908 16.4282C23.9937 16.2968 23.9969 16.2363 23.9987 16.2035C23.9998 16.1825 24.0003 16.1729 23.9998 16.1633C23.9993 16.1551 23.9981 16.147 23.9958 16.1319C23.9919 16.1062 23.985 16.0603 23.9736 15.9597C23.8921 15.2376 23.4788 14.7135 23.0245 14.3634C22.5875 14.0265 22.0691 13.8126 21.6087 13.6804L21.5915 13.6755L21.5813 13.6726C21.5228 13.6561 21.4627 13.64 21.401 13.6243C20.8883 13.4937 20.2632 13.3928 19.5555 13.3928L19.5023 13.393C19.4137 13.3936 19.3264 13.3958 19.2405 13.3995C19.355 13.5674 19.4612 13.7492 19.5555 13.9458C19.5647 13.9649 19.5738 13.9843 19.5828 14.0037C19.6332 14.1132 19.68 14.2272 19.7226 14.3458C19.8237 14.6277 19.9007 14.932 19.9447 15.2568C19.9506 15.3 19.9559 15.3508 19.9606 15.4079C20.0077 15.972 20.0036 16.2428 19.9934 16.9106Z",fill:"currentColor"}),j.jsx("path",{d:"M7.01988 10.028C7.07937 9.80661 7.1111 9.57386 7.1111 9.33378C7.1111 8.65749 6.85934 8.0414 6.44443 7.57283C5.9558 7.02101 5.2409 6.67378 4.44444 6.67378C2.97168 6.67378 1.77777 7.86103 1.77777 9.33378C1.77777 10.2357 2.22555 11.0343 2.91093 11.5179C3.34469 11.8239 3.87362 12.0038 4.44444 12.0038C4.5718 12.0038 4.6971 11.9948 4.8197 11.9775C5.28435 11.9119 5.71054 11.7262 6.06606 11.453C6.52463 11.1005 6.86561 10.6023 7.01988 10.028Z",fill:"currentColor"}),j.jsx("path",{d:"M2.41872 13.6726C2.47715 13.6561 2.53726 13.64 2.599 13.6243C3.11171 13.4937 3.73676 13.3928 4.44446 13.3928L4.49762 13.393C4.58626 13.3936 4.67357 13.3958 4.7595 13.3995C4.64492 13.5674 4.53872 13.7492 4.44444 13.9458C4.43524 13.9649 4.42615 13.9843 4.41718 14.0037C4.36671 14.1132 4.31992 14.2271 4.27738 14.3457C4.17628 14.6277 4.09928 14.932 4.05525 15.2568C4.04938 15.3 4.04409 15.3508 4.03932 15.4079C3.99221 15.972 3.99634 16.2427 4.00653 16.9106L4.00795 17.0038C4.01127 17.2237 4.01498 17.3963 4.01771 17.4894C4.03074 17.9336 4.13562 18.629 4.31303 19.0038H1.33916C0.623062 19.0038 0.0256194 18.1573 0.00922762 17.4282C2.84743e-05 17.0191 -0.011738 16.297 0.026369 15.9597C0.107939 15.2376 0.521192 14.7135 0.975466 14.3634C1.41245 14.0265 1.9309 13.8126 2.39128 13.6804L2.40848 13.6755L2.41872 13.6726Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CommunityUnreadOutlineIcon=a}),98);
__d("WAWebCommunityTabIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="community-tab";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M19.992 17C20.0031 16.2628 20.0099 15.9937 19.9606 15.4041C19.9559 15.347 19.9506 15.2962 19.9447 15.253C19.9007 14.9282 19.8237 14.6238 19.7226 14.3419C19.68 14.2233 19.6332 14.1094 19.5828 13.9999C19.5738 13.9805 19.5647 13.9611 19.5555 13.942C19.4612 13.7454 19.355 13.5636 19.2404 13.3956C19.3264 13.392 19.4137 13.3898 19.5023 13.3892L19.5555 13.389C20.2632 13.389 20.8883 13.4899 21.401 13.6205C21.4627 13.6362 21.5228 13.6523 21.5813 13.6688L21.5915 13.6717L21.6087 13.6766C22.069 13.8088 22.5875 14.0227 23.0245 14.3595C23.4788 14.7097 23.8921 15.2338 23.9736 15.9559C24.0117 16.2932 24 16.0153 23.9908 16.4244C23.9744 17.1535 23.3769 19 22.6608 19H19.6869C19.8643 18.6252 19.9692 17.9298 19.9822 17.4856C19.985 17.3925 19.9887 17.2199 19.992 17Z",fill:"currentColor"}),j.jsx("path",{d:"M2.41872 13.6688C2.47715 13.6524 2.53726 13.6362 2.599 13.6205C3.11171 13.49 3.73676 13.389 4.44446 13.389L4.49762 13.3892C4.58626 13.3899 4.67357 13.3921 4.7595 13.3957C4.64492 13.5637 4.53872 13.7455 4.44444 13.942C4.43524 13.9612 4.42615 13.9805 4.41718 14C4.36671 14.1094 4.31992 14.2234 4.27738 14.342C4.17628 14.6239 4.09928 14.9283 4.05525 15.253C4.04938 15.2963 4.04409 15.347 4.03932 15.4041C3.99008 15.9938 3.99682 16.2629 4.00795 17C4.01127 17.22 4.01498 17.3926 4.01771 17.4857C4.03074 17.9298 4.13562 18.6252 4.31303 19H1.33916C0.623061 19 0.0256195 18.1535 0.00922726 17.4245C2.95136e-05 17.0154 -0.0117388 16.2932 0.0263682 15.9559C0.107939 15.2339 0.521192 14.7098 0.975466 14.3596C1.41245 14.0228 1.9309 13.8088 2.39128 13.6766L2.40848 13.6717L2.41872 13.6688Z",fill:"currentColor"}),j.jsx("path",{d:"M15.0834 9.33C15.0261 9.42949 14.964 9.52593 14.8976 9.61901C14.6109 10.0206 14.2426 10.3599 13.8167 10.6129C13.285 10.9287 12.6637 11.11 11.9999 11.11C11.3361 11.11 10.7147 10.9287 10.183 10.6129C9.75719 10.3599 9.38885 10.0206 9.10219 9.61901C9.03575 9.52593 8.97369 9.42949 8.91633 9.33C8.61608 8.80927 8.44434 8.20499 8.44434 7.56C8.44434 7.36964 8.4593 7.18272 8.48811 7.00038C8.75647 5.30182 10.2266 4 11.9999 4C13.7732 4 15.2433 5.30182 15.5117 7.00038C15.5405 7.18272 15.5554 7.36964 15.5554 7.56C15.5554 8.20499 15.3837 8.80927 15.0834 9.33Z",fill:"currentColor"}),j.jsx("path",{d:"M7.01994 10.0243C7.07943 9.80287 7.11115 9.57012 7.11115 9.33004C7.11115 8.65375 6.8594 8.03766 6.44449 7.56909C5.95586 7.01727 5.24095 6.67004 4.44449 6.67004C2.97174 6.67004 1.77783 7.85729 1.77783 9.33004C1.77783 10.232 2.22561 11.0306 2.91099 11.5142C3.34475 11.8202 3.87368 12 4.44449 12C4.57186 12 4.69716 11.9911 4.81976 11.9738C5.28441 11.9082 5.7106 11.7225 6.06612 11.4492C6.52468 11.0968 6.86567 10.5986 7.01994 10.0243Z",fill:"currentColor"}),j.jsx("path",{d:"M17.934 11.4493C18.2895 11.7225 18.7157 11.9082 19.1803 11.9738C19.3029 11.9911 19.4282 12 19.5556 12C20.1264 12 20.6553 11.8202 21.0891 11.5141C21.7745 11.0306 22.2222 10.232 22.2222 9.33004C22.2222 7.85729 21.0283 6.67004 19.5556 6.67004C18.7591 6.67004 18.0442 7.01727 17.5556 7.56909C17.1407 8.03766 16.8889 8.65375 16.8889 9.33004C16.8889 9.57012 16.9206 9.80287 16.9801 10.0243C17.1344 10.5986 17.4754 11.0968 17.934 11.4493Z",fill:"currentColor"}),j.jsx("path",{d:"M6.37097 18.6728C6.22771 18.5403 6.10436 18.3762 6.00893 18.1973C5.88016 17.9559 5.80223 17.6876 5.79477 17.4335C5.77998 16.9291 5.757 15.9342 5.81696 15.4918C5.84373 15.2944 5.89027 15.111 5.95085 14.9421C6.02317 14.7405 6.11797 14.5597 6.2284 14.3977C6.44704 14.077 6.72693 13.8296 7.01492 13.6386C7.049 13.616 7.08319 13.5941 7.11741 13.5731C7.57939 13.2888 8.09607 13.1117 8.52836 12.9865C8.90312 12.878 9.34966 12.7693 9.85708 12.6823C10.4851 12.5746 11.2063 12.5001 12 12.5001C12.7938 12.5001 13.515 12.5746 14.143 12.6823C14.6504 12.7693 15.0969 12.878 15.4717 12.9865C15.904 13.1117 16.4207 13.2888 16.8826 13.5731C16.9169 13.5941 16.9511 13.616 16.9851 13.6386C17.2731 13.8296 17.553 14.077 17.7717 14.3977C17.8821 14.5597 17.9769 14.7405 18.0492 14.9421C18.1098 15.111 18.1563 15.2944 18.1831 15.4918C18.2431 15.9342 18.2201 16.9291 18.2053 17.4335C18.1978 17.6876 18.1199 17.9559 17.9911 18.1973C17.8957 18.3762 17.7723 18.5403 17.6291 18.6729C17.4139 18.872 17.1537 19 16.8757 19H7.12439C6.84638 19 6.5862 18.872 6.37097 18.6728Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CommunityTabIcon=a}),98);
__d("WAWebNewsletterTabIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="newsletter-tab";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M21.9218 10.6469C21.321 6.08949 17.5557 2.45561 12.9894 2.04404C7.06124 1.50197 2.16447 6.05937 2.05432 11.982C2.01426 14.1101 2.82538 15.9371 3.23595 16.7201L2.0443 20.6651C1.81398 21.4281 2.52497 22.1408 3.28602 21.9099L7.17139 20.7455C8.65344 21.5686 10.3157 22.0002 12.0181 22.0002C17.9663 22.0002 22.7129 16.7602 21.9118 10.6469H21.9218ZM8.06262 14.6823C8.333 15.0838 8.30296 15.6259 7.96249 15.9672C7.51186 16.429 6.76082 16.3386 6.40033 15.7966C5.66931 14.7124 5.23872 13.3974 5.23872 11.992C5.23872 10.5867 5.69936 9.17125 6.49045 8.057C6.84093 7.56512 7.57195 7.53501 8.00254 7.96665C8.35302 8.318 8.38307 8.86007 8.10268 9.2616C7.56193 10.0346 7.2515 10.9782 7.2515 11.992C7.2515 13.0059 7.56193 13.9093 8.08265 14.6723L8.06262 14.6823ZM12.0682 13.4978C11.237 13.4978 10.5661 12.8252 10.5661 11.992C10.5661 11.1588 11.237 10.4863 12.0682 10.4863C12.8993 10.4863 13.5702 11.1588 13.5702 11.992C13.5702 12.8252 12.8993 13.4978 12.0682 13.4978ZM17.5257 15.9471C17.1752 16.439 16.4442 16.4691 16.0236 16.0375C15.6731 15.6861 15.6431 15.1441 15.9235 14.7425C16.4642 13.9696 16.7847 13.0159 16.7847 12.0021C16.7847 10.9882 16.4542 10.0145 15.9035 9.24152C15.6131 8.82995 15.6331 8.27784 15.9836 7.91646C16.4042 7.49485 17.1252 7.51493 17.4857 8.00681C18.3068 9.1311 18.7875 10.5064 18.7875 12.0121C18.7875 13.5179 18.3168 14.8429 17.5257 15.9572V15.9471Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterTabIcon=a}),98);
__d("WAWebStatusIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="status";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("circle",{cx:12,cy:12,r:6,fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 12C20 12.9267 19.8424 13.8166 19.5526 14.6444C19.3824 15.1305 19.5352 15.6866 19.9709 15.9613C20.4736 16.2782 21.1446 16.0964 21.3551 15.5406C21.7719 14.44 22 13.2466 22 12C22 7.15998 18.5615 3.12307 13.9941 2.19883C13.4118 2.08101 12.9 2.55153 12.9 3.14558C12.9 3.66061 13.2896 4.08652 13.7916 4.20139C17.3473 5.0149 20 8.19767 20 12ZM12 20C14.2014 20 16.1951 19.1108 17.6416 17.672C18.0063 17.3094 18.5733 17.208 19.0083 17.4823C19.5115 17.7995 19.6362 18.4841 19.2249 18.9138C17.4045 20.8156 14.8406 22 12 22C9.13243 22 6.54677 20.793 4.72334 18.8594C4.31526 18.4266 4.44515 17.7429 4.95068 17.4295C5.38777 17.1585 5.95401 17.2641 6.31591 17.6295C7.76573 19.0933 9.77697 20 12 20ZM3.9996 15.9013C4.43726 15.63 4.59424 15.075 4.42776 14.5877C4.15046 13.776 4 12.9056 4 12C4 8.19767 6.65269 5.0149 10.2084 4.20139C10.7104 4.08652 11.1 3.66061 11.1 3.14558C11.1 2.55153 10.5882 2.08101 10.0059 2.19883C5.4385 3.12307 2 7.15998 2 12C2 13.2201 2.21851 14.3892 2.61853 15.4702C2.82479 16.0276 3.49447 16.2145 3.9996 15.9013ZM12.0438 2.00009L12 2L11.9562 2.00009H12.0438Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StatusIcon=a}),98);
__d("WAWebStatusOutlineIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="status-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M13.5627 3.13663C13.6586 2.59273 14.1793 2.22466 14.7109 2.37438C15.7904 2.67842 16.8134 3.16256 17.7359 3.80858C18.9322 4.64624 19.9304 5.73574 20.6605 7.0005C21.3906 8.26526 21.8348 9.67457 21.9619 11.1294C22.06 12.2513 21.9676 13.3794 21.691 14.4662C21.5548 15.0014 20.9756 15.2682 20.4567 15.0793C19.9377 14.8903 19.6769 14.317 19.7996 13.7785C19.9842 12.9693 20.0421 12.1343 19.9695 11.3035C19.8678 10.1396 19.5124 9.01218 18.9284 8.00038C18.3443 6.98857 17.5457 6.11697 16.5887 5.44684C15.9055 4.96844 15.1535 4.601 14.3605 4.3561C13.8328 4.19314 13.4668 3.68052 13.5627 3.13663Z",fill:"currentColor"}),j.jsx("path",{d:"M18.8943 17.785C19.3174 18.14 19.3758 18.7749 18.9803 19.1604C18.1773 19.9433 17.2465 20.5872 16.2257 21.0631C14.9022 21.6802 13.4595 22 11.9992 21.9999C10.5388 21.9998 9.09621 21.6798 7.77275 21.0625C6.75208 20.5865 5.82137 19.9424 5.01843 19.1595C4.62302 18.7739 4.68155 18.139 5.10467 17.784C5.52779 17.4291 6.15471 17.4898 6.55964 17.8654C7.16816 18.4298 7.86233 18.8974 8.61817 19.25C9.67695 19.7438 10.831 19.9998 11.9993 19.9999C13.1676 20 14.3217 19.7442 15.3806 19.2505C16.1365 18.898 16.8307 18.4304 17.4393 17.8661C17.8443 17.4906 18.4712 17.43 18.8943 17.785Z",fill:"currentColor"}),j.jsx("path",{d:"M3.54265 15.0781C3.02367 15.267 2.44458 15.0001 2.30844 14.4649C2.03202 13.3781 1.93978 12.2502 2.03794 11.1283C2.16521 9.67361 2.60953 8.26444 3.33966 6.99984C4.06979 5.73523 5.06802 4.64587 6.2642 3.80832C7.18668 3.1624 8.20962 2.67833 9.28902 2.37434C9.82063 2.22462 10.3413 2.59271 10.4372 3.1366C10.5331 3.6805 10.1671 4.19311 9.63938 4.35607C8.84645 4.60094 8.09446 4.96831 7.41133 5.44663C6.45439 6.11667 5.65581 6.98816 5.0717 7.99985C4.4876 9.01153 4.13214 10.1389 4.03032 11.3026C3.95764 12.1334 4.01547 12.9683 4.19986 13.7775C4.32257 14.3159 4.06162 14.8892 3.54265 15.0781Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9999 16C14.2091 16 15.9999 14.2092 15.9999 12C15.9999 9.79088 14.2091 8.00002 11.9999 8.00002C9.7908 8.00002 7.99994 9.79088 7.99994 12C7.99994 14.2092 9.7908 16 11.9999 16ZM11.9999 18C15.3136 18 17.9999 15.3137 17.9999 12C17.9999 8.68631 15.3136 6.00002 11.9999 6.00002C8.68623 6.00002 5.99994 8.68631 5.99994 12C5.99994 15.3137 8.68623 18 11.9999 18Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StatusOutlineIcon=a}),98);
__d("WAWebUnreadActivityIndicator.react",["react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=i.forwardRef(a);function a(a,b){return i.jsx("span",{ref:b,"data-testid":void 0,className:"x1rg5ohu x11inojt x16suv20 xo5v014 x1u28eo4 x2b8uid x16dsc37 x18ba5f9 x1lq5wgf xgqcy7u x30kzoy x9jhf4c"})}a.displayName=a.name+" [from "+f.id+"]";g.UnreadActivityIndicator=b}),98);
__d("WAWebNavBarUtils",["WAWebArchivedFilledIcon","WAWebArchivedOutlineIcon","WAWebCommunityOutlineIcon","WAWebCommunityTabIcon","WAWebNavBarTypes","WAWebNewsletterOutlineIcon","WAWebNewsletterTabIcon","WAWebStatusIcon","WAWebStatusOutlineIcon","WAWebUnreadActivityIndicator.react","err","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");a={height:24,width:24};var j={activeIcons:{read:i.jsx(d("WAWebStatusIcon").StatusIcon,{})},inactiveIcons:{read:i.jsx(d("WAWebStatusOutlineIcon").StatusOutlineIcon,{})}},k={activeIcons:{read:i.jsx(d("WAWebCommunityTabIcon").CommunityTabIcon,babelHelpers["extends"]({},a))},inactiveIcons:{read:i.jsx(d("WAWebCommunityOutlineIcon").CommunityOutlineIcon,babelHelpers["extends"]({},a))}},l={activeIcons:{read:i.jsx(d("WAWebArchivedFilledIcon").ArchivedFilledIcon,babelHelpers["extends"]({},a))},inactiveIcons:{read:i.jsx(d("WAWebArchivedOutlineIcon").ArchivedOutlineIcon,babelHelpers["extends"]({},a))}},m={activeIcons:{read:i.jsx(d("WAWebNewsletterTabIcon").NewsletterTabIcon,babelHelpers["extends"]({},a))},inactiveIcons:{read:i.jsx(d("WAWebNewsletterOutlineIcon").NewsletterOutlineIcon,babelHelpers["extends"]({},a))}},n=function(a){switch(a){case d("WAWebNavBarTypes").NavBarItems.Status:return j;case d("WAWebNavBarTypes").NavBarItems.Communities:return k;case d("WAWebNavBarTypes").NavBarItems.Newsletters:return m;case d("WAWebNavBarTypes").NavBarItems.Archived:return l;default:throw c("err")("_getAllIconForNavBarItem: trying to get icons for an unsupported navbar item")}};b=function(a,b,c){a=n(a);b=b?a.activeIcons:a.inactiveIcons;return c?i.jsxs("div",{className:"x1n2onr6",children:[b.read,i.jsx("div",{className:"x10l6tqk x1nc75zl xjifam0",children:i.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{})})]}):b.read};g.getNavBarIcon=b}),98);
__d("WAWebCommunityTabMenuBarItem.react",["fbt","WAWebCommunityActivityCollection","WAWebCommunityOutlineIcon","WAWebCommunityUnreadOutlineIcon","WAWebMenuBar.react","WAWebNavBarTypes","WAWebNavBarUtils","WAWebTabOrder","WAWebUIRefreshGatingUtils","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={communityTabItem:{"@media screen and (max-width: 960px)_display":"x1888pwy",$$css:!0}};b=j.forwardRef(a);function a(a,b){var e=a.onClick,f=a.selected;f=f===void 0?!1:f;a=a.vertical;var g=c("useWAWebEventTargetValue")(c("WAWebCommunityActivityCollection"),"add change remove community_tab_view",function(){return c("WAWebCommunityActivityCollection").shouldShowTabBadge()}),i={height:24,width:24};i=g?j.jsx(d("WAWebCommunityUnreadOutlineIcon").CommunityUnreadOutlineIcon,babelHelpers["extends"]({directional:!0},i)):j.jsx(d("WAWebCommunityOutlineIcon").CommunityOutlineIcon,babelHelpers["extends"]({},i));d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&(i=d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Communities,f,g));return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:b,xstyle:!d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&k.communityTabItem,testid:void 0,title:h._("__JHASH__aaABNHvXhPE__JHASH__"),tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:i,onClick:e,theme:"force-size",vertical:a,selected:f,showHoverTooltip:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})}a.displayName=a.name+" [from "+f.id+"]";e=b;g["default"]=e}),226);
__d("WAWebDndIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="dnd";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 24 24",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M10.6,5.27v-0.6c0-0.68,0.6-1.28,1.27-1.28c0.68,0,1.27,0.6,1.27,1.28v0.59 c2.47,0.59,4.25,2.72,4.25,5.36v3.06L9.41,5.7C9.75,5.53,10.18,5.36,10.6,5.27z M11.88,20.4c-0.94,0-1.7-0.76-1.7-1.7h3.4 C13.57,19.64,12.81,20.4,11.88,20.4z M18.85,19.55l-1.7-1.7H4.65V17l1.7-1.7v-4.68c0-1.02,0.26-1.95,0.76-2.81L4.65,5.36l1.1-1.11 l14.19,14.19L18.85,19.55z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DndIcon=a}),98);
__d("WAWebMetaBotMenuBarItem.react",["fbt","WAWebBotFrontendUtils","WAWebChatEntryPoint","WAWebFlex.react","WAWebImg.react","WAWebMenuBar.react","WAWebTabOrder","bx","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={iconWrapper:{width:"x17z2i9w",height:"x17rw0jw",$$css:!0}};b=j.forwardRef(a);function a(a,b){var e=a.showHoverTooltip;e=e===void 0?!1:e;a=a.vertical;var f=function(){void d("WAWebBotFrontendUtils").openMetaBotChat(d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut)};return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:b,testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:j.jsx(d("WAWebFlex.react").FlexColumn,{grow:1,align:"center",justify:"center",xstyle:k.iconWrapper,children:j.jsx(c("WAWebImg.react"),{src:c("bx").getURL(c("bx")("14943")),style:{width:20,height:20},draggable:!1})}),title:h._("__JHASH__SHQfr2Qd8JF__JHASH__"),onClick:f,vertical:a,showHoverTooltip:e},"btn-meta-bot")}a.displayName=a.name+" [from "+f.id+"]";g.MetaBotMenuBarItem=b}),226);
__d("WAWebNewChatOutlineIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="new-chat-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M9.53277 12.9911H11.5086V14.9671C11.5086 15.3999 11.7634 15.8175 12.1762 15.9488C12.8608 16.1661 13.4909 15.6613 13.4909 15.009V12.9911H15.4672C15.9005 12.9911 16.3181 12.7358 16.449 12.3226C16.6659 11.6381 16.1606 11.0089 15.5086 11.0089H13.4909V9.03332C13.4909 8.60007 13.2361 8.18252 12.8233 8.05119C12.1391 7.83391 11.5086 8.33872 11.5086 8.991V11.0089H9.49088C8.83941 11.0089 8.33411 11.6381 8.55097 12.3226C8.68144 12.7358 9.09947 12.9911 9.53277 12.9911Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.944298 5.52617L2.99998 8.84848V17.3333C2.99998 18.8061 4.19389 20 5.66665 20H19.3333C20.8061 20 22 18.8061 22 17.3333V6.66667C22 5.19391 20.8061 4 19.3333 4H1.79468C1.01126 4 0.532088 4.85997 0.944298 5.52617ZM4.99998 8.27977V17.3333C4.99998 17.7015 5.29845 18 5.66665 18H19.3333C19.7015 18 20 17.7015 20 17.3333V6.66667C20 6.29848 19.7015 6 19.3333 6H3.58937L4.99998 8.27977Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NewChatOutlineIcon=a}),98);
__d("WAWebNewsletterUnreadOutlineIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="newsletter-unread-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M19 7.5C19.8 7.5 20.56 7.18 21.12 6.62C21.68 6.06 22 5.29 22 4.5C22 3.71 21.68 2.94 21.12 2.38C20.56 1.82 19.79 1.5 19 1.5C18.21 1.5 17.44 1.82 16.88 2.38C16.32 2.94 16 3.71 16 4.5C16 5.29 16.32 6.06 16.88 6.62C17.44 7.18 18.21 7.5 19 7.5Z",fill:"#009588"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4C7.58172 4 4 7.58172 4 12C4 12.5523 3.55228 13 3 13C2.44772 13 2 12.5523 2 12C2 6.47715 6.47715 2 12 2C12.3748 2 12.7451 2.02066 13.1099 2.06098C13.6588 2.12167 14.0546 2.61586 13.9939 3.1648C13.9333 3.71374 13.4391 4.10956 12.8901 4.04887C12.5982 4.0166 12.3012 4 12 4ZM20.8352 10.0061C21.3841 9.94537 21.8783 10.3412 21.939 10.8901C21.9793 11.2549 22 11.6252 22 12C22 17.5228 17.5228 22 12 22C11.4477 22 11 21.5523 11 21C11 20.4477 11.4477 20 12 20C16.4183 20 20 16.4183 20 12C20 11.6988 19.9834 11.4018 19.9511 11.1099C19.8904 10.5609 20.2863 10.0667 20.8352 10.0061Z",fill:"currentColor"}),j.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 13.7 2.43 15.3 3.18 16.7C2.63 18.54 2 20.69 2 21C2 21.55 2.45 22 3 22C3.31 22 5.46 21.37 7.3 20.82C8.7 21.57 10.3 22 12 22C17.52 22 22 17.52 22 12H20C20 16.4154 16.4154 20 12 20C10.6412 20 9.36447 19.6571 8.24444 19.057L7.51743 18.6676L6.72722 18.9038C5.95126 19.1357 5.12931 19.3791 4.41748 19.5825C4.62086 18.8707 4.86428 18.0487 5.09622 17.2728L5.33243 16.4826L4.94296 15.7556C4.34295 14.6355 4 13.3588 4 12C4 7.58457 7.58457 4 12 4V2Z",fill:"currentColor"}),j.jsx("path",{d:"M15.8301 8.63404C16.3081 8.35745 16.9198 8.52076 17.1964 8.9988C17.7077 9.88244 18 10.9086 18 12C18 13.0914 17.7077 14.1176 17.1964 15.0012C16.9198 15.4792 16.3081 15.6425 15.8301 15.366C15.352 15.0894 15.1887 14.4776 15.4653 13.9996C15.8052 13.4122 16 12.7304 16 12C16 11.2696 15.8052 10.5878 15.4653 10.0004C15.1887 9.52237 15.352 8.91063 15.8301 8.63404Z",fill:"currentColor"}),j.jsx("path",{d:"M8.16995 8.63404C8.64798 8.91063 8.81129 9.52237 8.5347 10.0004C8.19484 10.5878 8 11.2696 8 12C8 12.7304 8.19484 13.4122 8.5347 13.9996C8.81129 14.4776 8.64798 15.0894 8.16995 15.366C7.69191 15.6425 7.08017 15.4792 6.80358 15.0012C6.29231 14.1176 6 13.0914 6 12C6 10.9086 6.29231 9.88244 6.80358 8.9988C7.08017 8.52076 7.69191 8.35745 8.16995 8.63404Z",fill:"currentColor"}),j.jsx("path",{d:"M13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterUnreadOutlineIcon=a}),98);
__d("WAWebNewsletterTabMenuBarItem.react",["fbt","WAWebMenuBar.react","WAWebNavBarTypes","WAWebNavBarUtils","WAWebNewsletterCollection","WAWebNewsletterOutlineIcon","WAWebNewsletterUnreadOutlineIcon","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUserPrefsNewsletter","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");b=j.forwardRef(a);function a(a,b){var e=a.onClick,f=a.selected;f=f===void 0?!1:f;a=a.vertical;var g=c("useWAWebEventTargetValue")(c("WAWebNewsletterCollection"),"add change remove newsletter_tab_close",function(){return c("WAWebNewsletterCollection").hasAnyUnreadSinceGivenTimestamp(d("WAWebUserPrefsNewsletter").getNewsletterTabLastSeenTimestamp())}),i={directional:!0,height:24,width:24};i=g?j.jsx(d("WAWebNewsletterUnreadOutlineIcon").NewsletterUnreadOutlineIcon,babelHelpers["extends"]({},i)):j.jsx(d("WAWebNewsletterOutlineIcon").NewsletterOutlineIcon,babelHelpers["extends"]({},i));d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&(i=d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Newsletters,f,g));return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:b,testid:void 0,title:h._("__JHASH__fuYpEH3JPqz__JHASH__"),tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:i,onClick:e,theme:"force-size",vertical:a,selected:f,showHoverTooltip:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})}a.displayName=a.name+" [from "+f.id+"]";e=b;g["default"]=e}),226);
__d("WAWebStatusUnreadOutlineIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="status-unread-outline";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.71672 8.34119C3.23926 8.06362 3.07722 7.45154 3.35479 6.97407C4.33646 5.28548 5.79114 3.92134 7.53925 3.05006C9.28736 2.17878 11.2524 1.83851 13.1916 2.07126C13.74 2.13707 14.1312 2.63494 14.0654 3.18329C13.9995 3.73164 13.5017 4.12282 12.9533 4.05701C11.4019 3.87081 9.82989 4.14303 8.43141 4.84005C7.03292 5.53708 5.86917 6.62839 5.08384 7.97926C4.80626 8.45672 4.19419 8.61876 3.71672 8.34119Z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.8569 10.115C21.4065 10.0604 21.8963 10.4616 21.9509 11.0112C22.144 12.9548 21.7638 14.9125 20.857 16.6424C19.9503 18.3724 18.5567 19.799 16.8485 20.746C16.3655 21.0138 15.7568 20.8393 15.489 20.3563C15.2213 19.8732 15.3957 19.2646 15.8788 18.9968C17.2454 18.2392 18.3602 17.0979 19.0856 15.714C19.811 14.33 20.1152 12.7639 19.9607 11.209C19.9061 10.6594 20.3073 10.1696 20.8569 10.115Z",fill:"currentColor"}),j.jsx("path",{d:"M6.34315 17.6568C7.89977 19.2135 9.93829 19.9945 11.9785 20C12.4928 20.0013 12.9654 20.3306 13.0791 20.8322C13.2105 21.4123 12.8147 21.9846 12.22 21.9976C9.58797 22.0552 6.93751 21.0796 4.92893 19.0711C2.90126 17.0434 1.92639 14.3616 2.00433 11.7049C2.02177 11.1104 2.59704 10.7188 3.17612 10.8546C3.67682 10.9721 4.00256 11.4471 4.00009 11.9614C3.99021 14.0216 4.77123 16.0849 6.34315 17.6568Z",fill:"currentColor"}),j.jsx("circle",{cx:19.95,cy:4.05005,r:3,fill:"#009588"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16ZM12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StatusUnreadOutlineIcon=a}),98);
__d("useWAWebStatusActivityIndicator",["WAWebCollectionConstants","WAWebContactCollection","WAWebStatusCollection","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useRef,j=b.useState;function a(){var a=j(function(){return d("WAWebStatusCollection").StatusCollection.getUnexpired(!0).some(function(a){return a.unreadCount>0&&!a.contact.statusMute})}),b=a[0],c=a[1],e=i({});a=function(){var a=d("WAWebStatusCollection").StatusCollection.getUnexpired(!0).some(function(a){var b=e.current[a.id.toString()];b=!b||a.t>b;return!a.contact.statusMute&&a.unreadCount>0&&b});a!==b&&c(a)};d("useWAWebListener").useListener(d("WAWebContactCollection").ContactCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,a);d("useWAWebListener").useListener(d("WAWebStatusCollection").StatusCollection,"add remove change:unreadCount change:t",a);var f=function(){d("WAWebStatusCollection").StatusCollection.getUnexpired(!0).forEach(function(a){e.current[a.id.toString()]=a.t})};a=function(){f(),c(!1)};return{hasUnread:b,clearUnreadActivity:a}}g.useWAWebStatusActivityIndicator=a}),98);
__d("WAWebStatusMenuBarItem.react",["fbt","WAWebMenuBar.react","WAWebStatusNavigateTo","WAWebStatusOutlineIcon","WAWebStatusUnreadOutlineIcon","WAWebTabOrder","react","useWAWebStatusActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");b=j.forwardRef(a);function a(a,b){a=a.vertical;var c=d("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator(),e=c.hasUnread,f=c.clearUnreadActivity;c=function(a){a.preventDefault(),d("WAWebStatusNavigateTo").navigateToStatus({openTab:!0,clearUnreadActivity:f})};e=e?j.jsx(d("WAWebStatusUnreadOutlineIcon").StatusUnreadOutlineIcon,{directional:!0}):j.jsx(d("WAWebStatusOutlineIcon").StatusOutlineIcon,{});return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:b,vertical:a,testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:e,title:h._("__JHASH__52qipdNXs4c__JHASH__"),onClick:c})}a.displayName=a.name+" [from "+f.id+"]";e=b;g["default"]=e}),226);
__d("useWAWebIsNewsletterUiEnabled",["WAWebCmd","WAWebNewsletterGatingUtils","WAWebPrimaryFeaturesModel","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g){function a(){return c("useWAWebEventTargetValue")([d("WAWebPrimaryFeaturesModel").PrimaryFeatures,d("WAWebCmd").Cmd],["change:newsletter","on_ab_props_update"],function(){return d("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&d("WAWebNewsletterGatingUtils").isNewsletterEnabledOnPrimary()})}g["default"]=a}),98);
__d("WAWebChatlistHeader.react",["fbt","WAWebABProps","WAWebAdCreationMenuBarItem.react","WAWebBizGatingUtils","WAWebBizShopsManagePopup.react","WAWebBotGating","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebCatalogEntrypointIcon","WAWebCatalogManagementFlowLoadable","WAWebChatlistHeader.scss","WAWebChatlistHeaderDropdown.react","WAWebClassnames","WAWebCmd","WAWebCommunityDailyUtils","WAWebCommunityFlowLoadable","WAWebCommunityTabMenuBarItem.react","WAWebConnModel","WAWebContactCollection","WAWebDetailImage.react","WAWebDndIcon","WAWebDrawerManager","WAWebDropdown.react","WAWebEmoji","WAWebEmoji.react","WAWebFlex.react","WAWebFrontendContactGetters","WAWebKeyboardTabUtils","WAWebMenuBar.react","WAWebMenuIcon","WAWebMessageYourselfMetricUtils","WAWebMetaBotMenuBarItem.react","WAWebModalManager","WAWebMuteCollection","WAWebMuteGetters","WAWebNewChatFlowLoadable","WAWebNewChatOutlineIcon","WAWebNewsletterTabMenuBarItem.react","WAWebOpenNewsletterTab","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebSearchIcon","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebShopFilledIcon","WAWebStatusMenuBarItem.react","WAWebTabOrder","WAWebTextStatusCollection","WAWebTextStatusUtils","WAWebText_DONOTUSE.react","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebWamEnumCatalogEntryPoint","fbs","react","stylex","useForceUpdate","useWAWebContactValues","useWAWebExternalBetaOptIn","useWAWebIsNewsletterUiEnabled","useWAWebListener","useWAWebMuteValues","useWAWebServerGatedAdEntryPoint","useWAWebTextStatus"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useEffect,n=b.useMemo,o=b.useState,p={header:{position:"x1n2onr6",zIndex:"xfo81ep",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"x13a6bvl",width:"xh8yej3",height:"x7j6532",paddingTop:"x889kno",paddingBottom:"x1a8lsjc",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",backgroundColor:"x1pl83jw",$$css:!0},headerWithEmojiBadge:{display:"x78zum5",$$css:!0},privateHeader:{flexDirection:"xdt5ytf",alignItems:"x6s0dn4",height:"xt7dq6l",$$css:!0},privateMenuItems:{flexDirection:"xdt5ytf",alignItems:"x1cy8zhl",$$css:!0},betaIndicator:{width:"xvy4d1p",height:"xxk0z11",$$css:!0}};function a(a){var b,e=a.chatListCollapsed,f=a.headerRef,g=a.onSelectChatClick,i=a.isMultiSelectMode,k=a.activeAccountInfo,q=c("useForceUpdate")();a=d("useWAWebMuteValues").useMuteValues(a.mute.id,[d("WAWebMuteGetters").getIsMuted]);a=a[0];var r=n(d("WAWebUserPrefsMeUser").assertGetMeUser,[]),s=d("WAWebContactCollection").ContactCollection.assertGet(r);c("useWAWebTextStatus")({contact:s});b=d("useWAWebContactValues").useContactValues(s.id,[(b=d("WAWebFrontendContactGetters")).getTextStatusString,b.getTextStatusEmoji,b.getTextStatusLastUpdateTime,b.getTextStatusExpiryTs,b.getTextStatusEphemeralDuration]);var t=b[0],u=b[1],v=b[2],w=b[3];b=b[4];t=d("WAWebTextStatusUtils").shouldDisplayTextStatus(t,u,v,w,b);var x;if(u!=null&&t===!0){v=d("WAWebEmoji").EmojiUtil.normalizeEmojiFromString(u);v!=null&&(x=l.jsx(c("WAWebEmoji.react"),{emoji:v,size:"small",className:"xjckbub"},"low-res"))}w=o(!1);b=w[0];var y=w[1];m(function(){d("WAWebConnModel").Conn.isSMB&&d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(r).then(function(){y(!0)})},[r]);t=n(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(r)},[r]);d("useWAWebListener").useListener(t,"change:profileOptions",q);u=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_screen_icon",k);v=u[0];w=u[1];q=function(a){a.preventDefault(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.startSession(),d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.newChatPressed()};u=function(){var a=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(r),b=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(r);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:a,profilePicThumb:b,contact:s,conn:d("WAWebConnModel").Conn,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})};var z=function(){d("WAWebMuteCollection").MuteCollection.globalMute().unmute(),d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._("__JHASH__0sWOkmM3KYg__JHASH__")}))},A=function(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:"ChatHeader"}}}),d("WAWebCatalogManagementFlowLoadable").openCatalogManagementFlow(null,d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_TOP_BAR)},B=function(){d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebBizShopsManagePopup.react"),{}))},C=function(){d("WAWebCommunityDailyUtils").incrementCommunityTabEvent(d("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})},D=function(){d("WAWebOpenNewsletterTab").openNewsletterTab()},E=null;a&&(E=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebDndIcon").DndIcon,{}),title:h._("__JHASH__zbxl2t1i8o5__JHASH__"),onClick:z},"btn-dnd"));a=l.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((j||(j=c("stylex")))(x!=null&&p.headerWithEmojiBadge),c("WAWebChatlistHeader.scss").listUser),children:l.jsx(d("WAWebDetailImage.react").DetailImage,{ariaLabel:h._("__JHASH__dhIyISolv4D__JHASH__"),testId:"chatlist_header_profile_photo",theme:"chatlist_header_profile_photo",tabIndex:-1,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,id:r,size:40,onClick:u,emojiBadge:x})});z=null;u=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn();u=u[0];if(u){u=function(a){a.preventDefault(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:d("WAWebSettingsConst").SettingsSteps.Help}))};z=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.betaIndicator,children:l.jsx(d("WAWebText_DONOTUSE.react").Text,{as:"span",size:"10",weight:"bold",children:c("fbs")._("__JHASH__qGmtwD0AtR2__JHASH__")})}),vertical:e,onClick:u,title:""})}u=k!=null&&!v&&d("WAWebBizGatingUtils").shouldShowAdCreationIcon()?l.jsx(c("WAWebAdCreationMenuBarItem.react"),{activeAccountInfo:k,iconStyle:c("WAWebChatlistHeader.scss").commerceIconContainer,vertical:e,ctaText:w==null?void 0:w.content}):null;var F;if(b&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(t)&&(d("WAWebConnModel").Conn.isSMB&&d("WAWebABProps").getABPropConfigValue("web_abprop_catalog_icon_on_top_bar"))){var G;v=d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").isShopBanned(t);d("WAWebBusinessProfileUtils").hasShop(t)?v||(G=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebShopFilledIcon").ShopFilledIcon,{directional:!0,className_DONOTUSE:c("WAWebChatlistHeader.scss").shopsIcon}),title:h._("__JHASH__zeijun4FCC6__JHASH__"),onClick:B})):G=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,testid:void 0,icon:l.jsx(d("WAWebCatalogEntrypointIcon").CatalogEntrypointIcon,{directional:!0,width:22,height:22}),title:h._("__JHASH__ofVkPQJ4i7___JHASH__"),onClick:A});F=l.jsx("div",{className:c("WAWebChatlistHeader.scss").commerceIconContainer,children:G})}w=e?{right:"auto",left:"calc(100% + 8px)",top:"0px"}:void 0;b=e?d("WAWebDropdown.react").DirX.RIGHT:void 0;t=c("useWAWebIsNewsletterUiEnabled")();v=t?l.jsx(c("WAWebNewsletterTabMenuBarItem.react"),{onClick:D,vertical:e}):null;B=e||!d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();A=B?l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebNewChatOutlineIcon").NewChatOutlineIcon,{directional:!0}),title:h._("__JHASH__wYpVyRE3fxw__JHASH__"),onClick:q,vertical:e}):null;var H;d("WAWebBotGating").isBotShortcutEntryPointEnabled()&&!e&&(H=l.jsx(d("WAWebMetaBotMenuBarItem.react").MetaBotMenuBarItem,{}));return l.jsxs("header",{"data-testid":void 0,ref:f,className:j(p.header,e&&p.privateHeader),children:[a,l.jsx("div",{className:c("WAWebChatlistHeader.scss").listControls,children:l.jsx(d("WAWebMenuBar.react").MenuBar,{children:l.jsxs(c("WAWebVelocityTransitionGroup"),{transitionName:"btn",xstyle:e&&p.privateMenuItems,children:[z,E,u,F,H,l.jsx(c("WAWebCommunityTabMenuBarItem.react"),{onClick:C,vertical:e}),l.jsx(c("WAWebStatusMenuBarItem.react"),{vertical:e}),v,A,e?l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebSearchIcon").SearchIcon,{}),title:h._("__JHASH__9pO6PfPoI0W__JHASH__"),onClick:function(){return d("WAWebCmd").Cmd.openCommandPalette()},vertical:e}):l.jsx("span",{}),l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebMenuIcon").MenuIcon,{}),vertical:e,title:h._("__JHASH__hskmX_lsgx4__JHASH__"),children:l.jsx(c("WAWebChatlistHeaderDropdown.react"),{chatListCollapsed:e,style:w,dirX:b,startMultiSelect:g,isMultiSelectMode:i,activeAccountInfo:k})})]})},"chatlist-header")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebWaWordmarkIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wa-wordmark";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=21;m=103;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 103 21",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M13.0691 16.3425L10.3885 5.57555H10.3439L7.70791 16.3425H4.18613L0 0.523438H2.98136L5.83876 12.6207H5.88836L8.97381 0.523438H11.8015L14.7994 12.6207H14.8176L17.8601 0.523438H20.7753L16.5231 16.3425H13.0674H13.0691Z",fill:"currentColor"}),j.jsx("path",{d:"M34.6722 6.57208C34.9945 6.08455 35.4095 5.69288 35.9117 5.3987C36.4142 5.10453 36.9777 4.893 37.6075 4.7674C38.2337 4.64178 38.6865 4.57898 39.3212 4.57898C39.8962 4.57898 40.4797 4.6203 41.0697 4.70128C41.6597 4.78225 42.0347 4.94093 42.5225 5.17725C43.0082 5.41358 43.4082 5.74245 43.7172 6.16388C44.028 6.58363 44.1832 7.14058 44.1832 7.83633V13.7958C44.1832 14.3147 44.213 14.8088 44.2725 15.2798C44.3302 15.7541 44.4345 16.1078 44.5832 16.3425H41.559C41.4995 16.1656 41.4515 15.9838 41.415 15.8004C41.3787 15.617 41.3522 15.4269 41.3375 15.2352C40.835 15.7525 40.2435 16.1144 39.5642 16.3226C38.8865 16.5292 38.1925 16.6317 37.4835 16.6317C36.9365 16.6317 36.5927 16.5656 36.12 16.4317C35.6475 16.2978 35.2342 16.0913 34.8805 15.8103C34.5252 15.5294 34.2492 15.1757 34.0492 14.746C33.8492 14.318 33.7502 13.809 33.7502 13.2173C33.7502 12.5678 33.8642 12.0324 34.0922 11.611C34.322 11.1895 34.6162 10.8541 34.978 10.6012C35.34 10.3517 35.7547 10.1616 36.2192 10.0377C36.6835 9.91205 36.9877 9.8129 37.4602 9.73853C37.933 9.6658 38.3975 9.6063 38.8552 9.56003C39.313 9.51708 39.8847 9.45095 40.2385 9.36173C40.5937 9.27413 40.873 9.14523 41.0797 8.97335C41.2862 8.80313 41.382 8.55688 41.3672 8.23133C41.3672 7.89253 41.311 7.62315 41.2002 7.42318C41.0895 7.2232 40.9425 7.06785 40.7572 6.95713C40.5722 6.8464 40.1922 6.7737 39.9492 6.73568C39.7047 6.69933 39.4435 6.68115 39.1625 6.68115C38.5412 6.68115 37.9165 6.81335 37.5627 7.07943C37.2075 7.3455 37.001 7.7884 36.9415 8.4098H34.1137C34.1585 7.67108 34.3417 7.05795 34.6675 6.57043L34.6722 6.57208ZM40.7062 11.0144C40.5062 11.0805 40.293 11.1367 40.0632 11.1813C39.8352 11.2243 39.5955 11.2623 39.3427 11.292C39.0932 11.3218 38.8402 11.3598 38.5907 11.4027C38.3545 11.4474 37.9562 11.5069 37.728 11.5796C37.5 11.6539 37.3 11.7531 37.1297 11.8787C36.9595 12.0043 36.8225 12.1646 36.72 12.3547C36.6175 12.5464 36.5645 12.791 36.5645 13.0868C36.5645 13.3826 36.6175 13.6024 36.72 13.7941C36.824 13.9858 36.9645 14.1379 37.1415 14.2486C37.3182 14.3593 37.5247 14.437 37.7612 14.4799C37.9975 14.5246 38.242 14.5477 38.4915 14.5477C39.113 14.5477 39.9227 14.4436 40.2615 14.237C40.6002 14.0304 40.8515 13.7825 41.0152 13.495C41.1772 13.2074 41.278 12.9166 41.3142 12.6191C41.3522 12.3249 41.3705 12.0886 41.3705 11.9101V10.7367C41.2367 10.8557 40.906 10.9466 40.7077 11.0127L40.7062 11.0144Z",fill:"currentColor"}),j.jsx("path",{d:"M73.5243 10.1154L71.26 3.52298H71.184L68.8473 10.1104L73.5258 10.1154H73.5243ZM72.7078 0.523438L78.621 16.3425H75.666L74.2365 12.1283H68.1383L66.6558 16.3425H63.7473L69.7265 0.523438H72.7078Z",fill:"currentColor"}),j.jsx("path",{d:"M86.1785 13.9709C86.527 13.766 86.808 13.495 87.0213 13.1628C87.2345 12.8306 87.3865 12.4439 87.4758 11.9993C87.5633 11.5564 87.6063 11.1053 87.6063 10.6491C87.6063 10.193 87.56 9.74018 87.4625 9.29563C87.3668 8.8527 87.208 8.45773 86.9865 8.11068C86.765 7.76363 86.4808 7.48268 86.1338 7.26948C85.7885 7.05463 85.362 6.94723 84.8595 6.94723C84.3573 6.94723 83.911 7.0563 83.5655 7.26948C83.217 7.48268 82.936 7.76033 82.7228 8.0991C82.508 8.4412 82.3575 8.83123 82.2683 9.27413C82.179 9.71703 82.136 10.1732 82.136 10.6475C82.136 11.1218 82.1823 11.5548 82.2798 11.9977C82.3758 12.4406 82.531 12.8273 82.7443 13.1611C82.959 13.4933 83.2433 13.7644 83.597 13.9693C83.9523 14.1759 84.3788 14.28 84.881 14.28C85.3835 14.28 85.8298 14.1759 86.175 13.9693L86.1785 13.9709ZM82.1048 4.88803V6.35063H82.1493C82.5328 5.73088 83.0185 5.2797 83.6103 4.99875C84.2003 4.7178 84.6845 4.57898 85.3935 4.57898C86.294 4.57898 86.9023 4.74755 87.5535 5.088C88.203 5.4268 88.7433 5.87795 89.1698 6.43985C89.5978 7.00175 89.915 7.65455 90.1233 8.39988C90.3283 9.14688 90.4323 9.92528 90.4323 10.7384C90.4323 11.5069 90.3283 12.2439 90.1233 12.9546C89.915 13.6635 89.6028 14.2899 89.1813 14.8369C88.7598 15.3839 88.236 15.8202 87.608 16.1442C86.98 16.4681 86.4115 16.6317 85.5703 16.6317C84.8613 16.6317 84.372 16.4863 83.7755 16.1987C83.1773 15.9111 82.6848 15.4881 82.3013 14.9262H82.2583V20.3551H79.4308V4.88968H82.1013L82.1048 4.88803Z",fill:"currentColor"}),j.jsx("path",{d:"M98.3832 13.9709C98.732 13.766 99.013 13.495 99.226 13.1628C99.4392 12.8306 99.5912 12.4439 99.6805 11.9993C99.7682 11.5564 99.8112 11.1053 99.8112 10.6491C99.8112 10.193 99.7648 9.74018 99.6673 9.29563C99.5715 8.8527 99.4127 8.45773 99.1915 8.11068C98.97 7.76363 98.6858 7.48268 98.3388 7.26948C97.9933 7.05463 97.5667 6.94723 97.0645 6.94723C96.562 6.94723 96.1158 7.0563 95.7705 7.26948C95.4218 7.48268 95.1407 7.76033 94.9275 8.0991C94.7127 8.4412 94.5622 8.83123 94.473 9.27413C94.384 9.71703 94.341 10.1732 94.341 10.6475C94.341 11.1218 94.3872 11.5548 94.4847 11.9977C94.5805 12.4406 94.736 12.8273 94.949 13.1611C95.164 13.4933 95.4483 13.7644 95.8018 13.9693C96.1573 14.1759 96.5835 14.28 97.086 14.28C97.5882 14.28 98.0345 14.1759 98.38 13.9693L98.3832 13.9709ZM94.3095 4.88803V6.35063H94.3542C94.7375 5.73088 95.2235 5.2797 95.815 4.99875C96.405 4.7178 96.8893 4.57898 97.5983 4.57898C98.499 4.57898 99.107 4.74755 99.7582 5.088C100.408 5.4268 100.948 5.87795 101.374 6.43985C101.802 7.00175 102.12 7.65455 102.328 8.39988C102.533 9.14688 102.637 9.92528 102.637 10.7384C102.637 11.5069 102.533 12.2439 102.328 12.9546C102.12 13.6635 101.808 14.2899 101.386 14.8369C100.965 15.3839 100.441 15.8202 99.8128 16.1442C99.1848 16.4681 98.6163 16.6317 97.775 16.6317C97.066 16.6317 96.577 16.4863 95.9802 16.1987C95.382 15.9111 94.8895 15.4881 94.5062 14.9262H94.4632V20.3551H91.6355V4.88968H94.3063L94.3095 4.88803Z",fill:"currentColor"}),j.jsx("path",{d:"M55.9548 13.5941C56.0953 13.8387 56.277 14.037 56.4985 14.1924C56.72 14.3477 56.9745 14.4618 57.2638 14.5361C57.5513 14.6105 58.138 14.6469 58.4485 14.6469C58.67 14.6469 58.9445 14.6204 59.189 14.5692C59.432 14.518 59.7758 14.437 59.9773 14.3263C60.1755 14.2155 60.3425 14.0684 60.4748 13.8833C60.6085 13.6983 60.673 13.4388 60.673 13.1578C60.673 12.7298 60.2368 12.2605 59.6088 12.0241C58.9825 11.7862 58.1065 11.5515 56.9828 11.3151C56.5265 11.211 56.0788 11.0904 55.644 10.9483C55.2095 10.8094 54.821 10.6243 54.4808 10.3946C54.1418 10.1649 53.8675 9.879 53.6625 9.5303C53.456 9.18323 53.352 8.7585 53.352 8.2561C53.352 7.51903 53.4958 6.9125 53.7848 6.43985C54.074 5.9672 54.4525 5.5937 54.9268 5.32103C55.3995 5.04833 55.93 4.85498 56.5218 4.74425C57.11 4.63518 57.5513 4.57898 58.1728 4.57898C58.794 4.57898 59.227 4.63683 59.8105 4.75583C60.3938 4.8748 60.916 5.07313 61.3723 5.35408C61.83 5.63503 62.21 6.00688 62.5125 6.47125C62.815 6.9373 62.9968 7.52398 63.0545 8.23298H60.3955C60.3525 7.6281 60.1228 7.1538 59.7095 6.9406C59.2948 6.72578 58.6635 6.59685 58.1015 6.59685C57.9248 6.59685 57.4373 6.63653 57.239 6.66463C57.0405 6.6927 56.8093 6.75055 56.639 6.82328C56.4688 6.89765 56.325 7.00505 56.206 7.14553C56.087 7.286 56.0293 7.5372 56.0293 7.77353C56.0293 8.05448 56.1315 8.28255 56.3383 8.45938C56.5448 8.63788 56.8143 8.78165 57.1463 8.89238C57.4785 9.0031 57.8603 9.10225 58.2883 9.1915C58.7163 9.28075 59.455 9.48733 59.8963 9.59143C60.354 9.69555 60.635 9.8195 61.0713 9.96658C61.506 10.1153 61.8943 10.312 62.2348 10.5549C62.5735 10.7995 62.848 11.102 63.0545 11.4639C63.261 11.8258 63.3635 12.2704 63.3635 12.8042C63.3635 13.5578 63.2133 14.1891 62.9108 14.6998C62.6068 15.2104 62.2133 15.6203 61.7258 15.9293C61.2383 16.24 60.8465 16.3193 60.2185 16.4449C59.5905 16.5689 58.951 16.6333 58.3015 16.6333C57.652 16.6333 57.153 16.5672 56.52 16.4334C55.8838 16.2995 55.3185 16.0781 54.8245 15.769C54.3285 15.4583 53.9238 15.0485 53.6065 14.5394C53.2875 14.0304 53.1155 13.3909 53.0843 12.6224H55.7433C55.7433 12.9628 55.8143 13.3529 55.9548 13.5958V13.5941Z",fill:"currentColor"}),j.jsx("path",{d:"M52.2035 4.89629V6.83484H49.8997V12.8372C49.8997 13.3694 49.989 13.7247 50.1642 13.9015C50.341 14.0784 50.6962 14.1676 51.2285 14.1676C51.4052 14.1676 51.5755 14.1593 51.7375 14.1445C51.901 14.1312 52.0547 14.1081 52.2035 14.0783V16.3507C51.9375 16.397 51.6415 16.4251 51.3177 16.44C50.9922 16.4532 50.6765 16.4615 50.3642 16.4615C49.8782 16.4615 49.4137 16.4284 48.981 16.3623C48.5445 16.2962 48.3017 16.1888 47.9827 15.9657C47.7232 15.7839 47.5035 15.5095 47.348 15.146C47.1927 14.7824 47.0737 14.3262 47.0737 13.7495V6.82659H45.17V4.88804H47.0737V1.45386L49.9015 1.46212V4.89629H52.2052H52.2035Z",fill:"currentColor"}),j.jsx("path",{d:"M24.6491 0.523438V6.42501H24.7152C25.1135 5.76066 25.7447 5.25493 26.3645 4.95251C26.986 4.64843 27.6355 4.57736 28.2255 4.57736C29.0665 4.57736 29.427 4.69138 29.9657 4.91946C30.5045 5.14918 30.9292 5.46648 31.2382 5.87303C31.5487 6.27958 31.767 6.77536 31.8925 7.35708C32.0182 7.94213 32.081 8.58831 32.081 9.29563V16.3408H29.2665V9.87076C29.2665 8.92546 29.1195 8.21978 28.8237 7.75538C28.5277 7.28933 28.0022 6.94558 27.252 6.89106C26.2852 6.82163 25.6092 7.21496 25.226 7.72398C24.8408 8.23463 24.6491 9.16838 24.6491 10.3352V16.3392H21.8214V0.523438H24.6491Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WaWordmarkIcon=a}),98);
__d("WAWebChatlistHeaderV2.react",["fbt","WAWebBusinessProfileCollection","WAWebChatlistHeaderDropdown.react","WAWebDndIcon","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDropdown.react","WAWebKeyboardTabUtils","WAWebMenuBar.react","WAWebMenuIcon","WAWebMessageYourselfMetricUtils","WAWebMuteCollection","WAWebMuteGetters","WAWebNewChatFlowLoadable","WAWebNewChatOutlineIcon","WAWebTabOrder","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWaWordmarkIcon","react","useForceUpdate","useWAWebListener","useWAWebMuteValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useMemo,m={wordmark:{color:"x1v5yvga",$$css:!0}};function a(a){var b=a.headerRef,e=a.onSelectChatClick,f=a.isMultiSelectMode,g=a.activeAccountInfo,i=d("WAWebUIRefreshGatingUtils").chatListPanelRefreshEnabled(),j=c("useForceUpdate")(),n=d("useWAWebMuteValues").useMuteValues(a.mute.id,[d("WAWebMuteGetters").getIsMuted]);n=n[0];var o=l(d("WAWebUserPrefsMeUser").assertGetMeUser,[]),p=l(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(o)},[o]);d("useWAWebListener").useListener(p,"change:profileOptions",j);p=function(a){a.preventDefault(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.startSession(),d("WAWebMessageYourselfMetricUtils").UiMessageYourselfNewChatAction.newChatPressed()};j=function(){d("WAWebMuteCollection").MuteCollection.globalMute().unmute(),d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._("__JHASH__0sWOkmM3KYg__JHASH__")}))};var q=null;n&&(q=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:k.jsx(d("WAWebDndIcon").DndIcon,{}),title:h._("__JHASH__zbxl2t1i8o5__JHASH__"),onClick:j},"btn-dnd"));n=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:k.jsx(d("WAWebNewChatOutlineIcon").NewChatOutlineIcon,{directional:!0}),title:h._("__JHASH__wYpVyRE3fxw__JHASH__"),onClick:p},"btn-new-chat");j=i?{dirX:d("WAWebDropdown.react").DirX.RIGHT,dirY:d("WAWebDropdown.react").DirY.BOTTOM}:null;p=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:k.jsx(d("WAWebMenuIcon").MenuIcon,{}),title:h._("__JHASH__hskmX_lsgx4__JHASH__"),children:k.jsx(c("WAWebChatlistHeaderDropdown.react"),babelHelpers["extends"]({startMultiSelect:e,isMultiSelectMode:f,activeAccountInfo:g,updateActiveNavBarItem:a.updateActiveNavBarItem},j))},"btn-menu");e=!i&&{title:h._("__JHASH__312r8l5Dewe__JHASH__")};return k.jsx("header",{"data-testid":void 0,ref:b,children:k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,babelHelpers["extends"]({},e,{type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB,menu:[q,n,p],focusBackOrCancel:!0,children:i&&k.jsx(d("WAWebWaWordmarkIcon").WaWordmarkIcon,{iconXstyle:m.wordmark})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("useWAWebChatsActivityIndicator",["WAWebChatCollection","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(){var a=function(){return d("WAWebChatCollection").ChatCollection.getUnreadCount()},b=i(a),c=b[0],e=b[1];b=function(){e(a())};d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"add remove reset change:showUnreadInTitle",b);return{unreadChatCount:c}}g.useChatsActivityIndicator=a}),98);
__d("WAWebChatsNavBarItem.react",["fbt","WAWebChatUnreadCount.react","WAWebChatsFilledIcon","WAWebChatsOutlineIcon","WAWebDrawerManager","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebChatsActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Chats)return;e(d("WAWebNavBarTypes").NavBarItems.Chats);d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS)};var f=b===d("WAWebNavBarTypes").NavBarItems.Chats?j.jsx(d("WAWebChatsFilledIcon").ChatsFilledIcon,{directional:!0}):j.jsx(d("WAWebChatsOutlineIcon").ChatsOutlineIcon,{directional:!0}),g=d("useWAWebChatsActivityIndicator").useChatsActivityIndicator();g=g.unreadChatCount;g=g>0?j.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:g}):null;var i=h._("__JHASH__hy-Qp8EeTRI__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:f,text:i,inlineActivityIndicator:g,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Counter,title:i,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Chats,onClick:a});return f}a.displayName=a.name+" [from "+f.id+"]";g.ChatsNavBarItem=a}),226);
__d("WAWebPinnedIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="pinned";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=19;m=19;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 19 19",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 19 19",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M9.5,18.419c-4.926,0-8.919-3.993-8.919-8.919 S4.574,0.581,9.5,0.581s8.919,3.993,8.919,8.919S14.426,18.419,9.5,18.419z M11.621,12.711l-0.082-2.99l1.647-1.963 c0.564-0.672,0.481-1.672-0.188-2.232l-0.32-0.269c-0.668-0.56-1.662-0.475-2.231,0.203L8.803,7.42L5.839,7.859 c-0.241,0.036-0.327,0.339-0.14,0.496l5.458,4.58C11.343,13.092,11.627,12.954,11.621,12.711z M5.62,13.994 c0.203,0.171,0.504,0.154,0.688-0.038l2.204-2.307l-1.085-0.91L5.538,13.31C5.381,13.524,5.417,13.823,5.62,13.994z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PinnedIcon=a}),98);
__d("WAWebCollapsedChatlistPanel",["WAWebChatCollection","WAWebChatlistUtils","WAWebDetailImage.react","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebFlexStyles","WAWebMentionsIcon","WAWebMuteGetters","WAWebMutedIcon","WAWebName.react","WAWebPinnedIcon","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWDSTooltip.react","asyncToGeneratorRuntime","react","stylex","useForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=h||(h=c("react")),l=e.useMemo,m=e.useRef,n={container:{overflowY:"x1rife3k",overflowX:"x1plvlek",$$css:!0},item:{display:"x78zum5",position:"x1n2onr6",width:"x1247r65",height:"xnnlda6",cursor:"x1ypdohk",textAlign:"x2b8uid",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",":hover_backgroundColor":"x1z0qo99",$$css:!0},itemActive:{backgroundColor:"x14v0smp",":hover_backgroundColor":"xnliwpv",$$css:!0},unreadCount:{backgroundColor:"x18ba5f9",color:"x1u28eo4",position:"x10l6tqk",top:"xndqk7f",end:"x4r51d9",left:null,right:null,borderTopStartRadius:"xlid4zk",borderTopEndRadius:"x13tp074",borderBottomEndRadius:"x1qns1p2",borderBottomStartRadius:"xipx5yg",width:"xw4jnvo",height:"x1qx5ct2",fontSize:"x1pg5gke",$$css:!0},pin:{backgroundColor:"x1pl83jw",position:"x10l6tqk",top:"xndqk7f",start:"xi8xln7",left:null,right:null,borderTopStartRadius:"xlid4zk",borderTopEndRadius:"x13tp074",borderBottomEndRadius:"x1qns1p2",borderBottomStartRadius:"xipx5yg",width:"xw4jnvo",height:"x1qx5ct2",$$css:!0},mute:{backgroundColor:"x1pl83jw",position:"x10l6tqk",top:"xndqk7f",end:"x4r51d9",left:null,right:null,borderTopStartRadius:"xlid4zk",borderTopEndRadius:"x13tp074",borderBottomEndRadius:"x1qns1p2",borderBottomStartRadius:"xipx5yg",width:"xw4jnvo",height:"x1qx5ct2",$$css:!0}};function o(a){return a.hasUnreadMention?k.jsx(d("WAWebMentionsIcon").MentionsIcon,{width:12}):Math.min(a.unreadCount,99)}var p=d("WAWebFlatList.react").FlatListFactory();function a(){var a=c("useForceUpdate")(),b=l(function(){return new(c("WAWebFlatListController"))()},[]);d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change:unreadCount change:active change:pin change:muteExpiration",a);a=d("WAWebChatCollection").ChatCollection.filter(function(a){return!a.archive&&a.shouldAppearInList}).map(function(a){return{itemKey:a.id.toString(),chat:a}});return k.jsx(c("WAWebFlatListContainer.react"),{className:(i||(i=c("stylex")))([n.container,d("WAWebUISpacing").uiPadding.top8]),flatListControllers:[b],children:k.jsx(p,{data:a,renderItem:function(a){return k.jsx(q,{chat:a.chat,isActive:a.chat.active})},direction:"vertical",flatListController:b,defaultItemHeight:56,defaultItemWidth:74,disablePointerEventsOnScroll:!1})})}a.displayName=a.name+" [from "+f.id+"]";function q(a){var e=a.chat;a=a.isActive;var f=m(null),g=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebChatlistUtils").openExistingChat(e.id)});return function(){return a.apply(this,arguments)}}();return k.jsxs(c("WAWebUnstyledButton.react"),{ref:f,xstyle:[n.item,a&&n.itemActive,d("WAWebUISpacing").uiPadding.all8,d("WAWebUISpacing").uiMargin.horizAuto],onClick:g,children:[k.jsx(d("WAWebDetailImage.react").DetailImage,{xstyle:d("WAWebUISpacing").uiMargin.allAuto,id:e.id,size:d("WAWebDetailImage.react").DetailImageSize.ExtraSmall,waitIdle:!0}),Boolean(e.pin)&&k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:n.pin,children:k.jsx(d("WAWebPinnedIcon").PinnedIcon,{})}),e.unreadCount>0&&k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:n.unreadCount,children:o(e)}),d("WAWebMuteGetters").getIsMuted(e.mute)&&e.unreadCount<=0&&k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:n.mute,children:k.jsx(d("WAWebMutedIcon").MutedIcon,{width:14,height:14})}),k.jsx(d("WAWebWDSTooltip.react").WDSHoverTooltip,{name:"avatar-"+e.id.toString(),targetRef:f,position:d("WAWebWDSTooltip.react").PopoverPosition.End,alignment:d("WAWebWDSTooltip.react").PopoverAlignment.Center,buffer:16,children:k.jsx(d("WAWebName.react").Name,{chat:e,xstyle:d("WAWebFlexStyles").getFlexStyles({flex:!0,align:"center",gap:4}).xstyle})})]})}q.displayName=q.name+" [from "+f.id+"]";g.CollapsedChatlistPanel=a}),98);
__d("WAWebCommunitiesNavBarItem.react",["fbt","WAWebCommunityActivityCollection","WAWebCommunityDailyUtils","WAWebCommunityFlow.react","WAWebCommunityOutlineIcon","WAWebCommunityTabIcon","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebUnreadActivityIndicator.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,e=a.isNavBarExpanded,f=a.updateActiveNavBarItem;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Communities)return;f(d("WAWebNavBarTypes").NavBarItems.Communities);d("WAWebCommunityDailyUtils").incrementCommunityTabEvent(d("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebCommunityFlow.react").CommunityFlow,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.COMMUNITIES)};var g=b===d("WAWebNavBarTypes").NavBarItems.Communities?j.jsx(d("WAWebCommunityTabIcon").CommunityTabIcon,{directional:!0}):j.jsx(d("WAWebCommunityOutlineIcon").CommunityOutlineIcon,{directional:!0}),i=c("useWAWebEventTargetValue")(c("WAWebCommunityActivityCollection"),"add change remove community_tab_view",function(){return c("WAWebCommunityActivityCollection").shouldShowTabBadge()});i=i?j.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{}):null;var k=h._("__JHASH__aaABNHvXhPE__JHASH__");g=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:g,text:k,inlineActivityIndicator:i,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:k,testid:void 0,isExpanded:e,isActive:b===d("WAWebNavBarTypes").NavBarItems.Communities,onClick:a});return g}a.displayName=a.name+" [from "+f.id+"]";g.CommunitiesNavBarItem=a}),226);
__d("WAWebRoundSendInvIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="round-send-inv";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=35;m=35;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 35 35",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 35 35",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",enableBackground:"new    ",d:"M17.5,0.25C7.988,0.25,0.25,7.988,0.25,17.5 S7.988,34.75,17.5,34.75s17.25-7.738,17.25-17.25S27.012,0.25,17.5,0.25z M14.3,24.2l-5.6-5.6l1.4-1.4l4.2,4.2l10.6-10.6l1.4,1.4 L14.3,24.2z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.RoundSendInvIcon=a}),98);
__d("WAWebConversationSpam.react",["fbt","WAWebBlockContactUtils","WAWebBlockContants","WAWebBlocklistCollection","WAWebBlocklistUtils","WAWebBox.react","WAWebBusinessProfileTypes","WAWebChatGroupUtils","WAWebClickableLink.react","WAWebCmd","WAWebContactGetters","WAWebDrawerManager","WAWebExitIcon","WAWebFMXUtils","WAWebFbtCommon","WAWebFlex.react","WAWebFrontendContactGetters","WAWebLeaveCommunityModal.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebPrivacyVisibilityEditDrawer.react","WAWebReportContactPopup.react","WAWebReportSpamPopup.react","WAWebRoundSendInvIcon","WAWebSendSpamChatAction","WAWebSettingsBlockedIcon","WAWebSpamConstants","WAWebSvgComponentBase","WAWebThumbsDownIcon","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWDSButton","WAWebWDSText.react","WAWebXIcon","react","useForceUpdate","useWAWebContactValues","useWAWebListener","useWAWebModelValues","useWAWebWindowSize"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={spam:{textAlign:"x2b8uid",backgroundColor:"x1bmpntp",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xdvm3u5",boxShadow:"x1cz2lhn",$$css:!0},link:{display:"x1lliihq",$$css:!0}},l={spamFXMWrapper:{borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x1mmk74n",$$css:!0},spamFMX:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",backgroundColor:"x1qlhaiu",$$css:!0}};function a(a){var b,e=a.contact,f=c("useForceUpdate")(),g=d("useWAWebModelValues").useModelValues(a.chat,["id","isPSA","isIAS","shouldAppearInList","trusted","isGroup","contact","groupMetadata"]);b=d("useWAWebContactValues").useContactValues(a.contact.id,[(b=d("WAWebContactGetters")).getId,b.getIsBusiness,b.getIsSupportAccount,b.getVerifiedLevel,d("WAWebFrontendContactGetters").getFormattedName,b.getIsMe,d("WAWebFrontendContactGetters").getBusinessProfile,b.getIsMyContact]);b[0];var i=b[1],l=b[2],m=b[3];b[4];var o=b[5];b[6];b[7];d("useWAWebListener").useListener(d("WAWebBlocklistCollection").BlocklistCollection,["add","remove","reset"],f);var p=function(){d("WAWebSendSpamChatAction").sendReport({chat:g,spamFlow:g.isGroup===!0?d("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport:d("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport}),d("WAWebModalManager").ModalManager.close()},q=function(){d("WAWebSendSpamChatAction").sendSpamExitClear(g,d("WAWebSpamConstants").SpamFlow.GroupSpamBannerReport),d("WAWebModalManager").ModalManager.close()},r=function(){d("WAWebSendSpamChatAction").sendSpamBlockClear(g,d("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport),d("WAWebModalManager").ModalManager.close()};b=function(){var a;a=(a=g.groupMetadata)==null?void 0:a.getParentGroupChat();a!=null&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(g)?d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebLeaveCommunityModal.react").LeaveCommunityModal,{chat:a})):d("WAWebCmd").Cmd.deleteOrExitChat(g)};f=function(){if(!g.isGroup&&d("WAWebBlocklistUtils").isRBIRevampedBlockReportDesignEnabled()){d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebReportContactPopup.react").ReportContactPopupV2,{chat:g,spamFlow:d("WAWebSpamConstants").SpamFlow.OneToOneChatSpamBannerReport}));return}d("WAWebModalManager").ModalManager.open(g.isGroup?j.jsx(c("WAWebReportSpamPopup.react"),{isMessage:!1,isGroupChat:!0,onReport:p,onReportExitClear:q,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}):j.jsx(c("WAWebReportSpamPopup.react"),{isMessage:!1,isBusiness:i,isGroupChat:!1,onReport:p,onReportBlockClear:r,onCancel:function(){return d("WAWebModalManager").ModalManager.close()}}))};var s=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},category:"groupAdd"}))};if(g.isPSA||g.isIAS||!g.shouldAppearInList||g.trusted||l||o)return null;l=d("WAWebBlocklistCollection").BlocklistCollection.get(g.id);var t;d("WAWebFMXUtils").supportsFMX()?(o=d("WAWebWDSButton").WDSButtonSecondary,t=d("WAWebWDSButton").WDSButtonSecondaryDestructive):(o=d("WAWebWDSButton").WDSButtonPlainWhite,t=d("WAWebWDSButton").WDSButtonPlainWhite);var u=j.jsx(o,{testid:void 0,onClick:a.onClickNotSpam,icon:d("WAWebRoundSendInvIcon").RoundSendInvIcon,children:c("WAWebFbtCommon")("OK")},"not_spam");a=j.jsx(c("WAWebUnstyledButton.react"),{testid:void 0,onClick:a.onClickDismissSpam,role:"button",xstyle:[d("WAWebUISpacing").uiMargin.topAuto,d("WAWebUISpacing").uiMargin.bottomAuto],children:j.jsx(d("WAWebXIcon").XIcon,{height:24,width:24,color:d("WAWebSvgComponentBase").SvgColorProp.GRAY_LIGHTER})},"dismiss_spam");f=j.jsx(t,{testid:void 0,onClick:f,icon:d("WAWebThumbsDownIcon").ThumbsDownIcon,children:h._("__JHASH__lmNWNj4RDIv__JHASH__")},"report_spam");var v=d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(g)?c("WAWebFbtCommon")("Exit Community"):c("WAWebFbtCommon")("Leave Group");b=j.jsx(t,{testid:void 0,onClick:b,icon:d("WAWebExitIcon").ExitIcon,children:v},"exit_group");var w,x,y;v=[];g.isGroup?(w=h._("__JHASH__xoe_b-sdvPK__JHASH__"),x=h._("__JHASH__sNsqCOsH0Gk__JHASH__",[h._implicitParam("=m2",j.jsx(c("WAWebClickableLink.react"),{onClick:s,xstyle:k.link,children:h._("__JHASH__EX87RN9WDOW__JHASH__")}))]),v.push(f),v.push(b),v.push(u)):(d("WAWebFMXUtils").supportsFMXV2()?w=j.jsx(d("WAWebBox.react").Box,{xstyle:d("WAWebUISpacing").uiPadding.end15,children:h._("__JHASH__Wo9DdALigPb__JHASH__")}):w=h._("__JHASH__mL_WlXttd9O__JHASH__"),i&&(m!==d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH&&d("WAWebFMXUtils").supportsFMXV2()?w=h._("__JHASH__g_IJrWB_k-u__JHASH__"):m===d("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH?w=d("WAWebMiscGatingUtils").isBlueStringsEnabled()?h._("__JHASH__tJA4t9pbdwk__JHASH__"):h._("__JHASH__F3njffzzKpt__JHASH__"):w=h._("__JHASH__EY0lxbH6b-w__JHASH__")),l?y=j.jsx(o,{testid:void 0,onClick:function(){return d("WAWebBlockContactUtils").handleUnblock(e,i?d("WAWebBlockContants").BlockEntryPoint.BizSpamBannerBlock:d("WAWebBlockContants").BlockEntryPoint.OneToOneOldSpamBannerBlock)},grow:1,children:c("WAWebFbtCommon")("Unblock")},"unblock"):y=j.jsx(t,{testid:void 0,onClick:function(){return d("WAWebBlockContactUtils").handleBlock(g,i?d("WAWebBlockContants").BlockEntryPoint.BizSpamBannerBlock:d("WAWebBlockContants").BlockEntryPoint.OneToOneOldSpamBannerBlock)},icon:d("WAWebSettingsBlockedIcon").SettingsBlockedIcon,grow:1,children:c("WAWebFbtCommon")("Block")},"block"),v.push(f,y,u));if(d("WAWebFMXUtils").supportsFMX()){g.isGroup?s=[b,u]:i?s=[y,u]:s=[y,a];return j.jsx(n,{primary:w,secondary:x,buttons:s})}return j.jsx(d("WAWebFlex.react").FlexColumn,{children:j.jsxs(d("WAWebFlex.react").FlexContainer,{alignSelf:"stretch",align:"center",xstyle:[k.spam,d("WAWebUISpacing").uiPadding.all16],gap:16,testid:void 0,direction:"vertical",children:[j.jsx(d("WAWebWDSText.react").WDSTextTitle,{children:w}),j.jsx(d("WAWebWDSButton").ButtonGroup,{direction:"horizontal",style:{minWidth:200},children:v}),x&&j.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",children:j.jsx(d("WAWebWDSText.react").WDSTextMuted,{children:x})})]})})}a.displayName=a.name+" [from "+f.id+"]";var m=1250;function n(a){var b=a.buttons,e=a.primary;a=a.secondary;var f=c("useWAWebWindowSize")();f=f.width;f=f<=m?d("WAWebFlex.react").FlexColumn:d("WAWebFlex.react").FlexRow;return j.jsx(d("WAWebFlex.react").FlexColumn,{padding:8,xstyle:l.spamFXMWrapper,children:j.jsxs(f,{alignSelf:"stretch",align:"center",justify:"all",xstyle:l.spamFMX,padding:[16,16,16,16],gap:16,testid:void 0,children:[j.jsxs(d("WAWebFlex.react").FlexColumn,{children:[j.jsx(d("WAWebWDSText.react").WDSTextTitle,{children:e}),a!=null&&j.jsx(d("WAWebWDSText.react").WDSTextMuted,{children:a})]}),j.jsx(d("WAWebWDSButton").ButtonGroup,{direction:"horizontal",shrink:0,children:b})]})})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebComposeBoxPopupPanels.react",["WAWebAnimationGroup","WAWebAnimationGroupItem.react","WAWebBizCtwaContextImagePreview.react","WAWebChatAutoMutedConfirmation.react","WAWebComposeBoxPanels.react","WAWebComposeBoxPanelsMenu.react","WAWebComposeBoxPopupPanel.react","WAWebConversationSpam.react","WAWebFocusIndicator","WAWebFrontendMsgGetters","WAWebMediaLinkPreview.react","WAWebMiscGatingUtils","WAWebMuteGetters","WAWebQuotedMsg.react","WAWebQuotedMsgAdminGroupName.react","WAWebStateUtils","WAWebUim","WAWebUimUie.react","react","useForceUpdate","useWAWebListener","useWAWebMeasure","useWAWebSetModelValue"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useImperativeHandle,l=b.useRef;e=j.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.chat,f=a.linkPreviewData,g=a.ctwaContextLinkData,h=a.ctwaContextData,i=a.restoreFocus,m=a.selectedPanelId,n=a.getComposeBlockWidth,o=a.onComposeHeightChange,p=a.omitLinkPreview,q=a.omitCtwa,r=a.attachmentButtonHidden,s=a.onEmoji,t=a.onGif,u=a.onPanelChange,v=a.onSticker,w=a.onPanelClose,x=a.showSpamPanel,y=a.onClickNotSpam,z=a.onClickDismissSpam,A=a.canShowChatAutoMutedNux,B=a.onOpenChatAutoMuteNux,C=a.onAcceptChatAutoMuteNux;a=a.onUnmuteChatAutoMuteNux;var D=c("useForceUpdate")();d("useWAWebListener").useListener(e.composeQuotedMsg,"change:latestEditMsgKey",D);var E;if(f){D=f.title;var F=f.matchedText,G=f.description,H=f.thumbnail,I=f.inviteGrpType,J=f.isLoading,K=f.thumbnailHQ,L=f.thumbnailWidth;f=f.thumbnailHeight;E=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(d("WAWebUimUie.react").UIE,{displayName:"ComposeBoxLinkPreview",escapable:!0,requestDismiss:p,children:j.jsx("div",{"data-testid":void 0,children:j.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:p,bodyBackground:!1,attachmentButtonHidden:r,children:j.jsx(c("WAWebMediaLinkPreview.react"),{title:D,compose:!0,thumbnailJpegHQ:K,matchedText:F,description:G,thumbnailJpeg:H,inviteGrpType:I,isLoading:J,thumbnailJpegWidth:L,thumbnailJpegHeight:f})})})})})}p=e.composeQuotedMsg;D=e.quotedMsgAdminGroupJid;K=e.quotedMsgAdminGroupSubject;F=e.quotedMsgAdminParentGroupJid;G=e.composeQuotedMsgRemoteJid;var M=d("useWAWebSetModelValue").useSetModelValue(e,"composeQuotedMsg"),N=d("useWAWebSetModelValue").useSetModelValue(e,"quotedMsgAdminGroupJid"),O;if(p){H=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION);if(a===d("WAWebUim").DismissReason.LIFECYCLE)return;M(null)};O=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(d("WAWebUimUie.react").UIE,{displayName:"ComposeBoxQuotedMsg",escapable:!0,requestFocus:i,requestDismiss:H,children:j.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:H,attachmentButtonHidden:r,children:j.jsx(c("WAWebQuotedMsg.react"),{msg:p.safe(),composeQuotedMsgRemoteJid:G,theme:"composeBox",chat:d("WAWebFrontendMsgGetters").getChat(p)},p.id.toString())})})})}else if(D){I=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION);if(a===d("WAWebUim").DismissReason.LIFECYCLE)return;N(null)};O=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(d("WAWebUimUie.react").UIE,{displayName:"QuotedMsgAdminGroupName",escapable:!0,requestFocus:i,requestDismiss:I,children:j.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:I,attachmentButtonHidden:r,children:j.jsx(d("WAWebQuotedMsgAdminGroupName.react").QuotedMsgAdminGroupName,{isComposePreview:!0,quotedGroupJid:D,quotedParentGroupJid:K!=null?F:void 0,quotedGroupSubject:K},D.toString())})})})}J=d("WAWebStateUtils").unproxy(e);L=null;x&&!J.isPSA&&J.shouldAppearInList&&J.msgs&&J.msgs.length>0&&(L=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(c("WAWebConversationSpam.react"),{chat:J,contact:J.contact,onClickNotSpam:y,onClickDismissSpam:z})}));f=null;d("WAWebMiscGatingUtils").isAutoMuteConfirmationDialogEnabled()&&L==null&&J.isGroup&&d("WAWebMuteGetters").getIsMuted(J.mute)&&J.mute.isAutoMuted&&A&&(f=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(c("WAWebChatAutoMutedConfirmation.react"),{onOpen:B,onOK:C,onUnmute:a})}));var P=l(null),Q=l();H=function(a){Q.current=a};k(b,function(){return{restoreFocus:function(a){var b;(b=P.current)==null?void 0:b.restoreFocus(a)}}});G=c("useWAWebMeasure")();p=G[0];I=G[1];F=I.width>0?I.width:n();K=function(){c("WAWebFocusIndicator").shouldIndicateFocus(),i()};D=null;m&&F!=null&&(D=j.jsx(c("WAWebAnimationGroupItem.react"),{ref:p,children:j.jsx(c("WAWebComposeBoxPanels.react"),{displayCache:Q.current,width:F,onDisplayCache:H,onEmoji:s,onFocusRelease:K,onGif:t,onPanelChange:u,onSticker:v,requestDismiss:w,ref:P,selectedPanelId:m,theme:d("WAWebComposeBoxPanelsMenu.react").PanelsTheme.ChatComposeBox})}));var R;g&&(R=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(d("WAWebUimUie.react").UIE,{displayName:"ComposeBoxCtwaContextPreview",escapable:!0,requestDismiss:q,children:j.jsx(c("WAWebComposeBoxPopupPanel.react"),{onOmit:q,attachmentButtonHidden:r,children:j.jsx(c("WAWebBizCtwaContextImagePreview.react"),{context:h,sourceUrl:g.sourceUrl,compose:!0})})})}));e=function(a,b){b===void 0&&(b=!1),o({overlay:a},b)};return j.jsx("div",{className:"x10l6tqk x13vifvy x17qophe xh8yej3",children:j.jsx("div",{className:"x10l6tqk x1ey2m1c x17qophe x9f619 xh8yej3",children:j.jsxs(c("WAWebAnimationGroup"),{onHeightChange:e,children:[f,L,D,O,E,R]})})})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),98);
__d("WAWebConversationSpamUtils",["WALogger","WASmaxGroupsAcknowledgeGroupRPC","WAWebSendSpamChatAction","WAWebStateUtils","WAWebWidToJid"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[callp] acknowledging group ",""]);h=function(){return a};return a}function a(a){return!a.trusted&&!d("WAWebStateUtils").unproxy(a).msgs.getModelsArray().some(function(a){return a.subtype==="contact_info_card"})}function b(a){d("WAWebSendSpamChatAction").sendNotSpam(a,!0)["catch"](function(){}),a.isGroup&&(d("WALogger").LOG(h(),a.id.toLogString()),d("WASmaxGroupsAcknowledgeGroupRPC").sendAcknowledgeGroupRPC({iqTo:d("WAWebWidToJid").widToGroupJid(a.id)})["catch"](function(){}))}g.shouldShowSpamPanel=a;g.acknowledgeGroupAsNotSpam=b}),98);
__d("WAWebMessageComposer.react",["WAWebAttachMenuBarItem.react","WAWebAttachMenuGatingUtils","WAWebBotGating","WAWebChevronCustomIcons","WAWebClassnames","WAWebComposeBox.scss","WAWebComposeBoxPanelsMenu.react","WAWebComposeBoxSendButton.react","WAWebContactGetters","WAWebExpressionsPanelPicker.react","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebNewsletterGatingUtils","WAWebStateUtils","WAWebSvgComponentBase","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUnstyledButton.react","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={inputContainer:{boxSizing:"x9f619",flex:"x12lumcd",width:"x1qrby5j",minWidth:"xeuugli",minHeight:"xisnujt",fontSize:"x6prxxf",fontWeight:"x1fcty0u",lineHeight:"x1fc57z9",backgroundColor:"xe7vic5",borderTopColor:"x1716072",borderEndColor:"xgde2yp",borderBottomColor:"x89wmna",borderStartColor:"xbjl0o0",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",outline:"x1a2a7pz",willChange:"x13w7htt",display:"x78zum5",$$css:!0},inputContainerMaterial:{borderTopStartRadius:"xyi19xy",borderTopEndRadius:"x1ccrb07",borderBottomEndRadius:"xtf3nb5",borderBottomStartRadius:"x1pc53ja",$$css:!0},inputContainerRefresh:{borderTopStartRadius:"x1x9wcxt",borderTopEndRadius:"x1f9vhhg",borderBottomEndRadius:"xsr4h3p",borderBottomStartRadius:"x1ytmua2",boxShadow:"xkfubxc",alignItems:"x6s0dn4",$$css:!0},childPadding:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",minHeight:"x1ofbdpd",$$css:!0},sendButtonContainer:{width:"x100vrsf",minWidth:"x1fns5xo",$$css:!0},childPaddingRefresh:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",alignSelf:"xpvyfi4",$$css:!0},sendButtonContainerRefresh:{minWidth:"x1fns5xo",minHeight:"x1ba4aug",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0},sendButtonBgColor:{backgroundColor:"xfn3atn",$$css:!0},expressionsPanelPickerWrapper:{display:"x78zum5",flex:"x98rzlu",alignItems:"xuk3077",alignSelf:"xpvyfi4",$$css:!0},attachEmojiDivider:{alignSelf:"xpvyfi4",width:"x1i1rx1s",height:"xxk0z11",backgroundColor:"x63rzfj",$$css:!0}};b=j.forwardRef(a);function a(a,b){var e=a.chat,f=a.expressionsPanelPickerRef,g=a.expressionsPanelWrapperRef,h=a.getCurrentComposeContent,m=a.handleInputBlur,n=a.handleInputFocus,o=a.handleMetaUpDebounced,p=a.handlePanelChange,q=a.handlePanelsGif,r=a.handlePanelsSticker,s=a.handleSendText,t=a.handleTab,u=a.hasTextState,v=a.input,w=a.inputHotkeyRef,x=a.isMessageToBot,y=a.onExpandComposer,z=a.onExpressionPanelActive,A=a.pttComposerActive,B=a.recordingSession,C=a.replaceInputSelection,D=a.richTextInputRef,E=a.selectedPanelId,F=a.startRecording;a=a.updateTextAfterMediaDrawerClose;if(A)return null;A=(!e.isNewsletter||d("WAWebNewsletterGatingUtils").isNewsletterPTTSendingEnabled())&&!d("WAWebContactGetters").getIsCAPISupportAccount(e.contact)&&(!x||d("WAWebBotGating").isBotPttEnabled());var G=x||e.isNewsletter&&!d("WAWebNewsletterGatingUtils").isNewsletterStickerSendingEnabled(),H=function(a){a.preventDefault()};g={expressionsPanelWrapperRef:g,expressionsPanelPickerRef:f,replaceInputSelection:C,isStickerSendingDisabled:G,handlePanelsSticker:r,handlePanelsGif:q,isMessageToBot:x,onExpressionPanelActive:z,getComposeBoxEditorRef:function(){return D}};f=d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()?[d("WAWebUISpacing").uiPadding.all4,d("WAWebUISpacing").uiMargin.horiz8,d("WAWebUISpacing").uiMargin.bottom8]:[d("WAWebUISpacing").uiPadding.vert9,d("WAWebUISpacing").uiPadding.horiz12,d("WAWebUISpacing").uiMargin.vert5,d("WAWebUISpacing").uiMargin.horiz8];C=d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()?j.jsx("div",{className:(i||(i=c("stylex")))(k.childPaddingRefresh,k.sendButtonContainerRefresh,u&&k.sendButtonBgColor,d("WAWebUISpacing").uiMargin.start5),children:j.jsx(c("WAWebComposeBoxSendButton.react"),{supportsPtt:A,hasText:u,onClickSend:s,recordingSession:B,onStartRecording:function(){return void F()}})}):j.jsx("div",{className:(i||(i=c("stylex")))(d("WAWebUISpacing").uiPadding.vert5,k.childPadding,k.sendButtonContainer),children:j.jsx(c("WAWebComposeBoxSendButton.react"),{supportsPtt:A,hasText:u,onClickSend:s,recordingSession:B,onStartRecording:function(){return void F()}})});G=void 0;x||(d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()?G=j.jsx("div",{className:"x78zum5 x6s0dn4 xpvyfi4",children:j.jsx(c("WAWebAttachMenuBarItem.react"),{chat:d("WAWebStateUtils").unproxy(e),getComposeContents:h,getComposeBoxEditorRef:function(){return D},onMenuComplete:a,iconWidth:d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()?25:void 0})}):G=j.jsx("div",{className:"x78zum5 x6s0dn4",children:j.jsx(c("WAWebAttachMenuBarItem.react"),{chat:d("WAWebStateUtils").unproxy(e),getComposeContents:h,getComposeBoxEditorRef:function(){return D},onMenuComplete:a})}));return j.jsxs("div",{ref:b,className:c("WAWebComposeBox.scss").textMessageComposerContainer,children:[j.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease("x9f619 x78zum5 x6s0dn4 xl56j7k x1ofbdpd",c("WAWebComposeBox.scss").boxPanelWrapper),children:[d("WAWebAttachMenuGatingUtils").areExpressionPanelsEnabledV2()?void 0:j.jsx(d("WAWebComposeBoxPanelsMenu.react").ComposeBoxPanelsMenu,{chat:e,selectedPanelId:E,onChange:p,theme:d("WAWebComposeBoxPanelsMenu.react").PanelsTheme.ChatComposeBox,isMessageToBot:x}),d("WAWebAttachMenuGatingUtils").areExpressionPanelsEnabledV2()&&d("WAWebAttachMenuGatingUtils").shouldShowExpressionPanelsOutOfInput()?j.jsx(l,babelHelpers["extends"]({},g)):void 0,!d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&G]}),j.jsxs("div",{className:c("WAWebComposeBox.scss").textMessageComposerInputContainer,children:[j.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:w,className:(i||(i=c("stylex")))(k.inputContainer,f,d("WAWebUIRefreshGatingUtils").materialRefreshEnabled()&&k.inputContainerMaterial,d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&k.inputContainerRefresh),handlers:{tab:t,"shift+tab":t,"meta+up":o},onClick:H,onFocus:n,onBlur:m,children:[d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&j.jsxs(j.Fragment,{children:[G,j.jsx("div",{className:(i||(i=c("stylex")))(d("WAWebUISpacing").uiMargin.horiz4,d("WAWebUISpacing").uiMargin.bottom7,k.attachEmojiDivider)})]}),d("WAWebAttachMenuGatingUtils").areExpressionPanelsEnabledV2()&&!d("WAWebAttachMenuGatingUtils").shouldShowExpressionPanelsOutOfInput()?j.jsx(l,babelHelpers["extends"]({},g)):void 0,v,d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&C,y&&j.jsx(d("WAWebFlex.react").FlexColumn,{justify:"end",children:j.jsx(c("WAWebUnstyledButton.react"),{onClick:y,children:j.jsx(d("WAWebChevronCustomIcons").ChevronUpCustomIcon,{color:d("WAWebSvgComponentBase").SvgColorProp.SECONDARY,displayInline:!0,height:24})})})]}),!d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&C]})]})}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b=a.expressionsPanelPickerRef,e=a.expressionsPanelWrapperRef,f=a.getComposeBoxEditorRef,g=a.handlePanelsGif,h=a.handlePanelsSticker,l=a.isMessageToBot,m=a.isStickerSendingDisabled,n=a.onExpressionPanelActive;a=a.replaceInputSelection;return j.jsx("div",{ref:e,className:(i||(i=c("stylex")))(k.expressionsPanelPickerWrapper,d("WAWebUISpacing").uiPadding.end10,d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&[d("WAWebUISpacing").uiPadding.vert7,d("WAWebUISpacing").uiPadding.start10]),children:j.jsx(d("WAWebExpressionsPanelPicker.react").ExpressionsPanelPicker,{ref:b,onEmoji:a,onSticker:m?void 0:h,onGif:l?void 0:g,onToggleActive:function(a){n==null?void 0:n(a)},getComposeBoxEditorRef:f})})}l.displayName=l.name+" [from "+f.id+"]";g.MessageComposer=b}),98);
__d("WAWebReconnectUtil",["WAWebSocketModel","WAWebStreamModel"],(function(a,b,c,d,e,f,g){a=function(){var a=this;this.isReconnecting=!1;this.reconnectIfDisconnected=function(){!a.isReconnecting&&d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.OFFLINE&&(a.isReconnecting=!0,d("WAWebSocketModel").Socket.summary(),self.setTimeout(function(){return a.isReconnecting=!1},3e3))}};b=new a().reconnectIfDisconnected;g.reconnect=b}),98);
__d("WAWebSendStickerToActiveChatStickersAction",["WALogger","WAWebApiPrepareCtwaContextSend","WAWebChatCollection","WAWebNewsletterCollection","WAWebSendStickerAction"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Cannot call sendStickerToActiveChat without an active chat"]);h=function(){return a};return a}function a(a,b){var e;e=(e=c("WAWebNewsletterCollection").getActive())!=null?e:d("WAWebChatCollection").ChatCollection.getActive();if(e==null){d("WALogger").ERROR(h());return}var f=e.getComposeContents();b={stickerSendOrigin:b,quotedMsg:e.composeQuotedMsg,ctwaContext:d("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(f==null?void 0:f.ctwaContextLinkData,f==null?void 0:f.ctwaContext)};e.composeQuotedMsg=null;d("WAWebSendStickerAction").sendStickerToChat(e,a,b)}g["default"]=a}),98);
__d("WAWebStickerSuggestionsPanelContent.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={"-sticker-width":"60px;","-sticker-panel-left-right-margins":"16px;"};b=a;g["default"]=b}),98);
__d("WAWebStickerSuggestionsPanelContent.react",["WALogger","WAWebKeyboardHotKeys.react","WAWebSendStickerToActiveChatStickersAction","WAWebStickerPanelContentStickerItem.react","WAWebStickerSuggestionsPanelContent.scss","WAWebStopEvent","react"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["WAWebStickerSuggestionsPanelContent.react sticker at index "," not found"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["WAWebStickerSuggestionsPanelContent.react sticker at index "," selected"]);k=function(){return a};return a}b=i||d("react");var l=h||(h=c("react")),m=b.useEffect,n=b.useImperativeHandle,o=b.useRef,p=b.useState,q=parseInt(c("WAWebStickerSuggestionsPanelContent.scss")["-sticker-width"].replace(/px$/,""),10),r=parseInt(c("WAWebStickerSuggestionsPanelContent.scss")["-sticker-panel-left-right-margins"].replace(/px$/,""),10);e=l.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.stickers,f=a.onFocusRelease,g=a.maxWidth,h=a.onSelect;a=p(-1);var i=a[0],s=a[1],t=o(null),u=o(null);a=Math.floor(g/(q+2*r));var v=Math.min(e.length,a),w=function(){f==null?void 0:f()},x=function(a){return(a=e[a])!=null?a:null},y=function(a){var b=!1;a=x((a=a)!=null?a:i);a!=null?(d("WALogger").LOG(k(),i),c("WAWebSendStickerToActiveChatStickersAction")(a),h(a),b=!0):d("WALogger").WARN(j(),i);w();return b},z=function(a,b){d("WAWebStopEvent").stopEvent(b);if(!(b.target instanceof HTMLElement))return;a!==i&&s(a);y(a)},A=function(){s(Math.min(i+1,v-1))},B=function(){s(Math.max(i-1,0))};m(function(){var a=Math.min(i,e.length-1);s(a)},[i,e]);m(function(){var a;t==null?void 0:(a=t.current)==null?void 0:a.focus()},[]);n(b,function(){return{moveSelectionLeft:B,moveSelectionRight:A,pickSelectedSticker:y}});g=e.slice(0,v).map(function(a,b){var d=i===b;return l.jsx(c("WAWebStickerPanelContentStickerItem.react"),{ref:d?u:null,selected:d,sticker:a,onClick:function(a,c){return z(b,c)},theme:"stickerExpressionsPanel"},a.id)});a=v*q;return l.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:t,style:{width:a},className:"x78zum5 x1k70j0n x1w0mnb xzueoph x1mnrxsn x1ypdohk xjny0x0 x1mmyl6o x18rcate xxjnf0j",onMouseDown:function(a){d("WAWebStopEvent").stopEvent(a)},handlers:{left:B,right:A,escape:w},children:g})}a.displayName=a.name+" [from "+f.id+"]";g.StickerSuggestionsPanelContent=e}),98);
__d("useWAWebStickerSuggestions",["WAWebFavoriteStickerCollection","WAWebRecentStickerCollectionMd","WAWebStickerSearchCollection","WAWebStickerSuggestions","asyncToGeneratorRuntime","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;c=h||d("react");var i=c.useEffect,j=c.useState;function a(a){var c=j(a!=null?d("WAWebStickerSuggestions").getStickerSuggestionsFromEmoji(a.toString()):[]),e=c[0],f=c[1],g=function(){if(a!=null){var b=a.toString();f(d("WAWebStickerSuggestions").getStickerSuggestionsFromEmoji(b))}};i(function(){b("asyncToGeneratorRuntime").asyncToGenerator(function*(){a!=null&&(yield d("WAWebStickerSearchCollection").StickerSearchCollection.search(a.toString()),g())})()},[a]);d("useWAWebListener").useListener(d("WAWebRecentStickerCollectionMd").RecentStickerCollectionMd,"add remove change sort",g);d("useWAWebListener").useListener(d("WAWebFavoriteStickerCollection").FavoriteStickerCollection,"add remove change sort",g);d("useWAWebListener").useListener(d("WAWebStickerSearchCollection").StickerSearchCollection,"add remove change",g);return e}g.useStickerSuggestions=a}),98);
__d("WAWebStickerSuggestionsPanel.react",["Lexical","WAWebL10N","WAWebStickerSuggestionsPanelContent.react","WAWebStickerSuggestionsPanelContent.scss","WAWebSuggestionsPanelContainer.react","react","useWAWebLexicalEvent","useWAWebMeasure","useWAWebStickerSuggestions"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef,l=parseInt(c("WAWebStickerSuggestionsPanelContent.scss")["-sticker-panel-left-right-margins"].replace(/px$/,""),10);function m(a){return Boolean(a&&(a.metaKey||a.shiftKey||a.altKey||a.ctrlKey))}function a(a){var b,e=a.editor,f=a.emojiPrompt,g=a.kind,h=a.onDismiss;a=a.onSelect;var i=d("useWAWebStickerSuggestions").useStickerSuggestions(f),n=k();(f=d("useWAWebLexicalEvent")).useLexicalCommandListener(e,(b=d("Lexical")).KEY_ARROW_LEFT_COMMAND,function(a){if(m(a)||!i)return!1;c("WAWebL10N").isRTL()?(a=n.current)==null?void 0:a.moveSelectionRight():(a=n.current)==null?void 0:a.moveSelectionLeft();return!0});f.useLexicalCommandListener(e,b.KEY_ARROW_RIGHT_COMMAND,function(a){if(m(a)||!i)return!1;c("WAWebL10N").isRTL()?(a=n.current)==null?void 0:a.moveSelectionLeft():(a=n.current)==null?void 0:a.moveSelectionRight();return!0});var o=function(a){return m(a)||!i?!1:(a=(a=n.current)==null?void 0:a.pickSelectedSticker())!=null?a:!1},p=function(a){if(m(a)||!i)return!1;c("WAWebL10N").isRTL()?(a=n.current)==null?void 0:a.moveSelectionLeft():(a=n.current)==null?void 0:a.moveSelectionRight();return!0};f.useLexicalCommandListener(e,b.KEY_ENTER_COMMAND,o);f.useLexicalCommandListener(e,b.KEY_TAB_COMMAND,p);o=function(){h==null?void 0:h();return!0};f.useLexicalCommandListener(e,b.KEY_ESCAPE_COMMAND,o);f.useLexicalCommandListener(e,b.KEY_ARROW_DOWN_COMMAND,o);p=c("useWAWebMeasure")();f=p[0];b=p[1].width;o=null;i.length>0&&(o=j.jsx("div",{className:"x1mdhcu2 x4o9ep9",children:j.jsx(d("WAWebStickerSuggestionsPanelContent.react").StickerSuggestionsPanelContent,{ref:n,stickers:i,maxWidth:b-2*l,onSelect:a})}));return j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelContainer,{editor:e,kind:g,onDismiss:h,children:o}),j.jsx("div",{className:"x10l6tqk xh8yej3",ref:f})]})}a.displayName=a.name+" [from "+f.id+"]";g.StickerSuggestionsPanel=a}),98);
__d("WAWebStickerSuggestions.react",["WAWebEmoji","WAWebLexicalUtils","WAWebStickerSuggestionsPanel.react","WAWebSuggestionsPanelContainer.react","react"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useImperativeHandle,m=b.useState;e=j.forwardRef(a);function a(a,b){var c=a.editor;a.kind;var e=a.onDismiss,f=a.onSelect;a=m();var g=a[0],h=a[1];a=m(!1);var i=a[0],n=a[1];k(function(){var a=function(){if(c==null)return;var a=d("WAWebLexicalUtils").getTextContent(c);if(d("WAWebEmoji").EmojiUtil.isEmoji(a)){a=d("WAWebEmoji").EmojiUtil.normalizeEmojiFromString(a);h(a)}else h(null)},b=c==null?void 0:c.registerUpdateListener(function(){if(c==null?void 0:c.isComposing())return;a()});a();return b},[c]);a=function(){h(null),e==null?void 0:e()};var o=function(a){d("WAWebLexicalUtils").setTextContent(c,""),h(null),f==null?void 0:f(a)};l(b,function(){return{forceHide:function(a){n(a)}}});return g==null||c==null||i?null:j.jsx(d("WAWebStickerSuggestionsPanel.react").StickerSuggestionsPanel,{emojiPrompt:g,kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:c,onSelect:o,onDismiss:a})}a.displayName=a.name+" [from "+f.id+"]";g.StickerSuggestions=e}),98);
__d("WAWebUseComposeBoxActionListeners",["WAWebComposeBoxActions","useWAWebListener"],(function(a,b,c,d,e,f,g){function a(a,b){var c,e;a=a.id.toString();(c=d("useWAWebListener")).useListener((e=d("WAWebComposeBoxActions")).ComposeBoxActions,"focus_"+a,b.onFocus);c.useListener(e.ComposeBoxActions,"focus",b.onFocus);c.useListener(e.ComposeBoxActions,"send_"+a,b.onSend);c.useListener(e.ComposeBoxActions,"paste_"+a,b.onPaste);c.useListener(e.ComposeBoxActions,"paste",b.onPaste);c.useListener(e.ComposeBoxActions,"send_paste_"+a,b.onRoutedPaste);c.useListener(e.ComposeBoxActions,"toggle_quick_replies",b.onToggleQuickReplies);c.useListener(e.ComposeBoxActions,"add_sending_log_attributes_"+a,b.onSendingLogAttributes);c.useListener(e.ComposeBoxActions,"set_ctwa_context_link_data_"+a,b.onCtwaContextLinkData);c.useListener(e.ComposeBoxActions,"set_text_content_"+a,b.onSetTextContent)}g["default"]=a}),98);
__d("WAWebUseShouldShowBotSuggestions",["WAWebBotGating","WAWebMsgType","WAWebUserPrefsMeUser","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g){function a(a,b){var e=c("useWAWebEventTargetValue")(a,["change:msgsLength"],function(){var b,c=d("WAWebBotGating").isBotEnabled()&&a.id.isBot();b=(b=a.msgs.last())==null?void 0:b.subtype;return c&&(a.msgsLength===0||a.msgsLength===1&&b==="bot_init")}),f=c("useWAWebEventTargetValue")(a,["change:msgsLength"],function(){if(!d("WAWebBotGating").isBizBot3pAvailable()||!b||b.length===0)return!1;var c=a.msgs.last();if(!c||c.subtype==="biz_bot_3p_disclosure")return!0;if(c.type===d("WAWebMsgType").MSG_TYPE.CHAT&&!d("WAWebUserPrefsMeUser").isMeAccount(c.from)){c=a.msgs.at(a.msgs.length-2);if((c==null?void 0:c.subtype)==="biz_bot_3p_disclosure")return!0}return!a.msgs.some(function(a){return a.type!==d("WAWebMsgType").MSG_TYPE.NOTIFICATION_TEMPLATE&&a.type!==d("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION})?!0:!1},[b]);return e||f}g.useShouldShowBotSuggestions=a}),98);
__d("WAWebComposeBox.react",["fbt","$InternalEnum","PaymentLink","PaymentLinkWamLogger","Promise","WAAbortError","WAFilteredCatch","WALogger","WANullthrows","WAShiftTimer","WATimeUtils","WAWebABProps","WAWebApiPrepareCtwaContextSend","WAWebAttachMenuGatingUtils","WAWebAttachmentMenuLogger","WAWebAutoMuteLargeGroupActionsWamEvent","WAWebBizGatingUtils","WAWebBizQueryCtwaContextBridge","WAWebBlocklistCollection","WAWebBotCommandSuggestions.react","WAWebBotGating","WAWebBotProfileCollection","WAWebBotSuggestions.react","WAWebBotTypes","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebChatPreferenceCollection","WAWebClassnames","WAWebCmd","WAWebCodeFormatMutator","WAWebComposeBox.scss","WAWebComposeBoxPopupPanels.react","WAWebComposeBoxUtils","WAWebConstantsDeprecated","WAWebConversationSpamUtils","WAWebCopyPasteCopyableArea.react","WAWebCryptoRandomMediaKey","WAWebDrawerManager","WAWebElevatedPushNamesFlag","WAWebEmojiPickerPlugin","WAWebEmojiSuggestions.react","WAWebFMXUtils","WAWebFilePicker.react","WAWebFileUtils","WAWebFocusIndicator","WAWebGenMinimalLinkPreviewChatAction","WAWebKeyboardHotKeys.react","WAWebLexicalUtils","WAWebLinkPreviewChatAction","WAWebLinkify","WAWebMediaGetUploadOriginForChat","WAWebMediaOpaqueData","WAWebMediaUploadMmsThumbnail","WAWebMentionPickerPlugin","WAWebMentionSuggestions.react","WAWebMessageComposer.react","WAWebMessageEditGatingUtils","WAWebMimeTypes","WAWebMiscErrors","WAWebMmsMediaTypes","WAWebNewsletterGatingUtils","WAWebNewsletterSendMsgAction","WAWebNux","WAWebPrepareMessageSendingAction","WAWebPresenceChatAction","WAWebProtobufsE2E.pb","WAWebPttComposer.react","WAWebPttComposerRecordingSession","WAWebQuickReplyLogging","WAWebQuickReplySuggestions.react","WAWebReconnectUtil","WAWebRecordingSessionStateEnum","WAWebRichTextInput.react","WAWebRichTextInputGatingUtils","WAWebSendStickerAction","WAWebSendTextMsgChatAction","WAWebStateUtils","WAWebStickerSuggestions.react","WAWebStopEvent","WAWebSuggestionsPanelContainer.react","WAWebTabOrder","WAWebTextSizeUtils","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUim","WAWebUimUie.react","WAWebUseBusinessProfile.react","WAWebUseComposeBoxActionListeners","WAWebUseIsKeyboardUser","WAWebUseShouldShowBotSuggestions","WAWebUserPrefsGeneral","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebWamEnumAutoMuteActionType","WAWebWamEnumMediaPickerOriginType","WAWebWamEnumQuickReplyEntryPoint","WAWebWamEnumWebcStickerMakerEventNameType","WAWebWebcStickerMakerEventsWamEvent","asyncToGeneratorRuntime","cr:5981","cr:5993","cr:7456","gkx","react","stylex","useForceUpdate","useLazyRef","useWAWebCallbackOnce","useWAWebDebouncedCallback","useWAWebListener","useWAWebModelValues","useWAWebNux","useWAWebOnUnmount","useWAWebSetModelValue","useWAWebStableCallback"],(function(a,b,c,d,e,f,g,aa){var h,i,j,k;function ba(){var a=babelHelpers.taggedTemplateLiteralLoose(["Unable to retrieve CTWA context data, error: ",""]);ba=function(){return a};return a}function ca(){var a=babelHelpers.taggedTemplateLiteralLoose(["Full preview upload has failed: "]);ca=function(){return a};return a}function da(){var a=babelHelpers.taggedTemplateLiteralLoose(["link preview: uploading new thumbnail mms"]);da=function(){return a};return a}function ea(){var a=babelHelpers.taggedTemplateLiteralLoose(["link preview: using an existing thumbnail mms"]);ea=function(){return a};return a}e=k||d("react");var l=j||(j=c("react")),fa=e.useEffect,ga=e.useImperativeHandle,ha=e.useMemo,m=e.useRef,n=e.useState,ia=/^https?:\/\/media\.giphy\.com\/media\/([a-zA-Z0-9]+)/,ja=1,ka=700,la=8,o=b("$InternalEnum").Mirrored(["ATTACHMENT_MENU","OTHER"]),p={blockCompose:{position:"x1n2onr6",zIndex:"xhtitgo",boxSizing:"x9f619",display:"x78zum5",flexDirection:"x1q0g3np",alignItems:"xuk3077",maxWidth:"x193iq5w",minHeight:"x122xwht",backgroundColor:"x1bmpntp",borderStartWidth:"xy80clv",borderStartColor:"xgkeump",borderStartStyle:"x26u7qi",$$css:!0},blockComposeRefresh:{backgroundColor:"xjbqb8w",minHeight:"x1wiwyrm",$$css:!0},mainContentContainer:{position:"x1n2onr6",flex:"x98rzlu",width:"xh8yej3",minWidth:"xeuugli",minHeight:"x1ofbdpd",$$css:!0},mainContentContainerRefresh:{minHeight:"x1gg8mnh",$$css:!0},footerRefresh:{minHeight:"x1wiwyrm",$$css:!0}};e=l.forwardRef(a);function a(a,e){var f;a=babelHelpers["extends"]({},a);var g=a.onPageUpDown,j=a.onComposeHeightChange,k=a.canShowSpamPanel;k=k===void 0?!1:k;var q=c("useForceUpdate")(),r=d("useWAWebModelValues").useModelValues(a.chat,["id","trusted","composeContents","composeQuotedMsg","isPSA","isGroup","pttRecordingSession","shouldAppearInList","presence","contact","attachMediaContents","quotedMsgAdminGroupJid","quotedMsgAdminGroupSubject","quotedMsgAdminParentGroupJid","composeQuotedMsgRemoteJid","isAutoMuted","isNewsletter","isBroadcast","newsletterMetadata"]),ma=d("useWAWebSetModelValue").useSetModelValue(r,"composeQuotedMsg"),na=d("useWAWebSetModelValue").useSetModelValue(r,"quotedMsgAdminGroupJid"),oa=d("useWAWebSetModelValue").useSetModelValue(r,"composeQuotedMsgRemoteJid"),pa=d("useWAWebSetModelValue").useSetModelValue(r,"pttRecordingSession"),s=d("useWAWebModelValues").useModelValues(c("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend","showExpandedComposer"]),t=ha(function(){return r.getComposeContents()},[r]),u=m(t==null?void 0:t.omittedURL),v=n(null),w=v[0],x=v[1];v=n(!1);var qa=v[0],ra=v[1];v=n(d("PaymentLinkWamLogger").LinkPreviewStatus.NOT_STARTED);var sa=v[0],ta=v[1],ua=m(t==null?void 0:t.omittedURL),y=m((t==null?void 0:t.text)||""),va=function(){var a=d("WAWebCodeFormatMutator").removeCodeBlocks(y.current);return d("WAWebLinkify").findLinks(a,!0,d("WAWebUserPrefsMeUser").assertGetMe())[0]};v=c("WAWebUseIsKeyboardUser")();v=v.isKeyboardUser;var z=n(null),wa=z[0],xa=z[1];z=function(){return r.id.isBot()||wa!=null};var A=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot3pAvailable()||d("WAWebBotGating").isBizBot1pEnabled()?a.chat.id:null,["commands","prompts","isBizBot1p","isBizBot3p"]);f=z()?d("WAWebBotProfileCollection").BotProfileCollection.get((f=wa)!=null?f:r.id):null;var ya=(A==null?void 0:A.commands)||d("WAWebBotGating").isMetaBotCommandsEnabled&&(f==null?void 0:f.commands)||null,za=m([]),B=c("useLazyRef")(function(){return new AbortController()}),C=n(!1),Aa=C[0],Ba=C[1];C=d("WAWebUseShouldShowBotSuggestions").useShouldShowBotSuggestions(a.chat,A==null?void 0:A.prompts);var Ca=function(){za.current=[],B.current.abort(),B.current=new AbortController(),Aa&&Ba(!1)};a=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION),ra(!0),Da(a)};var Da=function(a){a===void 0&&(a=d("WAWebUim").DismissReason.UIM_INTERACTION);if(a===d("WAWebUim").DismissReason.LIFECYCLE)return;d("WAWebABProps").getABPropConfigValue("link_preview_shimmer_enabled")&&Ca();w&&(ua.current=u.current,x(null))},D=function(){u.current=null,ra(!1),ta(d("PaymentLinkWamLogger").LinkPreviewStatus.NOT_STARTED),Da()},Ea=function(a,e){if(a.data.thumbnailDirectPath!==void 0){d("WALogger").LOG(ea());var f=d("WAWebComposeBoxUtils").getCachedPreview(a);x(function(b){return(b==null?void 0:b.url)!==a.url?b:f});return(h||(h=b("Promise"))).resolve()}d("WALogger").LOG(da());var g=a.data.thumbnailHQ;return!g?(h||(h=b("Promise"))).resolve():c("WAWebMediaOpaqueData").createFromBase64Jpeg(g).then(function(a){return c("WAWebMediaUploadMmsThumbnail")({thumbnail:a,mediaType:r.isNewsletter?d("WAWebMmsMediaTypes").MEDIA_TYPES.NEWSLETTER_THUMBNAIL_LINK:d("WAWebMmsMediaTypes").MEDIA_TYPES.THUMBNAIL_LINK,mediaKeyInfo:c("WAWebCryptoRandomMediaKey")(),uploadOrigin:c("WAWebMediaGetUploadOriginForChat")(r),forwardedFromWeb:!1,signal:e,timeout:c("WAWebConstantsDeprecated").MMS_THUMBNAIL_UPLOAD_TIMEOUT,isViewOnce:!1})}).then(function(b){var c=b.mediaEntry;if(!c)return;x(function(d){if((d==null?void 0:d.url)!==a.url)return d;d={mediaKey:c.mediaKey,mediaKeyTimestamp:c.mediaKeyTimestamp,thumbnailDirectPath:c.directPath,thumbnailSha256:b.filehash,thumbnailEncSha256:c.encFilehash};d=babelHelpers["extends"]({},a,{data:babelHelpers["extends"]({},a.data,d)});return d})})["catch"](d("WAAbortError").catchAbort(function(){}))["catch"](function(a){d("WALogger").LOG(ca()).devConsole(a)})},E=n(!!y.current),Fa=E[0],Ga=E[1];E=n(t==null?void 0:t.ctwaContextLinkData);var F=E[0],Ha=E[1],Ia=m(null);E=m(null);var G=m(null),Ja=m(null),Ka=m(null),La=m(null),Ma=m(0),Na=m(!1),Oa=m(!1),Pa=m(null),Qa=c("useWAWebStableCallback")(function(){if(!Fa||F){D();return}var a=va();if(!a){D();return}var b=a.url;if(u.current!==""&&u.current===b)return;u.current=b;ua.current=null;var c=B.current.signal;b=new(d("PaymentLink").PaymentLink)(b);var e=b.shouldDetectInComposer()&&b.isValid()?d("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.PAYMENT_LINKS:d("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,f=d("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(a,e,!0);d("WAWebABProps").getABPropConfigValue("link_preview_shimmer_enabled")&&x(f);ta(d("PaymentLinkWamLogger").LinkPreviewStatus.STARTED);b=d("WAWebLinkPreviewChatAction").getLinkPreview(a,r).then(function(b){if(c.aborted)throw new(d("WAAbortError").AbortError)();if(b&&u.current===b.url&&(b.data&&(b.data.title||b.data.description))){x(b);return Ea(b,c)["finally"](function(){ta(d("PaymentLinkWamLogger").LinkPreviewStatus.COMPLETED)})}d("WAWebABProps").getABPropConfigValue("link_preview_shimmer_enabled")&&f!=null&&x(d("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(a,e))});za.current.push(b);b["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").Unmount,function(){}))["catch"](d("WAAbortError").catchAbort(function(){}))}),H=c("useLazyRef")(function(){return new(d("WAShiftTimer").ShiftTimer)(Qa)}),Ra=m({text:"",parsableText:"",data:{}}),Sa=m(null),I=null,J=n(),K=J[0];J=J[1];var L=n(r.pttRecordingSession),Ta=L[0],Ua=L[1];L=n(r.pttRecordingSession!=null);var Va=L[0],Wa=L[1];L=n(null);var Xa=L[0],Ya=L[1];L=n("");var Za=L[0],$a=L[1];L=n(t==null?void 0:t.ctwaContext);var M=L[0],ab=L[1];t=n(function(){return d("WAWebConversationSpamUtils").shouldShowSpamPanel(r)});var bb=t[0],cb=t[1];L=function(a){$a(a)};t=function(){cb(!1),d("WAWebConversationSpamUtils").acknowledgeGroupAsNotSpam(r)};var db=function(){cb(!1)},N=d("WAWebNux").getChatAutoMutedNuxKey(r.id.toString());N=c("useWAWebNux")(N);var eb=N[0],fb=N[1];N=n(!1);var gb=N[0],hb=N[1];N=c("useWAWebCallbackOnce")(function(){new(d("WAWebAutoMuteLargeGroupActionsWamEvent").AutoMuteLargeGroupActionsWamEvent)({autoMuteAction:d("WAWebWamEnumAutoMuteActionType").AUTO_MUTE_ACTION_TYPE.USER_DIALOG_VIEW,autoMuteGroupSize:r.getParticipantCount()}).commit(),hb(!0)});var ib=function(){new(d("WAWebAutoMuteLargeGroupActionsWamEvent").AutoMuteLargeGroupActionsWamEvent)({autoMuteAction:d("WAWebWamEnumAutoMuteActionType").AUTO_MUTE_ACTION_TYPE.USER_DISMISS_BY_UNMUTE,autoMuteGroupSize:r.getParticipantCount()}).commit(),d("WAWebCmd").Cmd.muteChat(r,!1),fb(),hb(!1)},jb=function(a){a===void 0&&(a=!1),new(d("WAWebAutoMuteLargeGroupActionsWamEvent").AutoMuteLargeGroupActionsWamEvent)({autoMuteAction:a===!0?d("WAWebWamEnumAutoMuteActionType").AUTO_MUTE_ACTION_TYPE.USER_ADMIT_BY_MESSAGE_SEND:d("WAWebWamEnumAutoMuteActionType").AUTO_MUTE_ACTION_TYPE.USER_ADMIT_BY_OK,autoMuteGroupSize:r.getParticipantCount()}).commit(),fb(),hb(!1)},O=n({handleOnce:[],handleMultiple:[]}),kb=O[0],lb=O[1];d("useWAWebListener").useListener(d("WAWebBlocklistCollection").BlocklistCollection,["add","remove","reset"],q);O=n(s.showExpandedComposer);var mb=O[0],nb=O[1];q=function(){nb(!mb),s.set("showExpandedComposer",!s.showExpandedComposer)};var P=function(){var a=y.current,b=r.getComposeContents();if(b==null&&a.trim()==="")return;if((b==null?void 0:(b=b.text)==null?void 0:b.trim())===a.trim())return;b={text:a,timestamp:d("WATimeUtils").unixTime()};a=ua.current;a!=null&&(b.omittedURL=a);M!=null&&(b.ctwaContext=M);F!=null&&(b.ctwaContextLinkData=F);r.setComposeContents(b)},ob=function(a){P();D();var b=a.sourceUrl;b!=null&&b!==""&&d("WAWebBizQueryCtwaContextBridge").fetchCtwaContextData(a).then(function(a){ab(a),P()})["catch"](function(a){d("WALogger").WARN(ba(),a)})};fa(function(){Ma.current=c("WANullthrows")(G.current).clientHeight,H.current.debounceAndCap(50,50),F&&(!M||M.sourceUrl!==F.sourceUrl)&&(ab(null),ob(F))},[]);c("useWAWebOnUnmount")(function(){var a;H.current.cancel();B.current.abort();(a=Pa.current)==null?void 0:a.cancel();P()});var pb=c("useWAWebDebouncedCallback")(P,200),Q=function(){var a=y.current.trim().length>0;return a},R=function(a){K==null?void 0:K.focus()},qb=function(a,b){K==null?void 0:K.replaceSelection(a,b)};O=function(a,b){if(a===" "&&!Q())return d("WAWebCmd").Cmd.scrollMessages();R(!0);qb(a,b)};var S=function(a){R(!0),K==null?void 0:K.paste(a)},T=m(o.OTHER),rb=function(){var a;(a=Sa.current)==null?void 0:a.togglePanel();T.current=o.ATTACHMENT_MENU},sb=function(){K==null?void 0:K.reset()},U=function(){R()},V=m(null),tb=m(null),W=function(a){Ha(a),ab(null),ob(a)},ub=function(a){lb(function(b){var c=b.handleOnce;b=b.handleMultiple;return{handleOnce:a.handleOnce?c.concat(a.handleOnce):c,handleMultiple:a.handleMultiple?c.concat(a.handleMultiple):b}})},vb=function(){Ha(null),ab(null),P(),H.current.onOrBefore(1)},wb=function(){var a;(a=Ia.current)==null?void 0:a.activate();c("WAWebFocusIndicator").maybeIndicateFocus(La.current,c("WAWebComposeBox.scss").focusAnimation);R(!1)},xb=function(a){if(!g)return;a.stopPropagation();g(a);(a=Pa.current)==null?void 0:a.debounce(0)},X=c("useWAWebStableCallback")(function(){return r.getComposeContents()}),Y=c("useWAWebStableCallback")(function(a,b){b===void 0&&(b={});b=b;b=b.initCaptionUsed;a&&b&&sb();a&&vb()}),yb=c("useWAWebStableCallback")(function(){pb.flush()}),zb=function(){Ya(null),U()},Ab=function(a,b,c){a=d("WAWebComposeBoxUtils").fetchGif(a,b,c);pb.flush();d("WAWebCmd").Cmd.attachMediaDrawer({chat:r,attachments:[a],initCaption:X(),fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_GIF_INAPP,onComplete:function(a,b){Y(a,b),a&&zb()}});a["catch"](function(){});return a},Bb=function(a,b){Ab(a,a,b)},Cb=function(a,b){if(a.isCreateButton){var c;new(d("WAWebWebcStickerMakerEventsWamEvent").WebcStickerMakerEventsWamEvent)({stickerMakerEventName:d("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.STICKER_MAKER_BUTTON_TAP}).commit();(c=Ka.current)==null?void 0:c.open();return}c=r.composeQuotedMsg;var e=d("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(F,M);d("WAWebSendStickerAction").sendStickerToChat(r,a,{stickerSendOrigin:b,quotedMsg:c,ctwaContext:e});ma(null);vb()},Db=function(a){var b=Q();y.current=a;var c=Q();c!==b&&Ga(c);c?(r.presence.subscribe(),d("WAWebPresenceChatAction").markComposing(r),void d("WAWebPrepareMessageSendingAction").prepareChatForMessageSending(r)):(I=null,d("WAWebPresenceChatAction").markPaused(r));b=va();(!b&&u.current||b&&b.url!==u.current)&&D();Na.current?H.current.onOrBefore(1):H.current.debounce(ka);Na.current=!1;pb();!bb&&a&&!r.trusted&&cb(!0);c=Ra.current.data;b=c.mentionedJidList;a=b==null?void 0:b.find(function(a){return a.isBot()});xa(a)},Eb=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;r.pttRecordingSession!=null?a=r.pttRecordingSession:(a=d("WAWebPttComposerRecordingSession").createRecordingSession({chat:d("WAWebStateUtils").unproxy(r)}),a.on("change:recordingState",function(){var b=a.recordingState;r.pttRecordingSession===a&&(b===d("WAWebRecordingSessionStateEnum").RecordingSessionState.ERROR||b===d("WAWebRecordingSessionStateEnum").RecordingSessionState.STOPPED)&&pa(null)}));Ua(a);Wa(!1);var b;try{b=(yield a.start())}finally{var c=b?a:null;pa(c);Ua(c);Wa(c!=null)}});return function(){return a.apply(this,arguments)}}(),Fb=function(a){Ya(a),a!=null&&d("WAWebUserPrefsGeneral").setLastComposeBoxPanel(a)},Gb=function(a){a=a.getFiles().filter(function(a){a=d("WAWebFileUtils").typeFromMimetype(a.type);return a==="image"||a==="video"});a.length&&(pb.flush(),d("WAWebCmd").Cmd.attachMediaDrawer({chat:r,attachments:a.map(function(a){return{file:a}}),fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.PASTE,initCaption:X(),onComplete:Y}))},Z=function(a){var b=ia.exec(a);if(b){b="https://media.giphy.com/media/"+b[1]+"/200w.mp4";Ab(b,a,d("WAWebProtobufsE2E.pb").Message$VideoMessage$Attribution.GIPHY)["catch"](function(){d("WAWebDrawerManager").DrawerManager.closeDrawerMid(),R(!0),K==null?void 0:K.replaceSelection(a),d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:aa._("__JHASH__3NqmbS0GWwG__JHASH__")}))});return!0}Na.current=!0;return!1},Hb=function(){return!G.current?0:G.current.offsetWidth-ja},Ib=function(a){var b;a=a.target;if(a instanceof HTMLElement&&((b=tb.current)==null?void 0:b.contains(a)))return;wb();d("WAWebFMXUtils").supportsFMX()&&!r.isGroup&&Fa&&cb(!0)},Jb=function(){var a;d("WAWebReconnectUtil").reconnect();var b=Ra.current.text.trim(),c=Ra.current.data;if(b.length===0&&!F)return;Ca();var e=r.composeQuotedMsg,f=r.quotedMsgAdminGroupJid,g=r.quotedMsgAdminGroupSubject,aa=r.quotedMsgAdminParentGroupJid,h=w==null?void 0:w.data,i=c.mentionedJidList||[];c=c.groupMentions||[];var j=d("WAWebApiPrepareCtwaContextSend").prepareCtwaContextSend(F,M),k=Oa.current;Ya(null);Ga(!1);x(null);(a=V.current)==null?void 0:a.close();if(gb){a=!0;jb(a)}I&&(d("WAWebQuickReplyLogging").logQuickReplySendEvent(I===o.ATTACHMENT_MENU?d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_ATTACHMENT_PANEL:d("WAWebWamEnumQuickReplyEntryPoint").QUICK_REPLY_ENTRY_POINT.QUICK_REPLY_ENTRY_POINT_KEYBOARD),I=null);if(k){a=d("WAWebStateUtils").unproxy(r);a.urlText&&(a.urlText=void 0)}k={linkPreview:h,quotedMsg:e,mentionedJidList:i,groupMentions:c,quotedMsgAdminGroupJid:f,quotedMsgAdminGroupSubject:g,quotedMsgAdminParentGroupJid:aa,ctwaContext:j};r.isNewsletter?d("WAWebNewsletterSendMsgAction").sendNewsletterTextMsg(r,b,k):(d("WAWebSendTextMsgChatAction").sendTextMsgToChat(r,b,babelHelpers["extends"]({},k,{botMsgBodyType:d("WAWebBotGating").isBizBot3pAvailable()&&(A==null?void 0:A.commands)&&d("WAWebLexicalUtils").hasBotCommand(K==null?void 0:K.editor)?d("WAWebBotTypes").BotMsgBodyType.COMMAND:null})),vb(),kb.handleOnce.forEach(function(a){return a==null?void 0:a()}),kb.handleMultiple.forEach(function(a){return a==null?void 0:a()}),lb({handleMultiple:kb.handleMultiple,handleOnce:[]}));if(d("PaymentLinkWamLogger").PaymentLinkWamLogger.shouldLogPaymentLinkSendEvent()){a=d("WAWebUserPrefsMeUser").getMaybeMeUser();h=a!=null?d("WAWebBusinessProfileUtils").hasCatalog(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a)):!1;d("PaymentLinkWamLogger").PaymentLinkWamLogger.genLogSendEventIfPaymentLink(d("WAWebCodeFormatMutator").removeCodeBlocks(b),qa,w,sa,h,r)["catch"](function(){})}Oa.current=!1;ma(null);na(null);oa(null);r.setComposeContents({});sb();Q()},$=c("useWAWebStableCallback")(function(a){K==null?void 0:K.setTextContent(a)}),Kb=function(a){if(Xa){var b;(b=Ja.current)==null?void 0:b.restoreFocus(!0);d("WAWebStopEvent").stopEvent(a)}},Lb=c("useWAWebDebouncedCallback")(function(a){if(Q()||!(r.isNewsletter?d("WAWebNewsletterGatingUtils").isNewsletterMessageEditingEnabled():d("WAWebMessageEditGatingUtils").sendTextEditEnabled()||d("WAWebMessageEditGatingUtils").sendCaptionEditEnabled()))return;d("WAWebComposeBoxUtils").editLastMessage(r,a)},200,{trailing:!0}),Mb=function(){Ua(null),Wa(!1),U()},Nb=function(a){if(!a)return;a.stopPropagation();a=a.target.files==null?[]:Array.from(a.target.files);if(!a.length)return;new(d("WAWebWebcStickerMakerEventsWamEvent").WebcStickerMakerEventsWamEvent)({stickerMakerEventName:d("WAWebWamEnumWebcStickerMakerEventNameType").WEBC_STICKER_MAKER_EVENT_NAME_TYPE.IMAGE_UPLOADED}).commit();d("WAWebCmd").Cmd.attachMediaDrawer({chat:r,attachments:a.map(function(a){return{file:a,stickerMaker:!0}}),fileOrigin:d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,sendAsSticker:!0})};c("WAWebUseComposeBoxActionListeners")(r,{onFocus:U,onPaste:O,onRoutedPaste:S,onSend:Jb,onToggleQuickReplies:rb,onCtwaContextLinkData:W,onSendingLogAttributes:ub,onSetTextContent:$});O=d("WAWebTextSizeUtils").getWAWebTextSizeStyles().composerFontSize;S=d("WAWebStateUtils").unproxy(r).groupMetadata;rb=function(a){d("WAWebSendTextMsgChatAction").sendTextMsgToChat(r,a,{botMsgBodyType:d("WAWebBotGating").isBizBot3pAvailable()?d("WAWebBotTypes").BotMsgBodyType.PROMPT:null})};W=d("WAWebComposeBoxUtils").getComposeBoxPlaceholderText(r);var Ob=m(null);ub=function(a){var b;a&&d("WAWebAttachMenuGatingUtils").areExpressionPanelsOpenEnabled();Ob==null?void 0:(b=Ob.current)==null?void 0:b.forceHide(a)};J=l.jsxs(d("WAWebRichTextInput.react").RichTextInput,{ref:J,placeholder:W,ariaLabel:W,ariaActiveDescendents:Za,textXstyle:O,testid:void 0,initialText:($=X())==null?void 0:$.text,groupMetadata:S,readOnly:Ta!=null,maxLength:c("WAWebConstantsDeprecated").MAX_TXT_MSG_SIZE,maxVisibleLines:la,minVisibleLines:mb?2:1,spellCheck:s.spellcheck,transformTextEmoji:s.transformTextEmoji,enterIsNewLine:!s.enterIsSend,multiline:!0,focusOnMount:!v,textFormatEnabled:!0,tabOrder:d("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_INPUT,onChange:function(a){Ra.current=a,Db(a.parsableText)},onEnter:Jb,onFiles:Gb,onTextPaste:Z,onMaxPasteExceeded:d("WAWebComposeBoxUtils").handleMaxPasteExceeded,bulletPointsEnabled:!0,numberedListEnabled:!0,inlineCodeEnabled:!0,blockQuoteEnabled:!0,internLinksEnabled:!0,phoneNumbersEnabled:!0,linksEnabled:!0,textFormatShortcutsEnabled:!0,floatingToolbarEnabled:!mb,botInvokeEnabled:r.canInvokeBot(),highlightedBotCommands:ya,children:[d("WAWebRichTextInputGatingUtils").composerV2M2Enabled()&&l.jsx(d("WAWebEmojiPickerPlugin").EmojiPickerPlugin,{}),d("WAWebRichTextInputGatingUtils").composerV2M2Enabled()&&l.jsx(d("WAWebMentionPickerPlugin").MentionPickerPlugin,{groupMetadata:S,elevatedPushNamesEnabled:d("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(r),botInvokeEnabled:r.canInvokeBot()})]});var Pb;W=K==null?void 0:K.editor;W!=null&&(Pb=l.jsxs(l.Fragment,{children:[!d("WAWebRichTextInputGatingUtils").composerV2M2Enabled()&&l.jsx(d("WAWebMentionSuggestions.react").MentionSuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,groupMetadata:S,elevatedPushNamesEnabled:d("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(r),botInvokeEnabled:r.canInvokeBot()}),!d("WAWebRichTextInputGatingUtils").composerV2M2Enabled()&&l.jsx(d("WAWebEmojiSuggestions.react").EmojiSuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,emojiSuggestionSelect:L}),d("WAWebABProps").getABPropConfigValue("web_sticker_suggestions_enable")&&l.jsx(d("WAWebStickerSuggestions.react").StickerSuggestions,{ref:Ob,kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,onSelect:function(a){V==null?void 0:(a=V.current)==null?void 0:a.close()},onDismiss:function(){var a;V==null?void 0:(a=V.current)==null?void 0:a.close()}}),d("WAWebBizGatingUtils").canSendQuickReplyInChat(r)&&l.jsx(d("WAWebQuickReplySuggestions.react").QuickReplySuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,ref:Sa,onSelect:function(){T.current===o.ATTACHMENT_MENU?(d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentSend(r,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY),I=o.ATTACHMENT_MENU):I=o.OTHER,T.current=o.OTHER},onHide:function(){T.current===o.ATTACHMENT_MENU&&d("WAWebAttachmentMenuLogger").AttachmentMenuLogger.logAttachmentCancel(r,d("WAWebAttachmentMenuLogger").AttachmentMenuTarget.QUICK_REPLY),T.current=o.OTHER}}),(d("WAWebBotGating").isBizBot3pEnabled()&&A||d("WAWebBotGating").isMetaBotCommandsEnabled()&&f)&&l.jsx(d("WAWebBotCommandSuggestions.react").BotCommandSuggestions,{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W,businessProfile:A&&d("WAWebStateUtils").unproxy(A),botProfile:f}),!c("gkx")("26258")&&b("cr:5993")?l.jsx(b("cr:5993"),{kind:d("WAWebSuggestionsPanelContainer.react").SuggestionsPanelKind.ComposeBox,editor:W}):null]}));ga(e,function(){return{flushSaveComposeContentDebounced:yb,getCurrentComposeContent:X,updateTextAfterMediaDrawerClose:Y}},[yb,X,Y]);Za=null;C&&(Za=l.jsx(d("WAWebBotSuggestions.react").BotSuggestions,{id:r.id,onPromptSelect:rb}));O={chat:r,pttComposerActive:Va,isMessageToBot:z(),getCurrentComposeContent:X,richTextInputRef:K,updateTextAfterMediaDrawerClose:Y,inputHotkeyRef:La,handleTab:Kb,handleMetaUpDebounced:Lb,handleInputFocus:Ib,input:J,expressionsPanelWrapperRef:tb,expressionsPanelPickerRef:V,replaceInputSelection:qb,handlePanelsSticker:Cb,handlePanelsGif:Bb,hasTextState:Fa,handleSendText:Jb,recordingSession:Ta,startRecording:Eb,onExpressionPanelActive:ub};$=d("WAWebRichTextInputGatingUtils").composerV2M2Enabled()&&Boolean(b("cr:7456"));mb&&b("cr:7456")?Gb=l.jsx(b("cr:7456"),babelHelpers["extends"]({},O,{onCollapseComposer:q})):Gb=l.jsx(d("WAWebMessageComposer.react").MessageComposer,babelHelpers["extends"]({},O,{handlePanelChange:Fb,selectedPanelId:Xa,onExpandComposer:$?q:null}));return l.jsx(d("WAWebUimUie.react").UIE,{displayName:"ComposeBox",ref:Ia,uimState:d("WAWebUim").UIMState.PASSIVE,requestFocus:v?null:U,children:l.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{component:"footer",tabIndex:null,handlers:{pagedown:xb,pageup:xb},className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((Z={},Z[c("WAWebComposeBox.scss").pttComposerActive]=Va,Z[c("WAWebComposeBox.scss").footer]=!0,Z[c("WAWebComposeBox.scss").botSuggestions]=C,Z),(i||(i=c("stylex")))(d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&p.footerRefresh)),ref:E,children:[!c("gkx")("26258")&&!r.isGroup&&b("cr:5981")?l.jsx(b("cr:5981").InternalStatusWarningComposeBox,{id:r.contact.id,borders:!0}):null,Za,l.jsx(c("WAWebCopyPasteCopyableArea.react"),{canCut:!0,className:i(p.blockCompose,d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&p.blockComposeRefresh,!d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&[d("WAWebUISpacing").uiPadding.bottom5,d("WAWebUISpacing").uiPadding.horiz16]),ref:G,children:l.jsxs("div",{"data-testid":void 0,className:i(p.mainContentContainer,d("WAWebUIRefreshGatingUtils").composeBoxRefreshEnabled()&&p.mainContentContainerRefresh),children:[l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pttComposer",children:Va?l.jsx("div",{className:c("WAWebComposeBox.scss").pttComposerContainer,children:l.jsx(c("WAWebPttComposer.react"),{chat:d("WAWebStateUtils").unproxy(r),recordingSession:c("WANullthrows")(Ta),onComplete:Mb})}):null}),l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"messageComposer",children:Gb})]})}),l.jsx(c("WAWebComposeBoxPopupPanels.react"),{ref:Ja,chat:r,linkPreviewData:w==null?void 0:w.data,ctwaContextLinkData:F,ctwaContextData:M,restoreFocus:U,selectedPanelId:Xa,getComposeBlockWidth:Hb,onComposeHeightChange:j,omitLinkPreview:a,omitCtwa:vb,attachmentButtonHidden:z(),onEmoji:qb,onGif:Bb,onPanelChange:Fb,onSticker:Cb,onPanelClose:zb,showSpamPanel:k&&bb,onClickNotSpam:t,onClickDismissSpam:db,canShowChatAutoMutedNux:eb,onOpenChatAutoMuteNux:N,onAcceptChatAutoMuteNux:jb,onUnmuteChatAutoMuteNux:ib}),l.jsx(c("WAWebFilePicker.react"),{ref:Ka,mimes:d("WAWebMimeTypes").IMAGE_MIMES,onChange:Nb,multiple:!1}),Pb]})})}a.displayName=a.name+" [from "+f.id+"]";a=e;g.ComposeBox=a}),226);
__d("WAWebCongratulationsAnimationConversation.react",["WAWebCongratulationsAnimation.react","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef;function l(a,b){a.animationCandidateData&&(b==null?void 0:b.triggerAnimation({animation:a.animationCandidateData.animationType}),a.setCelebrationAnimationLastPlayed())}function a(a){a=a.chat;var b=k();a=d("useWAWebModelValues").useModelValues(a,["animationCandidateData","celebrationAnimationLastPlayed"]);a.animationCandidateData&&a.animationCandidateData.msgTimestampSeconds>a.celebrationAnimationLastPlayed&&l(a,b.current);return j.jsx(d("WAWebCongratulationsAnimation.react").CongratulationsAnimation,{ref:b})}a.displayName=a.name+" [from "+f.id+"]";g.CongratulationsAnimationConversation=a}),98);
__d("WAWebContactMsgInfoFlowLoadable",["fbt","JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebContactMsgInfoFlow.react").__setRef("WAWebContactMsgInfoFlowLoadable").load());return a}),"ContactMsgInfoFlow");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingDrawer.react"),{title:h._("__JHASH__6ZxqC6H3okB__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.ContactMsgInfoFlowLoadable=d}),226);
__d("WAWebConversationLoadMoreMessagesHistorySync",["fbt","WALogger","WAWebAlertSyncPausedIcon","WAWebChatConstants","WAWebClock","WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncOnDemandEvents","WAWebHistorySyncPausedPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebModalManager","WAWebNonMessageDataRequestHistorySyncOnDemandUtils","WAWebProtobufsE2E.pb","WAWebSendNonMessageDataRequest","WAWebSpinner.react","WAWebSyncGatingUtils","WAWebSyncInProgressIcon","WAWebUserPrefsHistorySync","gkx","react","stylex","useWAWebHistorySyncProgressValues","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] fail for chat ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync][on demand] success for chat ",""]);m=function(){return a};return a}var n=k||c("react"),o=(i||(i=d("react"))).useState,p={historySyncSystemMsg:{color:"x14m1o6m",background:"x126m2zf",boxShadow:"x1b9z3ur",$$css:!0},historySyncLoadingIndicator:{color:"x14m1o6m",backgroundColor:"x150wa6m",boxShadow:"x1b9z3ur",$$css:!0},historySyncStateContainer:{boxSizing:"x9f619",display:"x1rg5ohu",flex:"x1okw0bk",maxWidth:"x193iq5w",paddingTop:"x123j3cw",paddingEnd:"xn6708d",paddingBottom:"x10b6aqq",paddingStart:"x1ye3gou",fontSize:"x13a8xbf",lineHeight:"xdod15v",textAlign:"x2b8uid",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0}};function a(a){var b=a.chatId;a=a.mdHistorySyncTransferState;var e=d("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([d("WAWebHistorySyncProgressGetters").getInProgress,d("WAWebHistorySyncProgressGetters").getPaused]),f=e[0];e=e[1];var g=a===d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.INCOMPLETE,i=b==null?void 0:b.toJid(),k=o(function(){return i!=null?new Set(d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").inFlightHistorySyncOnDemandRequests.values()).has(i):!1}),q=k[0],r=k[1];k=o(null);var s=k[0],t=k[1];d("useWAWebListener").useListener(d("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents,"history_sync_on_demand_events:success_history_sync_od",function(a){d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a===i&&(d("WALogger").LOG(m(),c("gkx")("26258")?"":b),r(!1),t(!0))});d("useWAWebListener").useListener(d("WAWebHistorySyncOnDemandEvents").WAWebHistorySyncOnDemandEvents,"history_sync_on_demand_events:error_history_sync_od",function(a){d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a===i&&(d("WALogger").LOG(l(),c("gkx")("26258")?"":b),r(!1),t(!1))});var u,v,w;if(g&&f)u=e?d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_SYSTEM_MESSAGE_TEXT():d("WAWebHistorySyncUIText").SYNC_IN_PROGRESS_CONTEXTUAL_SYSTEM_MESSAGE_TEXT(),v=e?n.jsx(d("WAWebAlertSyncPausedIcon").AlertSyncPausedIcon,{width:14,height:14}):n.jsx(d("WAWebSyncInProgressIcon").SyncInProgressIcon,{width:11,height:14}),w=e?function(){d("WAWebModalManager").ModalManager.open(n.jsx(c("WAWebHistorySyncPausedPopup.react"),{}))}:function(){d("WAWebModalManager").ModalManager.open(n.jsx(c("WAWebHistorySyncInProgressPopup.react"),{}))};else{if(d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&a!=null&&!f&&!q&&!d("WAWebNonMessageDataRequestHistorySyncOnDemandUtils").historySyncOnDemandRequestsFailureRecord.disableRequestSending)switch(a){case d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY:b!=null&&(s!==!1?u=h._("__JHASH__pvzE2_DSA1K__JHASH__"):(u=h._("__JHASH__S6j0zPwt9FS__JHASH__"),v=n.jsx(d("WAWebAlertSyncPausedIcon").AlertSyncPausedIcon,{width:14,height:14})),w=function(){r(!0),d("WAWebSendNonMessageDataRequest").sendPeerDataOperationRequest(d("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.HISTORY_SYNC_ON_DEMAND,{chatId:b}),t(null)});break;case d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY:u=h._("__JHASH__vxGNqBuXAuO__JHASH__");break;default:break}if(u==null){k=d("WAWebClock").Clock.relativeDateStr(d("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate());u=h._("__JHASH__vIqNJqZEv6W__JHASH__",[h._param("date",k)])}}if(d("WAWebSyncGatingUtils").isHistorySyncOnDemandEnabled()&&q)return n.jsx("div",{className:"x78zum5 x1okw0bk xl56j7k xexx8yu x4uap5 xwxc41k xkhd6sd",children:n.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k x187nhsf xn3w4p2 xdj266r xkrivgy xat24cr x1gryazu xiqmkuo x150wa6m x14yjl9h xudhj91 x18nykt9 xww2gxu x1wpep30",children:n.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24,color:"highlight"})})});e=n.jsxs("div",{className:"x78zum5 x6s0dn4 x1r0jzty x17zd0t2",children:[v,n.jsx("div",{children:u})]});f=(j||(j=c("stylex")))(!g&&p.historySyncSystemMsg,g&&p.historySyncLoadingIndicator,p.historySyncStateContainer);a=w!=null?n.jsx("button",{className:f,onClick:w,children:e}):n.jsx("div",{className:f,children:e});return n.jsx("div",{className:"x78zum5 x1okw0bk xl56j7k xqy66fx x4uap5 x1hhzuzn xkhd6sd",children:a})}a.displayName=a.name+" [from "+f.id+"]";g.HistorySyncLoadMoreMessages=a}),226);
__d("WAWebConversationLoadMoreMessages.react",["fbt","WAWebConversationLoadMoreMessagesHistorySync","WAWebRefreshIcon","WAWebSpinner.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.chatId,c=a.direction,e=a.isLoadingAroundMsgs,f=a.isLoadingEarlierMsgs,g=a.isLoadingRecentMsgs;a.isMostRecentCMC;var i=a.isRepairingMsgHistory,k=a.loadMoreMsgs;a=a.mdHistorySyncTransferState;f=c==="earlier"&&f;g=c==="recent"&&g;e=c==="around"&&e;f=f||g||e||i;g=a!=null&&!f;var l,m;if(f)e=j.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24,color:"highlight"}),l=h._("__JHASH__tdRLYwdNocz__JHASH__");else if(g)return j.jsx(d("WAWebConversationLoadMoreMessagesHistorySync").HistorySyncLoadMoreMessages,{mdHistorySyncTransferState:a,chatId:b});else{switch(c){case"earlier":l=h._("__JHASH__qUKMplZh2-K__JHASH__");break;case"recent":l=h._("__JHASH__AXXzuEim8e9__JHASH__");break;default:l=h._("__JHASH__tdRLYwdNocz__JHASH__")}e=j.jsx(d("WAWebRefreshIcon").RefreshIcon,{});m=k}return j.jsx("div",{className:"x78zum5 x1okw0bk xl56j7k xexx8yu x4uap5 xwxc41k xkhd6sd",children:j.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k x187nhsf xn3w4p2 xdj266r xkrivgy xat24cr x1gryazu xiqmkuo x150wa6m x14yjl9h xudhj91 x18nykt9 xww2gxu x1wpep30",title:l,onClick:m,children:e})})}a.displayName=a.name+" [from "+f.id+"]";g.LoadMoreMessages=a}),226);
__d("WAWebConversationMsgs.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={pane:"_ajyl",selectable:"_ajym",empty:"_ajyw",incomingContainer:"_ajyv",atMentions:"_ajyr",incoming:"_ajyn",buttonGap:"_ajys",buttonGapRemove:"_ajyt",ffFix:"_ajyo",unread:"_ajyp"};b=a;g["default"]=b}),98);
__d("WAWebConversationMsgsUtils",["WALogger","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgGetters","WAWebRenderCursor","gkx"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["invalid unreadDividerOffset: ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["insufficient unreadMsgs.length: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["unreadMsgs.length is: ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["MRM noEarlierMsgs on chat "," is true but chat.msgChunks has length: ",",\n                    and chat.msgs.length: ",""]);k=function(){return a};return a}function l(a){if(a==null)return null;return a.key!=null?babelHelpers["extends"]({},a,{msg:d("WAWebMsgCollection").MsgCollection.get(a.key)}):a}function a(a){a=a.msgLoadState;return{noEarlierMsgs:a.noEarlierMsgs,isLoadingEarlierMsgs:a.isLoadingEarlierMsgs,isLoadingRecentMsgs:a.isLoadingRecentMsgs,isLoadingAroundMsgs:a.isLoadingAroundMsgs,contextLoaded:a.contextLoaded,isRepairingMsgHistory:a.isRepairingMsgHistory}}function b(a,b,c){c=c.noEarlierMsgs&&a.shouldAppearInList&&b&&a.msgChunks.filter(function(a){return a.filter(function(b){return b.msgChunk===a}).length>0}).length>0;c&&d("WALogger").ERROR(k(),String(a.id),a.msgChunks.length,a.msgs.length).sendLogs("noEarlierMsgs-error");return c}function e(a,b){var c=a.focusCtx,e=a.chat,f=a.msgCollection;c=l(c)||m(a,b);a=c==null?void 0:c.msg;b=a==null?void 0:a.id;return{cursor:d("WAWebRenderCursor").RenderCursor.create({msgCollection:f,focusedMsgKey:b,type:e.isGroup?d("WAWebRenderCursor").RENDER_CURSOR.GROUP_CONVERSATION:d("WAWebRenderCursor").RENDER_CURSOR.CONVERSATION}),focusCtx:c}}function m(a,b){var e=a.chat,f=a.msgCollection,g=a.focusCtx,k;e.unreadCount?k=e.unreadCount:k=b;if(g&&!n(a)||!k)return;b=f.filter(function(a){return d("WAWebMsgGetters").getIsUnreadType(a)}).reverse().slice(0,k);if(b.length===k)c("gkx")("26258")||d("WALogger").LOG(j(),b.length),g=b[b.length-1];else{c("gkx")("26258")||d("WALogger").LOG(i(),b.length);return}a=e.unreadDividerOffset;if(a>0){k=f.filter(Boolean).reverse();b=k.indexOf(g);k.slice(b+1,b+a+1).every(function(a){return Boolean(d("WAWebFrontendMsgGetters").getAsRevoked(a))})?g=k[b+a]:d("WALogger").ERROR(h(),a).sendLogs("invalid-unread-divider-offset",{sampling:.001})}return{msg:g,isUnreadDivider:e.shouldShowUnreadDivider,highlightMsg:!1}}function n(a){return a.chat.msgs===a.msgCollection}g.validateFocusCtx=l;g.getMsgLoadState=a;g.noEarlierMsgStateIsIncorrect=b;g.getInitialCursorAndFocusContext=e;g.getUnreadFocusCtx=m;g.isMostRecentCMC=n}),98);
__d("WAWebGroupCatchUpWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({GroupCatchUp:[3058,{mentionsCountPendingPercentage:[4,d("WAWebWamCodegenUtils").TYPES.INTEGER]},[1,1,1],"regular"]},{GroupCatchUp:[]});g.GroupCatchUpWamEvent=a}),98);
__d("WAWebMath",[],(function(a,b,c,d,e,f){function a(a,b,c,d,e,f,g,h){var i={x:null,y:null,onLine1:!1,onLine2:!1},j=(h-f)*(c-a)-(g-e)*(d-b);if(j===0)return i;var k=b-f,l=a-e;g=(g-e)*k-(h-f)*l;e=(c-a)*k-(d-b)*l;k=g/j;l=e/j;i.x=a+k*(c-a);i.y=b+k*(d-b);k>0&&k<1&&(i.onLine1=!0);l>0&&l<1&&(i.onLine2=!0);return i}function b(a,b){if(a===0||b===0)return 0;a=a/b*100;return a%10===0?a:(parseInt(a/10,10)+1)*10}f.intersect=a;f.roundUp10thPercentage=b}),66);
__d("WAWebMessageStickyDateMarker.react",["WAWebEmojiText.react","WAWebVelocityTransitionGroup","WAWebWrapperSystemBubble.react","react"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useImperativeHandle,l=b.useState;e=j.forwardRef(a);function a(a,b){var e;a=l(void 0);var f=a[0],g=a[1];a=l(!0);var h=a[0],i=a[1],m=function(a){g(a)},n=function(a){i(a)};k(b,function(){return{updateDateMarkerText:m,setVisibility:n}});f&&h&&(e=j.jsx("div",{className:"x10l6tqk x8k05lb x9f619 x78zum5 xl56j7k xh8yej3 x12mz7nx xsyo7zv x47corl",children:j.jsx(c("WAWebWrapperSystemBubble.react"),{theme:"sticky",children:j.jsx(d("WAWebEmojiText.react").EmojiText,{direction:"auto",text:f})})}));return j.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"slide-down-date",children:e})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),98);
__d("WAWebNewsletterSubscribeToLiveUpdatesQuery",["WASmaxNewslettersSubscribeToLiveUpdatesRPC","WAWebBackendErrors","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebNewsletterRpcUtils").runWithBackoff(function(){return h(a)})}function h(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield d("WASmaxNewslettersSubscribeToLiveUpdatesRPC").sendSubscribeToLiveUpdatesRPC({iqTo:a}));switch(a.name){case"SubscribeToLiveUpdatesResponseSuccess":return{duration:a.value.liveUpdatesDuration*1e3};case"SubscribeToLiveUpdatesResponseServerError":var b=a.value.errorIQErrorInternalServerErrorMixin,c=b.code;b=b.text;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(c,b);case"SubscribeToLiveUpdatesResponseClientError":c=a.value.subscribeToLiveUpdatesClientErrors;switch(c.name){case"ItemNotFoundIQErrorResponse":b=c.value.errorIQErrorItemNotFoundMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"RateLimitedIQErrorResponse":b=c.value.errorIQErrorRateOverlimitMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"BadRequestIQErrorResponse":b=c.value.errorIQErrorBadRequestMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"SuspendedIQErrorResponse":b=c.value.errorIQErrorLockedMixin;a=b.text;b=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(b,a);case"UnavailableForLegalReasonsResponse":b=c.value.errorIQErrorUnavailableForLegalReasonsGenericMixin;a=b.text;c=b.code;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(c,a)}}});return i.apply(this,arguments)}g.subscribeToLiveUpdatesQuery=a}),98);
__d("WAWebNewsletterSubscribeToLiveUpdatesJob",["WAJobOrchestratorTypes","WAWebNewsletterSubscribeToLiveUpdatesQuery","WAWebOrchestratorNonPersistedJob"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("subscribeToLiveUpdates",function(){return d("WAWebNewsletterSubscribeToLiveUpdatesQuery").subscribeToLiveUpdatesQuery(a)},{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.subscribeToLiveUpdatesJob=a}),98);
__d("WAWebNewsletterSubscribeToLiveUpdatesAction",["WAJids","WALogger","WAWebNewsletterBridgeApi","WAWebNewsletterMetadataJob","WAWebNewsletterSubscribeToLiveUpdatesJob","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[subscribeToLiveUpdatesJob] Failed to subscribe to live updates"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][subscribeToLiveUpdatesJob] Failed to geosuspend channel "," on receiving 451 error - ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][subscribeToLiveUpdatesJob] Failed to suspend channel "," on receiving 423 error - ",""]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{return yield d("WAWebNewsletterSubscribeToLiveUpdatesJob").subscribeToLiveUpdatesJob(d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.toJid()))}catch(b){if((b==null?void 0:b.status)===423)try{yield d("WAWebNewsletterMetadataJob").suspendNewsletter(d("WAJids").toNewsletterJid(a.toJid())),void d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.suspendNewsletter({id:a})}catch(b){d("WALogger").ERROR(j(),a.toString(),b.name).devConsole(b).tags("newsletter").sendLogs("newsletter-subscribe-to-live-updates-suspend-error");return}else if((b==null?void 0:b.status)===451)try{yield d("WAWebNewsletterMetadataJob").geosuspendNewsletter(d("WAJids").toNewsletterJid(a.toJid())),void d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.geosuspendNewsletter({id:a})}catch(b){d("WALogger").ERROR(i(),a.toString(),b.name).devConsole(b).tags("newsletter").sendLogs("newsletter-subscribe-to-live-updates-geosuspend-error");return}d("WALogger").ERROR(h()).devConsole(b)}});return k.apply(this,arguments)}g.subscribeToLiveUpdates=a}),98);
__d("WAWebNewsletterLiveUpdatesManager",["WALogger","WAWebNewsletterSubscribeToLiveUpdatesAction","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[LiveUpdatesManager] Failed to subscribe to live updates"]);h=function(){return a};return a}a=function(){function a(){}var c=a.prototype;c.$3=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield d("WAWebNewsletterSubscribeToLiveUpdatesAction").subscribeToLiveUpdates(a));if(a==null){d("WALogger").WARN(h());return}return a.duration});function c(b){return a.apply(this,arguments)}return c}();c.$4=function(a,c){var d=this;this.unsubscribe();this.$1=self.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield d.$3(a));if(b!=null)return d.$4(a,b)}),c)};c.subscribe=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){this.unsubscribe();this.$2=a;var b=(yield this.$3(a));b!=null&&this.$4(a,b)});function c(b){return a.apply(this,arguments)}return c}();c.unsubscribe=function(){self.clearTimeout(this.$1)};return a}();c=new a();g.LiveUpdatesManager=c}),98);
__d("WAWebNewsletterRepairMsgHistoryAction",["WALogger","WAPromiseDelays","WARaceSignal","WAWebCommonNewsletterEnums","WAWebMsgDataFromModel","WAWebMsgModelFromData","WAWebNewsletterGatingUtils","WAWebNewsletterMsgHistoryLoggingUtils","WAWebNewsletterMsgHistoryUtils","WAWebNewsletterPullMessagesFromServerAction","WAWebNewsletterValidationUtils","WAWebStateUtils","WAWebWid","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose([""," repaired"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose([""," nothing to repair, exiting"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose([""," pulled "," from server"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose([""," no recent message found on server"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose([""," called for ",", anchor ",""]);l=function(){return a};return a}var m="[news-msg-history][repairMsgHistory]",n=1e3;function a(a){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b,e=d("WAWebStateUtils").unproxy(a.chat);if(!c("WAWebWid").isNewsletter(e.id))return;if(!d("WAWebNewsletterGatingUtils").isProactiveGapFillingEnabled())return;var f=(b=a.msgCollection)!=null?b:e.msgs;if(f!==e.msgs)return;if(f.repairMsgHistoryPromise!=null)return f.repairMsgHistoryPromise;b=e.newsletterMetadata;if(b==null||b.membershipType===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Guest)return;var g=f.sort().last();d("WALogger").DEV(l(),m,e.id.toString(),g==null?void 0:g.id).devConsole(e,g);if(g==null||g.serverId==null)return;var o=new AbortController();try{void c("WARaceSignal")([o.signal,a.unmountSignal],function(){return d("WAPromiseDelays").delayMs(n,o.signal).then(function(){f.msgLoadState.isRepairingMsgHistory=!0})["catch"](function(){})});if(a.fetchLastMessage){b=(yield d("WAWebNewsletterPullMessagesFromServerAction").pullNewsletterMessagesFromServer(e,{messageCount:1,resetUnreadCount:!0,shouldUpdateMsg:function(a){return a.serverId!==g.serverId}}));a=b[0];if(a==null){d("WALogger").DEV(k(),m);return}d("WALogger").DEV(j(),m,a.serverId).devConsole(a);b=a.serverId===g.serverId;b||void d("WAWebNewsletterMsgHistoryLoggingUtils").logHistoryGap({gapSize:1,newsletterJidOrWid:e.id})}f.repairMsgHistoryPromise=d("WAWebNewsletterMsgHistoryUtils").fillMsgHistoryGaps(d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(e.id.toJid()),f.toArray().map(d("WAWebMsgDataFromModel").msgDataFromMsgModel)).then(function(a){return a.map(d("WAWebMsgModelFromData").msgModelFromMsgData)});b=(a=(yield e.msgs.repairMsgHistoryPromise))!=null?a:[];if(f.length===b.length){d("WALogger").DEV(i(),m);return}d("WALogger").DEV(h(),m).devConsole(b);f.add(b,{silent:!0});f.sort({silent:!0});e.trigger("msgs:history_repaired")}finally{o.abort(),f.msgLoadState.isRepairingMsgHistory=!1,f.repairMsgHistoryPromise=null}});return o.apply(this,arguments)}g.repairNewsletterMsgHistory=a}),98);
__d("WAWebConversationMsgs.react",["fbt","WAAbortError","WAArrayFindNext","WAFilteredCatch","WALogger","WANullthrows","WARaceSignal","WAShiftTimer","WATimeUtils","WAWebBackendErrors","WAWebBizChatAssignmentOpenedAction","WAWebChatAssignmentUtils","WAWebChatConstants","WAWebChatLoadMessages","WAWebChatMessageSearch","WAWebChatThreadLogging","WAWebChatUnreadCount.react","WAWebChevronCustomIcons","WAWebClassnames","WAWebClock","WAWebCmd","WAWebComposeBoxActions","WAWebCongratulationsAnimationsGatingUtils","WAWebContactGetters","WAWebContactMenuDropdown.react","WAWebConversationLoadMoreMessages.react","WAWebConversationMenus","WAWebConversationMsgs.scss","WAWebConversationMsgsUtils","WAWebCopyPasteCopyableArea.react","WAWebDocumentFlushed","WAWebFocusTracer","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebGroupCatchUpWamEvent","WAWebListenerHoc_DEPRECATED","WAWebMath","WAWebMentionsIcon","WAWebMessageList.react","WAWebMessagePosition","WAWebMessageStickyDateMarker.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgKey","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterGetMessageUpdatesAction","WAWebNewsletterLiveUpdatesManager","WAWebNewsletterRepairMsgHistoryAction","WAWebNonMessageDataRequestPlaceholderMessageResendUtils","WAWebRound.react","WAWebSystemMessageGatingUtils","WAWebTabOrder","WAWebToast.react","WAWebToastManager","WAWebUA","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnmountSignalHoc_DEPRECATED.react","WAWebUpdateUnreadChatAction","WAWebUserPrefsMeUser","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","WAWebWid","err","fbs","lodash","react","shallowEqual"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMsgs] Error while checking if group notification context card is displayed: ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["ConversationMsgs:loadRecentMsgs failed\n",""],["ConversationMsgs:loadRecentMsgs failed\\n",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["ConversationMsgs:loadEarlierMsgs failed\n",""],["ConversationMsgs:loadEarlierMsgs failed\\n",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMgs] Promise reject openChatBottom"]);n=function(){return a};return a}function o(){var a=babelHelpers.taggedTemplateLiteralLoose(["[ConversationMgs] Promise reject loadAroundPromise"]);o=function(){return a};return a}function p(){var a=babelHelpers.taggedTemplateLiteralLoose(["_onHistorySyncStateUpdate called, attempt to load earlier"]);p=function(){return a};return a}a=j||d("react");var q=i||(i=c("react"));b=a.Component;var r=a.createRef,s=3e3,t=8.5,u=300,v=80,w={iconColor:{color:"x1h7gb8d",$$css:!0}};e=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=0;e.$3=new Map();e.$4=[];e.$10=!1;e.$11=!1;e.$12=function(a){return e.scrollContainer=a};e.$13=r();e.$14=r();e.$15=r();e.$27=function(a){var b=e.scrollContainer;b&&(void c("WAWebVelocityAnimate")(b,"stop"),void c("WAWebVelocityAnimate")(b,"scroll",{duration:300,container:b,offset:a}))};e.$37=function(a){var b=e.$14.current;e.$15.current=b==null?void 0:b.getMsgWrapperRef(a.toString())};e.$34=function(a){a.has(e.props.chat.id.toString())&&(d("WALogger").LOG(p()).tags("history-sync"),e.$10=!1,e.loadEarlierMsgs())};e.$43=function(){e.forceUpdate()};e.$28=function(a){a=e.$4[e.$4.length-1];if(!a)return;a=a.toString();var b=e.$14.current;if(a&&b){a=(b=b.getMsgWrapperRef(a))==null?void 0:b.getContainerElement();if(a){b=e.scrollContainer;if(!b)return;var c=e.$44(b,a);e.$42={msg:a,container:b,msgBottom:c}}}};e.$29=function(a){if(!e.$42)return;a=e.$42;var b=a.msg,c=a.container;a=a.msgBottom;e.$45(c,b,a);e.$42=void 0};e.$38=function(a){var b=e.props,c=b.listeners,f=b.chat;b=b.msgCollection;var g=a.focusCtx,i=a.chat;a=a.msgCollection;b&&(c.remove(b,"remove_msgs insert_msgs",e.$47),c.remove(f.msgs,"change:last",e.$48));c.remove(f,"change:unreadCount",e.$49);c.remove(f,"change:activeUnreadCount",e.$50);c.remove(f,"change:pendingDeleteForMeCount",e.$43);e.$9!=null&&e.$9();e.$9=a.onMsgLoadStateChange(e.$51);f.isGroup&&((b=f.groupMetadata)==null?void 0:b.unreadMentionMetadata.unreadMentionCollection)&&c.remove(f.groupMetadata.unreadMentionMetadata.unreadMentionCollection,"add remove reset",e.$52);i.isGroup&&((b=i.groupMetadata)==null?void 0:b.unreadMentionMetadata.unreadMentionCollection)&&c.add(i.groupMetadata.unreadMentionMetadata.unreadMentionCollection,"add remove reset",e.$52);c.add(i,"change:unreadCount",e.$49);c.add(i,"change:activeUnreadCount",e.$50);c.add(i,"change:pendingDeleteForMeCount",e.$43);c.add(i.msgs,"change:last",e.$48);c.add(a,"remove_msgs insert_msgs",e.$47);g&&a.loadAroundPromise&&a.loadAroundPromise["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").E404,function(){d("WALogger").DEV(o()),d("WAWebToastManager").ToastManager.open(q.jsx(d("WAWebToast.react").Toast,{msg:h._("__JHASH__ly_tfcw2PD0__JHASH__")})),d("WAWebCmd").Cmd.openChatBottom(i)["catch"](function(){d("WALogger").DEV(n())})}))};e.$17=c("lodash").throttle(function(){var a=e.props.getUnmountSignal();d("WAWebDocumentFlushed").documentFlushed({signal:a}).then(function(){if(a.aborted)throw new(d("WAAbortError").AbortError)();e.$41();if(a.aborted)return;var b=babelHelpers.assertThisInitialized(e);b=b.scrollContainer;if(b==null)return;!e.$10&&b.scrollTop<u&&e.loadEarlierMsgs();if(e.$10&&b.scrollTop<v)return;b.scrollTop>v&&(e.$10=!1);b=e.state;var c=b.isNearBottom;b=b.cursor;var f=e.$53();f?(e.$21(!0),d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)&&c!==f&&e.setState({isNearBottom:f,newUnread:0}),(b.getEnd(e.props.msgCollection)<e.props.msgCollection.length||!d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props))&&e.$54()):c!==f&&e.setState({isNearBottom:f})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAAbortError").AbortError,function(){}))},100);e.$51=function(){var a=e.state.msgLoadState,b=d("WAWebConversationMsgsUtils").getMsgLoadState(e.props.msgCollection),c={msgLoadState:b};if(a.isLoadingAroundMsgs&&!b.isLoadingAroundMsgs){a=d("WAWebConversationMsgsUtils").validateFocusCtx(e.props.focusCtx);b=a==null?void 0:a.msg;b&&(c=babelHelpers["extends"]({},c,{cursor:e.state.cursor.init(b.id,e.props.msgCollection),focusCtx:a}))}e.setState(c)};e.$18=c("lodash").throttle(function(){e.$41()},100);e.$33=function(a){var b=a.newKey;a=a.oldKey;var c=a.toString(),d=b.toString(),f=e.$3.get(c);f&&(e.$3["delete"](c),e.$3.set(d,f));for(c=0;c<e.$4.length;++c)if(e.$4[c]===a){e.$4[c]=b;break}};e.$19=c("lodash").debounce(function(){var a=e.$53();e.$53!==a&&e.setState({isNearBottom:a})},100);e.loadEarlierMsgs=function(){var a=e.props,b=a.chat,c=a.msgCollection;a=e.state;var f=a.cursor;a=a.msgLoadState;if(f.getStart(c)>0)f.hasBefore(c)&&e.setState({cursor:f.loadBefore(c)});else{if(a.isLoadingEarlierMsgs||a.isLoadingAroundMsgs)return;d("WAWebConversationMsgsUtils").noEarlierMsgStateIsIncorrect(b,d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props),a)&&(c.msgLoadState.noEarlierMsgs=!1);if(c.msgLoadState.noEarlierMsgs)return;var g=e.props.getUnmountSignal();d("WAWebChatLoadMessages").loadEarlierMsgs(b,c).then(function(a){if(g.aborted)return;!a||a.length===0?e.$10=!0:e.$10=!1;a={};e.state.focusCtx||(a.focusCtx=d("WAWebConversationMsgsUtils").getUnreadFocusCtx(e.props,e.state.unreadCount));f.hasBefore(c)?(a.cursor=f.loadBefore(c),e.setState(a)):e.setState(a)})["catch"](function(a){d("WALogger").LOG(m(),a)})}};e.$54=function(){var a=e.props,b=a.chat,f=a.msgCollection;a=e.state;var g=a.cursor;a=a.msgLoadState;if(g.getEnd(f)<f.length){e.setState({cursor:g.loadAfter(f)});return}if(a.isLoadingRecentMsgs||a.isLoadingAroundMsgs)return;a=new AbortController();var h=a.signal,i=e.props.getUnmountSignal();h=c("WARaceSignal")([h,i],function(a){return d("WAWebChatLoadMessages").loadRecentMsgs(b,f,a).then(function(){if(a.aborted)throw new(d("WAAbortError").AbortError)();g.hasAfter(f)?e.setState({cursor:g.loadAfter(f)}):e.state.cursor.getEnd(f)>=f.length&&d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)&&e.forceUpdate()})})["catch"](d("WAAbortError").catchAbort(function(){}))["catch"](function(a){d("WALogger").LOG(l(),a)})["finally"](function(){e.$8=null});e.$8={promise:h,controller:a}};e.handleComposeHeightChange=function(a){var b=e.scrollContainer;if(!b)return;if(a){if(b&&a<0&&b.scrollTop===b.scrollHeight-b.clientHeight)return;e.$46(b,b.scrollTop+a)}else{var d=b.scrollHeight-(b.scrollTop+b.clientHeight);c("WAWebVelocityAnimate")(b,{tween:18},{progress:function(){e.$46(b,b.scrollHeight-d-b.clientHeight)},duration:300},[.1,.82,.25,1])}};e.$55=function(){return c("WANullthrows")(e.scrollContainer)};e.getScrollBottom=function(){var a=e.scrollContainer;return!a?0:a.scrollHeight-(a.scrollTop+a.clientHeight)};e.$20=new(d("WAShiftTimer").ShiftTimer)(function(){var a;(a=e.$13.current)==null?void 0:a.setVisibility(!1)});e.$16=new(d("WAShiftTimer").ShiftTimer)(function(a){a=a||{};var b=a.dateMarkerIdx;a=a.silent;a=a===void 0?!1:a;var c=e.$14.current;if(!c||typeof b!=="number")return;a=a||Date.now()-(e.$2||0)<200;a||e.$39();a=c.getDateMarkerRef(b);if(b===-1){var f;(f=e.$13.current)==null?void 0:f.updateDateMarkerText()}else if(a){var g;f=a.getTimestamp();f=d("WAWebClock").Clock.relativeDateStr(f).toString().toUpperCase();(g=e.$13.current)==null?void 0:g.updateDateMarkerText(f)}if(e.$7!==b){g=c.getDateMarkerRef(e.$7);g&&g.show();a&&a.hide()}});e.$57=function(){e.$3.forEach(function(a,b){if((a=e.props.chat.groupMetadata)==null?void 0:a.unreadMentionMetadata.hasMentionId(b)){(a=e.props.chat.groupMetadata)==null?void 0:a.unreadMentionMetadata.removeUnreadMentions(b)}})};e.isMsgVisible=function(a,b){b===void 0&&(b=!1);a=a;var c=d("WAWebMsgCollection").MsgCollection.get(a);if(c!=null&&c.isCarouselCard===!0){a=(c=c.parentMsgId)!=null?c:a}return e.$3.has(a.toString())&&(b?!0:e.getMsgComponent(a))};e.getSequentialMsg=function(a){var b=e.getMsgs();return!b?null:c("WAArrayFindNext")(b,function(b){return a.equals(b.id)})};e.$58=function(a){e.$17()};e.$31=function(){var a=e.props.chat;if(e.$5||!a.isDirty()&&!a.hasUnreadEdit())return;a=2500;e.$5=self.setTimeout(function(){delete e.$5,e.$21()},a)};e.$32=function(){if(!e.state.unreadCount||!d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props))return;var a=e.props.chat;a.unreadCount===0&&(e.setState({unreadCount:0}),a.activeUnreadCount=0);a.markedUnread=!1};e.$59=function(){var a=e.props.msgCollection;d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)&&e.state.cursor.getEnd(a)>=a.length?e.$26():d("WAWebCmd").Cmd.openChatBottom(e.props.chat).then(function(a){a&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(e.props.chat)})};e.$60=function(){var a,b=e.props.chat;a=(a=b.groupMetadata)==null?void 0:a.unreadMentionMetadata;if(a){var f=a.pendingUnreadMentionCount,g=d("WAWebMath").roundUp10thPercentage(f,a.getUnreadMentionCount());new(d("WAWebGroupCatchUpWamEvent").GroupCatchUpWamEvent)({mentionsCountPendingPercentage:g}).commit();if(f>0){g=h._("__JHASH__JHt7qwKNC9z__JHASH__",[h._plural(f,"count")]);d("WAWebToastManager").ToastManager.open(q.jsx(d("WAWebToast.react").Toast,{msg:g}));a.pendingUnreadMentionCount=0;e.setState({unreadMentionCount:a.getUnreadMentionCount()});return}if(a.unreadMentionCollection.length){f=a.oldestUnreadMention();g=c("WAWebMsgKey").fromString(f==null?void 0:f.id);a=d("WAWebMsgCollection").MsgCollection.get(g.toString());f=d("WAWebChatMessageSearch").getSearchContext(b,a||g);f.highlightMentionMsg=!0;f.enableAnimation=!1;f&&d("WAWebCmd").Cmd.openChatAt(e.props.chat,f)}}};e.$26=function(a){var b=e.scrollContainer;b&&e.$46(b,b.scrollHeight-b.clientHeight);a&&a();var c=e.props.getUnmountSignal();d("WAWebDocumentFlushed").documentFlushed({signal:c}).then(function(){if(c.aborted)return;e.setState({cursor:e.state.cursor.resetBeforeCursor(e.props.msgCollection)})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAAbortError").AbortError,function(){}))};e.$48=function(a,b){var f=e.props,g=f.msgCollection;f=f.chat;var h=e.state.focusCtx,i=e.state.cursor,j=g.last();if(!d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)){b&&a&&d("WAWebMsgGetters").getIsSentByMe(a)&&e.$59();return}a={};var k=document.hasFocus(),l=e.$53(),m=l;k&&l?(a.unreadCount=f.activeUnreadCount,f.activeUnreadCount===0&&(a.focusCtx=void 0),i=i.setFocusedMsgKey(g)):j&&d("WAWebMsgGetters").getIsSentByMe(j)&&b&&(m=!0,e.state.unreadCount&&(a.unreadCount=0),a.focusCtx=void 0,i=i.setFocusedMsgKey(g),e.$59());h&&!Object.prototype.hasOwnProperty.call(a,"focusCtx")?i=i.loadAfter(g,{count:1}):i=i.loadBeforeCapped(g,{count:1});i!==e.state.cursor&&(a.cursor=i);c("lodash").isEmpty(a)||(e.$11=!0,e.setState(a,function(){b&&e.$25({fetchLastMessage:!1}),e.$11=!1,m&&e.$26(),e.$49()}))};e.$30=function(){e.$6=self.setTimeout(function(){var a;e.state.isNearBottom&&!(e.props.chat.isNewsletter===!0&&((a=e.state.focusCtx)==null?void 0:a.highlightMsg)===!0&&((a=e.state.focusCtx.msg)==null?void 0:a.isLastMessage())!==!0)&&e.$26()},1)};e.$52=function(){var a=e.props.chat;a=(a=(a=a.groupMetadata)==null?void 0:a.unreadMentionMetadata.getUnreadMentionCount())!=null?a:0;e.setState({unreadMentionCount:a})};e.$49=c("lodash").debounce(function(){if(e.$11)return;var a=e.props.chat,b=e.$53(),f=document.hasFocus();e.$21(b,f);f={};if(a.unreadCount&&!a.pendingSeenCount&&d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)){f.unreadCount=a.unreadCount;var g=d("WAWebConversationMsgsUtils").getUnreadFocusCtx(e.props,e.state.unreadCount);if(g&&f.focusCtx!==e.props.focusCtx){f.focusCtx=g;f.cursor=e.state.cursor.setFocusedMsgKey(e.props.msgCollection,(g=g.msg)==null?void 0:g.id)}}else if(a.unreadCount===0&&e.state.unreadCount!==0){g=e.props.msgCollection.last();g&&d("WAWebFrontendMsgGetters").getAsRevoked(g)&&(f.unreadCount=0)}var h=b&&f.unreadCount-e.state.unreadCount===1;(!b&&d("WAWebConversationMsgsUtils").isMostRecentCMC(e.props)||!a.pendingSeenCount&&e.state.newUnread!==a.unreadCount)&&(f.newUnread=a.unreadCount);c("lodash").isEmpty(f)||e.setState(f,function(){h&&e.$26()});a.unreadCount===0&&e.state.unreadCount!==0&&(a.activeUnreadCount=e.state.unreadCount)},150);e.$50=function(){if(e.$11)return;var a=e.props.chat;e.setState({unreadCount:a.activeUnreadCount})};e.$47=function(){var a=e.state.cursor.ensureValidFocus(e.props.msgCollection);e.state.cursor!==a?e.setState({cursor:a}):e.forceUpdate()};e.handlePageUpDown=function(a){c("WAWebFocusTracer").focus(e.scrollContainer)};e.scrollMessages=function(){var a=e.$4[e.$4.length-1];if(!a)return;var b=e.$14.current;if(!b)return;a=(b=b.getMsgWrapperRef(a.toString()))==null?void 0:b.getContainerElement();if(!a)return;b=e.$4.length===1?a.clientHeight:0;var d=e.scrollContainer;c("WAWebVelocityAnimate")(a,"stop");d&&c("WAWebVelocityAnimate")(d,"stop");c("WAWebVelocityAnimate")(a,"scroll",{duration:300,container:d,offset:b})};e.$61=function(a){if(a.metaKey||a.ctrlKey)return;a.preventDefault();a.key==="Enter"&&!a.shiftKey?d("WAWebComposeBoxActions").ComposeBoxActions.send(e.props.chat):d("WAWebComposeBoxActions").ComposeBoxActions.paste(e.props.chat,String.fromCharCode(a.charCode))};e.$62=function(a){var b=e.props.chat,f=e.props.onSelectMessages,g;if(d("WAWebContactGetters").getIsUser(b))g=q.jsx(c("WAWebContactMenuDropdown.react"),{chat:b,toContextMenuManager:!0,contact:b.contact,onSelectMessages:f,enableChatThreadLogging:!1});else if(d("WAWebContactGetters").getIsGroup(b))g=d("WAWebConversationMenus").groupMenu(b,f);else if(d("WAWebContactGetters").getIsBroadcast(b))g=d("WAWebConversationMenus").broadcastMenu(b,f);else return;a.preventDefault();a.stopPropagation();d("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"chatOverflowClicks",ts:d("WATimeUtils").unixTime(),chatId:b.id}]);e.setState({contextMenu:{menu:g,event:a}})};e.$63=function(){e.setState({contextMenu:null})};e.$64=function(a){a.preventDefault(),d("WAWebComposeBoxActions").ComposeBoxActions.sendPaste(e.props.chat,a)};e.$40=function(){if(!e.props.notifyChatRendered)return;e.props.notifyChatRendered(e.getMsgs())};e.$35=function(){var a=e.props.msgCollection,b=e.state.cursor;b.hasBefore(a)&&e.setState({cursor:b.loadBefore(a)})};e.$36=function(){var a,b=e.props.msgCollection;e.setState({cursor:e.state.cursor.init((a=b.last())==null?void 0:a.id,b)},function(){e.props.chat.unreadCount===0&&e.$59()})};var f=b.chat,g=f.pendingSeenCount?0:f.unreadCount,i=0;if(f.isGroup){i=(f=(f=f.groupMetadata)==null?void 0:f.unreadMentionMetadata.getUnreadMentionCount())!=null?f:0}e.state=babelHelpers["extends"]({},d("WAWebConversationMsgsUtils").getInitialCursorAndFocusContext(b,g),{unreadCount:g,unreadMentionCount:i,isNearBottom:!0,newUnread:0,contextMenu:null,msgLoadState:d("WAWebConversationMsgsUtils").getMsgLoadState(b.msgCollection),lastSelectable:b.selectable,lastChat:b.chat,lastMsgCollection:b.msgCollection,lastFocusCtx:b.focusCtx});return e}var e=b.prototype;e.componentWillUnmount=function(){this.$9!=null&&this.$9();this.$16.cancel();this.$17.cancel();this.$18.cancel();this.$19.cancel();this.$20.cancel();this.$5&&self.clearTimeout(this.$5);this.$6&&self.clearTimeout(this.$6);this.$21();this.props.chat.markedUnread=!1;if(this.props.chat.isGroup){var a;(a=this.props.chat.groupMetadata)==null?void 0:a.unreadMentionMetadata.reset()}this.props.chat.activeUnreadCount=0;this.$22()};e.$23=function(){var a=this.props.chat;a.isNewsletter&&d("WAWebNewsletterGatingUtils").isNewsletterReactionEnabled()&&void d("WAWebNewsletterGetMessageUpdatesAction").maybeUpdateMsgsAddOns(a.msgs.getModelsArray(),a)};e.$24=function(){var a=this.props.chat;a.isNewsletter&&void d("WAWebNewsletterLiveUpdatesManager").LiveUpdatesManager.subscribe(a.id)};e.$22=function(){void d("WAWebNewsletterLiveUpdatesManager").LiveUpdatesManager.unsubscribe()};e.componentDidMount=function(){var a=this,b,c=this.props,e=c.chat;c=c.listeners;this.$24();this.$23();this.$25({fetchLastMessage:!0});c.add((b=d("WAWebCmd")).Cmd,"scroll_chat_to_bottom",function(b){a.$26(b)});c.add(b.Cmd,"scroll_messages",this.scrollMessages);c.add(b.Cmd,"scroll_chat_by_height",function(b){a.$27(b)});c.add(b.Cmd,"panes_will_change",this.$28);c.add(b.Cmd,"panes_did_change",this.$29);c.add(b.Cmd,"scroll_to_focused_msg",function(b){a.$1=Date.now(),b()});c.add(b.Cmd,"reaction_changed_last_msg",this.$30);c.add(window,"focus",this.$31);c.add(window,"blur",this.$32);c.add(window,"resize",this.$18);c.add(window,"resize",this.$19);c.add(d("WAWebMsgCollection").MsgCollection,"change:msgKey",this.$33);c.add(b.Cmd,"new_history_sync_chunk_processed",this.$34);c.add(e,"msgs:preloaded",this.$35);c.add(e,"msgs:history_repaired",this.$36);d("WAWebSystemMessageGatingUtils").isGroupContextCardEnabled()&&c.add(d("WAWebCmd").Cmd,"group_notification_context_card_rendered",this.$37);this.$38(this.props);var f=this.props.getUnmountSignal();d("WAWebDocumentFlushed").documentFlushed({signal:f}).then(function(){if(f.aborted)return;a.$39()})["catch"](d("WAFilteredCatch").filteredCatch(d("WAAbortError").AbortError,function(){}));this.props.updateOpenedChatInfo({chat:e});d("WAWebUpdateUnreadChatAction").sendSeen(e);d("WAWebChatAssignmentUtils").canAssignChats()&&(e.isAssignedToMe&&e.unopenedByAssignedAgent&&d("WAWebBizChatAssignmentOpenedAction").markChatAsOpened(e,!0));this.$17();this.$40()};b.getDerivedStateFromProps=function(a,b){var c={lastSelectable:a.selectable,lastChat:a.chat,lastMsgCollection:a.msgCollection,lastFocusCtx:a.focusCtx};a.selectable===b.lastSelectable&&(a.chat!==b.lastChat||a.msgCollection!==b.lastMsgCollection||a.focusCtx!==b.lastFocusCtx)&&(c=babelHelpers["extends"]({},c,{msgLoadState:d("WAWebConversationMsgsUtils").getMsgLoadState(a.msgCollection)},d("WAWebConversationMsgsUtils").getInitialCursorAndFocusContext(a,b.unreadCount)));return c};e.shouldComponentUpdate=function(a,b){if(!c("shallowEqual")(a,this.props))return!0;a=this.state;var d=a.msgLoadState;a=babelHelpers.objectWithoutPropertiesLoose(a,["msgLoadState"]);var e=b.msgLoadState;b=babelHelpers.objectWithoutPropertiesLoose(b,["msgLoadState"]);if(!c("shallowEqual")(e,d))return!0;return!c("shallowEqual")(b,a)?!0:!1};e.componentDidUpdate=function(a){a.selectable===this.props.selectable&&(a.chat!==this.props.chat||a.msgCollection!==this.props.msgCollection||a.focusCtx!==this.props.focusCtx)&&(this.$8&&this.$8.controller.abort(),this.$38(this.props));a.chat!==this.props.chat&&(this.$22(),this.$24());var b=this.props.chat;this.$41(a.chat===b);this.props.updateOpenedChatInfo({chat:b});a.msgCollection!==this.props.msgCollection&&(this.$25({fetchLastMessage:!0}),this.$17());this.$40()};e.$25=function(a){a=a.fetchLastMessage;c("WAWebWid").isNewsletter(this.props.chat.id)&&void d("WAWebNewsletterRepairMsgHistoryAction").repairNewsletterMsgHistory({chat:this.props.chat,msgCollection:this.props.msgCollection,unmountSignal:this.props.getUnmountSignal(),fetchLastMessage:a})};e.$44=function(a,b){var c=a.scrollTop,d=a.scrollHeight;a=a.clientHeight;c=d-(c+a);return d-(b.offsetTop+b.clientHeight+c)};e.$45=function(a,b,c){var d=b.offsetTop;b=b.clientHeight;d=d+b+c-a.clientHeight;this.$46(a,d)};e.getRenderedMessageCount=function(){return this.getMsgs().length};e.setScrollBottom=function(a){var b=this.scrollContainer;if(!b)return;this.$46(b,b.scrollHeight-a-b.clientHeight)};e.$46=function(a,b){this.$2=Date.now(),a&&(a.scrollTop=b)};e.focus=function(){var a;a=(a=this.state.focusCtx)==null?void 0:(a=a.msg)==null?void 0:a.id.toString();if(a!=null){var b;b=(b=this.$14.current)==null?void 0:b.getMsgWrapperRef(a);b==null?void 0:(a=b.getContainerElement())==null?void 0:a.focus()}};e.$39=function(){var a;(a=this.$13.current)==null?void 0:a.setVisibility(!0);this.$20.debounce(s)};e.$53=function(){var a=this.scrollContainer;return!a?!1:a.scrollTop+d("WAWebFrontendConstants").SCROLL_FUDGE>a.scrollHeight-a.clientHeight};e.getMsgs=function(a){var b=this;a===void 0&&(a=!1);var c=this.props,e=c.focusCtx;c=c.msgCollection;var f=this.state,g=f.cursor;f=f.msgLoadState;if(e&&f.isLoadingAroundMsgs)return[];e=c.toArray().slice(g.getStart(c),g.getEnd(c)).map(function(a){return a.safe()}).filter(function(a){var c;return a.type===d("WAWebMsgType").MSG_TYPE.GP2&&a.subtype==="create"&&!d("WAWebUserPrefsMeUser").isMeAccount((c=b.props.chat.groupMetadata)==null?void 0:c.owner)&&d("WAWebSystemMessageGatingUtils").isGroupContextCardEnabled()?!1:!a.pendingDeleteForMe});d("WAWebNonMessageDataRequestPlaceholderMessageResendUtils").handlePlaceholderMsgsSeen(e,a);return e};e.$56=function(a){if(d("WAWebCongratulationsAnimationsGatingUtils").isCongratulationsAnimationsEnabled()){var b,c=d("WAWebFrontendMsgGetters").getChat(a),e=d("WAWebFrontendMsgGetters").getCelebrationAnimationCandidate(a);if(e==null||d("WAWebContactGetters").getIsMe(c.contact))return;b=c.animationCandidateData!=null?a.t>((b=c.animationCandidateData)==null?void 0:b.msgTimestampSeconds):a.t>c.celebrationAnimationLastPlayed;b&&c.setAnimationCandidateData({animationType:e,msgTimestampSeconds:a.t})}};e.$41=function(a){var b=this.$14.current;if(!b){this.$3.clear();return}var e=[],f=b.props.msgs,g=new Map(),h={},i=0,j=f.length-1;while(i<j){var k=Math.floor((i+j)/2),l=f[k].id.toString();l=b.getMsgWrapperRef(l);b.getMsgVisibility(l).visibility===d("WAWebMessagePosition").MSG_VISIBILITY.ABOVE?i=k+1:j=k}for(l=i;l<f.length;l++){k=f[l].id.toString();var m=b.getMsgWrapperRef(k);if(!m)throw c("err")("msgRef not found!");var n=b.getMsgVisibility(m);if(n.visibility!==d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE)break;h[k]={offset:n.offset,t:f[l].t};g.set(k,m);e.push(f[l].id);this.$56(f[l].unsafe())}if(!this.scrollContainer)return;n=this.scrollContainer.scrollTop;i=0;j=Object.keys(b.getRenderedDateMarkers()).length-1;k=b.getDateMarkerRef(0);m=k&&k.getElement();if(m&&m.offsetTop<=n+t)while(i<j){l=Math.ceil((i+j)/2);f=b.getDateMarkerRef(l);if(!f)throw c("err")("DateMarkerRef: "+l+" not found. "+Object.keys(b.getRenderedDateMarkers()).toString()+"}");k=c("WANullthrows")(f.getElement());k.offsetTop>n+t?j=l-1:i=l}else i=-1;this.$16.onOrBefore(0,{dateMarkerIdx:i,silent:a});this.$7=i;this.pauseHiddenGifs(this.$3,g);this.$3=g;this.$4=e;this.props.chat.isGroup&&this.$57();this.props.updateOpenedChatInfo({renderedMsgsInfo:h,visibleMsgOrder:e,clientHeight:this.scrollContainer?this.scrollContainer.clientHeight:0});d("WAWebContactGetters").getIsGroup(this.props.chat)&&d("WAWebSystemMessageGatingUtils").isGroupContextCardEnabled()&&(this.props.updateCanShowSpamPanel==null?void 0:this.props.updateCanShowSpamPanel(!this.checkIfGroupNotificationContextCardDisplayed()))};e.getMsgComponent=function(a){var b=this.$14.current;if(b)return b.getMsgComponentRef(a.toString())};e.pauseHiddenGifs=function(a,b){var c=this;a.forEach(function(a,d){if(b.has(d))return;a=c.props.msgCollection.get(d);if((a==null?void 0:a.isGif)!==!0)return;a=c.$14.current;a=a==null?void 0:a.getMsgComponentRef(d);if((a==null?void 0:a.pause)==null)return;a.pause()})};e.$21=function(a,b){a=a;b=b;var c=this.props,e=c.chat;c=c.msgCollection;var f=this.state.cursor;if(!(e.isDirty()&&d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)&&f.getEnd(c)>=c.length)&&!e.hasUnreadEdit())return;typeof b==="undefined"&&(b=document.hasFocus());if(!b)return;typeof a==="undefined"&&(a=this.$53());if(!a)return;d("WAWebUpdateUnreadChatAction").sendSeenDebounced(e);return!0};e.checkIfGroupNotificationContextCardDisplayed=function(){try{var a;return this.$15.current!=null&&((a=this.$14.current)==null?void 0:a.getMsgVisibility(this.$15.current).visibility)===d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE}catch(a){d("WALogger").WARN(k(),a).sendLogs("group-notification-context-card-visibility-check-error");return!1}};e.render=function(){var a,b=this.props,e=b.chat,f=b.msgCollection,g=b.selectable;b=b.onMessageSelect;var i=this.state,j=i.focusCtx,k=i.msgLoadState;i=i.unreadMentionCount;a=d("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a[c("WAWebConversationMsgs.scss").selectable]=g,a[c("WAWebConversationMsgs.scss").pane]=!0,a));var l=!!j,m=this.getMsgs(!0);b=q.jsx(c("WAWebMessageList.react"),{ref:this.$14,getScrollContainer:this.$55,chat:e,unreadCount:this.state.unreadCount,selectable:g,onMessageSelect:b,msgs:m,focusedMsgCtx:j,selectedMessages:this.props.selectedMessages,isMsgVisible:this.isMsgVisible,getSequentialMsg:this.getSequentialMsg,isLoadingEarlierMsgs:k.isLoadingEarlierMsgs});m=q.jsx(d("WAWebConversationLoadMoreMessages.react").LoadMoreMessages,{direction:"around",isMostRecentCMC:d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:function(){},isLoadingEarlierMsgs:k.isLoadingEarlierMsgs,isLoadingRecentMsgs:k.isLoadingRecentMsgs,isLoadingAroundMsgs:k.isLoadingAroundMsgs,isRepairingMsgHistory:k.isRepairingMsgHistory});var n;(this.state.cursor.getStart(f)>0||!k.noEarlierMsgs||[d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_BUT_MORE_MESSAGES_REMAIN_ON_PRIMARY,d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.NOT_INCLUDED_IN_HIST_SYNC,d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_ON_DEMAND_SYNC_BUT_MORE_MSG_REMAIN_ON_PRIMARY].includes(e.endOfHistoryTransferType)||d("WAWebConversationMsgsUtils").noEarlierMsgStateIsIncorrect(e,d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),k))&&(n=q.jsx(d("WAWebConversationLoadMoreMessages.react").LoadMoreMessages,{direction:"earlier",isMostRecentCMC:d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:this.loadEarlierMsgs,isLoadingEarlierMsgs:k.isLoadingEarlierMsgs,isLoadingRecentMsgs:k.isLoadingRecentMsgs,isLoadingAroundMsgs:k.isLoadingAroundMsgs,mdHistorySyncTransferState:e.endOfHistoryTransferType,isRepairingMsgHistory:k.isRepairingMsgHistory,chatId:e.id}));var o;(this.state.cursor.getEnd(f)<f.length||!d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)||k.isRepairingMsgHistory)&&(o=q.jsx(d("WAWebConversationLoadMoreMessages.react").LoadMoreMessages,{direction:"recent",isMostRecentCMC:d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props),loadMoreMsgs:this.$54,isLoadingEarlierMsgs:k.isLoadingEarlierMsgs,isLoadingRecentMsgs:k.isLoadingRecentMsgs,isLoadingAroundMsgs:k.isLoadingAroundMsgs,isRepairingMsgHistory:k.isRepairingMsgHistory}));l&&k.isLoadingAroundMsgs?(o=void 0,n=void 0):m=void 0;var p,r;j=this.state;f=j.isNearBottom;l=j.newUnread;if(!f||!k.isLoadingAroundMsgs&&!d("WAWebConversationMsgsUtils").isMostRecentCMC(this.props)){l&&e.unreadCount&&(r=q.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:this.state.newUnread},"icon-unread"));k=d("WAWebClassnames").classnamesConvertMeToStylexPlease((j={},j[c("WAWebConversationMsgs.scss").ffFix]=d("WAWebUA").UA.isGecko,j[c("WAWebConversationMsgs.scss").incoming]=!0,j));p=q.jsxs(d("WAWebRound.react").Round,{className:k,dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,onClick:this.$59,label:h._("__JHASH__OwMMzHewa9E__JHASH__"),children:[q.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",className_DONOTUSE:c("WAWebConversationMsgs.scss").unread,children:r}),q.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{xstyle:w.iconColor})]})}l=null;if(e.isGroup&&i>0){e=d("WAWebClassnames").classnamesConvertMeToStylexPlease((j={},j[(k=c("WAWebConversationMsgs.scss")).ffFix]=d("WAWebUA").UA.isGecko,j[k.buttonGap]=p,j[k.buttonGapRemove]=!p,j[k.atMentions]=!0,j));j=c("fbs")._("__JHASH__-SHWX4t5tcl__JHASH__",[c("fbs")._plural(i,"count")]);e=q.jsxs(d("WAWebRound.react").Round,{className:e,onClick:this.$60,dataTab:d("WAWebTabOrder").TAB_ORDER.MESSAGE_LIST_SCROLL_BUTTON,children:[q.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",className_DONOTUSE:k.unread,children:q.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:i,ariaLabel:j.toString()})}),q.jsx(d("WAWebMentionsIcon").MentionsIcon,{xstyle:w.iconColor})]});l=f?e:q.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",children:e})}var s;this.state.contextMenu&&(s=q.jsx(d("WAWebUimUie.react").UIE,{displayName:"ConversationContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:this.$63,children:q.jsx(c("WAWebUimUieMenu.react"),{contextMenu:this.state.contextMenu})}));return q.jsxs(c("WAWebCopyPasteCopyableArea.react"),{children:[q.jsx(c("WAWebMessageStickyDateMarker.react"),{ref:this.$13}),q.jsxs("div",{className:c("WAWebConversationMsgs.scss").incomingContainer,children:[l,q.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop",children:p})]}),q.jsxs("div",{className:a,"data-testid":void 0,ref:this.$12,onScroll:this.$58,onKeyPress:this.$61,onContextMenu:g?null:this.$62,onPaste:this.$64,tabIndex:"0",children:[q.jsx("div",{className:c("WAWebConversationMsgs.scss").empty}),m,n,b,o]}),s]})};return b}(b);f=c("WAWebUnmountSignalHoc_DEPRECATED.react")(d("WAWebListenerHoc_DEPRECATED").ListenerHOC(e));a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getRenderedMessageCount=function(){return this.getComponent().getRenderedMessageCount()};c.getScrollBottom=function(){return this.getComponent().getScrollBottom()};c.onComposeHeightChange=function(a){this.getComponent().handleComposeHeightChange(a)};c.onPageUpDown=function(a){this.getComponent().handlePageUpDown(a)};c.setScrollBottom=function(a){this.getComponent().setScrollBottom(a)};c.focus=function(){this.getComponent().focus()};c.checkIfGroupNotificationContextCardDisplayed=function(){return this.getComponent().checkIfGroupNotificationContextCardDisplayed()};return b}(f);g["default"]=a}),226);
__d("WAWebConversationPanel.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={footer:"_amm5",body:"_amm9",footerMessage:"_amm8"};b=a;g["default"]=b}),98);
__d("WAWebGroupDescriptionBanner.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={body:"_ajvq",text:"_ajvr",hidden:"_ajvs",desc:"_ajvt",more:"_ajvu"};b=a;g["default"]=b}),98);
__d("WAWebGroupDescriptionBanner.react",["fbt","WAWebClassnames","WAWebCmd","WAWebConversationBanner.react","WAWebEmojiText.react","WAWebFormatConfiguration","WAWebGroupDescriptionBanner.scss","WAWebLinkify","WAWebResizeObserver.react","WAWebRichTextInputGatingUtils","WAWebUISpacing","WAWebUimUie.react","WAWebWDSText.react","react","stylex","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k;b=k||d("react");var l=i||(i=c("react")),m=b.useEffect,n=b.useRef,o=b.useState;function p(a,b){a=a==null?void 0:a.split("\n");return a==null?void 0:a.slice(0,b).join("\n")}function q(a){a=(a=a==null?void 0:a.split("\n"))!=null?a:[];return a.length}e=l.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.chat,f=a.onClose,g=d("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["displayedDesc"]),i=n(null),k=n(null);g=r(g);var s=o(g),t=s[0];s=s[1];var u=p(t,1),v=o(!1),w=v[0],x=v[1];v=o(!0);var y=v[0],z=v[1];v=function(){d("WAWebCmd").Cmd.chatInfoDrawer(e,{showFullGroupDescription:!0})};var A=function(a){var b;a=a.height;b=(b=(b=k.current)==null?void 0:(b=b.getElement())==null?void 0:b.offsetHeight)!=null?b:0;x(q(t)>1||a<b)};m(function(){var a,b;if(!i.current||!k.current)return;a=(a=(a=i.current)==null?void 0:a.clientHeight)!=null?a:0;b=(b=(b=k.current)==null?void 0:(b=b.getElement())==null?void 0:b.offsetHeight)!=null?b:0;x(q(t)>1||a<b);z(!1)},[t]);t!==g&&(s(g),x(!1),z(!0));if(!t)return null;s=a.chat.isTrusted()?d("WAWebFormatConfiguration").TrustedGroupDesc({links:d("WAWebLinkify").findLinks(t),bulletPointsEnabled:!0,expandedFormattingEnabled:d("WAWebRichTextInputGatingUtils").formattingV2ExpansionEnabled()}):d("WAWebFormatConfiguration").UntrustedGroupDesc({bulletPointsEnabled:!0,expandedFormattingEnabled:d("WAWebRichTextInputGatingUtils").formattingV2ExpansionEnabled()});g=l.jsx("div",{className:c("WAWebGroupDescriptionBanner.scss").more,role:"button",onClick:v,children:h._("__JHASH__YmkFxppzHPq__JHASH__")});return l.jsx(d("WAWebUimUie.react").UIE,{displayName:"GroupDesc",escapable:!0,requestDismiss:f,children:l.jsxs(c("WAWebConversationBanner.react"),{ref:b,onClose:f,children:[l.jsx(d("WAWebWDSText.react").WDSTextTitle,{children:h._("__JHASH__Bo_0-nr4vTi__JHASH__")}),l.jsx(c("WAWebResizeObserver.react"),{ref:i,onResize:A,className:c("WAWebGroupDescriptionBanner.scss").body,children:l.jsx(d("WAWebWDSText.react").WDSTextSmall,{as:"span",children:l.jsxs("span",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a[c("WAWebGroupDescriptionBanner.scss").hidden]=y,a[c("WAWebGroupDescriptionBanner.scss").text]=!0,a)),children:[l.jsx(d("WAWebEmojiText.react").EmojiText,{ref:k,text:u,selectable:!0,formatters:s,className:c("WAWebGroupDescriptionBanner.scss").desc,multiline:!0}),w&&l.jsxs(l.Fragment,{children:[l.jsx("span",{className:(j||(j=c("stylex")))(d("WAWebUISpacing").uiMargin.top1),children:"..."}),g]})]})})})]})})}a.displayName=a.name+" [from "+f.id+"]";b=e;function r(a){return a==null?void 0:a.displayedDesc}g["default"]=b}),226);
__d("WAWebDashes.react",["fbt","WAWebFlex.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={dashContainer:{height:"x10w6t97",width:"xfo62xy",$$css:!0},dash:{height:"x5yr21d",width:"xfo62xy",borderTopStartRadius:"xm3z3ea",borderTopEndRadius:"x1x8b98j",borderBottomEndRadius:"x131883w",borderBottomStartRadius:"x16mih1h",backgroundColor:"x1vf10k5",$$css:!0},active:{backgroundColor:"x1ooda66",$$css:!0}};function m(a){a=a.active;return k.jsx("div",{className:(j||(j=c("stylex")))([l.dash,d("WAWebUISpacing").marginTop2,a&&l.active])})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.activeIndex;a=a.count;var e=[];for(var f=0;f<a;f++)e.push(k.jsx(m,{active:f===b},"dash-"+f));return k.jsx(d("WAWebFlex.react").FlexColumn,{"aria-label":h._("__JHASH__2DW3euUX-Gp__JHASH__",[h._param("current",b+1),h._param("total",a)]),className:(j||(j=c("stylex")))([l.dashContainer]),children:e})}a.displayName=a.name+" [from "+f.id+"]";g.Dashes=a}),226);
__d("WAWebPinnedMessagesBannerBody.react",["WAFilteredCatch","WALogger","WAReplaceRepeatingWhitespace","WAWebABProps","WAWebBaseCollection","WAWebChatMsgSymbol.react","WAWebEmojiText.react","WAWebFlex.react","WAWebFormatConfiguration","WAWebFormatMsgText","WAWebFrontendMsgGetters","WAWebL10N","WAWebMediaMsgPreview.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgModelPropUtils","WAWebName.react","WAWebPinInChatCollection","WAWebUISpacing","WAWebVelocityTransitionGroup","WAWebWDSText.react","WAWebWamEnumWebcRmrReasonCode","react","useWAWebAsync","useWAWebListener","useWAWebModelValues","useWAWebMsgValues"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Failed to hydrate pin in chat parent message with id '","': ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Removing pin in chat with id '","': ",""]);k=function(){return a};return a}var l=i||c("react"),m=(h||(h=d("react"))).useEffect;function a(a){var b=a.pinInChat;a=c("useWAWebAsync")(function(){return d("WAWebMsgCollection").MsgCollection.hydrateOrGetMessages([b.parentMsgKey.toString()])["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBaseCollection").CollectionSilentQueryError,function(a){d("WALogger").WARN(k(),b.id,a.message);d("WAWebPinInChatCollection").PinInChatCollection.remove(b.id);return[]}))},[b]);if(a.loading)return null;if(a.error){d("WALogger").WARN(j(),b.parentMsgKey,a.error.message);return null}a=(a=a.value)==null?void 0:a[0];return a!=null&&l.jsx(o,{msg:a})}a.displayName=a.name+" [from "+f.id+"]";var n={text:{fontSize:"x1f6kntn",lineHeight:"x1fc57z9",display:"x1rg5ohu",$$css:!0},content:{height:"x5yr21d",whiteSpace:"xuxw1ft",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",$$css:!0},mediaPreview:{minWidth:"x900493",width:"x1useyqa",height:"xsdox4t",$$css:!0}};function o(a){var b;a=a.msg;b=d("useWAWebMsgValues").useMsgValues(a.id,[d("WAWebFrontendMsgGetters").getSenderObj,d("WAWebFrontendMsgGetters").getDir,d("WAWebFrontendMsgGetters").getRtl,(b=d("WAWebMsgGetters")).getIsGroupMsg,b.getLatestEditMsgKey,b.getAck,b.getType]);var e=b[0],f=b[1],g=b[2],h=b[3];b[4];b[5];b=b[6];d("useWAWebListener").useListener(a,"change:msgKey",function(a){a=a.oldKey;d("WAWebPinInChatCollection").PinInChatCollection.deleteByParentMessageKey(a)});var i=[];h&&i.push(l.jsxs(d("WAWebWDSText.react").WDSTextMuted,{color:"teal",weight:"semibold",children:[l.jsx(d("WAWebName.react").ContactName,{contact:e,useShortName:!0}),":\xa0"]},e.id.toString()));d("WAWebMsgModelPropUtils").hasSymbol(a.unsafe())&&i.push(l.jsx(c("WAWebChatMsgSymbol.react"),{msg:a.unsafe()},"msg-symbol"));h=c("WAWebFormatMsgText")({msg:a,options:{unformat:!1}}).toString();i.push(l.jsx(d("WAWebEmojiText.react").EmojiText,{xstyle:[n.text,d("WAWebUISpacing").uiPadding.end16],direction:f,text:c("WAReplaceRepeatingWhitespace")(h,!0),dirMismatch:g!==c("WAWebL10N").isRTL(),ellipsify:!0,inlineblock:!0,formatters:d("WAWebFormatConfiguration").InlineMessage({mentions:a.mentionMap(),groupMentions:a.groupMentionMap()})},"text"));d("WAWebMediaMsgPreview.react").isMediaTypeWithImage(b)&&d("WAWebABProps").getABPropConfigValue("pinned_messages_m2_image_thumbnail")&&i.push(l.jsx(p,{msg:a}));return l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pin-message",children:l.jsx(d("WAWebFlex.react").FlexRow,{xstyle:n.content,align:"center",children:i},a.id)})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.msg;a=d("useWAWebMsgValues").useMsgValues(b.id,[d("WAWebFrontendMsgGetters").getMediaData]);a=a[0];var c=d("useWAWebModelValues").useModelValues(a,["preview","fullPreviewData"]),e=c.preview;c=c.fullPreviewData;m(function(){void b.downloadMedia({downloadEvenIfExpensive:!1,isUserInitiated:!1,rmrReason:d("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.OTHER})},[b]);e=e!=null||c!=null;return!e?null:l.jsx(d("WAWebFlex.react").FlexItem,{xstyle:n.mediaPreview,children:l.jsx(d("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:a},"media-preview")})}p.displayName=p.name+" [from "+f.id+"]";g.PinnedMessagesBannerBody=a}),98);
__d("WAWebPinnedMessagesBanner.react",["fbt","WALogger","WAWebChatMessageSearch","WAWebCmd","WAWebConversationBanner.react","WAWebDashes.react","WAWebFlex.react","WAWebFlexItem.react","WAWebMsgCollection","WAWebPinInChatCollection","WAWebPinInChatMetricUtils","WAWebPinMsgGatingUtils","WAWebPinned3Icon","WAWebPinnedMessagesBannerBody.react","WAWebPinnedMessagesUserJourneyLogger","WAWebProtobufsE2E.pb","WAWebSendPinMessageAction","WAWebUISpacing","WAWebUimUie.react","react","stylex","useWAWebListener","useWAWebPinnedMessages"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["Error while unpinning a message: ",""]);l=function(){return a};return a}e=k||d("react");var m=i||(i=c("react")),n=e.useMemo,o=e.useState,p={banner:{backgroundColor:"x150wa6m",minHeight:"xuwdbiy",borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x1ux35ld",cursor:"x1ypdohk",":hover_backgroundColor":"x1z0qo99",$$css:!0},iconWrapper:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"x1td3qas",height:"x10w6t97",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",backgroundColor:"xsknx04",$$css:!0},icon:{display:"x1rg5ohu",color:"x1anpt5t",$$css:!0},bannerBody:{height:"xsdox4t",width:"xh8yej3",$$css:!0},clearMinWidth:{minWidth:"xaaagfd",$$css:!0},dashContainer:{width:"xfo62xy",$$css:!0}};function q(){return m.jsx("div",{className:(j||(j=c("stylex")))([p.iconWrapper,d("WAWebUISpacing").uiMargin.start12]),children:m.jsx(d("WAWebPinned3Icon").Pinned3Icon,{xstyle:p.icon,"aria-hidden":!0})})}q.displayName=q.name+" [from "+f.id+"]";e=m.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.chat,f=c("useWAWebPinnedMessages")(e);a=o(function(){return f.length>0?f.length-1:null});var g=a[0],i=a[1];g!=null&&g>f.length-1&&f.length>0&&i(f.length-1);var j=g==null?null:f[g];d("useWAWebListener").useListener(d("WAWebPinInChatCollection").PinInChatCollection,["add","remove","change"],function(){f.length>0&&i(f.length-1)});var k=n(function(){if(f.length>0&&j!=null){var a=j==null?void 0:j.parentMsgKey;if(a)return d("WAWebMsgCollection").MsgCollection.get(a)}},[f,j]),r=function(){var a,b=f.length;a=b-1-((a=g)!=null?a:0);d("WAWebPinInChatMetricUtils").logPinInChatTapOnBanner({msg:k,chat:e,pin:j,pinCount:b,pinIndex:a})},s=function(){f.length>0&&i(function(a){return a==null?f.length-1:(a+1)%f.length})},t=function(){if(j!=null){var a=j.parentMsgKey;a=d("WAWebChatMessageSearch").getSearchContext(e,k||a,null);a&&(a.slideToMsg=!0);d("WAWebCmd").Cmd.openChatAt(e,a)}};a=function(){s();if(j!=null){var a=d("WAWebMsgCollection").MsgCollection.get(j.parentMsgKey);a&&(new(d("WAWebPinnedMessagesUserJourneyLogger").PinnedMessagesUserJourneyLogger)(e).pinBannerClickUnpin(a,j),d("WAWebSendPinMessageAction").sendPinInChatMsg(a,d("WAWebProtobufsE2E.pb").Message$PinInChatMessage$Type.UNPIN_FOR_ALL)["catch"](function(a){d("WALogger").ERROR(l(),a)}))}};a=[{content:h._("__JHASH___LTQvdQdtP7__JHASH__"),onClick:a},{content:h._("__JHASH__QpyBszCgUNM__JHASH__"),onClick:t}];var u=function(a){a.stopPropagation(),t(),s(),r()},v=d("WAWebPinMsgGatingUtils").isPinnedMessagesM2Enabled()&&f.length>1;v=m.jsx(c("WAWebFlexItem.react"),{xstyle:p.dashContainer,children:v?m.jsx(d("WAWebDashes.react").Dashes,{count:f.length,activeIndex:(v=g)!=null?v:0}):null});return j==null?null:m.jsx(d("WAWebUimUie.react").UIE,{displayName:"PinnedMessagesBanner",children:m.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:[p.banner,d("WAWebUISpacing").uiPadding.start20,d("WAWebUISpacing").uiPadding.vert0,d("WAWebUISpacing").uiPadding.end0],onClick:u,menuItems:a,children:m.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",grow:1,children:[m.jsx(c("WAWebFlexItem.react"),{"aria-label":h._("__JHASH__8i3nxmuyh4o__JHASH__")}),v,m.jsx(c("WAWebFlexItem.react"),{xstyle:p.clearMinWidth,align:"center",justify:"center",children:m.jsx(q,{})}),m.jsx(c("WAWebFlexItem.react"),{xstyle:[d("WAWebUISpacing").uiPadding.start12,p.bannerBody],children:m.jsx(d("WAWebPinnedMessagesBannerBody.react").PinnedMessagesBannerBody,{pinInChat:j})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){a=c("useWAWebPinnedMessages")(a);return a.length>0}g.PinnedMessagesBanner=e;g.useWAWebPinnedMessagesBanner=b}),226);
__d("WAWebReportToAdminNewReportBanner.react",["fbt","WATimeUtils","WAWebABProps","WAWebConversationBanner.react","WAWebDrawerManager","WAWebFlex.react","WAWebFlexItem.react","WAWebKeyboardTabUtils","WAWebRevokeMsgConstants","WAWebSendForAdminReviewUtils","WAWebSentForAdminReviewFlow.react","WAWebStateUtils","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUimUie.react","WAWebWDSText.react","WAWebWarningBubbleIcon","react","useWAWebModelValues","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0},icon:{color:"x1anpt5t",$$css:!0}};e=j.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.onClose,f=a.chat,g=c("useWAWebUIM")();a=function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(j.jsx(c("WAWebSentForAdminReviewFlow.react"),{chat:d("WAWebStateUtils").unproxy(f),ref:b,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"rta-"+f.id.toString()),{transition:"slide-left",uim:g,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),e()};return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"ReportToAdminNewReportBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:k.banner,onClick:a,onClose:e,children:j.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.top6,align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end20,children:j.jsx(d("WAWebWarningBubbleIcon").WarningBubbleIcon,{xstyle:k.icon,width:20,height:20})}),j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiMargin.bottom6,children:j.jsx(d("WAWebWDSText.react").WDSTextMuted,{as:"span",children:h._("__JHASH__sY69c_UGuzK__JHASH__",[h._implicitParam("=m0",j.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",weight:"semibold",children:h._("__JHASH__tDH3Bq8m1wO__JHASH__")}))])})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function l(a){a=d("useWAWebModelValues").useModelValues(a,["groupMetadata"]);a=d("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["lastReportToAdminTimestamp"]);a=a==null?void 0:a.lastReportToAdminTimestamp;if(a==null)return!1;var b=d("WAWebRevokeMsgConstants").REVOKE_WINDOW+d("WAWebRevokeMsgConstants").REVOKE_WINDOW_RECEIVER_MARGIN;a=d("WATimeUtils").unixTime()-a<=b;return a}function m(a){a=d("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["reportToAdminMode"]);return d("WAWebABProps").getABPropConfigValue("report_to_admin_kill_switch")&&(a==null?void 0:a.reportToAdminMode)===!0}function b(a){var b=d("useWAWebModelValues").useModelValues(a,["id","groupMetadata"]);a=l(b);a=m(b)&&a;return[a,function(){d("WAWebSendForAdminReviewUtils").clearLastReportTimestamp(b)}]}g.ReportToAdminNewReportBanner=e;g.useReportToAdminNewReportBanner=b}),226);
__d("WAWebSubgroupSuggestionsBanner.react",["fbt","WAWebCmd","WAWebCommunityGatingUtils","WAWebConversationBanner.react","WAWebFlex.react","WAWebFlexItem.react","WAWebGroupType","WAWebNux","WAWebSubgroupsNuxIcon","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUimUie.react","WAWebWDSText.react","react","useWAWebEventTargetValue","useWAWebNux"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={banner:{backgroundColor:"x150wa6m",$$css:!0},icon:{color:"xs17brd",$$css:!0}};e=j.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.onClose,f=a.chat;a=a.subgroupSuggestionsCount;var g=function(){var a;a=(a=f.groupMetadata)==null?void 0:a.parentGroup;if(!a)return;d("WAWebCmd").Cmd.openCommunityPendingGroupsDrawer(a);e()};return j.jsx(d("WAWebUimUie.react").UIE,{displayName:"SubgroupSuggestionsBanner",escapable:!0,children:j.jsx(c("WAWebConversationBanner.react"),{ref:b,xstyle:k.banner,onClick:g,onClose:e,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[j.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiPadding.end18,children:j.jsx(d("WAWebSubgroupsNuxIcon").SubgroupsNuxIcon,{xstyle:k.icon,height:20})}),j.jsx(c("WAWebFlexItem.react"),{children:j.jsx(d("WAWebWDSText.react").WDSTextMuted,{as:"span",children:(b=h._plural(a,"group_suggestions"),h._("__JHASH__5zWYvo0hQZ-__JHASH__",[b,h._implicitParam("=m0",j.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",weight:"semibold",children:h._("__JHASH__-EPtWAG_XYo__JHASH__",[b])}))]))})})]})})})}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b;b=c("useWAWebEventTargetValue")(a==null?void 0:(b=a.groupMetadata)==null?void 0:b.subgroupSuggestions,["add","remove","reset"],function(){var b;return(b=a==null?void 0:(b=a.groupMetadata)==null?void 0:b.getSubgroupSuggestions().length)!=null?b:0});return b}function b(a){var b,e,f;b=(b=a.groupMetadata)==null?void 0:b.getParentGroupChat();var g=l(b),h=(b==null?void 0:b.id)?b.id.toString():"";h=d("WAWebNux").getSubgroupSuggestionsBannerNuxKey(h);e=c("useWAWebEventTargetValue")((e=a.groupMetadata)==null?void 0:e.participants,["bulk_add","bulk_remove","reset","change:isAdmin"],function(){var b;return Boolean((b=a.groupMetadata)==null?void 0:b.participants.iAmAdmin())});h=c("useWAWebNux")(h);var i=h[0];h=h[1];f=((f=a.groupMetadata)==null?void 0:f.groupType)===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&Boolean(b)&&g>0&&e&&i&&d("WAWebCommunityGatingUtils").memberSuggestedGroupsEnabled();return[f,h,g]}g.SubgroupSuggestionsBanner=e;g.useSubgroupSuggestionsBanner=b}),226);
__d("useWAWebCagEventsAwarenessBanner.react",["WATimeUtils","WAWebChatGroupUtils","WAWebEventsGatingUtils","WAWebNux","WAWebUserPrefsEvents","useWAWebIAmCommunityAdmin","useWAWebNux"],(function(a,b,c,d,e,f,g){function a(a){var b,e=c("useWAWebNux")(d("WAWebNux").NUX.CAG_EVENTS_AWARENESS_BANNER),f=e[0];e[1];e=e[2];b=c("useWAWebIAmCommunityAdmin")((b=a.groupMetadata)==null?void 0:(b=b.getParentGroupChat())==null?void 0:b.groupMetadata);f=f&&b&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(a)&&d("WAWebEventsGatingUtils").isEventsCreationEnabledInCag();if(f){b=d("WAWebUserPrefsEvents").getCagEventsAwarenessBannerFirstSeenTimestamp();b!=null&&(f=d("WATimeUtils").happenedWithin(b,d("WATimeUtils").WEEK_SECONDS))}return[f,e]}g["default"]=a}),98);
__d("useWAWebConversationPanelGroupDescription",["WAWebMsgType","WAWebServerPropsModel","WAWebUserPrefsGeneral","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(a){var b=i(function(){if(!a.isGroup||d("WAWebServerPropsModel").ServerProps.groupDescLength<=0||d("WAWebUserPrefsGeneral").getSeenGroupDesc(a.id))return!1;d("WAWebUserPrefsGeneral").setSeenGroupDesc(a.id);return a.unreadCount===0?!a.msgs.some(function(a){return a.type!==d("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION&&a.type!==d("WAWebMsgType").MSG_TYPE.GP2}):!a.shouldShowUnreadDivider}),c=b[0],e=b[1];b=function(){e(!1)};return[c,b]}g["default"]=a}),98);
__d("WAWebConversationPanelBanner.react",["$InternalEnum","WAWebCagEventsAwarenessBanner.react","WAWebChangeNumberNotificationBanner.react","WAWebGroupDescriptionBanner.react","WAWebMembershipApprovalRequestsBanner.react","WAWebNewsletterChannelAlertsBanner.react","WAWebNewsletterGatingUtils","WAWebPinnedMessagesBanner.react","WAWebReportToAdminNewReportBanner.react","WAWebSimilarNewslettersUnits.react","WAWebSubgroupSuggestionsBanner.react","WAWebUIRefreshGatingUtils","WAWebVelocityTransitionGroup","react","stylex","useWAWebCagEventsAwarenessBanner.react","useWAWebConversationPanelGroupDescription"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={banner:{zIndex:"xmbbrlm",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xa93pmm",$$css:!0},absoluteBanner:{position:"x10l6tqk",top:"xef1mmm",start:"x17qophe",end:"xds687c",borderStartColor:"xgkeump",borderStartStyle:"x26u7qi",borderStartWidth:"xy80clv",$$css:!0},material:{borderBottomWidth:"x1qhh985",$$css:!0}},l=b("$InternalEnum")({CagEventsAwareness:1,MembershipApprovalRequests:2,ReportToAdminNewReport:3,SubgroupSuggestions:4,GroupDescription:5,PinnedMessages:6,NewsletterChannelAlerts:7});function a(a){var b=a.chat;a=a.groupMetadata;var e=c("useWAWebConversationPanelGroupDescription")(b),f=e[0];e=e[1];var g=d("WAWebMembershipApprovalRequestsBanner.react").useMembershipApprovalRequestsBanner(b),h=g[0];g=g[1];var m=d("WAWebReportToAdminNewReportBanner.react").useReportToAdminNewReportBanner(b),n=m[0];m=m[1];var o=d("WAWebPinnedMessagesBanner.react").useWAWebPinnedMessagesBanner(b),p=d("WAWebNewsletterChannelAlertsBanner.react").useNewsletterChannelAlertsBanner(b),q=p[0];p=p[1];var r=d("WAWebSubgroupSuggestionsBanner.react").useSubgroupSuggestionsBanner(b),s=r[0],t=r[1];r=r[2];var u=c("useWAWebCagEventsAwarenessBanner.react")(b),v=u[0];u=u[1];v=[{condition:v,component:j.jsx(d("WAWebCagEventsAwarenessBanner.react").CagEventsAwarenessBanner,{onClose:u}),priority:l.CagEventsAwareness},{condition:h,component:j.jsx(d("WAWebMembershipApprovalRequestsBanner.react").MembershipApprovalRequestsBanner,{onClose:g,chat:b}),priority:l.MembershipApprovalRequests},{condition:n,component:j.jsx(d("WAWebReportToAdminNewReportBanner.react").ReportToAdminNewReportBanner,{onClose:m,chat:b}),priority:l.ReportToAdminNewReport},{condition:s,component:j.jsx(d("WAWebSubgroupSuggestionsBanner.react").SubgroupSuggestionsBanner,{onClose:t,chat:b,subgroupSuggestionsCount:r}),priority:l.SubgroupSuggestions},{condition:Boolean(f&&(a==null?void 0:a.displayedDesc)),component:j.jsx(c("WAWebGroupDescriptionBanner.react"),{onClose:e,chat:b,groupMetadata:a}),priority:l.GroupDescription},{condition:o,component:j.jsx(d("WAWebPinnedMessagesBanner.react").PinnedMessagesBanner,{chat:b}),priority:l.PinnedMessages},{condition:b.isNewsletter&&q,component:j.jsx(d("WAWebNewsletterChannelAlertsBanner.react").NewsletterChannelAlertsBanner,{newsletter:b,onClose:p}),priority:l.NewsletterChannelAlerts}];h=(u=v.filter(function(a){return a.condition}).sort(function(a,b){return a.priority-b.priority})[0])==null?void 0:u.component;return j.jsxs(j.Fragment,{children:[j.jsxs(c("WAWebVelocityTransitionGroup"),{transitionName:"butterbar",xstyle:[k.banner,d("WAWebUIRefreshGatingUtils").materialRefreshEnabled()&&k.material],children:[h,j.jsx(d("WAWebChangeNumberNotificationBanner.react").ChangeNumberNotificationBanner,{chat:b})]}),j.jsx("div",{className:(i||(i=c("stylex")))(k.banner,k.absoluteBanner,d("WAWebUIRefreshGatingUtils").materialRefreshEnabled()&&k.material),children:b.isNewsletter&&d("WAWebNewsletterGatingUtils").isSimilarNewsletterInThreadEnabled()?j.jsx(d("WAWebSimilarNewslettersUnits.react").SimilarNewslettersConversationBanner,{chat:b}):null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebNewsletterSuspendedConversationPanelBody.react",["fbt","WAWebClickableLink.react","WAWebCommonNewsletterStrings","WAWebExternalLink.react","WAWebFaqUrl","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebWrapperSystemBubble.react","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useEffect,m=e.useState,n={linkColor:{color:"x14m1o6m",textDecoration:"x1hl2dhg",$$css:!0}};function o(){var a=m(null),e=a[0],f=a[1];l(function(){function a(){return c.apply(this,arguments)}function c(){c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebCommonNewsletterStrings").getGeosuspendedInYourCountryString({isPreview:!1}));f(a)});return c.apply(this,arguments)}void a()},[]);if(e==null)return;return k.jsx(c("WAWebWrapperSystemBubble.react"),{theme:"center",children:k.jsxs(c("WAWebClickableLink.react"),{testid:void 0,onClick:function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getNewsletterGeosuspendFaqUrl())},xstyle:n.linkColor,children:[k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{testid:void 0,children:e}),k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{children:h._("__JHASH__JLEANMVTJaE__JHASH__")})]})})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.isAdminOrOwner;a=a.isGeosuspended;return a?k.jsx(o,{}):k.jsxs(c("WAWebWrapperSystemBubble.react"),{theme:"center",children:[k.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{level:"2",size:"16",weight:"bold",xstyle:d("WAWebUISpacing").uiMargin.bottom2,testid:void 0,children:h._("__JHASH__7waLRHpnY5S__JHASH__")}),k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{testid:void 0,children:b?h._("__JHASH__oYRuUftwVrV__JHASH__"):h._("__JHASH__wCNqwcDgR5k__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("WAWebUseBizBotTos",["WAWebBizBotTos.react","WAWebBotGating","WAWebBotTos","WAWebBotTypes","WAWebChatEntryPoint","WAWebModalManager","WAWebTos","WAWebUseBusinessProfile.react","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;e=i||d("react");var j=h||(h=c("react")),k=e.useEffect,l=e.useRef;function b(b){var c=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot3pAvailable()?b.id:null,["isBizBot3p"]),e=l(),f=function(){var f;(f=e.current)==null?void 0:f.close();if(!c)return;d("WAWebBotGating").isBizBot3pAvailable()&&c.isBizBot3p&&!d("WAWebBotTos").hasSeenBizBotTos(d("WAWebBotTypes").BizBotType.BIZ_3P)&&a.setTimeout(function(){var a;d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebBizBotTos.react").BizBotTos,{ref:e,automatedType:d("WAWebBotTypes").BizBotAutomatedType.FULL_3P,chatEntryPoint:(a=b.chatEntryPoint)!=null?a:d("WAWebChatEntryPoint").ChatEntryPoint.Unknown}),{blockClose:!0})},250)};k(f,[b,c]);d("useWAWebListener").useListener(d("WAWebTos").TosManager,"change",f)}g.useBizBot3pTos=b}),98);
__d("WAWebSendBotRequestWelcomeAction",["WAJobOrchestratorTypes","WAMemoizeConcurrent","WAWebBotMessageSecret","WAWebBotWelcomeRequestSync","WAWebDBProcessMessage","WAWebMsgDataUtils","WAWebMsgModel","WAWebMsgType","WAWebOrchestratorNonPersistedJob","WAWebSendMsgRecordAction","WAWebSendMsgResultAction","WAWebSyncd","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){return i({chat:a,signal:new AbortController().signal})});return h.apply(this,arguments)}var i=c("WAMemoizeConcurrent")(function(a){a=a.chat;return a.id.toString()},function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a.chat;return j(a)});return function(b){return a.apply(this,arguments)}}());function j(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=a.id,f=self.crypto.getRandomValues(new Uint8Array(32)),g=(yield d("WAWebBotMessageSecret").genBotMsgSecretFromMsgSecret(f)),h=babelHelpers["extends"]({},yield d("WAWebMsgDataUtils").genOutgoingMsgData(a,d("WAWebMsgType").MSG_TYPE.PROTOCOL),{type:d("WAWebMsgType").MSG_TYPE.PROTOCOL,kind:d("WAWebMsgType").MsgKind.Protocol,subtype:"bot_request_welcome",messageSecret:f,botMessageSecret:new Uint8Array(g)}),i=new(d("WAWebMsgModel").Msg)(h);a.hasRequestedWelcomeMsg=!0;yield d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("sendMessage",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebDBProcessMessage").storeMessages([h],e);var a=(yield d("WAWebSendMsgRecordAction").sendMsgRecord(i));if(a.messageSendResult===d("WAWebSendMsgResultAction").SendMsgResult.OK){var f=(yield c("WAWebBotWelcomeRequestSync").getBotWelcomeRequestSetMutation(e,!0));yield d("WAWebSyncd").lockForSync(["chat"],[f],function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=a[0];return a.merge(e.toString(),{hasRequestedWelcomeMsg:!0})});return function(b){return a.apply(this,arguments)}}())}return a}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()});return k.apply(this,arguments)}g.sendBotRequestWelcome=a}),98);
__d("WAWebUseMaybeRequestWelcomeMessage",["WAWebBotGating","WAWebBotTos","WAWebBotTypes","WAWebSendBotRequestWelcomeAction","WAWebTos","WAWebUseBusinessProfile.react","react","useWAWebListener","useWAWebModelValues","useWAWebStableCallback"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){var b=d("useWAWebModelValues").useModelValues(a,["hasRequestedWelcomeMsg"]),e=b.hasRequestedWelcomeMsg;b=(b=d("WAWebUseBusinessProfile.react").useBusinessProfile(d("WAWebBotGating").isBizBot1pEnabled()||d("WAWebBotGating").isBizBot3pAvailable()?a.id:null,["isBizBot1p","welcomeMsgProtocolMode"]))!=null?b:{};var f=b.isBizBot1p,g=b.welcomeMsgProtocolMode,h=c("useWAWebStableCallback")(function(){var b=g!=null&&g!==d("WAWebBotTypes").BotWelcomeMsgProtocolModeType.NONE;(d("WAWebBotGating").isBizBot1pEnabled()&&f===!0||d("WAWebBotGating").isBizBot3pAvailable()&&b)&&d("WAWebBotTos").hasAcceptedBizBotTos()&&!e&&void d("WAWebSendBotRequestWelcomeAction").sendBotRequestWelcome(a)});d("useWAWebListener").useListener(d("WAWebTos").TosManager,"change",h);i(function(){return h()},[f,g,a])}g.useMaybeRequestWelcomeMessage=a}),98);
__d("WAWebSetChatOpenedAction",["WAWebDBUpdateChatTable","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b={hasOpened:!0};yield d("WAWebDBUpdateChatTable").updateChatTable(a.id,b);a.set(b)});return h.apply(this,arguments)}g.setChatHasOpened=a}),98);
__d("useWAWebChatOpenMetrics",["WAWebFMXTrustSignals","WAWebFindCommonGroupsContactAction","WAWebFmxActionWamEvent","WAWebSetChatOpenedAction","WAWebWamEnumFmxEntryPoint","WAWebWamEnumFmxEvent","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){i(function(){a.hasOpened!==!0&&(d("WAWebSetChatOpenedAction").setChatHasOpened(a)["catch"](function(){}),self.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=a.msgs.some(function(a){return a.subtype==="contact_info_card"});if(b){new(d("WAWebFmxActionWamEvent").FmxActionWamEvent)({fmxEntryPoint:d("WAWebWamEnumFmxEntryPoint").FMX_ENTRY_POINT.FMX_CARD,fmxEvent:d("WAWebWamEnumFmxEvent").FMX_EVENT.FMX_CARD_VIEWED,countryShown:yield d("WAWebFMXTrustSignals").shouldShowCountryCodeTrustSignal(a.contact),notAContactShown:yield d("WAWebFMXTrustSignals").shouldShowContactTrustSignal(a.contact),commonGroupNum:(b=(b=(yield d("WAWebFindCommonGroupsContactAction").findCommonGroups(a.contact)))==null?void 0:b.length)!=null?b:0}).commit()}}),1e3))},[])}g.useChatOpenMetrics=a}),98);
__d("useWAWebConversationPanelActionListeners",["WAWebConversationPanelActions","useWAWebListener"],(function(a,b,c,d,e,f,g){function a(a){d("useWAWebListener").useListener(d("WAWebConversationPanelActions").ConversationPanelActions,"conversation_panel_focus",a.onFocus)}g["default"]=a}),98);
__d("WAWebGroupMsgInfoFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebGroupMsgInfoFlow.react").__setRef("WAWebGroupMsgInfoFlowLoadable").load());return a}),"GroupMsgInfoFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.requireBundle=a;g.GroupMsgInfoFlowLoadable=d}),98);
__d("WAWebLoadingMediaViewer.react",["WAWebClassnames","WAWebFbtCommon","WAWebLazyLoadLoading.react","WAWebMediaPanelHeader.scss","WAWebMediaViewerModal.scss","WAWebMenuBar.react","WAWebModalManager","WAWebXViewerIcon","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.error;var b=d("WAWebClassnames").classnamesConvertMeToStylexPlease("overlay",c("WAWebMediaViewerModal.scss").mediaViewer),e=i.jsx(d("WAWebXViewerIcon").XViewerIcon,{}),f=function(){return d("WAWebModalManager").ModalManager.closeMedia()};return i.jsx("div",{children:i.jsxs("div",{className:b,"data-animate-media-viewer":!0,children:[i.jsxs("div",{className:c("WAWebMediaPanelHeader.scss").mediaPanelHeader,children:[i.jsx("div",{className:c("WAWebMediaPanelHeader.scss").info}),i.jsx("div",{className:c("WAWebMediaPanelHeader.scss").mediaPanelTools,children:i.jsx(d("WAWebMenuBar.react").MenuBar,{theme:"strong",children:i.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:e,title:c("WAWebFbtCommon")("Close"),onClick:f})},"media-panel-header")})]}),i.jsx("div",{className:c("WAWebMediaViewerModal.scss").mediaContent,dir:"ltr",onClick:f,children:i.jsx("div",{className:c("WAWebMediaViewerModal.scss").media,children:i.jsx(c("WAWebLazyLoadLoading.react"),{error:a})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebMediaViewerFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingMediaViewer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebMediaViewerFlow.react").__setRef("WAWebMediaViewerFlowLoadable").load());return a}),"MediaViewerFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingMediaViewer.react"),{error:Boolean(a.error)})}});g.requireBundle=a;g.MediaViewerFlowLoadable=d}),98);
__d("WAWebMerchantDetailsDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react","react-loadable"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBizMerchantDetailsDrawer.react").__setRef("WAWebMerchantDetailsDrawerLoadable").load());return a}),"MerchantDetails");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.MerchantDetailsDrawerLoadable=d}),98);
__d("useWAWebConversationPanelChatActionListeners",["fbt","WALogger","WANullthrows","WAWebABProps","WAWebAttachMediaCollection","WAWebAttachMediaFlowLoadable","WAWebBotGating","WAWebChatFlowTypes","WAWebChatPreferenceCollection","WAWebChatSearchDrawer.react","WAWebCmd","WAWebContactCollection","WAWebContactMsgInfoFlowLoadable","WAWebDefaultEphemeralityDrawer.react","WAWebDrawerManager","WAWebEphemeralDrawer.react","WAWebFrontendMsgGetters","WAWebGroupMsgInfoFlowLoadable","WAWebInfoFlowLoadable","WAWebKeyboardTabUtils","WAWebMediaMissingModal.react","WAWebMediaViewerFlowLoadable","WAWebMerchantDetailsDrawerLoadable","WAWebModalManager","WAWebMsgCollection","WAWebRichTextInputConst","WAWebSendStickerToActiveChatStickersAction","WAWebStickerStoreFlowLoadable","WAWebStreamModel","WAWebToast.react","WAWebToastManager","WAWebVerificationDrawerLoadable","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumMediaPickerOriginType","WAWebWamEnumProfileEntryPoint","WAWebWidFactory","react","useWAWebListener","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["ChatActionListener:onAttachMediaDrawer fileOrigin is not specified, fallback to default"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[UUPN] handleChatInfoDrawer"]);k=function(){return a};return a}var l=i||c("react");function a(){var a,b,e=c("useWAWebUIM")(),f=function(a,b,c,f,g,h,i){d("WALogger").DEV(k()).devConsole(a,b,c,f,g,h,i),d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(d("WAWebInfoFlowLoadable").InfoFlowLoadable,{chat:a,showFullGroupDescription:b,scrollToParticipantList:c,profileEntryPoint:d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT.CHAT_MENU,sourceGroupChatOrNewsletter:f,focusNewsletterDescriptionOnMount:g,focusGroupSubjectOnMount:h,focusGroupDescriptionOnMount:i},"info-"+a.id.toString()),{transition:"slide-left",uim:e,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,noFocus:!0})},g=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(c("WAWebVerificationDrawerLoadable").VerificationDrawerLoadable,{contact:d("WAWebContactCollection").ContactCollection.assertGet(a),isFirstLevel:!0}),{transition:"slide-left",uim:e})},i=function(a){if(d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.NORMAL){var b;d("WAWebBotGating").isBotEnabled()&&((b=a.invokedBotWid)==null?void 0:b.isBot())?d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(d("WAWebGroupMsgInfoFlowLoadable").GroupMsgInfoFlowLoadable,{msg:a}),{transition:"slide-left",uim:e}):d("WAWebFrontendMsgGetters").getChat(a).kind===d("WAWebChatFlowTypes").ChatKindType.Chat?d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(d("WAWebContactMsgInfoFlowLoadable").ContactMsgInfoFlowLoadable,{msg:a}),{transition:"slide-left",uim:e}):d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(d("WAWebGroupMsgInfoFlowLoadable").GroupMsgInfoFlowLoadable,{msg:a}),{transition:"slide-left",uim:e})}else d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._("__JHASH__7Oc8AbKOOJ2__JHASH__"),id:d("WAWebToast.react").genId("msg_info_failed")}))},m=function(a){var b=a.chat,f=a.attachments,g=a.animationName,h=a.initCaption,i=a.onComplete,k=a.fileOrigin,m=a.sendAsSticker,n=a.onSend,o=a.onCancel,p=function(){var a=b.attachMediaContents;if(!a)return;f&&(k?a.processAttachments(f,k,b):(d("WALogger").WARN(j()),a.processAttachments(f,d("WAWebWamEnumMediaPickerOriginType").MEDIA_PICKER_ORIGIN_TYPE.CHAT_PHOTO_LIBRARY,b)))};a=(a=b.getComposeContents())==null?void 0:a.text;if(a!=null&&d("WAWebBotGating").isBotEnabled()){var q=new RegExp(d("WAWebRichTextInputConst").userJidRegexStr,"g"),r=q.exec(a);while(r!=null){var s=d("WAWebWidFactory").createWid(r[1]);if(s.isBot())return;r=q.exec(a)}}d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(a){if(a){p();return}b.attachMediaContents||b.setAttachMediaContents(new(c("WAWebAttachMediaCollection"))({chatParticipantCount:b.getParticipantCount()}));a=c("WANullthrows")(b.attachMediaContents);d("WAWebDrawerManager").DrawerManager.openDrawerMid(l.jsx(d("WAWebAttachMediaFlowLoadable").AttachMediaFlowLoadable,{chat:b,onComplete:i,onSend:n,onCancel:o,onDismiss:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerMid()},initCaption:h,mediaCollection:a,sendAsSticker:m}),{transition:g||"slide-up",uim:e,noFocus:!0,onEnterAnimationComplete:p,focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})})},n=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(c("WAWebChatSearchDrawer.react"),{chat:a}),{transition:"slide-left",uim:e})},o=function(a){var b=a.msg,f=a.getZoomNode,g=a.currentTime;a=a.highlightedMsgIds;d("WAWebMsgCollection").MsgCollection.get(b.id)?d("WAWebModalManager").ModalManager.openMedia(l.jsx(d("WAWebMediaViewerFlowLoadable").MediaViewerFlowLoadable,{msg:b,startTime:g,getZoomNode:f,highlightedMsgIds:a}),{transition:"media-viewer",uim:c("WANullthrows")(e)}):d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebMediaMissingModal.react"),{msg:b}))},p=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(c("WAWebDefaultEphemeralityDrawer.react"),{onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerRight()},entryPoint:a}),{transition:"slide-left",uim:e})},q=function(a,b,f){var g=a.isGroup?d("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.GROUP_CHAT_DISAPPEARING_MESSAGES_SETTING:d("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.INDIVIDUAL_CHAT_DISAPPEARING_MESSAGES_SETTING;d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(c("WAWebEphemeralDrawer.react"),{chat:a,showNux:b,entryPoint:f,onDDMSettingsClick:function(){return p(g)}}),{transition:"slide-left",uim:e})},r=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(d("WAWebMerchantDetailsDrawerLoadable").MerchantDetailsDrawerLoadable,{contactId:a,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerRight()}},"legal-entity-details"),{transition:"slide-left",uim:e})},s=function(a){d("WAWebDrawerManager").DrawerManager.openDrawerRight(l.jsx(c("WAWebStickerStoreFlowLoadable").StickerStoreFlowLoadable,{stickerPackId:a,onSticker:c("WAWebSendStickerToActiveChatStickersAction")}),{transition:"slide-left",uim:e})};(a=d("useWAWebListener")).useListener(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(a){d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&a&&d("WAWebDrawerManager").DrawerManager.closeDrawerRight()});a.useListener((b=d("WAWebCmd")).Cmd,"chat_info_drawer",f);a.useListener(b.Cmd,"msg_info_drawer",i);a.useListener(b.Cmd,"chat_search",n);a.useListener(b.Cmd,"attach_media_drawer",m);a.useListener(b.Cmd,"verification_drawer",g);a.useListener(b.Cmd,"media_viewer_modal",o);a.useListener(b.Cmd,"ephemeral_drawer",q);a.useListener(b.Cmd,"merchant_details_drawer",r);a.useListener(b.Cmd,"open_sticker_pack",s)}g["default"]=a}),226);
__d("useWAWebConversationPanelDragHandlers",["WAWebCmd","WAWebDataTransfer","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useRef;function a(a,b){var e=b.canCompose,f=b.onDragEnter,g=i(!1),h=i(null);b=function(a){if(!e)return;g.current=!0};var j=function(a){if(!e)return;g.current=!1},k=function(b){if(!e)return;var i=h.current;if(i!=null){var j=i.getCurrentComposeContent();f();var k=new(c("WAWebDataTransfer"))(b.dataTransfer);!g.current&&k.hasType("Files")&&(i.flushSaveComposeContentDebounced(),d("WAWebCmd").Cmd.attachMediaDrawer({chat:a,initCaption:j,onComplete:i.updateTextAfterMediaDrawerClose}),b.stopPropagation(),b.preventDefault())}};b={onDragStart:b,onDragEnd:j,onDragEnter:k};return[h,b]}g["default"]=a}),98);
__d("useWAWebConversationPanelEphemeralNux",["WAWebChatEphemerality","WAWebCmd","WAWebNux","WAWebWamEnumEphemeralSettingEntryPointType","react","useWAWebListener","useWAWebNux"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useEffect;function a(a){var b=c("useWAWebNux")(d("WAWebNux").NUX.EPHEMERAL),e=b[0];b=null;e&&(a.isGroup&&a.groupMetadata!=null?b=a.groupMetadata:a.isUser&&(b=a));var f=function(){e&&d("WAWebChatEphemerality").isEphemeralSettingOn(a)&&!1&&d("WAWebCmd").Cmd.ephemeralDrawer(a,!0,d("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.EPHEMERAL_NUX)};i(f,[]);d("useWAWebListener").useListener(b,"change:ephemeralDuration",f)}g["default"]=a}),98);
__d("useWAWebConversationPanelFiller.react",["Promise","WAAbortError","WAFilteredCatch","WAPromiseRaceAbort","WAWebMiscErrors","WAWebVelocityAnimate","react"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useEffect,m=e.useRef;function a(a){var e=a.canCompose,f=a.selectable,g=a.setScrollBottom,i=a.getScrollBottom,j=a.onComposeHeightChange,n=m(null),o=m(0),p=m(null),q=m(),r=m(!1);l(function(){e||(o.current=0)},[e]);var s=function(a){return Math.max(0,o.current)},t=function(){var a=s();n.current&&(n.current.style.height=a+"px")};a=function(a,e){var f=a.input;a=a.overlay;var k=a===void 0?0:a,l=p.current,m=i();if(!l||m==null)return;if(f!==void 0){j(f);return}if(e){o.current=k;t();g(m);return}o.current+=k;k<0&&(t(),g(m));if(q.current){r.current=!0;(a=q.current)==null?void 0:a.controller.abort()}f=new AbortController();var n=f.signal;a=(((e=q.current)==null?void 0:e.promise)||(h||(h=b("Promise"))).resolve()).then(function(){return c("WAWebVelocityAnimate")(l,{translateY:k>0?[-k,0]:[0,k]},{duration:300,easing:[.1,.82,.25,1]})});e=c("WAPromiseRaceAbort")(a,n)["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").Unmount,function(){})).then(function(){if(n.aborted)throw new(d("WAAbortError").AbortError)();k>0&&t();l.style.transform="";k>0&&g(m)})["catch"](d("WAAbortError").catchAbort(function(){c("WAWebVelocityAnimate")(l,"finish",!0)})).then(function(){r.current?r.current=!1:q.current=void 0});q.current={promise:e,controller:f}};var u;f?u=k.jsx("div",{ref:n,className:"x1c4vz4f x2lah0s xdl72j9 x14yy4lh"}):e&&(u=k.jsx("div",{ref:n,style:{height:s()+"px"},className:"x1c4vz4f x2lah0s xdl72j9 x14yy4lh"}));return{msgPanelRef:p,filler:u,handleComposeHeightChange:a}}g["default"]=a}),98);
__d("WAWebWebcChatOpenWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({WebcChatOpen:[864,{webcChatOpenBeforePaintT:[7,a.TYPES.TIMER],webcChatOpenPaintedT:[6,a.TYPES.TIMER],webcChatOpenT:[2,a.TYPES.TIMER],webcFinalRenderedMessageCount:[5,a.TYPES.INTEGER],webcRenderedMessageCount:[4,a.TYPES.INTEGER],webcUnreadCount:[1,a.TYPES.NUMBER],webcWindowHeightFloat:[8,a.TYPES.NUMBER]},[1,1,5],"regular"]},{WebcChatOpen:[]});g.WebcChatOpenWamEvent=b}),98);
__d("useWAWebConversationPanelMetrics",["WAQplTypes","WAWebGroupType","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebRenderCursorGetWindowHeight","WAWebUiActionWamEvent","WAWebWamAddressingModeUtils","WAWebWamEnumAgentEngagementEnumType","WAWebWamEnumUiActionChatType","WAWebWamEnumUiActionType","WAWebWamGroupMetricUtils","WAWebWamMsgUtils","WAWebWamPrivateStatsUtils","WAWebWebcChatOpenWamEvent","useLazyRef","useWAWebRenderCallbacks"],(function(a,b,c,d,e,f,g){function a(a,b){var e=c("useLazyRef")(function(){return new(d("WAWebUiActionWamEvent").UiActionWamEvent)({uiActionType:d("WAWebWamEnumUiActionType").UI_ACTION_TYPE.CHAT_OPEN,uiActionPreloaded:!0})}),f=e.current;e=c("useLazyRef")(function(){return new(d("WAWebWebcChatOpenWamEvent").WebcChatOpenWamEvent)({webcUnreadCount:a.unreadCount,webcWindowHeightFloat:c("WAWebRenderCursorGetWindowHeight")()})});var g=e.current;e=c("useLazyRef")(function(){return d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,{annotations:{"int":{unreadMessageCount:a.unreadCount,windowHeight:c("WAWebRenderCursorGetWindowHeight")()}},closePreviousInstanceWithAction:d("WAQplTypes").QuickLogActionType.ABORTED,instanceKeyOption:d("WAQplTypes").QplInstanceKeyOptions.AUTO_INCREMENT}).instanceKey});var i=e.current;c("useWAWebRenderCallbacks")({onMount:function(){var c=b();c!=null&&(g.webcRenderedMessageCount=c);g.markWebcChatOpenT();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,"chat_open",{instanceKey:i});c=a.groupMetadata;if(a.isGroup&&c!=null){var e=c.isCag;e!=null&&(f.isLid=e);c.cachedDeviceSizeBucket!=null&&(f.sizeBucket=c.cachedDeviceSizeBucket,Object.assign(f,d("WAWebWamGroupMetricUtils").getGroupCountMetricsFromGroupMetadata(c)));Object.assign(f,d("WAWebWamAddressingModeUtils").getAddressingModeMetricsFromGroupMetadata(c))}else f.isLid=a.id.isLid();a.id.isBot()&&(f.agentEngagementType=d("WAWebWamEnumAgentEngagementEnumType").AGENT_ENGAGEMENT_ENUM_TYPE.DIRECT_CHAT);f.botType=d("WAWebWamMsgUtils").getWamBotType(a.id,null,(e=a.contact.businessProfile)==null?void 0:e.automatedType);f.uiActionChatType=h(a);f.markUiActionT();f.commit();d("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()},onBeforePaint:function(){g.markWebcChatOpenBeforePaintT(),d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,"painted_start",{instanceKey:i})},onAfterPaint:function(){var a=b();a!=null&&(g.webcFinalRenderedMessageCount=a,d("WAWebQplQuickPerformanceLoggerModule").QPL.markerAnnotate(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,{"int":{finalRenderedMessageCount:a}},{instanceKey:i}));g.markWebcChatOpenPaintedT();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,"painted_end",{instanceKey:i});g.commit();d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,d("WAQplTypes").QuickLogActionType.SUCCESS,{instanceKey:i})},onUnmount:function(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,d("WAQplTypes").QuickLogActionType.CANCEL,{instanceKey:i})},onError:function(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.CHAT_OPEN,d("WAQplTypes").QuickLogActionType.FAIL,{instanceKey:i})}})}function h(a){if(a.isGroup){var b;if(((b=a.groupMetadata)==null?void 0:b.groupType)===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP)return d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.DEFAULT_SUBGROUP;return((b=a.groupMetadata)==null?void 0:b.groupType)===d("WAWebGroupType").GroupType.LINKED_SUBGROUP?d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.SUBGROUP:d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.GROUP}return a.isNewsletter?d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.CHANNEL:d("WAWebWamEnumUiActionChatType").UI_ACTION_CHAT_TYPE.INDIVIDUAL}g["default"]=a}),98);
__d("WAWebDeleteExpiredPinsAction",["WAWebPinInChatCollection","WAWebPinMessageAction","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield d("WAWebPinMessageAction").seekAndDestroyExpiredPins(d("WAWebPinInChatCollection").PinInChatCollection.byChatId(d("WAWebWidFactory").toChatWid(a)).toArray())});return function(b){return a.apply(this,arguments)}}();g.deleteExpiredPins=a}),98);
__d("WAWebUpdateDuplicatedLidThreadChatAction",["WALogger","WAWebApiChat","WAWebApiContact","WAWebChatCollection","WAWebSchemaChat","WAWebWid","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["updateChatIsDeprecated: reactivating a lid chat"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["updateChatIsDeprecated - false: chatId is ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["updateChatIsDeprecated: deprecating a lid chat"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["updateChatIsDeprecated - true: chatId is ",""]);k=function(){return a};return a}function a(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=!1,e=!1,f=a.contact.phoneNumber;if(f!=null){b=d("WAWebChatCollection").ChatCollection.get(f)!=null;f=d("WAWebApiContact").getCurrentLid(d("WAWebWidFactory").toUserWid(f));f!=null&&(e=!c("WAWebWid").equals(a.id,f))}f=b||e;f!==a.isDeprecated&&(yield m(a.id,f))});return l.apply(this,arguments)}function m(a,b){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(a.isLid()){var c=d("WAWebChatCollection").ChatCollection.get(a);if(c==null||c.isDeprecated===b)return;var e={isDeprecated:b};c.set(e);d("WAWebApiChat").updateDeprecatedChatMatCache_DEPRECATED(a,b);b?(d("WALogger").LOG(k(),a.toLogString()),d("WALogger").WARN(j()).sendLogs("deprecating-lid-chat-pnh-ctwa-mat")):(d("WALogger").LOG(i(),a.toLogString()),d("WALogger").WARN(h()).sendLogs("reactivating-lid-chat-pnh-ctwa-mat"));yield d("WAWebSchemaChat").getChatTable().merge(c.id.toString(),e)}});return n.apply(this,arguments)}g.updateDuplicatedLidThread=a}),98);
__d("useWAWebConversationPanelOpenChat",["WAJids","WALogger","WAWebABProps","WAWebABPropsSaga","WAWebAddonHydrationUtils","WAWebBlockContactAction","WAWebChatGroupUtils","WAWebCmd","WAWebCommunityGatingUtils","WAWebDeleteExpiredPinsAction","WAWebGroupType","WAWebMembershipApprovalRequestAction","WAWebMiscGatingUtils","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNux","WAWebPinMsgGatingUtils","WAWebPnhGatingUtils","WAWebQueryAndUpdateNewslettersMetadataAction","WAWebRestoreSubgroupSuggestionsAction","WAWebSupportChatUtils","WAWebSuspendedCommunityUtils","WAWebSuspendedGroupUtils","WAWebUpdateDuplicatedLidThreadChatAction","WAWebWid","react","useWAWebGroupParticipantStatus","useWAWebNux","useWAWebSetModelValue"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["useOpenChat: error reading pins from DB: ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["useOpenChat: error deleting expired pins from DB: ",""]);j=function(){return a};return a}var k=(h||d("react")).useEffect;function a(a){var b=d("useWAWebSetModelValue").useSetModelValue(a,"active"),e=c("useWAWebGroupParticipantStatus")(a.groupMetadata);e[0];var f=e[1];e=c("useWAWebNux")(d("WAWebNux").NUX.SUPPORT_AI);var g=e[0];k(function(){c("WAWebWid").isPSA(a.id)&&d("WAWebBlockContactAction").updatePSAUserBlockingStatus(a.id);b(!0);var e=a.groupMetadata;if(e!=null){var h=e.groupType,k=e.participants,l=e.membershipApprovalMode;(h===d("WAWebGroupType").GroupType.DEFAULT||h===d("WAWebGroupType").GroupType.LINKED_SUBGROUP)&&(k.iAmAdmin()||d("WAWebABProps").getABPropConfigValue("web_anyone_can_add_group_setting_enabled")&&f)&&l&&d("WAWebABProps").getABPropConfigValue("group_join_request_m2")&&d("WAWebMembershipApprovalRequestAction").readMembershipApprovalRequestsFromDB(a);if(h===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP&&k.iAmAdmin()&&d("WAWebCommunityGatingUtils").memberSuggestedGroupsEnabled()){l=e.getParentGroupChat();l&&void d("WAWebRestoreSubgroupSuggestionsAction").restoreSubgroupSuggestionsFromDb(l)}}a.id.isCAPISupportAccount()&&d("WAWebABPropsSaga").getIsSagaV1ReengagementEnabled()&&g&&d("WAWebSupportChatUtils").openSupportAINux();a.id.isNewsletter()&&!((h=a.newsletterMetadata)==null?void 0:h.isPreview)&&void d("WAWebQueryAndUpdateNewslettersMetadataAction").queryAndUpdateNewsletterMetadataAction(d("WAJids").toNewsletterJid(a.id.toString()),{fields:{subscribers:!0,verification:!0},adminFields:{adminCount:d("WAWebNewsletterMembershipUtil").iAmOwner(a.newsletterMetadata)?!0:void 0,capabilities:d("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(a.newsletterMetadata)&&d("WAWebNewsletterGatingUtils").shouldFetchAndLogCapabilities()?!0:void 0}});d("WAWebPinMsgGatingUtils").isPinnedMessagesM1ReceiverEnabled()&&d("WAWebDeleteExpiredPinsAction").deleteExpiredPins(a.id)["catch"](function(a){d("WALogger").ERROR(j(),a).sendLogs("use-open-chat-delete-expired-pins-from-db-error")}).then(function(){void d("WAWebAddonHydrationUtils").hydrateAddons({ids:[a.id],hydrationType:d("WAWebMsgType").MSG_TYPE.PIN_MESSAGE})})["catch"](function(a){d("WALogger").ERROR(i(),a).sendLogs("use-open-chat-read-pins-from-db-error")});if(a.attachMediaContents){k=a.attachMediaContents.isStickerMaker;d("WAWebCmd").Cmd.attachMediaDrawer({chat:a,animationName:"noop",sendAsSticker:k})}d("WAWebChatGroupUtils").isIntegrityDeactivatedCommunityAnnouncementGroup(a)?d("WAWebSuspendedCommunityUtils").openTerminatedCommunityModal():d("WAWebChatGroupUtils").isDeactivatedCommunityAnnouncementGroup(a)||(d("WAWebChatGroupUtils").isSuspendedCommunityAnnouncementGroup(a)?d("WAWebSuspendedCommunityUtils").openSuspendedCommunityModal(a):d("WAWebChatGroupUtils").isTerminatedGroupOrNotMember(a)?d("WAWebChatGroupUtils").isSupportGroup(a)||(d("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?d("WAWebSuspendedGroupUtils").openSuspendedGroupModalV2(a):d("WAWebSuspendedGroupUtils").openTerminatedGroupOrNotMemberModal()):d("WAWebChatGroupUtils").isSuspendedGroup(a)?d("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?d("WAWebSuspendedGroupUtils").openSuspendedGroupModalV2(a):d("WAWebSuspendedGroupUtils").openSuspendedGroupModal(d("WAWebChatGroupUtils").shouldIncludeEntityIdInAppealRequest()===!0?a.id.user.toString():null):a.id.isLid()&&d("WAWebPnhGatingUtils").isMatFullyEnabled()&&void d("WAWebUpdateDuplicatedLidThreadChatAction").updateDuplicatedLidThread(a));return function(){a.urlText&&(a.urlText=void 0),a.urlNumber&&(a.urlNumber=void 0),b(!1)}},[])}g["default"]=a}),98);
__d("WAWebNewsletterPrivacyMsgBar.react",["fbt","WAWebCopyPasteSelectable.react","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebNewsletterPhoneNumberPrivacyNux.react","WAWebRoundXInvIcon","WAWebUnstyledButton.react","fbs","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useCallback,m={dismissButton:{display:"x78zum5",$$css:!0}};function a(a){a=a.onDismiss;var b=l(function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebNewsletterPhoneNumberPrivacyNux.react").NewsletterPhoneNumberNux,{}))},[]);b=k.jsx(d("WAWebCopyPasteSelectable.react").SelectableLink,{className:"x1ypdohk",id:"data-sharing-learn-more-link",selectable:!0,onClick:b,children:c("WAWebFbtCommon")("Learn more")});return k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[k.jsx(d("WAWebFlex.react").FlexItem,{grow:1,children:k.jsxs("span",{className:"x126k92a","data-testid":void 0,children:[h._("__JHASH__09i60qQLQnl__JHASH__")," ",b]})}),k.jsx(d("WAWebFlex.react").FlexItem,{grow:0,basis:0,align:"center",children:k.jsx(c("WAWebUnstyledButton.react"),{onClick:a,xstyle:m.dismissButton,"aria-label":c("fbs")._("__JHASH__KLIXtuaqQR0__JHASH__"),children:k.jsx(d("WAWebRoundXInvIcon").RoundXInvIcon,{height:15})})})]})}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterPrivacyMsgBar=a}),226);
__d("useWAWebNewsletterPrivacyBanner",["WAWebNewsletterPrivacyMsgBar.react","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useCallback,l=b.useState;function m(a){var b;return a.isNewsletter&&((b=a.newsletterMetadata)==null?void 0:b.isPreview)===!0&&!a.isSuspendedOrTerminated()}function a(a){var b=l(m(a)),c=b[0],e=b[1];d("useWAWebListener").useListener(a.newsletterMetadata,["change:isPreview"],function(){return e(m(a))});b=k(function(){e(!1)},[]);return c?j.jsx(d("WAWebNewsletterPrivacyMsgBar.react").NewsletterPrivacyMsgBar,{onDismiss:b}):null}g["default"]=a}),98);
__d("WAWebConversationPanel.react",["WAWebAnimationGroupItem.react","WAWebChatGroupUtils","WAWebComposeBox.react","WAWebCongratulationsAnimationConversation.react","WAWebCongratulationsAnimationsGatingUtils","WAWebConversationBackground.react","WAWebConversationMsgs.react","WAWebConversationPanel.scss","WAWebConversationPanelBanner.react","WAWebConversationSpam.react","WAWebConversationSpamUtils","WAWebGroupType","WAWebHeader.react","WAWebMultiSelectBar.react","WAWebNewsletterMembershipUtil","WAWebNewsletterSuspendedConversationPanelBody.react","WAWebSystemMessageGatingUtils","WAWebTimeSpentLoggingNavigation","WAWebUimUie.react","WAWebUseBizBotTos","WAWebUseMaybeRequestWelcomeMessage","WAWebVelocityTransitionGroup","react","useWAWebChatOpenMetrics","useWAWebCommunityNux","useWAWebConversationPanelActionListeners","useWAWebConversationPanelCanCompose","useWAWebConversationPanelChatActionListeners","useWAWebConversationPanelDragHandlers","useWAWebConversationPanelEphemeralNux","useWAWebConversationPanelFiller.react","useWAWebConversationPanelMessageSelection","useWAWebConversationPanelMetrics","useWAWebConversationPanelOpenChat","useWAWebEventTargetValue","useWAWebModelValues","useWAWebNewsletterOpenMetrics","useWAWebNewsletterPrivacyBanner","useWAWebShowCommunitySubjectSyncIssue"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useCallback,l=b.useRef,m=b.useState;function a(a){var b,e=a.chat,f=a.chatEntryPoint,g=a.msgCollection,h=a.focusCtx,i=a.groupMetadata,n=l(null),o=m(function(){return!d("WAWebSystemMessageGatingUtils").isGroupContextCardEnabled()}),p=o[0],q=o[1];o=k(function(a){a!==p&&q(a)},[p]);c("useWAWebShowCommunitySubjectSyncIssue")(e);c("useWAWebConversationPanelOpenChat")(e);c("useWAWebCommunityNux")(e);c("useWAWebConversationPanelEphemeralNux")(e);d("WAWebTimeSpentLoggingNavigation").useTsNavigation({surface:e.isNewsletter?"channel-thread":"chat",extras:{groupSize:e.isNewsletter?(b=e.newsletterMetadata)==null?void 0:b.size:(b=e.groupMetadata)==null?void 0:b.participants.length,channelWid:e.isNewsletter?e.id:void 0,typeOfGroup:e.groupMetadata==null?void 0:d("WAWebGroupType").groupTypeToWamEnum(d("WAWebGroupType").getGroupTypeFromGroupMetadata(e.groupMetadata))}});c("useWAWebConversationPanelMetrics")(e,function(){var a;return(a=n.current)==null?void 0:a.getRenderedMessageCount()});d("useWAWebNewsletterOpenMetrics").useNewsletterOpenMetrics(e,f);d("useWAWebChatOpenMetrics").useChatOpenMetrics(e);c("useWAWebConversationPanelChatActionListeners")();d("useWAWebModelValues").useModelValues(e,["isReadOnly","isAnnounceGrpRestrict","isDeprecated","newsletterMetadata"]);b=c("useWAWebNewsletterPrivacyBanner")(e);f=c("useWAWebConversationPanelCanCompose")(e);var r=f[0];f=f[1];var s=m(function(){return!r&&d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(e)&&d("WAWebConversationSpamUtils").shouldShowSpamPanel(e)}),t=s[0],u=s[1];s=c("useWAWebConversationPanelMessageSelection")(e.msgs);var v=s.selectable,w=s.selectedMessages,x=s.handleSelectMessages,y=s.handleMessageSelect;s=s.handleCancelSelection;var z=c("useWAWebConversationPanelDragHandlers")(e,{canCompose:r,onDragEnter:s}),A=z[0];z=z[1];var B=c("useWAWebConversationPanelFiller.react")({canCompose:r,selectable:v,setScrollBottom:function(a){var b;return(b=n.current)==null?void 0:b.setScrollBottom(a)},getScrollBottom:function(){var a;return(a=n.current)==null?void 0:a.getScrollBottom()},onComposeHeightChange:function(a){var b;return(b=n.current)==null?void 0:b.onComposeHeightChange(a)}}),C=B.msgPanelRef,D=B.filler;B=B.handleComposeHeightChange;var E=function(){var a;(a=n.current)==null?void 0:a.focus()};c("useWAWebConversationPanelActionListeners")({onFocus:E});d("WAWebUseBizBotTos").useBizBot3pTos(e);d("WAWebUseMaybeRequestWelcomeMessage").useMaybeRequestWelcomeMessage(e);E=c("useWAWebEventTargetValue")(e.newsletterMetadata,["change:suspended"],function(){var a;return e.isNewsletter&&((a=e.newsletterMetadata)==null?void 0:a.suspended)===!0});var F=c("useWAWebEventTargetValue")(e.newsletterMetadata,["change:geosuspended"],function(){var a;return e.isNewsletter&&((a=e.newsletterMetadata)==null?void 0:a.geosuspended)===!0}),G=function(a){var b;(b=n.current)==null?void 0:b.onPageUpDown(a)},H,I=null;d("WAWebCongratulationsAnimationsGatingUtils").isCongratulationsAnimationsEnabled()&&(I=j.jsx(d("WAWebCongratulationsAnimationConversation.react").CongratulationsAnimationConversation,{chat:e}));if(v)H=j.jsx(d("WAWebUimUie.react").UIE,{displayName:"MultiSelect",escapable:!0,requestDismiss:s,children:j.jsx(d("WAWebMultiSelectBar.react").MultiSelectBar,{chat:e,selectedMessages:w,noSortOnForward:!1,onCancel:s,entryPoint:d("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.CONVERSATION_PANEL})}),s=j.jsx("footer",{className:c("WAWebConversationPanel.scss").footer});else if(r)s=j.jsx(d("WAWebComposeBox.react").ComposeBox,{chat:e,ref:A,canShowSpamPanel:p,onComposeHeightChange:B,onPageUpDown:G});else{B=(A=f)!=null?A:b;G=null;p&&t&&e.shouldAppearInList&&e.msgs.length>0&&(G=j.jsx(c("WAWebAnimationGroupItem.react"),{children:j.jsx(c("WAWebConversationSpam.react"),{chat:e,contact:e.contact,onClickNotSpam:function(){u(!1),d("WAWebConversationSpamUtils").acknowledgeGroupAsNotSpam(e)},onClickDismissSpam:function(){return u(!1)}})}));s=B!=null&&j.jsxs("footer",{"data-testid":void 0,className:c("WAWebConversationPanel.scss").footer,children:[G,j.jsx("div",{"data-testid":void 0,className:c("WAWebConversationPanel.scss").footerMessage,children:B})]})}f=E?j.jsx(c("WAWebNewsletterSuspendedConversationPanelBody.react"),{isGeosuspended:F,isAdminOrOwner:d("WAWebNewsletterMembershipUtil").iAmOwner(e.newsletterMetadata)||d("WAWebNewsletterMembershipUtil").iAmAdmin(e.newsletterMetadata)}):j.jsx(c("WAWebConversationMsgs.react"),{ref:n,chat:e,selectable:v,onMessageSelect:y,msgCollection:g,onSelectMessages:x,focusCtx:h,selectedMessages:w,notifyChatRendered:a.notifyChatRendered,updateOpenedChatInfo:a.updateOpenedChatInfo,updateCanShowSpamPanel:d("WAWebSystemMessageGatingUtils").isGroupContextCardEnabled()?o:void 0});return j.jsxs(j.Fragment,{children:[j.jsx(c("WAWebConversationBackground.react"),{wallpaper:a.wallpaper,showDoodle:a.showDoodle}),j.jsx(d("WAWebHeader.react").ConversationHeader,{chat:e,contact:e.contact,onSelectMessages:x}),j.jsx(c("WAWebConversationPanelBanner.react"),{chat:e,groupMetadata:i}),j.jsxs("div",babelHelpers["extends"]({className:c("WAWebConversationPanel.scss").body,ref:C},z,{"data-testid":void 0,children:[I,f]})),D,s,j.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"slide-up",children:H})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebConversationPanelAnimations",["WAWebVelocityAnimate"],(function(a,b,c,d,e,f,g){function a(a,b){c("WAWebVelocityAnimate")(a,{scaleX:[1,b]},{duration:300,easing:[.1,.82,.25,1]});a=b!==1;return a}g.animateConversationPanel=a}),98);
__d("WAWebConversationPanelWrapper.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={pane:"_ajx_",previewPane:"_ajy0",header:"_ajy1",title:"_ajy2"};b=a;g["default"]=b}),98);
__d("WAWebConversationPanelWrapper.react",["fbt","WAWebABProps","WAWebChatPreferenceCollection","WAWebClassnames","WAWebConversationBackground.react","WAWebConversationPanel.react","WAWebConversationPanel.scss","WAWebConversationPanelAnimations","WAWebConversationPanelWrapper.scss","WAWebErrorBoundary.react","WAWebHeader.scss","WAWebUIRefreshGatingUtils","WAWebUim","WAWebUimUie.react","WAWebWallpaper","react","useWAWebListener","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useImperativeHandle,m=b.useRef,n=b.useState;e=k.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.chat,f=a.chatEntryPoint,g=a.msgCollection,i=a.focusCtx,j=a.notifyChatRendered,o=a.updateOpenedChatInfo,p=a.showPreview,q=m(null),r=d("useWAWebModelValues").useModelValues(a.chatPreference,["wallpaper","showDoodle"]),s=d("useWAWebModelValues").useOptionalModelValues(a.chat,["wallpaper","showDoodle"]);function t(){var a;return!p&&d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?(a=s==null?void 0:s.wallpaper)!=null?a:r.wallpaper:r.wallpaper}var u=n(t()),v=u[0],w=u[1];u=n(t());var x=u[0];u=u[1];d("useWAWebListener").useListener(c("WAWebChatPreferenceCollection"),"wallpaper_preview",function(a){if(d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")){var b;w((b=(b=a)!=null?b:s==null?void 0:s.wallpaper)!=null?b:r.wallpaper)}else{w((b=a)!=null?b:r.wallpaper)}});t=t();x!==t&&(w(t),u(t));var y=function(a,b,c,e){var f;f=(f=q.current)==null?void 0:f.clientWidth;if(f==null||a===b)return!1;var g=f/(a-b);if(e===!0&&c!=null&&c>0){e=a-b-c;g=f/e}return d("WAWebConversationPanelAnimations").animateConversationPanel(q.current,g)},z=function(a){return!q.current?!1:q.current.contains(a)};l(b,function(){return{animatePanel:y,containsDOMNode:z}});x={};v!==d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER&&(x.backgroundColor=v);u=p?k.jsxs(k.Fragment,{children:[k.jsx("header",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebHeader.scss").chatHeader,d("WAWebUIRefreshGatingUtils").materialRefreshEnabled()&&c("WAWebHeader.scss").chatHeaderMaterial,c("WAWebConversationPanelWrapper.scss").header),children:k.jsx("span",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebConversationPanelWrapper.scss").title,c("WAWebHeader.scss").chatTitle),children:h._("__JHASH__noDPub80SFt__JHASH__")})}),k.jsx(c("WAWebConversationBackground.react"),{wallpaper:v,showDoodle:r.showDoodle}),k.jsx("footer",{className:c("WAWebConversationPanel.scss").footer})]}):null;b=e&&g?k.jsx(c("WAWebConversationPanel.react"),{chat:e,chatEntryPoint:f,groupMetadata:e.groupMetadata,focusCtx:i,msgCollection:g,notifyChatRendered:j,updateOpenedChatInfo:o,wallpaper:v,showDoodle:d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?(t=s==null?void 0:s.showDoodle)!=null?t:r.showDoodle:r.showDoodle},e.id.toString()):null;if(d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")){i=(f=u)!=null?f:b}else{i=(g=b)!=null?g:u}return k.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"conversation-panel",children:k.jsx(d("WAWebUimUie.react").UIE,{displayName:"ConversationPanel",uimState:d("WAWebUim").UIMState.INACTIVE,children:k.jsx("div",{id:"main",className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((j={},j[c("WAWebConversationPanelWrapper.scss").previewPane]=a.showPreview,j[c("WAWebConversationPanelWrapper.scss").pane]=!0,j)),style:x,ref:q,"data-testid":void 0,children:i})})})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),226);
__d("WAWebIntroMdBetaLogoDarkIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="intro-md-beta-logo-dark";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=172;m=303;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 303 172",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M229.565 160.229C262.212 149.245 286.931 118.241 283.39 73.4194C278.009 5.31929 212.365 -11.5738 171.472 8.48673C115.998 35.6999 108.972 40.1612 69.2388 40.1612C39.645 40.1612 9.51317 54.4147 5.74669 92.952C3.01662 120.885 13.9985 145.267 54.6373 157.716C128.599 180.373 198.017 170.844 229.565 160.229Z",fill:"#364147"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M131.589 68.9422C131.593 68.9422 131.596 68.9422 131.599 68.9422C137.86 68.9422 142.935 63.6787 142.935 57.1859C142.935 50.6931 137.86 45.4297 131.599 45.4297C126.518 45.4297 122.218 48.8958 120.777 53.6723C120.022 53.4096 119.213 53.2672 118.373 53.2672C114.199 53.2672 110.815 56.7762 110.815 61.1047C110.815 65.4332 114.199 68.9422 118.373 68.9422C118.377 68.9422 118.381 68.9422 118.386 68.9422H131.589Z",fill:"#F1F1F2",fillOpacity:.38}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.682 128.716C109.186 128.716 112.026 125.908 112.026 122.446C112.026 118.983 109.186 116.176 105.682 116.176C104.526 116.176 103.442 116.481 102.509 117.015L102.509 116.959C102.509 110.467 97.1831 105.203 90.6129 105.203C85.3224 105.203 80.8385 108.616 79.2925 113.335C78.6052 113.143 77.88 113.041 77.1304 113.041C72.7503 113.041 69.1995 116.55 69.1995 120.878C69.1995 125.207 72.7503 128.716 77.1304 128.716C77.1341 128.716 77.1379 128.716 77.1416 128.716H105.682L105.682 128.716Z",fill:"#F1F1F2",fillOpacity:.38}),j.jsx("rect",{x:.445307,y:.549558,width:50.5797,height:100.068,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.5547 41.6171)",fill:"#42CBA5",stroke:"#316474"}),j.jsx("rect",{x:.445307,y:.549558,width:50.4027,height:99.7216,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.9258 37.9564)",fill:"#EEFAF6",stroke:"#316474"}),j.jsx("path",{d:"M57.1609 51.7354L48.5917 133.759C48.2761 136.78 45.5713 138.972 42.5503 138.654L9.58089 135.189C6.55997 134.871 4.36688 132.165 4.68251 129.144L13.2517 47.1204C13.5674 44.0992 16.2722 41.9075 19.2931 42.2251L24.5519 42.7778L47.0037 45.1376L52.2625 45.6903C55.2835 46.0078 57.4765 48.7143 57.1609 51.7354Z",fill:"#DFF3ED",stroke:"#316474"}),j.jsx("path",{d:"M26.2009 102.937C27.0633 103.019 27.9323 103.119 28.8023 103.21C29.0402 101.032 29.2706 98.8437 29.4916 96.6638L26.8817 96.39C26.6438 98.5681 26.4049 100.755 26.2009 102.937ZM23.4704 93.3294L25.7392 91.4955L27.5774 93.7603L28.7118 92.8434L26.8736 90.5775L29.1434 88.7438L28.2248 87.6114L25.955 89.4452L24.1179 87.1806L22.9824 88.0974L24.8207 90.3621L22.5508 92.197L23.4704 93.3294ZM22.6545 98.6148C22.5261 99.9153 22.3893 101.215 22.244 102.514C23.1206 102.623 23.9924 102.697 24.8699 102.798C25.0164 101.488 25.1451 100.184 25.2831 98.8734C24.4047 98.7813 23.5298 98.6551 22.6545 98.6148ZM39.502 89.7779C38.9965 94.579 38.4833 99.3707 37.9862 104.174C38.8656 104.257 39.7337 104.366 40.614 104.441C41.1101 99.6473 41.6138 94.8633 42.1271 90.0705C41.2625 89.9282 40.3796 89.8786 39.502 89.7779ZM35.2378 92.4459C34.8492 96.2179 34.4351 99.9873 34.0551 103.76C34.925 103.851 35.7959 103.934 36.6564 104.033C37.1028 100.121 37.482 96.1922 37.9113 92.2783C37.0562 92.1284 36.18 92.0966 35.3221 91.9722C35.2812 92.1276 35.253 92.286 35.2378 92.4459ZM31.1061 94.1821C31.0635 94.341 31.0456 94.511 31.0286 94.6726C30.7324 97.5678 30.4115 100.452 30.1238 103.348L32.7336 103.622C32.8582 102.602 32.9479 101.587 33.0639 100.567C33.2611 98.5305 33.5188 96.4921 33.6905 94.4522C32.8281 94.3712 31.9666 94.2811 31.1061 94.1821Z",fill:"#316474"}),j.jsx("path",{d:"M17.892 48.4889C17.7988 49.3842 18.4576 50.1945 19.3597 50.2923C20.2665 50.3906 21.0855 49.7332 21.1792 48.8333C21.2724 47.938 20.6136 47.1277 19.7115 47.0299C18.8047 46.9316 17.9857 47.5889 17.892 48.4889Z",fill:"white",stroke:"#316474"}),j.jsx("path",{d:"M231.807 136.678L197.944 139.04C197.65 139.06 197.404 139.02 197.249 138.96C197.208 138.945 197.179 138.93 197.16 138.918L196.456 128.876C196.474 128.862 196.5 128.843 196.538 128.822C196.683 128.741 196.921 128.668 197.215 128.647L231.078 126.285C231.372 126.265 231.618 126.305 231.773 126.365C231.814 126.381 231.842 126.395 231.861 126.407L232.566 136.449C232.548 136.463 232.522 136.482 232.484 136.503C232.339 136.584 232.101 136.658 231.807 136.678Z",fill:"white",stroke:"#316474"}),j.jsx("path",{d:"M283.734 125.679L144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2005 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679Z",fill:"#EEFAF6"}),j.jsx("path",{d:"M144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2004 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679",stroke:"#316474"}),j.jsx("path",{d:"M278.565 121.405L148.68 130.463C146.256 130.632 144.174 128.861 144.012 126.55L138.343 45.695C138.181 43.3846 139.994 41.3414 142.419 41.1723L272.304 32.1142C274.731 31.945 276.81 33.7166 276.972 36.0271L282.641 116.882C282.803 119.193 280.992 121.236 278.565 121.405Z",fill:"#DFF3ED",stroke:"#316474"}),j.jsx("path",{d:"M230.198 129.97L298.691 125.193L299.111 131.189C299.166 131.97 299.013 132.667 298.748 133.161C298.478 133.661 298.137 133.887 297.825 133.909L132.794 145.418C132.482 145.44 132.113 145.263 131.777 144.805C131.445 144.353 131.196 143.684 131.141 142.903L130.721 136.907L199.215 132.131C199.476 132.921 199.867 133.614 200.357 134.129C200.929 134.729 201.665 135.115 202.482 135.058L227.371 133.322C228.188 133.265 228.862 132.782 229.345 132.108C229.758 131.531 230.05 130.79 230.198 129.97Z",fill:"#42CBA5",stroke:"#316474"}),j.jsx("path",{d:"M230.367 129.051L300.275 124.175L300.533 127.851C300.591 128.681 299.964 129.403 299.13 129.461L130.858 141.196C130.025 141.254 129.303 140.627 129.245 139.797L128.987 136.121L198.896 131.245C199.485 132.391 200.709 133.147 202.084 133.051L227.462 131.281C228.836 131.185 229.943 130.268 230.367 129.051Z",fill:"#EEFAF6",stroke:"#316474"}),j.jsx("ellipse",{rx:15.9969,ry:15.9971,transform:"matrix(0.997577 -0.0695704 0.0699429 0.997551 210.659 83.553)",fill:"#42CBA5",stroke:"#316474"}),j.jsx("path",{d:"M208.184 87.1094L204.777 84.3593C204.777 84.359 204.776 84.3587 204.776 84.3583C203.957 83.6906 202.744 83.8012 202.061 84.6073C201.374 85.4191 201.486 86.6265 202.31 87.2997L202.312 87.3011L207.389 91.4116C207.389 91.4119 207.389 91.4121 207.389 91.4124C208.278 92.1372 209.611 91.9373 210.242 90.9795L218.283 78.77C218.868 77.8813 218.608 76.6968 217.71 76.127C216.817 75.5606 215.624 75.8109 215.043 76.6939L208.184 87.1094Z",fill:"white",stroke:"#316474"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IntroMdBetaLogoDarkIcon=a}),98);
__d("WAWebIntroMdBetaLogoLightIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="intro-md-beta-logo-light";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=172;m=303;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 303 172",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M229.565 160.229C262.212 149.245 286.931 118.241 283.39 73.4194C278.009 5.31929 212.365 -11.5738 171.472 8.48673C115.998 35.6999 108.972 40.1612 69.2388 40.1612C39.645 40.1612 9.51318 54.4147 5.7467 92.952C3.0166 120.885 13.9985 145.267 54.6373 157.716C128.599 180.373 198.017 170.844 229.565 160.229Z",fill:"#DAF7F3"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M131.589 68.9422C131.593 68.9422 131.596 68.9422 131.599 68.9422C137.86 68.9422 142.935 63.6787 142.935 57.1859C142.935 50.6931 137.86 45.4297 131.599 45.4297C126.518 45.4297 122.218 48.8958 120.777 53.6723C120.022 53.4096 119.213 53.2672 118.373 53.2672C114.199 53.2672 110.815 56.7762 110.815 61.1047C110.815 65.4332 114.199 68.9422 118.373 68.9422C118.377 68.9422 118.381 68.9422 118.386 68.9422H131.589Z",fill:"white"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M105.682 128.716C109.186 128.716 112.026 125.908 112.026 122.446C112.026 118.983 109.186 116.176 105.682 116.176C104.526 116.176 103.442 116.481 102.509 117.015L102.509 116.959C102.509 110.467 97.1831 105.203 90.6129 105.203C85.3224 105.203 80.8385 108.616 79.2925 113.335C78.6052 113.143 77.88 113.041 77.1304 113.041C72.7503 113.041 69.1995 116.55 69.1995 120.878C69.1995 125.207 72.7503 128.716 77.1304 128.716C77.1341 128.716 77.1379 128.716 77.1416 128.716H105.682L105.682 128.716Z",fill:"white"}),j.jsx("rect",{x:.445307,y:.549558,width:50.5797,height:100.068,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.5547 41.6171)",fill:"#42CBA5",stroke:"#316474"}),j.jsx("rect",{x:.445307,y:.549558,width:50.4027,height:99.7216,rx:7.5,transform:"matrix(0.994522 0.104528 -0.103907 0.994587 10.9258 37.9564)",fill:"white",stroke:"#316474"}),j.jsx("path",{d:"M57.1609 51.7354L48.5917 133.759C48.2761 136.78 45.5713 138.972 42.5503 138.654L9.58089 135.189C6.55997 134.871 4.36688 132.165 4.68251 129.144L13.2517 47.1204C13.5674 44.0992 16.2722 41.9075 19.2931 42.2251L24.5519 42.7778L47.0037 45.1376L52.2625 45.6903C55.2835 46.0078 57.4765 48.7143 57.1609 51.7354Z",fill:"#EEFEFA",stroke:"#316474"}),j.jsx("path",{d:"M26.2009 102.937C27.0633 103.019 27.9323 103.119 28.8023 103.21C29.0402 101.032 29.2706 98.8437 29.4916 96.6638L26.8817 96.39C26.6438 98.5681 26.4049 100.755 26.2009 102.937ZM23.4704 93.3294L25.7392 91.4955L27.5774 93.7603L28.7118 92.8434L26.8736 90.5775L29.1434 88.7438L28.2248 87.6114L25.955 89.4452L24.1179 87.1806L22.9824 88.0974L24.8207 90.3621L22.5508 92.197L23.4704 93.3294ZM22.6545 98.6148C22.5261 99.9153 22.3893 101.215 22.244 102.514C23.1206 102.623 23.9924 102.697 24.8699 102.798C25.0164 101.488 25.1451 100.184 25.2831 98.8734C24.4047 98.7813 23.5298 98.6551 22.6545 98.6148ZM39.502 89.7779C38.9965 94.579 38.4833 99.3707 37.9862 104.174C38.8656 104.257 39.7337 104.366 40.614 104.441C41.1101 99.6473 41.6138 94.8633 42.1271 90.0705C41.2625 89.9282 40.3796 89.8786 39.502 89.7779ZM35.2378 92.4459C34.8492 96.2179 34.4351 99.9873 34.0551 103.76C34.925 103.851 35.7959 103.934 36.6564 104.033C37.1028 100.121 37.482 96.1922 37.9113 92.2783C37.0562 92.1284 36.18 92.0966 35.3221 91.9722C35.2812 92.1276 35.253 92.286 35.2378 92.4459ZM31.1061 94.1821C31.0635 94.341 31.0456 94.511 31.0286 94.6726C30.7324 97.5678 30.4115 100.452 30.1238 103.348L32.7336 103.622C32.8582 102.602 32.9479 101.587 33.0639 100.567C33.2611 98.5305 33.5188 96.4921 33.6905 94.4522C32.8281 94.3712 31.9666 94.2811 31.1061 94.1821Z",fill:"#316474"}),j.jsx("path",{d:"M17.892 48.4889C17.7988 49.3842 18.4576 50.1945 19.3597 50.2923C20.2665 50.3906 21.0855 49.7332 21.1792 48.8333C21.2724 47.938 20.6136 47.1277 19.7115 47.0299C18.8047 46.9316 17.9857 47.5889 17.892 48.4889Z",fill:"white",stroke:"#316474"}),j.jsx("path",{d:"M231.807 136.678L197.944 139.04C197.65 139.06 197.404 139.02 197.249 138.96C197.208 138.945 197.179 138.93 197.16 138.918L196.456 128.876C196.474 128.862 196.5 128.843 196.538 128.822C196.683 128.741 196.921 128.668 197.215 128.647L231.078 126.285C231.372 126.265 231.618 126.305 231.773 126.365C231.814 126.381 231.842 126.395 231.861 126.407L232.566 136.449C232.548 136.463 232.522 136.482 232.484 136.503C232.339 136.584 232.101 136.658 231.807 136.678Z",fill:"white",stroke:"#316474"}),j.jsx("path",{d:"M283.734 125.679L144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2005 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679Z",fill:"white"}),j.jsx("path",{d:"M144.864 135.363C141.994 135.563 139.493 133.4 139.293 130.54L133.059 41.6349C132.858 38.7751 135.031 36.2858 137.903 36.0856L276.773 26.4008C279.647 26.2004 282.144 28.364 282.345 31.2238L288.578 120.129C288.779 122.989 286.607 125.478 283.734 125.679",stroke:"#316474"}),j.jsx("path",{d:"M278.565 121.405L148.68 130.463C146.256 130.632 144.174 128.861 144.012 126.55L138.343 45.695C138.181 43.3846 139.994 41.3414 142.419 41.1723L272.304 32.1142C274.731 31.945 276.81 33.7166 276.972 36.0271L282.641 116.882C282.803 119.193 280.992 121.236 278.565 121.405Z",fill:"#EEFEFA",stroke:"#316474"}),j.jsx("path",{d:"M230.198 129.97L298.691 125.193L299.111 131.189C299.166 131.97 299.013 132.667 298.748 133.161C298.478 133.661 298.137 133.887 297.825 133.909L132.794 145.418C132.482 145.44 132.113 145.263 131.777 144.805C131.445 144.353 131.196 143.684 131.141 142.903L130.721 136.907L199.215 132.131C199.476 132.921 199.867 133.614 200.357 134.129C200.929 134.729 201.665 135.115 202.482 135.058L227.371 133.322C228.188 133.265 228.862 132.782 229.345 132.108C229.758 131.531 230.05 130.79 230.198 129.97Z",fill:"#42CBA5",stroke:"#316474"}),j.jsx("path",{d:"M230.367 129.051L300.275 124.175L300.533 127.851C300.591 128.681 299.964 129.403 299.13 129.461L130.858 141.196C130.025 141.254 129.303 140.627 129.245 139.797L128.987 136.121L198.896 131.245C199.485 132.391 200.709 133.147 202.084 133.051L227.462 131.281C228.836 131.185 229.943 130.268 230.367 129.051Z",fill:"white",stroke:"#316474"}),j.jsx("ellipse",{rx:15.9969,ry:15.9971,transform:"matrix(0.997577 -0.0695704 0.0699429 0.997551 210.659 83.553)",fill:"#42CBA5",stroke:"#316474"}),j.jsx("path",{d:"M208.184 87.1094L204.777 84.3593C204.777 84.359 204.776 84.3587 204.776 84.3583C203.957 83.6906 202.744 83.8012 202.061 84.6073C201.374 85.4191 201.486 86.6265 202.31 87.2997L202.312 87.3011L207.389 91.4116C207.389 91.4119 207.389 91.4121 207.389 91.4124C208.278 92.1372 209.611 91.9373 210.242 90.9795L218.283 78.77C218.868 77.8813 218.608 76.6968 217.71 76.127C216.817 75.5606 215.624 75.8109 215.043 76.6939L208.184 87.1094Z",fill:"white",stroke:"#316474"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IntroMdBetaLogoLightIcon=a}),98);
__d("WAWebIntroPanel.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={intro:"_al_c",body:"_al_d",title:"_al_e",betaTitle:"_al_g",betaText:"_al_h",textContainer:"_al_i",mdTextContainer:"_al_j",secondary:"_al_k",divider:"_al_l",image:"_al_m",mdImageWrapper:"_al_n",mdBetaImage:"_al_o",mdImage:"_al_p",text:"_al_f",secondaryText:"_al_q",secondaryTextBody:"_al_r",secondaryIcon:"_al_s",upgradeElectronBtn:"_al_t",upgradeModalTitle:"_al_u",upgradeModalText:"_al_v",upgradeModalErrorText:"_al_w",encrypted:"_al_x"};b=a;g["default"]=b}),98);
__d("WAWebIntroPanel.react",["fbt","WAWebBizGatingUtils","WAWebButton.react","WAWebConversationPanelAnimations","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebIntroMdBetaLogoDarkIcon","WAWebIntroMdBetaLogoLightIcon","WAWebIntroPanel.scss","WAWebLockSmallIcon","WAWebNewsletterGatingUtils","WAWebThemeContext","WAWebUseIsFeatureEnabled","WAWebVelocityAnimate","WAWebWDSText.react","WAWebWamEnumWebcNativeUpsellCtaSourceType","bx","cr:10211","react","useWAWebDesktopUpsellWamImpression"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useContext,m=e.useEffect,n=e.useImperativeHandle,o=e.useRef;e=k.forwardRef(a);function a(a,e){a=babelHelpers["extends"]({},a);var f=a.animate;a=l(d("WAWebThemeContext").ThemeContext);var g=o(null),i=o(null);m(function(){var a=g.current,b=i.current;f?(c("WAWebVelocityAnimate")(a,{scale:[1,0],opacity:[1,0]},{delay:1340,duration:180,easing:[.05,1.02,0,1.01]}),c("WAWebVelocityAnimate")(b,{translateY:[0,80],opacity:[1,0]},{delay:1300,duration:140,easing:[.05,1.02,0,1.01]})):(a&&(a.style.opacity="1"),b&&(b.style.opacity="1"))},[]);var j=o(null),q=function(a,b){var c;c=(c=j.current)==null?void 0:c.clientWidth;if(c==null||a===b)return!1;c=c/(a-b);return d("WAWebConversationPanelAnimations").animateConversationPanel(j.current,c)},r=function(a){return!j.current?!1:j.current.contains(a)};n(e,function(){return{animatePanel:q,containsDOMNode:r}});e=c("WAWebUseIsFeatureEnabled")("MD_EXTENSION");var s,t=!1,u=c("WAWebIntroPanel.scss").textContainer,v=d("WAWebDesktopUpsellUtils").getUserDesktopOs(),w=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("intro_panel"),x=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck(),y=w&&x===!0;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({source:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL,isCtaVisible:y});if(w&&x===!0)t=!0,y=k.jsx("div",{ref:g,className:c("WAWebIntroPanel.scss").mdImageWrapper,children:k.jsx("img",{src:v===d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?c("bx").getURL(c("bx")("482")):c("bx").getURL(c("bx")("484")),width:320,alt:""})}),w=k.jsxs(k.Fragment,{children:[k.jsx("h1",{"data-testid":void 0,className:c("WAWebIntroPanel.scss").title,children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellDownloadWhatsAppTitle()}),k.jsx(d("WAWebWDSText.react").WDSTextMuted,{testid:void 0,marginTop:24,children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellIntroPanelText()})]}),s=p({buttonText:d("WAWebDesktopUpsellCommonStrings").getDesktopAppDownloadFromStoreBtnLabel(),onClick:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl(d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.INTRO_PANEL)}});else{t=!0;u=c("WAWebIntroPanel.scss").mdTextContainer;y=k.jsx("div",{ref:g,className:c("WAWebIntroPanel.scss").mdImageWrapper,children:a.theme==="light"?k.jsx(d("WAWebIntroMdBetaLogoLightIcon").IntroMdBetaLogoLightIcon,{className_DONOTUSE:c("WAWebIntroPanel.scss").mdBetaImage,width:360}):k.jsx(d("WAWebIntroMdBetaLogoDarkIcon").IntroMdBetaLogoDarkIcon,{className_DONOTUSE:c("WAWebIntroPanel.scss").mdBetaImage,width:360})});x=c("WAWebFbtCommon")("WhatsApp Web");c("WAWebEnvironment").isWindows&&(x=x.toString().replace("Web",String.fromCharCode(102,111,114,32,87,105,110,100,111,119,115)));v=k.jsx("h1",{"data-testid":void 0,children:x});e?w=k.jsxs(k.Fragment,{children:[k.jsx("div",{className:c("WAWebIntroPanel.scss").betaTitle,children:v}),k.jsxs("div",{"data-testid":void 0,className:c("WAWebIntroPanel.scss").betaText,children:[h._("__JHASH__dwbfGks1SZL__JHASH__"),k.jsx("br",{}),h._("__JHASH__4OvUeuh89nF__JHASH__")]})]}):d("WAWebBizGatingUtils").billingEnabled()?w=k.jsxs(k.Fragment,{children:[k.jsx("div",{className:c("WAWebIntroPanel.scss").betaTitle,children:v}),k.jsxs("div",{"data-testid":void 0,className:c("WAWebIntroPanel.scss").betaText,children:[h._("__JHASH__e4p4UsF70rd__JHASH__",[h._implicitParam("=m0",k.jsx("strong",{children:h._("__JHASH__IMvNNTUb6su__JHASH__")}))]),k.jsx("br",{}),h._("__JHASH__lk5zpsvtzMB__JHASH__"),k.jsx("br",{}),k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getWhatsAppBusinessPremiumFaqUrl(),children:h._("__JHASH__ERAv2j3YrgV__JHASH__")})]})]}):(w=k.jsxs(k.Fragment,{children:[k.jsx("div",{className:c("WAWebIntroPanel.scss").betaTitle,children:v}),k.jsxs("div",{"data-testid":void 0,className:c("WAWebIntroPanel.scss").betaText,children:[h._("__JHASH___Rn1waYwbF7__JHASH__"),k.jsx("br",{}),h._("__JHASH__wCqmH-OFHYs__JHASH__")]})]}),s=p(null))}return k.jsx("div",{className:c("WAWebIntroPanel.scss").intro,ref:j,children:k.jsxs("div",{className:c("WAWebIntroPanel.scss").body,children:[y,k.jsxs("div",{ref:i,className:u,children:[w,s,b("cr:10211")?k.jsx("div",{className:c("WAWebIntroPanel.scss").secondary,children:k.jsx(b("cr:10211"),{})}):null]}),t&&k.jsxs("div",{className:c("WAWebIntroPanel.scss").encrypted,children:[k.jsx(d("WAWebLockSmallIcon").LockSmallIcon,{})," ",d("WAWebNewsletterGatingUtils").isNewsletterEnabled()?h._("__JHASH__m8ebBu5d962__JHASH__"):c("WAWebFbtCommon")("End-to-end encrypted")]})]})})}a.displayName=a.name+" [from "+f.id+"]";a=e;function p(a){return(a==null?void 0:a.buttonText)!=null?k.jsx("div",{className:c("WAWebIntroPanel.scss").upgradeElectronBtn,children:k.jsx(c("WAWebButton.react"),{type:"strong-primary",onClick:a.onClick,testid:void 0,children:a.buttonText})}):null}g["default"]=a}),226);
__d("WAWebConversation.react",["Promise","WAErr","WALogger","WAWebABProps","WAWebBotFeatureNotAvailable.react","WAWebBotFrontendUtils","WAWebBotGating","WAWebBotLogging","WAWebBotNux.react","WAWebBotTosIds","WAWebBusinessProfileCollection","WAWebCAPIGroupAboutModal.react","WAWebChatEntryPoint","WAWebChatEphemerality","WAWebChatGroupUtils","WAWebChatLockCodeModal.react","WAWebChatLockUtils","WAWebChatLockWAMUtils","WAWebChatPreferenceCollection","WAWebCmd","WAWebConversationPanelWrapper.react","WAWebDesktopUpsellEvents","WAWebFrontendMsgGetters","WAWebGetOrQueryUsyncInfoContactAction","WAWebHostedGroupUtils","WAWebIntroPanel.react","WAWebModalManager","WAWebMsgCollection","WAWebNux","WAWebQueryGroupAction","WAWebStreamModel","WAWebTosGating","WAWebUpdateEphemeralSettingChatAction","WAWebWamEnumActionEntryPoint","WAWebWamEnumLandingSurface","WAWebWid","asyncToGeneratorRuntime","gkx","lodash","react","useWAWebChatLockRestriction","useWAWebListener","useWAWebNux","useWAWebPrevious"],(function(a,b,c,d,e,f,g){var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[DM] auto-disabling DM due to chat being with CAPI account"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat.msgs length: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["msgContext.collection length: ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[usync] Getting usync info for contact while opening the chat"]);n=function(){return a};return a}e=j||d("react");var o=i||(i=c("react")),p=e.useEffect,q=e.useImperativeHandle,r=e.useRef,s=e.useState;function t(a){switch(a){case d("WAWebChatEntryPoint").ChatEntryPoint.Chatlist:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST;case d("WAWebChatEntryPoint").ChatEntryPoint.Notification:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.NOTIFICATIONS;case d("WAWebChatEntryPoint").ChatEntryPoint.PrivateReply:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.PRIVATE_REPLY;case d("WAWebChatEntryPoint").ChatEntryPoint.DirectMessage:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.DIRECT_MESSAGE;case d("WAWebChatEntryPoint").ChatEntryPoint.ContactInfo:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_INFO;case d("WAWebChatEntryPoint").ChatEntryPoint.Mention:return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.DIRECT_MESSAGE;case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterIntegrity:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterChatlist:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectory:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterDirectorySearch:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsLetterRecommendation:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCreationFlow:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterAdminInviteAcceptModal:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterPostLinkCard:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterLinkCard:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterLinkCardButton:case d("WAWebChatEntryPoint").ChatEntryPoint.ForwardedNewsletterMessage:case d("WAWebChatEntryPoint").ChatEntryPoint.NewsletterCTAOnStatus:case d("WAWebChatEntryPoint").ChatEntryPoint.SimilarNewsletters:case d("WAWebChatEntryPoint").ChatEntryPoint.Link:case d("WAWebChatEntryPoint").ChatEntryPoint.Deeplink:case d("WAWebChatEntryPoint").ChatEntryPoint.Vcard:case d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut:case d("WAWebChatEntryPoint").ChatEntryPoint.Unknown:break}return d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.UNKNOWN}e=o.forwardRef(a);function a(a,e){a=a.animate;var f=r(),g=r(),i=r(0),j=r(function(){}),u=j.current,v=r(function(){}),w=v.current,x=r(d("WAWebChatEntryPoint").ChatEntryPoint.Unknown),y=s(),z=y[0],A=y[1];y=s();var B=y[0],C=y[1];y=s();var D=y[0],E=y[1];y=s(!1);var F=y[0],G=y[1];d("useWAWebChatLockRestriction").useChatLockRestriction({id:z!=null?"locked-thread-"+z.id.toString():"chat-homescreen",condition:(y=z)!=null?y:"bypass",entryPoint:t(x.current),landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.THREAD,unlockEntryPoint:d("WAWebChatLockWAMUtils").actionEntryPointToUnlockEntryPoint(t(x.current))});y=s(a);a=y[0];y=y[1];var H=c("useWAWebPrevious")(a);H!==!1&&a!==!1&&y(!1);var I=function(a,b){var e=b?b.msg||d("WAWebMsgCollection").MsgCollection.get(b.key):void 0;if(b&&e&&a){b=a.chat;var f=a.renderedMsgsInfo;a=a.visibleMsgOrder;if(b&&f&&a&&!c("lodash").isEmpty(f)&&!c("lodash").isEmpty(a)){a=f[a[0].toString()];var g=e.id.toString();f=Object.entries(f).find(function(a){return a===g});f=f?f[1]:null;if(f)return{wasVisible:!0,offset:f.offset};else if(b===d("WAWebFrontendMsgGetters").getChat(e))return a&&e.t<a.t?{wasVisible:!1,alignAt:"top"}:{wasVisible:!1,alignAt:"bottom"}}}return{wasVisible:!1,alignAt:"center"}};q(e,function(){return{containsDOMNode:function(a){return!f.current?!1:f.current.containsDOMNode(a)},animatePanel:function(a,b,c,d){return!f.current?!1:f.current.animatePanel(a,b,c,d)}}});H=function(){d("WAWebStreamModel").Stream.markUnavailable(15*1e3)};y=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,p){if(!d("WAWebChatLockUtils").chatIsAccessible(a)){var q=(yield d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.THREAD,unlockEntryPoint:d("WAWebChatLockWAMUtils").actionEntryPointToUnlockEntryPoint(t(f)),entryPoint:t(f)}));if(!q)return}a.contact.isEnterprise==null&&a.isUser&&!c("WAWebWid").isPSA(a.contact.id)&&!a.id.isBot()&&(d("WALogger").LOG(n()),d("WAWebGetOrQueryUsyncInfoContactAction").queryUsyncBusiness(a.id));if(a.id.isBot()){if(!d("WAWebBotGating").isBotEnabled()){d("WAWebModalManager").ModalManager.open(o.jsx(c("WAWebBotFeatureNotAvailable.react"),{}));return}var r=f===d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut?d("WAWebBotLogging").BotEntryPointType.Shortcut:d("WAWebBotLogging").BotEntryPointType.Agent;d("WAWebBotLogging").logAiChatClickBotJourneyEvent(r);if(d("WAWebTosGating").shouldBlockByBotTos(a.contact)){q=a.id.equals(d("WAWebBotFrontendUtils").MetaBotWid)?d("WAWebBotTosIds").getBotShortcutTosId():d("WAWebBotTosIds").getBotAgentTosId();if(d("WAWebBotTosIds").supportedTosNoticeIds.has(q))try{yield new(h||(h=b("Promise")))(function(b,e){d("WAWebBotLogging").logAiTosBotJourneyEvent(r,d("WAWebBotLogging").BotTosActionType.View),d("WAWebModalManager").ModalManager.open(o.jsx(c("WAWebBotNux.react"),{origin:a.id.equals(d("WAWebBotFrontendUtils").MetaBotWid)?"shortcut":"agent",onOK:function(){d("WAWebBotLogging").logAiTosBotJourneyEvent(r,d("WAWebBotLogging").BotTosActionType.Accept),b()},onCancel:function(){d("WAWebBotLogging").logAiTosBotJourneyEvent(r,d("WAWebBotLogging").BotTosActionType.Dismiss),e(c("WAErr")())}}))})}catch(a){return}else d("WAWebChatGroupUtils").updateCanSend(a)}}z!==a&&d("WAWebCmd").Cmd.updateChatlistSelection(a);var s=g.current,u={};g.current=u;v.current=function(a){Object.assign(u,a)};c("gkx")("26258")||(e?d("WALogger").LOG(m(),e.collection.length):d("WALogger").LOG(l(),a.msgs.length));q=e?e.collection:a.msgs;i.current++;var w=i.current,y=function(){return w===i.current};x.current=f;var B=!1,D=function(){if(!y())return;B=!0;p(I(s,e))},F=(e==null?void 0:(f=e.msg)==null?void 0:f.id)||(e==null?void 0:e.key);j.current=function(a){if(B||!y())return;if(!F){D();return}a=a.some(function(a){return a.id.equals(F)});if(!a)return;D()};A(a);C(q);E(e);a.contact.isEnterprise&&d("WAWebChatEphemerality").isEphemeralSettingOn(a)&&(d("WALogger").LOG(k()).devConsole({chat:a,ephemeralDuration:a.ephemeralDuration}),d("WAWebUpdateEphemeralSettingChatAction").setChatAsEphemeralityUnsupported(a))});return function(b,c,d,e){return a.apply(this,arguments)}}();e=function(a){a===z&&(A(void 0),C(void 0),E(void 0))};var J=function(){d("WAWebStreamModel").Stream.markAvailable(),(z==null?void 0:z.isUser)&&z.presence.subscribe()};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"open_chat",y);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"close_chat",e);d("useWAWebListener").useListener(window,"focus",J);d("useWAWebListener").useListener(window,"blur",H);d("useWAWebListener").useListener(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(a){(!d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||a)&&G(!0)});d("useWAWebListener").useListener(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_close",function(a){(!d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||a)&&G(!1)});y=c("useWAWebNux")(d("WAWebNux").NUX.CAPI_GROUP_ABOUT_MODAL);var K=y[0],L=y[1];e=function(a,b,c,d){var e=B;(e===a||e===b)&&(C(c),E(d&&(!!d.msg||!!d.collection)?d:D))};d("useWAWebListener").useListener(z,"change:cmc:merge",e);p(function(){z&&(z.contact.isBusiness&&!z.id.isBot()&&d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(z.id),z.groupMetadata&&d("WAWebQueryGroupAction").maybeQueryGroupDevice(z.groupMetadata))},[z]);p(function(){var a;(z==null?void 0:(a=z.groupMetadata)==null?void 0:a.hasCapi)===!0&&d("WAWebHostedGroupUtils").isWAHostedGroupEnabled()&&K&&(d("WAWebModalManager").ModalManager.open(o.jsx(d("WAWebCAPIGroupAboutModal.react").CAPIGroupAboutModal,{})),L())},[z,K,L]);var M=z&&B||F;p(function(){d("WAWebDesktopUpsellEvents").WAWebDesktopUpsellEvents.trigger("conversation_panel_ui_change",{conversationPanelVisible:!!M})},[M]);return M?o.jsx(c("WAWebConversationPanelWrapper.react"),{chat:z,chatEntryPoint:x.current,groupMetadata:z==null?void 0:z.groupMetadata,chatPreference:c("WAWebChatPreferenceCollection").assertGet("defaultPreference"),focusCtx:D,msgCollection:B,notifyChatRendered:u,updateOpenedChatInfo:w,ref:f,showPreview:F},z==null?void 0:z.id.toString()):o.jsx(c("WAWebIntroPanel.react"),{animate:a,ref:f})}a.displayName=a.name+" [from "+f.id+"]";a=e;g["default"]=a}),98);
__d("WAWebDebugHotPink",[],(function(a,b,c,d,e,f){"use strict";var g="hotpink";b=["active-tab-marker","app-background","app-background-deeper","app-background-stripe","attach-media-drop-border","attach-media-drop-overlay","attachment-type-audio-color","attachment-type-photos-color","attachment-type-camera-color","attachment-type-documents-color","attachment-type-catalog-color","attachment-type-quick-replies-color","attachment-type-orders-color","attachment-type-contacts-color","attachment-type-polls-color","attachment-type-stickers-color","audio-control-incoming","audio-control-outgoing","audio-progress-incoming","audio-progress-outgoing","audio-progress-played-incoming","audio-progress-played-outgoing","audio-progress-metadata","audio-track-incoming","audio-track-outgoing","avatar-background","avatar-border","avatar-circle-gray-light","avatar-circle-gray","avatar-circle-gray-active","avatar-circle-gray-dark","avatar-circle-green-lighter","avatar-circle-green-light","avatar-circle-green","avatar-circle-green-dark","avatar-placeholder-background","avatar-placeholder-primary","archived-chat-marker","archived-chat-marker-border","archived-chat-marker-background","archived-chat-persistent-header-background","background-default","background-document-with-captions","background-default-active","background-default-hover","background-lighter","background-lighter-content","background-lighter-active","background-lighter-hover","background-lightest","background-lightest-content","background-lightest-active","background-lightest-hover","text-primary","text-secondary-emphasized","text-secondary","text-teal","text-success","text-critical","badge-icon","badge-pending","border-bubble","border-deeper","border-default","border-list","border-panel","border-strong","border-stronger","border-document-footer","bubble-meta","bubble-meta-icon","business-name-title","business-name-subtitle","butterbar-battery-background","butterbar-battery-icon","butterbar-battery-primary","butterbar-battery-secondary","butterbar-connection-background","butterbar-connection-primary","butterbar-connection-secondary","butterbar-connection-icon","butterbar-desktop-upsell-icon","butterbar-phone-icon-shape","butterbar-default-background","butterbar-fatal-background","butterbar-fatal-primary","butterbar-fatal-secondary","butterbar-fatal-icon","butterbar-icon","butterbar-icon-dismiss","butterbar-notice-background","butterbar-notice-circle","butterbar-notice-icon","butterbar-notice-smb-background","butterbar-notice-smb-circle","butterbar-notice-smb-icon","butterbar-notification-icon","butterbar-primary","butterbar-secondary","butterbar-update-background","butterbar-update-icon","butterbar-green-nux-primary","butterbar-green-nux-secondary","butterbar-green-nux-background","butterbar-green-nux-icon","butterbar-green-nux-icon-background","butterbar-green-nux-icon-dismiss","butterbar-blue-nux-primary","butterbar-blue-nux-secondary","butterbar-blue-nux-background","butterbar-blue-nux-icon","butterbar-blue-nux-icon-background","butterbar-blue-nux-icon-dismiss","butterbar-ad-action-info-primary","butterbar-ad-action-info-secondary","butterbar-ad-action-info-background","butterbar-ad-action-info-icon","butterbar-ad-action-info-icon-background","butterbar-ad-action-info-icon-dismiss","butterbar-ad-action-warning-primary","butterbar-ad-action-warning-secondary","butterbar-ad-action-warning-background","butterbar-ad-action-warning-icon","butterbar-ad-action-warning-icon-background","butterbar-ad-action-warning-icon-dismiss","butterbar-order-expansion-icon","butterbar-order-expansion-banner-background","butterbar-order-expansion-icon-background","button-alternative","button-alternative-background","button-background-disabled","button-bubble","button-plain-background","button-plain-background-hover","button-plain","button-plain-hover","button-plain-disabled-background","button-primary","button-primary-background","button-primary-background-hover","button-round-background","button-round-background-inverted","button-round-icon-inverted","button-disabled","button-secondary","button-secondary-border","button-secondary-background","button-secondary-background-hover","button-secondary-hover","button-secondary-disabled-background","button-primary-destructive-color","button-primary-destructive-background","button-primary-destructive-background-hover","button-primary-destructive-outline","button-primary-destructive-spinner-color","button-secondary-destructive-color","button-secondary-destructive-hover-color","button-secondary-destructive-outline","button-secondary-destructive-spinner-color","button-focus","button-focus-outline","button-approve","button-approve-background","button-approve-hover","button-approve-background-hover","button-approve-hover-strong","button-approve-background-hover-strong","button-reject","button-reject-background","button-reject-hover","button-reject-background-hover","button-reject-hover-strong","button-reject-background-hover-strong","cart-interstitial-background","cart-interstitial-icon","chat-info-drawer-thumb-background","chat-marker","chat-marker-border","chat-marker-background","chat-meta","chatlist-icon","checkbox-background","checkbox-mark","chevron-button-background","chip-button-background","chip-button-foreground","compose-input-background","compose-input-background-focused","compose-input-border","compose-input-border-focused","compose-panel-background","compose-panel-background-hover","compose-primary","conversation-panel-background","conversation-panel-border","cover-image-background","danger","disabled-round-button-background-color","document-meta","drawer-background","drawer-background-deep","drawer-gallery-background","drawer-gallery-background-active","drawer-gallery-background-hover","drawer-header-title","drawer-section-background","dropdown-background","dropdown-background-hover","empty-state-background","empty-state-icon","ephemeral-nux-background","ephemeral-nux-bubble","ephemeral-nux-timer","expressions-panel-active-icon-color","expressions-panel-active-icon-tab-background","expressions-panel-icon-tab-border","sender-superpower-title","filters-container-background","filters-item-color","filters-item-background","filters-item-background-hover","filters-item-active-color","filters-item-active-background","focus","focus-animation","focus-animation-deeper","focus-lighter","forwarded-indicator-text","highlight","icon","icon-ack","icon-disabled","icon-fixed","icon-lighter","icon-strong","icon-search-back","icon-secondary","icon-bright-accent","icon-bright-highlight","icon-pinned","round-icon-background","icon-header-illustration-main","icon-header-illustration-background","icon-primary","incoming-background","incoming-background-deeper","incoming-background-highlight","incoming-primary","input-border-active","input-border","input-hover-background","input-empty-value-placeholder","input-placeholder","input-button-more","input-floating-toolbar-background","input-floating-toolbar-icon","input-floating-toolbar-icon-active","input-floating-toolbar-icon-disabled","input-floating-toolbar-button-hover","input-floating-toolbar-button-active","intro-background","intro-border","intro-logo","intro-secondary","inverse","label-disabled-text","label-secondary-text","labels-icon","labels-plus-icon-color","labels-plus-icon-background","link","link-alt","link-preview","link-preview-light","link-preview-lighter","link-preview-shimmer-start","link-preview-shimmer-end","link-preview-placeholder-image","live-location-footer-background","live-location-glow","live-location-glow-stale","location-cluster-background","map-overlay-background","map-overlay-foreground","media-editor-control","media-editor-image-caption-input-background","media-editor-video-caption-input-background","media-editor-document-caption-input-background","media-editor-icon-color","media-editor-icon-secondary-color","media-editor-thumb-border","media-editor-thumb-border-active","media-gallery-thumb-background","media-gallery-thumb-icon","media-viewer-background","media-viewer-button-background","media-viewer-button-icon","media-inner-border","membership-approval-requests-banner-button-border","menu-bar-item-background-active","menu-context-transparent-icon","menu-context-transparent-icon-inverse","menu-tabs-list-active","message-background-deep","message-placeholder-icon","message-primary","message-selection-highlight","modal-backdrop","modal-backdrop-solid","modal-background","modal-title","beta-tag-background","notification-biz-background","notification-biz-text","notification-e2e-background","notification-e2e-icon","notification-e2e-text","notification-info-icon","notification-non-e2e-background","notification-non-e2e-text","notification-text","outgoing-background","outgoing-background-deeper","outgoing-background-highlight","overlay","panel-background","panel-background-active","panel-background-colored","panel-background-colored-deeper","panel-background-deep","panel-background-deeper","panel-background-hover","panel-background-lighter","panel-header-background","panel-header-icon","conversation-header-border","panel-input-background","panel-primary","payment-amount","payment-status-failed","payment-status-pending","payment-status-success","photopicker-overlay-background","picker-background","pin-indicator","pip-drag-bar","pip-player-background","pip-manager-content","popup-panel-background","primary-muted","primary","primary-strong","primary-stronger","primary-strongest","primary-title","product-image-button-background","product-thumb-background","product-thumb-background-deeper","product-thumb-overlay-background","product-thumb-overlay-text","product-placeholder-background","progress-background","progress-primary","poll-bar-container-receiver","poll-bar-fill-receiver","poll-bar-container-sender","poll-bar-fill-sender","poll-button-disabled-receiver","poll-button-disabled-sender","poll-checkmark-receiver","poll-checkmark-sender","poll-disabled-checked-checkbox-receiver","poll-disabled-checked-checkbox-sender","poll-disabled-send-button-background-color","poll-invalid-warning-background","poll-invalid-warning-border-receiver","poll-invalid-warning-border-sender","poll-invalid-warning-icon-color","poll-invalid-warning-icon-container-background","poll-modal-background-color","poll-modal-footer-background-color","poll-checkbox-default-border-color-sender","poll-selectable-options-icon-hint-color","ptt-blue","ptt-button-cancel","ptt-button-send","ptt-draft-button-cancel","ptt-draft-button-cancel-hover","ptt-draft-button-play-pause","ptt-draft-button-play-pause-hover","ptt-draft-button-play-pause-out-of-chat","ptt-draft-button-stop","ptt-draft-button-stop-hover","ptt-draft-button-send","ptt-draft-button-send-hover","ptt-draft-thumb","ptt-thumb-outgoing-unplayed","ptt-thumb-outgoing-played","ptt-thumb-incoming-unplayed","ptt-thumb-incoming-played","ptt-draft-waveform-background","ptt-draft-waveform-background-border","ptt-ooc-background","ptt-ooc-mic-border-color","ptt-ooc-mic-fill-color","ptt-ooc-avatar-background","ptt-waveform-preview-unplayed","ptt-waveform-incoming-unplayed","ptt-waveform-outgoing-unplayed","ptt-waveform-preview-played","ptt-waveform-incoming-played","ptt-waveform-outgoing-played","ptt-gray","ptt-gray-badge","ptt-green","ptt-message-blue","ptt-text","quick-action-button","quick-action-button-background","reaction-button","reaction-button-background","round-entry-point-background-color","quoted-message-text","rich-text-panel-background","search-container-background","search-input-background","search-input-container-background","search-input-container-background-active","secondary","secondary-light","secondary-lighter","secondary-stronger","security-icon-background","security-icon-lock","security-icon-shield","shadow","shadow-light","spinner-default","spinner-highlight","spinner-incoming","spinner-outgoing","startup-background","startup-icon","status-background","status-background-hover","status-primary","status-secondary","status-secondary-stronger","status-ring-read","status-ring-unread","status-thumbnail-background","status-link-preview-title","status-link-preview-secondary","sticker-button-background","success","suspicious-background","system-message-background","system-message-text","teal-hover","teal-pale","text-action","text-action-link","text-muted","thumb-border-active","thumb-border-viewer-active","toast-background","tooltip-text","tooltip-background","draft-label","unread-background","unread-bar-background","unread-timestamp","unread-marker-background","unread-marker-text","vcard-placeholder-background","vcard-placeholder-background-deeper","video-player-background","video-primary","voip-accept-background","voip-background","voip-background-deep","voip-video-background","voip-controls-background","voip-primary","voip-alternative","voip-reject-background","voip-disabled-background","wallpaper-background","wallpaper-thumb-border-active","wallpaper-thumb-border-hover","win32-title-primary","reactions-bubble-border","reactions-bubble-counter","reactions-details-background","reactions-tray-background","reactions-details-background-hover","reactions-tray-active-round-background","reactions-picker-bg","svg-gray-button","reactions-panel-background-color","reactions-panel-search-background-color","reactions-search-color","reactions-menu-tab-separator","text-primary-strong","text-secondary-lighter","text-medium-emphasis","icon-medium-emphasis","icon-high-emphasis","switch-button-color","switch-button-checked-color","switch-button-disabled-color","switch-track-color","switch-track-checked-color","switch-track-disabled-color","announcement-speaker-background","communities-green","qc-button-border","qc-button-border-active","qc-quantity-label-highlighted-background","drawer-loading-background","multi-skin-tone-picker-emoji-selected-background","chat-assignment-icon-me","chat-assignment-icon-others","pnh-nux","forward-caption-preview-background","forward-caption-preview-content","skeleton-gradient-background-sides","skeleton-gradient-background-middle","bot-typing-indicator-background-color","bot-suggestion-background-color","bot-command-pill-background-color","bot-command-text","icon-in-cell-frame-background","block-quote-text","inline-code-text","inline-code-background","desktop-upsell-call-btn","date-picker-background-color","date-picker-today-background-color","date-picker-header-background-color","date-picker-text-color","date-picker-today-text-color","date-picker-nav-text-color","date-picker-neighboring-month","carousel-button-background-color","carousel-button-border-color","carousel-button-shadow-color","carousel-button-chevron-color","carousel-button-background-color-active","carousel-button-background-color-hover","carousel-button-shadow-color-hover","navbar-background","navbar-separator","navbar-border","pill-background","pill-text","comments-modal-background","text-disabled"];c=["active-tab-marker","app-background","app-background-deeper","app-background-stripe","attach-media-drop-border","attach-media-drop-overlay","attachment-type-audio-color","attachment-type-photos-color","attachment-type-camera-color","attachment-type-documents-color","attachment-type-catalog-color","attachment-type-quick-replies-color","attachment-type-orders-color","attachment-type-contacts-color","attachment-type-polls-color","attachment-type-stickers-color","audio-control-incoming","audio-control-outgoing","audio-progress-incoming","audio-progress-outgoing","audio-progress-played-incoming","audio-progress-played-outgoing","audio-progress-metadata","audio-track-incoming","audio-track-outgoing","avatar-background","avatar-border","avatar-circle-gray-light","avatar-circle-gray","avatar-circle-gray-active","avatar-circle-gray-dark","avatar-circle-green-lighter","avatar-circle-green-light","avatar-circle-green","avatar-circle-green-dark","avatar-placeholder-background","avatar-placeholder-primary","archived-chat-marker","archived-chat-marker-border","archived-chat-marker-background","archived-chat-persistent-header-background","background-default","background-document-with-captions","background-default-active","background-default-hover","background-lighter","background-lighter-content","background-lighter-active","background-lighter-hover","background-lightest","background-lightest-content","background-lightest-active","background-lightest-hover","text-primary","text-secondary-emphasized","text-secondary","text-teal","text-success","text-critical","badge-border","badge-pending","beta-tag-background","border-bubble","border-deeper","border-default","border-list","border-panel","border-strong","border-stronger","border-document-footer","bubble-meta","bubble-meta-icon","business-name-title","business-name-subtitle","butterbar-default-background","butterbar-icon","butterbar-icon-dismiss","butterbar-primary","butterbar-secondary","butterbar-battery-background","butterbar-battery-icon","butterbar-battery-primary","butterbar-battery-secondary","butterbar-connection-background","butterbar-connection-primary","butterbar-connection-secondary","butterbar-connection-icon","butterbar-desktop-upsell-icon","butterbar-phone-icon-shape","butterbar-fatal-background","butterbar-fatal-primary","butterbar-fatal-secondary","butterbar-fatal-icon","butterbar-notice-background","butterbar-notice-circle","butterbar-notice-icon","butterbar-notice-smb-background","butterbar-notice-smb-circle","butterbar-notice-smb-icon","butterbar-notification-icon","butterbar-update-background","butterbar-update-icon","butterbar-green-nux-primary","butterbar-green-nux-secondary","butterbar-green-nux-background","butterbar-green-nux-icon","butterbar-green-nux-icon-background","butterbar-green-nux-icon-dismiss","butterbar-blue-nux-primary","butterbar-blue-nux-secondary","butterbar-blue-nux-background","butterbar-blue-nux-icon","butterbar-blue-nux-icon-background","butterbar-blue-nux-icon-dismiss","butterbar-ad-action-info-primary","butterbar-ad-action-info-secondary","butterbar-ad-action-info-background","butterbar-ad-action-info-icon","butterbar-ad-action-info-icon-background","butterbar-ad-action-info-icon-dismiss","butterbar-ad-action-warning-primary","butterbar-ad-action-warning-secondary","butterbar-ad-action-warning-background","butterbar-ad-action-warning-icon","butterbar-ad-action-warning-icon-background","butterbar-ad-action-warning-icon-dismiss","butterbar-order-expansion-banner-background","button-alternative","button-alternative-background","button-background-disabled","button-bubble","button-plain-background","button-plain-background-hover","button-plain","button-plain-hover","button-plain-disabled-background","button-primary","button-primary-background","button-primary-background-hover","button-round-background","button-round-background-inverted","button-round-icon-inverted","button-disabled","button-secondary","button-secondary-border","button-secondary-background","button-secondary-background-hover","button-secondary-hover","button-secondary-disabled-background","button-focus","button-focus-outline","button-primary-destructive-color","button-primary-destructive-background","button-primary-destructive-background-hover","button-primary-destructive-outline","button-primary-destructive-spinner-color","button-secondary-destructive-color","button-secondary-destructive-hover-color","button-secondary-destructive-outline","button-secondary-destructive-spinner-color","button-approve","button-approve-background","button-approve-hover","button-approve-background-hover","button-approve-hover-strong","button-approve-background-hover-strong","button-reject","button-reject-background","button-reject-hover","button-reject-background-hover","button-reject-hover-strong","button-reject-background-hover-strong","cart-interstitial-background","cart-interstitial-icon","chat-info-drawer-thumb-background","chat-marker","chat-marker-border","chat-marker-background","chat-meta","chatlist-icon","checkbox-background","checkbox-mark","chevron-button-background","chip-button-background","chip-button-foreground","compose-input-background","compose-input-background-focused","compose-input-border","compose-input-border-focused","compose-panel-background","compose-panel-background-hover","compose-primary","conversation-panel-background","conversation-panel-border","cover-image-background","danger","disabled-round-button-background-color","document-meta","drawer-background","drawer-background-deep","drawer-gallery-background","drawer-gallery-background-active","drawer-gallery-background-hover","drawer-header-title","drawer-section-background","dropdown-background","dropdown-background-hover","empty-state-background","empty-state-icon","ephemeral-nux-background","ephemeral-nux-bubble","ephemeral-nux-timer","expressions-panel-active-icon-color","expressions-panel-active-icon-tab-background","expressions-panel-icon-tab-border","sender-superpower-title","filters-container-background","filters-item-color","filters-item-background","filters-item-background-hover","filters-item-active-color","filters-item-active-background","focus","focus-animation","focus-animation-deeper","focus-lighter","forwarded-indicator-text","highlight","icon","icon-ack","icon-disabled","icon-fixed","icon-lighter","icon-search-back","icon-strong","icon-bright-accent","icon-bright-highlight","icon-pinned","round-icon-background","incoming-background","incoming-background-deeper","incoming-background-highlight","incoming-primary","input-border-active","input-border","input-hover-background","input-empty-value-placeholder","input-placeholder","input-button-more","input-floating-toolbar-background","input-floating-toolbar-icon","input-floating-toolbar-icon-active","input-floating-toolbar-icon-disabled","input-floating-toolbar-button-hover","input-floating-toolbar-button-active","intro-background","intro-border","intro-logo","intro-secondary","inverse","label-secondary-text","labels-icon","labels-plus-icon-color","labels-plus-icon-background","label-disabled-text","link","link-alt","link-preview","link-preview-light","link-preview-lighter","link-preview-shimmer-start","link-preview-shimmer-end","link-preview-placeholder-image","live-location-footer-background","live-location-glow","live-location-glow-stale","location-cluster-background","map-overlay-background","map-overlay-foreground","media-editor-control","media-editor-image-caption-input-background","media-editor-video-caption-input-background","media-editor-document-caption-input-background","media-editor-icon-color","media-editor-icon-secondary-color","media-editor-thumb-border","media-editor-thumb-border-active","media-gallery-thumb-background","media-gallery-thumb-icon","media-inner-border","membership-approval-requests-banner-button-border","media-viewer-background","media-viewer-button-background","media-viewer-button-icon","menu-bar-item-background-active","menu-context-transparent-icon","menu-context-transparent-icon-inverse","menu-tabs-list-active","message-background-deep","message-placeholder-icon","message-primary","message-selection-highlight","modal-backdrop","modal-backdrop-solid","modal-background","modal-title","notification-biz-background","notification-biz-text","notification-e2e-background","notification-e2e-icon","notification-e2e-text","notification-info-icon","notification-non-e2e-background","notification-non-e2e-text","notification-text","outgoing-background","outgoing-background-deeper","outgoing-background-highlight","overlay","panel-background","panel-background-active","panel-background-colored","panel-background-colored-deeper","panel-background-deep","panel-background-deeper","panel-background-hover","panel-background-lighter","panel-header-background","panel-header-icon","conversation-header-border","panel-input-background","panel-primary","payment-amount","payment-status-failed","payment-status-pending","payment-status-success","photopicker-overlay-background","picker-background","pin-indicator","pip-drag-bar","pip-manager-content","popup-panel-background","primary-muted","primary","primary-strong","primary-stronger","primary-strongest","primary-title","product-image-button-background","product-placeholder-background","product-thumb-background","product-thumb-background-deeper","product-thumb-overlay-background","product-thumb-overlay-text","progress-background","progress-primary","poll-bar-container-receiver","poll-bar-fill-receiver","poll-bar-container-sender","poll-bar-fill-sender","poll-button-disabled-receiver","poll-button-disabled-sender","poll-checkmark-receiver","poll-checkmark-sender","poll-disabled-checked-checkbox-receiver","poll-disabled-checked-checkbox-sender","poll-invalid-warning-background","poll-invalid-warning-border-receiver","poll-invalid-warning-border-sender","poll-invalid-warning-icon-color","poll-invalid-warning-icon-container-background","poll-modal-background-color","poll-modal-footer-background-color","poll-checkbox-default-border-color-sender","poll-selectable-options-icon-hint-color","ptt-blue","ptt-button-cancel","ptt-button-send","ptt-draft-button-cancel","ptt-draft-button-cancel-hover","ptt-draft-button-play-pause","ptt-draft-button-play-pause-hover","ptt-draft-button-play-pause-out-of-chat","ptt-draft-button-stop","ptt-draft-button-stop-hover","ptt-draft-button-send","ptt-draft-button-send-hover","ptt-draft-thumb","ptt-thumb-outgoing-unplayed","ptt-thumb-outgoing-played","ptt-thumb-incoming-unplayed","ptt-thumb-incoming-played","ptt-draft-waveform-background","ptt-draft-waveform-background-border","ptt-ooc-background","ptt-ooc-mic-border-color","ptt-ooc-mic-fill-color","ptt-ooc-avatar-background","ptt-waveform-preview-unplayed","ptt-waveform-incoming-unplayed","ptt-waveform-outgoing-unplayed","ptt-waveform-preview-played","ptt-waveform-incoming-played","ptt-waveform-outgoing-played","ptt-gray","ptt-gray-badge","ptt-green","ptt-message-blue","ptt-text","quick-action-button","quick-action-button-background","reaction-button","reaction-button-background","round-entry-point-background-color","quoted-message-text","rich-text-panel-background","search-container-background","search-input-background","search-input-container-background","search-input-container-background-active","secondary","secondary-light","secondary-lighter","secondary-stronger","security-icon-background","security-icon-lock","security-icon-shield","shadow","shadow-light","spinner-default","spinner-highlight","spinner-incoming","spinner-outgoing","startup-background","startup-icon","status-background","status-background-hover","status-primary","status-secondary","status-secondary-stronger","status-ring-read","status-ring-unread","status-thumbnail-background","status-link-preview-title","status-link-preview-secondary","sticker-button-background","success","suspicious-background","system-message-background","system-message-text","teal-hover","teal-pale","text-action","text-action-link","text-muted","thumb-border-active","thumb-border-viewer-active","toast-background","tooltip-text","tooltip-background","typing","draft-label","unread-background","unread-bar-background","unread-timestamp","unread-marker-background","unread-marker-text","vcard-placeholder-background","vcard-placeholder-background-deeper","video-player-background","pip-player-background","video-primary","voip-accept-background","voip-background","voip-background-deep","voip-video-background","voip-controls-background","voip-primary","voip-alternative","voip-reject-background","voip-disabled-background","wallpaper-background","wallpaper-thumb-border-active","wallpaper-thumb-border-hover","win32-title-primary","reactions-bubble-border","reactions-bubble-counter","reactions-details-background","reactions-tray-background","reactions-details-background-hover","reactions-tray-active-round-background","reactions-picker-bg","svg-gray-button","reactions-panel-background-color","reactions-panel-search-background-color","reactions-search-color","reactions-menu-tab-separator","text-primary-strong","text-secondary-lighter","text-medium-emphasis","icon-medium-emphasis","icon-high-emphasis","switch-button-color","switch-button-checked-color","switch-button-disabled-color","switch-track-color","switch-track-checked-color","switch-track-disabled-color","announcement-speaker-background","communities-green","qc-button-border","qc-button-border-active","qc-quantity-label-highlighted-background","drawer-loading-background","multi-skin-tone-picker-emoji-selected-background","chat-assignment-icon-me","chat-assignment-icon-others","pnh-nux","forward-caption-preview-background","forward-caption-preview-content","skeleton-gradient-background-sides","skeleton-gradient-background-middle","bot-typing-indicator-background-color","bot-suggestion-background-color","bot-command-pill-background-color","bot-command-text","icon-in-cell-frame-background","block-quote-text","inline-code-text","inline-code-background","desktop-upsell-call-btn","date-picker-background-color","date-picker-today-background-color","date-picker-header-background-color","date-picker-text-color","date-picker-today-text-color","date-picker-nav-text-color","date-picker-neighboring-month","carousel-button-background-color","carousel-button-border-color","carousel-button-shadow-color","carousel-button-chevron-color","carousel-button-background-color-active","carousel-button-background-color-hover","carousel-button-shadow-color-hover","navbar-background","navbar-separator","navbar-border","pill-background","pill-text","comments-modal-background","text-disabled"];d=[].concat(b,c,["beige","black","blue-light","blue-ocean","blue-sky","blue-sky-light","blue","dark","green-deep","green","green-accent","orange","pale-blue-green","pale-green","pale-yellow","red-light","red","teal-light","teal-lighter","teal","white","yellow","gray-30","gray-60","gray-70","gray-100","gray-150","gray-200","gray-300","gray-400","gray-500","gray-600","gray-700","gray-800","gray-850","gray-900","wds-pink-50","wds-pink-75","wds-pink-100","wds-pink-200","wds-pink-300","wds-pink-400","wds-pink-500","wds-pink-600","wds-pink-700","wds-pink-800","wds-red-50","wds-red-75","wds-red-100","wds-red-200","wds-red-300","wds-red-400","wds-red-500","wds-red-600","wds-red-700","wds-red-800","wds-orange-50","wds-orange-75","wds-orange-100","wds-orange-200","wds-orange-300","wds-orange-400","wds-orange-500","wds-orange-600","wds-orange-700","wds-orange-800","wds-yellow-50","wds-yellow-75","wds-yellow-100","wds-yellow-200","wds-yellow-300","wds-yellow-400","wds-yellow-500","wds-yellow-600","wds-yellow-700","wds-yellow-800","wds-green-50","wds-green-75","wds-green-100","wds-green-200","wds-green-300","wds-green-400","wds-green-500","wds-green-600","wds-green-700","wds-green-800","wds-emerald-50","wds-emerald-75","wds-emerald-100","wds-emerald-200","wds-emerald-300","wds-emerald-400","wds-emerald-500","wds-emerald-600","wds-emerald-700","wds-emerald-800","wds-teal-50","wds-teal-75","wds-teal-100","wds-teal-200","wds-teal-300","wds-teal-400","wds-teal-500","wds-teal-600","wds-teal-700","wds-teal-800","wds-sky-blue-50","wds-sky-blue-75","wds-sky-blue-100","wds-sky-blue-200","wds-sky-blue-300","wds-sky-blue-400","wds-sky-blue-500","wds-sky-blue-600","wds-sky-blue-700","wds-sky-blue-800","wds-cobalt-50","wds-cobalt-75","wds-cobalt-100","wds-cobalt-200","wds-cobalt-300","wds-cobalt-400","wds-cobalt-500","wds-cobalt-600","wds-cobalt-700","wds-cobalt-800","wds-purple-50","wds-purple-75","wds-purple-100","wds-purple-200","wds-purple-300","wds-purple-400","wds-purple-500","wds-purple-600","wds-purple-700","wds-purple-800","wds-cool-gray-50","wds-cool-gray-75","wds-cool-gray-100","wds-cool-gray-200","wds-cool-gray-300","wds-cool-gray-400","wds-cool-gray-500","wds-cool-gray-600","wds-cool-gray-700","wds-cool-gray-800","wds-cool-gray-900","wds-cool-gray-1000","wds-white-alpha-05","wds-white-alpha-10","wds-white-alpha-20","wds-white-alpha-30","wds-white-alpha-40","wds-white-alpha-50","wds-white-alpha-60","wds-white-alpha-70","wds-white-alpha-80","wds-white-alpha-90","wds-cool-gray-alpha-05","wds-cool-gray-alpha-10","wds-cool-gray-alpha-20","wds-cool-gray-alpha-30","wds-cool-gray-alpha-40","wds-cool-gray-alpha-50","wds-cool-gray-alpha-60","wds-cool-gray-alpha-70","wds-cool-gray-alpha-80","wds-cool-gray-alpha-90","wds-cool-gray-200-alpha-60","wds-cool-gray-600-alpha-50","wds-cool-gray-600-alpha-85","wds-transparent","wds-black","wds-white"]);var h=Array.from(new Set(d));function i(a){var b=document.createElement("style");b.textContent=a;(a=document.head)==null?void 0:a.prepend(b)}function a(){var a="\n    .hotpink, .hotpink.dark, .hotpink.light{\n      "+h.map(function(a){return"--"+a+": "+g+";"}).join("\n")+"\n    }\n  ";i(a)}f.enableHotPink=a}),66);
__d("WAWebUserPrefsDeviceCapabilities",["WAProtobufsDeviceCapabilities.pb","WAWebUserPrefsKeys","WAWebUserPrefsStore"],(function(a,b,c,d,e,f,g){var h={chatLockSupportLevel:d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.NONE};function i(a){a={chatLockSupportLevel:a.chatLockSupportLevel!=null?a.chatLockSupportLevel:h.chatLockSupportLevel};return a}function j(a){a=(a=typeof a==="object"&&a!=null&&typeof a.chatLockSupportLevel==="number"?d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.cast(a.chatLockSupportLevel):null)!=null?a:h.chatLockSupportLevel;return{chatLockSupportLevel:a}}function k(a){a=i(a);c("WAWebUserPrefsStore").setUser(d("WAWebUserPrefsKeys").UserPrefs.DeviceCapabilities,a,{shouldWriteToIdb:!1})}function l(){var a=c("WAWebUserPrefsStore").getUser(d("WAWebUserPrefsKeys").UserPrefs.DeviceCapabilities);return j(a)}function a(a){var b=l();b=babelHelpers["extends"]({},b,a);k(b);return b}g.mergeDeviceCapabilitiesToStorage=a}),98);
__d("WAWebDeviceCapabilitiesBootstrap",["WAProtobufsDeviceCapabilities.pb","WAWebChatLockGatingUtils","WAWebDeviceCapabilitiesSync","WAWebUserPrefsDeviceCapabilities","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=!1;function a(){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(h)return;h=!0;var a={chatLockSupportLevel:d("WAWebChatLockGatingUtils").chatLockEnabled()?d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.FULL:d("WAProtobufsDeviceCapabilities.pb").DeviceCapabilities$ChatLockSupportLevel.NONE};a=d("WAWebUserPrefsDeviceCapabilities").mergeDeviceCapabilitiesToStorage(a);return c("WAWebDeviceCapabilitiesSync").sendMutation(a)});return i.apply(this,arguments)}g.bootstrapDeviceCapabilities=a}),98);
__d("WAWebKeyboardRotateFocus.react",["WAWebFocusIndicator","WAWebFocusTracer","WAWebKeyboardConstants","WAWebKeyboardTabUtils","WAWebUseIsKeyboardUser","react","useMergeRefs"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useRef;b=j.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.focusType,f=k(null);b=c("useMergeRefs")(b,f);var g=c("WAWebUseIsKeyboardUser")(),h=g.setIsKeyboardUser;g=function(a){if(a.metaKey||a.ctrlKey)return;var b=f.current,g;a.key===d("WAWebKeyboardConstants").KEYBOARD_EVENT_KEY_VALUE.TAB?(a.stopPropagation(),a.preventDefault(),h(!0),c("WAWebFocusIndicator").shouldIndicateFocus(),b!=null&&(g=d("WAWebKeyboardTabUtils").getNextTabbableElement(b,a.shiftKey?d("WAWebKeyboardTabUtils").TabDirection.BACKWARD:d("WAWebKeyboardTabUtils").TabDirection.FORWARD,e))):b!=null&&b===document.activeElement&&(g=d("WAWebKeyboardTabUtils").getNextTabbableElement(b,d("WAWebKeyboardTabUtils").TabDirection.FORWARD,e,function(a){return a.nodeName.toLowerCase()==="input"}));if(g==null)return;c("WAWebFocusIndicator").shouldIndicateFocus();l(g)};return j.jsx("div",{ref:b,style:a.style,className:"x10l6tqk x13vifvy xds687c x1ey2m1c x17qophe",onKeyDown:g,tabIndex:"-1",children:a.children})}a.displayName=a.name+" [from "+f.id+"]";e=b;function l(a){a.restoreFocus?a.restoreFocus():c("WAWebFocusTracer").focus(a)}g.RotateFocus=e}),98);
__d("WAWebDrawerManager.react",["WATypeUtils","WAUpperFirst","WAWebDrawerContext","WAWebDrawerManager","WAWebErrorBoundary.react","WAWebFocusTracer","WAWebKeyboardRotateFocus.react","WAWebKeyboardTabUtils","WAWebNonEmptyString","WAWebUimContext","WAWebUimUie.react","WAWebVelocityTransitionGroup","lodash","react","useWAWebListener","useWAWebUiIdle"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useRef,l=b.useState,m={container:{position:"x10l6tqk",top:"x13vifvy",end:"xds687c",left:null,right:null,bottom:"x1ey2m1c",start:"x17qophe",$$css:!0}},n={LEFT:"drawer-left",MID:"slide-up",NONE:"none",RIGHT:"slide-left"};e={LEFT:"left",MID:"mid",RIGHT:"right"};var o=function(a){return n[a.toUpperCase()]};function a(a){var b,e,f=a.direction,g=a.onDrawerIn,h=a.onDrawerOut,i=a.onDrawerAnimationComplete,p=c("useWAWebUiIdle")(),q=k(null),r=k(null),s=k(!1),t=l(void 0),u=t[0],v=t[1];t=l(null);var w=t[0],x=t[1];t=l(function(){return o(a.direction)});var y=t[0],z=t[1];t=l(void 0);var A=t[0],B=t[1];t=l(void 0);var C=t[0],D=t[1];t=l(void 0);var E=t[0],F=t[1];t=l(d("WAWebDrawerContext").undefinedDrawerContext);var G=t[0],H=t[1];t=l(d("WAWebKeyboardTabUtils").FocusType.CUSTOM);var I=t[0],J=t[1];t=function(a){H(a)};var K=function(a,b){b=b===void 0?{}:b;var e=b.transition,h=e===void 0?o(f):e;e=b.uim;var i=b.noFocus,j=b.onEnterAnimationComplete,k=b.newDrawerContext;k=k===void 0?d("WAWebDrawerContext").undefinedDrawerContext:k;b=b.focusType;var l=d("WAWebNonEmptyString").asMaybeNonEmptyString(c("lodash").uniqueId("DrawerManager"+f));if(!s.current&&u){if(u.key!=null&&c("lodash").isEqual(u.key,a.key))return;r.current=n.NONE;v(a);x(l);z(h);B(e);D(i);F(j);H(k);J(b);p(function(){r.current=h})}else g&&g(),v(a),x(l),z(h),B(e),D(i),F(j),H(k),J(b)},L=function(a){a(s.current===!0?!1:!!u)},M=function(a){if(a!=null&&w!==a)return;if(!u)return;h&&h();s.current=!0;v(void 0);H(d("WAWebDrawerContext").undefinedDrawerContext);p(function(){s.current=!1});d("WAWebDrawerManager").DrawerManager.trigger("drawer_"+f+"_closed")},N=function(){if(!q.current)return;var a=q.current.getElement();if(!a||a.contains(document.activeElement))return;c("WAWebFocusTracer").focus(a)},O=function(a){var b=i;b&&b();if(E===void 0&&C===void 0)return;u&&a===w&&d("WATypeUtils").isFunction(E)&&E()};(b=d("useWAWebListener")).useListener((e=d("WAWebDrawerManager")).DrawerManager,"open_drawer_"+f,K);b.useListener(e.DrawerManager,"exists_drawer_"+f,L);b.useListener(e.DrawerManager,"close_drawer_"+f,M);b.useListener(e.DrawerManager,"update_context_"+f,t);var P=a.animationDisabled===!0?"none":r.current||y,Q;u&&(Q=j.jsx(d("WAWebUimUie.react").UIE,{displayName:"Drawer"+c("WAUpperFirst")(f),escapable:!0,ref:q,requestFocus:C?null:N,requestDismiss:M.bind(null,w),children:j.jsx(d("WAWebKeyboardRotateFocus.react").RotateFocus,{style:{height:"100%"},focusType:I,children:j.jsx(d("WAWebDrawerContext").DrawerContext.Provider,{value:G,children:j.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"drawer-manager-"+f,children:u})})})},w));return j.jsx(c("WAWebUimContext").Consumer,{children:function(a){return j.jsx(c("WAWebUimContext").Provider,{value:A||a,children:j.jsx(c("WAWebVelocityTransitionGroup"),{xstyle:m.container,transitionName:P,onAnimationComplete:function(){return O(w)},displayName:"DrawerManager",children:Q})})}})}a.displayName=a.name+" [from "+f.id+"]";g.Dir=e;g.DrawerManagerComponent=a}),98);
__d("WAWebHamburgerIcon",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="hamburger";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var h;if(g){var l=g.x;l=l===void 0?0:l;var m=g.y;m=m===void 0?0:m;var n=g.width;n=n===void 0?0:n;g=g.height;g=g===void 0?0:g;h=[l,m,n,g].join(" ")}l=24;m=24;(e!=null||f!=null)&&(l=e,m=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(n=h)!=null?n:"0 0 24 24",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M4 18C3.44772 18 3 17.5523 3 17C3 16.4477 3.44772 16 4 16H20C20.5523 16 21 16.4477 21 17C21 17.5523 20.5523 18 20 18H4ZM4 13C3.44772 13 3 12.5523 3 12C3 11.4477 3.44772 11 4 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H4ZM4 8C3.44772 8 3 7.55228 3 7C3 6.44772 3.44772 6 4 6H20C20.5523 6 21 6.44772 21 7C21 7.55228 20.5523 8 20 8H4Z",fill:"currentColor",fillOpacity:.7})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.HamburgerIcon=a}),98);
__d("WAWebExpandNavbarToggleNavBarItem.react",["fbt","WAWebHamburgerIcon","WAWebNavBarItem.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.isNavBarExpanded;a=a.onToggleNavBarExpansion;b=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:j.jsx(d("WAWebHamburgerIcon").HamburgerIcon,{}),title:h._("__JHASH__IhBr9UzMknz__JHASH__"),testid:void 0,isExpanded:b,isActive:!1,onClick:a});return b}a.displayName=a.name+" [from "+f.id+"]";g.ExpandNavbarToggleNavBarItem=a}),226);
__d("WAWebMetaBotNavBarItem.react",["fbt","WAWebBotFrontendUtils","WAWebBotGating","WAWebChatEntryPoint","WAWebFlex.react","WAWebImg.react","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebUISpacing","WAWebWamEnumWebcNavbarItemLabel","bx","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={iconWrapper:{width:"x17z2i9w",height:"x17rw0jw",$$css:!0}};function a(a){var b=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=function(){void d("WAWebBotFrontendUtils").openMetaBotChat(d("WAWebChatEntryPoint").ChatEntryPoint.BotChatListShortcut),e(d("WAWebNavBarTypes").NavBarItems.Chats),d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS)};var f=h._("__JHASH__SHQfr2Qd8JF__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:j.jsx(d("WAWebFlex.react").FlexColumn,{grow:1,align:"center",justify:"center",xstyle:k.iconWrapper,children:j.jsx(c("WAWebImg.react"),{src:c("bx").getURL(c("bx")("14943")),style:{width:20,height:20},draggable:!1})}),spacingXstyle:d("WAWebUISpacing").uiPadding.all9,text:f,title:f,testid:void 0,isExpanded:b,isActive:!1,onClick:a});return d("WAWebBotGating").isBotShortcutEntryPointEnabled()&&f}a.displayName=a.name+" [from "+f.id+"]";g.MetaBotNavBarItem=a}),226);
__d("WAWebNewslettersNavBarItem.react",["fbt","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebNewsletterOutlineIcon","WAWebNewsletterTabIcon","WAWebOpenNewsletterTab","WAWebUnreadActivityIndicator.react","WAWebUserPrefsNewsletter","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebEventTargetValue","useWAWebIsNewsletterUiEnabled"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,e=a.isNavBarExpanded,f=a.updateActiveNavBarItem;a=c("useWAWebIsNewsletterUiEnabled")();var g=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Newsletters)return;f(d("WAWebNavBarTypes").NavBarItems.Newsletters);d("WAWebOpenNewsletterTab").openNewsletterTab();d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.NEWSLETTERS)},i=b===d("WAWebNavBarTypes").NavBarItems.Newsletters?j.jsx(d("WAWebNewsletterTabIcon").NewsletterTabIcon,{directional:!0}):j.jsx(d("WAWebNewsletterOutlineIcon").NewsletterOutlineIcon,{directional:!0}),k=c("useWAWebEventTargetValue")(c("WAWebNewsletterCollection"),"add change remove newsletter_tab_close",function(){return c("WAWebNewsletterCollection").hasAnyUnreadSinceGivenTimestamp(d("WAWebUserPrefsNewsletter").getNewsletterTabLastSeenTimestamp())});k=k?j.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{}):null;var l=h._("__JHASH__fuYpEH3JPqz__JHASH__");i=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:i,text:l,inlineActivityIndicator:k,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:l,testid:void 0,isExpanded:e,isActive:b===d("WAWebNavBarTypes").NavBarItems.Newsletters,onClick:g});return a&&i}a.displayName=a.name+" [from "+f.id+"]";g.NewslettersNavBarItem=a}),226);
__d("WAWebProfileNavBarItem.react",["fbt","WAWebConnModel","WAWebContactCollection","WAWebDetailImage.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebTextStatusCollection","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWamEnumWebcNavbarItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useMemo;function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem,f=l(function(){return d("WAWebUserPrefsMeUser").assertGetMeUser()},[]);a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Profile)return;var a=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(f),c=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(f),g=d("WAWebContactCollection").ContactCollection.assertGet(f);e(d("WAWebNavBarTypes").NavBarItems.Profile);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:a,profilePicThumb:c,contact:g,conn:d("WAWebConnModel").Conn,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.PROFILE)};var g=l(function(){return k.jsx(d("WAWebDetailImage.react").DetailImage,{ariaLabel:h._("__JHASH__dhIyISolv4D__JHASH__"),testId:"navbar-item-profile-photo",theme:"chatlist_header_profile_photo",tabIndex:-1,id:f,size:28})},[f]);g=k.jsx(d("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:g,spacingXstyle:d("WAWebUISpacing").uiPadding.all6,text:d("WAWebConnModel").Conn.pushname,title:h._("__JHASH__fxoQBgk5NP0__JHASH__"),onClick:a,isActive:b===d("WAWebNavBarTypes").NavBarItems.Profile,isExpanded:c});return g}a.displayName=a.name+" [from "+f.id+"]";g.ProfileNavBarItem=a}),226);
__d("WAWebSettingsNavBarItem.react",["fbt","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebSettingsFlow.react","WAWebSettingsIcon","WAWebSettingsOutlineIcon","WAWebWamEnumWebcNavbarItemLabel","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Settings)return;e(d("WAWebNavBarTypes").NavBarItems.Settings);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebSettingsFlow.react").SettingsFlow,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS)};var f=b===d("WAWebNavBarTypes").NavBarItems.Settings?j.jsx(d("WAWebSettingsIcon").SettingsIcon,{}):j.jsx(d("WAWebSettingsOutlineIcon").SettingsOutlineIcon,{}),g=h._("__JHASH__GppBl6wcTbk__JHASH__");f=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{testid:void 0,icon:f,text:g,title:g,onClick:a,isActive:b===d("WAWebNavBarTypes").NavBarItems.Settings,isExpanded:c});return f}a.displayName=a.name+" [from "+f.id+"]";g.SettingsNavBarItem=a}),226);
__d("WAWebStatusNavBarItem.react",["fbt","WAWebNavBarItem.react","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebStatusIcon","WAWebStatusNavigateTo","WAWebStatusOutlineIcon","WAWebUnreadActivityIndicator.react","WAWebWamEnumWebcNavbarItemLabel","react","useWAWebStatusActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.activeNavBarItem,c=a.isNavBarExpanded,e=a.updateActiveNavBarItem;a=d("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator();var f=a.hasUnread,g=a.clearUnreadActivity;a=f?j.jsx(d("WAWebUnreadActivityIndicator.react").UnreadActivityIndicator,{}):null;f=function(){if(b===d("WAWebNavBarTypes").NavBarItems.Status)return;e(d("WAWebNavBarTypes").NavBarItems.Status);d("WAWebStatusNavigateTo").navigateToStatus({openTab:!0,clearUnreadActivity:g});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.STATUS)};var i=b===d("WAWebNavBarTypes").NavBarItems.Status?j.jsx(d("WAWebStatusIcon").StatusIcon,{}):j.jsx(d("WAWebStatusOutlineIcon").StatusOutlineIcon,{}),k=h._("__JHASH__52qipdNXs4c__JHASH__");i=j.jsx(d("WAWebNavBarItem.react").NavBarItem,{icon:i,text:k,inlineActivityIndicator:a,inlineActivityIndicatorType:d("WAWebNavBarItem.react").InlineActivityIndicatorType.Dot,title:k,testid:void 0,isExpanded:c,isActive:b===d("WAWebNavBarTypes").NavBarItems.Status,onClick:f});return i}a.displayName=a.name+" [from "+f.id+"]";g.StatusNavBarItem=a}),226);
__d("WAWebExpandableNavBar.react",["WAWebBetaNavBarItem.react","WAWebBizAdCreationNavBarItem.react","WAWebBizToolsNavBarItem.react","WAWebBotGating","WAWebChatsNavBarItem.react","WAWebCommunitiesNavBarItem.react","WAWebExpandNavbarToggleNavBarItem.react","WAWebFlex.react","WAWebMetaBotNavBarItem.react","WAWebMobilePlatforms","WAWebNewslettersNavBarItem.react","WAWebProfileNavBarItem.react","WAWebSettingsNavBarItem.react","WAWebStatusNavBarItem.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={header:{zIndex:"xa1v5g2",position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",width:"xbyj736",height:"x5yr21d",backgroundColor:"x1acz5yr",$$css:!0},expandedHeader:{width:"x1dj96wl",$$css:!0},fullWidth:{width:"xh8yej3",$$css:!0},fullHeight:{height:"x5yr21d",$$css:!0}};function l(){return j.jsx("hr",{className:"xh8yej3 xjm9jq1 x178xt8z x13fuv20 xxdxl9i xd10rxx x1sy0etr x17r0tee"})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.activeAccountInfo,e=a.activeNavBarItem,f=a.headerRef,g=a.isNavBarExpanded,h=a.onToggleNavBarExpansion;a=a.updateActiveNavBarItem;e={isNavBarExpanded:g,activeNavBarItem:e,updateActiveNavBarItem:a};a=d("WAWebBotGating").isBotShortcutEntryPointEnabled()&&j.jsxs(j.Fragment,{children:[j.jsx(l,{}),j.jsx(d("WAWebMetaBotNavBarItem.react").MetaBotNavBarItem,{isNavBarExpanded:g,updateActiveNavBarItem:a})]});b=d("WAWebMobilePlatforms").isSMB()&&j.jsxs(j.Fragment,{children:[j.jsx(l,{}),j.jsx(d("WAWebBizToolsNavBarItem.react").BizToolsNavBarItem,babelHelpers["extends"]({},e,{activeAccountInfo:b})),j.jsx(d("WAWebBizAdCreationNavBarItem.react").BizAdCreationNavBarItem,{isNavBarExpanded:g,activeAccountInfo:b})]});return j.jsx("header",{"data-testid":void 0,ref:f,className:(i||(i=c("stylex")))(k.header,d("WAWebUISpacing").uiPadding.horiz12,d("WAWebUISpacing").uiPadding.vert10,g&&k.expandedHeader),children:j.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:[k.fullWidth,k.fullHeight],children:[j.jsxs(d("WAWebFlex.react").FlexItem,{grow:1,xstyle:k.fullWidth,children:[j.jsx(d("WAWebExpandNavbarToggleNavBarItem.react").ExpandNavbarToggleNavBarItem,{isNavBarExpanded:g,onToggleNavBarExpansion:h}),j.jsx(d("WAWebChatsNavBarItem.react").ChatsNavBarItem,babelHelpers["extends"]({},e)),j.jsx(d("WAWebStatusNavBarItem.react").StatusNavBarItem,babelHelpers["extends"]({},e)),j.jsx(d("WAWebNewslettersNavBarItem.react").NewslettersNavBarItem,babelHelpers["extends"]({},e)),j.jsx(d("WAWebCommunitiesNavBarItem.react").CommunitiesNavBarItem,babelHelpers["extends"]({},e)),a,b]}),j.jsxs(d("WAWebFlex.react").FlexItem,{grow:0,xstyle:k.fullWidth,children:[j.jsx(d("WAWebBetaNavBarItem.react").BetaNavBarItem,babelHelpers["extends"]({},e)),j.jsx(d("WAWebSettingsNavBarItem.react").SettingsNavBarItem,babelHelpers["extends"]({},e)),j.jsx(d("WAWebProfileNavBarItem.react").ProfileNavBarItem,babelHelpers["extends"]({},e))]})]})})}a.displayName=a.name+" [from "+f.id+"]";g.ExpandableNavBar=a}),98);
__d("WAWebPipFloatingMsgVideoPlayer.react",["WAWebMediaOpaqueData","WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipMsgVideoPlayer.react","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=i.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=d("useWAWebModelValues").useModelValues(a.mediaData,["preview","aspectRatio"]),f=e.preview instanceof c("WAWebMediaOpaqueData")?"url("+e.preview.url()+")":void 0;return i.jsx(d("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:b,aspectRatio:e.aspectRatio,previewUrl:f,animationStartStyle:a.animationStartStyle,bottomContent:a.bottomContent,topContent:a.topContent,enableDragBar:a.enableDragBar,children:i.jsx(d("WAWebPipMsgVideoPlayer.react").WrappedMsgVideoPlayer,{msg:a.msg,mediaData:e,startTime:a.startTime,onClose:a.onClose,onError:a.onError,onOpenMediaViewer:a.onOpenMediaViewer,onMissingMedia:a.onMissingMedia,onUnsupportedMedia:a.onUnsupportedMedia,autoPlay:a.autoPlay,type:d("WAWebPipConst").PlayerType.FLOATER,disablePiPControls:a.disablePiPControls,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})})}a.displayName=a.name+" [from "+f.id+"]";e=b;g["default"]=e}),98);
__d("WAWebFloatingMsgVideoPlayerRenderer.react",["WAWebPipFloatingMsgVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=i.forwardRef(a);function a(a,b){var d=a.msg;a=babelHelpers.objectWithoutPropertiesLoose(a,["msg"]);return d==null?null:i.jsx(c("WAWebPipFloatingMsgVideoPlayer.react"),{ref:b,msg:d,mediaData:d.mediaData,animationStartStyle:a.animationStartStyle,startTime:a.startTime,onClose:a.onClose,onError:a.onError,onOpenMediaViewer:a.onClose,onMissingMedia:a.onClose,onUnsupportedMedia:a.onClose,autoPlay:a.autoPlay,enableDragBar:a.enableDragBar,topContent:a.topContent,bottomContent:a.bottomContent,disablePiPControls:a.enableDragBar,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})}a.displayName=a.name+" [from "+f.id+"]";d=b;g["default"]=d}),98);
__d("WAWebPipGetImageDimensionsByUrl",[],(function(a,b,c,d,e,f){function a(a){var b=document.createElement("img");b.src=a;return{width:b.naturalWidth,height:b.naturalHeight}}f["default"]=a}),66);
__d("WAWebPipFloatingOgVideoPlayer.react",["WAWebPipFloatingVideoPlayer.react","WAWebPipGetImageDimensionsByUrl","WAWebPipOgVideoPlayer.react","isNonZeroNumber","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState;function l(a){a=c("WAWebPipGetImageDimensionsByUrl")(a);var b=a.width;a=a.height;return d("isNonZeroNumber").isNonZeroNumber(b)&&d("isNonZeroNumber").isNonZeroNumber(a)?b/a:void 0}b=j.forwardRef(a);function a(a,b){var e=babelHelpers["extends"]({},a);a=k(function(){return l(e.ogVideoInfo.previewUrl)});var f=a[0],g=a[1];a=function(a){if(!a)return;(f==null||f===0||Math.abs(a-f)>.01)&&g(a)};return j.jsx(d("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:b,aspectRatio:f,previewUrl:e.ogVideoInfo.previewUrl,animationStartStyle:e.animationStartStyle,bottomContent:e.bottomContent,topContent:e.topContent,enableDragBar:e.enableDragBar,children:j.jsx(c("WAWebPipOgVideoPlayer.react"),{ogVideoInfo:e.ogVideoInfo,startTime:e.startTime,onClose:e.onClose,onError:e.onError,onAspectRatio:a,autoPlay:!0,disablePiPControls:e.disablePiPControls,onRefSet:e.onRefSet,onVideoMetadataChange:e.onVideoMetadataChange,onSetFullscreenToggleCallback:e.onSetFullscreenToggleCallback})})}a.displayName=a.name+" [from "+f.id+"]";e=b;g["default"]=e}),98);
__d("WAWebFloatingOgVideoPlayerRenderer.react",["WAWebPipFloatingOgVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=i.forwardRef(a);function a(a,b){var d=a.msg,e=a.videoSrc,f=a.previewUrl;a=babelHelpers.objectWithoutPropertiesLoose(a,["msg","videoSrc","previewUrl"]);return d==null||e==null||f==null?null:i.jsx(c("WAWebPipFloatingOgVideoPlayer.react"),{ref:b,ogVideoInfo:{videoMsg:d,videoUrl:e,previewUrl:f},startTime:a.startTime,onClose:a.onClose,onError:a.onError,animationStartStyle:a.animationStartStyle,autoPlay:a.autoPlay,enableDragBar:a.enableDragBar,topContent:a.topContent,bottomContent:a.bottomContent,disablePiPControls:a.enableDragBar,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback})}a.displayName=a.name+" [from "+f.id+"]";d=b;g["default"]=d}),98);
__d("WAWebWamEnumInlineVideoCtaClick",[],(function(a,b,c,d,e,f){a=Object.freeze({LOGO:1,MUSIC:2,AUTHOR:3,WATCH_MORE_END:4});f.INLINE_VIDEO_CTA_CLICK=a}),66);
__d("WAWebWamEnumInlineVideoType",[],(function(a,b,c,d,e,f){a=Object.freeze({FACEBOOK:1,FACEBOOK_WATCH:2,INSTAGRAM:3,YOUTUBE:4,STREAMABLE:5,NETFLIX:6,LASSO:7,SHARECHAT:8});f.INLINE_VIDEO_TYPE=a}),66);
__d("WAWebInlineVideoPlaybackClosedWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumInlineVideoCtaClick","WAWebWamEnumInlineVideoType","WAWebWamEnumMessageType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({InlineVideoPlaybackClosed:[2032,{inlineVideoCancelBeforePlayStateT:[7,a.TYPES.TIMER],inlineVideoComplete:[8,a.TYPES.BOOLEAN],inlineVideoCompletionRate:[9,a.TYPES.INTEGER],inlineVideoCtaClick:[10,d("WAWebWamEnumInlineVideoCtaClick").INLINE_VIDEO_CTA_CLICK],inlineVideoDurationT:[2,a.TYPES.TIMER],inlineVideoError:[11,a.TYPES.STRING],inlineVideoPlayStartT:[6,a.TYPES.TIMER],inlineVideoPlayed:[3,a.TYPES.BOOLEAN],inlineVideoStallT:[4,a.TYPES.TIMER],inlineVideoType:[1,d("WAWebWamEnumInlineVideoType").INLINE_VIDEO_TYPE],inlineVideoWatchT:[5,a.TYPES.TIMER],messageType:[12,d("WAWebWamEnumMessageType").MESSAGE_TYPE]},[1,1,1],"regular"]},{InlineVideoPlaybackClosed:[]});g.InlineVideoPlaybackClosedWamEvent=b}),98);
__d("WAWebInternDogfoodingModal.react",["WANullthrows","WATimeUtils","WAWebABProps","WAWebAnnouncementSpeakerIcon","WAWebConfirmPopup.react","WAWebEnvironment","WAWebExternalLink.react","WAWebLocalStorage","WAWebUISpacing","WAWebUserPrefsKeys","asyncToGeneratorRuntime","gkx","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j,k=j||c("react"),l=(h||(h=d("react"))).useState,m={title:{fontSize:"x1603h9y",fontWeight:"xjs9k72",lineHeight:"x1fc57z9",textAlign:"x2b8uid",$$css:!0},body:{width:"xh8yej3",height:"xpyat2d",fontSize:"x1f6kntn",lineHeight:"x1fc57z9",textAlign:"x1yc453h",$$css:!0},chatIcon:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0}};function a(){var a=l(!0),e=a[0],f=a[1];if(!e)return;if(!c("gkx")("26258")||!d("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_enabled")||c("WAWebEnvironment").isWindows)return;a=j();if(a!=null&&a>d("WATimeUtils").unixTime())return;e=d("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_content");var g=JSON.parse(e);if(g.title==null||g.web_link==null||g.ok_text==null||g.cancel_text==null)return;j=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){window.location.replace(g.web_link)});return function(){return a.apply(this,arguments)}}();a=function(){var a=d("WAWebABProps").getABPropConfigValue("web_intern_dogfooding_upsell_snooze_duration");h(d("WATimeUtils").unixTime()+a);f(!1)};e=k.jsx("div",{className:(i||(i=c("stylex")))(m.body,d("WAWebUISpacing").uiMargin.horiz16),children:k.jsxs("div",{children:["Help us with dogfooding by moving to the ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:g.web_link,className:"x117nqv4",children:"internal version"})," ","of the web client. Share your feedback/bugs on the ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:g.group_link,className:"x117nqv4",children:"WhatsApp Web/Electron Feedback"})," on Workplace."]})});return k.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:j,onOverlayClick:a,okText:g.ok_text,onCancel:a,cancelText:g.cancel_text,children:[k.jsx(d("WAWebAnnouncementSpeakerIcon").AnnouncementSpeakerIcon,{width:120,height:120,xstyle:m.chatIcon}),k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{className:i(m.title,d("WAWebUISpacing").uiPadding.all16),children:k.jsx("b",{children:g.title})}),e]})]});function h(a){c("WANullthrows")(c("WAWebLocalStorage")).setItem(d("WAWebUserPrefsKeys").KEYS.WA_WEB_ID_UPSELL_SNOOZE_UNTIL,String(a))}function j(){var a=c("WANullthrows")(c("WAWebLocalStorage")).getItem(d("WAWebUserPrefsKeys").KEYS.WA_WEB_ID_UPSELL_SNOOZE_UNTIL);return a==null?null:Number.parseInt(a,10)}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebKeyboardEventConstants",[],(function(a,b,c,d,e,f){a={Action:"keyboard_action",Event:"keyboard_event",Events:{LOGGED_IN:"logged_in",LOGGED_OUT:"logged_out",ARCHIVE:"archived",MUTE:"muted",PIN:"pinned",READ:"read",READ_ONLY:"read_only",CHAT_KIND:"chat_kind",ZOOM:"zoom",LAUNCH:"launch",AB_PROPS_UPDATE:"ab_props_update",BATCH_RENDER:"batch_render"}};f["default"]=a}),66);
__d("WAWebKeyboardManager",["WAWebKeyboardRun","WAWebKeyboardShortcuts"],(function(a,b,c,d,e,f,g){a=function(){function a(){document.addEventListener("keydown",function(a){a=d("WAWebKeyboardShortcuts").getAction(a);a&&c("WAWebKeyboardRun")(a)})}var b=a.prototype;b.trigger=function(a){};b.menuBatchRenderWith=function(a){};return a}();b=new a();g["default"]=b}),98);
__d("WAWebKeyboardTopLevelHotKeys.react",["WAWebFocusIndicator","WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebKeyboardTabUtils","react","useMergeRefs"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useEffect,l=b.useRef;e=j.forwardRef(a);function a(a,b){a=babelHelpers["extends"]({},a);var e=a.className,f=a.children,g=a.onBlur,h=a.skipNode,i=l(null);b=c("useMergeRefs")(b,i);k(function(){c("WAWebFocusTracer").focus(i.current)},[]);var m=function(a){if(!i.current)return;var b=d("WAWebKeyboardTabUtils").TabDirection.FORWARD;a&&(a.preventDefault(),b=a.shiftKey?d("WAWebKeyboardTabUtils").TabDirection.BACKWARD:d("WAWebKeyboardTabUtils").TabDirection.FORWARD,c("WAWebFocusIndicator").shouldIndicateFocus());a=d("WAWebKeyboardTabUtils").getNextTabbableElement(i.current,b,d("WAWebKeyboardTabUtils").FocusType.CUSTOM,function(a){return!h(a)});if(a==null)return;c("WAWebFocusIndicator").shouldIndicateFocus();a.restoreFocus?a.restoreFocus():c("WAWebFocusTracer").focus(a)};m={tab:m,"shift+tab":m,"shift+?":a.onShowKeyboardShortcuts};return j.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:m,className:e,onBlur:g,ref:b,children:f})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),98);
__d("WAWebLinkedAccountsJob",["WAPromiseRetryLoop","WASmaxBizLinkingGetLinkedAccountsRPC","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=3,i=250,j=1e3,k=function(){var a=h,c=function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var c=(yield d("WASmaxBizLinkingGetLinkedAccountsRPC").sendGetLinkedAccountsRPC({})),e=[];switch(c.name){case"GetLinkedAccountsResponseForbidden":b(null);return;case"GetLinkedAccountsResponseError":break;default:c.name;if(c.value.linkedAccountsFbPage){var f;e.push({type:"facebook",id:(f=c.value.linkedAccountsFbPage)==null?void 0:f.id,hasActiveLinkedAd:((f=c.value.linkedAccountsFbPage)==null?void 0:f.adStatusHasActiveCtwaAd)==="true",hasCreatedAd:((f=c.value.linkedAccountsFbPage)==null?void 0:f.adStatusHasCreatedAd)==="true"})}if(c.value.linkedAccountsWhatsappAdIdentity){e.push({type:"whatsapp",id:(f=c.value.linkedAccountsWhatsappAdIdentity)==null?void 0:f.id,hasActiveLinkedAd:((f=c.value.linkedAccountsWhatsappAdIdentity)==null?void 0:f.adStatusHasActiveCtwaAd)==="true",hasCreatedAd:((f=c.value.linkedAccountsWhatsappAdIdentity)==null?void 0:f.adStatusHasCreatedAd)==="true"})}b({accounts:e});return}--a===0&&b(null)});return function(a){return c.apply(this,arguments)}}();c=new(d("WAPromiseRetryLoop").PromiseRetryLoop)({name:"queryLinkedAccounts",timer:{algo:{type:"exponential",first:i},max:j},code:c});c.start();return c.promise()};a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield k());if(!a)return null;if(a.accounts.length===0)return"not-linked";var b=a.accounts.find(function(a){return a.type==="whatsapp"});a=a.accounts.find(function(a){return a.type==="facebook"});if(b)return{id:b.id,hasCreatedAd:b.hasCreatedAd,hasFacebookPage:a!=null,type:b.type};return a?{id:a.id,hasCreatedAd:a.hasCreatedAd,hasFacebookPage:!0,type:a.type}:"not-linked"});return function(){return a.apply(this,arguments)}}();g.queryActiveLinkedAccountInfo=a}),98);
__d("WAWebLinkedAccountsAction",["WAWebLinkedAccountsJob"],(function(a,b,c,d,e,f,g){function a(){return d("WAWebLinkedAccountsJob").queryActiveLinkedAccountInfo()}g.getActiveLinkedAccountInfo=a}),98);
__d("WAWebNavBar.react",["fbt","WAWebAdCreationMenuBarItem.react","WAWebArchivedFlow.react","WAWebBizGatingUtils","WAWebBizToolsFlowLoadable","WAWebBotGating","WAWebBusinessProfileCollection","WAWebBusinessToolsIcon","WAWebBusinessToolsOutlineIcon","WAWebChatLockCodeModal.react","WAWebChatLockGatingUtils","WAWebChatUnreadCount.react","WAWebChatlockFilledIcon","WAWebChatlockOutlineIcon","WAWebChatlockUnlockedOutlineIcon","WAWebChatsFilledIcon","WAWebChatsOutlineIcon","WAWebCommunityDailyUtils","WAWebCommunityFlowLoadable","WAWebCommunityTabMenuBarItem.react","WAWebConnModel","WAWebContactCollection","WAWebDetailImage.react","WAWebDrawerManager","WAWebFlex.react","WAWebKeyboardTabUtils","WAWebLockedChatsDrawer.react","WAWebMenuBar.react","WAWebMetaBotMenuBarItem.react","WAWebMobilePlatforms","WAWebNavBarLogEvents","WAWebNavBarTypes","WAWebNavBarUtils","WAWebNewsletterTabMenuBarItem.react","WAWebOpenNewsletterTab","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebSettingsGetters","WAWebSettingsIcon","WAWebSettingsOutlineIcon","WAWebStatusNavigateTo","WAWebTabOrder","WAWebTag.react","WAWebTextStatusCollection","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebWamEnumActionEntryPoint","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","WAWebWamEnumWebcNavbarItemLabel","asyncToGeneratorRuntime","fbs","react","stylex","useForceUpdate","useWAWebArchivedChatsActivityIndicator","useWAWebChatLockEvents","useWAWebChatsActivityIndicator","useWAWebExternalBetaOptIn","useWAWebIsNewsletterUiEnabled","useWAWebListener","useWAWebServerGatedAdEntryPoint","useWAWebSettingsValues","useWAWebStatusActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=i||(i=c("react")),m=e.useEffect,n=e.useMemo,o=e.useState,p={header:{zIndex:"xa1v5g2",position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"xbyj736",height:"x5yr21d",backgroundColor:"x1acz5yr",borderEndWidth:"xm81vs4",borderEndStyle:"xu3j5b3",borderEndColor:"x1a0jr7w",$$css:!0},menuItems:{flexDirection:"xdt5ytf",alignItems:"x1cy8zhl",height:"x5yr21d",$$css:!0},menuItemSize24:{width:"xvy4d1p",height:"xxk0z11",$$css:!0},menuSectionSeparator:{width:"xvy4d1p",height:"xjm9jq1",borderTopWidth:"xamhcws",borderTopStyle:"x13fuv20",borderTopColor:"xxdxl9i",borderEndStyle:"xd10rxx",borderBottomStyle:"x1sy0etr",borderStartStyle:"x17r0tee",$$css:!0},betaMenuItem:{fontSize:"x1pg5gke",fontWeight:"x117nqv4",$$css:!0},commerceIconContainer:{zoom:"x1kyludp",$$css:!0}};function a(a){var e=a.headerRef,f=a.activeAccountInfo,g=a.activeNavBarItem,i=a.updateActiveNavBarItem;a=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);var k=a[0];a=c("useForceUpdate")();var q=n(d("WAWebUserPrefsMeUser").assertGetMeUser,[]),r=o(!1),s=r[0],t=r[1];r=d("useWAWebChatLockEvents").useChatLockEvents();m(function(){d("WAWebMobilePlatforms").isSMB()&&d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(q).then(function(){t(!0)})},[q]);var u=n(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(q)},[q]);d("useWAWebListener").useListener(u,"change:profileOptions",a);a=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_ad_creation_home_screen_icon",f);var v=a[0];a=a[1];var w=null,x=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn();x=x[0];if(x){x=function(a){a.preventDefault();if(g===d("WAWebNavBarTypes").NavBarItems.Beta)return;i(d("WAWebNavBarTypes").NavBarItems.Beta);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:d("WAWebSettingsConst").SettingsSteps.Help}),{transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS_HELP)};var y=h._("__JHASH__qGmtwD0AtR2__JHASH__");y=g===d("WAWebNavBarTypes").NavBarItems.Beta?y:l.jsx(d("WAWebTag.react").Tag,{theme:d("WAWebTag.react").TagTheme.Secondary,children:y});w=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[p.menuItemSize24,p.betaMenuItem],children:y}),vertical:!0,onClick:x,title:c("fbs")._("__JHASH__qGmtwD0AtR2__JHASH__"),selected:g===d("WAWebNavBarTypes").NavBarItems.Beta,showHoverTooltip:!0})}y=f!=null&&!v&&d("WAWebBizGatingUtils").shouldShowAdCreationIcon()?l.jsx(c("WAWebAdCreationMenuBarItem.react"),{activeAccountInfo:f,iconStyle:(j||(j=c("stylex")))(p.commerceIconContainer,d("WAWebUISpacing").uiMargin.top10),vertical:!0,ctaText:a==null?void 0:a.content}):null;x=function(){if(g===d("WAWebNavBarTypes").NavBarItems.BizTools)return;i(d("WAWebNavBarTypes").NavBarItems.BizTools);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:f,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_BUSINESS_TOOLS_TAB}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.BUSINESS_TOOLS)};v=s&&!d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(u);a=v&&d("WAWebBizGatingUtils").isBizToolsDrawerEnabled()&&l.jsx("div",{className:"x1kyludp",children:l.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,testid:void 0,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:g===d("WAWebNavBarTypes").NavBarItems.BizTools?l.jsx(d("WAWebBusinessToolsIcon").BusinessToolsIcon,{directional:!0,width:26,height:26}):l.jsx(d("WAWebBusinessToolsOutlineIcon").BusinessToolsOutlineIcon,{directional:!0,width:26,height:26})}),title:h._("__JHASH__Aowuf9H3z9F__JHASH__"),onClick:x,selected:g===d("WAWebNavBarTypes").NavBarItems.BizTools,showHoverTooltip:!0})});s=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Newsletters)return;i(d("WAWebNavBarTypes").NavBarItems.Newsletters);d("WAWebOpenNewsletterTab").openNewsletterTab();d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.NEWSLETTERS)};u=c("useWAWebIsNewsletterUiEnabled")();v=u?l.jsx(c("WAWebNewsletterTabMenuBarItem.react"),{onClick:s,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Newsletters},"newsletters"):null;x=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Communities)return;i(d("WAWebNavBarTypes").NavBarItems.Communities);d("WAWebCommunityDailyUtils").incrementCommunityTabEvent(d("WAWebCommunityDailyUtils").CommunityDailyTabMetricsType.TAB_VIEWS);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.COMMUNITIES)};u=l.jsx(c("WAWebCommunityTabMenuBarItem.react"),{onClick:x,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Communities},"communities");s=function(a){a.preventDefault();if(g===d("WAWebNavBarTypes").NavBarItems.Chats)return;i(d("WAWebNavBarTypes").NavBarItems.Chats);d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.CHATS)};x=g===d("WAWebNavBarTypes").NavBarItems.Chats?l.jsx(d("WAWebChatsFilledIcon").ChatsFilledIcon,{directional:!0}):l.jsx(d("WAWebChatsOutlineIcon").ChatsOutlineIcon,{directional:!0});var z=d("useWAWebChatsActivityIndicator").useChatsActivityIndicator();z=z.unreadChatCount;z=z>0&&l.jsx("div",{className:"x10l6tqk x14ipxcb x1oozmrk",children:l.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:z})});x=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsxs("div",{className:"x1n2onr6",children:[x,z]}),title:h._("__JHASH__hy-Qp8EeTRI__JHASH__"),onClick:s,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Chats,showHoverTooltip:!0},"chats");z=d("useWAWebStatusActivityIndicator").useWAWebStatusActivityIndicator();s=z.hasUnread;var A=z.clearUnreadActivity;z=function(a){a.preventDefault();if(g===d("WAWebNavBarTypes").NavBarItems.Status)return;i(d("WAWebNavBarTypes").NavBarItems.Status);d("WAWebStatusNavigateTo").navigateToStatus({openTab:!0,clearUnreadActivity:A});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.STATUS)};s=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{vertical:!0,testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Status,g===d("WAWebNavBarTypes").NavBarItems.Status,s),title:h._("__JHASH__52qipdNXs4c__JHASH__"),onClick:z,selected:g===d("WAWebNavBarTypes").NavBarItems.Status,showHoverTooltip:!0},"status");z=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Settings)return;i(d("WAWebNavBarTypes").NavBarItems.Settings);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.SETTINGS)};var B=g===d("WAWebNavBarTypes").NavBarItems.Settings?l.jsx(d("WAWebSettingsIcon").SettingsIcon,{}):l.jsx(d("WAWebSettingsOutlineIcon").SettingsOutlineIcon,{});B=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:B}),title:h._("__JHASH__GppBl6wcTbk__JHASH__"),onClick:z,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Settings,showHoverTooltip:!0},"menu-bar-settings");z=function(){if(g===d("WAWebNavBarTypes").NavBarItems.Profile)return;var a=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(q),b=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(q),c=d("WAWebContactCollection").ContactCollection.assertGet(q);i(d("WAWebNavBarTypes").NavBarItems.Profile);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:a,profilePicThumb:b,contact:c,conn:d("WAWebConnModel").Conn,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.PROFILE)};var C=l.jsx("div",{className:"x1iyjqo2",children:l.jsx(d("WAWebDetailImage.react").DetailImage,{ariaLabel:h._("__JHASH__dhIyISolv4D__JHASH__"),testId:"chatlist_header_profile_photo",theme:"chatlist_header_profile_photo",tabIndex:-1,id:q,size:32})});C=l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:C}),title:h._("__JHASH__fxoQBgk5NP0__JHASH__"),vertical:!0,showHoverTooltip:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Profile,onClick:z});z=l.jsx("hr",{className:(j||(j=c("stylex")))([p.menuSectionSeparator,d("WAWebUISpacing").uiMargin.top16])});a=d("WAWebMobilePlatforms").isSMB()?l.jsxs(d("WAWebFlex.react").FlexItem,{grow:1,children:[z,a,y]}):null;y=d("WAWebMobilePlatforms").isSMB()?0:1;var D=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(g===d("WAWebNavBarTypes").NavBarItems.LockedChats)return;var a=(yield d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER}));a&&(i(d("WAWebNavBarTypes").NavBarItems.LockedChats),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebLockedChatsDrawer.react"),{onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}))});return function(){return a.apply(this,arguments)}}();r?r=l.jsx(d("WAWebChatlockUnlockedOutlineIcon").ChatlockUnlockedOutlineIcon,{width:24,height:24}):g===d("WAWebNavBarTypes").NavBarItems.LockedChats?r=l.jsx(d("WAWebChatlockFilledIcon").ChatlockFilledIcon,{width:24,height:24}):r=l.jsx(d("WAWebChatlockOutlineIcon").ChatlockOutlineIcon,{width:24,height:24});var E=function(){return k},F=d("useWAWebArchivedChatsActivityIndicator").useArchivedChatsActivityIndicator(),G=F.unreadCount;F=F.showUnreadMentionIcon;F=d("WAWebNavBarUtils").getNavBarIcon(d("WAWebNavBarTypes").NavBarItems.Archived,g===d("WAWebNavBarTypes").NavBarItems.Archived,F||G>0);function H(){if(g===d("WAWebNavBarTypes").NavBarItems.Archived)return;i(d("WAWebNavBarTypes").NavBarItems.Archived);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebArchivedFlow.react"),{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{transition:"pop-drawer-fast"});d("WAWebNavBarLogEvents").logNavBarEvent(d("WAWebWamEnumWebcNavbarItemLabel").WEBC_NAVBAR_ITEM_LABEL.ARCHIVED)}G=E()?l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:p.menuItemSize24,children:F}),title:h._("__JHASH__QKQ4BWr2oYn__JHASH__"),onClick:H,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.Archived,showHoverTooltip:!0},"menu-bar-archived"):null;E=[x,s,v,u];if(d("WAWebBotGating").isBotShortcutEntryPointEnabled()){F=l.jsx(d("WAWebMetaBotMenuBarItem.react").MetaBotMenuBarItem,{vertical:!0,showHoverTooltip:!0},"menu-bar-meta-bot");E.push(F)}H=[];d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&(d("WAWebChatLockGatingUtils").chatLockSideNavEnabled()&&H.push(l.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:r,title:"Locked Chats",onClick:D,vertical:!0,selected:g===d("WAWebNavBarTypes").NavBarItems.LockedChats,showHoverTooltip:!0},"menu-bar-locked-chats")),H.push(G),H.push(z));return l.jsx("header",{"data-testid":void 0,ref:e,className:j(p.header,d("WAWebUISpacing").uiPadding.horiz12),children:l.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",style:{height:"100%"},children:l.jsx(d("WAWebFlex.react").FlexItem,{grow:1,children:l.jsx("div",{"data-js-navbar":!0,style:{height:"100%"},className:"x1okw0bk x6s6g2w",children:l.jsx(d("WAWebMenuBar.react").MenuBar,{theme:"nav-bar",children:l.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"btn",xstyle:p.menuItems,children:l.jsxs(d("WAWebFlex.react").FlexColumn,{style:{height:"100%"},children:[l.jsx(d("WAWebFlex.react").FlexItem,{grow:y,children:E}),a,l.jsxs(d("WAWebFlex.react").FlexItem,{grow:0,xstyle:d("WAWebUISpacing").uiMargin.bottom10,children:[H,w,B,C]})]})})},"chatlist-header")})})})})}a.displayName=a.name+" [from "+f.id+"]";g.NavBar=a}),226);
__d("WAWebNotificationsCallNotification",["WAWebBaseNotification","WAWebChatFlowTypes","WAWebContactCollection","WAWebFrontendContactGetters","WAWebMuteCollection","WAWebMuteGetters","WAWebNotificationController","WAWebNotificationIconUtils","WAWebWid","WAWebWidFormat","asyncToGeneratorRuntime","fbs"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebNotificationController").WANotificationController.triggerNotification(new h(a))}function e(a){a&&d("WAWebNotificationController").WANotificationController.closeOrCancelNotification(a.toString())}var h=function(e){babelHelpers.inheritsLoose(a,e);function a(a){var b,c=a.wid,d=a.msgId,f=a.isVideo,g=a.isGroup;a=a.isSilenced;b=e.call(this)||this;b.wid=c;b.msgId=d;b.isVideo=f;b.isGroup=g;b.isSilenced=a;return b}var f=a.prototype;f.shouldMute=function(){return!this.wid||!this.msgId||d("WAWebMuteGetters").getIsMuted(d("WAWebMuteCollection").MuteCollection.globalMute())||this.isSilenced?!0:!1};f.buildKey=function(){return"call:"+this.wid.toString()};f.matchesChat=function(a){return c("WAWebWid").equals(this.wid,a)};f.getChatKind=function(){return this.isGroup?d("WAWebChatFlowTypes").ChatKindType.Group:d("WAWebChatFlowTypes").ChatKindType.Chat};f.getIcon=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebNotificationIconUtils").getNotificationIconByWid(this.wid,this.abortController.signal,d("WAWebNotificationIconUtils").USER_DEFAULT_ICON)});function c(){return a.apply(this,arguments)}return c}();f.getBannerOptions=function(){var a=d("WAWebContactCollection").ContactCollection.get(this.wid);a=a?d("WAWebFrontendContactGetters").getFormattedName(a):d("WAWebWidFormat").widToFormattedUser(this.wid);var b;this.isGroup?b=this.isVideo?c("fbs")._("__JHASH__RQBTNX-HdiW__JHASH__",[c("fbs")._param("name",a)]).toString():c("fbs")._("__JHASH__Zk7d2XrvIhj__JHASH__",[c("fbs")._param("name",a)]).toString():b=this.isVideo?c("fbs")._("__JHASH__RzRngOjqL6i__JHASH__",[c("fbs")._param("name",a)]).toString():c("fbs")._("__JHASH__hm66-RoBY0V__JHASH__",[c("fbs")._param("name",a)]).toString();a=c("fbs")._("__JHASH__kAWDCkdZsPY__JHASH__").toString();return{wid:this.wid,msgId:this.msgId,tag:this.msgId,title:b,body:a}};return a}(d("WAWebBaseNotification").WABaseNotification);g.showCallNotification=a;g.cancelCallNotification=e}),226);
__d("WAWebNotificationManager.react",["WAWebChatCollection","WAWebCmd","WAWebNotificationBackend","WAWebNotificationIcon","WAWebNotificationsCallNotification","WAWebStreamModel","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useEffect,j=b.useRef;function a(){var a,b=j(null),c=function(){var a;d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.OFFLINE?a=-1:d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.TIMEOUT?a=-1:a=d("WAWebChatCollection").ChatCollection.getUnreadCount();b.current!==a&&(b.current=a,d("WAWebNotificationIcon").setTitleAndIcon(a))};i(function(){c()},[]);(a=d("useWAWebListener")).useListener(d("WAWebCmd").Cmd,"alert_new_msg",function(a){return d("WAWebNotificationBackend").showMsgNotification(a)});a.useListener(d("WAWebCmd").Cmd,"alert_call",d("WAWebNotificationsCallNotification").showCallNotification);a.useListener(d("WAWebCmd").Cmd,"cancel_call",d("WAWebNotificationsCallNotification").cancelCallNotification);a.useListener(d("WAWebChatCollection").ChatCollection,"add remove reset change:showUnreadInTitle",c);a.useListener(d("WAWebChatCollection").ChatCollection,"change:hasUnread",d("WAWebNotificationBackend").closeNotifications);a.useListener(d("WAWebStreamModel").Stream,"change:displayInfo",c);return null}g["default"]=a}),98);
__d("WAWebOpenNotificationsSetting",["WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebNotificationsDrawer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a;a=new URLSearchParams(((a=window.location.search)!=null?a:"").toLowerCase());a=((a=a.get("ns"))!=null?a:"")==="1";a&&(d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(c("WAWebNotificationsDrawer.react"),{onCancel:function(){d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"}),window.history.pushState({},"",window.location.origin))}g.handleOpenNotificationsSettingDeeplink=a}),98);
__d("WAWebPaneToggle.react",["WAWebThemeContext","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j,k=j||c("react"),l=(h||(h=d("react"))).useState,m={wrapper:{position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",height:"x5yr21d",cursor:"x14isd7o",opacity:"xg01cxk",zIndex:"xhtitgo",transition:"x1myia39",width:"x1fsd2vl",backgroundColor:"xj17vyn",borderStartWidth:"xy80clv",borderStartStyle:"x26u7qi",borderStartColor:"x124h113",":hover_transition":"x3ffvku",":hover_opacity":"x1o7uuvo",$$css:!0},darkMode:{backgroundColor:"xcpsgoo",borderStartWidth:"xm0m39n",$$css:!0},pointerRight:{cursor:"x14mnfz1",$$css:!0},pointerLeft:{cursor:"x14isd7o",$$css:!0}};function a(a){var b=a.onClick;a=a.pointerDirection;var e=l(!0),f=e[0],g=e[1];e=d("WAWebThemeContext").useIsDarkTheme();if(!f)return null;f=function(){g(!1),self.setTimeout(function(){return g(!0)},500),b()};return k.jsx("div",{className:(i||(i=c("stylex")))(m.wrapper,a==="right"?m.pointerRight:m.pointerLeft,e&&m.darkMode),onClick:f,tabIndex:"0",role:"button","aria-hidden":"true"})}a.displayName=a.name+" [from "+f.id+"]";g.PaneToggle=a}),98);
__d("WAWebYoutubeVideoPlayerRenderer.react",["WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipYoutubeVideoPlayer.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=i.forwardRef(a);function a(a,b){var e=a.videoSrc;a=babelHelpers.objectWithoutPropertiesLoose(a,["videoSrc"]);return e==null?null:i.jsx(d("WAWebPipFloatingVideoPlayer.react").FloatingVideoPlayer,{ref:b,aspectRatio:d("WAWebPipConst").YOUTUBE_VIDEO_DEFAULT_ASPECT_RATIO,animationStartStyle:a.animationStartStyle,enableDragBar:a.enableDragBar,topContent:a.topContent,bottomContent:a.bottomContent,children:i.jsx(c("WAWebPipYoutubeVideoPlayer.react"),{youtubeVideoId:e,startTime:a.startTime,onClose:a.onClose,disablePiPControls:a.enableDragBar,onRefSet:a.onRefSet,onVideoMetadataChange:a.onVideoMetadataChange,autoPlay:a.autoPlay,onSetFullscreenToggleCallback:a.onSetFullscreenToggleCallback,exposeIframeInPiP:a.enableDragBar,counterAbuseData:a.counterAbuseData},e)},e)}a.displayName=a.name+" [from "+f.id+"]";e=b;g["default"]=e}),98);
__d("WAWebPipManager.react",["fbt","WAWebCmd","WAWebFloatingMsgVideoPlayerRenderer.react","WAWebFloatingOgVideoPlayerRenderer.react","WAWebFrontendMsgGetters","WAWebInlineVideoPlaybackClosedWamEvent","WAWebMsgCollection","WAWebMsgType","WAWebPipCloseButton.react","WAWebPipConst","WAWebPipController","WAWebPipVideoRefControls.react","WAWebToast.react","WAWebToastManager","WAWebVelocityTransitionGroup","WAWebWamEnumInlineVideoType","WAWebWamEnumWebcRmrReasonCode","WAWebYoutubeVideoPlayerRenderer.react","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;b=j||d("react");var k=i||(i=c("react")),l=b.useEffect,m=b.useImperativeHandle,n=b.useRef,o=b.useState,p={msg:null,startTime:null,zoomRect:null,videoMetadata:null,videoRef:null,isVideoPlaying:!1,videoType:d("WAWebPipConst").PiPVideoType.MSG,previewUrl:null,videoSrc:null,counterAbuseData:null},q={playerWrapper:{position:"xixxii4",zIndex:"x16p50fe",width:"xnalus7",height:"xqtp20y",overflowX:"x1plvlek",overflowY:"xryxfnj",$$css:!0}},r=new Map();r.set(d("WAWebPipConst").PiPVideoType.MSG,c("WAWebFloatingMsgVideoPlayerRenderer.react"));r.set(d("WAWebPipConst").PiPVideoType.YOUTUBE,c("WAWebYoutubeVideoPlayerRenderer.react"));r.set(d("WAWebPipConst").PiPVideoType.OG,c("WAWebFloatingOgVideoPlayerRenderer.react"));function s(a){a=t(a);return a==null?null:new(d("WAWebInlineVideoPlaybackClosedWamEvent").InlineVideoPlaybackClosedWamEvent)({inlineVideoPlayed:!1,inlineVideoType:a})}function t(a){return a===d("WAWebPipConst").PiPVideoType.YOUTUBE?d("WAWebWamEnumInlineVideoType").INLINE_VIDEO_TYPE.YOUTUBE:null}e=k.forwardRef(a);function a(a,b){var e=n(null);a=o(p.msg);var f=a[0],g=a[1];a=o(p.startTime);var i=a[0],j=a[1];a=o(p.zoomRect);var t=a[0],u=a[1];a=o(p.videoMetadata);var v=a[0],w=a[1];a=o(p.videoRef);var x=a[0],y=a[1];a=o(p.isVideoPlaying);var z=a[0],A=a[1];a=o(p.videoType);var B=a[0],C=a[1];a=o(p.previewUrl);var D=a[0],E=a[1];a=o(p.videoSrc);var F=a[0],G=a[1];a=o(null);var H=a[0],I=a[1];a=o(p.counterAbuseData);var J=a[0],K=a[1];l(function(){var a=function a(){var b;(b=e.current)==null?void 0:b.commit();window.removeEventListener("unload",a)};window.addEventListener("unload",a);return a},[]);var L=function(a){I(function(){return a})},M=function(a,b){var c=e.current;c!=null&&((a==null?void 0:a.duration)!=null&&(c.inlineVideoDurationT=Math.floor(a==null?void 0:a.duration)),!c.inlineVideoPlayed&&b&&(c.markInlineVideoPlayStartT(),c.inlineVideoPlayed=b));w(a);A(b)},N=function(){var a;f&&c("WAWebPipController").didClose(f);(a=e.current)==null?void 0:a.commit();g(p.msg);j(p.startTime);u(p.zoomRect);w(p.videoMetadata);y(p.videoRef);A(p.isVideoPlaying);C(p.videoType);E(p.previewUrl);G(p.videoSrc);K(p.counterAbuseData)},O=function(a){a.id.equals(f==null?void 0:f.id)&&N()};l(function(){return function(){f&&c("WAWebPipController").didClose(f)}},[f]);a=function(a,b){var f;c("WAWebPipController").didOpen(b.msg);(f=e.current)==null?void 0:f.commit();e.current=s(a);(f=e.current)==null?void 0:f.startInlineVideoPlayStartT();a===d("WAWebPipConst").PiPVideoType.MSG&&b.msg.downloadMedia({downloadEvenIfExpensive:!0,rmrReason:d("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.PIP,isUserInitiated:!0});g(b.msg);j(b.startTime);u(b.zoomRect);w(p.videoMetadata);y(p.videoRef);A(p.isVideoPlaying);C(a);E(b.preview!=null?"data:image/jpeg;base64,"+b.preview:null);G(b.videoSrc);K(b.counterAbuseData)};var P=function(){x==null?void 0:x.pause()},Q=function(a){P()},R=function(a){return(a=f==null?void 0:f.id.equals(a.id))!=null?a:!1},S=function(){f&&c("WAWebPipController").didError(f)},T=function(){var a;return{enableDragBar:!0,bottomContent:v!=null&&x!=null?k.jsx(d("WAWebPipVideoRefControls.react").VideoRefControls,{refVideo:x,videoMetadata:v,isFullscreenMode:!1,isVideoPlaying:z,newPiPStyle:!0,onFullscreenToggle:(a=H)!=null?a:void 0}):null,topContent:k.jsx(c("WAWebPipCloseButton.react"),{isFullscreenMode:!1,onClick:N})}},U=function(){return t?{height:t.bottom-t.top,width:t.right-t.left,left:t.left,bottom:window.innerHeight-t.bottom}:null},V=function(){return babelHelpers["extends"]({msg:f,startTime:i,zoomRect:t,videoMetadata:v,videoRef:x,isVideoPlaying:z,videoType:B,previewUrl:D,videoSrc:F,counterAbuseData:J},T(),{animationStartStyle:U(),onClose:N,onError:S,autoPlay:!0,onRefSet:y,onVideoMetadataChange:M,onSetFullscreenToggleCallback:L})};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,["media_viewer_modal"],Q);d("useWAWebListener").useListener(d("WAWebMsgCollection").MsgCollection,["remove"],function(a){O(a)});Q=f!=null?d("WAWebFrontendMsgGetters").getChat(f):null;d("useWAWebListener").useListener((Q=Q==null?void 0:Q.msgs)!=null?Q:d("WAWebMsgCollection").MsgCollection,"remove_msgs",function(a){a.forEach(O)});d("useWAWebListener").useListener(d("WAWebMsgCollection").MsgCollection,["change:type"],function(a){if(a.type!==d("WAWebMsgType").MSG_TYPE.REVOKED)return;!a.isSentByMe&&(f==null?void 0:f.id.equals(a.id))&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._("__JHASH__8exGPb61fVf__JHASH__")}));O(a)});var W={isOpened:R,pausePiP:P,openPiP:a,closePiP:N};m(b,function(){return W});l(function(){c("WAWebPipController").register(W);return function(){c("WAWebPipController").unregister()}},[]);Q=r.get(B);return k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pip",xstyle:q.playerWrapper,component:"div",children:Q!=null?k.jsx(Q,babelHelpers["extends"]({},V())):null})}a.displayName=a.name+" [from "+f.id+"]";b=e;g.PiPManager=b}),226);
__d("WAWebUserNoticeModal.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={noticeSvgWrapper:"_alz7",noticeModalContentWrapper:"_alz8",noticeSmbContainer:"_alz9",noticeContainer:"_alza"};b=a;g["default"]=b}),98);
__d("WAWebUserNoticeModal.react",["WALogger","WAWebAlertNoticeIcon","WAWebButton.react","WAWebConnModel","WAWebDomSanitize","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebModal.react","WAWebModalManager","WAWebNoticeModel","WAWebSocketModel","WAWebThemeContext","WAWebUserNoticeModal.scss","WAWebUserNoticeWamEvent","WAWebWDSText.react","WAWebWamEnumUserNoticeEvent","react","useWAWebListener","useWAWebModelValues"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["user notice modal, user clicked logout"]);j=function(){return a};return a}b=i||d("react");var k=h||(h=c("react")),l=b.useContext,m=b.useEffect,n=b.useState,o=function(){};function p(a){var b=a.btn,d=a.onClick;a=a.primary;a=a===void 0?!1:a;if(b==null)return null;var e="UserNoticeModalPopup-"+b.action+"Btn",f="popup-controls-"+b.action;return k.jsx(c("WAWebButton.react"),{testid:void 0,type:a?"primary":"secondary",onClick:d,children:b.label},e)}p.displayName=p.name+" [from "+f.id+"]";function a(a){a=a.notice;a=d("useWAWebModelValues").useModelValues(a,["noticeId","blocking","blockingModal"]);var b=l(d("WAWebThemeContext").ThemeContext);a=a.blockingModal;var e=n(!1),f=e[0],g=e[1];e=function(){c("WAWebNoticeModel").blocking||d("WAWebModalManager").ModalManager.close()};d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:blocking",e);var h=function(){return c("WAWebNoticeModel").noticeId!=null&&c("WAWebNoticeModel").blockingModal!=null&&c("WAWebNoticeModel").blocking===!0},i=function(){if(h()&&!f){var a=new(d("WAWebUserNoticeWamEvent").UserNoticeWamEvent)({userNoticeId:c("WAWebNoticeModel").noticeId,userNoticeContentVersion:c("WAWebNoticeModel").policyVersion,userNoticeEvent:d("WAWebWamEnumUserNoticeEvent").USER_NOTICE_EVENT.BLOCKING_MODAL_APPEAR});a.commit();g(!0)}};e=function(){g(!1)};d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:noticeId",e);d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:blockingModal change:blocking",i);m(function(){i()},[]);var q=function(){d("WALogger").LOG(j()),d("WAWebModalManager").ModalManager.close(),d("WAWebSocketModel").Socket.logout()},r=function(){location.reload()};e=function(a){if(a)if(a.action==="logout")return q;else if(a.action==="refresh")return r;return o};if(!a||!h())return null;var s=a.iconSvg,t=a.iconDescription;t=t===void 0?"":t;var u=a.title,v=a.body,w=a.primaryButton;a=a.secondaryButton;var x;s&&(x=b.theme==="light"?s.light:s.dark);b=k.jsx(d("WAWebAlertNoticeIcon").AlertNoticeIcon,{"aria-label":t});s=x&&d("WAWebDomSanitize").sanitizeNoticeSVG(x);t=s?k.jsx("span",{"aria-label":t,dangerouslySetInnerHTML:{__html:s}}):b;s=k.jsx(p,{btn:a,onClick:e(a)});b=k.jsx(p,{btn:w,primary:!0,onClick:e(w)});a=[s,b];s={enter:e(w)};b=u?d("WAWebDomSanitize").sanitizeNoticeText(u):null;e=v?d("WAWebDomSanitize").sanitizeNoticeText(v):null;return k.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:s,children:k.jsx("div",{className:d("WAWebConnModel").Conn.isSMB?c("WAWebUserNoticeModal.scss").noticeSmbContainer:c("WAWebUserNoticeModal.scss").noticeContainer,children:k.jsx(d("WAWebModal.react").Modal,{actions:a,type:d("WAWebModal.react").ModalTheme.Flex,children:k.jsxs("div",{className:c("WAWebUserNoticeModal.scss").noticeModalContentWrapper,children:[k.jsx(d("WAWebFlex.react").FlexRow,{className:c("WAWebUserNoticeModal.scss").noticeSvgWrapper,align:"center",justify:"center",children:t}),k.jsx(d("WAWebWDSText.react").WDSTextLarge,{margin:[32,32,0,32],textAlign:"center",children:k.jsx("div",{dangerouslySetInnerHTML:{__html:b}})}),k.jsx(d("WAWebWDSText.react").WDSTextMuted,{color:"white",margin:32,children:k.jsx("div",{dangerouslySetInnerHTML:{__html:e}})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("WAWebUserActivityWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({UserActivity:[1384,{userActivityBitmapHigh:[4,a.TYPES.INTEGER],userActivityBitmapLen:[5,a.TYPES.INTEGER],userActivityBitmapLow:[3,a.TYPES.INTEGER],userActivitySessionCum:[7,a.TYPES.INTEGER],userActivitySessionId:[1,a.TYPES.STRING],userActivitySessionSeq:[6,a.TYPES.INTEGER],userActivityStartTime:[2,a.TYPES.INTEGER]},[1,1,1],"regular"]},{UserActivity:[]});g.UserActivityWamEvent=b}),98);
__d("WAWebWamTimeSpentLogger",["WAWebCmd","WAWebTimeSpentLoggingBitArray","WAWebTimeSpentLoggingNavigation","WAWebTimeSpentLoggingSession","WAWebUserActivityWamEvent","WAWebUserPrefsKeys","WAWebWamTimeSpentArray","react","useLazyRef","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useEffect,j=b.useRef,k=-5,l=[{source:window,name:"focus"},{source:document,name:"wheel"},{source:document,name:"keydown"},{source:document,name:"mouseover"},{source:document,name:"mousemove"},{source:document,name:"click"},{source:document,name:"scroll"}],m=function(a){var b=new(d("WAWebUserActivityWamEvent").UserActivityWamEvent)({userActivitySessionId:a.sessionId,userActivityStartTime:a.startTime,userActivityBitmapLen:a.bitmapLen,userActivityBitmapLow:a.bitmap[0],userActivitySessionSeq:a.sessionSeq,userActivitySessionCum:a.sessionCum});a.bitmapLen>32&&(b.userActivityBitmapHigh=a.bitmap[1]);b.commit()};function a(){var a,b=c("useLazyRef")(function(){return Date.now()}),e=j(-1),f=j(-1),g=c("useLazyRef")(function(){return new(c("WAWebWamTimeSpentArray"))({loggingCallback:m})}),h=c("useLazyRef")(d("WAWebTimeSpentLoggingSession").createTimeSpentArray),n=function(a){var c=g.current,d=h.current;if(!c&&!d)return;if(a instanceof MouseEvent){if(a.pageX===e.current&&a.pageY===f.current&&a.type!=="click")return;e.current=a.pageX;f.current=a.pageY}a=Date.now();var i=a-b.current;i>0?(b.current=a,c==null?void 0:c.update(b.current),d==null?void 0:d.update(b.current)):i<k&&(b.current=a)},o=function(){g.current&&(g.current.ship(function(a){d("WAWebTimeSpentLoggingBitArray").stashBitarrayData(a,d("WAWebUserPrefsKeys").KEYS.USER_ACTIVITY_TIME_SPENT_EVENT)}),g.current=null),h.current&&(h.current.ship(function(a){d("WAWebTimeSpentLoggingBitArray").stashBitarrayData(d("WAWebTimeSpentLoggingSession").preprocessTsArrayData(a),d("WAWebUserPrefsKeys").KEYS.TIME_SPENT_BITARRAY_EVENT)}),g.current=null),d("WAWebTimeSpentLoggingNavigation").setPendingBackgroundNavigation()};i(function(){d("WAWebTimeSpentLoggingBitArray").flushBitarrays(d("WAWebUserPrefsKeys").KEYS.USER_ACTIVITY_TIME_SPENT_EVENT,m);return function(){g.current&&(g.current.ship(),g.current=null)}},[]);i(function(){d("WAWebTimeSpentLoggingBitArray").flushBitarrays(d("WAWebUserPrefsKeys").KEYS.TIME_SPENT_BITARRAY_EVENT,d("WAWebTimeSpentLoggingBitArray").postTsBitArrayEvent);return function(){h.current&&(h.current.ship(),h.current=null)}},[]);(a=d("useWAWebListener")).useListener(window,"beforeunload",o);a.useListener(window,"blur",d("WAWebTimeSpentLoggingNavigation").logTsBackgroundNavigation);a.useListener(d("WAWebCmd").Cmd,"logout",d("WAWebTimeSpentLoggingNavigation").logTsBackgroundNavigation);a.useListener(window,"focus",d("WAWebTimeSpentLoggingNavigation").logTsForegroundNavigation);a.useListeners(l.map(function(a){var b=a.source;a=a.name;return{source:b,eventOrEvents:a,callback:n,opts:{passive:!0,capture:!0}}}));return null}g["default"]=a}),98);
__d("WAWebMain.react",["fbt","Promise","WAAbortError","WAGetUserMedia","WALogger","WAPromiseDelays","WAPromiseLoop","WAShiftTimer","WAWeb-moment","WAWebABProps","WAWebActionListener","WAWebActiveAccountInfoModel","WAWebAlarm","WAWebAnimatedEmojiAssetLoader","WAWebAnimatedEmojiGatingUtils","WAWebAppContext.react","WAWebAssetLoaderSingleton","WAWebBizGatingUtils","WAWebBizSmbTosModal.react","WAWebChatCollection","WAWebChatPreferenceCollection","WAWebChatPreferenceModel","WAWebChatlistHeader.react","WAWebChatlistHeaderV2.react","WAWebChatlistPanel.react","WAWebChatlistPanelMode","WAWebClassnames","WAWebClientFeatureFlags","WAWebCmd","WAWebCollapsedChatlistPanel","WAWebComposeBoxHasText","WAWebConfirmPopup.react","WAWebConnModel","WAWebConversation.react","WAWebDebugHotPink","WAWebDeviceCapabilitiesBootstrap","WAWebDrawerManager","WAWebDrawerManager.react","WAWebEmojiAssetLoader","WAWebEmojiSetup","WAWebExpandableNavBar.react","WAWebInternDogfoodingModal.react","WAWebKeyboardEventConstants","WAWebKeyboardManager","WAWebKeyboardShortcutsPopup.react","WAWebKeyboardTopLevelHotKeys.react","WAWebLinkedAccountsAction","WAWebMain.scss","WAWebModalManager","WAWebMsgCollection","WAWebMultiSelectEntryPointConstants","WAWebMuteCollection","WAWebNavBar.react","WAWebNavBarTypes","WAWebNewsletterCollection","WAWebNoticeModel","WAWebNotificationManager.react","WAWebNux","WAWebOpenNotificationsSetting","WAWebPageLoadLogging","WAWebPaneToggle.react","WAWebPipManager.react","WAWebSafariLimited","WAWebSettingsGetters","WAWebSettingsModel","WAWebSocketModel","WAWebStreamModel","WAWebThemeContext","WAWebTosModal.react","WAWebUA","WAWebUIRefreshGatingUtils","WAWebURLUtils","WAWebUim","WAWebUimUie.react","WAWebUpdateServerPropsJob","WAWebUserNoticeModal.react","WAWebUserPrefsGeneral","WAWebUserPrefsNuxPreferences","WAWebWallpaper","WAWebWamTimeSpentLogger","asyncToGeneratorRuntime","cr:10106","cr:10207","cr:10208","cr:10209","cr:6018","gkx","isNonZeroNumber","react","useLazyRef","useWAWebABPropConfigValue","useWAWebChatLockSettings","useWAWebExternalBetaOptIn","useWAWebListener","useWAWebOnUnmount","useWAWebSettingsValues"],(function(a,b,c,d,e,f,g,aa){var h,i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["WAWebMain: could not fetch linked accounts"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["TOS (terms of service) stage number 3, logging out"]);l=function(){return a};return a}var m=j||d("react"),n=i||(i=c("react")),ba=m.useContext,o=m.useEffect,p=m.useRef,q=m.useState,r=(m=b("cr:10106"))==null?void 0:m.Bugnub;function s(){window.history.pushState({},"",window.location.href)}function a(){var a=d("WAWebMsgCollection").MsgCollection.some(function(a){a=a.pendingDeleteForMe;return d("WAWebMsgCollection").MsgCollection.hasUnsentMessages()||a});return a||d("WAWebChatCollection").ChatCollection.some(function(a){return a.isComposing()})||d("WAWebComposeBoxHasText").hasText()}var t=6e4;function e(a){var e;a=a.animate;var f=ba(d("WAWebThemeContext").ThemeContext),g=d("useWAWebABPropConfigValue").useABPropConfigValue("top_menu_redesign_enabled"),i=d("WAWebUIRefreshGatingUtils").emptyStateAndIllustrationRefreshEnabled(),j=d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled(),m=p(null),u=p(null),v=p(null),w=p(null),x=p(null),y=p(null),z=p(null),A=p(!1),B=p(null),C=c("useLazyRef")(function(){return new(d("WAShiftTimer").ShiftTimer)(function(){if(document.activeElement!==document.body)return;var a=d("WAWebUim").UIM.Manager.getTop();a==null?void 0:a.requestFocus()})}),D=q(!1),E=D[0],F=D[1];D=q(!1);var G=D[0],H=D[1];D=function(){C.current.debounce(10)};var I=function(a){var b,c,d;b=(b=u.current)==null?void 0:b.clientWidth;if(b==null)return!1;c=(c=m.current)==null?void 0:c.clientWidth;if(c==null)return!1;if(!x.current)return!1;d=(d=w.current)==null?void 0:d.clientWidth;return x.current.animatePanel(c,b,d,a)},J=q(function(){return d("WAWebUserPrefsGeneral").getChatlistPanelState()===d("WAWebUserPrefsGeneral").ChatlistPanelState.COLLAPSED}),K=J[0],ca=J[1];J=q(!0);var L=J[0],M=J[1];J=q(!1);var N=J[0],O=J[1];J=q();var P=J[0],da=J[1];J=q(d("WAWebNavBarTypes").NavBarItems.Chats);var Q=J[0],ea=J[1],R=p(null),S=function(a){ea(a);R.current=Q;if(!i)return;if([d("WAWebNavBarTypes").NavBarItems.Chats,d("WAWebNavBarTypes").NavBarItems.Communities,d("WAWebNavBarTypes").NavBarItems.Archived].includes(R.current)){a=d("WAWebChatCollection").ChatCollection.getActive();a&&d("WAWebCmd").Cmd.closeChat(a)}else if(R.current===d("WAWebNavBarTypes").NavBarItems.Newsletters){a=c("WAWebNewsletterCollection")==null?void 0:c("WAWebNewsletterCollection").getActive();a&&d("WAWebCmd").Cmd.closeChat(a)}};J=q(!1);var T=J[0],fa=J[1];J=function(){fa(!T)};var ga=function(){var a,b;K?(a=d("WAWebUserPrefsGeneral").ChatlistPanelState.FULL,b=!1):(a=d("WAWebUserPrefsGeneral").ChatlistPanelState.COLLAPSED,b=!0);d("WAWebUserPrefsGeneral").setChatlistPanelState(a);ca(b)},U=function(){M(!0),S(d("WAWebNavBarTypes").NavBarItems.Chats)},V=function(){return M(!1)},W=function(){return O(!0)},X=function(){return O(!1)};(e=d("useWAWebListener")).useListener(d("WAWebDrawerManager").DrawerManager,"open_drawer_left",V);e.useListener(d("WAWebDrawerManager").DrawerManager,"drawer_left_closed",U);e.useListener(d("WAWebCmd").Cmd,"set_active_nav_bar",function(a){S(a)});V=q(0);U=V[0];V=V[1];e.useListener(d("WAWebCmd").Cmd,"rerender_app",function(){});V=function(){A.current=!1,d("WAWebCmd").Cmd.onPanesWillChange(3),F(!0),H(!0),d("WAWebCmd").Cmd.onPanesDidChange(3),I(!0)};e=function(){A.current=!0;H(!0);var a=I(!1);a?(d("WAWebCmd").Cmd.onPanesWillChange(2),F(!1),d("WAWebCmd").Cmd.onPanesDidChange(2)):F(!1)};var ha=function(){H(!1),E&&A.current&&F(!1)},ia=function(a){var b=!1;d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(c){var d=v.current;b=b||c&&Boolean(d==null?void 0:d.containsDOMNode(a))});d("WAWebDrawerManager").DrawerManager.existsDrawerMid(function(c){var d=x.current;b=b||c&&Boolean(d==null?void 0:d.containsDOMNode(a))});return b},ja=function(){switch(d("WAWebConnModel").Conn.tos){case 1:case 2:d("WAWebModalManager").ModalManager.open(n.jsx(c("WAWebTosModal.react"),{}),{blockClose:!0});break;case 3:d("WALogger").LOG(l());d("WAWebSocketModel").Socket.logout();break;default:break}},ka=function(){d("WAWebConnModel").Conn.smbTos&&d("WAWebModalManager").ModalManager.open(n.jsx(c("WAWebBizSmbTosModal.react"),{}),{blockClose:!0})},la=function(){d("isNonZeroNumber").isNonZeroNumber(c("WAWebNoticeModel").noticeId)&&c("WAWebNoticeModel").blocking===!0&&d("WAWebModalManager").ModalManager.open(n.jsx(c("WAWebUserNoticeModal.react"),{notice:c("WAWebNoticeModel")}),{blockClose:!0})},ma=function(a){var b=a.target,e=function(a){return a&&a.getAttribute("contentEditable")||a instanceof HTMLInputElement};for(var f=0;f<5;f++){if(e(b))return;b=b.parentNode}c("WAWebKeyboardShortcutsPopup.react")&&d("WAWebModalManager").ModalManager.open(n.jsx(c("WAWebKeyboardShortcutsPopup.react"),{}));a.preventDefault()},na=function(a){var c=a?t:0;y.current=new AbortController();var e=y.current.signal;d("WAPromiseLoop").promiseLoop(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{yield d("WAPromiseDelays").delayMs(c);if(e.aborted)throw new(d("WAAbortError").AbortError)();d("WAWebStreamModel").Stream.markUnavailable(30*1e3);yield new(h||(h=b("Promise")))(function(a){B.current=a});if(e.aborted)throw new(d("WAAbortError").AbortError)();document.hasFocus()&&d("WAWebStreamModel").Stream.markAvailable();c=t}catch(b){if(b.name===d("WAAbortError").ABORT_ERROR)a();else throw b}});return function(b){return a.apply(this,arguments)}}())["finally"](function(){y.current=null})},oa=function(){var a;(a=y.current)==null?void 0:a.abort()},pa=function a(){z.current=c("WAWebAlarm").setLocalTimeout(function(){d("WAWebUpdateServerPropsJob").queryServerProps(),a()},c("WAWeb-moment")().add(1,"days").valueOf())},qa=function(){c("WAWebAlarm").clearTimeout(z.current)},ra=d("WAWebUIRefreshGatingUtils").colorRefreshEnabled();o(function(){var a=["wds-2023-colors"];d("WAWebConnModel").Conn.isSMB&&a.push("biz");if(ra){var b;(b=document.body)==null?void 0:(b=b.classList).add.apply(b,a)}else{(b=document.body)==null?void 0:(b=b.classList).remove.apply(b,a)}},[ra]);if(!c("gkx")("26258")){var sa=d("WAWebUIRefreshGatingUtils").colorRefreshEnabled()&&d("WAWebABProps").getABPropConfigValue("web_design_refresh_hotpink");o(function(){var a="hotpink";if(sa){var b;d("WAWebDebugHotPink").enableHotPink();(b=document.body)==null?void 0:b.classList.add(a)}},[sa])}o(function(){d("WAWebStreamModel").Stream.uiActive=!0;document.visibilityState!=="hidden"&&d("WAWebStreamModel").Stream.markAvailable();var a=d("WAWebConnModel").Conn.platform;c("WAWebEmojiSetup")(d("WAWebEmojiAssetLoader").getEmojiTypeFromPlatform(a));d("WAWebAssetLoaderSingleton").AssetLoader.setPlatform(a);c("WAWebKeyboardManager").menuBatchRenderWith(function(){c("WAWebKeyboardManager").trigger(c("WAWebKeyboardEventConstants").Event+":"+c("WAWebKeyboardEventConstants").Events.LOGGED_IN)});na(!0);pa();d("WAWebAnimatedEmojiGatingUtils").isAnimatedEmojiEnabled()&&void d("WAWebAnimatedEmojiAssetLoader").initAnimatedEmojiAssets(a);d("WAWebConnModel").Conn.isSMB&&ka();ja();la();d("WAWebUA").UA.isSafari&&!d("WAGetUserMedia").getUserMedia&&(d("WAWebUserPrefsNuxPreferences").shouldShowNUX(d("WAWebNux").NUX.SAFARI_LIMITED_SUPPORT)&&(self.setTimeout(function(){d("WAWebModalManager").ModalManager.open(n.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:aa._("__JHASH__On50MyzV-mK__JHASH__"),children:n.jsx(d("WAWebSafariLimited").SafariLimitedText,{})}))},250),d("WAWebUserPrefsNuxPreferences").setNUX(d("WAWebNux").NUX.SAFARI_LIMITED_SUPPORT,{views:1})));a=c("WAWebChatPreferenceCollection").get(d("WAWebChatPreferenceModel").DEFAULT_PREFERENCE);if(a&&d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER!==a.wallpaper){var b=f.theme;if(!d("WAWebWallpaper").colorExistsInTheme(a.wallpaper,b)){b=b==="light"?"dark":"light";if(d("WAWebWallpaper").colorExistsInTheme(a.wallpaper,b)){b=d("WAWebWallpaper").toggleWallpaperColor(a.wallpaper,b);a.set("wallpaper",b)}}}void d("WAWebOpenNotificationsSetting").handleOpenNotificationsSettingDeeplink()},[]);o(function(){d("WAWebPageLoadLogging").endPageLoadQpl(!1)},[]);c("useWAWebOnUnmount")(function(){C.current.cancel(),c("WAWebKeyboardManager").menuBatchRenderWith(function(){c("WAWebKeyboardManager").trigger(c("WAWebKeyboardEventConstants").Event+":"+c("WAWebKeyboardEventConstants").Events.LOGGED_OUT)}),c("WAWebURLUtils").canMuckHistory()&&window.history.back(),d("WAWebStreamModel").Stream.uiActive=!1,oa(),qa()});var ta=c("WAWebURLUtils").canMuckHistory();d("useWAWebListener").useListener(ta?window:null,"popstate",s);o(function(){ta&&s()},[]);o(function(){if(!d("WAWebBizGatingUtils").shouldFetchLinkedAccounts())return;var a=new AbortController();d("WAWebLinkedAccountsAction").getActiveLinkedAccountInfo().then(function(b){if(a.signal.aborted)return;d("WAWebActiveAccountInfoModel").setActiveAccountInfo(b);da(b)})["catch"](function(){d("WALogger").WARN(k())});return function(){return a.abort()}},[]);d("useWAWebListener").useListener(d("WAWebConnModel").Conn,"change:tos",ja);d("useWAWebListener").useListener(d("WAWebConnModel").Conn.isSMB?d("WAWebConnModel").Conn:null,"change:smbTos",ka);d("useWAWebListener").useListener(c("WAWebNoticeModel"),["change:blocking","change:noticeId"],la);var Y=d("useWAWebChatLockSettings").useChatLockSettings(),Z=function(){B.current==null?void 0:B.current(),B.current=null};d("useWAWebListener").useListener(document,["mousemove","scroll","keydown"],Z);d("useWAWebListener").useListener(window,["focus","resize"],Z);o(function(){void d("WAWebDeviceCapabilitiesBootstrap").bootstrapDeviceCapabilities()},[]);Z=d("WAWebUIRefreshGatingUtils").materialRefreshEnabled();Z=d("WAWebClassnames").classnamesConvertMeToStylexPlease((G={three:E,two:!E,"app-animating":G},G[c("WAWebMain.scss").noAnimation]=!a,G[c("WAWebMain.scss").app]=!0,G[c("WAWebMain.scss").materialRefresh]=Z,G));var ua,va,wa,xa;r!=null&&(xa=n.jsx(r,{}));d("useWAWebExternalBetaOptIn").useExternalBetaValidator();G=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);G=G[0];G=n.jsx(d("WAWebChatlistPanel.react").ChatlistPanel,{ref:v,showArchiveV2:G,mode:c("WAWebChatlistPanelMode").Chatlist,selectable:N,endMultiSelect:X,multiSelectEntryPoint:N?d("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown:null,hideLockedChats:Y.hideLockedChats},N?"inMultiSelectMode":"inNonSelectableMode");Y=n.jsxs("div",{className:c("WAWebMain.scss").drawerManager,children:[n.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((X={},X[c("WAWebMain.scss").chatlistPanelClosed]=K&&L,X[c("WAWebMain.scss").paneOneDrawerWithNavBar]=g,X[c("WAWebMain.scss").paneOneDrawerWithNavBarExpanded]=j&&T,X[c("WAWebMain.scss").pane]=!0,X[c("WAWebMain.scss").paneOne]=!0,X[c("WAWebMain.scss").paneOneDrawer]=!0,X)),"data-testid":void 0,children:n.jsx(d("WAWebDrawerManager.react").DrawerManagerComponent,{direction:d("WAWebDrawerManager.react").Dir.LEFT,animationDisabled:K})}),n.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebMain.scss").pane,c("WAWebMain.scss").paneTwo),"data-testid":void 0,children:n.jsx(d("WAWebDrawerManager.react").DrawerManagerComponent,{direction:d("WAWebDrawerManager.react").Dir.MID})})]});X={headerRef:u,activeAccountInfo:P,activeNavBarItem:Q,updateActiveNavBarItem:S};var $=null;j?$=n.jsx(d("WAWebExpandableNavBar.react").ExpandableNavBar,babelHelpers["extends"]({},X,{isNavBarExpanded:T,onToggleNavBarExpansion:J})):g&&($=n.jsx(d("WAWebNavBar.react").NavBar,babelHelpers["extends"]({},X)));X=g?n.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((j={},j[c("WAWebMain.scss").pane]=!0,j[c("WAWebMain.scss").paneOne]=!0,j)),children:[c("WAWebSettingsModel")&&n.jsx(c("WAWebChatlistHeaderV2.react"),{headerRef:u,mute:d("WAWebMuteCollection").MuteCollection.globalMute(),onSelectChatClick:W,isMultiSelectMode:N,activeAccountInfo:P,updateActiveNavBarItem:S}),G]}):n.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((J={},J[c("WAWebMain.scss").chatlistPanelClosed]=K&&L,J[c("WAWebMain.scss").pane]=!0,J[c("WAWebMain.scss").paneOne]=!0,J)),children:[c("WAWebSettingsModel")&&(!K||L)&&n.jsx(c("WAWebChatlistHeader.react"),{headerRef:u,mute:d("WAWebMuteCollection").MuteCollection.globalMute(),onSelectChatClick:W,chatListCollapsed:K,isMultiSelectMode:N,activeAccountInfo:P}),K?n.jsx(d("WAWebCollapsedChatlistPanel").CollapsedChatlistPanel,{}):G]});j=n.jsxs("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebMain.scss").pane,c("WAWebMain.scss").paneTwo),children:[d("WAWebUIRefreshGatingUtils").webChatlistToggleEnabled()&&L&&n.jsx(d("WAWebPaneToggle.react").PaneToggle,{onClick:ga,pointerDirection:K?"right":"left"}),n.jsx(c("WAWebConversation.react"),{animate:a,ref:x})]});W=n.jsx("div",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((J={},J[c("WAWebMain.scss").pane]=!0,J[c("WAWebMain.scss").paneThree]=!0,J[c("WAWebMain.scss").paneThreeWithNavBar]=g,J[c("WAWebMain.scss").paneThreeWithNavBarWithoutBorder]=d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled,J[c("WAWebMain.scss").paneThreeWithNavBarWithoutBorderExpanded]=d("WAWebUIRefreshGatingUtils").expandableSideNavEnabled&&T,J)),ref:w,"data-testid":void 0,children:n.jsx(d("WAWebDrawerManager.react").DrawerManagerComponent,{direction:d("WAWebDrawerManager.react").Dir.RIGHT,onDrawerIn:V,onDrawerOut:e,onDrawerAnimationComplete:ha})});return n.jsx(d("WAWebAppContext.react").AppContextProvider,{rightDrawerOpen:E,chatListCollapsed:K,children:n.jsx(d("WAWebUimUie.react").UIE,{uimState:d("WAWebUim").UIMState.INACTIVE,displayName:"Main",children:n.jsxs(c("WAWebKeyboardTopLevelHotKeys.react"),{className:Z,onBlur:D,ref:m,onShowKeyboardShortcuts:ma,skipNode:ia,children:[n.jsx(c("WAWebNotificationManager.react"),{}),n.jsx(c("WAWebActionListener"),{}),n.jsx(d("WAWebPipManager.react").PiPManager,{}),n.jsx(c("WAWebWamTimeSpentLogger"),{}),xa,va,wa,ua,n.jsx(c("WAWebInternDogfoodingModal.react"),{}),Y,g&&$,X,j,W,!c("gkx")("26258")&&d("WAWebClientFeatureFlags").isFeatureEnabled("a11y_block")&&b("cr:6018")&&n.jsx(b("cr:6018"),{})]})})},U)}e.displayName=e.name+" [from "+f.id+"]";g.hasPending=a;g.MainComponent=e}),226);
__d("WAWebPrefetchLoadables",["Promise","WALogger","WAWebABProps","WAWebAddContactToGroupFlowLoadable","WAWebArchivedFlowLoadable","WAWebAttachMediaFlowLoadable","WAWebAttachProductModalLoadable","WAWebAttachVcardsFlowLoadable","WAWebCaptureMediaDrawerLoadable","WAWebCartFlowLoadable","WAWebCommunityAdminPromotionNotificationFlowLoadable","WAWebCommunityFlowLoadable","WAWebCommunityGatingUtils","WAWebContactMsgInfoFlowLoadable","WAWebContextualBannerWrapperLoadable","WAWebEditCaptureFlowLoadable","WAWebForwardMessageModalLoadable","WAWebGroupInviteLinkDrawerLoadable","WAWebGroupMsgInfoFlowLoadable","WAWebGroupsV4InviteFlowLoadable","WAWebInfoFlowLoadable","WAWebLabelFlowLoadable","WAWebLottieAnimationLoadable","WAWebManageCommunityGroupsFlowLoadable","WAWebManageLabelFlowLoadable","WAWebMediaViewerFlowLoadable","WAWebNewChatFlowLoadable","WAWebNewGroupFlowLoadable","WAWebPhotoPickerLoadable.react","WAWebProductDetailsFlowLoadable","WAWebProfileDrawerLoadable","WAWebSendGroupInviteFlowLoadable","WAWebSendLogsPopupLoadable","WAWebSendMsgMultiModalLoadable","WAWebSendProductModalLoadable","WAWebSettingsFlowLoadable","WAWebStarredDrawerLoadable","WAWebStatusFlowLoadable","WAWebStatusQuotedFlowLoadable","asyncToGeneratorRuntime","cr:6003","cr:6004","gkx"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["Error prefetching loadables: ",""]);i=function(){return a};return a}function a(){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var a=[d("WAWebMediaViewerFlowLoadable").requireBundle(),d("WAWebInfoFlowLoadable").requireBundle()];yield (h||(h=b("Promise"))).all(a);a=[d("WAWebProfileDrawerLoadable").requireBundle(),d("WAWebPhotoPickerLoadable.react").requireBundle(),d("WAWebStarredDrawerLoadable").requireBundle(),d("WAWebAttachMediaFlowLoadable").requireBundle(),d("WAWebCaptureMediaDrawerLoadable").requireBundle(),d("WAWebEditCaptureFlowLoadable").requireBundle(),d("WAWebGroupMsgInfoFlowLoadable").requireBundle(),d("WAWebNewChatFlowLoadable").requireBundle(),d("WAWebNewGroupFlowLoadable").requireBundle(),d("WAWebSendProductModalLoadable").requireBundle(),d("WAWebAttachProductModalLoadable").requireBundle(),d("WAWebSendGroupInviteFlowLoadable").requireBundle(),d("WAWebSendMsgMultiModalLoadable").requireBundle(),d("WAWebForwardMessageModalLoadable").requireBundle(),d("WAWebAttachVcardsFlowLoadable").requireBundle(),d("WAWebProductDetailsFlowLoadable").requireBundle(),d("WAWebCartFlowLoadable").requireBundle(),d("WAWebLabelFlowLoadable").requireBundle(),d("WAWebManageLabelFlowLoadable").requireBundle(),d("WAWebAddContactToGroupFlowLoadable").requireBundle(),d("WAWebSettingsFlowLoadable").requireBundle(),d("WAWebGroupInviteLinkDrawerLoadable").requireBundle(),d("WAWebStatusFlowLoadable").requireBundle(),d("WAWebStatusQuotedFlowLoadable").requireBundle(),d("WAWebContactMsgInfoFlowLoadable").requireBundle(),d("WAWebSendLogsPopupLoadable").requireBundle(),d("WAWebGroupsV4InviteFlowLoadable").requireBundle(),d("WAWebArchivedFlowLoadable").requireBundle(),d("WAWebLottieAnimationLoadable").requireBundle()];c("gkx")("26258")||a.push(b("cr:6004")==null?void 0:b("cr:6004").requireBundle(),b("cr:6003")==null?void 0:b("cr:6003").requireBundle());a.push(d("WAWebManageCommunityGroupsFlowLoadable").requireBundle(),d("WAWebCommunityFlowLoadable").requireBundle());d("WAWebCommunityGatingUtils").communityAdminPromotionOneTimePromptEnabled()&&a.push(d("WAWebCommunityAdminPromotionNotificationFlowLoadable").requireBundle());d("WAWebABProps").getABPropConfigValue("contextual_banner_enabled")&&a.push(d("WAWebContextualBannerWrapperLoadable").requireBundle());yield h.all(a)}catch(a){d("WALogger").WARN(i(),a.stack)}});return j.apply(this,arguments)}g["default"]=a}),98);
__d("WAWebWamCpuStat",[],(function(a,b,c,d,e,f){function a(){return}f.startCpuWamStat=a}),66);
__d("WAWebWebcLoginWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({WebcLogin:[1664,{webcBrowserNetworkType:[14,a.TYPES.STRING],webcBrowserStorageQuotaBytes:[15,a.TYPES.INTEGER],webcBrowserStorageQuotaUsedBytes:[16,a.TYPES.INTEGER],webcLoginT:[3,a.TYPES.TIMER],webcPersistentLoginEnabled:[17,a.TYPES.BOOLEAN],webcQrCodes:[1,a.TYPES.INTEGER],webcQrLoadT:[2,a.TYPES.TIMER],webcSyncChatCount:[8,a.TYPES.INTEGER],webcSyncChatSize:[10,a.TYPES.INTEGER],webcSyncChatT:[9,a.TYPES.TIMER],webcSyncContactCount:[11,a.TYPES.INTEGER],webcSyncContactSize:[13,a.TYPES.INTEGER],webcSyncContactT:[12,a.TYPES.TIMER],webcSyncMessageCount:[5,a.TYPES.INTEGER],webcSyncMessageSize:[7,a.TYPES.INTEGER],webcSyncMessageT:[6,a.TYPES.TIMER],webcSyncT:[4,a.TYPES.TIMER]},[1,1,1],"regular"]},{WebcLogin:[]});g.WebcLoginWamEvent=b}),98);
__d("WAWebWamLoginReporter",["WALogger","WAStorageEstimator","WAWebChatCollection","WAWebCmd","WAWebCollectionConstants","WAWebContactCollection","WAWebEventEmitter","WAWebMsgCollection","WAWebNetworkType","WAWebStreamModel","WAWebWamQrCodeCount","WAWebWebcLoginWamEvent"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["One or more of the login timings was not logged: "]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[wam] Error committing login event"]);i=function(){return a};return a}function j(){return Math.floor(window.performance.now())}var k=function(b){babelHelpers.inheritsLoose(a,b);function a(){var a,c;c=b.call(this)||this;c.timings={chatSync:void 0,contactSync:void 0,endSync:void 0,msgSync:void 0,startSync:void 0};c.data={webcPersistentLoginEnabled:!1,webcQrCodes:0,webcSyncMessageCount:0,webcSyncMessageSize:0};if(!((a=window.performance)==null?void 0:a.now))return babelHelpers.assertThisInitialized(c);c.init();return c}var e=a.prototype;e.init=function(){this.timings.startSync=d("WAWebStreamModel").Stream.lastSyncStart,this.listenTo(d("WAWebStreamModel").Stream,"change:mode",this.changeStreamMode),this.listenTo(d("WAWebChatCollection").ChatCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,this._handleChatSync),this.listenTo(d("WAWebContactCollection").ContactCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,this._handleContactSync),this.listenTo(d("WAWebMsgCollection").MsgCollection,d("WAWebCollectionConstants").COLLECTION_HAS_SYNCED,this._handleMsgSync),this.listenTo(d("WAWebMsgCollection").MsgCollection,"handle:msg_history",this._handleMsgHistory)};e.changeStreamMode=function(){d("WAWebStreamModel").Stream.mode===d("WAWebStreamModel").StreamMode.SYNCING&&(this.timings.startSync=j(),this.data.webcPersistentLoginEnabled=!0),d("WAWebStreamModel").Stream.mode===d("WAWebStreamModel").StreamMode.MAIN&&(this.timings.endSync=j(),this.maybeLogToWam())};e._handleChatSync=function(a){a.timing!=null?this.data.webcSyncChatT=a.timing:this.timings.chatSync=j(),this.data.webcSyncChatCount=a.count,this.data.webcSyncChatSize=10,this.maybeLogToWam()};e._handleMsgSync=function(a){a&&(this.timings.msgSync=j(),this.data.webcSyncMessageCount+=a.count),this.maybeLogToWam()};e._handleContactSync=function(a){a.timing!=null?this.data.webcSyncContactT=a.timing:this.timings.contactSync=j(),this.data.webcSyncContactCount=a.count,this.maybeLogToWam()};e._handleMsgHistory=function(a){this.data.webcSyncMessageSize+=a.binarySize,this.data.webcSyncMessageCount+=a.count,this.timings.msgSync!=null&&(this.timings.msgSync=j())};e.maybeLogToWam=function(){var a=this,b=this.timings,c=b.contactSync,e=b.msgSync;b=b.chatSync;b=b!=null&&Number.isFinite(b||this.data.webcSyncChatT);c=c!=null&&Number.isFinite(c||this.data.webcSyncContactT);e=Number.isFinite(e);if(!b||!c||!e)return;else if(this._commitPromise)return;this._commitPromise=d("WAStorageEstimator").estimateStorage().then(function(b){b.success?a._commitEvent(b.value):d("WALogger").WARN(i()).devConsole(b.error,a.data)}).then(function(){return a.reset()})};e._commitEvent=function(a){var b=this.timings,e=b.startSync,f=b.endSync,g=b.contactSync,i=b.msgSync;b=b.chatSync;var j=c("WAWebWamQrCodeCount").initialDisplayDate;if(j!=null&&j!==0&&e!=null&&f!=null&&i!=null&&b!=null&&g!=null&&Number.isFinite(j)&&Number.isFinite(e)&&Number.isFinite(f)){this.data.webcQrLoadT=j;this.data.webcQrCodes=c("WAWebWamQrCodeCount").get();this.data.webcLoginT=e-j;this.data.webcSyncT=f-e;this.data.webcSyncMessageT=i-e;this.data.webcSyncChatT||(this.data.webcSyncChatT=b-e);this.data.webcSyncContactT||(this.data.webcSyncContactT=g-e);this.data.webcBrowserNetworkType=d("WAWebNetworkType").getEffectiveNetworkType();a&&(this.data.webcBrowserStorageQuotaBytes=a.quota,this.data.webcBrowserStorageQuotaUsedBytes=a.usage);j=new(d("WAWebWebcLoginWamEvent").WebcLoginWamEvent)(this.data);j.commit()}else d("WALogger").WARN(h()).devConsole(this.timings)};e.reset=function(){this.stopListening(),this.data={webcPersistentLoginEnabled:!1,webcQrCodes:0,webcSyncMessageCount:0,webcSyncMessageSize:0},this.timings={chatSync:void 0,contactSync:void 0,endSync:void 0,msgSync:void 0,startSync:void 0},this._commitPromise=void 0,this.listenToOnce(d("WAWebCmd").Cmd,"logout",this.init)};return a}(c("WAWebEventEmitter"));a=function(){return new k()};g.initialize=a}),98);
__d("WAWebMainWrapper",["WAWebEmojiAssetLoader","WAWebEmojiSetup","WAWebExecApiCmd","WAWebFeatureDetectionSwSupport","WAWebMain.react","WAWebNotificationBackend","WAWebPrefetchLoadables","WAWebProfilePicThumbCollection","WAWebSWBus","WAWebSWBusActions","WAWebUserPrefsGeneral","WAWebWamCpuStat","WAWebWamLoginReporter","WAWebWamMemoryStat","cr:2015","cr:8752","cr:8753","gkx"],(function(a,b,c,d,e,f,g){function a(a){c("gkx")("26258")||(window.Store=b("cr:8753"),window.Debug=Object.assign(b("cr:8752"),window.Debug),b("cr:8752")==null?void 0:b("cr:8752").initialize(),b("cr:2015")==null?void 0:b("cr:2015").init());d("WAWebWamLoginReporter").initialize();d("WAWebWamMemoryStat").startMemoryWamStat();d("WAWebWamCpuStat").startCpuWamStat();c("gkx")("26262")&&(c("WAWebFeatureDetectionSwSupport").supported&&d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.on("change:tag",function(a){var b=navigator.serviceWorker;(b==null?void 0:b.controller)&&!a.tag&&c("WAWebSWBus").request(b.controller,c("WAWebSWBusActions").REMOVE_PP,a.id)["catch"](function(){})}));d("WAWebUserPrefsGeneral").initDailyStatsStartTime();c("WAWebEmojiSetup")(d("WAWebEmojiAssetLoader").getEmojiTypeFromPlatform(a));c("WAWebPrefetchLoadables")();a=b("WAWebMain.react");return{MainComponent:a.MainComponent,hasPending:a.hasPending,notificationBackend:b("WAWebNotificationBackend"),execApiCmd:c("WAWebExecApiCmd")}}g["default"]=a}),98);