[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Download
/
Senam Line Dance Sidoarjo_files
/
[
Home
]
File: P4FUo7uS3kX.js.download
;/*FB_PKG_DELIM*/ __d("MetaVerifiedActiveSubscriberModal.react",["fbt","WAWebBox.react","WAWebConfirmPopup.react","WAWebConnModel","WAWebDetailImage.react","WAWebEmojiText.react","WAWebFbtCommon","WAWebFlex.react","WAWebImg.react","WAWebMetaVerifiedUserActionLogger","WAWebModalManager","WAWebPsaVerifiedBlueIcon.react","WAWebText.react","WAWebThemeContext","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWamEnumMetaVerifiedUserActionAction","WAWebWamEnumMetaVerifiedUserActionReferral","WAWebWamEnumMetaVerifiedUserActionSurface","bx","react","useWAWebLogEventOnce"],(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,b,e,f=d("WAWebThemeContext").useIsDarkTheme(),g=j.jsxs(j.Fragment,{children:[h._(/*BTDS*/"__JHASH__BFGSZOO6KsJ__JHASH__"),j.jsx("br",{}),j.jsx("br",{}),h._(/*BTDS*/"__JHASH__o38DMfUSTFe__JHASH__")]}),i=j.jsx(d("WAWebDetailImage.react").DetailImage,{id:d("WAWebUserPrefsMeUser").getMeUser(),size:88,quality:d("WAWebDetailImage.react").DetailImageQuality.High}),l=j.jsx((a=d("WAWebFlex.react")).FlexItem,{children:j.jsx(d("WAWebEmojiText.react").EmojiText,{text:d("WAWebConnModel").Conn.pushname,ellipsify:!0,titlify:!0})}),m=j.jsx(a.FlexItem,{xstyle:(b=d("WAWebUISpacing")).uiMargin.start2,children:j.jsx(d("WAWebPsaVerifiedBlueIcon.react").PsaVerifiedBlueIcon,{height:20,width:20})});l=[l,m];m=h._(/*BTDS*/"__JHASH___KwS2S83EY8__JHASH__");var n={draggable:!1,style:{width:59.49,height:12}};d("useWAWebLogEventOnce").useLogEventOnce(function(){d("WAWebMetaVerifiedUserActionLogger").logMetaVerifiedModalEvents(d("WAWebWamEnumMetaVerifiedUserActionAction").META_VERIFIED_USER_ACTION_ACTION.VIEW,d("WAWebWamEnumMetaVerifiedUserActionSurface").META_VERIFIED_USER_ACTION_SURFACE.WEB_ACTIVE_SUBSCRIBER_DIALOG,d("WAWebWamEnumMetaVerifiedUserActionReferral").META_VERIFIED_USER_ACTION_REFERRAL.BUSINESS_TOOLS)});return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("Close"),children:j.jsxs(a.FlexColumn,{align:"center",xstyle:[b.uiMargin.vertAuto,b.uiPadding.bottom16],children:[j.jsx((e=d("WAWebBox.react")).Box,{xstyle:[k.headerText,b.uiMargin.horiz8,b.uiMargin.top16,b.uiMargin.bottom8],children:i}),j.jsx(e.Box,{children:j.jsx(a.FlexRow,{children:l})}),j.jsx(e.Box,{xstyle:[k.headerText,b.uiMargin.horiz8,b.uiMargin.top16,b.uiMargin.bottom8],children:j.jsx(d("WAWebText.react").WAWebTextLarge,{children:m})}),j.jsxs(e.Box,{xstyle:[b.uiMargin.horiz8,b.uiMargin.vert8],children:[j.jsx(a.FlexColumn,{children:j.jsx(a.FlexItem,{xstyle:b.uiMargin.bottom8,children:f?j.jsx(c("WAWebImg.react"),babelHelpers["extends"]({src:c("bx").getURL(c("bx")("31849"))},n)):j.jsx(c("WAWebImg.react"),babelHelpers["extends"]({src:c("bx").getURL(c("bx")("31850"))},n))})}),g]})]})})}a.displayName=a.name+" [from "+f.id+"]";g.MetaVerifiedActiveSubscriberModal=a}),226); __d("MetaVerifiedListItem.react",["fbt","MetaVerifiedActiveSubscriberModal.react","MetaVerifiedNonSubscriberModal.react","WAWebContactCollection","WAWebContactGetters","WAWebDrawerButton.react","WAWebMetaVerifiedIcon.react","WAWebMetaVerifiedUserActionLogger","WAWebModalManager","WAWebWamEnumMetaVerifiedUserActionAction","react","useWAWebLogEventOnce"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=function(){var a=d("WAWebContactCollection").ContactCollection.getMeContact();if(a!=null){d("WAWebMetaVerifiedUserActionLogger").logMetaVerifiedEntryPointEvents(d("WAWebWamEnumMetaVerifiedUserActionAction").META_VERIFIED_USER_ACTION_ACTION.CLICK_WEB_META_VERIFIED_BUTTON);a=d("WAWebContactGetters").getShowAsMetaVerified(a);a?d("WAWebModalManager").ModalManager.open(j.jsx(d("MetaVerifiedActiveSubscriberModal.react").MetaVerifiedActiveSubscriberModal,{})):d("WAWebModalManager").ModalManager.open(j.jsx(d("MetaVerifiedNonSubscriberModal.react").MetaVerifiedNonSubscriberModal,{openedFromQuickPromotion:!1}))}};d("useWAWebLogEventOnce").useLogEventOnce(function(){d("WAWebMetaVerifiedUserActionLogger").logMetaVerifiedEntryPointEvents(d("WAWebWamEnumMetaVerifiedUserActionAction").META_VERIFIED_USER_ACTION_ACTION.VIEW_WEB_META_VERIFIED_BUTTON)});return j.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:h._(/*BTDS*/"__JHASH__SafmaTn6QXR__JHASH__"),icon:j.jsx(d("WAWebMetaVerifiedIcon.react").MetaVerifiedIcon,{width:24,height:24}),active:!1,onClick:a,children:h._(/*BTDS*/"__JHASH__y0-qxZRUrZG__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g.MetaVerifiedListItem=a}),226); __d("WAArrayFindNext",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){b=a.findIndex(b);if(b===-1)return void 0;return b>=a.length-1?void 0:a[b+1]}f["default"]=a}),66); __d("WASmaxInGroupsCreateSubGroupSuggestionErrors",["WAResultOrError","WASmaxInGroupsIQErrorBadRequestMixin","WASmaxInGroupsIQErrorFallbackClientMixin","WASmaxInGroupsIQErrorForbiddenMixin","WASmaxInGroupsIQErrorItemNotFoundMixin","WASmaxInGroupsIQErrorNotAcceptableMixin","WASmaxInGroupsIQErrorNotAllowedMixin","WASmaxInGroupsIQErrorRateOverlimitMixin","WASmaxInGroupsIQErrorResourceLimitMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxInGroupsIQErrorForbiddenMixin").parseIQErrorForbiddenMixin(a);if(b.success)return d("WAResultOrError").makeResult({name:"IQErrorForbidden",value:b.value});var c=d("WASmaxInGroupsIQErrorItemNotFoundMixin").parseIQErrorItemNotFoundMixin(a);if(c.success)return d("WAResultOrError").makeResult({name:"IQErrorItemNotFound",value:c.value});var e=d("WASmaxInGroupsIQErrorResourceLimitMixin").parseIQErrorResourceLimitMixin(a);if(e.success)return d("WAResultOrError").makeResult({name:"IQErrorResourceLimit",value:e.value});var f=d("WASmaxInGroupsIQErrorNotAcceptableMixin").parseIQErrorNotAcceptableMixin(a);if(f.success)return d("WAResultOrError").makeResult({name:"IQErrorNotAcceptable",value:f.value});var g=d("WASmaxInGroupsIQErrorRateOverlimitMixin").parseIQErrorRateOverlimitMixin(a);if(g.success)return d("WAResultOrError").makeResult({name:"IQErrorRateOverlimit",value:g.value});var h=d("WASmaxInGroupsIQErrorBadRequestMixin").parseIQErrorBadRequestMixin(a);if(h.success)return d("WAResultOrError").makeResult({name:"IQErrorBadRequest",value:h.value});var i=d("WASmaxInGroupsIQErrorNotAllowedMixin").parseIQErrorNotAllowedMixin(a);if(i.success)return d("WAResultOrError").makeResult({name:"IQErrorNotAllowed",value:i.value});var j=d("WASmaxInGroupsIQErrorFallbackClientMixin").parseIQErrorFallbackClientMixin(a);return j.success?d("WAResultOrError").makeResult({name:"IQErrorFallbackClient",value:j.value}):d("WASmaxParseUtils").errorMixinDisjunction(a,["IQErrorForbidden","IQErrorItemNotFound","IQErrorResourceLimit","IQErrorNotAcceptable","IQErrorRateOverlimit","IQErrorBadRequest","IQErrorNotAllowed","IQErrorFallbackClient"],[b,c,e,f,g,h,i,j])}g.parseCreateSubGroupSuggestionErrors=a}),98); __d("WASmaxInGroupsCreateSubGroupSuggestionResponseClientError",["WAResultOrError","WASmaxInGroupsCreateSubGroupSuggestionErrors","WASmaxInGroupsIQErrorResponseMixin","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;a=d("WASmaxInGroupsIQErrorResponseMixin").parseIQErrorResponseMixin(a,b);if(!a.success)return a;b=d("WASmaxInGroupsCreateSubGroupSuggestionErrors").parseCreateSubGroupSuggestionErrors(c.value);return!b.success?b:d("WAResultOrError").makeResult(babelHelpers["extends"]({},a.value,{errorCreateSubGroupSuggestionErrors:b.value}))}g.parseCreateSubGroupSuggestionResponseClientError=a}),98); __d("WASmaxInGroupsSubGroupSuggestionNotAllowedMixin",["WAResultOrError","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxParseUtils").assertTag(a,"group");if(!b.success)return b;b=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrString,a,"error","405");return!b.success?b:d("WAResultOrError").makeResult({error:b.value})}g.parseSubGroupSuggestionNotAllowedMixin=a}),98); __d("WASmaxInGroupsSubGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup",["WAResultOrError","WASmaxInGroupsSubGroupBadRequestMixin","WASmaxInGroupsSubGroupConflictMixin","WASmaxInGroupsSubGroupNotAuthorizedMixin","WASmaxInGroupsSubGroupNotExistMixin","WASmaxInGroupsSubGroupResourceLimitMixin","WASmaxInGroupsSubGroupServerErrorMixin","WASmaxInGroupsSubGroupSuggestionNotAllowedMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxInGroupsSubGroupNotAuthorizedMixin").parseSubGroupNotAuthorizedMixin(a);if(b.success)return d("WAResultOrError").makeResult({name:"SubGroupNotAuthorized",value:b.value});var c=d("WASmaxInGroupsSubGroupNotExistMixin").parseSubGroupNotExistMixin(a);if(c.success)return d("WAResultOrError").makeResult({name:"SubGroupNotExist",value:c.value});var e=d("WASmaxInGroupsSubGroupConflictMixin").parseSubGroupConflictMixin(a);if(e.success)return d("WAResultOrError").makeResult({name:"SubGroupConflict",value:e.value});var f=d("WASmaxInGroupsSubGroupSuggestionNotAllowedMixin").parseSubGroupSuggestionNotAllowedMixin(a);if(f.success)return d("WAResultOrError").makeResult({name:"SubGroupSuggestionNotAllowed",value:f.value});var g=d("WASmaxInGroupsSubGroupResourceLimitMixin").parseSubGroupResourceLimitMixin(a);if(g.success)return d("WAResultOrError").makeResult({name:"SubGroupResourceLimit",value:g.value});var h=d("WASmaxInGroupsSubGroupBadRequestMixin").parseSubGroupBadRequestMixin(a);if(h.success)return d("WAResultOrError").makeResult({name:"SubGroupBadRequest",value:h.value});var i=d("WASmaxInGroupsSubGroupServerErrorMixin").parseSubGroupServerErrorMixin(a);return i.success?d("WAResultOrError").makeResult({name:"SubGroupServerError",value:i.value}):d("WASmaxParseUtils").errorMixinDisjunction(a,["SubGroupNotAuthorized","SubGroupNotExist","SubGroupConflict","SubGroupSuggestionNotAllowed","SubGroupResourceLimit","SubGroupBadRequest","SubGroupServerError"],[b,c,e,f,g,h,i])}g.parseSubGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup=a}),98); __d("WASmaxInGroupsCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess",["WAResultOrError","WASmaxInGroupsIQResultResponseMixin","WASmaxInGroupsSubGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup","WASmaxParseJid","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"group");if(!b.success)return b;b=d("WASmaxParseJid").attrGroupJid(a,"jid");if(!b.success)return b;a=d("WASmaxInGroupsSubGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup").parseSubGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup(a);return d("WAResultOrError").makeResult({jid:b.value,subGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup:a.success?a.value:null})}function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"sub_group_suggestion");if(!c.success)return c;a=d("WASmaxInGroupsIQResultResponseMixin").parseIQResultResponseMixin(a,b);if(!a.success)return a;b=d("WASmaxParseUtils").mapChildrenWithTag(c.value,"group",1,1e3,h);return!b.success?b:d("WAResultOrError").makeResult(babelHelpers["extends"]({},a.value,{subGroupSuggestionGroup:b.value}))}g.parseCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccessSubGroupSuggestionGroup=h;g.parseCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess=a}),98); __d("WASmaxInGroupsCreateSubGroupSuggestionResponseNewGroupSuggestionSuccess",["WAResultOrError","WASmaxParseJid","WASmaxParseReference","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"description");if(!b.success)return b;b=d("WASmaxParseUtils").optionalLiteral(d("WASmaxParseUtils").attrString,a,"error","406");return!b.success?b:d("WAResultOrError").makeResult({error:b.value})}function a(a,b){var c=d("WASmaxParseUtils").assertTag(a,"iq");if(!c.success)return c;c=d("WASmaxParseUtils").flattenedChildWithTag(a,"sub_group_suggestion");if(!c.success)return c;var e=d("WASmaxParseUtils").optionalChildWithTag(c.value,"description",h);if(!e.success)return e;var f=d("WASmaxParseReference").attrStringFromReference(b,["to"]);if(!f.success)return f;f=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrString,a,"from",f.value);if(!f.success)return f;f=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrString,a,"type","result");if(!f.success)return f;b=d("WASmaxParseReference").attrStringFromReference(b,["id"]);if(!b.success)return b;a=d("WASmaxParseUtils").literal(d("WASmaxParseUtils").attrString,a,"id",b.value);if(!a.success)return a;b=d("WASmaxParseJid").attrGroupJid(c.value,"jid");if(!b.success)return b;a=d("WASmaxParseJid").attrUserJid(c.value,"creator");if(!a.success)return a;c=d("WASmaxParseUtils").attrIntRange(c.value,"creation",0,void 0);return!c.success?c:d("WAResultOrError").makeResult({type:f.value,subGroupSuggestionJid:b.value,subGroupSuggestionCreator:a.value,subGroupSuggestionCreation:c.value,subGroupSuggestionDescription:e.value})}g.parseCreateSubGroupSuggestionResponseNewGroupSuggestionSuccessSubGroupSuggestionDescription=h;g.parseCreateSubGroupSuggestionResponseNewGroupSuggestionSuccess=a}),98); __d("WASmaxInGroupsCreateSubGroupSuggestionResponseServerError",["WASmaxInGroupsBaseServerErrorMixin","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("WASmaxInGroupsBaseServerErrorMixin").parseBaseServerErrorMixin(a,b);return!c.success?c:c}g.parseCreateSubGroupSuggestionResponseServerError=a}),98); __d("WASmaxOutGroupsCreateSubGroupSuggestionSuggestionForExistingGroupsMixin",["WASmaxChildren","WASmaxJsx","WASmaxMixins","WAWap"],(function(a,b,c,d,e,f,g){function h(a){var b=a.hasHiddenGroup;a=a.groupJid;a=d("WASmaxJsx").smax("group",{jid:d("WAWap").GROUP_JID(a)},d("WASmaxChildren").HAS_OPTIONAL_CHILD(i,b));return a}function i(){var a=d("WASmaxJsx").smax("hidden_group",null);return a}function j(a){a=a.groupArgs;a=d("WASmaxJsx").smax("sub_group_suggestion",null,d("WASmaxChildren").REPEATED_CHILD(h,a,1,1e3));return a}function a(a,b){b=j(b);return d("WASmaxMixins").mergeStanzas(a,b)}g.makeCreateSubGroupSuggestionSuggestionForExistingGroupsGroup=h;g.makeCreateSubGroupSuggestionSuggestionForExistingGroupsGroupHiddenGroup=i;g.mergeCreateSubGroupSuggestionSuggestionForExistingGroupsMixin=a}),98); __d("WASmaxOutGroupsCreateSubGroupSuggestionSuggestionForNewGroupMixin",["WASmaxChildren","WASmaxJsx","WASmaxMixins","WASmaxOutGroupsGroupMemberAddModeMixin","WASmaxOutGroupsMembershipApprovalGroupJoinModeMixin"],(function(a,b,c,d,e,f,g){function h(a){a=a.bodyElementValue;a=d("WASmaxJsx").smax("description",null,d("WASmaxJsx").smax("body",null,a));return a}function i(){var a=d("WASmaxJsx").smax("locked",null);return a}function j(){var a=d("WASmaxJsx").smax("announcement",null);return a}function k(){var a=d("WASmaxJsx").smax("hidden_group",null);return a}function l(a){a=d("WASmaxOutGroupsMembershipApprovalGroupJoinModeMixin").mergeMembershipApprovalGroupJoinModeMixin(d("WASmaxJsx").smax("membership_approval_mode",null),a);return a}function m(a){var b=a.descriptionArgs,c=a.hasLocked,e=a.hasAnnouncement,f=a.hasHiddenGroup,g=a.membershipApprovalModeArgs,m=a.groupMemberAddModeMixinArgs;a=a.subjectElementValue;b=d("WASmaxMixins").optionalMerge(d("WASmaxOutGroupsGroupMemberAddModeMixin").mergeGroupMemberAddModeMixin,d("WASmaxJsx").smax("sub_group_suggestion",null,d("WASmaxJsx").smax("subject",null,a),(a=d("WASmaxChildren")).OPTIONAL_CHILD(h,b),a.HAS_OPTIONAL_CHILD(i,c),a.HAS_OPTIONAL_CHILD(j,e),a.HAS_OPTIONAL_CHILD(k,f),a.OPTIONAL_CHILD(l,g)),m);return b}function a(a,b){b=m(b);return d("WASmaxMixins").mergeStanzas(a,b)}g.makeCreateSubGroupSuggestionSuggestionForNewGroupDescription=h;g.makeCreateSubGroupSuggestionSuggestionForNewGroupLocked=i;g.makeCreateSubGroupSuggestionSuggestionForNewGroupAnnouncement=j;g.makeCreateSubGroupSuggestionSuggestionForNewGroupHiddenGroup=k;g.makeCreateSubGroupSuggestionSuggestionForNewGroupMembershipApprovalMode=l;g.mergeCreateSubGroupSuggestionSuggestionForNewGroupMixin=a}),98); __d("WASmaxOutGroupsSuggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroup",["WASmaxMixinGroupExhaustiveError","WASmaxOutGroupsCreateSubGroupSuggestionSuggestionForExistingGroupsMixin","WASmaxOutGroupsCreateSubGroupSuggestionSuggestionForNewGroupMixin"],(function(a,b,c,d,e,f,g){function a(a,b){if(b.createSubGroupSuggestionSuggestionForNewGroup)return d("WASmaxOutGroupsCreateSubGroupSuggestionSuggestionForNewGroupMixin").mergeCreateSubGroupSuggestionSuggestionForNewGroupMixin(a,b.createSubGroupSuggestionSuggestionForNewGroup);if(b.createSubGroupSuggestionSuggestionForExistingGroups)return d("WASmaxOutGroupsCreateSubGroupSuggestionSuggestionForExistingGroupsMixin").mergeCreateSubGroupSuggestionSuggestionForExistingGroupsMixin(a,b.createSubGroupSuggestionSuggestionForExistingGroups);throw new(d("WASmaxMixinGroupExhaustiveError").SmaxMixinGroupExhaustiveError)()}g.mergeSuggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroup=a}),98); __d("WASmaxOutGroupsCreateSubGroupSuggestionRequest",["WASmaxJsx","WASmaxOutGroupsBaseSetGroupMixin","WASmaxOutGroupsSuggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroup"],(function(a,b,c,d,e,f,g){function a(a){var b=a.suggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroupArgs;b=d("WASmaxOutGroupsBaseSetGroupMixin").mergeBaseSetGroupMixin(d("WASmaxJsx").smax("iq",null,d("WASmaxOutGroupsSuggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroup").mergeSuggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroup(d("WASmaxJsx").smax("sub_group_suggestion",null),b)),a);return b}g.makeCreateSubGroupSuggestionRequest=a}),98); __d("WASmaxGroupsCreateSubGroupSuggestionRPC",["WAComms","WASmaxInGroupsCreateSubGroupSuggestionResponseClientError","WASmaxInGroupsCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess","WASmaxInGroupsCreateSubGroupSuggestionResponseNewGroupSuggestionSuccess","WASmaxInGroupsCreateSubGroupSuggestionResponseServerError","WASmaxOutGroupsCreateSubGroupSuggestionRequest","WASmaxParsingFailure","WASmaxRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,b){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=d("WASmaxOutGroupsCreateSubGroupSuggestionRequest").makeCreateSubGroupSuggestionRequest(a);b=(yield d("WAComms").sendSmaxStanza(a,b));var c=d("WASmaxInGroupsCreateSubGroupSuggestionResponseNewGroupSuggestionSuccess").parseCreateSubGroupSuggestionResponseNewGroupSuggestionSuccess(b,a);if(c.success)return{name:"CreateSubGroupSuggestionResponseNewGroupSuggestionSuccess",value:c.value};var e=d("WASmaxInGroupsCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess").parseCreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess(b,a);if(e.success)return{name:"CreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess",value:e.value};var f=d("WASmaxInGroupsCreateSubGroupSuggestionResponseClientError").parseCreateSubGroupSuggestionResponseClientError(b,a);if(f.success)return{name:"CreateSubGroupSuggestionResponseClientError",value:f.value};b=d("WASmaxInGroupsCreateSubGroupSuggestionResponseServerError").parseCreateSubGroupSuggestionResponseServerError(b,a);if(b.success)return{name:"CreateSubGroupSuggestionResponseServerError",value:b.value};throw new(d("WASmaxParsingFailure").SmaxParsingFailure)(d("WASmaxRpcUtils").errorMessageRpcParsing("CreateSubGroupSuggestion",{NewGroupSuggestionSuccess:c,ExistingGroupsSuggestionSuccess:e,ClientError:f,ServerError:b}))});return h.apply(this,arguments)}g.sendCreateSubGroupSuggestionRPC=a}),98); __d("WASmaxInGroupsGetLinkedGroupsParticipantsClientErrors",["WAResultOrError","WASmaxInGroupsIQErrorBadRequestMixin","WASmaxInGroupsIQErrorItemNotFoundMixin","WASmaxInGroupsIQErrorNotAuthorizedMixin","WASmaxInGroupsIQErrorRateOverlimitMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function a(a){var b=d("WASmaxInGroupsIQErrorBadRequestMixin").parseIQErrorBadRequestMixin(a);if(b.success)return d("WAResultOrError").makeResult({name:"IQErrorBadRequest",value:b.value});var c=d("WASmaxInGroupsIQErrorItemNotFoundMixin").parseIQErrorItemNotFoundMixin(a);if(c.success)return d("WAResultOrError").makeResult({name:"IQErrorItemNotFound",value:c.value});var e=d("WASmaxInGroupsIQErrorNotAuthorizedMixin").parseIQErrorNotAuthorizedMixin(a);if(e.success)return d("WAResultOrError").makeResult({name:"IQErrorNotAuthorized",value:e.value});var f=d("WASmaxInGroupsIQErrorRateOverlimitMixin").parseIQErrorRateOverlimitMixin(a);return f.success?d("WAResultOrError").makeResult({name:"IQErrorRateOverlimit",value:f.value}):d("WASmaxParseUtils").errorMixinDisjunction(a,["IQErrorBadRequest","IQErrorItemNotFound","IQErrorNotAuthorized","IQErrorRateOverlimit"],[b,c,e,f])}g.parseGetLinkedGroupsParticipantsClientErrors=a}),98); __d("WASmaxInGroupsGetLinkedGroupsParticipantsResponseClientError",["WAResultOrError","WASmaxInGroupsGetLinkedGroupsParticipantsClientErrors","WASmaxInGroupsIQErrorResponseMixin","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;a=d("WASmaxInGroupsIQErrorResponseMixin").parseIQErrorResponseMixin(a,b);if(!a.success)return a;b=d("WASmaxInGroupsGetLinkedGroupsParticipantsClientErrors").parseGetLinkedGroupsParticipantsClientErrors(c.value);return!b.success?b:d("WAResultOrError").makeResult(babelHelpers["extends"]({},a.value,{errorGetLinkedGroupsParticipantsClientErrors:b.value}))}g.parseGetLinkedGroupsParticipantsResponseClientError=a}),98); __d("WASmaxInGroupsGetLinkedGroupsParticipantsResponseServerError",["WASmaxInGroupsBaseServerErrorMixin","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("WASmaxInGroupsBaseServerErrorMixin").parseBaseServerErrorMixin(a,b);return!c.success?c:c}g.parseGetLinkedGroupsParticipantsResponseServerError=a}),98); __d("WASmaxInGroupsGetLinkedGroupsParticipantsResponseSuccess",["WAResultOrError","WASmaxInGroupsIQResultResponseMixin","WASmaxInGroupsParticipantWithJidMixin","WASmaxParseUtils"],(function(a,b,c,d,e,f,g){function h(a){var b=d("WASmaxParseUtils").assertTag(a,"participant");if(!b.success)return b;b=d("WASmaxInGroupsParticipantWithJidMixin").parseParticipantWithJidMixin(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_groups_participants");if(!c.success)return c;a=d("WASmaxInGroupsIQResultResponseMixin").parseIQResultResponseMixin(a,b);if(!a.success)return a;b=d("WASmaxParseUtils").mapChildrenWithTag(c.value,"participant",1,19999,h);return!b.success?b:d("WAResultOrError").makeResult(babelHelpers["extends"]({},a.value,{linkedGroupsParticipantsParticipant:b.value}))}g.parseGetLinkedGroupsParticipantsResponseSuccessLinkedGroupsParticipantsParticipant=h;g.parseGetLinkedGroupsParticipantsResponseSuccess=a}),98); __d("WASmaxOutGroupsGetLinkedGroupsParticipantsRequest",["WASmaxJsx","WASmaxOutGroupsBaseGetGroupMixin"],(function(a,b,c,d,e,f,g){function a(a){a=d("WASmaxOutGroupsBaseGetGroupMixin").mergeBaseGetGroupMixin(d("WASmaxJsx").smax("iq",null,d("WASmaxJsx").smax("linked_groups_participants",null)),a);return a}g.makeGetLinkedGroupsParticipantsRequest=a}),98); __d("WASmaxGroupsGetLinkedGroupsParticipantsRPC",["WAComms","WASmaxInGroupsGetLinkedGroupsParticipantsResponseClientError","WASmaxInGroupsGetLinkedGroupsParticipantsResponseServerError","WASmaxInGroupsGetLinkedGroupsParticipantsResponseSuccess","WASmaxOutGroupsGetLinkedGroupsParticipantsRequest","WASmaxParsingFailure","WASmaxRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,b){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=d("WASmaxOutGroupsGetLinkedGroupsParticipantsRequest").makeGetLinkedGroupsParticipantsRequest(a);b=(yield d("WAComms").sendSmaxStanza(a,b));var c=d("WASmaxInGroupsGetLinkedGroupsParticipantsResponseSuccess").parseGetLinkedGroupsParticipantsResponseSuccess(b,a);if(c.success)return{name:"GetLinkedGroupsParticipantsResponseSuccess",value:c.value};var e=d("WASmaxInGroupsGetLinkedGroupsParticipantsResponseClientError").parseGetLinkedGroupsParticipantsResponseClientError(b,a);if(e.success)return{name:"GetLinkedGroupsParticipantsResponseClientError",value:e.value};b=d("WASmaxInGroupsGetLinkedGroupsParticipantsResponseServerError").parseGetLinkedGroupsParticipantsResponseServerError(b,a);if(b.success)return{name:"GetLinkedGroupsParticipantsResponseServerError",value:b.value};throw new(d("WASmaxParsingFailure").SmaxParsingFailure)(d("WASmaxRpcUtils").errorMessageRpcParsing("GetLinkedGroupsParticipants",{Success:c,ClientError:e,ServerError:b}))});return h.apply(this,arguments)}g.sendGetLinkedGroupsParticipantsRPC=a}),98); __d("WAWebAccountBoxIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="account-box";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=25;(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 25 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:"M3.5 5V19C3.5 20.1 4.39 21 5.5 21H19.5C20.6 21 21.5 20.1 21.5 19V5C21.5 3.9 20.6 3 19.5 3H5.5C4.39 3 3.5 3.9 3.5 5ZM15.5 9C15.5 10.66 14.16 12 12.5 12C10.84 12 9.5 10.66 9.5 9C9.5 7.34 10.84 6 12.5 6C14.16 6 15.5 7.34 15.5 9ZM6.5 17C6.5 15 10.5 13.9 12.5 13.9C14.5 13.9 18.5 15 18.5 17V18H6.5V17Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.AccountBoxIcon=a}),98); __d("WAWebSettingsFBT",["fbt","WAWebABPropsSaga","WAWebBizGatingUtils","WAWebConnModel"],(function(a,b,c,d,e,f,g,h){function a(){return h._(/*BTDS*/"__JHASH__q3IK9jSEini__JHASH__")}function b(){return h._(/*BTDS*/"__JHASH__y3ug-5BU7Dp__JHASH__")}function c(){return h._(/*BTDS*/"__JHASH__xKwkQoiP5CC__JHASH__")}function e(){return h._(/*BTDS*/"__JHASH__5opTJmxV078__JHASH__")}function f(){return h._(/*BTDS*/"__JHASH__YfceafUUdyR__JHASH__")}function i(){return h._(/*BTDS*/"__JHASH__vovThovEINq__JHASH__")}function j(){return h._(/*BTDS*/"__JHASH__OwExblleKGE__JHASH__")}function k(){return h._(/*BTDS*/"__JHASH__Of4WyyUPrsO__JHASH__")}function l(){return h._(/*BTDS*/"__JHASH__26SdK0iYF8g__JHASH__")}function m(){return h._(/*BTDS*/"__JHASH__wacGdw3C9LP__JHASH__")}function n(){return h._(/*BTDS*/"__JHASH__P9p_pI-scQj__JHASH__")}function o(){return h._(/*BTDS*/"__JHASH___mei3TzRpwR__JHASH__")}function p(){return h._(/*BTDS*/"__JHASH__WqSIoSguaew__JHASH__")}function q(){return h._(/*BTDS*/"__JHASH__xPLWC5U-o2Z__JHASH__")}function r(){return h._(/*BTDS*/"__JHASH__C8E87ZDmagV__JHASH__")}function s(){return h._(/*BTDS*/"__JHASH__D0yB8jT3wvy__JHASH__")}function t(){return h._(/*BTDS*/"__JHASH__xIq7wELk-SU__JHASH__")}function u(){return h._(/*BTDS*/"__JHASH__c8rZa1TuHR-__JHASH__")}function v(){return h._(/*BTDS*/"__JHASH__ZahOl0JcYCd__JHASH__")}function w(){return h._(/*BTDS*/"__JHASH__uF5XX18I7iw__JHASH__")}function x(){return h._(/*BTDS*/"__JHASH__lAaWKvEntWc__JHASH__")}function y(){return h._(/*BTDS*/"__JHASH__C9L1CPaDxbL__JHASH__")}function z(){return h._(/*BTDS*/"__JHASH__4qBAruixDWb__JHASH__")}function A(){return h._(/*BTDS*/"__JHASH__Sau1VGs2hFF__JHASH__")}function B(){return h._(/*BTDS*/"__JHASH__byWv_k9wctX__JHASH__")}function C(){return h._(/*BTDS*/"__JHASH__lfsJ30QD_53__JHASH__")}function D(){return h._(/*BTDS*/"__JHASH__9F2VjfIs4We__JHASH__")}function E(){return h._(/*BTDS*/"__JHASH__W0e-VFbbRgc__JHASH__")}function F(){return h._(/*BTDS*/"__JHASH__EqL_CUWv4E3__JHASH__")}function G(){return h._(/*BTDS*/"__JHASH__EvA_ZQZLcnn__JHASH__")}function H(){return h._(/*BTDS*/"__JHASH__OWuB6-uVr8v__JHASH__")}function I(){return h._(/*BTDS*/"__JHASH__I6kJJc6Qze8__JHASH__")}function J(){return h._(/*BTDS*/"__JHASH__1i-46mdSyeh__JHASH__")}function K(){return h._(/*BTDS*/"__JHASH__PdRCz8D3nlp__JHASH__")}function L(){return h._(/*BTDS*/"__JHASH__300dYQXYxQi__JHASH__")}function M(){return h._(/*BTDS*/"__JHASH__7gix1VarfRb__JHASH__")}function N(){return h._(/*BTDS*/"__JHASH__iqTjV3VZ4ZV__JHASH__")}function O(){return h._(/*BTDS*/"__JHASH__9BuNTV8sDdu__JHASH__")}function P(){return h._(/*BTDS*/"__JHASH__dwL4b83EW1h__JHASH__")}function Q(){return h._(/*BTDS*/"__JHASH__FqG9JbM7zF-__JHASH__")}function R(){return h._(/*BTDS*/"__JHASH__NwLnfAQLNa0__JHASH__")}function S(){return h._(/*BTDS*/"__JHASH__KpN2sBetar8__JHASH__")}function T(){return h._(/*BTDS*/"__JHASH__C4bAKlEm6gl__JHASH__")}function U(){return h._(/*BTDS*/"__JHASH__LFOP-UA-Nh___JHASH__")}function V(){return h._(/*BTDS*/"__JHASH__qot0kAoFoek__JHASH__")}function W(){return h._(/*BTDS*/"__JHASH__osPJqR6TO58__JHASH__")}function X(){return h._(/*BTDS*/"__JHASH__twHuVsAjYWO__JHASH__")}function Y(){return h._(/*BTDS*/"__JHASH__Y3Kggihqgze__JHASH__")}function aa(){return h._(/*BTDS*/"__JHASH__gxOFbpYZwpd__JHASH__")}function ba(){return h._(/*BTDS*/"__JHASH__Rkl_YyAtIo0__JHASH__")}function ca(){return h._(/*BTDS*/"__JHASH__g6xoPhgvrLQ__JHASH__")}function da(){return h._(/*BTDS*/"__JHASH__Ic7uCFVnQpt__JHASH__")}function ea(){return h._(/*BTDS*/"__JHASH__H8uJK4AkGaY__JHASH__")}function fa(){return h._(/*BTDS*/"__JHASH__BPRKyjGnSJI__JHASH__")}function ga(){return h._(/*BTDS*/"__JHASH__4qCqpSWpKW6__JHASH__")}function ha(){return h._(/*BTDS*/"__JHASH__zEf8lwCgo8E__JHASH__")}function ia(){return h._(/*BTDS*/"__JHASH__6hE3wPFfzUs__JHASH__")}function Z(){return h._(/*BTDS*/"__JHASH__mMEt6f2pXy7__JHASH__")}function $(){return h._(/*BTDS*/"__JHASH__x1aXMSCarK2__JHASH__")}function ja(){return d("WAWebABPropsSaga").getChatWithSupportTextEnabled()?$():Z()}function ka(){return h._(/*BTDS*/"__JHASH__5slopn5dY89__JHASH__")}function la(){return d("WAWebConnModel").Conn.isSMB?h._(/*BTDS*/"__JHASH__u1f8oltShkG__JHASH__"):h._(/*BTDS*/"__JHASH__Y63dNXgiqKu__JHASH__")}function ma(){var a=d("WAWebBizGatingUtils").showDataSharingInSettingsAfterCtwaMessageReceived()?h._(/*BTDS*/"__JHASH__HmAWE-I2iba__JHASH__"):h._(/*BTDS*/"__JHASH__IzT52c8fd_f__JHASH__");return a}function na(){return h._(/*BTDS*/"__JHASH__kpzpuA78VjA__JHASH__")}function oa(){return h._(/*BTDS*/"__JHASH__H5A4pVM7h15__JHASH__")}function pa(){return h._(/*BTDS*/"__JHASH__qZ5GbogDG6x__JHASH__")}function qa(){return h._(/*BTDS*/"__JHASH__cRwALx26nRC__JHASH__")}function ra(){return h._(/*BTDS*/"__JHASH__whKIbu40qdL__JHASH__")}function sa(){return h._(/*BTDS*/"__JHASH__auMhFVvuI97__JHASH__")}function ta(){return h._(/*BTDS*/"__JHASH__D7e69gOxNQm__JHASH__")}function ua(){return h._(/*BTDS*/"__JHASH__gLEYSEMEoAd__JHASH__")}g.wallpaperTitle=a;g.requestAccountInfoTitle=b;g.newsletterReportsTitle=c;g.businessToolsTitle=e;g.businessToolsBusinessProfileTitle=f;g.businessToolsCatalogTitle=i;g.businessToolsOrdersTitle=j;g.businessToolsAdvertiseTitle=k;g.businessToolsQuickRepliesTitle=l;g.businessToolsLabelsTitle=m;g.businessToolsHelpCenterTitle=n;g.notificationsTitle=o;g.notificationsSecondaryTitle=p;g.languageAndTimeTitle=q;g.languageHeaderTitle=r;g.languageTitle=s;g.timeFormatTitle=t;g.mediaAutoDownloadTitle=u;g.mediaUploadQualityTitle=v;g.securityTitle=w;g.privacyTitle=x;g.privacySecondaryTitle=y;g.helpTitle=z;g.helpSecondaryTitle=A;g.keyboardShortcutsTitle=B;g.keyboardShortcutsSecondaryTitle=C;g.developerTitle=D;g.developerSecondaryTitle=E;g.developerABPropsTitle=F;g.developerInfraSettingsTitle=G;g.messageNotificationsTitle=H;g.messageNotificationsSubtitle=I;g.showPreviewsTitle=J;g.offlineSyncSubtitle=K;g.outgoingAudioToneSubtitle=L;g.showReactionsTitle=M;g.soundsTitle=N;g.soundsSubtitle=O;g.privacyLastSeenOnlineEnabledTitle=P;g.privacyPersonalInfoHeaderTitle=Q;g.privacyProfilePhotoTitle=R;g.privacyAboutTitle=S;g.privacyTextStatusTitle=T;g.privacyReadReceiptsTitle=U;g.privacyLinkPreviewsTitle=V;g.antiBrigadingTitle=W;g.privacyDMTitle=X;g.privacyStatusPostingTitle=Y;g.privacyDDMTitle=aa;g.privacyGroupsTitle=ba;g.privacyBlockedTitle=ca;g.privacyScreenlockTitle=da;g.themeTitle=ea;g.themeLightLabel=fa;g.themeDarkLabel=ga;g.themeSystemLabel=ha;g.helpCenterTitle=ia;g.contactUsTitle=Z;g.chatWithUsTitle=$;g.chatWithOrContactUsTitle=ja;g.rateTheApp=ka;g.termsTitle=la;g.dataSharingTitle=ma;g.listsTitle=na;g.logoutTitle=oa;g.accountTitle=pa;g.accountSecondaryTitle=qa;g.chatsTitle=ra;g.chatsSecondaryTitle=sa;g.deleteAccountTitle=ta;g.antiBrigadingDescription=ua}),226); __d("WAWebWamEnumSettingsItemType",[],(function(a,b,c,d,e,f){a=Object.freeze({PROFILE:0,BUSINESS_TOOLS:1,ACCOUNT:2,CHATS:3,NOTIFICATIONS:4,DATA_STORAGE_USAGE:5,HELP:6,INVITE_FRIEND:7,STARRED_MESSAGES:8,WHATSAPP_WEB:9,PREMIUM_SUBSCRIPTION:10,PRIVACY:11,SECURITY:12,THEME:13,CHAT_WALLPAPER:14,MEDIA_AUTO_DOWNLOAD:15,REQUEST_ACCOUNT_INFO:16,KEYBOARD_SHORTCUTS:17,DEVELOPER:18,DATA_SHARING:19,DESKTOP_SETTINGS:20,LINKED_DEVICES:21,UNKNOWN:22,QR_CODE:23,DEVICES:24,PROFILE_CARD:25,PRIVACY_CARD:26,CONTACTS_CARD:27,AVATAR:28,PAYMENTS:29,LOGOUT:30,META_VERIFIED:31,TEXT_STATUS:32,THIRD_PARTY:33,IG_BOOKMARK:34,FB_BOOKMARK:35,FAVORITES:36,THREADS_BOOKMARK:37,LISTS:38,PROFILE_LINKS:39,WAFFLE:40});f.SETTINGS_ITEM_TYPE=a}),66); __d("WAWebSettingsHierarchy",["WAWebABProps","WAWebABPropsSaga","WAWebBizGatingUtils","WAWebCommonCTWADataSharing","WAWebCurrentUser","WAWebListsGatingUtils","WAWebSettingsConst","WAWebSettingsFBT","WAWebWamEnumSettingsItemType","cr:1131","cr:17208","cr:687","cr:7288","gkx"],(function(a,b,c,d,e,f,g){f=(f=b("cr:7288"))!=null?f:{};var h=f.ShowNotificationBannerSettingsItem;f=(f=b("cr:1131"))!=null?f:{};var i=f.GeneralSettingsItem,j=f.SystemTraySettingsItem;f=(f=b("cr:17208"))!=null?f:{};var k=f.DeviceSettingsParentItem,l=f.MicrophoneSettingsItem,m=f.WebcamSettingsItem,n=f.AudioOutputSettingsItem;b=(f=b("cr:687"))!=null?f:{};var o=b.TaskbarNotificationSettingsItem;function p(a){a===void 0&&(a=!1);return[{business_tools:["business_tools_business_profile","business_tools_catalog","business_tools_orders","business_tools_advertise","business_tools_quick_replies","business_tools_labels","business_tools_help_center"]},{win_general_settings:["system_tray_setting"]},{account:["security","request_account_info","delete_account"]},{privacy:["wcs_last_seen","wcs_profile_photo","wcs_about_status","wcs_read_receipts","default_message_timer","privacy_groups","privacy_blocked","screen_lock",{calls:["call-silencing","license"]}]},"lists",{chats:["theme","wallpaper","media_auto_download"]},{device_settings:["microphone_setting","webcam_setting","audio_output_setting"]},{notifications:["show_notification_banner","taskbar_notification_settings","message_notifications","show_previews","show_reaction_notifications","sounds","incoming_call_ringtone","mute_incoming_calls"]},"data_sharing",{desktop_settings:["start_on_login"]},{language_and_time:["language","time_format"]},"keyboard_shortcuts",{help:["help_center","contact_us","newsletter_reports","terms"]}].concat(a===!1?["bugnub"]:[],["logout"],a===!0?["divider"]:[],a===!0?["bugnub"]:[],[{developer:["developer_abprops","developer_infra_settings"]}])}var q={step:d("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings,id:"request_account_info",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").requestAccountInfoTitle()).toLowerCase(),title:d("WAWebSettingsFBT").requestAccountInfoTitle,testid:"li-request-account-info",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.REQUEST_ACCOUNT_INFO},r={step:d("WAWebSettingsConst").SettingsSteps.Security,id:"security",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").securityTitle()),title:d("WAWebSettingsFBT").securityTitle,testid:"li-security",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.SECURITY};f={step:d("WAWebSettingsConst").SettingsSteps.DeleteAccount,id:"delete_account",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").deleteAccountTitle()).toLowerCase(),title:d("WAWebSettingsFBT").deleteAccountTitle};var s={step:d("WAWebSettingsConst").SettingsSteps.Wallpaper,id:"wallpaper",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").wallpaperTitle()).toLowerCase(),title:d("WAWebSettingsFBT").wallpaperTitle,testid:"li-wallpaper",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.CHAT_WALLPAPER},t={step:d("WAWebSettingsConst").SettingsSteps.Theme,id:"theme",isAvailable:!0,searchCriteria:[String(d("WAWebSettingsFBT").themeTitle()),String(d("WAWebSettingsFBT").themeLightLabel()),String(d("WAWebSettingsFBT").themeDarkLabel())].join(" ").toLowerCase(),title:d("WAWebSettingsFBT").themeTitle,testid:"li-theme",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.THEME},u={step:d("WAWebSettingsConst").SettingsSteps.MediaAutoDownload,id:"media_auto_download",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").mediaAutoDownloadTitle()).toLowerCase(),title:d("WAWebSettingsFBT").mediaAutoDownloadTitle,testid:"li-media-auto-download",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.MEDIA_AUTO_DOWNLOAD};b={step:d("WAWebSettingsConst").SettingsSteps.MediaUploadQuality,id:"media_upload_quality",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").mediaUploadQualityTitle()).toLowerCase(),title:d("WAWebSettingsFBT").mediaUploadQualityTitle,testid:"li-media-upload-quality"};function a(a){a===void 0&&(a=!1);var b=d("WAWebBizGatingUtils").isBizToolsDrawerEnabled();b=[{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsTitle()),title:d("WAWebSettingsFBT").businessToolsTitle,testid:"li-biz-tools",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.BUSINESS_TOOLS},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_business_profile",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsBusinessProfileTitle()),title:d("WAWebSettingsFBT").businessToolsBusinessProfileTitle},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_catalog",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsCatalogTitle()),title:d("WAWebSettingsFBT").businessToolsCatalogTitle},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_orders",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsOrdersTitle()),title:d("WAWebSettingsFBT").businessToolsOrdersTitle},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_advertise",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsAdvertiseTitle()),title:d("WAWebSettingsFBT").businessToolsAdvertiseTitle},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_quick_replies",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsQuickRepliesTitle()),title:d("WAWebSettingsFBT").businessToolsQuickRepliesTitle},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_labels",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsLabelsTitle()),title:d("WAWebSettingsFBT").businessToolsLabelsTitle},{step:d("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_help_center",isAvailable:b,searchCriteria:String(d("WAWebSettingsFBT").businessToolsHelpCenterTitle()),title:d("WAWebSettingsFBT").businessToolsHelpCenterTitle},h,o,{step:d("WAWebSettingsConst").SettingsSteps.Notifications,id:"notifications",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").notificationsTitle()),title:d("WAWebSettingsFBT").notificationsTitle,secondaryTitle:d("WAWebSettingsFBT").notificationsSecondaryTitle,testid:"li-notifications",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.NOTIFICATIONS},{step:d("WAWebSettingsConst").SettingsSteps.Notifications,id:"message_notifications",isAvailable:!0,title:d("WAWebSettingsFBT").messageNotificationsTitle,searchCriteria:[String(d("WAWebSettingsFBT").messageNotificationsTitle()),String(d("WAWebSettingsFBT").messageNotificationsSubtitle())].join(" ").toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.Notifications,id:"show_previews",isAvailable:!0,title:d("WAWebSettingsFBT").showPreviewsTitle,searchCriteria:String(d("WAWebSettingsFBT").showPreviewsTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.Notifications,id:"show_reaction_notifications",isAvailable:!0,title:d("WAWebSettingsFBT").showReactionsTitle,searchCriteria:String(d("WAWebSettingsFBT").showReactionsTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.Notifications,id:"sounds",isAvailable:!0,title:d("WAWebSettingsFBT").soundsTitle,searchCriteria:[String(d("WAWebSettingsFBT").soundsTitle()),String(d("WAWebSettingsFBT").soundsSubtitle())].join(" ").toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.PrivacySettings,id:"privacy",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").privacyTitle()),title:d("WAWebSettingsFBT").privacyTitle,secondaryTitle:d("WAWebSettingsFBT").privacySecondaryTitle,testid:"settings-drawer-item-privacy",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.PRIVACY},{step:d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditLastSeen,id:"wcs_last_seen",isAvailable:!0,title:d("WAWebSettingsFBT").privacyLastSeenOnlineEnabledTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyLastSeenOnlineEnabledTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditProfilePicture,id:"wcs_profile_photo",isAvailable:!0,title:d("WAWebSettingsFBT").privacyProfilePhotoTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyProfilePhotoTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditAbout,id:"wcs_about_status",isAvailable:!0,title:d("WAWebSettingsFBT").privacyAboutTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyAboutTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.PrivacySettings,id:"wcs_read_receipts",isAvailable:!0,title:d("WAWebSettingsFBT").privacyReadReceiptsTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyReadReceiptsTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.DefaultEphemerality,id:"default_message_timer",isAvailable:!0,title:d("WAWebSettingsFBT").privacyDDMTitle,searchCriteria:[String(d("WAWebSettingsFBT").privacyDDMTitle()),String(d("WAWebSettingsFBT").privacyDMTitle())].join(" ").toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditGroupAdd,id:"privacy_groups",isAvailable:!0,title:d("WAWebSettingsFBT").privacyGroupsTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyGroupsTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.Blocked,id:"privacy_blocked",isAvailable:!0,title:d("WAWebSettingsFBT").privacyBlockedTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyBlockedTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.ScreenLock,id:"screen_lock",isAvailable:!0,title:d("WAWebSettingsFBT").privacyScreenlockTitle,searchCriteria:String(d("WAWebSettingsFBT").privacyScreenlockTitle()).toLowerCase()},{step:d("WAWebSettingsConst").SettingsSteps.DataSharing,id:"data_sharing",isAvailable:c("WAWebCommonCTWADataSharing").shouldDisplayDataSharingSetting(),searchCriteria:String(d("WAWebSettingsFBT").dataSharingTitle()).toLowerCase(),title:d("WAWebSettingsFBT").dataSharingTitle,testid:"li-data-sharing",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DATA_SHARING},{step:d("WAWebSettingsConst").SettingsSteps.Lists,id:"lists",isAvailable:d("WAWebListsGatingUtils").shouldListsSettingsItemBeVisible(),searchCriteria:String(d("WAWebSettingsFBT").listsTitle()).toLowerCase(),title:d("WAWebSettingsFBT").listsTitle,testid:"li-lists",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.LISTS},{step:d("WAWebSettingsConst").SettingsSteps.LanguageAndTime,id:"language_and_time",isAvailable:d("WAWebABProps").getABPropConfigValue("language_and_time_web"),searchCriteria:String(d("WAWebSettingsFBT").languageAndTimeTitle()).toLowerCase(),title:d("WAWebSettingsFBT").languageAndTimeTitle,testid:"li-language-and-time"},{step:d("WAWebSettingsConst").SettingsSteps.Language,id:"language",isAvailable:d("WAWebABProps").getABPropConfigValue("language_and_time_web"),searchCriteria:String(d("WAWebSettingsFBT").languageTitle()).toLowerCase(),title:d("WAWebSettingsFBT").languageTitle,testid:"li-language"},{step:d("WAWebSettingsConst").SettingsSteps.TimeFormat,id:"time_format",isAvailable:d("WAWebABProps").getABPropConfigValue("language_and_time_web"),searchCriteria:String(d("WAWebSettingsFBT").timeFormatTitle()).toLowerCase(),title:d("WAWebSettingsFBT").timeFormatTitle,testid:"li-time-format"},r,t,s,u,q,{step:d("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts,id:"keyboard_shortcuts",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").keyboardShortcutsTitle()).toLowerCase(),title:d("WAWebSettingsFBT").keyboardShortcutsTitle,secondaryTitle:d("WAWebSettingsFBT").keyboardShortcutsSecondaryTitle,testid:"li-keyboard-shortcuts",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.KEYBOARD_SHORTCUTS},{step:d("WAWebSettingsConst").SettingsSteps.Help,id:"help",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").helpTitle()).toLowerCase(),title:d("WAWebSettingsFBT").helpTitle,secondaryTitle:d("WAWebSettingsFBT").helpSecondaryTitle,testid:"li-help",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.HELP},{step:d("WAWebSettingsConst").SettingsSteps.Help,id:"help_center",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").helpCenterTitle()).toLowerCase(),title:d("WAWebSettingsFBT").helpCenterTitle},{step:d("WAWebSettingsConst").SettingsSteps.Help,id:"contact_us",isAvailable:!0,searchCriteria:String(d("WAWebABPropsSaga").getChatWithSupportTextEnabled()?d("WAWebSettingsFBT").chatWithUsTitle():d("WAWebSettingsFBT").contactUsTitle()),title:d("WAWebABPropsSaga").getChatWithSupportTextEnabled()?d("WAWebSettingsFBT").chatWithUsTitle:d("WAWebSettingsFBT").contactUsTitle},{step:d("WAWebSettingsConst").SettingsSteps.NewsletterReports,id:"newsletter_reports",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").newsletterReportsTitle()).toLowerCase(),title:d("WAWebSettingsFBT").newsletterReportsTitle,testid:"li-newsletter-reports"},{step:d("WAWebSettingsConst").SettingsSteps.Help,id:"terms",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").termsTitle()).toLowerCase(),title:d("WAWebSettingsFBT").termsTitle},{step:d("WAWebSettingsConst").SettingsSteps.DeleteAccount,id:"delete_account",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").deleteAccountTitle()).toLowerCase(),title:d("WAWebSettingsFBT").deleteAccountTitle},{step:d("WAWebSettingsConst").SettingsSteps.Bugnub,id:"bugnub",isAvailable:d("WAWebCurrentUser").isEmployee(),searchCriteria:"Report a bug",title:function(){return"Report a bug (internal)"},secondaryTitle:function(){return"Tell us what went wrong"}}].concat(c("gkx")("26258")?[]:[{step:d("WAWebSettingsConst").SettingsSteps.Developer,id:"developer",isAvailable:!c("gkx")("26258"),searchCriteria:String(d("WAWebSettingsFBT").developerTitle()),title:d("WAWebSettingsFBT").developerTitle,secondaryTitle:d("WAWebSettingsFBT").developerSecondaryTitle,testid:"li-developer",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0},{step:d("WAWebSettingsConst").SettingsSteps.DeveloperABProps,id:"developer_abprops",isAvailable:!c("gkx")("26258"),searchCriteria:String(d("WAWebSettingsFBT").developerABPropsTitle()),title:d("WAWebSettingsFBT").developerABPropsTitle,testid:"li-developer-abprops",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0},{step:d("WAWebSettingsConst").SettingsSteps.DeveloperInfraSettings,id:"developer_infra_settings",isAvailable:!c("gkx")("26258"),searchCriteria:String(d("WAWebSettingsFBT").developerInfraSettingsTitle()),title:d("WAWebSettingsFBT").developerInfraSettingsTitle,testid:"li-developer-infra",wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0}],[{step:d("WAWebSettingsConst").SettingsSteps.Logout,id:"logout",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").logoutTitle()),title:d("WAWebSettingsFBT").logoutTitle,wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.LOGOUT,testid:"li-logout",color:"critical"},{step:d("WAWebSettingsConst").SettingsSteps.Account,id:"account",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").accountTitle()),title:d("WAWebSettingsFBT").accountTitle,secondaryTitle:d("WAWebSettingsFBT").accountSecondaryTitle,wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.ACCOUNT,testid:"li-account"},{step:d("WAWebSettingsConst").SettingsSteps.Chats,id:"chats",isAvailable:!0,searchCriteria:String(d("WAWebSettingsFBT").chatsTitle()),title:d("WAWebSettingsFBT").chatsTitle,secondaryTitle:d("WAWebSettingsFBT").chatsSecondaryTitle,wamName:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.CHATS,testid:"li-chats"},{step:d("WAWebSettingsConst").SettingsSteps.Divider,id:"divider",isAvailable:!0,title:function(){return"divider"},testid:"li-divider"},i,j,k,l,m,n]).filter(Boolean);var e=b.reduce(function(a,b){a.set(b.id,b);return a},new Map()),f=[];function g(a,b){for(b of b)if(typeof b==="string"){var c=e.get(b);c!=null&&(c.parentId=a,f.push(c))}else for(c of Object.getOwnPropertyNames(b)){var d=e.get(c);d!=null&&(d.parentId=a,f.push(d));g(c,b[c])}}g(null,p(a));return f}function e(a){var b={};return a.map(function(a){a=babelHelpers["extends"]({},a);b[a.id]==null&&(b[a.id]=a);a.searchCriteria!=null&&(a.searchCriteria=a.searchCriteria.toLowerCase());a.parentId!=null&&(a.parent=b[a.parentId],a.parent!=null&&a.parent.searchCriteria!=null&&(a.searchCriteria==null&&(a.searchCriteria=""),a.parent.searchCriteria!=null&&(a.searchCriteria+=a.parent.searchCriteria)));return a})}g.RequestAccountInfoSettingsItem=q;g.SecuritySettingsItem=r;g.DeleteAccountSettingsItem=f;g.ThemeSettingsItem=t;g.MediaAutoDownloadSettingsItem=u;g.MediaUploadQualitySettingsItem=b;g.getSettingsSearchHierarchy=a;g.buildSearchableHierarchy=e}),98); __d("WAWebBugnubIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="bugnub";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=13;m=12;(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 12 13",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"currentColor",children:[j.jsx("title",{children:k}),j.jsxs("g",{fill:"none",fillRule:"evenodd",transform:"translate(-450 -1073)",children:[j.jsx("path",{fill:"currentColor",d:"M99.36475 920.88575C99.18725 920.75025 99.03675 920.51225 99.03675 920.08525 99.03675 920.02325 99.02175 919.96575 99.00125 919.91125 98.93025 919.72175 98.75075 919.58525 98.53675 919.58525 98.26025 919.58525 98.03675 919.80925 98.03675 920.08525 98.03675 920.48875 98.12725 920.81375 98.26675 921.08325 98.31225 921.17075 98.35925 921.25725 98.41525 921.33225 98.60375 921.58375 98.84425 921.75675 99.09625 921.87475 99.03775 922.21475 99.00725 922.56725 99.00325 922.92775 98.54025 923.06475 97.96075 923.35625 97.57475 923.98075 97.42975 924.21575 97.50175 924.52375 97.73675 924.66925 97.81875 924.72025 97.90975 924.74425 97.99975 924.74425 98.16675 924.74425 98.33075 924.66025 98.42525 924.50725 98.59575 924.23225 98.84075 924.06825 99.07425 923.96625 99.13725 924.39625 99.23875 924.80925 99.37775 925.19825 98.95675 925.47575 98.57325 926.02075 98.57325 927.01625 98.57325 927.29225 98.79675 927.51625 99.07325 927.51625 99.34975 927.51625 99.57325 927.29225 99.57325 927.01625 99.57325 926.54725 99.68525 926.28825 99.81175 926.14075 100.48075 927.31175 101.51125 928.15025 102.70525 928.41175 102.85725 928.44475 103.00025 928.32025 103.00025 928.16475L103.00025 920.27375C103.00025 920.13075 102.87625 920.01475 102.73325 920.02225 100.91725 920.12025 99.73925 920.51775 99.36475 920.88575M103.5 918.96875C103.895 918.96925 105.0645 919.01575 106.202 919.25925 106.4475 919.31175 106.6075 919.02075 106.4345 918.83875 106.118 918.50575 105.763 918.22625 105.3795 918.00925 105.76 917.75725 106.362 917.49975 107.2565 917.49975 107.5325 917.49975 107.7565 917.27625 107.7565 916.99975 107.7565 916.72375 107.5325 916.50025 107.2565 916.50025 105.666 916.50025 104.7395 917.16875 104.3105 917.59425 104.0475 917.53525 103.7775 917.49975 103.5 917.49975 103.223 917.49975 102.953 917.53525 102.6895 917.59425 102.2605 917.16875 101.3345 916.50025 99.744 916.50025 99.468 916.50025 99.244 916.72375 99.244 916.99975 99.244 917.27625 99.468 917.49975 99.744 917.49975 100.6385 917.49975 101.24 917.75725 101.6205 918.00925 101.242 918.22325 100.8915 918.49925 100.578 918.82625 100.4055 919.00675 100.5645 919.29875 100.8095 919.24775 101.9285 919.01425 103.0755 918.96875 103.484 918.96875L103.5 918.96875zM107.99705 922.92775C107.99305 922.56725 107.96305 922.21475 107.90405 921.87425 108.12205 921.77225 108.32905 921.62525 108.50355 921.42375 108.59305 921.32025 108.67405 921.20325 108.74105 921.07025 108.87605 920.80375 108.96355 920.48175 108.96355 920.08525 108.96355 919.80925 108.73955 919.58525 108.46355 919.58525 108.24305 919.58525 108.06205 919.72975 107.99505 919.92725 107.97855 919.97775 107.96355 920.02925 107.96355 920.08525 107.96355 920.52175 107.80655 920.76275 107.62355 920.89675 107.23805 920.52275 106.07105 920.11475 104.26605 920.02075 104.12355 920.01325 104.00005 920.12875 104.00005 920.27175L104.00005 928.16475C104.00005 928.32025 104.14255 928.44525 104.29505 928.41175 105.48855 928.15025 106.51955 927.31175 107.18855 926.14175 107.31555 926.28825 107.42655 926.54725 107.42655 927.01625 107.42655 927.29225 107.65055 927.51625 107.92655 927.51625 108.20305 927.51625 108.42655 927.29225 108.42655 927.01625 108.42655 926.02125 108.04405 925.47575 107.62205 925.19875 107.76155 924.80925 107.86305 924.39575 107.92605 923.96525 108.15955 924.06725 108.40405 924.23125 108.57455 924.50725 108.66955 924.66025 108.83305 924.74425 109.00055 924.74425 109.09055 924.74425 109.18105 924.72025 109.26305 924.66925 109.49805 924.52375 109.57005 924.21575 109.42505 923.98075 109.03905 923.35625 108.46055 923.06475 107.99705 922.92775",transform:"translate(352.5 157)"}),j.jsx("polygon",{points:"450 1085.5 462 1085.5 462 1073.5 450 1073.5"})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BugnubIcon=a}),98); __d("WAWebBugnubRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="bugnub-refreshed";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:"M12 21C10.9167 21 9.9125 20.7334 8.9875 20.2C8.0625 19.6667 7.33333 18.9334 6.8 18H5C4.71667 18 4.47917 17.9042 4.2875 17.7125C4.09583 17.5209 4 17.2834 4 17C4 16.7167 4.09583 16.4792 4.2875 16.2875C4.47917 16.0959 4.71667 16 5 16H6.1C6.05 15.6667 6.02083 15.3334 6.0125 15C6.00417 14.6667 6 14.3334 6 14H5C4.71667 14 4.47917 13.9042 4.2875 13.7125C4.09583 13.5209 4 13.2834 4 13C4 12.7167 4.09583 12.4792 4.2875 12.2875C4.47917 12.0959 4.71667 12 5 12H6C6 11.6667 6.00417 11.3334 6.0125 11C6.02083 10.6667 6.05 10.3334 6.1 10H5C4.71667 10 4.47917 9.90419 4.2875 9.71252C4.09583 9.52086 4 9.28336 4 9.00002C4 8.71669 4.09583 8.47919 4.2875 8.28752C4.47917 8.09586 4.71667 8.00002 5 8.00002H6.8C7.03333 7.61669 7.29583 7.25836 7.5875 6.92502C7.87917 6.59169 8.21667 6.30002 8.6 6.05002L7.675 5.10002C7.49167 4.91669 7.4 4.68752 7.4 4.41252C7.4 4.13752 7.5 3.90002 7.7 3.70002C7.88333 3.51669 8.11667 3.42502 8.4 3.42502C8.68333 3.42502 8.91667 3.51669 9.1 3.70002L10.55 5.15002C11.0167 5.00002 11.4917 4.92502 11.975 4.92502C12.4583 4.92502 12.9333 5.00002 13.4 5.15002L14.9 3.67502C15.0833 3.49169 15.3125 3.40002 15.5875 3.40002C15.8625 3.40002 16.1 3.50002 16.3 3.70002C16.4833 3.88336 16.575 4.11669 16.575 4.40002C16.575 4.68336 16.4833 4.91669 16.3 5.10002L15.35 6.05002C15.7333 6.30002 16.0792 6.58752 16.3875 6.91252C16.6958 7.23752 16.9667 7.60002 17.2 8.00002H19C19.2833 8.00002 19.5208 8.09586 19.7125 8.28752C19.9042 8.47919 20 8.71669 20 9.00002C20 9.28336 19.9042 9.52086 19.7125 9.71252C19.5208 9.90419 19.2833 10 19 10H17.9C17.95 10.3334 17.9792 10.6667 17.9875 11C17.9958 11.3334 18 11.6667 18 12H19C19.2833 12 19.5208 12.0959 19.7125 12.2875C19.9042 12.4792 20 12.7167 20 13C20 13.2834 19.9042 13.5209 19.7125 13.7125C19.5208 13.9042 19.2833 14 19 14H18C18 14.3334 17.9958 14.6667 17.9875 15C17.9792 15.3334 17.95 15.6667 17.9 16H19C19.2833 16 19.5208 16.0959 19.7125 16.2875C19.9042 16.4792 20 16.7167 20 17C20 17.2834 19.9042 17.5209 19.7125 17.7125C19.5208 17.9042 19.2833 18 19 18H17.2C16.6667 18.9334 15.9375 19.6667 15.0125 20.2C14.0875 20.7334 13.0833 21 12 21ZM12 19C13.1 19 14.0417 18.6084 14.825 17.825C15.6083 17.0417 16 16.1 16 15V11C16 9.90002 15.6083 8.95836 14.825 8.17502C14.0417 7.39169 13.1 7.00002 12 7.00002C10.9 7.00002 9.95833 7.39169 9.175 8.17502C8.39167 8.95836 8 9.90002 8 11V15C8 16.1 8.39167 17.0417 9.175 17.825C9.95833 18.6084 10.9 19 12 19ZM11 16H13C13.2833 16 13.5208 15.9042 13.7125 15.7125C13.9042 15.5209 14 15.2834 14 15C14 14.7167 13.9042 14.4792 13.7125 14.2875C13.5208 14.0959 13.2833 14 13 14H11C10.7167 14 10.4792 14.0959 10.2875 14.2875C10.0958 14.4792 10 14.7167 10 15C10 15.2834 10.0958 15.5209 10.2875 15.7125C10.4792 15.9042 10.7167 16 11 16ZM11 12H13C13.2833 12 13.5208 11.9042 13.7125 11.7125C13.9042 11.5209 14 11.2834 14 11C14 10.7167 13.9042 10.4792 13.7125 10.2875C13.5208 10.0959 13.2833 10 13 10H11C10.7167 10 10.4792 10.0959 10.2875 10.2875C10.0958 10.4792 10 10.7167 10 11C10 11.2834 10.0958 11.5209 10.2875 11.7125C10.4792 11.9042 10.7167 12 11 12Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BugnubRefreshedIcon=a}),98); __d("WAWebBusinessToolsIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="business-tools";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("g",{clipPath:"url(#clip0_49_15721)",children:j.jsx("path",{d:"M20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6H19C19.5523 6 20 5.55228 20 5ZM20.1608 7.80388C20.0673 7.33646 19.6569 7 19.1802 7H4.8198C4.34312 7 3.93271 7.33646 3.83922 7.80388L3.01942 11.9029C3.0065 11.9675 3 12.0332 3 12.099V13C3 13.5523 3.44772 14 4 14V18C4 19.1046 4.89543 20 6 20H12C13.1046 20 14 19.1046 14 18V14H18V19C18 19.5523 18.4477 20 19 20C19.5523 20 20 19.5523 20 19V14C20.5523 14 21 13.5523 21 13V12.099C21 12.0332 20.9935 11.9675 20.9806 11.9029L20.1608 7.80388ZM6 18V14H12V18H6Z",fill:"currentColor"})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"clip0_49_15721",children:j.jsx("rect",{width:24,height:24,fill:"white"})})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BusinessToolsIcon=a}),98); __d("WAWebChatsFilledIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="chats-filled";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:"M4.8384 8.45501L5 8.70356V9V17.8333C5 18.7538 5.7462 19.5 6.6667 19.5H20.3333C21.2538 19.5 22 18.7538 22 17.8333V6.66667C22 5.74619 21.2538 5 20.3333 5H2.5927L4.8384 8.45501ZM8 14.5C8 13.6716 8.67157 13 9.5 13H14.5C15.3284 13 16 13.6716 16 14.5C16 15.3284 15.3284 16 14.5 16H9.5C8.67157 16 8 15.3284 8 14.5ZM9.5 8C8.67157 8 8 8.67157 8 9.5C8 10.3284 8.67157 11 9.5 11H16.5C17.3284 11 18 10.3284 18 9.5C18 8.67157 17.3284 8 16.5 8H9.5Z",fill:"currentColor"}),j.jsx("path",{d:"M5 8.70356L5.41919 8.43101L5.5 8.55531V8.70356H5ZM4.8384 8.45501L4.41921 8.72756L4.41917 8.7275L4.8384 8.45501ZM2.5927 5L2.17347 5.27249L1.67137 4.5H2.5927V5ZM4.58081 8.9761L4.41921 8.72756L5.25759 8.18247L5.41919 8.43101L4.58081 8.9761ZM4.5 9V8.70356H5.5V9H4.5ZM4.5 17.8333V9H5.5V17.8333H4.5ZM6.6667 20C5.47006 20 4.5 19.0299 4.5 17.8333H5.5C5.5 18.4777 6.02234 19 6.6667 19V20ZM20.3333 20H6.6667V19H20.3333V20ZM22.5 17.8333C22.5 19.0299 21.53 20 20.3333 20V19C20.9777 19 21.5 18.4777 21.5 17.8333H22.5ZM22.5 6.66667V17.8333H21.5V6.66667H22.5ZM20.3333 4.5C21.53 4.5 22.5 5.47005 22.5 6.66667H21.5C21.5 6.02233 20.9777 5.5 20.3333 5.5V4.5ZM2.5927 4.5H20.3333V5.5H2.5927V4.5ZM4.41917 8.7275L2.17347 5.27249L3.01192 4.72751L5.25762 8.18252L4.41917 8.7275ZM9.5 13.5C8.94772 13.5 8.5 13.9477 8.5 14.5H7.5C7.5 13.3954 8.39543 12.5 9.5 12.5V13.5ZM14.5 13.5H9.5V12.5H14.5V13.5ZM15.5 14.5C15.5 13.9477 15.0523 13.5 14.5 13.5V12.5C15.6046 12.5 16.5 13.3954 16.5 14.5H15.5ZM14.5 15.5C15.0523 15.5 15.5 15.0523 15.5 14.5H16.5C16.5 15.6046 15.6046 16.5 14.5 16.5V15.5ZM9.5 15.5H14.5V16.5H9.5V15.5ZM8.5 14.5C8.5 15.0523 8.94772 15.5 9.5 15.5V16.5C8.39543 16.5 7.5 15.6046 7.5 14.5H8.5ZM7.5 9.5C7.5 8.39543 8.39543 7.5 9.5 7.5V8.5C8.94772 8.5 8.5 8.94772 8.5 9.5H7.5ZM9.5 11.5C8.39543 11.5 7.5 10.6046 7.5 9.5H8.5C8.5 10.0523 8.94772 10.5 9.5 10.5V11.5ZM16.5 11.5H9.5V10.5H16.5V11.5ZM18.5 9.5C18.5 10.6046 17.6046 11.5 16.5 11.5V10.5C17.0523 10.5 17.5 10.0523 17.5 9.5H18.5ZM16.5 7.5C17.6046 7.5 18.5 8.39543 18.5 9.5H17.5C17.5 8.94772 17.0523 8.5 16.5 8.5V7.5ZM9.5 7.5H16.5V8.5H9.5V7.5Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ChatsFilledIcon=a}),98); __d("WAWebDevIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="dev";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",{opacity:.9,d:"M4 15C3.16667 15 2.45833 14.7083 1.875 14.125C1.29167 13.5417 1 12.8333 1 12C1 11.1667 1.29167 10.4583 1.875 9.875C2.45833 9.29167 3.16667 9 4 9V7C4 6.45 4.19583 5.97917 4.5875 5.5875C4.97917 5.19583 5.45 5 6 5H9C9 4.16667 9.29167 3.45833 9.875 2.875C10.4583 2.29167 11.1667 2 12 2C12.8333 2 13.5417 2.29167 14.125 2.875C14.7083 3.45833 15 4.16667 15 5H18C18.55 5 19.0208 5.19583 19.4125 5.5875C19.8042 5.97917 20 6.45 20 7V9C20.8333 9 21.5417 9.29167 22.125 9.875C22.7083 10.4583 23 11.1667 23 12C23 12.8333 22.7083 13.5417 22.125 14.125C21.5417 14.7083 20.8333 15 20 15V19C20 19.55 19.8042 20.0208 19.4125 20.4125C19.0208 20.8042 18.55 21 18 21H6C5.45 21 4.97917 20.8042 4.5875 20.4125C4.19583 20.0208 4 19.55 4 19V15ZM9 13C9.41667 13 9.77083 12.8542 10.0625 12.5625C10.3542 12.2708 10.5 11.9167 10.5 11.5C10.5 11.0833 10.3542 10.7292 10.0625 10.4375C9.77083 10.1458 9.41667 10 9 10C8.58333 10 8.22917 10.1458 7.9375 10.4375C7.64583 10.7292 7.5 11.0833 7.5 11.5C7.5 11.9167 7.64583 12.2708 7.9375 12.5625C8.22917 12.8542 8.58333 13 9 13ZM15 13C15.4167 13 15.7708 12.8542 16.0625 12.5625C16.3542 12.2708 16.5 11.9167 16.5 11.5C16.5 11.0833 16.3542 10.7292 16.0625 10.4375C15.7708 10.1458 15.4167 10 15 10C14.5833 10 14.2292 10.1458 13.9375 10.4375C13.6458 10.7292 13.5 11.0833 13.5 11.5C13.5 11.9167 13.6458 12.2708 13.9375 12.5625C14.2292 12.8542 14.5833 13 15 13ZM9 17H15C15.2833 17 15.5208 16.9042 15.7125 16.7125C15.9042 16.5208 16 16.2833 16 16C16 15.7167 15.9042 15.4792 15.7125 15.2875C15.5208 15.0958 15.2833 15 15 15H9C8.71667 15 8.47917 15.0958 8.2875 15.2875C8.09583 15.4792 8 15.7167 8 16C8 16.2833 8.09583 16.5208 8.2875 16.7125C8.47917 16.9042 8.71667 17 9 17ZM6 19H18V7H6V19Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DevIcon=a}),98); __d("WAWebExperimentIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="experiment";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.3001 21C3.6001 21 3.10427 20.675 2.8126 20.025C2.52093 19.375 2.61677 18.7833 3.1001 18.25L9.3001 11.25V4.5H8.0001C7.78343 4.5 7.60427 4.42917 7.4626 4.2875C7.32093 4.14583 7.2501 3.96667 7.2501 3.75C7.2501 3.53333 7.32093 3.35417 7.4626 3.2125C7.60427 3.07083 7.78343 3 8.0001 3H16.0001C16.2168 3 16.3959 3.07083 16.5376 3.2125C16.6793 3.35417 16.7501 3.53333 16.7501 3.75C16.7501 3.96667 16.6793 4.14583 16.5376 4.2875C16.3959 4.42917 16.2168 4.5 16.0001 4.5H14.7001V11.25L20.9001 18.25C21.3834 18.7833 21.4793 19.375 21.1876 20.025C20.8959 20.675 20.4001 21 19.7001 21H4.3001Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ExperimentIcon=a}),98); __d("WAWebDeveloperMenuDeveloperMenuIcons.react",["WAWebExperimentIcon.react","gkx","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.size;a=a===void 0?24:a;return c("gkx")("26258")?null:i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",version:"1.1",width:a,height:a,children:i.jsx("path",{fill:"currentColor",d:"m 79.00009,54.00429 0,10 10,0 0,-10 -10,0 z m -40,0 0,10 10,0 0,-10 -10,0 z m 0,40 20,0 0,10 -20,0 0,-10 z m 50,0 0,10 -20,0 0,-10 20,0 z m 0,-60 0,-10 10,0 0,10 -10,0 z m -50,0 10,0 0,10 30,0 0,-10 10,0 0,10 10,0 0,10 10,0 0,10 10,0 0,30 -10,0 0,-20 -10,0 0,20 -10,0 0,-10 -50,0 0,10 -10,0 0,-20 -10,0 0,20 -10,0 0,-30 10,0 0,-10 10,0 0,-10 10,0 0,-10 z m -10,-10 10,0 0,10 -10,0 0,-10 z"})})}a.displayName=a.name+" [from "+f.id+"]";function b(){return i.jsx(d("WAWebExperimentIcon.react").ExperimentIcon,{})}b.displayName=b.name+" [from "+f.id+"]";function e(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",children:[i.jsx("path",{d:"M0 0h24v24H0z",fill:"none"}),i.jsx("path",{fill:"currentColor",d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12zm3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8zm5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8zm3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"})]})}e.displayName=e.name+" [from "+f.id+"]";function j(){return i.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",height:"24",width:"24",children:i.jsx("path",{fill:"currentColor",d:"m17.3 45-3.8-6.5-7.55-1.55.85-7.35L2 24l4.8-5.55-.85-7.35 7.55-1.55L17.3 3 24 6.1 30.7 3l3.85 6.55 7.5 1.55-.85 7.35L46 24l-4.8 5.6.85 7.35-7.5 1.55L30.7 45 24 41.9Zm1.35-3.95L24 38.8l5.5 2.25 3.35-5 5.85-1.5-.6-5.95 4.05-4.6-4.05-4.7.6-5.95-5.85-1.4-3.45-5L24 9.2l-5.5-2.25-3.35 5-5.85 1.4.6 5.95L5.85 24l4.05 4.6-.6 6.05 5.85 1.4ZM24 24Zm-2.15 6.65L33.2 19.4l-2.25-2.05-9.1 9-4.75-4.95-2.3 2.25Z"})})}j.displayName=j.name+" [from "+f.id+"]";function k(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",className:"bi bi-robot",viewBox:"0 0 16 16",children:[i.jsx("path",{d:"M6 12.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1-.5-.5ZM3 8.062C3 6.76 4.235 5.765 5.53 5.886a26.58 26.58 0 0 0 4.94 0C11.765 5.765 13 6.76 13 8.062v1.157a.933.933 0 0 1-.765.935c-.845.147-2.34.346-4.235.346-1.895 0-3.39-.2-4.235-.346A.933.933 0 0 1 3 9.219V8.062Zm4.542-.827a.25.25 0 0 0-.217.068l-.92.9a24.767 24.767 0 0 1-1.871-.183.25.25 0 0 0-.068.495c.55.076 1.232.149 2.02.193a.25.25 0 0 0 .189-.071l.754-.736.847 1.71a.25.25 0 0 0 .404.062l.932-.97a25.286 25.286 0 0 0 1.922-.188.25.25 0 0 0-.068-.495c-.538.074-1.207.145-1.98.189a.25.25 0 0 0-.166.076l-.754.785-.842-1.7a.25.25 0 0 0-.182-.135Z"}),i.jsx("path",{d:"M8.5 1.866a1 1 0 1 0-1 0V3h-2A4.5 4.5 0 0 0 1 7.5V8a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1v1a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-1a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1v-.5A4.5 4.5 0 0 0 10.5 3h-2V1.866ZM14 7.5V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7.5A3.5 3.5 0 0 1 5.5 4h5A3.5 3.5 0 0 1 14 7.5Z"})]})}k.displayName=k.name+" [from "+f.id+"]";function l(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",viewBox:"0 0 24 24",width:"24",fill:"currentColor",children:[i.jsx("g",{children:i.jsx("rect",{fill:"none",height:"24",width:"24"})}),i.jsx("g",{children:i.jsxs("g",{children:[i.jsx("rect",{height:"8.48",transform:"matrix(0.7071 -0.7071 0.7071 0.7071 -6.8717 17.6255)",width:"3",x:"16.34",y:"12.87"}),i.jsx("path",{d:"M17.5,10c1.93,0,3.5-1.57,3.5-3.5c0-0.58-0.16-1.12-0.41-1.6l-2.7,2.7L16.4,6.11l2.7-2.7C18.62,3.16,18.08,3,17.5,3 C15.57,3,14,4.57,14,6.5c0,0.41,0.08,0.8,0.21,1.16l-1.85,1.85l-1.78-1.78l0.71-0.71L9.88,5.61L12,3.49 c-1.17-1.17-3.07-1.17-4.24,0L4.22,7.03l1.41,1.41H2.81L2.1,9.15l3.54,3.54l0.71-0.71V9.15l1.41,1.41l0.71-0.71l1.78,1.78 l-7.41,7.41l2.12,2.12L16.34,9.79C16.7,9.92,17.09,10,17.5,10z",fill:"currentColor"})]})})]})}l.displayName=l.name+" [from "+f.id+"]";function m(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",className:"bi bi-translate",viewBox:"0 0 16 16",children:[i.jsx("path",{d:"M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"}),i.jsx("path",{d:"M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"})]})}m.displayName=m.name+" [from "+f.id+"]";function n(){return i.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",children:[i.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),i.jsx("path",{d:"M20.5 6c-2.61.7-5.67 1-8.5 1s-5.89-.3-8.5-1L3 8c1.86.5 4 .83 6 1v13h2v-6h2v6h2V9c2-.17 4.14-.5 6-1l-.5-2zM12 6c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2z"})]})}n.displayName=n.name+" [from "+f.id+"]";g.DeveloperIcon=a;g.ABPropsIcon=b;g.ColorsIcon=e;g.NUXManagerIcon=j;g.E2EDebugModeIcon=k;g.DebugCommandsIcon=l;g.MarkTranslationsIcon=m;g.A11yRedBlockIcon=n}),98); __d("WAWebDocumentRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="document-refreshed";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",{opacity:.9,d:"M9 18H15C15.2833 18 15.5208 17.9042 15.7125 17.7125C15.9042 17.5208 16 17.2833 16 17C16 16.7167 15.9042 16.4792 15.7125 16.2875C15.5208 16.0958 15.2833 16 15 16H9C8.71667 16 8.47917 16.0958 8.2875 16.2875C8.09583 16.4792 8 16.7167 8 17C8 17.2833 8.09583 17.5208 8.2875 17.7125C8.47917 17.9042 8.71667 18 9 18ZM9 14H15C15.2833 14 15.5208 13.9042 15.7125 13.7125C15.9042 13.5208 16 13.2833 16 13C16 12.7167 15.9042 12.4792 15.7125 12.2875C15.5208 12.0958 15.2833 12 15 12H9C8.71667 12 8.47917 12.0958 8.2875 12.2875C8.09583 12.4792 8 12.7167 8 13C8 13.2833 8.09583 13.5208 8.2875 13.7125C8.47917 13.9042 8.71667 14 9 14ZM6 22C5.45 22 4.97917 21.8042 4.5875 21.4125C4.19583 21.0208 4 20.55 4 20V4C4 3.45 4.19583 2.97917 4.5875 2.5875C4.97917 2.19583 5.45 2 6 2H13.175C13.4417 2 13.6958 2.05 13.9375 2.15C14.1792 2.25 14.3917 2.39167 14.575 2.575L19.425 7.425C19.6083 7.60833 19.75 7.82083 19.85 8.0625C19.95 8.30417 20 8.55833 20 8.825V20C20 20.55 19.8042 21.0208 19.4125 21.4125C19.0208 21.8042 18.55 22 18 22H6ZM13 8V4H6V20H18V9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DocumentRefreshedIcon=a}),98); __d("WAWebIcComputerIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="ic-computer";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:"M2 21C1.71667 21 1.47917 20.9042 1.2875 20.7125C1.09583 20.5208 1 20.2833 1 20C1 19.7167 1.09583 19.4792 1.2875 19.2875C1.47917 19.0958 1.71667 19 2 19H22C22.2833 19 22.5208 19.0958 22.7125 19.2875C22.9042 19.4792 23 19.7167 23 20C23 20.2833 22.9042 20.5208 22.7125 20.7125C22.5208 20.9042 22.2833 21 22 21H2ZM4 18C3.45 18 2.97917 17.8042 2.5875 17.4125C2.19583 17.0208 2 16.55 2 16V5C2 4.45 2.19583 3.97917 2.5875 3.5875C2.97917 3.19583 3.45 3 4 3H20C20.55 3 21.0208 3.19583 21.4125 3.5875C21.8042 3.97917 22 4.45 22 5V16C22 16.55 21.8042 17.0208 21.4125 17.4125C21.0208 17.8042 20.55 18 20 18H4ZM4 16H20V5H4V16Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IcComputerIcon=a}),98); __d("WAWebKeyOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="key-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:"M7 14C6.45 14 5.97917 13.8042 5.5875 13.4125C5.19583 13.0208 5 12.55 5 12C5 11.45 5.19583 10.9792 5.5875 10.5875C5.97917 10.1958 6.45 10 7 10C7.55 10 8.02083 10.1958 8.4125 10.5875C8.80417 10.9792 9 11.45 9 12C9 12.55 8.80417 13.0208 8.4125 13.4125C8.02083 13.8042 7.55 14 7 14ZM7 18C5.33333 18 3.91667 17.4167 2.75 16.25C1.58333 15.0833 1 13.6667 1 12C1 10.3333 1.58333 8.91667 2.75 7.75C3.91667 6.58333 5.33333 6 7 6C8.11667 6 9.12917 6.275 10.0375 6.825C10.9458 7.375 11.6667 8.1 12.2 9H20.575C20.7083 9 20.8375 9.025 20.9625 9.075C21.0875 9.125 21.2 9.2 21.3 9.3L23.3 11.3C23.4 11.4 23.4708 11.5083 23.5125 11.625C23.5542 11.7417 23.575 11.8667 23.575 12C23.575 12.1333 23.5542 12.2583 23.5125 12.375C23.4708 12.4917 23.4 12.6 23.3 12.7L20.125 15.875C20.0417 15.9583 19.9417 16.025 19.825 16.075C19.7083 16.125 19.5917 16.1583 19.475 16.175C19.3583 16.1917 19.2417 16.1833 19.125 16.15C19.0083 16.1167 18.9 16.0583 18.8 15.975L17.5 15L16.075 16.075C15.9917 16.1417 15.9 16.1917 15.8 16.225C15.7 16.2583 15.6 16.275 15.5 16.275C15.4 16.275 15.2958 16.2583 15.1875 16.225C15.0792 16.1917 14.9833 16.1417 14.9 16.075L13.375 15H12.2C11.6667 15.9 10.9458 16.625 10.0375 17.175C9.12917 17.725 8.11667 18 7 18ZM7 16C7.93333 16 8.75417 15.7167 9.4625 15.15C10.1708 14.5833 10.6417 13.8667 10.875 13H14L15.45 14.025L17.5 12.5L19.275 13.875L21.15 12L20.15 11H10.875C10.6417 10.1333 10.1708 9.41667 9.4625 8.85C8.75417 8.28333 7.93333 8 7 8C5.9 8 4.95833 8.39167 4.175 9.175C3.39167 9.95833 3 10.9 3 12C3 13.1 3.39167 14.0417 4.175 14.825C4.95833 15.6083 5.9 16 7 16Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.KeyOutlineIcon=a}),98); __d("WAWebKeyboardIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="keyboard";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",{opacity:.9,d:"M4 19C3.45 19 2.97917 18.8042 2.5875 18.4125C2.19583 18.0208 2 17.55 2 17V7C2 6.45 2.19583 5.97917 2.5875 5.5875C2.97917 5.19583 3.45 5 4 5H20C20.55 5 21.0208 5.19583 21.4125 5.5875C21.8042 5.97917 22 6.45 22 7V17C22 17.55 21.8042 18.0208 21.4125 18.4125C21.0208 18.8042 20.55 19 20 19H4ZM4 17H20V7H4V17ZM9 16H15C15.2833 16 15.5208 15.9042 15.7125 15.7125C15.9042 15.5208 16 15.2833 16 15C16 14.7167 15.9042 14.4792 15.7125 14.2875C15.5208 14.0958 15.2833 14 15 14H9C8.71667 14 8.47917 14.0958 8.2875 14.2875C8.09583 14.4792 8 14.7167 8 15C8 15.2833 8.09583 15.5208 8.2875 15.7125C8.47917 15.9042 8.71667 16 9 16ZM6 10C6.28333 10 6.52083 9.90417 6.7125 9.7125C6.90417 9.52083 7 9.28333 7 9C7 8.71667 6.90417 8.47917 6.7125 8.2875C6.52083 8.09583 6.28333 8 6 8C5.71667 8 5.47917 8.09583 5.2875 8.2875C5.09583 8.47917 5 8.71667 5 9C5 9.28333 5.09583 9.52083 5.2875 9.7125C5.47917 9.90417 5.71667 10 6 10ZM9 10C9.28333 10 9.52083 9.90417 9.7125 9.7125C9.90417 9.52083 10 9.28333 10 9C10 8.71667 9.90417 8.47917 9.7125 8.2875C9.52083 8.09583 9.28333 8 9 8C8.71667 8 8.47917 8.09583 8.2875 8.2875C8.09583 8.47917 8 8.71667 8 9C8 9.28333 8.09583 9.52083 8.2875 9.7125C8.47917 9.90417 8.71667 10 9 10ZM12 10C12.2833 10 12.5208 9.90417 12.7125 9.7125C12.9042 9.52083 13 9.28333 13 9C13 8.71667 12.9042 8.47917 12.7125 8.2875C12.5208 8.09583 12.2833 8 12 8C11.7167 8 11.4792 8.09583 11.2875 8.2875C11.0958 8.47917 11 8.71667 11 9C11 9.28333 11.0958 9.52083 11.2875 9.7125C11.4792 9.90417 11.7167 10 12 10ZM15 10C15.2833 10 15.5208 9.90417 15.7125 9.7125C15.9042 9.52083 16 9.28333 16 9C16 8.71667 15.9042 8.47917 15.7125 8.2875C15.5208 8.09583 15.2833 8 15 8C14.7167 8 14.4792 8.09583 14.2875 8.2875C14.0958 8.47917 14 8.71667 14 9C14 9.28333 14.0958 9.52083 14.2875 9.7125C14.4792 9.90417 14.7167 10 15 10ZM18 10C18.2833 10 18.5208 9.90417 18.7125 9.7125C18.9042 9.52083 19 9.28333 19 9C19 8.71667 18.9042 8.47917 18.7125 8.2875C18.5208 8.09583 18.2833 8 18 8C17.7167 8 17.4792 8.09583 17.2875 8.2875C17.0958 8.47917 17 8.71667 17 9C17 9.28333 17.0958 9.52083 17.2875 9.7125C17.4792 9.90417 17.7167 10 18 10ZM6 13C6.28333 13 6.52083 12.9042 6.7125 12.7125C6.90417 12.5208 7 12.2833 7 12C7 11.7167 6.90417 11.4792 6.7125 11.2875C6.52083 11.0958 6.28333 11 6 11C5.71667 11 5.47917 11.0958 5.2875 11.2875C5.09583 11.4792 5 11.7167 5 12C5 12.2833 5.09583 12.5208 5.2875 12.7125C5.47917 12.9042 5.71667 13 6 13ZM9 13C9.28333 13 9.52083 12.9042 9.7125 12.7125C9.90417 12.5208 10 12.2833 10 12C10 11.7167 9.90417 11.4792 9.7125 11.2875C9.52083 11.0958 9.28333 11 9 11C8.71667 11 8.47917 11.0958 8.2875 11.2875C8.09583 11.4792 8 11.7167 8 12C8 12.2833 8.09583 12.5208 8.2875 12.7125C8.47917 12.9042 8.71667 13 9 13ZM12 13C12.2833 13 12.5208 12.9042 12.7125 12.7125C12.9042 12.5208 13 12.2833 13 12C13 11.7167 12.9042 11.4792 12.7125 11.2875C12.5208 11.0958 12.2833 11 12 11C11.7167 11 11.4792 11.0958 11.2875 11.2875C11.0958 11.4792 11 11.7167 11 12C11 12.2833 11.0958 12.5208 11.2875 12.7125C11.4792 12.9042 11.7167 13 12 13ZM15 13C15.2833 13 15.5208 12.9042 15.7125 12.7125C15.9042 12.5208 16 12.2833 16 12C16 11.7167 15.9042 11.4792 15.7125 11.2875C15.5208 11.0958 15.2833 11 15 11C14.7167 11 14.4792 11.0958 14.2875 11.2875C14.0958 11.4792 14 11.7167 14 12C14 12.2833 14.0958 12.5208 14.2875 12.7125C14.4792 12.9042 14.7167 13 15 13ZM18 13C18.2833 13 18.5208 12.9042 18.7125 12.7125C18.9042 12.5208 19 12.2833 19 12C19 11.7167 18.9042 11.4792 18.7125 11.2875C18.5208 11.0958 18.2833 11 18 11C17.7167 11 17.4792 11.0958 17.2875 11.2875C17.0958 11.4792 17 11.7167 17 12C17 12.2833 17.0958 12.5208 17.2875 12.7125C17.4792 12.9042 17.7167 13 18 13Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.KeyboardIcon=a}),98); __d("WAWebQuestionIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="question";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",{opacity:.9,d:"M11.95 18C12.3 18 12.5958 17.8792 12.8375 17.6375C13.0792 17.3958 13.2 17.1 13.2 16.75C13.2 16.4 13.0792 16.1042 12.8375 15.8625C12.5958 15.6208 12.3 15.5 11.95 15.5C11.6 15.5 11.3042 15.6208 11.0625 15.8625C10.8208 16.1042 10.7 16.4 10.7 16.75C10.7 17.1 10.8208 17.3958 11.0625 17.6375C11.3042 17.8792 11.6 18 11.95 18ZM12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76667 19.225 7.875 17.675 6.325C16.125 4.775 14.2333 4 12 4C9.76667 4 7.875 4.775 6.325 6.325C4.775 7.875 4 9.76667 4 12C4 14.2333 4.775 16.125 6.325 17.675C7.875 19.225 9.76667 20 12 20ZM12.1 7.7C12.5167 7.7 12.8792 7.83333 13.1875 8.1C13.4958 8.36667 13.65 8.7 13.65 9.1C13.65 9.46667 13.5375 9.79167 13.3125 10.075C13.0875 10.3583 12.8333 10.625 12.55 10.875C12.1667 11.2083 11.8292 11.575 11.5375 11.975C11.2458 12.375 11.1 12.825 11.1 13.325C11.1 13.5583 11.1875 13.7542 11.3625 13.9125C11.5375 14.0708 11.7417 14.15 11.975 14.15C12.225 14.15 12.4375 14.0667 12.6125 13.9C12.7875 13.7333 12.9 13.525 12.95 13.275C13.0167 12.925 13.1667 12.6125 13.4 12.3375C13.6333 12.0625 13.8833 11.8 14.15 11.55C14.5333 11.1833 14.8625 10.7833 15.1375 10.35C15.4125 9.91667 15.55 9.43333 15.55 8.9C15.55 8.05 15.2042 7.35417 14.5125 6.8125C13.8208 6.27083 13.0167 6 12.1 6C11.4667 6 10.8625 6.13333 10.2875 6.4C9.7125 6.66667 9.275 7.075 8.975 7.625C8.85833 7.825 8.82083 8.0375 8.8625 8.2625C8.90417 8.4875 9.01667 8.65833 9.2 8.775C9.43333 8.90833 9.675 8.95 9.925 8.9C10.175 8.85 10.3833 8.70833 10.55 8.475C10.7333 8.225 10.9625 8.03333 11.2375 7.9C11.5125 7.76667 11.8 7.7 12.1 7.7Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.QuestionIcon=a}),98); __d("WAWebSettingsDocumentIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-document";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:"M6 2C4.9 2 4.01 2.9 4.01 4L4 20C4 21.1 4.89 22 5.99 22H18C19.1 22 20 21.1 20 20V8.83C20 8.3 19.79 7.79 19.41 7.42L14.58 2.59C14.21 2.21 13.7 2 13.17 2H6ZM13 8V3.5L18.5 9H14C13.45 9 13 8.55 13 8ZM8 12C7.44772 12 7 12.4477 7 13C7 13.5523 7.44772 14 8 14H16C16.5523 14 17 13.5523 17 13C17 12.4477 16.5523 12 16 12H8ZM14 17C14 16.4477 13.5523 16 13 16H8C7.44772 16 7 16.4477 7 17C7 17.5523 7.44772 18 8 18H13C13.5523 18 14 17.5523 14 17Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsDocumentIcon=a}),98); __d("WAWebSettingsKeyboardIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-keyboard";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",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",d:"M 10.851562 12.648438 L 13.148438 12.648438 L 12 9 Z M 20 8.691406 L 20 6 C 20 4.898438 19.101562 4 18 4 L 15.308594 4 L 13.410156 2.101562 C 12.628906 1.320312 11.359375 1.320312 10.582031 2.101562 L 8.691406 4 L 6 4 C 4.898438 4 4 4.898438 4 6 L 4 8.691406 L 2.101562 10.589844 C 1.320312 11.371094 1.320312 12.640625 2.101562 13.421875 L 4 15.320312 L 4 18 C 4 19.101562 4.898438 20 6 20 L 8.691406 20 L 10.589844 21.898438 C 11.371094 22.679688 12.640625 22.679688 13.421875 21.898438 L 15.320312 20 L 18 20 C 19.101562 20 20 19.101562 20 18 L 20 15.308594 L 21.898438 13.410156 C 22.679688 12.628906 22.679688 11.359375 21.898438 10.578125 Z M 14.089844 15.398438 L 13.601562 14 L 10.398438 14 L 9.910156 15.398438 C 9.78125 15.761719 9.449219 16 9.070312 16 C 8.449219 16 8.019531 15.390625 8.230469 14.808594 L 10.671875 7.949219 C 10.871094 7.378906 11.398438 7 12 7 C 12.601562 7 13.128906 7.378906 13.339844 7.941406 L 15.78125 14.800781 C 15.988281 15.378906 15.558594 15.988281 14.941406 15.988281 C 14.550781 16 14.21875 15.761719 14.089844 15.398438 Z M 14.089844 15.398438 "})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsKeyboardIcon=a}),98); __d("WAWebSettingsNotificationsIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-notifications";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:"M12,21.7c0.9,0,1.7-0.8,1.7-1.7h-3.4C10.3,20.9,11.1,21.7,12,21.7z M17.6,16.5v-4.7 c0-2.7-1.8-4.8-4.3-5.4V5.8c0-0.7-0.6-1.3-1.3-1.3s-1.3,0.6-1.3,1.3v0.6C8.2,7,6.4,9.1,6.4,11.8v4.7l-1.7,1.7v0.9h14.6v-0.9 L17.6,16.5z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsNotificationsIcon=a}),98); __d("WAWebSettingsSecurityIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-security";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",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M12.027027,2 L4,5.56756757 L4,10.9189189 C4,15.8689189 7.42486486,20.4978378 12.027027,21.6216216 C16.6291892,20.4978378 20.0540541,15.8689189 20.0540541,10.9189189 L20.0540541,5.56756757 L12.027027,2 Z M12.027027,11.8018919 L18.2702703,11.8018919 C17.7975676,15.4764865 15.3448649,18.7497297 12.027027,19.7754054 L12.027027,11.8108108 L5.78378378,11.8108108 L5.78378378,6.72702703 L12.027027,3.95324324 L12.027027,11.8018919 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsSecurityIcon=a}),98); __d("WAWebSettingsThemeIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-theme";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",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M12,1 L15.219275,4.21927498 L19.780725,4.21927498 L19.780725,8.78072502 L23,12 L19.780725,15.219275 L19.780725,19.780725 L15.219275,19.780725 L12,23 L8.78072502,19.780725 L4.21927498,19.780725 L4.21927498,15.219275 L1,12 L4.21927498,8.78072502 L4.21927498,4.21927498 L8.78072502,4.21927498 L12,1 Z M12,6 L12,18 C15.31,18 18,15.31 18,12 C18,8.76522727 15.4308833,6.12259298 12.2246968,6.00414409 L12,6 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsThemeIcon=a}),98); __d("WAWebSettingsWallpaperIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="settings-wallpaper";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:"M4.9,5.9h6.4V4.1H4.9c-1,0-1.8,0.8-1.8,1.8v6.4h1.8V5.9z M10.2,13.9l-3.6,4.4h10.7 l-2.7-3.6l-1.8,2.4L10.2,13.9z M16.4,9.9c0-0.7-0.6-1.3-1.3-1.3s-1.3,0.6-1.3,1.3s0.6,1.3,1.3,1.3S16.4,10.6,16.4,9.9z M19.1,4.1 h-6.4v1.8h6.4v6.4h1.8V5.9C20.9,4.9,20.1,4.1,19.1,4.1z M19.1,20.1h-6.4v1.8h6.4c1,0,1.8-0.8,1.8-1.8v-6.4h-1.8V20.1z M4.9,13.7H3.1 v6.4c0,1,0.8,1.8,1.8,1.8h6.4v-1.8H4.9V13.7z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SettingsWallpaperIcon=a}),98); __d("WAWebShieldIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="shield";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",{opacity:.9,d:"M12 19.9C13.6167 19.4 14.9667 18.4125 16.05 16.9375C17.1333 15.4625 17.7667 13.8167 17.95 12H12V4.12502L6 6.37502V11.55C6 11.6667 6.01667 11.8167 6.05 12H12V19.9ZM12 21.9C11.8833 21.9 11.775 21.8917 11.675 21.875C11.575 21.8584 11.475 21.8334 11.375 21.8C9.125 21.05 7.33333 19.6625 6 17.6375C4.66667 15.6125 4 13.4334 4 11.1V6.37502C4 5.95836 4.12083 5.58336 4.3625 5.25002C4.60417 4.91669 4.91667 4.67502 5.3 4.52502L11.3 2.27502C11.5333 2.19169 11.7667 2.15002 12 2.15002C12.2333 2.15002 12.4667 2.19169 12.7 2.27502L18.7 4.52502C19.0833 4.67502 19.3958 4.91669 19.6375 5.25002C19.8792 5.58336 20 5.95836 20 6.37502V11.1C20 13.4334 19.3333 15.6125 18 17.6375C16.6667 19.6625 14.875 21.05 12.625 21.8C12.525 21.8334 12.425 21.8584 12.325 21.875C12.225 21.8917 12.1167 21.9 12 21.9Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ShieldIcon=a}),98); __d("WAWebStorefrontIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="storefront";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.0002 3H20.0002C20.2835 3 20.521 3.09583 20.7127 3.2875C20.9044 3.47917 21.0002 3.71667 21.0002 4C21.0002 4.28333 20.9044 4.52083 20.7127 4.7125C20.521 4.90417 20.2835 5 20.0002 5H4.0002C3.71686 5 3.47936 4.90417 3.2877 4.7125C3.09603 4.52083 3.0002 4.28333 3.0002 4C3.0002 3.71667 3.09603 3.47917 3.2877 3.2875C3.47936 3.09583 3.71686 3 4.0002 3ZM4.0002 21C3.71686 21 3.47936 20.9042 3.2877 20.7125C3.09603 20.5208 3.0002 20.2833 3.0002 20V14H2.8252C2.50853 14 2.2502 13.8792 2.0502 13.6375C1.8502 13.3958 1.78353 13.1167 1.8502 12.8L2.8502 6.8C2.9002 6.56667 3.01686 6.375 3.2002 6.225C3.38353 6.075 3.59186 6 3.8252 6H20.1752C20.4085 6 20.6169 6.075 20.8002 6.225C20.9835 6.375 21.1002 6.56667 21.1502 6.8L22.1502 12.8C22.2169 13.1167 22.1502 13.3958 21.9502 13.6375C21.7502 13.8792 21.4919 14 21.1752 14H21.0002V20C21.0002 20.2833 20.9044 20.5208 20.7127 20.7125C20.521 20.9042 20.2835 21 20.0002 21C19.7169 21 19.4794 20.9042 19.2877 20.7125C19.096 20.5208 19.0002 20.2833 19.0002 20V14H15.0002V20C15.0002 20.2833 14.9044 20.5208 14.7127 20.7125C14.521 20.9042 14.2835 21 14.0002 21H4.0002ZM5.0002 19H13.0002V14H5.0002V19ZM4.0502 12H19.9502L19.3502 8H4.6502L4.0502 12Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.StorefrontIcon=a}),98); __d("WAWebThemeRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="theme-refreshed";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:"M8.65 20H6C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18V15.35L2.075 13.4C1.89167 13.2 1.75 12.9792 1.65 12.7375C1.55 12.4958 1.5 12.25 1.5 12C1.5 11.75 1.55 11.5042 1.65 11.2625C1.75 11.0208 1.89167 10.8 2.075 10.6L4 8.65V6C4 5.45 4.19583 4.97917 4.5875 4.5875C4.97917 4.19583 5.45 4 6 4H8.65L10.6 2.075C10.8 1.89167 11.0208 1.75 11.2625 1.65C11.5042 1.55 11.75 1.5 12 1.5C12.25 1.5 12.4958 1.55 12.7375 1.65C12.9792 1.75 13.2 1.89167 13.4 2.075L15.35 4H18C18.55 4 19.0208 4.19583 19.4125 4.5875C19.8042 4.97917 20 5.45 20 6V8.65L21.925 10.6C22.1083 10.8 22.25 11.0208 22.35 11.2625C22.45 11.5042 22.5 11.75 22.5 12C22.5 12.25 22.45 12.4958 22.35 12.7375C22.25 12.9792 22.1083 13.2 21.925 13.4L20 15.35V18C20 18.55 19.8042 19.0208 19.4125 19.4125C19.0208 19.8042 18.55 20 18 20H15.35L13.4 21.925C13.2 22.1083 12.9792 22.25 12.7375 22.35C12.4958 22.45 12.25 22.5 12 22.5C11.75 22.5 11.5042 22.45 11.2625 22.35C11.0208 22.25 10.8 22.1083 10.6 21.925L8.65 20ZM9.5 18L12 20.5L14.5 18H18V14.5L20.5 12L18 9.5V6H14.5L12 3.5L9.5 6H6V9.5L3.5 12L6 14.5V18H9.5ZM12 17C13.3833 17 14.5625 16.5125 15.5375 15.5375C16.5125 14.5625 17 13.3833 17 12C17 10.6167 16.5125 9.4375 15.5375 8.4625C14.5625 7.4875 13.3833 7 12 7V17Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ThemeRefreshedIcon=a}),98); __d("WAWebVideoCallIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="video-call";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:"M3.27096 7.31042C3 7.82381 3 8.49587 3 9.84V14.16C3 15.5041 3 16.1762 3.27096 16.6896C3.5093 17.1412 3.88961 17.5083 4.35738 17.7384C4.88916 18 5.58531 18 6.9776 18H13.1097C14.502 18 15.1982 18 15.7299 17.7384C16.1977 17.5083 16.578 17.1412 16.8164 16.6896C17.0873 16.1762 17.0873 15.5041 17.0873 14.16V9.84C17.0873 8.49587 17.0873 7.82381 16.8164 7.31042C16.578 6.85883 16.1977 6.49168 15.7299 6.26158C15.1982 6 14.502 6 13.1097 6H6.9776C5.58531 6 4.88916 6 4.35738 6.26158C3.88961 6.49168 3.5093 6.85883 3.27096 7.31042Z",fill:"currentColor"}),j.jsx("path",{d:"M18.7308 9.60844C18.5601 9.75994 18.4629 9.97355 18.4629 10.1974V13.8026C18.4629 14.0264 18.5601 14.2401 18.7308 14.3916L20.9567 16.3669C21.4879 16.8384 22.3462 16.4746 22.3462 15.778V8.22203C22.3462 7.52542 21.4879 7.16163 20.9567 7.63306L18.7308 9.60844Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.VideoCallIcon=a}),98); __d("WAWebWallpaperRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wallpaper-refreshed";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:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V14C3 13.7167 3.09583 13.4792 3.2875 13.2875C3.47917 13.0958 3.71667 13 4 13C4.28333 13 4.52083 13.0958 4.7125 13.2875C4.90417 13.4792 5 13.7167 5 14V19H10C10.2833 19 10.5208 19.0958 10.7125 19.2875C10.9042 19.4792 11 19.7167 11 20C11 20.2833 10.9042 20.5208 10.7125 20.7125C10.5208 20.9042 10.2833 21 10 21H5ZM19 21H14C13.7167 21 13.4792 20.9042 13.2875 20.7125C13.0958 20.5208 13 20.2833 13 20C13 19.7167 13.0958 19.4792 13.2875 19.2875C13.4792 19.0958 13.7167 19 14 19H19V14C19 13.7167 19.0958 13.4792 19.2875 13.2875C19.4792 13.0958 19.7167 13 20 13C20.2833 13 20.5208 13.0958 20.7125 13.2875C20.9042 13.4792 21 13.7167 21 14V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21ZM11.25 16L13.85 12.525C13.95 12.3917 14.0833 12.325 14.25 12.325C14.4167 12.325 14.55 12.3917 14.65 12.525L17.4 16.2C17.5333 16.3667 17.55 16.5417 17.45 16.725C17.35 16.9083 17.2 17 17 17H7C6.8 17 6.65 16.9083 6.55 16.725C6.45 16.5417 6.46667 16.3667 6.6 16.2L8.6 13.525C8.7 13.3917 8.83333 13.325 9 13.325C9.16667 13.325 9.3 13.3917 9.4 13.525L11.25 16ZM3 5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H10C10.2833 3 10.5208 3.09583 10.7125 3.2875C10.9042 3.47917 11 3.71667 11 4C11 4.28333 10.9042 4.52083 10.7125 4.7125C10.5208 4.90417 10.2833 5 10 5H5V10C5 10.2833 4.90417 10.5208 4.7125 10.7125C4.52083 10.9042 4.28333 11 4 11C3.71667 11 3.47917 10.9042 3.2875 10.7125C3.09583 10.5208 3 10.2833 3 10V5ZM21 5V10C21 10.2833 20.9042 10.5208 20.7125 10.7125C20.5208 10.9042 20.2833 11 20 11C19.7167 11 19.4792 10.9042 19.2875 10.7125C19.0958 10.5208 19 10.2833 19 10V5H14C13.7167 5 13.4792 4.90417 13.2875 4.7125C13.0958 4.52083 13 4.28333 13 4C13 3.71667 13.0958 3.47917 13.2875 3.2875C13.4792 3.09583 13.7167 3 14 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5ZM15.5 10C15.0667 10 14.7083 9.85833 14.425 9.575C14.1417 9.29167 14 8.93333 14 8.5C14 8.06667 14.1417 7.70833 14.425 7.425C14.7083 7.14167 15.0667 7 15.5 7C15.9333 7 16.2917 7.14167 16.575 7.425C16.8583 7.70833 17 8.06667 17 8.5C17 8.93333 16.8583 9.29167 16.575 9.575C16.2917 9.85833 15.9333 10 15.5 10Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WallpaperRefreshedIcon=a}),98); __d("WAWebSettingsStepIcon.react",["WAWebAccountCircleIcon.react","WAWebBugnubIcon.react","WAWebBugnubRefreshedIcon.react","WAWebBusinessDataSharingIcon.react","WAWebBusinessToolsIcon.react","WAWebChatRefreshedIcon.react","WAWebChatsFilledIcon.react","WAWebClockRefreshedIcon.react","WAWebDevIcon.react","WAWebDeveloperMenuDeveloperMenuIcons.react","WAWebDocumentRefreshedIcon.react","WAWebDownloadRefreshedIcon.react","WAWebExitIcon.react","WAWebExitRefreshedIcon.react","WAWebHelpFilledIcon.react","WAWebIcComputerIcon.react","WAWebInfoFilledIcon.react","WAWebInfoRefreshedIcon.react","WAWebKeyOutlineIcon.react","WAWebKeyboardIcon.react","WAWebListPeopleIcon.react","WAWebLockRefreshedIcon.react","WAWebMediaDownloadIcon.react","WAWebMessageReportIcon.react","WAWebMessageReportRefreshedIcon.react","WAWebQuestionIcon.react","WAWebSecurityLockIcon.react","WAWebSettingsConst","WAWebSettingsDocumentIcon.react","WAWebSettingsKeyboardIcon.react","WAWebSettingsNotificationsIcon.react","WAWebSettingsSecurityIcon.react","WAWebSettingsThemeIcon.react","WAWebSettingsWallpaperIcon.react","WAWebShieldIcon.react","WAWebStatusClockIcon.react","WAWebStorefrontIcon.react","WAWebSvgComponentBase","WAWebThemeRefreshedIcon.react","WAWebTransferRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebUnmuteNotificationsRefreshedIcon.react","WAWebVideoCallIcon.react","WAWebVideoCallRefreshedIcon.react","WAWebWallpaperRefreshedIcon.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.setting;var b=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),c=b?k:j;return i.jsx("div",babelHelpers["extends"]({},{0:{},1:{className:"xhslqc4"}}[!!b<<0],{children:i.jsx(c,{setting:a})}))}a.displayName=a.name+" [from "+f.id+"]";function j(a){a=a.setting;switch(a){case d("WAWebSettingsConst").SettingsSteps.BusinessTools:return i.jsx(d("WAWebBusinessToolsIcon.react").BusinessToolsIcon,{width:26,height:26});case d("WAWebSettingsConst").SettingsSteps.DataSharing:return i.jsx(d("WAWebBusinessDataSharingIcon.react").BusinessDataSharingIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.Notifications:return i.jsx(d("WAWebSettingsNotificationsIcon.react").SettingsNotificationsIcon,{width:27,height:27});case d("WAWebSettingsConst").SettingsSteps.PrivacySettings:return i.jsx(d("WAWebSecurityLockIcon.react").SecurityLockIcon,{width:23,height:23});case d("WAWebSettingsConst").SettingsSteps.LanguageAndTime:return i.jsx(d("WAWebStatusClockIcon.react").StatusClockIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.Security:return i.jsx(d("WAWebSettingsSecurityIcon.react").SettingsSecurityIcon,{width:26,height:26});case d("WAWebSettingsConst").SettingsSteps.Wallpaper:return i.jsx(d("WAWebSettingsWallpaperIcon.react").SettingsWallpaperIcon,{});case d("WAWebSettingsConst").SettingsSteps.MediaAutoDownload:return i.jsx(d("WAWebMediaDownloadIcon.react").MediaDownloadIcon,{width:25,height:25});case d("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings:return i.jsx(d("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.Help:return i.jsx(d("WAWebHelpFilledIcon.react").HelpFilledIcon,{width:27,height:27});case d("WAWebSettingsConst").SettingsSteps.Bugnub:return i.jsx(d("WAWebBugnubIcon.react").BugnubIcon,{width:18,height:18});case d("WAWebSettingsConst").SettingsSteps.Developer:case d("WAWebSettingsConst").SettingsSteps.DeveloperABProps:return i.jsx(d("WAWebDeveloperMenuDeveloperMenuIcons.react").DeveloperIcon,{});case d("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts:return i.jsx(d("WAWebSettingsKeyboardIcon.react").SettingsKeyboardIcon,{});case d("WAWebSettingsConst").SettingsSteps.Theme:return i.jsx(d("WAWebSettingsThemeIcon.react").SettingsThemeIcon,{});case d("WAWebSettingsConst").SettingsSteps.Logout:return i.jsx(d("WAWebExitIcon.react").ExitIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL});case d("WAWebSettingsConst").SettingsSteps.NewsletterReports:return i.jsx(d("WAWebMessageReportIcon.react").MessageReportIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.Account:return i.jsx(d("WAWebAccountCircleIcon.react").AccountCircleIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.Chats:return i.jsx(d("WAWebChatsFilledIcon.react").ChatsFilledIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.DeleteAccount:return i.jsx(d("WAWebInfoFilledIcon.react").InfoFilledIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.Lists:return i.jsx(d("WAWebListPeopleIcon.react").ListPeopleIcon,{});case d("WAWebSettingsConst").SettingsSteps.WinGeneralSettings:return i.jsx(d("WAWebIcComputerIcon.react").IcComputerIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.WinDevicesSettings:return i.jsx(d("WAWebVideoCallIcon.react").VideoCallIcon,{width:24,height:24});default:return null}}j.displayName=j.name+" [from "+f.id+"]";function k(a){a=a.setting;switch(a){case d("WAWebSettingsConst").SettingsSteps.BusinessTools:return i.jsx(d("WAWebStorefrontIcon.react").StorefrontIcon,{});case d("WAWebSettingsConst").SettingsSteps.DataSharing:return i.jsx(d("WAWebTransferRefreshedIcon.react").TransferRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Notifications:return i.jsx(d("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.PrivacySettings:return i.jsx(d("WAWebLockRefreshedIcon.react").LockRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.LanguageAndTime:return i.jsx(d("WAWebClockRefreshedIcon.react").ClockRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Security:return i.jsx(d("WAWebShieldIcon.react").ShieldIcon,{});case d("WAWebSettingsConst").SettingsSteps.Wallpaper:return i.jsx(d("WAWebWallpaperRefreshedIcon.react").WallpaperRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.MediaAutoDownload:return i.jsx(d("WAWebDownloadRefreshedIcon.react").DownloadRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings:return i.jsx(d("WAWebDocumentRefreshedIcon.react").DocumentRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Help:return i.jsx(d("WAWebQuestionIcon.react").QuestionIcon,{});case d("WAWebSettingsConst").SettingsSteps.Bugnub:return i.jsx(d("WAWebBugnubRefreshedIcon.react").BugnubRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Developer:case d("WAWebSettingsConst").SettingsSteps.DeveloperABProps:return i.jsx(d("WAWebDevIcon.react").DevIcon,{});case d("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts:return i.jsx(d("WAWebKeyboardIcon.react").KeyboardIcon,{});case d("WAWebSettingsConst").SettingsSteps.Theme:return i.jsx(d("WAWebThemeRefreshedIcon.react").ThemeRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Logout:return i.jsx(d("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL});case d("WAWebSettingsConst").SettingsSteps.NewsletterReports:return i.jsx(d("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Account:return i.jsx(d("WAWebKeyOutlineIcon.react").KeyOutlineIcon,{});case d("WAWebSettingsConst").SettingsSteps.Chats:return i.jsx(d("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.DeleteAccount:return i.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{});case d("WAWebSettingsConst").SettingsSteps.Lists:return i.jsx(d("WAWebListPeopleIcon.react").ListPeopleIcon,{});case d("WAWebSettingsConst").SettingsSteps.WinGeneralSettings:return i.jsx(d("WAWebIcComputerIcon.react").IcComputerIcon,{width:24,height:24});case d("WAWebSettingsConst").SettingsSteps.WinDevicesSettings:return i.jsx(d("WAWebVideoCallRefreshedIcon.react").VideoCallRefreshedIcon,{width:24,height:24});default:return null}}k.displayName=k.name+" [from "+f.id+"]";g.SettingsStepIcon=a}),98); __d("WAWebAccountSettingsDrawer.react",["fbt","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebMenu.react","WAWebMenuItems.react","WAWebSettingsFBT","WAWebSettingsHierarchy","WAWebSettingsStepIcon.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.onClickRequestAccountInfo,e=a.onClickSecurity,f=a.onClose;a=a.ref;return j.jsxs(c("WAWebDrawer.react"),{ref:a,theme:"settings",testid:void 0,children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:d("WAWebSettingsFBT").accountTitle(),onBack:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),j.jsx(c("WAWebDrawerBody.react"),{children:j.jsxs(d("WAWebMenu.react").WDSMenu,{size:"medium",colorScheme:"default",allowTabNavigation:!0,children:[j.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:d("WAWebSettingsHierarchy").SecuritySettingsItem.id,testid:void 0,detailLeft:j.jsx(d("WAWebSettingsStepIcon.react").SettingsStepIcon,{setting:d("WAWebSettingsHierarchy").SecuritySettingsItem.step}),onSelect:e,primary:h._(/*BTDS*/"__JHASH__bRvCms2O9hS__JHASH__"),searchCriteria:d("WAWebSettingsHierarchy").SecuritySettingsItem.searchCriteria}),j.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:d("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.id,testid:void 0,detailLeft:j.jsx(d("WAWebSettingsStepIcon.react").SettingsStepIcon,{setting:d("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.step}),onSelect:b,primary:d("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.title(),searchCriteria:d("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.searchCriteria}),j.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:d("WAWebSettingsHierarchy").DeleteAccountSettingsItem.id,testid:void 0,detailLeft:j.jsx(d("WAWebSettingsStepIcon.react").SettingsStepIcon,{setting:d("WAWebSettingsHierarchy").DeleteAccountSettingsItem.step}),onSelect:function(){return d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getDeleteAccountUrl())},primary:d("WAWebSettingsHierarchy").DeleteAccountSettingsItem.title(),searchCriteria:d("WAWebSettingsHierarchy").DeleteAccountSettingsItem.searchCriteria})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g.AccountSettingsDrawer=a}),226); __d("WAWebAdBoostingStatus.react",["fbt","WAWebCommonAdsTypes"],(function(a,b,c,d,e,f,g,h){function a(a){a=a.boostingStatus;switch(a){case d("WAWebCommonAdsTypes").BoostingStatusEnum.ACTIVE:return h._(/*BTDS*/"__JHASH__EGpi0bs_X-O__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.AUTHENTICATION_NEEDED:return h._(/*BTDS*/"__JHASH__ExsXQobHdcB__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.CREATING:return h._(/*BTDS*/"__JHASH__8Piarcr9zzo__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.EXTENDABLE:return h._(/*BTDS*/"__JHASH__mKL9AhI9vxr__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.FINISHED:return h._(/*BTDS*/"__JHASH__mKL9AhI9vxr__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.LIMITED_DELIVERY:return h._(/*BTDS*/"__JHASH__KBXtAOpHH44__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.NOT_DELIVERING:return h._(/*BTDS*/"__JHASH__n1OXc7OHBlT__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.PAUSED:return h._(/*BTDS*/"__JHASH__GD3wyTu0qug__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.PENDING:return h._(/*BTDS*/"__JHASH__RjhrJQSdPK3__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.REJECTED:return h._(/*BTDS*/"__JHASH__ZWgFc1QAjX5__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.REVIEW_NEEDED:return h._(/*BTDS*/"__JHASH__8EVoOHCx23I__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.SCHEDULED:return h._(/*BTDS*/"__JHASH__y-r7gyK-BgA__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.ERROR:return h._(/*BTDS*/"__JHASH__IM3u9_HCGhe__JHASH__");case d("WAWebCommonAdsTypes").BoostingStatusEnum.UNKNOWN:return h._(/*BTDS*/"__JHASH__uFFHyT6OJ08__JHASH__")}}g.BoostingStatusText=a}),226); __d("WAWebAdListEmpty.react",["fbt","WAWebBox.react","WAWebText.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){return j.jsx(d("WAWebBox.react").Box,{xstyle:[d("WAWebUISpacing").paddingHoriz24,d("WAWebUISpacing").paddingTop16],children:j.jsx(d("WAWebText.react").WAWebTextTitle,{children:h._(/*BTDS*/"__JHASH__CZP-0o1zNbu__JHASH__")})})}a.displayName=a.name+" [from "+f.id+"]";g.AdListEmpty=a}),226); __d("WAWebAdRow.react",["fbt","WAWebAdBoostingStatus.react","WAWebBizGatingUtils","WAWebBusinessAdCreationUtils","WAWebButton.react","WAWebChatCell.react","WAWebCommonAdsTypes","WAWebDropdownItem.react","WAWebEmojiText.react","WAWebExternalLink.react","WAWebImg.react","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUserPrefsCTWA","WAWebWarningIcon.react","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useState,n={thumbnail:{height:"xnnlda6",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",alignSelf:"xamitd3",$$css:!0},adRowWithNavBarRedesign:{borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",borderBottomColor:"x1v2jjsl",$$css:!0}};function a(a){var b=a.ad;a=a.isLast;var e=b.ad,f=e.adId,g=e.boostingStatus,i=e.budget,k=e.conversations,o=e.creativeText,p=e.reach;e=e.thumbnailUrl;var q=m(null),r=q[0],s=q[1];q=o!=null?l.jsx(d("WAWebEmojiText.react").EmojiText,{text:o,ellipsify:!0,titlify:!0}):h._(/*BTDS*/"__JHASH__OEF0P7Docxd__JHASH__");var t=l.jsx(d("WAWebAdBoostingStatus.react").BoostingStatusText,{boostingStatus:g}),u=function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebBusinessAdCreationUtils").getWhatsappViewAdDetailsUrl(f))},v,w;switch(g){case d("WAWebCommonAdsTypes").BoostingStatusEnum.ACTIVE:case d("WAWebCommonAdsTypes").BoostingStatusEnum.NOT_DELIVERING:case d("WAWebCommonAdsTypes").BoostingStatusEnum.PAUSED:if(d("WAWebBizGatingUtils").adManagementMetricsDisplayingEnabled()){k>0?k=h._(/*BTDS*/"__JHASH__G_nHMsu3i-S__JHASH__",[h._plural(k,"messages")]):k=h._(/*BTDS*/"__JHASH___JdvVsngo2M__JHASH__",[h._param("reach",p)]);v=l.jsxs("span",{children:[t," \xb7 ",k]})}else v=l.jsx("span",{children:t});break;case d("WAWebCommonAdsTypes").BoostingStatusEnum.EXTENDABLE:case d("WAWebCommonAdsTypes").BoostingStatusEnum.FINISHED:if(d("WAWebBizGatingUtils").adManagementMetricsDisplayingEnabled()){p=h._(/*BTDS*/"__JHASH__Y0rf7PhaZv6__JHASH__",[h._param("budget",i)]);v=l.jsxs("span",{children:[t," \xb7 ",p]})}else v=l.jsx("span",{children:t});break;case d("WAWebCommonAdsTypes").BoostingStatusEnum.PENDING:case d("WAWebCommonAdsTypes").BoostingStatusEnum.REVIEW_NEEDED:v=t;w=l.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:d("WAWebUISpacing").uiPadding.horiz12,children:l.jsx("div",{children:h._(/*BTDS*/"__JHASH__gt07VaTv9wv__JHASH__")})});break;case d("WAWebCommonAdsTypes").BoostingStatusEnum.LIMITED_DELIVERY:v=l.jsxs("span",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 x17zd0t2 x1r0jzty"},{children:[l.jsx(d("WAWebWarningIcon.react").WarningIcon,{height:12})," ",t]}));w=l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([d("WAWebUISpacing").uiPadding.horiz12,d("WAWebUISpacing").uiPadding.bottom8]),{children:l.jsx(d("WAWebButton.react").WAWebButtonSecondary,{stretch:!0,onClick:u,children:h._(/*BTDS*/"__JHASH__RM5wi7bj8oD__JHASH__")})}));break;case d("WAWebCommonAdsTypes").BoostingStatusEnum.AUTHENTICATION_NEEDED:case d("WAWebCommonAdsTypes").BoostingStatusEnum.CREATING:case d("WAWebCommonAdsTypes").BoostingStatusEnum.ERROR:case d("WAWebCommonAdsTypes").BoostingStatusEnum.REJECTED:case d("WAWebCommonAdsTypes").BoostingStatusEnum.SCHEDULED:case d("WAWebCommonAdsTypes").BoostingStatusEnum.UNKNOWN:v=t;break}i=l.jsx(c("WAWebImg.react"),{alt:(k=o)!=null?k:"",className:(j||(j=c("stylex")))([n.thumbnail,d("WAWebUISpacing").uiMargin.vert24,d("WAWebUISpacing").uiMargin.end24]),src:e});var x=d("WAWebBizGatingUtils").adManagementActionsDisplayingEnabled();p=function(){return x};t=x?function(a){if(r!=null){s(null);return}var c=function(){var a=d("WAWebUserPrefsCTWA").generateAdCreationFlowId();d("WAWebExternalLink.react").openExternalLink(d("WAWebBusinessAdCreationUtils").getWhatsappEditAdUrl(f,a))},e=[];e.push(l.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:u,children:h._(/*BTDS*/"__JHASH__kJLk6nfOlm9__JHASH__")},"mi-view-ad-details"));e.push(l.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:c,children:h._(/*BTDS*/"__JHASH__J-D58eS1yu0__JHASH__")},"mi-edit-ad"));if(g===d("WAWebCommonAdsTypes").BoostingStatusEnum.FINISHED||g===d("WAWebCommonAdsTypes").BoostingStatusEnum.EXTENDABLE){var i=b.ad.campaignGroupId;c=function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebBusinessAdCreationUtils").getWhatsappRecreateAdUrl(i))};e.push(l.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:c,children:h._(/*BTDS*/"__JHASH__8T0olafVx_k__JHASH__")},"mi-recreate-ad"))}s({menu:e,event:a.event,anchor:a.anchor})}:void 0;o=function(){s(null)};k=r!=null?l.jsx(d("WAWebUimUie.react").UIE,{displayName:"AdRowContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:o,children:l.jsx(c("WAWebUimUieMenu.react"),{contextMenu:r})}):null;return l.jsxs("div",babelHelpers["extends"]({className:"x1z0qo99 x1277o0a"},{children:[l.jsx(c("WAWebChatCell.react"),{className:j([d("WAWebUISpacing").uiMargin.horiz24,!a&&n.adRowWithNavBarRedesign]),primary:q,secondary:v,image:i,contextEnabled:p,onContext:t,onClick:x?void 0:u,theme:"ads-list",customImage:!0}),k,w]}))}a.displayName=a.name+" [from "+f.id+"]";g.AdRow=a}),226); __d("WAWebAdList.react",["WAWebAdListEmpty.react","WAWebAdRow.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.ads;return b.length===0?i.jsx(d("WAWebAdListEmpty.react").AdListEmpty,{}):i.jsx(i.Fragment,{children:b.map(function(a,c){return i.jsx(d("WAWebAdRow.react").AdRow,{ad:a,isLast:c===b.length-1},a.ad.adId)})})}a.displayName=a.name+" [from "+f.id+"]";g.AdList=a}),98); __d("WAWebAddressingModePopup.react",["WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","WAWebRadio.react","WAWebText_DONOTUSE.react","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState,l={explanation:{marginBottom:"xod5an3",$$css:!0}};function a(a){var b=a.initialAddressingMode,e=a.onAddressingModeSelected;a=k(b);var f=a[0],g=a[1],h=function(a){g(a)};b=function(){e(f),d("WAWebModalManager").ModalManager.close()};a=function(){d("WAWebModalManager").ModalManager.close()};var i=j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:l.explanation,children:"Override the addressing mode of the new group."}),j.jsx(d("WAWebRadio.react").RadioWithLabel,{name:"addressing_mode",value:"pn",label:"pn",checked:f==="pn",onChange:function(){return h("pn")}},"addressing_mode_pn_radio"),j.jsx(d("WAWebRadio.react").RadioWithLabel,{name:"addressing_mode",value:"lid",label:"lid",checked:f==="lid",onChange:function(){return h("lid")}},"addressing_mode_lid_radio")]});return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,title:"Addressing Mode",onOK:b,onCancel:a,cancelText:c("WAWebFbtCommon")("Cancel"),children:i})}a.displayName=a.name+" [from "+f.id+"]";g.AddressingModePopup=a}),98); __d("WAWebAdsManagementLoadError.react",["fbt","WAWebBox.react","WAWebText.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={text:{display:"xt0psk2",$$css:!0}};function a(a){var b=a.errorText;a=a.onClickRetry;a=a!=null?j.jsx(d("WAWebText.react").WDSClickableText,{xstyle:d("WAWebUISpacing").paddingStart4,onClick:a,children:h._(/*BTDS*/"__JHASH__Nm8NWSsAl1K__JHASH__")}):null;return j.jsxs(d("WAWebBox.react").Box,{xstyle:[d("WAWebUISpacing").paddingHoriz24,d("WAWebUISpacing").paddingTop16],children:[j.jsx(d("WAWebText.react").WAWebTextTitle,{xstyle:k.text,children:b}),a]})}a.displayName=a.name+" [from "+f.id+"]";g.AdsManagementLoadError=a}),226); __d("WAWebAdsManagementFallback.react",["fbt","WAWebAdsManagementLoadError.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){a=a.onClickRetry;var b=h._(/*BTDS*/"__JHASH__51wFNNDAtBW__JHASH__");return j.jsx(d("WAWebAdsManagementLoadError.react").AdsManagementLoadError,{onClickRetry:a,errorText:b})}a.displayName=a.name+" [from "+f.id+"]";g.AdsManagementFallback=a}),226); __d("WAWebAdsManagementLWILink.react",["fbt","WAWebCopyPasteSelectable.react","WAWebExecApiCmd","WAWebFlex.react","WAWebLaunchIcon.react","WAWebSvgComponentBase","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={link:{display:"x78zum5",cursor:"x1ypdohk",width:"xh8yej3",justifyContent:"x1qughib",$$css:!0},topDivider:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0}};function a(){var a=function(){c("WAWebExecApiCmd")({cmdData:{resultType:"MANAGE_ADS",trigger:"adsManagement"},isExternal:!1})};return j.jsx(d("WAWebFlex.react").FlexColumn,{xstyle:[d("WAWebUISpacing").uiPadding.horiz24,d("WAWebUISpacing").uiPadding.top16,k.topDivider,d("WAWebUISpacing").uiMargin.top16],children:j.jsxs(d("WAWebCopyPasteSelectable.react").SelectableLink,{xstyle:k.link,selectable:!0,onClick:a,children:[h._(/*BTDS*/"__JHASH__11g4DW5gjeG__JHASH__"),j.jsx(d("WAWebLaunchIcon.react").LaunchIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY})]})})}a.displayName=a.name+" [from "+f.id+"]";g.AdsManagementLWILink=a}),226); __d("WAWebAdsManagementMetricsInfoModal.react",["fbt","WAWebConfirmPopup.react","WAWebCopyPasteSelectable.react","WAWebExternalLink.react","WAWebFlex.react","WAWebModalManager","WAWebText.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k="https://www.facebook.com/business/help/1406571646230212",l="https://www.facebook.com/business/help/2038363993156008",m="https://www.facebook.com/business/help/710746785663278",n="https://www.facebook.com/business/help/283579896000936",o="https://www.facebook.com/business/help/675615482516035",p="https://www.facebook.com/business/help/metrics-labeling",q="https://www.facebook.com/business/help/458681590974355?id=768381033531365";function a(){d("WAWebModalManager").ModalManager.open(j.jsx(t,{}))}function r(a){var b=a.children,c=a.url;return j.jsx(d("WAWebCopyPasteSelectable.react").SelectableLink,{className:"x1ypdohk",selectable:!0,onClick:function(){return d("WAWebExternalLink.react").openExternalLink(c)},children:b})}r.displayName=r.name+" [from "+f.id+"]";var s=function(){var a;return j.jsxs(d("WAWebFlex.react").FlexColumn,{children:[j.jsx((a=d("WAWebText.react")).WAWebTextSectionTitle,{children:h._(/*BTDS*/"__JHASH__Dh_b1aSGyjA__JHASH__")}),j.jsx(a.WAWebTextSmall,{children:h._(/*BTDS*/"__JHASH__QtPBq3Cv7lP__JHASH__",[h._implicitParam("=m2",j.jsx(r,{url:n,children:h._(/*BTDS*/"__JHASH__L0cF4IoB712__JHASH__")})),h._implicitParam("=m6",j.jsx(r,{url:o,children:h._(/*BTDS*/"__JHASH__HC7Ge0IbNdj__JHASH__")})),h._implicitParam("=m8",j.jsx(r,{url:m,children:h._(/*BTDS*/"__JHASH__RDjQeQw2tMp__JHASH__")}))])}),j.jsx(a.WAWebTextSmall,{children:h._(/*BTDS*/"__JHASH__R9QsD9iLUxH__JHASH__",[h._implicitParam("=m2",j.jsx(r,{url:p,children:h._(/*BTDS*/"__JHASH__i7i9btbHn1P__JHASH__")}))])}),j.jsx(a.WAWebTextSectionTitle,{xstyle:d("WAWebUISpacing").uiPadding.top16,children:h._(/*BTDS*/"__JHASH__85hKFdIc1VO__JHASH__")}),j.jsx(a.WAWebTextSmall,{children:h._(/*BTDS*/"__JHASH__-5dq_me8o7a__JHASH__",[h._implicitParam("=m1",j.jsx(r,{url:k,children:h._(/*BTDS*/"__JHASH__sirqKjpX8j0__JHASH__")}))])}),j.jsx(a.WAWebTextSectionTitle,{xstyle:d("WAWebUISpacing").uiPadding.top16,children:h._(/*BTDS*/"__JHASH__lnHuq7OOXog__JHASH__")}),j.jsx(a.WAWebTextSmall,{children:h._(/*BTDS*/"__JHASH__Q7YknexsB61__JHASH__",[h._implicitParam("=m2",j.jsx(r,{url:q,children:h._(/*BTDS*/"__JHASH__22TCEzPioRJ__JHASH__")})),h._implicitParam("=m4",j.jsx(r,{url:l,children:h._(/*BTDS*/"__JHASH__z7jdXILXJY3__JHASH__")}))])})]})},t=function(){var a=function(){return d("WAWebModalManager").ModalManager.close()};return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,onOK:a,okText:h._(/*BTDS*/"__JHASH__yfQsJGNOX-X__JHASH__"),onOverlayClick:a,children:j.jsx(s,{})})};g.LEARN_MORE_AMOUNT_SPENT_URL=k;g.LEARN_MORE_MESSAGING_CONVERSATIONS_STARTED_URL=l;g.LEARN_MORE_REACH_URL=m;g.HYPERLINKED_ACCOUNT_CENTER_ACCOUNTS_URL=n;g.HYPERLINKED_IMPRESSIONS_URL=o;g.HYPERLINKED_ESTIMATED_URL=p;g.HYPERLINKED_ATTRIBUTED_TO_YOUR_ADS_URL=q;g.displayAdsManagementMetricsInfoModal=a}),226); __d("WAWebAdsManagementSpinner.react",["WAWebFlex.react","WAWebSpinner.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){return i.jsx(d("WAWebFlex.react").FlexColumn,{xstyle:[d("WAWebUISpacing").uiPadding.horiz24,d("WAWebUISpacing").uiPadding.top16],children:i.jsx(d("WAWebFlex.react").FlexRow,{alignSelf:"center",children:i.jsx(d("WAWebSpinner.react").Spinner,{size:50,stroke:3})})})}a.displayName=a.name+" [from "+f.id+"]";g.AdsManagementSpinner=a}),98); __d("WAWebAdsStackIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="ads-stack";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("g",{id:"icon_manage_ads",children:j.jsx("path",{id:"Vector",d:"M6.6251 19.375C6.13571 19.375 5.70921 19.1905 5.34557 18.8216C4.98192 18.4526 4.8001 18.0287 4.8001 17.55V3.45C4.8001 2.97125 4.98192 2.5474 5.34557 2.17845C5.70921 1.80948 6.13571 1.625 6.6251 1.625H20.7251C21.2038 1.625 21.6277 1.80948 21.9966 2.17845C22.3656 2.5474 22.5501 2.97125 22.5501 3.45V17.55C22.5501 18.0287 22.3656 18.4526 21.9966 18.8216C21.6277 19.1905 21.2038 19.375 20.7251 19.375H6.6251ZM6.6251 5.25H20.7251V3.45H6.6251V5.25ZM3.3001 22.7C2.81071 22.7 2.38421 22.5155 2.02057 22.1466C1.65692 21.7776 1.4751 21.3538 1.4751 20.875V4.95H3.3001V20.875H19.2251V22.7H3.3001Z",fill:"currentColor"})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.AdsStackIcon=a}),98); __d("WAWebAdsStackRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="ads-stack-refreshed";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:"M8 18C7.45 18 6.97917 17.8042 6.5875 17.4125C6.19583 17.0208 6 16.55 6 16V4C6 3.45 6.19583 2.97917 6.5875 2.5875C6.97917 2.19583 7.45 2 8 2H20C20.55 2 21.0208 2.19583 21.4125 2.5875C21.8042 2.97917 22 3.45 22 4V16C22 16.55 21.8042 17.0208 21.4125 17.4125C21.0208 17.8042 20.55 18 20 18H8ZM8 16H20V6H8V16ZM4 22C3.45 22 2.97917 21.8042 2.5875 21.4125C2.19583 21.0208 2 20.55 2 20V7C2 6.71667 2.09583 6.47917 2.2875 6.2875C2.47917 6.09583 2.71667 6 3 6C3.28333 6 3.52083 6.09583 3.7125 6.2875C3.90417 6.47917 4 6.71667 4 7V20H17C17.2833 20 17.5208 20.0958 17.7125 20.2875C17.9042 20.4792 18 20.7167 18 21C18 21.2833 17.9042 21.5208 17.7125 21.7125C17.5208 21.9042 17.2833 22 17 22H4Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.AdsStackRefreshedIcon=a}),98); __d("WAWebAdsManagementDrawer.react",["fbt","WAQplTypes","WAWebAdCollection","WAWebAdCreationLogger","WAWebAdList.react","WAWebAdsManagementFallback.react","WAWebAdsManagementLWILink.react","WAWebAdsManagementLoadError.react","WAWebAdsManagementMetricsInfoModal.react","WAWebAdsManagementRecoveryNeeded.react","WAWebAdsManagementSpinner.react","WAWebAdsStackIcon.react","WAWebAdsStackRefreshedIcon.react","WAWebBizGatingUtils","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebInfoIcon.react","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebSvgButton.react","WAWebUIRefreshGatingUtils","WAWebWamEnumLwiScreenAction","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.useState;function n(){var a=h._(/*BTDS*/"__JHASH__k4jka050k2V__JHASH__");return k.jsx(d("WAWebAdsManagementLoadError.react").AdsManagementLoadError,{errorText:a})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.activeAccountInfo,f=a.onBack;a=a.isInitialStep;var g=e.id,i=m(!1),j=i[0],o=i[1];i=m(!0);var p=i[0],q=i[1];i=m({visible:!1});var r=i[0],s=i[1];i=m(null);var t=i[0],u=i[1];i=h._(/*BTDS*/"__JHASH__JhaHO2t01O6__JHASH__");var v=h._(/*BTDS*/"__JHASH__XZuK71vLExX__JHASH__"),w=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebAdsStackRefreshedIcon.react").AdsStackRefreshedIcon:d("WAWebAdsStackIcon.react").AdsStackIcon,x=function(){r.visible&&(d("WAWebQplQuickPerformanceLoggerModule").QPL.markerPoint(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.AD_ACCOUNT_RECOVERY_UI_FLOW,"recovery_flow_back"),d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.AD_ACCOUNT_RECOVERY_UI_FLOW,d("WAQplTypes").QuickLogActionType.CANCEL));if(f==null){d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();return}f()},y=function(){q(!0),o(!1),void d("WAWebAdCollection").AdCollection.loadAds(g)};l(y,[g]);d("useWAWebListener").useListener(d("WAWebAdCollection").AdCollection,"ads-loaded",function(a){if(a.pageId!==g)return;q(!1);a.result==="success"?(u(d("WAWebAdCollection").AdCollection.getModelsArray()),r.visible&&s({visible:!1}),d("WAWebAdCreationLogger").logManageAdsScreenEvent(e,d("WAWebWamEnumLwiScreenAction").LWI_SCREEN_ACTION.LWI_NEW_MANAGE_ADS_TAB_ADS_LOADED)):a.result==="recovery-required"?s({visible:!0,emailMask:a.emailMask}):(a.result,o(!0))});var z=function(){void d("WAWebAdCollection").AdCollection.loadAds(g)},A=null;r.visible&&(A=d("WAWebBizGatingUtils").adManagementRecoveryFlowEnabled()?k.jsx(d("WAWebAdsManagementRecoveryNeeded.react").AdsManagementRecoveryNeeded,{emailMask:r.emailMask,handleCodeEntered:z,handleUserOptedOut:x,headerDescription:v,headerText:i,Icon:w}):k.jsx(n,{}));z=j&&A==null?k.jsx(d("WAWebAdsManagementFallback.react").AdsManagementFallback,{onClickRetry:y}):null;v=p?k.jsx(d("WAWebAdsManagementSpinner.react").AdsManagementSpinner,{}):null;i=t!=null?k.jsx(d("WAWebAdList.react").AdList,{ads:t}):null;w=k.jsx(d("WAWebAdsManagementLWILink.react").AdsManagementLWILink,{});j=d("WAWebBizGatingUtils").adManagementMetricsDisplayingEnabled()?k.jsx(c("WAWebSvgButton.react"),{Icon:d("WAWebInfoIcon.react").InfoIcon,onClick:d("WAWebAdsManagementMetricsInfoModal.react").displayAdsManagementMetricsInfoModal}):null;y=d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL;p={};a?p.onCancel=x:p.onBack=x;return k.jsxs(c("WAWebDrawer.react"),{ref:b,theme:"settings",children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,babelHelpers["extends"]({title:h._(/*BTDS*/"__JHASH__nvby5ru2uhh__JHASH__"),type:y,focusBackOrCancel:!0},p,{children:j})),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{theme:"expand-height",animation:!1,children:[i,z,A,v,w]})})]})}a.displayName=a.name+" [from "+f.id+"]";e=a;g.AdsManagementRecoveryNeededCompleteInPrimary=n;g.AdsManagementDrawer=e}),226); __d("WAWebAiAgentAutoReplyControlMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="24541201322134132"}),null); __d("WAWebAiAgentAutoReplyControlMutation.graphql",["WAWebAiAgentAutoReplyControlMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"consumer_lid"},{defaultValue:null,kind:"LocalArgument",name:"phone_number"},{defaultValue:null,kind:"LocalArgument",name:"thread_status"}],c=[{alias:null,args:[{kind:"Variable",name:"consumer_lid",variableName:"consumer_lid"},{kind:"Variable",name:"phone_number",variableName:"phone_number"},{kind:"Variable",name:"thread_status",variableName:"thread_status"}],concreteType:"XFBWhatsAppSMBBotSyncResponse",kind:"LinkedField",name:"xfb_whatsapp_smb_maiba_status_update",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebAiAgentAutoReplyControlMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebAiAgentAutoReplyControlMutation",selections:c},params:{id:b("WAWebAiAgentAutoReplyControlMutation_facebookRelayOperation"),metadata:{},name:"WAWebAiAgentAutoReplyControlMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("WAWebAiAgentAutoReplyControlMutation",["Promise","WAWebAiAgentAutoReplyControlMutation.graphql","WAWebBizAiAgentGating","WAWebFetchAdAccountToken","WAWebNetworkStatus","WAWebRelayClient"],(function(a,b,c,d,e,f,g){var h,i,j=h!==void 0?h:h=b("WAWebAiAgentAutoReplyControlMutation.graphql"),k={isSuccess:!0},l={isSuccess:!1};function a(a,c,e){return!d("WAWebBizAiAgentGating").isAiAgentAutoReplyEnabled()?(i||(i=b("Promise"))).resolve(l):m(a,c,e)}function m(a,b,e){return d("WAWebFetchAdAccountToken").fetchToken().then(function(f){return f.type==="success"?c("WAWebNetworkStatus").waitIfOffline().then(function(){var c;return d("WAWebRelayClient").commitMutation(j,{consumer_lid:(c=b)!=null?c:"",phone_number:(c=a)!=null?c:"",thread_status:e},{environmentType:"facebook",accessToken:f.token}).then(function(a){a=a==null?void 0:(a=a.xfb_whatsapp_smb_maiba_status_update)==null?void 0:a.success;return a===!0?k:l})["catch"](function(a){return l})}):l})}g.changeAiReplyStatus=a}),98); __d("WAWebAlertSyncPausedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="alert-sync-paused";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=20;(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 20 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",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0.5C4.48 0.5 0 4.98 0 10.5C0 16.02 4.48 20.5 10 20.5C15.52 20.5 20 16.02 20 10.5C20 4.98 15.52 0.5 10 0.5ZM10 11.5C9.45 11.5 9 11.05 9 10.5V6.5C9 5.95 9.45 5.5 10 5.5C10.55 5.5 11 5.95 11 6.5V10.5C11 11.05 10.55 11.5 10 11.5ZM9 13.5V15.5H11V13.5H9Z",fill:"#FFD279"}),j.jsx("path",{d:"M9 13.5V15.5H11V13.5H9Z",fill:"#667781"}),j.jsx("path",{d:"M10 11.5C9.45 11.5 9 11.05 9 10.5V6.5C9 5.95 9.45 5.5 10 5.5C10.55 5.5 11 5.95 11 6.5V10.5C11 11.05 10.55 11.5 10 11.5Z",fill:"#54656F"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.AlertSyncPausedIcon=a}),98); __d("WAWebArchivedOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="archived-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:"M21.4889 4.47778L19.9444 2.61111C19.6444 2.23333 19.1889 2 18.6667 2H5.33333C4.81111 2 4.35556 2.23333 4.04444 2.61111L2.51111 4.47778C2.18889 4.85556 2 5.35556 2 5.88889V19.7778C2 21 3 22 4.22222 22H19.7778C21 22 22 21 22 19.7778V5.88889C22 5.35556 21.8111 4.85556 21.4889 4.47778ZM5.6 4.22222H18.4L19.3 5.3H4.71111L5.6 4.22222ZM4.22222 19.7778V7.55556H19.7778V19.7778H4.22222ZM13.6111 9.77778H10.3889V13.1111H7.55556L12 17.5556L16.4444 13.1111H13.6111V9.77778Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ArchivedOutlineIcon=a}),98); __d("WAWebAudioStatusIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="audio-status";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox,h=a.innerStyles;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox","innerStyles"]);var l;if(g){var m=g.x;m=m===void 0?0:m;var n=g.y;n=n===void 0?0:n;var o=g.width;o=o===void 0?0:o;g=g.height;g=g===void 0?0:g;l=[m,n,o,g].join(" ")}m=19;n=19;(e!=null||f!=null)&&(m=e,n=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(o=l)!=null?o:"0 0 19 19",height:m,width:n,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"#FFFFFF",className:i(h==null?void 0:h.background)+" ptt-status-background",d:"M8.48311 0.463216C4.0294 0.752054 0.757935 4.62515 0.757935 8.95218V13.9874C0.757935 16.0652 2.43806 17.7453 4.51588 17.7453H5.26853C6.92487 17.7453 8.27383 16.3964 8.27383 14.74V14.7294C8.76927 14.8705 9.29428 14.8705 9.78972 14.7294V14.74C9.78972 16.3964 11.1387 17.7453 12.795 17.7453H13.5477C15.6255 17.7453 17.3056 16.0652 17.3056 13.9874V8.71886C17.3056 3.9662 13.297 0.150866 8.48311 0.463216Z"}),j.jsx("path",{fill:"currentColor",className:i(h==null?void 0:h.primary)+" ptt-status-icon",d:"M8.70732 1.89651C5.10966 2.12984 2.38507 5.28343 2.38507 8.88862V13.9238C2.38507 15.1732 3.39362 16.1818 4.64302 16.1818H5.39567C6.22358 16.1818 6.90096 15.5044 6.90096 14.6765V11.6659C6.90096 10.838 6.22358 10.1606 5.39567 10.1606H3.89037V8.87357C3.89037 5.9834 6.11821 3.46955 9.00085 3.38676C11.9889 3.30397 14.4274 5.68986 14.4274 8.6553V10.1606H12.9222C12.0942 10.1606 11.4169 10.838 11.4169 11.6659V14.6765C11.4169 15.5044 12.0942 16.1818 12.9222 16.1818H13.6748C14.9242 16.1818 15.9327 15.1732 15.9327 13.9238V8.6553C15.9327 4.76411 12.6512 1.64061 8.70732 1.89651Z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.AudioStatusIcon=a}),98); __d("WAWebSettingsCheckList.react",["WAWebCheckBox.react","WAWebSwitch.react","WAWebUIRefreshGatingUtils","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={controlRightAligned:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",alignItems:"x6s0dn4",marginStart:"xmn8rco",transitionProperty:"x19991ni",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3",$$css:!0},control:{display:"x1rg5ohu",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",marginEnd:"xmo9yow",verticalAlign:"x1uuroth",transitionProperty:"x19991ni",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3",$$css:!0},controlDisabled:{opacity:"x1iy03kw",$$css:!0}};function a(a){a=a.children;return j.jsx("div",babelHelpers["extends"]({className:"x9f619 xx6bls6 xjv05ge x8vdgqj x1f6kntn x1fc57z9"},{children:a}))}a.displayName=a.name+" [from "+f.id+"]";function l(a){var b=a.checkboxRightAligned,c=a.children;a=a.disabled;return j.jsx("div",babelHelpers["extends"]({},{0:{className:"x78zum5 xx6bls6 xqmxbcd x1f6kntn x1fc57z9"},2:{className:"x78zum5 x134lwj9 x1i2zvha x6prxxf x1fc57z9"},1:{className:"x78zum5 xx6bls6 xqmxbcd x1f6kntn x1fc57z9 x47corl"},3:{className:"x78zum5 x134lwj9 x1i2zvha x6prxxf x1fc57z9 x47corl"}}[!!(b===!0)<<1|!!(a===!0)<<0],{children:c}))}l.displayName=l.name+" [from "+f.id+"]";function b(a){var b=a.checkboxRightAligned;b=b===void 0?!1:b;var e=a.hidden;e=e===void 0?!1:e;var f=a.ariaLabel,g=j.jsx("label",babelHelpers["extends"]({},{0:{className:"x1iyjqo2 xs83m0k x1r8uery x19991ni x1d8287x xwji4o3"},1:{className:"x1iyjqo2 xs83m0k x1r8uery x19991ni x1d8287x xwji4o3 x40yjcy x197sbye"}}[!!(a.disabled===!0)<<0],{htmlFor:a.id,children:a.children})),h=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebSwitch.react").Switch:d("WAWebCheckBox.react").CheckBox;h=j.jsx("div",babelHelpers["extends"]({"data-testid":void 0},(i||(i=c("stylex"))).props(b?k.controlRightAligned:k.control,a.disabled===!0&&k.controlDisabled,a.checkboxXStyle),{children:j.jsx(h,{ariaLabel:f,id:a.id,onChange:a.onChange,checked:a.checked,disabled:a.disabled})}));return b?e?null:j.jsxs(l,{disabled:a.disabled,checkboxRightAligned:b,children:[g,h]}):j.jsxs(l,{disabled:a.disabled,children:[h,g]})}b.displayName=b.name+" [from "+f.id+"]";g.SettingsCheckList=a;g.SettingsCheckListSection=l;g.SettingsCheckListItem=b}),98); __d("WAWebAutoDownloadSettings.react",["fbt","WAWebDrawerButton.react","WAWebDrawerSection.react","WAWebRefreshIcon.react","WAWebSettingsCheckList.react","WAWebText.react","WAWebUISpacing","WAWebUserPrefsGeneral","react","useWAWebToggle"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={disclaimer:{borderTopColor:"x1nfbk4f",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",$$css:!0}};function a(){var a,b,e=(b=c("useWAWebToggle"))((a=d("WAWebUserPrefsGeneral")).getAutoDownloadPhotos,a.setAutoDownloadPhotos),f=e[0],g=e[1];e=b(a.getAutoDownloadAudio,a.setAutoDownloadAudio);var i=e[0],l=e[1];e=b(a.getAutoDownloadVideos,a.setAutoDownloadVideos);var m=e[0],n=e[1];e=b(a.getAutoDownloadDocuments,a.setAutoDownloadDocuments);var o=e[0],p=e[1],q=!(f&&i&&!m&&!o);b=function(){if(!q)return;f||g();i||l();m&&n();o&&p()};return j.jsxs(j.Fragment,{children:[j.jsxs(c("WAWebDrawerSection.react"),{animation:!1,xstyle:[d("WAWebUISpacing").uiPadding.horiz30,d("WAWebUISpacing").uiPadding.vert20],children:[j.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"photos",checked:f,onChange:g,children:h._(/*BTDS*/"__JHASH__5JUo_HJ17EL__JHASH__")}),j.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"audio",checked:i,onChange:l,children:h._(/*BTDS*/"__JHASH__bVuOtMQSvrI__JHASH__")}),j.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"videos",checked:m,onChange:n,children:h._(/*BTDS*/"__JHASH__27zWf7633Q0__JHASH__")}),j.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"documents",checked:o,onChange:p,children:h._(/*BTDS*/"__JHASH__zFFnBe746F1__JHASH__")}),j.jsx(d("WAWebText.react").WAWebTextMuted,{xstyle:[d("WAWebUISpacing").uiPadding.top20,k.disclaimer],children:h._(/*BTDS*/"__JHASH__QeOzjkMPQ0F__JHASH__")})]}),j.jsx(c("WAWebDrawerSection.react"),{animation:!1,xstyle:d("WAWebUISpacing").uiPadding.start5,children:j.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{onClick:b,icon:j.jsx(d("WAWebRefreshIcon.react").RefreshIcon,{}),disabled:!q,children:h._(/*BTDS*/"__JHASH__WXpkLtsaQGK__JHASH__")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizBusinessComplianceAddressRequiredModal",["WAWebComplianceInfo.react","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=function(){d("WAWebModalManager").ModalManager.open(i.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{okText:c("WAWebFbtCommon")("OK"),onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:i.jsx(d("WAWebComplianceInfo.react").ComplianceInfoHelpCenterBanner,{})}))};b=a;g["default"]=b}),98); __d("WAWebBizChatAssignmentModal.react",["fbt","WALogger","WANullthrows","WAQplTypes","WAWebAgentCollection","WAWebAgentModelUtils","WAWebBizChatAssignmentAction","WAWebButton.react","WAWebChatAssignmentCollection","WAWebConfirmPopup.react","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUserPrefsMeUser","asyncToGeneratorRuntime","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat_assignment_modal: handleOk error ",""]);k=function(){return a};return a}e=j||d("react");var l=i||(i=c("react")),m=e.useEffect,n=e.useState,o={label:{display:"x1rg5ohu",height:"xmix8c7",paddingTop:"x1yrsyyn",paddingEnd:"x4uap5",paddingBottom:"x10b6aqq",paddingStart:"xkhd6sd",cursor:"x1ypdohk",overflowX:"x6ikm8r",overflowY:"x10wlt62",whiteSpace:"xuxw1ft",textOverflow:"xlyipyv",$$css:!0},helperText:{marginStart:"x1i64zmx",whiteSpace:"xuxw1ft",$$css:!0}};function p(a){var b=d("WAWebUserPrefsMeUser").assertGetMe().getDeviceId();if(a.deviceId===b)return 0;else if(a.deviceId===d("WAWebAgentModelUtils").PRIMARY_DEVICE_ID)return 1;return 2}function q(a,b){return p(a)-p(b)}function r(){var a=d("WAWebAgentCollection").AgentCollection.filter(function(a){return!a.isDeleted});a.sort(q);return a}function s(a){var b=d("WAWebUserPrefsMeUser").assertGetMe().getDeviceId();a.deviceId===b?a=h._(/*BTDS*/"__JHASH___29r88NSfdM__JHASH__"):a=null;return l.jsx(d("WAWebText_DONOTUSE.react").Text,{as:"span",color:"secondary",xstyle:o.helperText,children:a})}s.displayName=s.name+" [from "+f.id+"]";function t(){return l.jsx(c("WAWebFlexItem.react"),{grow:1,children:null})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var e=a.chats,f=a.onSave,g=a.entryPoint,i=function(){return new Map(e.map(function(a){var b=d("WAWebChatAssignmentCollection").ChatAssignmentCollection.getAgentCollectionForChatId(a.id);return[a.id.toString(),b.length>0?c("WANullthrows")(b.head()).id:null]}))};a=n(i);var j=a[0],p=a[1];d("useWAWebListener").useListener(d("WAWebChatAssignmentCollection").ChatAssignmentCollection,"add change remove",function(){p(i())});var q=function(){var a=j.get(e[0].id.toString()),b=!0;j.forEach(function(c){c!==a&&(a=null),c!=null&&(b=!1)});return{commonlyAssignedAgentId:a,areAllChatsUnassigned:b}};a=n(q().commonlyAssignedAgentId);var u=a[0],v=a[1];a=n(r());var w=a[0],x=a[1];d("useWAWebListener").useListener(d("WAWebAgentCollection").AgentCollection,"add change remove",function(){x(r())});a=function(){v(null)};a=l.jsxs(d("WAWebFlex.react").FlexRow,{justify:"all",align:"center",children:[l.jsx(d("WAWebText.react").WAWebTextLarge,{as:"span",weight:"medium",children:h._(/*BTDS*/"__JHASH__zblYrJgOhHy__JHASH__")}),l.jsx(d("WAWebButton.react").WAWebButtonSimplified,{nowrap:!0,disabled:!u,onClick:a,children:h._(/*BTDS*/"__JHASH__OL0yQcPg2pe__JHASH__")})]});var y=function(){d("WAWebModalManager").ModalManager.close()},z=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ASSIGN_CHAT,{annotations:{"int":{chats_count:e.length}}}),yield d("WAWebBizChatAssignmentAction").changeChatAssignment(e.map(function(a){return{chat:a,agentId:u}}),g),d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ASSIGN_CHAT,d("WAQplTypes").QuickLogActionType.SUCCESS),f==null?void 0:f()}catch(a){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ASSIGN_CHAT,d("WAQplTypes").QuickLogActionType.FAIL),d("WALogger").ERROR(k(),a)}finally{d("WAWebModalManager").ModalManager.close()}});return function(){return a.apply(this,arguments)}}(),A=function(a){v(a.target.value)};w=w.map(function(a){return l.jsx("li",{children:l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[l.jsx("input",babelHelpers["extends"]({id:a.id},{className:"x2lah0s x1emribx x1xp8n7a xmix8c7"},{type:"radio",name:"agent",checked:a.id===u,value:a.id,onChange:A})),l.jsx(d("WAWebText_DONOTUSE.react").TextLabel,{htmlFor:a.id,size:"16",color:"secondary",xstyle:o.label,children:a.name}),l.jsx(t,{}),s(a)]})},a.id)});var B=function(){var a=q(),b=a.commonlyAssignedAgentId;a=a.areAllChatsUnassigned;return e.length>1?u==null?a:u===b:u===b};m(function(){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,d("WAQplTypes").QuickLogActionType.SUCCESS)},[]);return l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:a,okText:h._(/*BTDS*/"__JHASH__EDbCvhSa-Fy__JHASH__"),type:d("WAWebModal.react").ModalTheme.ChatAssignment,onCancel:y,onOK:z,okDisabled:B(),children:l.jsx("form",{children:l.jsx("ol",{children:w})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizChatAssignmentAiRepliesModal.react",["fbt","WAWebAiAgentAutoReplyControlMutation","WAWebBizChatAssignmentModal.react","WAWebBizGatingUtils","WAWebChatAssignmentLogEvents.flow","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","WAWebToast.react","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.chat,e=b.id.isLid()?b.id.toJid():null,f=e==null?b.id.user:null;a=h._(/*BTDS*/"__JHASH__ci3Tno8Dp2Z__JHASH__");if(!d("WAWebBizGatingUtils").isBizAiChatAssignmentInteropTosEnabled())return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("OK"),children:a});a=h._(/*BTDS*/"__JHASH__ci3Tno8Dp2Z__JHASH__");var g=h._(/*BTDS*/"__JHASH__2L6NKvI6QhN__JHASH__"),i=h._(/*BTDS*/"__JHASH__1sZkc-Ee3yV__JHASH__"),k=h._(/*BTDS*/"__JHASH__0jA6H1ygDHm__JHASH__"),l=function(){m(),b.setForceDismissAiAgentBlockingBar(!0)},m=function(){d("WAWebToastManager").ToastManager.open(j.jsx(d("WAWebToast.react").Toast,{action:{dismiss:!0,actionText:c("WAWebFbtCommon")("OK")},msg:h._(/*BTDS*/"__JHASH__d388txc6TMg__JHASH__")}))};return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:g,onOK:function(){d("WAWebAiAgentAutoReplyControlMutation").changeAiReplyStatus(f,e,"MUTED").then(function(a){a.isSuccess?d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebBizChatAssignmentModal.react"),{chats:[b],entryPoint:d("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.CONVERSATION_MENU})):l()})["catch"](function(){l()}),d("WAWebModalManager").ModalManager.close()},okText:i,onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:k,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizChatAssignmentForMultipleChatsAiRepliesModal.react",["fbt","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(){var a=h._(/*BTDS*/"__JHASH__7n17B-JrMPN__JHASH__"),b=h._(/*BTDS*/"__JHASH__GHNLKv9YPKU__JHASH__"),c=h._(/*BTDS*/"__JHASH__0jA6H1ygDHm__JHASH__");return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:a,onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:c,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizCoverPhotoAction",["fbt","WAFilteredCatch","WALogger","WAWebActionToast.react","WAWebBackendErrors","WAWebBizGatingUtils","WAWebBusinessProfileJob","WAWebNoop","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["actions:deleteCoverPhoto dropped"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["action:setCoverPhoto server error"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["action:setCoverPhoto dropped"]);l=function(){return a};return a}var m=i||c("react");function n(a,b,e,f){f===void 0&&(f=d("WAWebActionToast.react").genId());var g=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__Xc1EP09xh3t__JHASH__")),i=h._(/*BTDS*/"__JHASH__LhoZPku40Hy__JHASH__"),j=d("WAWebBusinessProfileJob").sendCoverPhoto(a,b,e)["catch"](function(a){d("WALogger").WARN(l()).devConsole(a);throw new(d("WAWebActionToast.react").ActionType)(i)})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(c){d("WALogger").WARN(k()).devConsole(c);if(c.status>=400)return new(d("WAWebActionToast.react").ActionType)(i,{actionText:h._(/*BTDS*/"__JHASH__kBDPlUlp-Hn__JHASH__"),actionHandler:function(){return n(a,b,e,f)}})})).then(function(){var a;d("WAWebBizGatingUtils").coverPhotoPrivacyMessagingEnabled()?a=h._(/*BTDS*/"__JHASH__0mSjYFwtwx8__JHASH__"):a=h._(/*BTDS*/"__JHASH__RxrgbTZToag__JHASH__");return new(d("WAWebActionToast.react").ActionType)(a)});d("WAWebToastManager").ToastManager.open(m.jsx(d("WAWebActionToast.react").ActionToast,{id:f,initialAction:g,pendingAction:j}));return j.then(c("WAWebNoop"))}function o(a,b){b===void 0&&(b=d("WAWebActionToast.react").genId());var e=d("WAWebBusinessProfileJob").deleteCoverPhoto(a),f=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__q_m2mVZFcRv__JHASH__")),g=h._(/*BTDS*/"__JHASH__-AZ95KE7keo__JHASH__"),i=e["catch"](function(a){d("WALogger").WARN(j()).devConsole(a);throw new(d("WAWebActionToast.react").ActionType)(g)})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(c){if(c.status>=400)return new(d("WAWebActionToast.react").ActionType)(g,{actionText:h._(/*BTDS*/"__JHASH__kBDPlUlp-Hn__JHASH__"),actionHandler:function(){return o(a,b)}})})).then(function(){return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__LKPxG3D203Q__JHASH__"))});d("WAWebToastManager").ToastManager.open(m.jsx(d("WAWebActionToast.react").ActionToast,{id:b,initialAction:f,pendingAction:i}));return e.then(c("WAWebNoop"))}g.setCoverPhoto=n;g.deleteCoverPhoto=o}),226); __d("WAWebMediaBizCoverPhoto",["WAWebFileUtils","WAWebHttpErrors","WAWebMmsMediaTypes","WAWebUploadManager","WAWebWamEnumUploadOriginType","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,b,c){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){a=(yield d("WAWebFileUtils").blobToArrayBuffer(a));a=(yield c("WAWebUploadManager").uploadCoverPhoto({file:a,hash:b,signal:e,type:d("WAWebMmsMediaTypes").MEDIA_TYPES.BIZ_COVER_PHOTO,uploadOrigin:d("WAWebWamEnumUploadOriginType").UPLOAD_ORIGIN_TYPE.UNKNOWN,isViewOnce:!1}));b=a.fbid;e=a.ts;a=a.metaHmac;if(b!=null&&e!=null&&a!=null)return{id:b,ts:e,metaHmac:a};throw new(d("WAWebHttpErrors").HttpInvalidResponseError)("mmsUpload: missing fields in upload response")});return h.apply(this,arguments)}g.uploadBizCoverPhoto=a}),98); __d("WAWebBizCoverPhotoPicker.react",["WAFilteredCatch","WALogger","WAWebBizCoverPhotoAction","WAWebCryptoCalculateFilehash","WAWebDataUrlToBlob","WAWebEditFormLogEvents","WAWebHttpErrors","WAWebMediaBizCoverPhoto","WAWebPhotoPickerConstants","WAWebPhotoPickerLoadable.react","react"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["BizCoverPhotoPicker: unexpected error uploading cover photo"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["BizCoverPhotoPicker: failed to upload cover photo"]);k=function(){return a};return a}b=i||d("react");var l=h||(h=c("react")),m=b.useEffect,n=b.useState;function a(a){var b=a.coverPhoto,c=a.signal;a=n(!1);var e=a[0],f=a[1];a=n(b==null?void 0:b.url);var g=a[0],h=a[1];m(function(){(g==null?void 0:g.pathname)!==(b==null?void 0:b.url.pathname)&&h(b==null?void 0:b.url)},[b,g]);a=function(a,e){f(!0);if(e==null){(b==null?void 0:b.id)&&d("WAWebBizCoverPhotoAction").deleteCoverPhoto(b.id)["finally"](function(){f(!1),d("WAWebEditFormLogEvents").logRemoveCoverPhoto()});return}var g=d("WAWebDataUrlToBlob").dataURLtoBlob(e);d("WAWebCryptoCalculateFilehash").calculateFilehashFromBlob(g).then(function(a){d("WAWebMediaBizCoverPhoto").uploadBizCoverPhoto(g,a,c).then(function(a){if(c.aborted)return;d("WAWebEditFormLogEvents").logEditCoverPhoto();return d("WAWebBizCoverPhotoAction").setCoverPhoto(a.id,a.ts,a.metaHmac)})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebHttpErrors").HttpInvalidResponseError,function(a){d("WALogger").WARN(k()).devConsole(a)}))["catch"](function(){d("WALogger").ERROR(j()).sendLogs("biz_cover_photo_upload")})["finally"](function(){f(!1)})})};return l.jsx(d("WAWebPhotoPickerLoadable.react").PhotoPickerLoadable,{type:d("WAWebPhotoPickerConstants").PhotoPickerType.COVER_PHOTO,pending:e,readOnly:!1,onImageSet:a,attachToChat:!1,startImage:g==null?void 0:g.toString(),theme:d("WAWebPhotoPickerConstants").PhotoPickerThemeType.COVER_PHOTO})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebBizLabelChooseColorModal.react",["fbt","$InternalEnum","WAWebBizLabelEditingAction","WAWebFlex.react","WAWebLabelCollection","WAWebLabelColorPanel.react","WAWebLabelUtils","WAWebModal.react","WAWebModalManager","WAWebSavePopup.react","WAWebToast.react","WAWebToastManager","asyncToGeneratorRuntime","chunkArray","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m=b("$InternalEnum").Mirrored(["SaveFailed"]),n=function(a){switch(a){case m.SaveFailed:return h._(/*BTDS*/"__JHASH__sV57tnImE4j__JHASH__")}};function a(a){var e=a.label;a=l((a=e==null?void 0:e.colorIndex)!=null?a:d("WAWebLabelCollection").LabelCollection.getNextAvailableColor());var f=a[0],g=a[1];a=function(a){g(a)};var i=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebBizLabelEditingAction").labelEditAction(e.id,e.name,e.predefinedId,f)});return function(){return a.apply(this,arguments)}}(),j=function(){d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__RlHRtPtezM2__JHASH__")}))},o=function(){var a=m.SaveFailed;d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:n(a)}))},p=function(){d("WAWebModalManager").ModalManager.close()},q=d("WAWebLabelUtils").getAllLabelColors().map(function(a){return{hexColor:a,enabled:!0}});q=c("chunkArray")(q,5);return k.jsx(c("WAWebSavePopup.react"),{title:h._(/*BTDS*/"__JHASH__6OVp50SdDfR__JHASH__"),doSave:i,afterSave:j,onError:o,isValid:!0,modalConfig:{type:d("WAWebModal.react").ModalTheme.LabelChooseColor,onCancel:p},children:k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(d("WAWebLabelColorPanel.react").LabelColorPicker,{colors:q,selectedIndex:f,onSelect:a})})})}a.displayName=a.name+" [from "+f.id+"]";g.LabelChooseColorModal=a}),226); __d("WAWebBizLabelDrawerHeaderDropdownMenu.react",["fbt","WAWebDropdown.react","WAWebDropdownItem.react","WAWebMenuBar.react","WAWebMenuIcon.react","WAWebMoreRefreshedIcon.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.isReorderActive,c=a.onReorder;a=a.ref;b=b?h._(/*BTDS*/"__JHASH__NvNNf5rWXfZ__JHASH__"):h._(/*BTDS*/"__JHASH__PPuVK9q1c1W__JHASH__");return j.jsx(d("WAWebMenuBar.react").MenuBarItem,{ref:a,tabOrder:d("WAWebTabOrder").TAB_ORDER.LABELS_TAB_HEADER,testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}):j.jsx(d("WAWebMenuIcon.react").MenuIcon,{}),title:h._(/*BTDS*/"__JHASH__8OwIHmm6C_V__JHASH__"),dropdownMenu:{menu:j.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:c,testid:void 0,children:b},"labels-drawer-dropdown-menu-item-reorder"),flipOnRTL:!0,type:d("WAWebDropdown.react").MenuType.DropdownMenu,dirX:d("WAWebDropdown.react").DirX.LEFT,testid:"labels-drawer-menu-dropdown"}})}a.displayName=a.name+" [from "+f.id+"]";b=a;g.LabelDrawerHeaderDropdownMenu=b}),226); __d("WAWebBizLabelEditModal.react",["fbt","$InternalEnum","WANullthrows","WAWebBizLabelEditingAction","WAWebFlex.react","WAWebL10N","WAWebLabelCollection","WAWebLabelColorPanel.react","WAWebLabelConstants","WAWebLabelUtils","WAWebLabels.react","WAWebListsGatingUtils","WAWebListsLogging","WAWebMobilePlatforms","WAWebModal.react","WAWebModalManager","WAWebRichTextField.react","WAWebSavePopup.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamEnumListAction","WAWebWamEnumUpdateEntryPoint","WAWebWamLabelEventReporter","asyncToGeneratorRuntime","chunkArray","react","stylex"],(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.useRef,n=e.useState,o=b("$InternalEnum").Mirrored(["NameEmpty","NameAlreadyExists","SaveFailed"]),p=function(a){if(d("WAWebListsGatingUtils").isListsEnabled())switch(a){case o.NameEmpty:return h._(/*BTDS*/"__JHASH__NOI8zlUL_zO__JHASH__");case o.NameAlreadyExists:return h._(/*BTDS*/"__JHASH__OHwSosktsjN__JHASH__");case o.SaveFailed:return h._(/*BTDS*/"__JHASH__yhgz6kv7ywh__JHASH__")}else switch(a){case o.NameEmpty:return h._(/*BTDS*/"__JHASH__xpNMS9F7txn__JHASH__");case o.NameAlreadyExists:return h._(/*BTDS*/"__JHASH__7XqD3YaeBhT__JHASH__");case o.SaveFailed:return h._(/*BTDS*/"__JHASH__sV57tnImE4j__JHASH__")}};function a(a){var e=d("WAWebListsGatingUtils").isListsEnabled(),f=a.label;a=n((a=f==null?void 0:f.name)!=null?a:"");var g=a[0],i=a[1];a=n(null);var k=a[0],q=a[1];a=n(d("WAWebMobilePlatforms").isSMB()?(a=f==null?void 0:f.colorIndex)!=null?a:d("WAWebLabelCollection").LabelCollection.getNextAvailableColor():null);var r=a[0],s=a[1];a=n(!1);var t=a[0],u=a[1];a=m();var v=c("WAWebL10N").getFullLocale(),w=function(a){var b=a.trim().toLocaleLowerCase(v);if(b==="")return o.NameEmpty;return(f==null?void 0:f.name.toLocaleLowerCase(v))!==b&&d("WAWebLabelCollection").LabelCollection.some(function(a){return a.name.toLocaleLowerCase(v)===b})?o.NameAlreadyExists:null},x=function(a){var b=w(a);i(a);q(b?p(b):null)},y=function(){u(!t)},z=function(a){s(a),u(!1)},A=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(f){var a=g!==f.name;yield d("WAWebBizLabelEditingAction").labelEditAction(f.id,g,f.predefinedId,r);a&&e&&d("WAWebListsLogging").logListUpdate({listId:Number(f.id),listAction:d("WAWebWamEnumListAction").LIST_ACTION.RENAME,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS})}else{a=(yield d("WAWebBizLabelEditingAction").labelAddAction(g,r));a!=null&&e&&d("WAWebListsLogging").logListUpdate({listId:a,listAction:d("WAWebWamEnumListAction").LIST_ACTION.CREATE,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS,chatsBeforeUpdate:[],addedChats:[],removedChats:[]})}d("WAWebWamLabelEventReporter").logLabelOperationEvent(d("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.EDIT,void 0,d("WAWebWamEnumLabelTargets").LABEL_TARGETS.EDIT_LABEL_DIALOG)});return function(){return a.apply(this,arguments)}}(),B=function(){d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:e?h._(/*BTDS*/"__JHASH__6eWGPF8DWlk__JHASH__"):h._(/*BTDS*/"__JHASH__G_KiziJQXPA__JHASH__")}))},C=function(a){a=(a=o.cast(a.message))!=null?a:o.SaveFailed;d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:p(a)}))},D=function(){d("WAWebModalManager").ModalManager.close()},E=function(){return g!==""&&k==null},F=d("WAWebLabelUtils").getAllLabelColors().map(function(a){return{hexColor:a,enabled:!0}});F=c("chunkArray")(F,5);var G,H;e?(G=f?h._(/*BTDS*/"__JHASH__WHa-IBPhLqE__JHASH__"):h._(/*BTDS*/"__JHASH__2hPIp5seH41__JHASH__"),H=h._(/*BTDS*/"__JHASH__OBDcy4AG3wH__JHASH__")):(G=f?h._(/*BTDS*/"__JHASH__lvOYv5ZUmY4__JHASH__"):h._(/*BTDS*/"__JHASH__b9TDCmLB8wc__JHASH__"),H=h._(/*BTDS*/"__JHASH__1uR1BbkDxBy__JHASH__"));return l.jsxs(c("WAWebSavePopup.react"),{title:G,doSave:A,afterSave:B,onError:C,isValid:E(),modalConfig:{type:d("WAWebModal.react").ModalTheme.LabelEdit,onCancel:D},children:[l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:[d("WAWebUISpacing").uiPadding.all16,d("WAWebUISpacing").uiPadding.top0],children:[d("WAWebMobilePlatforms").isSMB()&&r!=null&&l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.top8,d("WAWebUISpacing").uiPadding.end16),{children:l.jsx(c("WAWebUnstyledButton.react"),{ref:a,onClick:y,children:l.jsx(d("WAWebLabels.react").Label,{color:d("WAWebLabelUtils").colorIndexToHex(r),renderAsCircle:!0})})})),l.jsx("div",babelHelpers["extends"]({className:"xh8yej3"},{children:l.jsx(d("WAWebRichTextField.react").RichTextField,{placeholder:H,value:g,maxLength:d("WAWebLabelConstants").LABEL_NAME_MAX_LENGTH,error:k,onChange:function(a){a=a.text;return x(a)},emojiBtnPosition:"side",showRemaining:!0,focusOnMount:!0,testid:void 0})}))]}),t&&r!=null&&l.jsx(d("WAWebLabelColorPanel.react").LabelColorPopup,{colors:F,selectedIndex:r,onSelect:z,anchor:c("WANullthrows")(a.current),onClose:function(){return u(!1)}})]})}a.displayName=a.name+" [from "+f.id+"]";g.LabelEditModal=a}),226); __d("WAWebChatCheckboxWrapper.react",["WAWebCheckBox.react","react","useWAWebEventTargetValue","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.Children,l=b.cloneElement,m=b.useState;function a(a){var b=a.children,e=a.initialSelection,f=a.model,g=a.multiSelection,h=a.onSelect,i=a.selectableState;a=a.theme;var n=m(function(){switch(e){case 0:return!1;case 1:case 2:return!0;default:return g.isSelected(f)}}),o=n[0],p=n[1];n=m(function(){return e===2});var q=n[0],r=n[1];n=f.id.toString();var s=m(n),t=s[0];s=s[1];t!==n&&(s(n),p(g.isSelected(f)));s=function(a){p(a)};n=function(a){if(a==null?void 0:a.isDefaultPrevented())return;a&&a.stopPropagation();o?(p(!1),r(!1),a=!1):a=!0;h==null?void 0:h(f,a,!1)};d("useWAWebListener").useListener(g,t,s);t=c("useWAWebEventTargetValue")(i,"all",function(){return i.isSelectable});s={};t&&a&&(s.theme=a);t&&(s.noContext=!0);if(b==null)return null;b=k.toArray(b)[0];var u=a==="label-selection"||a==="label-selection-redesigned"?n:null;return j.jsxs("div",babelHelpers["extends"]({className:"x1n2onr6"},{onClick:u,children:[t&&j.jsx("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x8zc4e7 x42zw1d x78zum5 x6s0dn4 x1pju0fl x5yr21d"},2:{className:"x10l6tqk x42zw1d x78zum5 x6s0dn4 x5yr21d x1a87ojn x11g1bdh x14atkfc"},1:{className:"x10l6tqk x8zc4e7 x42zw1d x78zum5 x6s0dn4 x1pju0fl x5yr21d x92rtbv"},3:{className:"x10l6tqk x42zw1d x78zum5 x6s0dn4 x5yr21d x11g1bdh x14atkfc x92rtbv"}}[!!(a==="label-selection"||a==="label-selection-redesigned")<<1|!!(a==="label-selection-redesigned")<<0],{onClick:n,children:j.jsx(d("WAWebCheckBox.react").CheckBox,{onChange:n,checked:o,theme:o&&q?d("WAWebCheckBox.react").CheckboxTheme.PARTIAL:void 0})})),l(b,s)]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebPaletteOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="palette-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=20;m=20;(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 20 20",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:"M10 20a9.7 9.7 0 0 1-3.875-.788 10.1 10.1 0 0 1-3.187-2.15 10.1 10.1 0 0 1-2.15-3.187A9.7 9.7 0 0 1 0 10q0-2.074.813-3.9a10.1 10.1 0 0 1 2.2-3.175A10.5 10.5 0 0 1 6.25.788 10 10 0 0 1 10.2 0q2 0 3.775.688a9.9 9.9 0 0 1 3.112 1.9 9.1 9.1 0 0 1 2.125 2.875A8.3 8.3 0 0 1 20 9.05q0 2.875-1.75 4.413Q16.5 15 14 15h-1.85q-.225 0-.312.125a.47.47 0 0 0-.088.275q0 .3.375.862t.375 1.288q0 1.25-.687 1.85T10 20m-5.5-9q.65 0 1.075-.425T6 9.5t-.425-1.075T4.5 8t-1.075.425T3 9.5t.425 1.075T4.5 11m3-4q.65 0 1.075-.425T9 5.5t-.425-1.075T7.5 4t-1.075.425T6 5.5t.425 1.075T7.5 7m5 0q.65 0 1.075-.425T14 5.5t-.425-1.075T12.5 4t-1.075.425T11 5.5t.425 1.075T12.5 7m3 4q.65 0 1.075-.425T17 9.5t-.425-1.075T15.5 8t-1.075.425T14 9.5t.425 1.075T15.5 11M10 18q.224 0 .363-.125a.42.42 0 0 0 .137-.325q0-.35-.375-.825T9.75 15.3q0-1.05.725-1.675T12.25 13H14q1.65 0 2.825-.963Q18 11.076 18 9.05q0-3.025-2.312-5.038Q13.375 2 10.2 2 6.8 2 4.4 4.325T2 10q0 3.325 2.338 5.663T10 18",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PaletteOutlineIcon=a}),98); __d("WAWebLabelsLabelListItem.react",["fbt","WAWebBizGatingUtils","WAWebBizLabelChooseColorModal.react","WAWebBizLabelEditModal.react","WAWebBizLabelEditingAction","WAWebCellFrame.react","WAWebChatCell.react","WAWebConfirmPopup.react","WAWebDeleteRefreshedIcon.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebEmojiText.react","WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebLabelCollection","WAWebLabelErrors","WAWebLabelGetters","WAWebLabels.react","WAWebListsGatingUtils","WAWebListsLogging","WAWebMessageLabelDeprecationUtils","WAWebMobilePlatforms","WAWebModalManager","WAWebPaletteOutlineIcon.react","WAWebPencilRefreshedIcon.react","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebWamEnumListAction","asyncToGeneratorRuntime","react","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useRef,m=e.useState;function a(a){var e,f=a.label,g=a.label,i=a.theme,j=a.onClick,n=a.detailElement,o=a.showContextActions,p=a.entryPoint;a=m(null);var q=a[0],r=a[1],s=l(null),t=l(null);a=c("WAWebL10N").isRTL()?"left":"right";a=(e={},e[a]=function(){var a;(a=t.current)==null?void 0:a.focusOnContextMenuButton()},e);e=function(a){a.stopPropagation();a.preventDefault();(a=t.current)==null?void 0:a.indicateFocus()};var u=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),v=function(){u()};d("useWAWebListener").useListener(d("WAWebLabelCollection").LabelCollection,"label_updated_"+g,v);var w=d("WAWebLabelCollection").LabelCollection.get(f);if(!w||!w.name)return null;if(i==="label-list"){var x=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebBizLabelEditModal.react").LabelEditModal,{label:w}))},y=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebBizLabelChooseColorModal.react").LabelChooseColorModal,{label:w}))},z=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{try{yield d("WAWebBizLabelEditingAction").labelDeleteAction(f,w.name,w.colorIndex),p!=null&&d("WAWebListsGatingUtils").isListsEnabled()&&d("WAWebListsLogging").logListUpdate({listId:Number(f),listAction:d("WAWebWamEnumListAction").LIST_ACTION.DELETE,entryPoint:p})}catch(a){throw new(d("WAWebLabelErrors").LabelActionError)()}d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__HtgWLWLCTqm__JHASH__")}))}catch(a){a instanceof d("WAWebLabelErrors").LabelActionError&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__ZwjWQdTohRf__JHASH__")}))}finally{d("WAWebModalManager").ModalManager.close()}});return function(){return a.apply(this,arguments)}}(),A=function(){var a=d("WAWebListsGatingUtils").isListsEnabled(),b=a?h._(/*BTDS*/"__JHASH__JlqElVzH7Ov__JHASH__"):h._(/*BTDS*/"__JHASH__XgxbhOWzctO__JHASH__");a=a?h._(/*BTDS*/"__JHASH__H6gHbQvJZBI__JHASH__"):h._(/*BTDS*/"__JHASH__JtMJlO1QAn0__JHASH__");d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:b,onOK:z,onCancel:function(){d("WAWebModalManager").ModalManager.close()},children:a}))};g=function(a){if(q){r(null);return}var b=[],c=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:x,icon:c?k.jsx(d("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__V9f-TRUHrTR__JHASH__")},"mi-edit-label"));d("WAWebMobilePlatforms").isSMB()&&b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:y,icon:c?k.jsx(d("WAWebPaletteOutlineIcon.react").PaletteOutlineIcon,{}):null,children:h._(/*BTDS*/"__JHASH__8lJwMauvv4c__JHASH__")},"mi-choose-label-color"));b.push(k.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}));b.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:A,icon:c?k.jsx(d("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}):null,theme:d("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:h._(/*BTDS*/"__JHASH__Gc6hSL32YcR__JHASH__")},"mi-delete-label"));r({menu:b,event:a.event,anchor:a.anchor})};v=function(){r(null),c("WAWebFocusTracer").focus(s.current)};i=q&&k.jsx(d("WAWebUimUie.react").UIE,{displayName:"LabelContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:v,children:k.jsx(c("WAWebUimUieMenu.react"),{contextMenu:q})});var B;d("WAWebBizGatingUtils").canDisplayLabel()&&(B=k.jsx(d("WAWebLabels.react").Labels,{renderAsCircle:!0,theme:"label-list",labels:[f]}));v=k.jsx(d("WAWebEmojiText.react").EmojiText,{text:w.name,ellipsify:!0,titlify:!0,preformatted:!0});var C=d("WAWebMessageLabelDeprecationUtils").isMessageLabellingDisabled()?w.chatCount:w.count;return k.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:s,tabIndex:0,handlers:a,onFocus:e,children:[k.jsx(c("WAWebChatCell.react"),{ref:t,theme:d("WAWebBizGatingUtils").labelsEditingEnabled()?"label-list-no-border":"label-list",image:B,primary:v,secondary:h._(/*BTDS*/"__JHASH__GnNcr2cIY4B__JHASH__",[h._plural(C,"count")]),detail:n,active:!!q,onClick:j,onContext:g,contextEnabled:function(){return d("WAWebBizGatingUtils").labelsEditingEnabled()&&o&&w.isImmutable!==!0},contextMenuControlled:!0}),i]})}var D;d("WAWebBizGatingUtils").canDisplayLabel()&&(D=d("WAWebBizGatingUtils").labelsEditingEnabled()?k.jsx(d("WAWebLabels.react").Labels,{renderAsCircle:!0,theme:"label-list",labels:[f]}):k.jsx(d("WAWebLabels.react").LabelSvg,{hexColor:d("WAWebLabelGetters").getHexColor(w)}));a=k.jsx(d("WAWebEmojiText.react").EmojiText,{text:w.name,ellipsify:!0,titlify:!0});return k.jsx(c("WAWebCellFrame.react"),{theme:d("WAWebBizGatingUtils").labelsEditingEnabled()?"label-selection-redesigned":"label-selection",image:D,primary:a,onClick:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLabelsLabelListNewLabel.react",["fbt","WAWebCellFrame.react","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebLabelCollection","WAWebLabelEditInput.react","WAWebLabelUtils","WAWebListsGatingUtils","WAWebMobilePlatforms","WAWebModalManager","WAWebPlusIcon.react","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var b=a.entryPoint,e=a.onNewLabelAdded;a=l(!1);var f=a[0],g=a[1],i=d("WAWebListsGatingUtils").isListsEnabled();if(f){a=function(a){g(!1),e==null?void 0:e(a)};i?f=d("WAWebMobilePlatforms").isSMB()?"create-new-list-smb":"create-new-list-consumer":f="label-selection-new-label";return k.jsx("div",babelHelpers["extends"]({className:"xh8yej3 xuzvuw4"},{children:k.jsx(d("WAWebLabelEditInput.react").LabelEditInput,{label:null,onSave:a,onCancel:function(){return g(!1)},rowTheme:f,entryPoint:b})}))}a=function(){if(d("WAWebLabelCollection").LabelCollection.length>=d("WAWebLabelUtils").getMaxLabelCount()){d("WAWebModalManager").ModalManager.openAlert(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.closeAlert()},okText:c("WAWebFbtCommon")("OK"),children:d("WAWebLabelUtils").getReachMaxLabelCountText(i)}));return}g(!0)};f=k.jsx("div",babelHelpers["extends"]({className:"x78zum5 x6s0dn4 xl56j7k x100vrsf x1vqgdyp x14yjl9h xudhj91 x18nykt9 xww2gxu x111a3t xhyrrhw"},{"data-testid":void 0,children:k.jsx(d("WAWebPlusIcon.react").PlusIcon,{})}));b=i?h._(/*BTDS*/"__JHASH__5uEy_z9cmVG__JHASH__"):h._(/*BTDS*/"__JHASH__YEL2_nTXsQr__JHASH__");return k.jsx("div",babelHelpers["extends"]({role:"button",tabIndex:0},{className:"xh8yej3 xuzvuw4 x1ypdohk"},{onKeyDown:a,onClick:a,children:k.jsx(c("WAWebCellFrame.react"),{theme:"label-selection-new-label",image:f,primary:b})}))}a.displayName=a.name+" [from "+f.id+"]";g.LabelListNewLabel=a}),226); __d("WAWebSelectableState",["WAWebEventEmitter"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.isSelectable=b;return c}var c=b.prototype;c.setSelectable=function(a){this.isSelectable=a;this.trigger("update-selectable",a);return this.isSelectable};return b}(c("WAWebEventEmitter"));g["default"]=a}),98); __d("WAWebLabelsMultiSelectLabelList.react",["WAArrayMove","WAPromiseDelays","WAWebBizGatingUtils","WAWebChatCheckboxWrapper.react","WAWebDraggableItemIcon.react","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebLabelCollection","WAWebLabelUtils","WAWebLabelsLabelListItem.react","WAWebLabelsLabelListNewLabel.react","WAWebListDragAndDropItem.react","WAWebListsGatingUtils","WAWebNoop","WAWebSchemaLabel","WAWebSelectableState","WAWebUISpacing","asyncToGeneratorRuntime","react","useWAWebListener","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h,i;e=i||d("react");var j=h||(h=c("react")),k=e.useMemo,l=e.useRef,m=e.useState,n=d("WAWebFlatList.react").FlatListFactory(),o=new(c("WAWebFlatListController"))(),p=72,q=0;function r(){return j.jsx(d("WAWebFlex.react").FlexColumn,{xstyle:[d("WAWebUISpacing").uiMargin.all6,d("WAWebUISpacing").uiMargin.end16],justify:"center",align:"center",children:j.jsx(d("WAWebDraggableItemIcon.react").DraggableItemIcon,{width:18,height:18})})}r.displayName=r.name+" [from "+f.id+"]";var s=function(a){return a.map(function(a,b){return{itemKey:a.id,listItem:a,order:b}})};function t(a){var b=a.detailElement,e=a.entryPoint,f=a.initialLabelState,g=a.label,h=a.onLabelClick,i=a.onMultiSelect,k=a.ref,l=a.renderContext,m=a.selectableState,n=a.selectedLabels;a=a.showContextActions;if(!g.name)return null;var o=d("WAWebLabelCollection").LabelCollection.assertGet(g.id),p=h?function(){h(g.id)}:void 0;o=l==="label-selection"?j.jsx(c("WAWebChatCheckboxWrapper.react"),{theme:d("WAWebBizGatingUtils").labelsEditingEnabled()?"label-selection-redesigned":"label-selection",model:o,initialSelection:f[g.id]||0,multiSelection:n,selectableState:m,onSelect:i,children:j.jsx(c("WAWebLabelsLabelListItem.react"),{label:g.id,onClick:p,showContextActions:a,entryPoint:e})}):j.jsx(c("WAWebLabelsLabelListItem.react"),{label:g.id,detailElement:b,theme:l,onClick:p,showContextActions:a,entryPoint:e});return j.jsx("div",{ref:k,children:o},"label_item_"+g.id)}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.children;a.containerRef;return j.jsx(j.Fragment,{children:b})}u.displayName=u.name+" [from "+f.id+"]";function v(){var a=d("WAWebLabelCollection").LabelCollection.filter(function(a){return d("WAWebListsGatingUtils").isListsEnabled()?a.isActive!==!1&&a.type!==d("WAWebSchemaLabel").ListType.UNREAD&&a.type!==d("WAWebSchemaLabel").ListType.GROUPS:!d("WAWebLabelUtils").isBuiltInList(a.type)});d("WAWebLabelUtils").sortLabels(a);return a}function a(a){var e=a.shouldScrollIntoViewAndSelect,f=a.selectedLabels,g=a.onMultiSelect,h=a.renderContext,i=a.onLabelClick,w=a.onNewLabelAdded,x=a.initialLabelState,y=x===void 0?{}:x;x=a.isReorderActive;var z=x===void 0?!1:x,A=a.entryPoint;x=m(function(){return v()});var B=x[0],C=x[1];x=k(function(){return s(B)},[B]);var D=l(null),E=c("useWAWebUnmountSignal")(),F=function(a,b,c){f==null?void 0:f.setVal(a,b,c),g==null?void 0:g(a.id)},G=function(){var a=v();C(a)};d("useWAWebListener").useListener(d("WAWebLabelCollection").LabelCollection,"reorder",G);var H=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){G();if(c.add===!0&&e){b=e(a.name);c=b.shouldScrollIntoView;b=b.shouldSelect;if(c)try{yield d("WAPromiseDelays").delayMs(q,E);(c=D.current)==null?void 0:c.scrollIntoView({behavior:"smooth"})}catch(a){}b&&F(a,!0,!1)}});return function(b,c,d){return a.apply(this,arguments)}}();d("useWAWebListener").useListener(d("WAWebLabelCollection").LabelCollection,"add remove",H);var I=function(a,b){return C(function(c){return d("WAArrayMove").arrayMove(c,a,b)})},J=c("WAWebNoop");H=d("WAWebBizGatingUtils").isLabelReorderingInWebEnabled()?d("WAWebListDragAndDropItem.react").DragAndDropWrapper:u;var K=function(b,e){return d("WAWebBizGatingUtils").isLabelReorderingInWebEnabled()&&z?j.jsx(d("WAWebListDragAndDropItem.react").DragAndDropItem,{index:e,onMove:I,onFinalDrop:J,children:j.jsx(t,{showContextActions:!z,detailElement:j.jsx(r,{}),selectedLabels:f,renderContext:h,onLabelClick:i,initialLabelState:y,onMultiSelect:F,label:b,selectableState:a.selectableState||new(c("WAWebSelectableState"))(!0),ref:function(a){e===B.length-1?D.current=a:null},entryPoint:A},b.id)}):j.jsx(t,{showContextActions:!0,selectedLabels:f,renderContext:h,onLabelClick:i,initialLabelState:y,onMultiSelect:F,label:b,selectableState:a.selectableState||new(c("WAWebSelectableState"))(!0),ref:function(a){e===B.length-1?D.current=a:null},entryPoint:A},b.id)};return j.jsxs(c("WAWebFlatListContainer.react"),{flatListControllers:[o],children:[h==="label-selection"&&d("WAWebBizGatingUtils").labelsEditingEnabled()&&j.jsx(d("WAWebLabelsLabelListNewLabel.react").LabelListNewLabel,{onNewLabelAdded:w,entryPoint:A}),j.jsx(H,{containerRef:null,children:j.jsx(n,{flatListController:o,direction:"vertical",forceConsistentRenderCount:!1,data:x,renderItem:function(a){var b=a.listItem;a=a.order;return K(b,a)},defaultItemHeight:p})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMessageLabelDeprecationPermanentNuxBanner.react",["WAWebButterbar.react","WAWebLabelCollection","WAWebMessageLabelDeprecationUtils","WAWebNux","WAWebNuxBannerText.react","WAWebSmbMessageLabelDeprecationWamEvent","WAWebUIRefreshGatingUtils","WAWebWamEnumMessageLabelDeprecationAction","WAWebWamEnumMessageLabelDeprecationEntryPoint","WAWebWamEnumMessageLabelDeprecationSurface","react","useWAWebNux"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useEffect,l=function(){new(d("WAWebSmbMessageLabelDeprecationWamEvent").SmbMessageLabelDeprecationWamEvent)({messageLabelDeprecationAction:d("WAWebWamEnumMessageLabelDeprecationAction").MESSAGE_LABEL_DEPRECATION_ACTION.BANNER_CLICK,messageLabelDeprecationSurface:d("WAWebWamEnumMessageLabelDeprecationSurface").MESSAGE_LABEL_DEPRECATION_SURFACE.MANAGE_LABELS_BANNER,messageLabelDeprecationMigrationLabelCount:d("WAWebLabelCollection").LabelCollection.getMessageLabelCount()}).commit(),d("WAWebMessageLabelDeprecationUtils").openLabelDeprecationModal(d("WAWebWamEnumMessageLabelDeprecationEntryPoint").MESSAGE_LABEL_DEPRECATION_ENTRY_POINT.MANAGE_LABELS_BANNER)};function a(){var a=c("useWAWebNux")(d("WAWebNux").NUX.MESSAGE_LABEL_DEPRECATION_MIGRATED_PERMANENT),b=a[0],e=a[1],f=b&&d("WAWebMessageLabelDeprecationUtils").shouldShowMessageLabelDeprecationBanner();k(function(){f&&(e(),new(d("WAWebSmbMessageLabelDeprecationWamEvent").SmbMessageLabelDeprecationWamEvent)({messageLabelDeprecationAction:d("WAWebWamEnumMessageLabelDeprecationAction").MESSAGE_LABEL_DEPRECATION_ACTION.VIEW,messageLabelDeprecationSurface:d("WAWebWamEnumMessageLabelDeprecationSurface").MESSAGE_LABEL_DEPRECATION_SURFACE.MANAGE_LABELS_BANNER,messageLabelDeprecationMigrationLabelCount:d("WAWebLabelCollection").LabelCollection.getMessageLabelCount()}).commit())},[f,e]);if(!f)return null;a=d("WAWebMessageLabelDeprecationUtils").getBannerConfig();if(a==null)return null;b=j.jsx(d("WAWebNuxBannerText.react").NuxBannerText,{subtitle:a.subtitle,actionText:a.actionText});return j.jsx(c("WAWebButterbar.react"),{type:"messageLabelDeprecationLabelsListBanner",title:a.title,text:b,textTestid:"message-label-deprecation-permanent-banner-text",action:l,useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})}a.displayName=a.name+" [from "+f.id+"]";g.MessageLabelDeprecationPermanentNuxBanner=a}),98); __d("WAWebBizLabelDrawer.react",["fbt","WAWebBizGatingUtils","WAWebBizLabelDrawerHeaderDropdownMenu.react","WAWebBizLabelEditModal.react","WAWebConfirmPopup.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFbtCommon","WAWebLabelCollection","WAWebLabelUtils","WAWebLabelsMultiSelectLabelList.react","WAWebListsGatingUtils","WAWebMediaEditorDrawingIcon.react","WAWebMenuBar.react","WAWebMessageLabelDeprecationPermanentNuxBanner.react","WAWebModalManager","WAWebMultiSelection","WAWebPlusIcon.react","WAWebTabOrder","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamEnumUpdateEntryPoint","WAWebWamLabelEventReporter","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.useEffect,m=b.useMemo,n=b.useState;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.onClose,f=a.onLabelClick,g=a.isInitialStep;g=g===void 0?!1:g;var i=a.onCreateListClick,j=a.onEditListClick;a=n(!1);var o=a[0],p=a[1];a=m(function(){return new(c("WAWebMultiSelection"))([],function(a){return a.id})},[]);var q=d("WAWebListsGatingUtils").isListsEnabled();l(function(){d("WAWebWamLabelEventReporter").logLabelOperationEvent(d("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.VIEW,void 0,d("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABELS_SCREEN)},[]);var r=function(a){return{shouldScrollIntoView:!0,shouldSelect:!1}},s=function(){if(d("WAWebLabelCollection").LabelCollection.length>=d("WAWebLabelUtils").getMaxLabelCount()){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("OK"),children:d("WAWebLabelUtils").getReachMaxLabelCountTextForBizLabelDrawer(q)}));return}q?i():d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebBizLabelEditModal.react").LabelEditModal,{label:null}))};s=d("WAWebBizGatingUtils").labelsEditingEnabled()&&k.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.LABELS_TAB_HEADER,testid:void 0,icon:k.jsx(d("WAWebPlusIcon.react").PlusIcon,{}),title:q?h._(/*BTDS*/"__JHASH__mw7v_3H-xI8__JHASH__"):h._(/*BTDS*/"__JHASH__cyxMcTwkBxY__JHASH__"),onClick:s});var t=function(){j()};t=q?k.jsx(d("WAWebMenuBar.react").MenuBarItem,{tabOrder:d("WAWebTabOrder").TAB_ORDER.LABELS_TAB_HEADER,testid:void 0,icon:k.jsx(d("WAWebMediaEditorDrawingIcon.react").MediaEditorDrawingIcon,{width:20,height:20}),title:h._(/*BTDS*/"__JHASH__TAW_scuzh3v__JHASH__"),onClick:t}):null;var u=d("WAWebBizGatingUtils").isLabelReorderingInWebEnabled()?k.jsx(d("WAWebBizLabelDrawerHeaderDropdownMenu.react").LabelDrawerHeaderDropdownMenu,{onReorder:function(){return p(function(a){return!a})},isReorderActive:o}):null,v={};g?v.onCancel=e:v.onBack=e;g=d("WAWebListsGatingUtils").isListsEnabled()?{surface:"list-management"}:null;return k.jsxs(c("WAWebDrawer.react"),babelHelpers["extends"]({ref:b,theme:"settings"},g&&{tsNavigationData:g},{children:[k.jsxs(d("WAWebDrawerHeader.react").DrawerHeader,babelHelpers["extends"]({title:q?h._(/*BTDS*/"__JHASH__8Y8j6BjvmKy__JHASH__"):h._(/*BTDS*/"__JHASH__QYeBWxOLrog__JHASH__")},v,{type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,children:[s,t,u]})),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsx(d("WAWebMessageLabelDeprecationPermanentNuxBanner.react").MessageLabelDeprecationPermanentNuxBanner,{}),k.jsx(c("WAWebLabelsMultiSelectLabelList.react"),{isReorderActive:o,shouldScrollIntoViewAndSelect:r,selectedLabels:a,renderContext:"label-list",onLabelClick:f,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS})]})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLabelDeleteIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="label-delete";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:"M5.811,17.1c-0.507,0-0.92-0.41-0.92-0.911V8.926L3.094,7.128C3.038,7.347,3,7.573,3,7.81v8.38 c0,1.548,1.262,2.802,2.81,2.802L14.961,19l-1.893-1.894L5.811,17.1z M18.215,17.071l3.131-4.414L21.812,12l-4.127-5.818 C17.167,5.447,16.314,5,15.393,5l-9.24,0.008L3.326,2.181C3.071,1.925,2.657,1.925,2.404,2.178L1.943,2.64 C1.688,2.894,1.688,3.306,1.944,3.562l17.961,17.963c0.255,0.255,0.669,0.255,0.923,0.002l0.461-0.461 c0.254-0.254,0.254-0.666-0.002-0.922L18.215,17.071z M8.042,6.897l7.352-0.006c0.302,0,0.58,0.146,0.748,0.384L19.494,12 l-2.635,3.714L8.042,6.897z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.LabelDeleteIcon=a}),98); __d("WAWebLabelOffRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="label-off-refreshed";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:"M18.4502 15.6L17.0002 14.15L18.5502 12L15.0002 6.99998H9.8502L7.8502 4.99998H15.0002C15.3335 4.99998 15.6419 5.07081 15.9252 5.21248C16.2085 5.35414 16.4502 5.56664 16.6502 5.84998L20.1752 10.85C20.4252 11.2 20.5502 11.5833 20.5502 12C20.5502 12.4166 20.4252 12.8 20.1752 13.15L18.4502 15.6ZM5.0002 19C4.4502 19 3.97936 18.8041 3.5877 18.4125C3.19603 18.0208 3.0002 17.55 3.0002 17V6.99998C3.0002 6.81664 3.02103 6.64998 3.0627 6.49998C3.10436 6.34998 3.16686 6.19998 3.2502 6.04998L2.1002 4.89998C1.91686 4.71664 1.8252 4.48331 1.8252 4.19998C1.8252 3.91664 1.91686 3.68331 2.1002 3.49998C2.28353 3.31664 2.51686 3.22498 2.8002 3.22498C3.08353 3.22498 3.31686 3.31664 3.5002 3.49998L20.5002 20.5C20.6835 20.6833 20.7752 20.9166 20.7752 21.2C20.7752 21.4833 20.6835 21.7166 20.5002 21.9C20.3169 22.0833 20.0835 22.175 19.8002 22.175C19.5169 22.175 19.2835 22.0833 19.1002 21.9L15.9502 18.75C15.8002 18.8333 15.6502 18.8958 15.5002 18.9375C15.3502 18.9791 15.1835 19 15.0002 19H5.0002ZM14.2002 17L5.0002 7.79998V17H14.2002Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.LabelOffRefreshedIcon=a}),98); __d("WAWebLabelRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="label-refreshed";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.175 13.15L16.65 18.15C16.4667 18.4167 16.2292 18.625 15.9375 18.775C15.6458 18.925 15.3333 19 15 19H5C4.45 19 3.97917 18.8042 3.5875 18.4125C3.19583 18.0208 3 17.55 3 17V7C3 6.45 3.19583 5.97917 3.5875 5.5875C3.97917 5.19583 4.45 5 5 5H15C15.3333 5 15.6458 5.075 15.9375 5.225C16.2292 5.375 16.4667 5.58333 16.65 5.85L20.175 10.85C20.425 11.2 20.55 11.5833 20.55 12C20.55 12.4167 20.425 12.8 20.175 13.15ZM15 17L18.55 12L15 7H5V17H15Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.LabelRefreshedIcon=a}),98); __d("WAWebLabelsGatingUtils",["WAWebABProps","WAWebMessageLabelDeprecationUtils","WAWebMobilePlatforms","WAWebMsgModel"],(function(a,b,c,d,e,f,g){function a(){return d("WAWebMobilePlatforms").isSMB()&&d("WAWebABProps").getABPropConfigValue("smb_store_label_usage_enabled")}function b(){return d("WAWebMobilePlatforms").isSMB()?d("WAWebABProps").getABPropConfigValue("smb_store_label_usage_max_label_count"):0}function c(a){a=a.reduce(function(a,b){b instanceof d("WAWebMsgModel").Msg&&a.push(b);return a},[]);if(a.length===0)return!1;a=d("WAWebMessageLabelDeprecationUtils").getMessageLabelDeprecationPhase();switch(a){case 2:case 3:return!0;default:a;return!1}}g.isRecentLabelUsageFeaturesEnabled=a;g.getMaxLabelCountForRecentLabelFeaturesStore=b;g.isLabelManagementEntryPointDisabled=c}),98); __d("WAWebMixedMultiSelectBar.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={multiControls:"_akan",designRefresh:"_arj9",chatListPanel:"_akap",drawerHeader:"_akao",multiselectIcon:"_akar",multiCount:"_akaq",mediaGalleryTheme:"_ajzh"};b=a;g["default"]=b}),98); __d("WAWebMixedMultiSelectBar.react",["fbt","WAWebBizChatAssignmentAiRepliesModal.react","WAWebBizChatAssignmentForMultipleChatsAiRepliesModal.react","WAWebBizChatAssignmentModal.react","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentUtils","WAWebChatAssignmentWithContainerIcon.react","WAWebChatModel","WAWebClassnames","WAWebCloseRefreshedIcon.react","WAWebCommonCTWADataSharing","WAWebDeleteIcon.react","WAWebDeleteRefreshedIcon.react","WAWebLabelDeleteIcon.react","WAWebLabelFilledIcon.react","WAWebLabelOffRefreshedIcon.react","WAWebLabelRefreshedIcon.react","WAWebLabelsGatingUtils","WAWebListsGatingUtils","WAWebManageLabelFlowLoadable","WAWebMixedMultiSelectBar.scss","WAWebModalManager","WAWebMultiSelectEntryPointConstants","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebSmbDataSharingOptInModalDialog","WAWebUIRefreshGatingUtils","WAWebWamEnumSmbDataSharingConsentScreenEntryPoint","WAWebXIcon.react","react","useWAWebForceUpdate","useWAWebListener","useWAWebStableCallback"],(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.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.labelEditEnabled;e=e===void 0?!1:e;var f=a.multiSelectEntryPoint,g=a.onRemoveLabel,i=a.selectedModels,j=a.onCancel,n=a.onDelete;f=f===d("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatAssignment;var o=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),p=i.getSelected(),q=p.length,r=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),s=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebManageLabelFlowLoadable").ManageLabelFlowLoadable,{onLabelUpdateComplete:j,modelsToUpdate:p,onClose:function(){return d("WAWebModalManager").ModalManager.close()},entryPoint:null}))},t=function(){var a=p.reduce(function(a,b){b instanceof d("WAWebChatModel").Chat&&a.push(b);return a},[]);c("WAWebSmbDataSharingOptInModalDialog").maybeShowLabelDataSharingDialog(a,c("WAWebCommonCTWADataSharing").SmbDataSharingLabelTargetValues.CHAT,s,d("WAWebWamEnumSmbDataSharingConsentScreenEntryPoint").SMB_DATA_SHARING_CONSENT_SCREEN_ENTRY_POINT.LABEL_CHAT)},u=c("useWAWebStableCallback")(j);l(function(){q===0&&u()},[q,u]);d("useWAWebListener").useListener(i,"all",o);i=p.length;var v,w,x,y;if(f&&i>0){o=function(){var a=p;d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,{annotations:{string:{CHAT_ASSIGNMENT_ENTRY_POINT:"MULTI_SELECT"}}});if(d("WAWebChatAssignmentUtils").canAssignAllChats(a)===!1){if(a.length===1){d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebBizChatAssignmentAiRepliesModal.react"),{chat:a[0]}));return}d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebBizChatAssignmentForMultipleChatsAiRepliesModal.react"),{}));return}d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebBizChatAssignmentModal.react"),{chats:a,onSave:j,entryPoint:d("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.MULTI_SELECT}))};v=k.jsx(m,{testid:void 0,Icon:d("WAWebChatAssignmentWithContainerIcon.react").ChatAssignmentWithContainerIcon,disabled:!i,title:h._(/*BTDS*/"__JHASH__TCrTiRUADpu__JHASH__"),onClick:o})}if(e&&i>0&&!d("WAWebLabelsGatingUtils").isLabelManagementEntryPointDisabled(p)){f=d("WAWebListsGatingUtils").isListsEnabled()?h._(/*BTDS*/"__JHASH___F4taqfpYyn__JHASH__"):h._(/*BTDS*/"__JHASH__q1oOP0vVsp5__JHASH__");w=k.jsx(m,{testid:void 0,Icon:r?d("WAWebLabelRefreshedIcon.react").LabelRefreshedIcon:d("WAWebLabelFilledIcon.react").LabelFilledIcon,disabled:!i,title:f,onClick:t})}if(g&&i>0&&!d("WAWebLabelsGatingUtils").isLabelManagementEntryPointDisabled(p)){o=d("WAWebListsGatingUtils").isListsEnabled()?h._(/*BTDS*/"__JHASH__w5EzTVh6_IZ__JHASH__"):h._(/*BTDS*/"__JHASH__oRZ_RBWAn0H__JHASH__");y=k.jsx(m,{testid:void 0,Icon:r?d("WAWebLabelOffRefreshedIcon.react").LabelOffRefreshedIcon:d("WAWebLabelDeleteIcon.react").LabelDeleteIcon,disabled:!i,title:o,onClick:g})}if(n&&i>0){e=d("WAWebListsGatingUtils").isListsEnabled()?h._(/*BTDS*/"__JHASH__qXK5wddmumz__JHASH__"):h._(/*BTDS*/"__JHASH__KSMhMYaUXCA__JHASH__");x=k.jsx(m,{testid:void 0,Icon:r?d("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon:d("WAWebDeleteIcon.react").DeleteIcon,disabled:!i,title:e,onClick:n})}t=d("WAWebClassnames").classnamesConvertMeToStylexPlease((f={},f[c("WAWebMixedMultiSelectBar.scss").drawerHeader]=a.theme==="drawer-header",f[c("WAWebMixedMultiSelectBar.scss").chatListPanel]=a.theme==="chatlist-panel",f[c("WAWebMixedMultiSelectBar.scss").multiControls]=!0,f[c("WAWebMixedMultiSelectBar.scss").designRefresh]=!0,f));return k.jsxs("div",{className:t,ref:b,children:[k.jsx(m,{testid:void 0,Icon:r?d("WAWebCloseRefreshedIcon.react").CloseRefreshedIcon:d("WAWebXIcon.react").XIcon,onClick:a.onCancel}),k.jsx("div",{className:c("WAWebMixedMultiSelectBar.scss").multiCount,children:h._(/*BTDS*/"__JHASH__dakBFG-pR5c__JHASH__",[h._plural(i,"count")])}),v,w,x,y]})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b,d=a.Icon;a.customIcon;var e=a.directional,f=a.disabled,g=a.onClick,h=a.testid;h=a.title;return k.jsx("button",{"data-testid":void 0,className:c("WAWebMixedMultiSelectBar.scss").multiselectIcon,title:h,onClick:g,disabled:f===!0?"disabled":void 0,children:k.jsx(d,{directional:e})})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizLabelItemDrawer.react",["fbt","WAWebBizGatingUtils","WAWebBizLabelChooseColorModal.react","WAWebBizLabelEditModal.react","WAWebBizLabelEditingAction","WAWebChatlistPanel.react","WAWebChatlistPanelMode","WAWebConfirmPopup.react","WAWebDeleteRefreshedIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDropdown.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebFbtCommon","WAWebLabelCollection","WAWebLabelErrors","WAWebLabels.react","WAWebListsGatingUtils","WAWebMenuBar.react","WAWebMenuIcon.react","WAWebMixedMultiSelectBar.react","WAWebMobilePlatforms","WAWebModalManager","WAWebMoreRefreshedIcon.react","WAWebMsgModel","WAWebMultiSelectEntryPointConstants","WAWebMultiSelection","WAWebPaletteOutlineIcon.react","WAWebPencilRefreshedIcon.react","WAWebSettingsGetters","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamLabelEventReporter","asyncToGeneratorRuntime","react","useWAWebForceUpdate","useWAWebListener","useWAWebSettingsValues"],(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.useMemo;function a(a){var e=a.ref,f=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),g=f.labelId,i=f.onRemoveLabel;a=d("useWAWebSettingsValues").useSettingsValues([d("WAWebSettingsGetters").getShowArchiveV2]);a=a[0];var j=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),n=m(function(){return new(c("WAWebMultiSelection"))([],function(a){return a.id.toString()})},[]);d("useWAWebListener").useListener(n,"all",function(){return j()});l(function(){d("WAWebWamLabelEventReporter").logLabelOperationEvent(d("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.VIEW,void 0,d("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABEL_DETAILS_SCREEN)},[]);var o=d("WAWebListsGatingUtils").isListsEnabled(),p=function(){n.unsetAll()},q=function(a,b){d("WAWebModalManager").ModalManager.close(),p(),i(a,b),d("WAWebWamLabelEventReporter").logLabelOperationEvent(d("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.CLICK_POSITIVE,b.length,d("WAWebWamEnumLabelTargets").LABEL_TARGETS.BULK_UNLABEL_DIALOG)},r=function(){var a=n.getSelected();d("WAWebWamLabelEventReporter").logLabelOperationEvent(d("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.CLICK_NEGATIVE,a.length,d("WAWebWamEnumLabelTargets").LABEL_TARGETS.BULK_UNLABEL_DIALOG);d("WAWebModalManager").ModalManager.close()},s=function(){var a=n.getSelected();if(!i)return;var b=d("WAWebLabelCollection").LabelCollection.assertGet(g);d("WAWebWamLabelEventReporter").logLabelOperationEvent(d("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.VIEW,a.length,d("WAWebWamEnumLabelTargets").LABEL_TARGETS.BULK_UNLABEL_DIALOG);b=o?h._(/*BTDS*/"__JHASH__PcnYPZoPUB8__JHASH__",[h._plural(a.length,"count"),h._param("listName",b.name)]):h._(/*BTDS*/"__JHASH__c0dugi_sgLX__JHASH__",[h._plural(a.length,"count"),h._param("labelName",b.name)]);d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:b,okText:c("WAWebFbtCommon")("OK"),cancelText:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),onCancel:r,onOK:function(){return q(g,a)}}))},t=function(a){var b,c;for(var e=0;e<a.length;e++){var f=a[e];f instanceof d("WAWebMsgModel").Msg?c=!0:b=!0;if(b&&c)return!0}return!1};t=t(n.getSelected());if(n.getSelected().length>0)t=k.jsx(c("WAWebMixedMultiSelectBar.react"),{labelEditEnabled:!t,onRemoveLabel:s,selectedModels:n,onCancel:p,theme:"chatlist-panel",multiSelectEntryPoint:d("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.Label});else{var u,v=d("WAWebLabelCollection").LabelCollection.get(g);if(v&&d("WAWebBizGatingUtils").labelsEditingEnabled()){s=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebBizLabelEditModal.react").LabelEditModal,{label:v}))};var w=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebBizLabelChooseColorModal.react").LabelChooseColorModal,{label:v}))},x=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{try{yield d("WAWebBizLabelEditingAction").labelDeleteAction(g,v.name,v.colorIndex)}catch(a){throw new(d("WAWebLabelErrors").LabelActionError)()}d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__HtgWLWLCTqm__JHASH__")}))}catch(a){a instanceof d("WAWebLabelErrors").LabelActionError&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__ZwjWQdTohRf__JHASH__")}))}finally{d("WAWebModalManager").ModalManager.close(),f.onClose()}});return function(){return a.apply(this,arguments)}}(),y=o?h._(/*BTDS*/"__JHASH__wPdBQao5I9E__JHASH__"):h._(/*BTDS*/"__JHASH__XgxbhOWzctO__JHASH__"),z=o?h._(/*BTDS*/"__JHASH__tGrRLbym-5p__JHASH__"):h._(/*BTDS*/"__JHASH__JtMJlO1QAn0__JHASH__"),A=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:y,onOK:x,onCancel:function(){d("WAWebModalManager").ModalManager.close()},children:z}))};u=k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}):k.jsx(d("WAWebMenuIcon.react").MenuIcon,{}),title:h._(/*BTDS*/"__JHASH__HE039O11BS2__JHASH__"),dropdownMenu:{menu:k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:s,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,{}):null,children:h._(/*BTDS*/"__JHASH__7wh4qyux1Yi__JHASH__")},"mi-edit-label"),d("WAWebMobilePlatforms").isSMB()&&k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:w,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebPaletteOutlineIcon.react").PaletteOutlineIcon,{}):null,children:h._(/*BTDS*/"__JHASH__l84mKpqF4eL__JHASH__")},"mi-choose-label-color"),k.jsx(d("WAWebDropdownItemSeparator.react").DropdownItemSeparator,{}),k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}):null,action:A,children:h._(/*BTDS*/"__JHASH__AbYa9phQlkz__JHASH__")},"mi-delete-label")]}),type:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:d("WAWebDropdown.react").DirX.LEFT}})}s=d("WAWebBizGatingUtils").canDisplayLabel();t=k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:s?void 0:v==null?void 0:v.name,onBack:f.onClose,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,menu:u,children:s&&k.jsx(d("WAWebLabels.react").Labels,{labels:[f.labelId],renderAsCircle:!0,showName:!0,theme:"drawer-title"})})}return k.jsxs(c("WAWebDrawer.react"),{ref:e,theme:"settings",testid:void 0,children:[t,k.jsx(c("WAWebDrawerBody.react"),{children:k.jsx(d("WAWebChatlistPanel.react").ChatlistPanel,{hideMultiSelectBar:!0,multiSelection:n,labelFilter:f.labelId,showArchiveV2:a,mode:c("WAWebChatlistPanelMode").Chatlist,selectable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebListsRow.react",["fbt","WAWebCellFrame.react","WAWebDeleteIcon.react","WAWebEmojiText.react","WAWebKeyboardHotKeys.react","WAWebLabelCollection","WAWebLabels.react","WAWebListsUtil","WAWebMobilePlatforms","WAWebUISpacing","WAWebWamEnumUpdateEntryPoint","react","stylex","useWAWebListener"],(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={deleteButtonIcon:{color:"xfect85",":hover_color":"x1fumy",$$css:!0}};function a(a){var b=a.listId,e=m(function(){return d("WAWebLabelCollection").LabelCollection.get(b)},[b]);a=n(function(){var a;return(a=e==null?void 0:e.name)!=null?a:null});var f=a[0],g=a[1];a=n(function(){var a;return(a=e==null?void 0:e.chatCount)!=null?a:0});var i=a[0],k=a[1];d("useWAWebListener").useListener(d("WAWebLabelCollection").LabelCollection,"label_updated_"+b,function(){var a,c=d("WAWebLabelCollection").LabelCollection.get(b);g((a=c==null?void 0:c.name)!=null?a:null);k((a=c==null?void 0:c.chatCount)!=null?a:0)});if(f==null)return null;var p;d("WAWebMobilePlatforms").isSMB()&&(p=l.jsx(d("WAWebLabels.react").Labels,{renderAsCircle:!0,theme:"label-list",labels:[b]}));a=l.jsx(d("WAWebEmojiText.react").EmojiText,{text:f,ellipsify:!0,titlify:!0,preformatted:!0});f=l.jsx("button",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([o.deleteButtonIcon,d("WAWebUISpacing").uiPadding.end16]),{"data-testid":void 0,onClick:function(){return d("WAWebListsUtil").openListDeleteConfirmPopup(b,d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS)},title:h._(/*BTDS*/"__JHASH__KdZ6uWlUmKJ__JHASH__"),children:l.jsx(d("WAWebDeleteIcon.react").DeleteIcon,{width:24,height:24})}));return l.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{tabIndex:0,children:l.jsx(c("WAWebCellFrame.react"),{theme:"label-list-no-border",image:p,primary:a,detail:f,secondary:h._(/*BTDS*/"__JHASH__1m1eRPlikmU__JHASH__",[h._plural(i,"count")])})})}a.displayName=a.name+" [from "+f.id+"]";g.ListsRow=a}),226); __d("WAWebEditListsDrawer.react",["fbt","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebLabelCollection","WAWebLabelConstants","WAWebListsRow.react","WAWebNonEmptyString","WAWebSectionHeader.react","WAWebUISpacing","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m=function(){var a=d("WAWebLabelCollection").LabelCollection.getChatLists();return a.map(function(a,b){return{itemKey:a.id,listItem:a,order:b}})},n=function(a){a=d("WAWebNonEmptyString").asMaybeNonEmptyString(a.id);return a!=null?k.jsx(d("WAWebListsRow.react").ListsRow,{listId:a}):null},o=d("WAWebFlatList.react").FlatListFactory(),p=new(c("WAWebFlatListController"))();function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=a.onBack;var e=h._(/*BTDS*/"__JHASH__jy8N8F2N-9P__JHASH__"),f=l(function(){return m()}),g=f[0],i=f[1];d("useWAWebListener").useListener(d("WAWebLabelCollection").LabelCollection,"add remove",function(){i(m())});return k.jsxs(c("WAWebDrawer.react"),{ref:b,theme:"settings",testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,onBack:a,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,title:e}),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",children:k.jsx(c("WAWebSectionHeader.react"),{header:h._(/*BTDS*/"__JHASH__sUvQZpc-7ew__JHASH__"),xstyle:d("WAWebUISpacing").uiPadding.start28})}),k.jsx(c("WAWebFlatListContainer.react"),{flatListControllers:[p],children:k.jsx(o,{flatListController:p,direction:"vertical",forceConsistentRenderCount:!1,data:g,renderItem:function(a){a=a.listItem;return n(a)},defaultItemHeight:d("WAWebLabelConstants").LISTS_ROW_HEIGHT})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g.EditListsDrawer=a}),226); __d("WAWebBizLabelFlow.react",["$InternalEnum","WAWebBizLabelDrawer.react","WAWebBizLabelItemDrawer.react","WAWebCreateOrEditListDrawer.react","WAWebEditListsDrawer.react","WAWebLabelCollection","WAWebListsGatingUtils","WAWebListsIntroPopupLoadable","WAWebManageLabelFlowLoadable","WAWebModalManager","WAWebNux","WAWebWamEnumUpdateEntryPoint","react","useWAWebFlow","useWAWebNux"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState,l=b("$InternalEnum").Mirrored(["Labels","LabelItem","CreateList","EditList","EditLists"]);function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=a.isInitialStep;a=a===void 0?!1:a;var e=c("useWAWebNux")(d("WAWebNux").NUX.ADD_TO_LISTS),f=e[0],g=e[1];e=d("useWAWebFlow").useFlow(l.Labels,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight});var h=e[0],i=e[1];e=k("");var m=e[0],n=e[1];if(i.step==null)return null;e=function(){return i.pop()};var o;switch(i.step){case l.Labels:var p=function(a){n(a),d("WAWebListsGatingUtils").isListsEnabled()?i.push(l.EditList):i.push(l.LabelItem)},q=function(){f?d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebListsIntroPopupLoadable").ListsIntroPopupLoadable,{onContinue:function(){g(),i.push(l.CreateList)}})):i.push(l.CreateList)},r=function(){i.push(l.EditLists)};o=j.jsx(c("WAWebBizLabelDrawer.react"),{ref:b,onCreateListClick:q,onEditListClick:r,onLabelClick:p,onClose:e,isInitialStep:a});break;case l.LabelItem:q=function(a){d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebManageLabelFlowLoadable").ManageLabelFlowLoadable,{modelsToUpdate:a,onClose:function(){return d("WAWebModalManager").ModalManager.close()},entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS}))};r=function(a,b){a=[{id:a,type:"remove"}];d("WAWebLabelCollection").LabelCollection.addOrRemoveLabels(a,b)};o=j.jsx(c("WAWebBizLabelItemDrawer.react"),{labelId:m,onManageLabels:q,onClose:e,onRemoveLabel:r});break;case l.CreateList:o=j.jsx(d("WAWebCreateOrEditListDrawer.react").CreateOrEditListDrawer,{onBack:e,onClose:e,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS});break;case l.EditList:o=j.jsx(d("WAWebCreateOrEditListDrawer.react").CreateOrEditListDrawer,{ref:b,onBack:e,onClose:e,listId:m,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS});break;case l.EditLists:o=j.jsx(d("WAWebEditListsDrawer.react").EditListsDrawer,{onBack:e});break}return j.jsx(h,{flow:i,children:o})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebBizOrderDetailAction",["WAWebBizGatingUtils","WAWebDrawerManager","WAWebFrontendMsgGetters","WAWebMsgGetters","WAWebOrderDetails","WAWebProductDetailsFlowLoadable","WAWebProtobufsE2E.pb","WAWebUserPrefsMeUser","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a,b,c){var e=d("WAWebMsgGetters").getSender(a.unsafe());if(e==null)return;d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(d("WAWebProductDetailsFlowLoadable").ProductDetailsFlowLoadable,{entryPoint:c,chat:d("WAWebFrontendMsgGetters").getChat(a.unsafe()),sellerJid:e.toJid(),orderInfo:d("WAWebOrderDetails").getOrderInfo(a),interactiveMessage:a}),{transition:"slide-left",uim:b})}function b(a,b,c){var e,f=a.orderId,g=a.sellerJid,h=a.token,j=a.status,k=d("WAWebUserPrefsMeUser").getMeUser();k=(e=(e=d("WAWebMsgGetters").getSender(a))==null?void 0:e.equals(k))!=null?e:!1;if(f!=null&&g!=null&&h!=null){if(d("WAWebBizGatingUtils").isBuyerOrderRevampEnabled()&&j!==d("WAWebProtobufsE2E.pb").Message$OrderMessage$OrderStatus.INQUIRY)return;d("WAWebDrawerManager").DrawerManager.openDrawerRight(i.jsx(d("WAWebProductDetailsFlowLoadable").ProductDetailsFlowLoadable,{entryPoint:c,chat:d("WAWebFrontendMsgGetters").getChat(a.unsafe()),orderMessage:a,orderId:f,token:h,userIsCartOwner:k,sellerJid:g}),{transition:"slide-left",uim:b})}}g.openOrderDetailDrawer=a;g.openOrderRequestDrawer=b}),98); __d("WAWebCustomPaymentMethods",["WAWebEventEmitter","WAWebQuickReplySmartDefaults","WAWebUserPrefsCustomPaymentMethods"],(function(a,b,c,d,e,f,g){var h="custom_payment_methods_change";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.setCustomPaymentMethods=function(a){d("WAWebUserPrefsCustomPaymentMethods").setCustomPaymentMethods(a),d("WAWebQuickReplySmartDefaults").getOrUpdatePixKeySmartDefault(),this.trigger(h)};return b}(c("WAWebEventEmitter"));b=new a();g.CUSTOM_PAYMENT_METHODS_CHANGE_EVENT=h;g.CustomPaymentMethods=b}),98); __d("WAWebPixLogoIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="pix-logo";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox,h=a.innerStyles;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox","innerStyles"]);var l;if(g){var m=g.x;m=m===void 0?0:m;var n=g.y;n=n===void 0?0:n;var o=g.width;o=o===void 0?0:o;g=g.height;g=g===void 0?0:g;l=[m,n,o,g].join(" ")}m=32;n=32;(e!=null||f!=null)&&(m=e,n=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(o=l)!=null?o:"0 0 32 32",height:m,width:n,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("rect",{width:32,height:32,rx:16,fill:"#86A3B3",style:{fillOpacity:1},className:i(h==null?void 0:h.background)}),j.jsx("path",{d:"M20.03 19.8151C19.7523 19.8161 19.4772 19.7621 19.2205 19.6561C18.9638 19.5502 18.7306 19.3944 18.5345 19.1978L16.3742 17.0362C16.2978 16.9631 16.1962 16.9224 16.0905 16.9224C15.9847 16.9224 15.8831 16.9631 15.8067 17.0362L13.6391 19.2037C13.4431 19.4006 13.21 19.5567 12.9533 19.663C12.6966 19.7692 12.4214 19.8236 12.1436 19.8228H11.7207L14.4581 22.5602C14.8686 22.9699 15.4249 23.2 16.0049 23.2C16.5849 23.2 17.1412 22.9699 17.5518 22.5602L20.2946 19.8169L20.03 19.8151Z",fill:"white",style:{fillOpacity:1},className:i(h==null?void 0:h.primary)}),j.jsx("path",{d:"M12.1443 12.1763C12.4221 12.1755 12.6974 12.2299 12.9541 12.3361C13.2108 12.4424 13.4438 12.5985 13.6398 12.7954L15.8074 14.9634C15.8827 15.0385 15.9848 15.0807 16.0912 15.0807C16.1975 15.0807 16.2996 15.0385 16.3749 14.9634L18.5347 12.8036C18.7306 12.6065 18.9636 12.4502 19.2203 12.3438C19.4771 12.2375 19.7524 12.1831 20.0302 12.184H20.2903L17.5474 9.44118C17.3443 9.238 17.1032 9.07682 16.8378 8.96686C16.5724 8.85689 16.2879 8.80029 16.0006 8.80029C15.7133 8.80029 15.4288 8.85689 15.1634 8.96686C14.898 9.07682 14.6569 9.238 14.4538 9.44118L11.7209 12.1763H12.1443Z",fill:"white",style:{fillOpacity:1},className:i(h==null?void 0:h.primary)}),j.jsx("path",{d:"M22.5591 14.4534L20.9016 12.7959C20.8643 12.8112 20.8243 12.8192 20.7839 12.8196H20.0302C19.638 12.8206 19.2621 12.9763 18.9841 13.253L16.8243 15.4114C16.6298 15.6056 16.3662 15.7146 16.0914 15.7146C15.8166 15.7146 15.553 15.6056 15.3585 15.4114L13.1905 13.2448C12.9126 12.968 12.5366 12.812 12.1443 12.8109H11.2191C11.181 12.8101 11.1433 12.8025 11.1078 12.7886L9.43981 14.4534C9.03013 14.8639 8.80005 15.4202 8.80005 16.0002C8.80005 16.5802 9.03013 17.1365 9.43981 17.547L11.1041 19.2114C11.1396 19.1972 11.1773 19.1896 11.2155 19.189H12.1443C12.5366 19.1879 12.9125 19.0319 13.1905 18.7551L15.358 16.5876C15.7499 16.1961 16.4329 16.1961 16.8243 16.5876L18.9841 18.7469C19.2621 19.0236 19.638 19.1794 20.0302 19.1803H20.7839C20.8243 19.1806 20.8643 19.1887 20.9016 19.2041L22.5591 17.5466C22.7623 17.3435 22.9235 17.1023 23.0334 16.8369C23.1434 16.5715 23.2 16.287 23.2 15.9997C23.2 15.7124 23.1434 15.428 23.0334 15.1626C22.9235 14.8972 22.7623 14.656 22.5591 14.4529",fill:"white",style:{fillOpacity:1},className:i(h==null?void 0:h.primary)})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PixLogoIcon=a}),98); __d("WAWebBizOrderManagementPaymentMethodsSection.react",["fbt","WAWebBizFrontendGatingUtils","WAWebBrazilPixKeyFormattingUtils","WAWebConfirmPopup.react","WAWebCustomPaymentMethods","WAWebDrawerButton.react","WAWebDrawerSection.react","WAWebFbtCommon","WAWebModalManager","WAWebPixLogoIcon.react","WAWebPlusIcon.react","WAWebRoundShape.react","WAWebText.react","WAWebUISpacing","WAWebUserPrefsCustomPaymentMethods","react","stylex","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={infoRow:{color:"x1v0sa6q",fontWeight:"xk50ysn",fontSize:"x1f6kntn",lineHeight:"xa7kkou",$$css:!0}},m=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__kGPRXf7HApJ__JHASH__"),okText:c("WAWebFbtCommon")("OK"),onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:k.jsx("div",{children:d("WAWebUserPrefsCustomPaymentMethods").isPIXValid()?h._(/*BTDS*/"__JHASH__KsVyHCeNJT9__JHASH__"):h._(/*BTDS*/"__JHASH__vJlMweX-RFN__JHASH__")})}))};function a(){var a=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();d("useWAWebListener").useListener(d("WAWebCustomPaymentMethods").CustomPaymentMethods,d("WAWebCustomPaymentMethods").CUSTOM_PAYMENT_METHODS_CHANGE_EVENT,a);return!d("WAWebBizFrontendGatingUtils").isCustomPaymentMethodsSyncEnabled()?null:k.jsxs(c("WAWebDrawerSection.react"),{className:"x150wa6m x1q0q8m5 x1v2jjsl",animation:!1,children:[k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(l.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:h._(/*BTDS*/"__JHASH__MKSnhwmDHPh__JHASH__")})),k.jsxs(d("WAWebDrawerButton.react").DrawerButtonSimple,{icon:k.jsx(c("WAWebRoundShape.react"),{disabled:!0,children:d("WAWebUserPrefsCustomPaymentMethods").isPIXValid()?k.jsx(d("WAWebPixLogoIcon.react").PixLogoIcon,{height:48,width:48}):k.jsx(d("WAWebPlusIcon.react").PlusIcon,{})}),testid:void 0,color:"disabled",onClick:m,children:[k.jsx(d("WAWebText.react").WAWebTextLarge,{color:"secondaryLighter",children:d("WAWebUserPrefsCustomPaymentMethods").isPIXValid()?h._(/*BTDS*/"__JHASH__X2woRWwjmjB__JHASH__"):h._(/*BTDS*/"__JHASH__T57UhoneJdp__JHASH__")}),k.jsx(d("WAWebText.react").WAWebTextSmall,{color:"secondaryLighter",children:d("WAWebUserPrefsCustomPaymentMethods").isPIXValid()?d("WAWebBrazilPixKeyFormattingUtils").getFormattedPixKey((a=(a=d("WAWebUserPrefsCustomPaymentMethods").getPIX())==null?void 0:a.key)!=null?a:"",(a=d("WAWebUserPrefsCustomPaymentMethods").getPIX())==null?void 0:a.key_type):h._(/*BTDS*/"__JHASH__n2IqlB-st5Y__JHASH__")})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebPaymentInfo",["WAWebEventEmitter","WAWebUserPrefsPaymentInfo"],(function(a,b,c,d,e,f,g){var h="cpi_info_change";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.setCPIInfo=function(a){var b=d("WAWebUserPrefsPaymentInfo").getCPIInfo();b!==a&&(d("WAWebUserPrefsPaymentInfo").setCPIInfo(a),this.trigger(h))};return b}(c("WAWebEventEmitter"));b=new a();g.CPI_INFO_CHANGE_EVENT=h;g.PaymentInfo=b}),98); __d("WAWebBizOrderManagementSettingsSection.react",["fbt","WAWebBizFrontendGatingUtils","WAWebBizGatingUtils","WAWebConfirmPopup.react","WAWebDrawerButton.react","WAWebDrawerSection.react","WAWebFbtCommon","WAWebModalManager","WAWebPaymentInfo","WAWebPlusIcon.react","WAWebRoundShape.react","WAWebText.react","WAWebUISpacing","WAWebUserPrefsPaymentInfo","react","stylex","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={infoRow:{color:"x1v0sa6q",fontWeight:"xk50ysn",fontSize:"x1f6kntn",lineHeight:"xa7kkou",$$css:!0}};function a(){var a=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();d("useWAWebListener").useListener(d("WAWebPaymentInfo").PaymentInfo,d("WAWebPaymentInfo").CPI_INFO_CHANGE_EVENT,a);if(!d("WAWebBizFrontendGatingUtils").isOrderDetailsPaymentInstructionsSyncEnabled())return null;var b=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__lKD1I3x5e9M__JHASH__"),okText:c("WAWebFbtCommon")("OK"),onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:k.jsx("div",{children:d("WAWebUserPrefsPaymentInfo").isCPIInfoValid()?h._(/*BTDS*/"__JHASH__B7kPKn76IN2__JHASH__"):h._(/*BTDS*/"__JHASH__zt8DgsVr3V0__JHASH__")})}))};return k.jsxs(c("WAWebDrawerSection.react"),{className:"x150wa6m xu75nwu x1q0q8m5 x1v2jjsl",animation:!1,children:[k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(l.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__FtfFaYjKMuO__JHASH__"):h._(/*BTDS*/"__JHASH__INiAf227b6U__JHASH__")})),k.jsxs(d("WAWebDrawerButton.react").DrawerButtonSimple,{icon:k.jsx(c("WAWebRoundShape.react"),{disabled:!0,children:k.jsx(d("WAWebPlusIcon.react").PlusIcon,{})}),testid:void 0,color:"disabled",onClick:function(){b()},children:[k.jsx(d("WAWebText.react").WAWebTextLarge,{color:"secondaryLighter",children:h._(/*BTDS*/"__JHASH__XKX_emctBkW__JHASH__")}),k.jsx(d("WAWebText.react").WAWebTextSmall,{color:"secondaryLighter",children:d("WAWebUserPrefsPaymentInfo").isCPIInfoValid()?d("WAWebUserPrefsPaymentInfo").getCPIInfo():h._(/*BTDS*/"__JHASH__v5QLe3aMRX9__JHASH__")})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebHooksUseLazyOrders",["WAWebFrontendConstants","react","useWAWebThrottledCallback"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useCallback,j=b.useEffect,k=b.useMemo,l=b.useState,m=2,n=2,o=100;function a(a,b,e){a===void 0&&(a=[]);var f=l(0),g=f[0],h=f[1];f=k(function(){return a.slice(0,g)},[a,g]);var p=i(function(b){h(function(c){c=b(c)||c;return c>-1&&c<a.length?c:a.length})},[a]),q=function(a){return a.scrollTop+d("WAWebFrontendConstants").SCROLL_FUDGE>=a.scrollHeight-a.clientHeight},r=function(){var a;(a=e.current)==null?void 0:a.scroll({top:0,behavior:"smooth"})},s=c("useWAWebThrottledCallback")(function(a){q(a)&&p(function(a){return a+n})},o),t=i(function(a){s(a.currentTarget)},[s]),u=i(function(a){if(a){var c=Math.round(a.clientHeight/b)+m;b>0&&g<c&&p(function(){return c})}},[p,b,g]);j(function(){var a=e.current;a&&(a.addEventListener("scroll",t),u(a));return function(){a==null?void 0:a.removeEventListener("scroll",t)}},[e,u,t]);return{ordersLazylist:f,scrollToTop:r}}g.useLazyOrders=a}),98); __d("WAWebOrderRequestFetcher",["Promise","WAWebChatLoadMessages","WAWebClock","WAWebCurrencyUtils","WAWebL10NCountryCodes","WAWebMsgType","WAWebNoop","WAWebProtobufsE2E.pb","WAWebUserPrefsMeUser"],(function(a,b,c,d,e,f,g){var h;function a(a){return{fetcher:(h||(h=b("Promise"))).resolve(m(a)),unsubscribe:c("WAWebNoop")}}function e(a){var c=200,e,f,g=function(){f(),self.clearInterval(e)},i=new(h||(h=b("Promise")))(function(b){e=self.setInterval(function(){void d("WAWebChatLoadMessages").loadEarlierMsgs(a,a.msgs)},c),f=a.msgs.onMsgLoadStateChange(function(){a.msgs.msgLoadState.noEarlierMsgs&&(b(m(a)),g())})});return{fetcher:i,unsubscribe:g}}function f(a,b){var c=babelHelpers["extends"]({},a);b.forEach(function(a){delete c[a.orderInfo.referenceId]});return c}function i(a,b){return babelHelpers["extends"]({},a,b.reduce(function(a,b){a[b.orderInfo.referenceId]=b;return a},{}))}function j(a,b,c){a=a.ordersStatusInfo;b=b.ordersStatusInfo;b=b[0].refId;c=c.orderStatusInfoMap;delete c[b];return k(c,a)}function k(a,b){return babelHelpers["extends"]({},a,b.reduce(function(a,b){a[b.refId]=b;return a},{}))}var l=function(a,b,c){var e=d("WAWebClock").Clock.relativeDateStr(a[b[c]].timestamp).toString();a=c>0?d("WAWebClock").Clock.relativeDateStr(a[b[c-1]].timestamp).toString():"";return e===a?"":e};function m(a){var b=a.contact;a=a.msgs;return q(a.toArray(),b)}function n(){return d("WAWebCurrencyUtils").currencyForCountryShortcode(d("WAWebL10NCountryCodes").getCountryShortcodeByPhone(d("WAWebUserPrefsMeUser").getMeUser().user))}function o(a,b){return{contact:b,timestamp:a.t,msg:a,orderInfo:{title:(b=a.orderTitle)!=null?b:"",referenceId:a.id.id,currency:(b=a.totalCurrencyCode)!=null?b:n(),totalAmount:(b=a.totalAmount1000)!=null?b:0,quantity:0,itemCount:(b=a.itemCount)!=null?b:0}}}function p(a,b){return{refId:a,status:(a=b.status)!=null?a:d("WAWebProtobufsE2E.pb").Message$OrderMessage$OrderStatus.INQUIRY}}function q(a,b){return a.reduce(function(a,c){var e=r(c);e!=null&&e.status===d("WAWebProtobufsE2E.pb").Message$OrderMessage$OrderStatus.INQUIRY&&(c.to.equals(d("WAWebUserPrefsMeUser").getMeUser())&&c.type===d("WAWebMsgType").MSG_TYPE.ORDER&&(a.contactsAndOrderRequests.push(o(e,b)),a.ordersStatusInfo.push(p(c.id.id,e))));return a},{contactsAndOrderRequests:[],ordersStatusInfo:[]})}function r(a){a=a.safe();return a.type===d("WAWebMsgType").MSG_TYPE.ORDER?a:null}g.getCachedOrderRequestsFromChat=a;g.getNotCachedOrderRequestsFromChat=e;g.removeContactAndOrdersInfoFromMap=f;g.getMergedContactAndOrderInfoMap=i;g.removeOrderStatusInfoFromMap=j;g.getMergedOrderStatusInfoMap=k;g.getOrderDisplayDate=l;g.getOrderRequestsFromMsgs=q}),98); __d("WAWebHooksUseOrderRequestFetcher",["Promise","WAWebChatCollection","WAWebFrontendMsgGetters","WAWebHooksUseLazyOrders","WAWebOrderRequestFetcher","asyncToGeneratorRuntime","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;c=i||d("react");var j=c.useCallback,k=c.useEffect,l=c.useMemo,m=c.useState;function a(a,c){var e=m({contactAndOrderRequestInfoMap:{},orderStatusInfoMap:{}}),f=e[0],g=e[1];e=m(!0);var i=e[0],n=e[1],o=j(function(a){g(function(c){var b=c.contactAndOrderRequestInfoMap;c=c.orderStatusInfoMap;var e=a.contactsAndOrderRequests,f=a.ordersStatusInfo;b={contactAndOrderRequestInfoMap:d("WAWebOrderRequestFetcher").getMergedContactAndOrderInfoMap(b,e),orderStatusInfoMap:d("WAWebOrderRequestFetcher").getMergedOrderStatusInfoMap(c,f)};return b})},[]),p=j(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b=d("WAWebOrderRequestFetcher").getCachedOrderRequestsFromChat(b);b=b.fetcher;var c=(yield b);g(function(b){b=babelHelpers["extends"]({},b,{orderStatusInfoMap:d("WAWebOrderRequestFetcher").removeOrderStatusInfoFromMap(c,a,b)});return b})});return function(b,c){return a.apply(this,arguments)}}(),[]),q=j(function(a){g(function(c){var b=c.contactAndOrderRequestInfoMap,e=a.contactsAndOrderRequests;c=babelHelpers["extends"]({},c,{contactAndOrderRequestInfoMap:d("WAWebOrderRequestFetcher").removeContactAndOrdersInfoFromMap(b,e)});return c})},[]);k(function(){var a=[],c=[];d("WAWebChatCollection").ChatCollection.toArray().forEach(function(b){var e=b.msgs.msgLoadState.noEarlierMsgs?d("WAWebOrderRequestFetcher").getCachedOrderRequestsFromChat:d("WAWebOrderRequestFetcher").getNotCachedOrderRequestsFromChat;e=e(b);b=e.fetcher;e=e.unsubscribe;void b.then(o);a.push(b);c.push(e)});(h||(h=b("Promise"))).all(a)["finally"](function(){return n(!1)});return function(){c.forEach(function(a){return a()})}},[o]);var r=f.contactAndOrderRequestInfoMap;e=l(function(){return[].concat(Object.keys(r).sort(function(a,b){return r[b].timestamp-r[a].timestamp}))},[r]);e=d("WAWebHooksUseLazyOrders").useLazyOrders(e,c,a);c=e.ordersLazylist;var s=e.scrollToTop;d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"add",function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=d("WAWebOrderRequestFetcher").getCachedOrderRequestsFromChat(a);a=a.fetcher;a=(yield a);o(a);a.contactsAndOrderRequests.length&&s()});return function(b){return a.apply(this,arguments)}}());d("useWAWebListener").useListeners(d("WAWebChatCollection").ChatCollection.toArray().map(function(a){return{source:a.msgs,eventOrEvents:"remove",callback:function(b){var c=d("WAWebOrderRequestFetcher").getOrderRequestsFromMsgs([b],a.contact);c.contactsAndOrderRequests.length?q(c):c.ordersStatusInfo.length&&void p(c,d("WAWebFrontendMsgGetters").getChat(b))}}}));d("useWAWebListener").useListeners(d("WAWebChatCollection").ChatCollection.toArray().map(function(a){return{source:a.msgs,eventOrEvents:"add",callback:function(b){b=d("WAWebOrderRequestFetcher").getOrderRequestsFromMsgs([b],a.contact);o(b);b.contactsAndOrderRequests.length&&s()}}}));return{ordersInfoMap:f,isLoading:i,ordersLazylist:c}}g.useGetOrderRequests=a}),98); __d("WAWebOrderRequestDetail.react",["fbt","WAWebBizEntryPoint","WAWebBizOrderDetailAction","WAWebClock","WAWebCurrencyUtils","WAWebDetailImage.react","WAWebFlex.react","WAWebName.react","WAWebUISpacing","react","stylex","useWAWebUIM"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={orderInfo:{borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x1v2jjsl",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},orderSubDetails:{color:"x1v0sa6q",fontSize:"x1f6kntn",lineHeight:"x37zpob",$$css:!0},title:{color:"x1folq96",lineHeight:"x1evy7pa",fontSize:"x1jchvi3",justifyContent:"x1qughib",$$css:!0}};function a(a){var b=a.contactAndOrderInfo,e=c("useWAWebUIM")();a=function(){if(b.msg.orderId==null)return;d("WAWebBizOrderDetailAction").openOrderRequestDrawer(b.msg,e,c("WAWebBizEntryPoint").ORDER_REQUEST_LIST)};return k.jsxs("button",babelHelpers["extends"]({"data-testid":void 0,onClick:a},{className:"x78zum5 x6s0dn4 x1yc453h xvt47uu xh8yej3"},{children:[k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.vert12,d("WAWebUISpacing").uiPadding.horiz16),{children:k.jsx(d("WAWebDetailImage.react").DetailImage,{id:b.contact.id,size:40})})),k.jsxs("div",babelHelpers["extends"]({},j.props(l.orderInfo,d("WAWebUISpacing").uiPadding.vert10,d("WAWebUISpacing").uiPadding.end16),{children:[k.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:l.title,children:[k.jsx(d("WAWebName.react").Name,{titlify:!0,ellipsify:!0,className:"x1iyjqo2",contact:b.contact}),k.jsx("span",{children:d("WAWebCurrencyUtils").formatAmount(b.orderInfo.currency,((a=b.orderInfo.totalAmount)!=null?a:0)/1e3)})]}),k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:l.orderSubDetails,children:k.jsx("span",{children:h._(/*BTDS*/"__JHASH__0Fy7NPhmVRM__JHASH__",[h._param("time",d("WAWebClock").Clock.relativeDateAndTimeStr(b.msg.t).toString())])})})]}))]}))}a.displayName=a.name+" [from "+f.id+"]";g.OrderRequestDetail=a}),226); __d("WAWebPaymentHistoryEmptyIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="payment-history-empty";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=41;m=48;(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 48 41",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsxs("g",{opacity:.38,children:[j.jsx("path",{d:"M15.09 5.46a3.96 3.96 0 0 1 3.96-3.96h23.784a3.96 3.96 0 0 1 3.96 3.96v26.12a7.92 7.92 0 0 1-7.92 7.92H8.044a7.045 7.045 0 0 0 7.046-7.045V5.46Z",stroke:"currentColor",strokeWidth:1.32}),j.jsx("rect",{x:22.136,y:12.358,width:17.613,height:1.206,rx:.603,fill:"currentColor"}),j.jsx("rect",{x:22.136,y:19.596,width:17.613,height:1.206,rx:.603,fill:"currentColor"}),j.jsx("rect",{x:22.136,y:26.832,width:17.613,height:1.206,rx:.603,fill:"currentColor"}),j.jsx("path",{d:"M1 25c0-.321.26-.58.58-.58h13.51v8.033a7.045 7.045 0 1 1-14.09 0V25Z",fill:"currentColor",fillOpacity:.2,stroke:"currentColor",strokeWidth:1.32})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PaymentHistoryEmptyIcon=a}),98); __d("WAWebBizOrderRequestManagementDrawer.react",["fbt","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlex.react","WAWebHooksUseOrderRequestFetcher","WAWebOrderRequestDetail.react","WAWebOrderRequestFetcher","WAWebPaymentHistoryEmptyIcon.react","WAWebSpinner.react","WAWebUISpacing","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.Fragment,n=b.useRef,o=65,p={infoRow:{color:"x1v0sa6q",fontWeight:"xk50ysn",fontSize:"x1f6kntn",lineHeight:"xa7kkou",$$css:!0},subTitle:{color:"x1v0sa6q",$$css:!0}},q=function(){return l.jsxs(l.Fragment,{children:[l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(p.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:h._(/*BTDS*/"__JHASH__XsRQP5ijgWv__JHASH__")})),l.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:d("WAWebUISpacing").uiPadding.top9,children:[l.jsx(d("WAWebPaymentHistoryEmptyIcon.react").PaymentHistoryEmptyIcon,{}),l.jsx("div",babelHelpers["extends"]({},j.props(p.subTitle,d("WAWebUISpacing").uiPadding.all16),{children:h._(/*BTDS*/"__JHASH__3vM4FDAq0XO__JHASH__")}))]})]})};function a(a){var b=a.onBack;a=a.ref;var e=n(null),f=d("WAWebHooksUseOrderRequestFetcher").useGetOrderRequests(e,o),g=f.ordersInfoMap.contactAndOrderRequestInfoMap,i=f.isLoading,j=f.ordersLazylist;return l.jsxs(c("WAWebDrawer.react"),{ref:a,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__mNKCToXlWOh__JHASH__"),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:b}),l.jsxs(c("WAWebDrawerBody.react"),{ref:e,className:"x150wa6m xw2csxc x1odjw0f x5yr21d",children:[j.map(function(a,b){return l.jsxs(m,{children:[l.jsx(r,{date:d("WAWebOrderRequestFetcher").getOrderDisplayDate(g,j,b)}),l.jsx(d("WAWebOrderRequestDetail.react").OrderRequestDetail,{contactAndOrderInfo:g[a]})]},a)}),i&&l.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all16,children:l.jsx(d("WAWebSpinner.react").Spinner,{color:"default",size:24,stroke:6})}),!i&&!j.length&&l.jsx(q,{})]})]})}a.displayName=a.name+" [from "+f.id+"]";function r(a){a=a.date;a=a===void 0?"":a;return a&&l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(p.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:a.toUpperCase()}))}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebOrderFetcher",["Promise","WAWebChatLoadMessages","WAWebClock","WAWebE2EProtoUtils","WAWebInteractiveMessagesNativeFlowName","WAWebMsgType","WAWebNoop","WAWebOrderDetails","WAWebOrderStatus","WAWebUserPrefsMeUser"],(function(a,b,c,d,e,f,g){var h;function a(a){return{fetcher:(h||(h=b("Promise"))).resolve(m(a)),unsubscribe:c("WAWebNoop")}}function e(a){var c=200,e,f,g=function(){f(),self.clearInterval(e)},i=new(h||(h=b("Promise")))(function(b){e=self.setInterval(function(){d("WAWebChatLoadMessages").loadEarlierMsgs(a,a.msgs)},c),f=a.msgs.onMsgLoadStateChange(function(){a.msgs.msgLoadState.noEarlierMsgs&&(b(m(a)),g())})});return{fetcher:i,unsubscribe:g}}function f(a,b){var c=babelHelpers["extends"]({},a);b.forEach(function(a){delete c[a.orderInfo.referenceId]});return c}function i(a,b){return babelHelpers["extends"]({},a,b.reduce(function(a,b){a[b.orderInfo.referenceId]=b;return a},{}))}function j(a,b,c){a=a.ordersStatusInfo;b=b.ordersStatusInfo;b=b[0].refId;c=c.orderStatusInfoMap;delete c[b];return k(c,a)}function k(a,b){return babelHelpers["extends"]({},a,b.reduce(function(a,b){a[b.refId]=b;return a},{}))}var l=function(a,b,c){var e=d("WAWebClock").Clock.relativeDateStr(a[b[c]].timestamp).toString();a=c>0?d("WAWebClock").Clock.relativeDateStr(a[b[c-1]].timestamp).toString():"";return e===a?"":e};function m(a){var b=a.contact;a=a.msgs;return n(a.toArray(),b)}function n(a,b){return a.reduce(function(a,e){var f;f=((f=e.interactivePayload)==null?void 0:f.buttons)||[{}];f=f[0];var g=f.name;f=f.buttonParamsJson;e.from.equals(d("WAWebUserPrefsMeUser").getMeUser())&&(e.nativeFlowName===c("WAWebInteractiveMessagesNativeFlowName").ORDER_DETAILS||e.nativeFlowName===c("WAWebInteractiveMessagesNativeFlowName").PAYMENT_INFO?o(a,e,b,g,f):d("WAWebE2EProtoUtils").isOrderNativeFlow(e.nativeFlowName)&&p(a,f));return a},{contactsAndOrdersInfo:[],ordersStatusInfo:[]})}function o(a,b,c,e,f){var g=b.t;e=d("WAWebOrderDetails").paramsJsonToOrderInfo(e,f);e&&a.contactsAndOrdersInfo.push({contact:c,orderInfo:e,timestamp:g,interactiveMsg:q(b)})}function p(a,b){b=d("WAWebOrderStatus").paramsJsonToOrderStatusInfo(b);b&&a.ordersStatusInfo.push(b)}function q(a){a=a.safe();return a.type===d("WAWebMsgType").MSG_TYPE.INTERACTIVE?a:null}g.getCachedOrdersInfoFromChat=a;g.getNotCachedOrdersInfoFromChat=e;g.removeContactAndOrdersInfoFromMap=f;g.getMergedContactAndOrderInfoMap=i;g.removeOrderStatusInfoFromMap=j;g.getMergedOrderStatusInfoMap=k;g.getOrderDisplayDate=l;g.getOrdersInfoFromMsgs=n}),98); __d("WAWebHooksUseOrderFetcher",["Promise","WAWebChatCollection","WAWebFrontendMsgGetters","WAWebHooksUseLazyOrders","WAWebOrderFetcher","asyncToGeneratorRuntime","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;c=i||d("react");var j=c.useCallback,k=c.useEffect,l=c.useMemo,m=c.useState;function a(a,c){var e=m({contactAndOrderInfoMap:{},orderStatusInfoMap:{}}),f=e[0],g=e[1];e=m(!0);var i=e[0],n=e[1],o=j(function(a){g(function(c){var b=c.contactAndOrderInfoMap;c=c.orderStatusInfoMap;var e=a.contactsAndOrdersInfo,f=a.ordersStatusInfo;b={contactAndOrderInfoMap:d("WAWebOrderFetcher").getMergedContactAndOrderInfoMap(b,e),orderStatusInfoMap:d("WAWebOrderFetcher").getMergedOrderStatusInfoMap(c,f)};return b})},[]),p=j(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b=d("WAWebOrderFetcher").getCachedOrdersInfoFromChat(b);b=b.fetcher;var c=(yield b);g(function(b){b=babelHelpers["extends"]({},b,{orderStatusInfoMap:d("WAWebOrderFetcher").removeOrderStatusInfoFromMap(c,a,b)});return b})});return function(b,c){return a.apply(this,arguments)}}(),[]),q=j(function(a){g(function(c){var b=c.contactAndOrderInfoMap,e=a.contactsAndOrdersInfo;c=babelHelpers["extends"]({},c,{contactAndOrderInfoMap:d("WAWebOrderFetcher").removeContactAndOrdersInfoFromMap(b,e)});return c})},[]);k(function(){var a=[],c=d("WAWebChatCollection").ChatCollection.map(function(b){var c=b.msgs.msgLoadState.noEarlierMsgs?d("WAWebOrderFetcher").getCachedOrdersInfoFromChat:d("WAWebOrderFetcher").getNotCachedOrdersInfoFromChat;c=c(b);b=c.fetcher;c=c.unsubscribe;b=b.then(o);a.push(c);return b});(h||(h=b("Promise"))).all(c)["finally"](function(){return n(!1)});return function(){a.forEach(function(a){return a()})}},[o]);var r=f.contactAndOrderInfoMap;e=l(function(){return[].concat(Object.keys(r).filter(function(a){return r[a].orderInfo.buttonName!=="payment_info"}).sort(function(a,b){return r[b].timestamp-r[a].timestamp}))},[r]);e=d("WAWebHooksUseLazyOrders").useLazyOrders(e,c,a);c=e.ordersLazylist;var s=e.scrollToTop;d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"add",function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=d("WAWebOrderFetcher").getCachedOrdersInfoFromChat(a);a=a.fetcher;a=(yield a);o(a);a.contactsAndOrdersInfo.length&&s()});return function(b){return a.apply(this,arguments)}}());d("useWAWebListener").useListeners(d("WAWebChatCollection").ChatCollection.toArray().map(function(a){return{source:a.msgs,eventOrEvents:"remove",callback:function(b){var c=d("WAWebOrderFetcher").getOrdersInfoFromMsgs([b],a.contact);c.contactsAndOrdersInfo.length?q(c):c.ordersStatusInfo.length&&p(c,d("WAWebFrontendMsgGetters").getChat(b))}}}));d("useWAWebListener").useListeners(d("WAWebChatCollection").ChatCollection.toArray().map(function(a){return{source:a.msgs,eventOrEvents:"add",callback:function(b){b=d("WAWebOrderFetcher").getOrdersInfoFromMsgs([b],a.contact);o(b);b.contactsAndOrdersInfo.length&&s()}}}));return{ordersInfoMap:f,isLoading:i,ordersLazylist:c}}g.useGetOrders=a}),98); __d("WAWebBizOrderManagementFlow.react",["fbt","$InternalEnum","WAWebBizEntryPoint","WAWebBizGatingUtils","WAWebBizOrderDetailAction","WAWebBizOrderManagementPaymentMethodsSection.react","WAWebBizOrderManagementSettingsSection.react","WAWebBizOrderRequestManagementDrawer.react","WAWebBizOrderStatusLabels","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebCmd","WAWebCurrencyUtils","WAWebDetailImage.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebFlex.react","WAWebFrontendMsgGetters","WAWebHooksUseOrderFetcher","WAWebHooksUseOrderRequestFetcher","WAWebName.react","WAWebOrderDetailsActionCategory","WAWebOrderDetailsActionsSmbWamEvent","WAWebOrderFetcher","WAWebOrderRequestDetail.react","WAWebOrderStatus","WAWebPaymentHistoryEmptyIcon.react","WAWebSpinner.react","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWamEnumOrderDetailsCreationAction","react","stylex","useWAWebFlow","useWAWebUIM"],(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.Fragment,n=e.useRef,o=b("$InternalEnum").Mirrored(["Orders","Requests"]),p=65,q={orderInfo:{borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x1v2jjsl",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},orderSubDetails:{color:"x1v0sa6q",fontSize:"x1f6kntn",lineHeight:"x37zpob",$$css:!0},canceled:{color:"x1sr8853",$$css:!0},completed:{color:"x1n68mz9",$$css:!0},delivered:{color:"x16yd4ao",$$css:!0},infoRow:{color:"x1v0sa6q",fontWeight:"xk50ysn",fontSize:"x1f6kntn",lineHeight:"xa7kkou",$$css:!0},orderStatusLabel:{fontWeight:"xk50ysn",$$css:!0},title:{color:"x1folq96",lineHeight:"x1evy7pa",fontSize:"x1jchvi3",justifyContent:"x1qughib",$$css:!0},subTitle:{color:"x1v0sa6q",$$css:!0},seeAllButton:{color:"x1mc9qgo",$$css:!0}};function a(a){var b=a.isInitialStep;a=a.ref;var e=d("useWAWebFlow").useFlow(o.Orders,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight}),f=e[0],g=e[1];if(g.step==null)return null;var h;switch(g.step){case o.Orders:h=l.jsx(x,{onSeeAll:function(){g.push(o.Requests)},onBack:function(){return g.end()},isInitialStep:(e=b)!=null?e:!1});break;case o.Requests:h=l.jsx(c("WAWebBizOrderRequestManagementDrawer.react"),{onBack:function(){return g.pop()}});break}return l.jsx(f,{ref:a,flow:g,children:h})}a.displayName=a.name+" [from "+f.id+"]";function r(a){switch(a){case d("WAWebOrderStatus").OrderStatus.Canceled:return q.canceled;case d("WAWebOrderStatus").OrderStatus.Complete:return q.completed;case d("WAWebOrderStatus").OrderStatus.Delivered:return q.delivered;case d("WAWebOrderStatus").OrderStatus.Pending:case d("WAWebOrderStatus").OrderStatus.Processing:case d("WAWebOrderStatus").OrderStatus.PartiallyShipped:case d("WAWebOrderStatus").OrderStatus.Shipped:case d("WAWebOrderStatus").OrderStatus.PaymentRequested:case d("WAWebOrderStatus").OrderStatus.PreparingToShip:return null}}function s(a){a=a.orderStatusInfo;a=a===void 0?d("WAWebOrderStatus").getDefaultOrderStatus():a;var b=d("WAWebBizOrderStatusLabels").getWAWebBizOrderStatusLabel(a);return l.jsx("span",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(q.orderStatusLabel,r(a)),{children:b}))}s.displayName=s.name+" [from "+f.id+"]";var t=[];function u(a){a=a.items;a=a===void 0?t:a;if(a.length===0)return null;var b=a[0];a=a.slice(1);var c=String(h._(/*BTDS*/"__JHASH__mEeFpsEYTMZ__JHASH__",[h._plural(a.length,"number_of_items")]));a=a.length>0?String(h._(/*BTDS*/"__JHASH__p6gKkCxBKQI__JHASH__"))+" "+(a.length===1?a[0].name:c):"";c=b.name+" "+a;return l.jsx("span",babelHelpers["extends"]({title:c},{className:"xuxw1ft x6ikm8r x10wlt62 xlyipyv x1iyjqo2"},{children:c}))}u.displayName=u.name+" [from "+f.id+"]";var v=function(){return l.jsxs(l.Fragment,{children:[l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(q.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:h._(/*BTDS*/"__JHASH__QvfuJoaJOan__JHASH__")})),l.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:d("WAWebUISpacing").uiPadding.top9,children:[l.jsx(d("WAWebPaymentHistoryEmptyIcon.react").PaymentHistoryEmptyIcon,{}),l.jsx("div",babelHelpers["extends"]({},j.props(q.subTitle,d("WAWebUISpacing").uiPadding.all16),{children:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__KNsuLPDmPi1__JHASH__"):h._(/*BTDS*/"__JHASH__9ldU9j8NvXF__JHASH__")}))]})]})};function w(a){var b=a.onSeeAll;a=a.scrollElementRef;a=d("WAWebHooksUseOrderRequestFetcher").useGetOrderRequests(a,p);var e=a.ordersInfoMap.contactAndOrderRequestInfoMap,f=a.isLoading;a=a.ordersLazylist;var g=function(){new(d("WAWebOrderDetailsActionsSmbWamEvent").OrderDetailsActionsSmbWamEvent)({orderDetailsCreationAction:d("WAWebWamEnumOrderDetailsCreationAction").ORDER_DETAILS_CREATION_ACTION.CLICK_SEE_ALL_ORDER_REQUESTS,actionCategory:String(c("WAWebOrderDetailsActionCategory").ORDER_DETAILS_MANAGEMENT),orderDetailEntryPoint:String(c("WAWebBizEntryPoint").ORDER_REQUEST_LIST),hasCatalog:d("WAWebBusinessProfileUtils").hasCatalog(d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(d("WAWebUserPrefsMeUser").getMeUser()))}).commit()};return l.jsxs(l.Fragment,{children:[(a.length>0||f)&&l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(q.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:h._(/*BTDS*/"__JHASH__b1lDcXloGy0__JHASH__")})),f&&l.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all16,children:l.jsx(d("WAWebSpinner.react").Spinner,{color:"default",size:24,stroke:6})}),a.slice(0,3).map(function(a,b){return l.jsx("div",{children:l.jsx(d("WAWebOrderRequestDetail.react").OrderRequestDetail,{contactAndOrderInfo:e[a]})},a)}),a.length>3&&l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"end",children:l.jsx("button",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(q.seeAllButton,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{onClick:function(){b(),g()},children:h._(/*BTDS*/"__JHASH__ewHBuM_mX5Y__JHASH__")}))})]})}w.displayName=w.name+" [from "+f.id+"]";function x(a){var b=a.isInitialStep;b=b===void 0?!1:b;var e=a.onBack,f=a.onSeeAll;a=a.ref;var g=n(null),i=d("WAWebHooksUseOrderFetcher").useGetOrders(g,p),j=i.ordersInfoMap,k=j.contactAndOrderInfoMap,o=j.orderStatusInfoMap;j=i.isLoading;var q=i.ordersLazylist;i={};b?i.onCancel=e:i.onBack=e;return l.jsxs(c("WAWebDrawer.react"),{ref:a,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,babelHelpers["extends"]({testid:void 0,title:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__ItmRjV67Cw1__JHASH__"):h._(/*BTDS*/"__JHASH__0DRrLzEPjwl__JHASH__"),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL},i)),l.jsxs(c("WAWebDrawerBody.react"),{className:"x150wa6m x5yr21d",children:[l.jsx(c("WAWebBizOrderManagementPaymentMethodsSection.react"),{}),l.jsx(c("WAWebBizOrderManagementSettingsSection.react"),{}),l.jsxs(c("WAWebDrawerSection.react"),{ref:g,className:"x150wa6m xw2csxc x1odjw0f x94v8gs",animation:!1,children:[d("WAWebBizGatingUtils").isSellerOrderRevampEnabled()&&l.jsx(w,{onSeeAll:f,scrollElementRef:g}),q.map(function(a,b){return l.jsxs(m,{children:[l.jsx(z,{date:d("WAWebOrderFetcher").getOrderDisplayDate(k,q,b)}),l.jsx(y,{contactAndOrderInfo:k[a],orderStatusInfo:o[a]?o[a].status:d("WAWebOrderStatus").getDefaultOrderStatus()})]},a)}),j&&l.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all16,children:l.jsx(d("WAWebSpinner.react").Spinner,{color:"default",size:24,stroke:6})}),!j&&!q.length&&l.jsx(v,{})]})]})]})}x.displayName=x.name+" [from "+f.id+"]";function y(a){var b=a.contactAndOrderInfo;a=a.orderStatusInfo;var e=c("useWAWebUIM")(),f=function(){var a=b.interactiveMsg;a&&(void d("WAWebCmd").Cmd.openChatFromUnread(d("WAWebFrontendMsgGetters").getChat(a.unsafe())),d("WAWebBizOrderDetailAction").openOrderDetailDrawer(a,e,c("WAWebBizEntryPoint").FROM_BUSINESS_TOOLS))};return l.jsxs("button",babelHelpers["extends"]({"data-testid":void 0,onClick:f},{className:"x78zum5 x6s0dn4 x1yc453h xvt47uu xh8yej3"},{children:[l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.vert12,d("WAWebUISpacing").uiPadding.horiz16),{children:l.jsx(d("WAWebDetailImage.react").DetailImage,{id:b.contact.id,size:40})})),l.jsxs("div",babelHelpers["extends"]({},j.props(q.orderInfo,d("WAWebUISpacing").uiPadding.vert10,d("WAWebUISpacing").uiPadding.end16),{children:[l.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:q.title,children:[l.jsx(d("WAWebName.react").Name,{titlify:!0,ellipsify:!0,className:"x1iyjqo2",contact:b.contact}),l.jsx("span",{children:d("WAWebCurrencyUtils").formatAmount(b.orderInfo.currency,(f=b.orderInfo.totalAmount)!=null?f:0)})]}),l.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:q.orderSubDetails,children:[l.jsx(u,{items:b.orderInfo.items}),l.jsx(s,{orderStatusInfo:a})]})]}))]}))}y.displayName=y.name+" [from "+f.id+"]";function z(a){a=a.date;a=a===void 0?"":a;return a&&l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(q.infoRow,d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.vert10),{children:a.toUpperCase()}))}z.displayName=z.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizToolsDrawerBodySection.react",["WAWebText.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={borderBottom:{borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xcsjwe9",$$css:!0}};function a(a){var b=a.children,e=a.headerText;a=a.hideDivider;return j.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},(i||(i=c("stylex"))).props([!a&&k.borderBottom,d("WAWebUISpacing").uiPadding.vert8]),{children:[e!=null?j.jsx(d("WAWebText.react").WAWebTextSectionTitle,{xstyle:[d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.start24],children:e}):null,b]}))}a.displayName=a.name+" [from "+f.id+"]";g.BizToolsDrawerBodySection=a}),98); __d("WAWebBizToolsTopCardIcon.react",["WAWebSvgComponentBase","WAWebThemeContext","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="biz-tools-top-card-icon-light",l="biz-tools-top-card-icon-dark";function m(){return j.jsxs(j.Fragment,{children:[j.jsx("rect",{width:"48",height:"48",rx:"24",fill:"#E2FEF2"}),j.jsxs("g",{clipPath:"url(#clip0_53_18631)",children:[j.jsx("path",{d:"M33 25C33 25.55 33.45 26 34 26H36C36.55 26 37 25.55 37 25C37 24.45 36.55 24 36 24H34C33.45 24 33 24.45 33 25Z",fill:"#05A884"}),j.jsx("path",{d:"M31.59 29.8199C31.26 30.2599 31.35 30.8699 31.79 31.1899C32.32 31.5799 32.88 31.9999 33.41 32.3999C33.85 32.7299 34.47 32.6399 34.79 32.1999C34.79 32.1899 34.8 32.1899 34.8 32.1799C35.13 31.7399 35.04 31.1199 34.6 30.7999C34.07 30.3999 33.51 29.9799 32.99 29.5899C32.55 29.2599 31.93 29.3599 31.6 29.7999C31.6 29.8099 31.59 29.8199 31.59 29.8199Z",fill:"#05A884"}),j.jsx("path",{d:"M34.8099 17.81C34.8099 17.8 34.7999 17.8 34.7999 17.79C34.4699 17.35 33.8499 17.26 33.4199 17.59C32.8899 17.99 32.3199 18.41 31.7999 18.81C31.3599 19.14 31.2799 19.76 31.6099 20.19C31.6099 20.2 31.6199 20.2 31.6199 20.21C31.9499 20.65 32.5599 20.74 32.9999 20.41C33.5299 20.02 34.0899 19.59 34.6199 19.19C35.0499 18.87 35.1299 18.25 34.8099 17.81Z",fill:"#05A884"}),j.jsx("path",{d:"M23 22H19C17.9 22 17 22.9 17 24V26C17 27.1 17.9 28 19 28H20V31C20 31.55 20.45 32 21 32C21.55 32 22 31.55 22 31V28H23L28 31V19L23 22Z",fill:"#05A884"}),j.jsx("path",{d:"M30.5 24.9999C30.5 23.6699 29.92 22.4699 29 21.6499V28.3399C29.92 27.5299 30.5 26.3299 30.5 24.9999Z",fill:"#05A884"})]}),j.jsx("path",{d:"M20.6665 18L21.9198 15.24L24.6665 14L21.9198 12.76L20.6665 10L19.4398 12.76L16.6665 14L19.4398 15.24L20.6665 18Z",fill:"#05A884"}),j.jsx("path",{d:"M12.3333 22.6667L13 20L15.6667 19.3333L13 18.6667L12.3333 16L11.6667 18.6667L9 19.3333L11.6667 20L12.3333 22.6667Z",fill:"#05A884"}),j.jsx("defs",{children:j.jsx("clipPath",{id:"clip0_53_18631",children:j.jsx("rect",{width:"24",height:"24",fill:"white",transform:"translate(15 13)"})})})]})}m.displayName=m.name+" [from "+f.id+"]";function n(){return j.jsxs(j.Fragment,{children:[j.jsx("rect",{width:"48",height:"48",rx:"24",fill:"#05A884"}),j.jsxs("g",{clipPath:"url(#clip0_53_18975)",children:[j.jsx("rect",{width:"24",height:"24",transform:"translate(12 12)",fill:"#05A884"}),j.jsx("path",{d:"M32 27C32 27.55 32.45 28 33 28H35C35.55 28 36 27.55 36 27C36 26.45 35.55 26 35 26H33C32.45 26 32 26.45 32 27Z",fill:"#182229"}),j.jsx("path",{d:"M30.59 31.8199C30.26 32.2599 30.35 32.8699 30.79 33.1899C31.32 33.5799 31.88 33.9999 32.41 34.3999C32.85 34.7299 33.47 34.6399 33.79 34.1999C33.79 34.1899 33.8 34.1899 33.8 34.1799C34.13 33.7399 34.04 33.1199 33.6 32.7999C33.07 32.3999 32.51 31.9799 31.99 31.5899C31.55 31.2599 30.93 31.3599 30.6 31.7999C30.6 31.8099 30.59 31.8199 30.59 31.8199Z",fill:"#182229"}),j.jsx("path",{d:"M33.8099 19.81C33.8099 19.8 33.7999 19.8 33.7999 19.79C33.4699 19.35 32.8499 19.26 32.4199 19.59C31.8899 19.99 31.3199 20.41 30.7999 20.81C30.3599 21.14 30.2799 21.76 30.6099 22.19C30.6099 22.2 30.6199 22.2 30.6199 22.21C30.9499 22.65 31.5599 22.74 31.9999 22.41C32.5299 22.02 33.0899 21.59 33.6199 21.19C34.0499 20.87 34.1299 20.25 33.8099 19.81Z",fill:"#182229"}),j.jsx("path",{d:"M22 24H18C16.9 24 16 24.9 16 26V28C16 29.1 16.9 30 18 30H19V33C19 33.55 19.45 34 20 34C20.55 34 21 33.55 21 33V30H22L27 33V21L22 24Z",fill:"#182229"}),j.jsx("path",{d:"M29.5 26.9999C29.5 25.6699 28.92 24.4699 28 23.6499V30.3399C28.92 29.5299 29.5 28.3299 29.5 26.9999Z",fill:"#182229"}),j.jsx("path",{d:"M23.5 20L24.7533 17.24L27.5 16L24.7533 14.76L23.5 12L22.2733 14.76L19.5 16L22.2733 17.24L23.5 20Z",fill:"#182229"}),j.jsx("path",{d:"M15.3333 23.1667L16 20.5L18.6667 19.8333L16 19.1667L15.3333 16.5L14.6667 19.1667L12 19.8333L14.6667 20.5L15.3333 23.1667Z",fill:"#182229"})]}),j.jsx("defs",{children:j.jsx("clipPath",{id:"clip0_53_18975",children:j.jsx("rect",{width:"24",height:"24",fill:"white",transform:"translate(12 12)"})})})]})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=d("WAWebThemeContext").useIsDarkTheme(),e=b?l:k,f=a.iconXstyle,g=a.height,h=a.width,o=a.viewBox;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox"]);var p;if(o){var q=o.x;q=q===void 0?0:q;var r=o.y;r=r===void 0?0:r;var s=o.width;s=s===void 0?0:s;o=o.height;o=o===void 0?0:o;p=[q,r,s,o].join(" ")}q=48;r=48;(g!=null||h!=null)&&(q=g,r=h);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:e},a,{children:j.jsxs("svg",babelHelpers["extends"]({viewBox:(s=p)!=null?s:"0 0 48 48",height:q,width:r,preserveAspectRatio:"xMidYMid meet"},(i||(i=c("stylex"))).props(f),{fill:"none",children:[j.jsx("title",{children:e}),b?j.jsx(n,{}):j.jsx(m,{})]}))}))}a.displayName=a.name+" [from "+f.id+"]";g.BizToolsTopCardIcon=a}),98); __d("WAWebBizToolsTopCard.react",["WAWebBizToolsTopCardIcon.react","WAWebButton.react","WAWebFlex.react","WAWebText.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k=48,l={wrapper:{borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1ditxmn",borderEndColor:"x5oxmg1",borderBottomColor:"xcsjwe9",borderStartColor:"xmdchvr",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",$$css:!0}};function m(){return j.jsx(d("WAWebBizToolsTopCardIcon.react").BizToolsTopCardIcon,{height:k,width:k})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.promotion;a=b.promotion.promotion.data;var e=a.titleElementValue,f=a.textElementValue;a=a.primaryAction;if(a==null)return null;var g=a.text,h=a.universalLink;a=a.deepLink;a=(a=a)!=null?a:h;if(a==null||a==="")return null;h=b.image;a=h!=null?h:j.jsx(m,{});h=function(){b.primaryActionClick()};return j.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props([d("WAWebUISpacing").paddingAll16,d("WAWebUISpacing").marginTop8,d("WAWebUISpacing").marginHoriz24,l.wrapper]),{children:[j.jsxs(d("WAWebFlex.react").FlexRow,{children:[j.jsx("div",babelHelpers["extends"]({className:"x2lah0s x1useyqa"},{children:a})),j.jsxs("div",babelHelpers["extends"]({},i.props(d("WAWebUISpacing").marginStart16),{children:[j.jsx(d("WAWebText.react").WAWebTextTitle,{weight:"semibold",children:e}),j.jsx(d("WAWebText.react").WAWebTextMuted,{color:"secondary",xstyle:d("WAWebUISpacing").marginBottom16,children:f})]}))]}),j.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",children:j.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:h,children:g})})]}))}a.displayName=a.name+" [from "+f.id+"]";g.BizToolsTopCard=a}),98); __d("WAWebBizToolWhatsNextSection.react",["fbt","WAWebBizToolsDrawerBodySection.react","WAWebBizToolsTopCard.react","WAWebCTWAConstants","react","useWAWebBestQuickPromotionForSurface"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=d("useWAWebBestQuickPromotionForSurface").useBestQuickPromotionForSurface({surfaceId:d("WAWebCTWAConstants").QP_SURFACE_BUSINESS_HOME_TOP_CARD},{fireImpression:!0});return a==null?null:j.jsx(d("WAWebBizToolsDrawerBodySection.react").BizToolsDrawerBodySection,{hideDivider:!0,headerText:h._(/*BTDS*/"__JHASH__tSCMlJQsVRf__JHASH__"),children:j.jsx(d("WAWebBizToolsTopCard.react").BizToolsTopCard,{promotion:a})})}a.displayName=a.name+" [from "+f.id+"]";g.BizToolWhatsNextSection=a}),226); __d("WAWebBizToolsFlowSteps",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["Tools","BusinessProfile","ManageAds","Catalog","Orders","QuickReplies","Labels"]);f.BizToolsSteps=a}),66); __d("WAWebBizToolsSessionModel",[],(function(a,b,c,d,e,f,g){c=function(){var a=new Uint32Array(1);a=self.crypto.getRandomValues(a);return a[0].toString()};var h=c(),i=0;function a(){return h}function b(){return++i}g.getSession=a;g.getSequence=b}),98); __d("WAWebWamEnumBusinessToolsEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({ENTRY_BANNER:0,ENTRY_REGISTRATION_ONBOARDING:1,ENTRY_CONVERSATIONS:2,ENTRY_SETTINGS:3,ENTRY_DEEPLINK:4,ENTRY_STATUS_TAB_MENU:5,ENTRY_CALLS_TAB_MENU:6,ENTRY_BUSINESS_TOOLS_TAB:7});f.BUSINESS_TOOLS_ENTRY_POINT_TYPE=a}),66); __d("WAWebWamEnumBusinessToolsItemType",[],(function(a,b,c,d,e,f){a=Object.freeze({OVERFLOW:0,PROFILE:1,CATALOG:2,AWAY_MESSAGE:3,GREETING_MESSAGE:4,QUICK_REPLIES:5,LABELS:6,LINKED_ACCOUNTS:7,SHORT_LINK:8,STATISTICS:9,CREATE_ACCOUNT_LINK:10,MANAGE_CTA:11,CREATE_AD:12,CONTINUE_PROMPT:13,ADVERTISE_LIST_ITEM:14,SHOPS:15,DISABLED_CATALOG:16,BANNED_SHOP:17,PREMIUM_TOOLS:18,BUSINESS_DIRECTORY:19,MANAGE_ADS:20,META_VERIFIED:21,AI_FROM_META:22,ORDERS:23,MARKETING_MESSAGES:24,BUSINESS_BROADCAST:25});f.BUSINESS_TOOLS_ITEM_TYPE=a}),66); __d("WAWebWamEnumBusinessToolsLinkedAccountType",[],(function(a,b,c,d,e,f){a=Object.freeze({FACEBOOK:0,INSTAGRAM:1});f.BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE=a}),66); __d("WAWebBusinessToolsClickWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumBusinessToolsItemType","WAWebWamEnumBusinessToolsLinkedAccountType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessToolsClick:[2218,{businessToolsEntryPoint:[5,d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE],businessToolsItem:[3,d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE],businessToolsSequenceNumber:[2,d("WAWebWamCodegenUtils").TYPES.INTEGER],businessToolsSessionId:[1,d("WAWebWamCodegenUtils").TYPES.STRING],linkingTarget:[4,d("WAWebWamEnumBusinessToolsLinkedAccountType").BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE]},[1,1,1],"regular"]},{BusinessToolsClick:[]});g.BusinessToolsClickWamEvent=a}),98); __d("WAWebBusinessToolsEntryWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumBusinessToolsEntryPointType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessToolsEntry:[2216,{businessToolsEntryPoint:[3,d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE],businessToolsSequenceNumber:[2,d("WAWebWamCodegenUtils").TYPES.INTEGER],businessToolsSessionId:[1,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{BusinessToolsEntry:[]});g.BusinessToolsEntryWamEvent=a}),98); __d("WAWebBusinessToolsImpressionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumBusinessToolsEntryPointType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({BusinessToolsImpression:[2220,{businessToolsEntryPoint:[4,d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE],businessToolsSequenceNumber:[2,d("WAWebWamCodegenUtils").TYPES.INTEGER],businessToolsSessionId:[1,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{BusinessToolsImpression:[]});g.BusinessToolsImpressionWamEvent=a}),98); __d("WAWebBizToolsUtils",["WAWebBizToolsSessionModel","WAWebBusinessToolsClickWamEvent","WAWebBusinessToolsEntryWamEvent","WAWebBusinessToolsImpressionWamEvent"],(function(a,b,c,d,e,f,g){a=function(a){new(d("WAWebBusinessToolsEntryWamEvent").BusinessToolsEntryWamEvent)({businessToolsSessionId:d("WAWebBizToolsSessionModel").getSession(),businessToolsSequenceNumber:d("WAWebBizToolsSessionModel").getSequence(),businessToolsEntryPoint:a}).commit()};b=function(a){new(d("WAWebBusinessToolsImpressionWamEvent").BusinessToolsImpressionWamEvent)({businessToolsSessionId:d("WAWebBizToolsSessionModel").getSession(),businessToolsSequenceNumber:d("WAWebBizToolsSessionModel").getSequence(),businessToolsEntryPoint:a}).commit()};c=function(a,b){new(d("WAWebBusinessToolsClickWamEvent").BusinessToolsClickWamEvent)({businessToolsSessionId:d("WAWebBizToolsSessionModel").getSession(),businessToolsSequenceNumber:d("WAWebBizToolsSessionModel").getSequence(),businessToolsEntryPoint:a,businessToolsItem:b}).commit()};g.logBizToolsEntry=a;g.logBizToolsImpression=b;g.logBizToolsClick=c}),98); __d("WAWebBoltIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="bolt";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:"M10.55 18.2L15.725 12H11.725L12.45 6.32503L7.82497 13H11.3L10.55 18.2ZM8.99997 15H5.89997C5.49997 15 5.20414 14.8209 5.01247 14.4625C4.8208 14.1042 4.84164 13.7584 5.07497 13.425L12.55 2.67503C12.7166 2.44169 12.9333 2.27919 13.2 2.18753C13.4666 2.09586 13.7416 2.10003 14.025 2.20003C14.3083 2.30003 14.5166 2.47503 14.65 2.72503C14.7833 2.97503 14.8333 3.24169 14.8 3.52503L14 10H17.875C18.3083 10 18.6125 10.1917 18.7875 10.575C18.9625 10.9584 18.9083 11.3167 18.625 11.65L10.4 21.5C10.2166 21.7167 9.99164 21.8584 9.72497 21.925C9.4583 21.9917 9.19997 21.9667 8.94997 21.85C8.69997 21.7334 8.50414 21.5542 8.36247 21.3125C8.2208 21.0709 8.16664 20.8084 8.19997 20.525L8.99997 15Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BoltIcon=a}),98); __d("WAWebBusinessToolsOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="business-tools-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("g",{clipPath:"url(#clip0_49_15709)",children:j.jsx("path",{d:"M18.36 9L18.96 12H5.04L5.64 9H18.36ZM20 5C20 4.44772 19.5523 4 19 4H5C4.44772 4 4 4.44772 4 5C4 5.55228 4.44772 6 5 6H19C19.5523 6 20 5.55228 20 5ZM20.1608 7.80388C20.0673 7.33646 19.6569 7 19.1802 7H4.8198C4.34312 7 3.93271 7.33646 3.83922 7.80388L3.01942 11.9029C3.0065 11.9675 3 12.0332 3 12.099V13C3 13.5523 3.44772 14 4 14V18C4 19.1046 4.89543 20 6 20H12C13.1046 20 14 19.1046 14 18V14H18V19C18 19.5523 18.4477 20 19 20C19.5523 20 20 19.5523 20 19V14C20.5523 14 21 13.5523 21 13V12.099C21 12.0332 20.9935 11.9675 20.9806 11.9029L20.1608 7.80388ZM6 18V14H12V18H6Z",fill:"currentColor"})}),j.jsx("defs",{children:j.jsx("clipPath",{id:"clip0_49_15709",children:j.jsx("rect",{width:24,height:24,fill:"white"})})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BusinessToolsOutlineIcon=a}),98); __d("WAWebGridIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="grid";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("g",{id:"icon_catalog",children:j.jsx("path",{id:"Union",fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.5C4.39543 3.5 3.5 4.39543 3.5 5.5V18.5C3.5 19.6046 4.39543 20.5 5.5 20.5H18.5C19.6046 20.5 20.5 19.6046 20.5 18.5L20.5 5.5C20.5 4.39543 19.6046 3.5 18.5 3.5H5.5ZM18.5 13.5V10.5H15.5V13.5H18.5ZM13.5 13.5V10.5H10.5V13.5H13.5ZM10.5 15.5H13.5V18.5H10.5V15.5ZM8.5 13.5V10.5H5.5L5.5 13.5H8.5ZM5.5 15.5H8.5V18.5H5.5L5.5 15.5ZM15.5 15.5H18.5V18.5H15.5V15.5ZM5.5 8.5H8.5V5.5H5.5L5.5 8.5ZM10.5 8.5H13.5V5.5H10.5V8.5ZM15.5 8.5H18.5V5.5H15.5V8.5Z",fill:"currentColor"})})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.GridIcon=a}),98); __d("WAWebGridRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="grid-refreshed";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:"M5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H8.325V15.675H5V19ZM10.325 19H13.675V15.675H10.325V19ZM15.675 19H19V15.675H15.675V19ZM5 13.675H8.325V10.325H5V13.675ZM10.325 13.675H13.675V10.325H10.325V13.675ZM15.675 13.675H19V10.325H15.675V13.675ZM5 8.325H8.325V5H5V8.325ZM10.325 8.325H13.675V5H10.325V8.325ZM15.675 8.325H19V5H15.675V8.325Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.GridRefreshedIcon=a}),98); __d("WAWebHelpIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="help";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=20;(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 20 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",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 10.5C0 4.98 4.48 0.5 10 0.5C15.52 0.5 20 4.98 20 10.5C20 16.02 15.52 20.5 10 20.5C4.48 20.5 0 16.02 0 10.5ZM2 10.5C2 14.91 5.59 18.5 10 18.5C14.41 18.5 18 14.91 18 10.5C18 6.09 14.41 2.5 10 2.5C5.59 2.5 2 6.09 2 10.5ZM11 14.5V16.5H9V14.5H11ZM6.18 7.33C6.73 5.51 8.55 4.24 10.61 4.54C12.35 4.8 13.72 6.27 13.96 8.01C14.1881 9.62354 13.2957 10.4021 12.4344 11.1535C12.2762 11.2916 12.119 11.4288 11.97 11.57C11.85 11.68 11.74 11.79 11.64 11.91C11.635 11.915 11.63 11.9225 11.625 11.93C11.62 11.9375 11.615 11.945 11.61 11.95C11.51 12.07 11.41 12.2 11.33 12.34C11.32 12.355 11.3125 12.37 11.305 12.385C11.2975 12.4 11.29 12.415 11.28 12.43C11.11 12.73 11 13.08 11 13.5H9C9 13 9.08 12.59 9.2 12.25C9.20438 12.2368 9.20685 12.2256 9.20907 12.2155C9.21192 12.2025 9.21438 12.1912 9.22 12.18C9.225 12.165 9.2325 12.1525 9.24 12.14C9.2475 12.1275 9.255 12.115 9.26 12.1C9.33 11.92 9.42 11.75 9.51 11.6C9.515 11.59 9.52 11.5825 9.525 11.575C9.53 11.5675 9.535 11.56 9.54 11.55C9.54 11.545 9.5425 11.5425 9.545 11.54C9.5475 11.5375 9.55 11.535 9.55 11.53C9.89058 11.0171 10.3473 10.6658 10.7745 10.3373C11.3883 9.8652 11.941 9.44014 12 8.65C12.08 7.68 11.38 6.75 10.43 6.55C9.4 6.33 8.45 6.94 8.13 7.83C7.99 8.21 7.66 8.5 7.25 8.5H7.05C6.44 8.5 6 7.91 6.18 7.33Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.HelpIcon=a}),98); __d("WAWebBusinessIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="business";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:"currentColor",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M0 0h24v24H0V0z",fill:"none"}),j.jsx("path",{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BusinessIcon=a}),98); __d("WAWebProfilePicPicker.react",["WAAbortError","WAFilteredCatch","WALogger","WAPromiseRaceAbort","WATimeUtils","WAWebMiscErrors","WAWebNoop","WAWebPhotoPickerConstants","WAWebPhotoPickerLoadable.react","WAWebProfilePicThumbAction","WAWebUserPrefsGeneral","react","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["ProfileDrawer: failed to set/delete profile image"]);j=function(){return a};return a}var k=i||c("react"),l=(h||(h=d("react"))).useState;function a(a){var b=a.profilePicThumb,e=a.size,f=a.tabIndex,g=!b.canSet()&&!b.canDelete(),h=l(!1),i=h[0],m=h[1],n=c("useWAWebUnmountSignal")();h=function(b,e){var f=a.profilePicThumb;m(!0);var g=!1;b!=null&&e!=null?b=d("WAWebProfilePicThumbAction").setProfilePic(f,b,e):(g=!0,b=d("WAWebProfilePicThumbAction").deleteProfilePic(f));c("WAPromiseRaceAbort")(b,n)["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebMiscErrors").ActionError,function(a){d("WALogger").WARN(j()).devConsole(a)}))["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["finally"](function(){m(!1),g&&d("WAWebUserPrefsGeneral").setLastProfilePicThumbUpdate(d("WATimeUtils").unixTime())})};return k.jsx(d("WAWebPhotoPickerLoadable.react").PhotoPickerLoadable,{tabIndex:f,type:d("WAWebPhotoPickerConstants").PhotoPickerType.PROFILE,id:b.id,attachToChat:!1,pending:i,startImage:b.imgFull,readOnly:g,onImageSet:h,size:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebBusinessProfileCoverPhoto.react",["fbt","WAWebBizCoverPhotoPicker.react","WAWebBizGatingUtils","WAWebDetailImage.react","WAWebFlex.react","WAWebMiscGatingUtils","WAWebPencilIcon.react","WAWebPencilRefreshedIcon.react","WAWebProfilePicPicker.react","WAWebRound.react","WAWebSvgComponentBase","WAWebUIRefreshGatingUtils","WAWebUISpacing","react","stylex","useWAWebModelValues","useWAWebUnmountSignal"],(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.useState,o=1300,p=122,q=152,r={avatar:{position:"x1n2onr6",zIndex:"xlynzuj",maxWidth:"x1c4npxh",backgroundColor:"x1k74hu9",marginTop:"xma71h1","@media screen and (min-width: 1300px)_marginTop":"x1bfl7gj",$$css:!0},image:{borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1s0ki91",borderEndColor:"x1mn67wr",borderBottomColor:"x1sik5lz",borderStartColor:"x26ctlz",borderTopStartRadius:"xlid4zk",borderTopEndRadius:"x13tp074",borderBottomEndRadius:"x1qns1p2",borderBottomStartRadius:"xipx5yg",$$css:!0},noStatusBorder:{borderTopWidth:"x1kr8tdy",borderEndWidth:"x1e7kja",borderBottomWidth:"xqm4iv",borderStartWidth:"x19d7kov",$$css:!0}};function a(a){var b,e=a.businessProfile,f=a.contact,g=a.editable,i=a.onClick,k=a.onLoad;a=a.profilePicThumb;var s=n(window.innerWidth),t=s[0],u=s[1];s=d("useWAWebModelValues").useModelValues(e,["coverPhoto","profileOptions"]);e=c("useWAWebUnmountSignal")();m(function(){function a(){u(window.innerWidth)}window.addEventListener("resize",a);a();return function(){return window.removeEventListener("resize",a)}},[s.profileOptions]);b=d("WAWebMiscGatingUtils").isBlueLockingEnabled()&&((b=s.profileOptions)==null?void 0:b.isProfileEditDisabled)===!0;t=t>o?q:p;function v(a){if(!i)return;i(a)}var w=r.noStatusBorder;g===!0&&a!=null&&!b?a=l.jsx(c("WAWebProfilePicPicker.react"),{profilePicThumb:a,size:t}):a=l.jsx(d("WAWebDetailImage.react").DetailImage,{id:f.id,size:t,loader:!0,onLoad:k,onClick:b?null:v,quality:d("WAWebDetailImage.react").DetailImageQuality.High});t=(f=s.coverPhoto)==null?void 0:f.url.toString();var x,y;if(g!=null&&d("WAWebBizGatingUtils").isBizCoverPhotoEditEnabled()){x=l.jsx(c("WAWebBizCoverPhotoPicker.react"),{coverPhoto:s.coverPhoto!=null?s.coverPhoto:void 0,signal:e});k=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon:d("WAWebPencilIcon.react").PencilIcon;b=l.jsx(k,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL});y=l.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x92rtbv x191j7n5 x1vjfegm x47corl x219wg1 x14yjl9h xudhj91 x18nykt9 xww2gxu"},{"aria-hidden":!0,children:l.jsx(d("WAWebRound.react").Round,{inverted:!0,testid:void 0,children:b})}))}var z;if(g==null&&t!=null&&d("WAWebBizGatingUtils").isBizCoverPhotoViewEnabled()){v=h._(/*BTDS*/"__JHASH__FtC2wO6so76__JHASH__");f=t!==""?{backgroundImage:"url("+t+")"}:null;z=l.jsx("div",{className:"x10l6tqk x13vifvy xds687c x1ey2m1c x17qophe xiy17q3 x18d0r48",style:f,"data-testid":void 0,role:"img","aria-label":v})}return l.jsxs(l.Fragment,{children:[l.jsxs("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk x13vifvy x17qophe xh8yej3 xiqx3za x6ikm8r x10wlt62 x1knukwh xihgre1"},1:{className:"x10l6tqk x13vifvy x17qophe xh8yej3 xiqx3za x6ikm8r x10wlt62 x1knukwh xihgre1 x1yk5sdm"}}[!!Boolean(g)<<0],{children:[z,x,y]})),l.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",className:(j||(j=c("stylex")))(r.avatar,d("WAWebUISpacing").uiMargin.bottom15,d("WAWebUISpacing").uiMargin.horizAuto),children:l.jsx("div",babelHelpers["extends"]({},j.props(r.image,w),{children:a}))})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWamEnumTrustSignalBuckets",[],(function(a,b,c,d,e,f){a=Object.freeze({B0:1,B1:2,B2:3,B11:4,B51:5,B101:6,B501:7,B1K:8,B10K:9,B100K:10,B1M:11});f.TRUST_SIGNAL_BUCKETS=a}),66); __d("WAWebWamEnumViewBusinessProfileAction",[],(function(a,b,c,d,e,f){a=Object.freeze({ACTION_IMPRESSION:1,ACTION_CLICK_WEBSITE:2,ACTION_CLICK_LOCATION:3,ACTION_CLICK_HOURS:4,ACTION_CLICK_DESCRIPTION:5,ACTION_CLICK_EMAIL:6,ACTION_CLICK_ADDTOCONTACT:7,ACTION_CLICK_MORE_BIZ_PROFILE:8,ACTION_CLICK_MESSAGE:9,ACTION_CLICK_VOICE_CALL:10,ACTION_CLICK_VIDEO_CALL:11,ACTION_CLICK_FORWARD:12,ACTION_CLICK_CATALOG_ICON:13,ACTION_CLICK_SHOPS_ICON:14,ACTION_CLICK_APP_LINK:15,ACTION_APP_IMPRESSION:16,ACTION_CLICK_STATUS:17,ACTION_EXIT:18,ACTION_COVER_PHOTO_IMPRESSION:19,ACTION_CLICK_VERIFIED_BADGE:20,ACTION_LOAD:21});f.VIEW_BUSINESS_PROFILE_ACTION=a}),66); __d("WAWebWamEnumWebsiteSourceType",[],(function(a,b,c,d,e,f){a=Object.freeze({SOURCE_OTHER:1,SOURCE_INSTAGRAM:2});f.WEBSITE_SOURCE_TYPE=a}),66); __d("WAWebViewBusinessProfileWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumBusinessToolsLinkedAccountType","WAWebWamEnumProfileEntryPoint","WAWebWamEnumTrustSignalBuckets","WAWebWamEnumViewBusinessProfileAction","WAWebWamEnumWebsiteSourceType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({ViewBusinessProfile:[1522,{bizFbSize:[9,d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS],bizIgSize:[10,d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS],businessProfileJid:[3,a.TYPES.STRING],catalogSessionId:[6,a.TYPES.STRING],hasCoverPhoto:[12,a.TYPES.BOOLEAN],isProfileLinked:[11,a.TYPES.BOOLEAN],isSelfView:[7,a.TYPES.BOOLEAN],linkedAccount:[5,d("WAWebWamEnumBusinessToolsLinkedAccountType").BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE],profileEntryPoint:[8,d("WAWebWamEnumProfileEntryPoint").PROFILE_ENTRY_POINT],scrollDepth:[4,a.TYPES.INTEGER],viewBusinessProfileAction:[1,d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION],websiteSource:[2,d("WAWebWamEnumWebsiteSourceType").WEBSITE_SOURCE_TYPE]},[1,1,1],"regular"]},{ViewBusinessProfile:[]});g.ViewBusinessProfileWamEvent=b}),98); __d("WAWebBusinessLogEvents",["WAWebBizGatingUtils","WAWebViewBusinessProfileWamEvent","WAWebWamEnumBusinessToolsLinkedAccountType","WAWebWamEnumTrustSignalBuckets","WAWebWamEnumViewBusinessProfileAction"],(function(a,b,c,d,e,f,g){function h(a){a=new(d("WAWebViewBusinessProfileWamEvent").ViewBusinessProfileWamEvent)(babelHelpers["extends"]({},a,{isProfileLinked:!!a.isProfileLinked}));a.commit()}function a(a,b,c,e){d("WAWebBizGatingUtils").smbBizProfileLoggingEnabled()?new(d("WAWebViewBusinessProfileWamEvent").ViewBusinessProfileWamEvent)({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_IMPRESSION,catalogSessionId:a,profileEntryPoint:b,isProfileLinked:c,hasCoverPhoto:e}).commit():new(d("WAWebViewBusinessProfileWamEvent").ViewBusinessProfileWamEvent)({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_IMPRESSION,catalogSessionId:a,isProfileLinked:c,hasCoverPhoto:e}).commit()}function b(a,b,c,e){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_EXIT,catalogSessionId:a,scrollDepth:b,isProfileLinked:c,hasCoverPhoto:e})}function c(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_MESSAGE,catalogSessionId:a,hasCoverPhoto:c})}function e(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_SHOPS_ICON,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function f(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_CATALOG_ICON,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function i(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_FORWARD,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function j(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_EMAIL,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function k(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_WEBSITE,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function l(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_LOCATION,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function m(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_HOURS,catalogSessionId:a,isProfileLinked:b,hasCoverPhoto:c})}function n(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_APP_LINK,linkedAccount:d("WAWebWamEnumBusinessToolsLinkedAccountType").BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE.FACEBOOK,catalogSessionId:a,bizFbSize:q(b),isProfileLinked:!0,hasCoverPhoto:c})}function o(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_CLICK_APP_LINK,linkedAccount:d("WAWebWamEnumBusinessToolsLinkedAccountType").BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE.INSTAGRAM,catalogSessionId:a,bizIgSize:q(b),isProfileLinked:!0,hasCoverPhoto:c})}function p(a,b,c){h({viewBusinessProfileAction:d("WAWebWamEnumViewBusinessProfileAction").VIEW_BUSINESS_PROFILE_ACTION.ACTION_APP_IMPRESSION,linkedAccount:b,catalogSessionId:a,isProfileLinked:!0,hasCoverPhoto:c})}function q(a){if(a==null)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B0;if(a>1e6)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B1M;if(a>=1e5)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B100K;if(a>=1e4)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B10K;if(a>=1e3)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B1K;if(a>=501)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B501;if(a>=101)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B101;if(a>=51)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B51;if(a>=11)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B11;if(a>=2)return d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B2;return a===1?d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B1:d("WAWebWamEnumTrustSignalBuckets").TRUST_SIGNAL_BUCKETS.B0}g.logProfileImpression=a;g.logProfileExit=b;g.logMessageClick=c;g.logShopsClick=e;g.logCatalogClick=f;g.logForwardClick=i;g.logEmailClick=j;g.logWebsiteClick=k;g.logLocationClick=l;g.logHoursClick=m;g.logLinkedFbClick=n;g.logLinkedIgClick=o;g.logLinkedAccountImpression=p}),98); __d("WAWebContactInfoLinkedAccountRow.react",["WAWebBusinessLogEvents","WAWebCellFrame.react","WAWebDrawerContext","WAWebExternalLink.react","WAWebProductCatalogContext","WAWebSmbUtils","WAWebUnstyledButton.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.useContext,l=b.useEffect,m={button:{width:"xh8yej3",$$css:!0}};function a(a){var b=a.text,e=a.secondary,f=a.Icon,g=a.href,h=a.linkedAccountType,i=a.onClick,n=a.rowTheme,o=a.hasCoverPhoto;a=k(d("WAWebDrawerContext").DrawerContext);var p=d("WAWebProductCatalogContext").getProductCatalogSessionId(a);l(function(){d("WAWebBusinessLogEvents").logLinkedAccountImpression(p,h,o)},[p,h,o]);a=function(a){if(g!==void 0){a=d("WAWebSmbUtils").getWebsiteLink(g);d("WAWebExternalLink.react").openExternalLink(a);i==null?void 0:i()}};return j.jsx(c("WAWebUnstyledButton.react"),{testid:void 0,onClick:a,disabled:g===void 0,xstyle:m.button,children:j.jsx(c("WAWebCellFrame.react"),{image:f,primary:b,secondary:e,theme:n,idle:g===void 0})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebLogoInstagramColorIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="logo-instagram-color";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=22;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 22",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:"M17.9287 0H8.07107C4.72349 0 2 2.72362 2 6.07121V15.9288C2 19.2765 4.72349 22 8.07107 22H17.9287C21.2765 22 24 19.2764 24 15.9288V6.07121C24.0001 2.72362 21.2765 0 17.9287 0ZM22.0482 15.9288C22.0482 18.2002 20.2002 20.0481 17.9288 20.0481H8.07107C5.79979 20.0482 3.95195 18.2002 3.95195 15.9288V6.07121C3.95195 3.79992 5.79979 1.95195 8.07107 1.95195H17.9287C20.2001 1.95195 22.0481 3.79992 22.0481 6.07121V15.9288H22.0482Z",fill:"url(#paint0_linear)"}),j.jsx("path",{d:"M12.9998 5.06152C9.72513 5.06152 7.06104 7.72561 7.06104 11.0003C7.06104 14.2749 9.72513 16.9388 12.9998 16.9388C16.2745 16.9388 18.9386 14.2749 18.9386 11.0003C18.9386 7.72561 16.2745 5.06152 12.9998 5.06152ZM12.9998 14.8938C10.8528 14.8938 9.10593 13.1472 9.10593 11.0002C9.10593 8.85303 10.8527 7.10628 12.9998 7.10628C15.147 7.10628 16.8937 8.85303 16.8937 11.0002C16.8937 13.1472 15.1468 14.8938 12.9998 14.8938Z",fill:"url(#paint1_linear)"}),j.jsx("path",{d:"M19.1871 3.32764C18.7931 3.32764 18.4061 3.48714 18.1278 3.76661C17.8482 4.04471 17.6875 4.43188 17.6875 4.82723C17.6875 5.22135 17.8484 5.60838 18.1278 5.88785C18.4059 6.16595 18.7931 6.32682 19.1871 6.32682C19.5824 6.32682 19.9682 6.16595 20.2477 5.88785C20.5272 5.60838 20.6867 5.22121 20.6867 4.82723C20.6867 4.43188 20.5272 4.04471 20.2477 3.76661C19.9696 3.48714 19.5824 3.32764 19.1871 3.32764Z",fill:"url(#paint2_linear)"}),j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"paint0_linear",x1:24,y1:0,x2:2,y2:22,gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#B630A1"}),j.jsx("stop",{offset:.494792,stopColor:"#DB2F76"}),j.jsx("stop",{offset:1,stopColor:"#FBB15B"})]}),j.jsxs("linearGradient",{id:"paint1_linear",x1:21.9999,y1:1.5,x2:3.99988,y2:19.5,gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#DA2E7A"}),j.jsx("stop",{offset:1,stopColor:"#F06846"})]}),j.jsxs("linearGradient",{id:"paint2_linear",x1:20.9998,y1:3,x2:17.4998,y2:6.5,gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#BE3099"}),j.jsx("stop",{offset:1,stopColor:"#E1406B"})]})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.LogoInstagramColorIcon=a}),98); __d("WAWebContactInfoLinkedSocialAccounts.react",["fbt","WAWebBusinessLogEvents","WAWebContactInfoLinkedAccountRow.react","WAWebDrawerContext","WAWebDrawerSection.react","WAWebEmojiText.react","WAWebLogoFacebookRoundIcon.react","WAWebLogoInstagramColorIcon.react","WAWebProductCatalogContext","WAWebWamEnumBusinessToolsLinkedAccountType","isStringNullOrEmpty","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useContext,m={infoText:{fontSize:"x1pg5gke",lineHeight:"x37zpob",color:"x1grh1yo",paddingStart:"x1krjtdw",paddingEnd:"xbxaen2",display:"x1lliihq",paddingBottom:"x1g2khh7",paddingTop:"xz9dl7a",marginTop:"xdj266r",$$css:!0},iconColor:{color:"xb92f9i",$$css:!0}};function a(a){var b=a.showEditHint,e=a.businessProfile,f=a.sectionTheme;f=f===void 0?"no-padding":f;a=a.rowTheme;a=a===void 0?"linked-account":a;var g=d("useWAWebModelValues").useModelValues(e,["fbPage","igProfessional"]),i=g.fbPage,j=g.igProfessional,n=d("WAWebProductCatalogContext").getProductCatalogSessionId(l(d("WAWebDrawerContext").DrawerContext));g=[];if(i&&!c("isStringNullOrEmpty")(i.displayName)&&!c("isStringNullOrEmpty")(i.id)){var o=i.likes!=null?h._(/*BTDS*/"__JHASH__0g3pwMvQ4hy__JHASH__",[h._plural(i.likes,"count")]):h._(/*BTDS*/"__JHASH__IN-9QSFagBw__JHASH__"),p=function(){d("WAWebBusinessLogEvents").logLinkedFbClick(n,i.likes,!!e.coverPhoto)};g.push(k.jsx(c("WAWebContactInfoLinkedAccountRow.react"),{Icon:k.jsx(d("WAWebLogoFacebookRoundIcon.react").LogoFacebookRoundIcon,{iconXstyle:m.iconColor}),text:i.displayName,secondary:o,href:"https://www.facebook.com/"+i.id,rowTheme:a,onClick:p,linkedAccountType:d("WAWebWamEnumBusinessToolsLinkedAccountType").BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE.FACEBOOK,hasCoverPhoto:!!e.coverPhoto},"fb"))}if(j&&!c("isStringNullOrEmpty")(j.handle)){o=j.followers!=null?h._(/*BTDS*/"__JHASH__BfVt5xqbaPZ__JHASH__",[h._plural(j.followers,"count")]):h._(/*BTDS*/"__JHASH__TMtWHbF8AMV__JHASH__");p=function(){d("WAWebBusinessLogEvents").logLinkedIgClick(n,j.followers,!!e.coverPhoto)};g.push(k.jsx(c("WAWebContactInfoLinkedAccountRow.react"),{Icon:k.jsx(d("WAWebLogoInstagramColorIcon.react").LogoInstagramColorIcon,{}),text:"@"+j.handle,secondary:o,href:"https://www.instagram.com/"+j.handle,rowTheme:a,onClick:p,linkedAccountType:d("WAWebWamEnumBusinessToolsLinkedAccountType").BUSINESS_TOOLS_LINKED_ACCOUNT_TYPE.INSTAGRAM,hasCoverPhoto:!!e.coverPhoto},"ig"))}if(g.length===0)return null;var q;if(b===!0){o=h._(/*BTDS*/"__JHASH__8bp2Zw0aaaw__JHASH__");q=k.jsx(d("WAWebEmojiText.react").EmojiText,{direction:"inherit",xstyle:m.infoText,text:o.toString()})}return k.jsxs(c("WAWebDrawerSection.react"),{theme:f,animation:!1,children:[g.map(function(a){return a}),q]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCreatePinDrawer.react",["fbt","WAWebSetPinDrawer.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.onBack,d=a.ref;a=a.username;var e=h._(/*BTDS*/"__JHASH__DNSzBYhf1eP__JHASH__");return j.jsx(c("WAWebSetPinDrawer.react"),{ref:d,headerText:e,onBack:b,username:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebEditUsernameDrawer.react",["fbt","WAWebDrawerManager","WAWebSetUsernameDrawer.react","WAWebUsernameManagementDrawer.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.contactUsername;a=a.ref;var e=h._(/*BTDS*/"__JHASH__hSbPgWcbmTj__JHASH__"),f=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:b}))};return j.jsx(c("WAWebSetUsernameDrawer.react"),{contactUsername:b,ref:a,onBack:f,headerText:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebEditUsernamePinDrawer.react",["fbt","WAWebDrawerManager","WAWebSetPinDrawer.react","WAWebUsernamePinManagementDrawer","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.pin,e=a.ref,f=a.username;a=h._(/*BTDS*/"__JHASH__944LCPQr9YH__JHASH__");var g=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebUsernamePinManagementDrawer"),{username:f}))};return j.jsx(c("WAWebSetPinDrawer.react"),{username:f,pin:(b=b)!=null?b:void 0,ref:e,headerText:a,onBack:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSetUsernamePinAction",["WAWebSetUsernamePinQueryJob","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){a=(yield d("WAWebSetUsernamePinQueryJob").setUsernamePinQueryJob(a));return a});return h.apply(this,arguments)}g.setMyUsernamePin=a}),98); __d("WAWebUsernameStringUtils",["fbt"],(function(a,b,c,d,e,f,g,h){d=/^[A-Za-z0-9_]+$/;e=/[0-9]+$/;function a(){return h._(/*BTDS*/"__JHASH__JYPHBBaKDou__JHASH__")}function b(){return h._(/*BTDS*/"__JHASH__GS3yAktbX0R__JHASH__")}function c(){return h._(/*BTDS*/"__JHASH__b5hUN_XHdBG__JHASH__")}g.USERNAME_AVAILABILITY_REGEX=d;g.USERNAME_PIN_REGEX=e;g.getUsernameInvalidCharAvailabilityMessage=a;g.getUsernameAvailableMessage=b;g.getUsernameUnavailableMessage=c}),226); __d("WAWebSetPinDrawer.react",["fbt","WAWebButton.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebFbtCommon","WAWebFlex.react","WAWebRichTextField.react","WAWebSetUsernamePinAction","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUsernamePinManagementDrawer","WAWebUsernameStringUtils","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var e=a.headerText,f=a.onBack,g=a.pin,i=a.ref,j=a.username;a=l(g);var m=a[0],n=a[1];a=l(!1);var o=a[0],p=a[1],q=function(a){n(a),void r(a)},r=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a.length<3||a.length>6||!d("WAWebUsernameStringUtils").USERNAME_PIN_REGEX.test(a)?p(!1):p(!0)});return function(b){return a.apply(this,arguments)}}();a=function a(){d("WAWebSetUsernamePinAction").setMyUsernamePin(m).then(function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebUsernamePinManagementDrawer"),{username:j}))})["catch"](function(){d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__qxCemVd2Ddo__JHASH__"),action:{actionText:c("WAWebFbtCommon")("Try again"),onAction:function(){a()}}}))})};var s=h._(/*BTDS*/"__JHASH__pn6Ip7rdbPN__JHASH__"),t=k.jsxs(d("WAWebFlex.react").FlexItem,{xstyle:d("WAWebUISpacing").uiMargin.start12,grow:1,shrink:1,children:[k.jsx(d("WAWebText.react").WAWebTextSmall,{color:"teal",children:h._(/*BTDS*/"__JHASH__b_KzDKUT3jw__JHASH__")}),k.jsx(d("WAWebRichTextField.react").RichTextField,{testid:void 0,onChange:function(a){a=a.text;q(a)},theme:"text-input",focusOnMount:!0,value:m,spellCheck:!1,maxLength:6,showValidateIcon:!0,showErrorIcon:o===!1&&m!=null&&(m==null?void 0:m.length)>0})]});return k.jsxs(c("WAWebDrawer.react"),{ref:i,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:e,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:f}),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:[k.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:d("WAWebUISpacing").uiPadding.all30,textAlign:"center",children:s}),k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiPadding.horiz24,children:t})]}),k.jsx(c("WAWebDrawerSection.react"),{animation:!1,children:k.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all32,children:k.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:a,stretch:!0,disabled:m==null||(m==null?void 0:m.length)===0||o!==!0||m===g,children:h._(/*BTDS*/"__JHASH__mdpOXMni1Wf__JHASH__")})})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMexUsernameAvailabilityQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"username",variableName:"input"}],concreteType:"XWA2UsernameCheckResponse",kind:"LinkedField",name:"xwa2_username_check",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"result",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"suggestions",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebMexUsernameAvailabilityQuery",selections:b,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebMexUsernameAvailabilityQuery",selections:b},params:{id:"7829893193771424",metadata:{},name:"WAWebMexUsernameAvailabilityQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("WAWebMexUsernameAvailability",["WALogger","WAWebMexClient","WAWebMexUsernameAvailabilityQuery.graphql","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][USERNAME] Successfully checked username availability via mex"]);i=function(){return a};return a}function a(a){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c,e=h!==void 0?h:h=b("WAWebMexUsernameAvailabilityQuery.graphql");a={input:a};e=(yield d("WAWebMexClient").fetchQuery(e,a));d("WALogger").DEV(i()).tags("GQL","MEX").devConsole({response:e});a=[];if(((c=e.xwa2_username_check)==null?void 0:c.suggestions)!=null){a.push.apply(a,(c=e.xwa2_username_check)==null?void 0:c.suggestions)}return{isUsernameAvailable:((c=e.xwa2_username_check)==null?void 0:c.result)==="SUCCESS",suggestedUsernames:a}});return j.apply(this,arguments)}g.mexCheckUsernameAvailabilityQueryJob=a}),98); __d("WAWebCheckUsernameAvailabilityJob",["WAWebMexUsernameAvailability","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){a=(yield d("WAWebMexUsernameAvailability").mexCheckUsernameAvailabilityQueryJob(a));var b=a.isUsernameAvailable;a=a.suggestedUsernames;return{isUsernameAvailable:b,suggestedUsernames:a}});return h.apply(this,arguments)}g.getUsernameAvailability=a}),98); __d("WAWebSetContactUsernameAction",["WAWebContactCollection","WAWebSetUsernameJob","asyncToGeneratorRuntime","err"],(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=d("WAWebContactCollection").ContactCollection.getMeContact();if(b==null)throw c("err")("Failed to retrieve self contact");b=(yield d("WAWebSetUsernameJob").setUsernameQueryJob(a));return b});return h.apply(this,arguments)}g.setMyUsername=a}),98); __d("WAWebUsernameCreationSuccessModal.react",["fbt","WAWebButton.react","WAWebContactCollection","WAWebContactGetters","WAWebDetailImage.react","WAWebFbtCommon","WAWebFlex.react","WAWebFlexBox.react","WAWebModal.react","WAWebModalManager","WAWebUISpacing","nullthrows","react","useWAWebContactValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={container:{display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",$$css:!0}};function l(a){a=a.text;return j.jsxs(d("WAWebFlexBox.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.bottom24,children:[j.jsx(d("WAWebFlex.react").FlexColumn,{children:j.jsx("li",{})}),j.jsx(d("WAWebFlex.react").FlexColumn,{children:a})]})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b;a=a.username;var e=c("nullthrows")(d("WAWebContactCollection").ContactCollection.getMeContact());e=d("useWAWebContactValues").useContactValues(e.id,[d("WAWebContactGetters").getId]);e=e[0];var f=h._(/*BTDS*/"__JHASH__j6l69mfbIUc__JHASH__"),g=h._(/*BTDS*/"__JHASH__F3KqM7HZTrZ__JHASH__");a=h._(/*BTDS*/"__JHASH__KBbOeFkLfky__JHASH__",[h._param("username",a)]);return j.jsxs(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Promote,children:[j.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:[k.container,(b=d("WAWebUISpacing")).uiMargin.start13,b.uiMargin.end13],children:[j.jsx(d("WAWebFlexBox.react").FlexRow,{xstyle:[b.uiPadding.top20,b.uiMargin.bottom28],children:j.jsx(d("WAWebDetailImage.react").DetailImage,{id:e,size:65})}),j.jsx(d("WAWebFlexBox.react").FlexRow,{xstyle:[b.uiMargin.bottom24,k.container],children:j.jsx("div",babelHelpers["extends"]({className:"x1603h9y x1u7k74 xo1l8bm"},{children:a}))}),j.jsx(l,{text:f}),j.jsx(l,{text:g})]}),j.jsx(d("WAWebFlexBox.react").FlexRow,{xstyle:b.uiPadding.top48,justify:"center",children:j.jsx(d("WAWebButton.react").WAWebButtonPrimary,{stretch:!0,onClick:function(){return d("WAWebModalManager").ModalManager.close()},children:c("WAWebFbtCommon")("Continue")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSetUsernameDrawer.react",["fbt","WAWebButton.react","WAWebCheckUsernameAvailabilityJob","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebFbtCommon","WAWebFlex.react","WAWebMentionsRefreshedIcon.react","WAWebModalManager","WAWebRichTextField.react","WAWebSetContactUsernameAction","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUsernameCreationSuccessModal.react","WAWebUsernameManagementDrawer.react","WAWebUsernameStringUtils","asyncToGeneratorRuntime","react","useLazyRef"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={iconSection:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",justifyContent:"x1nhvcw1",alignItems:"x6s0dn4",color:"x16cd2qt",$$css:!0}};function a(a){var e=a.contactUsername,f=a.headerText,g=a.onBack,i=a.ref;a=l(e);var j=a[0],n=a[1];a=l(null);var o=a[0],p=a[1];a=l(!1);var q=a[0],r=a[1];a=l(!1);var s=a[0],t=a[1],u=c("useLazyRef")(function(){return new AbortController()}),v=function(a){var b=a.isAvailable;a=a.isPending;b!=null&&r(b);a!=null&&t(a)},w=function(a){n(a);if(a===e){p(null);v({isAvailable:!1,isPending:!1});return}u.current.abort();u.current=new AbortController();t(!0);p(null);var b=u.current.signal;window.setTimeout(function(){return void x(a,b)},750)},x=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(a.length===0){v({isAvailable:!1,isPending:!1});return}if(!d("WAWebUsernameStringUtils").USERNAME_AVAILABILITY_REGEX.test(a)){v({isAvailable:!1,isPending:!1});p(d("WAWebUsernameStringUtils").getUsernameInvalidCharAvailabilityMessage());return}if(b.aborted)return;try{b=(yield d("WAWebCheckUsernameAvailabilityJob").getUsernameAvailability(a));a=b.isUsernameAvailable;v({isAvailable:a});a||p(d("WAWebUsernameStringUtils").getUsernameUnavailableMessage())}catch(a){v({isAvailable:!1}),p(d("WAWebUsernameStringUtils").getUsernameUnavailableMessage())}v({isPending:!1})});return function(b,c){return a.apply(this,arguments)}}(),y=function(){d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__kTvJt-LZhpG__JHASH__"),action:{actionText:c("WAWebFbtCommon")("Try again"),onAction:function(){void z()}}}))},z=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebSetContactUsernameAction").setMyUsername(j).then(function(a){a&&(t(!1),j!=null&&(d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:j,ref:i})),e==null&&d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebUsernameCreationSuccessModal.react"),{username:j}))))})["catch"](function(){y()})});return function(){return a.apply(this,arguments)}}();a=h._(/*BTDS*/"__JHASH__FQdJVo3MDSe__JHASH__");o=k.jsxs(d("WAWebFlex.react").FlexItem,{xstyle:d("WAWebUISpacing").uiMargin.start12,grow:1,shrink:1,children:[k.jsx(d("WAWebText.react").WAWebTextSmall,{color:o==null?"teal":"critical",children:h._(/*BTDS*/"__JHASH__7uc0dME1Utu__JHASH__")}),k.jsx(d("WAWebRichTextField.react").RichTextField,{pending:s,testid:void 0,onChange:function(a){a=a.text;w(a)},theme:"text-input",focusOnMount:!0,value:j,maxLength:30,showRemaining:!0,charLimit:4,spellCheck:!1,error:o!=null&&s===!1?o:null,showValidateIcon:j!==e,showSuccessIcon:j!=null&&(j==null?void 0:j.length)>0,contextMsg:q===!0&&s===!1&&j!==e?d("WAWebUsernameStringUtils").getUsernameAvailableMessage():null})]});return k.jsxs(c("WAWebDrawer.react"),{ref:i,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:g}),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:[k.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:d("WAWebUISpacing").uiPadding.all30,textAlign:"center",children:a}),k.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiPadding.horiz24,children:[k.jsx(d("WAWebFlex.react").FlexItem,{xstyle:m.iconSection,children:k.jsx(d("WAWebMentionsRefreshedIcon.react").MentionsRefreshedIcon,{width:26,height:26,xstyle:d("WAWebUISpacing").uiMargin.top28})}),o]})]}),k.jsx(c("WAWebDrawerSection.react"),{animation:!1,children:k.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all32,children:k.jsx(d("WAWebButton.react").WAWebButtonPrimary,{stretch:!0,onClick:z,disabled:j==null||(j==null?void 0:j.length)===0||q!==!0||j===e,children:h._(/*BTDS*/"__JHASH__lexTPyPviYZ__JHASH__")})})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebDrawerItem.react",["WAWebCopyPasteSelectable.react","WAWebKeyboardIsKeyActivation","WAWebL10N","WAWebUseIsKeyboardUser","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.children,e=a.disableKeydownHandling,f=a.icon,g=a.isLastItem,h=a.onClick,j=a.tabIndex;j=j===void 0?0:j;var k=a.testid;k=a.theme;k=k===void 0?"default":k;a=a.title;g={0:"xso031l x1q0q8m5 xcsjwe9 x1g2khh7 xdpxx8g",4:"xso031l x1q0q8m5 xcsjwe9 x1g2khh7 x1hr2gdg",2:"xso031l x1q0q8m5 xcsjwe9 x1g2khh7 xdpxx8g x6s0dn4 x78zum5",6:"xso031l x1q0q8m5 xcsjwe9 x1g2khh7 x1hr2gdg x6s0dn4 x78zum5",1:"xso031l xcsjwe9 x1g2khh7 xdpxx8g x1sy0etr",5:"xso031l xcsjwe9 x1g2khh7 x1hr2gdg x1sy0etr",3:"xso031l xcsjwe9 x1g2khh7 xdpxx8g x6s0dn4 x78zum5 x1sy0etr",7:"xso031l xcsjwe9 x1g2khh7 x1hr2gdg x6s0dn4 x78zum5 x1sy0etr"}[!!c("WAWebL10N").isRTL()<<2|!!(f!=null)<<1|!!(g===!0)<<0];var l={0:"",1:"x98rzlu"}[!!(f!=null)<<0],m={0:"",1:"xfect85 x1okw0bk"}[!!(f!=null)<<0],n=c("WAWebUseIsKeyboardUser")();n=n.isKeyboardUser;return i.jsx("div",babelHelpers["extends"]({tabIndex:h?j:null},{0:{className:"x1fc57z9 xisnujt xyinxu5"},1:{className:"x1fc57z9 xisnujt xyinxu5 x1qpivmo"}}[!!n<<0],{onClick:h,role:h?"button":"",onKeyDown:function(a){e!==!0&&c("WAWebKeyboardIsKeyActivation")(a)&&h&&h()},"data-testid":void 0,children:i.jsxs("div",{className:g,children:[i.jsxs("div",{className:l,dir:"auto",children:[i.jsx(d("WAWebCopyPasteSelectable.react").SelectableDiv,{className:"xzwifym x6prxxf",selectable:!0,children:a}),i.jsx("div",babelHelpers["extends"]({},{0:{className:"x1n68mz9 x1f6kntn xd4r4e8"},1:{className:"x1f6kntn xd4r4e8 x16zc8z2"}}[!!(k==="privacy")<<0],{children:b}))]}),i.jsx("div",{className:m,children:f})]})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebShareUsernameDrawer.react",["fbt","WAWebCheckBox.react","WAWebCopyToClipboard","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebFlex.react","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUsernameManagementDrawer.react","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={drawerItem:{width:"xh8yej3",$$css:!0},usernameLinkContainer:{backgroundColor:"x9zjzsg",borderTopStartRadius:"x1rcc7c0",borderTopEndRadius:"xbtbmw4",borderBottomEndRadius:"x1lie4ck",borderBottomStartRadius:"x16hxpj1",height:"xt1ryeb",$$css:!0}};function a(a){var b=a.ref,e=a.username,f=a.usernamePin;a=l(f!=null);var g=a[0],i=a[1];a=f!=null&&g?"#"+f:null;a="wa.me/"+e+((a=a)!=null?a:"");a=l(a);var j=a[0],n=a[1];a=h._(/*BTDS*/"__JHASH__OSdesSJi4CS__JHASH__");var o=h._(/*BTDS*/"__JHASH__ILQoCw41jeB__JHASH__"),p=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:e}))},q=function(){var a=!g;i(a);a=a&&f!=null?"#"+f:null;n("wa.me/"+e+((a=a)!=null?a:""))},r=function(){var a=d("WAWebCopyToClipboard").copyTextToClipboard(j);a&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__9uFYiJRLH_9__JHASH__")}))};return k.jsxs(c("WAWebDrawer.react"),{ref:b,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:a,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:p}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:[k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:[d("WAWebUISpacing").uiMargin.start30,d("WAWebUISpacing").uiMargin.end30,d("WAWebUISpacing").uiMargin.top20],children:k.jsx(d("WAWebFlex.react").FlexItem,{xstyle:m.drawerItem,children:f!=null?k.jsx(c("WAWebDrawerItem.react"),{icon:k.jsx(d("WAWebCheckBox.react").CheckBox,{checked:g,onChange:q}),theme:"privacy",isLastItem:!0,children:k.jsx("div",babelHelpers["extends"]({className:"x1jchvi3 x1wryslj x1iikomf"},{children:o}))}):null})}),k.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:[d("WAWebUISpacing").uiMargin.start30,d("WAWebUISpacing").uiMargin.end30,d("WAWebUISpacing").uiMargin.top5,m.usernameLinkContainer],children:k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",children:[k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.top20,children:k.jsx(d("WAWebText.react").WAWebTextTitle,{children:j})}),k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.top15,children:k.jsx(d("WAWebText.react").WDSClickableText,{color:"green",onClick:r,"aria-label":h._(/*BTDS*/"__JHASH__kz3SBTmL_ku__JHASH__"),children:h._(/*BTDS*/"__JHASH__ttIEKhkGAhz__JHASH__")})})]})})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g.ShareUsernameDrawer=a}),226); __d("WAWebUsernameConversationControlDrawer",["fbt","WAWebCheckBoxRound.react","WAWebContactCollection","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebFlex.react","WAWebFrontendContactGetters","WAWebText.react","WAWebUISpacing","WAWebUnstyledButton.react","WAWebUsernameManagementDrawer.react","nullthrows","react","useWAWebContactValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={conversationOption:{display:"x1lliihq",paddingTop:"x109j2v6",paddingEnd:"x4uap5",paddingBottom:"x1hhzuzn",paddingStart:"xkhd6sd",$$css:!0}};function n(a){var b,e=a.mainText,f=a.onClick,g=a.selected,h=a.subText;a=a.tabIndex;return k.jsx((b=d("WAWebFlex.react")).FlexRow,{children:k.jsx(c("WAWebUnstyledButton.react"),{onClick:f,tabIndex:a,xstyle:m.conversationOption,children:k.jsxs(b.FlexRow,{children:[k.jsx(b.FlexItem,{align:"center",children:k.jsx(c("WAWebCheckBoxRound.react"),{checked:g,radio:!0,hover:!1,systemUncheckedColor:!0,onChange:f,ariaLabel:e})}),k.jsxs(b.FlexColumn,{xstyle:d("WAWebUISpacing").uiPadding.start20,children:[k.jsx(b.FlexItem,{children:k.jsx("span",babelHelpers["extends"]({className:"x1jchvi3 xdod15v x1rg5ohu xzwifym"},{children:e}))}),k.jsx(b.FlexItem,{children:k.jsx("span",babelHelpers["extends"]({className:"x1f6kntn xdod15v x40yjcy"},{children:h}))})]})]})})})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.conversationControlSetting,e=a.onClick,f=a.username;a=c("nullthrows")(d("WAWebContactCollection").ContactCollection.getMeContact());a=d("useWAWebContactValues").useContactValues(a==null?void 0:a.id,[d("WAWebFrontendContactGetters").getFormattedPhone]);a=a[0];b=l(b);var g=b[0],i=b[1];b=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:f}))};var j=function(a){e(a)},m=h._(/*BTDS*/"__JHASH__TI0RHq3dE7x__JHASH__"),o=h._(/*BTDS*/"__JHASH__KAoMLv5n6jb__JHASH__"),p=h._(/*BTDS*/"__JHASH__43Qzvyye3G3__JHASH__"),q=h._(/*BTDS*/"__JHASH__Ea_yyNUbN2O__JHASH__");return k.jsxs(c("WAWebDrawer.react"),{children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:m,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:b}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:[k.jsx(d("WAWebText.react").WAWebTextTitle,{color:"teal",xstyle:[d("WAWebUISpacing").uiPadding.start30,d("WAWebUISpacing").uiPadding.top30],children:o}),k.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:[d("WAWebUISpacing").uiMargin.start30,d("WAWebUISpacing").uiMargin.top20],children:[k.jsx(n,{tabIndex:-1,mainText:p,selected:g===d("WAWebUsernameManagementDrawer.react").ConversationControlSettingType.USERNAME,subText:"@"+f,onClick:function(){i(d("WAWebUsernameManagementDrawer.react").ConversationControlSettingType.USERNAME),j(d("WAWebUsernameManagementDrawer.react").ConversationControlSettingType.USERNAME)}}),k.jsx(n,{tabIndex:0,mainText:q,subText:a,selected:g===d("WAWebUsernameManagementDrawer.react").ConversationControlSettingType.PN,onClick:function(){i(d("WAWebUsernameManagementDrawer.react").ConversationControlSettingType.PN),j(d("WAWebUsernameManagementDrawer.react").ConversationControlSettingType.PN)}})]})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUsernameDeleteModal.react",["fbt","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebSetContactUsernameAction","WAWebUISpacing","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var e=a.onDeleteUsername;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebSetContactUsernameAction").setMyUsername().then(function(a){a&&(e&&e(),d("WAWebModalManager").ModalManager.close())})["catch"](function(){d("WAWebModalManager").ModalManager.close()})});return function(){return a.apply(this,arguments)}}();var f=function(){d("WAWebModalManager").ModalManager.close()},g=j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getFaqUrl(),children:c("WAWebFbtCommon")("Learn more")}),i=h._(/*BTDS*/"__JHASH__g9n_6cAGK4Q__JHASH__");g=h._(/*BTDS*/"__JHASH__2XfS_xBLpXA__JHASH__",[h._param("link to learn more",g)]);return j.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,title:h._(/*BTDS*/"__JHASH__jEWIW-FlnQs__JHASH__"),okButtonType:"solid-warning",onOK:a,okText:h._(/*BTDS*/"__JHASH__CQP2jy0RmR___JHASH__"),onCancel:f,children:[j.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.bottom20,children:i}),g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUsernameEditDropdown.react",["fbt","$InternalEnum","WAWebDrawerManager","WAWebDropdown.react","WAWebDropdownItem.react","WAWebEditUsernameDrawer.react","WAWebFlex.react","WAWebModalManager","WAWebText.react","WAWebUISpacing","WAWebUsernameDeleteModal.react","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l=b("$InternalEnum")({CHANGE:"change",DELETE:"delete"}),m={option:{boxSizing:"x9f619",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",color:"xzwifym",cursor:"x1ypdohk",whiteSpace:"xuxw1ft",$$css:!0}};function n(a){var b=a.dropdownItem,e=a.label,f=a.onBack,g=a.optionId,h=a.username;return k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){b===l.CHANGE?d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebEditUsernameDrawer.react"),{contactUsername:h})):d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebUsernameDeleteModal.react"),{onDeleteUsername:f}))},children:k.jsx(d("WAWebFlex.react").FlexRow,{className:(j||(j=c("stylex")))([d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.end32,d("WAWebUISpacing").uiPadding.start24,m.option]),children:k.jsx(d("WAWebText.react").WAWebTextSmall,{color:b===l.DELETE?"critical":"primary",xstyle:d("WAWebUISpacing").uiMargin.start8,children:e})})},g)}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.onBack,c=a.ref,e=a.username;a=babelHelpers.objectWithoutPropertiesLoose(a,["onBack","ref","username"]);var f=a.type,g=a.dirX;a=a.dirY;return k.jsxs(d("WAWebDropdown.react").Dropdown,{ref:c,type:f,flipOnRTL:!0,dirY:a,dirX:g,children:[k.jsx(n,{onBack:b,username:e,optionId:"option_change_username",dropdownItem:l.CHANGE,label:h._(/*BTDS*/"__JHASH__QlfhF93bhJV__JHASH__")}),k.jsx(n,{onBack:b,username:e,dropdownItem:l.DELETE,optionId:"option_delete_username",label:h._(/*BTDS*/"__JHASH__7m4qkyk5mdr__JHASH__")})]},"UsernameEditDropdown")}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUsernameManagementDrawer.react",["fbt","$InternalEnum","WAWebChevronIcon.react","WAWebConnModel","WAWebContactCollection","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebDropdown.react","WAWebFlex.react","WAWebFrontendContactGetters","WAWebLinkIcon.react","WAWebMenuBar.react","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebShareUsernameDrawer.react","WAWebStatusMentionsSenderNuxIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebTextStatusCollection","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUseIsKeyboardUser","WAWebUserPrefsMeUser","WAWebUsernameConversationControlDrawer","WAWebUsernameEditDropdown.react","WAWebUsernamePinInfoDrawer.react","WAWebUsernamePinManagementDrawer","WAWebVelocityTransitionGroup","react","useWAWebContactValues"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useRef,m=e.useState,n=b("$InternalEnum")({USERNAME:"username",PN:"pn"}),o={badge:{marginTop:"xotjm27",$$css:!0},editText:{fontSize:"x1f6kntn",$$css:!0}};function p(a){var b=a.isLastItem,e=a.onClick,f=a.subtitleText;a=a.titleText;return k.jsx(c("WAWebDrawerItem.react"),{title:a,theme:"privacy",isLastItem:b,onClick:e,icon:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:21}),children:k.jsx(d("WAWebText.react").WAWebTextSmall,{color:"secondary",children:f})})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.username,e=a.usernamePin;a=m(n.USERNAME);var f=a[0],g=a[1];a=h._(/*BTDS*/"__JHASH__14cLdxST4BN__JHASH__");var i=h._(/*BTDS*/"__JHASH__f-ph7dhEQq8__JHASH__"),j=e!=null?h._(/*BTDS*/"__JHASH__3UBOZaPmXSP__JHASH__",[h._param("pin",e)]):h._(/*BTDS*/"__JHASH___KTjxQAaSwF__JHASH__"),l=function(a){g(a)};return k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",shadow:!1,animation:!1,xstyle:d("WAWebUISpacing").uiMargin.top20,children:[k.jsx(p,{onClick:function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebUsernameConversationControlDrawer"),{username:b,conversationControlSetting:f,onClick:l}))},isLastItem:!1,subtitleText:h._(/*BTDS*/"__JHASH__ngk-qgAz3G6__JHASH__"),titleText:a}),k.jsx(p,{isLastItem:!0,onClick:function(){e!=null?d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebUsernamePinManagementDrawer"),{username:b})):d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(c("WAWebUsernamePinInfoDrawer.react"),{username:b}))},subtitleText:j,titleText:i})]})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.onBack,e=a.ref,f=a.username;a=m(null);var g=a[0],i=a[1];a=d("WAWebContactCollection").ContactCollection.assertGet(d("WAWebUserPrefsMeUser").getMeUser());a=d("useWAWebContactValues").useContactValues(a.id,[d("WAWebFrontendContactGetters").getUsernamePin]);var j=a[0];a=c("WAWebUseIsKeyboardUser")();var n=a.isKeyboardUser,p=l(null);a=h._(/*BTDS*/"__JHASH__kp3JHlVlFXp__JHASH__");var r=function(){var a=d("WAWebUserPrefsMeUser").getMeUser(),b=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(a),c=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(a);a=d("WAWebContactCollection").ContactCollection.assertGet(a);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:b,profilePicThumb:c,contact:a,conn:d("WAWebConnModel").Conn,isInitialStep:!0}))},s=function(){var a;i({DirX:(a=d("WAWebDropdown.react")).DirX.CENTER,DirY:a.DirY.BOTTOM,menu:k.jsx(c("WAWebUsernameEditDropdown.react"),{onBack:r,username:f,dirX:a.DirX.RIGHT,type:a.MenuType.Dropdown}),anchor:p.current,autoFocus:n})},t=function(){i(null)};s=k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebText.react").WDSClickableText,{ref:p,onClick:s,color:"green",xstyle:[o.editText,d("WAWebUISpacing").uiMargin.top10],children:h._(/*BTDS*/"__JHASH__7GOsDD_YDRR__JHASH__")}),k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"pop-fast",children:g==null?null:k.jsx(d("WAWebUimUie.react").UIE,{displayName:"ContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:t,children:k.jsx(c("WAWebUimUieMenu.react"),{contextMenu:g})})})]});return k.jsxs(c("WAWebDrawer.react"),{ref:e,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:a,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:(t=b)!=null?t:r,children:k.jsx(d("WAWebMenuBar.react").MenuBarItem,{onClick:function(){return d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebShareUsernameDrawer.react").ShareUsernameDrawer,{username:f,usernamePin:j}))},testid:void 0,icon:k.jsx(d("WAWebLinkIcon.react").LinkIcon,{}),title:h._(/*BTDS*/"__JHASH__KxHm2XMZrPG__JHASH__")})}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:[k.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",children:k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",children:[k.jsx(d("WAWebFlex.react").FlexItem,{xstyle:o.badge,children:k.jsx(d("WAWebStatusMentionsSenderNuxIcon.react").StatusMentionsSenderNuxIcon,{width:87.36,height:87.01})}),k.jsx(d("WAWebText.react").WAWebTextLarge,{textAlign:"center",xstyle:d("WAWebUISpacing").uiMargin.top20,children:f}),k.jsx(d("WAWebFlex.react").FlexItem,{children:s})]})}),k.jsx(q,{username:f,usernamePin:j})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g.ConversationControlSettingType=n;g.UsernameManagementDrawer=a}),226); __d("WAWebUsernamePinDeleteModal.react",["fbt","WAWebConfirmPopup.react","WAWebDrawerManager","WAWebFbtCommon","WAWebModalManager","WAWebSetUsernamePinAction","WAWebToast.react","WAWebToastManager","WAWebUsernameManagementDrawer.react","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var e=a.username,f=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebSetUsernamePinAction").setMyUsernamePin(null).then(function(a){a&&(d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:e})),d("WAWebModalManager").ModalManager.close())})["catch"](function(){d("WAWebModalManager").ModalManager.close(),d("WAWebToastManager").ToastManager.open(j.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__-d8lKkPbTut__JHASH__"),action:{actionText:c("WAWebFbtCommon")("Try again"),onAction:function(){void f()}}}))})});return function(){return a.apply(this,arguments)}}();a=function(){d("WAWebModalManager").ModalManager.close()};return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,title:h._(/*BTDS*/"__JHASH__-xrx0QRWU9S__JHASH__"),okButtonType:"solid-warning",onOK:f,okText:h._(/*BTDS*/"__JHASH__nfdgvME1qgo__JHASH__"),onCancel:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebPinHeroIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="pin-hero";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=37;m=66;(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 66 37",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:"M6.75002 35.4167C5.92363 35.4167 5.23092 35.1371 4.6719 34.5781C4.11287 34.0191 3.83335 33.3264 3.83335 32.5C3.83335 31.6736 4.11287 30.9809 4.6719 30.4219C5.23092 29.8628 5.92363 29.5833 6.75002 29.5833H59.25C60.0764 29.5833 60.7691 29.8628 61.3281 30.4219C61.8872 30.9809 62.1667 31.6736 62.1667 32.5C62.1667 33.3264 61.8872 34.0191 61.3281 34.5781C60.7691 35.1371 60.0764 35.4167 59.25 35.4167H6.75002ZM5.29169 16.6771C4.75696 16.3854 4.41669 15.9479 4.27085 15.3646C4.12502 14.7812 4.19794 14.2222 4.4896 13.6875L5.87502 11.2083H3.10419C2.47224 11.2083 1.94967 11.0017 1.53648 10.5885C1.12328 10.1753 0.916687 9.65278 0.916687 9.02083C0.916687 8.38889 1.12328 7.86632 1.53648 7.45312C1.94967 7.03993 2.47224 6.83333 3.10419 6.83333H5.87502L4.4896 4.5C4.19794 3.96528 4.12502 3.40625 4.27085 2.82292C4.41669 2.23958 4.75696 1.80208 5.29169 1.51042C5.82641 1.21875 6.38544 1.14583 6.96877 1.29167C7.5521 1.4375 7.9896 1.77778 8.28127 2.3125L9.66669 4.64583L11.0521 2.3125C11.3438 1.77778 11.7813 1.4375 12.3646 1.29167C12.9479 1.14583 13.507 1.21875 14.0417 1.51042C14.5764 1.80208 14.9167 2.23958 15.0625 2.82292C15.2084 3.40625 15.1354 3.96528 14.8438 4.5L13.4584 6.83333H16.2292C16.8611 6.83333 17.3837 7.03993 17.7969 7.45312C18.2101 7.86632 18.4167 8.38889 18.4167 9.02083C18.4167 9.65278 18.2101 10.1753 17.7969 10.5885C17.3837 11.0017 16.8611 11.2083 16.2292 11.2083H13.4584L14.8438 13.6875C15.1354 14.2222 15.2084 14.7812 15.0625 15.3646C14.9167 15.9479 14.5764 16.3854 14.0417 16.6771C13.507 16.9687 12.9479 17.0417 12.3646 16.8958C11.7813 16.75 11.3438 16.4097 11.0521 15.875L9.66669 13.3958L8.28127 15.875C7.9896 16.4097 7.5521 16.75 6.96877 16.8958C6.38544 17.0417 5.82641 16.9687 5.29169 16.6771ZM28.625 16.6771C28.0903 16.3854 27.75 15.9479 27.6042 15.3646C27.4584 14.7812 27.5313 14.2222 27.8229 13.6875L29.2084 11.2083H26.4375C25.8056 11.2083 25.283 11.0017 24.8698 10.5885C24.4566 10.1753 24.25 9.65278 24.25 9.02083C24.25 8.38889 24.4566 7.86632 24.8698 7.45312C25.283 7.03993 25.8056 6.83333 26.4375 6.83333H29.2084L27.8229 4.5C27.5313 3.96528 27.4584 3.40625 27.6042 2.82292C27.75 2.23958 28.0903 1.80208 28.625 1.51042C29.1597 1.21875 29.7188 1.14583 30.3021 1.29167C30.8854 1.4375 31.3229 1.77778 31.6146 2.3125L33 4.64583L34.3854 2.3125C34.6771 1.77778 35.1146 1.4375 35.6979 1.29167C36.2813 1.14583 36.8403 1.21875 37.375 1.51042C37.9097 1.80208 38.25 2.23958 38.3959 2.82292C38.5417 3.40625 38.4688 3.96528 38.1771 4.5L36.7917 6.83333H39.5625C40.1945 6.83333 40.717 7.03993 41.1302 7.45312C41.5434 7.86632 41.75 8.38889 41.75 9.02083C41.75 9.65278 41.5434 10.1753 41.1302 10.5885C40.717 11.0017 40.1945 11.2083 39.5625 11.2083H36.7917L38.1771 13.6875C38.4688 14.2222 38.5417 14.7812 38.3959 15.3646C38.25 15.9479 37.9097 16.3854 37.375 16.6771C36.8403 16.9687 36.2813 17.0417 35.6979 16.8958C35.1146 16.75 34.6771 16.4097 34.3854 15.875L33 13.3958L31.6146 15.875C31.3229 16.4097 30.8854 16.75 30.3021 16.8958C29.7188 17.0417 29.1597 16.9687 28.625 16.6771ZM51.9584 16.6771C51.4236 16.3854 51.0833 15.9479 50.9375 15.3646C50.7917 14.7812 50.8646 14.2222 51.1563 13.6875L52.5417 11.2083H49.7709C49.1389 11.2083 48.6163 11.0017 48.2031 10.5885C47.7899 10.1753 47.5834 9.65278 47.5834 9.02083C47.5834 8.38889 47.7899 7.86632 48.2031 7.45312C48.6163 7.03993 49.1389 6.83333 49.7709 6.83333H52.5417L51.1563 4.5C50.8646 3.96528 50.7917 3.40625 50.9375 2.82292C51.0833 2.23958 51.4236 1.80208 51.9584 1.51042C52.4931 1.21875 53.0521 1.14583 53.6354 1.29167C54.2188 1.4375 54.6563 1.77778 54.9479 2.3125L56.3334 4.64583L57.7188 2.3125C58.0104 1.77778 58.4479 1.4375 59.0313 1.29167C59.6146 1.14583 60.1736 1.21875 60.7084 1.51042C61.2431 1.80208 61.5834 2.23958 61.7292 2.82292C61.875 3.40625 61.8021 3.96528 61.5104 4.5L60.125 6.83333H62.8959C63.5278 6.83333 64.0504 7.03993 64.4636 7.45312C64.8768 7.86632 65.0834 8.38889 65.0834 9.02083C65.0834 9.65278 64.8768 10.1753 64.4636 10.5885C64.0504 11.0017 63.5278 11.2083 62.8959 11.2083H60.125L61.5104 13.6875C61.8021 14.2222 61.875 14.7812 61.7292 15.3646C61.5834 15.9479 61.2431 16.3854 60.7084 16.6771C60.1736 16.9687 59.6146 17.0417 59.0313 16.8958C58.4479 16.75 58.0104 16.4097 57.7188 15.875L56.3334 13.3958L54.9479 15.875C54.6563 16.4097 54.2188 16.75 53.6354 16.8958C53.0521 17.0417 52.4931 16.9687 51.9584 16.6771Z",fill:"#25D366",stroke:"black",strokeWidth:1.22093})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.PinHeroIcon=a}),98); __d("WAWebUsernamePinInfoDrawer.react",["fbt","WAWebButton.react","WAWebCreatePinDrawer.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebPinHeroIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebUsernameManagementDrawer.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={section:{maxWidth:"x13qrzjo",$$css:!0},badge:{marginTop:"x1r0gsg0",$$css:!0},disclaimerText:{textAlign:"x2b8uid",lineHeight:"x16h55sf",$$css:!0},color:{color:"x2an75k",$$css:!0}};function l(){var a=j.jsx(d("WAWebExternalLink.react").ExternalLink,{xstyle:k.color,href:d("WAWebFaqUrl").getFaqUrl(),children:c("WAWebFbtCommon")("Learn more")});return j.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[k.section,d("WAWebUISpacing").uiMargin.top18],children:[j.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:k.disclaimerText,children:h._(/*BTDS*/"__JHASH__xSlAMrq4qDK__JHASH__")}),j.jsx("br",{}),j.jsxs(d("WAWebText.react").WAWebTextSmall,{xstyle:k.disclaimerText,children:[h._(/*BTDS*/"__JHASH__WP8sgZb6gIt__JHASH__")," ",a]})]})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.username;a=h._(/*BTDS*/"__JHASH__MxUvshJ8QSa__JHASH__");var e=h._(/*BTDS*/"__JHASH__zY3L2e67oy-__JHASH__"),f=h._(/*BTDS*/"__JHASH__rlDrZiG7PbL__JHASH__"),g=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:b}))},i=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(m,{username:b}))};return j.jsxs(c("WAWebDrawer.react"),{children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:a,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:g}),j.jsxs(c("WAWebDrawerBody.react"),{children:[j.jsx(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:j.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",children:[j.jsx(d("WAWebFlex.react").FlexItem,{xstyle:k.badge,children:j.jsx(d("WAWebPinHeroIcon.react").PinHeroIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SUCCESS,width:64.17,height:34.2})}),j.jsx(d("WAWebText.react").WAWebTextLarge,{textAlign:"center",xstyle:[d("WAWebUISpacing").uiMargin.top40,k.section],children:e}),j.jsx(l,{})]})}),j.jsx(c("WAWebDrawerSection.react"),{animation:!1,children:j.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all32,children:j.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebCreatePinDrawer.react"),{onBack:i,username:b}))},stretch:!0,children:f})})})]})]})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=m}),226); __d("WAWebUsernamePinManagementDrawer",["fbt","WAWebContactCollection","WAWebDeleteIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebEditUsernamePinDrawer.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebFrontendContactGetters","WAWebModalManager","WAWebPencilIcon.react","WAWebPinHeroIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebUsernameManagementDrawer.react","WAWebUsernamePinDeleteModal.react","react","useWAWebContactValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={section:{maxWidth:"x13qrzjo",$$css:!0},pinIcon:{marginTop:"x1r0gsg0",$$css:!0},disclaimerText:{textAlign:"x2b8uid",lineHeight:"x16h55sf",$$css:!0},learnMoreLinkColor:{color:"x1prwzq3",$$css:!0},drawerItem:{borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xcsjwe9",width:"xh8yej3",$$css:!0}};function l(){var a=j.jsx(d("WAWebExternalLink.react").ExternalLink,{xstyle:k.learnMoreLinkColor,href:d("WAWebFaqUrl").getFaqUrl(),children:c("WAWebFbtCommon")("Learn more")});return j.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[k.section,d("WAWebUISpacing").uiMargin.top20],children:j.jsxs(d("WAWebText.react").WAWebTextSmall,{xstyle:k.disclaimerText,children:[h._(/*BTDS*/"__JHASH__Fv21GykTIN___JHASH__")," ",a]})})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b,e=a.username,f=a.usernamePin;a=h._(/*BTDS*/"__JHASH__4SyOmtHxmCe__JHASH__");var g=h._(/*BTDS*/"__JHASH__vUN-kI2oRTa__JHASH__");return j.jsx(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",shadow:!1,animation:!1,xstyle:d("WAWebUISpacing").uiMargin.top40,children:j.jsxs((b=d("WAWebFlex.react")).FlexColumn,{children:[j.jsxs(b.FlexRow,{align:"center",xstyle:k.drawerItem,children:[j.jsx(d("WAWebPencilIcon.react").PencilIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),j.jsx(b.FlexItem,{xstyle:d("WAWebUISpacing").uiMargin.start12,children:j.jsx(c("WAWebDrawerItem.react"),{onClick:function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebEditUsernamePinDrawer.react"),{pin:f,username:e}))},title:a,theme:"privacy",isLastItem:!0})})]}),j.jsxs(b.FlexRow,{align:"center",children:[j.jsx(d("WAWebDeleteIcon.react").DeleteIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL}),j.jsx(b.FlexItem,{xstyle:d("WAWebUISpacing").uiMargin.start12,children:j.jsx(c("WAWebDrawerItem.react"),{onClick:function(){d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebUsernamePinDeleteModal.react"),{username:e}))},title:j.jsx("div",babelHelpers["extends"]({className:"x1sr8853"},{children:g})),theme:"privacy",isLastItem:!0})})]})]})})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.username;a=d("WAWebContactCollection").ContactCollection.assertGet(d("WAWebUserPrefsMeUser").getMeUser());a=a.id;a=d("useWAWebContactValues").useContactValues(a,[d("WAWebFrontendContactGetters").getUsernamePin]);a=a[0];var e=h._(/*BTDS*/"__JHASH__MxUvshJ8QSa__JHASH__"),f=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:b}))};return j.jsxs(c("WAWebDrawer.react"),{testid:void 0,children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:e,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:f}),j.jsx(c("WAWebDrawerBody.react"),{children:j.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:[j.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",children:j.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",children:[j.jsx(d("WAWebFlex.react").FlexItem,{grow:1,xstyle:k.pinIcon,children:j.jsx(d("WAWebPinHeroIcon.react").PinHeroIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SUCCESS,width:64.17,height:34.2})}),j.jsx(d("WAWebText.react").WAWebTextLarge,{textAlign:"center",xstyle:[d("WAWebUISpacing").uiMargin.top40,k.section],children:a}),j.jsx(l,{})]})}),j.jsx(m,{usernamePin:a,username:b})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCreateUsernameDrawer.react",["fbt","WAWebSetUsernameDrawer.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.onBack;a=a.ref;var d=h._(/*BTDS*/"__JHASH__9qmBc1oIa0Z__JHASH__");return j.jsx(c("WAWebSetUsernameDrawer.react"),{ref:a,onBack:b,headerText:d})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBusinessCategoryIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="business-category";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",children:[j.jsx("title",{children:"business-category"}),j.jsx("desc",{children:"Created with Sketch."}),j.jsx("defs",{}),j.jsxs("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:[j.jsx("path",{d:"M5.60860827,7.15515467 C4.78378352,7.15515467 4.06206187,6.43343302 4.06206187,5.60860827 C4.06206187,4.78378352 4.78378352,4.06206187 5.60860827,4.06206187 C6.43343302,4.06206187 7.15515467,4.78378352 7.15515467,5.60860827 C7.15515467,6.43343302 6.43343302,7.15515467 5.60860827,7.15515467 M22.0020001,11.897897 L12.7227217,2.61861856 C12.4134124,2.20620619 11.897897,2 11.2792784,2 L4.06206187,2 C2.92792784,2 2,2.92792784 2,4.06206187 L2,11.2792784 C2,11.897897 2.20620619,12.4134124 2.61861856,12.7227217 L11.897897,22.0020001 C12.3103093,22.4144125 12.8258248,22.6206187 13.3413403,22.6206187 C13.9599588,22.6206187 14.4754743,22.4144125 14.7847836,22.0020001 L22.0020001,14.7847836 C22.4144125,14.3723712 22.6206187,13.8568557 22.6206187,13.3413403 C22.6206187,12.7227217 22.4144125,12.2072063 22.0020001,11.897897",id:"Page-1-Copy-2",fill:"currentColor"}),j.jsx("g",{id:"slices",transform:"translate(0.000000, -234.000000)"})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BusinessCategoryIcon=a}),98); __d("WAWebBusinessHoursUtils",["WAWebBusinessProfileTypes","WAWebSmbUtilsTimeUtils","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){var h=function(a){return d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(a)!==void 0};a=function(a,b){if(a===d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.SPECIFIC_HOURS)for(a in b){var c=b[a],e=c.closed;c=c.hours;if(!e)for(e of c){c=e[0];var f=e[1];if(!h(c)||!h(f))return!1}}return!0};b=function(a){var b=a.mode,e=a.dayValues,f=a.note;a=a.timezone;var g={};for(var h in e){var i=e[h],j=i.closed;i=i.hours;if(!j&&d("WAWebBusinessProfileTypes").isBusinessHoursDayName(h)){j={mode:b};b===d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.SPECIFIC_HOURS&&(j.hours=i.map(function(a){var b=a[0];a=a[1];return[d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(b)||0,d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(a)||0]}));g[h]=j}}i=c("isStringNullOrEmpty")(a)?Intl.DateTimeFormat().resolvedOptions().timeZone:a;return{businessHours:{config:g,note:f,timezone:i}}};var i=540,j=1080;e=function(){return[d("WAWebSmbUtilsTimeUtils").minutesToTime(i),d("WAWebSmbUtilsTimeUtils").minutesToTime(j)]};g.isValidTime=h;g.isValidBusinessHours=a;g.convertToRawBusinessProfile=b;g.getDefaultHoursPair=e}),98); __d("WAWebBusinessHoursDayEdit.react",["fbt","$InternalEnum","WAWebBusinessHoursUtils","WAWebBusinessProfileTypes","WAWebCheckBox.react","WAWebChipButton.react","WAWebRichTextField.react","WAWebSmbUtilsTimeUtils","WAWebStatusClockIcon.react","WAWebSvgButton.react","WAWebUISpacing","WAWebXAltIcon.react","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={timeWrapper:{display:"x1rg5ohu",$$css:!0},hoursAnd:{color:"x16zc8z2",$$css:!0},dayInfo:{flexGrow:"x1iyjqo2",$$css:!0}},m=b("$InternalEnum").Mirrored(["START","END"]),n=2,o=" ",p=function(a){a=a.dayKey;return a+"_business_hours"};function q(a){var b=a.day;a=a.onChange;var e=b.closed;b=p(b);return k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.vert20,d("WAWebUISpacing").uiPadding.horiz24),{children:k.jsx(d("WAWebCheckBox.react").CheckBox,{id:b,checked:!e,onChange:a})}))}q.displayName=q.name+" [from "+f.id+"]";function r(a){a=a.onClick;return k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.timeWrapper,d("WAWebUISpacing").uiMargin.start20]),{children:k.jsx(c("WAWebSvgButton.react"),{title:h._(/*BTDS*/"__JHASH__E-fNzNFfE_1__JHASH__"),"aria-label":h._(/*BTDS*/"__JHASH__E-fNzNFfE_1__JHASH__"),Icon:d("WAWebXAltIcon.react").XAltIcon,onClick:a})}))}r.displayName=r.name+" [from "+f.id+"]";function s(a){a=a.onClick;return k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.timeWrapper,d("WAWebUISpacing").uiMargin.start20]),{children:k.jsx(c("WAWebChipButton.react"),{"aria-label":h._(/*BTDS*/"__JHASH__xJZ_AZ06byo__JHASH__"),label:h._(/*BTDS*/"__JHASH__OtIaJWTQK0___JHASH__"),onClick:a,PrefixIcon:d("WAWebStatusClockIcon.react").StatusClockIcon,iconTheme:"padded-svg"})}))}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.isFirst,e=a.onBlur,f=a.onChange;a=a.value;var g=d("WAWebBusinessHoursUtils").isValidTime(a)?null:o;return k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.timeWrapper,d("WAWebUISpacing").uiMargin.start20,b===!0&&d("WAWebUISpacing").uiMargin.start0]),{children:k.jsx(d("WAWebRichTextField.react").RichTextField,{managed:!0,value:a,theme:"small",maxLength:15,customStyleThemes:["desaturated","noErrorInfo"],error:g,onChange:function(a){a=a.text;f(a)},onBlur:e})}))}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.hours,e=a.onHoursChange,f=function(a,c,d){var e=[].concat(b);d=d===m.START?0:1;var f=[].concat(e[c]);f[d]=a;e[c]=f;return e},g=function(a,c){var e=[].concat(b),f=d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(a[0]);a=d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(a[1]);e[c]=[f!==void 0?d("WAWebSmbUtilsTimeUtils").minutesToTime(f):e[c][0],a!==void 0?d("WAWebSmbUtilsTimeUtils").minutesToTime(a):e[c][1]];return e},i=function(a,c){var e=[].concat(b),f=[].concat(e[a]),h=d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(f[0]),i=d("WAWebSmbUtilsTimeUtils").timeStringToMinutes(f[1]);if(h!==void 0&&i!==void 0&&h>i){h=c===m.START?0:1;i=c===m.START?1:0;f[i]=f[h]}e[a]=f;return g(e[a],a)},o=function(){return[].concat(b,[d("WAWebBusinessHoursUtils").getDefaultHoursPair()])},p=function(){return b.slice(0,-1)},q=[];a=b.length>=n?k.jsx(r,{onClick:function(){e(p())}}):k.jsx(s,{onClick:function(){e(o())}});b.forEach(function(a,b){var g=a[0];a=a[1];b>0&&q.push(k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(l.hoursAnd,d("WAWebUISpacing").uiMargin.horiz20),{children:h._(/*BTDS*/"__JHASH__Cp1dkhCVV-5__JHASH__")}),"AND-"+b));q.push(k.jsx(t,{value:g,onChange:function(a){e(f(a,b,m.START))},onBlur:function(){var a=i(b,m.START);a&&e(a)},isFirst:!0},m.START+"-"+b),k.jsx(t,{value:a,onChange:function(a){e(f(a,b,m.END))},onBlur:function(){var a=i(b,m.END);a&&e(a)}},m.END+"-"+b))});return k.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x6s0dn4"},{children:[q,a]}))}u.displayName=u.name+" [from "+f.id+"]";function v(a){a=a.textContent;return k.jsx("div",babelHelpers["extends"]({className:"x16cd2qt"},{children:a}))}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.day,c=a.mode;a=a.onHoursChange;var e=b.closed;b=b.hours;if(e)return k.jsx(v,{textContent:h._(/*BTDS*/"__JHASH__UAmb-1u2vgf__JHASH__")});if(c===d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.APPOINTMENT_ONLY)return k.jsx(v,{textContent:h._(/*BTDS*/"__JHASH__oKZd6YDl9yc__JHASH__")});if(c===d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.OPEN_24H)return k.jsx(v,{textContent:h._(/*BTDS*/"__JHASH__mLVS1QrzI2k__JHASH__")});return d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.SPECIFIC_HOURS&&!e?k.jsx(u,{hours:b,onHoursChange:a}):null}w.displayName=w.name+" [from "+f.id+"]";function a(a){var b=a.day,e=a.mode,f=a.updateDayValue;a=b.dayName;var g=b.dayKey,h=b.closed,i=p(b);return k.jsxs("div",babelHelpers["extends"]({className:"x78zum5"},{children:[k.jsx(q,{day:b,onChange:function(){f({closed:!h})}}),k.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(l.dayInfo,d("WAWebUISpacing").uiPadding.vert13),{children:[k.jsx("label",{htmlFor:i,children:a}),k.jsx(w,{day:b,mode:e,onHoursChange:function(a){f({hours:a})}})]}))]}),"day-"+g)}a.displayName=a.name+" [from "+f.id+"]";g.DayEdit=a}),226); __d("WAWebBusinessHours",["fbt","WAWebBusinessHoursDayEdit.react","WAWebBusinessHoursUtils","WAWebBusinessProfileTypes","WAWebModal.react","WAWebSavePopup.react","WAWebTabs.react","WAWebUISpacing","WAWebUtilsLogQplEvents","asyncToGeneratorRuntime","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useState,n={editMain:{width:"xvue9z",height:"x1jxig9j",overflowY:"x1odjw0f",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x1v2jjsl",$$css:!0}};function o(a){var b=a.onSelect;a=a.selectedMode;return l.jsx(c("WAWebTabs.react"),{onSelect:b,selectedId:a,tabConfigs:[{title:h._(/*BTDS*/"__JHASH__IWR0SzeN59e__JHASH__"),id:d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.SPECIFIC_HOURS},{title:h._(/*BTDS*/"__JHASH__HiMlj1eJyAh__JHASH__"),id:d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.OPEN_24H},{title:h._(/*BTDS*/"__JHASH__ZRmNNZDZyYF__JHASH__"),id:d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.APPOINTMENT_ONLY}]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.days,e=a.daysOrder,f=a.onDayValuesChange,g=a.onModeChange,h=a.selectedMode,i=function(a,c){var d,e=b[a];a=babelHelpers["extends"]({},b,(d={},d[a]=babelHelpers["extends"]({},e,c),d));f(a)};return l.jsxs("div",{children:[l.jsx(o,{selectedMode:h,onSelect:g}),l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(n.editMain,d("WAWebUISpacing").uiPadding.all6),{children:e.map(function(a){var c=b[a];return l.jsx(d("WAWebBusinessHoursDayEdit.react").DayEdit,{day:c,mode:h,updateDayValue:function(b){return i(a,b)}},a)})}))]})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var e=a.businessHours,f=e.note,g=e.timezone,i=e.days;e=m(a.businessHours.mode||d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.SPECIFIC_HOURS);var j=e[0];e=e[1];var k=m(function(){var a={};for(var b of i){var c=b.dayKey,e=b.closed,f=b.hours,g=b.dayName;a[c]={closed:e,hours:f||[d("WAWebBusinessHoursUtils").getDefaultHoursPair()],dayKey:c,dayName:g}}return a}),n=k[0];k=k[1];var o=i.map(function(a){return a.dayKey});return l.jsx(c("WAWebSavePopup.react"),{title:h._(/*BTDS*/"__JHASH__WNmlp9WJrRo__JHASH__"),modalConfig:{type:d("WAWebModal.react").ModalTheme.BusinessHours},isValid:d("WAWebBusinessHoursUtils").isValidBusinessHours(j,n),doSave:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WAWebUtilsLogQplEvents").qplStartProfileSave("bizHours"),yield a.saveBusinessProfile(d("WAWebBusinessHoursUtils").convertToRawBusinessProfile({mode:j,dayValues:n,note:f,timezone:g}))}),afterSave:a.afterSave,onCancel:a.onCancel,children:l.jsx(p,{selectedMode:j,onModeChange:e,days:n,onDayValuesChange:k,daysOrder:o})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBusinessProfilePhoneSection.react",["fbt","WAWebBusinessProfileIconSection.react","WAWebCallRefreshedIcon.react","WAWebCopyPasteSelectable.react","WAWebFlex.react","WAWebPhoneIcon.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWidFormat","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){a=a.isProfileLocked;a=a===void 0?!1:a;return j.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,{Icon:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebCallRefreshedIcon.react").CallRefreshedIcon:d("WAWebPhoneIcon.react").PhoneIcon,type:"container",disabled:a,content:j.jsxs("div",{children:[j.jsx(d("WAWebCopyPasteSelectable.react").SelectableDiv,{selectable:!0,children:d("WAWebWidFormat").widToFormattedUser(d("WAWebUserPrefsMeUser").assertGetMe())}),a===!0?null:j.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.top20,className:"x1pg5gke x37zpob x1grh1yo",children:h._(/*BTDS*/"__JHASH__pxNWbC7xaAN__JHASH__")})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebRoundXInvIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="round-x-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 M23.983,22.686l-1.297,1.297L17.5,18.797l-5.186,5.186 l-1.297-1.297l5.187-5.186l-5.187-5.186l1.297-1.297l5.186,5.186l5.187-5.186l1.297,1.297L18.797,17.5L23.983,22.686z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.RoundXInvIcon=a}),98); __d("WAWebChipSelectorFooter.react",["fbt","WAWebChipButton.react","WAWebFlex.react","WAWebL10N","WAWebRoundXInvIcon.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={chip:{marginTop:"x1xmf6yo",marginEnd:"x1emribx",marginBottom:"xat24cr",marginStart:"x1mh8g0r",$$css:!0}};function a(a){var b=c("WAWebL10N").isRTL();return j.jsx("div",babelHelpers["extends"]({className:"xz9dl7a xc73u3c x1120s5i x5ib6vp x1k74hu9 x178xt8z x13fuv20 x1nfbk4f"},{children:j.jsx(d("WAWebFlex.react").FlexRow,{align:"start",justify:"start",wrap:"wrap",children:a.categories.map(function(e){var f=function(){return a.onRemoveItem(e.id)};return j.jsx(c("WAWebChipButton.react"),{"aria-label":h._(/*BTDS*/"__JHASH__eXUBmHdqbEq__JHASH__"),onClick:f,label:e.localized_display_name,PostfixIcon:b?void 0:d("WAWebRoundXInvIcon.react").RoundXInvIcon,PrefixIcon:b?d("WAWebRoundXInvIcon.react").RoundXInvIcon:void 0,xstyle:k.chip},e.id.toString())})})}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCategories",["fbt","WAQplTypes","WAWebBusinessCategoriesResultModel","WAWebBusinessProfileModel","WAWebChatListSearch.react","WAWebCheckBox.react","WAWebChipSelectorFooter.react","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebSavePopup.react","WAWebSpinner.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUtilsLogQplEvents","asyncToGeneratorRuntime","react","stylex"],(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={editMain:{width:"xvue9z",height:"x15om8nw",$$css:!0},rowMain:{fontSize:"x1jchvi3",$$css:!0},loadingSpinner:{height:"x5yr21d",$$css:!0},rowLabel:{flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",flexBasis:"x1t1x2f9",cursor:"x1ypdohk",$$css:!0},rowLabelDisabled:{color:"x54l9or",$$css:!0}},q=d("WAWebFlatList.react").FlatListFactory(),r=48;function a(a){var e=a.afterSave,f=a.initialCategories,g=a.onCancel,i=a.saveBusinessProfile,j=a.searchCategories;a=o(f);var k=a[0],n=a[1];f=o(!1);var q=f[0],r=f[1];a=o(!1);var s=a[0],t=a[1];f=o([]);var v=f[0],w=f[1];a=o("");var x=a[0],y=a[1],z=function(){d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__Mk7kAzxM1bl__JHASH__")}))},A=function(a){for(var b=0;b<k.length;b++)if(k[b].id===a)return!0;return!1};f=function(a){return a.not_a_biz!==!0&&!A(a.id)&&k.length>=d("WAWebBusinessProfileModel").MAX_BUSINESS_CATEGORIES};var B=function(a){var b=k.find(function(a){return a.id===x}),c=k;k.length>0&&(a.not_a_biz===!0&&!b?(c=[],z()):a.not_a_biz!==!0&&b&&(c=k.filter(function(a){return a.id!==b.id}),z()));A(a.id)?n(c.filter(function(b){return b.id!==a.id})):n([].concat(c,[a]))};a=function(a){var b=k.filter(function(b){return b.id===a})[0];if(!b)return;B(b)};var C=function(a){var b=v.filter(function(b){return b.id===a})[0];if(!b)return;B(b)},D=function(a){t(!0),j(a||d("WAWebBusinessCategoriesResultModel").BUSINESS_CATEGORY_EMPTY_STR_ID).then(function(b){var c=b.categories;a!==""&&(c=c.filter(function(a){return!a.not_a_biz}));t(!1);w(c);y(b.notABizId);d("WAWebUtilsLogQplEvents").qplAnnotateProfileCatsView(c.length);d("WAWebUtilsLogQplEvents").qplEndProfileCatsView(d("WAQplTypes").QuickLogActionType.SUCCESS)})["catch"](function(){d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__XKbEl69UE5W__JHASH__")})),t(!1),w([]),y(""),d("WAWebUtilsLogQplEvents").qplEndProfileCatsView(d("WAQplTypes").QuickLogActionType.FAIL)})};m(function(){D("")},[]);var E=function(a){!s&&!q&&(d("WAWebUtilsLogQplEvents").qplStartProfileCatsView("Search"),D(a))};return l.jsxs(c("WAWebSavePopup.react"),{title:h._(/*BTDS*/"__JHASH__SU2w7Tlm5-T__JHASH__"),isValid:k.length>0,doSave:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WAWebUtilsLogQplEvents").qplStartProfileSave("categories"),yield i({categories:k})}),afterSave:function(){r(!0),e()},onCancel:function(){r(!0),g()},children:[l.jsx("div",babelHelpers["extends"]({className:"x1bmpntp xvue9z"},{children:l.jsx(d("WAWebChatListSearch.react").ListSearch,{onSearch:E,placeholder:h._(/*BTDS*/"__JHASH__8NzshLPytJL__JHASH__")})})),l.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:[p.editMain,d("WAWebUISpacing").uiPadding.all6],children:[l.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2 x1odjw0f xvue9z"},{children:l.jsx(u,{isLoading:s,results:v,isSelected:A,isDisabled:f,toggleResultById:C})})),k&&l.jsx(c("WAWebChipSelectorFooter.react"),{categories:k,onRemoveItem:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";function s(a){var b=a.category,e=a.toggleResultById;a=function(){b.disabled||e(b.id)};return l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:p.rowMain,children:[l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.vert18,d("WAWebUISpacing").uiPadding.horiz24),{children:l.jsx(d("WAWebCheckBox.react").CheckBox,{id:""+b.id,onChange:a,checked:b.selected,disabled:b.disabled})})),l.jsx("label",babelHelpers["extends"]({"data-testid":void 0},j.props(p.rowLabel,d("WAWebUISpacing").uiPadding.vert13,b.disabled&&p.rowLabelDisabled),{htmlFor:b.id,children:b.localized_display_name}))]})}s.displayName=s.name+" [from "+f.id+"]";function t(a){a=a.label;return l.jsxs("div",babelHelpers["extends"]({className:"x1jchvi3"},{children:[l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.vert18,d("WAWebUISpacing").uiPadding.horiz24))),a]}))}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.isDisabled,e=a.isLoading,f=a.isSelected,g=a.results,i=a.toggleResultById;a=n(function(){return new(c("WAWebFlatListController"))()},[]);if(e)return l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[p.loadingSpinner,d("WAWebUISpacing").uiPadding.all0],children:l.jsx(d("WAWebSpinner.react").Spinner,{color:"highlight",size:44,stroke:6})});if(!g||g.length===0)return l.jsx(t,{label:h._(/*BTDS*/"__JHASH__ohmigw5C0tL__JHASH__")});e=g.map(function(a){return babelHelpers["extends"]({},a,{id:a.id,itemKey:a.id.toString(),disabled:b(a),selected:f(a.id)})});return l.jsx(c("WAWebFlatListContainer.react"),{flatListControllers:[a],children:l.jsx(q,{data:e,flatListController:a,direction:"vertical",renderItem:function(a){return l.jsx(s,{category:a,toggleResultById:i})},defaultItemHeight:r})})}u.displayName=u.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCategoryRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="category-refreshed";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:"M7.425 9.47505L11.15 3.40005C11.25 3.23338 11.375 3.11255 11.525 3.03755C11.675 2.96255 11.8333 2.92505 12 2.92505C12.1667 2.92505 12.325 2.96255 12.475 3.03755C12.625 3.11255 12.75 3.23338 12.85 3.40005L16.575 9.47505C16.675 9.64172 16.725 9.81672 16.725 10C16.725 10.1834 16.6833 10.35 16.6 10.5C16.5167 10.65 16.4 10.7709 16.25 10.8625C16.1 10.9542 15.925 11 15.725 11H8.275C8.075 11 7.9 10.9542 7.75 10.8625C7.6 10.7709 7.48333 10.65 7.4 10.5C7.31667 10.35 7.275 10.1834 7.275 10C7.275 9.81672 7.325 9.64172 7.425 9.47505ZM17.5 22C16.25 22 15.1875 21.5625 14.3125 20.6875C13.4375 19.8125 13 18.75 13 17.5C13 16.25 13.4375 15.1875 14.3125 14.3125C15.1875 13.4375 16.25 13 17.5 13C18.75 13 19.8125 13.4375 20.6875 14.3125C21.5625 15.1875 22 16.25 22 17.5C22 18.75 21.5625 19.8125 20.6875 20.6875C19.8125 21.5625 18.75 22 17.5 22ZM3 20.5V14.5C3 14.2167 3.09583 13.9792 3.2875 13.7875C3.47917 13.5959 3.71667 13.5 4 13.5H10C10.2833 13.5 10.5208 13.5959 10.7125 13.7875C10.9042 13.9792 11 14.2167 11 14.5V20.5C11 20.7834 10.9042 21.0209 10.7125 21.2125C10.5208 21.4042 10.2833 21.5 10 21.5H4C3.71667 21.5 3.47917 21.4042 3.2875 21.2125C3.09583 21.0209 3 20.7834 3 20.5ZM17.5 20C18.2 20 18.7917 19.7584 19.275 19.275C19.7583 18.7917 20 18.2 20 17.5C20 16.8 19.7583 16.2084 19.275 15.725C18.7917 15.2417 18.2 15 17.5 15C16.8 15 16.2083 15.2417 15.725 15.725C15.2417 16.2084 15 16.8 15 17.5C15 18.2 15.2417 18.7917 15.725 19.275C16.2083 19.7584 16.8 20 17.5 20ZM5 19.5H9V15.5H5V19.5ZM10.05 9.00005H13.95L12 5.85005L10.05 9.00005Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CategoryRefreshedIcon=a}),98); __d("WAWebCheckmarkInfoModal.react",["fbt","WAWebABProps","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebEmojiText.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebModalManager","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=d("WAWebFaqUrl").getBlueFaqUrl(),b=function(){d("WAWebModalManager").ModalManager.close()},e=function(b){b.preventDefault(),d("WAWebModalManager").ModalManager.close(),self.setTimeout(function(){return d("WAWebExternalLink.react").openExternalLink(a)},10)},f=k();return j.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__M_GqzYHA0ws__JHASH__"),onOK:b,okText:c("WAWebFbtCommon")("Close"),children:[j.jsx(d("WAWebEmojiText.react").EmojiText,{text:f}),j.jsx("br",{}),j.jsx("br",{}),j.jsx(c("WAWebClickableLink.react"),{href:a,onClick:e,children:h._(/*BTDS*/"__JHASH__UBLGigMrTOJ__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";function k(){if(d("WAWebABProps").getABPropConfigValue("meta_verified_badge_education_vai_content"))return h._(/*BTDS*/"__JHASH__rrzwK1HxBl9__JHASH__");return d("WAWebABProps").getABPropConfigValue("blue_education_v2_enabled")?h._(/*BTDS*/"__JHASH__LT3lRmFipGx__JHASH__"):h._(/*BTDS*/"__JHASH__xQCyaVnCvlm__JHASH__")}g["default"]=a}),226); __d("WAWebWamEnumBusinessOwnerPlatform",[],(function(a,b,c,d,e,f){a=Object.freeze({SMBA:1,SMBI:2,ENT:3});f.BUSINESS_OWNER_PLATFORM=a}),66); __d("WAWebWamEnumMetaVerifiedInteractionAction",[],(function(a,b,c,d,e,f){a=Object.freeze({MV_INTERACTION_ACTION_CLICK_MV_BADGE:1,MV_INTERACTION_ACTION_VIEW_MV_EDUCATION_BOTTOM_SHEET:2,MV_INTERACTION_ACTION_CLICK_MV_EDUCATION_LINK:3,MV_INTERACTION_ACTION_VIEW_CROSS_SELL_PROFILE_INTERSTITIAL:4,MV_INTERACTION_ACTION_CLICK_MV_MORE_LINK:5,MV_INTERACTION_ACTION_CLICK_GET_WA_BUSINESS:6,MV_INTERACTION_ACTION_CLICK_SUPPORT:7,MV_INTERACTION_ACTION_CLICK_CUSTOM_WEBPAGE_AND_LINK:8,MV_INTERACTION_ACTION_CLICK_MULTI_DEVICE:9,MV_INTERACTION_ACTION_CLICK_MV_LEARN_MORE:10,MV_INTERACTION_ACTION_CLICK_MV_HOME:11,MV_INTERACTION_ACTION_CLICK_BLOCK:12,MV_INTERACTION_ACTION_CLICK_PROFILE:13,VIEW_NOT_MV_LABEL:14,CLICK_NOT_MV_LABEL:15});f.META_VERIFIED_INTERACTION_ACTION=a}),66); __d("WAWebWamEnumMetaVerifiedInteractionAssetType",[],(function(a,b,c,d,e,f){a=Object.freeze({CHANNEL:1,SMB:2,ENT:3,PERSONAL:4});f.META_VERIFIED_INTERACTION_ASSET_TYPE=a}),66); __d("WAWebWamEnumMetaVerifiedInteractionReferral",[],(function(a,b,c,d,e,f){a=Object.freeze({CHAT_PROFILE:1,CONTACT_CARD:2,SETTINGS:3,BUSINESS_TOOLS:4,NOTIFICATION:5,FMX_CONTACT_CARD:6});f.META_VERIFIED_INTERACTION_REFERRAL=a}),66); __d("WAWebWamEnumMetaVerifiedInteractionSurface",[],(function(a,b,c,d,e,f){a=Object.freeze({BUSINESS_PROFILE:1,MV_EDUCATION_BOTTOM_SHEET:2,CROSS_SELL_PROFILE_INTERSTITIAL:3,META_VERIFIED_HOME:4,SETTINGS:5,BUSINESS_TOOLS:6,BUSINESS_CARD:7,FMX_NOT_META_VERFIED_BOTTOM_SHEET:8,FMX_CONTACT_CARD:9});f.META_VERIFIED_INTERACTION_SURFACE=a}),66); __d("WAWebMetaVerifiedInteractionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumBusinessOwnerPlatform","WAWebWamEnumMetaVerifiedInteractionAction","WAWebWamEnumMetaVerifiedInteractionAssetType","WAWebWamEnumMetaVerifiedInteractionReferral","WAWebWamEnumMetaVerifiedInteractionSurface"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({MetaVerifiedInteraction:[4870,{businessOwnerJid:[1,d("WAWebWamCodegenUtils").TYPES.STRING],businessOwnerPlatform:[2,d("WAWebWamEnumBusinessOwnerPlatform").BUSINESS_OWNER_PLATFORM],metaVerifiedInteractionAction:[3,d("WAWebWamEnumMetaVerifiedInteractionAction").META_VERIFIED_INTERACTION_ACTION],metaVerifiedInteractionAssetType:[4,d("WAWebWamEnumMetaVerifiedInteractionAssetType").META_VERIFIED_INTERACTION_ASSET_TYPE],metaVerifiedInteractionReferral:[5,d("WAWebWamEnumMetaVerifiedInteractionReferral").META_VERIFIED_INTERACTION_REFERRAL],metaVerifiedInteractionSurface:[6,d("WAWebWamEnumMetaVerifiedInteractionSurface").META_VERIFIED_INTERACTION_SURFACE]},[1,1,1],"private",113760892]},{MetaVerifiedInteraction:[]});g.MetaVerifiedInteractionWamEvent=a}),98); __d("WAWebCheckmarkInfoModalLogEvents",["WAWebContactGetters","WAWebContactUtils","WAWebMetaVerifiedInteractionWamEvent","WAWebMiscGatingUtils","WAWebWamEnumBizPlatform","WAWebWamEnumMetaVerifiedInteractionAction","WAWebWamEnumMetaVerifiedInteractionAssetType","WAWebWamEnumMetaVerifiedInteractionReferral","WAWebWamEnumMetaVerifiedInteractionSurface"],(function(a,b,c,d,e,f,g){function a(a){if(!d("WAWebMiscGatingUtils").isBlueP0LoggingEnabled())return;a=d("WAWebContactGetters").getId(a).toJid();var b={businessOwnerJid:a,metaVerifiedInteractionAction:d("WAWebWamEnumMetaVerifiedInteractionAction").META_VERIFIED_INTERACTION_ACTION.MV_INTERACTION_ACTION_CLICK_MV_BADGE,metaVerifiedInteractionReferral:d("WAWebWamEnumMetaVerifiedInteractionReferral").META_VERIFIED_INTERACTION_REFERRAL.CHAT_PROFILE,metaVerifiedInteractionSurface:d("WAWebWamEnumMetaVerifiedInteractionSurface").META_VERIFIED_INTERACTION_SURFACE.BUSINESS_PROFILE};a=d("WAWebContactUtils").getMaybeBizPlatformForLogging(a);a===d("WAWebWamEnumBizPlatform").BIZ_PLATFORM.ENT?b.metaVerifiedInteractionAssetType=d("WAWebWamEnumMetaVerifiedInteractionAssetType").META_VERIFIED_INTERACTION_ASSET_TYPE.ENT:a===d("WAWebWamEnumBizPlatform").BIZ_PLATFORM.SMB&&(b.metaVerifiedInteractionAssetType=d("WAWebWamEnumMetaVerifiedInteractionAssetType").META_VERIFIED_INTERACTION_ASSET_TYPE.SMB);new(d("WAWebMetaVerifiedInteractionWamEvent").MetaVerifiedInteractionWamEvent)(b).commit()}g.logClickProfileBadge=a}),98); __d("WAWebDescriptionRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="description-refreshed";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.71667 18 3.47917 17.9042 3.2875 17.7125C3.09583 17.5208 3 17.2833 3 17C3 16.7167 3.09583 16.4792 3.2875 16.2875C3.47917 16.0958 3.71667 16 4 16H14C14.2833 16 14.5208 16.0958 14.7125 16.2875C14.9042 16.4792 15 16.7167 15 17C15 17.2833 14.9042 17.5208 14.7125 17.7125C14.5208 17.9042 14.2833 18 14 18H4ZM4 13C3.71667 13 3.47917 12.9042 3.2875 12.7125C3.09583 12.5208 3 12.2833 3 12C3 11.7167 3.09583 11.4792 3.2875 11.2875C3.47917 11.0958 3.71667 11 4 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H4ZM4 8C3.71667 8 3.47917 7.90417 3.2875 7.7125C3.09583 7.52083 3 7.28333 3 7C3 6.71667 3.09583 6.47917 3.2875 6.2875C3.47917 6.09583 3.71667 6 4 6H20C20.2833 6 20.5208 6.09583 20.7125 6.2875C20.9042 6.47917 21 6.71667 21 7C21 7.28333 20.9042 7.52083 20.7125 7.7125C20.5208 7.90417 20.2833 8 20 8H4Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DescriptionRefreshedIcon=a}),98); __d("WAWebEditFormParsers",["WAWebSmbUtils"],(function(a,b,c,d,e,f,g){a=function(a){var b=a.description,c=a.email,e=a.address,f=a.website,g=a.categories,h=a.businessHours,i=a.latitude,j=a.longitude,k=a.profileOptions;a=a.memberSinceText;f=f||[];var l=f[0];f=f[1];return{description:b,email:c,address:e,primaryWebsite:l==null?void 0:l.url,secondaryWebsite:f==null?void 0:f.url,hours:d("WAWebSmbUtils").getBusinessHoursForEdit(h),categories:g||[],latitude:i,longitude:j,profileOptions:k,memberSinceText:a}};g.convertRawBusinessProfile=a}),98); __d("WAWebGlobeRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="globe-refreshed";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:"M12 22C10.6167 22 9.31667 21.7375 8.1 21.2125C6.88333 20.6875 5.825 19.975 4.925 19.075C4.025 18.175 3.3125 17.1167 2.7875 15.9C2.2625 14.6833 2 13.3833 2 12C2 10.6167 2.2625 9.31667 2.7875 8.1C3.3125 6.88333 4.025 5.825 4.925 4.925C5.825 4.025 6.88333 3.3125 8.1 2.7875C9.31667 2.2625 10.6167 2 12 2C13.3833 2 14.6833 2.2625 15.9 2.7875C17.1167 3.3125 18.175 4.025 19.075 4.925C19.975 5.825 20.6875 6.88333 21.2125 8.1C21.7375 9.31667 22 10.6167 22 12C22 13.3833 21.7375 14.6833 21.2125 15.9C20.6875 17.1167 19.975 18.175 19.075 19.075C18.175 19.975 17.1167 20.6875 15.9 21.2125C14.6833 21.7375 13.3833 22 12 22ZM11 19.95V18C10.45 18 9.97917 17.8042 9.5875 17.4125C9.19583 17.0208 9 16.55 9 16V15L4.2 10.2C4.15 10.5 4.10417 10.8 4.0625 11.1C4.02083 11.4 4 11.7 4 12C4 14.0167 4.6625 15.7833 5.9875 17.3C7.3125 18.8167 8.98333 19.7 11 19.95ZM17.9 17.4C18.2333 17.0333 18.5333 16.6375 18.8 16.2125C19.0667 15.7875 19.2875 15.3458 19.4625 14.8875C19.6375 14.4292 19.7708 13.9583 19.8625 13.475C19.9542 12.9917 20 12.5 20 12C20 10.3667 19.5458 8.875 18.6375 7.525C17.7292 6.175 16.5167 5.2 15 4.6V5C15 5.55 14.8042 6.02083 14.4125 6.4125C14.0208 6.80417 13.55 7 13 7H11V9C11 9.28333 10.9042 9.52083 10.7125 9.7125C10.5208 9.90417 10.2833 10 10 10H8V12H14C14.2833 12 14.5208 12.0958 14.7125 12.2875C14.9042 12.4792 15 12.7167 15 13V16H16C16.4333 16 16.825 16.1292 17.175 16.3875C17.525 16.6458 17.7667 16.9833 17.9 17.4Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.GlobeRefreshedIcon=a}),98); __d("WAWebMailRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="mail-refreshed";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 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM20 8L12.525 12.675C12.4417 12.725 12.3542 12.7625 12.2625 12.7875C12.1708 12.8125 12.0833 12.825 12 12.825C11.9167 12.825 11.8292 12.8125 11.7375 12.7875C11.6458 12.7625 11.5583 12.725 11.475 12.675L4 8V18H20V8ZM12 11L20 6H4L12 11ZM4 8.25V6.775V6.8V6.7875V8.25Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.MailRefreshedIcon=a}),98); __d("WAWebEditFormEditFieldsForm.react",["fbt","WAWebAccountBoxIcon.react","WAWebBizBusinessComplianceAddressRequiredModal","WAWebBizComplianceUtil","WAWebBizGatingUtils","WAWebBusinessAddressIcon.react","WAWebBusinessCategoriesResultCollection","WAWebBusinessCategoryIcon.react","WAWebBusinessDescriptionIcon.react","WAWebBusinessEmailIcon.react","WAWebBusinessHours","WAWebBusinessHoursIcon.react","WAWebBusinessProfileIconSection.react","WAWebBusinessProfileModel","WAWebBusinessProfilePhoneSection.react","WAWebBusinessProfileTypes","WAWebBusinessWebsiteIcon.react","WAWebCategories","WAWebCategoryRefreshedIcon.react","WAWebCheckmarkInfoModal.react","WAWebCheckmarkInfoModalLogEvents","WAWebClockRefreshedIcon.react","WAWebConfirmPopup.react","WAWebConnModel","WAWebContactCollection","WAWebContactGetters","WAWebDescriptionRefreshedIcon.react","WAWebDrawerSection.react","WAWebEditFormBusinessAddressField.react","WAWebEditFormBusinessProfileFormField.react","WAWebEditFormLogEvents","WAWebEditFormParsers","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFbtIntlList","WAWebFlex.react","WAWebGlobeRefreshedIcon.react","WAWebLocationRefreshedOutlineIcon.react","WAWebMailRefreshedIcon.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebName.react","WAWebStorefrontIcon.react","WAWebUISpacing","WAWebURLUtils","WAWebUserPrefsMeUser","WAWebUtilsLogQplEvents","WAWebValidationUtils","WAWebWamEnumBusinessProfileField","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.useCallback,n=b.useEffect,o=b.useState,p={businessHoursSection:{display:"x78zum5",$$css:!0},infoText:{color:"x1grh1yo",fontSize:"x1pg5gke",lineHeight:"x37zpob",$$css:!0},verifiedNameIcon:{marginTop:"x1kgmq87",$$css:!0}};function q(a){a=a.hours;var b=a.mode;a=a.days;return b==null?null:l.jsx("div",{children:a.map(function(a,e){var f=a.dayName,g=a.dayKey,h=a.closed;a=a.hours;return l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(p.businessHoursSection,e!==0&&d("WAWebUISpacing").uiMargin.top28),{"data-testid":void 0,children:[l.jsx("div",babelHelpers["extends"]({className:"x1ikap7u xs83m0k x1r8uery xn80e1m"},{children:f})),l.jsx("div",babelHelpers["extends"]({className:"x1bhwmg6 xs83m0k x1r8uery"},{children:l.jsx(r,{mode:b,closed:h,hours:a})}))]}),g)})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.closed,e=a.hours;a=a.mode;if(b)return h._(/*BTDS*/"__JHASH__UAmb-1u2vgf__JHASH__");switch(a){case d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.SPECIFIC_HOURS:return l.jsx(l.Fragment,{children:e&&e.map(function(a,b){var e=a[0];a=a[1];return l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(b!==0&&d("WAWebUISpacing").uiMargin.top16),{"data-testid":void 0,children:[e," - ",a]}),b)})});case d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.APPOINTMENT_ONLY:return h._(/*BTDS*/"__JHASH__oKZd6YDl9yc__JHASH__");case d("WAWebBusinessProfileTypes").BUSINESS_HOUR_MODES.OPEN_24H:return h._(/*BTDS*/"__JHASH__mLVS1QrzI2k__JHASH__");default:return null}}r.displayName=r.name+" [from "+f.id+"]";function s(a){a=a.categories;return a.length===0?null:l.jsx("div",{"data-testid":void 0,children:c("WAWebFbtIntlList")(a.map(function(a){return a.localized_display_name}),c("WAWebFbtIntlList").CONJUNCTIONS.NONE,c("WAWebFbtIntlList").DELIMITERS.COMMA)})}s.displayName=s.name+" [from "+f.id+"]";function t(a){a=a.config;return l.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,babelHelpers["extends"]({},a))}t.displayName=t.name+" [from "+f.id+"]";function u(a){a=a.isRefreshed;var b=d("useWAWebModelValues").useModelValues(d("WAWebConnModel").Conn,["pushname"]);b=b.pushname;if(b==null)return null;var e=d("WAWebBizGatingUtils").canSeeBizProfileV3()?d("WAWebBusinessProfileIconSection.react").IconSectionTheme.NoMargin:void 0;return l.jsx(t,{config:{theme:e,Icon:a?d("WAWebStorefrontIcon.react").StorefrontIcon:d("WAWebAccountBoxIcon.react").AccountBoxIcon,xstyle:p.verifiedNameIcon,content:l.jsxs("div",{children:[l.jsx("div",{children:b}),d("WAWebMiscGatingUtils").isBlueLockingEnabled()===!1&&l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(p.infoText,d("WAWebUISpacing").uiMargin.top24),{children:h._(/*BTDS*/"__JHASH__WvkT7C40cy2__JHASH__")}))]})}})}u.displayName=u.name+" [from "+f.id+"]";function v(a){a=a.categories;var b=d("useWAWebModelValues").useModelValues(d("WAWebConnModel").Conn,["pushname"]);b=b.pushname;var e=d("WAWebContactCollection").ContactCollection.getMeContact(),f=function(){if(!d("WAWebMiscGatingUtils").isBlueEducationEnabled())return;e&&d("WAWebCheckmarkInfoModalLogEvents").logClickProfileBadge(e);d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebCheckmarkInfoModal.react"),{}))};if(e!=null){var g=d("WAWebContactGetters").getShowBusinessCheckmarkInChatlist(e);g=l.jsx(d("WAWebName.react").Name,{contact:e,useVerifiedName:!0,showBusinessCheckmark:g,makeCheckmarkClickable:!0,checkmarkLarge:!0,onClick:g&&d("WAWebMiscGatingUtils").isBlueEducationEnabled()?f:null})}else g=b;return l.jsxs(d("WAWebFlex.react").FlexColumn,{justify:"center",align:"center",children:[l.jsx(d("WAWebFlex.react").FlexItem,{paddingBottom:8,xstyle:d("WAWebUISpacing").uiMargin.bottom2,className:"xngnso2 x1o2sk6j",children:g}),l.jsx(d("WAWebFlex.react").FlexItem,{className:"x1jchvi3 x1o2sk6j xhgddhk",children:l.jsx(s,{categories:a})})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.isProfileLocked,e=a.isRefreshed;a=a.url;return a==null?null:l.jsx(t,{config:{Icon:e?d("WAWebGlobeRefreshedIcon.react").GlobeRefreshedIcon:d("WAWebBusinessWebsiteIcon.react").BusinessWebsiteIcon,xstyle:p.verifiedNameIcon,testid:"biz-profile-custom-url-input",onEdit:b===!1?function(){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{okText:c("WAWebFbtCommon")("OK"),onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:h._(/*BTDS*/"__JHASH__yb9e2U6Yle9__JHASH__")}))}:void 0,content:l.jsx("div",babelHelpers["extends"]({className:"x1yn0g08"},{children:a})),fieldName:h._(/*BTDS*/"__JHASH__rY_I4WRE_2R__JHASH__")}})}w.displayName=w.name+" [from "+f.id+"]";function x(a){return a!=null&&a!==""}function a(a){var b=a.businessProfile,e=a.isRefreshed,f=a.saveBusinessProfile,g=a.sessionId;a=o();var i=a[0],j=a[1];a=o();var k=a[0],p=a[1];a=o();var r=a[0],y=a[1];a=o();var z=a[0],A=a[1];a=o();var B=a[0],C=a[1];a=o();var D=a[0],E=a[1];a=o();var F=a[0],G=a[1];a=o();var H=a[0],I=a[1];a=o();var J=a[0],K=a[1];a=o(!1);var L=a[0],M=a[1];a=o(!1);var N=a[0],O=a[1],P=d("WAWebUserPrefsMeUser").getMeUser(),Q=d("WAWebBizGatingUtils").canSeeECommerceComplianceIndiaHardEnforcementBusinessJourney(P);a=o();var R=a[0];a=a[1];n(function(){var a=d("WAWebEditFormParsers").convertRawBusinessProfile(b);j(a.description);y(a.email);p(a.address);A(a.primaryWebsite);C(a.secondaryWebsite);E(x(a.primaryWebsite)&&!a.secondaryWebsite);O(d("WAWebMiscGatingUtils").isBlueLockingEnabled()&&((a=a.profileOptions)==null?void 0:a.isProfileEditDisabled)===!0)},[b]);n(function(){d("WAWebValidationUtils").validateEmail(r)&&G(null)},[r]);n(function(){d("WAWebValidationUtils").validateURL(z)&&I(null)},[z]);n(function(){d("WAWebValidationUtils").validateURL(B)&&K(null)},[B]);var S=function(){var a=[];x(z)&&a.push(z);x(B)&&a.push(B);return{website:a.map(function(a,b){if(!c("WAWebURLUtils").isHttps(a)&&!c("WAWebURLUtils").isHttp(a)){var d="https://"+a;b===0?A(d):C(d);return{url:d}}return{url:a}})}},T=m(function(){return Q?c("WAWebBizBusinessComplianceAddressRequiredModal")():void 0},[Q]),U=d("WAWebEditFormParsers").convertRawBusinessProfile(b),aa=d("WAWebBizGatingUtils").canSeeBizProfileV3()?null:h._(/*BTDS*/"__JHASH__PRZz2MtTQIM__JHASH__"),V;b.customUrlPath!=null&&(V=l.jsx(w,{url:""+d("WAWebBusinessProfileModel").BUSINESS_URL_DOMAIN+b.customUrlPath,isProfileLocked:N===!0,isRefreshed:e}));D=x(B)||!D;var W=N?l.jsx(v,{categories:U.categories}):l.jsx(u,{isRefreshed:e}),X=l.jsx(c("WAWebBusinessProfilePhoneSection.react"),{isProfileLocked:N}),Y=l.jsx(t,{config:{Icon:e?d("WAWebDescriptionRefreshedIcon.react").DescriptionRefreshedIcon:d("WAWebBusinessDescriptionIcon.react").BusinessDescriptionIcon,content:l.jsx(d("WAWebEditFormBusinessProfileFormField.react").BusinessProfileFormField,{activeField:R,fieldKey:"description",fieldMetric:d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.DESCRIPTION,formatForSave:function(){return{description:i}},lowProfile:!0,originalValue:U.description,placeholder:h._(/*BTDS*/"__JHASH__SN0vuvLE9hh__JHASH__"),rawBusinessProfile:b,sessionId:g,maxLength:d("WAWebBusinessProfileTypes").BUSINESS_PROFILE_FIELDS_LENGTH.DESCRIPTION,emojiBtnPosition:"side",value:i,onActive:a,onChange:j,onSaveBusinessProfile:f})}}),Z=l.jsx(t,{config:{Icon:e?d("WAWebCategoryRefreshedIcon.react").CategoryRefreshedIcon:d("WAWebBusinessCategoryIcon.react").BusinessCategoryIcon,type:"container",emptyText:h._(/*BTDS*/"__JHASH__knKDhhUHQN3__JHASH__"),content:U.categories.length===0?null:l.jsx(s,{categories:U.categories}),fieldName:h._(/*BTDS*/"__JHASH__knKDhhUHQN3__JHASH__"),testid:"biz-profile-category-input",onEdit:function(){d("WAWebUtilsLogQplEvents").qplStartProfileCatsView("Profile"),d("WAWebEditFormLogEvents").logProfileFieldOpen(d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.CATEGORY,b,g),d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebCategories"),{initialCategories:U.categories,saveBusinessProfile:f,searchCategories:function(a){return d("WAWebBusinessCategoriesResultCollection").BusinessCategoriesResultCollection.find(a)},afterSave:function(){return d("WAWebEditFormLogEvents").logProfileFieldSave(d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.CATEGORY,b,g)},onCancel:function(){d("WAWebEditFormLogEvents").logProfileFieldDiscard(d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.CATEGORY,b,g)}}))}}});k=l.jsx(t,{config:{Icon:e?d("WAWebLocationRefreshedOutlineIcon.react").LocationRefreshedOutlineIcon:d("WAWebBusinessAddressIcon.react").BusinessAddressIcon,disabled:N,content:l.jsx(d("WAWebEditFormBusinessAddressField.react").BusinessAddressField,{businessProfile:U,activeField:R,rawBusinessProfile:b,sessionId:g,value:k,onActive:a,onChange:p,onSaveBusinessProfile:f,validate:function(a){return d("WAWebBizComplianceUtil").existsField(a,P)},onError:T,disabled:N})}});T=l.jsx(t,{config:{Icon:e?d("WAWebClockRefreshedIcon.react").ClockRefreshedIcon:d("WAWebBusinessHoursIcon.react").BusinessHoursIcon,type:"container",emptyText:h._(/*BTDS*/"__JHASH__HaNdTZ1u-J1__JHASH__"),content:U.hours.mode==null?null:l.jsx(q,{hours:U.hours}),fieldName:h._(/*BTDS*/"__JHASH__HaNdTZ1u-J1__JHASH__"),testid:"biz-profile-hours-input",onEdit:function(){d("WAWebEditFormLogEvents").logProfileFieldOpen(d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.HOURS,b,g),d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebBusinessHours"),{businessHours:U.hours,saveBusinessProfile:f,onCancel:function(){d("WAWebEditFormLogEvents").logProfileFieldDiscard(d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.HOURS,b,g)},afterSave:function(){return d("WAWebEditFormLogEvents").logProfileFieldSave(d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.HOURS,b,g)}}))}}});F=l.jsx(t,{config:{Icon:e?d("WAWebMailRefreshedIcon.react").MailRefreshedIcon:d("WAWebBusinessEmailIcon.react").BusinessEmailIcon,disabled:N,content:l.jsx(d("WAWebEditFormBusinessProfileFormField.react").BusinessProfileFormField,{activeField:R,error:F,fieldKey:"email",fieldMetric:d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.EMAIL,formatForSave:function(){return{email:r}},lowProfile:!1,originalValue:U.email,placeholder:h._(/*BTDS*/"__JHASH__AImewJwGLX5__JHASH__"),rawBusinessProfile:b,sessionId:g,maxLength:d("WAWebBusinessProfileTypes").BUSINESS_PROFILE_FIELDS_LENGTH.EMAIL,validate:function(a){return d("WAWebValidationUtils").validateEmail(a)},value:r,onActive:a,onChange:y,onError:function(){G(h._(/*BTDS*/"__JHASH__4aXQWpDl_OS__JHASH__"))},onSaveBusinessProfile:f,disabled:N})}});e=e?d("WAWebGlobeRefreshedIcon.react").GlobeRefreshedIcon:d("WAWebBusinessWebsiteIcon.react").BusinessWebsiteIcon;H=l.jsx(t,{config:{Icon:e,theme:d("WAWebBusinessProfileIconSection.react").IconSectionTheme.SmallMargin,disabled:N,content:l.jsx("div",{children:l.jsx(d("WAWebEditFormBusinessProfileFormField.react").BusinessProfileFormField,{activeField:R,error:H,fieldKey:"primaryWebsite",fieldMetric:d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.WEBSITE,formatForSave:S,lowProfile:!1,originalValue:U.primaryWebsite,placeholder:h._(/*BTDS*/"__JHASH__L11QvOb8y8W__JHASH__"),rawBusinessProfile:b,sessionId:g,maxLength:d("WAWebBusinessProfileTypes").BUSINESS_PROFILE_FIELDS_LENGTH.WEBSITE,validate:d("WAWebValidationUtils").validateURL,value:z,onActive:a,onChange:A,onError:function(){I(h._(/*BTDS*/"__JHASH__CFGhHtJn9UC__JHASH__"))},onSaveBusinessProfile:f,disabled:N})})}});var $;U.primaryWebsite!==void 0&&(D?$=l.jsx(t,{config:{Icon:e,theme:d("WAWebBusinessProfileIconSection.react").IconSectionTheme.NoMargin,disabled:N,content:l.jsx("div",{children:l.jsx(d("WAWebEditFormBusinessProfileFormField.react").BusinessProfileFormField,{activeField:R,error:J,fieldKey:"secondaryWebsite",fieldMetric:d("WAWebWamEnumBusinessProfileField").BUSINESS_PROFILE_FIELD.WEBSITE,formatForSave:S,lowProfile:!1,originalValue:U.secondaryWebsite,placeholder:h._(/*BTDS*/"__JHASH__L11QvOb8y8W__JHASH__"),rawBusinessProfile:b,sessionId:g,startActive:L,maxLength:d("WAWebBusinessProfileTypes").BUSINESS_PROFILE_FIELDS_LENGTH.WEBSITE,validate:d("WAWebValidationUtils").validateURL,value:B,onActive:a,onChange:C,onError:function(){K(h._(/*BTDS*/"__JHASH__CFGhHtJn9UC__JHASH__"))},onSaveBusinessProfile:f,disabled:N})})}}):(!d("WAWebMiscGatingUtils").isBlueLockingEnabled()||!N)&&($=l.jsx(t,{config:{Icon:e,theme:d("WAWebBusinessProfileIconSection.react").IconSectionTheme.NoMargin,content:l.jsx("div",{children:l.jsx("button",babelHelpers["extends"]({className:"x1uw8iul x1f6kntn xtvhhri"},{onClick:function(){E(!1),M(!0)},children:h._(/*BTDS*/"__JHASH__PcP_y4bFE8p__JHASH__")}))})}})));if(d("WAWebMiscGatingUtils").isBlueLockingEnabled()){if(N){d("WAWebBizGatingUtils").isMetaVerifiedLockedProfileEditingV1Enabled()?D=h._(/*BTDS*/"__JHASH__TERKGcHO0Ry__JHASH__",[h._implicitParam("=m2",l.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getBlueFaqUrl(),children:h._(/*BTDS*/"__JHASH__8C1hOkrAK-p__JHASH__")}))]):D=h._(/*BTDS*/"__JHASH__LFenjS_leAu__JHASH__",[h._implicitParam("=m2",l.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getBlueFaqUrl(),children:h._(/*BTDS*/"__JHASH__chUE3ebYOMW__JHASH__")}))]);R=l.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.top10,className:"x1grh1yo x1nxh6w3 x37zpob",children:l.jsx(d("WAWebFlex.react").FlexItem,{children:D})});J=l.jsxs(l.Fragment,{children:[W,X,k,F,H,$,R,T,Y]})}else J=l.jsxs(l.Fragment,{children:[W,X,Z,k,F,H,$,T,Y]})}else J=l.jsxs(l.Fragment,{children:[W,V,Y,Z,k,T,F,H,$]});return l.jsx(c("WAWebDrawerSection.react"),{title:aa,theme:"refresh",xstyle:d("WAWebBizGatingUtils").canSeeBizProfileV3()&&d("WAWebUISpacing").uiPadding.top0,animation:!1,children:J})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebEditFormUiErrorUtils",["WAWebToast.react","WAWebToastManager","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");a=function(a){d("WAWebToastManager").ToastManager.open(i.jsx(d("WAWebToast.react").Toast,{msg:a,duration:6e3}))};g.showError=a}),98); __d("WAWebEditForm.react",["fbt","WALogger","WAQplTypes","WAWebBusinessProfileCollection","WAWebBusinessProfileEdit","WAWebButton.react","WAWebDrawerSection.react","WAWebEditFormEditFieldsForm.react","WAWebEditFormLogEvents","WAWebEditFormTypes","WAWebEditFormUiErrorUtils","WAWebFlex.react","WAWebFlexItem.react","WAWebSpinner.react","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebUtilsLogQplEvents","asyncToGeneratorRuntime","fbs","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["business_profile:edit_form save failed"]);l=function(){return a};return a}e=k||d("react");var m=i||(i=c("react")),n=e.useEffect,o=e.useMemo,p=e.useState,q={retryButton:{height:"xc9qbxq",$$css:!0},loadingSpinner:{display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",height:"x5yr21d",$$css:!0}},r=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebUserPrefsMeUser").getMeUser(),b=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a);b&&b.markStale();b=(yield d("WAWebBusinessProfileCollection").BusinessProfileCollection.find(a));return b.serialize()});return function(){return a.apply(this,arguments)}}(),s=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebUserPrefsMeUser").getMeUser();a=(yield d("WAWebBusinessProfileCollection").BusinessProfileCollection.update(a));a=Array.isArray(a)?a[0]:a;return a.serialize()});return function(){return a.apply(this,arguments)}}();function a(a){a=a.isRefreshed;var e=p(d("WAWebEditFormTypes").LoadType.PENDING),f=e[0],g=e[1];e=p();var i=e[0],k=e[1],t=o(function(){return Math.floor(2147483648*Math.random()).toString()},[]),u=function(){g(d("WAWebEditFormTypes").LoadType.PENDING),r().then(function(a){k(a),g(d("WAWebEditFormTypes").LoadType.DONE),d("WAWebEditFormLogEvents").logProfileOpen(a,t)})["catch"](function(){g(d("WAWebEditFormTypes").LoadType.ERROR)})};n(function(){u()},[]);if(f===d("WAWebEditFormTypes").LoadType.PENDING)return m.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(q.loadingSpinner,d("WAWebUISpacing").uiPadding.all0),{children:m.jsx(d("WAWebSpinner.react").Spinner,{color:"default",size:24,stroke:6})}));if(f===d("WAWebEditFormTypes").LoadType.ERROR)return m.jsx(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__PRZz2MtTQIM__JHASH__"),theme:"refresh",animation:!1,children:m.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:[m.jsx(c("WAWebFlexItem.react"),{children:h._(/*BTDS*/"__JHASH__ypntTUVAjYm__JHASH__")}),m.jsx(c("WAWebFlexItem.react"),{xstyle:[q.retryButton,d("WAWebUISpacing").uiMargin.start16],children:m.jsx(d("WAWebButton.react").Button,{onClick:function(){u()},type:"simplified",children:h._(/*BTDS*/"__JHASH__8QtB4QTDtNh__JHASH__")})})]})});return f===d("WAWebEditFormTypes").LoadType.DONE&&i?m.jsx(c("WAWebEditFormEditFieldsForm.react"),{isRefreshed:a,sessionId:t,businessProfile:i,saveBusinessProfile:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{yield d("WAWebBusinessProfileEdit").editBusinessProfile(a)}catch(a){d("WAWebEditFormUiErrorUtils").showError(c("fbs")._(/*BTDS*/"__JHASH__b-AbtRU1Hz4__JHASH__").toString());d("WAWebUtilsLogQplEvents").qplEndProfileSave(d("WAQplTypes").QuickLogActionType.FAIL);d("WALogger").WARN(l()).sendLogs("businessProfile edit handled server error - "+a.status);throw a}try{a=(yield s());k(a);d("WAWebUtilsLogQplEvents").qplEndProfileSave(d("WAQplTypes").QuickLogActionType.SUCCESS);return a}catch(a){d("WAWebEditFormUiErrorUtils").showError(c("fbs")._(/*BTDS*/"__JHASH__ypntTUVAjYm__JHASH__").toString());d("WAWebUtilsLogQplEvents").qplEndProfileSave(d("WAQplTypes").QuickLogActionType.FAIL);throw a}});return function(b){return a.apply(this,arguments)}}()}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebFbshopsIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="fbshops";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=12;m=120;(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 120 12",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M92.8438 9.10606V0.387207H93.7769V4.29277C93.9935 3.90261 94.273 3.59506 94.6155 3.37013C94.958 3.1452 95.3537 3.03272 95.8025 3.03272H95.9206C96.6018 3.03272 97.1215 3.25667 97.4798 3.70456C97.838 4.15244 98.0172 4.79242 98.0172 5.6245V9.10606H97.0841V5.76184C97.0841 5.14873 96.9719 4.68692 96.7475 4.37638C96.523 4.06584 96.1707 3.91058 95.6903 3.91058H95.5782C95.1411 3.91058 94.7681 4.0539 94.459 4.34056C94.15 4.6272 93.9226 4.98749 93.7769 5.42145V9.10606H92.8438ZM87.576 9.23744C86.8358 9.23744 86.1872 9.10009 85.6301 8.82538C85.0729 8.55068 84.6074 8.14859 84.2334 7.61908L84.9715 6.96217C85.629 7.86193 86.4972 8.31182 87.576 8.31182H87.7C88.3812 8.31182 88.8949 8.1874 89.2413 7.93858C89.5878 7.68975 89.761 7.35035 89.761 6.92038C89.761 6.62178 89.6853 6.37893 89.5337 6.19181C89.3821 6.00469 89.1873 5.8574 88.9491 5.7499C88.7109 5.64241 88.4599 5.5608 88.196 5.50506L86.6664 5.18258C86.32 5.11092 85.9814 4.99248 85.6507 4.82726C85.32 4.66204 85.0464 4.43312 84.8298 4.14049C84.6133 3.84788 84.505 3.47463 84.505 3.02078C84.505 2.53905 84.63 2.11804 84.88 1.75774C85.1301 1.39744 85.4804 1.11677 85.9313 0.915713C86.3821 0.714661 86.9106 0.614136 87.5169 0.614136H87.6468C88.9461 0.614136 89.9402 1.12174 90.6292 2.13694L89.9027 2.74011C89.5839 2.30217 89.2404 1.99263 88.8722 1.81149C88.5041 1.63034 88.0897 1.53977 87.6291 1.53977H87.5051C86.9146 1.53977 86.4372 1.66717 86.073 1.92196C85.7088 2.17676 85.5267 2.51715 85.5267 2.94314C85.5267 3.32932 85.6695 3.61795 85.9549 3.80906C86.2404 4.00015 86.6016 4.14149 87.0386 4.23306L88.515 4.54359C88.759 4.59535 89.013 4.67199 89.2769 4.77351C89.5406 4.87503 89.7867 5.01338 90.015 5.18855C90.2434 5.36373 90.4284 5.58567 90.5701 5.8544C90.7118 6.12314 90.7827 6.45059 90.7827 6.83677C90.7827 7.57728 90.5101 8.16251 89.9648 8.59248C89.4195 9.02246 88.6666 9.23744 87.7059 9.23744H87.576ZM101.265 8.83733C101.694 9.10408 102.202 9.23744 102.789 9.23744H102.907C103.494 9.23744 104.002 9.10408 104.431 8.83733C104.86 8.57059 105.192 8.20432 105.426 7.73851C105.66 7.27272 105.777 6.73923 105.777 6.13807C105.777 5.53292 105.66 4.99745 105.426 4.53165C105.192 4.06584 104.86 3.69958 104.431 3.43284C104.002 3.16609 103.494 3.03272 102.907 3.03272H102.789C102.202 3.03272 101.694 3.16609 101.265 3.43284C100.836 3.69958 100.504 4.06584 100.27 4.53165C100.036 4.99745 99.9188 5.53292 99.9188 6.13807C99.9188 6.73923 100.036 7.27272 100.27 7.73851C100.504 8.20432 100.836 8.57059 101.265 8.83733ZM102.795 8.36555H102.901C103.488 8.36555 103.952 8.16251 104.295 7.75642C104.637 7.35034 104.809 6.81088 104.809 6.13806C104.809 5.46126 104.637 4.9208 104.295 4.51671C103.952 4.11261 103.488 3.91057 102.901 3.91057H102.795C102.208 3.91057 101.744 4.11261 101.401 4.51671C101.059 4.9208 100.887 5.46126 100.887 6.13806C100.887 6.81088 101.059 7.35034 101.401 7.75642C101.744 8.16251 102.208 8.36555 102.795 8.36555ZM107.773 3.1641V11.6142H108.706V8.10279C108.927 8.48102 109.214 8.76468 109.569 8.95378C109.923 9.14289 110.313 9.23744 110.738 9.23744H110.856C111.376 9.23744 111.829 9.10607 112.214 8.8433C112.6 8.58054 112.9 8.21627 113.115 7.75046C113.33 7.28466 113.437 6.7472 113.437 6.13807C113.437 5.52496 113.33 4.98551 113.115 4.51971C112.9 4.0539 112.6 3.68962 112.214 3.42686C111.829 3.1641 111.376 3.03272 110.856 3.03272H110.738C110.301 3.03272 109.906 3.13326 109.554 3.3343C109.202 3.53535 108.919 3.83493 108.706 4.23306V3.1641H107.773ZM110.525 8.37152H110.638C111.201 8.37152 111.646 8.17644 111.975 7.78628C112.304 7.39612 112.468 6.84672 112.468 6.13806C112.468 5.42941 112.304 4.88001 111.975 4.48984C111.646 4.09968 111.201 3.90461 110.638 3.90461H110.525C110.088 3.90461 109.715 4.03399 109.406 4.29277C109.097 4.55155 108.864 4.88796 108.706 5.30201V6.96815C108.864 7.3822 109.098 7.71959 109.409 7.98037C109.72 8.24114 110.092 8.37152 110.525 8.37152ZM114.943 8.07294C115.47 8.84927 116.321 9.23744 117.494 9.23744H117.618C118.339 9.23744 118.899 9.07521 119.299 8.75075C119.698 8.42627 119.897 8.00327 119.897 7.48173C119.897 7.00797 119.751 6.63374 119.457 6.35902C119.164 6.08432 118.756 5.89124 118.232 5.77976L117.069 5.53491C116.711 5.45927 116.455 5.35875 116.301 5.23334C116.148 5.10793 116.071 4.93973 116.071 4.72872C116.071 4.458 116.196 4.246 116.446 4.09272C116.696 3.93945 117.024 3.86281 117.429 3.86281H117.535C117.882 3.86281 118.187 3.92651 118.451 4.0539C118.715 4.18131 118.945 4.38634 119.142 4.669L119.791 4.13751C119.295 3.40099 118.547 3.03272 117.547 3.03272H117.429C116.744 3.03272 116.192 3.19496 115.773 3.51943C115.353 3.8439 115.144 4.27287 115.144 4.80636C115.144 5.63843 115.707 6.16992 116.833 6.40083L117.972 6.63814C118.322 6.71641 118.573 6.82244 118.725 6.95621C118.889 7.09953 118.97 7.29063 118.97 7.5295C118.97 7.80819 118.849 8.02417 118.607 8.17744C118.365 8.33072 118.027 8.40736 117.594 8.40736H117.488C116.642 8.40736 116.01 8.10479 115.592 7.49964L114.943 8.07294Z"}),j.jsx("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M14.7972 9.18846H16.0799C16.1622 9.18846 16.209 9.1404 16.1884 9.05598C15.4415 6.36173 14.3061 3.39664 13.1708 0.872397C13.1352 0.777286 13.0408 0.719606 12.9424 0.732885H11.2714C11.1696 0.727073 11.0764 0.791175 11.043 0.889988C9.90078 3.39079 8.77119 6.35939 8.02992 9.05598C8.00707 9.1404 8.05389 9.18846 8.13613 9.18846H9.37197C9.43729 9.19366 9.49573 9.14691 9.50674 9.0806C9.67235 8.38534 9.87795 7.65493 10.1132 6.91746H14.0492C14.2844 7.65493 14.4911 8.38534 14.6614 9.0806C14.6734 9.14678 14.7319 9.19318 14.7972 9.18846ZM12.2194 2.06241C12.7082 3.1727 13.1845 4.3932 13.6139 5.61371H10.5427C10.9721 4.3932 11.4541 3.1727 11.943 2.06241H12.2194ZM6.29128 1.96269V0.848619C6.28292 0.807134 6.27132 0.779014 6.25648 0.764251C6.23422 0.742099 6.20415 0.73015 6.17315 0.730999H0.217229C0.153887 0.730999 0.102539 0.783713 0.102539 0.848619V9.07134C0.102539 9.13625 0.153887 9.18886 0.217229 9.18886H1.39052C1.45386 9.18886 1.50521 9.13625 1.50521 9.07134V5.70563H5.36113C5.42447 5.70563 5.47583 5.65301 5.47583 5.58811V4.47404C5.47583 4.40914 5.42447 4.35652 5.36113 4.35652H1.50521V2.0802H6.17659C6.23993 2.0802 6.29128 2.02758 6.29128 1.96269ZM18.4212 5.15414C18.4212 2.57591 20.1018 0.730993 22.5591 0.730993H22.7373C24.2639 0.730993 25.4445 1.51086 26.0765 2.6376C26.0948 2.66576 26.1 2.70049 26.0908 2.73284C26.0818 2.76519 26.0592 2.792 26.029 2.80638L24.9792 3.32785C24.9456 3.35012 24.9043 3.35761 24.8649 3.34862C24.8256 3.33961 24.7917 3.31487 24.7708 3.28013C24.33 2.50607 23.6678 2.09869 22.6875 2.09869H22.5093C21.0045 2.09869 19.9212 3.28594 19.9212 5.09711C19.9212 6.85938 20.9467 8.0711 22.5093 8.0711H22.691C23.6933 8.0711 24.2766 7.72888 24.7245 7.20742C24.7699 7.14495 24.8548 7.12687 24.9214 7.16551L26 7.6928C26.0337 7.70776 26.0567 7.73978 26.0603 7.77661C26.0577 7.80982 26.0451 7.84146 26.0244 7.8674C25.3624 8.83817 24.1725 9.43762 22.7153 9.43762H22.5359C19.9953 9.43529 18.4212 7.66021 18.4212 5.15414ZM35.5022 9.07149V7.95879C35.503 7.92643 35.4909 7.8951 35.4685 7.87221C35.4462 7.84934 35.4155 7.83691 35.3839 7.8379H30.4684V5.61485H34.3804C34.4437 5.61485 34.4951 5.56231 34.4951 5.49749V4.39653C34.4951 4.33171 34.4437 4.27917 34.3804 4.27917H30.4684V2.07843H35.2785C35.3417 2.07843 35.3931 2.02589 35.3931 1.96106V0.848364C35.3931 0.783542 35.3417 0.730993 35.2785 0.730993H29.1805C29.1172 0.730993 29.0659 0.783542 29.0659 0.848364V9.07149C29.0659 9.13631 29.1172 9.18885 29.1805 9.18885H35.3874C35.4507 9.18885 35.5022 9.13631 35.5022 9.07149ZM46.1468 6.8682C46.1468 8.33122 45.0333 9.18885 43.0014 9.18885H38.8377C38.7729 9.18885 38.7203 9.13632 38.7203 9.07152V0.848319C38.7203 0.783524 38.7729 0.730993 38.8377 0.730993H42.6314C44.6163 0.730993 45.6511 1.5288 45.6511 2.91908C45.6511 3.75324 45.2822 4.42434 44.2229 4.74464C45.5665 5.02504 46.1468 5.82871 46.1468 6.8682ZM42.602 2.04501H40.1567V4.31757H42.602C43.7389 4.31757 44.1994 3.93157 44.1994 3.18188C44.1994 2.43217 43.7389 2.04501 42.602 2.04501ZM44.6704 6.73796C44.6704 5.98826 44.2006 5.59523 43.0072 5.59523H40.1567V7.87014H43.0072C44.2287 7.87014 44.6704 7.49118 44.6704 6.74148V6.73796ZM53.1138 0.730993C50.5198 0.730993 48.8698 2.55963 48.8698 5.0843C48.8698 7.62413 50.5187 9.43762 53.1138 9.43762H53.29C55.884 9.43762 57.534 7.62063 57.534 5.0843C57.534 2.54798 55.884 0.730993 53.29 0.730993H53.1138ZM56.0488 5.0843C56.0488 6.88965 54.9767 8.07108 53.29 8.07108H53.1138C51.4157 8.07108 50.355 6.88848 50.355 5.0843C50.355 3.28013 51.4272 2.09868 53.1138 2.09868H53.29C54.988 2.09868 56.0488 3.27896 56.0488 5.0843ZM60.2571 5.0843C60.2571 2.55963 61.9069 0.730993 64.5005 0.730993H64.6767C67.2704 0.730993 68.9213 2.54798 68.9213 5.0843C68.9213 7.62063 67.2704 9.43762 64.6767 9.43762H64.5005C61.9069 9.43762 60.2571 7.62413 60.2571 5.0843ZM64.6767 8.07108C66.3631 8.07108 67.4351 6.88965 67.4351 5.0843C67.4351 3.27896 66.3746 2.09868 64.6767 2.09868H64.5005C62.8152 2.09868 61.7422 3.28013 61.7422 5.0843C61.7422 6.88848 62.8027 8.07108 64.5005 8.07108H64.6767ZM77.6431 9.18867H79.2185C79.3092 9.18867 79.3498 9.11715 79.2905 9.04328C78.0129 7.53073 76.6159 6.1249 75.1134 4.83959C76.481 3.6488 77.7362 2.33262 78.8627 0.907944C78.8868 0.883291 78.9016 0.850949 78.9045 0.816491C78.9045 0.768406 78.8685 0.732065 78.7965 0.732065H77.3119C77.2505 0.725018 77.1904 0.753064 77.1561 0.804758C76.2043 2.01796 75.1544 3.14945 74.0171 4.18764H73.3102V0.852836C73.3102 0.788081 73.2582 0.735583 73.194 0.735583H72.0082C71.9439 0.735583 71.8919 0.788081 71.8919 0.852836V9.0679C71.8919 9.13266 71.9439 9.18515 72.0082 9.18515H73.194C73.2582 9.18515 73.3102 9.13266 73.3102 9.0679V5.57714H74.0078C75.2511 6.66402 76.4123 7.843 77.4816 9.10425C77.5167 9.1594 77.5782 9.19156 77.6431 9.18867Z"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.FbshopsIcon=a}),98); __d("WAWebMediaGalleryView.react",["fbt","WAWebClassnames","WAWebEmptyState.react","WAWebFbtIntlList","WAWebKeyboardRotateFocusArrows.react","WAWebSpinner.react","WAWebStylesEnv","WAWebUISpacing","react","stylex","useMergeRefs"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useRef,n={container:{display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",alignItems:"x6s0dn4",justifyContent:"xl56j7k",paddingTop:"x1yrsyyn",marginEnd:"x1clhkwu",overflowY:"x10wlt62",$$css:!0},containerRefreshed:{display:"x78zum5",flexWrap:"x1a02dak",columnGap:"xfex06f",$$css:!0},justifySpaceBetween:{justifyContent:"x1qughib",width:"xh8yej3",$$css:!0},galleryEmpty:{height:"xqvfhly",paddingTop:"xexx8yu",paddingBottom:"xr1496l",fontSize:"x1f6kntn",lineHeight:"x1i47q4g",color:"x12lhmx5",$$css:!0},fontSmoothing:{"-webkit-font-smoothing":"xvmahel","-moz-osx-font-smoothing":"xlh3980",$$css:!0},drawer:{paddingTop:"xoawnu0",paddingBottom:"xwdrw0q",paddingStart:"xzte8zb",paddingEnd:"x1ehmjgc",marginEnd:"x11i5rnm",overflowY:"x1rife3k",$$css:!0},themeChatInfo:{color:"xnv7mtq",$$css:!0}};function o(){return l.jsx("div",{className:"x1n2onr6 xa1il55 xqtp20y x1clhkwu x1hmdwey x1gk22k6"})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.mediaCollection,f=a.fullCollection,g=a.chat,h=a.onScroll,i=a.justify,k=a.isRefresh;k=k===void 0?!1:k;var q=a.medias||a.productMedias;a=a.theme==="chat-info";var r=e.length===0,s=m(null),t=m(null);b=c("useMergeRefs")(b,s);if(!q)return null;i=(j||(j=c("stylex")))(k?[n.containerRefreshed,d("WAWebUISpacing").uiPadding.top4,d("WAWebUISpacing").uiPadding.bottom20]:n.container,Boolean(f)&&n.drawer,r&&n.galleryEmpty,r&&d("WAWebStylesEnv").isOSMac&&n.fontSmoothing,i==="space-between"&&n.justifySpaceBetween,a&&r&&n.themeChatInfo);r=[].concat(q);if(e.queryMediaBefore!=null&&(f||r.length<6)){k={0:"x78zum5 x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 xa1il55 xmo9yow xyorhqc x1hmdwey x1gk22k6",4:"x78zum5 x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1brnrfz x9f619 xccv8h0",2:"x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 xa1il55 xmo9yow xyorhqc x1hmdwey x1gk22k6 x1s85apg x1axa3pm xze2x15",6:"x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1brnrfz x9f619 xccv8h0 x1s85apg x1axa3pm xze2x15",1:"x78zum5 x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 xa1il55 x1hmdwey x1gk22k6 xqvfhly xdj266r x11i5rnm xat24cr x1mh8g0r",5:"x78zum5 x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1brnrfz x9f619 xccv8h0 xqvfhly xdj266r x11i5rnm xat24cr x1mh8g0r",3:"x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 xa1il55 x1hmdwey x1gk22k6 x1s85apg x1axa3pm xze2x15 xqvfhly xdj266r x11i5rnm xat24cr x1mh8g0r",7:"x6s0dn4 xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1brnrfz x9f619 xccv8h0 x1s85apg x1axa3pm xze2x15 xqvfhly xdj266r x11i5rnm xat24cr x1mh8g0r"}[!!k<<2|!!(!f&&r.length>=3)<<1|!!(e.length===0)<<0];r.push(l.jsxs("div",{className:k,children:[l.jsx("span",{className:"x1etwn82 x1ukowes x14obwa1"}),l.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24})]},"spinner"))}if(q.length===0){if(f)if(e.queryMediaBefore!=null)return l.jsx("div",babelHelpers["extends"]({className:"xoawnu0 xwdrw0q xzte8zb x1ehmjgc x11i5rnm x1n2onr6 xhtitgo x78zum5 x1iyjqo2 xdt5ytf x6ikm8r x1odjw0f x1hc1fzr"},{children:l.jsx(d("WAWebEmptyState.react").Loading,{})}));else if(e.hasMediaBefore!==!0)return l.jsx(d("WAWebEmptyState.react").MediaMsgs,{});if(a)return null;e.queryMediaBefore==null&&e.hasMediaBefore!==!0&&(i=d("WAWebClassnames").classnamesConvertMeToStylexPlease(i,{0:"xqvfhly xexx8yu xr1496l x1f6kntn x1i47q4g x12lhmx5",1:"xqvfhly xexx8yu xr1496l x1f6kntn x1i47q4g x12lhmx5 xvmahel xlh3980"}[!!d("WAWebStylesEnv").isOSMac<<0]),r=[p(Math.max(g?g.docCount:0,0),Math.max(g?g.linkCount:0,0),Math.max(g?g.productCount:0,0))])}else for(k=0;k<6;k++)r.push(l.jsx(o,{},"empty"+k));return l.jsx(c("WAWebKeyboardRotateFocusArrows.react"),{ref:t,customSelector:"[role='listitem']",children:l.jsx("div",{ref:b,tabIndex:0,onFocus:function(){if(document.activeElement===s.current){var a;(a=t.current)==null?void 0:a.focusFirst()}},onScroll:h,"data-testid":void 0,className:i,children:r})})}a.displayName=a.name+" [from "+f.id+"]";function p(a,b,d){var e=[];a!=null&&a>0&&e.push(h._(/*BTDS*/"__JHASH__IWQorRbDtS1__JHASH__",[h._plural(a,"count")]));b!=null&&b>0&&e.push(h._(/*BTDS*/"__JHASH__pr_FnAjT2yC__JHASH__",[h._plural(b,"count")]));d!=null&&d>0&&e.push(h._(/*BTDS*/"__JHASH__m8472i-Juvh__JHASH__",[h._plural(d,"count")]));return e.length>0?c("WAWebFbtIntlList")(e,c("WAWebFbtIntlList").CONJUNCTIONS.NONE,c("WAWebFbtIntlList").DELIMITERS.COMMA):h._(/*BTDS*/"__JHASH__XyvQ03zzvbR__JHASH__")}p.displayName=p.name+" [from "+f.id+"]";b=a;g.EmptyCanvas=o;g.MediaGalleryView=b}),226); __d("WAWebProductCatalogCatalogDrawerSection.react",["fbt","WAWebBizGatingUtils","WAWebButton.react","WAWebChevronIcon.react","WAWebDrawerContext","WAWebDrawerSection.react","WAWebFbshopsIcon.react","WAWebFlex.react","WAWebFlexItem.react","WAWebMediaGalleryView.react","WAWebProductCatalogContext","WAWebProductCatalogLogEvents","WAWebProductCatalogProductThumb.react","WAWebProductCollection","WAWebStateUtils","WAWebUnstyledButton.react","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.useContext,m=b.useEffect,n=3,o={addIcon:{position:"x1n2onr6",width:"xa1il55",height:"xqtp20y",paddingBottom:"x85gtzv",marginTop:"xdj266r",marginEnd:"x1emribx",marginBottom:"x1e56ztr",marginStart:"x1mh8g0r",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1vynwtf",borderEndColor:"xuz1fv3",borderBottomColor:"x1j5b3ru",borderStartColor:"xwjow5u",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb","::before_position":"x1hmns74","::before_top":"x1knuo7r","::before_left":"xgdch9p","::before_start":null,"::before_end":null,"::before_display":"x1fgarty","::before_width":"x1j6c3ea","::before_height":"xv7f310","::before_content":"x1cpjm7i","::before_background":"x11zlndt","::before_transform":"xbnewub","::after_position":"x1j6awrg","::after_top":"xoqv437","::after_left":"x16v8oms","::after_start":null,"::after_end":null,"::after_display":"xhkezso","::after_width":"xqysinb","::after_height":"x6giem4","::after_content":"x1s928wv","::after_background":"x1qtjz5","::after_transform":"x128ww4c",$$css:!0},largeGallerySpacing:{width:"x1anfit2",height:"xqtp20y",marginEnd:"x11i5rnm",marginBottom:"x14owe82",$$css:!0},placeholderThumb:{width:"xa1il55",height:"xdox8uz",paddingBottom:"x1ghzhde",marginTop:"xdj266r",marginEnd:"x1emribx",marginBottom:"x1e56ztr",marginStart:"x1mh8g0r",backgroundColor:"xhub2e1",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",$$css:!0},subtitle:{marginTop:"xdj266r",marginEnd:"x1t4t16n",marginBottom:"xat24cr",marginStart:"x1mh8g0r",fontSize:"x1f6kntn",color:"x1anpt5t",$$css:!0},chevron:{color:"xt16idv",$$css:!0}};function p(a){var b=a.catalogEntryLabel;a=a.onClick;return b==null?null:k.jsx("div",babelHelpers["extends"]({className:"x1k70j0n x11i5rnm xat24cr x1mh8g0r x2b8uid"},{children:k.jsx(d("WAWebButton.react").Button,{testid:void 0,type:"secondary",onClick:a,children:b})}))}p.displayName=p.name+" [from "+f.id+"]";function q(){return k.jsx("div",babelHelpers["extends"]({className:"x1gslohp x2b8uid"},{children:k.jsx(d("WAWebFbshopsIcon.react").FbshopsIcon,{displayInline:!0})}))}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.catalog,e=a.filterProductId,f=a.hideIncompleteRows,g=a.onProductImageClick,i=a.onProductThumbClick,j=a.productsToShow,l=a.seeMoreOverlay;a=a.showProductPlaceholders;var m,p,q=j,r;d("WAWebBizGatingUtils").canSeeBizProfileV3()&&(r="largeGallerySpacing");if(b!=null){p=b.productCollection;var s=b.productCollection.getProductModels();f&&s.length>n&&(q=Math.min(j,s.length-s.length%n));m=s.slice(0,q+1).filter(function(a){a=a.id.toString();return a!==e}).map(function(a,c){var e;e=(e=a.getPreviewImage())==null?void 0:e.mediaData;if(!e)return k.jsx(k.Fragment,{});var f;l===!0&&c===q-1&&b.productCollection.length>q-1&&(f=h._(/*BTDS*/"__JHASH__8kHFx1RcO-O__JHASH__"));c=k.jsx(d("WAWebProductCatalogProductThumb.react").ProductThumb,{onClick:function(){return i(f!=null,a)},mediaData:e,overlayContent:f,theme:r},a.id.toString());return c}).slice(0,q)}else p=new(d("WAWebProductCollection").ProductCollection)(),p.add({id:"_ph"});if((m==null||m.length===0)&&a!==!0)return null;f=o.addIcon;j=[];if(a===!0)for(s=(a=(s=m)==null?void 0:s.length)!=null?a:0;s<q;s++){j.push(k.jsx(c("WAWebUnstyledButton.react"),{onClick:g,title:h._(/*BTDS*/"__JHASH__kJh1Nf4lxnu__JHASH__"),xstyle:[f,r==="largeGallerySpacing"&&o.largeGallerySpacing],children:k.jsx(k.Fragment,{})},"_ph"+s));f=o.placeholderThumb}var t;d("WAWebBizGatingUtils").canSeeBizProfileV3()&&(t="space-between");a=m!=null?[].concat(m,j):j;return k.jsx(d("WAWebMediaGalleryView.react").MediaGalleryView,{productMedias:a,mediaCollection:p,justify:t})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=a.onProductCatalog,e=a.title,f=a.subtitle,g=a.animation,i=a.sectionTheme;i=i===void 0?"padding":i;var j=a.shouldLog,n=a.catalog,s=a.onProductDetail,t=a.filterProductId,u=a.productsToShow;u=u===void 0?6:u;var v=a.hideIncompleteRows;v=v===void 0?!1:v;var w=a.showProductPlaceholders,x=a.seeMoreOverlay,y=a.catalogEntryLabel;a=a.showShopsLogo;var z=l(d("WAWebDrawerContext").DrawerContext);m(function(){j===!0&&n!=null&&d("WAWebProductCatalogLogEvents").logBusinessProfileCatalogView({catalogOwnerWid:n.id,catalogContext:d("WAWebProductCatalogContext").getProductCatalogContext(z)})},[]);y=k.jsx(p,{catalogEntryLabel:y,onClick:function(){return b(d("WAWebProductCatalogContext").getProductCatalogContext(z),"ContactInfo")}});var A=function(a){j===!0&&d("WAWebProductCatalogLogEvents").logProfileProductClick({product:d("WAWebStateUtils").unproxy(a),catalogContext:d("WAWebProductCatalogContext").getProductCatalogContext(z)}),s(a)};u=k.jsx(r,{productsToShow:u,catalog:n,hideIncompleteRows:v,filterProductId:t,seeMoreOverlay:x,showProductPlaceholders:w,onProductThumbClick:function(a,c){return a?b(d("WAWebProductCatalogContext").getProductCatalogContext(z),"ContactInfo"):A(c)},onProductImageClick:function(){return b(d("WAWebProductCatalogContext").getProductCatalogContext(z),"ContactInfo")}});v=f!=null&&f!==""?k.jsx(c("WAWebFlexItem.react"),{xstyle:o.subtitle,children:f}):null;t=k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center","aria-label":"catalog-button",children:[v,k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{xstyle:o.chevron,directional:!0,height:21})})]});return k.jsxs(c("WAWebDrawerSection.react"),{title:e!=null&&e!==""?e:h._(/*BTDS*/"__JHASH__jNygjCDe5tH__JHASH__"),titleOnClick:function(){return b(d("WAWebProductCatalogContext").getProductCatalogContext(z),"ContactInfo")},subtitle:t,theme:i,animation:g,children:[u,y,a===!0?k.jsx(q,{}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizShopsManagePopup.react",["fbt","WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebButton.react","WAWebCancelablePopup.react","WAWebModal.react","WAWebModalManager","WAWebUserPrefsMeUser","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function k(){var a=d("WAWebUserPrefsMeUser").getMeUser();return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a)}function a(a){var b=a.onCancelClick,e=a.onCommerceManagerClick,f=a.onViewShopClick;function g(){var a=k();d("WAWebBusinessProfileUtils").goToShop(a);f&&f()}function i(){var a=k();d("WAWebBusinessProfileUtils").goToCommerceManager(a);e&&e()}function l(){d("WAWebModalManager").ModalManager.close(),b&&b()}if(d("WAWebBizGatingUtils").bannedShopsEnabled()){a=k();if(d("WAWebBusinessProfileUtils").isShopBanned(a))return j.jsx(c("WAWebCancelablePopup.react"),{type:d("WAWebModal.react").ModalTheme.ColumnButtons,title:h._(/*BTDS*/"__JHASH__g__h2zntKfj__JHASH__"),onCancel:l,actions:j.jsx(d("WAWebButton.react").Button,{type:"primary",onClick:i,children:h._(/*BTDS*/"__JHASH__5riWR6qyguF__JHASH__")}),children:h._(/*BTDS*/"__JHASH__rUJDBzLMPjl__JHASH__")})}return j.jsx(c("WAWebCancelablePopup.react"),{type:d("WAWebModal.react").ModalTheme.ColumnButtons,title:h._(/*BTDS*/"__JHASH__c7_9GWin2Sl__JHASH__"),onCancel:l,actions:j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebButton.react").Button,{type:"primary",onClick:g,children:h._(/*BTDS*/"__JHASH__ZdJcoXWUUYf__JHASH__")}),j.jsx(d("WAWebButton.react").Button,{type:"primary",onClick:i,children:h._(/*BTDS*/"__JHASH__5riWR6qyguF__JHASH__")})]}),children:h._(/*BTDS*/"__JHASH__rmDUlZSC6yI__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWamEnumShopsManagementAction",[],(function(a,b,c,d,e,f){a=Object.freeze({ACTION_CLICK_SHOPS_SETTING:1,ACTION_CLICK_CATALOG_SETTING:2,ACTION_CLICK_COMMERCE_MANAGER_IN_CATALOG_SETTING:3,ACTION_CLICK_CANCEL_IN_CATALOG_SETTING:4,ACTION_CLICK_VIEW_SHOPS_IN_SHOPS_SETTING:5,ACTION_CLICK_COMMERCE_MANAGER_IN_SHOPS_SETTING:6,ACTION_CLICK_CANCEL_IN_SHOPS_SETTING:7,ACTION_SHOPS_PRODUCT_PREVIEW_VISIBLE:8,ACTION_CLICK_SHOPS_PRODUCT_PREVIEW_TILE:9,ACTION_CLICK_MANAGE_SHOPS:10,ACTION_SHARE_SHOPS:11,ACTION_CLICK_VIEW_SHOPS_FROM_EDIT_BIZ_PROFILE:12,ACTION_CLICK_COMMERCE_MANAGER_FROM_EDIT_BIZ_PROFILE:13,ACTION_CLICK_CANCEL_FROM_EDIT_BIZ_PROFILE:14});f.SHOPS_MANAGEMENT_ACTION=a}),66); __d("WAWebWaShopsManagementWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumShopsManagementAction"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({WaShopsManagement:[2908,{isShopsProductPreviewVisible:[2,d("WAWebWamCodegenUtils").TYPES.BOOLEAN],shopsManagementAction:[1,d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION],shopsSellerJid:[3,d("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{WaShopsManagement:[]});g.WaShopsManagementWamEvent=a}),98); __d("WAWebShopsLog",["WAWebConnModel","WAWebUserPrefsMeUser","WAWebWaShopsManagementWamEvent"],(function(a,b,c,d,e,f,g){function h(){var a=d("WAWebConnModel").Conn.isSMB?d("WAWebUserPrefsMeUser").getMaybeMeUser():void 0;return a==null?void 0:a.user}function a(a,b){b=(b=b)!=null?b:{};var c=b.shouldLogJid;c=c===void 0?!0:c;b=b.isShopsProductPreviewVisible;a=new(d("WAWebWaShopsManagementWamEvent").WaShopsManagementWamEvent)({shopsManagementAction:a,shopsSellerJid:c?h():void 0,isShopsProductPreviewVisible:b});a.commit()}g.logShopsManagementEvent=a}),98); __d("WAWebProductCatalogShopsCatalogDrawerSection.react",["WANullthrows","WAWebBizShopsManagePopup.react","WAWebBusinessProfileUtils","WAWebExternalLink.react","WAWebModalManager","WAWebPipConst","WAWebProductCatalogCatalogDrawerSection.react","WAWebShopsLog","WAWebWamEnumShopsManagementAction","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.animation;b=b===void 0?!0:b;var e=a.businessProfile,f=a.catalog,g=a.hideIncompleteRows,h=a.isEditMode,j=a.productsToShow;a=a.subtitle;var k=i.jsx(c("WAWebBizShopsManagePopup.react"),{onViewShopClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_VIEW_SHOPS_FROM_EDIT_BIZ_PROFILE)},onCommerceManagerClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_FROM_EDIT_BIZ_PROFILE)},onCancelClick:function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_FROM_EDIT_BIZ_PROFILE)}});function l(){h?(d("WAWebModalManager").ModalManager.open(k),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_MANAGE_SHOPS)):d("WAWebBusinessProfileUtils").goToShop(e)}function m(a){if(h)d("WAWebModalManager").ModalManager.open(k),d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_SHOPS_PRODUCT_PREVIEW_TILE,{shouldLogJid:!1});else{a=new URL(c("WANullthrows")(a.url),"https://"+d("WAWebPipConst").HOSTNAME.FACEBOOK);d("WAWebExternalLink.react").openExternalLink(String(a))}}return i.jsx(c("WAWebProductCatalogCatalogDrawerSection.react"),{onProductDetail:m,onProductCatalog:l,catalog:f,subtitle:a,hideIncompleteRows:g,productsToShow:j,showShopsLogo:!0,animation:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebProductCatalogDrawerSection",["fbt","WAWebBusinessProfileUtils","WAWebCatalogManagementFlowLoadable","WAWebProductCatalogCatalogDrawerSection.react","WAWebProductCatalogShopsCatalogDrawerSection.react","WAWebShopsLog","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumShopsManagementAction","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect;function m(a){d("WAWebCatalogManagementFlowLoadable").openCatalogManagementFlow({product:a,entryPoint:d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_PROFILE,isInitialStep:!1})}function a(a){var b=a.animation;b=b===void 0?!0:b;var e=a.businessProfile,f=a.catalog;a=a.openCatalog;var g=a===void 0?m:a;a=d("WAWebBusinessProfileUtils").hasShop(e);var i=!1;l(function(){d("WAWebShopsLog").logShopsManagementEvent(d("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_SHOPS_PRODUCT_PREVIEW_VISIBLE,{shouldLogJid:!1,isShopsProductPreviewVisible:i})},[i]);return a?!i?null:k.jsx(c("WAWebProductCatalogShopsCatalogDrawerSection.react"),{isEditMode:!0,subtitle:h._(/*BTDS*/"__JHASH__NOIbt5jSLqD__JHASH__"),businessProfile:e,catalog:f,productsToShow:3,animation:b}):k.jsx(c("WAWebProductCatalogCatalogDrawerSection.react"),{catalog:f,onProductDetail:g,onProductCatalog:function(){g()},productsToShow:3,catalogEntryLabel:f==null?h._(/*BTDS*/"__JHASH__-o4INtxKgg6__JHASH__"):h._(/*BTDS*/"__JHASH__X5ASIgqPZw1__JHASH__"),showProductPlaceholders:!0,seeMoreOverlay:!0,sectionTheme:"refresh",animation:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebGetMeUsernameQueryAction",["WAWebContactCollection","WAWebGetUsernameQueryJob","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function a(){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebContactCollection").ContactCollection.getMeContact();if(a==null)throw c("err")("Failed to retrieve self contact");a=(yield d("WAWebGetUsernameQueryJob").getUsernameJob());return a});return h.apply(this,arguments)}g.getMeUsername=a}),98); __d("WAWebProfileDrawerUsername.react",["fbt","WANullthrows","WAWebChevronIcon.react","WAWebConnModel","WAWebContactCollection","WAWebDrawerBlock.react","WAWebDrawerSection.react","WAWebFlex.react","WAWebGetMeUsernameQueryAction","WAWebSvgComponentBase","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUsernameGatingUtils","asyncToGeneratorRuntime","react","stylex","useWAWebListener"],(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.useState,o={height:{lineHeight:"x1evy7pa",$$css:!0}};function a(a){var e=a.onClick;a=a.username;m(function(){void p()},[]);var f=c("WANullthrows")(d("WAWebContactCollection").ContactCollection.getMeContact()),g=n(f.username),i=g[0],k=g[1];g=function(){k(f.username)};d("useWAWebListener").useListener(f,"change:username",g);function p(){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WAWebUsernameGatingUtils").usernameSupported()&&(yield d("WAWebGetMeUsernameQueryAction").getMeUsername())});return q.apply(this,arguments)}g=a!=null&&d("WAWebUsernameGatingUtils").usernameChangeEnabled()||a==null&&d("WAWebUsernameGatingUtils").usernameSupported;a=h._(/*BTDS*/"__JHASH__MwTNTnNZ2Xn__JHASH__");g=l.jsx(c("WAWebDrawerBlock.react"),{onClick:g?e:void 0,side:g&&l.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",children:l.jsx(d("WAWebChevronIcon.react").ChevronIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,directional:!0,height:21})}),children:l.jsx(d("WAWebFlex.react").FlexRow,{children:l.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{size:"16",xstyle:[o.height,d("WAWebUISpacing").uiMargin.top6],children:(e=i)!=null?e:a})})});return l.jsxs(l.Fragment,{children:[l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiMargin.top4,d("WAWebUISpacing").uiMargin.end20,d("WAWebUISpacing").uiMargin.bottom28,d("WAWebUISpacing").uiMargin.start30))),l.jsxs(c("WAWebDrawerSection.react"),{theme:"no-padding",animation:!1,children:[l.jsx(d("WAWebFlex.react").FlexRow,{xstyle:[d("WAWebUISpacing").uiMargin.top16,d("WAWebUISpacing").uiMargin.start30],children:l.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{color:"accent",xstyle:d("WAWebConnModel").Conn.isSMB&&[d("WAWebUISpacing").uiMargin.top25],children:h._(/*BTDS*/"__JHASH__GXogTZDly0j__JHASH__")})}),g]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSettingsFlowLoadable",["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")("WAWebSettingsFlow.react").__setRef("WAWebSettingsFlowLoadable").load());return a.SettingsFlow}),"SettingsFlow");d=c("react-loadable")({loader:a,loading:function(a){return j.jsx(c("WAWebLoadingDrawer.react"),{title:h._(/*BTDS*/"__JHASH__oo7mTfTBGys__JHASH__"),error:Boolean(a.error)})}});g.requireBundle=a;g.SettingsFlowLoadable=d}),226); __d("WAWebPrivacyTipBanner.react",["WAWebBotLightBulbIcon.react","WAWebCellV2.react","WAWebDrawerManager","WAWebFbtCommon","WAWebFlex.react","WAWebSettingsFlowLoadable","WAWebSvgComponentBase","WAWebText.react","WAWebUnstyledButton.react","WAWebXAltIcon.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.actionText,e=a.actionTextColor;e=e===void 0?"teal":e;var f=a.image,g=a.imageXStyle,h=a.onAction,j=a.onDismiss,k=a.settingStep,l=a.testId;l=l===void 0?"privacy-tip-banner-action-link":l;l=a.text;f=i.jsx(d("WAWebFlex.react").FlexItem,{style:{width:24,height:24},children:(a=f)!=null?a:i.jsx(d("WAWebBotLightBulbIcon.react").BotLightBulbIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL})});a=function(){k!=null&&d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:k})),h==null?void 0:h()};l=i.jsxs(d("WAWebText.react").WAWebTextMuted,{textWrap:"wrap",weight:"medium",children:[l,b!=null&&i.jsxs(i.Fragment,{children:["\xa0",i.jsx(d("WAWebText.react").WDSClickableText,{color:e,testid:void 0,children:b})]})]});var m;if(j!=null){e=function(a){a.stopPropagation(),j()};m=i.jsx(c("WAWebUnstyledButton.react"),{onClick:e,"aria-label":c("WAWebFbtCommon")("Close"),children:i.jsx(d("WAWebXAltIcon.react").XAltIcon,{})})}return i.jsx(d("WAWebCellV2.react").CellV2,{size:"small",idle:!0,active:!0,material:!0,detailLeft:i.jsx(d("WAWebFlex.react").FlexRow,{xstyle:g,paddingEnd:4,children:f}),primary:l,detailRight:m,onClick:a})}a.displayName=a.name+" [from "+f.id+"]";g.PrivacyTipBanner=a}),98); __d("useWAWebPrivacyTipQuickPromotion",["WAWebSettingsConst","useWAWebBestQuickPromotionForSurface"],(function(a,b,c,d,e,f,g){function a(a,b){a=d("useWAWebBestQuickPromotionForSurface").useBestQuickPromotionForSurface(a,{fireImpression:!0},b);if(a==null)return;b=a.promotion;b=b.promotion.data.primaryAction;var c;b!=null&&b.deepLink!=null&&(c=d("WAWebSettingsConst").SettingsSteps.cast(b.deepLink));return babelHelpers["extends"]({},a,{settingStep:(b=c)!=null?b:d("WAWebSettingsConst").SettingsSteps.Settings})}g.usePrivacyTipQuickPromotion=a}),98); __d("WAWebProfileQuickPromotionSurface.react",["WAWebCTWAConstants","WAWebDrawerSection.react","WAWebPrivacyTipBanner.react","WAWebQuickPromotionGating","WAWebUserPrefsGeneral","react","useWAWebPrivacyTipQuickPromotion"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a=d("useWAWebPrivacyTipQuickPromotion").usePrivacyTipQuickPromotion({surfaceId:d("WAWebCTWAConstants").QP_SURFACE_ID_PROFILE},[d("WAWebUserPrefsGeneral").getLastProfilePicThumbUpdate()]);if(a==null||!d("WAWebQuickPromotionGating").profilePrivacyTipsEnabled())return;var b=a.promotion,e=a.sanitizedText,f=a.image,g=a.dismiss,h=a.primaryActionClick;a=a.settingStep;b=b.promotion.data.primaryAction;return i.jsx(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",children:i.jsx(d("WAWebPrivacyTipBanner.react").PrivacyTipBanner,{text:e,image:f,actionText:b==null?void 0:b.text,onDismiss:g,onAction:h,settingStep:a})})}a.displayName=a.name+" [from "+f.id+"]";g.ProfileQPSurface=a}),98); __d("WAWebPushNameBridge",["Promise","WASendPresenceStatusProtocol","WATimeUtils","WAWebPushNameSync","WAWebSyncdCoreApi"],(function(a,b,c,d,e,f,g){var h;function a(a){if(a){var e=d("WATimeUtils").unixTimeMs();e=c("WAWebPushNameSync").getPushnameMutation(e,a);void d("WASendPresenceStatusProtocol").sendPresenceStatusProtocol({name:a});return d("WAWebSyncdCoreApi").lockForSync([],[e],function(){return(h||(h=b("Promise"))).resolve()})}return(h||(h=b("Promise"))).resolve()}g["default"]=a}),98); __d("WAWebSetPushnameConnAction",["fbt","WAFilteredCatch","WALogger","WAWebActionToast.react","WAWebBackendErrors","WAWebConnModel","WAWebPushNameBridge","WAWebSetPushnameLocallyConnAction","WAWebToastManager","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["models:conn:setPushname dropped"]);j=function(){return a};return a}var k=i||c("react");function a(a){return l(a)}function l(a,b,c){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){b===void 0&&(b=d("WAWebActionToast.react").genId());e===void 0&&(e=!1);var f=c("WAWebPushNameBridge")(a),g=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__sm6Q_jbLi3___JHASH__")),i=d("WAWebConnModel").Conn.pushname,m=f.then(function(){var a;!e&&i!=null&&(a={actionText:h._(/*BTDS*/"__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return l(i,b,!0)}});return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__YgUAAsicbwl__JHASH__"),a)})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(a){if(a.status>=400)return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__ALetZRf2zEk__JHASH__"))}))["catch"](function(a){d("WALogger").WARN(j()).devConsole(a);throw new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__ALetZRf2zEk__JHASH__"),{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return l(a.status,b)}})});d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebActionToast.react").ActionToast,{id:b,initialAction:g,pendingAction:m}));yield f;d("WAWebSetPushnameLocallyConnAction").setPushnameLocally(a)});return m.apply(this,arguments)}g.setPushname=a}),226); __d("WAWebEphemeralAboutDurationsUtils",["WATimeUtils","WAWebABProps","WAWebEphemeralConstants","fbs"],(function(a,b,c,d,e,f,g){var h=[(b=d("WATimeUtils")).DAY_SECONDS,3*b.DAY_SECONDS,b.WEEK_SECONDS,2*b.WEEK_SECONDS];function i(a){a=d("WAWebEphemeralConstants").getDurationForString(a,!0);var b=a.duration;a=a.unit;switch(a){case d("WAWebEphemeralConstants").DurationUnit.Seconds:return c("fbs")._(/*BTDS*/"__JHASH__VORdjyR9ke9__JHASH__",[c("fbs")._plural(b,"duration")]);case d("WAWebEphemeralConstants").DurationUnit.Minutes:return c("fbs")._(/*BTDS*/"__JHASH__pq_rlyFJqhS__JHASH__",[c("fbs")._plural(b,"duration")]);case d("WAWebEphemeralConstants").DurationUnit.Hours:return c("fbs")._(/*BTDS*/"__JHASH__rSYuF_534v8__JHASH__",[c("fbs")._plural(b,"duration")]);case d("WAWebEphemeralConstants").DurationUnit.Days:return c("fbs")._(/*BTDS*/"__JHASH__9SrM1ZX6O-B__JHASH__",[c("fbs")._plural(b,"duration")]);case d("WAWebEphemeralConstants").DurationUnit.Weeks:return c("fbs")._(/*BTDS*/"__JHASH__P9g8a1uOrPX__JHASH__",[c("fbs")._plural(b,"duration")])}}function j(a,b){return{type:b,value:a,label:i(a)}}function a(){var a=h,b=d("WAWebABProps").getABPropConfigValue("text_status_ttl_seconds_allowlist").split(",");b.length!==0&&(a=b.map(function(a){return Number(a)}).filter(function(a){return!Number.isNaN(a)}));b=a.map(function(a){return j(a,"default")});b.sort(function(a,b){a=a.value;b=b.value;return a-b});return b}g.defaultTextStatusEphemeralDuration=b.DAY_SECONDS;g.getTextStatusEphemeralityDurations=a}),226); __d("WAWebTimerIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="timer";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=18;(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 18 19",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),children:[j.jsx("title",{children:k}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00195 0.999023C8.00195 0.449023 8.45195 -0.000976562 9.00195 -0.000976562C14.072 -0.000976562 18.162 4.18902 17.992 9.28902C17.842 13.989 13.912 17.889 9.21195 17.999C4.14195 18.119 0.00195312 14.039 0.00195312 8.99902C0.00195312 6.39902 1.10195 4.06902 2.86195 2.43902C3.26195 2.06902 3.88195 2.07902 4.26195 2.45902L9.70195 7.88902C10.092 8.27902 10.092 8.90902 9.70195 9.29902C9.31195 9.68902 8.68195 9.68902 8.29195 9.29902L3.58195 4.57902C2.59195 5.77902 2.00195 7.31902 2.00195 8.99902C2.00195 12.909 5.19195 16.059 9.12195 15.999C12.972 15.939 16.142 12.589 16.002 8.73902C15.872 5.32902 13.312 2.55902 10.002 2.07902V2.99902C10.002 3.54902 9.55195 3.99902 9.00195 3.99902C8.45195 3.99902 8.00195 3.54902 8.00195 2.99902V0.999023ZM3.00195 8.99902C3.00195 8.44674 3.44967 7.99902 4.00195 7.99902C4.55424 7.99902 5.00195 8.44674 5.00195 8.99902C5.00195 9.55131 4.55424 9.99902 4.00195 9.99902C3.44967 9.99902 3.00195 9.55131 3.00195 8.99902ZM8.00195 13.999C8.00195 13.4467 8.44967 12.999 9.00195 12.999C9.55424 12.999 10.002 13.4467 10.002 13.999C10.002 14.5513 9.55424 14.999 9.00195 14.999C8.44967 14.999 8.00195 14.5513 8.00195 13.999ZM14.002 7.99902C13.4497 7.99902 13.002 8.44674 13.002 8.99902C13.002 9.55131 13.4497 9.99902 14.002 9.99902C14.5542 9.99902 15.002 9.55131 15.002 8.99902C15.002 8.44674 14.5542 7.99902 14.002 7.99902Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.TimerIcon=a}),98); __d("WAWebExpandedTextStatusSection.react",["fbt","WAWebButton.react","WAWebContactCollection","WAWebDeleteIcon.react","WAWebDrawerSection.react","WAWebEditGroupProfileDrawerEmojiStickerPanelPopup.react","WAWebEmoji","WAWebEmoji.react","WAWebEphemeralAboutDurationsUtils","WAWebFlex.react","WAWebFrontendContactGetters","WAWebMediaEditorEmojiIcon.react","WAWebRadio.react","WAWebRichTextField.react","WAWebSelect.react","WAWebSelectMenuItem.react","WAWebSvgComponentBase","WAWebText.react","WAWebTextStatusAction","WAWebTextStatusGatingUtils","WAWebTimerIcon.react","WAWebUISpacing","WAWebUnstyledButton.react","WAWebUserPrefsMeUser","WAWebXAltIcon.react","asyncToGeneratorRuntime","fbs","react","stylex","useWAWebContactValues","useWAWebUnmountSignal"],(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.useRef,o=e.useState,p=60,q=[{emoji:"\ud83d\udc4b",text:c("fbs")._(/*BTDS*/"__JHASH__UjRru2hqq0c__JHASH__").toString()},{emoji:"\ud83d\udcbc",text:c("fbs")._(/*BTDS*/"__JHASH__vwQwt8rb8Fi__JHASH__").toString()},{emoji:"\ud83c\udf0f",text:c("fbs")._(/*BTDS*/"__JHASH__S-DmPoDB5Qf__JHASH__").toString()},{emoji:"\ud83e\udd29",text:c("fbs")._(/*BTDS*/"__JHASH___hHdL8c1lre__JHASH__").toString()},{emoji:"\ud83c\udfb6",text:c("fbs")._(/*BTDS*/"__JHASH__m1tEnB0PdZ___JHASH__").toString()}],r={textEmojiContainer:{width:"xh8yej3",$$css:!0},textStatusContainer:{width:"xh8yej3",$$css:!0},deleteColor:{color:"xt16idv",$$css:!0}};function s(a){var b=a.emoji,e=a.onSave,f;a=o(!1);var g=a[0],h=a[1];a=n();var i=function(){h(!0)};if(b!=null){b=d("WAWebEmoji").EmojiUtil.normalizeEmojiFromString(b);b!=null&&(f=l.jsx(c("WAWebEmoji.react"),{emoji:b},"low-res"))}return l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.end10),{children:[l.jsx("button",{ref:a,onClick:i,children:f?f:l.jsx(d("WAWebMediaEditorEmojiIcon.react").MediaEditorEmojiIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL_LIGHTER})}),g&&a.current&&l.jsx(d("WAWebEditGroupProfileDrawerEmojiStickerPanelPopup.react").EmojiPanelPopup,{anchor:a.current,onSelect:function(a){e(a),h(!1)},onClose:function(){h(!1)}})]}))}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.onSave;a=a.text;var e={ellipsify:!0,multiline:!0,direction:"auto",inferLinesDirection:!0},f=function(a){b(a)};return l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(r.textStatusContainer,d("WAWebUISpacing").uiPadding.horiz10),{children:l.jsx(d("WAWebRichTextField.react").RichTextField,{testid:void 0,value:(a=a)!=null?a:"",managed:!0,editable:!0,inputPlaceholder:h._(/*BTDS*/"__JHASH__YKk1d556uFk__JHASH__"),showRemaining:!0,maxLength:p,onChange:function(a){a=a.text;return f(a)},theme:"text-input",fieldName:h._(/*BTDS*/"__JHASH__bZ1-XS7fZ0S__JHASH__"),lowProfile:!0,emojiTextSettingsInLockMode:e,focusOnMount:!0})}))}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.onSave;a=a.duration;var c=d("WAWebEphemeralAboutDurationsUtils").getTextStatusEphemeralityDurations();return l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:d("WAWebUISpacing").uiPadding.top30,children:[l.jsx(d("WAWebTimerIcon.react").TimerIcon,{height:24,width:24,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL_LIGHTER,xstyle:d("WAWebUISpacing").uiPadding.end10}),l.jsx(d("WAWebSelect.react").Select,{width:180,defaultLabel:h._(/*BTDS*/"__JHASH__s1SdSKT_ilt__JHASH__"),initialSelection:a.toString(),onChange:function(a){return b(Number(a))},testid:void 0,children:c.map(function(a){return l.jsx(d("WAWebSelectMenuItem.react").SelectMenuItem,{optionId:""+a.value,primary:a.label.toString()})})})]})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.emoji,e=a.handleDeleteSuggestion,f=a.onSave,g=a.suggestions;a=a.text;var i=function(a,b){return a+" "+b.trim()};a=l.jsx(d("WAWebRadio.react").RadioGroup,{name:"suggestions",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.NORMAL,checkedValue:i((b=b)!=null?b:"",(b=a)!=null?b:""),options:g.map(function(a,b){var g,h=a.emoji,k=a.text;a=i((a=h)!=null?a:"",(a=k)!=null?a:"");g=d("WAWebEmoji").EmojiUtil.normalizeEmojiFromString((g=h)!=null?g:"");return{value:a,label:l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[g!=null?l.jsx(c("WAWebEmoji.react"),{emoji:g},"low-res"):l.jsx(d("WAWebMediaEditorEmojiIcon.react").MediaEditorEmojiIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL_LIGHTER,height:20,width:20}),l.jsx("span",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.start7),{children:k}))]}),hoverIcon:l.jsx(c("WAWebUnstyledButton.react"),{onClick:function(){return e(b)},children:l.jsx(d("WAWebDeleteIcon.react").DeleteIcon,{iconXstyle:r.deleteColor})}),onChange:function(){return f(h,k)}}})});return l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.top30),{children:[l.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:d("WAWebUISpacing").uiPadding.bottom10,children:h._(/*BTDS*/"__JHASH__yoZpibnx4yR__JHASH__")}),a]}))}v.displayName=v.name+" [from "+f.id+"]";function a(a){var e=a.onClose,f=c("useWAWebUnmountSignal")();a=o([]);var g=a[0],i=a[1],k=function(a){i((a==null?void 0:a.length)?a:q)};a=d("WAWebContactCollection").ContactCollection.assertGet(d("WAWebUserPrefsMeUser").getMeUser());a=d("useWAWebContactValues").useContactValues(a.id,[d("WAWebFrontendContactGetters").getTextStatusString,d("WAWebFrontendContactGetters").getTextStatusEmoji,d("WAWebFrontendContactGetters").getTextStatusEphemeralDuration]);var n=a[0],p=a[1],w=a[2];a=o(n);var x=a[0],y=a[1];a=o(p);var z=a[0],A=a[1];a=d("WAWebEphemeralAboutDurationsUtils").getTextStatusEphemeralityDurations();a=a.find(function(a){return a.value===w});a=o((a=a==null?void 0:a.value)!=null?a:d("WAWebEphemeralAboutDurationsUtils").defaultTextStatusEphemeralDuration);var B=a[0],C=a[1];m(function(){void b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()||f.aborted)return;var a=(yield d("WAWebTextStatusAction").getSuggestions());if(f.aborted)return;k(a)})()},[f.aborted]);a=o(!1);a[0];a[1];a=function(a){y(a)};var D=function(a){A(a)},E=function(){y(null),A(null)},F=function(a){C(a)},G=function(){return g==null?void 0:g.some(function(a){return a.emoji===z&&a.text===x})},H=function(a,b){A(a),y(b)},I=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(x===n&&z===p&&B===w){e();return}yield d("WAWebTextStatusAction").setMyTextStatus(x,z,B).then(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if((Boolean(x)||Boolean(z))&&!G()){var a;yield d("WAWebTextStatusAction").setSuggestions([{emoji:z,text:x}].concat((a=g)!=null?a:[]))}}));e()});return function(){return a.apply(this,arguments)}}(),J=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(a==null||g==null)return;var b=[].concat(g);b.splice(a,1);try{yield d("WAWebTextStatusAction").setSuggestions(b),k(b)}catch(a){}});return function(b){return a.apply(this,arguments)}}(),K=h._(/*BTDS*/"__JHASH__-cBizDKkVAU__JHASH__");I=l.jsx(d("WAWebButton.react").Button,{testid:void 0,type:"primary",onClick:I,children:h._(/*BTDS*/"__JHASH__Hsy4HvIu9qr__JHASH__")},1);var L=l.jsx(d("WAWebButton.react").Button,{testid:void 0,type:"secondary",onClick:e,children:h._(/*BTDS*/"__JHASH__4HfvP_ZA-zm__JHASH__")},0);L=l.jsxs(d("WAWebButton.react").ButtonGroup,{direction:"horizontal",children:[L,I]});I=l.jsx(c("WAWebUnstyledButton.react"),{"aria-label":h._(/*BTDS*/"__JHASH__MoAlVUgNcoB__JHASH__"),testid:void 0,onClick:E,children:l.jsx(d("WAWebXAltIcon.react").XAltIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.GRAY})});return l.jsxs(c("WAWebDrawerSection.react"),{title:K,animation:!1,theme:"padding",children:[l.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:r.textEmojiContainer,align:"center",children:[l.jsx(s,{emoji:z,onSave:D}),l.jsx(t,{text:x,onSave:a}),I]}),l.jsx(u,{duration:B,onSave:F}),l.jsx(v,{text:x,emoji:z,suggestions:g,handleDeleteSuggestion:J,onSave:H}),l.jsx(d("WAWebFlex.react").FlexRow,{justify:"end",className:(j||(j=c("stylex")))(d("WAWebUISpacing").uiPadding.vert30),children:L})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebTextStatusSection",["fbt","WATimeUtils","WAWebClock","WAWebContactCollection","WAWebDrawerSection.react","WAWebEmoji","WAWebEmoji.react","WAWebExpandedTextStatusSection.react","WAWebFlex.react","WAWebFrontendContactGetters","WAWebMediaEditorEmojiIcon.react","WAWebPencilIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebTextStatusGatingUtils","WAWebTextStatusUtils","WAWebUISpacing","WAWebUnstyledButton.react","WAWebUserPrefsMeUser","react","stylex","useWAWebContactValues","useWAWebTextStatus"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useState,n={editIconUnset:{color:"x1grh1yo",fill:"x19k3f58",$$css:!0},editIconSet:{color:"xt16idv",fill:"xztyjsx",$$css:!0}};function a(){var a=d("WAWebContactCollection").ContactCollection.assertGet(d("WAWebUserPrefsMeUser").getMeUser()),b=m(!1),e=b[0],f=b[1];c("useWAWebTextStatus")({contact:a});var g,i;b=d("useWAWebContactValues").useContactValues(a.id,[(b=d("WAWebFrontendContactGetters")).getTextStatusString,b.getTextStatusEmoji,b.getTextStatusLastUpdateTime,b.getTextStatusExpiryTs,b.getTextStatusEphemeralDuration]);var k=b[0],o=b[1],p=b[2],q=b[3];b=b[4];var r=d("WAWebTextStatusUtils").hasTextStatusSet(k,o,p,q,b);if(!d("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()||!a)return null;if(!d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&!r)return null;if(p===d("WAWebTextStatusUtils").TEXT_STATUS_NOT_FETCHED)i=l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.end5),{children:h._(/*BTDS*/"__JHASH__Ra97442lJIL__JHASH__")}));else if(!r)g=l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.end10),{children:l.jsx(d("WAWebMediaEditorEmojiIcon.react").MediaEditorEmojiIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL_LIGHTER})})),i=l.jsx("div",babelHelpers["extends"]({},j.props(d("WAWebUISpacing").uiPadding.end5),{children:h._(/*BTDS*/"__JHASH__A4gwXR_tlwP__JHASH__")}));else{if(o!=null){a=d("WAWebEmoji").EmojiUtil.normalizeEmojiFromString(o);a!=null&&(g=l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.end7),{children:l.jsx(c("WAWebEmoji.react"),{emoji:a,size:"small"},"low-res")})))}Boolean(k)&&(i=l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.end5),{children:k})))}o=l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[g,i]});a=h._(/*BTDS*/"__JHASH__-cBizDKkVAU__JHASH__");k=l.jsx(d("WAWebPencilIcon.react").PencilIcon,{directional:!0,iconXstyle:r?n.editIconSet:n.editIconUnset});r=function(){f(!0)};var s=function(){f(!1)};p=d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&p!==d("WAWebTextStatusUtils").TEXT_STATUS_NOT_FETCHED?l.jsx(c("WAWebUnstyledButton.react"),{"aria-label":h._(/*BTDS*/"__JHASH__4yzZRa0Cj2v__JHASH__"),xstyle:d("WAWebUISpacing").uiMargin.startAuto,testid:void 0,onClick:r,children:k}):null;return e?l.jsx(c("WAWebExpandedTextStatusSection.react"),{onClose:s}):l.jsxs("div",{children:[l.jsx(c("WAWebDrawerSection.react"),{title:a,animation:!1,theme:"padding",children:l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",children:o}),p]})}),l.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiMargin.start30,d("WAWebUISpacing").uiMargin.top4,d("WAWebUISpacing").uiMargin.bottom28,d("WAWebUISpacing").uiMargin.end20),{children:[b!==d("WAWebTextStatusUtils").TEXT_STATUS_DURATION_INFINITE&&q!=null&&l.jsx(d("WAWebText.react").WAWebTextMuted,{as:"span",children:d("WAWebClock").Clock.textStatusExpiryStr(d("WATimeUtils").castToUnixTime(q))}),b===d("WAWebTextStatusUtils").TEXT_STATUS_DURATION_INFINITE&&l.jsx(d("WAWebText.react").WAWebTextMuted,{as:"span",children:h._(/*BTDS*/"__JHASH__ikq5l0Y992X__JHASH__")})]}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUsernameCreationInfoDrawer.react",["fbt","WAWebButton.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebStatusMentionsSenderNuxIcon.react","WAWebText.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={section:{maxWidth:"x13qrzjo",$$css:!0},badge:{marginTop:"xotjm27",$$css:!0},disclaimerText:{textAlign:"x2b8uid",lineHeight:"x16h55sf",$$css:!0},color:{color:"x1prwzq3",fontWeight:"xk50ysn",$$css:!0}};function l(){var a=j.jsx(d("WAWebExternalLink.react").ExternalLink,{xstyle:k.color,href:d("WAWebFaqUrl").getFaqUrl(),children:c("WAWebFbtCommon")("Learn more")});return j.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[k.section,d("WAWebUISpacing").uiMargin.top18],children:j.jsxs(d("WAWebText.react").WAWebTextSmall,{xstyle:k.disclaimerText,children:[h._(/*BTDS*/"__JHASH__y34F4H8TTaq__JHASH__")," ",a]})})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.onBack,e=a.onContinue;a=a.ref;var f=h._(/*BTDS*/"__JHASH__kp3JHlVlFXp__JHASH__"),g=h._(/*BTDS*/"__JHASH__e_OJvPb1hKr__JHASH__"),i=h._(/*BTDS*/"__JHASH__rSthX6_M-hA__JHASH__");return j.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:b}),j.jsxs(c("WAWebDrawerBody.react"),{children:[j.jsx(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:j.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",children:j.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",children:[j.jsx(d("WAWebFlex.react").FlexItem,{xstyle:k.badge,children:j.jsx(d("WAWebStatusMentionsSenderNuxIcon.react").StatusMentionsSenderNuxIcon,{width:87.36,height:87.01})}),j.jsx(d("WAWebText.react").WAWebTextLarge,{textAlign:"center",xstyle:d("WAWebUISpacing").uiMargin.top20,children:g}),j.jsx(l,{})]})})}),j.jsx(c("WAWebDrawerSection.react"),{animation:!1,children:j.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",xstyle:d("WAWebUISpacing").uiPadding.all32,children:j.jsx(d("WAWebButton.react").WAWebButtonPrimary,{stretch:!0,onClick:e,children:i})})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebProfileDrawer.react",["fbt","$InternalEnum","WAFilteredCatch","WAWebBackendErrors","WAWebBizGatingUtils","WAWebBusinessIcon.react","WAWebBusinessProfileCoverPhoto.react","WAWebBusinessProfileIconSection.react","WAWebBusinessProfileUtils","WAWebButton.react","WAWebCatalogCollection","WAWebCatalogLoadErrorLoadable","WAWebCatalogManagementFlowLoadable","WAWebChevronIcon.react","WAWebConfirmPopup.react","WAWebConnModel","WAWebConstantsDeprecated","WAWebContactGetters","WAWebContactInfoLinkedSocialAccounts.react","WAWebCopyPasteSelectable.react","WAWebCreateUsernameDrawer.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerContext","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebEditForm.react","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebFrontendContactGetters","WAWebHooksUseSelfCatalogRecovery","WAWebInfoIcon.react","WAWebInfoRefreshedIcon.react","WAWebKeyboardHotKeys.react","WAWebMerchantDetailsFormFlowLoadable","WAWebMiscGatingUtils","WAWebModalManager","WAWebPhoneIcon.react","WAWebProductCatalogContext","WAWebProductCatalogDrawerSection","WAWebProductCatalogMetaLinkingGatingUtils","WAWebProductCatalogSession","WAWebProfileDrawerUsername.react","WAWebProfilePicPicker.react","WAWebProfileQuickPromotionSurface.react","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebQuickPromotionGating","WAWebRichTextField.react","WAWebSetPushnameConnAction","WAWebStatusContactAction","WAWebText.react","WAWebTextStatusGatingUtils","WAWebTextStatusSection","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebUsernameCreationInfoDrawer.react","WAWebUsernameGatingUtils","WAWebUsernameManagementDrawer.react","WAWebWamEnumBizPlatform","WAWebWamEnumCatalogEntryPoint","WAWebWidFormat","react","stylex","useWAWebContactValues","useWAWebFlow","useWAWebFocusOnMount","useWAWebModelValues","useWAWebUIM","useWAWebUnmountSignal"],(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.useContext,n=e.useEffect,o=e.useRef,p=e.useState,q=139,r=256,s=b("$InternalEnum").Mirrored(["Profile","MerchantDetails","CatalogManagement","UsernameCreationInfo","CreateUsername","EditUsername"]),t={businessComplianceIconWrapper:{paddingEnd:"x15dtd1e",color:"xq22nx5",$$css:!0},businessComplianceText:{flexGrow:"x1iyjqo2",color:"xzwifym",$$css:!0},businessComplianceRightAltIcon:{color:"xt16idv",$$css:!0},photoPickerWrapper:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",justifyContent:"xl56j7k",$$css:!0}};function a(a){var b=a.conn,e=a.contact,f=a.isInitialStep,g=a.onClose,h=a.profilePicThumb,i=a.ref;a=a.status;var j=p(),k=j[0],m=j[1];j=p();var n=j[0],o=j[1];j=c("useWAWebFocusOnMount")();g=d("useWAWebFlow").useFlow(s.Profile,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight,onEnd:g});var q=g[0],r=g[1];if(r.step==null)return null;var t;switch(r.step){case s.Profile:g=function(){r.push(s.MerchantDetails)};var u=function(a){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:"Profile"}}}),d("WAWebCatalogManagementFlowLoadable").createCatalogManagementFlowObject(function(b,c,e){e===!0&&!c?d("WAWebCatalogManagementFlowLoadable").showSelfCatalogLoadErrorToast():(m(b),o(a),r.push(s.CatalogManagement))})},v=function(){r.push(s.UsernameCreationInfo)},w=function(){r.push(s.EditUsername)};t=l.jsx(F,{openMerchantDetailsForm:g,openCatalogDetailsForm:u,openCreateUsernameDrawer:v,openEditUsernameDrawer:w,conn:b,contact:e,profilePicThumb:h,status:a,onClose:function(){return r.pop()},isInitialStep:f});break;case s.MerchantDetails:g=d("WAWebUserPrefsMeUser").getMeUser();t=l.jsx(d("WAWebMerchantDetailsFormFlowLoadable").MerchantDetailsFormFlowLoadable,{contactId:g,onBack:function(){return r.pop()}});break;case s.CatalogManagement:if(!k)return null;t=l.jsx(d("WAWebCatalogManagementFlowLoadable").CatalogManagementFlowLoadable,{catalogId:k,product:n,onBack:function(){return r.pop()},isInitialStep:!1});break;case s.UsernameCreationInfo:t=l.jsx(c("WAWebUsernameCreationInfoDrawer.react"),{onContinue:function(){return r.push(s.CreateUsername)},onBack:function(){return r.pop()},ref:i});break;case s.CreateUsername:t=l.jsx(c("WAWebCreateUsernameDrawer.react"),{ref:i,onBack:function(){return r.pop()}});break;case s.EditUsername:t=(e==null?void 0:e.username)!=null?l.jsx(d("WAWebUsernameManagementDrawer.react").UsernameManagementDrawer,{username:e.username,onBack:function(){return r.pop()}}):null}return l.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:j,children:l.jsx(q,{ref:i,flow:r,children:t})})}a.displayName=a.name+" [from "+f.id+"]";function u(a){var b=a.businessProfile,e=a.catalogResult;a=a.openCatalogDetailsForm;var f=d("WAWebHooksUseSelfCatalogRecovery").useCatalogRecovery();function g(){d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").goToCommerceManager(b)}var i=d("WAWebBizGatingUtils").bannedShopsEnabled()&&d("WAWebBusinessProfileUtils").hasShop(b)&&d("WAWebBusinessProfileUtils").isShopBanned(b);if(i)return l.jsx(c("WAWebDrawerSection.react"),{theme:"padding-large",animation:!1,children:l.jsxs("div",babelHelpers["extends"]({className:"x2b8uid"},{children:[l.jsx("div",babelHelpers["extends"]({className:"x1sgpng x11i5rnm x91k8ka x1mh8g0r x1pg5gke x37zpob x1grh1yo"},{children:h._(/*BTDS*/"__JHASH__kTXf0L3zoK___JHASH__")})),l.jsx(d("WAWebButton.react").Button,{type:"primary",onClick:g,children:h._(/*BTDS*/"__JHASH__5riWR6qyguF__JHASH__")})]}))});if(f)return l.jsx(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__jNygjCDe5tH__JHASH__"),theme:"refresh",animation:!0,children:l.jsx(d("WAWebCatalogLoadErrorLoadable").CatalogLoadErrorLoadable,{ctaDisplayType:d("WAWebCatalogLoadErrorLoadable").CTADisplayType.BUTTON})});return(e==null?void 0:e.catalogError)===!0?l.jsx(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__jNygjCDe5tH__JHASH__"),theme:"refresh",animation:!0,children:l.jsx(d("WAWebCatalogLoadErrorLoadable").CatalogLoadErrorLoadable,{ctaDisplayType:d("WAWebCatalogLoadErrorLoadable").CTADisplayType.NONE,shouldShowHeader:!1})}):l.jsx(c("WAWebProductCatalogDrawerSection"),{businessProfile:b,catalog:e==null?void 0:e.catalog,openCatalog:a,animation:!1})}u.displayName=u.name+" [from "+f.id+"]";var v={ellipsify:!0,multiline:!0,direction:"auto",inferLinesDirection:!0};function w(a){var b=a.unmountSignal,e=a.aboutInput,f=a.contact,g=a.openCreateUsernameDrawer,i=a.openEditUsernameDrawer,k=o(!1),m=d("useWAWebModelValues").useModelValues(a.conn,["pushname"]);a=p(m.pushname);var n=a[0],q=a[1];a=p(!1);var r=a[0],s=a[1];a=function(){k.current=!0};var t=function(a){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("OK"),children:a}))},u=function(){var a,b=n,c=/[\u2714\u2705\u2611]/g;b=(b||"").trim();if(!b)a=h._(/*BTDS*/"__JHASH__etgoAsPA_mc__JHASH__");else if(c.test(b))a=h._(/*BTDS*/"__JHASH__rQVFLJXRAtC__JHASH__");else{a;return!0}t(a);return!1},w=function(){k.current=!1;if(!d("WAWebConnModel").Conn.canSetMyPushname())return;var a=n;a=(a||"").trim();var c=m.pushname;if(a===c)return;s(!0);d("WAWebSetPushnameConnAction").setPushname(a).then(function(){if(b.aborted)return;s(!1)})},x=function(a){q(a)},y=function(){k.current=!1,q(m.pushname)},z=k.current||r?n:m.pushname,A;d("WAWebConnModel").Conn.isSMB?A=h._(/*BTDS*/"__JHASH__N3UhrvFCcCs__JHASH__"):!d("WAWebUsernameGatingUtils").usernameSupported()?A=h._(/*BTDS*/"__JHASH__DEWUGhYKpOu__JHASH__"):A="";f=l.jsx(c("WAWebProfileDrawerUsername.react"),{username:f==null?void 0:f.username,onClick:(f==null?void 0:f.username)!=null?i:g});i=l.jsx(c("WAWebDrawerSection.react"),{titleTestId:"about-section",title:h._(/*BTDS*/"__JHASH__sFib9WstPWX__JHASH__"),theme:"padding",animation:!1,children:e});g=h._(/*BTDS*/"__JHASH__1ng15-MpuK5__JHASH__");return l.jsxs(l.Fragment,{children:[d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&l.jsx(c("WAWebTextStatusSection"),{}),l.jsx(c("WAWebDrawerSection.react"),{titleTestId:"pushname-section",title:h._(/*BTDS*/"__JHASH__YOFS32oaLWs__JHASH__"),theme:"padding",animation:!1,children:l.jsx(d("WAWebRichTextField.react").RichTextField,{testid:void 0,value:z,editable:d("WAWebConnModel").Conn.canSetMyPushname(),pending:r,showRemaining:!0,validate:u,maxLength:c("WAWebConstantsDeprecated").MAX_PUSHNAME_LENGTH,onBeginEdit:a,onChange:function(a){a=a.text;return x(a)},onSave:w,onCancel:y,emojiBtnPosition:"side",lockable:!0,lowProfile:!0,constrainedWidth:!0,emojiTextSettingsInLockMode:v,ariaLabel:g,fieldName:g})}),l.jsx("div",babelHelpers["extends"]({"data-testid":void 0},(j||(j=c("stylex"))).props([d("WAWebUISpacing").uiMargin.top4,d("WAWebUISpacing").uiMargin.end20,d("WAWebUISpacing").uiMargin.bottom28,d("WAWebUISpacing").uiMargin.start30]),{children:l.jsx(d("WAWebText.react").WAWebTextMuted,{as:"span",children:A})})),!d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&i,d("WAWebUsernameGatingUtils").usernameSupported()&&f]})}w.displayName=w.name+" [from "+f.id+"]";function x(a){return d("WAWebMiscGatingUtils").isBlueLockingEnabled()?l.jsx(A,babelHelpers["extends"]({},a)):l.jsx(z,babelHelpers["extends"]({},a))}x.displayName=x.name+" [from "+f.id+"]";function y(a){if(d("WAWebBizGatingUtils").blockCatalogCreationECommerceComplianceIndia(a.businessProfile))return!1;return d("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf()?!1:!0}function z(a){var b=a.contact,e=a.openMerchantDetailsForm,f=a.businessProfile,g=a.openCatalogDetailsForm,i=a.catalogResult,j=a.aboutInput,k=a.openCreateUsernameDrawer,m=a.openEditUsernameDrawer;a=a.isRefreshed;j=l.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,{Icon:d("WAWebInfoIcon.react").InfoIcon,content:j});var n=l.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,{Icon:d("WAWebPhoneIcon.react").PhoneIcon,type:"container",content:l.jsxs("div",{children:[l.jsx(d("WAWebCopyPasteSelectable.react").SelectableDiv,{className:"xdod15v",selectable:!0,children:d("WAWebWidFormat").widToFormattedUser(d("WAWebUserPrefsMeUser").assertGetMe())}),l.jsx("div",babelHelpers["extends"]({className:"x1sgpng x1pg5gke x37zpob x1grh1yo"},{children:h._(/*BTDS*/"__JHASH__xs1WLzRTqZQ__JHASH__")}))]})});j=d("WAWebMiscGatingUtils").isBlueLockingEnabled()?l.jsx(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__qBaFho7UgG9__JHASH__"),theme:"refresh",animation:!1,children:j}):l.jsxs(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__sQA6K2KGpv4__JHASH__"),theme:"refresh",animation:!1,children:[j,n]});n=l.jsx(c("WAWebProfileDrawerUsername.react"),{username:b==null?void 0:b.username,onClick:(b==null?void 0:b.username)!=null?m:k});return l.jsxs("div",{children:[l.jsx(c("WAWebEditForm.react"),{isRefreshed:a}),d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&l.jsx(c("WAWebTextStatusSection"),{}),d("WAWebBizGatingUtils").canSeeECommerceComplianceIndiaSoftEnforcement(b.id)&&l.jsx(D,{onTitleClick:e}),y(b)&&l.jsx(u,{businessProfile:f,openCatalogDetailsForm:g,catalogResult:i}),l.jsx(E,{contact:b}),!d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&j,d("WAWebUsernameGatingUtils").usernameSupported()&&n]})}z.displayName=z.name+" [from "+f.id+"]";function A(a){var b=a.contact,e=a.openMerchantDetailsForm,f=a.businessProfile,g=a.openCatalogDetailsForm,i=a.catalogResult,j=a.aboutInput,k=a.openCreateUsernameDrawer,m=a.openEditUsernameDrawer;a=a.isRefreshed;j=l.jsx(d("WAWebBusinessProfileIconSection.react").IconSection,{Icon:a?d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon:d("WAWebInfoIcon.react").InfoIcon,content:j});j=l.jsx(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__MTPnEE3YD4H__JHASH__"),theme:"refresh",animation:!1,children:j});m=l.jsx(c("WAWebProfileDrawerUsername.react"),{username:b==null?void 0:b.username,onClick:(b==null?void 0:b.username)!=null?m:k});return l.jsxs("div",{children:[l.jsx(c("WAWebEditForm.react"),{isRefreshed:a}),d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&l.jsx(c("WAWebTextStatusSection"),{}),d("WAWebBizGatingUtils").canSeeECommerceComplianceIndiaSoftEnforcement(b.id)&&l.jsx(D,{onTitleClick:e}),y(b)&&l.jsx(u,{businessProfile:f,openCatalogDetailsForm:g,catalogResult:i}),l.jsx(E,{contact:b}),!d("WAWebTextStatusGatingUtils").sendTextStatusEnabled()&&j,d("WAWebUsernameGatingUtils").usernameSupported()&&m]})}A.displayName=A.name+" [from "+f.id+"]";function B(a){var b=a.contact;a=a.profilePicThumb;b=b.businessProfile?l.jsx(c("WAWebBusinessProfileCoverPhoto.react"),{contact:b,businessProfile:b.businessProfile,editable:!0,profilePicThumb:a}):null;return l.jsx(c("WAWebDrawerSection.react"),{theme:"padding-no-margin",animation:!1,children:b})}B.displayName=B.name+" [from "+f.id+"]";function C(a){a=a.profilePicThumb;return l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([d("WAWebUISpacing").uiMargin.vert28,t.photoPickerWrapper]),{children:l.jsx(c("WAWebProfilePicPicker.react"),{profilePicThumb:a})}))}C.displayName=C.name+" [from "+f.id+"]";function D(a){a=a.onTitleClick;return l.jsx(c("WAWebDrawerSection.react"),{title:l.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",children:[l.jsx(c("WAWebFlexItem.react"),{xstyle:t.businessComplianceIconWrapper,children:l.jsx(d("WAWebBusinessIcon.react").BusinessIcon,{})}),l.jsx(c("WAWebFlexItem.react"),{xstyle:t.businessComplianceText,children:h._(/*BTDS*/"__JHASH__GEW-b_5vLT1__JHASH__")}),l.jsx(c("WAWebFlexItem.react"),{children:l.jsx(d("WAWebChevronIcon.react").ChevronIcon,{xstyle:t.businessComplianceRightAltIcon,directional:!0,height:21})})]}),theme:"refresh-padding-title",titleOnClick:a,animation:!1})}D.displayName=D.name+" [from "+f.id+"]";function E(a){a=a.contact;return!d("WAWebBizGatingUtils").bizLinkedAccountsEnabled()||!a.businessProfile?null:l.jsx(c("WAWebContactInfoLinkedSocialAccounts.react"),{businessProfile:a.businessProfile,sectionTheme:"refresh-padding-title",showEditHint:!0})}E.displayName=E.name+" [from "+f.id+"]";function F(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.contact,f=a.onClose,g=a.openCatalogDetailsForm,i=a.openMerchantDetailsForm,j=a.openCreateUsernameDrawer,k=a.openEditUsernameDrawer,s=a.isInitialStep,t=c("useWAWebUIM")(),u=d("useWAWebModelValues").useModelValues(a.status,["status"]),y=p(u.status),z=y[0],A=y[1];y=p(!1);var D=y[0],E=y[1],F=o(!1);y=m(d("WAWebDrawerContext").DrawerContext);var G=c("useWAWebUnmountSignal")(),H=d("useWAWebContactValues").useContactValues(a.contact.id,[d("WAWebFrontendContactGetters").getBusinessProfile,d("WAWebContactGetters").getId,d("WAWebContactGetters").getStatusMute]),I=H[0];H[1];H[2];H=d("useWAWebModelValues").useModelValues(a.profilePicThumb,["imgFull","id"]);var J=p(null),K=J[0],L=J[1];J=d("WAWebConnModel").Conn.isSMB?d("WAWebProductCatalogContext").getProductCatalogContext(y):{};var M=J.session;n(function(){if(!d("WAWebConnModel").Conn.isSMB)return;d("WAWebCatalogCollection").CatalogCollection.findCarouselCatalog(d("WAWebUserPrefsMeUser").getMeUser()).then(function(a){a=Array.isArray(a)?a[0]:a;L({catalog:a,catalogError:!1})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(a){a.status==="not_found"||a.status===404?L({catalog:null,catalogError:!1}):L({catalog:null,catalogError:!0})}))["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").AdAccountRecoveryRequiredError,function(a){L({catalog:null,catalogError:!1})}))["catch"](function(a){L({catalog:null,catalogError:!1})});(M==null?void 0:M.isAccidental())&&d("WAWebDrawerManager").DrawerManager.setDrawerContext("left",d("WAWebProductCatalogContext").buildProductCatalogContext(new(d("WAWebProductCatalogSession").ProductCatalogSession)(),d("WAWebWamEnumBizPlatform").BIZ_PLATFORM.SMB,d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_SETTINGS))},[]);if(d("WAWebConnModel").Conn.isSMB&&(M==null?void 0:M.isAccidental()))return null;y=function(){f?f():t==null?void 0:t.requestDismiss()};J=function(a){return!!(a||"").trim()};var N=function(){F.current=!0},O=function(){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return d("WAWebModalManager").ModalManager.close()},okText:c("WAWebFbtCommon")("OK"),children:h._(/*BTDS*/"__JHASH__0VybJcp6TGW__JHASH__")}))},P=function(){F.current=!1,A(u.status)},Q=function(){if(z==null){P();return}F.current=!1;var a=u.status,b=z;if(b===a)return;E(!0);d("WAWebStatusContactAction").setMyStatus(z).then(function(){if(G.aborted)return;E(!1)})},R=function(a){A(a)},S=F.current||D?z:u.status,T=h._(/*BTDS*/"__JHASH__BjKV-W0G3-U__JHASH__");S=l.jsx(d("WAWebRichTextField.react").RichTextField,{testid:void 0,value:S,editable:!0,pending:D,showRemaining:!0,validate:J,maxLength:q,maxCodeUnits:r,onBeginEdit:N,onChange:function(a){a=a.text;return R(a)},onSave:Q,onError:O,onCancel:P,theme:"text-input",fieldName:T,ariaLabel:T,emojiBtnPosition:"side",lockable:!0,lowProfile:!0,constrainedWidth:!0,emojiTextSettingsInLockMode:v});D=d("WAWebBizGatingUtils").canSeeBizProfileV3()&&d("WAWebConnModel").Conn.isSMB?l.jsx(B,{contact:e,profilePicThumb:H}):l.jsx(C,{profilePicThumb:H});J=d("WAWebConnModel").Conn.isSMB?l.jsx(x,{contact:e,openMerchantDetailsForm:i,businessProfile:I,openCatalogDetailsForm:g,catalogResult:K,aboutInput:S,openCreateUsernameDrawer:j,openEditUsernameDrawer:k,isRefreshed:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()}):l.jsx(w,{conn:a.conn,aboutInput:S,contact:e,unmountSignal:G,openCreateUsernameDrawer:j,openEditUsernameDrawer:k});N=h._(/*BTDS*/"__JHASH__SRWKcs428BE__JHASH__");Q=s?d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL;return l.jsxs(c("WAWebDrawer.react"),{ref:b,testid:void 0,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:N,onBack:y,type:Q,focusBackOrCancel:!0}),l.jsxs(c("WAWebDrawerBody.react"),{children:[D,J,d("WAWebQuickPromotionGating").profilePrivacyTipsEnabled()&&l.jsx(d("WAWebProfileQuickPromotionSurface.react").ProfileQPSurface,{}),d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&l.jsx("div",{className:"xexx8yu x4uap5 xefzj8c xkhd6sd"})]})]})}F.displayName=F.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBizToolsFlow.react",["fbt","MetaVerifiedListItem.react","WAFilteredCatch","WALogger","WAWebAdCreationLogger","WAWebAdsManagementDrawer.react","WAWebAdsStackIcon.react","WAWebBackendErrors","WAWebBizGatingUtils","WAWebBizLabelFlow.react","WAWebBizOrderManagementFlow.react","WAWebBizQuickRepliesDrawer.react","WAWebBizToolWhatsNextSection.react","WAWebBizToolsDrawerBodySection.react","WAWebBizToolsFlowSteps","WAWebBizToolsUtils","WAWebBoltIcon.react","WAWebBusinessAdvertiseOutlineIcon.react","WAWebBusinessToolsOutlineIcon.react","WAWebCatalogCollection","WAWebCatalogManagementFlowLoadable","WAWebChatlistUtils","WAWebConnModel","WAWebContactCollection","WAWebContactUtils","WAWebDrawer.react","WAWebDrawerButton.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebExternalLink.react","WAWebFaqUrl","WAWebFetchSubscriptionEntryPoints","WAWebGridIcon.react","WAWebGridRefreshedIcon.react","WAWebHelpIcon.react","WAWebKeyboardHotKeys.react","WAWebLabelOutlineIcon.react","WAWebLightningIcon.react","WAWebListPeopleIcon.react","WAWebListsGatingUtils","WAWebManageAdsUtils","WAWebMegaphoneRefreshedIcon.react","WAWebNoop","WAWebProductCatalogContext","WAWebProductCatalogMetaLinkingGatingUtils","WAWebProductCatalogSession","WAWebProfileDrawer.react","WAWebProfilePicThumbCollection","WAWebQuestionIcon.react","WAWebReceiptIcon.react","WAWebStorefrontIcon.react","WAWebTextStatusCollection","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebUserPrefsSubscription","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumBusinessToolsItemType","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumLwiEntryPoint","WAWebWamEnumManageAdsEntryPoint","WAWebXWASubscriptionEntryPointTypeUtils","asyncToGeneratorRuntime","gkx","react","useWAWebFlow","useWAWebFocusOnMount","useWAWebServerGatedAdEntryPoint"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["fetchSubscriptionEntryPoints promise error"]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["fetchSubscriptionEntryPoints result:"]);l=function(){return a};return a}e=j||d("react");var m=i||(i=c("react")),n=e.useEffect,o=e.useMemo,p=e.useState,q=function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getFaqUrl())},r={icon:{color:"xrllbb6",$$css:!0}},s=c("gkx")("26258")?h._(/*BTDS*/"__JHASH__NyI1r-KVFYN__JHASH__"):h._(/*BTDS*/"__JHASH__9cGK7MXeM6S__JHASH__"),t=c("gkx")("26258")?h._(/*BTDS*/"__JHASH__gcEUHRuun44__JHASH__"):h._(/*BTDS*/"__JHASH__qO81ehFq2QS__JHASH__"),u=c("gkx")("26258")?h._(/*BTDS*/"__JHASH__gcEUHRuun44__JHASH__"):h._(/*BTDS*/"__JHASH__Xm1s6V7_brt__JHASH__"),v=function(a,b,e){return m.jsx(c("WAWebProfileDrawer.react"),{status:a,profilePicThumb:b,contact:e,conn:d("WAWebConnModel").Conn,isInitialStep:!1})},w=function(a,b){if(d("WAWebBizGatingUtils").adManagementEnabled()){b(d("WAWebBizToolsFlowSteps").BizToolsSteps.ManageAds);return}d("WAWebManageAdsUtils").openManageAdsInLwi(a,"whatsapp_smb_web_manage_ads_business_tools_list_item",d("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.SMB_BUSINESS_TOOLS_MANAGE_ADS_LIST_ITEM)};function x(a){switch(a){case d("WAWebBizToolsFlowSteps").BizToolsSteps.BusinessProfile:return d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE.PROFILE;case d("WAWebBizToolsFlowSteps").BizToolsSteps.ManageAds:return d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE.MANAGE_ADS;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Catalog:return d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE.CATALOG;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Orders:return;case d("WAWebBizToolsFlowSteps").BizToolsSteps.QuickReplies:return d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE.QUICK_REPLIES;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Labels:return d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE.LABELS;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Tools:return}}function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.initialStep;e=e===void 0?d("WAWebBizToolsFlowSteps").BizToolsSteps.Tools:e;var f=a.adsAccountInfo,g=a.entryPoint;a=p(!1);var h=a[0],i=a[1];a=p(null);var j=a[0],k=a[1];a=d("useWAWebFlow").useFlow(e,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight});e=a[0];var l=a[1];a=c("useWAWebFocusOnMount")();var q=d("WAWebUserPrefsMeUser").getMeUser();n(function(){d("WAWebCatalogCollection").CatalogCollection.find(q)["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,c("WAWebNoop")))["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").CatalogUnknownError,c("WAWebNoop"))).then(k)["finally"](function(){i(!0)})},[]);o(function(){var a=d("WAWebProductCatalogContext").buildProductCatalogContext(new(d("WAWebProductCatalogSession").ProductCatalogSession)(),d("WAWebContactUtils").getMaybeBizPlatformForLogging(q.toString()),d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_SETTINGS);d("WAWebDrawerManager").DrawerManager.setDrawerContext("left",a)},[q]);n(function(){d("WAWebBizToolsUtils").logBizToolsEntry(g)},[g]);var r=l.step;if(r==null)return null;var s=function(a){var b=x(a);b!=null&&d("WAWebBizToolsUtils").logBizToolsClick(g,b);a===d("WAWebBizToolsFlowSteps").BizToolsSteps.Catalog?d("WAWebCatalogManagementFlowLoadable").createCatalogManagementFlowObject(function(b,c,e){e===!0&&!c?d("WAWebCatalogManagementFlowLoadable").showSelfCatalogLoadErrorToast():l.push(a)}):l.push(a)},t=function(){l.pop()},u=function(a){if(a==null||a==="not-linked")return;return m.jsx(d("WAWebAdsManagementDrawer.react").AdsManagementDrawer,{onBack:t,activeAccountInfo:a,isInitialStep:!1,ref:b})},w=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(q),y=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(q),z=d("WAWebContactCollection").ContactCollection.assertGet(q),B=w!=null&&y!=null&&z!=null,C;switch(r){case d("WAWebBizToolsFlowSteps").BizToolsSteps.Tools:C=m.jsx(A,{isBizProfileVisible:B,isCatalogVisible:h&&!d("WAWebProductCatalogMetaLinkingGatingUtils").shouldDisableCatalogDueToMetaLinkingForSelf(),adsAccountInfo:f,onBack:l.end,onSelect:s,entryPoint:g,catalog:j});break;case d("WAWebBizToolsFlowSteps").BizToolsSteps.BusinessProfile:C=v(w,y,z);break;case d("WAWebBizToolsFlowSteps").BizToolsSteps.ManageAds:C=u(f);break;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Catalog:C=m.jsx(d("WAWebCatalogManagementFlowLoadable").CatalogManagementFlowLoadable,{catalogId:q,product:null,isInitialStep:!1});break;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Orders:C=m.jsx(c("WAWebBizOrderManagementFlow.react"),{isInitialStep:!1});break;case d("WAWebBizToolsFlowSteps").BizToolsSteps.QuickReplies:C=m.jsx(c("WAWebBizQuickRepliesDrawer.react"),{onBack:t,isInitialStep:!1});break;case d("WAWebBizToolsFlowSteps").BizToolsSteps.Labels:C=m.jsx(c("WAWebBizLabelFlow.react"),{isInitialStep:!1});break}return m.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{tabIndex:0,ref:a,children:m.jsx(e,{ref:b,flow:l,children:C})})}a.displayName=a.name+" [from "+f.id+"]";function y(a){var b=a.adsAccountInfo,c=a.ctaText,e=a.entryPoint,f=a.refreshedIcon;f=f===void 0?!1:f;a=a.supplementaryCtaText;var g=function(){d("WAWebBizToolsUtils").logBizToolsClick(e,d("WAWebWamEnumBusinessToolsItemType").BUSINESS_TOOLS_ITEM_TYPE.ADVERTISE_LIST_ITEM),d("WAWebChatlistUtils").handleAdCreation({adCreationUrlInput:{activeAccountInfo:b,sourceAdCreation:"whatsapp_smb_web_business_tools_list_item"},lwiEntryPoint:d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_BUSINESS_TOOLS_ADVERTISE_LIST_ITEM})};n(function(){d("WAWebAdCreationLogger").logAdCreationImpression(d("WAWebWamEnumLwiEntryPoint").LWI_ENTRY_POINT.SMB_BUSINESS_TOOLS_ADVERTISE_LIST_ITEM,b!=="not-linked"&&b.hasFacebookPage)},[b]);c=(c=c)!=null?c:h._(/*BTDS*/"__JHASH__u-UWPgqSsiq__JHASH__");a=(a=a)!=null?a:h._(/*BTDS*/"__JHASH__0VflDRb-8Ev__JHASH__");return m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:a,icon:f?m.jsx(d("WAWebMegaphoneRefreshedIcon.react").MegaphoneRefreshedIcon,{directional:!0,iconXstyle:r.icon}):m.jsx(d("WAWebBusinessAdvertiseOutlineIcon.react").BusinessAdvertiseOutlineIcon,{width:26,height:26,iconXstyle:r.icon}),active:!1,onClick:g,children:c})}y.displayName=y.name+" [from "+f.id+"]";function z(a){var b=a.adsAccountInfo,c=a.onClick;n(function(){d("WAWebAdCreationLogger").logManageAdsEntryPointImpression(d("WAWebWamEnumManageAdsEntryPoint").MANAGE_ADS_ENTRY_POINT.SMB_BUSINESS_TOOLS_MANAGE_ADS_LIST_ITEM)},[b]);return b==="not-linked"||b.hasCreatedAd!==!0?null:m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:h._(/*BTDS*/"__JHASH__iinqiDyCs2v__JHASH__"),icon:m.jsx(d("WAWebAdsStackIcon.react").AdsStackIcon,{width:24,height:24}),active:!1,onClick:function(){return w(b,c)},children:h._(/*BTDS*/"__JHASH__l1X-Pid_-eq__JHASH__")})}z.displayName=z.name+" [from "+f.id+"]";function A(a){var e=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var f=a.onSelect,g=a.adsAccountInfo,i=a.isBizProfileVisible,j=a.isCatalogVisible,o=a.entryPoint;n(function(){d("WAWebBizToolsUtils").logBizToolsImpression(o)},[o]);var v=p(!1),w=v[0],x=v[1];n(function(){var a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(d("WAWebBizGatingUtils").isMetaVerifiedEnabled())try{var a=(yield d("WAWebFetchSubscriptionEntryPoints").fetchSubscriptionEntryPoints());if(a.type==="success"){var b;b=(b=a.subscriptionEntrypoints)==null?void 0:b.find(function(a){return a.subscriptionType===d("WAWebXWASubscriptionEntryPointTypeUtils").SubscriptionEntryPointType.META_VERIFIED});var c=Boolean(b==null?void 0:b.webEntryPointEligibility);d("WAWebUserPrefsSubscription").setShouldShowMetaVerifiedEntryPoint(c);x(c);d("WAWebUserPrefsSubscription").setMetaVerifiedEntryPointRedirectionUri((c=b==null?void 0:b.webEntryPointRedirectionUri)!=null?c:"");d("WALogger").DEV(l()).devConsole(a)}}catch(a){d("WALogger").ERROR(k()).sendLogs(a)}});return function(){return a.apply(this,arguments)}}();void a()},[]);v=d("useWAWebServerGatedAdEntryPoint").useServerGatedAdEntryPoint("whatsapp_smb_web_business_tools_list_item",g);var A=v[0];v=v[1];var B=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),C;if(g!=null){var D=g!=="not-linked"&&g.hasCreatedAd,E=!A||D;E&&(C=m.jsxs(d("WAWebBizToolsDrawerBodySection.react").BizToolsDrawerBodySection,{headerText:h._(/*BTDS*/"__JHASH__CedkCSJunOl__JHASH__"),children:[w?m.jsx(d("MetaVerifiedListItem.react").MetaVerifiedListItem,{}):null,A?null:m.jsx(y,{adsAccountInfo:g,entryPoint:o,ctaText:v==null?void 0:v.content,supplementaryCtaText:v==null?void 0:v.subContent,refreshedIcon:B}),D?m.jsx(z,{adsAccountInfo:g,onClick:f}):null]}))}E=o===d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_SETTINGS?d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB;w=d("WAWebProductCatalogMetaLinkingGatingUtils").shouldShowMetaLinkedDisabledCatalogTooltipForSelf();A=w?d("WAWebProductCatalogMetaLinkingGatingUtils").getDisabledMetaLinkedCatalogTooltipText():null;v=h._(/*BTDS*/"__JHASH__4FspQOSrF-a__JHASH__");D=d("WAWebListsGatingUtils").isListsEnabled();g=D?h._(/*BTDS*/"__JHASH__fKo_Q-RdPvD__JHASH__"):h._(/*BTDS*/"__JHASH__R2-fPTCv1ST__JHASH__");var F=D?h._(/*BTDS*/"__JHASH__XnzmBoiLE04__JHASH__"):h._(/*BTDS*/"__JHASH__8v_eYfYtb3___JHASH__");D=D?m.jsx(d("WAWebListPeopleIcon.react").ListPeopleIcon,{iconXstyle:r.icon}):m.jsx(d("WAWebLabelOutlineIcon.react").LabelOutlineIcon,{width:24,height:24,iconXstyle:r.icon});return m.jsxs(c("WAWebDrawer.react"),{ref:e,theme:"biz-tools-drawer",testid:void 0,tsNavigationData:{surface:"tools-tab"},children:[m.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:t,type:E,onBack:a.onBack}),d("WAWebBizGatingUtils").isBizToolsTopCardEnabled()?m.jsx(d("WAWebBizToolWhatsNextSection.react").BizToolWhatsNextSection,{}):null,m.jsxs(d("WAWebBizToolsDrawerBodySection.react").BizToolsDrawerBodySection,{headerText:u,children:[i?m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,icon:B?m.jsx(d("WAWebStorefrontIcon.react").StorefrontIcon,{iconXstyle:r.icon}):m.jsx(d("WAWebBusinessToolsOutlineIcon.react").BusinessToolsOutlineIcon,{directional:!0,width:26,height:26,iconXstyle:r.icon}),active:!1,secondaryChildren:h._(/*BTDS*/"__JHASH__eGWYytO6vFb__JHASH__"),onClick:function(){return f(d("WAWebBizToolsFlowSteps").BizToolsSteps.BusinessProfile)},children:h._(/*BTDS*/"__JHASH__JqLJvHyGgh2__JHASH__")}):null,j?m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,icon:B?m.jsx(d("WAWebGridRefreshedIcon.react").GridRefreshedIcon,{iconXstyle:r.icon}):m.jsx(d("WAWebGridIcon.react").GridIcon,{width:24,height:24,iconXstyle:r.icon}),active:!1,disabled:w,tooltip:A,ariaLabel:(e=A)!=null?e:v,secondaryChildren:h._(/*BTDS*/"__JHASH__3HnbR9iGqUV__JHASH__"),onClick:w?c("WAWebNoop"):function(){return f(d("WAWebBizToolsFlowSteps").BizToolsSteps.Catalog)},children:v}):null,d("WAWebBizGatingUtils").orderManagementEnabled()?m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__l1GXwu9BFvl__JHASH__"):h._(/*BTDS*/"__JHASH__8QxOpk8hYpb__JHASH__"),icon:m.jsx(d("WAWebReceiptIcon.react").ReceiptIcon,{width:24,height:24,iconXstyle:r.icon}),active:!1,onClick:function(){return f(d("WAWebBizToolsFlowSteps").BizToolsSteps.Orders)},children:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__kxVDh4itc_t__JHASH__"):h._(/*BTDS*/"__JHASH__Mh61ysTDOgP__JHASH__")}):null]}),C,m.jsxs(d("WAWebBizToolsDrawerBodySection.react").BizToolsDrawerBodySection,{headerText:h._(/*BTDS*/"__JHASH__lfCwaM5q3PB__JHASH__"),children:[m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:h._(/*BTDS*/"__JHASH__tcfgqoGykfr__JHASH__"),icon:B?m.jsx(d("WAWebBoltIcon.react").BoltIcon,{iconXstyle:r.icon}):m.jsx(d("WAWebLightningIcon.react").LightningIcon,{width:24,height:24,iconXstyle:r.icon}),active:!1,onClick:function(){return f(d("WAWebBizToolsFlowSteps").BizToolsSteps.QuickReplies)},children:s}),m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:F,icon:D,active:!1,onClick:function(){return f(d("WAWebBizToolsFlowSteps").BizToolsSteps.Labels)},children:g})]}),m.jsx(d("WAWebBizToolsDrawerBodySection.react").BizToolsDrawerBodySection,{hideDivider:!0,children:m.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,theme:"biz-tools",divider:!1,secondaryChildren:h._(/*BTDS*/"__JHASH__BQxmG0QYLBo__JHASH__"),icon:B?m.jsx(d("WAWebQuestionIcon.react").QuestionIcon,{iconXstyle:r.icon}):m.jsx(d("WAWebHelpIcon.react").HelpIcon,{width:24,height:24,iconXstyle:r.icon}),active:!1,onClick:q,children:h._(/*BTDS*/"__JHASH__0bxBX1ykxN3__JHASH__")})})]})}A.displayName=A.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLocaleManualUpdateButterbar.react",["fbt","WALogger","WAWebActionLinkButterbar.react","WAWebBuildConstants","WAWebButterbar.react","WAWebL10N","WAWebUIRefreshGatingUtils","asyncToGeneratorRuntime","react","useWAWebAsync","useWAWebPrevious"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["locale_change: Unable to get translated strings"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["locale_change: requesting translated strings in ",""]);k=function(){return a};return a}var l=i||c("react"),m=function(){return{dir:c("WAWebL10N").isRTL()?"rtl":"ltr",strings:{title:h._(/*BTDS*/"__JHASH__JjO6S3d2z0h__JHASH__").toString(),text:h._(/*BTDS*/"__JHASH__glYnuuxTHhZ__JHASH__").toString(),action_text:h._(/*BTDS*/"__JHASH__531P40Ka50F__JHASH__").toString()}}};function n(a){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(a==null||a==="")return m();try{d("WALogger").LOG(k(),a);a=(yield self.fetch(d("WAWebBuildConstants").DYN_ORIGIN+"locale_change/?locale="+a));a=(yield a.json());if(a&&typeof a==="object")return a}catch(a){d("WALogger").ERROR(j()).tags("non-sad");return m()}return m()});return o.apply(this,arguments)}function a(a){var b=a.locale;a=a.ref;var e=c("useWAWebAsync")(function(){return n(b)},[b]),f=c("useWAWebPrevious")(e.value),g={};if(e.loading)if(f!=null)g=f;else return null;else e.error?g=m():g=e.value;return l.jsx("div",{dir:g.dir,children:l.jsx(c("WAWebButterbar.react"),{ref:a,useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),type:"generalAlert",title:g.strings.title,text:l.jsxs(l.Fragment,{children:[g.strings.text,l.jsx(c("WAWebActionLinkButterbar.react"),{overrideDirection:g.dir,children:g.strings.action_text})]}),action:function(){self.location.reload()}},"localemanualupdatebar")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNoticeButterbar.react",["WAWebButterbar.react","WAWebThemeContext","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.banner,e=a.ref;a=a.shouldShow;var f=d("WAWebThemeContext").useIsDarkTheme();if(!a)return null;if(!(b==null?void 0:b.text))return null;a=b.iconDescription;var g=b.text;b=b.iconSvg;var h;b&&(h=f?b.dark:b.light);return i.jsx(c("WAWebButterbar.react"),{ref:e,type:"notice",text:g,iconSvg:h,iconDescription:(f=a)!=null?f:"",useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()},"noticebbar")}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebContextualBannerConfig",["fbt","$InternalEnum","WAWebFbtCommon","WAWebNotificationConstants","WAWebPushNotificationsGatingUtils","WAWebUIRefreshGatingUtils","WAWebUserPrefsNotifications","WAWebUserPrefsScreenLock","WAWebWamEnumBannerTypes"],(function(a,b,c,d,e,f,g,h){var i=b("$InternalEnum")({Test_DONOTUSE:"test-do-not-use",AppLockUpsell:"app-lock-upsell",BackgroundSyncUpsell:"background-sync-upsell"});function a(a){switch(a){case i.Test_DONOTUSE:return{id:i.Test_DONOTUSE,endT:"2025-09-12",startT:"2024-08-12",dismissable:!0,title:"Dismissable contextual banner with icon and action",actionText:"Try now",showIcon:!0};case i.AppLockUpsell:a=d("WAWebUIRefreshGatingUtils").checkIfShouldBeEnabledInWindowsEnv()?c("WAWebFbtCommon")("WhatsApp for Windows"):c("WAWebFbtCommon")("WhatsApp Web");return{id:i.AppLockUpsell,endT:"2025-01-01",startT:"2024-09-09",dismissable:!0,title:h._(/*BTDS*/"__JHASH__Sr_Uc5GN1aj__JHASH__",[h._param("app-name",a)]),actionText:h._(/*BTDS*/"__JHASH__9btULQzjeIf__JHASH__"),showIcon:!0,syncEnabled:!0,metricField:d("WAWebWamEnumBannerTypes").BANNER_TYPES.APP_LOCK_UPSELL,condition:function(){return!d("WAWebUserPrefsScreenLock").getScreenLockEnabled()}};case i.BackgroundSyncUpsell:return{id:i.BackgroundSyncUpsell,endT:"2025-01-01",startT:"2024-09-09",dismissable:!0,title:h._(/*BTDS*/"__JHASH__PtyuDgw0yk1__JHASH__"),actionText:h._(/*BTDS*/"__JHASH__NwJll1D_FUG__JHASH__"),showIcon:!0,syncEnabled:!0,metricField:d("WAWebWamEnumBannerTypes").BANNER_TYPES.OFFLINE_NOTIFICATIONS_UPSELL,condition:function(){var a;return d("WAWebPushNotificationsGatingUtils").canEnableOfflineNotifications()&&!d("WAWebUserPrefsNotifications").getGlobalOfflineNotifications()&&((a=window.Notification)==null?void 0:a.permission)!==d("WAWebNotificationConstants").PERMISSION_DENIED}}}}g.ContextualBannerId=i;g.getContextualBannerConfig=a}),226); __d("WAWebContextualBannerWrapperLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","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")("WAWebContextualBannerWrapper.react").__setRef("WAWebContextualBannerWrapperLoadable").load());return a}),"ContextualBannerWrapper");d=c("react-loadable")({loader:a,loading:function(){return i.jsx(i.Fragment,{})}});g.requireBundle=a;g.ContextualBannerWrapperLoadable=d}),98); __d("WAWebDoNotDisturbSettings.react",["fbt","WALogger","WAWebBackgroundSyncReporter","WAWebCmd","WAWebDevOnlyBadge.react","WAWebDrawerSection.react","WAWebEnvironment","WAWebGuidePopup.react","WAWebModalManager","WAWebMuteCollection","WAWebMuteGetters","WAWebNotificationConstants","WAWebPushNotificationsGatingUtils","WAWebSettingsCheckList.react","WAWebSettingsFBT","WAWebStateUtils","WAWebSubscribePushManagerAction","WAWebText.react","WAWebUserPrefsNotifications","WAWebWamEnumOffboardSources","WAWebWamEnumOnboardSources","cr:3176","cr:545","cr:6005","cr:7293","cr:8361","gkx","react","useWAWebMuteValues","useWAWebToggle"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[push-notification] failed to subscribe push manager due to permission not granted, current permission: ",""]);k=function(){return a};return a}var l=j||c("react"),m=(i||(i=d("react"))).useImperativeHandle;e=(e=b("cr:7293"))!=null?e:{};var n=e.isNotificationBannerEnabled,o={drawerTitle:{paddingTop:"x134lwj9",paddingBottom:"x1i2zvha",paddingStart:"xkhd6sd",paddingEnd:"x4uap5",paddingLeft:null,paddingRight:null,$$css:!0}};function a(a){var e=a.isNotificationsEnabledInSystem;e=e===void 0?!0:e;var f=a.onShowNotificationBannerClick,g=a.onTaskbarNotificationSettingsClick,i=a.reactionsMute;a=a.ref;var j=d("useWAWebMuteValues").useMuteValues(i.id,[d("WAWebMuteGetters").getIsMuted,d("WAWebMuteGetters").getExpiration,d("WAWebMuteGetters").getIsCallMuted,d("WAWebMuteGetters").getCallExpiration]),p=j[0];j[1];j[2];j[3];j=!((j=n==null?void 0:n())!=null?j:!0);var q=c("useWAWebToggle")(function(){return d("WAWebMuteCollection").MuteCollection.getGlobalOfflineNotifications()},function(a){var b;d("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(a);if(a&&((b=window.Notification)==null?void 0:b.permission)!==d("WAWebNotificationConstants").PERMISSION_ALLOWED){if(((b=window.Notification)==null?void 0:b.permission)===d("WAWebNotificationConstants").PERMISSION_DEFAULT){d("WAWebModalManager").ModalManager.open(l.jsx((b=d("WAWebGuidePopup.react")).GuidePopup,{messaging:b.Messaging.BACKGROUND_SYNC,onConfirm:b.guideConfirm,onCancel:b.notificationGuideLearnMore,type:b.GuidePopupType.GUIDE_ALLOW}))}window.Notification.requestPermission(function(b){d("WAWebCmd").Cmd.onNotificationPermissionChange(),b===d("WAWebNotificationConstants").PERMISSION_ALLOWED?d("WAWebSubscribePushManagerAction").handleOfflineNotifications(a):d("WALogger").WARN(k(),b),d("WAWebBackgroundSyncReporter").logBackgroundSyncAdoptionEvent({offboardSource:null,onboardSource:d("WAWebWamEnumOnboardSources").ONBOARD_SOURCES.IN_APP_SETTING})})}else!a?(d("WAWebUserPrefsNotifications").setOfflineNotificationsBBStatus({isDismissed:!0}),d("WAWebUserPrefsNotifications").setOfflineNotificationsEnabledOnce(),d("WAWebBackgroundSyncReporter").logBackgroundSyncAdoptionEvent({offboardSource:d("WAWebWamEnumOffboardSources").OFFBOARD_SOURCES.IN_APP_SETTING,onboardSource:null})):d("WAWebBackgroundSyncReporter").logBackgroundSyncAdoptionEvent({offboardSource:null,onboardSource:d("WAWebWamEnumOnboardSources").ONBOARD_SOURCES.IN_APP_SETTING}),d("WAWebSubscribePushManagerAction").handleOfflineNotifications(a)}),r=q[0],s=q[1];m(a,function(){return{toggleOfflineNotifications:s}});q=c("useWAWebToggle")(function(){return d("WAWebMuteCollection").MuteCollection.getOutgoingMessageSound()},function(a){return d("WAWebMuteCollection").MuteCollection.setOutgoingMessageSound(a)});a=q[0];q=q[1];var t=c("useWAWebToggle")(function(){return d("WAWebMuteCollection").MuteCollection.getGlobalSounds()},function(a){return d("WAWebMuteCollection").MuteCollection.setGlobalSounds(a)}),u=t[0];t=t[1];var v=c("useWAWebToggle")(function(){return d("WAWebMuteCollection").MuteCollection.getGlobalPreviews()},function(a){return d("WAWebMuteCollection").MuteCollection.setGlobalPreviews(a)}),w=v[0],x=v[1];v=c("useWAWebToggle")(function(){return d("WAWebMuteCollection").MuteCollection.getCollapseMuted()},function(a){return d("WAWebMuteCollection").MuteCollection.setCollapseMuted(a)});var y=v[0];v=v[1];var z=c("useWAWebToggle")(function(){return d("WAWebMuteCollection").MuteCollection.getGlobalNotifications()},function(a){d("WAWebMuteCollection").MuteCollection.setGlobalNotifications(a);a?(w||x(),p&&d("WAWebCmd").Cmd.muteAllReactions(d("WAWebStateUtils").unproxy(i),!1,!0)):d("WAWebUserPrefsNotifications").setWebNotificationsBBStatus({isDismissed:!0});if(a&&!c("WAWebEnvironment").isWindows&&((a=window.Notification)==null?void 0:a.permission)!==d("WAWebNotificationConstants").PERMISSION_ALLOWED){if(((a=window.Notification)==null?void 0:a.permission)===d("WAWebNotificationConstants").PERMISSION_DEFAULT){d("WAWebModalManager").ModalManager.open(l.jsx((a=d("WAWebGuidePopup.react")).GuidePopup,{messaging:a.Messaging.NOTIFICATIONS,onConfirm:a.guideConfirm,onCancel:a.notificationGuideLearnMore,type:a.GuidePopupType.GUIDE_ALLOW}))}window.Notification.requestPermission(function(a){d("WAWebCmd").Cmd.onNotificationPermissionChange()})}}),A=z[0];z=z[1];var B=function(){d("WAWebCmd").Cmd.muteAllReactions(d("WAWebStateUtils").unproxy(i),!p)};z=l.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"desktop-notifications",disabled:!e||j,checked:!j&&A,checkboxRightAligned:!0,onChange:z,ariaLabel:d("WAWebSettingsFBT").messageNotificationsTitle().toString()+". "+d("WAWebSettingsFBT").messageNotificationsSubtitle().toString(),children:[d("WAWebSettingsFBT").messageNotificationsTitle(),l.jsx(d("WAWebText.react").WAWebTextMuted,{children:d("WAWebSettingsFBT").messageNotificationsSubtitle()})]});var C=l.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"msg-previews",checked:!j&&A&&w,onChange:x,disabled:!A||j||!e,ariaLabel:d("WAWebSettingsFBT").showPreviewsTitle(),checkboxRightAligned:!0,children:d("WAWebSettingsFBT").showPreviewsTitle()}),D;if(d("WAWebPushNotificationsGatingUtils").canEnableOfflineNotifications()&&window.Notification){var E=h._(/*BTDS*/"__JHASH___oPGNUrRiNp__JHASH__");D=l.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"offline-notifications",checked:r,checkboxRightAligned:!0,onChange:s,ariaLabel:E.toString()+". "+d("WAWebSettingsFBT").offlineSyncSubtitle().toString(),children:[E,l.jsx(d("WAWebText.react").WAWebTextMuted,{children:d("WAWebSettingsFBT").offlineSyncSubtitle()})]})}var F;if(!c("gkx")("26258")){r=h._(/*BTDS*/"__JHASH__bspZzHMlY30__JHASH__");F=l.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"collapse-muted",checked:y,checkboxRightAligned:!0,onChange:v,ariaLabel:r,children:r})}E=h._(/*BTDS*/"__JHASH__WrbTgWeaEV-__JHASH__");y=l.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"outgoing-message-sound",checked:a,checkboxRightAligned:!0,onChange:q,ariaLabel:E.toString()+". "+d("WAWebSettingsFBT").outgoingAudioToneSubtitle().toString(),children:[E,l.jsx(d("WAWebText.react").WAWebTextMuted,{children:d("WAWebSettingsFBT").outgoingAudioToneSubtitle()})]});v=l.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"reactions-mute-desktop-notifications",checked:!j&&A&&!p,checkboxRightAligned:!0,disabled:!A||j||!e,onChange:B,ariaLabel:d("WAWebSettingsFBT").showReactionsTitle(),children:d("WAWebSettingsFBT").showReactionsTitle()});r=l.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"sounds",checked:u,checkboxRightAligned:!0,onChange:t,ariaLabel:d("WAWebSettingsFBT").soundsTitle().toString()+". "+d("WAWebSettingsFBT").soundsSubtitle().toString(),children:[d("WAWebSettingsFBT").soundsTitle(),l.jsx(d("WAWebText.react").WAWebTextMuted,{children:d("WAWebSettingsFBT").soundsSubtitle()})]});a=b("cr:6005")?l.jsx(b("cr:6005"),{}):null;q=h._(/*BTDS*/"__JHASH__cZCp7r1ZaIH__JHASH__");E=l.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:h._(/*BTDS*/"__JHASH__vYSlrL2oWHU__JHASH__")});B=b("cr:8361")&&f?l.jsx(b("cr:8361"),{onClick:f,isNotificationsEnabledInSystem:e}):null;u=b("cr:3176")&&g?l.jsx(b("cr:3176"),{onClick:g}):null;t=b("cr:545")?l.jsx(b("cr:545"),{isNotificationEnabled:!j&&A}):null;return l.jsxs("div",{children:[l.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:q,titleXStyle:o.drawerTitle,animation:!1,children:[B,u,l.jsx("div",babelHelpers["extends"]({className:"xso031l x1q0q8m5 xcsjwe9"},{children:z})),C,v,t]}),l.jsxs(c("WAWebDrawerSection.react"),{theme:"padding",animation:!1,children:[D,r,y]}),c("gkx")("26258")?null:l.jsxs(c("WAWebDrawerSection.react"),{theme:"padding",title:E,animation:!1,children:[a,F]})]})}a.displayName=a.name+" [from "+f.id+"]";g.DoNotDisturbSettings=a}),226); __d("WAWebNotificationsDrawer.react",["fbt","WAWebContextualBannerConfig","WAWebContextualBannerWrapperLoadable","WAWebDoNotDisturbSettings.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebMuteCollection","WAWebNoop","WAWebNotificationConstants","WAWebToast.react","WAWebToastManager","asyncToGeneratorRuntime","cr:3133","cr:4908","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.useCallback,m=e.useEffect,n=e.useRef,o=e.useState;e=(e=b("cr:3133"))!=null?e:{};var p=e.IsNotificationsEnabledInSystem,q=e.OpenSystemNotificationsSettings;function a(a){var e=a.onCancel,f=a.onClose,g=a.onShowNotificationBannerClick,i=a.onTaskbarNotificationSettingsClick;a=a.ref;var j=n(null),r=l(function(){var a;(a=j.current)==null?void 0:a.toggleOfflineNotifications()},[]),s=o(!0),t=s[0],u=s[1];m(function(){if(p){var a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield p());u(a)});return function(){return a.apply(this,arguments)}}();a()["catch"](c("WAWebNoop"))}},[]);s=b("cr:4908")?k.jsx(b("cr:4908"),{onOpenSystemNotificationSettingsRequested:function(){void (q==null?void 0:q())}}):null;return k.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__Z2krU6UbdAF__JHASH__"),onCancel:e,onBack:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),k.jsxs(c("WAWebDrawerBody.react"),{children:[!t&&s,k.jsx(d("WAWebContextualBannerWrapperLoadable").ContextualBannerWrapperLoadable,{bannerListOrderedByPriority:[{id:d("WAWebContextualBannerConfig").ContextualBannerId.BackgroundSyncUpsell,onClick:function(){var a;r();((a=window.Notification)==null?void 0:a.permission)===d("WAWebNotificationConstants").PERMISSION_ALLOWED&&d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__A4wI4YTGEsk__JHASH__")}))}}]}),k.jsx(d("WAWebDoNotDisturbSettings.react").DoNotDisturbSettings,{ref:j,onShowNotificationBannerClick:g,onTaskbarNotificationSettingsClick:i,reactionsMute:d("WAWebMuteCollection").MuteCollection.globalReactionsMute(),isNotificationsEnabledInSystem:t},"notifications")]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWamEnumWebcButterbarActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({IMPRESSION:1,CLICK_CTA:2,CLICK_DISMISS:3,AUTO_DISMISS:4});f.WEBC_BUTTERBAR_ACTION_TYPE=a}),66); __d("WAWebWamEnumWebcButterbarBbType",[],(function(a,b,c,d,e,f){a=Object.freeze({OFFLINE:1,RESUME_CONNECTING:2,RESUME_LOADING_MSGS_PROGRESS:3,UPDATE_DUE_TO_SOFT_MIN:4,UWP_UPSELL:5,NOTIFICATION:6,OFFLINE_NOTIFICATION:7});f.WEBC_BUTTERBAR_BB_TYPE=a}),66); __d("WAWebWebcButterbarEventWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcButterbarActionType","WAWebWamEnumWebcButterbarBbType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({WebcButterbarEvent:[3932,{webcButterbarAction:[1,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE],webcButterbarType:[2,d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE]},[1,1,1],"regular"]},{WebcButterbarEvent:[]});g.WebcButterbarEventWamEvent=a}),98); __d("WAWebOfflineButterbar.react",["fbt","WAShiftTimer","WAWebActionLinkButterbar.react","WAWebBanner.react","WAWebButterbar.react","WAWebConnectionIcon.react","WAWebSocketModel","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcButterbarActionType","WAWebWamEnumWebcButterbarBbType","WAWebWebcButterbarEventWamEvent","react","useLazyRef"],(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.useState,n=3e3;function a(a){a=a.ref;var b=m(!0),e=b[0],f=b[1],g=c("useLazyRef")(function(){return new(d("WAShiftTimer").ShiftTimer)(function(){f(!0)})});l(function(){return function(){g.current.cancel()}},[]);var i=function(){d("WAWebSocketModel").Socket.reconnect(),f(!1),g.current.onOrAfter(n)},j,o;e?(j=h._(/*BTDS*/"__JHASH__LPAKgmVgbxa__JHASH__"),o=function(){new(d("WAWebWebcButterbarEventWamEvent").WebcButterbarEventWamEvent)({webcButterbarType:d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE,webcButterbarAction:d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_CTA}).commit(),i()},b=h._(/*BTDS*/"__JHASH__wGw1nGH5taU__JHASH__"),e=h._(/*BTDS*/"__JHASH__OhLnEH2nl6O__JHASH__")):(b=null,e=h._(/*BTDS*/"__JHASH__8Az8ab1QIks__JHASH__"));return d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebBanner.react").WDSBanner,{type:"warning",title:e,text:b,actionText:j,onAction:o,onClick:o,icon:d("WAWebConnectionIcon.react").ConnectionIcon,textTestid:"chat-butterbar-offline"}):k.jsx(c("WAWebButterbar.react"),{ref:a,type:"computer",title:e,text:k.jsxs(k.Fragment,{children:[b,j!=null?k.jsx(c("WAWebActionLinkButterbar.react"),{action:o,children:j}):null]}),textTestid:"chat-butterbar-offline"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebOfflineProgressButterbar.react",["fbt","WAShiftTimer","WAWebBanner.react","WAWebButterbar.react","WAWebCmd","WAWebOfflineHandler","WAWebOfflineMessageLoadIcon.react","WAWebUIRefreshGatingUtils","react","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m=120*1e3;function a(a){a=a.ref;var b=l(0),e=b[0],f=b[1];b=l(!1);var g=b[0],i=b[1];d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"offline_progress_update",function(){f(d("WAWebOfflineHandler").OfflineMessageHandler.getOfflineDeliveryProgress())});new(d("WAShiftTimer").ShiftTimer)(function(){i(!0)}).onOrAfter(m);b=h._(/*BTDS*/"__JHASH__50-lwym0o32__JHASH__",[h._param("percentage",e,[0])]);e=g?h._(/*BTDS*/"__JHASH__De1gFGIJu8f__JHASH__"):"";return d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebBanner.react").WDSBanner,{title:b,text:e,type:"default",icon:d("WAWebOfflineMessageLoadIcon.react").OfflineMessageLoadIcon}):k.jsx(c("WAWebButterbar.react"),{ref:a,type:"resumeProgress",title:b,text:e})}a.displayName=a.name+" [from "+f.id+"]";g.ResumeProgress=a}),226); __d("WAWebResumeButterbar.react",["fbt","WAShiftTimer","WAWeb-moment","WAWebActionLinkButterbar.react","WAWebButterbar.react","WAWebSocketModel","WAWebStreamModel","WAWebUIRefreshGatingUtils","WAWebWamEnumWebcButterbarActionType","WAWebWamEnumWebcButterbarBbType","WAWebWebcButterbarEventWamEvent","react","useWAWebForceUpdate","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.useMemo,n=b.useState;function a(a){a=a.ref;var b=n(!1),e=b[0],f=b[1];b=n(!1);var g=b[0],i=b[1],j=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),o=m(function(){return new(d("WAShiftTimer").ShiftTimer)(function(){f(!0),i(!0)})},[f,i]),p=m(function(){return new(d("WAShiftTimer").ShiftTimer)(function(){j()})},[j]);l(function(){o.onOrBefore(3e3);return function(){o.cancel(),p.cancel()}},[]);var q=function(){p.cancel(),o.onOrBefore(3e3),f(!1)};d("useWAWebListener").useListener(d("WAWebSocketModel").Socket,"change:state",q);if(d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.OPENING)b=h._(/*BTDS*/"__JHASH__weKSIEgSRNQ__JHASH__");else if(d("WAWebStreamModel").Stream.displayInfo===d("WAWebStreamModel").StreamInfo.CONNECTING)b=h._(/*BTDS*/"__JHASH__8Az8ab1QIks__JHASH__");else return null;var r=function(){d("WAWebSocketModel").Socket.reconnect(),q()};if(e){p.onOrAfter(1e3);e=d("WAWebSocketModel").Socket.retryTimestamp-Date.now();var s;if(isNaN(e)||e<1)s=h._(/*BTDS*/"__JHASH__yRCBOt8MgQB__JHASH__");else if(e<6e4){var t=Math.ceil(e/1e3);s=h._(/*BTDS*/"__JHASH__p1gMa0_sJxd__JHASH__",[h._plural(t,"number")])}else s=h._(/*BTDS*/"__JHASH__QfzZqJYGY9p__JHASH__",[h._param("duration",c("WAWeb-moment").duration(e).humanize())]);t=k.jsxs(k.Fragment,{children:[s,k.jsx(c("WAWebActionLinkButterbar.react"),{action:function(){new(d("WAWebWebcButterbarEventWamEvent").WebcButterbarEventWamEvent)({webcButterbarType:d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.RESUME_CONNECTING,webcButterbarAction:d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_CTA}).commit(),r()},children:h._(/*BTDS*/"__JHASH__Id2QE2xF0XB__JHASH__")})]})}else g?t=k.jsx("span",{children:h._(/*BTDS*/"__JHASH__yRCBOt8MgQB__JHASH__")}):t=null;return k.jsx(c("WAWebButterbar.react"),{ref:a,type:"computer",title:b,text:t,useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebPrimaryButterbar.react",["fbt","WATimeUtils","WAWebActionLinkButterbar.react","WAWebBackgroundSyncReporter","WAWebButterbar.react","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebNotificationConstants","WAWebOfflineButterbar.react","WAWebOfflineProgressButterbar.react","WAWebPushNotificationsGatingUtils","WAWebResumeButterbar.react","WAWebSettingsFBT","WAWebSocketConstants","WAWebStreamModel","WAWebUIRefreshGatingUtils","WAWebUpdater","WAWebUserPrefsNotifications","WAWebWamEnumOnboardSources","WAWebWamEnumWebcButterbarActionType","WAWebWamEnumWebcButterbarBbType","WAWebWebcButterbarEventWamEvent","react","useWAWebForceUpdate"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k=null;function a(a){var b=a.displayInfo,e=a.isMuted,f=a.needsUpdate,g=a.notifyPermission,i=a.onEnableOfflineNotifications,q=a.onRequestPermissions,r=a.onShowNotifyDelay,s=a.ref,t=a.showNotify,u=a.showResumeProgress;a=a.socketStream;var v=null,w=null,x=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();switch(b){case d("WAWebStreamModel").StreamInfo.OFFLINE:w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE;v=j.jsx(c("WAWebOfflineButterbar.react"),{ref:s},"bbar");break;case d("WAWebStreamModel").StreamInfo.OPENING:case d("WAWebStreamModel").StreamInfo.CONNECTING:w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.RESUME_CONNECTING;v=j.jsx(c("WAWebResumeButterbar.react"),{ref:s},"bbar");break;case d("WAWebStreamModel").StreamInfo.NORMAL:if(c("WAWebEnvironment").isWindows&&a===d("WAWebSocketConstants").SOCKET_STREAM.DISCONNECTED){w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE;v=j.jsx(c("WAWebOfflineButterbar.react"),{ref:s},"bbar");break}break;case d("WAWebStreamModel").StreamInfo.RESUMING:b=j.jsxs(j.Fragment,{children:[h._(/*BTDS*/"__JHASH__G_sCK58HDv8__JHASH__"),j.jsx(c("WAWebActionLinkButterbar.react"),{action:m,children:h._(/*BTDS*/"__JHASH__RR1bpeluTQm__JHASH__")})]});w=null;v=j.jsx(c("WAWebButterbar.react"),{useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),ref:s,type:"phone",title:h._(/*BTDS*/"__JHASH__iJsWoqBZeLS__JHASH__"),text:b},"bbar");break;default:break}v==null&&u&&(w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.RESUME_LOADING_MSGS_PROGRESS,v=j.jsx(d("WAWebOfflineProgressButterbar.react").ResumeProgress,{ref:s}));if(v==null&&f&&!c("WAWebEnvironment").isWindows){w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.UPDATE_DUE_TO_SOFT_MIN;a=j.jsx(c("WAWebActionLinkButterbar.react"),{children:h._(/*BTDS*/"__JHASH__x4o7lWKV60O__JHASH__")});v=j.jsx(c("WAWebButterbar.react"),{useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),ref:s,type:"update",title:h._(/*BTDS*/"__JHASH__qUWw4zj0uK6__JHASH__"),text:a,action:function(){p(d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.UPDATE_DUE_TO_SOFT_MIN,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_CTA),l()}},"bbar")}if(v==null&&window.Notification&&g===d("WAWebNotificationConstants").PERMISSION_DEFAULT&&!e&&n())if(t){w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.NOTIFICATION;b=j.jsxs("div",{children:[h._(/*BTDS*/"__JHASH__eyaYrhCjOh8__JHASH__"),j.jsx(c("WAWebActionLinkButterbar.react"),{children:h._(/*BTDS*/"__JHASH__23q4UHXZ68s__JHASH__")})]});v=j.jsx(c("WAWebButterbar.react"),{useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),ref:s,type:"notification",onDismiss:function(){o(d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.NOTIFICATION),d("WAWebUserPrefsNotifications").setWebNotificationsBBStatus({isDismissed:!0}),x()},title:h._(/*BTDS*/"__JHASH__tOje8rv9Gx4__JHASH__"),text:b,action:function(){p(d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.NOTIFICATION,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_CTA),d("WAWebBackgroundSyncReporter").logBackgroundSyncAdoptionEvent({offboardSource:null,onboardSource:d("WAWebWamEnumOnboardSources").ONBOARD_SOURCES.WEB_NOTIFICATION_BUTTERBAR}),q()}},"bbar")}else r();else if(!t&&(d("WAWebPushNotificationsGatingUtils").canEnableOfflineNotifications()&&window.Notification&&g!==d("WAWebNotificationConstants").PERMISSION_DENIED&&v==null)){u=d("WAWebUserPrefsNotifications").getOfflineNotificationsBBStatus();a=(f=u.isDismissed)!=null?f:!1;e=u.firstSeenTime;b=d("WAWebUserPrefsNotifications").getGlobalOfflineNotifications();!a&&(!b||b&&g===d("WAWebNotificationConstants").PERMISSION_DEFAULT)&&(e==null&&(e=d("WATimeUtils").unixTime(),d("WAWebUserPrefsNotifications").setOfflineNotificationsBBStatus({isDismissed:!1,firstSeenTime:e})),d("WATimeUtils").unixTime()-e<=7*d("WATimeUtils").DAY_SECONDS&&(w=d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE_NOTIFICATION,v=j.jsx(c("WAWebButterbar.react"),{useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),ref:s,type:"notification",onDismiss:function(){o(d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE_NOTIFICATION),d("WAWebUserPrefsNotifications").setOfflineNotificationsBBStatus({isDismissed:!0}),x()},title:h._(/*BTDS*/"__JHASH__LkzUvAR-iyK__JHASH__"),text:d("WAWebSettingsFBT").offlineSyncSubtitle(),action:function(){p(d("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE_NOTIFICATION,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_CTA),d("WAWebBackgroundSyncReporter").logBackgroundSyncAdoptionEvent({offboardSource:null,onboardSource:d("WAWebWamEnumOnboardSources").ONBOARD_SOURCES.BACKGROUND_SYNC_BUTTERBAR}),i()}},"bbar")))}v!=null&&w&&k!==w&&(k!=null&&p(k,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.AUTO_DISMISS),k=w,p(w,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.IMPRESSION));return v}a.displayName=a.name+" [from "+f.id+"]";function l(){d("WAWebUpdater").Updater.restart()}function m(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getCannotConnectFaqUrl())}function n(){if(c("WAWebEnvironment").isWindows)return!1;var a=d("WAWebUserPrefsNotifications").getWebNotificationsBBStatus(),b=a.isDismissed;a=a.firstSeenTime;if(a==null)d("WAWebUserPrefsNotifications").setWebNotificationsBBStatus({isDismissed:!1,firstSeenTime:d("WATimeUtils").unixTime()});else if(b||d("WATimeUtils").unixTime()-a>4*d("WATimeUtils").WEEK_SECONDS)return!1;return!0}function o(a){k=null,p(a,d("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_DISMISS)}function p(a,b){new(d("WAWebWebcButterbarEventWamEvent").WebcButterbarEventWamEvent)({webcButterbarType:a,webcButterbarAction:b}).commit()}g["default"]=a}),226); __d("WAWebChatButterbar.react",["fbt","WALogger","WANullthrows","WAShiftTimer","WAWebBrigadingButterBar.react","WAWebCmd","WAWebDrawerManager","WAWebGuidePopup.react","WAWebL10N","WAWebLocaleManualUpdateButterbar.react","WAWebModalManager","WAWebMuteCollection","WAWebMuteGetters","WAWebNoticeButterbar.react","WAWebNoticeModel","WAWebNotificationConstants","WAWebNotificationsDrawer.react","WAWebOfflineHandler","WAWebOfflineResumeTypes.flow","WAWebPrimaryButterbar.react","WAWebPushNotificationsGatingUtils","WAWebSocketModel","WAWebStreamModel","WAWebSubscribePushManagerAction","WAWebToast.react","WAWebToastManager","WAWebUserNoticeWamEvent","WAWebUserPrefsGeneral","WAWebUserPrefsIndexedDBStorage","WAWebVelocityTransitionGroup","WAWebWamEnumUserNoticeEvent","cr:5037","cr:5735","gkx","react","useLazyRef","useWAWebABPropConfigValue","useWAWebForceUpdate","useWAWebListener","useWAWebModelValues","useWAWebMuteValues","useWAWebOnUnmount"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Enable offline notifications failed: window.Notification unavailable or denied"]);k=function(){return a};return a}e=j||d("react");var l=i||(i=c("react")),m=e.useEffect,n=e.useState,o={container:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",flexDirection:"xdt5ytf",$$css:!0}},p=1e4;function q(a){var e,f=a.setShowButterBar,g=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();d("useWAWebModelValues").useModelValues(a.stream,["displayInfo","needsUpdate"]);d("useWAWebModelValues").useModelValues(a.notice,["noticeId","blocking","banner","shouldShowButterBar"]);a=d("useWAWebMuteValues").useMuteValues(a.mute.id,[d("WAWebMuteGetters").getIsMuted]);a=a[0];e=n((e=window.Notification)==null?void 0:e.permission);var i=e[0],j=e[1];e=n(!1);var q=e[0],r=e[1];e=n(!1);var s=e[0],t=e[1];e=n({detected:!1});var u=e[0],v=e[1];e=d("useWAWebABPropConfigValue").useABPropConfigValue("brigading_privacy_setting_enabled");var w=d("WAWebUserPrefsIndexedDBStorage").userPrefsIdb.get("WABrigadingState");w=n(w);var x=w[0],y=w[1];w=n(function(){return!1});var z=w[0],A=w[1];z=n(function(){return c("gkx")("26258")?null:d("WAWebUserPrefsGeneral").getStorageAlert()});w=z[0];var B=z[1],C=c("useLazyRef")(function(){return new(d("WAShiftTimer").ShiftTimer)(function(a){r(a)})});z=n(d("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===d("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.ButterBar);var D=z[0],E=z[1];z=function(){C.current.onOrBefore(p,!0)};var F=function(){var a;d("WAWebModalManager").ModalManager.open(l.jsx((a=d("WAWebGuidePopup.react")).GuidePopup,{messaging:a.Messaging.NOTIFICATIONS,onConfirm:a.guideConfirm,onCancel:a.notificationGuideLearnMore,type:a.GuidePopupType.GUIDE_ALLOW}));window.Notification.requestPermission(function(a){d("WAWebModalManager").ModalManager.close();j(a);if(a===d("WAWebNotificationConstants").PERMISSION_ALLOWED){a=d("WAWebMuteCollection").MuteCollection.getGlobalNotifications();a||d("WAWebMuteCollection").MuteCollection.setGlobalNotifications(!0);if(d("WAWebPushNotificationsGatingUtils").canEnableOfflineNotifications()){a=d("WAWebMuteCollection").MuteCollection.getGlobalOfflineNotifications();a||(d("WAWebSubscribePushManagerAction").handleOfflineNotifications(!0),d("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(!0))}}})},G=function(){if(window.Notification&&i===d("WAWebNotificationConstants").PERMISSION_ALLOWED){d("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(!0);d("WAWebSubscribePushManagerAction").handleOfflineNotifications(!0);g();var a=h._(/*BTDS*/"__JHASH__VHGVKIYwy2t__JHASH__"),b=h._(/*BTDS*/"__JHASH__Vz65ZOpDhM4__JHASH__");d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:a,duration:6e3,action:{actionText:b,onAction:function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebNotificationsDrawer.react"),{onCancel:function(){d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}))}}}),d("WAWebToastManager").ToastPosition.RIGHT)}else if(window.Notification&&i===d("WAWebNotificationConstants").PERMISSION_DEFAULT){d("WAWebModalManager").ModalManager.open(l.jsx((a=d("WAWebGuidePopup.react")).GuidePopup,{messaging:a.Messaging.BACKGROUND_SYNC,onConfirm:a.guideConfirm,onCancel:a.notificationGuideLearnMore,type:a.GuidePopupType.GUIDE_ALLOW}));window.Notification.requestPermission(function(a){d("WAWebModalManager").ModalManager.close();j(a);if(a===d("WAWebNotificationConstants").PERMISSION_ALLOWED){a=d("WAWebMuteCollection").MuteCollection.getGlobalOfflineNotifications();a||(d("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(!0),d("WAWebSubscribePushManagerAction").handleOfflineNotifications(!0))}})}else d("WALogger").WARN(k())},H=function(){return c("WAWebNoticeModel").shouldShowButterBar&&c("WAWebNoticeModel").noticeId!=null&&c("WAWebNoticeModel").banner!=null&&c("WAWebNoticeModel").blocking===!1},I=function(){if(H()&&!s){var a=new(d("WAWebUserNoticeWamEvent").UserNoticeWamEvent)({userNoticeId:c("WAWebNoticeModel").noticeId,userNoticeContentVersion:c("WAWebNoticeModel").policyVersion,userNoticeEvent:d("WAWebWamEnumUserNoticeEvent").USER_NOTICE_EVENT.BANNER_APPEAR});a.commit();t(!0)}},J=function(){c("gkx")("26258")||B(d("WAWebUserPrefsGeneral").getStorageAlert())},K=function(){t(!1)},L=function(){A(!1)},M=function(){f&&f(q||s)};m(function(){M()},[]);c("useWAWebOnUnmount")(function(){C.current.cancel()});d("useWAWebListener").useListener(c("WAWebNoticeModel"),"change:noticeId",K);d("useWAWebListener").useListener(c("WAWebNoticeModel"),["change:banner","change:blocking"],I);d("useWAWebListener").useListener(c("gkx")("26258")?d("WAWebCmd").Cmd:null,"handle_low_storage_butter_bar",J);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"on_notification_permission_change",function(){j(window.Notification.permission)});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"on_brigading_state_change",function(a){y(a)});d("useWAWebListener").useListener(c("WAWebL10N"),"locale_changed_on_phone",function(a){var b=a.newLocale;a=a.currentLocale;b!==a?v({detected:!0,newLocale:b}):v({detected:!1})});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,["offline_progress_update","offline_delivery_end"],function(){E(d("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===d("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.ButterBar)});L=null;K=b("cr:5735")?l.jsx(b("cr:5735"),{alertType:w}):null;I=u.detected?l.jsx(c("WAWebLocaleManualUpdateButterbar.react"),{locale:u.newLocale}):null;J=e&&x!=null?l.jsx(c("WAWebBrigadingButterBar.react"),{state:x,onDismiss:function(){void d("WAWebUserPrefsGeneral").clearBrigadingstate(),y(null)}}):null;return l.jsxs(c("WAWebVelocityTransitionGroup"),{transitionName:"butterbar",xstyle:o.container,testid:void 0,children:[J,L,K,I,l.jsx(c("WAWebNoticeButterbar.react"),{shouldShow:H(),banner:c("WAWebNoticeModel").banner}),l.jsx(c("WAWebPrimaryButterbar.react"),{displayInfo:d("WAWebStreamModel").Stream.displayInfo,needsUpdate:d("WAWebStreamModel").Stream.needsUpdate,showResumeProgress:D,showNotify:q,isMuted:a,notifyPermission:i,onShowNotifyDelay:z,onRequestPermissions:F,onEnableOfflineNotifications:G,socketStream:d("WAWebSocketModel").Socket.stream})]})}q.displayName=q.name+" [from "+f.id+"]";function a(a){a=a.setShowButterBar;return l.jsx(q,{stream:d("WAWebStreamModel").Stream,notice:c("WAWebNoticeModel"),mute:d("WAWebMuteCollection").MuteCollection.globalMute(),setShowButterBar:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNuxBusinessProfileBanner.react",["fbt","WAWebABProps","WAWebBusinessProfileUtils","WAWebConnModel","WAWebContactCollection","WAWebCoolOffNuxBanner.react","WAWebDrawerManager","WAWebNux","WAWebNuxBanner","WAWebNuxCoolOff","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebTextStatusCollection","WAWebUserPrefsMeUser","WAWebWamEnumBannerTypes","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).createRef;function m(a){var b=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(a),c=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(a);a=d("WAWebContactCollection").ContactCollection.assertGet(a);d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:b,profilePicThumb:c,contact:a,conn:d("WAWebConnModel").Conn,isInitialStep:!0}))}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$BusinessProfileBanner$p_1=l(),c.getElement=function(){return c.$BusinessProfileBanner$p_1.current},b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.render=function(){var a=this.props.onInteract,b=new(d("WAWebNuxCoolOff").CoolOffNux)(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.INCOMPLETE_BUSINESS_PROFILE_BANNER,{metricField:d("WAWebWamEnumBannerTypes").BANNER_TYPES.SMB_EDIT_PROFILE});return k.jsx(c("WAWebCoolOffNuxBanner.react"),{ref:this.$BusinessProfileBanner$p_1,title:h._(/*BTDS*/"__JHASH__mgk-NkayyWr__JHASH__"),actionText:h._(/*BTDS*/"__JHASH__Js_yRxQKfhj__JHASH__"),onDismiss:a,onClick:function(){var b=d("WAWebUserPrefsMeUser").getMeUser();m(b);a==null?void 0:a()},nuxManager:b,theme:"nuxGreen"})};b.shouldShow=function(){var a=d("WAWebUserPrefsMeUser").getMeUser();a=d("WAWebContactCollection").ContactCollection.assertGet(a).businessProfile;return!!a&&d("WAWebABProps").getABPropConfigValue("web_abprop_business_profile_incomplete_nux_banner")&&d("WAWebConnModel").Conn.isSMB&&!d("WAWebBusinessProfileUtils").isCompleteBizProfile(a)&&d("WAWebNuxCoolOff").shouldShowNUX(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.INCOMPLETE_BUSINESS_PROFILE_BANNER)};return b}(d("WAWebNuxBanner").NuxBanner);g["default"]=a}),226); __d("WAWebNuxCtwaSuggestionBanner.react",["WAWebBizGatingUtils","WAWebCoolOffNuxBanner.react","WAWebNewCTWASuggestionAction","WAWebNuxBanner","WAWebNuxCoolOff","WAWebNuxCtwaSuggestionHelpers","WAWebWamEnumBannerTypes","err","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).createRef;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$CTWASuggestionBanner$p_1=k(),c.getElement=function(){return c.$CTWASuggestionBanner$p_1.current},b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.render=function(){var a=this.props,b=a.onInteract,e=a.suggestion;a=e.id;var f=e.heading,g=e.body,h=e.highlight,i=e.display;a=babelHelpers["extends"]({},d("WAWebNuxCtwaSuggestionHelpers").BANNER_CONFIG,{storageAccessors:d("WAWebNuxCtwaSuggestionHelpers").getStorageAccessors(a),bannerId:a,logImpression:function(){d("WAWebNewCTWASuggestionAction").ctwaSuggestionShown(e)}});d("WAWebBizGatingUtils").adsActionBannersLoggingEnabled()&&(a.metricField=d("WAWebWamEnumBannerTypes").BANNER_TYPES.SMB_CTWA_AD_ACTION_BANNER);a=new(d("WAWebNuxCoolOff").CoolOffNux)(d("WAWebNuxCtwaSuggestionHelpers").BANNER_TYPE,a);var k;i==="info"?k="adActionInfo":(i,k="adActionWarning");return j.jsx(c("WAWebCoolOffNuxBanner.react"),{ref:this.$CTWASuggestionBanner$p_1,title:f,subtitle:g,actionText:h,onDismiss:function(){b==null?void 0:b(),d("WAWebNewCTWASuggestionAction").ctwaSuggestionInteracted(e)},onClick:function(){b==null?void 0:b(),d("WAWebNewCTWASuggestionAction").ctwaSuggestionInteracted(e,!0)},nuxManager:a,theme:k})};b.shouldShow=function(){throw c("err")("CTWASuggestionBanner#shouldShow should not be called")};return b}(d("WAWebNuxBanner").ExtendableNuxBanner);g.CTWASuggestionBanner=a}),98); __d("WAWebNuxMessageLabelDeprecationChatListBanner.react",["WAWeb-moment","WAWebCoolOffNuxBanner.react","WAWebLabelCollection","WAWebMessageLabelDeprecationUtils","WAWebNux","WAWebNuxBanner","WAWebNuxCoolOff","WAWebSmbMessageLabelDeprecationWamEvent","WAWebWamEnumMessageLabelDeprecationAction","WAWebWamEnumMessageLabelDeprecationEntryPoint","WAWebWamEnumMessageLabelDeprecationSurface","lodash","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).createRef,l=c("lodash").memoize(function(){var a=d("WAWebMessageLabelDeprecationUtils").getMessageLabelDeprecationBannerCoolDownSeconds();a=c("WAWeb-moment").duration(a,"seconds").days();return{COOL_OFF_DURATION_IN_DAYS:a,VIEWS_BEFORE_COOL_OFF_IN_DAYS:1e4,CLICKS_BEFORE_COOL_OFF:1e4,MAX_DISMISSES:1e4,MAX_CLICKS:1e4,MAX_VIEWS_IN_DAYS:1e4,COOL_OFF_START_STORAGE_KEY:d("WAWebNux").CoolOffPeriodKeys.MESSAGE_LABEL_DEPRECATION_MIGRATED_CHAT_LIST}});a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$MessageLabelDeprecationChatListBanner$p_1=k(),c.getElement=function(){return c.$MessageLabelDeprecationChatListBanner$p_1.current},b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.componentDidMount=function(){new(d("WAWebSmbMessageLabelDeprecationWamEvent").SmbMessageLabelDeprecationWamEvent)({messageLabelDeprecationAction:d("WAWebWamEnumMessageLabelDeprecationAction").MESSAGE_LABEL_DEPRECATION_ACTION.VIEW,messageLabelDeprecationSurface:d("WAWebWamEnumMessageLabelDeprecationSurface").MESSAGE_LABEL_DEPRECATION_SURFACE.CHAT_LIST_BANNER,messageLabelDeprecationMigrationLabelCount:d("WAWebLabelCollection").LabelCollection.getMessageLabelCount()}).commit()};e.render=function(){var a=d("WAWebMessageLabelDeprecationUtils").getBannerConfig();if(a==null)return null;var b=this.props.onInteract,e=function(){b==null?void 0:b(),new(d("WAWebSmbMessageLabelDeprecationWamEvent").SmbMessageLabelDeprecationWamEvent)({messageLabelDeprecationAction:d("WAWebWamEnumMessageLabelDeprecationAction").MESSAGE_LABEL_DEPRECATION_ACTION.BANNER_CLICK,messageLabelDeprecationSurface:d("WAWebWamEnumMessageLabelDeprecationSurface").MESSAGE_LABEL_DEPRECATION_SURFACE.CHAT_LIST_BANNER,messageLabelDeprecationMigrationLabelCount:d("WAWebLabelCollection").LabelCollection.getMessageLabelCount()}).commit(),d("WAWebMessageLabelDeprecationUtils").openLabelDeprecationModal(d("WAWebWamEnumMessageLabelDeprecationEntryPoint").MESSAGE_LABEL_DEPRECATION_ENTRY_POINT.CHAT_LIST_BANNER)},f=function(){b==null?void 0:b(),new(d("WAWebSmbMessageLabelDeprecationWamEvent").SmbMessageLabelDeprecationWamEvent)({messageLabelDeprecationAction:d("WAWebWamEnumMessageLabelDeprecationAction").MESSAGE_LABEL_DEPRECATION_ACTION.DISMISS,messageLabelDeprecationSurface:d("WAWebWamEnumMessageLabelDeprecationSurface").MESSAGE_LABEL_DEPRECATION_SURFACE.CHAT_LIST_BANNER,messageLabelDeprecationMigrationLabelCount:d("WAWebLabelCollection").LabelCollection.getMessageLabelCount()}).commit()},g=new(d("WAWebNuxCoolOff").CoolOffNux)(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.MESSAGE_LABEL_DEPRECATION_MIGRATED_CHAT_LIST,l());return j.jsx(c("WAWebCoolOffNuxBanner.react"),{bannerTextTestid:"message-label-deprecation-chat-list-banner",ref:this.$MessageLabelDeprecationChatListBanner$p_1,actionText:a.actionText,title:a.title,subtitle:a.subtitle,onDismiss:f,onClick:e,nuxManager:g,theme:"messageLabelDeprecationChatListBanner"})};b.shouldShow=function(){return d("WAWebNuxCoolOff").shouldShowNUX(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.MESSAGE_LABEL_DEPRECATION_MIGRATED_CHAT_LIST,l())&&d("WAWebMessageLabelDeprecationUtils").shouldShowMessageLabelDeprecationBanner()};return b}(d("WAWebNuxBanner").NuxBanner);g.MessageLabelDeprecationChatListBanner=a}),98); __d("WAWebBusinessOrderExpansionModalIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="business-order-expansion-modal";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=107;m=160;(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 160 107",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:"M45.0228 106.511C7.27935 106.511 0.117188 73.3086 0.117188 51.8967C0.117188 2.08584 46.1981 -10.6525 73.495 8.47549C95.74 24.0635 111.298 17.6963 133.177 23.6214C151.348 28.5424 159.884 45.0453 159.884 63.4651C159.884 85.0229 140.569 106.511 121.679 106.511C98.449 106.511 60.3737 106.511 45.0228 106.511Z",fill:"#EDF5FA"}),j.jsxs("g",{clipPath:"url(#clip0_906_164590)",children:[j.jsx("path",{opacity:.401664,d:"M103.325 54.1147C104.844 54.1147 106.075 52.8849 106.075 51.3679C106.075 49.8509 104.844 48.6211 103.325 48.6211C101.806 48.6211 100.574 49.8509 100.574 51.3679C100.574 52.8849 101.806 54.1147 103.325 54.1147Z",fill:"white"}),j.jsx("path",{opacity:.401664,d:"M70.319 50.9753C71.404 50.9753 72.2836 50.0968 72.2836 49.0133C72.2836 47.9297 71.404 47.0513 70.319 47.0513C69.2341 47.0513 68.3545 47.9297 68.3545 49.0133C68.3545 50.0968 69.2341 50.9753 70.319 50.9753Z",fill:"white"}),j.jsx("path",{opacity:.6,d:"M59.1207 33.7096C61.3992 33.7096 63.2462 31.8649 63.2462 29.5894C63.2462 27.3139 61.3992 25.4692 59.1207 25.4692C56.8422 25.4692 54.9951 27.3139 54.9951 29.5894C54.9951 31.8649 56.8422 33.7096 59.1207 33.7096Z",fill:"white"}),j.jsx("path",{opacity:.6,d:"M27.4913 42.7345C30.0953 42.7345 32.2062 40.6263 32.2062 38.0257C32.2062 35.4251 30.0953 33.3169 27.4913 33.3169C24.8873 33.3169 22.7764 35.4251 22.7764 38.0257C22.7764 40.6263 24.8873 42.7345 27.4913 42.7345Z",fill:"white"}),j.jsx("path",{d:"M86.0363 43.6436C91.2442 43.6436 95.4661 39.3995 95.4661 34.1641C95.4661 28.9287 91.2442 24.6846 86.0363 24.6846C80.8283 24.6846 76.6064 28.9287 76.6064 34.1641C76.6064 39.3995 80.8283 43.6436 86.0363 43.6436Z",fill:"white"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.996 40.9218C81.2349 38.5956 82.61 37.7533 83.7723 37.191C85.0286 36.5831 87.0479 36.2486 87.8672 36.2455C90.6818 36.235 91.8293 37.1608 92.2846 38.5542C91.5414 42.4059 83.7489 43.4692 80.996 40.9218Z",fill:"#B8D0E2"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M85.0947 39.7091C82.7495 39.2357 79.103 31.5456 83.311 30.5152C87.5189 29.4848 87.9517 31.1641 88.2418 33.7949C88.5318 36.4257 87.44 40.1825 85.0947 39.7091Z",fill:"#C2A891"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M88.1999 36.4823C88.6582 35.5282 89.5685 32.5677 87.9339 30.7122C86.2993 28.8567 83.0906 29.3938 81.7107 31.1651C80.5831 32.6124 81.0897 34.8426 81.7362 35.4875C81.7308 34.5645 85.3049 33.4829 85.6266 32.7753C86.0965 33.7922 86.8396 34.8246 87.1621 34.6641C87.1607 34.4333 86.9247 33.7397 87.3959 33.8752C87.8671 34.0108 87.9187 35.0031 87.4972 35.3244C87.5908 35.8385 87.825 36.2245 88.1999 36.4823Z",fill:"#8D8178"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M64.3573 60.0005H125.72C127.022 60.0005 128.077 61.0546 128.077 62.3549V86.6836C128.077 87.9839 127.022 89.038 125.72 89.038H69.5335C68.2315 89.038 67.176 87.9839 67.176 86.6836V65.9064L63.6017 61.6083C63.255 61.1915 63.3124 60.573 63.7297 60.2268C63.9061 60.0806 64.1281 60.0005 64.3573 60.0005Z",fill:"white"}),j.jsx("path",{d:"M116.916 71.2441H94.3535C93.9641 71.2441 93.6484 71.4627 93.6484 71.7322V73.2047C93.6484 73.4742 93.9641 73.6927 94.3535 73.6927H116.916C117.306 73.6927 117.621 73.4742 117.621 73.2047V71.7322C117.621 71.4627 117.306 71.2441 116.916 71.2441Z",fill:"#EDF5F9"}),j.jsx("path",{d:"M122.369 65.8027H94.3489C93.9621 65.8027 93.6484 66.0212 93.6484 66.2908V67.7632C93.6484 68.0328 93.9621 68.2513 94.3489 68.2513H122.369C122.756 68.2513 123.07 68.0328 123.07 67.7632V66.2908C123.07 66.0212 122.756 65.8027 122.369 65.8027Z",fill:"#EDF5F9"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M95.0545 79.1338H109.677C110.454 79.1338 111.083 79.5767 111.083 80.1231V82.4975C111.083 83.0439 110.454 83.4868 109.677 83.4868H95.0545C94.2779 83.4868 93.6484 83.0439 93.6484 82.4975V80.1231C93.6484 79.5767 94.2779 79.1338 95.0545 79.1338Z",fill:"#B8D0E2"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M48.798 86.4492C49.6286 88.4316 53.2405 90.9578 54.4788 90.7786C56.8058 90.4418 58.422 83.8842 58.7021 80.4495C58.7021 80.4495 56.858 80.2691 53.1698 79.9082C49.3632 84.4041 47.9059 86.5845 48.798 86.4492Z",fill:"#B8D0E2"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M55.2643 81.6371C53.0343 78.9437 50.351 69.5978 47.7025 67.4308C43.775 64.2173 38.2786 62.2739 33.2886 61.9437C33.0373 61.9271 32.4546 61.9527 32.2081 61.9437C30.4203 61.8789 26.2548 62.7037 24.8607 63.026C22.0513 63.6753 21.6191 70.6991 21.6191 81.6326C21.6191 92.3858 22.1494 90.8177 25.1173 95.2758H49.3122C49.0142 94.5279 49.3122 92.6442 49.3122 87.9137C49.3122 86.5137 55.9891 82.5125 55.2643 81.6371Z",fill:"#B8D0E2"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.8528 73.6719L46.8035 74.06C47.3146 74.0742 47.7697 74.3872 47.9653 74.8591C49.1931 77.8207 49.8732 81.0315 50.0056 84.4916C50.1223 87.5418 49.5734 91.1819 51.0861 95.2943H26.0184C23.2928 91.4323 22.3564 88.1135 23.2091 85.338C26.1016 82.8547 28.9283 79.1844 31.6891 74.3271C31.9259 73.9106 32.3735 73.6586 32.8528 73.6719Z",fill:"white"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.3406 61.9624C33.5821 65.209 36.1753 70.1872 37.4719 75.3818C36.1753 75.5983 35.3109 75.8147 34.4465 75.8147C33.7982 69.7543 30.3406 64.7762 27.5312 62.3953C28.6838 62.1067 29.6202 61.9624 30.3406 61.9624Z",fill:"white"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M45.2509 65.4255C46.5475 68.4557 46.3314 71.053 46.3314 74.9489C45.0348 75.1654 45.2509 74.9489 44.3864 75.1654C44.6025 71.4858 44.8187 66.9406 43.0898 64.3433C44.0983 64.7761 44.8187 65.1369 45.2509 65.4255Z",fill:"white"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M53.2202 81.8524L50.6295 80.7512C49.9969 80.4824 49.7024 79.7523 49.9716 79.1206C50.0447 78.9489 50.1556 78.7959 50.296 78.6729L57.3115 72.5259C57.6779 72.2049 58.1982 72.1269 58.6428 72.3265L61.5625 73.6372C62.0328 73.8483 62.2426 74.4001 62.0312 74.8698C61.9773 74.9897 61.8985 75.0968 61.8002 75.1842L54.5349 81.6374C54.1751 81.957 53.6632 82.0407 53.2202 81.8524Z",fill:"#25D366"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M56.6481 77.1756C55.7948 77.3969 55.5919 78.7756 55.5915 79.3054C55.5904 80.7299 56.2349 81.0987 56.965 81.4807C57.7067 81.7652 58.6871 81.0818 58.8452 80.0223C58.9624 79.2375 58.9156 76.5876 56.6481 77.1756Z",fill:"#E9C4A6"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.3467 92.0293C33.0033 92.3731 34.2434 93.4551 34.067 95.2754C33.3846 95.2754 32.1445 95.2754 30.3467 95.2754V92.0293Z",fill:"#E9C4A6"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.2075 61.9434C32.4236 61.9434 33.2245 61.8212 34.3242 64.255C36.423 68.9004 40.1888 71.1912 42.1437 69.731C43.4469 68.7575 43.0882 66.5224 41.0676 63.0256C40.132 58.8045 39.4196 56.5773 38.9305 56.344C38.5776 56.1757 37.9135 56.7938 37.6819 57.389C36.328 60.8691 34.1623 61.335 32.2075 61.9434Z",fill:"#E9C4A6"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M42.7383 66.7482C42.521 65.8889 42.0783 64.8514 41.4102 63.6357C40.2682 62.6929 39.26 61.5781 38.3856 60.2915C37.5182 64.1714 41.1327 66.5143 42.7383 66.7482Z",fill:"black",fillOpacity:.1}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24.8607 63.0261C17.9453 65.4073 14.0906 79.0894 15.783 91.8134C15.9457 93.0368 17.0794 95.2764 20.1048 95.2762C23.513 95.276 29.2516 95.2758 30.3841 95.2757L30.3843 92.0291C29.3974 91.8127 24.3561 90.9061 23.7449 89.6485C22.6929 87.4844 27.8833 82.8392 30.8132 75.4571C32.8211 70.3981 27.1523 62.237 24.8607 63.0261Z",fill:"#B8D0E2"}),j.jsx("mask",{id:"mask0_906_164590",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:36,y:48,width:13,height:16,children:j.jsx("path",{d:"M43.1588 63.6252C39.7802 63.8618 37.7642 60.8688 36.3248 53.726C35.4281 49.2761 40.3601 47.4383 43.8446 48.6717C45.8118 49.368 47.3754 51.3733 47.8662 53.2985C48.4028 55.4034 48.0007 56.8687 47.5397 58.4365C46.8323 60.8426 44.4522 63.5346 43.1588 63.6252Z",fill:"white"})}),j.jsx("g",{mask:"url(#mask0_906_164590)",children:j.jsx("path",{d:"M41.7189 63.6754C45.1057 63.6761 46.9078 60.5499 47.8447 53.3243C48.4285 48.8227 43.3801 47.333 39.9902 48.8061C38.0765 49.6377 36.6567 51.7472 36.3016 53.7018C35.9133 55.839 36.4168 57.2726 36.9861 58.8045C37.8599 61.1555 40.4222 63.6752 41.7189 63.6754Z",fill:"#E9C4A6"})}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M40.5019 50.3108C43.9395 51.5716 47.6633 50.7454 47.6379 54.9372C51.0833 46.1516 43.6496 43.7522 39.7535 44.5999C36.851 45.2314 33.0544 47.9036 34.6511 54.9049C34.8247 55.6665 35.3238 58.7478 34.1598 61.2794C35.0043 61.0208 37.612 59.6069 37.6147 56.9591C36.8024 56.9599 36.3176 55.6983 36.5877 55.0212C37.0874 53.7687 37.9359 54.1185 38.3949 54.737C38.8582 54.478 40.7446 52.5541 40.5019 50.3108Z",fill:"#92969D"}),j.jsx("path",{d:"M125.297 54.3209C132.008 54.3209 137.449 48.8285 137.449 42.0533C137.449 35.2781 132.008 29.7856 125.297 29.7856C118.586 29.7856 113.146 35.2781 113.146 42.0533C113.146 48.8285 118.586 54.3209 125.297 54.3209Z",fill:"url(#paint0_linear_906_164590)"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M121.882 52.1225C122.097 48.8433 123.522 46.8632 124.944 46.1686C126.481 45.4177 128.743 44.5127 129.754 44.58C131.805 44.7167 133.291 45.1043 134.671 45.7549C133.753 50.4949 127.163 54.5146 121.882 52.1225Z",fill:"#B8D0E2"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M125.237 51.7414C124.432 50.2884 124.559 48.2369 125.618 45.5867L126.134 41.2099L128.835 43.1736C129.816 43.8436 130.581 44.3772 131.13 44.7745C131.119 48.149 126.425 49.554 125.237 51.7414Z",fill:"#E5BE9E"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M124.279 46.968C121.408 46.3774 116.918 36.9126 122.062 35.6621C127.207 34.4117 127.743 36.4771 128.107 39.7115C128.472 42.9458 127.151 47.5587 124.279 46.968Z",fill:"#E5BE9E"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M128.027 43.785C129.035 44.4573 130.16 44.7917 131.4 44.7882C129.408 42.6088 129.871 37.9211 127.788 35.8955C125.685 33.8497 121.75 34.2844 120.064 36.4478C118.686 38.2156 119.292 40.5852 120.089 41.3781C120.087 40.9837 120.084 40.4705 120.476 39.6052C121.87 40.9928 125.437 41.0109 125.832 40.8157C126.227 40.5421 126.178 39.8315 126.895 40.0323C127.612 40.2332 127.542 41.4161 127.026 41.8078C127.202 42.753 126.897 43.0325 128.027 43.785Z",fill:"#607299"}),j.jsx("rect",{x:71.3076,y:64.9863,width:19.3417,height:19.3165,rx:6.20957,fill:"#E0ECF4"})]}),j.jsxs("defs",{children:[j.jsxs("linearGradient",{id:"paint0_linear_906_164590",x1:137.189,y1:48.0872,x2:113.337,y2:38.0999,gradientUnits:"userSpaceOnUse",children:[j.jsx("stop",{stopColor:"#F2FBFF"}),j.jsx("stop",{offset:1,stopColor:"white"})]}),j.jsx("clipPath",{id:"clip0_906_164590",children:j.jsx("rect",{width:122.588,height:75.3616,fill:"white",transform:"translate(15.1895 20.0962)"})})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.BusinessOrderExpansionModalIcon=a}),98); __d("WAWebSecurityShieldLockIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="security-shield-lock";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=22;m=20;(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 20 22",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:"M2.50738 2.8785L8.96892 0.515331C9.63251 0.27264 10.3672 0.27264 11.0308 0.515331L17.4923 2.8785C18.6014 3.28412 19.3332 4.29734 19.3332 5.42726V11.0614C19.3332 14.829 16.7011 18.5967 11.437 21.3018C11.4073 21.317 11.3761 21.3329 11.3432 21.3494C10.5029 21.7724 9.49684 21.7724 8.65648 21.3495C8.62356 21.3329 8.59227 21.317 8.56261 21.3017C3.29854 18.5966 0.666504 14.829 0.666504 11.0614V5.42726C0.666504 4.29734 1.39832 3.28412 2.50738 2.8785ZM9.99984 4.33331C11.7571 4.33331 13.1817 5.74279 13.1817 7.48146V8.53084H13.3938C14.0967 8.53084 14.6665 9.09463 14.6665 9.7901V14.4074C14.6665 15.1029 14.0967 15.6666 13.3938 15.6666H6.6059C5.90299 15.6666 5.33317 15.1029 5.33317 14.4074V9.7901C5.33317 9.09463 5.90299 8.53084 6.6059 8.53084H6.81802V7.48146C6.81802 5.74279 8.24257 4.33331 9.99984 4.33331ZM8.09075 8.53084V7.48146C8.09075 6.43826 8.94547 5.59257 9.99984 5.59257C11.0542 5.59257 11.9089 6.43826 11.9089 7.48146V8.53084H8.09075ZM10.6362 12.5185C10.6362 12.8662 10.3513 13.1481 9.99984 13.1481C9.64838 13.1481 9.36347 12.8662 9.36347 12.5185C9.36347 12.1708 9.64838 11.8889 9.99984 11.8889C10.3513 11.8889 10.6362 12.1708 10.6362 12.5185Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SecurityShieldLockIcon=a}),98); __d("WAWebBizOrderExpansionModal.react",["fbt","WAWebBizGatingUtils","WAWebBusinessOrderExpansionModalIcon.react","WAWebChatMsgIcon.react","WAWebConfirmPopup.react","WAWebFlex.react","WAWebModalManager","WAWebReceiptIcon.react","WAWebSecurityShieldLockIcon.react","WAWebText_DONOTUSE.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={illustration:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},modalTitle:{lineHeight:"xo0entv",textAlign:"x2b8uid",$$css:!0},iconColor:{color:"xx2jlie",$$css:!0},listItem:{lineHeight:"x132q4wb",$$css:!0}};function m(a){var b=a.onDismiss;a=a.onOk;return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:a,okText:h._(/*BTDS*/"__JHASH__m8KzLp1y7wJ__JHASH__"),onOverlayClick:b,children:k.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:d("WAWebUISpacing").uiPadding.horiz30,children:[k.jsx(d("WAWebFlex.react").FlexRow,{justify:"center",align:"center",className:(j||(j=c("stylex")))([d("WAWebUISpacing").uiPadding.top28]),children:k.jsx(d("WAWebBusinessOrderExpansionModalIcon.react").BusinessOrderExpansionModalIcon,{width:360,height:128,xstyle:l.illustration})}),k.jsx(d("WAWebFlex.react").FlexRow,{children:k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{weight:"medium",size:"24",color:"dark",xstyle:[d("WAWebUISpacing").uiMargin.vert24,l.modalTitle],children:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__GVKmRqk1o9D__JHASH__"):h._(/*BTDS*/"__JHASH__wasG4ULCCEG__JHASH__")})}),k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:[d("WAWebUISpacing").uiMargin.bottom16,d("WAWebUISpacing").uiPadding.horiz18],children:[k.jsx(d("WAWebChatMsgIcon.react").ChatMsgIcon,{height:22,width:22,xstyle:l.iconColor}),k.jsxs(d("WAWebText_DONOTUSE.react").TextDiv,{xstyle:d("WAWebUISpacing").uiMargin.start24,children:[k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{size:"16",weight:"medium",color:"dark",xstyle:[d("WAWebUISpacing").uiMargin.bottom4,l.listItem],children:h._(/*BTDS*/"__JHASH__C6fWMISW5sc__JHASH__")}),k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{size:"16",weight:"normal",color:"secondary",xstyle:l.listItem,children:h._(/*BTDS*/"__JHASH__i6RnpV6ticw__JHASH__")})]})]}),k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:[d("WAWebUISpacing").uiMargin.bottom16,d("WAWebUISpacing").uiPadding.horiz18],children:[k.jsx(d("WAWebSecurityShieldLockIcon.react").SecurityShieldLockIcon,{height:22,width:22,xstyle:l.iconColor}),k.jsxs(d("WAWebText_DONOTUSE.react").TextDiv,{xstyle:d("WAWebUISpacing").uiMargin.start24,children:[k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{size:"16",weight:"medium",color:"dark",xstyle:[d("WAWebUISpacing").uiMargin.bottom4,l.listItem],children:h._(/*BTDS*/"__JHASH__i4X3v8NEyl9__JHASH__")}),k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{size:"16",weight:"normal",color:"secondary",xstyle:l.listItem,children:h._(/*BTDS*/"__JHASH__AOTAZk4vmdD__JHASH__")})]})]}),k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",xstyle:[d("WAWebUISpacing").uiMargin.bottom16,d("WAWebUISpacing").uiPadding.horiz18],children:[k.jsx(d("WAWebReceiptIcon.react").ReceiptIcon,{height:22,width:22,xstyle:l.iconColor}),k.jsxs(d("WAWebText_DONOTUSE.react").TextDiv,{xstyle:d("WAWebUISpacing").uiMargin.start24,children:[k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{size:"16",weight:"medium",color:"dark",xstyle:[d("WAWebUISpacing").uiMargin.bottom4,l.listItem],children:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__iiicKEVmKsx__JHASH__"):h._(/*BTDS*/"__JHASH__gM2nT9GCvy8__JHASH__")}),k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{size:"16",weight:"normal",color:"secondary",xstyle:l.listItem,children:h._(/*BTDS*/"__JHASH__Ynxm4D5xNVb__JHASH__")})]})]})]})})}m.displayName=m.name+" [from "+f.id+"]";a=function(a){var b=function(){a(),d("WAWebModalManager").ModalManager.close()},c=function(){a(),d("WAWebModalManager").ModalManager.close()};d("WAWebModalManager").ModalManager.open(k.jsx(m,{onDismiss:b,onOk:c}))};g.BizOrderExpansionModal=m;g.openOrderExpansionModal=a}),226); __d("WAWebNuxOrderExpansion.react",["fbt","WAWebBizGatingUtils","WAWebBizOrderExpansionModal.react","WAWebCoolOffNuxBanner.react","WAWebNux","WAWebNuxBanner","WAWebNuxCoolOff","WAWebOrdersExpansionUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).createRef,m={COOL_OFF_START_STORAGE_KEY:d("WAWebNux").CoolOffPeriodKeys.ORDER_EXPANSION,MAX_DISMISSES:1,MAX_CLICKS:1},n=function(){return d("WAWebOrdersExpansionUtils").isOrderExpansionBannerEnabled()&&d("WAWebNuxCoolOff").shouldShowNUX(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.ORDER_EXPANSION,m)};a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$OrderExpansionBanner$p_1=l(),c.getElement=function(){return c.$OrderExpansionBanner$p_1.current},b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.render=function(){var a=this.props.onInteract,b=new(d("WAWebNuxCoolOff").CoolOffNux)(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.ORDER_EXPANSION,m),e=function(){a==null?void 0:a(),d("WAWebBizOrderExpansionModal.react").openOrderExpansionModal(function(){return b.dismiss()})};return k.jsx(c("WAWebCoolOffNuxBanner.react"),{ref:this.$OrderExpansionBanner$p_1,title:h._(/*BTDS*/"__JHASH__S5tHnZ878nz__JHASH__"),subtitle:d("WAWebBizGatingUtils").isOrderContentOptimizationEnabled()?h._(/*BTDS*/"__JHASH__JrAsFcQS8XM__JHASH__"):h._(/*BTDS*/"__JHASH__GUXb51hb6sm__JHASH__"),actionText:h._(/*BTDS*/"__JHASH__WQ3uOdrDI8q__JHASH__"),onDismiss:a,onClick:e,nuxManager:b,theme:"orderExpansion"})};b.shouldShow=function(){return n()};return b}(d("WAWebNuxBanner").NuxBanner);g.shouldShowOrderExpansionBanner=n;g.OrderExpansionBanner=a}),226); __d("WAWebNuxProductCatalogBanner.react",["fbt","WAWebABProps","WAWebBusinessProfileCollection","WAWebBusinessProfileUtils","WAWebCatalogCollection","WAWebCatalogManagementFlowLoadable","WAWebConnModel","WAWebCoolOffNuxBanner.react","WAWebNux","WAWebNuxBanner","WAWebNuxCoolOff","WAWebUserPrefsMeUser","WAWebWamEnumBannerTypes","WAWebWamEnumCatalogEntryPoint","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).createRef;function m(){if(!d("WAWebConnModel").Conn.isSMB)return!1;var a=d("WAWebUserPrefsMeUser").getMeUser();a=d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(a);return d("WAWebBusinessProfileUtils").hasShop(a)}function n(){var a=d("WAWebUserPrefsMeUser").getMeUser();a=d("WAWebCatalogCollection").CatalogCollection.get(a);if(!a)return!1;a=a.productCollection.getProductModels(!0);return(a==null?void 0:a.length)>0}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$ProductCatalogBanner$p_1=l(),c.getElement=function(){return c.$ProductCatalogBanner$p_1.current},b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.render=function(){var a=this.props.onInteract,b=new(d("WAWebNuxCoolOff").CoolOffNux)(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.PRODUCT_CATALOG_BANNER,{metricField:d("WAWebWamEnumBannerTypes").BANNER_TYPES.SMB_CATALOG});return k.jsx(c("WAWebCoolOffNuxBanner.react"),{ref:this.$ProductCatalogBanner$p_1,title:h._(/*BTDS*/"__JHASH__vumx1w0Ke-q__JHASH__"),actionText:h._(/*BTDS*/"__JHASH__OFISOZOwGES__JHASH__"),onDismiss:a,onClick:function(){d("WAWebCatalogManagementFlowLoadable").openCatalogManagementFlow({entryPoint:d("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_NUX,isInitialStep:!1}),a==null?void 0:a()},nuxManager:b,theme:"nuxGreen"})};b.shouldShow=function(){return d("WAWebABProps").getABPropConfigValue("web_abprop_product_catalog_nux_banner")&&d("WAWebConnModel").Conn.isSMB&&!m()&&!n()&&d("WAWebNuxCoolOff").shouldShowNUX(d("WAWebNux").NuxKeyTypes.COOL_OFF_NUX.PRODUCT_CATALOG_BANNER)};return b}(d("WAWebNuxBanner").NuxBanner);g["default"]=a}),226); __d("WAWebNuxQuickPromotionChatListBanner.react",["WALogger","WAWebButterbar.react","WAWebDomSanitize","WAWebNuxBanner","WAWebNuxBannerText.react","WAWebQuickPromotionCollection","WAWebUIRefreshGatingUtils","err","react"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["QuickPromotionChatListBanner: missing link"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["QuickPromotionChatListBanner: missing primary action"]);k=function(){return a};return a}var l=i||c("react"),m=(h||(h=d("react"))).createRef;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.$QuickPromotionChatListBanner$p_1=m(),c.getElement=function(){return c.$QuickPromotionChatListBanner$p_1.current},b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.render=function(){var a=this.props,b=a.onInteract,e=a.promotion;a=e.data;var f=a.titleElementValue,g=a.textElementValue,h=a.primaryAction,i=a.colors;a=a.image;if(h==null){d("WALogger").ERROR(k()).sendLogs("quick-promotion-missing-banner-action");return null}var m=h.text,n=h.universalLink;h=h.deepLink;h=(h=h)!=null?h:n;if(h==null||h===""){d("WALogger").ERROR(j()).sendLogs("quick-promotion-missing-action-link");return null}n=function(a){a.preventDefault(),a.stopPropagation(),b==null?void 0:b(),d("WAWebQuickPromotionCollection").QuickPromotionCollection.promotionDismissed(e.id)};h=l.jsx("div",{dangerouslySetInnerHTML:{__html:d("WAWebDomSanitize").sanitizeQuickPromotionText(g)}});g=l.jsx(d("WAWebNuxBannerText.react").NuxBannerText,{subtitle:h,actionText:m});h=a!=null?{description:a.description,iconLight:(h=a.light)==null?void 0:h.elementValue,iconDark:(m=a.dark)==null?void 0:m.elementValue}:null;d("WAWebQuickPromotionCollection").QuickPromotionCollection.promotionShown(e.id);return l.jsx(c("WAWebButterbar.react"),{ref:this.$QuickPromotionChatListBanner$p_1,type:"quickPromotion",title:f,text:g,onDismiss:n,action:function(){b==null?void 0:b(),d("WAWebQuickPromotionCollection").QuickPromotionCollection.promotionPrimaryActionClicked(e.id)},customColours:i,customIcons:h,useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})};b.shouldShow=function(){throw c("err")("QuickPromotionChatListBanner#shouldShow should not be called")};return b}(d("WAWebNuxBanner").ExtendableNuxBanner);g.QuickPromotionChatListBanner=a}),98); __d("WAWebChatlistPanelNuxBanners.react",["WAWebBizGatingUtils","WAWebBusinessProfileCollection","WAWebBusinessProfileTypes","WAWebCTWAConstants","WAWebCTWASuggestionCollection","WAWebConnModel","WAWebErrorBoundary.react","WAWebMessageLabelDeprecationUtils","WAWebNux","WAWebNuxBanners.react","WAWebNuxBusinessProfileBanner.react","WAWebNuxCtwaSuggestionBanner.react","WAWebNuxMessageLabelDeprecationChatListBanner.react","WAWebNuxOrderExpansion.react","WAWebNuxProductCatalogBanner.react","WAWebNuxQuickPromotionChatListBanner.react","WAWebUserPrefsMeUser","WAWebUserPrefsNuxPreferences","react","useWAWebBestQuickPromotionForSurface","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useMemo,l=b.useState,m=function(a){return(a==null?void 0:(a=a.profileOptions)==null?void 0:a.commerceExperience)===d("WAWebBusinessProfileTypes").CommerceExperienceTypes.NONE};function n(a){var b=a.meUser;a=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();var e=k(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.get(b)},[b]),f=l(function(){return m(e)}),g=f[0],h=f[1];f=l(function(){return d("WAWebBusinessProfileCollection").BusinessProfileCollection.getValid(b)!=null});var i=f[0],n=f[1];d("useWAWebListener").useListener(e,"change",function(){n(!0),h(m(e))});var o=function(){var a;return(a=d("WAWebCTWASuggestionCollection").CTWASuggestionCollection.findFirstNotExpired())==null?void 0:a.suggestion};f=l(o);var p=f[0],q=f[1];d("useWAWebListener").useListener(d("WAWebCTWASuggestionCollection").CTWASuggestionCollection,"add",function(){q(o())});d("useWAWebListener").useListener(d("WAWebUserPrefsNuxPreferences").NuxPrefsEvent,d("WAWebNux").NUX.MESSAGE_LABEL_DEPRECATION_MIGRATED_PERMANENT,a);f=d("useWAWebBestQuickPromotionForSurface").useBestQuickPromotionForSurface({surfaceId:d("WAWebCTWAConstants").QP_SURFACE_ID_CHAT_LIST_TOP},{eligibilityCheck:d("WAWebBizGatingUtils").qpCampaignsEnabled});var r=[];d("WAWebMessageLabelDeprecationUtils").shouldShowMessageLabelDeprecationBanner()&&r.push(j.jsx(d("WAWebNuxMessageLabelDeprecationChatListBanner.react").MessageLabelDeprecationChatListBanner,{onInteract:a},"message_label_deprecation_banner_cool_off"));i&&r.push(j.jsx(c("WAWebNuxBusinessProfileBanner.react"),{onInteract:a},"business"));g&&r.push(j.jsx(c("WAWebNuxProductCatalogBanner.react"),{onInteract:a},"catalog"));p!=null&&r.push(j.jsx(d("WAWebNuxCtwaSuggestionBanner.react").CTWASuggestionBanner,{onInteract:a,suggestion:p},"ctwa_suggestion"));f!=null&&r.push(j.jsx(d("WAWebNuxQuickPromotionChatListBanner.react").QuickPromotionChatListBanner,{onInteract:a,promotion:f.promotion.promotion},"quick_promotion"));d("WAWebNuxOrderExpansion.react").shouldShowOrderExpansionBanner()&&r.push(j.jsx(d("WAWebNuxOrderExpansion.react").OrderExpansionBanner,{onInteract:a},"order_expansion_banner"));return r.length?j.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"nux-banner-error-boundary",children:j.jsx(c("WAWebNuxBanners.react"),{children:r})}):null}n.displayName=n.name+" [from "+f.id+"]";function a(){var a=d("WAWebUserPrefsMeUser").getMeUser();return!d("WAWebConnModel").Conn.isSMB?null:j.jsx(n,{meUser:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebChatlistBanners.react",["WAWebChatButterbar.react","WAWebChatlistPanelNuxBanners.react","react"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState;function a(){var a=k(!0),b=a[0];a=a[1];return j.jsxs(j.Fragment,{children:[j.jsx(c("WAWebChatButterbar.react"),{setShowButterBar:a}),!b&&j.jsx(c("WAWebChatlistPanelNuxBanners.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebChatFolderOpenWamEvent",["WAWebWamCodegenUtils"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({ChatFolderOpen:[2808,{activityIndicatorCount:[2,a.TYPES.INTEGER],folderType:[1,a.TYPES.STRING],hasImportantMessages:[3,a.TYPES.BOOLEAN]},[1,1,1],"regular"]},{ChatFolderOpen:[]});g.ChatFolderOpenWamEvent=b}),98); __d("WAWebChatlistPanelDrawerButton.react",["WAWebCellBorder.react","WAWebCellFrame.react","WAWebFlex.react","WAWebUIRefreshGatingUtils","WAWebUnstyledButton.react","WDSFocusStateStyles","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={wrapper:{flexShrink:"x2lah0s",marginTop:"xu9wuld",marginEnd:"x13w4xx3",marginBottom:"x1i2rge5",marginStart:"xj44mzw",$$css:!0}};function a(a){var b=a.ariaLabel,e=a.dataTab,f=a.dataTestId;f=a.detail;var g=a.icon,h=a.onClick;a=a.primary;return i.jsxs(i.Fragment,{children:[i.jsx(c("WAWebUnstyledButton.react"),{testid:void 0,dataTab:e,xstyle:[j.wrapper,d("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus],onClick:h,"aria-label":b,children:i.jsx(c("WAWebCellFrame.react"),{role:"group",ariaColIndex:null,image:i.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",className:"x1ksvy6g x1009pqg x12nr8rf",children:g}),primary:a,detail:f,theme:"archive-panel"})}),!d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&i.jsx(c("WAWebCellBorder.react"),{})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("useWAWebArchivedChatsActivityIndicator",["WAWebChatCollection","WAWebChatGetters","WAWebConstantsDeprecated","WAWebFrontendChatGetters","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h;b=h||d("react");var i=b.useEffect,j=b.useState;function a(){var a=j(0),b=a[0],e=a[1];a=j(!1);var f=a[0],g=a[1],h=function(){var a=d("WAWebChatCollection").ChatCollection.filter(function(a){return a.archive&&(d("WAWebFrontendChatGetters").getOptimisticUnreadCount(a)>0||d("WAWebFrontendChatGetters").getOptimisticUnreadCount(a)===c("WAWebConstantsDeprecated").MARKED_AS_UNREAD)}).length;e(a)},k=function(){var a=d("WAWebChatCollection").ChatCollection.filter(function(a){return a.archive&&d("WAWebChatGetters").getIsGroup(a)&&(d("WAWebFrontendChatGetters").getOptimisticUnreadCount(a)>0||d("WAWebFrontendChatGetters").getOptimisticUnreadCount(a)===c("WAWebConstantsDeprecated").MARKED_AS_UNREAD)});a=a.some(function(a){var b;b=(b=(b=a.groupMetadata)==null?void 0:b.unreadMentionMetadata.getUnreadMentionCount())!=null?b:0;a=!a.archiveAtMentionViewedInDrawer;return b>0&&a});g(a)};d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"add remove reset change:archive change:unreadCount change:pendingSeenCount change:muteExpiration",h);d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change:archive change:hasUnreadMention change:archiveAtMentionViewedInDrawer",k);i(function(){h(),k()},[]);return{unreadCount:b,showUnreadMentionIcon:f}}g.useArchivedChatsActivityIndicator=a}),98); __d("WAWebChatArchivedEntryPoint.react",["fbt","WAWebArchiveRefreshedIcon.react","WAWebArchivedFlowLoadable","WAWebArchivedOutlineIcon.react","WAWebChatFolderOpenWamEvent","WAWebChatUnreadCount.react","WAWebChatlistPanelDrawerButton.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebMentionsIcon.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","react","useWAWebArchivedChatsActivityIndicator"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=d("useWAWebArchivedChatsActivityIndicator").useArchivedChatsActivityIndicator(),b=a.unreadCount;a=a.showUnreadMentionIcon;var e=b!==0&&!a;e=e?j.jsx("div",babelHelpers["extends"]({className:"x1rg5ohu xfs2ol5"},{children:j.jsx(d("WAWebChatUnreadCount.react").UnreadCount,{count:b,theme:d("WAWebChatUnreadCount.react").UnreadCountTheme.Transparent})})):null;var f=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j.jsx(d("WAWebArchiveRefreshedIcon.react").ArchiveRefreshedIcon,{}):j.jsx(d("WAWebArchivedOutlineIcon.react").ArchivedOutlineIcon,{}),g=a?j.createElement("div",babelHelpers["extends"]({className:"x1rg5ohu x6jxa94 xhvdbge x1nn3v0j x1366qx2"},{key:"icon-mentions"}),j.jsx(d("WAWebMentionsIcon.react").MentionsIcon,{})):null;a=[h._(/*BTDS*/"__JHASH__QKQ4BWr2oYn__JHASH__"),a?h._(/*BTDS*/"__JHASH__wh9ykvnHf_H__JHASH__"):""].join(" ");g=j.jsxs(j.Fragment,{children:[g,e]});e=function(){new(d("WAWebChatFolderOpenWamEvent").ChatFolderOpenWamEvent)({activityIndicatorCount:b,folderType:"Archive"}).commit(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebArchivedFlowLoadable").ArchivedFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast"})};return j.jsx(c("WAWebChatlistPanelDrawerButton.react"),{dataTestId:"chatlist-panel-archived-button",dataTab:d("WAWebTabOrder").TAB_ORDER.ARCHIVED_ENTRY_POINT,ariaLabel:a,onClick:e,primary:h._(/*BTDS*/"__JHASH__QKQ4BWr2oYn__JHASH__"),icon:f,detail:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCallMenuIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="call-menu";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=20;m=20;(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 20 20",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),version:"1.1",x:"0px",y:"0px",children:[j.jsx("title",{children:k}),j.jsx("circle",{fill:"currentColor",cx:4.545,cy:10,r:1.515}),j.jsx("circle",{fill:"currentColor",cx:10,cy:10,r:1.515}),j.jsx("circle",{fill:"currentColor",cx:15.455,cy:10,r:1.515})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.CallMenuIcon=a}),98); __d("WAWebChatListFilterListsDropdown.react",["fbt","WAWebCallMenuIcon.react","WAWebCellFrame.react","WAWebCreateOrEditListDrawer.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebFilterLogging","WAWebFlex.react","WAWebPlusIcon.react","WAWebTabOrder","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnstyledButton.react","WAWebWamEnumUpdateEntryPoint","react","stylex","useMergeRefs"],(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.useRef,n=b.useState,o={dropdown:{borderTopStartRadius:"xzqyx8i",borderTopEndRadius:"xqa96yk",borderBottomEndRadius:"xvwobac",borderBottomStartRadius:"x1h2y310",color:"x1mvgj39",fontSize:"x6prxxf",fontWeight:"xo1l8bm",lineHeight:"x1btupbp",backgroundColor:"x1yky6xw",":hover_backgroundColor":"xf573un",$$css:!0},selected:{backgroundColor:"xcy46fs",$$css:!0},item:{boxSizing:"x9f619",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",fontSize:"x1f6kntn",lineHeight:"x1o2sk6j",$$css:!0},createNewListIcon:{color:"x18kgzzy",$$css:!0},separator:{borderEndStyle:"xd10rxx",borderBottomStyle:"x1sy0etr",borderStartStyle:"x17r0tee",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0}},p=function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()};function a(a){var b=a.ref,e=a.filters,f=a.onSelect,g=a.filterSession;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref","filters","onSelect","filterSession"]);var i=n(!1),k=i[0],s=i[1];i=n(null);var t=i[0],u=i[1];i=m(null);i=c("useMergeRefs")(i,b);b=e.map(function(a,b){var e=a.getLabel(),g=e.toString();return l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return f(a.filter,a.listId,a.listType,b)},children:l.jsx("button",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(o.item,d("WAWebUISpacing").uiPadding.vert8,d("WAWebUISpacing").uiPadding.end32,d("WAWebUISpacing").uiPadding.start24),{children:e}))},g)});b.push(l.jsx(r,{},"separator"));b.push(l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebCreateOrEditListDrawer.react").CreateOrEditListDrawer,{onBack:p,onClose:p,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.ADD_LIST_FILTER}))},children:l.jsx("button",babelHelpers["extends"]({className:"x9f619 x193iq5w x6ikm8r x10wlt62 xlyipyv xuxw1ft x1f6kntn x1o2sk6j xh8yej3"},{children:l.jsx(c("WAWebCellFrame.react"),{theme:"menu-item",image:l.jsx(d("WAWebPlusIcon.react").PlusIcon,{iconXstyle:o.createNewListIcon}),primary:h._(/*BTDS*/"__JHASH__DJI8bhMJ3OP__JHASH__")})}))},"create-new-list-item"));e=k&&t!=null?l.jsx(d("WAWebUimUie.react").UIE,{displayName:"InboxFilterContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:function(){s(!1),u(null)},requestRecentFocusOnUnmount:!1,children:l.jsx(c("WAWebUimUieMenu.react"),{contextMenu:{menu:b,anchor:t.target}})}):null;b=function(a){u(a),s(function(a){!a&&g!=null&&d("WAWebFilterLogging").logLabelDropdownShownEvent(g.newSessionId());return!a})};return l.jsxs(l.Fragment,{children:[l.jsx(q,{ref:i,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,opened:k,onClick:b,id:a.id,role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],tabIndex:a.tabIndex,onFocus:a.onFocus},"filters-dropdown"),e]})}a.displayName=a.name+" [from "+f.id+"]";function q(a){var b=a.ref,e=a.opened,f=a.tabOrder,g=a.onClick;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref","opened","tabOrder","onClick"]);return l.jsx(c("WAWebUnstyledButton.react"),{ref:b,testid:void 0,dataTab:f,onClick:g,"aria-pressed":e,xstyle:[o.dropdown,e&&o.selected,d("WAWebUISpacing").uiPadding.vert6,d("WAWebUISpacing").uiPadding.horiz12],id:a.id,role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],tabIndex:a.tabIndex,onFocus:a.onFocus,children:l.jsx(d("WAWebFlex.react").FlexColumn,{children:l.jsx(d("WAWebFlex.react").FlexRow,{columnGap:8,align:"center",children:l.jsx(d("WAWebCallMenuIcon.react").CallMenuIcon,{})})})})}q.displayName=q.name+" [from "+f.id+"]";function r(){return l.jsx("hr",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([o.separator,d("WAWebUISpacing").uiMargin.vert4,d("WAWebUISpacing").uiMargin.horiz1])))}r.displayName=r.name+" [from "+f.id+"]";g.FilterListsDropdown=a}),226); __d("WAWebChatListFiltersLabelsPill.react",["fbt","WAWebChatCollection","WAWebChatListFilterLabelsDropdownMenu.react","WAWebChevronCustomIcons","WAWebFilterLogging","WAWebLabelCollection","WAWebLabels.react","WAWebListFilterButton.react","WAWebTabOrder","WAWebUimUie.react","WAWebUimUieMenu.react","react","useMergeRefs","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.useRef,n=b.useState,o=function(){return d("WAWebLabelCollection").LabelCollection.getChatLabelsWithUnarchivedAssociations().length===0};function a(a){var b=a.ref,e=a.filterSession,f=a.isSelected,g=a.onClick,i=a.selectedLabelId;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref","filterSession","isSelected","onClick","selectedLabelId"]);var j=n(!1),p=j[0],q=j[1];j=n(o);var r=j[0],s=j[1];j=m(null);b=c("useMergeRefs")(j,b);var t=l(function(){return i==null?null:d("WAWebLabelCollection").LabelCollection.get(i)},[i]);d("useWAWebListener").useListener(d("WAWebLabelCollection").LabelCollection,"change:count remove",function(){s(o)});d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change:archive change:isLocked",function(){s(o)});if(r)return null;r=p?k.jsx(d("WAWebUimUie.react").UIE,{displayName:"InboxFilterContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:function(){return q(!1)},requestRecentFocusOnUnmount:!1,children:k.jsx(c("WAWebUimUieMenu.react"),{contextMenu:{menu:k.jsx(d("WAWebChatListFilterLabelsDropdownMenu.react").ChatListFilterLabelsDropdownMenu,{hideHeader:!0,updateSearchFilter:g}),anchor:j.current}})}):null;p=function(){q(function(a){!a&&e!=null&&d("WAWebFilterLogging").logLabelDropdownShownEvent(e.newSessionId());return!a})};g=t==null?null:k.jsx(d("WAWebLabels.react").Labels,{theme:"label-pill",labels:[t.id],showName:!0});j=t==null?h._(/*BTDS*/"__JHASH__r4lehWrzUCl__JHASH__"):"";return k.jsxs("span",{children:[k.jsx(d("WAWebListFilterButton.react").ListFilterButton,babelHelpers["extends"]({ref:b,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,label:j,selected:f,onClick:p},g&&{startIcon:g},{endIcon:k.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{height:22}),restrictSize:!0,id:a.id,role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],tabIndex:a.tabIndex,onFocus:a.onFocus})),r]})}a.displayName=a.name+" [from "+f.id+"]";g.ChatListFiltersLabelsPill=a}),226); __d("WAWebChatListFiltersNewListButton.react",["fbt","WAWebCreateOrEditListDrawer.react","WAWebDrawerManager","WAWebFlex.react","WAWebPlusIcon.react","WAWebTabOrder","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWamEnumUpdateEntryPoint","react","useMergeRefs"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useRef,m={button:{borderTopStartRadius:"xzqyx8i",borderTopEndRadius:"xqa96yk",borderBottomEndRadius:"xvwobac",borderBottomStartRadius:"x1h2y310",color:"x1mvgj39",fontSize:"x6prxxf",fontWeight:"xo1l8bm",lineHeight:"x1btupbp",$$css:!0},withBackgroundColor:{backgroundColor:"x1yky6xw",":hover_backgroundColor":"xf573un",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=l(null);b=c("useMergeRefs")(b,e);e=function(){var a=function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()};d("WAWebDrawerManager").DrawerManager.openDrawerLeft(k.jsx(d("WAWebCreateOrEditListDrawer.react").CreateOrEditListDrawer,{onBack:a,onClose:a,entryPoint:d("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.ADD_LIST_FILTER}),{focusOnUnMount:!0})};var f=h._(/*BTDS*/"__JHASH__w4NIehcvtVV__JHASH__");return k.jsx(c("WAWebUnstyledButton.react"),{ref:b,testid:void 0,dataTab:d("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,"aria-label":f,title:f,onClick:e,xstyle:[m.button,m.withBackgroundColor,d("WAWebUISpacing").uiPadding.vert6,d("WAWebUISpacing").uiPadding.horiz12],id:a.id,role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],tabIndex:a.tabIndex,onFocus:a.onFocus,children:k.jsx(d("WAWebFlex.react").FlexColumn,{children:k.jsx(d("WAWebFlex.react").FlexRow,{columnGap:8,align:"center",children:k.jsx(d("WAWebPlusIcon.react").PlusIcon,{width:24})})})})}a.displayName=a.name+" [from "+f.id+"]";g.ChatFiltersNewListButton=a}),226); __d("WAWebChatListFilters.react",["fbt","WAWebChatAssignmentUtils","WAWebChatListFilterListsDropdown.react","WAWebChatListFiltersLabelsPill.react","WAWebChatListFiltersNewListButton.react","WAWebChatSearchFilters","WAWebCmd","WAWebFilterLogging","WAWebInboxFiltersGatingUtils","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebL10NHelpers","WAWebLabelCollection","WAWebLabelUtils","WAWebListFilterButton.react","WAWebListsGatingUtils","WAWebSchemaLabel","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","isStringNullOrEmpty","react","useWAWebForceUpdate","useWAWebListener","useWAWebWindowSize"],(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={id:"all-filter",getLabel:function(){return h._(/*BTDS*/"__JHASH__0_D2aK-X575__JHASH__")},testid:"all-filter"},o={id:"unread-filter",filter:d("WAWebChatSearchFilters").SearchFilters.UNREAD,getLabel:function(){return h._(/*BTDS*/"__JHASH__b9Qrw8pYIU5__JHASH__")},listType:d("WAWebSchemaLabel").ListType.UNREAD,testid:"unread-filter"},p={id:"group-filter",filter:d("WAWebChatSearchFilters").SearchFilters.GROUP,getLabel:function(){return h._(/*BTDS*/"__JHASH__wgRjF3cnSgP__JHASH__")},listType:d("WAWebSchemaLabel").ListType.GROUPS,testid:"group-filter"},q={id:"favorites-filter",filter:d("WAWebChatSearchFilters").SearchFilters.FAVORITES,getLabel:function(){return d("WAWebL10NHelpers").isUsingSupportedBritishEnglishLocale()?h._(/*BTDS*/"__JHASH__IKEMKNYabph__JHASH__"):h._(/*BTDS*/"__JHASH__PKTfF26U6Gi__JHASH__")},listType:d("WAWebSchemaLabel").ListType.FAVORITES,testid:"favorites-filter"},r={id:"assigned-to-you-filter",filter:d("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU,getLabel:function(){return h._(/*BTDS*/"__JHASH__Tt5gP7lC-dZ__JHASH__")},testid:"assigned-to-you-filter"},s=function(a){if(a==null)return d("WAWebChatSearchFilters").SearchFilters.LABELS;switch(a){case d("WAWebSchemaLabel").ListType.NONE:case d("WAWebSchemaLabel").ListType.COMMUNITY:case d("WAWebSchemaLabel").ListType.SERVER_ASSIGNED:return null;case d("WAWebSchemaLabel").ListType.UNREAD:return d("WAWebChatSearchFilters").SearchFilters.UNREAD;case d("WAWebSchemaLabel").ListType.GROUPS:return d("WAWebChatSearchFilters").SearchFilters.GROUP;case d("WAWebSchemaLabel").ListType.FAVORITES:return d("WAWebChatSearchFilters").SearchFilters.FAVORITES;case d("WAWebSchemaLabel").ListType.PREDEFINED:return d("WAWebChatSearchFilters").SearchFilters.LABELS;case d("WAWebSchemaLabel").ListType.CUSTOM:return d("WAWebChatSearchFilters").SearchFilters.LABELS}},t=function(a,b,c){var e=[n,o];a&&e.push(q);e.push(p);b&&e.push(r);if(c&&d("WAWebLabelCollection").LabelCollection.length!==0){a=d("WAWebLabelCollection").LabelCollection.toArray();d("WAWebLabelUtils").sortLabels(a);b=a.reduce(function(a,b){if(!b.name)return a;var c=s(b.type);d("WAWebLabelUtils").isBuiltInList(b.type)&&(e=e.filter(function(a){return a.filter!==c}));if(b.isActive===!1)return a;var f={id:"label_item_"+b.name,getLabel:function(){return b.name},testid:"label_item_"+b.name,listId:b.id,listType:b.type};c!=null&&(f.filter=c);a.push(f);return a},[]);(c=e).push.apply(c,b)}return e};function u(a){if(a>=1600)return 4;else if(a>=1e3&&a<1600)return 3;return 2}var v={filterPillsContainer:{backgroundColor:"x1ky8ojb",display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",flexShrink:"x2lah0s",rowGap:"x3pnbk8",columnGap:"xfex06f",minWidth:"xeuugli",minHeight:"x2lwn1j",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.filter,f=a.filterSession,g=a.onFilterChange,h=e.kind,i=e.label;a=c("useWAWebWindowSize")();e=a.width;var j=u(e);a=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();var n=m([]),o=m(null),p=m(null);e=d("WAWebListsGatingUtils").isListsEnabled();var q=t(d("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled(),d("WAWebChatAssignmentUtils").canAssignChats(),e),r=function(a,b){n.current[b]=a;if(b>=q.length)return;b=q[b].filter;b===h&&(o.current=a)},s=function(a){a&&(a.focus(),p.current=a)};d("useWAWebListener").useListener(i!=null?d("WAWebLabelCollection").LabelCollection:null,"remove",function(a){a.id===i&&g({kind:null})});d("useWAWebListener").useListener(i!=null?d("WAWebLabelCollection").LabelCollection:null,"change:count",function(a,b){a.id===i&&b===0&&g({kind:null})});d("useWAWebListener").useListener(e?d("WAWebLabelCollection").LabelCollection:null,"change:count change:sort change:name change:color change:isActive",a);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"set_active_filter",function(a,b){b={kind:(a=a)!=null?a:null,label:(a=b)!=null?a:null};(f==null?void 0:f.sessionId)!=null&&d("WAWebFilterLogging").logSelectFilterEvent(f.newSessionId(),b);g(b)});l(b,function(){return{focus:function(){s(o.current)}}});var w=function(a,b,e){var j=a===h,k=b===i,l=b==null;j=j&&(l||k);k=j?{kind:null}:{kind:(l=a)!=null?l:null,label:d("WAWebLabelUtils").isBuiltInList(e)||c("isStringNullOrEmpty")(b)?null:b};(f==null?void 0:f.sessionId)!=null&&d("WAWebFilterLogging").logSelectFilterEvent(f.newSessionId(),k);g(k)},x=function(a){var b=n.current.indexOf(p.current),d;c("WAWebL10N").isRTL()?d=b+(a==="next"?-1:1):d=b+(a==="next"?1:-1);b=n.current[d];b&&s(b)};a={left:function(){return x("previous")},right:function(){return x("next")}};var y=function(a){a=a.target;a instanceof HTMLButtonElement&&(p.current=a)},z,A,B,C,D;if(e){b=q.slice(0,j);e=q.slice(j);var E=q.findIndex(function(a){return h===a.filter&&(d("WAWebLabelUtils").isBuiltInList(a.listType)||i===a.listId)||h==null&&a.filter==null});if(E>=j){var F=b.splice(j-1,1,q[E]);e.splice(E-j,1);e.unshift(F[0]);E=j-1}B=b.map(function(a,b){var e=E===b,f=c("isStringNullOrEmpty")(a.listId)?{}:{listId:a.listId};return k.createElement(d("WAWebListFilterButton.react").ListFilterButton,babelHelpers["extends"]({ref:function(a){return r(a,b)},id:a.id,role:"tab","aria-selected":e,"aria-controls":"chat-list",listType:a.listType},f,{testIdSuffix:a.testid,key:a.getLabel().toString(),tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,tabIndex:e?0:-1,label:a.getLabel(),selected:e,restrictSize:!0,onClick:function(){return w(a.filter,a.listId,a.listType)},onFocus:y}))});e.length>0?C=k.jsx(d("WAWebChatListFilterListsDropdown.react").FilterListsDropdown,{ref:function(a){return r(a,j)},id:"additional-filters",role:"tab","aria-selected":!1,"aria-controls":"chat-list",filters:e,tabIndex:-1,filterSession:f,onSelect:function(a,b,c){return w(a,b,c)},onFocus:y}):D=k.jsx(d("WAWebChatListFiltersNewListButton.react").ChatFiltersNewListButton,{ref:function(a){return r(a,j)},id:"new-filter",role:"tab","aria-selected":!1,"aria-controls":"chat-list",tabIndex:-1,onFocus:y})}else{z=q.map(function(b,c){var a=b.filter,e=b.getLabel,f=b.testid,g=b.listId,i=b.listType;b=b.id;var j=h===a||h==null&&a==null;return k.jsx(d("WAWebListFilterButton.react").ListFilterButton,{ref:function(a){return r(a,c)},testIdSuffix:f,id:b,role:"tab","aria-selected":j,"aria-controls":"chat-list",listType:i,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,tabIndex:j?0:-1,label:e(),selected:j,onClick:function(){return w(a,g,i)},onFocus:function(a){a=a.target;a instanceof HTMLButtonElement&&(p.current=a)}},e().toString())});F=h===d("WAWebChatSearchFilters").SearchFilters.LABELS;A=d("WAWebInboxFiltersGatingUtils").inboxCustomFiltersEnabled()?k.jsx(d("WAWebChatListFiltersLabelsPill.react").ChatListFiltersLabelsPill,{ref:function(a){return r(a,z.length)},id:"labels-filter",role:"tab","aria-selected":F,"aria-controls":"chat-list",filterSession:f,isSelected:h===d("WAWebChatSearchFilters").SearchFilters.LABELS,onClick:function(a){return w(d("WAWebChatSearchFilters").SearchFilters.LABELS,a)},selectedLabelId:i,tabIndex:F?0:-1,onFocus:y},d("WAWebChatSearchFilters").SearchFilters.LABELS):null}b=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();e=b?d("WAWebUISpacing").uiPadding.start20:d("WAWebUISpacing").uiPadding.start12;F=b?d("WAWebUISpacing").uiPadding.end10:d("WAWebUISpacing").uiPadding.end16;return k.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{role:"tablist","aria-label":"chat-list-filters",handlers:a,xstyle:[v.filterPillsContainer,d("WAWebUISpacing").uiPadding.top2,d("WAWebUISpacing").uiPadding.bottom7,e,F],children:[z,A,B,C,D]})}a.displayName=a.name+" [from "+f.id+"]";e=a;g.ChatListFilters=e}),226); __d("WAWebChatLockGatingUtils",["WAWebUIRefreshGatingUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(){return!1}g.chatLockSideNavEnabled=a}),98); __d("WAWebBlockChatMenuItem.react",["fbt","WAWebABProps","WAWebBlockContactUtils","WAWebBlocklistCollection","WAWebChatGetters","WAWebContactGetters","WAWebMenuItems.react","react","useWAWebChatValues"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||c("react");function a(a){var b=a.chat,c=a.entryPoint;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat","entryPoint"]);var e=d("useWAWebChatValues").useChatValues(b.id,[d("WAWebChatGetters").getIsUser]);e=e[0];if(!d("WAWebABProps").getABPropConfigValue("block_from_chat_list")||!e||d("WAWebContactGetters").getIsMe(b.contact)||b.contact.isEnterprise)return;var f=d("WAWebBlocklistCollection").BlocklistCollection.get(b.id);function g(){f?d("WAWebBlockContactUtils").handleUnblock(b.contact,c):d("WAWebBlockContactUtils").handleBlock(b,c)}return j.jsx(d("WAWebMenuItems.react").ActionMenuItem,babelHelpers["extends"]({testid:void 0,optionId:"block"},a,{onSelect:g,primary:f?h._(/*BTDS*/"__JHASH__tdOp5HiDdbe__JHASH__"):h._(/*BTDS*/"__JHASH__vCk0N4csUIK__JHASH__")}))}a.displayName=a.name+" [from "+f.id+"]";g.BlockChatMenuItem=a}),226); __d("WAWebChatDebugCopyIdMenuItem.react",["WAWebCopyToClipboard","WAWebDevOnlyBadge.react","WAWebFrontendChatGetters","WAWebMenuItems.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");function a(a){var b,e=a.chat;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat"]);if(c("gkx")("26258"))return;b=(b=d("WAWebFrontendChatGetters").getKind(e))!=null?b:"chat";return i.jsx(d("WAWebMenuItems.react").ActionMenuItem,babelHelpers["extends"]({testid:void 0,optionId:"copy-id"},a,{onSelect:function(){return void d("WAWebCopyToClipboard").copyTextToClipboard(e.id.toString())},primary:i.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy "+b+" ID"})}))}a.displayName=a.name+" [from "+f.id+"]";g.CopyChatIdMenuItem=a}),98); __d("useWAWebHover",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useState;function a(a){var b=j(!1),c=b[0],d=b[1];i(function(){var b=a.current;if(!b)return;var c=function(){d(!0)},e=function(){d(!1)};b.addEventListener("mouseenter",c);b.addEventListener("mouseleave",e);return function(){b.removeEventListener("mouseenter",c),b.removeEventListener("mouseleave",e)}},[a]);return c}g.useWAWebHover=a}),98); __d("WAWebChatCellV2.react",["WAWebBizGatingUtils","WAWebCellV2.react","WAWebChatGetters","WAWebChatIcons.react","WAWebChatTimestamp.react","WAWebChatstateInfo.react","WAWebChevronCustomIcons","WAWebCommunityGatingUtils","WAWebContactGetters","WAWebDetailImage.react","WAWebDropdownV2.react","WAWebErrorBoundary.react","WAWebFlexBox.react","WAWebGroupChatImage.react","WAWebName.react","WAWebPopover.react","WAWebPopoverContext.react","WAWebSettingsModel","WAWebStackedCirclesImage.react","WAWebSvgComponentBase","WAWebText.react","WAWebVelocityTransition","react","useWAWebHover","useWAWebModelValues"],(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;function a(a){var b=a.chat;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat"]);var e=a.forceActive,f=a.useShortName,g=a.showMessageYourselfName;g=g===void 0?!1:g;var h=a.hideArchivedIcon;h=h===void 0?!1:h;var i=a.hideMuteIcon;i=i===void 0?!1:i;var m=a.showCommunityInfo;m=m===void 0?!1:m;var n=a.showSpeakerForCag;n=n===void 0?!1:n;var o=a.contextMenuItems;a=babelHelpers.objectWithoutPropertiesLoose(a,["forceActive","useShortName","showMessageYourselfName","hideArchivedIcon","hideMuteIcon","showCommunityInfo","showSpeakerForCag","contextMenuItems"]);d("useWAWebModelValues").useModelValues(b,["unreadCount"]);var p=k(null),q=d("WAWebPopoverContext.react").useWDSPopoverControllerRef(),r=d("useWAWebHover").useWAWebHover(p),s=l(!1),t=s[0],u=s[1];s=e===!0||a.active;e=d("WAWebBizGatingUtils").canDisplayLabel();var v;d("WAWebChatGetters").getIsGroup(b)?v=j.jsx(d("WAWebName.react").Name,{chat:b,useShortName:f,showLabelIcon:e,titlify:!0,ellipsify:!0,showMessageYourselfName:g}):v=j.jsx(d("WAWebName.react").Name,{contact:b.contact,useShortName:f,showBusinessCheckmark:d("WAWebContactGetters").getShowBusinessCheckmarkAsPrimary(b.contact),showLabelIcon:e,titlify:!0,ellipsify:!0,you:!0,showMessageYourselfName:g});var w;f=m===!0&&d("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(b.groupMetadata);if(f){g=(e=b.groupMetadata)==null?void 0:e.getParentGroupChat();g!=null&&(w=j.jsx(d("WAWebText.react").WAWebTextMuted,{children:j.jsx(d("WAWebName.react").Name,{chat:g,titlify:!0,ellipsify:!0})}))}f=j.jsx(d("WAWebText.react").WAWebTextTitle,{children:v});e=j.jsx(d("WAWebText.react").WAWebTextMuted,{children:j.jsx(c("WAWebChatstateInfo.react"),{chat:b})});g=40;v=j.jsx(d("WAWebDetailImage.react").DetailImage,{id:b.id,size:g,waitIdle:!0});n=d("WAWebChatGetters").getIsGroup(b)?j.jsx(c("WAWebGroupChatImage.react"),{chat:b,regularChatImage:v,showSpeakerForCag:n,showCommunityInfo:m,isHovered:r,size:g,theme:d("WAWebStackedCirclesImage.react").SubgroupImageTheme.CHAT_LIST}):v;m=j.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-cell-image",children:n});g=j.jsx(d("WAWebText.react").WAWebTextSmall,{color:b.unreadCount?"teal":null,children:j.jsx(c("WAWebChatTimestamp.react"),{chat:b})});v=o!=null?j.jsx(d("WAWebDropdownV2.react").ContextDropdownV2Menu,{useLegacyDesign:!0,anchorToMouseCoords:!0,minWidth:200,target:"context",alignment:d("WAWebPopover.react").PopoverAlignment.Start,position:d("WAWebPopover.react").PopoverPosition.End,children:o}):null;n=k(null);q=o!=null?j.jsx(d("WAWebDropdownV2.react").DropdownV2Menu,{useLegacyDesign:!0,controllerRef:q,minWidth:200,target:n,alignment:d("WAWebPopover.react").PopoverAlignment.Start,position:d("WAWebPopover.react").PopoverPosition.Bottom,onOpen:function(){return u(!0)},onClose:function(){return u(!1)},children:o}):null;o=t||r||a.active===!0;t=j.jsxs(d("WAWebFlexBox.react").FlexRow,{gap:8,align:"center",children:[j.jsx(d("WAWebChatIcons.react").Icons,{chat:b,mute:b.mute,settings:c("WAWebSettingsModel"),hideArchivedIcon:h,hideMuteIcon:i,unreadCount:b.unreadCount,unreadMentionIcon:b.hasUnreadMention}),q&&j.jsx(d("WAWebVelocityTransition").VelocityTransition,{nodeRef:n,transitionName:"pop-fast-chat","in":o,mountOnEnter:!0,unmountOnExit:!0,appear:!0,children:j.jsxs("button",{ref:n,children:[j.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:24}),q]})})]});w!=null?(r=g,h=t,i=null):(r=null,h=g,i=t);return j.jsx(d("WAWebCellV2.react").CellV2,babelHelpers["extends"]({ref:p},a,{active:s,primary:f,secondary:e,detailLeft:m,primaryRight:h,secondaryRight:i,detailTop:w,detailTopRight:r,alignPrimary:"start",dropdown:v}))}a.displayName=a.name+" [from "+f.id+"]";g.WDSChatCell=a}),98); __d("WAWebChatListMenuItem.react",["WAWebChatCellV2.react","WAWebCommunityGatingUtils","WAWebMenuItem.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function j(a){return d("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(a.groupMetadata)&&((a=a.groupMetadata)==null?void 0:a.getParentGroupChat())!=null}function a(a,b){b=b||{};b=b.showCommunityInfo;b=b===void 0?!1:b;return{itemKey:a.id.toString(),height:b&&j(a)?88:72,chat:a}}function b(a){var b=a.chat,c=a.onSelect,e=a.optionId,f=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat","onSelect","optionId","ref"]);var g=d("WAWebMenuItem.react").useMenuItem(e),h=g.colorScheme,j=g.size,k=g.material,l=g.border;g=g.isActive;return i.jsx(d("WAWebMenuItem.react").WDSMenuItem,{ref:f,onSelect:c,optionId:e,type:"action",children:i.jsx(d("WAWebChatCellV2.react").WDSChatCell,babelHelpers["extends"]({chat:b,colorScheme:h,size:j,material:k,border:l,active:g},a))})}b.displayName=b.name+" [from "+f.id+"]";g.getFlatListConfigFromChat=a;g.ChatMenuItem=b}),98); __d("WAWebChatLockMenuItem.react",["fbt","WAWebActionMenuItem.react","WAWebChatLockCodeModal.react","WAWebWamEnumActionEntryPoint","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||c("react");function a(a){var c=a.chat;a=a.detailLeft;var e=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){void d("WAWebChatLockCodeModal.react").promptAndUnlockChat(c,{entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_CONTEXT_MENU})});return function(){return a.apply(this,arguments)}}();return j.jsx(d("WAWebActionMenuItem.react").ActionMenuItem,{optionId:"unlock",onSelect:e,primary:h._(/*BTDS*/"__JHASH__oBj7hjzXqni__JHASH__"),detailLeft:a})}a.displayName=a.name+" [from "+f.id+"]";g.UnlockChatMenuItem=a}),226); __d("WAWebChatMarkUnreadMenuItem.react",["fbt","WAWebChatGetters","WAWebChatRefreshedIcon.react","WAWebChatUnreadRefreshedIcon.react","WAWebCmd","WAWebFrontendChatGetters","WAWebMenuItems.react","WAWebStateUtils","WAWebUIRefreshGatingUtils","react","useWAWebChatValues"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||c("react");function a(a){var b=a.chat;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat"]);var c=d("useWAWebChatValues").useChatValues(b.id,[d("WAWebChatGetters").getUnreadCount,d("WAWebChatGetters").getIsGroup,d("WAWebFrontendChatGetters").getGroupMetadata]),e=c[0],f=c[1],g=c[2],i=Boolean(e);function k(){d("WAWebCmd").Cmd.markChatUnread(d("WAWebStateUtils").unproxy(b),!i),i&&f&&(g==null?void 0:g.unreadMentionMetadata.reset())}c=i?j.jsx(d("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}):j.jsx(d("WAWebChatUnreadRefreshedIcon.react").ChatUnreadRefreshedIcon,{});return j.jsx(d("WAWebMenuItems.react").ActionMenuItem,babelHelpers["extends"]({testid:void 0,optionId:"mark-unread"},a,{onSelect:k,primary:i?h._(/*BTDS*/"__JHASH__ZefBbIHdFLd__JHASH__"):h._(/*BTDS*/"__JHASH__lZZr2IbcJK___JHASH__"),detailLeft:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?c:null}))}a.displayName=a.name+" [from "+f.id+"]";g.MarkUnreadMenuItem=a}),226); __d("WAWebChatMuteMenuItem.react",["fbt","WAWebActionMenuItem.react","WAWebCmd","WAWebMuteGetters","WAWebMuteNotificationsRefreshedIcon.react","WAWebStateUtils","WAWebUIRefreshGatingUtils","WAWebUnmuteNotificationsRefreshedIcon.react","react","useWAWebModelValues","useWAWebMuteValues"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||c("react"),l=(i||(i=d("react"))).useRef;function a(a){var b=a.chat,c=a.entryPoint;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat","entryPoint"]);var e=d("useWAWebMuteValues").useMuteValues(b.mute.id,[d("WAWebMuteGetters").getIsMuted]),f=e[0],g=d("useWAWebModelValues").useModelValues(b,["archive","mute","isLocked"]);e=l(null);if(!g.mute.canMute()||g.archive)return;function i(){var a=!f;c!=null?d("WAWebCmd").Cmd.muteChatFromEntryPoint(d("WAWebStateUtils").unproxy(g),a,c):d("WAWebCmd").Cmd.muteChat(d("WAWebStateUtils").unproxy(g),a)}b=f?h._(/*BTDS*/"__JHASH__jHMH-cp69hU__JHASH__"):h._(/*BTDS*/"__JHASH__9nXgBBpNKl7__JHASH__");var j=f?k.jsx(d("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{}):k.jsx(d("WAWebMuteNotificationsRefreshedIcon.react").MuteNotificationsRefreshedIcon,{});i=i;return k.jsx(d("WAWebActionMenuItem.react").ActionMenuItem,babelHelpers["extends"]({ref:e,optionId:"mute"},a,{onSelect:i,primary:b,detailLeft:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?j:null}))}a.displayName=a.name+" [from "+f.id+"]";g.MuteChatMenuItem=a}),226); __d("WAWebSearchModel",["asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){a=function(){function a(a){Object.assign(this,a),this.preloadData()}var d=a.prototype;d.preloadData=function(){};d.queryFn=function(a,b){throw c("err")("Cannot create `Search` Model without `query` method")};d.query=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c,d=this;b===void 0&&(b={});if(this.maxPageLength!=null){var e;((e=b)==null?void 0:e.pagination)==null?b.pagination={pageLength:this.maxPageLength,page:0}:b.pagination.pageLength=this.maxPageLength}e=(yield this.queryFn(a,b));var f=babelHelpers["extends"]({},e,{query:{searchText:a,options:b},pagination:null});if(((c=b)==null?void 0:c.pagination)!=null){var g,h,i,j,k,l;if(e.pagination==null){g=(c=b.pagination.page)!=null?c:0;h=b.pagination.pageLength;c=g*h;var m=c+h;i=Math.ceil(f.results.length/h);j=g<i-1;f.results=f.results.slice(c,m)}else{g=e.pagination.page;h=e.pagination.pageLength;i=(c=e.pagination)==null?void 0:c.totalPages;j=(m=e.pagination)==null?void 0:m.hasMoreResults}(j===!0||i!=null&&i>g+1)&&(k=function(){return d.query(a,babelHelpers["extends"]({},b,{pagination:{pageLength:h,page:g+1}}))});g>0&&(l=function(){return d.query(a,babelHelpers["extends"]({},b,{pagination:{pageLength:h,page:g-1}}))});f.pagination={page:g,pageLength:h,totalPages:i,hasMoreResults:j,next:k,previous:l}}return f});function c(b,c){return a.apply(this,arguments)}return c}();return a}();g.Search=a}),98); __d("WAWebChatSearchModel",["WAWebChatCollection","WAWebChatGetters","WAWebFrontendChatGetters","WAWebPhoneNumberSearch","WAWebSearchModel","WAWebSearchUtils"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.id="ChatSearch",c.type="chat",b)||babelHelpers.assertThisInitialized(c)}var c=b.prototype;c.queryFn=function(a,b){var c=this,e=d("WAWebSearchUtils").normalizeString(a),f=d("WAWebPhoneNumberSearch").numberSearch(e);b=d("WAWebSearchUtils").filterPaginate(d("WAWebChatCollection").ChatCollection.getModelsArray(),function(b){if(!d("WAWebFrontendChatGetters").getShouldAppearInList(b))return!1;if(c.type==="group"&&!d("WAWebChatGetters").getIsGroup(b))return!1;return c.type==="1-1"&&d("WAWebChatGetters").getIsGroup(b)?!1:a===""||b.contact.searchMatch(e,f)},b==null?void 0:b.pagination);var g=b.results;b=b.pagination;return{type:this.type,pagination:b,results:g.map(function(a){return{id:a.id.toString(),type:c.type,data:a}})}};return b}(d("WAWebSearchModel").Search);b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.id="LockedChatSearch",b)||babelHelpers.assertThisInitialized(c)}var c=b.prototype;c.queryFn=function(a,b){var c=d("WAWebSearchUtils").normalizeString(a),e=d("WAWebPhoneNumberSearch").numberSearch(c);b=d("WAWebSearchUtils").filterPaginate(d("WAWebChatCollection").ChatCollection.getModelsArray(),function(b){return!b.isLocked?!1:a===""||b.contact.searchMatch(c,e)},b==null?void 0:b.pagination);var f=b.results;b=b.pagination;return{type:"locked-chat",pagination:b,results:f.map(function(a){return{id:a.id.toString(),type:"locked-chat",data:a}})}};return b}(d("WAWebSearchModel").Search);g.ChatSearch=a;g.LockedChatSearch=b}),98); __d("WAWebDeleteChatMenuItem.react",["fbt","WAWebChatFlowTypes","WAWebChatGetters","WAWebChatGroupUtils","WAWebCmd","WAWebDeleteRefreshedIcon.react","WAWebExitRefreshedIcon.react","WAWebFrontendChatGetters","WAWebMenuItems.react","WAWebMiscGatingUtils","WAWebStateUtils","WAWebSuspendedGroupUtils","WAWebUIRefreshGatingUtils","react","useWAWebChatValues"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||c("react");function a(a){var b=a.chat,c=a.entryPoint;a=babelHelpers.objectWithoutPropertiesLoose(a,["chat","entryPoint"]);var e=d("useWAWebChatValues").useChatValues(b.id,[d("WAWebChatGetters").getIsReadOnly,d("WAWebFrontendChatGetters").getKind]),f=e[0];e=e[1];var g=function(){c!=null?d("WAWebCmd").Cmd.deleteOrExitChatFromEntryPoint(d("WAWebStateUtils").unproxy(b),c):d("WAWebCmd").Cmd.deleteOrExitChat(d("WAWebStateUtils").unproxy(b))},i=function(){d("WAWebSuspendedGroupUtils").openExitAndDeleteGroupModal(b)},k;g=g;var l=j.jsx(d("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{});if(e!=null)switch(e){case d("WAWebChatFlowTypes").ChatKindType.Group:f?k=h._(/*BTDS*/"__JHASH__kfKw6an5aW-__JHASH__"):!d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(b)&&d("WAWebChatGroupUtils").isSuspendedGroup(b)&&d("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?(k=h._(/*BTDS*/"__JHASH__7io54lYd-uk__JHASH__"),g=i):(k=h._(/*BTDS*/"__JHASH__BA0mOGeOyXA__JHASH__"),l=j.jsx(d("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{}));break;case d("WAWebChatFlowTypes").ChatKindType.Broadcast:k=h._(/*BTDS*/"__JHASH__pOGMS2vaodS__JHASH__");break;case d("WAWebChatFlowTypes").ChatKindType.Chat:k=h._(/*BTDS*/"__JHASH__5bdGZfuj0C8__JHASH__");break;default:break}return j.jsx(d("WAWebMenuItems.react").ActionMenuItem,babelHelpers["extends"]({optionId:"deleteChat"},a,{onSelect:g,primary:k,detailLeft:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?l:null}))}a.displayName=a.name+" [from "+f.id+"]";g.DeleteChatMenuItem=a}),226); __d("useWAWebChatLockRestriction",["WAWebChatLockCodeModal.react","WAWebChatLockUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useState,k=new Set();function l(){return k.size>0}function a(a){var b=a.id,c=a.condition,e=a.onPromptSuccess,f=a.onPromptFailure,g=a.entryPoint,h=a.landingSurface,m=a.unlockEntryPoint,n;c==="always"?(n=!0,a=d("WAWebChatLockUtils").lockedChatsAreAccessible()):c==="bypass"?(n=!1,a=!0):(n=c.isLocked,a=d("WAWebChatLockUtils").chatIsAccessible(c));c=j(a);var o=c[0],p=c[1];a=j(!1);var q=a[0],r=a[1];i(function(){n&&!o&&!q&&(r(!0),void d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,entryPoint:g,landingSurface:h,unlockEntryPoint:m}).then(function(a){p(a),a?e==null?void 0:e():f==null?void 0:f()}))},[o,n,q,e,f,g,h,m]);i(function(){n&&o&&k.add(b);return function(){n&&o&&(k["delete"](b),l()||d("WAWebChatLockUtils").lockChats())}},[o,n,b]);return o}g.chatLockComponentIsMounted=l;g.useChatLockRestriction=a}),98); __d("useWAWebOpenChat",["WAWebChatCollection","WAWebCmd","react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(){var a=i(d("WAWebChatCollection").ChatCollection.getActive()),b=a[0],c=a[1];d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change:active",function(a){c(a)});a=function(a,b){return d("WAWebCmd").Cmd.openChatBottom(a,b)};return{openedChat:b,openChat:a}}g.useOpenChat=a}),98); __d("useWAWebSearchModel",["asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){var h;c=h||d("react");var i=c.useCallback,j=c.useMemo,k=c.useState;function a(a){var c=j(a,[]);a=k();var d=a[0],e=a[1];a=i(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield c.query(a,b));e(a);return a});return function(b,c){return a.apply(this,arguments)}}(),[c]);var f=i(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;if((d==null?void 0:(a=d.pagination)==null?void 0:a.next)!=null){a=(yield d.pagination.next());e(a);return a}}),[d]),g=i(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;if((d==null?void 0:(a=d.pagination)==null?void 0:a.previous)!=null){a=(yield d.pagination.previous());e(a);return a}}),[d]);return{results:d,query:a,searchInstance:c,next:f,previous:g}}g.useSearchModel=a}),98); __d("WAWebLockedChatsDrawer.react",["fbt","WAWebBlockChatMenuItem.react","WAWebBlockContants","WAWebBlockRefreshedIcon.react","WAWebChatCollection","WAWebChatDebugCopyIdMenuItem.react","WAWebChatListMenuItem.react","WAWebChatLockMenuItem.react","WAWebChatLockWAMUtils","WAWebChatMarkUnreadMenuItem.react","WAWebChatMuteMenuItem.react","WAWebChatSearchModel","WAWebCmd","WAWebDeleteChatMenuItem.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEmptyState.react","WAWebLexicalWDSMenu.react","WAWebMenuItems.react","WAWebSearchInput","WAWebUIRefreshGatingUtils","WAWebUnlockChatRefreshedIcon.react","WAWebWamEnumChatLockActionType","WAWebWamEnumLandingSurface","gkx","react","useWAWebChatLockRestriction","useWAWebListener","useWAWebOpenChat","useWAWebSearchModel"],(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.entryPoint,e=a.onClose,f=a.ref;a=a.unlockEntryPoint;var g=d("useWAWebSearchModel").useSearchModel(function(){return new(d("WAWebChatSearchModel").LockedChatSearch)()}),i=g.query,j=g.results;g=d("useWAWebOpenChat").useOpenChat();var m=g.openedChat,n=j==null?void 0:j.query.searchText;g=n!=null&&n!=="";d("useWAWebListener").useListener(d("WAWebChatCollection").ChatCollection,"change add remove",function(){var a;void i((a=n)!=null?a:"",j==null?void 0:j.query.options)});var o=d("useWAWebChatLockRestriction").useChatLockRestriction({id:"locked-chats-drawer",condition:"always",entryPoint:b,unlockEntryPoint:a,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER});l(function(){o&&d("WAWebChatLockWAMUtils").chatLockActionWAMEvent({actionEntryPoint:b,chatLockActionType:d("WAWebWamEnumChatLockActionType").CHAT_LOCK_ACTION_TYPE.FOLDER_OPEN})},[o,b]);a=(a=j==null?void 0:j.results.map(function(a){return babelHelpers["extends"]({},d("WAWebChatListMenuItem.react").getFlatListConfigFromChat(a.data,{showCommunityInfo:!0}))}))!=null?a:[];var p=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),q=h._(/*BTDS*/"__JHASH__fOIoLtGcVlc__JHASH__");return k.jsxs(c("WAWebDrawer.react"),{ref:f,theme:"archived",testid:void 0,tsNavigationData:{surface:"settings-drawer"},children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__Pg2CqNflbGw__JHASH__"),onBack:e,type:d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()?d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsx(d("WAWebSearchInput").DrawerSearchInput,{onSearch:i,placeholder:p?q:void 0,children:a.length===0?k.jsx(d("WAWebEmptyState.react").Empty,{title:g?h._(/*BTDS*/"__JHASH__T4f2WHdq4LM__JHASH__"):h._(/*BTDS*/"__JHASH__VYB_Kw-ULep__JHASH__")}):k.jsx("div",{"data-testid":void 0,children:k.jsx(d("WAWebLexicalWDSMenu.react").LexicalWDSPerformantMenu,{size:"large",data:a,renderItem:function(a){return k.jsx(d("WAWebChatListMenuItem.react").ChatMenuItem,{optionId:a.chat.id.toString(),chat:a.chat,onSelect:function(){return void d("WAWebCmd").Cmd.openChatBottom(a.chat)},contextMenuItems:[k.jsx(d("WAWebChatLockMenuItem.react").UnlockChatMenuItem,{chat:a.chat,detailLeft:p?k.jsx(d("WAWebUnlockChatRefreshedIcon.react").UnlockChatRefreshedIcon,{}):null},"unlock"),k.jsx(d("WAWebDeleteChatMenuItem.react").DeleteChatMenuItem,{chat:a.chat},"delete"),k.jsx(d("WAWebChatMuteMenuItem.react").MuteChatMenuItem,{chat:a.chat},"mute"),k.jsx(d("WAWebBlockChatMenuItem.react").BlockChatMenuItem,{chat:a.chat,entryPoint:a.chat.isTrusted()?d("WAWebBlockContants").BlockEntryPoint.ChatListBlock:d("WAWebBlockContants").BlockEntryPoint.ChatListNoInsubBlock,detailLeft:p?k.jsx(d("WAWebBlockRefreshedIcon.react").BlockRefreshedIcon,{}):null},"block"),k.jsx(d("WAWebChatMarkUnreadMenuItem.react").MarkUnreadMenuItem,{chat:a.chat},"mark_unread")].concat(c("gkx")("26258")?[]:[k.jsx(d("WAWebMenuItems.react").MenuSeparator,{},"separator"),k.jsx(d("WAWebChatDebugCopyIdMenuItem.react").CopyChatIdMenuItem,{chat:a.chat},"copy_id")]),forceActive:(m==null?void 0:m.id.toString())===a.chat.id.toString(),showCommunityInfo:!0},a.itemKey)}})})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("useWAWebChatLockEvents",["WAWebChatLockUtils","WAWebCmd","react","useWAWebListener"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useState;function a(){var a=i(d("WAWebChatLockUtils").lockedChatsAreAccessible()),b=a[0],c=a[1];d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"chatlock:lock",function(){c(!1)});d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"chatlock:unlock",function(){c(!0)});return b}g.useChatLockEvents=a}),98); __d("useWAWebChatLockSettings",["WAWebChatLockSettings","react","useWAWebListener"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useState,j=function(a){return{hideLockedChats:a.hideLockedChats===!0,hasSecretCode:a.secretCode!=null}};function a(){var a=d("WAWebChatLockSettings").getChatLockSettings(),b=i(function(){return j(a)}),c=b[0],e=b[1];d("useWAWebListener").useListener(a,"change",function(){e(j(a))});return c}g.useChatLockSettings=a}),98); __d("WAWebChatLockedEntryPoint.react",["fbt","WAWebChatLockCodeModal.react","WAWebChatlistPanelDrawerButton.react","WAWebChatlockOutlineIcon.react","WAWebChatlockUnlockedOutlineIcon.react","WAWebDrawerManager","WAWebLockChatRefreshedIcon.react","WAWebLockedChatsDrawer.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUnlockChatRefreshedIcon.react","WAWebWamEnumActionEntryPoint","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","asyncToGeneratorRuntime","react","useWAWebChatLockEvents","useWAWebChatLockRestriction","useWAWebChatLockSettings"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var e=a.onOpen;a=d("useWAWebChatLockEvents").useChatLockEvents();var f=d("useWAWebChatLockSettings").useChatLockSettings();f=f.hideLockedChats;var g=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();d("useWAWebChatLockRestriction").useChatLockRestriction({id:"chatlist-entry-point",condition:f?"always":"bypass",entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.UNKNOWN,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST});a?f=g?d("WAWebUnlockChatRefreshedIcon.react").UnlockChatRefreshedIcon:d("WAWebChatlockUnlockedOutlineIcon.react").ChatlockUnlockedOutlineIcon:f=g?d("WAWebLockChatRefreshedIcon.react").LockChatRefreshedIcon:d("WAWebChatlockOutlineIcon.react").ChatlockOutlineIcon;a=j.jsx(f,{});g=h._(/*BTDS*/"__JHASH__UlFtRB6NJbm__JHASH__");f=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST,entryPoint:d("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST}));a&&(d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.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})),e==null?void 0:e())});return function(){return a.apply(this,arguments)}}();return j.jsx(c("WAWebChatlistPanelDrawerButton.react"),{dataTab:d("WAWebTabOrder").TAB_ORDER.ARCHIVED_ENTRY_POINT,onClick:f,primary:g,icon:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebChatAction.react",["WAWebEmojiText.react","WAWebFlex.react","WAWebFlexItem.react","WAWebFormatConfiguration","WAWebKeyboardHotKeys.react","WAWebKeyboardShortcut.react","WAWebStateUtils","WAWebUISpacing","WAWebUnstyledButton.react","react","useWAWebActiveSelection","useWAWebModelValues","useWAWebSearchQuery"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={button:{width:"xh8yej3",backgroundColor:"x150wa6m",$$css:!0},hover:{":hover_backgroundColor":"x1z0qo99",$$css:!0},active:{backgroundColor:"xairv4b",$$css:!0},container:{height:"xdiz9cm",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0},text:{fontSize:"x1f6kntn",$$css:!0},label:{textAlign:"x1yc453h",$$css:!0}};function a(a){var b=d("useWAWebModelValues").useModelValues(a.action,["id","name","label"]),e=a.onClick,f=a.searchQuery;a=c("useWAWebActiveSelection")(a.active,b.id);var g=a[0];a=a[1];var h=function(a){e(a,d("WAWebStateUtils").unproxy(b))},k=function(a){a.stopPropagation(),a.preventDefault()};f=d("useWAWebSearchQuery").useSearchText(f);f=d("WAWebFormatConfiguration").Search({terms:[f]});var l={enter:h,space:h};return i.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:g,onFocus:k,handlers:l,children:i.jsx(c("WAWebUnstyledButton.react"),{xstyle:[j.button,a&&j.active,!a&&j.hover,d("WAWebUISpacing").uiPadding.start30],onClick:h,children:i.jsxs(d("WAWebFlex.react").FlexRow,{ref:g,xstyle:[j.container,d("WAWebUISpacing").uiPadding.end30],align:"center",justify:"all",children:[i.jsx(c("WAWebFlexItem.react"),{xstyle:[j.label,d("WAWebUISpacing").uiPadding.end10],children:i.jsx(d("WAWebEmojiText.react").EmojiText,{multiline:!0,text:b.label,formatters:f,xstyle:j.text})}),i.jsx("div",{children:i.jsx(d("WAWebKeyboardShortcut.react").KeyboardShortcut,{action:b.name,addModifiers:!0})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.ActionLabel=a}),98); __d("WAWebChatMessage.react",["WATypeUtils","WAWebBizGatingUtils","WAWebChatCell.react","WAWebChatGetters","WAWebChatLastMsg.react","WAWebChatMessageSearch","WAWebChatTimestamp.react","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebKeyboardHotKeys.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgType","WAWebName.react","WAWebStateUtils","react","useWAWebActiveSelection","useWAWebChatValues","useWAWebMsgValues","useWAWebSearchQuery"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.msg,e=a.chat,f=a.searchQuery,g=a.onClick,h=a.filterPreset,j=a.testid;j=d("useWAWebMsgValues").useMsgValues(a.msg.id,[(j=d("WAWebMsgGetters")).getId,j.getIsSentByMe,j.getIsGroupMsg,j.getIsNotification,d("WAWebFrontendMsgGetters").getSenderObj,d("WAWebFrontendMsgGetters").getDir,d("WAWebFrontendMsgGetters").getRtl,j.getType,j.getLabels]);var k=j[0];j[1];j[2];j[3];j[4];j[5];j[6];j[7];j=j[8];var l=d("useWAWebChatValues").useChatValues(a.chat.id,[d("WAWebChatGetters").getId,d("WAWebChatGetters").getIsUser,d("WAWebFrontendChatGetters").getContact,d("WAWebFrontendChatGetters").getFormattedTitle,d("WAWebFrontendChatGetters").getGroupMetadata,d("WAWebChatGetters").getIsNewsletter]);l[0];l[1];l[2];l[3];l[4];l[5];l=c("useWAWebActiveSelection")(a.active,k.toString());var m=l[0];l=l[1];f=d("useWAWebSearchQuery").useHighlightedText(f);var n=function(a){if(d("WATypeUtils").isFunction(g)){var b,c=d("WAWebMsgCollection").MsgCollection.assertGet(k),f=d("WAWebChatMessageSearch").getSearchContext(e,c.id);((b=f.msg)==null?void 0:b.type)!==d("WAWebMsgType").MSG_TYPE.ALBUM&&(f.msg=c);g(a,d("WAWebStateUtils").unproxy(e),f,c)}},o={enter:n,space:n},p=function(a){a.stopPropagation(),a.preventDefault()},q=i.jsx(c("WAWebChatTimestamp.react"),{msg:b});b=i.jsx(c("WAWebChatLastMsg.react"),{msg:b.safe(),msgType:"FTSMessage",searchQuery:f});return i.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:o,onFocus:p,ref:m,children:i.jsx(c("WAWebChatCell.react"),{contextEnabled:function(){return!1},theme:a.theme==="chat-checkbox"?"cell-message-checkbox":"cell-message",active:l,primary:i.jsx(d("WAWebName.react").Name,{chat:e,labels:j,firstLabel:h==null?void 0:h.label,showLabelIcon:d("WAWebBizGatingUtils").canDisplayLabel(),titlify:!0,ellipsify:!0}),primaryDetail:q,secondary:b,onClick:n,testid:void 0})})}a.displayName=a.name+" [from "+f.id+"]";g.Message=a}),98); __d("WAWebChatSetting.react",["WANullthrows","WAWebDrawerButton.react","WAWebEmojiText.react","WAWebFormatConfiguration","WAWebSettingsConst","WAWebSettingsStepIcon.react","WAWebStateUtils","react","useWAWebModelValues","useWAWebSearchQuery"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={text:{fontSize:"x1f6kntn",$$css:!0}};function a(a){var b=a.onClick,e=a.searchQuery,f=d("useWAWebModelValues").useModelValues(a.setting,["id","label"]),g=function(a){b(a,d("WAWebStateUtils").unproxy(f))};e=d("useWAWebSearchQuery").useSearchText(e);e=d("WAWebFormatConfiguration").Search({terms:[e]});return i.jsx(d("WAWebDrawerButton.react").DrawerButton,{icon:i.jsx(d("WAWebSettingsStepIcon.react").SettingsStepIcon,{setting:c("WANullthrows")(d("WAWebSettingsConst").SettingsSteps.cast(f.id))}),id:f.id,active:a.active,onClick:g,theme:"chatlist",children:i.jsx(d("WAWebEmojiText.react").EmojiText,{text:f.label,formatters:e,xstyle:j.text})})}a.displayName=a.name+" [from "+f.id+"]";g.Setting=a}),98); __d("WAWebWamEnumKicActionNameType",[],(function(a,b,c,d,e,f){a=Object.freeze({KEEP_MESSAGE:1,UNKEEP_MESSAGE:2,VIEW_KEPT_MESSAGES:3,SEARCH_RESULTS_DISPLAY:4,SEARCH_RESULTS_TAP:5});f.KIC_ACTION_NAME_TYPE=a}),66); __d("WAWebWamEnumKicActorType",[],(function(a,b,c,d,e,f){a=Object.freeze({SENDER:1,RECIPIENT:2});f.KIC_ACTOR_TYPE=a}),66); __d("WAWebWamEnumKicEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({CHAT_INFO:1,SEARCH:2,CHAT:3,MEDIA:4,DOCS:5,LINKS:6});f.KIC_ENTRY_POINT_TYPE=a}),66); __d("WAWebDisappearingMessageKeepInChatWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumKicActionNameType","WAWebWamEnumKicActorType","WAWebWamEnumKicEntryPointType","WAWebWamEnumMediaType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({DisappearingMessageKeepInChat:[3482,{canEditDmSettings:[16,a.TYPES.BOOLEAN],chatEphemeralityDuration:[1,a.TYPES.INTEGER],isAGroup:[2,a.TYPES.BOOLEAN],isAdmin:[3,a.TYPES.BOOLEAN],keptCount:[15,a.TYPES.INTEGER],keptDelta:[4,a.TYPES.INTEGER],kicActionName:[5,d("WAWebWamEnumKicActionNameType").KIC_ACTION_NAME_TYPE],kicActor:[6,d("WAWebWamEnumKicActorType").KIC_ACTOR_TYPE],kicEntryPoint:[7,d("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE],mediaType:[8,d("WAWebWamEnumMediaType").MEDIA_TYPE],messageExpiredOnUnkeep:[9,a.TYPES.BOOLEAN],messageExpiryTimer:[10,a.TYPES.INTEGER],messagesInFolder:[11,a.TYPES.INTEGER],messagesSelected:[12,a.TYPES.INTEGER],threadId:[13,a.TYPES.STRING]},[1,1,1],"regular"]},{DisappearingMessageKeepInChat:[]});g.DisappearingMessageKeepInChatWamEvent=b}),98); __d("WAWebChatlist.react",["fbt","WANullthrows","WAWebABProps","WAWebCallLogEntryCell.react","WAWebCallLogUtils","WAWebChat.react","WAWebChatAction.react","WAWebChatCheckboxWrapper.react","WAWebChatCollection","WAWebChatCommunityUtils","WAWebChatContact.react","WAWebChatContactUtils","WAWebChatGetters","WAWebChatLockUtils","WAWebChatMessage.react","WAWebChatModel","WAWebChatPreferenceCollection","WAWebChatSearchFilters","WAWebChatSetting.react","WAWebChatlistPanelMode","WAWebCmd","WAWebCommunityCells.react","WAWebCommunityGatingUtils","WAWebComposeBoxActions","WAWebContactGetters","WAWebDisappearingMessageKeepInChatWamEvent","WAWebElevatedPushNamesFlag","WAWebEmojiText.react","WAWebEnvironment","WAWebErrorBoundary.react","WAWebFbtIntlList","WAWebFlatList.react","WAWebFocusTracer","WAWebFormatConfiguration","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebInboxFiltersGatingUtils","WAWebKeyboardContext","WAWebKeyboardHotKeys.react","WAWebListenerHoc_DEPRECATED","WAWebMsgGetters","WAWebMuteCollection","WAWebMuteGetters","WAWebSectionHeader.react","WAWebTabOrder","WAWebTextSizeUtils","WAWebTimeSpentLoggingNavigation","WAWebTimerHoc_DEPRECATED.react","WAWebUIRefreshGatingUtils","WAWebUim","WAWebUimUie.react","WAWebVoipCallsTabPanelManager","WAWebWamEnumKicActionNameType","cr:104","cr:5736","gkx","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react");a=(i||(i=d("react"))).Component;var l=150,m={unreadChatsHeader:{paddingStart:"x1vobaek",$$css:!0},flatListViewport:{paddingTop:"xjwt4uw",$$css:!0},sectionHeader:{fontWeight:"x1s688f",color:"xhslqc4",$$css:!0}},n={SEC_CHATS:"SEC_CHATS",SEC_UNREAD_CHATS:"SEC_UNREAD_CHATS",SEC_CONTACTS:"SEC_CONTACTS",SEC_COMMUNITIES:"SEC_COMMUNITIES",SEC_ACTIONS:"SEC_ACTIONS",SEC_DEBUG_COMMANDS:"SEC_DEBUG_COMMANDS",SEC_SETTINGS:"SEC_SETTINGS",SEC_COMMON_GROUPS:"SEC_COMMON_GROUPS",SEC_STARRED:"SEC_STARRED",SEC_MSG:"SEC_MSG",SEC_MUTED_CHATS:"SEC_MUTED_CHATS",SEC_KEPT:"SEC_KEPT",SEC_ASSIGNED_TO_YOU:"SEC_ASSIGNED_TO_YOU",SEC_CALLS_RECENT:"SEC_CALLS_RECENT",SEC_CALLS_SEARCH_RESULTS:"SEC_CALLS_SEARCH_RESULTS",SEC_CALLS_SEARCH_GROUPS:"SEC_CALLS_SEARCH_GROUPS"},o={ROW_CHATS:"ROW_CHATS",ROW_CONTACTS:"ROW_CONTACTS",ROW_ACTIONS:"ROW_ACTIONS",ROW_DEBUG_COMMANDS:"ROW_DEBUG_COMMANDS",ROW_COMMUNITIES:"ROW_COMMUNITIES",ROW_SETTINGS:"ROW_SETTINGS",ROW_COMMON_GROUPS:"ROW_COMMON_GROUPS",ROW_STARRED:"ROW_STARRED",ROW_KEPT:"ROW_KEPT",ROW_MSG:"ROW_MSG",ROW_CALL_LOG:"ROW_CALL_LOG"},p=d("WAWebChat.react").ChatFactory(),q=d("WAWebChatContact.react").ContactFactory(),r=d("WAWebFlatList.react").FlatListFactory();function s(a,b){b===void 0&&(b={});b=b;b=b.formatString;var e=b===void 0?"":b;b=c("WAWebFbtIntlList")(a.map(function(a){var b=d("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(a);b=b?d("WAWebChatContactUtils").getFormattedNotifyName(d("WAWebContactGetters").getNotifyName(a)).toString():d("WAWebFrontendContactGetters").getFormattedName(a);return""+e+b+e}),c("WAWebFbtIntlList").CONJUNCTIONS.AND,c("WAWebFbtIntlList").DELIMITERS.COMMA);return h._(/*BTDS*/"__JHASH__ARy6EH4kDAp__JHASH__",[h._plural(a.length),h._param("contacts-list",b)])}s.displayName=s.name+" [from "+f.id+"]";e=function(a){babelHelpers.inheritsLoose(f,a);f.getDerivedStateFromProps=function(a){var b=a.ftsResult.filter(function(a){return d("WAWebChatLockUtils").chatIsAccessible(d("WAWebFrontendMsgGetters").getChat(a))}),e=b.filter(function(a){return d("WAWebMsgGetters").getIsKept(a)}),f=b.filter(function(a){return!a.star&&!d("WAWebMsgGetters").getIsKept(a)});return babelHelpers["extends"]({ftsStarred:b.filter(function(a){a=a.star;return a}),ftsKept:e,ftsMessages:f},c("gkx")("26258")?null:{mutedChats:a.chats.filter(function(a){a=a.mute;return d("WAWebMuteGetters").getIsMuted(a)})})};var e=f.prototype;e.$10=function(){return this.context.isKeyboardUser};e.$11=function(a){a===void 0&&(a=!1);var b=this.props.selection.getVal();if(b==null)return;b instanceof d("WAWebChatModel").Chat&&b!==d("WAWebChatCollection").ChatCollection.getActive()?void d("WAWebCmd").Cmd.openChatFromUnread(b).then(function(c){c&&a===!0&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)}):a===!0&&d("WAWebComposeBoxActions").ComposeBoxActions.focus(b)};function f(e){var f;f=a.call(this,e)||this;f.$6=d("WAWebChatCollection").ChatCollection.getActive();f.$7=0;f.$8=!d("WAWebABProps").getABPropConfigValue("verified_badge_in_chats_list_enabled");f.disableChatSwitching=!1;f.$12=function(a){f.$5=a};f.setRefUIE=function(a){f.uie=a};f.setRefList=function(a){f.refList=a};f.$13=function(){f.refList&&f.$5&&c("WAWebFocusTracer").focus(f.$5)};f.$14=function(){c("gkx")("26258")||f.setState(function(a){return{mutedChatsCollapsed:!a.mutedChatsCollapsed}})};f.$15=function(a){a===f.$9&&f.props.selection.setVal(a,!0),f.$16()};f.$16=function(){f.$9=null,d("WAWebCmd").Cmd.removeListener("close_chat",f.$15)};f.$17=function(a,b){var c=a.nativeEvent;if(c instanceof KeyboardEvent){c=f.props.selection.getVal();c instanceof d("WAWebChatModel").Chat&&(f.$16(),f.$9=c,d("WAWebCmd").Cmd.listenToOnce(d("WAWebCmd").Cmd,"close_chat",f.$15))}f.props.onItemClick(a,b)};f.requestFocus=function(){if(f.props.mode===c("WAWebChatlistPanelMode").CommandPalette)return;f.props.selection.reset(!1,!1);f.props.selection.index>-1&&document.activeElement===document.body&&f.$13()};f.$18=function(a){a.stopPropagation(),a.preventDefault(),f.props.onFocusSearch()};f.$19=function(a){var b=f.props.selection.getVal();a===b&&f.props.selection.unset();f.$6=null};f.restoreFocus=function(){f.props.selection.reset(!0)};f.$20=function(a,b){var c=new(d("WAWebDisappearingMessageKeepInChatWamEvent").DisappearingMessageKeepInChatWamEvent)({kicActionName:d("WAWebWamEnumKicActionNameType").KIC_ACTION_NAME_TYPE.SEARCH_RESULTS_TAP,isAGroup:d("WAWebChatGetters").getIsGroup(b)});if(d("WAWebChatGetters").getIsGroup(b)){var e;c.set({isAdmin:(e=b.groupMetadata)==null?void 0:e.participants.iAmAdmin()})}c.commit();f.props.onItemClick(a,b)};f.$21=function(a,b,c,d){f.props.onItemClick(a,b)};f.$25=function(a,b,c){var d=f.props.multiSelection;d.setVal(a,b,c)};f.$26=function(a,b){var e=f.props,g=e.multiSelection;e=e.selectableState;if(!e)return k.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list-item",children:a});var h="selectable-chat-list-item-"+f.props.mode;return k.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:h,children:k.jsx(c("WAWebChatCheckboxWrapper.react"),{model:b,theme:"chat-checkbox",selectableState:e,multiSelection:g,onSelect:f.$25,children:a})})};f.$22=function(a){if(a&&a.ctrlKey){var b=parseInt(a.key,10);if(!isNaN(b)&&b>=1&&b<=9){b=b-1;a.preventDefault();f.$29(null,b)}}};f.renderItem=function(a){var e=f.props,g=e.searchQuery;e=e.filterPreset;switch(a.type){case n.SEC_CHATS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__vMT4C8lCQ0f__JHASH__")});case n.SEC_UNREAD_CHATS:return k.jsx(t,{xstyle:m.unreadChatsHeader,header:h._(/*BTDS*/"__JHASH__XjKT3MUrfY9__JHASH__")});case n.SEC_CONTACTS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__5_mQZCD-_-D__JHASH__")});case n.SEC_ACTIONS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__NPQ5BKj_Vcs__JHASH__")});case n.SEC_DEBUG_COMMANDS:return k.jsx(t,{header:"Debug Commands"});case n.SEC_COMMUNITIES:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__WNB1mqZ98A9__JHASH__")});case n.SEC_SETTINGS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__rrTi3BmRzFC__JHASH__")});case n.SEC_COMMON_GROUPS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__vSo4SDgy4ph__JHASH__")});case n.SEC_STARRED:return k.jsx(t,{testid:void 0,header:h._(/*BTDS*/"__JHASH__-jY0ppnhrUk__JHASH__")});case n.SEC_KEPT:return k.jsx(t,{testid:void 0,header:h._(/*BTDS*/"__JHASH__bdjWL528wNc__JHASH__")});case n.SEC_MSG:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__AzQhjzbsWWm__JHASH__")});case n.SEC_CALLS_RECENT:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__aMf6uwsbe8d__JHASH__")});case n.SEC_CALLS_SEARCH_GROUPS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__5N_3Hg-mguy__JHASH__")});case n.SEC_CALLS_SEARCH_RESULTS:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__oJ8ZjKtvfgk__JHASH__")});case n.SEC_MUTED_CHATS:return b("cr:5736")!=null?k.jsx(b("cr:5736"),{mutedChats:f.state.mutedChats,mutedChatsCollapsed:f.state.mutedChatsCollapsed,onClick:f.$14}):null;case n.SEC_ASSIGNED_TO_YOU:return k.jsx(t,{header:h._(/*BTDS*/"__JHASH__5dQpQr4mlcW__JHASH__")});case o.ROW_CHATS:var i=a.data,j=a.index;return f.$26(k.jsx(p,{chat:i,mode:d("WAWebChat.react").Mode.LAST,searchQuery:g,filterPreset:e,onClick:f.$17,mouseDownAsClick:!0,selectableState:f.props.selectableState,multiSelection:f.props.multiSelection,onStartMultiSelect:f.props.onStartMultiSelect,active:f.props.selection,ephemeralIcon:"chat-list",showStatusRingAroundProfilePhoto:!0,index:j,photoSize:f.$24(),showCommunityInfo:!0,skipCheckMark:f.$8}),i);case o.ROW_CONTACTS:j=a.data;return f.$26(k.jsx(q,{contact:j,active:f.props.selection,searchQuery:g,onClick:f.$21,mouseDownAsClick:!0,waitIdle:!0,showStatusRingAroundProfilePhoto:!0,photoSize:f.$24(),hideStatus:d("WAWebContactGetters").getIsMe(j),showMessageYourselfName:d("WAWebContactGetters").getIsMe(j)}),j);case o.ROW_ACTIONS:i=a.data;return f.$26(k.jsx(d("WAWebChatAction.react").ActionLabel,{action:i,active:f.props.selection,onClick:f.props.onItemClick,searchQuery:g}),i);case o.ROW_DEBUG_COMMANDS:j=a.data;if(!c("gkx")("26258")&&b("cr:104")!=null)return f.$26(k.jsx(b("cr:104"),{active:f.props.selection,debugCommand:j,onClick:f.props.onItemClick,searchQuery:g}),j);throw new(d("WAWebFlatList.react").UnknownDataError)(a);case o.ROW_COMMUNITIES:var l=a.data;return f.$26(k.jsx(d("WAWebCommunityCells.react").CommunityCell,{active:f.props.selection,parentGroupMetadata:c("WANullthrows")(l.groupMetadata),parentGroupChat:l,onClick:function(a){return f.props.onItemClick(a,l)},inCommandPalette:!0}),l);case o.ROW_SETTINGS:i=a.data;return f.$26(k.jsx(d("WAWebChatSetting.react").Setting,{active:f.props.selection,onClick:f.props.onItemClick,searchQuery:g,setting:i}),i);case o.ROW_COMMON_GROUPS:j=a.data;i=j[0];j=f.$27(j);return f.$26(k.jsx(p,{chat:i,secondary:j,mode:d("WAWebChat.react").Mode.LAST,searchQuery:g,filterPreset:e,onClick:f.props.onItemClick,mouseDownAsClick:!0,selectableState:f.props.selectableState,multiSelection:f.props.multiSelection,onStartMultiSelect:f.props.onStartMultiSelect,active:f.props.selection}),i);case o.ROW_STARRED:j=a.data;return f.$26(k.jsx(d("WAWebChatMessage.react").Message,{msg:j,chat:d("WAWebFrontendMsgGetters").getChat(j),searchQuery:g,filterPreset:e,onClick:f.props.onItemClick,active:f.props.selection,testid:void 0}),j);case o.ROW_KEPT:i=a.data;return f.$26(k.jsx(d("WAWebChatMessage.react").Message,{msg:i,chat:d("WAWebFrontendMsgGetters").getChat(i),searchQuery:g,filterPreset:e,onClick:f.$20,active:f.props.selection,testid:void 0}),i);case o.ROW_MSG:j=a.data;return f.$26(k.jsx(d("WAWebChatMessage.react").Message,{msg:j,chat:d("WAWebFrontendMsgGetters").getChat(j),searchQuery:g,filterPreset:e,onClick:f.props.onItemClick,active:f.props.selection,testid:void 0}),j);case o.ROW_CALL_LOG:i=a.data;var r=i[i.length-1];return f.$26(k.jsx(d("WAWebCallLogEntryCell.react").CallLogEntryCell,{mergedMsgs:i,searchQuery:g,filterPreset:e,onClick:function(){return f.props.selection.setVal(r)},active:f.props.selection,testidPrefix:"chatlist-message"}),r);default:throw new(d("WAWebFlatList.react").UnknownDataError)(a)}};f.$32=function(a){f.$2.cancel(),f.props.selection.setVal(a,!1),f.$4=a};f.$33=function(a){if(a.target!==f.$5)return;if(!f.$3)return;if(f.props.selection.index<0)f.focusFirst();else{a=babelHelpers.assertThisInitialized(f);a=a.uie;a&&a.activate();f.props.selection.reset(!0)}};f.$34=function(){f.$3=!0};f.$35=function(){f.$3=!1};f.$3=!0;f.$4=null;f.$2=f.props.debounce(function(){f.$11(f.$1),f.$1=!1},200);f.state={ftsStarred:[],ftsKept:[],ftsMessages:[],mutedChats:[],collapseMutedChatsEnabled:!1,mutedChatsCollapsed:!0};c("gkx")("26258")||(f.state.collapseMutedChatsEnabled=d("WAWebMuteCollection").MuteCollection.getCollapseMuted());return f}e.componentWillUnmount=function(){var a=c("WAWebEnvironment").isWindows;a&&document.removeEventListener("keydown",this.$22);d("WAWebTimeSpentLoggingNavigation").tsNavigationExit(this.$7);a=this.props.selection;if(a.list.length>0)return;a=a.getVal();if(!(a instanceof d("WAWebChatModel").Chat))return;a.isState&&!this.props.isSearching&&d("WAWebCmd").Cmd.closeChat(a)};e.$23=function(){var a=d("WAWebTextSizeUtils").getWAWebTextSizeStyles().height;return d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?a+4:a};e.$24=function(){return d("WAWebTextSizeUtils").getWAWebTextSizeStyles().detailImageSize};e.$27=function(a){a=a[1];a=a.slice(0,2);var b=s(a,{formatString:"*"});a=s(a).toString();var c=d("WAWebFormatConfiguration").Search({terms:[this.props.searchQuery.trimmed()]});return k.jsx(d("WAWebEmojiText.react").EmojiText,{text:b,formatters:c,titlify:!0,title:a,direction:"auto"})};e.getData=function(){var a=this.props,b=a.chats,e=a.contacts,f=a.actions,g=a.debugCommands,h=a.communities,i=a.settings,j=a.commonGroups,k=a.isSearching,l=a.messages;a=a.searchQuery;var m=this.state,p=m.ftsStarred,q=m.ftsMessages,r=m.ftsKept,s=m.mutedChats,t=m.mutedChatsCollapsed;m=m.collapseMutedChatsEnabled;var u=[],v=0;if(this.props.mode===c("WAWebChatlistPanelMode").CallsTab){k&&e.length>0&&(u.push({itemKey:"section-contacts",type:n.SEC_CONTACTS}),u.push.apply(u,e.map(function(a){return{itemKey:"contact-"+a.id.toString(),data:a,type:o.ROW_CONTACTS}})));q.length>0&&(k?u.push({itemKey:"section-calls-search-results",type:n.SEC_CALLS_SEARCH_RESULTS}):u.push({itemKey:"section-calls-recent",type:n.SEC_CALLS_RECENT}),u.push.apply(u,d("WAWebCallLogUtils").mergeCallRecords(q).map(function(a){a=a.mergedMsgs;var b=a[0];return{itemKey:"msg-"+b.id.toString(),data:a,type:o.ROW_CALL_LOG}})));return u}k&&g.length>0&&u.push({itemKey:"section-debug-commands",type:n.SEC_DEBUG_COMMANDS});u.push.apply(u,g.map(function(a){return{itemKey:"debug-command-"+a.id.toString(),data:a,type:o.ROW_DEBUG_COMMANDS,height:60}}));k&&f.length>0&&u.push({itemKey:"section-actions",type:n.SEC_ACTIONS});u.push.apply(u,f.map(function(a){return{itemKey:"action-"+a.id.toString(),data:a,type:o.ROW_ACTIONS,height:60}}));k&&i.length>0&&u.push({itemKey:"section-settings",type:n.SEC_SETTINGS});u.push.apply(u,i.map(function(a){return{itemKey:"setting-"+a.id.toString(),data:a,type:o.ROW_SETTINGS,height:60}}));k&&h.length>0&&u.push({itemKey:"section-communities",type:n.SEC_COMMUNITIES});u.push.apply(u,h.map(function(a){return{itemKey:"community-"+a.id.toString(),data:a,type:o.ROW_COMMUNITIES,height:72}}));a.filter.kind===d("WAWebChatSearchFilters").SearchFilters.LABELS&&d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()||(k&&b.length>0?u.push({itemKey:"section-chats",type:n.SEC_CHATS}):!k&&a.filter.kind===d("WAWebChatSearchFilters").SearchFilters.UNREAD&&!d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()?u.push({itemKey:"section-chats",type:n.SEC_UNREAD_CHATS}):!k&&a.filter.kind===d("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU&&u.push({itemKey:"section-chats",type:n.SEC_ASSIGNED_TO_YOU}));var w=function(a){if(d("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(a))return d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebChatCommunityUtils").SUBGROUP_V2_CHAT_CELL_HEIGHT+4:d("WAWebChatCommunityUtils").SUBGROUP_V2_CHAT_CELL_HEIGHT};if(!k&&m)s.length>0&&u.push({itemKey:"section-collapse-muted",contentKey:String(t)+"-"+s.length,type:n.SEC_MUTED_CHATS,height:30}),t||u.push.apply(u,s.map(function(a){return{itemKey:"chat-"+a.id.toString(),data:a,expanded:!t,type:o.ROW_CHATS}})),u.push.apply(u,b.filter(function(a){return!d("WAWebMuteGetters").getIsMuted(a.mute)}).map(function(a){return{itemKey:"chat-"+a.id.toString(),data:a,type:o.ROW_CHATS,index:v++,height:w(a.groupMetadata)}}));else{g=[].concat(b);u.push.apply(u,g.map(function(a){return{itemKey:"chat-"+a.id.toString(),data:a,type:o.ROW_CHATS,index:v++,height:w(a.groupMetadata)}}))}k&&e.length>0&&u.push({itemKey:"section-contacts",type:n.SEC_CONTACTS});u.push.apply(u,e.map(function(a){return{itemKey:"contact-"+a.id.toString(),data:a,type:o.ROW_CONTACTS}}));k&&j.length>0&&u.push({itemKey:"section-common-groups",type:n.SEC_COMMON_GROUPS});u.push.apply(u,j.map(function(a){return{itemKey:"common-group-"+a[0].id.toString()+"-"+a[1].map(function(a){return a.id.toString()}).join("-"),data:a,type:o.ROW_COMMON_GROUPS}}));k&&p.length>0&&u.push({itemKey:"section-starred",type:n.SEC_STARRED});u.push.apply(u,p.map(function(a){return{itemKey:"starred-"+a.id.toString(),data:a,type:o.ROW_STARRED}}));k&&r.length>0&&u.push({itemKey:"section-kept",type:n.SEC_KEPT});u.push.apply(u,r.map(function(a){return{itemKey:"kept-"+a.id.toString(),data:a,type:o.ROW_KEPT}}));k&&q.length>0&&u.push({itemKey:"section-msg",type:n.SEC_MSG});u.push.apply(u,q.map(function(a){return{itemKey:"msg-"+a.id.toString(),data:a,type:o.ROW_MSG}}));k&&l.length>0&&u.push({itemKey:"section-msg",type:n.SEC_MSG});u.push.apply(u,l.map(function(a){return{itemKey:"msg-"+a.id.toString(),data:a,type:o.ROW_MSG}}));return u};e.$28=function(a){a===void 0&&(a=100),this.refList&&this.props.selection.index>=0&&this.refList.scrollIntoViewIfNeeded(this.props.selection.index,a)};e.componentDidMount=function(){var a=this;this.$7=d("WAWebTimeSpentLoggingNavigation").tsNavigationEnter({surface:"chat-list"});this.props.selection.init(this.getSelection());var b=c("WAWebEnvironment").isWindows;b&&document.addEventListener("keydown",this.$22);this.props.listeners.add(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(b){d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&b&&(a.disableChatSwitching=!0)});this.props.listeners.add(c("WAWebChatPreferenceCollection"),"wallpaper_drawer_close",function(b){d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&b&&(a.disableChatSwitching=!1)});this.props.listeners.add(d("WAWebCmd").Cmd,"focus_next_chat",function(b){(!d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||!a.disableChatSwitching)&&a.$30(null,!0,b)});this.props.listeners.add(d("WAWebCmd").Cmd,"focus_prev_chat",function(b){(!d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||!a.disableChatSwitching)&&a.$31(null,!0,b)});this.props.listeners.add(d("WAWebCmd").Cmd,"update_chatlist_selection",this.$32);this.props.listeners.add(d("WAWebCmd").Cmd,"close_chat",this.$19);this.props.listeners.add(d("WAWebCmd").Cmd,"open_chat",function(b){a.$6=b});this.props.listeners.add(d("WAWebCmd").Cmd,"archive_chat",function(b){b===a.$6&&(a.$6=null)});this.props.listeners.add(d("WAWebCmd").Cmd,"scroll_to_active_chat",function(){a.$28(0)});c("gkx")("26258")||(this.props.listeners.add(d("WAWebChatCollection").ChatCollection,"change:muteExpiration",function(){a.setState({mutedChats:a.props.chats.filter(function(a){return d("WAWebMuteGetters").getIsMuted(a.mute)})})}),this.props.listeners.add(d("WAWebMuteCollection").MuteCollection,"change:collapseMuted",function(b){a.setState({collapseMutedChatsEnabled:b})}));this.props.mode===c("WAWebChatlistPanelMode").CallsTab&&this.props.listeners.add(c("WAWebVoipCallsTabPanelManager"),"closeCallLogInfoPanel",function(){a.props.selection.unset()});this.props.listeners.add(d("WAWebChatCollection").ChatCollection,"change:isParentGroup",function(){return a.forceUpdate()})};e.componentDidUpdate=function(a,b){b=a.selection.getVal();var d=this.$6,e=!a.isSearching&&!this.props.isSearching&&!this.props.isSearchInputFocused&&!this.props.searchQuery.hasFilter()&&!(d==null?void 0:d.archive),f=this.props.selection,g=f.list.map(function(a){return a.id.toString()}).join("-"),h=this.getSelection(),i=h.map(function(a){return a.id.toString()}).join("-");f.init(h,e);d&&f.list.includes(d)&&f.getVal()!==d&&!this.$10()&&this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&!this.props.isSearching&&!this.props.isSearchInputFocused&&f.setVal(d);this.props.mode===c("WAWebChatlistPanelMode").CommandPalette&&g!==i&&f.setFirst(!1);h=this.props.selection.getVal();a.isSearching&&!this.props.isSearching&&!this.props.isSearchInputFocused&&(!h&&this.$4&&this.props.selection.setVal(this.$4));h&&h!==b&&h!==d&&this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&(this.$1=!this.$10(),this.$2())};e.getSelection=function(){return[].concat(this.props.debugCommands,this.props.actions,this.props.settings,this.props.communities,this.props.chats,this.props.contacts,this.props.commonGroups.map(function(a){return a[0]}),this.state.ftsStarred,this.state.ftsMessages,this.props.messages)};e.$31=function(a,b,d){a&&a.preventDefault();b=this.props.selection.prev();b>-1&&(this.props.selection.setPrev(!0),this.$1=d,this.$28(),this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&this.$2())};e.$30=function(a,b,d){a&&a.preventDefault();b=this.props.selection.next();this.props.selection.index!==b&&(this.props.selection.setNext(!0),this.$1=d,this.$28(),this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&this.$2())};e.$29=function(a,b,d){a&&a.preventDefault(),this.props.selection.index!==b&&(this.props.selection.set(b,!0),this.$1=d,this.$28(),this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&this.$2())};e.focusFirst=function(){var a=this.uie;a&&a.activate();this.props.selection.setFirst();this.$28(0);this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&this.$2();this.props.mode===c("WAWebChatlistPanelMode").CommandPalette&&this.$30(void 0)};e.render=function(){var a=this,b=this.props,e=b.isSearching;b=b.chats;var f={down:function(b){return a.$30(b,!1)},j:function(b){return a.$30(b,!1)},up:function(b){return a.$31(b,!1)},k:function(b){return a.$31(b,!1)},"/":function(b){return a.$18(b)},home:function(b){return a.$29(b,0)},end:function(b){return a.$29(b,a.props.selection.list.length-1)}},g;e?g=h._(/*BTDS*/"__JHASH__yBA2c5aUAFV__JHASH__"):g=h._(/*BTDS*/"__JHASH__f618aBB7P0e__JHASH__");return k.jsx(d("WAWebUimUie.react").UIE,{displayName:"Chatlist",ref:this.setRefUIE,uimState:d("WAWebUim").UIMState.PASSIVE,requestFocus:this.requestFocus,children:k.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{tabIndex:0,handlers:f,onFocus:this.$33,ref:this.$12,"data-tab":d("WAWebTabOrder").TAB_ORDER.CHAT_LIST,children:k.jsx(r,babelHelpers["extends"]({"aria-label":g,testid:void 0,data:this.getData(),renderItem:this.renderItem,flatListController:this.props.flatListController,direction:"vertical",defaultItemHeight:this.$23(),onPointerEventsOff:this.$35,onPointerEventsOn:this.$34,ref:this.setRefList},c("WAWebEnvironment").isWindows&&{extraItems:e?0:l},{role:"grid","aria-rowcount":(f=b==null?void 0:b.length)!=null?f:0,viewportXstyles:m.flatListViewport}))})})};return f}(a);e.contextType=c("WAWebKeyboardContext");e.defaultProps={chats:[],commonGroups:[]};function t(a){var b=a.header,e=a.testid;e=a.xstyle;a=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();return k.jsx(c("WAWebSectionHeader.react"),{testid:void 0,header:b,xstyle:[a&&m.sectionHeader,e],uppercase:a?!1:void 0})}t.displayName=t.name+" [from "+f.id+"]";a=d("WAWebListenerHoc_DEPRECATED").ListenerHOC(c("WAWebTimerHoc_DEPRECATED.react")(e));f=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.focusFirst=function(){return this.getComponent().focusFirst()};return b}(a);g["default"]=f}),226); __d("WAWebChatlistPanel.scss",["cx"],(function(a,b,c,d,e,f,g,h){a={chatListPanel:"_ak9p",panelBody:"_ak9y",commandPalette:"_ak9z",commandPaletteContainer:"_ak9q",overflow:"_ak9r",noOverflow:"_ak9s",panelSearch:"_ak9t",spinner:"_ak9o",unreadContainer:"_ak9x",unread:"_ak9u",unreadBody:"_ak9v"};b=a;g["default"]=b}),98); __d("WAWebCommandModel",["WAWebBaseModel"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(b=c=a.call.apply(a,[this].concat(f))||this,c.id=d("WAWebBaseModel").prop(),c.name=d("WAWebBaseModel").prop(),c.label=d("WAWebBaseModel").prop(),c.type=d("WAWebBaseModel").prop(),b)||babelHelpers.assertThisInitialized(c)}return b}(d("WAWebBaseModel").BaseModel);a.Proxy="command";b=d("WAWebBaseModel").defineModel(a);g["default"]=b}),98); __d("WAWebSettings",["fbt","$InternalEnum","WAWebBizGatingUtils","WAWebCurrentUser","WAWebSettingsFBT","err","gkx"],(function(a,b,c,d,e,f,g,h){var i=b("$InternalEnum").Mirrored(["Settings","BusinessTools","Wallpaper","RequestAccountInfoSettings","LanguageAndTime","Blocked","Profile","Notifications","TwoFactorUpdateEmail","TwoFactorUpdatePin","TwoFactorRegistration","TwoFactorDisable","MediaAutoDownload","MediaQuality","Security","PrivacyVisiblityEdit","PrivacySettings","DefaultEphemerality","UserEphemerality","DesktopSettings","Help","Bugnub","Developer","DeveloperABProps","ScreenLock","DataSharing","DeleteAccount"]);function a(a){switch(a){case i.BusinessTools:return d("WAWebBizGatingUtils").isBizToolsDrawerEnabled();case i.DataSharing:return d("WAWebBizGatingUtils").smbDataSharingConsentEnabled()===!0;case i.PrivacySettings:return!0;case i.Security:return!0;case i.Wallpaper:return!0;case i.MediaAutoDownload:return!0;case i.RequestAccountInfoSettings:return!0;case i.DesktopSettings:return!1;case i.Help:return!0;case i.DeleteAccount:return!0;case i.Bugnub:return d("WAWebCurrentUser").isEmployee();case i.Developer:case i.DeveloperABProps:return!c("gkx")("26258");case i.Notifications:return!0;default:return!1}}function e(a){switch(a){case i.DataSharing:a=d("WAWebBizGatingUtils").showDataSharingInSettingsAfterCtwaMessageReceived()?h._(/*BTDS*/"__JHASH__HmAWE-I2iba__JHASH__"):h._(/*BTDS*/"__JHASH__IzT52c8fd_f__JHASH__");return a;case i.BusinessTools:return h._(/*BTDS*/"__JHASH__i-VUkoAL1A2__JHASH__");case i.Wallpaper:return h._(/*BTDS*/"__JHASH__q3IK9jSEini__JHASH__");case i.RequestAccountInfoSettings:return h._(/*BTDS*/"__JHASH__V1XRuX8SnPi__JHASH__");case i.Notifications:return h._(/*BTDS*/"__JHASH___mei3TzRpwR__JHASH__");case i.LanguageAndTime:return d("WAWebSettingsFBT").languageAndTimeTitle();case i.MediaAutoDownload:return h._(/*BTDS*/"__JHASH__c8rZa1TuHR-__JHASH__");case i.MediaQuality:return h._(/*BTDS*/"__JHASH__ZahOl0JcYCd__JHASH__");case i.Security:return h._(/*BTDS*/"__JHASH__uF5XX18I7iw__JHASH__");case i.PrivacySettings:return h._(/*BTDS*/"__JHASH__lAaWKvEntWc__JHASH__");case i.DesktopSettings:return h._(/*BTDS*/"__JHASH__mAMEJijlc9T__JHASH__");case i.Help:return h._(/*BTDS*/"__JHASH__4qBAruixDWb__JHASH__");case i.Bugnub:return"Report a bug (internal)";case i.Developer:return"Developer";case i.DeveloperABProps:return"AB Props";case i.DeleteAccount:return"Delete Account";default:throw c("err")("Unsupported setting.")}}g.SettingsSteps=i;g.isSettingAvailable=a;g.getLabel=e}),226); __d("WAWebCommandCollection",["WAWebActions","WAWebBaseCollection","WAWebCommandModel","WAWebL10N","WAWebSettings"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this)||this;b.initializeCommands();return b}var e=b.prototype;e.initializeCommands=function(){this.addCommandsFromActions(),this.addCommandsFromSettings()};e.query=function(a){var b=c("WAWebL10N").accentFold(a.query.toLowerCase());return this.filter(function(d){var e=c("WAWebL10N").accentFold(d.label.toLowerCase());e=e.includes(b);d=a.type===d.type;return e&&d})};e.addCommandsFromActions=function(){for(var a of d("WAWebActions").Action.members())this.add({name:a,id:a,label:d("WAWebActions").getLabel(a).toString(),type:"action"})};e.addCommandsFromSettings=function(){for(var a of Array.from(d("WAWebSettings").SettingsSteps.members()).filter(function(a){return d("WAWebSettings").isSettingAvailable(a)}))this.add({name:a,id:a,label:d("WAWebSettings").getLabel(a).toString(),type:"setting"})};return b}(d("WAWebBaseCollection").BaseCollection);a.model=c("WAWebCommandModel");b=new a();g.CommandCollection=b}),98); __d("WAWebWamEnumChatActionChatType",[],(function(a,b,c,d,e,f){a=Object.freeze({INDIVIDUAL:1,GROUP:2,BUSINESS:3,BROADCAST_LIST:4});f.CHAT_ACTION_CHAT_TYPE=a}),66); __d("WAWebWamEnumChatActionEntryPoint",[],(function(a,b,c,d,e,f){a=Object.freeze({CONVERSATION_LIST:1,CONTACT_INFO:2,GROUP_INFO:3,SEARCH_LIST:4,CONVERSATION_LIST_BULK_EDIT:5,CONVERSATION_MENU:6,WEB_ACTION:7,SYSTEM_NOTIFICATIONS:8});f.CHAT_ACTION_ENTRY_POINT=a}),66); __d("WAWebWamEnumChatActionType",[],(function(a,b,c,d,e,f){a=Object.freeze({MUTE:1,UNMUTE:2,ARCHIVE:3,CLEAR:4,EXIT_GROUP:5,DELETE:6,PIN:7,UNREAD:8,READ:9});f.CHAT_ACTION_TYPE=a}),66); __d("WAWebChatActionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumChatActionChatType","WAWebWamEnumChatActionEntryPoint","WAWebWamEnumChatActionType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({ChatAction:[2312,{chatActionChatType:[3,d("WAWebWamEnumChatActionChatType").CHAT_ACTION_CHAT_TYPE],chatActionEntryPoint:[2,d("WAWebWamEnumChatActionEntryPoint").CHAT_ACTION_ENTRY_POINT],chatActionMuteDuration:[4,d("WAWebWamCodegenUtils").TYPES.TIMER],chatActionType:[1,d("WAWebWamEnumChatActionType").CHAT_ACTION_TYPE]},[1,1,1],"regular"]},{ChatAction:[]});g.ChatActionWamEvent=a}),98); __d("WAWebWamChatActionEventsLogger",["WAWebChatActionWamEvent"],(function(a,b,c,d,e,f,g){function a(a){var b=a.chatActionEntryPoint;a=a.chatActionType;new(d("WAWebChatActionWamEvent").ChatActionWamEvent)({chatActionEntryPoint:b,chatActionType:a}).commit()}g.logChatActionEvent=a}),98); __d("WAWebConsumerMultiSelectBarOverflowmenu.react",["fbt","WAWebChatModel","WAWebChatRefreshedIcon.react","WAWebChatUnreadRefreshedIcon.react","WAWebCmd","WAWebDropdownItem.react","WAWebMuteNotificationsRefreshedIcon.react","WAWebUIRefreshGatingUtils","WAWebUnmuteNotificationsRefreshedIcon.react","WAWebUpdateUnreadChatAction","WAWebWamChatActionEventsLogger","WAWebWamEnumChatActionEntryPoint","WAWebWamEnumChatActionType","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.selectedModels,c=a.onComplete,e=a.unreadChatCount;a=a.unmutedChatCount;b=b.getSelected();var f=b.reduce(function(a,b){b instanceof d("WAWebChatModel").Chat&&a.push(b);return a},[]);b=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();var g=function(a){f.forEach(function(b){d("WAWebUpdateUnreadChatAction").markUnread(b,a,!1)}),d("WAWebWamChatActionEventsLogger").logChatActionEvent({chatActionEntryPoint:d("WAWebWamEnumChatActionEntryPoint").CHAT_ACTION_ENTRY_POINT.CONVERSATION_LIST_BULK_EDIT,chatActionType:a?d("WAWebWamEnumChatActionType").CHAT_ACTION_TYPE.UNREAD:d("WAWebWamEnumChatActionType").CHAT_ACTION_TYPE.READ}),c()},i=e!==0;e=i?h._(/*BTDS*/"__JHASH__CpF20omw_HV__JHASH__",[h._plural(f.length)]):h._(/*BTDS*/"__JHASH__aQOAGd8l9lF__JHASH__",[h._plural(f.length)]);var k="multi-select-bar-overflow-menu-item-mark-"+(i?"read":"unread");k=i?j.jsx(d("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}):j.jsx(d("WAWebChatUnreadRefreshedIcon.react").ChatUnreadRefreshedIcon,{});var l=function(){g(!i)};l=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:l,icon:b?k:null,testid:void 0,children:e});var m=a!==0,n=function(a){var b=function(){d("WAWebWamChatActionEventsLogger").logChatActionEvent({chatActionEntryPoint:d("WAWebWamEnumChatActionEntryPoint").CHAT_ACTION_ENTRY_POINT.CONVERSATION_LIST_BULK_EDIT,chatActionType:a?d("WAWebWamEnumChatActionType").CHAT_ACTION_TYPE.MUTE:d("WAWebWamEnumChatActionType").CHAT_ACTION_TYPE.UNMUTE}),c()};d("WAWebCmd").Cmd.muteChatMultiselect(f,a,b)};k=m?h._(/*BTDS*/"__JHASH__njEBSOqB1K___JHASH__"):h._(/*BTDS*/"__JHASH__B8vIAy7-XHg__JHASH__");e="multi-select-bar-overflow-menu-item-"+(m?"mute":"unmute");a=m?j.jsx(d("WAWebMuteNotificationsRefreshedIcon.react").MuteNotificationsRefreshedIcon,{}):j.jsx(d("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{});e=function(){n(m)};e=j.jsx(d("WAWebDropdownItem.react").DropdownItem,{action:e,icon:b?a:null,testid:void 0,children:k});return j.jsxs(j.Fragment,{children:[l,e]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMoreHorizontalCustomRefreshedIcon",["WAWebMoreRefreshedIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={flip:{display:"x1lliihq",transform:"x1iffjtl",$$css:!0}};function a(a){return i.jsx(d("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,babelHelpers["extends"]({},a,{xstyle:j.flip}))}a.displayName=a.name+" [from "+f.id+"]";g.MoreHorizontalCustomRefreshedIcon=a}),98); __d("useWAWebEventCounterValue",["react","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(a,b,c){c===void 0&&(c=0);var e;a==null?e=[]:Array.isArray(a)?e=a:e=[a];a=i(c);c=a[0];var f=a[1];d("useWAWebListener").useListeners(e.map(function(a){return{source:a,eventOrEvents:b,callback:function(a){a===void 0&&(a=1),f(function(b){return b+a})}}}));return c}g["default"]=a}),98); __d("WAWebConsumerMultiSelectBar.react",["fbt","WAWebCallMenuIcon.react","WAWebCloseRefreshedIcon.react","WAWebConsumerMultiSelectBarOverflowmenu.react","WAWebDropdown.react","WAWebMenuBar.react","WAWebMoreHorizontalCustomRefreshedIcon","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebXIcon.react","react","stylex","useWAWebEventCounterValue","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={multiControls:{start:"x17qophe",zIndex:"x1yg4o9v",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",width:"xh8yej3",height:"xy063j7",position:"x1n2onr6",bottom:"xgxk9ee",backgroundColor:"x1pl83jw",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1nfbk4f",borderEndColor:"x1jte9w8",borderBottomColor:"xa93pmm",borderStartColor:"xgkeump",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.selectedModels;a=a.onCancel;var f=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),g=e.getSelected();g=g.length;var i=c("useWAWebEventCounterValue")(e,"unread_chat"),m=c("useWAWebEventCounterValue")(e,"unmuted_chat");d("useWAWebListener").useListener(e,"all",f);f=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();return k.jsxs("div",babelHelpers["extends"]({ref:b},(j||(j=c("stylex"))).props([l.multiControls,d("WAWebUISpacing").uiPadding.vert6,d("WAWebUISpacing").uiPadding.start16,d("WAWebUISpacing").uiPadding.end20]),{"data-testid":void 0,children:[k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:f?k.jsx(d("WAWebCloseRefreshedIcon.react").CloseRefreshedIcon,{}):k.jsx(d("WAWebXIcon.react").XIcon,{}),title:h._(/*BTDS*/"__JHASH__tEXs9rikSOW__JHASH__"),onClick:a}),k.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2 xs83m0k xdl72j9 xmo9yow x17adc0v x6ikm8r x10wlt62 xlahmqy xlyipyv xuxw1ft"},{"data-testid":void 0,children:h._(/*BTDS*/"__JHASH__ODVgV6os7tq__JHASH__",[h._plural(g,"number_of_selected_items")])})),g>0&&k.jsx(d("WAWebMenuBar.react").MenuBar,{children:k.jsx(d("WAWebMenuBar.react").MenuBarVelocityTransitionGroup,{transitionName:"dropdown",children:k.jsx(d("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:d("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:f?k.jsx(d("WAWebMoreHorizontalCustomRefreshedIcon").MoreHorizontalCustomRefreshedIcon,{}):k.jsx(d("WAWebCallMenuIcon.react").CallMenuIcon,{directional:!0}),title:h._(/*BTDS*/"__JHASH__zTGQVo56V3t__JHASH__"),dropdownMenu:{menu:k.jsx(c("WAWebConsumerMultiSelectBarOverflowmenu.react"),{selectedModels:e,onComplete:a,unreadChatCount:i,unmutedChatCount:m}),type:f?d("WAWebDropdown.react").MenuType.Dropdown:d("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,key:"MultiSelectOverflowMenu",dirX:f?d("WAWebDropdown.react").DirX.RIGHT:d("WAWebDropdown.react").DirX.LEFT,dirY:d("WAWebDropdown.react").DirY.BOTTOM,testid:"multi-select-bar-header-overflow-menu"}})})},"multi-select-bar-header")]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebDesktopUpsellCommonStrings",["fbt","WAWebDesktopUpsellUtils"],(function(a,b,c,d,e,f,g,h){function i(){return h._(/*BTDS*/"__JHASH__GEHid_9pEVd__JHASH__")}function a(a){var b=d("WAWebDesktopUpsellUtils").getUserDesktopOs();if(b==null)return i();var c=d("WAWebDesktopUpsellUtils").getEmptyStateUpsellBannerVariant();if(c===d("WAWebDesktopUpsellUtils").EmptyStateUpsellBannerVariantEnum.Variant2||c===d("WAWebDesktopUpsellUtils").EmptyStateUpsellBannerVariantEnum.Variant3)return h._(/*BTDS*/"__JHASH__-xY2JihQq32__JHASH__");switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__kMeNf2ZLsCO__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return a===!0?h._(/*BTDS*/"__JHASH__6ugirgdHf1___JHASH__"):h._(/*BTDS*/"__JHASH__d6p6HtM4eUU__JHASH__")}}function b(){var a=d("WAWebDesktopUpsellUtils").getUserDesktopOs();if(a==null)return null;switch(a){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__n3o2fcEc9G8__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return h._(/*BTDS*/"__JHASH__t2CGfHP81Kr__JHASH__")}}function c(){var a=d("WAWebDesktopUpsellUtils").getUserDesktopOs();if(a==null)return null;switch(a){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__tHU5OBil2Oj__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return h._(/*BTDS*/"__JHASH__B_eZI3rPVqn__JHASH__")}}function e(a){var b=d("WAWebDesktopUpsellUtils").getUserDesktopOs();if(b==null)return null;var c=d("WAWebDesktopUpsellUtils").getEmptyStateUpsellBannerVariant();if(c===d("WAWebDesktopUpsellUtils").EmptyStateUpsellBannerVariantEnum.Variant2)switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__i-LrH7f0NtC__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return h._(/*BTDS*/"__JHASH__g3G9AP9ansN__JHASH__")}if(c===d("WAWebDesktopUpsellUtils").EmptyStateUpsellBannerVariantEnum.Variant3)switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__ct4PxeclnVi__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return h._(/*BTDS*/"__JHASH__n6xCmXg9opl__JHASH__")}switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__z4K4p8lhv2M__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return a===!0?h._(/*BTDS*/"__JHASH__-OezyR8n2ns__JHASH__"):h._(/*BTDS*/"__JHASH__7MyvSxvKu6x__JHASH__")}}function f(a){var b=d("WAWebDesktopUpsellUtils").getUserDesktopOs();if(b==null)return null;var c=d("WAWebDesktopUpsellUtils").getEmptyStateUpsellBannerVariant();if(c===d("WAWebDesktopUpsellUtils").EmptyStateUpsellBannerVariantEnum.Variant2)switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__2J8uQgQc7l___JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return h._(/*BTDS*/"__JHASH__muZ53wHYIG0__JHASH__")}if(c===d("WAWebDesktopUpsellUtils").EmptyStateUpsellBannerVariantEnum.Variant3)switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__Ma4ADTOzBhS__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return h._(/*BTDS*/"__JHASH__QifZiJp4anv__JHASH__")}switch(b){case d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS:return h._(/*BTDS*/"__JHASH__MZCxEzinlb4__JHASH__");case d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS:return a===!0?h._(/*BTDS*/"__JHASH__Nv7r5hCLETO__JHASH__"):h._(/*BTDS*/"__JHASH__vPkHYt6jwr2__JHASH__")}}g.getDesktopAppDownloadBtnLabel=i;g.getDesktopAppDownloadFromStoreBtnLabel=a;g.getChatlistDropdownBtnLabel=b;g.getDesktopUpsellToastbarLabel=c;g.getDesktopUpsellDownloadWhatsAppTitle=e;g.getDesktopUpsellIntroPanelText=f}),226); __d("WAWebDesktopUpsellEvents",["WAWebTypedEventEmitter"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(c("WAWebTypedEventEmitter"));b=new a();g.WAWebDesktopUpsellEvents=b}),98); __d("WAWebDesktopUpsellWASquareIcon.react",["WAWebDesktopUpsellUtils","WAWebUISpacing","WAWebWaSquareIconIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={icon:{marginStart:"x1hvlnb8",$$css:!0},macIcon:{borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",$$css:!0}};function a(){var a=d("WAWebDesktopUpsellUtils").getUserDesktopOs();return i.jsx(d("WAWebWaSquareIconIcon.react").WaSquareIconIcon,{height:40,xstyle:[j.icon,d("WAWebUISpacing").uiMargin.end8],iconXstyle:a===d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?j.macIcon:null})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebToastbar.react",["fbt","WAWebClickable.react","WAWebCloseRefreshedIcon.react","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebTabOrder","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebVelocityTransitionGroup","WAWebXIcon.react","WDSFocusStateStyles","react","useHoverState","useWAWebFocusState"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m=24,n={container:{position:"x10l6tqk",bottom:"x1ey2m1c",zIndex:"xoz0ns6",width:"xh8yej3",backgroundColor:"x150wa6m",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0},childrenContainer:{display:"x3nfvp2",$$css:!0},icon:{color:"xht95ry",$$css:!0}};function a(a){var b=a.alwaysShowDismissBtn,e=a.children,f=a.childrenXStyle,g=a.dismissible,i=a.dismissXstyle,j=a.hidden;j=j===void 0?!1:j;var o=a.onClick,p=a.onDismiss;a=a.wrapperXstyle;var q=l(!1),r=q[0],s=q[1];q=c("useHoverState")();var t=q.isHovered,u=q.onMouseEnter;q=q.onMouseLeave;var v=c("useWAWebFocusState")(),w=v[0];v=v[1];var x=c("useWAWebFocusState")(),y=x[0];x=x[1];var z=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();z=z?k.jsx(d("WAWebCloseRefreshedIcon.react").CloseRefreshedIcon,{height:m,"aria-label":h._(/*BTDS*/"__JHASH__DN12Nrto9V4__JHASH__"),xstyle:n.icon}):k.jsx(d("WAWebXIcon.react").XIcon,{height:m,"aria-label":h._(/*BTDS*/"__JHASH__DN12Nrto9V4__JHASH__"),xstyle:n.icon});var A=null;if(!r&&!j){r=!b&&!t&&!v&&!x?null:k.jsx(d("WAWebClickable.react").Clickable,{ref:y,"data-tab":d("WAWebTabOrder").TAB_ORDER.CHAT_LIST,onClick:function(a){a==null?void 0:a.preventDefault(),a==null?void 0:a.stopPropagation(),s(!0),p==null?void 0:p()},children:z});A=k.jsxs(d("WAWebFlex.react").FlexRow,{align:"center",justify:"all",xstyle:[d("WAWebUISpacing").uiPadding.top12,d("WAWebUISpacing").uiPadding.bottom10,n.container,a],children:[k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:[d("WAWebUISpacing").uiMargin.start13,n.childrenContainer,v&&d("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus,f],align:"center",justify:"center",grow:1,children:e}),g===!0&&k.jsx(d("WAWebFlex.react").FlexItem,{xstyle:[d("WAWebUISpacing").uiMargin.end20,i],grow:0,shrink:0,basis:m,children:k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"noop",children:r})})]})}return k.jsx(d("WAWebClickable.react").Clickable,{ref:w,"data-tab":d("WAWebTabOrder").TAB_ORDER.CHAT_LIST,onClick:o,children:k.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{onMouseEnter:u,onMouseLeave:q,children:k.jsx(c("WAWebVelocityTransitionGroup"),{component:"div",transitionName:"toast-transition",children:A})})})}a.displayName=a.name+" [from "+f.id+"]";g.WAWebToastbar=a}),226); __d("WAWebMacBetaUpsellToastbar.react",["fbt","WAWebDesktopUpsellStoreOpener","WAWebFlex.react","WAWebText.react","WAWebToastbar.react","WAWebUserPrefsStore","WAWebWaSquareIconIcon.react","WAWebWamEnumWebcNativeUpsellCtaEventType","WAWebWebcNativeUpsellCtaWamEvent","react","useWAWebDesktopUpsellWamImpression"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={wrapperXstyle:{start:"x17qophe",left:null,right:null,justifyContent:"xlqzeqv",width:"xh8yej3",boxSizing:"x9f619",paddingStart:"xbbxn1n",paddingEnd:"xhepvqq",paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0},childrenXStyle:{flexGrow:"x1iyjqo2",marginStart:"x1mh8g0r",$$css:!0},body:{columnGap:"x1amjocr",width:"xh8yej3",$$css:!0},waIcon:{width:"x1useyqa",alignItems:"x6s0dn4",$$css:!0},iconXstyle:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0},dismissXstyle:{marginEnd:"x11i5rnm",$$css:!0}},n="mac_beta_upsell_dismiss";function a(a){var b=a.sourceType;a=l(c("WAWebUserPrefsStore").getUser(n)===!0);var e=a[0],f=a[1];a=function(){new(d("WAWebWebcNativeUpsellCtaWamEvent").WebcNativeUpsellCtaWamEvent)({webcNativeUpsellCtaEventType:d("WAWebWamEnumWebcNativeUpsellCtaEventType").WEBC_NATIVE_UPSELL_CTA_EVENT_TYPE.CTA_DISMISS,webcNativeUpsellCtaSource:b}).commit(),c("WAWebUserPrefsStore").setUser(n,!0),f(!0)};d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:!e,source:b});return e?null:k.jsx(d("WAWebToastbar.react").WAWebToastbar,{onClick:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:b,isBeta:!0})},dismissible:!0,onDismiss:a,alwaysShowDismissBtn:!0,dismissXstyle:m.dismissXstyle,wrapperXstyle:m.wrapperXstyle,childrenXStyle:m.childrenXStyle,children:k.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:m.body,align:"center",children:[k.jsx(d("WAWebFlex.react").FlexColumn,{shrink:0,xstyle:m.waIcon,children:k.jsx(d("WAWebWaSquareIconIcon.react").WaSquareIconIcon,{height:32,iconXstyle:m.iconXstyle})}),k.jsxs(d("WAWebFlex.react").FlexColumn,{grow:1,justify:"center",align:"start",children:[k.jsx(d("WAWebFlex.react").FlexRow,{children:k.jsx(d("WAWebText.react").WAWebTextTitleRefreshed,{children:h._(/*BTDS*/"__JHASH__PMG6yZiKft6__JHASH__")})}),k.jsx(d("WAWebFlex.react").FlexRow,{children:k.jsx(d("WAWebText.react").WAWebTextMutedRefreshed,{children:h._(/*BTDS*/"__JHASH__0KZ5ZeV-_Bg__JHASH__")})})]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebExternalBetaEvents",["WAWebEventEmitter"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.triggerBetaOptInStatusChanges=function(){this.trigger("external_beta_events:opt_in_status_changed")};return b}(c("WAWebEventEmitter"));b=new a();g.WAWebExternalBetaEvents=b}),98); __d("WAWebExternalBetaOptInAction",["Promise","WAServerSync.pb","WASyncdConst","WATimeUtils","WAWebExternalBetaApi","WAWebExternalWebBetaSync","WAWebSyncdActionUtils","WAWebSyncdCoreApi"],(function(a,b,c,d,e,f,g){var h;function i(a,b){b={externalWebBetaAction:{isOptIn:b}};return d("WAWebSyncdActionUtils").buildPendingMutation({collection:d("WASyncdConst").CollectionName.Regular,indexArgs:[],value:b,version:c("WAWebExternalWebBetaSync").getVersion(),operation:d("WAServerSync.pb").SyncdMutation$SyncdOperation.SET,timestamp:a,action:c("WAWebExternalWebBetaSync").getAction()})}function a(a){var c=d("WATimeUtils").unixTimeMs();c=i(c,a);return d("WAWebSyncdCoreApi").lockForSync([],[c],function(){return(h||(h=b("Promise"))).resolve()}).then(function(){return d("WAWebExternalBetaApi").changeOptInStatusForExternalWebBeta(a)})}g.setOptInBetaAction=a}),98); __d("useWAWebExternalBetaOptIn",["fbt","WALogger","WAWebABProps","WAWebCmd","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellUtils","WAWebEnvironment","WAWebExternalBetaEvents","WAWebExternalBetaOptInAction","WAWebModalSingleActionOpener","WAWebUserPrefsGeneral","asyncToGeneratorRuntime","react","useWAWebABPropConfigValue","useWAWebAsync","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["useExternalBetaOptIn: AB prop does not allow user to join beta. Leaving beta..."]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["Web Beta: Error while opting in: ",""]);k=function(){return a};return a}var l=(i||d("react")).useState;function m(){var a=l(!1),e=a[0],f=a[1];a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebUserPrefsGeneral").getWhatsAppWebExternalBetaJoinedIdb());f(a)});return function(){return a.apply(this,arguments)}}();c("useWAWebAsync")(a,[]);d("useWAWebListener").useListener(d("WAWebExternalBetaEvents").WAWebExternalBetaEvents,"external_beta_events:opt_in_status_changed",a);a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){f(!e);try{yield d("WAWebExternalBetaOptInAction").setOptInBetaAction(!e)}catch(a){d("WALogger").ERROR(k(),a).sendLogs("web beta failed to change opt-in status"),d("WAWebModalSingleActionOpener").openSingleActionModal({body:h._(/*BTDS*/"__JHASH__dhWyhJG-NQC__JHASH__")})}});return function(){return a.apply(this,arguments)}}();return[e,a]}function a(){d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"on_ab_props_update",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebUserPrefsGeneral").getWhatsAppWebExternalBetaJoinedIdb()),b=d("WAWebABProps").getABPropConfigValue("external_beta_can_join");a&&!b&&(d("WALogger").LOG(j()),yield d("WAWebExternalBetaOptInAction").setOptInBetaAction(!1))}))}function e(){var a=m();a=a[0];var b=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck(),e=d("useWAWebABPropConfigValue").useABPropConfigValue("web_mac_beta_upsell"),f=d("WAWebDesktopUpsellUtils").getUserDesktopOs(),g=!1;e&&(g=c("WAWebEnvironment").isWeb&&a&&f===d("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS&&b);return g}g.useExternalBetaOptIn=m;g.useExternalBetaValidator=a;g.useMacBetaUpsellOnWeb=e}),226); __d("WAWebDesktopUpsellChatlistToastbar.react",["WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellEvents","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebDesktopUpsellWASquareIcon.react","WAWebMacBetaUpsellToastbar.react","WAWebText.react","WAWebToastbar.react","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebWamEnumWebcNativeUpsellCtaEventType","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWebcNativeUpsellCtaWamEvent","cr:1925","react","useWAWebDesktopUpsellWamImpression","useWAWebExternalBetaOptIn","useWAWebListener"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState,l={textWrapper:{lineHeight:"xo5v014",$$css:!0}};function a(){var a,e=d("WAWebDesktopUpsellUtils").getUserDesktopOs(),f=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("chatlist_toastbar"),g=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck();a=(a=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?a:!1;a=!a&&f&&g;f=d("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb();g=k(!0);var h=g[0],i=g[1];d("useWAWebListener").useListener(d("WAWebDesktopUpsellEvents").WAWebDesktopUpsellEvents,"conversation_panel_ui_change",function(a){i(a.conversationPanelVisible)});g=m();a=a===!0&&e!=null&&!g&&!f;var o=d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.BUTTERBAR;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:a,source:o});if(f)return j.jsx(c("WAWebMacBetaUpsellToastbar.react"),{sourceType:o});return!a?null:j.jsxs(d("WAWebToastbar.react").WAWebToastbar,{hidden:!h,dismissible:!0,onClick:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:o})},onDismiss:function(){n(),new(d("WAWebWebcNativeUpsellCtaWamEvent").WebcNativeUpsellCtaWamEvent)({webcNativeUpsellCtaEventType:d("WAWebWamEnumWebcNativeUpsellCtaEventType").WEBC_NATIVE_UPSELL_CTA_EVENT_TYPE.CTA_DISMISS,webcNativeUpsellCtaSource:o}).commit()},children:[j.jsx(c("WAWebDesktopUpsellWASquareIcon.react"),{}),j.jsx(d("WAWebText.react").WAWebTextTitle,{as:"span",color:"teal",xstyle:l.textWrapper,children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellToastbarLabel()})]})}a.displayName=a.name+" [from "+f.id+"]";function m(){var a=c("WAWebUserPrefsStore").get(d("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_DISMISSED_CHATLIST_TOASTBAR);return!!a}function n(){c("WAWebUserPrefsStore").set(d("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_DISMISSED_CHATLIST_TOASTBAR,!0)}g.WAWebDesktopUpsellChatlistToastbar=a}),98); __d("WAWebDesktopUpsellSearchToastbar.react",["fbt","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebDesktopUpsellWASquareIcon.react","WAWebFlex.react","WAWebText.react","WAWebToastbar.react","WAWebWamEnumWebcNativeUpsellCtaSourceType","cr:1925","react","useWAWebDesktopUpsellWamImpression"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={textWrapper:{lineHeight:"xo5v014",$$css:!0},toastbar:{justifyContent:"xl56j7k",$$css:!0}};function a(){var a,e=d("WAWebDesktopUpsellUtils").getUserDesktopOs(),f=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellAbPropCheck("search_results"),g=d("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck();a=(a=b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())!=null?a:!1;a=!a&&f&&g;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:a===!0,source:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SEARCH_RESULTS});return a!==!0||e==null?null:j.jsxs(d("WAWebToastbar.react").WAWebToastbar,{onClick:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SEARCH_RESULTS})},wrapperXstyle:k.toastbar,children:[j.jsx(c("WAWebDesktopUpsellWASquareIcon.react"),{}),j.jsxs(d("WAWebFlex.react").FlexColumn,{children:[j.jsx(d("WAWebFlex.react").FlexItem,{children:j.jsx(d("WAWebText.react").WAWebTextTitle,{as:"span",children:h._(/*BTDS*/"__JHASH__kEui-JptIGV__JHASH__")})}),j.jsx(d("WAWebFlex.react").FlexItem,{inline:!0,children:j.jsx(d("WAWebText.react").WAWebTextMuted,{as:"span",xstyle:k.textWrapper,children:d("WAWebDesktopUpsellCommonStrings").getDesktopUpsellToastbarLabel()})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g.WAWebDesktopUpsellSearchToastbar=a}),226); __d("WAWebFilterSession",[],(function(a,b,c,d,e,f){a=function(){function a(){this.initSessionId()}var b=a.prototype;b.initSessionId=function(){this.sessionId=this.newSessionId()};b.newSessionId=function(){this.sessionId=Math.floor(2147483648*Math.random());return this.sessionId};return a}();f["default"]=a}),66); __d("WAWebFtsMsgsCollectionBase",["WAAbortError","WAPromiseRaceAbort","WAWebBaseCollection","WAWebChatCollection","WAWebChatMessageSearch","WAWebFrontendMsgGetters","WAWebMsgModel","WAWebViewMode.flow","WAWebViewModeUtils","asyncToGeneratorRuntime","err","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(f,a);var e=f.prototype;e.searchImpl=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,d,e,f){d===void 0;throw c("err")("searchImpl must be implemented")});function d(b,c,d,e,f){return a.apply(this,arguments)}return d}();e.onSeachPromiseComplete=function(a){};function f(b){var e;e=a.call(this)||this;e.hasMoreMsgs=!0;e.resultPage=0;e.searchPromise=null;e.searchAbortController=null;e.searchTerm=null;e.searchLabel=null;e.updateFtsAfterMsgLabelUpdate=function(){if(c("isStringNullOrEmpty")(e.currentLabelSearch))return;var a=e.filter(function(a){return!a.labels||!a.labels.includes(e.currentLabelSearch)});e.remove(a,{silent:!0})};e.listenTo(b,"remove_msgs",function(a){a=e.remove(a,{silent:!0}).filter(function(a){return!!a});a.length&&e.trigger("bulk_remove")});e.listenTo(d("WAWebChatCollection").ChatCollection,"remove",function(a){var b=[];e.forEach(function(c){c.id.remote.equals(a.id)&&b.push(c)});var c=e.remove(b,{silent:!0}).filter(function(a){return!!a});c.length&&e.trigger("bulk_remove")});return e}e["delete"]=function(b){b&&this.stopListening(),a.prototype["delete"].call(this)};e.resetSearch=function(){var a;this.hasMoreMsgs=!0;this.resultPage=0;this.searchTerm=null;(a=this.searchAbortController)==null?void 0:a.abort()};e.search=function(a){var b=this,e=a.chat,f=a.count,g=a.filter,h=g===void 0?{}:g;g=a.searchTerm;var i=g+"__"+(h.label||h.kind&&h.kind||"");this.currentLabelSearch=h.label;var j=!1;this.searchTerm!==i?(!(this.searchTerm&&g.indexOf(this.searchTerm)===0)?(this.searchTerm=i,this["delete"]()):j=!0,this.resultPage=0,this.hasMoreMsgs=!0):j=!0;if(this.searchPromise){if(this.searchTerm===i)return this.searchPromise;(a=this.searchAbortController)==null?void 0:a.abort()}this.searchAbortController=new AbortController();a=this.searchAbortController.signal;e=this.searchImpl(e,g,++this.resultPage,f,h);this.searchPromise=c("WAPromiseRaceAbort")(e,a).then(function(a){a.eof&&(b.hasMoreMsgs=!1);b.searchTerm!==i&&b["delete"]();b.searchTerm=i;a.messages&&((h.kind||h.label!=null)&&(a.messages=a.messages.filter(function(a){return d("WAWebFrontendMsgGetters").getChat(a)&&d("WAWebChatMessageSearch").matchFilter(d("WAWebFrontendMsgGetters").getChat(a),h)})),b.add(a.messages.filter(function(a){return!d("WAWebFrontendMsgGetters").getAsRevoked(a)&&d("WAWebViewModeUtils").isViewModeVisibleInSurface(d("WAWebViewMode.flow").ViewModeSurface.SEARCH,a.viewMode)})));b.onSeachPromiseComplete(j);return a})["catch"](d("WAAbortError").catchAbort(function(){b.resultPage-=1;return void 0}))["finally"](function(){b.searchPromise=null,b.searchAbortController=null,b.trigger("searchPromise_update")});this.trigger("searchPromise_update");return this.searchPromise};return f}(d("WAWebBaseCollection").BaseCollection);a.model=d("WAWebMsgModel").Msg;g["default"]=a}),98); __d("WAWebFtsMsgsChatlessCollection",["Promise","WALogger","WAWebFtsMsgsCollectionBase","WAWebMsgCollection","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["getNextMsgs must be implemented"]);i=function(){return a};return a}a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b;b=a.call(this,d("WAWebMsgCollection").MsgCollection)||this;b.previousResultPage=0;b.pageToOldestMsgId=new Map();return b}var f=e.prototype;f.getNextMsgs=function(a,e){d("WALogger").ERROR(i());return(h||(h=b("Promise"))).reject(c("err")("getNextMsgs must be implemented"))};f.searchImpl=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,d,e){c===void 0&&(c=1);this.previousResultPage>=c&&this.pageToOldestMsgId.clear();a=this.pageToOldestMsgId.get(c-1);e=!1;var f=[];while(!e&&f.length<d){var g=(yield this.getNextMsgs(d,a));e=g.length<d;if(g.length===0)break;a=g[g.length-1].id;f.push.apply(f,this.filterMsgs(g,b))}this.pageToOldestMsgId.set(c,a);this.previousResultPage=c;return{canceled:!1,eof:e,messages:f}});function c(b,c,d,e,f){return a.apply(this,arguments)}return c}();f.filterMsgs=function(a,b){return a};return e}(c("WAWebFtsMsgsCollectionBase"));g["default"]=a}),98); __d("WAWebFtsMsgsCallLogCollection",["WAWebContactCollection","WAWebFtsMsgsChatlessCollection","WAWebMsgCollection","WAWebPhoneNumberSearch"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getNextMsgs=function(a,b){return d("WAWebMsgCollection").MsgCollection.getVoipCallLogMsgs(a,b)};c.filterMsgs=function(a,b){return b===""?a:a.filter(function(a){var c=d("WAWebPhoneNumberSearch").numberSearch(b);a=d("WAWebContactCollection").ContactCollection.get(a.from);return(a=a==null?void 0:a.searchMatch(b,c))!=null?a:!1})};return b}(c("WAWebFtsMsgsChatlessCollection"));g["default"]=a}),98); __d("WAWebFtsMsgsCollection",["WAWebChatMessageSearch","WAWebFtsMsgsCollectionBase","WAWebMsgCollection","WAWebUiActionWamEvent","WAWebWamEnumUiActionType","WAWebWamPrivateStatsUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(c,a);function c(b){b=b?b.msgs:d("WAWebMsgCollection").MsgCollection;return a.call(this,b)||this}var e=c.prototype;e.searchImpl=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e,f){c===void 0&&(c=1);return a?d("WAWebChatMessageSearch").fts(a,b,c,e):d("WAWebMsgCollection").MsgCollection.search(b,c,e,void 0,f)});function c(b,c,d,e,f){return a.apply(this,arguments)}return c}();e.onSeachPromiseComplete=function(a){a=new(d("WAWebUiActionWamEvent").UiActionWamEvent)({uiActionType:d("WAWebWamEnumUiActionType").UI_ACTION_TYPE.FIRST_FTS_RESULT,uiActionPreloaded:a});a.markUiActionT();a.commit();d("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()};return c}(c("WAWebFtsMsgsCollectionBase"));g["default"]=a}),98); __d("WAWebContentPlaceholder.react",["react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k={main:{fontSize:"x1f6kntn",fontWeight:"xk50ysn",lineHeight:"xdod15v",color:"xzwifym",$$css:!0},mdChatSearchList:{justifyContent:"xlqzeqv",paddingTop:"x1xy6bms",paddingEnd:"x1pi30zi",paddingBottom:"xsag5q8",paddingStart:"x1swvt13",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xyj1x25",$$css:!0},mdChatSearchListMain:{fontSize:"x1f6kntn",fontWeight:"xo1l8bm",lineHeight:"x1fc57z9",color:"x40yjcy",textAlign:"x2b8uid",$$css:!0},themeReportedMsgMainComponentColor:{color:"x40yjcy",$$css:!0},starredMsgsDrawerEmpty:{backgroundColor:"x150wa6m",$$css:!0}};function l(a){switch(a){case"list":return"xlqzeqv xz9dl7a x14uny0o xsag5q8 x1vobaek x178xt8z x13fuv20 xyj1x25";case"md-chat-search-list":return"xlqzeqv x1xy6bms x1pi30zi xsag5q8 x1swvt13 x178xt8z x13fuv20 xyj1x25";case"reported-msg":return"x1yrsyyn x150jy0e xjkvuk6 x1e558r4 x972fbf";case"starred-msgs-drawer-empty":return(i||(i=c("stylex")))([k.starredMsgsDrawerEmpty,k.mdChatSearchList])}}function m(a){switch(a){case"md-chat-search-list":case"starred-msgs-drawer-empty":return(i||(i=c("stylex")))([k.main,k.mdChatSearchListMain]);case"reported-msg":return(i||(i=c("stylex")))([k.main,k.themeReportedMsgMainComponentColor]);case"list":return(i||(i=c("stylex")))([k.main])}}function a(a){var b=a.children,c=a.secondary;a=a.theme;c=c!=null?j.jsx("div",babelHelpers["extends"]({className:"x1nxh6w3 x17fgdl5 x40yjcy"},{children:c})):null;var d=l(a);a=m(a);return j.jsx("div",{className:d,children:j.jsxs("div",babelHelpers["extends"]({className:"xkz0k9k x6ikm8r x10wlt62"},{children:[j.jsx("div",{className:a,children:b}),c]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebHistorySyncProgressGetters",["WAWebGetters"],(function(a,b,c,d,e,f,g){a=d("WAWebGetters").createGetterFactories({});b=a.computed;c=a.field;e=c("remainingPausedSeconds");f=c("realProgress");d=c("fakeProgress");a=c("incomplete");c=b(function(a){a=a[0];return a!=null},[e]);d=b(function(a){var b=a[0];a=a[1];return b==null?null:Math.min(b+a,100)},[f,d]);b=b(function(a){var b=a[0],c=a[1];a=a[2];return c&&(b==null||b<100)&&(a==null||a>0)},[f,a,e]);g.getPaused=c;g.getProgress=d;g.getInProgress=b}),98); __d("WAWebHistorySyncProgressModel",["WALogger","WATimeUtils","WAWebBaseModel","WAWebHistorySyncProgressGetters","WAWebModelUtils","WAWebUserPrefsHistorySync"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["HistorySyncProgressModel: setProgress("," --> ",") | timeBetweenUpdatesSeconds="," | interval=","s"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] pausedExpiryCheckpoint: waited for at least ","s in paused state, removing progress UI"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] pausedExpiryCheckpoint: setting remaining paused time to ","s"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[history sync] pausedExpiryCheckpoint: remainingPausedSeconds=",""]);k=function(){return a};return a}var l=60*20,m=30,n=function(b){babelHelpers.inheritsLoose(a,b);function a(){var a,c;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(a=c=b.call.apply(b,[this].concat(f))||this,c.id=d("WAWebModelUtils").prop("HISTORY_SYNC_PROGRESS"),c.incomplete=d("WAWebModelUtils").prop(!1),c.realProgress=d("WAWebModelUtils").prop(null),c.fakeProgress=d("WAWebModelUtils").prop(0),c.remainingPausedSeconds=d("WAWebModelUtils").prop(d("WAWebUserPrefsHistorySync").getHistorySyncRemainingPausedSeconds()),c._fakePausedCompletionTimeout=d("WAWebModelUtils").prop(),c._progressIncrementTimeout=d("WAWebModelUtils").prop(),c._lastUpdateSeconds=d("WAWebModelUtils").prop(d("WATimeUtils").unixTime()),a)||babelHelpers.assertThisInitialized(c)}var c=a.prototype;c.init=function(){this.remainingPausedSeconds!=null&&this.remainingPausedSeconds>0&&this.pausedExpiryCheckpoint(0)};c.setPaused=function(a){var b=this;if(a){if(d("WAWebHistorySyncProgressGetters").getPaused(this))return;d("WAWebUserPrefsHistorySync").setHistorySyncRemainingPausedSeconds(l);this.remainingPausedSeconds=l;self.setTimeout(function(){return b.pausedExpiryCheckpoint(m)},m*1e3);return}d("WAWebUserPrefsHistorySync").setHistorySyncRemainingPausedSeconds(null);this.remainingPausedSeconds=null};c.pausedExpiryCheckpoint=function(a){var b=this;self.clearTimeout(this._fakePausedCompletionTimeout);var c=this.remainingPausedSeconds;d("WALogger").DEV(k(),c);if(c==null)return;c=c-a;d("WALogger").DEV(j(),c);d("WAWebUserPrefsHistorySync").setHistorySyncRemainingPausedSeconds(c);this.remainingPausedSeconds=c;if(c<=0){d("WALogger").ERROR(i(),l);return}self.setTimeout(function(){return b.pausedExpiryCheckpoint(m)},m*1e3)};c.setProgress=function(a){var b;b=(b=this.realProgress)!=null?b:0;this.realProgress=a;if(a<=b)return;this.fakeProgress=0;self.clearTimeout(this._progressIncrementTimeout);var c=d("WATimeUtils").unixTime();if(a<100){var e=c-this._lastUpdateSeconds,f=a-b,g=e/f;d("WALogger").DEV(h(),b,a,e,Math.max(g,1));this._incrementFakeProgressByOne(Math.max(g,1),Math.min(f,100-a))}this._lastUpdateSeconds=c};c.setIncomplete=function(a){this.incomplete=a};c._incrementFakeProgressByOne=function(a,b){var c=this;this._progressIncrementTimeout!=null&&self.clearTimeout(this._progressIncrementTimeout);if(!d("WAWebHistorySyncProgressGetters").getInProgress(this)||this.fakeProgress+1>=b)return;this._progressIncrementTimeout=self.setTimeout(function(){c.fakeProgress+=1,c._incrementFakeProgressByOne(a,b)},a*1e3)};return a}(d("WAWebBaseModel").BaseModel);n.Proxy="historySyncProgress";var o=null;function a(){if(o==null){var a=new(d("WAWebBaseModel").defineModel(n))();a.init();o=a}return o}g.HistorySyncProgressModel=n;g.getHistorySyncProgressModel=a}),98); __d("useWAWebHistorySyncProgressValues",["WAWebHistorySyncProgressModel","useWAWebCollectionValues"],(function(a,b,c,d,e,f,g){function a(a){return d("useWAWebCollectionValues").useModelGetterValues(d("WAWebHistorySyncProgressModel").getHistorySyncProgressModel(),a)}g.useHistorySyncProgressValues=a}),98); __d("WAWebHistorySyncInProgressPopup.react",["fbt","WAWebConfirmPopup.react","WAWebFaqUrl","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebModal.react","WAWebModalManager","WAWebProgressBar.react","WAWebText_DONOTUSE.react","react","useWAWebHistorySyncProgressValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={body:{fontWeight:"xo1l8bm",fontSize:"x1jchvi3",lineHeight:"x1xet1wb",color:"x19q65qo",$$css:!0}};function a(){var a=d("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([d("WAWebHistorySyncProgressGetters").getProgress]);a=a[0];return j.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{type:d("WAWebModal.react").ModalTheme.HistorySyncProgress,title:d("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_MODAL_TITLE(),cancelText:h._(/*BTDS*/"__JHASH__1X8_VuO9HeO__JHASH__"),onOK:function(){d("WAWebModalManager").ModalManager.close()},onCancel:function(){window.open(d("WAWebFaqUrl").getMessageHistoryOnLinkedDevicesFAQUrl())},children:[j.jsx(l,{progress:a}),j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:k.body,children:d("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_MODAL_TEXT()})]})}a.displayName=a.name+" [from "+f.id+"]";function l(a){a=a.progress;a=a;return j.jsxs(j.Fragment,{children:[j.jsx("div",babelHelpers["extends"]({className:"xz9dl7a xod5an3 x78zum5 xdt5ytf"},{children:a==null?j.jsx(m,{}):j.jsx(c("WAWebProgressBar.react"),{value:a,max:100})})),j.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{color:"dark",size:"12",className:"x1kpxq89 xieb3on",children:a==null?"":d("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_MODAL_PERCENT(a)})]})}l.displayName=l.name+" [from "+f.id+"]";function m(){return j.jsx("div",{className:"x1izncso x7t6ubo xa4qsjk xc0ps8e xgbwgrv xuoj239"})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebHistorySyncComponents.react",["fbt","WAWebChatConstants","WAWebClock","WAWebContentPlaceholder.react","WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebModalManager","WAWebUserPrefsHistorySync","react","useWAWebHistorySyncProgressValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){a=a.chat;a=j.jsx(o,{chat:a,Paused:d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:n,Complete:function(){return h._(/*BTDS*/"__JHASH__O1WixGzLEOv__JHASH__",[h._param("date",m())])}});return j.jsx(c("WAWebContentPlaceholder.react"),{theme:"list",secondary:a})}a.displayName=a.name+" [from "+f.id+"]";function b(){return j.jsx(c("WAWebContentPlaceholder.react"),{theme:"md-chat-search-list",children:j.jsx(o,{Paused:d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:n,Complete:function(){return h._(/*BTDS*/"__JHASH__CA4k90Y6ob3__JHASH__")}})})}b.displayName=b.name+" [from "+f.id+"]";function e(){return j.jsx(o,{Paused:d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:n,Complete:function(){return h._(/*BTDS*/"__JHASH__CA4k90Y6ob3__JHASH__")}})}e.displayName=e.name+" [from "+f.id+"]";function k(){return j.jsx(o,{Paused:d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:n,Complete:function(){return h._(/*BTDS*/"__JHASH__gUX6_7nHBmk__JHASH__",[h._param("date",m())])}})}k.displayName=k.name+" [from "+f.id+"]";function l(){return j.jsx(c("WAWebContentPlaceholder.react"),{theme:"md-chat-search-list",children:j.jsx(o,{Paused:d("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:n,Complete:function(){return h._(/*BTDS*/"__JHASH__EJsrT1JaFHE__JHASH__",[h._param("date",m())])}})})}l.displayName=l.name+" [from "+f.id+"]";function m(){return d("WAWebClock").Clock.relativeDateStr(d("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate())}function n(){return d("WAWebHistorySyncUIText").SYNC_IN_PROGRESS_CONTEXTUAL_DRAWER(function(){d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebHistorySyncInProgressPopup.react"),{}))})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=d("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([d("WAWebHistorySyncProgressGetters").getPaused,d("WAWebHistorySyncProgressGetters").getInProgress]),c=b[0];b=b[1];if(a.chat&&a.chat.endOfHistoryTransferType===d("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY)return null;var e=a.InProgress,f=a.Paused;a=a.Complete;return b?c?j.jsx(f,{}):j.jsx(e,{}):j.jsx(a,{})}o.displayName=o.name+" [from "+f.id+"]";g.HistorySyncGalleryPlaceholder=a;g.HistorySyncSearchIncompletePlaceholder=b;g.HistorySyncStarredMsgsPlaceholderText=e;g.HistorySyncChatStarredMsgsPlaceholderText=k;g.HistorySyncChatSearchIncompletePlaceholder=l}),226); __d("WAWebCommandPaletteUtils",[],(function(a,b,c,d,e,f){var g=!1;a=function(a){g=a};b=function(){return g};f.setIsCommandPaletteOpen=a;f.isCommandPaletteOpen=b}),66); __d("WAWebNewChatFlowLoadable",["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")("WAWebNewChatFlow.react").__setRef("WAWebNewChatFlowLoadable").load());return a}),"NewChatFlow");d=c("react-loadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.requireBundle=a;g.NewChatFlowLoadable=d}),98); __d("WAWebNewGroupFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(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")("WAWebNewGroupFlow.react").__setRef("WAWebNewGroupFlowLoadable").load());return a.NewGroupFlow}),"NewGroupFlow");d=c("WAWebLoadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.requireBundle=a;g.NewGroupFlowLoadable=d}),98); __d("WAWebPasscodeModalStyles",[],(function(a,b,c,d,e,f,g){a={container:{paddingTop:"x1p5oq8j",paddingEnd:"x11eofan",paddingBottom:"xwxc41k",paddingStart:"x12wi22r",width:"x1l2rt3b",backgroundColor:"x1v8jjaa",$$css:!0},titleText:{lineHeight:"x1u7k74",$$css:!0},bottomSpacing:{marginBottom:"xui9b5u",$$css:!0},errorText:{height:"x1qx5ct2",lineHeight:"xcgms0a",$$css:!0},passcodeMessage:{minHeight:"x879a55",marginBottom:"xieb3on",$$css:!0}};b=a.container;c=a.titleText;d=a.bottomSpacing;e=a.errorText;f=a.passcodeMessage;g.container=b;g.titleText=c;g.bottomSpacing=d;g.errorText=e;g.passcodeMessage=f}),98); __d("WAWebPasscodeRemoval.react",["fbt","WAPromiseDelays","WAWebABProps","WAWebButton.react","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebPasscodeModalStyles","WAWebPasswordInput.react","WAWebScreenLockErrorMessages","WAWebSocketModel","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUserPrefsInfoStore","WAWebUserPrefsScreenLock","asyncToGeneratorRuntime","react","stylex","useWAWebPersistentCounterAsync"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useState,n={description:{lineHeight:"x1xet1wb",$$css:!0}};function a(a){var e=a.onSubmit;a=m("");var f=a[0],g=a[1];a=m(null);var i=a[0],k=a[1];a=m(!1);var o=a[0],p=a[1];a=m(!1);var q=a[0],r=a[1];a=c("useWAWebPersistentCounterAsync")(d("WAWebUserPrefsScreenLock").getScreenUnlockTryCount,d("WAWebUserPrefsScreenLock").setScreenUnlockTryCount);var s=a[0],t=s.count,u=s.loading;s=s.error;var v=a[1],w=a[2];t=(a=t)!=null?a:0;a=t>=d("WAWebABProps").getABPropConfigValue("web_screen_lock_max_retries");a&&d("WAWebSocketModel").Socket.logout();t=t+1===d("WAWebABProps").getABPropConfigValue("web_screen_lock_max_retries");var x=function(a){g(a.currentTarget.value)},y=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){r(!0);if(f===""){k(!0);r(!1);return}k(!1);var a=(yield d("WAWebUserPrefsInfoStore").waNoiseInfo.removeLockOnNoiseInfo(f));yield d("WAPromiseDelays").delayMs(400);a?(w(),d("WAWebModalManager").ModalManager.close(),e()):(v(),p(!0));r(!1)});return function(){return a.apply(this,arguments)}}(),z=function(a){a.key==="Enter"&&void y()};return l.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Flex,testid:void 0,children:l.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebPasscodeModalStyles").container),{children:[l.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{size:"20",weight:"medium",xstyle:[d("WAWebPasscodeModalStyles").titleText,d("WAWebUISpacing").uiMargin.bottom12],children:h._(/*BTDS*/"__JHASH__TuSS-Ag-TNa__JHASH__")}),l.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",xstyle:[n.description,d("WAWebUISpacing").uiMargin.bottom20],children:h._(/*BTDS*/"__JHASH__WHLbivSA1vb__JHASH__")}),l.jsxs(c("WAWebFlexItem.react"),{xstyle:d("WAWebPasscodeModalStyles").bottomSpacing,children:[l.jsx(c("WAWebPasswordInput.react"),{value:f,onChange:x,onKeyDown:z,placeholder:h._(/*BTDS*/"__JHASH__VhuaFPct4Ec__JHASH__").toString(),focusOnMount:!0,enableShowPassword:!0,testid:void 0}),l.jsx(d("WAWebText_DONOTUSE.react").Text,{as:"div",size:"13",color:"danger",xstyle:[d("WAWebPasscodeModalStyles").errorText,d("WAWebUISpacing").uiMargin.top4],extras:{role:"alert"},children:d("WAWebScreenLockErrorMessages").getErrorMessage({emptyInputEntered:i,incorrectPasscode:o,onlyOneTryRemaining:t,triesExceeded:a})})]}),l.jsxs(d("WAWebFlex.react").FlexRow,{justify:"end",children:[l.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiMargin.end4,children:l.jsx(d("WAWebButton.react").Button,{type:"secondary",onClick:function(){return d("WAWebModalManager").ModalManager.close()},testid:void 0,buttonType:"button",children:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__")})}),l.jsx(c("WAWebFlexItem.react"),{children:l.jsx(d("WAWebButton.react").Button,{type:"primary",onClick:function(){void y()},disabled:q||a||u||s!=null,spinner:q,testid:void 0,buttonType:"submit",children:c("WAWebFbtCommon")("OK")})})]})]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebPasscodeSetup.react",["fbt","WALogger","WAPromiseDelays","WAWebButton.react","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebPasscodeModalStyles","WAWebPasswordInput.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUserPrefsInfoStore","asyncToGeneratorRuntime","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["App Lock: Something went wrong with locking the noise info."]);l=function(){return a};return a}var m=k||c("react"),n=(i||(i=d("react"))).useState,o=6,p=128,q="^[ -~]{"+o+","+p+"}$";function r(a,b){var c="";if(a.length<o||a.length>p){c=h._(/*BTDS*/"__JHASH__DJWuJ64MOle__JHASH__",[h._param("minimum_length",String(o)),h._param("maximum_length",String(p))]).toString();return{valid:!1,errorMessage:c}}else if(a.match(q)==null){c=h._(/*BTDS*/"__JHASH__tW54jP6MXeD__JHASH__").toString();return{valid:!1,errorMessage:c}}return b!==""?s(a,b):{valid:!0,errorMessage:c}}function s(a,b){var c="";if(a!==b){c=h._(/*BTDS*/"__JHASH__LnN7vJiOY1x__JHASH__").toString();return{valid:!1,errorMessage:c}}return{valid:!0,errorMessage:c}}function a(a){var e=a.onSubmit;a=n("");var f=a[0],g=a[1];a=n("");var i=a[0],k=a[1];a=n("");var q=a[0],t=a[1];a=n(!1);var u=a[0],v=a[1],w=function(a,b){a===""&&b===""&&t("")};a=function(a){g(a.currentTarget.value),w(a.currentTarget.value,i)};var x=function(a){k(a.currentTarget.value),w(a.currentTarget.value,f)},y=function(a){if(a.currentTarget.value==="")return;a=r(f,i);t(a.errorMessage)},z=function(a){if(a.currentTarget.value==="")return;a=s(f,i);q===""&&t(a.errorMessage)},A=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=r(f,i),b=s(f,i);t(a.errorMessage||b.errorMessage);if(!a.valid||!b.valid)return;v(!0);a=(yield d("WAWebUserPrefsInfoStore").waNoiseInfo.lockNoiseInfo(i));yield d("WAPromiseDelays").delayMs(400);a?(d("WAWebModalManager").ModalManager.close(),e()):d("WALogger").DEV(l());v(!1)});return function(){return a.apply(this,arguments)}}(),B=h._(/*BTDS*/"__JHASH__cexLPr5Y9BS__JHASH__",[h._param("mininum_passcode_length",o),h._param("maximum_passcode_length",p)]);return m.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Flex,testid:void 0,children:m.jsxs("form",babelHelpers["extends"]({method:"dialog"},(j||(j=c("stylex"))).props(d("WAWebPasscodeModalStyles").container),{onSubmit:A,children:[m.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{size:"20",weight:"medium",xstyle:[d("WAWebPasscodeModalStyles").titleText,d("WAWebUISpacing").uiMargin.bottom12],children:h._(/*BTDS*/"__JHASH__XqNPWGDHQmV__JHASH__")}),m.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiMargin.bottom8,children:m.jsx(c("WAWebPasswordInput.react"),{value:f,onChange:a,onBlur:y,required:!0,placeholder:h._(/*BTDS*/"__JHASH__nR7M_CESaV5__JHASH__").toString(),focusOnMount:!0,testid:void 0})}),m.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiMargin.bottom8,children:m.jsx(c("WAWebPasswordInput.react"),{value:i,onChange:x,onBlur:z,title:q,required:!0,placeholder:h._(/*BTDS*/"__JHASH__7uuywhOSe1L__JHASH__").toString(),testid:void 0})}),m.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{color:q?"danger":"secondary",xstyle:[d("WAWebPasscodeModalStyles").bottomSpacing,d("WAWebPasscodeModalStyles").passcodeMessage],testid:void 0,extras:q?{role:"alert"}:{},children:q?q:B}),m.jsxs(d("WAWebFlex.react").FlexRow,{justify:"end",children:[m.jsx(c("WAWebFlexItem.react"),{xstyle:d("WAWebUISpacing").uiMargin.end4,children:m.jsx(d("WAWebButton.react").Button,{type:"secondary",onClick:function(){return d("WAWebModalManager").ModalManager.close()},testid:void 0,buttonType:"button",children:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__")})}),m.jsx(c("WAWebFlexItem.react"),{children:m.jsx(d("WAWebButton.react").Button,{type:"primary",onClick:A,disabled:u,spinner:u,testid:void 0,buttonType:"submit",children:c("WAWebFbtCommon")("OK")})})]})]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebScreenLockTimerOptions",["fbt","WALogger","WANullthrows","WATimeUtils","WAWebUserPrefsScreenLock"],(function(a,b,c,d,e,f,g,h){function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["App lock auto lock option "," does not exist"]);i=function(){return a};return a}var j=15*d("WATimeUtils").MINUTE_SECONDS;function k(){return[{value:d("WATimeUtils").MINUTE_SECONDS,label:h._(/*BTDS*/"__JHASH__wNSFolgT9iL__JHASH__"),summaryText:h._(/*BTDS*/"__JHASH__Eaui-8vnDPX__JHASH__")},{value:j,label:h._(/*BTDS*/"__JHASH__ZXoYAIMPYeL__JHASH__"),summaryText:h._(/*BTDS*/"__JHASH__KL0b1jxOmOe__JHASH__")},{value:d("WATimeUtils").HOUR_SECONDS,label:h._(/*BTDS*/"__JHASH__mMtjdvpodKF__JHASH__"),summaryText:h._(/*BTDS*/"__JHASH__shyAMsRoKTn__JHASH__")},{value:8*d("WATimeUtils").HOUR_SECONDS,label:h._(/*BTDS*/"__JHASH__UYzWs3TYuYK__JHASH__"),summaryText:h._(/*BTDS*/"__JHASH__vBpD7Tj6mdi__JHASH__")}]}function a(a){var b;if(a===0)return h._(/*BTDS*/"__JHASH__6GMU-ZDjkof__JHASH__");b=(b=k().find(function(b){return b.value===a}))==null?void 0:b.summaryText;if(b!=null)return b;d("WALogger").WARN(i(),a);d("WAWebUserPrefsScreenLock").setScreenLockDurationInSeconds(j);return c("WANullthrows")((b=k().find(function(a){return a.value===j}))==null?void 0:b.summaryText)}g.DEFAULT_SCREEN_LOCK_DURATION_SECONDS=j;g.getScreenLockTimerOptions=k;g.getScreenLockAutoTimerLabelForSummary=a}),226); __d("WAWebScreenLockDrawer.react",["fbt","WAWebABProps","WAWebCheckBoxRound.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebModalManager","WAWebPasscodeRemoval.react","WAWebPasscodeSetup.react","WAWebScreenLockTimerOptions","WAWebSettingsCheckList.react","WAWebSubscribePushManagerAction","WAWebText.react","WAWebUserPrefsScreenLock","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var b=a.onBack,e=a.onCancel;a=a.ref;var f=l(function(){return d("WAWebUserPrefsScreenLock").getScreenLockDurationInSeconds()}),g=f[0],i=f[1];f=l(function(){return d("WAWebUserPrefsScreenLock").getScreenLockEnabled()});var j=f[0],m=f[1],n=function(a){d("WAWebUserPrefsScreenLock").setScreenLockDurationInSeconds(a),i(a),m(a!==0),void d("WAWebSubscribePushManagerAction").updatePushManager()},o=function(a){if(g>0&&a>0){n(a);return}a===0?d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebPasscodeRemoval.react"),{onSubmit:function(){return n(a)}})):d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebPasscodeSetup.react"),{onSubmit:function(){return n(a)}}))};f=function(){j?d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebPasscodeRemoval.react"),{onSubmit:function(){return n(0)}})):d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebPasscodeSetup.react"),{onSubmit:function(){return n(d("WAWebScreenLockTimerOptions").DEFAULT_SCREEN_LOCK_DURATION_SECONDS)}}))};var p=h._(/*BTDS*/"__JHASH__LT73AetPvgv__JHASH__"),q=h._(/*BTDS*/"__JHASH__p-Ejfn9i-1J__JHASH__"),r=c("WAWebEnvironment").isWindows?h._(/*BTDS*/"__JHASH__rR5oy8I-euv__JHASH__"):h._(/*BTDS*/"__JHASH__AZo_k4m04Ib__JHASH__"),s=j&&d("WAWebScreenLockTimerOptions").getScreenLockTimerOptions().map(function(a){var b=a.value;a=a.label;return k.jsx(c("WAWebDrawerItem.react"),{title:a,tabIndex:-1,icon:k.jsx("div",{children:k.jsx(c("WAWebCheckBoxRound.react"),{testid:void 0,checked:b===g,radio:!0,hover:!1,systemUncheckedColor:!0,onChange:function(){return o(b)}},b)}),isLastItem:!0,testid:void 0},b)}),t=d("WAWebABProps").getABPropConfigValue("web_abprop_screen_lock_show_learn_more_link")&&k.jsxs(k.Fragment,{children:[" ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getScreenLockLearnMoreUrl(),children:h._(/*BTDS*/"__JHASH__3-X2Ncl5Vp4__JHASH__")})," "]});return k.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__sf9JNt-Lqh6__JHASH__"),onBack:b,onCancel:e,focusBackOrCancel:!0,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding",animation:!1,children:[k.jsx(d("WAWebText.react").WAWebTextSectionTitle,{margin:[8,0,32,0],as:"h2",children:p}),k.jsxs(d("WAWebText.react").WAWebTextMuted,{marginBottom:24,children:[r,t]}),k.jsx(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"screen-lock-setting-checkbox",checked:j,checkboxRightAligned:!0,onChange:f,children:q}),s]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebKeyboardRun",["fbt","WALogger","WAWebActions","WAWebChatCollection","WAWebCmd","WAWebCommandPaletteUtils","WAWebComposeBoxActions","WAWebComposeBoxPanelTypes","WAWebConfirmPopup.react","WAWebConnModel","WAWebContactCollection","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebLockScreenResolver","WAWebModalManager","WAWebMsgCollection","WAWebMuteGetters","WAWebNavBarTypes","WAWebNewChatFlowLoadable","WAWebNewGroupFlowLoadable","WAWebNewsletterCollection","WAWebNewsletterGatingUtils","WAWebNoop","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebScreenLockDrawer.react","WAWebSendLogsPopupLoadable","WAWebSettingsFlowLoadable","WAWebSocketModel","WAWebTextStatusCollection","WAWebThemeContext","WAWebUserPrefsGeneral","WAWebUserPrefsMeUser","WAWebUserPrefsScreenLock","asyncToGeneratorRuntime","cr:13920","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["Keyboard: user inputs logout"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["keyboard:error occurred running action ","."]);k=function(){return a};return a}var l=i||c("react");function m(a){switch(a){case d("WAWebActions").Action.OPEN_NTH_CHAT:return c("WAWebNoop");case d("WAWebActions").Action.CONTACT_US:return C;case d("WAWebActions").Action.GO_TO_NEXT_CHAT:return A;case d("WAWebActions").Action.GO_TO_PREV_CHAT:return B;case d("WAWebActions").Action.CLOSE_CHAT:return r;case d("WAWebActions").Action.LOGOUT:return s;case d("WAWebActions").Action.OPEN_NEW_CHAT:return o;case d("WAWebActions").Action.OPEN_NEW_GROUP:return p;case d("WAWebActions").Action.OPEN_PROFILE:return q;case d("WAWebActions").Action.OPEN_SETTINGS:return n;case d("WAWebActions").Action.SEARCH:return t;case d("WAWebActions").Action.SEARCH_IN_CHAT:return z;case d("WAWebActions").Action.TOGGLE_ARCHIVE:return u;case d("WAWebActions").Action.TOGGLE_MUTE:return v;case d("WAWebActions").Action.TOGGLE_PIN:return w;case d("WAWebActions").Action.TOGGLE_UNREAD:return x;case d("WAWebActions").Action.TOGGLE_THEME:return y;case d("WAWebActions").Action.OPEN_EMOJI_PANEL:return D;case d("WAWebActions").Action.OPEN_GIF_PANEL:return P;case d("WAWebActions").Action.OPEN_STICKER_PANEL:return Q;case d("WAWebActions").Action.TOGGLE_STICKER_MAKER:return S;case d("WAWebActions").Action.TOGGLE_COMMAND_PALETTE:return T;case d("WAWebActions").Action.LOCK_SCREEN:return U;case d("WAWebActions").Action.ZOOM_IN:return V();case d("WAWebActions").Action.ZOOM_OUT:return W();case d("WAWebActions").Action.ZOOM_RESET:return X();case d("WAWebActions").Action.INCREASE_PTT_SPEED:case d("WAWebActions").Action.DECREASE_PTT_SPEED:case d("WAWebActions").Action.TOGGLE_BOLD:case d("WAWebActions").Action.TOGGLE_ITALIC:case d("WAWebActions").Action.TOGGLE_STRIKETHROUGH:case d("WAWebActions").Action.TOGGLE_CODE:case d("WAWebActions").Action.TOGGLE_INLINE_CODE:case d("WAWebActions").Action.TOGGLE_NUMBERED_LIST:case d("WAWebActions").Action.TOGGLE_BULLETED_LIST:case d("WAWebActions").Action.TOGGLE_QUOTE:return null;case d("WAWebActions").Action.OPEN_CHAT_INFO:return E();case d("WAWebActions").Action.BLOCK_CHAT:return F();case d("WAWebActions").Action.REPLY:return G();case d("WAWebActions").Action.REPLY_PRIVATE:return H();case d("WAWebActions").Action.FORWARD:return I();case d("WAWebActions").Action.STAR_MESSAGE:return J();case d("WAWebActions").Action.OPEN:return c("WAWebNoop")();case d("WAWebActions").Action.OPEN_ATTACHMENT_DROPDOWN:return R();case d("WAWebActions").Action.START_PTT_RECORDING:return M();case d("WAWebActions").Action.PAUSE_PTT_RECORDING:return N();case d("WAWebActions").Action.SEND_PTT:return O();case d("WAWebActions").Action.DELETE_SELECTED_MESSAGE:return K();case d("WAWebActions").Action.EDIT_LAST_MESSAGE:return L()}}function a(a){var b=m(a);if(!b)return;try{b(),a!==d("WAWebActions").Action.TOGGLE_COMMAND_PALETTE&&d("WAWebCmd").Cmd.closeCommandPalette()}catch(b){d("WALogger").WARN(k(),a).devConsole(b)}}function n(){d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(a){a&&d("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}))})}function o(){d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(a){a&&d("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE})})}function p(){d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(a){a&&d("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),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)}}()}))})}function q(){d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(a){a&&d("WAWebDrawerManager").DrawerManager.closeDrawerLeft();a=d("WAWebUserPrefsMeUser").getMeUser();var b=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(a),c=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(a);a=d("WAWebContactCollection").ContactCollection.assertGet(a);d("WAWebCmd").Cmd.closeActiveChat();d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:b,profilePicThumb:c,contact:a,conn:d("WAWebConnModel").Conn,onClose:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},isInitialStep:!0}),{focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0});d("WAWebCmd").Cmd.setActiveNavBarItem(d("WAWebNavBarTypes").NavBarItems.Profile)})}function r(){var a=d("WAWebChatCollection").ChatCollection.getActive();if(a)d("WAWebCmd").Cmd.closeChat(a);else if(d("WAWebNewsletterGatingUtils").isNewsletterEnabled()){a=c("WAWebNewsletterCollection")==null?void 0:c("WAWebNewsletterCollection").getActive();a&&d("WAWebCmd").Cmd.closeChat(a)}}function s(){if(!d("WAWebMsgCollection").MsgCollection.hasUnsentMessages())return d("WAWebSocketModel").Socket.logout();d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__KnrxUp8npsr__JHASH__"),onOK:function(){d("WALogger").LOG(j()),d("WAWebSocketModel").Socket.logout()},okText:h._(/*BTDS*/"__JHASH__3n1bF_cZdZK__JHASH__"),onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),children:h._(/*BTDS*/"__JHASH__xiQMrcGTdr2__JHASH__")}))}function t(){d("WAWebCmd").Cmd.focusChatSearch()}function u(){var a=d("WAWebChatCollection").ChatCollection.getActive();if(a&&a.canArchive()){var b=a.archive;d("WAWebCmd").Cmd.archiveChat(a,!b)}}function v(){var a=d("WAWebChatCollection").ChatCollection.getActive();if(a&&a.mute.canMute()){var b=d("WAWebMuteGetters").getIsMuted(a.mute);d("WAWebCmd").Cmd.muteChat(a,!b)}}function w(){var a=d("WAWebChatCollection").ChatCollection.getActive();if(a&&(a.pin!=null||d("WAWebChatCollection").ChatCollection.filter(function(a){return a.pin}).length<3)){var b=Boolean(a.pin);d("WAWebCmd").Cmd.pinChat(a,!b)}}function x(){var a=d("WAWebChatCollection").ChatCollection.getActive();if(a){var b=a.markedUnread;d("WAWebCmd").Cmd.markChatUnread(a,!b)}}function y(){}function z(){var a=d("WAWebChatCollection").ChatCollection.getActive();a&&d("WAWebCmd").Cmd.chatSearch(a)}function A(){d("WAWebCmd").Cmd.focusNextChat(!0)}function B(){d("WAWebCmd").Cmd.focusPrevChat(!0)}function C(){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebSendLogsPopupLoadable").SendLogsPopupLoadable,{}))}function D(){d("WAWebCmd").Cmd.openComposeBoxExpressionPanel(d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.EMOJI)}function E(){d("WAWebCmd").Cmd.openCurrentChatInfo()}function F(){d("WAWebCmd").Cmd.blockCurrentChat()}function G(){d("WAWebCmd").Cmd.replyCurrentMessage()}function H(){d("WAWebCmd").Cmd.replyCurrentMessagePrivate()}function I(){d("WAWebCmd").Cmd.forwardCurrentMessage()}function J(){d("WAWebCmd").Cmd.starCurrentMessage()}function K(){d("WAWebCmd").Cmd.deleteSelectedMessage()}function L(){}function M(){d("WAWebCmd").Cmd.startPttRecording()}function N(){d("WAWebCmd").Cmd.pausePttRecording()}function O(){d("WAWebCmd").Cmd.sendPttRecording()}function P(){d("WAWebCmd").Cmd.openComposeBoxExpressionPanel(d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.GIF)}function Q(){d("WAWebCmd").Cmd.openComposeBoxExpressionPanel(d("WAWebComposeBoxPanelTypes").ComposeBoxExpressionPanel.STICKER)}function R(){d("WAWebComposeBoxActions").ComposeBoxActions.hasText()||d("WAWebCmd").Cmd.openAttachmentDropdown()}function S(){d("WAWebCmd").Cmd.toggleStickerMaker()}function T(){!d("WAWebCommandPaletteUtils").isCommandPaletteOpen()?d("WAWebCmd").Cmd.openCommandPalette():d("WAWebCmd").Cmd.closeCommandPalette()}function U(){d("WAWebUserPrefsScreenLock").getScreenLockEnabled()?void d("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow():d("WAWebDrawerManager").DrawerManager.openDrawerLeft(l.jsx(c("WAWebScreenLockDrawer.react"),{onCancel:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}))}function V(){b("cr:13920")==null?void 0:b("cr:13920").trigger("requestZoomIn")}function W(){b("cr:13920")==null?void 0:b("cr:13920").trigger("requestZoomOut")}function X(){b("cr:13920")==null?void 0:b("cr:13920").trigger("requestZoomReset")}g["default"]=a}),226); __d("WAWebOfflineResumeProgressToastbar.react",["fbt","WAWebBox.react","WAWebCmd","WAWebFlex.react","WAWebOfflineHandler","WAWebProgressBar.react","WAWebText.react","WAWebToastbar.react","WAWebUISpacing","react","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={wrapper:{minHeight:"x122xwht",justifyContent:"xl56j7k",$$css:!0},progressWrapper:{position:"x10l6tqk",width:"xh8yej3",top:"x13vifvy",start:"x17qophe",left:null,right:null,display:"x78zum5",$$css:!0},textWrapper:{textAlign:"x2b8uid",$$css:!0},textTitle:{fontSize:"x1pg5gke",$$css:!0},textProgress:{fontSize:"x1ncwhqj",$$css:!0}};function a(){var a=c("useWAWebEventTargetValue")(d("WAWebCmd").Cmd,"offline_progress_update",function(){return[d("WAWebOfflineHandler").OfflineMessageHandler.getOfflineDeliveryProgress(),d("WAWebOfflineHandler").OfflineMessageHandler.getOfflineMessageCount()]},[]),b=a[0];a=a[1];return j.jsxs(d("WAWebToastbar.react").WAWebToastbar,{wrapperXstyle:[d("WAWebUISpacing").uiPadding.all0,k.wrapper],children:[j.jsx(d("WAWebBox.react").Box,{xstyle:k.progressWrapper,children:j.jsx(c("WAWebProgressBar.react"),{value:b,className:"x150wa6m x36qwtl"})}),j.jsxs(d("WAWebFlex.react").FlexItem,{xstyle:k.textWrapper,children:[j.jsx(d("WAWebText.react").WAWebTextMuted,{xstyle:k.textTitle,children:h._(/*BTDS*/"__JHASH__Bi1iFFuvujD__JHASH__")}),j.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:k.textProgress,children:h._(/*BTDS*/"__JHASH__v9JQAJf7xRQ__JHASH__",[h._param("processed-messages",Math.floor(b/100*a),[0]),h._param("total-messages",a,[0]),h._plural(a)])})]})]})}a.displayName=a.name+" [from "+f.id+"]";g.WAWebOfflineResumeProgressToastbar=a}),226); __d("WAWebPttCalculateAudioProgress",["WAWebPttGetDurationFromMediaOrProtobuf","WAWebPttGetSafeDuration","clamp"],(function(a,b,c,d,e,f,g){function a(a,b){var e=a.currentTime;b=b?d("WAWebPttGetDurationFromMediaOrProtobuf").getDurationFromMediaOrProtobuf(a,b):d("WAWebPttGetSafeDuration").getSafeDuration(a);return b==null||b===0?0:c("clamp")(e/b,0,1)}g.calculateAudioProgress=a}),98); __d("WAWebPttButton.react",["WANullthrows","WAWebFocusTracer","WAWebTabOrder","WAWebUIRefreshGatingUtils","WDSFocusStateStyles","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j;e=j||d("react");var k=h||(h=c("react")),l=e.useImperativeHandle,m=e.useRef;function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.testid;e=a.ariaLabel;var f=a.children,g=a.xstyle,h=a.confirmOnMouseUp,j=a.disabled,n=a.onConfirm;a=a.dataTab;var o=m(null);l(b,function(){return{focus:function(){return c("WAWebFocusTracer").focus(c("WANullthrows")(o.current))},getButtonRef:function(){return o.current}}});var p=m(!1),q,r,s;j!==!0&&(r=function(a){p.current=!0,window.addEventListener("mouseup",function(){p.current=!1},{once:!0})},q=function(a){if(!h)return;if(p.current)return;a.button===0&&n(a)},s=n);b=[g,d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&d("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus];return k.jsx("button",babelHelpers["extends"]({ref:o,"data-testid":void 0,"data-tab":(g=a)!=null?g:d("WAWebTabOrder").TAB_ORDER.PTT_BUTTON},(i||(i=c("stylex"))).props(b),{onClick:s,onMouseUp:q,onMouseDown:r,"aria-label":e,"aria-disabled":j,children:f}))}a.displayName=a.name+" [from "+f.id+"]";var n={svg:{position:"x1n2onr6",$$css:!0}};function b(a){var b=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle"]);b=(i||(i=c("stylex")))(n.svg,b);return k.jsx("svg",babelHelpers["extends"]({},a,{className:b}))}b.displayName=b.name+" [from "+f.id+"]";g.PttButton=a;g.pttSvgStyles=n;g.PttSvg=b}),98); __d("WAWebPttCloseButton.react",["fbt","WAWebPttButton.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={base:{width:"x1kky2od",height:"xmix8c7",$$css:!0},outOfChat:{width:"x1n7h9c3",height:"x1s1d1n7",marginStart:"x8j4wrb",marginTop:"xvijh9v",display:"x78zum5",justifyContent:"xl56j7k",alignItems:"x6s0dn4",color:"xh4mkqi",$$css:!0},outOfChatEnabled:{":hover_opacity":"x5z6fxw",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=a.onConfirm,e=a.dataTab,f=a.theme;a=a.disabled;a=a===void 0?!1:a;f=f==="out-of-chat-playback";return j.jsx(d("WAWebPttButton.react").PttButton,{ref:b,xstyle:[k.base,f&&k.outOfChat,f&&!a&&k.outOfChatEnabled],testid:void 0,onConfirm:c,confirmOnMouseUp:!1,dataTab:e,disabled:a,ariaLabel:h._(/*BTDS*/"__JHASH__yyAuhKeX4JG__JHASH__"),children:j.jsx(d("WAWebPttButton.react").PttSvg,{width:"15.6",height:"15.6",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:j.jsx("path",{d:"M15.8002 1.80001L14.2002 0.200012L8.0002 6.40001L1.8002 0.200012L0.200195 1.80001L6.4002 8.00001L0.200195 14.2L1.8002 15.8L8.0002 9.60001L14.2002 15.8L15.8002 14.2L9.6002 8.00001L15.8002 1.80001Z",fill:"white"})})})}a.displayName=a.name+" [from "+f.id+"]";g.PttCloseButton=a}),226); __d("WAWebPttDailyUtils",["$InternalEnum","WAWebChatFlowTypes","WAWebDailyAggregatedStatsCollection","WAWebNewsletterGatingUtils","err"],(function(a,b,c,d,e,f,g){var h=b("$InternalEnum").Mirrored(["CANCEL","SEND","RECORD","DRAFT_REVIEW","PLAYBACK","FAST_PLAYBACK","PAUSED_RECORD","OOC_PLAYBACK"]);function a(a,b){var e=d("WAWebDailyAggregatedStatsCollection").DailyAggregatedStatsCollection.gaddForToday();switch(b){case d("WAWebChatFlowTypes").ChatKindType.Chat:if(a===h.CANCEL)e.pttCancelIndividual++;else if(a===h.SEND)e.pttSendIndividual++;else if(a===h.RECORD)e.pttRecordIndividual++;else if(a===h.DRAFT_REVIEW)e.pttDraftReviewIndividual++;else if(a===h.PLAYBACK)e.pttPlaybackIndividual++;else if(a===h.FAST_PLAYBACK)e.pttFastplaybackIndividual++;else if(a===h.PAUSED_RECORD)e.pttPausedRecordIndividual++;else if(a===h.OOC_PLAYBACK)e.pttOutOfChatIndividual++;else throw c("err")("Invalid count kind "+a);break;case d("WAWebChatFlowTypes").ChatKindType.Group:if(a===h.CANCEL)e.pttCancelGroup++;else if(a===h.SEND)e.pttSendGroup++;else if(a===h.RECORD)e.pttRecordGroup++;else if(a===h.DRAFT_REVIEW)e.pttDraftReviewGroup++;else if(a===h.PLAYBACK)e.pttPlaybackGroup++;else if(a===h.FAST_PLAYBACK)e.pttFastplaybackGroup++;else if(a===h.PAUSED_RECORD)e.pttPausedRecordGroup++;else if(a===h.OOC_PLAYBACK)e.pttOutOfChatGroup++;else throw c("err")("Invalid count kind "+a);break;case d("WAWebChatFlowTypes").ChatKindType.Broadcast:if(a===h.CANCEL)e.pttCancelBroadcast++;else if(a===h.SEND)e.pttSendBroadcast++;else if(a===h.RECORD)e.pttRecordBroadcast++;else if(a===h.DRAFT_REVIEW)e.pttDraftReviewBroadcast++;else if(a===h.PLAYBACK)e.pttPlaybackBroadcast++;else if(a===h.FAST_PLAYBACK)e.pttFastplaybackBroadcast++;else if(a===h.PAUSED_RECORD)e.pttPausedRecordBroadcast++;else if(a===h.OOC_PLAYBACK)e.pttOutOfChatBroadcast++;else throw c("err")("Invalid count kind "+a);break;case d("WAWebChatFlowTypes").ChatKindType.Community:case d("WAWebChatFlowTypes").ChatKindType.Newsletter:if(!d("WAWebNewsletterGatingUtils").isNewsletterPTTLoggingEnabled())return;if(a===h.CANCEL)e.pttCancelNewsletter++;else if(a===h.SEND)e.pttSendNewsletter++;else if(a===h.RECORD)e.pttRecordNewsletter++;else if(a===h.DRAFT_REVIEW)e.pttDraftReviewNewsletter++;else if(a===h.PLAYBACK)e.pttPlaybackNewsletter++;else if(a===h.FAST_PLAYBACK)e.pttFastplaybackNewsletter++;else if(a===h.PAUSED_RECORD)e.pttPausedRecordNewsletter++;else if(a===h.OOC_PLAYBACK)e.pttOutOfChatNewsletter++;else throw c("err")("Invalid count kind "+a);break}}g.PttDailyCountKind=h;g.incrementPttDailyCount=a}),98); __d("WAWebPttOocMarquee",["WAWebL10N","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.children;return i.jsxs("div",babelHelpers["extends"]({},{0:{className:"x1n2onr6 xeq5yr9 x18ebdri xa4qsjk x1esw782 xhcjfi7"},1:{className:"x1n2onr6 xeq5yr9 x18ebdri xa4qsjk x1esw782 x2xl3gs"}}[!!c("WAWebL10N").isRTL()<<0],{children:[a,i.jsx("span",{className:"x1rg5ohu x1849jeq x5yr21d"}),a,i.jsx("span",{className:"x1rg5ohu x1849jeq x5yr21d"})]}))}a.displayName=a.name+" [from "+f.id+"]";g.OocMarquee=a}),98); __d("WAWebPttPlayPauseButton.react",["fbt","WAWebPttButton.react","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={base:{width:"x1kky2od",height:"xmix8c7",$$css:!0},composeBox:{color:"x3dtpkb",$$css:!0},composeBoxEnabled:{":hover_color":"x1a92kiq",$$css:!0},composeBoxEnabledRefresh:{":hover_color":"x144v4sp",$$css:!0},outOfChat:{width:"x1n7h9c3",height:"x1s1d1n7",marginStart:"x1orzsq4",marginTop:"xvijh9v",display:"x78zum5",justifyContent:"xl56j7k",alignItems:"x6s0dn4",color:"xh4mkqi",$$css:!0},outOfChatEnabled:{":hover_opacity":"x5z6fxw",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=a.paused,e=a.onConfirm,f=a.disabled;f=f===void 0?!1:f;var g=a.theme;a=a.dataTab;var i=c?j.jsx(d("WAWebPttButton.react").PttSvg,babelHelpers["extends"]({xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"18px",viewBox:"0 0 16 18"},{className:"x1nouqcy"},{children:j.jsx("path",{d:"M15.05,8.39,2,.32a1,1,0,0,0-1.53.85V16.83A1,1,0,0,0,2,17.7L15,10.1A1,1,0,0,0,15.05,8.39Z",fill:"currentColor"})})):j.jsxs(d("WAWebPttButton.react").PttSvg,{xmlns:"http://www.w3.org/2000/svg",width:"16px",height:"18px",viewBox:"0 0 16 18",children:[j.jsx("path",{fill:"currentColor",d:"M1.9,1c-0.6,0-1,0.4-1,1v14c0,0.6,0.4,1,1,1H5c0.6,0,1-0.4,1-1V2c0-0.6-0.4-1-1-1H1.9z"}),j.jsx("path",{fill:"currentColor",d:"M10.9,1c-0.6,0-1,0.4-1,1v14c0,0.6,0.4,1,1,1h3.1c0.6,0,1-0.4,1-1V2c0-0.6-0.4-1-1-1H10.9z"})]});return j.jsx(d("WAWebPttButton.react").PttButton,{ref:b,xstyle:[k.base,g==="compose-box"&&k.composeBox,g==="compose-box"&&!f&&k.composeBoxEnabled,g==="compose-box"&&d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()&&k.composeBoxEnabledRefresh,g==="out-of-chat-playback"&&k.outOfChat,g==="out-of-chat-playback"&&!f&&k.outOfChatEnabled],testid:void 0,onConfirm:e,confirmOnMouseUp:!1,disabled:f,dataTab:a,ariaLabel:c?h._(/*BTDS*/"__JHASH__wmHaYL7UPvE__JHASH__"):h._(/*BTDS*/"__JHASH___NG8JgG8AQh__JHASH__"),children:i})}a.displayName=a.name+" [from "+f.id+"]";g.PttPlayPauseButton=a}),226); __d("WAWebPttPrefs",["WAShiftTimer","WAWebBaseModel","WAWebServerPropConstants","WAWebUserPrefsGeneral","clamp"],(function(a,b,c,d,e,f,g){var h=[1,1.5,2];a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g<e;g++)f[g]=arguments[g];return(b=c=a.call.apply(a,[this].concat(f))||this,c.id=d("WAWebBaseModel").prop(),c.playbackRate=d("WAWebBaseModel").prop(1),c.outOfChatPlayerMessage=d("WAWebBaseModel").prop(null),c.playbackControlMessageId=d("WAWebBaseModel").prop(null),c.isOocPlayerClosedByUser=d("WAWebBaseModel").prop(!1),b)||babelHelpers.assertThisInitialized(c)}var e=b.prototype;e.closeOocPlayer=function(){this.isOocPlayerClosedByUser=!0};e.initialize=function(){d("WAWebBaseModel").BaseModel.prototype.initialize.call(this),this._restorePlaybackRate(),this.on("change:playbackRate",function(a,b){d("WAWebUserPrefsGeneral").setPttPlaybackRate(b)})};e.setPlayingMessage=function(a){var b=this;this._setPlayingMessage(a);var c=function(){if(b._playingMessage!==a)return;b._setPlayingMessage(null)};return function(){c==null?void 0:c(),c=null}};e._setPlayingMessage=function(a){var b;this._playingMessage=(b=a)!=null?b:null;a&&(this.outOfChatPlayerMessage=a,this.isOocPlayerClosedByUser=!1);if(this._playingMessage==null){this._scheduleClearPlaybackRateControl();return}i.cancel();this.playbackControlMessageId=(b=this._playingMessage)==null?void 0:b.id.toString()};e._restorePlaybackRate=function(){this.playbackRate=d("WAWebUserPrefsGeneral").getPttPlaybackRate()};e.advancePlaybackRateFor=function(a){this._changePlaybackRateFor(a,1,!0)};e.increasePlaybackRateFor=function(a){this._changePlaybackRateFor(a,1,!1)};e.decreasePlaybackRateFor=function(a){this._changePlaybackRateFor(a,-1,!1)};e._changePlaybackRateFor=function(a,b,d){var e=h.indexOf(this.playbackRate);d=d?(e+b+h.length)%h.length:c("clamp")(e+b,0,h.length-1);this.playbackRate=h[d];this._playingMessage==null&&(this.playbackControlMessageId=a.toString(),this._scheduleClearPlaybackRateControl())};e._scheduleClearPlaybackRateControl=function(){var a=this.playbackControlMessageId;if(a==null)return;i.onOrAfter(d("WAWebServerPropConstants").PTT_PLAYBACK_SPEED_HIDE_DELAY,a)};e.delayClearPlaybackRateControl=function(){if(!i.isScheduled())return;var a=this.playbackControlMessageId;if(a==null)return;i.onOrAfter(d("WAWebServerPropConstants").PTT_PLAYBACK_SPEED_HIDE_DELAY,a)};e.clearOutOfChatMessage=function(a){(a==null||this.outOfChatPlayerMessage===a)&&(this.outOfChatPlayerMessage=null)};return b}(d("WAWebBaseModel").BaseModel);a.Proxy="pttPrefs";var i=new(d("WAShiftTimer").ShiftTimer)(function(a){if(a!==j.playbackControlMessageId)return;j.playbackControlMessageId=null});b=d("WAWebBaseModel").defineModel(a);var j=new b({id:"1"});g.PttPrefs=j}),98); __d("WAWebSendPlayedReceiptJob",["WADeprecatedSendIq","WAWap","WAWebAck","WAWebCommsAckParser","WAWebCommsWapMd","WAWebPrivacySettings","WAWebSchemaMessage","WAWebSendReceiptJobCommon","WAWebUserPrefsGeneral","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(a){if(a.isGroup())return d("WAWebSendReceiptJobCommon").RECEIPT_TYPE.PLAYED;if(a.isNewsletter())return d("WAWebSendReceiptJobCommon").RECEIPT_TYPE.PLAYED_SELF;a=d("WAWebUserPrefsGeneral").getUserPrivacySettings().readReceipts===d("WAWebPrivacySettings").ALL_NONE.none;return a?d("WAWebSendReceiptJobCommon").RECEIPT_TYPE.PLAYED_SELF:d("WAWebSendReceiptJobCommon").RECEIPT_TYPE.PLAYED}function a(a,b){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c=a.broadcastId||b,e=a.id.id,f=c.isUser()?null:a.author;b=h(b);var g=d("WAWap").wap("receipt",{to:d("WAWebCommsWapMd").CHAT_JID(c),type:b,id:d("WAWap").CUSTOM_STRING(e),t:d("WAWap").CUSTOM_STRING(Date.now().toString()),participant:f?d("WAWebCommsWapMd").DEVICE_JID(f):d("WAWap").DROP_ATTR});yield d("WADeprecatedSendIq").deprecatedSendStanzaAndWaitForAck(g,d("WAWebCommsAckParser").toCoreAckTemplate({id:e,"class":"receipt",type:b,from:c,participant:f}));return d("WAWebSchemaMessage").getMessageTable().merge(a.id.toString(),{ack:d("WAWebAck").ACK.PLAYED})});return i.apply(this,arguments)}g["default"]=a}),98); __d("WAWebMsgMarkPlayedBridge",["Promise","WAWebFrontendMsgGetters","WAWebSendPlayedReceiptJob"],(function(a,b,c,d,e,f,g){var h;function a(a){c("WAWebSendPlayedReceiptJob")(a,d("WAWebFrontendMsgGetters").getChat(a).id);return(h||(h=b("Promise"))).resolve()}g["default"]=a}),98); __d("WAWebMarkPlayedMsgAction",["WALogger","WAWebAck","WAWebChatThreadLogging","WAWebMsgGetters","WAWebMsgMarkPlayedBridge","WAWebStateUtils"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Msg:msg should not call sendPlayed"]);h=function(){return a};return a}function a(a){return i(d("WAWebStateUtils").unproxy(a))}function b(a){return j(d("WAWebStateUtils").unproxy(a))}function i(a){j(a)?c("WAWebMsgMarkPlayedBridge")(a).then(function(){a.ack=d("WAWebAck").ACK.PLAYED,a.isViewOnce&&d("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"viewOnceOpen",ts:a.t,chatId:a.id.remote}])}):d("WALogger").LOG(h())}function j(a){if(d("WAWebMsgGetters").getIsSentByMe(a))return!1;return a.ack>=d("WAWebAck").ACK.PLAYED?!1:d("WAWebMsgGetters").getIsAckPlayable(a)||a.isViewOnce}g.markPlayed=a;g.canMarkPlayed=b}),98); __d("WAWebPttIsValidPlaybackSequence",["WAWebFrontendMsgGetters","WAWebMsgGetters"],(function(a,b,c,d,e,f,g){function a(a){var b=a.currentMsg,c=a.nextMsg;a=a.playedBefore;if(d("WAWebFrontendMsgGetters").getAsPttLike(c.unsafe())==null)return!1;if(!d("WAWebMsgGetters").getIsSentByMe(c))return!0;return d("WAWebMsgGetters").getIsSentByMe(b)?!0:Boolean(a)}g.isValidPlaybackSequence=a}),98); __d("WAWebPttFindSequentialMsg",["WAArrayFindNext","WAWebAck","WAWebFrontendMsgGetters","WAWebPttIsValidPlaybackSequence"],(function(a,b,c,d,e,f,g){function a(a){var b=a.id,e=c("WAArrayFindNext")(d("WAWebFrontendMsgGetters").getChat(a.unsafe()).msgs.toArray(),function(a){return b.equals(a.id)});if(!e)return null;e=d("WAWebFrontendMsgGetters").getAsAudio(e)||d("WAWebFrontendMsgGetters").getAsPtt(e);return!e?null:d("WAWebPttIsValidPlaybackSequence").isValidPlaybackSequence({currentMsg:a,nextMsg:e,playedBefore:a.ack===d("WAWebAck").ACK.PLAYED})?e:null}function b(a){var b=a.id;a=c("WAArrayFindNext")(d("WAWebFrontendMsgGetters").getChat(a.unsafe()).msgs.toArray(),function(a){return b.equals(a.id)});return!a?null:d("WAWebFrontendMsgGetters").getAsPtv(a)}g.findSequentialMsg=a;g.findSequentialPtv=b}),98); __d("WAWebWamEnumPttPlaybackSpeedType",[],(function(a,b,c,d,e,f){a=Object.freeze({SPEED_1:0,SPEED_1_5:1,SPEED_2:2});f.PTT_PLAYBACK_SPEED_TYPE=a}),66); __d("WAWebWamEnumPttPlayerType",[],(function(a,b,c,d,e,f){a=Object.freeze({AUDIO_QUEUE:0,AVPLAYER:1,AVAUDIOPLAYER:2,OPUSPLAYER:3,ANDROIDPLAYER:4,EXOPLAYER:5,UWPPLAYER:6,VOIPPLAYER:7});f.PTT_PLAYER_TYPE=a}),66); __d("WAWebWamEnumPttStreamType",[],(function(a,b,c,d,e,f){a=Object.freeze({UNKNOWN:0,AAC:1,MP3:2,AMR_NB:3,AMR_WB:4,OPUS:5,MULTIPLE_TRACKS:6});f.PTT_STREAM_TYPE=a}),66); __d("WAWebWamEnumPttTriggerType",[],(function(a,b,c,d,e,f){a=Object.freeze({MANUAL:0,SEQUENTIAL:1});f.PTT_TRIGGER_TYPE=a}),66); __d("WAWebPttPlaybackWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumPttPlaybackSpeedType","WAWebWamEnumPttPlayerType","WAWebWamEnumPttStreamType","WAWebWamEnumPttTriggerType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({PttPlayback:[2044,{pttDuration:[12,a.TYPES.TIMER],pttMainThreadBlock:[7,a.TYPES.BOOLEAN],pttMiniPlayerClick:[15,a.TYPES.INTEGER],pttMiniPlayerClose:[16,a.TYPES.BOOLEAN],pttMiniPlayerPauseCnt:[17,a.TYPES.INTEGER],pttPlayRequestT:[1,a.TYPES.TIMER],pttPlaybackFailed:[8,a.TYPES.BOOLEAN],pttPlaybackOverallT:[4,a.TYPES.TIMER],pttPlaybackSpeed:[10,d("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE],pttPlaybackSpeedCnt:[11,a.TYPES.INTEGER],pttPlayedOutOfChat:[18,a.TYPES.BOOLEAN],pttPlayedPct:[14,a.TYPES.NUMBER],pttPlayer:[9,d("WAWebWamEnumPttPlayerType").PTT_PLAYER_TYPE],pttPlayerInitT:[2,a.TYPES.TIMER],pttPlayerPlayT:[3,a.TYPES.TIMER],pttSeekCnt:[13,a.TYPES.INTEGER],pttTrigger:[5,d("WAWebWamEnumPttTriggerType").PTT_TRIGGER_TYPE],pttType:[6,d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE]},[1,1,1],"regular"]},{PttPlayback:[]});g.PttPlaybackWamEvent=b}),98); __d("WAWebPttTsExternalLogger",["WAWebTimeSpentLoggingExternal","WAWebWamEnumTsExternalEventSource"],(function(a,b,c,d,e,f,g){function a(a){var b=null;function c(){b==null?void 0:b(),b=d("WAWebTimeSpentLoggingExternal").beginTsExternalEvent(d("WAWebWamEnumTsExternalEventSource").TS_EXTERNAL_EVENT_SOURCE.PTT_PLAY)}function e(){b==null?void 0:b()}a.addEventListener("playing",c);a.addEventListener("pause",e);a.addEventListener("ended",e);a.addEventListener("error",e);return function(){e(),a.removeEventListener("playing",c),a.removeEventListener("pause",e),a.removeEventListener("ended",e),a.removeEventListener("error",e)}}g.attachPttPlayTimeSpentLogger=a}),98); __d("WAWebPttPlaybackLogger",["WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebPttCalculateAudioProgress","WAWebPttDailyUtils","WAWebPttGetDurationFromMediaOrProtobuf","WAWebPttPlaybackWamEvent","WAWebPttPrefs","WAWebPttTsExternalLogger","WAWebWamEnumPttPlaybackSpeedType","WAWebWamEnumPttStreamType","WAWebWamEnumPttTriggerType","err"],(function(a,b,c,d,e,f,g){a=function(){function a(a,b){var c=this;this.isSequentialPlayback=!1;this._pttPlaybackSpeedCnt=0;this._pttSeekCnt=0;this._pttPlayedPct=0;this._hasStartedPlayback=!1;this._pttPlayedOutOfChat=!1;this._pttMiniPlayerPauseCnt=0;this._pttMiniPlayerClose=!1;this._pttMiniPlayerClick=0;this._handlePlaying=function(){c._hasStartedPlayback=!0};this._handleRateChange=function(){if(c._audio.playbackRate===c._currentPlaybackRate)return;c._currentPlaybackRate=c._audio.playbackRate;c._pttPlaybackSpeedCnt+=1};this._handleTimeupdate=function(){var a=d("WAWebPttCalculateAudioProgress").calculateAudioProgress(c._audio);c._pttPlayedPct=Math.max(a,c._pttPlayedPct)};this._handleEnded=function(){c.commit(!0)};this._handleError=function(){c.commit(!1)};this._msg=a;this._audio=b;this._currentPlaybackRate=this._audio.playbackRate;this._audio.addEventListener("playing",this._handlePlaying);this._audio.addEventListener("ratechange",this._handleRateChange);this._audio.addEventListener("timeupdate",this._handleTimeupdate);this._audio.addEventListener("ended",this._handleEnded);this._audio.addEventListener("error",this._handleError);a.type==="ptt"&&(this._disposeTsExternalLogger=d("WAWebPttTsExternalLogger").attachPttPlayTimeSpentLogger(b))}var b=a.prototype;b.dispose=function(){this._audio.removeEventListener("playing",this._handlePlaying),this._audio.removeEventListener("ratechange",this._handleRateChange),this._audio.removeEventListener("timeupdate",this._handleTimeupdate),this._audio.removeEventListener("ended",this._handleEnded),this._audio.removeEventListener("error",this._handleEnded),this._disposeTsExternalLogger==null?void 0:this._disposeTsExternalLogger()};b._reset=function(){this._pttPlaybackSpeedCnt=0,this._pttSeekCnt=0,this._pttPlayedPct=0,this._hasStartedPlayback=!1,this._pttPlayedOutOfChat=!1,this._pttMiniPlayerPauseCnt=0,this._pttMiniPlayerClose=!1,this._pttMiniPlayerClick=0,this._disposeTsExternalLogger=null};b.commit=function(a){if(!this._hasStartedPlayback)return;if(this._msg.type!=="ptt")return;var b=d("WAWebPttPrefs").PttPrefs.playbackRate,c=this._msg.mediaData,e=new(d("WAWebPttPlaybackWamEvent").PttPlaybackWamEvent)({pttSeekCnt:0,pttPlaybackSpeedCnt:0,pttTrigger:this.isSequentialPlayback?d("WAWebWamEnumPttTriggerType").PTT_TRIGGER_TYPE.SEQUENTIAL:d("WAWebWamEnumPttTriggerType").PTT_TRIGGER_TYPE.MANUAL});e.pttPlaybackFailed=!a;e.pttType=h(c.mimetype);e.pttPlaybackSpeed=i(b);a=d("WAWebPttGetDurationFromMediaOrProtobuf").getDurationFromMediaOrProtobuf(this._audio,c);e.pttDuration=Math.round(a)*1e3;e.pttPlaybackSpeedCnt=this._pttPlaybackSpeedCnt;e.pttSeekCnt=this._pttSeekCnt;e.pttPlayedPct=this._pttPlayedPct;e.pttPlayedOutOfChat=this._pttPlayedOutOfChat;e.pttMiniPlayerPauseCnt=this._pttMiniPlayerPauseCnt;e.pttMiniPlayerClose=this._pttMiniPlayerClose;e.pttMiniPlayerClick=this._pttMiniPlayerClick;e.commit();this._reset();c=this._msg.id;a=c==null?null:d("WAWebMsgCollection").MsgCollection.get(c);e=a==null?null:d("WAWebFrontendChatGetters").getKind(d("WAWebFrontendMsgGetters").getChat(a));e!=null&&(d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.PLAYBACK,e),b>1&&d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.FAST_PLAYBACK,e))};b.increasePttSeekCount=function(){this._pttSeekCnt+=1};b.markAsPlayedInOoc=function(){this._pttPlayedOutOfChat=!0};b.increaseOocPauseCount=function(){this._pttMiniPlayerPauseCnt+=1};b.markAsOocClosedByUser=function(){this._pttMiniPlayerClose=!0};b.increaseOocClickToChatCount=function(){this._pttMiniPlayerClick+=1};return a}();function h(a){a=a==null?void 0:a.split(";")[0];switch(a){case"audio/ogg":return d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.OPUS;case"audio/aac":return d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.AAC;case"audio/mpeg":return d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.MP3;case"audio/amr-wb":return d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.AMR_WB;case"audio/amr":case"audio/3gpp2":return d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.AMR_NB;case"audio/3gpp":default:return d("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.UNKNOWN}}function i(a){switch(a){case 1:return d("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE.SPEED_1;case 1.5:return d("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE.SPEED_1_5;case 2:return d("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE.SPEED_2;default:throw c("err")("Invalid playback rate: "+a)}}g.PttPlaybackLogger=a}),98); __d("WAWebPttPlaybackTone",["WAWebMuteCollection","bx"],(function(a,b,c,d,e,f,g){f=(e=c("bx")).getURL(e("9563"));c=e.getURL(e("9564"));var h=new window.Audio(c),i=new window.Audio(f);function a(){j(h)}function b(){j(i)}function j(a){if(!d("WAWebMuteCollection").MuteCollection.getGlobalSounds())return;a.play()}g.playMidPttTone=a;g.playEndPttTone=b}),98); __d("WAWebPttAudioPlaybackController",["WAPromiseDelays","WAWebFrontendMsgGetters","WAWebMarkPlayedMsgAction","WAWebPttAudioChannels","WAWebPttCalculateAudioProgress","WAWebPttFindSequentialMsg","WAWebPttMsgAudioStore","WAWebPttPlaybackLogger","WAWebPttPlaybackTone","WAWebPttPrefs","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h="playing",i="timeupdate",j="ended",k=400;a=function(){function a(a){var c=this;this.$3=!1;this.$7=function(){d("WAWebMarkPlayedMsgAction").canMarkPlayed(c.$1.unsafe())&&d("WAWebMarkPlayedMsgAction").markPlayed(c.$1.unsafe())};this.$8=function(){c.$1.updateLastPlaybackProgress(d("WAWebPttCalculateAudioProgress").calculateAudioProgress(c.audio,c.$1.mediaData))};this.$5=function(){c.$2=d("WAWebPttPrefs").PttPrefs.setPlayingMessage(c.$1)};this.$6=function(){c.$2==null?void 0:c.$2(),c.$2=null,c.audio.currentTime=0,c.$1.updateLastPlaybackProgress(0),c.$9(),c.$3&&(c.$4==null?void 0:c.$4(),c.$4=null)};this.$9=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=d("WAWebPttFindSequentialMsg").findSequentialMsg(c.$1),b=!1,e=d("WAWebPttAudioChannels").MainAudioChannel.claim(c,function(){b=!0});yield d("WAPromiseDelays").delayMs(k);e();if(b)return;if(a){d("WAWebPttPlaybackTone").playMidPttTone();e=d("WAWebPttMsgAudioStore").MsgAudioStore.acquireAudio(a);e.controller.playAsSequential();e.dispose()}else c.$3&&(d("WAWebPttPlaybackTone").playEndPttTone(),c.$3=!1,c.pttPlaybackLogger.isSequentialPlayback=!1)});this.audio=a.audio;this.pttPlaybackLogger=new(d("WAWebPttPlaybackLogger").PttPlaybackLogger)(a.msg,a.audio);this.$1=a.msg;this.audio.addEventListener(h,this.$5);this.audio.addEventListener(j,this.$6);d("WAWebMarkPlayedMsgAction").canMarkPlayed(this.$1.unsafe())&&this.audio.addEventListener(h,this.$7);this.audio.addEventListener(i,this.$8)}var c=a.prototype;c.playAsSequential=function(){d("WAWebPttPrefs").PttPrefs.outOfChatPlayerMessage=this.$1;this.$4=d("WAWebPttMsgAudioStore").MsgAudioStore.acquireAudio(this.$1).dispose;this.$3=!0;this.pttPlaybackLogger.isSequentialPlayback=!0;var a=d("WAWebFrontendMsgGetters").getAsPttLike(this.$1.unsafe())==null?1:d("WAWebPttPrefs").PttPrefs.playbackRate;this.audio.playbackRate=a;this.audio.defaultPlaybackRate=a;this.audio.currentTime=0;this.audio.play()};c.dispose=function(){d("WAWebMarkPlayedMsgAction").canMarkPlayed(this.$1.unsafe())&&this.audio.removeEventListener(h,this.$7),this.audio.removeEventListener(i,this.$8),this.audio.removeEventListener(h,this.$5),this.audio.removeEventListener(j,this.$6),this.pttPlaybackLogger.dispose(),this.$2==null?void 0:this.$2()};return a}();g.AudioPlaybackController=a}),98); __d("WAWebPttAudioProxy",[],(function(a,b,c,d,e,f){a=function(){function a(a){this.$2="",this.$3=0,this.$5=1,this.$6=1,this.$1=a}var b=a.prototype;b.addEventListener=function(a,b,c){this.$1.addAudioListener(this,a,b)};b.removeEventListener=function(a,b){this.$1.removeAudioListener(this,a,b)};b.play=function(){return this.$1.play(this,{currentTime:this.$3,playbackRate:this.$6,defaultPlaybackRate:this.$5})};b.pause=function(){this.$1.pause(this)};b.load=function(){this.$1.load(this)};babelHelpers.createClass(a,[{key:"src",set:function(a){this.$2=a},get:function(){return this.$2}},{key:"defaultPlaybackRate",get:function(){return this.$5},set:function(a){this.$5=a,this.$1.setDefaultPlaybackRate(this,a)}},{key:"playbackRate",get:function(){return this.$6},set:function(a){this.$6=a,this.$1.setPlaybackRate(this,a)}},{key:"currentTime",get:function(){var a=this.$1.getCurrentTime(this);a!=null&&(this.$3=a);return this.$3},set:function(a){this.$3=a,this.$1.setCurrentTime(this,a)}},{key:"duration",get:function(){var a=this.$1.getDuration(this);a!=null&&(this.$4=a);return this.$4}},{key:"paused",get:function(){return this.$1.getPaused(this)}}]);return a}();f.AudioProxy=a}),66); __d("WAWebPttAudioManager",["WAWebPttAudioProxy"],(function(a,b,c,d,e,f,g){a=function(){function a(a){var b=this;this.$1=new Map();this.$2=new Map();this.$3=new Map();this.$4=new Map();this.__TEST_ONLY__={getActiveAudio:function(a){return b.$2.get(a)},getAllAudios:function(){return[].concat(Array.from(b.$2.values()),Array.from(b.$3.values()))}};this.$5=(a=a==null?void 0:a.minPoolSize)!=null?a:1}var b=a.prototype;b.addAudioListener=function(a,b,c){var d;(d=this.$2.get(a))==null?void 0:d.addEventListener(b,c);(d=this.$3.get(a))==null?void 0:d.addEventListener(b,c);d=this.$1.get(a);d==null&&(d=new Set(),this.$1.set(a,d));d.add({type:b,listener:c})};b.removeAudioListener=function(a,b,c){var d;(d=this.$2.get(a))==null?void 0:d.removeEventListener(b,c);(d=this.$3.get(a))==null?void 0:d.removeEventListener(b,c);d=this.$1.get(a);if(d==null)return;for(var e of d)if(e.type===b&&e.listener===c){d["delete"](e);break}d.size===0&&this.$1["delete"](a)};b.createAudioProxy=function(){return new(d("WAWebPttAudioProxy").AudioProxy)(this)};b.$6=function(a){var b=this,c=this.$2.get(a);if(c!=null){self.clearTimeout(this.$4.get(c));this.$4["delete"](c);return c}c=this.$3.get(a);if(c!=null){this.$3["delete"](a);this.$2.set(a,c);return c}c=this.$2.size+this.$3.size;if(c>=this.$5){c=function(c){var d=c[0],e=c[1];b.$3["delete"](d);b.$2.set(a,e);(c=b.$1.get(d))==null?void 0:c.forEach(function(a){var b=a.type;a=a.listener;e.removeEventListener(b,a)});(d=b.$1.get(a))==null?void 0:d.forEach(function(a){var b=a.type;a=a.listener;e.addEventListener(b,a)});return{v:e}};for(var d of this.$3){var e=c(d);if(typeof e==="object")return e.v}}var f=new Audio();this.$2.set(a,f);(e=this.$1.get(a))==null?void 0:e.forEach(function(a){var b=a.type;a=a.listener;f.addEventListener(b,a)});var g=function(){for(var a of b.$2){var c=a[0],d=a[1];if(d===f){b.$2["delete"](c);b.$3.set(c,f);break}}};f.addEventListener("pause",function(){b.$4.set(f,self.setTimeout(g,1e3))});return f};b.play=function(a,b){var c=this.$6(a);c.src=a.src;c.currentTime=b.currentTime;c.playbackRate=b.playbackRate;c.defaultPlaybackRate=b.defaultPlaybackRate;return c.play()};b.pause=function(a){(a=this.$2.get(a))==null?void 0:a.pause()};b.load=function(a){var b=this.$6(a);b.src=a.src;b==null?void 0:b.load()};b.setDefaultPlaybackRate=function(a,b){a=this.$2.get(a);if(a==null)return;a.defaultPlaybackRate=b};b.setPlaybackRate=function(a,b){a=this.$2.get(a);if(a==null)return;a.playbackRate=b};b.getCurrentTime=function(a){return(a=(a=this.$2.get(a))==null?void 0:a.currentTime)!=null?a:null};b.setCurrentTime=function(a,b){var c=this.$2.get(a);if(c==null){(a=this.$1.get(a))==null?void 0:a.forEach(function(a){var b=a.type;a=a.listener;b==="timeupdate"&&a()});return}c.currentTime=b};b.getDuration=function(a){return(a=(a=this.$2.get(a))==null?void 0:a.duration)!=null?a:null};b.getPaused=function(a){return(a=(a=this.$2.get(a))==null?void 0:a.paused)!=null?a:!0};return a}();b=new a();g.AudioManagerImpl=a;g.AudioManager=b}),98); __d("WAWebPttMsgAudioStore",["invariant","WANullthrows","WAWebMediaInMemoryBlobCache","WAWebPttAudioChannels","WAWebPttAudioManager","WAWebPttAudioPlaybackController","WAWebPttGetDurationFromMediaOrProtobuf"],(function(a,b,c,d,e,f,g,h){a=function(){function a(){this.$1=new Map()}var b=a.prototype;b.$2=function(a,b){var e=this,f=a.mediaData,g=d("WAWebPttAudioManager").AudioManager.createAudioProxy(),h=d("WAWebPttAudioChannels").MainAudioChannel.registerMedia(g),i=k(f);if(i){g.src=i.url;f=d("WAWebPttGetDurationFromMediaOrProtobuf").getDurationFromMediaOrProtobuf(g,a.mediaData);a.lastPlaybackProgress!=null&&f!=null&&(g.currentTime=f*a.lastPlaybackProgress)}var j=new(d("WAWebPttAudioPlaybackController").AudioPlaybackController)({msg:a,audio:g});return{playbackController:j,refCount:1,dispose:function(){var a=c("WANullthrows")(e.$1.get(b));a.refCount--;a.refCount===0&&(h(),e.$1["delete"](b),i==null?void 0:i.dispose(),j.dispose())}}};b.acquireAudio=function(a){var b=j(a),c=this.$1.get(b);c?c.refCount++:(c=this.$2(a,b),this.$1.set(b,c));a=c;b=a.playbackController;c=a.dispose;return{audio:b.audio,pttPlaybackLogger:b.pttPlaybackLogger,controller:b,dispose:i(c)}};return a}();function i(a){var b=!1;return function(){b&&h(0,56332),b=!0,a()}}function j(a){return a.id.toString()}function k(a){var b=a.filehash;if(!d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.has(b))return null;a=d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.getOrCreateURL(b);d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.increaseUsageCount(b);var c=function(){return d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.decreaseUsageCount(b)};return{url:a,dispose:c}}b=new a();g.MsgAudioStore=b}),98); __d("WAWebPttUseMsgAudioPlaybackController",["WAWebPttMsgAudioStore","react","useWAWebOnUnmount"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(a){var b=function(){return a==null?null:d("WAWebPttMsgAudioStore").MsgAudioStore.acquireAudio(a)},e=i(b),f=e[0];e=e[1];var g=i(a),h=g[0];g=g[1];h!==a&&(g(a),f==null?void 0:f.dispose(),e(b()));c("useWAWebOnUnmount")(function(){f==null?void 0:f.dispose()});return f}g.useMsgAudioPlaybackController=a}),98); __d("WAWebPttOocPlayer",["WANullthrows","WAWebAudioFileIcon.react","WAWebAudioStatusIcon.react","WAWebChatGetters","WAWebChatMessageSearch","WAWebClassnames","WAWebCmd","WAWebDetailImage.react","WAWebElevatedPushNamesFlag","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgGetters","WAWebName.react","WAWebNewsletterName.react","WAWebPttCalculateAudioProgress","WAWebPttCloseButton.react","WAWebPttDailyUtils","WAWebPttMessageStatus.scss","WAWebPttOocMarquee","WAWebPttPlayPauseButton.react","WAWebPttPrefs","WAWebPttStatusIcon.react","WAWebPttUseMsgAudioPlaybackController","WAWebTabOrder","WAWebThemeContext","WAWebUIRefreshGatingUtils","WAWebUnstyledButton.react","WAWebVelocityTransitionGroup","react","useWAWebAnimationFrames","useWAWebListener","useWAWebMeasure","useWAWebModelValues","useWAWebMsgValues"],(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.useContext,m=b.useEffect,n=b.useRef,o=b.useState,p=26,q=40,r={senderButton:{maxWidth:"x193iq5w",height:"x5yr21d",display:"x78zum5",overflowX:"x6ikm8r",overflowY:"x10wlt62",justifyContent:"xl56j7k",alignItems:"x6s0dn4",":hover_opacity":"x5z6fxw",$$css:!0},senderName:{color:"xmzmlnv",fontSize:"x1jchvi3",$$css:!0}};function a(){var a=d("useWAWebModelValues").useModelValues(d("WAWebPttPrefs").PttPrefs,["outOfChatPlayerMessage"]),b=a.outOfChatPlayerMessage;m(function(){b&&d("WAWebMsgCollection").MsgCollection.gadd(b)},[b]);a=d("WAWebPttUseMsgAudioPlaybackController").useMsgAudioPlaybackController(b);var c=function(a){d("WAWebPttPrefs").PttPrefs.outOfChatPlayerMessage=a};return b&&a?j.jsx(s,{msg:b,playbackController:a,onPlayNext:c}):null}a.displayName=a.name+" [from "+f.id+"]";function s(a){var b=a.msg;a.onPlayNext;a=a.playbackController;var e=d("useWAWebMsgValues").useMsgValues(b.id,[d("WAWebFrontendMsgGetters").getAsRevoked,d("WAWebFrontendMsgGetters").getPendingDeleteForMe]),f=e[0],g=e[1],h=d("WAWebFrontendMsgGetters").getChat(b.unsafe()),i=a.audio,k=a.pttPlaybackLogger,l=z(b);e=o(!i.paused);var p=e[0],q=e[1],s=n(!1),v=function(){return s.current=!1};a=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();m(function(){v()},[b]);var w=function(){return q(!i.paused)};(e=d("useWAWebListener")).useListener(i,"playing",function(){w()});e.useListener(i,"timeupdate",function(){w();if(!l)return;k.markAsPlayedInOoc();s.current||(s.current=!0,d("WAWebPttDailyUtils").incrementPttDailyCount(d("WAWebPttDailyUtils").PttDailyCountKind.OOC_PLAYBACK,c("WANullthrows")(d("WAWebFrontendChatGetters").getKind(h))))});e.useListener(i,"pause",w);e.useListener(i,"ended",function(){w();if(!l)return;v()});e.useListener(d("WAWebCmd").Cmd,["status_viewer_open","status_posting_flow","open_lock_screen_modal"],function(){i.pause()});e.useListener(h,"remove",function(){i.pause(),d("WAWebPttPrefs").PttPrefs.closeOocPlayer()});m(function(){(f||g)&&(i.pause(),d("WAWebPttPrefs").PttPrefs.closeOocPlayer())},[f,g,i]);e=function(a){p?(i.pause(),k.increaseOocPauseCount()):i.play(),a.preventDefault()};var x=function(a){i.pause(),d("WAWebPttPrefs").PttPrefs.closeOocPlayer(),d("WAWebPttPrefs").PttPrefs.setPlayingMessage(null),k.markAsOocClosedByUser(),k.commit(!0),a.preventDefault()},A=function(a){if(a.defaultPrevented)return;void d("WAWebCmd").Cmd.openChatAt({chat:h,msgContext:d("WAWebChatMessageSearch").getSearchContext(h,b.id)});k.increaseOocClickToChatCount()},B=l&&!f&&!g;return j.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"ptt-out-of-chat",children:B?j.jsxs("div",babelHelpers["extends"]({},{0:{className:"x10l6tqk xa1v5g2 xyblb0s x78zum5 xh8yej3 x1x0gksc x1xrx4lg"},1:{className:"x10l6tqk xa1v5g2 x78zum5 xh8yej3 x1x0gksc x1xrx4lg xnj6ddq"}}[!!a<<0],{children:[j.jsx("div",babelHelpers["extends"]({className:"xfvyar9 x5yr21d x78zum5 xl56j7k x6s0dn4"},{children:j.jsx(d("WAWebPttPlayPauseButton.react").PttPlayPauseButton,{onConfirm:e,paused:!p,dataTab:d("WAWebTabOrder").TAB_ORDER.PTT_OOC_BUTTON,theme:"out-of-chat-playback"})})),j.jsx("div",babelHelpers["extends"]({className:"xh8yej3 x5yr21d x6ikm8r x10wlt62 x78zum5 xl56j7k x6s0dn4 x1n2onr6"},{children:j.jsxs(c("WAWebUnstyledButton.react"),{dataTab:d("WAWebTabOrder").TAB_ORDER.PTT_OOC_BUTTON,xstyle:r.senderButton,onClick:A,children:[j.jsx(u,{msg:b}),j.jsx(t,{author:b.senderObj,chat:h})]})})),j.jsx("div",babelHelpers["extends"]({className:"xfvyar9 x5yr21d x78zum5 xl56j7k x6s0dn4"},{children:j.jsx(d("WAWebPttCloseButton.react").PttCloseButton,{onConfirm:x,dataTab:d("WAWebTabOrder").TAB_ORDER.PTT_OOC_BUTTON,theme:"out-of-chat-playback"})})),j.jsx(y,{audio:i,isPlaying:p})]})):null})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=a.author;a=a.chat;var e=c("useWAWebMeasure")(),f=e[0];e=e[1].width;var g=c("useWAWebMeasure")(),h=g[0];g=g[1].width;var i=d("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(a),k;d("WAWebChatGetters").getIsGroup(a)?k=j.jsx(d("WAWebName.react").ContactAndGroupName,{contact:b,chat:a,elevatedPushNamesEnabled:!0,xstyle:r.senderName}):d("WAWebChatGetters").getIsNewsletter(a)?k=j.jsx(d("WAWebNewsletterName.react").NewsletterName,{chat:a,elevatedPushNamesEnabled:i,xstyle:r.senderName}):k=j.jsx(d("WAWebName.react").Name,{contact:b,useShortName:!0,xstyle:r.senderName,elevatedPushNamesEnabled:i});a=g>e;return j.jsxs(j.Fragment,{children:[j.jsx("div",babelHelpers["extends"]({ref:f},{className:"xoiwuju x5yr21d x6ikm8r x10wlt62 x10l6tqk"},{children:j.jsx("div",babelHelpers["extends"]({ref:h},{className:"xlshs6z x10l6tqk xomak03 xwrr8g"},{children:k}))})),j.jsx("div",babelHelpers["extends"]({className:"xuxw1ft xbrixnn x6ikm8r x10wlt62 x193iq5w x5yr21d x78zum5 x6s0dn4"},{children:a?j.jsx(d("WAWebPttOocMarquee").OocMarquee,{children:k}):k}))]})}t.displayName=t.name+" [from "+f.id+"]";function u(a){a=a.msg;var b=d("useWAWebMsgValues").useMsgValues(a.id,[d("WAWebFrontendMsgGetters").getAsPttLike,d("WAWebMsgGetters").getHasOriginatedFromNewsletter]),c=b[0];b=b[1];if(c||b)return j.jsx(v,{msg:a});return a.isForwarded?j.jsx(w,{}):j.jsx(x,{})}u.displayName=u.name+" [from "+f.id+"]";function v(a){a=a.msg;var b=d("useWAWebMsgValues").useMsgValues(a.id,[d("WAWebFrontendMsgGetters").getMsgSenderId,d("WAWebFrontendMsgGetters").getAsPttLike]),e=b[0];b=b[1];a=a.type==="ptt"||b?d("WAWebPttStatusIcon.react").PttStatusIcon:d("WAWebAudioStatusIcon.react").AudioStatusIcon;return j.jsxs("div",babelHelpers["extends"]({className:"xpdqn1h x100vrsf x1vqgdyp x1fns5xo x78zum5 xl56j7k x6s0dn4 x1a02dak x1n2onr6"},{children:[j.jsx(d("WAWebDetailImage.react").DetailImage,{id:e,size:q}),j.jsx("span",{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease("x11uqc5h x10l6tqk xuivejd xdj266r x11i5rnm xat24cr x1mh8g0r xexx8yu x4uap5 x18d9i69 xkhd6sd x12vmtx6",c("WAWebPttMessageStatus.scss").outOfChat),children:j.jsx(a,{width:p,height:p})})]}))}v.displayName=v.name+" [from "+f.id+"]";function w(){return j.jsx("div",babelHelpers["extends"]({className:"xpdqn1h x100vrsf x1vqgdyp x1fns5xo x78zum5 xl56j7k x6s0dn4 x1a02dak x1n2onr6 xlid4zk x13tp074 x1qns1p2 xipx5yg x6ikm8r x10wlt62 x1aqdfop"},{children:j.jsx(d("WAWebPttStatusIcon.react").PttStatusIcon,{width:20,height:20,className_DONOTUSE:c("WAWebPttMessageStatus.scss").forwardedOutOfChat})}))}w.displayName=w.name+" [from "+f.id+"]";function x(){return j.jsx("div",babelHelpers["extends"]({className:"xpdqn1h x100vrsf x1vqgdyp x1fns5xo x78zum5 xl56j7k x6s0dn4 x1a02dak x1n2onr6 xlid4zk x13tp074 x1qns1p2 xipx5yg x6ikm8r x10wlt62"},{children:j.jsx(d("WAWebAudioFileIcon.react").AudioFileIcon,{width:q,height:q})}))}x.displayName=x.name+" [from "+f.id+"]";function y(a){var b=a.audio;a=a.isPlaying;var e=o(d("WAWebPttCalculateAudioProgress").calculateAudioProgress(b)),f=e[0],g=e[1];e=k(function(){g(d("WAWebPttCalculateAudioProgress").calculateAudioProgress(b))},[b]);c("useWAWebAnimationFrames")(e,{active:a});d("useWAWebListener").useListener(b,"timeupdate",e);d("useWAWebListener").useListener(b,"ended",function(){return g(0)});a=l(d("WAWebThemeContext").ThemeContext);e=a.theme;return j.jsx("div",babelHelpers["extends"]({className:"xh8yej3 x10l6tqk xef1mmm xuoj239"},{children:j.jsx("div",{className:{0:"xh8yej3 x5yr21d",2:"xh8yej3 x5yr21d x1r1mewj xwq05k6",1:"xh8yej3 x5yr21d x1liytr5 xyd83as",3:"xh8yej3 x5yr21d x1liytr5 xyd83as"}[!!(e==="light")<<1|!!(e==="dark")<<0],style:{transform:"translateX("+(f*100-100)+"%)"}})}))}y.displayName=y.name+" [from "+f.id+"]";function z(a){var b=d("useWAWebModelValues").useModelValues(d("WAWebPttPrefs").PttPrefs,["isOocPlayerClosedByUser"]);b=b.isOocPlayerClosedByUser;a=d("WAWebFrontendMsgGetters").getChat(a.unsafe());a=d("useWAWebModelValues").useModelValues(a,["active"]);a=a.active;return!b&&!a}g.OutOfChatPlayer=a}),98); __d("WAWebUnmountSignalHoc_DEPRECATED.react",["WAWebHocComponent_DEPRECATED.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b,c,e;return c=b=function(b){babelHelpers.inheritsLoose(c,b);function c(){var a,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(a=c=b.call.apply(b,[this].concat(e))||this,c._isUnmounted=!1,c._controller=null,c.getUnmountSignal=function(){if(c._controller)return c._controller.signal;c._controller=new AbortController();c._isUnmounted&&c._controller.abort();return c._controller.signal},a)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.componentWillUnmount=function(){var a;this._isUnmounted=!0;(a=this._controller)==null?void 0:a.abort()};d.render=function(){return i.jsx(a,babelHelpers["extends"]({ref:this.setComponent,getUnmountSignal:this.getUnmountSignal},this.props))};return c}(d("WAWebHocComponent_DEPRECATED.react").WrappedComponent),b.defaultProps=(e=a.defaultProps)!=null?e:void 0,b.displayName="UnmountSignal("+d("WAWebHocComponent_DEPRECATED.react").getHocComponentDisplayName(a)+")",b.wrappedComponent=null,c}g["default"]=a}),98); __d("WAWebChatlistPanel.react",["fbt","Promise","WAAbortError","WAFtsIsSearchQueryEligibleForMessageSearch","WALogger","WANullthrows","WAPromiseRaceAbort","WAShiftTimer","WAWebABProps","WAWebAccessibility.react","WAWebBizGatingUtils","WAWebBizLabelItemParentType","WAWebChatArchivedEntryPoint.react","WAWebChatAssignmentCollection","WAWebChatAssignmentUtils","WAWebChatCollection","WAWebChatGetters","WAWebChatListFilters.react","WAWebChatListSearch.react","WAWebChatLockGatingUtils","WAWebChatLockUtils","WAWebChatLockedEntryPoint.react","WAWebChatMessageSearch","WAWebChatModel","WAWebChatSearchFilters","WAWebChatSearchQuery","WAWebChatlist.react","WAWebChatlistBanners.react","WAWebChatlistPanel.scss","WAWebChatlistPanelMode","WAWebChatlistUtils","WAWebChevronCustomIcons","WAWebClassnames","WAWebClientFeatureFlags","WAWebCmd","WAWebCommandCollection","WAWebCommandModel","WAWebCommunityGroupJourneyEventImpl","WAWebComposeBoxActions","WAWebConnModel","WAWebConstantsDeprecated","WAWebConsumerMultiSelectBar.react","WAWebContactCollection","WAWebContactGetters","WAWebContactModel","WAWebDesktopUpsellChatlistToastbar.react","WAWebDesktopUpsellSearchToastbar.react","WAWebDrawerManager","WAWebEmptyState.react","WAWebErrorBoundary.react","WAWebFilterLogging","WAWebFilterSession","WAWebFindCommonGroupsContactAction","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFocusIndicator","WAWebFocusTracer","WAWebFrontendChatGetters","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebFtsConstants","WAWebFtsMsgsCallLogCollection","WAWebFtsMsgsCollection","WAWebGroupType","WAWebHistorySyncComponents.react","WAWebInboxFiltersGatingUtils","WAWebKeyboardRun","WAWebL10N","WAWebLabelCollection","WAWebLid1X1MigrationGating","WAWebListenerHoc_DEPRECATED","WAWebMessageLabelDeprecationUtils","WAWebMessageYourselfMetricUtils","WAWebMiscGatingUtils","WAWebMixedMultiSelectBar.react","WAWebModalManager","WAWebMsgCollection","WAWebMsgModel","WAWebMultiSelectEntryPointConstants","WAWebMultiSelection","WAWebNoop","WAWebOfflineHandler","WAWebOfflineResumeProgressToastbar.react","WAWebOfflineResumeTypes.flow","WAWebParticipantListUtils","WAWebPhoneNumberSearch","WAWebPrivacyNarrativeE2EMessage.react","WAWebPttOocPlayer","WAWebSelectableState","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebSingleSelection","WAWebSpinner.react","WAWebTimerHoc_DEPRECATED.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUimUie.react","WAWebUnmountSignalHoc_DEPRECATED.react","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","WAWebVoipCallsTabPanelManager","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumLandingSurface","WAWebWamEnumSurfaceType","WAWebWamEnumUnlockEntryPoint","WAWebWid","WAWebWidFactory","asyncToGeneratorRuntime","cr:5923","cr:5932","cr:5959","err","gkx","lodash","react","stylex","useWAWebChatLockRestriction"],(function(a,b,c,d,e,f,g,h){var i,j,k,l;function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["get from participants table failed"]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["[filter contacts] Migrated client cannot find chat using lid"]);n=function(){return a};return a}a=l||d("react");var o=k||(k=c("react"));e=a.Component;var p=a.createRef,q=b("cr:5959")==null?void 0:b("cr:5959").executeDebugCommand,r={THROTTLE:450};f=[d("WAWebChatSearchFilters").SearchFilters.UNREAD];a=[].concat(f,[d("WAWebChatSearchFilters").SearchFilters.CONTACT,d("WAWebChatSearchFilters").SearchFilters.GROUP,d("WAWebChatSearchFilters").SearchFilters.FAVORITES]);var s=[].concat(a,[d("WAWebChatSearchFilters").SearchFilters.LABELS]),t=new Set(f),u=new Set(a),v=new Set(s),w=function(){if(d("WAWebInboxFiltersGatingUtils").inboxCustomFiltersEnabled())return v;return d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()?u:t},x=.8,y=50,z=75,A={unreadIcon:{verticalAlign:"xwgq4w4",$$css:!0}};f=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this,e)||this;f.$1=null;f.flatListController=new(c("WAWebFlatListController"))();f.$3={};f.setRefSearch=function(a){f.refSearch=a};f.$18=p();f.$20=function(a){f.$19=a};f.$21=p();f.$22=new(c("WAWebFilterSession"))();f.$23=p();f.$24=0;f.$27=!1;f.hideLockedChats=!0;f.$33=new(d("WAShiftTimer").ShiftTimer)(function(){f.setState(f.$3),f.$3={}});f.debounceSetState=function(a,b,c){Object.assign(f.$3,a),b===void 0?f.$33.onOrBeforeRepaint():c===void 0?f.$33.debounce(b):f.$33.debounceAndCap(b,c)};f.$36=function(){f.selectableState=new(c("WAWebSelectableState"))(f.props.selectable||!1),f.props.listeners.add(f.$2,"all",f.$45),f.setState({chatlistKeyId:1})};f.$42=function(a){if(a.active)return;var b=f.$25!=null&&c("WAWebWid").equals(f.$25.id,a.id);a.isDirty()?b||(f.$25=a):b&&f.$29()};f.$43=function(a){f.$25&&c("WAWebWid").equals(f.$25.id,a.id)&&f.$29()};f.$45=function(){var a=f.state.showMultiSelectBar,b=f.$2&&f.$2.getSelected().length>0&&!f.props.hideMultiSelectBar;a===!1&&b&&f.setState({showMultiSelectBar:!0})};f.$46=function(){var a;if(!f.$21.current)return;c("WAWebFocusIndicator").shouldIndicateFocus();(a=f.$21.current)==null?void 0:a.focusFirst()};f.$47=function(a){if(a.key!=="ArrowDown")return;if(f.refSearch&&!f.refSearch.cursorIsAtEnd())return;a==null?void 0:a.preventDefault();f.$46()};f.$48=function(a){a!==f.state.multiSelectEntryPoint&&f.setState({multiSelectEntryPoint:a})};f.$41=function(){var a=f.$1;if(a){var b=a.scrollTop;a.scrollTop!==0&&(b<a.clientHeight?void c("WAWebVelocityAnimate")(a,"scroll",{duration:300,container:a,offset:-(a.scrollTop+a.getBoundingClientRect().top)}):a.scrollTop=0)}};f.getFilteredContacts=function(a){var b;b=(b=a)!=null?b:{};var e=b.searchText,g=b.filter,h=g===void 0?{}:g;g=b.includeChats;var i=g===void 0?!1:g;g=b.includeNonContacts;b=g===void 0?!1:g;if(h.kind===d("WAWebChatSearchFilters").SearchFilters.CONTACT||h.kind===d("WAWebChatSearchFilters").SearchFilters.NON_CONTACT||h.kind===d("WAWebChatSearchFilters").SearchFilters.UNREAD||h.kind===d("WAWebChatSearchFilters").SearchFilters.FAVORITES)return[];var j=(e||"").trim();if(!j&&f.$51(h))return[];j=c("WAWebL10N").accentFold(j);var k=d("WAWebPhoneNumberSearch").numberSearch(j),l=d("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated();g=function(a){if(!a.searchMatch(j,k,h.label))return!1;else if(i)return!0;var b;l&&a.id.isLid()?(b=d("WAWebChatCollection").ChatCollection.getChatByAccountLid(d("WAWebWidFactory").toChatWid(a.id)),b==null&&d("WALogger").ERROR(n()).sendLogs("filter-contacts-chat-not-found")):b=d("WAWebChatCollection").ChatCollection.get(a.id);return b==null||!d("WAWebFrontendChatGetters").getShouldAppearInList(b)};return d("WAWebContactCollection").ContactCollection.getFilteredContacts({showMe:!!j,showWithoutName:b,cancelAt:a==null?void 0:a.cancelAt,filterFn:g})};f.getFilteredCommunities=function(a){var b=(a||"").trim().toLowerCase();if(!b||f.props.mode!==c("WAWebChatlistPanelMode").CommandPalette)return[];a=d("WAWebChatCollection").ChatCollection.filter(function(a){var c;return((c=a.groupMetadata)==null?void 0:c.groupType)===d("WAWebGroupType").GroupType.COMMUNITY&&a.formattedTitle.toLowerCase().includes(b)});return a};f.getFilteredActions=function(a){a=(a||"").trim();return!a||f.props.mode!==c("WAWebChatlistPanelMode").CommandPalette?[]:d("WAWebCommandCollection").CommandCollection.query({query:a,type:"action"})};f.getFilteredDebugCommands=function(a){a=(a||"").trim();return!a||f.props.mode!==c("WAWebChatlistPanelMode").CommandPalette||!d("WAWebClientFeatureFlags").isFeatureEnabled("debug_commands")?[]:(a=b("cr:5923")==null?void 0:b("cr:5923").query(a||"").slice(0,3))!=null?a:[]};f.getFilteredSettings=function(a){a=(a||"").trim();return!a||f.props.mode!==c("WAWebChatlistPanelMode").CommandPalette?[]:d("WAWebCommandCollection").CommandCollection.query({query:a,type:"setting"})};f.$32=function(a){a===void 0&&(a={});if(f.$51(a))return;if(d("WAWebMessageLabelDeprecationUtils").isMessageLabellingDisabled())return;if(!a.label)return;a=((a=d("WAWebLabelCollection").LabelCollection.get(a.label))==null?void 0:a.labelItemCollection.filter(function(a){return a.parentType===d("WAWebBizLabelItemParentType").LabelItemParentType.Msg}).map(function(a){return a.parentId}))||[];void d("WAWebMsgCollection").MsgCollection.getMessagesById(a).then(function(a){f.setState({messages:a.messages})})};f.$28=function(a,b,e){b===void 0&&(b={});e=(e=e)!=null?e:{};e=e.includeActiveChat;var g=e===void 0?!1:e,h=w(),i=(a||"").trim();if(i||!f.$51(b)){i=c("WAWebL10N").accentFold(i);var j=d("WAWebPhoneNumberSearch").numberSearch(i);return d("WAWebChatCollection").ChatCollection.filter(function(a){if(!d("WAWebFrontendChatGetters").getShouldAppearInList(a))return!1;var e=g&&f.selection.getVal()===a;if(e)return!0;e=a.archive&&b.kind!=null&&h.has(b.kind);if(e)return!1;e=b.label!=null&&a.contact.searchMatch(i,j,b.label);if(e)return!0;e=!i||a.contact.searchMatch(i,j);var k=!b.kind&&!b.label||d("WAWebChatMessageSearch").matchFilter(a,b);if(e&&k)return!0;e=!1;d("WAWebChatGetters").getIsGroup(a)&&(e=c("WANullthrows")(a.groupMetadata).isUnnamed&&d("WAWebParticipantListUtils").calculateUnnamedGroupFullParticipantsList(c("WANullthrows")(a.groupMetadata)).includes(i));return e&&k?!0:!1})}return d("WAWebChatCollection").ChatCollection.filter(function(a){return!a.archive&&d("WAWebFrontendChatGetters").getShouldAppearInList(a)})};f.fullTextSearch=function(a,b){a=a||f.searchQuery.query;f.props.mode===c("WAWebChatlistPanelMode").CallsTab||c("WAFtsIsSearchQueryEligibleForMessageSearch")(a)||(b==null?void 0:b.label)?(f.state.searching||f.debounceSetState({searching:!0}),f.$4()):f.isFTSSearching()?f.$49():f.ftsMsgs.reset()};f.shouldFTSSearch=function(a){return!f.ftsMsgs.hasMoreMsgs||f.isFTSSearching()||f.props.mode!==c("WAWebChatlistPanelMode").CallsTab&&!c("WAFtsIsSearchQueryEligibleForMessageSearch")(f.searchQuery.query||"")?!1:a.scrollTop+d("WAWebFrontendConstants").SCROLL_FUDGE>a.scrollHeight-a.clientHeight};f.$30=function(a,b){var c=new Map(),e=function(d){var e=a[d];e&&e.forEach(function(a){a&&(c.has(a)||c.set(a,[]),c.get(a).push(b[d]))})};for(var f=0;f<a.length;f++)e(f);var g=[];c.forEach(function(a,b){g.push([b,a])});g.sort(function(a,b){if(a[1].length===b[1].length){if(a[0].t!=null&&b[0].t!=null)return b[0].t-a[0].t;else if(a[0].t!=null)return-1;return 1}return b[1].length-a[1].length});return g.slice(0,d("WAWebABProps").getABPropConfigValue("web_max_found_common_groups_displayed"))};f.$35=function(a,b){f.$15(a);if(f.props.mode!==c("WAWebChatlistPanelMode").CallsTab&&!a&&f.$51(b)){f.searchQuery.updateQuery(a);f.searchQuery.updateLabelQuery({});void f.$40();return}var d=f.searchQuery.query;if(f.props.mode!==c("WAWebChatlistPanelMode").CallsTab&&f.searchQuery.equals(a,b))return;f.searchQuery.updateQuery(a);f.searchQuery.updateLabelQuery(b);f.$34()?(f.fullTextSearch(a,b),f.$14(),f.$7(a,b),f.$8(a,b),f.$9(a),f.$10(a),f.$11(a),f.$12(a)):(d&&!a&&void f.$40(),f.debounceSetState({chats:f.$28(void 0,b)}))};f.$52=function(){return!!f.searchQuery.query};f.isFTSSearching=function(){var a=f.$3;return"searching"in a?a.searching:f.state.searching};f.$49=function(){var a;f.$4.cancel();f.$14.cancel();f.ftsMsgs.resetSearch();f.ftsMsgs.reset();(a=f.$6)==null?void 0:a.abort();(a=f.$17)==null?void 0:a.abort();f.setState({commonGroups:[]});f.isFTSSearching()&&f.debounceSetState({searching:!1},z);void f.$31("")};f.$50=function(){f.$7.cancel(),f.$8.cancel(),f.$9.cancel(),f.$11.cancel(),f.$12.cancel(),f.$13.cancel()};f.$40=function(){return new(i||(i=b("Promise")))(function(a){f.$51(f.searchQuery.filter)||d("WAWebFilterLogging").logSearchWithFilterEvent(f.$22.sessionId),f.$49(),f.searchQuery.clear(),f.$50(),f.refSearch!=null&&f.refSearch.clearSearch(),f.setState({chats:f.$28(),contacts:f.getFilteredContacts(),actions:f.getFilteredActions(),debugCommands:f.getFilteredDebugCommands(),communities:f.getFilteredCommunities(),settingsCommands:f.getFilteredSettings(),searching:!1},function(){return a()})})};f.$53=function(a){a==null?void 0:a.preventDefault(),c("WAWebFocusIndicator").shouldIndicateFocus(),c("WAWebFocusTracer").focus(f.$18.current)};f.$54=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){yield d("WAWebChatlistUtils").openExistingChat(b.id,c,e),f.$55("message",b)});return function(b,c,d,e){return a.apply(this,arguments)}}();f.$56=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){yield d("WAWebChatlistUtils").openExistingChat(b.id),d("WAWebChatGetters").getIsBroadcast(b)?f.$55("broadcast_list",b):d("WAWebChatGetters").getIsGroup(b)?(new(d("WAWebCommunityGroupJourneyEventImpl").CommunityGroupJourneyEvent)({action:d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.GROUP_NAVIGATION,surface:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.CHATLIST,chat:b}).commit(),f.$55("group",b)):f.$55("chat",b)});return function(b,c){return a.apply(this,arguments)}}();f.$57=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield d("WAWebChatlistUtils").openOrCreateLatestChat(b.id));f.$55("contact",a);f.props.mode===c("WAWebChatlistPanelMode").CallsTab&&d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()});return function(b,c){return a.apply(this,arguments)}}();f.$58=function(a,e,g,h){a.preventDefault();a.stopPropagation();f.props.mode===c("WAWebChatlistPanelMode").CommandPalette&&d("WAWebModalManager").ModalManager.close();if(e instanceof d("WAWebMsgModel").Msg){var i=d("WAWebFrontendMsgGetters").getChat(e);void i.getEventMsgs().initialize();var j=d("WAWebChatMessageSearch").getSearchContext(i,e.id);j.msg=e;void f.$54(a,i,j)}else if(e instanceof d("WAWebChatModel").Chat){void e.getEventMsgs().initialize();g!=null?void f.$54(a,e,g,h):((i=e.groupMetadata)==null?void 0:i.groupType)===d("WAWebGroupType").GroupType.COMMUNITY?d("WAWebCmd").Cmd.openCommunityHome(e.id,!1):void f.$56(a,e)}else if(e instanceof c("WAWebContactModel"))void f.$57(a,e);else if(e instanceof c("WAWebCommandModel"))switch(e.type){case"setting":d("WAWebDrawerManager").DrawerManager.openDrawerLeft(o.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{initialStep:d("WAWebSettingsConst").SettingsSteps.cast(e.id)}));break;case"action":c("WAWebKeyboardRun")(e.name);break}else!c("gkx")("26258")&&b("cr:5932")&&e instanceof b("cr:5932")&&void (q==null?void 0:q(e))};f.$59=function(a){var b,c=f.searchQuery.query,d=f.searchQuery.filter;c=(b=(b=(b=(b=(b=(b=f.getFilteredDebugCommands(c)[0])!=null?b:f.getFilteredActions(c)[0])!=null?b:f.getFilteredSettings(c)[0])!=null?b:f.getFilteredCommunities(c)[0])!=null?b:f.$28(c,d)[0])!=null?b:f.getFilteredContacts({searchText:c,filter:d})[0])!=null?b:f.ftsMsgs.at(0);if(!c)return;f.$58(a,c)};f.$39=function(){d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(function(a){if(a&&f.props.mode!==c("WAWebChatlistPanelMode").CommandPalette)return;c("WAWebFocusIndicator").shouldIndicateFocus();f.indicateFocus();c("WAWebFocusTracer").focus(f.refSearch)})};f.indicateFocus=function(){d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()||c("WAWebFocusIndicator").maybeIndicateFocus(f.$19)};f.$60=function(a){f.$13(a.target)};f.getEmptyChatlistState=function(a){var b=f.state,c=b.chats,e=b.contacts,g=b.messages,h=b.communities,i=b.debugCommands,j=b.actions;b=b.settingsCommands;if((c==null?void 0:c.length)||(e==null?void 0:e.length)||a.length||(g==null?void 0:g.length)||(h==null?void 0:h.length)||(i==null?void 0:i.length)||(j==null?void 0:j.length)||(b==null?void 0:b.length))return[null,null];if(f.props.labelFilter)return f.state.searching?[o.jsx("span",{},"null"),null]:[o.jsx(d("WAWebEmptyState.react").NoResultForLabel,{labelId:f.props.labelFilter},"no-result-for-label"),d("WAWebEmptyState.react").noResultForLabelFbt(f.props.labelFilter)];if(f.searchQuery.query)return f.state.searching?[o.jsx(d("WAWebEmptyState.react").Searching,{},"searching"),d("WAWebEmptyState.react").searchingFbt()]:[o.jsx(d("WAWebEmptyState.react").Search,{hasFilter:f.searchQuery.hasFilter(),onClearFilter:f.$61},"search"),d("WAWebEmptyState.react").searchFbt()];if(!f.$34()&&[d("WAWebChatSearchFilters").SearchFilters.UNREAD,d("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU].concat(d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()?[d("WAWebChatSearchFilters").SearchFilters.CONTACT,d("WAWebChatSearchFilters").SearchFilters.GROUP,d("WAWebChatSearchFilters").SearchFilters.LABELS]:[]).concat(d("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled()?[d("WAWebChatSearchFilters").SearchFilters.FAVORITES]:[]).includes(f.searchQuery.filter.kind)&&f.searchQuery.filter.kind!=null){c=f.searchQuery.filter.kind;a=(e=d("WAWebEmptyState.react").getNoFilteredChatsStrings(c))==null?void 0:e.title;return[o.jsx(d("WAWebEmptyState.react").NoFilteredChats,{filter:f.searchQuery.filter,filterSession:f.$22,onClearFilter:f.$61},"no-filtered-chats"),a]}return d("WAWebChatCollection").ChatCollection.some(function(a){return d("WAWebFrontendChatGetters").getShouldAppearInList(a)})?[o.jsx(d("WAWebEmptyState.react").AllArchived,{},"all-archived"),d("WAWebEmptyState.react").allArchivedFbt()]:[o.jsx(d("WAWebEmptyState.react").ListChats,{},"list-chats"),d("WAWebEmptyState.react").listChatsFbt()]};f.$62=function(a){f.$1=a};f.$61=function(){var a;(a=f.refSearch)==null?void 0:a.clearFilter()};f.$63=function(){f.setState({showMultiSelectBar:!1}),f.$2&&f.$2.unsetAll(),f.selectableState&&f.selectableState.setSelectable(!!f.props.selectable),f.props.endMultiSelect==null?void 0:f.props.endMultiSelect()};f.$55=function(a,b){b!=null&&d("WAWebContactGetters").getIsMe(b.contact)&&d("WAWebMessageYourselfMetricUtils").UiMessageYourselfSearchAction.logMessageYourselfOpenedEvent(b,f.$34());if(d("WAWebBizGatingUtils").smartFiltersEnabled()&&(!f.props.labelFilter&&(!f.$51(f.searchQuery.filter)||f.$52()))){var c=f.searchQuery.filter,e=f.$22.sessionId;void d("WAWebFilterLogging").logSearchItemSelectedFilterEvent(e,c,a,b==null?void 0:b.id);b&&d("WAWebComposeBoxActions").ComposeBoxActions.addMsgSendingLogAttributes(b,{handleOnce:function(){void d("WAWebFilterLogging").logSearchMsgSentFilterEvent(e,c,a,b.id)}})}};f.$44=function(a){a===void 0&&(a=!1);d("WAWebCmd").Cmd.chatListVisibilityChange(!a);if(!f.searchQuery.filter.kind)return;if(a&&f.$27)return;var e=f.props.getUnmountSignal();a=new(i||(i=b("Promise")))(function(a){self.setTimeout(function(){return d("WAWebDrawerManager").DrawerManager.existsDrawerLeft(a)},0)});var g=new i(function(a){self.setTimeout(function(){return d("WAWebModalManager").ModalManager.exists(a)},0)}),h=new i(function(a){self.setTimeout(function(){return d("WAWebModalManager").ModalManager.existsMedia(a)},0)});i.all([a,g,h]).then(function(a){var b=a[0],g=a[1];a=a[2];if(e.aborted)return;b=b||g||a;if(b)f.$27=!0;else if(f.$27){f.$27=!1;if(f.$26!=null){g=Date.now()-c("WANullthrows")(f.$26);a=d("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")*1e3;g>=a&&f.$35(f.searchQuery.query,{kind:null})}}})["catch"](c("WAWebNoop"))};f.ftsMsgs=f.props.mode===c("WAWebChatlistPanelMode").CallsTab?new(c("WAWebFtsMsgsCallLogCollection"))():new(c("WAWebFtsMsgsCollection"))();f.selection=new(c("WAWebSingleSelection"))([],function(a){return a.id.toString()});f.searchQuery=new(d("WAWebChatSearchQuery").SearchQuery)();f.$2=f.props.multiSelection||new(c("WAWebMultiSelection"))([],function(a){return a.id.toString()});f.$4=f.props.debounce(function(a){var e;a===void 0&&(a=!1);f.props.labelFilter||f.logSearchEvent();var g=f.searchQuery.trimmed();(e=f.$6)==null?void 0:e.abort();f.$6=new AbortController();e=f.$6.signal;var h=f.props.getUnmountSignal(),j=(i||(i=b("Promise"))).resolve().then(function(){!a&&!f.isFTSSearching()&&f.debounceSetState({searching:!0},z)}).then(function(){a&&f.ftsMsgs.resetSearch();return f.ftsMsgs.search({count:d("WAWebFtsConstants").FTS_NUM_RESULTS,filter:f.searchQuery.filter,searchTerm:g})});f.$5=c("WAPromiseRaceAbort")(j,e).then(function(b){if(h.aborted)return;b&&!b.canceled&&(f.debounceSetState({searching:!1},z),a&&f.forceUpdate())})["catch"](d("WAAbortError").catchAbort(c("WAWebNoop")))["finally"](function(){f.$5=void 0,f.$6=void 0})["catch"](function(){f.isFTSSearching()&&f.debounceSetState({searching:!1},z)})},d("WAWebFtsConstants").FTS_TYPING_DELAY);f.$7=f.props.throttle(function(a,b){a=f.$28(a,b);f.debounceSetState({chats:a},z,y)},r.THROTTLE,{leading:!1,trailing:!0});f.$8=f.props.throttle(function(a,b){a=f.getFilteredContacts({searchText:a,filter:b,includeChats:f.props.mode===c("WAWebChatlistPanelMode").CallsTab});f.debounceSetState({contacts:a},z,y)},r.THROTTLE,{leading:!1,trailing:!0});f.$9=f.props.throttle(function(a){a=f.getFilteredActions(a);f.debounceSetState({actions:a},z,y)},r.THROTTLE,{leading:!1,trailing:!0});f.$10=f.props.throttle(function(a){a=f.getFilteredDebugCommands(a);f.debounceSetState({debugCommands:a},z,y)},r.THROTTLE,{leading:!1,trailing:!0});f.$11=f.props.throttle(function(a){a=f.getFilteredCommunities(a);f.debounceSetState({communities:a},z,y)},r.THROTTLE,{leading:!1,trailing:!0});f.$12=f.props.throttle(function(a){a=f.getFilteredSettings(a);f.debounceSetState({settingsCommands:a},z,y)},r.THROTTLE,{leading:!1,trailing:!0});f.$13=f.props.throttle(function(a){f.shouldFTSSearch(a)&&f.fullTextSearch()},100);f.$14=c("lodash").debounce(function(){var a=f.searchQuery.trimmed();if(!a){f.setState({commonGroups:[]});return}var e=f.searchQuery.filter;if(e.kind===d("WAWebChatSearchFilters").SearchFilters.CONTACT||e.kind===d("WAWebChatSearchFilters").SearchFilters.NON_CONTACT||e.kind===d("WAWebChatSearchFilters").SearchFilters.FAVORITES){f.setState({commonGroups:[]});return}var g=d("WAWebABProps").getABPropConfigValue("web_max_contacts_to_show_common_groups"),h=f.getFilteredContacts({searchText:a,filter:e,includeChats:!0,includeNonContacts:!0,cancelAt:g+1});if(h.length===0){f.setState({commonGroups:[]});return}e=h.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{yield d("WAWebFindCommonGroupsContactAction").findCommonGroups(a);return a.commonGroups}catch(a){d("WALogger").ERROR(m()).verbose().devConsole(a).sendLogs("get from participants table failed when finding common groups: "+a);throw c("err")("get from participants table failed")}});return function(b){return a.apply(this,arguments)}}());(g=f.$17)==null?void 0:g.abort();f.$17=new AbortController();g=f.$17.signal;f.$16=c("WAPromiseRaceAbort")((i||(i=b("Promise"))).all(e),g).then(function(b){if(a===f.searchQuery.trimmed()){b=f.$30(b,h);f.setState({commonGroups:b})}})["catch"](c("WAWebNoop"))["finally"](function(){f.$16=null,f.$17=null})},750);f.$15=c("lodash").debounce(function(a){void f.$31(a)},1e3);e=f.props;var g=e.labelFilter;e=e.multiSelectEntryPoint;g=f.props.labelFilter?{label:g}:void 0;f.state=babelHelpers["extends"]({searching:!1,chats:f.$28("",g),contacts:f.getFilteredContacts({searchText:"",filter:g}),actions:f.getFilteredActions(""),debugCommands:f.getFilteredDebugCommands(""),communities:f.getFilteredCommunities(""),settingsCommands:f.getFilteredSettings(""),commonGroups:[],showMultiSelectBar:!1,multiSelectEntryPoint:e,chatlistKeyId:0,filterPreset:g,isOverflowing:!1,lockedChatsEntryPointVisible:!1},{},{showOfflineToastbar:d("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===d("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.Toastbar});f.searchQuery.updateLabelQuery(g);f.$32(g);return f}var f=e.prototype;f.$34=function(){return this.props.mode===c("WAWebChatlistPanelMode").CallsTab||Boolean(this.searchQuery.query)};f.componentWillMount=function(){this.props.mode===c("WAWebChatlistPanelMode").CallsTab&&this.$35("")};f.componentDidMount=function(){var a=this,b=this.props,e=b.labelFilter,f=b.listeners;b=b.mode;b===c("WAWebChatlistPanelMode").CommandPalette&&(d("WAWebCommandCollection").CommandCollection.reset(),d("WAWebCommandCollection").CommandCollection.initializeCommands());e&&this.$35("",{label:e});this.$36();f.add(d("WAWebChatCollection").ChatCollection,"remove",function(b){if(a.searchQuery.query){b=c("lodash").without(a.state.chats,b);a.state.chats&&b.length!==a.state.chats.length&&a.debounceSetState({chats:b})}else a.$7.cancel(),a.debounceSetState({chats:a.$28(void 0,a.searchQuery.filter)})});f.add(d("WAWebContactCollection").ContactCollection,"remove",function(b){if(a.$34()){b=c("lodash").without(a.state.contacts,b);a.state.contacts&&b.length!==a.state.contacts.length&&a.debounceSetState({contacts:b})}else a.$8.cancel(),a.debounceSetState({contacts:a.getFilteredContacts({searchText:void 0,filter:a.searchQuery.filter})})});d("WAWebChatAssignmentUtils").canAssignChats()&&f.add(d("WAWebChatAssignmentCollection").ChatAssignmentCollection,"add remove",function(b){if(a.searchQuery.filter.kind===d("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU)if(a.searchQuery.query){b=c("lodash").without(a.state.chats,b);a.state.chats&&b.length!==a.state.chats.length&&a.debounceSetState({chats:b})}else a.$7.cancel(),a.debounceSetState({chats:a.$28(void 0,a.searchQuery.filter)})});var g=this.props.throttle(function(b){if(a.$34()||a.searchQuery.filter.kind!==d("WAWebChatSearchFilters").SearchFilters.UNREAD&&(!d("WAWebChatAssignmentUtils").canAssignChats()||a.searchQuery.filter.kind!==d("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU))return;a.$7.cancel();var c=a.$28(void 0,a.searchQuery.filter,{includeActiveChat:!0});b&&(c=c.filter(function(a){return a!==b}));a.debounceSetState({chats:c})},r.THROTTLE);f.add(d("WAWebChatCollection").ChatCollection,"sort change:archive",function(){if(a.$34())return;if(a.searchQuery.filter.kind===d("WAWebChatSearchFilters").SearchFilters.UNREAD){g();return}if(a.searchQuery.filter.kind===d("WAWebChatSearchFilters").SearchFilters.FAVORITES){h();return}a.$7.cancel();a.debounceSetState(babelHelpers["extends"]({chats:a.$28(void 0,a.searchQuery.filter)},void 0))});f.add(d("WAWebChatCollection").ChatCollection,"change:unreadCount change:isAssignedToMe",function(){return g()});f.add(d("WAWebCmd").Cmd,"close_chat",function(a){g(a)});var h=this.props.throttle(function(b){if(a.$34()||a.searchQuery.filter.kind!==d("WAWebChatSearchFilters").SearchFilters.FAVORITES)return;a.$7.cancel();var c=a.$28(void 0,a.searchQuery.filter,{includeActiveChat:!0});b&&(c=c.filter(function(a){return a!==b}));a.debounceSetState({chats:c})},r.THROTTLE);f.add(d("WAWebChatCollection").ChatCollection,"change:isFavorite",function(){return h()});f.add(d("WAWebCmd").Cmd,"close_chat",function(a){h(a)});f.add(d("WAWebCmd").Cmd,"offline_progress_update offline_delivery_end",function(){return a.$38()});f.add(d("WAWebContactCollection").ContactCollection,"sort",function(){if(a.$34())return;a.$8.cancel();a.debounceSetState({contacts:a.getFilteredContacts({filter:a.searchQuery.filter})})});f.add(this.ftsMsgs,"bulk_remove reset",function(){if(a.$34())return;a.$7.cancel();a.debounceSetState({chats:a.$28(void 0,a.searchQuery.filter)})});f.add(d("WAWebCmd").Cmd,"focus_chat_search",this.$39);f.add(c("WAWebVoipCallsTabPanelManager"),"onWriteCallLogMessage",function(){a.$7.cancel(),a.$4(!0)});f.add(d("WAWebMsgCollection").MsgCollection,c("WAWebConstantsDeprecated").NEW_MSG_SENT,function(){a.$34()?void a.$40().then(function(){return a.$41()}):a.$41()});this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&d("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&(f.add(d("WAWebDrawerManager").DrawerManager,"open_drawer_left",function(){return a.$44(!0)}),f.add(d("WAWebDrawerManager").DrawerManager,"close_drawer_left",function(){return a.$44()}),f.add(d("WAWebModalManager").ModalManager,"open_modal open_media",function(){return a.$44(!0)}),f.add(d("WAWebModalManager").ModalManager,"close_modal close_media",function(){return a.$44()}));d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&f.add(d("WAWebChatCollection").ChatCollection,"change:contact.labels",function(){a.searchQuery.filter.kind===d("WAWebChatSearchFilters").SearchFilters.LABELS&&a.searchQuery.filter.label!=null&&(a.$7.cancel(),a.debounceSetState({chats:a.$28(void 0,a.searchQuery.filter)}))})};f.getClientWidth=function(){var a;return(a=this.$23.current)==null?void 0:a.clientWidth};f.isCommandPaletteOverflowing=function(){if(!this.$23.current)return!1;var a=this.$23.current.clientHeight,b=window.innerHeight;return a>=Math.floor(b*x)};f.containsDOMNode=function(a){return!this.$23.current?!1:this.$23.current.contains(a)};f.$37=function(){var a;return!1;var b=this.state.unreadButton===!0;if(this.$25&&!((a=this.$25)==null?void 0:a.archive)){var c=d("WAWebChatCollection").ChatCollection.indexOf(this.$25);this.$24=(c+.5)*d("WAWebFlatList.react").DEFAULT_ITEM_HEIGHT;b||(b=this.$1!=null&&this.$1.scrollTop>this.$24);this.$25=void 0}return b};f.$29=function(){this.state.unreadButton===!0&&(this.$25=void 0,this.setState({unreadButton:!1}))};f.componentWillUnmount=function(){this.$49(),this.$50(),this.$33.cancel()};f.$31=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(this.props.hideLockedChats!==!0)return;a=(yield d("WAWebChatLockUtils").validateSecretCode(a,{unlockAppOnSuccess:!0,unlockEntryPoint:d("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.SEARCH,landingSurface:d("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER}));!a&&this.state.lockedChatsEntryPointVisible&&!d("useWAWebChatLockRestriction").chatLockComponentIsMounted()&&d("WAWebChatLockUtils").lockChats();this.debounceSetState({lockedChatsEntryPointVisible:a})});function c(b){return a.apply(this,arguments)}return c}();f.$51=function(a){return!a||!!(!a.label&&!a.kind)};f.$64=function(){return!1};f.$65=function(){return Boolean(this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&this.props.showArchiveV2===!0&&!this.state.showMultiSelectBar&&this.searchQuery.isEmptyQuery()&&!this.searchQuery.hasFilter()&&this.state.chats&&this.state.chats.length>0&&d("WAWebChatCollection").ChatCollection.some(function(a){return a.archive&&d("WAWebFrontendChatGetters").getShouldAppearInList(a)}))};f.$66=function(){return!d("WAWebChatLockGatingUtils").chatLockSideNavEnabled()&&d("WAWebChatLockUtils").shouldShowChatLockEntryPoints()&&(this.props.hideLockedChats!==!0&&this.searchQuery.isEmptyQuery()&&!this.searchQuery.hasFilter()||this.state.lockedChatsEntryPointVisible)&&this.props.mode===c("WAWebChatlistPanelMode").Chatlist&&!this.state.showMultiSelectBar};f.logSearchEvent=function(){d("WAWebBizGatingUtils").smartFiltersEnabled()&&d("WAWebFilterLogging").logSearchFilterEvent(this.$22.sessionId,this.searchQuery.filter)};f.$38=function(){this.debounceSetState({showOfflineToastbar:d("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===d("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.Toastbar})};f.componentDidUpdate=function(){if(this.props.mode===c("WAWebChatlistPanelMode").CommandPalette){var a=this.isCommandPaletteOverflowing();a!==this.state.isOverflowing&&this.setState({isOverflowing:a})}};f.$67=function(){if(this.$52())return!0;var a=d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled();if(a===!1&&this.searchQuery.hasLabelFilter())return!0;if(this.searchQuery.filter.kind==null)return!1;a=a?d("WAWebChatSearchFilters").isFilterExcludedFromSearchTreatmentInInboxFlow:d("WAWebChatSearchFilters").isFilterExcludedFromSearchTreatmentInNormalFlow;return!a(this.searchQuery.filter.kind)?!0:!1};f.render=function(){var a=this,b=this.state,e=b.chats,f=b.contacts,g=b.commonGroups,i=b.actions,k=b.debugCommands,l=b.communities,m=b.settingsCommands,n=b.filterPreset,p=b.messages;b=b.isOverflowing;var q=this.props.mode,r=this.ftsMsgs.toArray(),s=this.getEmptyChatlistState(r),t=s[1];s=s[0];var u,v=d("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled(),w=this.$67();if(s==null&&(q===c("WAWebChatlistPanelMode").CallsTab||q===c("WAWebChatlistPanelMode").Chatlist||q===c("WAWebChatlistPanelMode").CommandPalette&&this.searchQuery.query.length>0)){s=o.jsx(c("WAWebChatlist.react"),{ref:this.$21,flatListController:this.flatListController,chats:e,contacts:f||[],messages:p||[],actions:i||[],debugCommands:k||[],communities:l||[],settings:m||[],filterPreset:n,commonGroups:g,isSearching:w,isSearchInputFocused:!!((f=this.refSearch)==null?void 0:f.hasFocus()),searchQuery:this.searchQuery,ftsResult:r,selection:this.selection,onFocusSearch:this.$39,onFocusFilters:this.$53,multiSelection:this.$2,onStartMultiSelect:this.$48,selectableState:this.selectableState,onItemClick:this.$58,mode:q},this.state.chatlistKeyId)}this.state.showOfflineToastbar===!0&&(u=o.jsx(d("WAWebOfflineResumeProgressToastbar.react").WAWebOfflineResumeProgressToastbar,{}));u==null&&s!=null&&q===c("WAWebChatlistPanelMode").Chatlist&&(u=this.$34()?o.jsx(d("WAWebDesktopUpsellSearchToastbar.react").WAWebDesktopUpsellSearchToastbar,{}):o.jsx(d("WAWebDesktopUpsellChatlistToastbar.react").WAWebDesktopUpsellChatlistToastbar,{}));p=this.state.searching&&this.props.labelFilter||this.state.searching&&this.ftsMsgs.length?o.jsx("div",{className:c("WAWebChatlistPanel.scss").spinner,children:o.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24})},"spinner"):null;i=q===c("WAWebChatlistPanelMode").CommandPalette;l=d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebChatlistPanel.scss").chatListPanel,(k={},k[c("WAWebChatlistPanel.scss").commandPaletteContainer]=i,k[c("WAWebChatlistPanel.scss").overflow]=i&&b,k[c("WAWebChatlistPanel.scss").noOverflow]=i&&!b,k));m=this.ftsMsgs.hasMoreMsgs&&r.length||this.$64()?this.$60:void 0;var x;n=null;var y,z,B;this.state.showMultiSelectBar||this.state.multiSelectEntryPoint===d("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown?(x=o.jsx(d("WAWebUimUie.react").UIE,{displayName:"MultiSelect",escapable:!0,dismissOnWindowResize:!0,requestDismiss:this.$63,children:d("WAWebConnModel").Conn.isSMB?o.jsx(c("WAWebMixedMultiSelectBar.react"),{theme:"chatlist-panel",selectedModels:this.$2,labelEditEnabled:this.state.multiSelectEntryPoint===d("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.Label,multiSelectEntryPoint:this.state.multiSelectEntryPoint,onCancel:this.$63}):o.jsx(c("WAWebConsumerMultiSelectBar.react"),{selectedModels:this.$2,onCancel:this.$63})},"multiSelectBar"),t=t==null&&x!=null?h._(/*BTDS*/"__JHASH__a2Q2w4qADl6__JHASH__"):t):(y=o.jsx("div",{onFocus:this.indicateFocus,ref:this.$20,className:c("WAWebChatlistPanel.scss").panelSearch,children:o.jsx(d("WAWebChatListSearch.react").ListSearch,{ref:this.setRefSearch,handleKeyDown:this.$47,onSearch:this.$35,onEnter:this.$59,loading:this.state.searching,filterSession:this.$22,listFilterEnabled:q===c("WAWebChatlistPanelMode").Chatlist&&!v,chatlistFilterEnabled:q===c("WAWebChatlistPanelMode").Chatlist&&!v,inboxFiltersEnabled:q===c("WAWebChatlistPanelMode").Chatlist&&v,inboxFilter:this.searchQuery.filter,focusOnMount:q===c("WAWebChatlistPanelMode").CommandPalette,mode:q,borderBottom:q===c("WAWebChatlistPanelMode").CallsTab?!1:void 0,showPlaceholderUntilType:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})}),q===c("WAWebChatlistPanelMode").Chatlist&&v&&(z=o.jsx(d("WAWebChatListFilters.react").ChatListFilters,{ref:this.$18,filter:this.searchQuery.filter,filterSession:this.$22,onFilterChange:function(b){a.$26=b.kind==null?void 0:Date.now(),a.$35(a.searchQuery.query,b)}})));if(!this.props.labelFilter){!c("gkx")("26258")&&this.state.unreadButton===!0&&(g=o.jsx("div",{className:c("WAWebChatlistPanel.scss").unread,children:o.jsxs("div",{className:c("WAWebChatlistPanel.scss").unreadBody,onClick:this.$41,role:"button",children:[o.jsx("span",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiMargin.end8),{children:o.jsx(d("WAWebChevronCustomIcons").ChevronUpCustomIcon,{xstyle:A.unreadIcon,height:19,displayInline:!0})})),h._(/*BTDS*/"__JHASH__UKVHIcOcljE__JHASH__")]})}));f=q===c("WAWebChatlistPanelMode").CallsTab||i||w||x?null:o.jsx(c("WAWebChatlistBanners.react"),{});n=o.jsxs(o.Fragment,{children:[y,z,f,x,null]})}this.$65()&&(B=o.jsx(c("WAWebChatArchivedEntryPoint.react"),{}));var C;this.$66()&&(C=o.jsx(c("WAWebChatLockedEntryPoint.react"),{onOpen:function(){void a.$40()}}));var D;u==null&&(this.$52()||this.searchQuery.hasLabelFilter())&&(D=o.jsx(d("WAWebHistorySyncComponents.react").HistorySyncSearchIncompletePlaceholder,{}));k=(b=e==null?void 0:e.length)!=null?b:0;r=d("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()&&k>0?o.jsx(d("WAWebPrivacyNarrativeE2EMessage.react").E2eMessageChatList,{}):null;v=t!=null?o.jsx(d("WAWebAccessibility.react").InvisibleAnnouncement,{text:t}):null;return o.jsxs("div",{id:"side",className:l,ref:this.$23,children:[o.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"app-header",children:n}),o.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list",type:"fatal",children:o.jsxs(c("WAWebFlatListContainer.react"),{flatListControllers:[this.flatListController],ref:this.$62,className:d("WAWebClassnames").classnamesConvertMeToStylexPlease(c("WAWebChatlistPanel.scss").panelBody,(g={},g[c("WAWebChatlistPanel.scss").commandPalette]=q===c("WAWebChatlistPanelMode").CommandPalette,g)),onScroll:m,id:"pane-side",children:[!d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&C,!d("WAWebUIRefreshGatingUtils").sideNavSecondarySectionEnabled()&&B,v,s,p,q===c("WAWebChatlistPanelMode").Chatlist&&((i=D)!=null?i:r)]})}),o.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"out-of-chat-player",children:o.jsx(d("WAWebPttOocPlayer").OutOfChatPlayer,{})}),o.jsx(d("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list-toastbar",children:(w=u)!=null?w:null})]})};return e}(e);a=c("WAWebUnmountSignalHoc_DEPRECATED.react")(c("WAWebTimerHoc_DEPRECATED.react")(d("WAWebListenerHoc_DEPRECATED").ListenerHOC(f)));s=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.getClientWidth=function(){return this.getComponent().getClientWidth()};c.containsDOMNode=function(a){return this.getComponent().containsDOMNode(a)};return b}(a);g.getFiltersWhichArchivedChats=w;g.ChatlistPanel=s}),226); __d("WAWebBrigadingButterBar.react",["fbt","WAWebButterbar.react","WAWebChevronIcon.react","WAWebDrawerManager","WAWebFlex.react","WAWebSettingsConst","WAWebSettingsFlow.react","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUserPrefsGeneral","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={icon:{height:"xrza7oe",width:"x1ksu7kd",color:"xw2npq5",$$css:!0}};function a(a){var b=a.onDismiss,e=a.ref;a=a.state;var f=d("WAWebUserPrefsGeneral").getUserPrivacySettings();f=f==null?void 0:f.messages;var g=a==="ENFORCED"&&f==="contacts";f=a==="DETECTED"&&f==="all";var i=a==="NOT_ENFORCED";if(!(g||f||i))return null;g=h._(/*BTDS*/"__JHASH__zTUGWeghucI__JHASH__");f=function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebSettingsFlow.react").SettingsFlow,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:d("WAWebSettingsConst").SettingsSteps.PrivacySettings}))};var l,m,n,o,p;switch(a){case"DETECTED":l=g;m=h._(/*BTDS*/"__JHASH__YvDAP-a5lcz__JHASH__");n=h._(/*BTDS*/"__JHASH__olTmzyc-zmv__JHASH__");p=f;o="brigadingWarning";break;case"ENFORCED":l=g;m=h._(/*BTDS*/"__JHASH__rQJcbtJvEto__JHASH__");n=h._(/*BTDS*/"__JHASH__HVwDcbdaybK__JHASH__");p=f;o="brigadingWarning";break;case"NOT_ENFORCED":l=h._(/*BTDS*/"__JHASH__b9rX91NvY7m__JHASH__");m=h._(/*BTDS*/"__JHASH__Ef5hyDlV2Fq__JHASH__");o="brigadingNotification";break;default:break}return o==null?null:j.jsx(c("WAWebButterbar.react"),{ref:e,type:o,text:j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebText.react").WAWebTextLarge,{color:"primary",marginBottom:4,children:l}),j.jsx(d("WAWebText.react").WAWebTextTitle,{color:"primary",children:m}),n!=null&&p!=null&&j.jsx(d("WAWebText.react").WDSClickableText,{onClick:p,color:"primary",children:j.jsxs(d("WAWebFlex.react").FlexRow,{padding:0,margin:0,children:[j.jsx(d("WAWebText.react").WAWebTextTitle,{color:"primary",alignSelf:"center",children:n}),j.jsx(d("WAWebChevronIcon.react").ChevronIcon,{iconXstyle:k.icon,directional:!0})]})})]}),onDismiss:b,useWDS:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewsletterSubscriberListModal.react",["$InternalEnum","WAWebNewsletterFullPendingInvitesList.react","WAWebNewsletterFullSubscriberList.react","react","useWAWebFlow"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j=b("$InternalEnum").Mirrored(["Followers","PendingInvites"]);function a(a){var b=a.initialStep;b=b===void 0?j.Followers:b;var e=a.newsletter,f=a.onTransferOwnershipSelection;a=a.onVerification;b=d("useWAWebFlow").useFlow(b);var g=b[1];if(!g.step)return null;switch(g.step){case j.Followers:return i.jsx(c("WAWebNewsletterFullSubscriberList.react"),{onCancel:function(){return g.pop()},newsletter:e,onVerification:a,onTransferOwnershipSelection:f});case j.PendingInvites:return i.jsx(c("WAWebNewsletterFullPendingInvitesList.react"),{onCancel:function(){return g.pop()},newsletter:e,onVerification:a})}}a.displayName=a.name+" [from "+f.id+"]";g.FollowersFlowStep=j;g.NewsletterSubscriberListModal=a}),98); __d("WAWebMexFetchNewsletterPendingInvitesJobQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"}],b=[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},d={alias:null,args:null,concreteType:"XWA2NewsletterInvitedUser",kind:"LinkedField",name:"pending_admin_invites",plural:!0,selections:[{alias:null,args:null,concreteType:"XWA2User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"pn",storageKey:null},c],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterPendingInvitesJobQuery",selections:[{alias:null,args:b,concreteType:"XWA2NewsletterAdmin",kind:"LinkedField",name:"xwa2_newsletter_admin",plural:!1,selections:[d],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebMexFetchNewsletterPendingInvitesJobQuery",selections:[{alias:null,args:b,concreteType:"XWA2NewsletterAdmin",kind:"LinkedField",name:"xwa2_newsletter_admin",plural:!1,selections:[d,c],storageKey:null}]},params:{id:"7094842943899573",metadata:{},name:"WAWebMexFetchNewsletterPendingInvitesJobQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("WAWebMexFetchNewsletterPendingInvitesJob",["WALogger","WAWebMexClient","WAWebMexFetchNewsletterPendingInvitesJobQuery.graphql","WAWebNewsletterGatingUtils","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER] fetched pending invites for ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[mexFetchNewsletterPendingInvites] creation ABProp not enabled"]);j=function(){return a};return a}var k=h!==void 0?h:h=b("WAWebMexFetchNewsletterPendingInvitesJobQuery.graphql");function a(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b={newsletter_id:a};if(!d("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()){d("WALogger").ERROR(j()).tags("newsletter");return null}b=(yield d("WAWebMexClient").fetchQuery(k,b));d("WALogger").LOG(i(),a).tags("GQL","MEX").devConsole({response:b});a=(a=b.xwa2_newsletter_admin)==null?void 0:(b=a.pending_admin_invites)==null?void 0:b.map(function(a){var b;a=(b=a==null?void 0:(b=a.user)==null?void 0:b.pn)!=null?b:a==null?void 0:(b=a.user)==null?void 0:b.id;return a!=null?d("WAWebWidFactory").createWid(a):null}).filter(Boolean);return a});return l.apply(this,arguments)}g.mexFetchNewsletterPendingInvites=a}),98); __d("WAWebNewsletterPendingInvitesQueryJob",["WAWebMexFetchNewsletterPendingInvitesJob","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){var c=function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebMexFetchNewsletterPendingInvitesJob").mexFetchNewsletterPendingInvites(a)});return function(){return c.apply(this,arguments)}}();return d("WAWebNewsletterRpcUtils").runWithBackoff(c)}g.getNewsletterPendingInvites=a}),98); __d("WAWebNewsletterPendingInvitesJob",["WAJobOrchestratorTypes","WAWebNewsletterPendingInvitesQueryJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterPendingInvites",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebNewsletterPendingInvitesQueryJob").getNewsletterPendingInvites(a)}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.getNewsletterPendingInvites=a}),98); __d("WAWebNewsletterPendingInvitesAction",["WALogger","WAWebChatGetters","WAWebContactCollection","WAWebNewsletterMembershipUtil","WAWebNewsletterPendingInvitesJob","WAWebNewsletterSubscriberModel","WAWebNewsletterValidationUtils","WAWebWid","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][getNewsletterPendingInvitesAction] failed to get pending invites from newsletter"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][getNewsletterPendingInvitesAction] Only channel owners can see the pending invites"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][getNewsletterPendingInvitesAction] called with a non-newsletter chat"]);j=function(){return a};return a}function k(a){var b;b=(b=d("WAWebContactCollection").ContactCollection.get(a))!=null?b:d("WAWebContactCollection").ContactCollection.gadd(a);return c("WAWebWid").isLid(a)&&(b==null?void 0:b.phoneNumber)!=null?d("WAWebContactCollection").ContactCollection.get(b.phoneNumber):b}function a(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(!d("WAWebChatGetters").getIsNewsletter(a)){d("WALogger").ERROR(j()).tags("newsletter").devConsole(a.id).sendLogs("pending-invites-of-non-newsletter");return[]}if(!d("WAWebNewsletterMembershipUtil").iAmOwner(a==null?void 0:a.newsletterMetadata)){d("WALogger").ERROR(i()).tags("newsletter").devConsole(a.id).sendLogs("non-channel-owner-viewing-pending-invites");return[]}try{var b,c=d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid());c=(yield d("WAWebNewsletterPendingInvitesJob").getNewsletterPendingInvites(c));c=c==null?void 0:c.map(function(a){a=k(a);return new(d("WAWebNewsletterSubscriberModel").NewsletterSubscriber)({id:a==null?void 0:a.id,contact:a,isPendingAdmin:!0})}).filter(Boolean);c=(c=c)!=null?c:[];a==null?void 0:(b=a.newsletterMetadata)==null?void 0:(b=b.pendingAdmins)==null?void 0:b.reset();a==null?void 0:(b=a.newsletterMetadata)==null?void 0:(a=b.pendingAdmins)==null?void 0:a.add(c,{sort:!1});return c.map(function(a){return a.contact})}catch(a){d("WALogger").ERROR(h()).tags("newsletter").devConsole(a).sendLogs("pending-invites-on-newsletter-failed");return[]}});return l.apply(this,arguments)}g.getNewsletterPendingInvitesAction=a}),98); __d("useWAWebNewsletterPendingInvites",["WALogger","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterPendingInvitesAction","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[useNewsletterPendingInvites] Failed to get pending invites for newsletter ",""]);i=function(){return a};return a}var j=(h||d("react")).useEffect;function a(a){var e,f=c("useWAWebUnmountSignal")();e=c("useWAWebEventTargetValue")((e=a.newsletterMetadata)==null?void 0:e.pendingAdmins,["add","remove","change"],function(){var b;return(b=(b=a.newsletterMetadata)==null?void 0:b.pendingAdmins.map(function(a){return a.contact}).filter(Boolean))!=null?b:[]});j(function(){b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(f.aborted||!d("WAWebNewsletterMembershipUtil").iAmOwner(a.newsletterMetadata)||!d("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled())return;yield d("WAWebNewsletterPendingInvitesAction").getNewsletterPendingInvitesAction(a)})()["catch"](function(b){d("WALogger").ERROR(i(),a.id).devConsole(b).sendLogs("newsletter-hook-failed-to-get-pending-invites")})},[a,f]);return e}g.useNewsletterPendingInvites=a}),98); __d("WAWebNewsletterModalsUtils.react",["fbt","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebPencilIcon.react","WAWebSecurityShieldIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebVisibilityOffIcon.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function k(a){var b=a.Icon,c=a.iconColor;c=c===void 0?d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL_LIGHTER:c;var e=a.iconSize;e=e===void 0?24:e;var f=a.subtext,g=a.testid;g=g===void 0?"bullet-point-item":g;g=a.text;return j.jsxs(d("WAWebFlex.react").FlexRow,{testid:void 0,className:"x9f619 xh8yej3 x1qjc9v5",paddingStart:8,paddingTop:4,paddingBottom:4,marginBottom:8,children:[j.jsx(d("WAWebFlex.react").FlexColumn,{justify:"center",align:"start",shrink:0,className:"x1useyqa",children:j.jsx(b,{height:e,width:e,DEPRECATED_color:c})}),j.jsxs(d("WAWebFlex.react").FlexColumn,{children:[g!=null&&j.jsx(d("WAWebText.react").WAWebTextTitle,{children:g}),j.jsx(d("WAWebText.react").WAWebTextSmall,{children:f})]})]})}k.displayName=k.name+" [from "+f.id+"]";function a(a){a=a.bullets;return a.map(function(a,b){return j.jsx(k,{testid:void 0,Icon:a.Icon,text:a.text(),subtext:a.subtext(),iconSize:a.iconSize,iconColor:a.iconColor},b)})}a.displayName=a.name+" [from "+f.id+"]";b=[{Icon:d("WAWebPencilIcon.react").PencilIcon,text:function(){return h._(/*BTDS*/"__JHASH__RiihK6dDYCx__JHASH__")},subtext:function(){return h._(/*BTDS*/"__JHASH___IPR13RfIp4__JHASH__",[h._implicitParam("=m2",j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getNewsletterAdminInviteFaqUrlV2(),children:h._(/*BTDS*/"__JHASH__2ODM-XY64kk__JHASH__")}))])}}];e={Icon:d("WAWebVisibilityOffIcon.react").VisibilityOffIcon,text:function(){return h._(/*BTDS*/"__JHASH__ctH_b0dpsR0__JHASH__")},subtext:function(){return h._(/*BTDS*/"__JHASH__xuFfrzzsNq5__JHASH__")}};c=[].concat(b,[e,{Icon:d("WAWebSecurityShieldIcon.react").SecurityShieldIcon,text:function(){return h._(/*BTDS*/"__JHASH__sC8DCp6HMtN__JHASH__")},subtext:function(){return h._(/*BTDS*/"__JHASH__k00SEgeOxZj__JHASH__",[h._implicitParam("=m2",j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),children:h._(/*BTDS*/"__JHASH__e2V_MU1XnP6__JHASH__")}))])}}]);g.BulletPointList=a;g.MinimalBullets=b;g.VisibilityBullet=e;g.ExtendedBullets=c}),226); __d("WAWebNewsletterAdminInvitePrivacyNux.react",["fbt","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebNewsletterModalsUtils.react","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect;function m(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getNewsletterAdminInviteFaqUrlV2()),d("WAWebModalManager").ModalManager.close()}function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.viewNux;l(function(){e()},[e]);return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{ref:b,title:n.modalTitle(),onOK:a.onOk,okText:n.invite(),onCancel:m,cancelText:c("WAWebFbtCommon")("Learn more"),children:k.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",children:k.jsx(d("WAWebNewsletterModalsUtils.react").BulletPointList,{bullets:o})})})}a.displayName=a.name+" [from "+f.id+"]";var n={modalTitle:function(){return h._(/*BTDS*/"__JHASH__r5PKhtL2TGP__JHASH__")},invite:function(){return h._(/*BTDS*/"__JHASH__Jk4cgljy8mP__JHASH__")}},o=[].concat(d("WAWebNewsletterModalsUtils.react").MinimalBullets,[d("WAWebNewsletterModalsUtils.react").VisibilityBullet]);g["default"]=a}),226); __d("WAWebChatInviteWithCommentModal.react",["fbt","Promise","WAWebCellFrame.react","WAWebChatParticipantList.react","WAWebConstantsDeprecated","WAWebDetailImage.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEmojiText.react","WAWebFbtCommon","WAWebModal.react","WAWebPonyfillsFetch","WAWebProfilePicThumbCollection","WAWebRichTextField.react","WAWebRound.react","WAWebSendIcon.react","WAWebUISpacing","WAWebVelocityTransitionGroup","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k,l;e=l||d("react");var m=k||(k=c("react")),n=e.useRef,o=e.useState,p={onSendInvite:{position:"x10l6tqk",end:"x1a87ojn",left:null,right:null,bottom:"x1d9eok4",zIndex:"xhtitgo",textAlign:"x2b8uid",$$css:!0}};function a(a){var e=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var f=a.onClose,g=a.wid,k=a.onSend,l=n(null),q=n(null),r=o(a.initialInviteComment.toString()),s=r[0],t=r[1];r=function(){f()};var u=function(){var a=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.get(g);return new(i||(i=b("Promise")))(function(b){if(!a||!a.img){b(void 0);return}c("WAWebPonyfillsFetch")(a.img).then(function(a){if(!a.ok){b(void 0);return}return a.blob()}).then(function(a){if(!a)return;var c=new FileReader();c.onloadend=function(){var a=c.result;if(a==null){b(void 0);return}a=a.toString().split(",")[1];b(a)};c.readAsDataURL(a)})["catch"](function(){return b(void 0)})})},v=function(){u().then(function(a){k(s,a)})},w=function(a){a=a.text;t(a)};v=m.jsx(d("WAWebRound.react").Round,{testid:void 0,large:!0,onClick:v,label:c("WAWebFbtCommon")("Next"),children:m.jsx(d("WAWebSendIcon.react").SendIcon,{directional:!0})});var x=m.jsx(d("WAWebDetailImage.react").DetailImage,{id:a.wid}),y=m.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.chatName});return m.jsx(d("WAWebModal.react").Modal,{ref:e,type:d("WAWebModal.react").ModalTheme.Invite,testid:void 0,children:m.jsxs(c("WAWebDrawer.react"),{theme:"invite",children:[m.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,title:(e=a.customTitle)!=null?e:h._(/*BTDS*/"__JHASH__t7ehXhxTtoF__JHASH__"),onCancel:r}),m.jsxs(c("WAWebDrawerBody.react"),{children:[a.customHeader,a.hideParticipantList===!0?null:m.jsx("div",babelHelpers["extends"]({className:"x1n4lwwq xyamay9 x14ya1hp xxbrewl x14gfdix x1odjw0f x150wa6m xso031l x1q0q8m5 xcsjwe9"},{children:m.jsx("div",{"data-list-scroll-container":!0,children:m.jsx(c("WAWebChatParticipantList.react"),{ref:l,theme:"list-names",contacts:a.invitees})})})),m.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.horiz16,d("WAWebUISpacing").uiPadding.top16),{children:m.jsx(d("WAWebRichTextField.react").RichTextField,{testid:void 0,ref:q,value:s,showRemaining:!0,maxLength:c("WAWebConstantsDeprecated").MAX_CAPTION_LENGTH,onChange:w,theme:"invite-message-caption",emojiBtnPosition:"side",textFormatEnabled:!0})})),m.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"btn",xstyle:p.onSendInvite,children:v}),m.jsx("div",babelHelpers["extends"]({className:"x10l6tqk x1ey2m1c xvue9z x1q7yeco"},{children:m.jsx(c("WAWebCellFrame.react"),{idle:!0,image:x,primary:y,secondary:a.chatNameSubtitle,theme:"groups_v4_invite"})}))]})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewsletterAdminInviteWithMessageModal.react",["fbt","WAWebChatInviteWithCommentModal.react","WAWebCommonNewsletterStrings","WAWebParticipantListUtils","WAWebText.react","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={customHeader:{backgroundColor:"x150wa6m",borderBottomColor:"xcsjwe9",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",$$css:!0}};function a(a){var b=a.chat,e=a.invitees,f=a.isDirectInvite,g=a.onClose;a=a.onSend;b=d("useWAWebModelValues").useModelValues(b,["id","name"]);f=f?j.jsx(d("WAWebText.react").WAWebTextMuted,{padding:[16,24],xstyle:k.customHeader,children:d("WAWebCommonNewsletterStrings").adminPrivacyNux()}):void 0;var h=e.length===1,i=h?l.title(e[0]):void 0;return j.jsx(c("WAWebChatInviteWithCommentModal.react"),{customHeader:f,chatName:b.name,customTitle:i,wid:b.id,hideParticipantList:h,chatNameSubtitle:l.chatNameSubtitle(),initialInviteComment:l.initialInviteComment(b.name),invitees:e,onClose:g,onSend:a})}a.displayName=a.name+" [from "+f.id+"]";var l={title:function(a){a=d("WAWebParticipantListUtils").getFirstNameForContact(a);return h._(/*BTDS*/"__JHASH__XBXbmdlOrhR__JHASH__",[h._param("first-name",a)])},chatNameSubtitle:function(){return h._(/*BTDS*/"__JHASH__gQysp-mzzaX__JHASH__")},initialInviteComment:function(a){return h._(/*BTDS*/"__JHASH__2vF7slmXab5__JHASH__",[h._param("newsletter-name",a)])}};g["default"]=a}),226); __d("useWAWebNewsletterAdmins",["WAWebCommonNewsletterEnums","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g){function a(a){var b;b=c("useWAWebEventTargetValue")(a==null?void 0:(b=a.newsletterMetadata)==null?void 0:b.subscribers,["add","remove","sort","change"],function(){var b;return(b=a==null?void 0:(b=a.newsletterMetadata)==null?void 0:(b=b.subscribers)==null?void 0:(b=b.filter(function(a){return a.membership===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin||a.membership===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Owner}))==null?void 0:b.map(function(a){return a.contact}))!=null?b:[]});return b}g.useNewsletterAdmins=a}),98); __d("WAWebMexFetchNewsletterSubscribersJobQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],b=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"XWA2NewsletterSubscribersResponse",kind:"LinkedField",name:"xwa2_newsletter_subscribers",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterSubscriberConnection",kind:"LinkedField",name:"subscribers",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterSubscriberEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XWA2User",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"pn",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"subscribe_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterSubscribersJobQuery",selections:b,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebMexFetchNewsletterSubscribersJobQuery",selections:b},params:{id:"6813250488751160",metadata:{},name:"WAWebMexFetchNewsletterSubscribersJobQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("WAWebMexFetchNewsletterSubscribersJob",["WALogger","WATimeUtils","WAWebMexClient","WAWebMexFetchNewsletterSubscribersJobQuery.graphql","WAWebMexNewsletterUtils","WAWebNewsletterGatingUtils","WAWebWidFactory","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER] fetched subscribers for newsletter with id ",""]);i=function(){return a};return a}var j=h!==void 0?h:h=b("WAWebMexFetchNewsletterSubscribersJobQuery.graphql");function a(a,b){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b={input:{newsletter_id:a,count:Math.min(d("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),b)}};b=(yield d("WAWebMexClient").fetchQuery(j,b));b=b.xwa2_newsletter_subscribers;if(b==null)return null;d("WALogger").DEV(i(),a).tags("GQL","MEX").devConsole(b);if(((a=b.subscribers)==null?void 0:a.edges)==null)return{subscribers:[]};a=l(b.subscribers.edges);return{subscribers:(b=a.map(function(a){var b=a.node,c=a.role;a=a.subscribe_time;var e=b.id,f=b.pn;if(e==null)return null;a=a!=null?d("WATimeUtils").castToUnixTime(Number.parseInt(a,10)):null;f=f!=null?d("WAWebWidFactory").createWid(f):void 0;return{displayName:b.display_name,id:d("WAWebWidFactory").createWid(e),role:d("WAWebMexNewsletterUtils").mapRoleToMembership(c),phoneNumber:f,subscribeTime:a}}).filter(Boolean))!=null?b:[]}});return k.apply(this,arguments)}function l(a){var b=a.filter(function(a){return a.role==="ADMIN"||a.role==="OWNER"}),c=new Set(b.map(function(a){return a.node.id}));a=a.filter(function(a){return!c.has(a.node.id)});return[].concat(b,a)}g.mexFetchNewsletterSubscribers=a}),98); __d("WAWebNewsletterSubscriberListQueryJob",["WAWebMexFetchNewsletterSubscribersJob","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,c){var e=function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebMexFetchNewsletterSubscribersJob").mexFetchNewsletterSubscribers(a,c)});return function(){return e.apply(this,arguments)}}();return d("WAWebNewsletterRpcUtils").runWithBackoff(e)}g.getNewsletterSubscribers=a}),98); __d("WAWebNewsletterSubscriberListJob",["WAJobOrchestratorTypes","WAWebNewsletterSubscriberListQueryJob","WAWebOrchestratorNonPersistedJob","WAWebUserPrefsNewsletter","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,c,e){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterSubscribers",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b={view:e,newsletterJid:a},f=(yield d("WAWebUserPrefsNewsletter").NewsletterSubscribersCache.get(b));if(f!=null)return{subscribers:f};f=(yield d("WAWebNewsletterSubscriberListQueryJob").getNewsletterSubscribers(a,c));(f==null?void 0:f.subscribers)!=null&&(yield d("WAWebUserPrefsNewsletter").NewsletterSubscribersCache.set(b,f.subscribers));return f}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.getNewsletterSubscribers=a}),98); __d("WAWebNewsletterSubscriberListAction",["WALogger","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebContactCollection","WAWebContactGetters","WAWebNewsletterMembershipUtil","WAWebNewsletterSubscriberListJob","WAWebNewsletterSubscriberModel","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][getNewsletterSubscribersAction] failed to get subscribers from newsletter"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][getNewsletterSubscribersAction] called with a non-newsletter chat"]);i=function(){return a};return a}function j(a,b){var c;if(b==null)return;b=b.map(function(a){var b=a.contact;a=a.role;return new(d("WAWebNewsletterSubscriberModel").NewsletterSubscriber)({id:b.id,contact:b,membership:a,isPendingAdmin:!1})});(c=a.newsletterMetadata)==null?void 0:(c=c.subscribers)==null?void 0:c.reset();(c=a.newsletterMetadata)==null?void 0:(a=c.subscribers)==null?void 0:a.add(b,{sort:!0})}function k(a){if(a==null)return[];a=a.reduce(function(a,b){var c=d("WAWebContactCollection").ContactCollection.get(b.id);c=(c==null?void 0:c.phoneNumber)?d("WAWebContactCollection").ContactCollection.get(c.phoneNumber):c;var e=b.role===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin||b.role===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Owner;if(c==null){if(!e)return a;var f=d("WAWebContactCollection").ContactCollection.gadd({id:b.id,phoneNumber:b.phoneNumber,name:b.displayName,type:"out"});a.push({contact:f,role:b.role})}else{if(!e&&!d("WAWebContactGetters").getIsMyContact(c))return a;e&&c.phoneNumber==null&&c.set({phoneNumber:b.phoneNumber});a.push({contact:c,role:b.role})}return a},[]);return a}var l=9;function a(a,b,c){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){if(!d("WAWebChatGetters").getIsNewsletter(a)){d("WALogger").ERROR(i()).tags("newsletter").devConsole(a.id).sendLogs("get-subscribers-of-non-newsletter");return{subscribers:null,hasMore:!1}}if(!d("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(a==null?void 0:a.newsletterMetadata))return{subscribers:null,hasMore:!1};try{var e=d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid());e=(yield d("WAWebNewsletterSubscriberListJob").getNewsletterSubscribers(e,b,c));c=(b=e==null?void 0:e.subscribers.length)!=null?b:0;b={subscribers:k(e==null?void 0:e.subscribers),hasMore:c>=l};yield j(a,b.subscribers);return b}catch(a){d("WALogger").ERROR(h()).tags("newsletter").devConsole(a).sendLogs("get-subscribers-from-newsletter-failed");return{subscribers:null,hasMore:!1}}});return m.apply(this,arguments)}g.getSubscribersInContacts=k;g.NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT=l;g.getNewsletterSubscribersAction=a}),98); __d("useWAWebNewsletterSubscribers",["WALogger","WAWebContactCollection","WAWebNewsletterGatingUtils","WAWebNewsletterSubscriberListAction","WAWebUserPrefsNewsletter","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[useNewsletterSubscribers] Failed to get subscribers for newsletter ",""]);i=function(){return a};return a}var j=(h||d("react")).useEffect;function k(a){var e=a.newsletter,f=a.cacheType,g=a.count;a=a.includeMeContact;var h=a===void 0?!1:a,k=c("useWAWebUnmountSignal")();a=c("useWAWebEventTargetValue")(e==null?void 0:(a=e.newsletterMetadata)==null?void 0:a.subscribers,["add","remove","sort","change"],function(){var a;a=(a=e==null?void 0:(a=e.newsletterMetadata)==null?void 0:(a=a.subscribers)==null?void 0:a.map(function(a){return{contact:a.contact,role:a.membership}}))!=null?a:[];var b=d("WAWebContactCollection").ContactCollection.getMeContact();if(h&&b!=null){a.unshift({contact:b,role:e==null?void 0:(b=e.newsletterMetadata)==null?void 0:b.membershipType})}return[a,a.length>=d("WAWebNewsletterSubscriberListAction").NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT]});var l=a[0];a=a[1];j(function(){b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(k.aborted)return;yield d("WAWebNewsletterSubscriberListAction").getNewsletterSubscribersAction(e,g,f)})()["catch"](function(a){d("WALogger").ERROR(i(),e.id).devConsole(a).sendLogs("newsletter-hook-failed-to-get-subscribers")})},[e,k.aborted,g,f,h]);return[l,a]}function a(a){a=k({newsletter:a,cacheType:d("WAWebUserPrefsNewsletter").ValidCachedNewsletterSubscriberKeys.FULL,count:d("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),includeMeContact:!1});a=a[0];return a.map(function(a){return a.contact})}g.useNewsletterSubscribers=k;g.useNewsletterAllSubscribers=a}),98); __d("WAWebNewsletterAdminSelectionModal.react",["fbt","WAWebApiContact","WAWebChatGetters","WAWebCommonNewsletterStrings","WAWebFrontendChatGetters","WAWebMultiSelectContactList.react","WAWebNewsletterGatingUtils","WAWebSelectModal.react","WAWebSelectModalFooter.react","WAWebText.react","WAWebWid","WAWebWidFactory","react","useWAWebChatValues","useWAWebNewsletterAdmins","useWAWebNewsletterPendingInvites","useWAWebNewsletterSubscribers"],(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={customHeader:{backgroundColor:"x150wa6m",borderBottomColor:"xcsjwe9",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",$$css:!0}};function a(a){var b=a.chat;a=a.onConfirm;var c=d("useWAWebChatValues").useChatValues(b.id,[d("WAWebChatGetters").getId,d("WAWebFrontendChatGetters").getNewsletterMetadata,d("WAWebChatGetters").getIsNewsletter,d("WAWebChatGetters").getId]);c[0];c[1];c[2];c=d("useWAWebNewsletterPendingInvites").useNewsletterPendingInvites(b);var e=new Set(c.map(function(a){return(a=a.phoneNumber)==null?void 0:a.toString()})),f=d("useWAWebNewsletterAdmins").useNewsletterAdmins(b),g=d("useWAWebNewsletterSubscribers").useNewsletterAllSubscribers(b),h=new Set(f.map(function(a){return a.id.toString()}));b=d("WAWebNewsletterGatingUtils").getMaxNumberOfAdmins()-(f.length+c.length);var i=function(a){return h.has(a.toString())},j=function(a){return e.has(a.toString())};f=function(a){return i(a.id)||j(a.id)};c=function(a){if(i(a))return q.alreadyAnAdmin();if(j(a))return q.alreadyInvited()};return k.jsx(o,{customSecondaryText:c,maxItems:b,isDisabled:f,onConfirm:a,customGetData:function(a){return p(g,a)}})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.customGetData,c=a.customSecondaryText,e=a.isDisabled,f=a.maxItems;a=a.onConfirm;var g=m(0),h=g[0],i=g[1];g=l(function(a,b,c){i(c.length)},[]);h=k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebText.react").WAWebTextLarge,{color:"white",children:q.modalTitle()}),k.jsx(d("WAWebText.react").WAWebTextSmall,{color:"white",children:q.modalSubtitle(h,f)})]});var j=k.jsx(d("WAWebText.react").WAWebTextMuted,{padding:[16,24],xstyle:n.customHeader,children:q.privacyNux()});return k.jsx(d("WAWebSelectModal.react").SelectModal,{customHeader:j,onSelectionChanged:g,headerChildren:h,listType:d("WAWebSelectModal.react").ListType.ParticipantManageModal,onConfirm:a,maxItems:f,isDisabled:e,customSecondaryText:c,singleSelectionFooterType:d("WAWebSelectModalFooter.react").FooterType.CONFIRM,multipleSelectionFooterType:d("WAWebSelectModalFooter.react").FooterType.CONFIRM,shouldShowSelectionSummary:!1,customGetData:b})}o.displayName=o.name+" [from "+f.id+"]";function p(a,b){var e=new Set(a.map(function(a){var b;return c("WAWebWid").isLid(a.id)?(b=d("WAWebApiContact").getPhoneNumber(d("WAWebWidFactory").toUserWid(a.id)))==null?void 0:b.toString():a.id.toString()}).filter(Boolean));a=b.reduce(function(a,b){var c=e.has(b.id.toString())?"followersFromContacts":"others";a[c].push(b);return a},{followersFromContacts:[],others:[]});b=a.followersFromContacts;a=a.others;var f=[];b.length>0&&(f.push({itemKey:d("WAWebMultiSelectContactList.react").Sec.SEC_FOLLOWERS,type:d("WAWebMultiSelectContactList.react").Sec.SEC_FOLLOWERS}),f.push.apply(f,b.map(function(a){return{itemKey:a.id.toString(),type:d("WAWebMultiSelectContactList.react").Row.ROW_CONTACTS,data:a,isUnknownContact:!1}})));a.length>0&&(f.push({itemKey:d("WAWebMultiSelectContactList.react").Sec.SEC_CONTACTS,type:d("WAWebMultiSelectContactList.react").Sec.SEC_CONTACTS}),f.push.apply(f,a.map(function(a){return{itemKey:a.id.toString(),type:d("WAWebMultiSelectContactList.react").Row.ROW_CONTACTS,data:a,isUnknownContact:!1}})));return f}var q={modalTitle:function(){return h._(/*BTDS*/"__JHASH__MqANkc0xmy6__JHASH__")},modalSubtitle:function(a,b){return h._(/*BTDS*/"__JHASH__ru362VkDz6h__JHASH__",[h._plural(a),h._param("selected",a),h._param("max",b)])},alreadyAnAdmin:function(){return h._(/*BTDS*/"__JHASH__CkiXXrxbSNO__JHASH__")},alreadyInvited:function(){return h._(/*BTDS*/"__JHASH__hSIUDxSPAFb__JHASH__")},privacyNux:function(){return d("WAWebCommonNewsletterStrings").adminPrivacyNux()}};g.NewsletterAdminSelectionModalContainer=a}),226); __d("WAWebNewsletterBulkSendAdminInviteAction",["Promise","WAWebApiContact","WAWebFindChatAction","WAWebNewsletterSendMsgAction","WAWebNewsletterSubscriberModel","WAWebSendMsgResultAction","WAWebStateUtils","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){var h;function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var e=a.invitees,f=a.chat,g=a.inviteMessage,i=a.base64Thumb,j=d("WAWebStateUtils").unproxy(f).id,k=(a=g)!=null?a:"";g=e.map(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){try{var b=d("WAWebWidFactory").toUserWid(a.id),e=a.id.isLid()?d("WAWebApiContact").getPhoneNumber(b):a.id;if(e==null)throw c("err")("WaWebLidPn - Phone number not found for contact");e=(yield d("WAWebFindChatAction").findOrCreateLatestChat(e,"sendNewsletterAdminInvite"));e=e.chat;e=(yield d("WAWebNewsletterSendMsgAction").sendNewsletterAdminInviteMessage(e,{newsletterWid:j,invitee:b,inviteMessage:k,base64Thumb:i}));b=e.messageSendResult;(e=f.newsletterMetadata)==null?void 0:(e=e.pendingAdmins)==null?void 0:e.add(new(d("WAWebNewsletterSubscriberModel").NewsletterSubscriber)({id:a.id,isPendingAdmin:!0,membership:null,contact:a}));return{result:b,invitee:a}}catch(b){return{result:d("WAWebSendMsgResultAction").SendMsgResult.ERROR_UNKNOWN,invitee:a}}});return function(b){return a.apply(this,arguments)}}());a=(yield (h||(h=b("Promise"))).all(g));g=a.filter(function(a){return a.result!==d("WAWebSendMsgResultAction").SendMsgResult.OK});return{failedAttempts:g,allFailed:g.length===e.length}});return i.apply(this,arguments)}g.sendBulkNewsletterAdminInviteAction=a}),98); __d("WAWebNewsletterAdminSelectionFlow.react",["fbt","$InternalEnum","WAWebModalManager","WAWebNewsletterAdminInvitePrivacyNux.react","WAWebNewsletterAdminInviteWithMessageModal.react","WAWebNewsletterAdminSelectionModal.react","WAWebNewsletterBulkSendAdminInviteAction","WAWebNewsletterErrorPopups.react","WAWebNewsletterMembershipUtil","WAWebNewsletterMetadataCollection","WAWebNux","WAWebToast.react","WAWebToastManager","react","useWAWebFlow","useWAWebNux"],(function(a,b,c,d,e,f,g,h){var i,j;e=j||d("react");var k=i||(i=c("react")),l=e.useCallback,m=e.useRef,n=b("$InternalEnum").Mirrored(["PrivacyNux","Selection","Confirmation"]);function o(){d("WAWebModalManager").ModalManager.close()}function p(a,b){if(a.invitees!=null&&a.invitees.length>0)return n.Confirmation;if(!b)return n.Selection;a=c("WAWebNewsletterMetadataCollection").some(function(a){return d("WAWebNewsletterMembershipUtil").iAmAdmin(a)});return a?n.Selection:n.PrivacyNux}function q(a){var b=c("useWAWebNux")(d("WAWebNux").NUX.NEWSLETTER_MULTI_ADMIN),e=b[0];b=b[1];e=p(a,e);var f=d("useWAWebFlow").useFlow(e,{transitions:d("useWAWebFlow").FlowTransitions.Modal}),g=f[0],h=f[1],i=m((f=a.invitees)!=null?f:[]);f=l(function(a){i.current=a,h.push(n.Confirmation)},[h]);var j=l(function(b,c){var e=i.current;d("WAWebModalManager").ModalManager.close();d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:r.sendingInvites(e.length)}));void s({inviteMessage:b,base64Thumb:c,invitees:e,chat:a.chat})},[a.chat]);if(h.step==null)return null;var q;switch(h.step){case n.PrivacyNux:q=k.jsx(c("WAWebNewsletterAdminInvitePrivacyNux.react"),{onOk:function(){return h.push(n.Selection)},viewNux:b});break;case n.Selection:q=k.jsx("div",{children:k.jsx(d("WAWebNewsletterAdminSelectionModal.react").NewsletterAdminSelectionModalContainer,{chat:a.chat,onConfirm:f})});break;case n.Confirmation:b=e===n.Confirmation;q=k.jsx(c("WAWebNewsletterAdminInviteWithMessageModal.react"),{chat:a.chat,isDirectInvite:b,invitees:i.current,onSend:j,onClose:o});break}return k.jsx(g,{flow:h,children:q})}q.displayName=q.name+" [from "+f.id+"]";var r={sendingInvites:function(a){return h._(/*BTDS*/"__JHASH__0HVC0IwwiY6__JHASH__",[h._plural(a,"invites-sending")])},invitesSent:function(a){return h._(/*BTDS*/"__JHASH__P3M7gZLw3It__JHASH__",[h._plural(a,"invites-sent")])}};function s(a){var b=a.invitees,c=a.inviteMessage,e=a.chat,f=a.base64Thumb;return d("WAWebNewsletterBulkSendAdminInviteAction").sendBulkNewsletterAdminInviteAction({invitees:b,chat:e,inviteMessage:c,base64Thumb:f}).then(function(a){a=a.failedAttempts;if(a.length===0){d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:r.invitesSent(b.length)}));return}var g=a.map(function(a){a=a.invitee;return a});a=b.length-a.length;t({failedInvites:g,base64Thumb:f,chat:e,inviteMessage:c,numberOfSuccessfulInvites:a})})["catch"](function(){return t({base64Thumb:f,chat:e,inviteMessage:c,failedInvites:b,numberOfSuccessfulInvites:0})})}function t(a){var b=a.failedInvites,c=a.inviteMessage,e=a.chat,f=a.base64Thumb;a=a.numberOfSuccessfulInvites;d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebNewsletterErrorPopups.react").NewsletterCouldNotSendInviteListPopup,{contactList:b,numberOfSuccessfulInvites:a,onOk:function(){void s({chat:e,inviteMessage:c,base64Thumb:f,invitees:b})}}))}function a(a){d("WAWebModalManager").ModalManager.open(k.jsx(q,babelHelpers["extends"]({},a)),{transition:"modal-flow"})}g.startAdminInviteFlow=a}),226); __d("WAWebMexDemoteNewsletterAdminJobMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"},{defaultValue:null,kind:"LocalArgument",name:"user_id"}],b=[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"},{kind:"Variable",name:"user_id",variableName:"user_id"}],c={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebMexDemoteNewsletterAdminJobMutation",selections:[{alias:null,args:b,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_demote",plural:!1,selections:[c],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebMexDemoteNewsletterAdminJobMutation",selections:[{alias:null,args:b,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_demote",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"6551828931592903",metadata:{},name:"WAWebMexDemoteNewsletterAdminJobMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("WAWebMexDemoteNewsletterAdminJob",["WAWebLidMigrationUtils","WAWebMexClient","WAWebMexDemoteNewsletterAdminJobMutation.graphql","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h,i=h!==void 0?h:h=b("WAWebMexDemoteNewsletterAdminJobMutation.graphql");function a(a,b){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){return d("WAWebNewsletterRpcUtils").runWithBackoff(function(){return k(a,b)})});return j.apply(this,arguments)}function k(a,b){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b=d("WAWebLidMigrationUtils").getEnforceCurrentLid(b);yield d("WAWebMexClient").fetchQuery(i,{newsletter_id:a,user_id:b.toString()})});return l.apply(this,arguments)}g.demoteNewsletterAdmin=a}),98); __d("WAWebNewsletterDemoteAdminJob",["WAJobOrchestratorTypes","WAWebMexDemoteNewsletterAdminJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,c){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("demoteNewsletterAdmin",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebMexDemoteNewsletterAdminJob").demoteNewsletterAdmin(a,c)}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.demoteNewsletterAdmin=a}),98); __d("WAWebDemoteNewsletterAdminAction",["WALogger","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebNewsletterBridgeApi","WAWebNewsletterDemoteAdminJob","WAWebNewsletterMembershipUtil","WAWebNewsletterValidationUtils","WAWebUserPrefsMeUser","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][demoteNewsletterAdminAction] failed to demote admin"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][demoteNewsletterAdminAction] Only channel admins can demote themselves"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][demoteNewsletterAdminAction] Only channel owners can demote other admins"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][demoteNewsletterAdminAction] called with a non-newsletter chat"]);k=function(){return a};return a}function a(a,b){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(!d("WAWebChatGetters").getIsNewsletter(a)){d("WALogger").ERROR(k()).tags("newsletter").devConsole(a.id).sendLogs("demote-admins-of-non-newsletter");throw c("err")("demote-admins-of-non-newsletter")}if(!d("WAWebNewsletterMembershipUtil").iAmOwner(a==null?void 0:a.newsletterMetadata)&&!d("WAWebUserPrefsMeUser").isMeAccount(b.id)){d("WALogger").ERROR(j()).tags("newsletter").devConsole(a.id).sendLogs("non-channel-owner-dismissing-other-admins");throw c("err")("non-channel-owner-dismissing-other-admins")}if(!d("WAWebNewsletterMembershipUtil").iAmAdmin(a==null?void 0:a.newsletterMetadata)&&d("WAWebUserPrefsMeUser").isMeAccount(b.id)){d("WALogger").ERROR(i()).tags("newsletter").devConsole(a.id).sendLogs("non-channel-admins-dismissing-themselves");throw c("err")("non-channel-admins-dismissing-themselves")}try{var e=d("WAWebWidFactory").toUserWid(b.id),f=d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid());yield d("WAWebNewsletterDemoteAdminJob").demoteNewsletterAdmin(f,e);d("WAWebUserPrefsMeUser").isMeAccount(b.id)?yield d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateMyNewsletterMembershipRole({newsletter:a,newRole:d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber}):yield d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterMemberRole({newsletter:a,member:b,newRole:d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber})}catch(a){d("WALogger").ERROR(h()).tags("newsletter").devConsole(a).sendLogs("demote-admins-on-newsletter-failed");throw a}});return l.apply(this,arguments)}g.demoteNewsletterAdminAction=a}),98); __d("WAWebNewsletterDismissAdminPopup.react",["fbt","WAWebCheckBox.react","WAWebCommonNewsletterStrings","WAWebConfirmPopup.react","WAWebContactGetters","WAWebDemoteNewsletterAdminAction","WAWebFlex.react","WAWebFrontendContactGetters","WAWebModalManager","WAWebNewsletterErrorPopups.react","WAWebNewsletterUnsubscribeAction","WAWebParticipantListUtils","WAWebText.react","WAWebText_DONOTUSE.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebWamEnumChannelEventSurface","asyncToGeneratorRuntime","react","stylex","useWAWebToggle"],(function(a,b,c,d,e,f,g,h){var i,j,k,l=k||c("react"),m=(i||(i=d("react"))).useCallback;function n(){d("WAWebModalManager").ModalManager.close()}function o(a){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=a.newsletter,e=a.contact,f=a.isMe,g=a.shouldUnfollowNewsletter;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){n(),yield o({newsletter:c,contact:e,isMe:f,shouldUnfollowNewsletter:g})});return function(){return a.apply(this,arguments)}}();var h=f&&g?d("WAWebNewsletterUnsubscribeAction").unsubscribeFromNewsletterAction(c,{eventSurface:d("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_PROFILE}):d("WAWebDemoteNewsletterAdminAction").demoteNewsletterAdminAction(c,e);try{yield h;h=d("WAWebContactGetters").getIsMyContact(e)?d("WAWebParticipantListUtils").getFirstNameForContact(e):d("WAWebContactGetters").getPushname(e);d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:f?d("WAWebCommonNewsletterStrings").getYouAreNoLongerAnAdminText():d("WAWebCommonNewsletterStrings").getSomeoneIsNoLongerAnAdminText(h===""?d("WAWebFrontendContactGetters").getFormattedUser(e):h)}));n()}catch(b){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebNewsletterErrorPopups.react").NewsletterCouldNotDismissAdminPopup,{onOK:a,contact:e}),{transition:"modal-flow"})}});return p.apply(this,arguments)}function a(a){var e=a.contact,f=a.isMe,g=a.newsletter;a=c("useWAWebToggle")(!1);var i=a[0];a=a[1];var k=f?h._(/*BTDS*/"__JHASH__rL3Di0Te4DH__JHASH__"):h._(/*BTDS*/"__JHASH__zpAUhSEw8LM__JHASH__",[h._param("admin-dismissal-contact-first-name",d("WAWebParticipantListUtils").getFirstNameForContact(e))]),p=f?h._(/*BTDS*/"__JHASH__tiBZovpaM8e__JHASH__"):h._(/*BTDS*/"__JHASH__k2m4ag1LiUH__JHASH__"),q=m(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o({isMe:f,newsletter:g,contact:e,shouldUnfollowNewsletter:i})}),[g,e,f,i]);a=f?l.jsxs(d("WAWebFlex.react").FlexRow,{columnGap:8,paddingTop:16,paddingBottom:16,xstyle:d("WAWebUISpacing").uiMargin.start3,alignSelf:"start",align:"center",children:[l.jsx(d("WAWebCheckBox.react").CheckBox,{id:"admin-dismissal-unfollow-checkbox",testid:void 0,checked:i,onChange:a}),l.jsx(d("WAWebText_DONOTUSE.react").TextLabel,{htmlFor:"admin-dismissal-unfollow-checkbox",size:"16",className:(j||(j=c("stylex")))(d("WAWebUISpacing").uiMargin.horiz10),children:d("WAWebCommonNewsletterStrings").getUnfollowNewsletterText()})]}):null;return l.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{title:k,onOK:q,onCancel:n,children:[l.jsx(d("WAWebText.react").WAWebTextTitle,{color:"secondary",children:p}),a]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMexRevokeNewsletterAdminInviteJobMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"},{defaultValue:null,kind:"LocalArgument",name:"user_id"}],b=[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"},{kind:"Variable",name:"user_id",variableName:"user_id"}],c={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebMexRevokeNewsletterAdminInviteJobMutation",selections:[{alias:null,args:b,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_invite_revoke",plural:!1,selections:[c],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebMexRevokeNewsletterAdminInviteJobMutation",selections:[{alias:null,args:b,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_invite_revoke",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"6111171595650958",metadata:{},name:"WAWebMexRevokeNewsletterAdminInviteJobMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("WAWebMexRevokeNewsletterAdminInviteJob",["WAWebLidMigrationUtils","WAWebMexClient","WAWebMexRevokeNewsletterAdminInviteJobMutation.graphql","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h,i=h!==void 0?h:h=b("WAWebMexRevokeNewsletterAdminInviteJobMutation.graphql");function a(a,b){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){return d("WAWebNewsletterRpcUtils").runWithBackoff(function(){return k(a,b)})});return j.apply(this,arguments)}function k(a,b){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b=d("WAWebLidMigrationUtils").getEnforceCurrentLid(b);yield d("WAWebMexClient").fetchQuery(i,{newsletter_id:a,user_id:b.toString()})});return l.apply(this,arguments)}g.revokeNewsletterAdminInvite=a}),98); __d("WAWebNewsletterRevokeAdminInviteJob",["WAJobOrchestratorTypes","WAWebMexRevokeNewsletterAdminInviteJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function a(a,c){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("revokeNewsletterAdminInvite",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){return d("WAWebMexRevokeNewsletterAdminInviteJob").revokeNewsletterAdminInvite(a,c)}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.revokeNewsletterAdminInvite=a}),98); __d("WAWebRevokeNewsletterAdminInviteAction",["WALogger","WAWebChatGetters","WAWebNewsletterMembershipUtil","WAWebNewsletterRevokeAdminInviteJob","WAWebNewsletterValidationUtils","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][revokeNewsletterAdminInvite] failed to revoke admin invite ",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][revokeNewsletterAdminInvite] Only channel owners can revoke admin invite"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][revokeNewsletterAdminInvite] called with a non-newsletter chat"]);j=function(){return a};return a}function a(a,b){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){if(!d("WAWebChatGetters").getIsNewsletter(a)){d("WALogger").ERROR(j()).tags("newsletter").devConsole(a.id).sendLogs("revoke-admin-invite-on-non-newsletter");throw c("err")("revoke-admin-invite-on-non-newsletter")}if(!d("WAWebNewsletterMembershipUtil").iAmOwner(a==null?void 0:a.newsletterMetadata)){d("WALogger").ERROR(i()).tags("newsletter").devConsole(a.id).sendLogs("non-channel-owner-revoking-an-admin-invite");throw c("err")("non-channel-owner-revoking-an-admin-invite")}try{var e=d("WAWebWidFactory").toUserWid(b.id),f=d("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid());a==null?void 0:(a=a.newsletterMetadata)==null?void 0:(a=a.pendingAdmins)==null?void 0:a.remove(b.id);yield d("WAWebNewsletterRevokeAdminInviteJob").revokeNewsletterAdminInvite(f,e)}catch(a){d("WALogger").ERROR(h(),a.name).tags("newsletter").devConsole(a).sendLogs("revoke-admin-invite-on-newsletter-failed");throw a}});return k.apply(this,arguments)}g.revokeNewsletterAdminInviteAction=a}),98); __d("WAWebNewsletterRevokeInvitePopup.react",["fbt","WAWebCommonNewsletterStrings","WAWebConfirmPopup.react","WAWebDetailImage.react","WAWebFlex.react","WAWebModalManager","WAWebNewsletterErrorPopups.react","WAWebNewsletterName.react","WAWebParticipantListUtils","WAWebRevokeNewsletterAdminInviteAction","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useCallback,m={buttonGroup:{justifyContent:"xl56j7k",$$css:!0}};function n(){d("WAWebModalManager").ModalManager.close()}function o(a){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=a.chat,e=a.contact;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){n(),yield o({chat:c,contact:e})});return function(){return a.apply(this,arguments)}}();try{yield d("WAWebRevokeNewsletterAdminInviteAction").revokeNewsletterAdminInviteAction(c,e),d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:d("WAWebCommonNewsletterStrings").getInviteRevokedText()})),n()}catch(b){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebNewsletterErrorPopups.react").NewsletterCouldNotRevokeInvitePopup,{onOK:a,contact:e}),{transition:"modal-flow"})}});return p.apply(this,arguments)}function a(a){var c=a.chat,e=a.contact;a=l(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o({chat:c,contact:e})}),[c,e]);var f=d("WAWebParticipantListUtils").getFirstNameForContact(e),g=h._(/*BTDS*/"__JHASH__eTAit_zKVoR__JHASH__",[h._param("contact-name",f)]);f=h._(/*BTDS*/"__JHASH__v6H4E9yqvAH__JHASH__",[h._param("contact-name",f)]);return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:g,onOK:a,onCancel:n,okText:d("WAWebCommonNewsletterStrings").getRevokeButtonFullText(),children:k.jsx(d("WAWebText.react").WAWebTextTitle,{color:"secondary",children:f})})}a.displayName=a.name+" [from "+f.id+"]";function q(a){a=a.chat;return k.jsxs(d("WAWebFlex.react").FlexColumn,{align:"center",marginBottom:12,children:[k.jsx(d("WAWebDetailImage.react").DetailImage,{id:a.id,size:d("WAWebDetailImage.react").DetailImageSize.Medium,xstyle:d("WAWebUISpacing").uiMargin.bottom12,showOutline:!0}),k.jsx(d("WAWebText.react").WAWebTextLarge,{as:"h1",xstyle:d("WAWebUISpacing").uiMargin.bottom12,children:k.jsx(d("WAWebNewsletterName.react").NewsletterName,{chat:a,checkmarkLarge:!0})}),k.jsx(d("WAWebText.react").WAWebTextSmall,{children:d("WAWebCommonNewsletterStrings").getChannelAdminInviteText()})]})}q.displayName=q.name+" [from "+f.id+"]";function e(a){var c=a.chat,e=a.contact;a=l(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o({chat:c,contact:e})}),[c,e]);var f=k.jsx(q,{chat:c});return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:f,onOK:a,onCancel:n,okText:d("WAWebCommonNewsletterStrings").getRevokeButtonFullText(),buttonGroupStyle:[m.buttonGroup,d("WAWebUISpacing").uiPadding.all0]})}e.displayName=e.name+" [from "+f.id+"]";g.NewsletterRevokeInvitePopupWithContactName=a;g.NewsletterRevokeInvitePopupWithNewsletterInformation=e}),226); __d("useWAWebNewsletterSubscribersContextMenu",["fbt","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebDropdownItem.react","WAWebModalManager","WAWebNewsletterAdminSelectionFlow.react","WAWebNewsletterDismissAdminPopup.react","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterRevokeInvitePopup.react","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUserPrefsMeUser","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var b=a.chat,e=a.isFullModal,f=a.onVerification,g=a.newsletter,i=a.followerInformation,j=a.onTransferOwnershipSelection,m=g==null?void 0:g.newsletterMetadata;a=l(null);var n=a[0],o=a[1],p=[];a=function(a,l){var n=i.get(l.id),q=h._(/*BTDS*/"__JHASH__2ahpnsXUy4Y__JHASH__"),r=function(){d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebNewsletterDismissAdminPopup.react"),{isMe:d("WAWebUserPrefsMeUser").isMeAccount(l.id),contact:l,newsletter:g}))},s=function(){d("WAWebNewsletterAdminSelectionFlow.react").startAdminInviteFlow({chat:b,invitees:[l]})};r=k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:r,children:q},"newsletter-dismiss-as-admin");q=g==null?void 0:(q=g.newsletterMetadata)==null?void 0:(q=q.pendingAdmins)==null?void 0:q.get(l.id);if(!d("WAWebUserPrefsMeUser").isMeAccount(l.id)){if(d("WAWebNewsletterMembershipUtil").iAmOwner(m)&&d("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled())if(q!=null){var t=h._(/*BTDS*/"__JHASH__nFFVY6DB6wV__JHASH__"),u=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebNewsletterRevokeInvitePopup.react").NewsletterRevokeInvitePopupWithContactName,{contact:l,chat:g}))};p.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:u,children:t},"newsletter-revoke-invite"))}else if((n==null?void 0:n.newsletterRole)===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin){p.push(r);u=k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){j==null?void 0:j(l)},children:d("WAWebCommonNewsletterStrings").getNewsletterTransferOwnershipText()},"newsletter-transfer-ownership");p.push(u)}else if(q==null){t=h._(/*BTDS*/"__JHASH__Hut1Ssc4ZPE__JHASH__");p.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:s,children:t},"newsletter-invite-as-channel-admin"))}n=function(){f(l)};u=h._(/*BTDS*/"__JHASH__lMmkSKjYPXR__JHASH__");p.push(k.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:n,children:u},"newsletter-verify-identity"))}d("WAWebNewsletterMembershipUtil").iAmAdmin(m)&&d("WAWebUserPrefsMeUser").isMeAccount(l.id)&&d("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()&&p.push(r);q=a.type==="click"?void 0:a.target;s=a.anchor?void 0:a;o({contactId:l.id,menu:p,anchor:e?q:a.anchor,event:e?s:a.event})};var q=function(){o(null)},r;n&&(r=k.jsx(d("WAWebUimUie.react").UIE,{displayName:"NewsletterSubscribersContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:q,children:k.jsx(c("WAWebUimUieMenu.react"),{contextMenu:n})}));return[r,a]}g.useNewsletterSubscribersContextMenu=a}),226); __d("WAWebNewsletterFullPendingInvitesList.react",["WAWebCommonNewsletterStrings","WAWebContactsModal.react","react","useWAWebNewsletterPendingInvites","useWAWebNewsletterSubscribersContextMenu"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function j(){return!0}function k(){return!1}function a(a){var b=a.newsletter,e=a.onCancel;a=a.onVerification;var f=d("useWAWebNewsletterPendingInvites").useNewsletterPendingInvites(b);a=d("useWAWebNewsletterSubscribersContextMenu").useNewsletterSubscribersContextMenu({chat:b,isFullModal:!0,onVerification:a,followerInformation:new Map(f.map(function(a){return[a.id,{newsletterRole:null}]})),newsletter:b});b=a[0];a=a[1];return i.jsxs(i.Fragment,{children:[i.jsx(c("WAWebContactsModal.react"),{title:d("WAWebCommonNewsletterStrings").getSearchForPendingInvitesText(),filter:j,onCancel:e,contacts:f,isParentGroup:!0,newsletterRoles:new Map(f.map(function(a){return[a.id,{pendingInvitee:!0}]})),openContextOnClick:!0,contextEnabled:k,contextMenu:j,onContext:a}),b]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebNewsletterFullSubscriberList.react",["WAWebCommonNewsletterStrings","WAWebContactsModal.react","WAWebNewsletterGatingUtils","WAWebNewsletterSubscriberList.react","WAWebUserPrefsNewsletter","react","useWAWebNewsletterSubscribers","useWAWebNewsletterSubscribersContextMenu"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useCallback;function a(a){var b=a.newsletter,e=a.onCancel,f=a.onTransferOwnershipSelection;a=a.onVerification;var g=d("useWAWebNewsletterSubscribers").useNewsletterSubscribers({newsletter:b,count:d("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),cacheType:d("WAWebUserPrefsNewsletter").ValidCachedNewsletterSubscriberKeys.FULL,includeMeContact:!0});g=g[0];var h=new Map(g.map(function(a){var b=a.contact.id;a=a.role;return[b,{role:a}]}));a=d("useWAWebNewsletterSubscribersContextMenu").useNewsletterSubscribersContextMenu({chat:b,isFullModal:!0,onVerification:a,followerInformation:new Map(g.map(function(a){var b=a.contact;a=a.role;return[b.id,{newsletterRole:a}]})),newsletter:b,onTransferOwnershipSelection:f});f=a[0];a=a[1];var i=k(function(a){return d("WAWebNewsletterSubscriberList.react").showContextForCell(a,b==null?void 0:b.newsletterMetadata)},[b]);return j.jsxs(j.Fragment,{children:[j.jsx(c("WAWebContactsModal.react"),{title:d("WAWebCommonNewsletterStrings").getSearchForChannelFollowersText(),filter:function(){return!0},onCancel:e,contacts:g.map(function(a){a=a.contact;return a}),newsletterRoles:h,isNewsletter:!0,openContextOnClick:!0,contextEnabled:function(){return!1},contextMenu:i,onContext:a}),f]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebChatInfoDrawerSection.react",["WAWebDrawerSection.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");e=10;var j=11,k={title:{paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",marginBottom:"x1e56ztr",$$css:!0},titleText:{fontSize:"x6prxxf",lineHeight:"x1evy7pa",$$css:!0},container:{paddingTop:"x1i80of2",paddingEnd:"x6x52a7",paddingBottom:"x1i2zvha",paddingStart:"xxpdul3",$$css:!0},containerWithoutTitle:{paddingTop:"xexx8yu",paddingEnd:"x6x52a7",paddingBottom:"x18d9i69",paddingStart:"xxpdul3",marginBottom:"xat24cr",$$css:!0}};function l(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),f=[e===!0?[d("WAWebUISpacing").uiPadding.horiz20,d("WAWebUISpacing").uiPadding.vert10]:k.container,a.title==null&&k.containerWithoutTitle,a.xstyle],g=[e!==!0&&k.title,a.titleXStyle];return i.jsx(c("WAWebDrawerSection.react"),babelHelpers["extends"]({},a,{xstyle:f,titleXStyle:g,titleTextXStyle:k.titleText,theme:e?"refresh-new":"chat-info",ref:b,children:a.children}))}l.displayName=l.name+" [from "+f.id+"]";var m={drawerSectionContainer:{paddingBottom:"x18d9i69",$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();return i.jsx(l,babelHelpers["extends"]({},a,{xstyle:[m.drawerSectionContainer,a.xstyle],ref:b,children:i.jsx("div",babelHelpers["extends"]({},{0:{},1:{className:"xdj266r xcr5guo xat24cr xd8oflk"}}[!!(c===!1)<<0],{children:a.children}))}))}a.displayName=a.name+" [from "+f.id+"]";var n={drawerSectionContainer:{paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0}};function b(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);return i.jsx(l,babelHelpers["extends"]({},a,{xstyle:[n.drawerSectionContainer,a.xstyle],ref:b,children:a.children}))}b.displayName=b.name+" [from "+f.id+"]";g.INFO_DRAWER_MAX_ROWS=e;g.INFO_DRAWER_MAX_ROWS_IN_COLLAPSED_LIST=j;g.ChatInfoDrawerSection=l;g.ChatInfoDrawerListSection=a;g.ChatInfoDrawerButtonsSection=b}),98); __d("WAWebChevronRightRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="chevron-right-refreshed";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:"M12.6 12.0003L8.69999 8.10033C8.51666 7.91703 8.42499 7.68363 8.42499 7.40033C8.42499 7.11703 8.51666 6.88363 8.69999 6.70033C8.88332 6.51703 9.11666 6.42533 9.39999 6.42533C9.68332 6.42533 9.91666 6.51703 10.1 6.70033L14.7 11.3003C14.9 11.5003 15 11.7336 15 12.0003C15 12.267 14.9 12.5003 14.7 12.7003L10.1 17.3003C9.91666 17.4837 9.68332 17.5753 9.39999 17.5753C9.11666 17.5753 8.88332 17.4837 8.69999 17.3003C8.51666 17.117 8.42499 16.8837 8.42499 16.6003C8.42499 16.317 8.51666 16.0837 8.69999 15.9003L12.6 12.0003Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ChevronRightRefreshedIcon=a}),98); __d("WAWebDrawerButtonRefreshed.react",["WAWebClassnames","WAWebFlex.react","WAWebL10NFbtTypeUtils","WAWebText.react","WAWebUISpacing","react","stylex","useMergeRefs","useWAWebStaticButtonA11y"],(function(a,b,c,d,e,f,g){var h,i,j=i||d("react"),k={btn:{borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",":focus_backgroundColor":"x1aiwb2g",":hover_backgroundColor":"x1n67ipk",$$css:!0},container:{boxSizing:"x9f619",height:"x1x0gksc",$$css:!0},iconContainer:{width:"x100vrsf",color:"xhslqc4",$$css:!0},danger:{color:"xqnyt8g",$$css:!0},middleContainer:{$$css:!0}};function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.tooltip,f=a.onClick,g=a.disabled,i=a.testid;i=a.children;var l=a.ariaLabel,m=a.className,n=a.icon;f=c("useWAWebStaticButtonA11y")(f,{disabled:g});var o=f[0];f=f[1];o=c("useMergeRefs")(o,b);b=g===!0?null:a.color;g=d("WAWebL10NFbtTypeUtils").isStringOrFbt(i)?i:null;e=(a=e)!=null?a:g;l=(a=l)!=null?a:g;a=[];b!=null&&b==="danger"&&a.push(k.danger);return j.jsx("div",babelHelpers["extends"]({},f,{className:d("WAWebClassnames").classnamesConvertMeToStylexPlease((h||(h=c("stylex")))(k.btn,d("WAWebUISpacing").uiMargin.horiz10),m),"data-ignore-capture":"any","data-testid":void 0,ref:o,title:e,"aria-label":l,children:j.jsxs(d("WAWebFlex.react").FlexRow,{align:"stretch",xstyle:[k.container,d("WAWebUISpacing").uiPadding.horiz10,d("WAWebUISpacing").uiPadding.vert10],children:[j.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[k.iconContainer,d("WAWebUISpacing").uiMargin.end14,a],children:n}),j.jsx(d("WAWebFlex.react").FlexColumn,{justify:"center",grow:1,xstyle:k.middleContainer,children:j.jsx(d("WAWebText.react").WAWebTextTitleRefreshed,{xstyle:a,children:i})}),j.jsx(d("WAWebFlex.react").FlexRow,{})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DrawerButtonSimpleRefreshed=a}),98); __d("WAWebChatInfoExpandButton.react",["fbt","WAWebChevronCustomIcons","WAWebChevronRightRefreshedIcon.react","WAWebCommonNewsletterStrings","WAWebDrawerButton.react","WAWebDrawerButtonRefreshed.react","WAWebFlex.react","WAWebFlexItem.react","WAWebRoundShape.react","WAWebSvgComponentBase","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={container:{height:"xnnlda6",width:"xh8yej3",paddingStart:"x8x1vt3",display:"x78zum5",alignItems:"x6s0dn4",color:"x16cd2qt",":hover_backgroundColor":"x1z0qo99",$$css:!0},iconWrapper:{width:"x13zx6y",$$css:!0},iconWrapperRefreshed:{transform:"x1wc7zzz",color:"xhslqc4",$$css:!0},textAlt:{color:"x1n68mz9",$$css:!0}};function a(a){var b=a.ariaLabel,e=a.fromNewsletter;e=e===void 0?!1:e;var f=a.isRefresh,g=a.numMore,i=a.onClick,l=a.viewAll;l=l===void 0?!1:l;a=a.xstyle;var m=j.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:f===!0?k.iconWrapperRefreshed:k.iconWrapper,children:l?null:j.jsx(c("WAWebRoundShape.react"),{transparent:!0,children:f===!0?j.jsx(d("WAWebChevronRightRefreshedIcon.react").ChevronRightRefreshedIcon,{}):j.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY})})});g=h._(/*BTDS*/"__JHASH__VQG9Z3rHcN2__JHASH__",[h._plural(g,"count")]);l&&(g=h._(/*BTDS*/"__JHASH__eSrDzCM9Zje__JHASH__",[h._param("more",g)]),e&&(g=d("WAWebCommonNewsletterStrings").getViewAllChannelFollowersText()));e=j.jsx(c("WAWebFlexItem.react"),{grow:1,align:"start",xstyle:l&&k.textAlt,children:g});l=f===!0?d("WAWebDrawerButtonRefreshed.react").DrawerButtonSimpleRefreshed:d("WAWebDrawerButton.react").DrawerButtonSimple;return j.jsx(l,{ariaLabel:b,icon:m,xstyle:[k.container,a],onClick:i,children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewsletterInviteAdminButton.react",["fbt","WAWebCellFrame.react","WAWebNewsletterAdminSelectionFlow.react","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebPlusIcon.react","WAWebRoundShape.react","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useCallback;function a(a){a=a.chat;var b=d("useWAWebModelValues").useModelValues(a,["newsletterMetadata"]);a=l(function(){d("WAWebNewsletterAdminSelectionFlow.react").startAdminInviteFlow({chat:b})},[b]);if(!d("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled())return null;return!d("WAWebNewsletterMembershipUtil").iAmOwner(b.newsletterMetadata)?null:k.jsx(m,{onInviteAdmin:a})}a.displayName=a.name+" [from "+f.id+"]";function m(a){a=a.onInviteAdmin;return k.jsx(c("WAWebCellFrame.react"),{testid:void 0,image:k.jsx(n,{}),theme:"chat-info",primary:h._(/*BTDS*/"__JHASH__B1JC9R4xKnd__JHASH__"),onClick:a,focusable:!0})}m.displayName=m.name+" [from "+f.id+"]";function n(){return k.jsx(c("WAWebRoundShape.react"),{theme:"compact",children:k.jsx(d("WAWebPlusIcon.react").PlusIcon,{height:29})})}n.displayName=n.name+" [from "+f.id+"]";g.NewsletterInviteAdminButtonContainer=a}),226); __d("WAWebNewsletterSubscriberList.react",["fbt","WALogger","WAWebApiContact","WAWebChatCell.react","WAWebChatContact.react","WAWebChatInfoDrawerSection.react","WAWebChatInfoExpandButton.react","WAWebCmd","WAWebCommonNewsletterStrings","WAWebContactGetters","WAWebEmojiText.react","WAWebFindChatAction","WAWebFlatListController","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebLinkIcon.react","WAWebModalManager","WAWebNavigableFlatList.react","WAWebNewsletterGatingUtils","WAWebNewsletterInviteAdminButton.react","WAWebNewsletterMembershipUtil","WAWebNewsletterSubscriberListAction","WAWebNewsletterSubscriberListModal.react","WAWebSearchIcon.react","WAWebSingleSelection","WAWebStateUtils","WAWebSvgComponentBase","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebUserPrefsNewsletter","WAWebWamEnumChannelAdminAction","WAWebWidFactory","asyncToGeneratorRuntime","err","react","useLazyRef","useWAWebNewsletterSubscribers","useWAWebNewsletterSubscribersContextMenu"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][handleContactClick] Failed to open contact/chat for contact ",""]);k=function(){return a};return a}var l=j||c("react"),m=(i||(i=d("react"))).useCallback,n={italic:{fontStyle:"x1k4tb9n",$$css:!0},copyLink:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",height:"x1vqgdyp",width:"x100vrsf",backgroundColor:"xv2l2za",$$css:!0},lastRow:{width:"xh8yej3",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xq17mqv",$$css:!0},center:{textAlign:"x2b8uid",$$css:!0},start:{textAlign:"x1yc453h",$$css:!0},lastRowLabel:{color:"x16cd2qt",width:"xh8yej3",fontSize:"x1f6kntn",lineHeight:"xx6cpbe",$$css:!0},copyIcon:{color:"x1awj2ng",$$css:!0}},o=d("WAWebChatContact.react").ContactFactory(),p=68;function q(a){var b=a.text;a=a.textAlign;return l.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[d("WAWebUISpacing").uiPadding.vert16,n.lastRow,n[a]],children:l.jsx(d("WAWebEmojiText.react").EmojiText,{direction:"auto",text:b,titlify:!0,xstyle:[n.lastRowLabel,d("WAWebUISpacing").uiPadding.horiz16]})})}q.displayName=q.name+" [from "+f.id+"]";function r(){return l.jsx(d("WAWebEmojiText.react").EmojiText,{direction:"auto",titlify:!0,breakWord:!0,xstyle:n.italic,text:d("WAWebCommonNewsletterStrings").getMeContactLabelChannelText()})}r.displayName=r.name+" [from "+f.id+"]";function s(a){a=a.onShareLink;return l.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{onClick:a,children:l.jsx(c("WAWebChatCell.react"),{contextEnabled:function(){return!1},focusable:!0,image:l.jsx(d("WAWebFlex.react").FlexColumn,{xstyle:n.copyLink,align:"center",justify:"center",children:l.jsx(d("WAWebLinkIcon.react").LinkIcon,{xstyle:n.copyIcon})}),primary:l.jsx(d("WAWebEmojiText.react").EmojiText,{direction:"auto",titlify:!0,ellipsify:!0,inlineblock:!0,text:d("WAWebCommonNewsletterStrings").getInviteViaLinkText()}),theme:"chat-info"})})}s.displayName=s.name+" [from "+f.id+"]";function t(a,b){return!(d("WAWebUserPrefsMeUser").isMeAccount(a)&&d("WAWebNewsletterMembershipUtil").iAmOwner(b))}function u(a){var b=a.active,c=a.handleContactClick,e=a.handleContactContextMenu,f=a.newsletter,g=a.subscriberData;a=m(function(){var a;return t((a=g.contact)==null?void 0:a.id,f==null?void 0:f.newsletterMetadata)},[g,f]);return g.contact==null?null:l.jsx(o,{contact:g.contact,active:b,theme:"chat-info",newsletterMembershipType:g.role,onClick:c,secondary:d("WAWebContactGetters").getIsMe(g.contact)?l.jsx(r,{}):null,isPendingParticipant:g.isPendingAdmin,contextMenu:!0,contextEnabled:a,onContext:e})}u.displayName=u.name+" [from "+f.id+"]";function a(a){var e=a.adminFunnelLogger,f=a.onShareLink,g=a.onTransferOwnershipSelection,i=c("useLazyRef")(function(){return new(c("WAWebFlatListController"))()}),j=c("useLazyRef")(function(){return new(c("WAWebSingleSelection"))([],function(a){return a.id.toString()})}),m=function(e,f){b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=f.id.isLid()?d("WAWebApiContact").getPhoneNumber(d("WAWebWidFactory").toUserWid(f.id)):f.id;if(b==null)throw c("err")("WaWebLidPn - Phone number not found for contact");b=(yield d("WAWebFindChatAction").findOrCreateLatestChat(b,"newsletterFollowerList"));b=b.chat;yield d("WAWebCmd").Cmd.chatInfoDrawer(b,{showFullGroupDescription:!1,scrollToParticipantList:!1,sourceGroupChatOrNewsletter:d("WAWebStateUtils").unproxy(a.newsletter)})})()["catch"](function(a){d("WALogger").ERROR(k(),f.id).devConsole(a).tags("newsletter").sendLogs("newsletter-failed-to-open-contact")})},n=l.jsx(d("WAWebSearchIcon.react").SearchIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),o=a.newsletter.newsletterMetadata;o=(o==null?void 0:o.size)!=null?d("WAWebCommonNewsletterStrings").getNewsletterFollowersText(o.size,!0):null;var r=d("useWAWebNewsletterSubscribers").useNewsletterSubscribers({newsletter:a.newsletter,count:d("WAWebNewsletterSubscriberListAction").NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT,cacheType:d("WAWebUserPrefsNewsletter").ValidCachedNewsletterSubscriberKeys.LIMITED,includeMeContact:!0}),t=r[0];r=r[1];var v=t.map(function(a){var b=a.contact;a=a.role;return{itemKey:b.id.toString(),contact:b,height:p,role:a,isPendingAdmin:!1}}),w=d("useWAWebNewsletterSubscribersContextMenu").useNewsletterSubscribersContextMenu({chat:a.newsletter,isFullModal:!1,onVerification:a.onVerification,followerInformation:new Map(v.map(function(a){var b;return[(b=a.contact)==null?void 0:b.id,{newsletterRole:a.role}]})),newsletter:a.newsletter,onTransferOwnershipSelection:g}),x=w[0],y=w[1];j.current.init(t.map(function(a){a=a.contact;return a}));var z=function(a){d("WAWebModalManager").ModalManager.close(),g(a)};w=function(){e.logEvent(d("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.SEARCH_FOLLOWER),d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebNewsletterSubscriberListModal.react").NewsletterSubscriberListModal,{newsletter:a.newsletter,onVerification:a.onVerification,onTransferOwnershipSelection:z}),{transition:"modal-flow"})};r=r?l.jsx(c("WAWebChatInfoExpandButton.react"),{numMore:t.length,onClick:w,fromNewsletter:!0,viewAll:!0}):null;return l.jsxs(l.Fragment,{children:[l.jsxs(d("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{testid:void 0,title:o,subtitle:n,xstyle:d("WAWebUISpacing").uiMargin.top10,titleOnClick:w,children:[l.jsx(d("WAWebNewsletterInviteAdminButton.react").NewsletterInviteAdminButtonContainer,{chat:a.newsletter}),l.jsx(s,{onShareLink:f}),l.jsx(d("WAWebNavigableFlatList.react").NavigableFlatList,{ariaLabel:h._(/*BTDS*/"__JHASH__Bkc2ZUin9sk__JHASH__",[h._param("follower-size",o)]),flatListController:i.current,listData:v,onRenderItem:function(b){return l.jsx(u,{newsletter:a.newsletter,active:j.current,subscriberData:b,handleContactClick:m,handleContactContextMenu:y})},selection:j.current,rotateList:!0}),r,l.jsx(q,{textAlign:"start",text:d("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()?d("WAWebCommonNewsletterStrings").getFollowersOnlyInYourContactsAndAdminsText():d("WAWebCommonNewsletterStrings").getFollowersOnlyInYourContactsText()})]}),x]})}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterSubListLastRow=q;g.YouArentVisibleToYourFollowersLabel=r;g.showContextForCell=t;g.NewsletterSubscriber=u;g.NewsletterSubscriberList=a}),226); __d("WAWebListButton.react",["WAWebFlex.react","WAWebText.react","WAWebUnstyledButton.react","react","useWAWebActiveSelection"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");b=60;var j={container:{height:"xng8ra",fontSize:"x1jchvi3",color:"x1n68mz9",backgroundColor:"x150wa6m",$$css:!0},hover:{":hover_backgroundColor":"x1z0qo99",$$css:!0},active:{backgroundColor:"xairv4b",$$css:!0},button:{width:"xh8yej3",height:"x5yr21d",$$css:!0},textColorRefreshed:{color:"x1v5yvga",$$css:!0}};function a(a){var b=a.onClick,e=a.children,f=a.id,g=a.testid;f=c("useWAWebActiveSelection")(a.active,(g=f)!=null?g:"");g=f[0];f=f[1];return i.jsx(d("WAWebFlex.react").FlexRow,{ref:g,xstyle:[j.container,f&&j.active,!f&&j.hover],align:"center",justify:"center",testid:void 0,children:i.jsx(c("WAWebUnstyledButton.react"),{xstyle:j.button,onClick:b,children:a.isRefresh===!0?i.jsx(d("WAWebText.react").WAWebTextTitleRefreshed,{xstyle:j.textColorRefreshed,children:e}):e})})}a.displayName=a.name+" [from "+f.id+"]";g.LIST_BUTTON_HEIGHT=b;g.ListButton=a}),98); __d("WAWebContactsModal.react",["fbt","WATypeUtils","WAWebChatContact.react","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebContactCollection","WAWebContactGetters","WAWebEmptyState.react","WAWebFbtCommon","WAWebFlatList.react","WAWebL10N","WAWebListButton.react","WAWebModalsListModal.react","WAWebNewsletterSubscriberList.react","WAWebNoop","WAWebPhoneNumberSearch","WAWebSectionHeader.react","WAWebSingleSelection","react","useLazyRef","useWAWebDebouncedSearch","useWAWebForceUpdate","useWAWebListener"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useMemo,m={HEADER:"HEADER",ROW:"ROW",BUTTON:"BUTTON"},n="in-your-contacts-header-key",o=d("WAWebChatContact.react").ContactFactory(),p=d("WAWebModalsListModal.react").ListModalFactory();function q(a){var b,e=a.active,f=a.contextEnabled,g=a.contextMenu,h=a.data,i=a.elevatedPushNamesEnabled,j=a.filter,l=a.listenForAdminChange,p=a.loadOnlyContactPictures;p=p===void 0?!1:p;var q=a.newsletterRoles,r=a.onContext,s=a.onSelect,t=a.openContextOnClick,u=a.participantCollection,v=a.showNotifyName;a=a.showStatusRingAroundProfilePhoto;switch(h.type){case m.HEADER:return k.jsx(c("WAWebSectionHeader.react"),{header:(b=h.header)!=null?b:"",uppercase:h.itemKey!==n});case m.ROW:b=!!t;t=d("WATypeUtils").isString(j(h.contact));var w=t?"group-modal":null;j=t?j(h.contact):null;q=q&&d("WAWebContactGetters").getIsMe(h.contact)?k.jsx(d("WAWebNewsletterSubscriberList.react").YouArentVisibleToYourFollowersLabel,{}):j;j=r&&g&&f?{contextEnabled:function(){return f(h.contact.id)},contextMenu:g(h.contact.id),onContext:r}:{};g=!0;p&&(g=d("WAWebContactGetters").getIsMyContact(h.contact));return k.jsx(o,babelHelpers["extends"]({contact:h.contact,active:e,theme:w,secondary:q,newsletterMembershipType:h.newsletterRole,onClick:b&&r?r:t?void 0:s?function(){s(h.contact)}:c("WAWebNoop"),waitIdle:!0,showNotifyName:v,elevatedPushNamesEnabled:i,listenForAdminChange:l,participantCollection:u,isPendingParticipant:h.isPending},j,{showStatusRingAroundProfilePhoto:a,loadPicture:g}));case m.BUTTON:return k.jsx(d("WAWebListButton.react").ListButton,{active:e,id:h.itemKey,onClick:h.onClick,children:h.text});default:throw new(d("WAWebFlatList.react").UnknownDataError)(h)}}q.displayName=q.name+" [from "+f.id+"]";var r=5e3+1;function s(a,b){if(b==null)return d("WAWebContactGetters").getHeader(a);if((b==null?void 0:(b=b.get(a.id))==null?void 0:b.role)===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber)return c("WAWebFbtCommon")("In Your Contacts").toString()}function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.title,f=a.onCancel,g=a.onBack,i=a.contacts,j=a.newsletterRoles,n=a.filter,o=n===void 0?function(a){return d("WAWebContactCollection").ContactCollection.isFilteredContact(a)}:n,t=a.onSelect,u=a.onContext,v=a.contextEnabled,w=a.contextMenu,x=a.openContextOnClick,y=a.showNotifyName,z=a.elevatedPushNamesEnabled,A=a.participantCollection,B=a.listenForAdminChange;n=a.isNewsletter;n=n===void 0?!1:n;var C=a.button,D=a.isParentGroup,E=a.lastRow,F=a.firstRows,G=a.searchPlaceholder,H=a.showStatusRingAroundProfilePhoto,I=a.spinnerInHeader;I=I===void 0?!1:I;a=a.loadOnlyContactPictures;var J=a===void 0?!1:a,K=c("useLazyRef")(function(){return new(c("WAWebSingleSelection"))([],function(a){return String(a.id)})});a=c("useWAWebDebouncedSearch")();var L=a[0];a=a[1];var M=d("useWAWebForceUpdate").useForceUpdateDONOTUSE();d("useWAWebListener").useListener(d("WAWebContactCollection").ContactCollection,["add","remove","change:name"],function(){i||M()});var N=function(a,b){if(b.type!==m.ROW)return;a=b.contact;o(a)===!0&&(t==null?void 0:t(a))};E=n&&i!=null&&i.length>=r?k.jsx(d("WAWebNewsletterSubscriberList.react").NewsletterSubListLastRow,{text:L!=null&&L!==""?d("WAWebCommonNewsletterStrings").getFirstFiveThousandChannelFollowersSearchingText():d("WAWebCommonNewsletterStrings").getFirstFiveThousandChannelFollowersText(),textAlign:"center"}):E;var O=l(function(){var a=c("WAWebL10N").accentFold(L),b=d("WAWebPhoneNumberSearch").numberSearch(a),e=i||d("WAWebContactCollection").ContactCollection;e=e.filter(function(c){return o(c)&&(!a||a&&c.searchMatch(a,b))});var f=e.filter(function(a){return o(a)===!0});C&&f.push({id:"button"});K.current.init(f);f=[];if(!e.length)return f;var g,h,k=j==null?e.length>10&&D!==!0:!0;for(var l=0;l<e.length;l++){g=e[l];var n=s(g,j);k&&n!==h&&f.push({type:m.HEADER,header:n,itemKey:(n||"")+"_"+l});var p=j==null?void 0:j.get(g.id);f.push({type:m.ROW,contact:g,itemKey:g.id.toString()+"_"+l,newsletterRole:p==null?void 0:p.role,isPending:p==null?void 0:p.pendingInvitee});h=n}if(C){g=C.text;p=C.onClick;f.push({type:m.BUTTON,text:g,onClick:p,itemKey:"button",height:d("WAWebListButton.react").LIST_BUTTON_HEIGHT})}return f},[C,D,i,o,L,K,j]),P=h._(/*BTDS*/"__JHASH__KbWf_gD0khM__JHASH__");return k.jsx(p,{testid:void 0,ref:b,title:e,data:O,renderItem:function(a){return k.jsx(q,{data:a,contextMenu:w,onContext:u,openContextOnClick:x,filter:o,contextEnabled:v,onSelect:t,showNotifyName:y,elevatedPushNamesEnabled:z,listenForAdminChange:B,participantCollection:A,active:K.current,showStatusRingAroundProfilePhoto:H,loadOnlyContactPictures:J,newsletterRoles:j})},emptyState:k.jsx(d("WAWebEmptyState.react").SearchContacts,{}),selection:K.current,onSearch:a,searchPlaceholder:(b=G)!=null?b:P,onSelect:N,onBack:g,onCancel:f,firstRows:F,isNewsletter:n,lastRow:E,spinnerInHeader:I})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBlockedDrawer.react",["fbt","WAWebAddUserIcon.react","WAWebBlockContactAction","WAWebBlockContactUtils","WAWebBlockContants","WAWebBlocklistCollection","WAWebChatCollection","WAWebChatContact.react","WAWebChatGetters","WAWebContactCollection","WAWebContactsModal.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerButton.react","WAWebDrawerHeader.react","WAWebEmptyState.react","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebModalManager","WAWebWamChatPSALogger","fbs","react","useLazyRef","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k=d("WAWebFlatList.react").FlatListFactory();function l(a){var b=a.data,c=a.onClick;a=a.onDelete;b=b.blocklist;b=b.contact();return j.jsx(d("WAWebChatContact.react").Contact,{contact:b,onClick:c,onDelete:a,waitIdle:!0,tabIndex:-1,allowFocusEventPropagation:!0,role:"button"},b.id.toString())}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.onClose;a=a.ref;var e=c("useWAWebEventTargetValue")(d("WAWebBlocklistCollection").BlocklistCollection,["add","remove"],function(){return d("WAWebBlocklistCollection").BlocklistCollection.dedupedList().map(function(a){return{itemKey:a.id.toString(),blocklist:a}})}),f=c("useLazyRef")(function(){return new(c("WAWebFlatListController"))()}),g=function(a,b){d("WAWebBlockContactUtils").handleUnblock(b,d("WAWebBlockContants").BlockEntryPoint.BlockList)},i=function(a){var b=d("WAWebChatCollection").ChatCollection.get(a.id);if(b!=null&&d("WAWebChatGetters").getIsPSA(b)){b=b.msgs.last();d("WAWebWamChatPSALogger").logChatPSARemove(b,1,1)}void d("WAWebBlockContactAction").blockContact({contact:a,blockEntryPoint:d("WAWebBlockContants").BlockEntryPoint.BlockList});d("WAWebModalManager").ModalManager.close()},m=function(){var a=function(a){if(!d("WAWebContactCollection").ContactCollection.isFilteredContact(a))return!1;return d("WAWebBlocklistCollection").BlocklistCollection.get(a.id)?c("fbs")._(/*BTDS*/"__JHASH__WgmSftwA4-c__JHASH__").toString():!0},b=d("WAWebContactCollection").ContactCollection.getFilteredContacts({includeLidContacts:!1,showMe:!1,showWithoutName:!1});d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebContactsModal.react"),{title:h._(/*BTDS*/"__JHASH__XUpzxynr1EN__JHASH__"),contacts:b,filter:a,onCancel:function(){return d("WAWebModalManager").ModalManager.close()},onSelect:i}))};f=d("WAWebBlocklistCollection").BlocklistCollection.length>0?j.jsx(c("WAWebFlatListContainer.react"),{flatListControllers:[f.current],className:"x6ikm8r x1odjw0f",children:j.jsx(k,{flatListController:f.current,direction:"vertical",data:e,handleKeyboardNavigation:!0,role:"list","aria-label":h._(/*BTDS*/"__JHASH__flVSSxVublQ__JHASH__"),focusableItemSelector:"[data-testid='cell-frame-container']",renderItem:function(a){return j.jsx(l,{data:a,onClick:g,onDelete:g})}})}):j.jsx(d("WAWebEmptyState.react").Blocked,{});e=d("WAWebBlocklistCollection").BlocklistCollection.length>0?j.jsx("div",babelHelpers["extends"]({"data-testid":void 0},{className:"x1okw0bk x109j2v6 xc73u3c x1w3bhph x1b9tyad x1f6kntn x1fc57z9 x40yjcy"},{children:h._(/*BTDS*/"__JHASH__ET78xqbHpSR__JHASH__")})):null;return j.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__flVSSxVublQ__JHASH__"),onBack:b,focusBackOrCancel:!0,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),j.jsx("div",babelHelpers["extends"]({className:"xso031l x1q0q8m5 xcsjwe9"},{children:j.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,onClick:m,icon:j.jsx(d("WAWebAddUserIcon.react").AddUserIcon,{directional:!0}),children:h._(/*BTDS*/"__JHASH__XUpzxynr1EN__JHASH__")})})),j.jsxs(c("WAWebDrawerBody.react"),{children:[f,e]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebBugnubLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebBugnub.react").__setRef("WAWebBugnubLoadable").load());return a.openBugnubPopup}),"bugnub");function a(){void h().then(function(a){a()})}g["default"]=a}),98); __d("WAWebChatsSettingsDrawer.react",["fbt","WAWebAnimatedEmojiGatingUtils","WAWebChatPreferenceCollection","WAWebChevronIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebMediaGatingUtils","WAWebMenu.react","WAWebSettingsCheckList.react","WAWebSettingsFBT","WAWebSettingsHierarchy","WAWebText.react","WAWebThemeContext","WAWebUISpacing","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useContext,m={chevronIcon:{color:"x16zc8z2",height:"x17rw0jw",$$css:!0}};function n(a){var b=a.systemThemeMode;a=a.theme;if(b)return d("WAWebSettingsFBT").themeSystemLabel();return a==="dark"?h._(/*BTDS*/"__JHASH__JeLF-5NOAh6__JHASH__"):h._(/*BTDS*/"__JHASH__lSTChDfW5-K__JHASH__")}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.onClickMediaAutoDownload,e=a.onClickMediaUploadQuality,f=a.onClickTheme,g=a.onClickWallpaper,i=a.onClose;a=a.ref;var j=l(d("WAWebThemeContext").ThemeContext),o=d("useWAWebModelValues").useModelValues(c("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend","autoplayAnimatedImages"]),p=function(){o.set("spellcheck",!o.spellcheck)},q=function(){o.set("transformTextEmoji",!o.transformTextEmoji)},r=function(){o.set("enterIsSend",!o.enterIsSend)},s=function(){o.set("autoplayAnimatedImages",!o.autoplayAnimatedImages)},t=h._(/*BTDS*/"__JHASH__FkylPA64-io__JHASH__"),u=h._(/*BTDS*/"__JHASH__RErevsQ0R-P__JHASH__");p=k.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:t.toString()+". "+u.toString(),testid:void 0,id:"spellcheck",checked:o.spellcheck,checkboxRightAligned:!0,checkboxXStyle:d("WAWebUISpacing").uiMargin.end6,onChange:p,children:[t,k.jsx(d("WAWebText.react").WAWebTextMuted,{children:u})]});t=h._(/*BTDS*/"__JHASH__Mc6-_s3Je7G__JHASH__");u=h._(/*BTDS*/"__JHASH__lh9xyMV22vc__JHASH__");q=k.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:t.toString()+". "+u.toString(),testid:void 0,id:"emoji",checked:o.transformTextEmoji,checkboxRightAligned:!0,checkboxXStyle:d("WAWebUISpacing").uiMargin.end6,onChange:q,children:[t,k.jsx(d("WAWebText.react").WAWebTextMuted,{children:u})]});t=h._(/*BTDS*/"__JHASH__gJwC9rI7vT7__JHASH__");u=h._(/*BTDS*/"__JHASH__HqdVyM4do_c__JHASH__");r=k.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:t.toString()+". "+u.toString(),testid:void 0,id:"enter",checked:o.enterIsSend,checkboxRightAligned:!0,checkboxXStyle:d("WAWebUISpacing").uiMargin.end6,onChange:r,children:[t,k.jsx(d("WAWebText.react").WAWebTextMuted,{children:u})]});t=h._(/*BTDS*/"__JHASH__Q4vml0Co4UQ__JHASH__");u=h._(/*BTDS*/"__JHASH__Kb1FKNQq0eB__JHASH__");s=k.jsxs(d("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:t.toString()+". "+u.toString(),testid:void 0,id:"animated-images",checked:o.autoplayAnimatedImages,checkboxRightAligned:!0,checkboxXStyle:d("WAWebUISpacing").uiMargin.end6,onChange:s,children:[t,k.jsx(d("WAWebText.react").WAWebTextMuted,{children:u})]});t=d("WAWebMediaGatingUtils").isHDMediaGlobalSettingEnabled()&&k.jsx(c("WAWebDrawerItem.react"),{title:d("WAWebSettingsHierarchy").MediaUploadQualitySettingsItem.title(),theme:"privacy",icon:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:e,testid:void 0});return k.jsxs(c("WAWebDrawer.react"),{ref:a,theme:"striped",testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:d("WAWebSettingsFBT").chatsTitle(),onBack:i,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(d("WAWebMenu.react").WDSMenu,{size:"medium",colorScheme:"default",children:[k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:h._(/*BTDS*/"__JHASH__L9_wseaGfuT__JHASH__"),titleXStyle:[d("WAWebUISpacing").uiPadding.vert20,d("WAWebUISpacing").uiPadding.horiz0],animation:!1,children:[k.jsx(c("WAWebDrawerItem.react"),{title:d("WAWebSettingsHierarchy").ThemeSettingsItem.title(),theme:"privacy",icon:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:f,testid:void 0,children:n(j)}),k.jsx(c("WAWebDrawerItem.react"),{title:h._(/*BTDS*/"__JHASH__-0lR0cbUO-9__JHASH__"),theme:"privacy",icon:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:g,isLastItem:!0,testid:void 0})]}),k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:h._(/*BTDS*/"__JHASH__ldARssFNuZ6__JHASH__"),titleXStyle:[d("WAWebUISpacing").uiPadding.vert20,d("WAWebUISpacing").uiPadding.horiz0],animation:!1,children:[t,k.jsx(c("WAWebDrawerItem.react"),{title:d("WAWebSettingsHierarchy").MediaAutoDownloadSettingsItem.title(),theme:"privacy",icon:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:b,testid:void 0}),p,q,r,d("WAWebAnimatedEmojiGatingUtils").isAnimatedEmojiEnabled()&&s]})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g.ChatsSettingsDrawer=a}),226); __d("WAWebConfirmLogoutModal.react",["fbt","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebDrawerManager","WAWebLockScreenResolver","WAWebModalManager","WAWebMsgCollection","WAWebScreenLockDrawer.react","WAWebSocketModel","WAWebUIRefreshGatingUtils","WAWebUserPrefsScreenLock","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k=function(){d("WAWebModalManager").ModalManager.close(),d("WAWebUserPrefsScreenLock").getScreenLockEnabled()?void d("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow():d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(c("WAWebScreenLockDrawer.react"),{onCancel:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}))};function a(a){a=a.checkUnsent;a=a&&d("WAWebMsgCollection").MsgCollection.hasUnsentMessages()?h._(/*BTDS*/"__JHASH__xiQMrcGTdr2__JHASH__"):h._(/*BTDS*/"__JHASH__dGlWt0s9u-h__JHASH__");var b=d("WAWebUserPrefsScreenLock").getScreenLockEnabled()?null:h._(/*BTDS*/"__JHASH__eoPl2lPRuM6__JHASH__",[h._implicitParam("=m2",j.jsx(c("WAWebClickableLink.react"),{onClick:k,children:h._(/*BTDS*/"__JHASH__INDNC3xTkiy__JHASH__")}))]);return j.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__KnrxUp8npsr__JHASH__"),onOK:function(){return d("WAWebSocketModel").Socket.logout()},okText:h._(/*BTDS*/"__JHASH__3n1bF_cZdZK__JHASH__"),okButtonType:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?"solid-warning":void 0,onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),children:[a,j.jsx("br",{}),b]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWamEnumDmChatPickerEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT_MODE_SETTING:0,STORAGE_SETTING:1,PRIVACY_SETTING:2});f.DM_CHAT_PICKER_ENTRY_POINT_TYPE=a}),66); __d("WAWebWamEnumDmChatPickerEventNameType",[],(function(a,b,c,d,e,f){a=Object.freeze({CHAT_PICKER_LINK_IMPRESSION:0,CHAT_PICKER_TRAY_OPEN:1,CHAT_PICKER_TRAY_EXIT:2,CHAT_PICKER_CHATS_SELECTED:3});f.DM_CHAT_PICKER_EVENT_NAME_TYPE=a}),66); __d("WAWebDisappearingMessageChatPickerWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDmChatPickerEntryPointType","WAWebWamEnumDmChatPickerEventNameType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({DisappearingMessageChatPicker:[3398,{chatsSelected:[1,a.TYPES.INTEGER],dmChatPickerEntryPoint:[2,d("WAWebWamEnumDmChatPickerEntryPointType").DM_CHAT_PICKER_ENTRY_POINT_TYPE],dmChatPickerEventName:[3,d("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE],ephemeralityDuration:[4,a.TYPES.INTEGER],groupChatsSelected:[5,a.TYPES.INTEGER],groupSizeDistributionJson:[9,a.TYPES.STRING],newlyEphemeralChats:[7,a.TYPES.INTEGER],totalChatsInChatPicker:[8,a.TYPES.INTEGER]},[1,1,1],"regular"]},{DisappearingMessageChatPicker:[]});g.DisappearingMessageChatPickerWamEvent=b}),98); __d("WAWebWamEnumDisappearingModeEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({ACCOUNT_SETTINGS:1,SYSTEM_MESSAGE:2,INDIVIDUAL_CHAT_DISAPPEARING_MESSAGES_SETTING:3,GROUP_CHAT_DISAPPEARING_MESSAGES_SETTING:4,DEEP_LINK:5,STORAGE_SETTINGS:6,PRIVACY_SETTINGS:7});f.DISAPPEARING_MODE_ENTRY_POINT_TYPE=a}),66); __d("WAWebDisappearingModeSettingChangeWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDisappearingModeEntryPointType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({DisappearingModeSettingChange:[3056,{disappearingModeEntryPoint:[4,d("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE],lastToggleTimestamp:[3,a.TYPES.INTEGER],newEphemeralityDuration:[2,a.TYPES.INTEGER],previousEphemeralityDuration:[1,a.TYPES.INTEGER]},[1,1,1],"regular"]},{DisappearingModeSettingChange:[]});g.DisappearingModeSettingChangeWamEvent=b}),98); __d("WAWebWamEnumDisappearingModeSettingEventNameType",[],(function(a,b,c,d,e,f){a=Object.freeze({DEFAULT_MESSAGE_TIMER_OPEN:1,DEFAULT_MESSAGE_TIMER_SET:2,DEFAULT_MESSAGE_TIMER_EXIT:3,LEARN_MORE_CLICK:4});f.DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE=a}),66); __d("WAWebDisappearingModeSettingEventsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumDisappearingModeSettingEventNameType"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({DisappearingModeSettingEvents:[3446,{disappearingModeEntryPoint:[5,d("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE],disappearingModeSettingEventName:[1,d("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE],lastToggleTimestamp:[2,a.TYPES.INTEGER],newEphemeralityDuration:[3,a.TYPES.INTEGER],previousEphemeralityDuration:[4,a.TYPES.INTEGER]},[1,1,1],"regular"]},{DisappearingModeSettingEvents:[]});g.DisappearingModeSettingEventsWamEvent=b}),98); __d("WAWebEphemeralityDurations",["fbt","WALogger","WAWebABProps","WAWebFormatEphemeralSetting","fbs","gkx"],(function(a,b,c,d,e,f,g,h){function i(){var a=babelHelpers.taggedTemplateLiteralLoose(['Could not find matching duration label for duration: "','"']);i=function(){return a};return a}var j=[86400,604800,7776e3],k=[3600,10800,21600,43200,172800,259200,345600,432e3,518400,1209600,1814400,2592e3,5184e3,15552e3,31536e3];function l(a,b){return{type:b,value:a,label:d("WAWebFormatEphemeralSetting").getDisappearingMessageDurationString(a)}}function m(a){a===void 0&&(a=!1);var b=[].concat(j.map(function(a){return l(a,"default")}));if(d("WAWebABProps").getABPropConfigValue("dm_additional_durations")){var e;(e=b).push.apply(e,k.map(function(a){return l(a,"additional")}))}if(!c("gkx")("26258")||c("gkx")("26256")){e=[5,10,15,30,60,300,600];b=[].concat(b,e.map(function(a){return l(a,"dev")}))}a?b.sort(function(a,b){return b.value-a.value}):b.sort(function(a,b){return a.value-b.value});b.push({type:"default",value:0,label:c("fbs")._(/*BTDS*/"__JHASH__oQybUFYxCdX__JHASH__")});return b}function a(a){return m(a).filter(function(a){return a.type==="default"})}function b(a){return m(a).filter(function(a){return["additional","dev"].includes(a.type)})}function e(a){var b=m().find(function(b){return b.value===a});if(b===void 0&&typeof a==="number"){d("WALogger").ERROR(i(),a).sendLogs("No matching duration label");return h._(/*BTDS*/"__JHASH__CnDh-78i20l__JHASH__")}else if(b===void 0)return h._(/*BTDS*/"__JHASH___OlAuN_O39U__JHASH__");return b.label}g.getDefaultEphemeralityDurations=a;g.getAdditionalEphemeralityDurations=b;g.durationToLabel=e}),226); __d("WAWebEphemeralSettingChangeWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumEphemeralSettingEntryPointType","WAWebWamEnumPreciseSizeBucket"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({EphemeralSettingChange:[2370,{chatEphemeralityDuration:[1,a.TYPES.INTEGER],ephemeralSettingEntryPoint:[3,d("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE],ephemeralSettingGroupSize:[5,d("WAWebWamEnumPreciseSizeBucket").PRECISE_SIZE_BUCKET],previousEphemeralityDuration:[2,a.TYPES.INTEGER],threadId:[6,a.TYPES.STRING]},[1,1,1],"regular"]},{EphemeralSettingChange:[]});g.EphemeralSettingChangeWamEvent=b}),98); __d("WAWebUpdateEphemeralSettingTimestampChatAction",["WALogger","WAWebChatGetters","WAWebDBUpdateChatTable"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat.updateEphemeralSettingTimestamp chatId="," ephemeralSettingTimestamp=",""]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat.updateEphemeralSettingTimestamp should not be called for group ",""]);i=function(){return a};return a}function a(a,b){if(d("WAWebChatGetters").getIsGroup(a)){d("WALogger").ERROR(i(),a.id.toLogString()).sendLogs("update-ephemeral-setting-timestamp");return}d("WAWebDBUpdateChatTable").updateChatTable(a.id,{ephemeralSettingTimestamp:b}).then(function(){a.ephemeralSettingTimestamp=b,d("WALogger").LOG(h(),a.id.toLogString(),b)})}g["default"]=a}),98); __d("WAWebChangeEphemeralDurationChatAction",["Promise","WALogger","WATimeUtils","WAWebABProps","WAWebChatEphemerality","WAWebChatGetters","WAWebChatThreadLogging","WAWebContactBlockedErrorAction","WAWebContactGetters","WAWebDBChatEphemeralExemptionData","WAWebDBUpdateChatTable","WAWebEphemeralSettingChangeWamEvent","WAWebEphemeralityTypes","WAWebGroupConstants","WAWebGroupModifyInfoJob","WAWebMsgKey","WAWebMsgType","WAWebSendMsgChatAction","WAWebSendMsgResultAction","WAWebUpdateEphemeralSettingTimestampChatAction","WAWebUserPrefsMeUser","WAWebWamNumberToPreciseSizeBucket","asyncToGeneratorRuntime","err"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat.changeEphemeralDuration chatId="," ephemeralDuration=",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["chat.changeChatEphemeralDuration should not be called for group ",""]);j=function(){return a};return a}function k(a,b,c){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f){if(d("WAWebChatGetters").getIsGroup(a)){d("WALogger").ERROR(j(),a.id.toLogString()).sendLogs("change-ephemeral-duration");throw c("err")("changeChatEphemeralDuration should not be called for group. Use changeEphemeralDuration which handles both 1-1 and group cases")}var g=a.contact;if(d("WAWebContactGetters").getIsUser(g)&&g.isContactBlocked)return(h||(h=b("Promise"))).reject(new(c("WAWebContactBlockedErrorAction"))("changing ephemeral setting for contact is blocked",g));g=new(c("WAWebMsgKey"))({id:yield c("WAWebMsgKey").newId(),remote:a.id,fromMe:!0});var k={};d("WAWebABProps").getABPropConfigValue("dm_initiator_trigger")&&(k={disappearingModeTrigger:f,disappearingModeInitiatedByMe:!0});var l=d("WAWebUserPrefsMeUser").getMeUser();g=babelHelpers["extends"]({id:g,from:l,to:a.id,t:d("WATimeUtils").unixTime(),type:d("WAWebMsgType").MSG_TYPE.PROTOCOL,subtype:"ephemeral_setting",ephemeralDuration:e,ephemeralSettingUser:l,local:!0,isNewMsg:!0},k);l=a.ephemeralSettingTimestamp==null?1:a.ephemeralSettingTimestamp+1;c("WAWebUpdateEphemeralSettingTimestampChatAction")(a,l);k=(yield d("WAWebSendMsgChatAction").addAndSendMsgToChat(a,g)[1]);k.messageSendResult===d("WAWebSendMsgResultAction").SendMsgResult.OK&&k.t!=null&&c("WAWebUpdateEphemeralSettingTimestampChatAction")(a,k.t);l={};d("WAWebABProps").getABPropConfigValue("dm_initiator_trigger")&&(l={disappearingModeTrigger:f,disappearingModeInitiatedByMe:!0});yield d("WAWebDBUpdateChatTable").updateChatTable(a.id,babelHelpers["extends"]({ephemeralDuration:e,disappearingModeInitiator:d("WAWebEphemeralityTypes").DisappearingModeInitiator.ChangedInChat},l));a.ephemeralDuration=e;a.disappearingModeInitiator=d("WAWebEphemeralityTypes").DisappearingModeInitiator.ChangedInChat;d("WAWebABProps").getABPropConfigValue("dm_initiator_trigger")&&(a.disappearingModeTrigger=f,a.disappearingModeInitiatedByMe=!0);d("WAWebDBChatEphemeralExemptionData").updateEphemeralDurationCache(a.id,a.ephemeralDuration);d("WALogger").LOG(i(),a.id.toLogString(),e)});return l.apply(this,arguments)}function m(a,b,c){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){if(!d("WAWebChatGetters").getIsGroup(a))throw c("err")("changeGroupEphemeralDuration should not be called for 1-1 chats. Use changeEphemeralDuration which handles both 1-1 and group cases");d("WAWebABProps").getABPropConfigValue("dm_initiator_trigger_groups")?yield d("WAWebGroupModifyInfoJob").setEphemeralGroupProperty(a.id,b,e):yield d("WAWebGroupModifyInfoJob").setGroupProperty(a.id,d("WAWebGroupConstants").GROUP_SETTING_TYPE.EPHEMERAL,b)});return n.apply(this,arguments)}function o(a,b,c,d){return p.apply(this,arguments)}function p(){p=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e,f){if(!d("WAWebChatEphemerality").shouldShowEphemeralSetting(a))throw c("err")("user cannot change group ephemeral duration for chat "+a.id.toString());var g=d("WAWebChatEphemerality").getEphemeralSetting(a);g!==b&&(d("WAWebChatGetters").getIsGroup(a)?yield m(a,b,f):yield k(a,b,f));f={chatEphemeralityDuration:b,threadId:yield d("WAWebChatThreadLogging").getChatThreadID(a.id.toJid()),ephemeralSettingEntryPoint:e};g!=null&&(f.previousEphemeralityDuration=g);if(d("WAWebChatGetters").getIsGroup(a)){f.ephemeralSettingGroupSize=d("WAWebWamNumberToPreciseSizeBucket").numberToPreciseSizeBucket((e=(b=a.groupMetadata)==null?void 0:b.participants.length)!=null?e:0)}new(d("WAWebEphemeralSettingChangeWamEvent").EphemeralSettingChangeWamEvent)(f).commit()});return p.apply(this,arguments)}function a(a,c,e){a=a.map(function(a){return o(a,c,e,d("WAWebEphemeralityTypes").DisappearingModeTrigger.BulkChange)});return(h||(h=b("Promise"))).allSettled(a)}g.changeEphemeralDuration=o;g.bulkChangeEphemeralDuration=a}),98); __d("WAWebMultiSelectDdm.react",["fbt","WALogger","WAWebChangeEphemeralDurationChatAction","WAWebChatEphemerality","WAWebChatGetters","WAWebChatModel","WAWebChevronCustomIcons","WAWebDisappearingMessageChatPickerWamEvent","WAWebDropdownItem.react","WAWebEphemeralConstants","WAWebEphemeralityDurations","WAWebModalManager","WAWebSelectModal.react","WAWebSelectModalFooter.react","WAWebSvgComponentBase","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnstyledButton.react","WAWebUserPrefsMultiDevice","WAWebWamEnumDmChatPickerEventNameType","WAWebWamEnumEphemeralSettingEntryPointType","asyncToGeneratorRuntime","err","gkx","react"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["bulkChangeEphemeralDuration result has unknown status ",""]);k=function(){return a};return a}e=j||d("react");var l=i||(i=c("react")),m=e.useEffect,n=e.useRef,o=e.useState,p={durationCTA:{display:"x78zum5",justifyContent:"x1qughib",alignItems:"x6s0dn4",textAlign:"x1yc453h",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x13mi150",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xq17mqv",backgroundColor:"x150wa6m",":hover_backgroundColor":"x1z0qo99",$$css:!0}};function q(a){var b=a.initialDuration,e=a.onSelect;a=o(!1);var f=a[0],g=a[1];a=o(b!=null&&b>0?b:d("WAWebEphemeralConstants").NINETY_DAYS);var i=a[0],j=a[1];b=n();var k;if(f){var m=function(a){j(a),e(a)};a={menu:d("WAWebEphemeralityDurations").getDefaultEphemeralityDurations().filter(function(a){return a.value>0}).map(function(a){return l.jsx(d("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return m(a.value)},selected:i===a.value,children:a.label},"dm-duration-dd-"+a.value)}),anchor:b.current};k=l.jsx(d("WAWebUimUie.react").UIE,{displayName:"ChatContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:function(){return g(!1)},children:l.jsx(c("WAWebUimUieMenu.react"),{contextMenu:a})})}return l.jsxs(c("WAWebUnstyledButton.react"),{xstyle:[p.durationCTA,d("WAWebUISpacing").uiPadding.vert16,d("WAWebUISpacing").uiPadding.horiz32],onClick:function(){return g(!0)},ref:b,children:[l.jsxs("div",{children:[l.jsx(d("WAWebText.react").WAWebTextTitle,{children:h._(/*BTDS*/"__JHASH__J3cYck0uDM8__JHASH__")}),l.jsx(d("WAWebText.react").WAWebTextMuted,{as:"h1",children:d("WAWebEphemeralityDurations").durationToLabel(i)})]}),l.jsx(d("WAWebChevronCustomIcons").ChevronDownCustomIcon,{DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:24}),k]})}q.displayName=q.name+" [from "+f.id+"]";function r(a,b,e){switch(a){case d("WAWebEphemeralConstants").ONE_DAY:return h._(/*BTDS*/"__JHASH__zydQSB3BoxP__JHASH__",[h._plural(b,"appliedChatCount")]);case d("WAWebEphemeralConstants").SEVEN_DAYS:return h._(/*BTDS*/"__JHASH__roHqhS9KkfW__JHASH__",[h._plural(b,"appliedChatCount")]);case d("WAWebEphemeralConstants").NINETY_DAYS:return h._(/*BTDS*/"__JHASH__K4PLO2PvjbG__JHASH__",[h._plural(b,"appliedChatCount")]);default:throw c("err")("Duration passed to DM Chat Picker invalid "+a)}}function a(a){var e=a.entryPoint,f=a.initialDuration;a=a.ref;var g=o(0),i=g[0],j=g[1];g=o(f!=null&&f>0?f:d("WAWebEphemeralConstants").NINETY_DAYS);var n=g[0],p=g[1];m(function(){new(d("WAWebDisappearingMessageChatPickerWamEvent").DisappearingMessageChatPickerWamEvent)({dmChatPickerEntryPoint:e,dmChatPickerEventName:d("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_TRAY_OPEN,ephemeralityDuration:n}).commit()},[]);f=l.jsx(q,{initialDuration:n,onSelect:function(a){return p(a)}});var s=function(a,b){var c=a.filter(function(a){return d("WAWebChatGetters").getIsGroup(a)}),f=a.filter(function(a){if(a instanceof d("WAWebChatModel").Chat)return!d("WAWebChatEphemerality").isEphemeralSettingOn(a)}).length;new(d("WAWebDisappearingMessageChatPickerWamEvent").DisappearingMessageChatPickerWamEvent)({dmChatPickerEntryPoint:e,dmChatPickerEventName:b,ephemeralityDuration:n,chatsSelected:a.length,groupChatsSelected:c.length,totalChatsInChatPicker:i,newlyEphemeralChats:f}).commit()};g=function(a){j(a.length)};var t=function(a){s(a,d("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_TRAY_EXIT),d("WAWebModalManager").ModalManager.close()},u=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){s(a,d("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_CHATS_SELECTED);d("WAWebModalManager").ModalManager.close();var b=0,e=0;a=(yield d("WAWebChangeEphemeralDurationChatAction").bulkChangeEphemeralDuration(a,n,d("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.CHAT_PICKER));a.map(function(a){switch(a.status){case"fulfilled":b++;break;case"rejected":e++;break;default:d("WALogger").ERROR(k(),a.status)}});c("gkx")("26258")||(b>0&&d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:r(n,b,i)})),e>0&&d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__nTlVQc7JANw__JHASH__",[h._plural(e,"errorCount")])})))});return function(b){return a.apply(this,arguments)}}(),v=function(a){if(a instanceof d("WAWebChatModel").Chat&&!d("WAWebChatEphemerality").shouldShowEphemeralSetting(a))return!0;return a instanceof d("WAWebChatModel").Chat&&d("WAWebChatGetters").getIsGroup(a)&&!((a=a.groupMetadata)==null?void 0:a.canSetEphemeralSetting())?!0:!1},w=function(a,b){if(b)return h._(/*BTDS*/"__JHASH__LIAuXHyB6uT__JHASH__")},x=function(){var a=d("WAWebUserPrefsMultiDevice").getIsHostedMeAccountFromLocalStorage();return a};return l.jsx(d("WAWebSelectModal.react").SelectModal,{ref:a,testid:void 0,title:h._(/*BTDS*/"__JHASH__kcX0SlEreE5__JHASH__"),customHeader:f,onConfirm:u,listType:d("WAWebSelectModal.react").ListType.ChatSelectModal,singleSelectionFooterType:d("WAWebSelectModalFooter.react").FooterType.CONFIRM,multipleSelectionFooterType:d("WAWebSelectModalFooter.react").FooterType.CONFIRM,ephemeralIcon:"conversation-header",isDisabled:v,customItemSecondaryText:w,onCancel:t,onDataLoaded:g,excludeContacts:!0,excludeAllExceptGroupChats:x(),getSelectionSummary:function(a){return h._(/*BTDS*/"__JHASH__ktzwRTl0vPd__JHASH__",[h._plural(a.length,"number")])}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSetDisappearingModeJob",["WADeprecatedSendIq","WADeprecatedWapParser","WALogger","WAWap","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["setDisappearingMode: failed ",", ",""]);h=function(){return a};return a}var i=new(c("WADeprecatedWapParser"))("setDMResponseParser",function(a){a.assertTag("iq");a.assertAttr("type","result");return});function a(a){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;b=(b=d("WAWap")).wap("iq",{xmlns:"disappearing_mode",to:b.S_WHATSAPP_NET,type:"set",id:b.generateId()},b.wap("disappearing_mode",{duration:b.CUSTOM_STRING(String(a))}));a=(yield d("WADeprecatedSendIq").deprecatedSendIq(b,i));if(!a.success){b=a.errorCode;a=a.errorText;d("WALogger").WARN(h(),b,a).tags("DM","DDM");throw new Error({errorCode:b,errorText:a})}});return j.apply(this,arguments)}g.setDisappearingMode=a}),98); __d("WAWebSetDisappearingModePrivacyAction",["WATimeUtils","WAWebSetDisappearingModeJob","WAWebUpdateDisappearingModeForContact","WAWebUserPrefsMeUser","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){yield d("WAWebSetDisappearingModeJob").setDisappearingMode(a);var b=d("WAWebUserPrefsMeUser").getMeUser();yield d("WAWebUpdateDisappearingModeForContact").updateDisappearingModeForContact(b,a,d("WATimeUtils").unixTime())});return h.apply(this,arguments)}g.setDisappearingMode=a}),98); __d("WAWebDefaultEphemeralityDrawer.react",["fbt","WALogger","WATimeUtils","WAWebABProps","WAWebClickableLink.react","WAWebContactCollection","WAWebDisappearingMessageChatPickerWamEvent","WAWebDisappearingModeSettingChangeWamEvent","WAWebDisappearingModeSettingEventsWamEvent","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebEphemeralityDurations","WAWebEphemeralityResolver","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebModalManager","WAWebMultiSelectDdm.react","WAWebRadio.react","WAWebSetDisappearingModePrivacyAction","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebWamEnumDisappearingModeSettingEventNameType","WAWebWamEnumDmChatPickerEntryPointType","WAWebWamEnumDmChatPickerEventNameType","react"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["DDM duration change failed. Entry: "," Previous: "," New: ",""]);k=function(){return a};return a}b=j||d("react");var l=i||(i=c("react")),m=b.useEffect,n=b.useMemo,o=b.useState,p={learnMoreLink:{display:"x1rg5ohu",marginTop:"x1e1m7ul",fontSize:"x1f6kntn",$$css:!0}};function a(a){var b=a.entryPoint,e=a.onClose;a=a.ref;var f=n(function(){var a,b=d("WAWebEphemeralityResolver").getDisappearingModeSettingForUser(d("WAWebContactCollection").ContactCollection.getMeContact());return{duration:(a=b==null?void 0:b.duration)!=null?a:0,settingTimestamp:(a=b==null?void 0:b.settingTimestamp)!=null?a:0}},[]),g=o({duration:f.duration,settingTimestamp:f.settingTimestamp}),i=g[0],j=g[1],q=i.duration>0;m(function(){new(d("WAWebDisappearingModeSettingEventsWamEvent").DisappearingModeSettingEventsWamEvent)({disappearingModeSettingEventName:d("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE.DEFAULT_MESSAGE_TIMER_OPEN,disappearingModeEntryPoint:b}).commit()},[]);m(function(){q&&new(d("WAWebDisappearingMessageChatPickerWamEvent").DisappearingMessageChatPickerWamEvent)({dmChatPickerEntryPoint:d("WAWebWamEnumDmChatPickerEntryPointType").DM_CHAT_PICKER_ENTRY_POINT_TYPE.DEFAULT_MODE_SETTING,dmChatPickerEventName:d("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_LINK_IMPRESSION,ephemeralityDuration:i.duration}).commit()},[q]);function r(a){j({duration:a,settingTimestamp:d("WATimeUtils").unixTime()})}function s(){var a=f.duration,c=f.settingTimestamp,e=i.duration;d("WAWebSetDisappearingModePrivacyAction").setDisappearingMode(e).then(function(){new(d("WAWebDisappearingModeSettingChangeWamEvent").DisappearingModeSettingChangeWamEvent)({disappearingModeEntryPoint:b,lastToggleTimestamp:c,newEphemeralityDuration:e,previousEphemeralityDuration:a}).commit()})["catch"](function(){d("WALogger").ERROR(k(),b,a,e).sendLogs("DDM-change-fail"),d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__Y7n4-OmSRBA__JHASH__")}))})}function t(){d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebMultiSelectDdm.react"),{initialDuration:i.duration,entryPoint:d("WAWebWamEnumDmChatPickerEntryPointType").DM_CHAT_PICKER_ENTRY_POINT_TYPE.DEFAULT_MODE_SETTING}))}function u(){new(d("WAWebDisappearingModeSettingEventsWamEvent").DisappearingModeSettingEventsWamEvent)({disappearingModeSettingEventName:d("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE.LEARN_MORE_CLICK,disappearingModeEntryPoint:b}).commit()}function v(a){s(),new(d("WAWebDisappearingModeSettingEventsWamEvent").DisappearingModeSettingEventsWamEvent)({disappearingModeSettingEventName:d("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE.DEFAULT_MESSAGE_TIMER_EXIT,disappearingModeEntryPoint:b}).commit(),e(a)}g=d("WAWebABProps").getABPropConfigValue("ddm_reversed_options");return l.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__NqddA4sGf70__JHASH__"),onBack:v,focusBackOrCancel:!0,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),l.jsx(c("WAWebDrawerBody.react"),{children:l.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[l.jsx(d("WAWebText.react").WAWebTextSectionTitle,{margin:[32,0,16,0],children:h._(/*BTDS*/"__JHASH__Axm43-SlKYF__JHASH__")}),l.jsx(d("WAWebRadio.react").RadioGroup,{name:"duration",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:i.duration,options:d("WAWebEphemeralityDurations").getDefaultEphemeralityDurations(g).map(function(a){var b=a.value;a=a.label;return{value:b,label:a,onChange:function(){return r(b)}}})}),l.jsxs(d("WAWebFlex.react").FlexColumn,{margin:[16,0],children:[q?l.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__LKkHpMuUXzO__JHASH__",[h._implicitParam("=m1",l.jsx(c("WAWebClickableLink.react"),{onClick:t,tabIndex:0,children:h._(/*BTDS*/"__JHASH__H9o07WoOhVL__JHASH__")}))])}):l.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__-boQxOvsFP3__JHASH__")}),l.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getEphemeralFaqUrl(),xstyle:p.learnMoreLink,onClick:u,children:h._(/*BTDS*/"__JHASH__7yD03xcy9Nd__JHASH__")})]})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebDeveloperMenuConstants",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum").Mirrored(["Menu","ABProps","DebugCommands","NuxManager"]);f.DeveloperMenu=a}),66); __d("WAWebDocumentIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="document";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=112;m=112;(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 112 112",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:"M112 56C112 86.9279 86.9279 112 56 112C25.0721 112 0 86.9279 0 56C0 25.0721 25.0721 0 56 0C86.9279 0 112 25.0721 112 56ZM41.9395 48.6665H69.9395C71.044 48.6665 71.9395 49.5619 71.9395 50.6665C71.9395 51.7711 71.044 52.6665 69.9395 52.6665H41.9395C40.8349 52.6665 39.9395 51.7711 39.9395 50.6665C39.9395 49.5619 40.8349 48.6665 41.9395 48.6665ZM41.9395 58.6665H69.9395C71.044 58.6665 71.9395 59.5619 71.9395 60.6665C71.9395 61.7711 71.044 62.6665 69.9395 62.6665H41.9395C40.8349 62.6665 39.9395 61.7711 39.9395 60.6665C39.9395 59.5619 40.8349 58.6665 41.9395 58.6665ZM53.9394 68.6665H41.9395C40.8349 68.6665 39.9395 69.5619 39.9395 70.6665C39.9395 71.7711 40.8349 72.6665 41.9395 72.6665H53.9394C55.044 72.6665 55.9394 71.7711 55.9394 70.6665C55.9394 69.5619 55.044 68.6665 53.9394 68.6665Z",fill:"#06CF9C",fillOpacity:.15}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M68 19H34C30.6863 19 28 21.6863 28 25V87C28 90.3137 30.6863 93 34 93H78C81.3137 93 84 90.3137 84 87V35L68 19ZM42 49H70C71.1046 49 72 49.8954 72 51C72 52.1046 71.1046 53 70 53H42C40.8954 53 40 52.1046 40 51C40 49.8954 40.8954 49 42 49ZM42 59H70C71.1046 59 72 59.8954 72 61C72 62.1046 71.1046 63 70 63H42C40.8954 63 40 62.1046 40 61C40 59.8954 40.8954 59 42 59ZM54 69H42C40.8954 69 40 69.8954 40 71C40 72.1046 40.8954 73 42 73H54C55.1046 73 56 72.1046 56 71C56 69.8954 55.1046 69 54 69Z",fill:"#06CF9C"}),j.jsx("path",{d:"M84 35L68 19V29C68 32.3137 70.6863 35 74 35L84 35Z",fill:"#00A884"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DocumentIcon=a}),98); __d("WAWebGdprConstants",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum").Mirrored(["Account","Newsletters"]);f.ReportType=a}),66); __d("WAWebGdprRequestAccountInfoSettingsDrawerConfirmPopup",["fbt","WAWebConfirmPopup.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.okDisabled,c=a.okSpinner,e=a.onCancel;a=a.onOK;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{okDisabled:b,okSpinner:c,okText:h._(/*BTDS*/"__JHASH__jdg4oA6HD3D__JHASH__"),onCancel:e,onOK:a,children:h._(/*BTDS*/"__JHASH__FjkF0DkJNzb__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g.RequestAccountInfoSettingsDrawerDeleteConfirmPopup=a}),226); __d("WAWebGdprHookUtils",["WAWap","WAWebGdprConstants"],(function(a,b,c,d,e,f,g){function h(a){switch(a){case d("WAWebGdprConstants").ReportType.Account:return null;case d("WAWebGdprConstants").ReportType.Newsletters:return"newsletters"}}function a(a,b,c){b=h(b);return d("WAWap").wap("iq",{xmlns:"urn:xmpp:whatsapp:account",to:d("WAWap").S_WHATSAPP_NET,type:"get",id:a},b!=null?d("WAWap").wap("gdpr",{action:c,report_type:b}):d("WAWap").wap("gdpr",{action:c}))}g.getGdprIq=a}),98); __d("WAWebCommsExperimental",["WADeprecatedSendIq","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h=new Map();function a(a,b){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var c=a.attrs.id;if(h.has(c)){var e=h.get(c);return e}e=d("WADeprecatedSendIq").deprecatedSendIq(a,b);h.set(c,e);a=(yield e);h.set(c,a);return a});return i.apply(this,arguments)}g.sendSuspensefulIq=a}),98); __d("WAWebUseGdprStatusAction",["WADeprecatedWapParser","WANullthrows","WAWap","WAWebCommsExperimental","WAWebGdprConstants","WAWebGdprHookUtils","WAWebProtobufsE2E.pb","decodeProtobuf","react","useWAWebOnUnmount","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h;e=h||d("react");var i=e.useEffect,j=e.useMemo,k=e.useRef,l=e.useState,m=new(c("WADeprecatedWapParser"))("parseStatus",function(a){if(!a.hasChild("gdpr"))return null;a=a.child("gdpr");if(a.hasChild("document")){var b=a.child("document");return{creation:b.attrTime("creation"),documentMessage:c("WANullthrows")(d("decodeProtobuf").decodeProtobuf(d("WAWebProtobufsE2E.pb").MessageSpec,b.contentBytes()).documentMessage),expiration:b.attrTime("expiration"),type:"GdprAvailableStatusResponse"}}return{timestamp:a.attrTime("timestamp"),type:"GdprPendingStatusResponse"}}),n=new Map([[d("WAWebGdprConstants").ReportType.Account,d("WAWap").generateId()],[d("WAWebGdprConstants").ReportType.Newsletters,d("WAWap").generateId()]]);function a(a){return a.some(function(a){return(a==null?void 0:a.type)==="GdprPendingStatusResponse"||(a==null?void 0:a.type)==="GdprAvailableStatusResponse"})}function o(a,b,e){var f=c("useWAWebUnmountSignal")();c("useWAWebOnUnmount")(function(){n.set(b,d("WAWap").generateId())});var g=l(n.get(b)),h=g[0],o=g[1];g=l(null);var p=g[0],q=g[1],r=k(!0),s=j(function(){return a(c("WANullthrows")(h))},[a,h]);i(function(){if(!e||f.aborted)return;d("WAWebCommsExperimental").sendSuspensefulIq(s,m).then(function(a){f.aborted||q(a)})["finally"](function(){r.current=!1})},[s,e,f]);return[r.current,p,function(){return o(d("WAWap").generateId())}]}function b(a,b){b=o(function(b){return d("WAWebGdprHookUtils").getGdprIq(b,a,"status")},a,b);var c=b[0],e=b[1];b=b[2];return[c,e==null?void 0:e.result,b]}g.GdprStatusWapParser=m;g.doOtherPendingRequestsExist=a;g.useGdprStatus=b}),98); __d("useWAWebSendIq",["WADeprecatedSendIq","react"],(function(a,b,c,d,e,f,g){var h,i=(h||d("react")).useState;function a(a,b){var c=i(!1),e=c[0],f=c[1];return[e,function(){f(!0);return d("WADeprecatedSendIq").deprecatedSendIq(a,b)["finally"](function(){return f(!1)})}]}g.useSendIq=a}),98); __d("WAWebUseGdprDeleteAction",["WAWap","WAWebGdprHookUtils","WAWebUseGdprStatusAction","useWAWebSendIq"],(function(a,b,c,d,e,f,g){function a(a){return d("useWAWebSendIq").useSendIq(d("WAWebGdprHookUtils").getGdprIq(d("WAWap").generateId(),a,"delete"),d("WAWebUseGdprStatusAction").GdprStatusWapParser)}g.useGdprDelete=a}),98); __d("WAWebWamEnumChannelDyiEventType",[],(function(a,b,c,d,e,f){a=Object.freeze({CHANNEL_REPORT_REQUEST:1,CHANNEL_REPORT_DOWNLOAD:2,CHANNEL_REPORT_EXPORT:3});f.CHANNEL_DYI_EVENT_TYPE=a}),66); __d("WAWebChannelDyiWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumChannelDyiEventType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({ChannelDyi:[4726,{channelDyiEventType:[1,d("WAWebWamEnumChannelDyiEventType").CHANNEL_DYI_EVENT_TYPE]},[1,1,1],"regular"]},{ChannelDyi:[]});g.ChannelDyiWamEvent=a}),98); __d("WAWebGdprDownloadMedia",["WABase64","WANullthrows","WATimeUtils","WAWebMediaMmsV4Download","WAWebMediaStorage","WAWebMediaTypes","WAWebMmsMediaTypes","WAWebWamEnumDownloadOriginType","WAWebWamEnumWebcRmrReasonCode"],(function(a,b,c,d,e,f,g){function a(a){var b,e,f=d("WAWebMediaStorage").getOrCreateMediaObject((e=d("WABase64")).encodeB64((b=c("WANullthrows"))(a.fileSha256))),g={debugHint:"setMediaObjectValues",deprecatedMms3Url:b(a.directPath),encFilehash:e.encodeB64(b(a.fileEncSha256)),mediaKey:e.encodeB64(b(a.mediaKey)),mediaKeyTimestamp:d("WATimeUtils").unixTime(),type:d("WAWebMmsMediaTypes").MEDIA_TYPES.DOCUMENT};f.entries.addEntry(g);f.consolidate(babelHelpers["extends"]({},g,{filehash:e.encodeB64(b(a.fileSha256)),type:d("WAWebMediaTypes").TYPE.DOCUMENT}));return d("WAWebMediaMmsV4Download").downloadMedia({downloadEvenIfExpensive:!0,downloadOrigin:d("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.GDPR,mediaObject:f,mediaType:d("WAWebMmsMediaTypes").MEDIA_TYPES.DOCUMENT,mimetype:"application/zip",rmrReason:d("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.DOCUMENT_DOWNLOAD}).then(function(){return f})}g.gdprDownloadMedia=a}),98); __d("WAWebUseGdprDownloadAction",["fbt","WANullthrows","WAWebChannelDyiWamEvent","WAWebFileSaver","WAWebFileSaverTypes","WAWebGdprConstants","WAWebGdprDownloadMedia","WAWebWamEnumChannelDyiEventType","react"],(function(a,b,c,d,e,f,g,h){var i,j=(i||d("react")).useState;function a(){var a=j(!1),b=a[0],e=a[1];return[b,function(a,b){b===d("WAWebGdprConstants").ReportType.Newsletters&&new(d("WAWebChannelDyiWamEvent").ChannelDyiWamEvent)({channelDyiEventType:d("WAWebWamEnumChannelDyiEventType").CHANNEL_DYI_EVENT_TYPE.CHANNEL_REPORT_DOWNLOAD}).commit(),e(!0),d("WAWebGdprDownloadMedia").gdprDownloadMedia(a).then(function(a){return d("WAWebFileSaver").FileSaver.downloadData(c("WANullthrows")(a.mediaBlob).formData(),String(h._(/*BTDS*/"__JHASH__rIxCoQbuQp7__JHASH__")),d("WAWebFileSaverTypes").AllowedFileExtensions.ZIP)})["finally"](function(){return e(!1)})}]}g.useGdprDownload=a}),226); __d("WAWebGdprRequestAccountInfoSettingsDrawerAvailable",["fbt","WALongInt","WAWeb-moment","WAWebDeleteIcon.react","WAWebDownloadIcon.react","WAWebDrawerButton.react","WAWebGdprRequestAccountInfoSettingsDrawerConfirmPopup","WAWebL10nFilesize","WAWebModalManager","WAWebNewsletterGatingUtils","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUseGdprDeleteAction","WAWebUseGdprDownloadAction","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={availability:{marginStart:"x8zvzrc",marginEnd:"x5th0yj",$$css:!0}};function a(a){var b=a.gdprStatus,e=b.creation,f=b.documentMessage;b=b.expiration;var g=a.onDeleteSuccess,i=a.report;a=d("WALongInt").maybeNumberOrThrowIfTooLarge(f.fileLength);var l=d("WAWebUseGdprDownloadAction").useGdprDownload(),m=l[0],n=l[1];l=d("WAWebUseGdprDeleteAction").useGdprDelete(i);var o=l[0],p=l[1];l=h._(/*BTDS*/"__JHASH__6DV3sT1f_sr__JHASH__",[h._param("availability_date",c("WAWeb-moment").unix(b).format("MMMM D, YYYY"))]);return j.jsxs(j.Fragment,{children:[j.jsx("div",babelHelpers["extends"]({className:"x178xt8z x13fuv20 x1nfbk4f xso031l x1q0q8m5 xa93pmm"},{children:j.jsxs(d("WAWebDrawerButton.react").DrawerButtonSimple,{color:"dark",disabled:m,icon:j.jsx(d("WAWebDownloadIcon.react").DownloadIcon,{}),onClick:function(){return n(f,i)},children:[j.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{children:h._(/*BTDS*/"__JHASH__AXyrNUzTn9t__JHASH__")}),j.jsx(d("WAWebText.react").WAWebTextMuted,{children:a!=null?h._(/*BTDS*/"__JHASH__oEXyRJdVYJp__JHASH__",[h._param("availability_date",c("WAWeb-moment").unix(e).format("MMMM D, YYYY")),h._param("file_size",d("WAWebL10nFilesize").getL10nFilesize(a))]):h._(/*BTDS*/"__JHASH__By-TcrDuRQx__JHASH__",[h._param("availability_date",c("WAWeb-moment").unix(e).format("MMMM D, YYYY"))])})]})})),j.jsx("div",babelHelpers["extends"]({className:"xso031l x1q0q8m5 xa93pmm"},{children:j.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{color:"dark",disabled:o,icon:j.jsx(d("WAWebDeleteIcon.react").DeleteIcon,{}),onClick:function(){d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebGdprRequestAccountInfoSettingsDrawerConfirmPopup").RequestAccountInfoSettingsDrawerDeleteConfirmPopup,{okDisabled:o,okSpinner:o,onCancel:function(){return d("WAWebModalManager").ModalManager.close()},onOK:function(){return p().then(function(a){a.success&&(d("WAWebModalManager").ModalManager.close(),g())})}}))},children:j.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{children:h._(/*BTDS*/"__JHASH__1mBAGnrRqbe__JHASH__")})})})),d("WAWebNewsletterGatingUtils").isNewsletterEnabled()?j.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{color:"secondary",size:"16",xstyle:[k.availability,d("WAWebUISpacing").uiMargin.top18],children:l}):j.jsx(d("WAWebText.react").WAWebTextMuted,{xstyle:[k.availability,d("WAWebUISpacing").uiMargin.top30],children:l})]})}a.displayName=a.name+" [from "+f.id+"]";g.RequestAccountInfoSettingsDrawerAvailable=a}),226); __d("WAWebGdprErrors",["WACustomError"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}return b}(d("WACustomError").customError("PendingGdprRequestsError"));g.PendingGdprRequestsError=a}),98); __d("WAWebGdprRequestAccountInfoSettingsFooterNotice",["fbt","WAWebNewsletterGatingUtils","WAWebText.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={availability:{marginBottom:"x1e56ztr",$$css:!0},footer:{paddingStart:"xxpdul3",paddingEnd:"x6x52a7",$$css:!0}};function a(a){var b=a.daysDelta;b=b===void 0?3:b;var e=a.isPending;a=a.newsletterBodyText;b=b<1?1:b;var f=h._(/*BTDS*/"__JHASH__4vhvNe4HDwd__JHASH__");return d("WAWebNewsletterGatingUtils").isNewsletterEnabled()?k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.footer,d("WAWebUISpacing").uiPadding.top18]),{children:k.jsx(d("WAWebText.react").WAWebTextMuted,{children:e?f:k.jsx(k.Fragment,{children:a})})})):k.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.footer,d("WAWebUISpacing").uiPadding.top30]),{children:[k.jsx(d("WAWebText.react").WAWebTextMuted,{xstyle:l.availability,children:h._(/*BTDS*/"__JHASH__6b_tFRSYRhw__JHASH__",[h._plural(b,"number",b)])}),k.jsx(d("WAWebText.react").WAWebTextMuted,{children:f})]}))}a.displayName=a.name+" [from "+f.id+"]";g.RequestAccountInfoSettingsFooterNotice=a}),226); __d("WAWebGdprRequestOverrideModal.react",["fbt","WAWebConfirmPopup.react","WAWebGdprConstants","WAWebModalManager","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"))).useCallback;function n(a){switch(a){case d("WAWebGdprConstants").ReportType.Newsletters:a=h._(/*BTDS*/"__JHASH__9PMwSyiVWDK__JHASH__");var b=h._(/*BTDS*/"__JHASH__qDNKhvLbDAV__JHASH__",[h._implicitParam("=m0",l.jsx("p",{children:h._(/*BTDS*/"__JHASH__GvGWUte5Eia__JHASH__")})),h._implicitParam("=m1",l.jsx("p",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").marginTop12),{children:h._(/*BTDS*/"__JHASH__-1fuO_VuMyl__JHASH__")})))]);return[a,b];case d("WAWebGdprConstants").ReportType.Account:a=h._(/*BTDS*/"__JHASH__PewjImokZwt__JHASH__");b=h._(/*BTDS*/"__JHASH__fd7Ij2f3CLH__JHASH__",[h._implicitParam("=m0",l.jsx("p",{children:h._(/*BTDS*/"__JHASH__yG-6ShLrY3p__JHASH__")})),h._implicitParam("=m1",l.jsx("p",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").marginTop12),{children:h._(/*BTDS*/"__JHASH__Cx080cY8ta8__JHASH__")})))]);return[a,b]}}function a(a){var b=a.onConfirm,c=m(function(){b()["finally"](function(){return d("WAWebModalManager").ModalManager.close()})},[b]);a=n(a.requestedReport);var e=a[0];a=a[1];return l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:e,onOK:c,okText:h._(/*BTDS*/"__JHASH__raK6Q5v08q8__JHASH__"),onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:h._(/*BTDS*/"__JHASH__IMreLehL0sB__JHASH__"),children:a})}a.displayName=a.name+" [from "+f.id+"]";g.RequestOverrideModal=a}),226); __d("WAWebUseGdprRequestAction",["Promise","WAWap","WAWebChannelDyiWamEvent","WAWebGdprConstants","WAWebGdprErrors","WAWebGdprHookUtils","WAWebUseGdprStatusAction","WAWebWamEnumChannelDyiEventType","useWAWebSendIq"],(function(a,b,c,d,e,f,g){var h,i=function(a){switch(a){case d("WAWebGdprConstants").ReportType.Account:return d("WAWebGdprConstants").ReportType.Newsletters;case d("WAWebGdprConstants").ReportType.Newsletters:return d("WAWebGdprConstants").ReportType.Account}};function a(a,c){var e=d("WAWebGdprHookUtils").getGdprIq(d("WAWap").generateId(),a,"request");e=d("useWAWebSendIq").useSendIq(e,d("WAWebUseGdprStatusAction").GdprStatusWapParser);var f=e[0],g=e[1];e=d("WAWebGdprHookUtils").getGdprIq(d("WAWap").generateId(),i(a),"delete");e=d("useWAWebSendIq").useSendIq(e,d("WAWebUseGdprStatusAction").GdprStatusWapParser);e=e[1];var j=c?e:function(){return(h||(h=b("Promise"))).resolve()};return[f,function(e){e===void 0&&(e=!1);if(!e&&c)return(h||(h=b("Promise"))).reject(new(d("WAWebGdprErrors").PendingGdprRequestsError)("GDPR request already in progress"));a===d("WAWebGdprConstants").ReportType.Newsletters&&new(d("WAWebChannelDyiWamEvent").ChannelDyiWamEvent)({channelDyiEventType:d("WAWebWamEnumChannelDyiEventType").CHANNEL_DYI_EVENT_TYPE.CHANNEL_REPORT_REQUEST}).commit();var f=function(){return j().then(function(){return g()})};return e?f():g()}]}g.useGdprRequest=a}),98); __d("WAWebGdprRequestAccountInfoSettingsDrawerInitial",["fbt","WAFilteredCatch","WAWebCmd","WAWebDrawerButton.react","WAWebGdprConstants","WAWebGdprErrors","WAWebGdprRequestAccountInfoSettingsFooterNotice","WAWebGdprRequestOverrideModal.react","WAWebModalManager","WAWebSettingsDocumentIcon.react","WAWebUseGdprRequestAction","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.newsletterBodyText,c=a.onRequestSuccess,e=a.otherPendingRequestsExist,f=a.report;a=d("WAWebUseGdprRequestAction").useGdprRequest(f,e);e=a[0];var g=a[1],h=function(a){return g(a).then(function(a){a.success&&c()})};a=function(){return h()["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebGdprErrors").PendingGdprRequestsError,function(){d("WAWebModalManager").ModalManager.open(j.jsx(d("WAWebGdprRequestOverrideModal.react").RequestOverrideModal,{onConfirm:function(){return h(!0).then(function(){d("WAWebCmd").Cmd.trigger("refresh_gdpr")})},requestedReport:f}))}))};var i=k(f);return j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebDrawerButton.react").DrawerButtonSimple,{className:"x178xt8z x13fuv20 x1nfbk4f xso031l x1q0q8m5 xa93pmm",color:"dark",disabled:e,testid:void 0,icon:j.jsx(d("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon,{}),onClick:a,children:i}),j.jsx(d("WAWebGdprRequestAccountInfoSettingsFooterNotice").RequestAccountInfoSettingsFooterNotice,{newsletterBodyText:b,isPending:!1})]})}a.displayName=a.name+" [from "+f.id+"]";function k(a){switch(a){case d("WAWebGdprConstants").ReportType.Account:return h._(/*BTDS*/"__JHASH__E6cs6Hck3Jv__JHASH__");case d("WAWebGdprConstants").ReportType.Newsletters:return h._(/*BTDS*/"__JHASH__o0Ym-qVc62f__JHASH__")}}function b(a){switch(a){case d("WAWebGdprConstants").ReportType.Account:return"request-gdpr-report-button-account";case d("WAWebGdprConstants").ReportType.Newsletters:return"request-gdpr-report-button-channels"}}g.RequestAccountInfoSettingsDrawerInitial=a}),226); __d("WAWebGdprRequestAccountInfoSettingsDrawerPending",["fbt","WATimeUtils","WAWeb-moment","WAWebBusinessHoursIcon.react","WAWebClock","WAWebDrawerButton.react","WAWebGdprRequestAccountInfoSettingsFooterNotice","WAWebNoop","WAWebText.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){a=a.gdprStatus.timestamp;var b=d("WAWebClock").Clock.daysDeltaAbs(d("WATimeUtils").unixTime(),a);return j.jsxs(j.Fragment,{children:[j.jsxs(d("WAWebDrawerButton.react").DrawerButtonSimple,{color:"dark",className:"xt0e3qv x178xt8z x13fuv20 x1nfbk4f xso031l x1q0q8m5 xa93pmm",icon:j.jsx(d("WAWebBusinessHoursIcon.react").BusinessHoursIcon,{}),onClick:c("WAWebNoop"),children:[j.jsx(d("WAWebText.react").WAWebTextTitle,{testid:void 0,children:h._(/*BTDS*/"__JHASH__yTqTCXtrrHA__JHASH__")}),j.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__Md2FD5cjBvd__JHASH__",[h._param("availability_date",c("WAWeb-moment").unix(a).format("MMMM D, YYYY"))])})]}),j.jsx(d("WAWebGdprRequestAccountInfoSettingsFooterNotice").RequestAccountInfoSettingsFooterNotice,{daysDelta:b,isPending:!0})]})}a.displayName=a.name+" [from "+f.id+"]";g.RequestAccountInfoSettingsDrawerPending=a}),226); __d("WAWebGdprRequestAccountInfoSettingsDrawerBodyContent",["WAWebGdprRequestAccountInfoSettingsDrawerAvailable","WAWebGdprRequestAccountInfoSettingsDrawerInitial","WAWebGdprRequestAccountInfoSettingsDrawerPending","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.newsletterBodyText,c=a.otherPendingRequestsExist,e=a.refetch,f=a.report;a=a.status;switch(a==null?void 0:a.type){case"GdprAvailableStatusResponse":return i.jsx(d("WAWebGdprRequestAccountInfoSettingsDrawerAvailable").RequestAccountInfoSettingsDrawerAvailable,{gdprStatus:a,onDeleteSuccess:e,report:f});case"GdprPendingStatusResponse":return i.jsx(d("WAWebGdprRequestAccountInfoSettingsDrawerPending").RequestAccountInfoSettingsDrawerPending,{gdprStatus:a});default:return i.jsx(d("WAWebGdprRequestAccountInfoSettingsDrawerInitial").RequestAccountInfoSettingsDrawerInitial,{onRequestSuccess:e,otherPendingRequestsExist:c,report:f,newsletterBodyText:b})}}a.displayName=a.name+" [from "+f.id+"]";g.RequestAccountInfoSettingsDrawerBodyContent=a}),98); __d("WAWebWdsPictoDocIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wds-picto-doc";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=88;m=88;(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 88 88",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M49 10.9H24.3c-2 0-3.8.7-5.2 2.2-1.4 1.4-2.2 3.2-2.2 5.2v51.4c0 2 .7 3.8 2.2 5.2 1.4 1.4 3.2 2.2 5.2 2.2h39.4c2 0 3.8-.7 5.2-2.2s2.2-3.2 2.2-5.2V33z",style:{fill:"#25d366",stroke:"#111b21",strokeWidth:1.5}}),j.jsx("path",{d:"M49 10.9v14.8c0 4 3.3 7.3 7.3 7.3h14.1",style:{fill:"none",stroke:"#111b21",strokeWidth:1.5}}),j.jsx("path",{d:"M29.3 29.3h9.8M29.3 44H59M29.3 58.7H59",style:{fill:"none",stroke:"#111b21",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WdsPictoDocIcon=a}),98); __d("WAWebGdprRequestAccountInfoSettingsDrawer.react",["fbt","WAWebDocumentIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebGdprConstants","WAWebGdprRequestAccountInfoSettingsDrawerBodyContent","WAWebNewsletterGatingUtils","WAWebSpinner.react","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUseGdprStatusAction","WAWebWdsPictoDocIcon.react","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.Suspense,m=e.useCallback,n={drawerSection:{paddingTop:"x9orja2",$$css:!0},title:{paddingStart:"xxpdul3",marginTop:"x1dpc15r",marginBottom:"xcugx37",$$css:!0}};function a(a){var b=a.onClose,e=a.ref;a.settings;a=d("WAWebUseGdprStatusAction").useGdprStatus(d("WAWebGdprConstants").ReportType.Account,!0);var f=a[0],g=a[1],i=a[2];a=d("WAWebUseGdprStatusAction").useGdprStatus(d("WAWebGdprConstants").ReportType.Newsletters,d("WAWebNewsletterGatingUtils").isNewsletterEnabled());var j=a[0],l=a[1],n=a[2];a=m(function(){i(),d("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&n()},[i,n]);return k.jsxs(c("WAWebDrawer.react"),{ref:e,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__gpxyPtIcbAi__JHASH__"),onBack:b,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsx(p,{isLoading:f,report:d("WAWebGdprConstants").ReportType.Account,status:g,refetch:a,otherPendingRequestsExist:d("WAWebUseGdprStatusAction").doOtherPendingRequestsExist([l])}),d("WAWebNewsletterGatingUtils").isNewsletterEnabled()?k.jsx(p,{isLoading:j,report:d("WAWebGdprConstants").ReportType.Newsletters,status:l,refetch:a,otherPendingRequestsExist:d("WAWebUseGdprStatusAction").doOtherPendingRequestsExist([g])}):null]})]})}a.displayName=a.name+" [from "+f.id+"]";function b(a){switch(a){case d("WAWebGdprConstants").ReportType.Account:return"account-information";case d("WAWebGdprConstants").ReportType.Newsletters:return"newsletter-activity"}}function o(a){switch(a){case d("WAWebGdprConstants").ReportType.Account:a=h._(/*BTDS*/"__JHASH__F3W5448qneP__JHASH__");return[a,k.jsxs(k.Fragment,{children:[h._(/*BTDS*/"__JHASH__d_TKglOd-jH__JHASH__")," ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getRequestAccountInfoFAQUrl(),children:h._(/*BTDS*/"__JHASH__cPeuRdfMfNF__JHASH__")})]})];case d("WAWebGdprConstants").ReportType.Newsletters:a=h._(/*BTDS*/"__JHASH__ZxWO8NDPqqF__JHASH__");return[a,k.jsxs(k.Fragment,{children:[h._(/*BTDS*/"__JHASH__2GvtQGrPodw__JHASH__")," ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getNewsletterActivityInforUrl(),children:h._(/*BTDS*/"__JHASH__cPeuRdfMfNF__JHASH__")})]})]}}function p(a){var b=a.isLoading,e=a.otherPendingRequestsExist,f=a.refetch,g=a.report;a=a.status;var h=o(g),i=h[0];h=h[1];return d("WAWebNewsletterGatingUtils").isNewsletterEnabled()?k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,xstyle:[n.drawerSection,d("WAWebUISpacing").uiPadding.bottom18],testid:void 0,children:[k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:n.title,children:k.jsx(d("WAWebText.react").WAWebTextMuted,{children:i})}),b?k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebSpinner.react").Spinner,{size:50,stroke:4})})}):k.jsx(d("WAWebGdprRequestAccountInfoSettingsDrawerBodyContent").RequestAccountInfoSettingsDrawerBodyContent,{status:a,refetch:f,report:g,otherPendingRequestsExist:e,newsletterBodyText:k.jsx(k.Fragment,{children:h})})]}):k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,xstyle:[n.drawerSection,d("WAWebUISpacing").uiPadding.bottom30],testid:void 0,children:[k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(c("WAWebFlexItem.react"),{children:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?k.jsx(d("WAWebWdsPictoDocIcon.react").WdsPictoDocIcon,{}):k.jsx(d("WAWebDocumentIcon.react").DocumentIcon,{})})}),k.jsx(d("WAWebText.react").WAWebTextMuted,{padding:32,children:h}),k.jsx(l,{fallback:k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebSpinner.react").Spinner,{size:50,stroke:4})})}),children:k.jsx(d("WAWebGdprRequestAccountInfoSettingsDrawerBodyContent").RequestAccountInfoSettingsDrawerBodyContent,{status:a,refetch:f,report:g,otherPendingRequestsExist:e})})]})}p.displayName=p.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebContactQuestionIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="contact-question";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",{opacity:.9,d:"M9 20H5C4.45 20 3.97917 19.8042 3.5875 19.4125C3.19583 19.0208 3 18.55 3 18V4C3 3.45 3.19583 2.97917 3.5875 2.5875C3.97917 2.19583 4.45 2 5 2H19C19.55 2 20.0208 2.19583 20.4125 2.5875C20.8042 2.97917 21 3.45 21 4V18C21 18.55 20.8042 19.0208 20.4125 19.4125C20.0208 19.8042 19.55 20 19 20H15L12.7 22.3C12.5 22.5 12.2667 22.6 12 22.6C11.7333 22.6 11.5 22.5 11.3 22.3L9 20ZM5 18H9.8L12 20.2L14.2 18H19V4H5V18ZM11.9 17C12.25 17 12.5458 16.8792 12.7875 16.6375C13.0292 16.3958 13.15 16.1 13.15 15.75C13.15 15.4 13.0292 15.1042 12.7875 14.8625C12.5458 14.6208 12.25 14.5 11.9 14.5C11.55 14.5 11.2542 14.6208 11.0125 14.8625C10.7708 15.1042 10.65 15.4 10.65 15.75C10.65 16.1 10.7708 16.3958 11.0125 16.6375C11.2542 16.8792 11.55 17 11.9 17ZM13.65 8C13.65 8.28333 13.5583 8.5875 13.375 8.9125C13.1917 9.2375 12.8833 9.59167 12.45 9.975C12.1667 10.225 11.9375 10.4625 11.7625 10.6875C11.5875 10.9125 11.4417 11.1417 11.325 11.375C11.2583 11.5083 11.2083 11.6417 11.175 11.775C11.1417 11.9083 11.1083 12.0583 11.075 12.225C11.0417 12.475 11.1083 12.6917 11.275 12.875C11.4417 13.0583 11.6583 13.15 11.925 13.15C12.1583 13.15 12.3667 13.0667 12.55 12.9C12.7333 12.7333 12.8583 12.5083 12.925 12.225C12.975 11.9917 13.0708 11.775 13.2125 11.575C13.3542 11.375 13.5833 11.1167 13.9 10.8C14.4833 10.2167 14.8958 9.725 15.1375 9.325C15.3792 8.925 15.5 8.48333 15.5 8C15.5 7.1 15.1958 6.375 14.5875 5.825C13.9792 5.275 13.15 5 12.1 5C11.35 5 10.7 5.15833 10.15 5.475C9.6 5.79167 9.15833 6.23333 8.825 6.8C8.70833 7 8.70417 7.20833 8.8125 7.425C8.92083 7.64167 9.09167 7.79167 9.325 7.875C9.54167 7.95833 9.75833 7.95833 9.975 7.875C10.1917 7.79167 10.3667 7.65833 10.5 7.475C10.6833 7.24167 10.9083 7.05417 11.175 6.9125C11.4417 6.77083 11.75 6.7 12.1 6.7C12.5333 6.7 12.9 6.82083 13.2 7.0625C13.5 7.30417 13.65 7.61667 13.65 8Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ContactQuestionIcon=a}),98); __d("WAWebIcRateAppIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="ic-rate-app";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:"m12 13.63 2.11 1.276q.304.195.61-.014a.5.5 0 0 0 .221-.568l-.554-2.414 1.886-1.637a.53.53 0 0 0 .167-.596q-.11-.347-.5-.375l-2.469-.194-.971-2.275A.5.5 0 0 0 12 6.5a.5.5 0 0 0-.499.333l-.97 2.275-2.47.194q-.388.028-.5.375a.53.53 0 0 0 .167.596l1.887 1.637-.555 2.414q-.084.36.222.568a.51.51 0 0 0 .61.014z",fill:"currentColor"}),j.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.6A2.6 2.6 0 0 1 4.6 2h14.8A2.6 2.6 0 0 1 22 4.6v12.8a2.6 2.6 0 0 1-2.6 2.6h-3.486l-3.03 3.03a1.25 1.25 0 0 1-1.768 0L8.086 20H4.6A2.6 2.6 0 0 1 2 17.4zM4.6 4a.6.6 0 0 0-.6.6v12.8a.6.6 0 0 0 .6.6h3.693a1.5 1.5 0 0 1 1.06.44L12 21.085l2.646-2.647A1.5 1.5 0 0 1 15.707 18H19.4a.6.6 0 0 0 .6-.6V4.6a.6.6 0 0 0-.6-.6z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.IcRateAppIcon=a}),98); __d("WAWebTestRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="test-refreshed";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:"M5.00018 21C4.15018 21 3.54602 20.6208 3.18768 19.8625C2.82935 19.1042 2.91685 18.4 3.45018 17.75L9.00018 11V5H8.00018C7.71685 5 7.47935 4.90417 7.28768 4.7125C7.09602 4.52083 7.00018 4.28333 7.00018 4C7.00018 3.71667 7.09602 3.47917 7.28768 3.2875C7.47935 3.09583 7.71685 3 8.00018 3H16.0002C16.2835 3 16.521 3.09583 16.7127 3.2875C16.9044 3.47917 17.0002 3.71667 17.0002 4C17.0002 4.28333 16.9044 4.52083 16.7127 4.7125C16.521 4.90417 16.2835 5 16.0002 5H15.0002V11L20.5502 17.75C21.0835 18.4 21.171 19.1042 20.8127 19.8625C20.4544 20.6208 19.8502 21 19.0002 21H5.00018ZM5.00018 19H19.0002L13.0002 11.7V5H11.0002V11.7L5.00018 19Z",fill:"currentColor"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.TestRefreshedIcon=a}),98); __d("WAWebHelpItemIcon.react",["$InternalEnum","WAWebContactQuestionIcon.react","WAWebDocumentRefreshedIcon.react","WAWebExperimentIcon.react","WAWebGroupIcon.react","WAWebHelpFilledIcon.react","WAWebIcRateAppIcon.react","WAWebInfoIcon.react","WAWebInfoRefreshedIcon.react","WAWebMessageReportIcon.react","WAWebMessageReportRefreshedIcon.react","WAWebQuestionIcon.react","WAWebSettingsDocumentIcon.react","WAWebTestRefreshedIcon.react","WAWebUIRefreshGatingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=b("$InternalEnum").Mirrored(["Feedback","Faq","ContactUs","Rate","Tos","NewsletterReports","Beta"]);function a(a){a=a.iconType;return i.jsx("div",babelHelpers["extends"]({},{0:{},1:{className:"xhslqc4"}}[!!d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()<<0],{children:i.jsx(k,{iconType:a})}))}a.displayName=a.name+" [from "+f.id+"]";function k(a){a=a.iconType;var b=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();switch(a){case j.Feedback:return b?i.jsx(d("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}):i.jsx(d("WAWebInfoIcon.react").InfoIcon,{});case j.Faq:return b?i.jsx(d("WAWebQuestionIcon.react").QuestionIcon,{}):i.jsx(d("WAWebHelpFilledIcon.react").HelpFilledIcon,{});case j.ContactUs:return b?i.jsx(d("WAWebContactQuestionIcon.react").ContactQuestionIcon,{}):i.jsx(d("WAWebGroupIcon.react").GroupIcon,{});case j.Rate:return i.jsx(d("WAWebIcRateAppIcon.react").IcRateAppIcon,{});case j.Tos:return b?i.jsx(d("WAWebDocumentRefreshedIcon.react").DocumentRefreshedIcon,{}):i.jsx(d("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon,{height:24});case j.NewsletterReports:return b?i.jsx(d("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{}):i.jsx(d("WAWebMessageReportIcon.react").MessageReportIcon,{});case j.Beta:return b?i.jsx(d("WAWebTestRefreshedIcon.react").TestRefreshedIcon,{}):i.jsx(d("WAWebExperimentIcon.react").ExperimentIcon,{height:24})}}k.displayName=k.name+" [from "+f.id+"]";g.HelpItemIconType=j;g.HelpItemIcon=a;g.HelpIcon=k}),98); __d("WAWebExternalBetaDrawerButton.react",["fbt","WAWebCheckBox.react","WAWebHelpItemIcon.react","WAWebMenuItems.react","WAWebPrimaryFeatures","WAWebSwitch.react","WAWebText.react","WAWebUIRefreshGatingUtils","cr:1925","react","useWAWebABPropConfigValue","useWAWebExternalBetaOptIn"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),c=a[0];a=a[1];var e=d("useWAWebABPropConfigValue").useABPropConfigValue("external_beta_can_join");if(!e||!d("WAWebPrimaryFeatures").primaryFeatureEnabled("external_web_beta_opt_in"))return null;if(b("cr:1925")==null?void 0:b("cr:1925").isWindowsHybridEnabled())return null;e=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?d("WAWebSwitch.react").Switch:d("WAWebCheckBox.react").CheckBox;return j.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-join-beta",testid:void 0,onSelect:a,detailLeft:j.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.Beta}),secondary:j.jsx(d("WAWebText.react").WAWebTextMuted,{textWrap:"wrap",children:h._(/*BTDS*/"__JHASH__0RojuUjpOxS__JHASH__")}),detailRight:j.jsx(e,{checked:c,onChange:a}),primary:h._(/*BTDS*/"__JHASH__9eGQlPuGB6k__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g.ExternalBetaDrawerButton=a}),226); __d("WAWebWamEnumContactUsExitState",[],(function(a,b,c,d,e,f){a=Object.freeze({PROBLEM_DESCRIPTION:1,SUGGESTED_FAQ:2,EMAIL_SEND:3,IN_APP_FAQ:4,CANCELLED:5,FAQ:6});f.CONTACT_US_EXIT_STATE=a}),66); __d("WAWebContactUsSessionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumContactUsExitState"],(function(a,b,c,d,e,f,g){b=(a=d("WAWebWamCodegenUtils")).defineEvents({ContactUsSession:[470,{contactUsAutomaticEmail:[3,a.TYPES.BOOLEAN],contactUsExitState:[1,d("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE],contactUsFaq:[2,a.TYPES.BOOLEAN],contactUsLogs:[4,a.TYPES.BOOLEAN],contactUsMenuFaqT:[12,a.TYPES.TIMER],contactUsOutage:[5,a.TYPES.BOOLEAN],contactUsOutageEmail:[6,a.TYPES.BOOLEAN],contactUsScreenshotC:[19,a.TYPES.NUMBER],contactUsT:[11,a.TYPES.TIMER],languageCode:[21,a.TYPES.STRING]},[1,1,1],"regular"]},{ContactUsSession:[]});g.ContactUsSessionWamEvent=b}),98); __d("WAWebLogSessionEvent",["WAWebContactUsSessionWamEvent"],(function(a,b,c,d,e,f,g){function a(a,b,c){a=new(d("WAWebContactUsSessionWamEvent").ContactUsSessionWamEvent)({contactUsExitState:a,contactUsT:Math.ceil(self.performance.now()-b)});c&&(a.contactUsAutomaticEmail=!0,a.contactUsScreenshotC=c.numScreenshots);a.commit()}g.logSessionEvent=a}),98); __d("WAWebVersionInfo.react",["fbt","WAWebBuildConstants","WAWebCopyPasteSelectable.react","WAWebLid1X1MigrationGating","WAWebPrimaryVersion","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","gkx","react","useWAWebExternalBetaOptIn"],(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.useState;function a(){var a=m([]),b=a[0],e=a[1];a=void 0;var f=void 0,g=d("useWAWebExternalBetaOptIn").useExternalBetaOptIn();g=g[0];!c("gkx")("26258")&&b!=null&&(a=k.jsxs("span",{dir:"LTR",children:["Primary app version: ",b]}));if(!c("gkx")("26258")){b=d("WAWebUserPrefsMeUser").getMe();var i=d("WAWebUserPrefsMeUser").getMaybeMeLid();f=k.jsxs(k.Fragment,{children:[k.jsx("div",{children:k.jsxs("span",{dir:"LTR",children:["Phone Number: ",b==null?void 0:b.user," - LID:",i==null?void 0:i.user]})}),k.jsx("div",{children:k.jsxs("span",{dir:"LTR",children:["Companion device ID: ",b==null?void 0:b.getDeviceId()]})}),k.jsx("div",{children:k.jsxs("span",{dir:"LTR",children:["Chat DB Lid migrated:"," ",d("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated().toString()]})})]})}l(function(){c("gkx")("26258")||d("WAWebPrimaryVersion").getPrimaryCurrentVersion().then(function(a){e(a)})},[]);i=k.jsxs(k.Fragment,{children:[h._(/*BTDS*/"__JHASH__nPDNwt08CoT__JHASH__",[h._param("version","")]),k.jsx("span",{dir:"LTR",children:d("WAWebBuildConstants").VERSION_STR})]});var j,n;c("gkx")("26258")||(i=k.jsxs("span",{children:["Version: ",d("WAWebBuildConstants").VERSION_STR]}),j="React Compiler: "+(c("gkx")("7685")?"forget":"classic"),n="UI Refresh enabled: "+(d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled()?"true":"false"));return k.jsxs(d("WAWebCopyPasteSelectable.react").SelectableDiv,{"data-testid":void 0,className:"xamitd3 x1f6kntn x1fc57z9 xhslqc4 x2b8uid",selectable:!0,children:[i,k.jsx("div",{children:f}),g?k.jsx("div",{children:h._(/*BTDS*/"__JHASH__qu7FiRW0ikC__JHASH__")}):null,k.jsx("div",{children:a}),k.jsx("div",{children:j}),k.jsx("div",{children:n})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebHelpDrawer.react",["fbt","WAWebABPropsSaga","WAWebConnModel","WAWebContactFormWrapper.react","WAWebDevOnlyBadge.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEnvironment","WAWebExternalBetaDrawerButton.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebHelpDrawerDoodle.react","WAWebHelpItemIcon.react","WAWebLogSessionEvent","WAWebMacBetaUpsellToastbar.react","WAWebMenu.react","WAWebMenuItems.react","WAWebModalManager","WAWebSettingsFBT","WAWebSupportAiSessionWamEvent","WAWebTosUrl","WAWebUIRefreshGatingUtils","WAWebVersionInfo.react","WAWebWamEnumContactUsExitState","WAWebWamEnumSupportAiEventType","WAWebWamEnumWebcNativeUpsellCtaSourceType","cr:17219","gkx","react","useMergeRefs","useWAWebExternalBetaOptIn","useWAWebFocusOnMount"],(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.useRef;function a(a){var e=a.isInitialStep,f=a.onClose,g=a.onNewsletterReports;a=a.ref;var i=c("useWAWebFocusOnMount")();i=c("useMergeRefs")(i,a);a=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();var j=d("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),n=m(-1),o=m(!1),p=function(a,b){d("WAWebLogSessionEvent").logSessionEvent(a,n.current,b),o.current=!0};l(function(){n.current=self.performance.now();return function(){o.current||p(d("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.CANCELLED)}},[]);var q=function(){o.current=!0;var a=d("WAWebConnModel").Conn.isSMB?d("WAWebTosUrl").getBizTosUrl():d("WAWebTosUrl").getTosUrl();d("WAWebExternalLink.react").openExternalLink(a)},r=function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getFaqUrl()),p(d("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.FAQ)},s=function(){p(d("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.PROBLEM_DESCRIPTION)},t=function(a){p(d("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.EMAIL_SEND,a)},u=function(){d("WAWebABPropsSaga").getIsSagaV1Enabled()&&new(d("WAWebSupportAiSessionWamEvent").SupportAiSessionWamEvent)({supportAiEventType:d("WAWebWamEnumSupportAiEventType").SUPPORT_AI_EVENT_TYPE.CONTACT_US_CLICKED}).commit(),d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebContactFormWrapper.react"),{onCancel:s,onSend:t}))},v=function(){c("gkx")("26258")||d("WAWebExternalLink.react").openExternalLink(c("WAWebEnvironment").isWindows?"https://fb.workplace.com/groups/2056676158176704":"https://fb.workplace.com/groups/643787895765975")},w;c("gkx")("26258")||(w=k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-feedback-group",testid:void 0,onSelect:v,detailLeft:k.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.Feedback}),primary:k.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Feedback Group"}),ariaLabel:"Feedback Group"}));v=e?d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL;e=k.jsx(d("WAWebExternalBetaDrawerButton.react").ExternalBetaDrawerButton,{});return k.jsxs(c("WAWebDrawer.react"),{ref:i,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__JuAxxn8fTqX__JHASH__"),onBack:f,type:v,focusBackOrCancel:!0}),k.jsxs(c("WAWebDrawerBody.react"),{backgroundColor:"default",children:[a?null:k.jsx(d("WAWebHelpDrawerDoodle.react").WAWebHelpDrawerDoodle,{size:d("WAWebHelpDrawerDoodle.react").Size.SMALL}),a?null:k.jsx(d("WAWebFlex.react").FlexRow,{marginBottom:32,justify:"center",shrink:0,children:k.jsx(c("WAWebVersionInfo.react"),{})}),k.jsx(d("WAWebFlex.react").FlexRow,{shrink:0,children:k.jsxs(d("WAWebMenu.react").WDSMenu,{size:"medium",border:"bottom-partial",allowTabNavigation:!0,children:[k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-faq",testid:void 0,onSelect:r,detailLeft:k.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.Faq}),primary:d("WAWebSettingsFBT").helpCenterTitle(),ariaLabel:d("WAWebSettingsFBT").helpCenterTitle().toString()}),k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-contact-us",testid:void 0,onSelect:u,detailLeft:k.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.ContactUs}),primary:d("WAWebSettingsFBT").chatWithOrContactUsTitle(),ariaLabel:d("WAWebSettingsFBT").chatWithOrContactUsTitle().toString()}),b("cr:17219")!=null?k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"rate-app",testid:void 0,onSelect:function(){var a;a=b("cr:17219").getWindowsBridge==null?void 0:(a=b("cr:17219").getWindowsBridge())==null?void 0:a.getRateTheApp();void (a==null?void 0:a.requestRateAndApp())},detailLeft:k.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.Rate}),primary:d("WAWebSettingsFBT").rateTheApp(),ariaLabel:d("WAWebSettingsFBT").rateTheApp().toString()}):null,k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-tos",testid:void 0,onSelect:q,detailLeft:k.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.Tos}),primary:d("WAWebSettingsFBT").termsTitle(),ariaLabel:d("WAWebSettingsFBT").termsTitle().toString()}),k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-newsletter-reports",testid:void 0,onSelect:g,detailLeft:k.jsx(d("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:d("WAWebHelpItemIcon.react").HelpItemIconType.NewsletterReports}),primary:d("WAWebSettingsFBT").newsletterReportsTitle(),ariaLabel:d("WAWebSettingsFBT").newsletterReportsTitle().toString()}),a&&(w||e)?k.jsx(d("WAWebMenuItems.react").MenuSeparator,{}):null,w,e,a?k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebMenuItems.react").MenuSeparator,{}),k.jsx(d("WAWebFlex.react").FlexRow,{marginBottom:32,justify:"center",shrink:0,children:k.jsx(c("WAWebVersionInfo.react"),{})})]}):null]})})]}),j&&k.jsx(c("WAWebMacBetaUpsellToastbar.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SETTINGS_HELP})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebKeyboardShortcutsPopup.react",["fbt","WAWebActions","WAWebConfirmPopup.react","WAWebEnvironment","WAWebFbtCommon","WAWebKeyboardShortcut.react","WAWebModal.react","WAWebModalManager","WAWebText.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(){var a;a=[(a=d("WAWebActions")).Action.TOGGLE_UNREAD,a.Action.TOGGLE_MUTE,a.Action.TOGGLE_ARCHIVE,a.Action.TOGGLE_PIN,a.Action.SEARCH,a.Action.SEARCH_IN_CHAT,a.Action.OPEN_NEW_CHAT,a.Action.GO_TO_NEXT_CHAT,a.Action.GO_TO_PREV_CHAT,a.Action.CLOSE_CHAT,a.Action.OPEN_NEW_GROUP,a.Action.OPEN_PROFILE,a.Action.INCREASE_PTT_SPEED,a.Action.DECREASE_PTT_SPEED,a.Action.OPEN_SETTINGS,a.Action.OPEN_EMOJI_PANEL,a.Action.OPEN_GIF_PANEL,a.Action.OPEN_STICKER_PANEL,a.Action.TOGGLE_COMMAND_PALETTE,a.Action.LOCK_SCREEN,a.Action.OPEN_CHAT_INFO,a.Action.BLOCK_CHAT,a.Action.REPLY,a.Action.REPLY_PRIVATE,a.Action.FORWARD,a.Action.STAR_MESSAGE,a.Action.OPEN_ATTACHMENT_DROPDOWN,a.Action.START_PTT_RECORDING,a.Action.PAUSE_PTT_RECORDING,a.Action.SEND_PTT,a.Action.DELETE_SELECTED_MESSAGE,a.Action.EDIT_LAST_MESSAGE].concat(c("WAWebEnvironment").isWindows?[d("WAWebActions").Action.ZOOM_IN,d("WAWebActions").Action.ZOOM_OUT,d("WAWebActions").Action.ZOOM_RESET,d("WAWebActions").Action.OPEN_NTH_CHAT]:[]);var b=function(){d("WAWebModalManager").ModalManager.close()},e=function(a){return c("WAWebEnvironment").isWindows?a!==d("WAWebActions").Action.CLOSE_CHAT:a!==d("WAWebActions").Action.INCREASE_PTT_SPEED&&a!==d("WAWebActions").Action.DECREASE_PTT_SPEED&&a!==d("WAWebActions").Action.CLOSE_CHAT};a=a.map(function(a){return[d("WAWebActions").getLabel(a),a,e(a)]}).map(function(a,b){var c=a[0],e=a[1];a=a[2];a=a===void 0?!0:a;if(c==="")return void 0;e=j.jsx(d("WAWebKeyboardShortcut.react").KeyboardShortcut,{action:e,addModifiers:a});return!e?void 0:j.jsxs("div",babelHelpers["extends"]({},{0:{className:"x78zum5 x1okw0bk x6s0dn4 x1nxh6w3 x1cjqih5 xq7czo8 x1jrle2z x3qxcvr x19eaz5n x189i1sb x7d3g0m x1runjb5"},1:{className:"x78zum5 x1okw0bk x6s0dn4 x1nxh6w3 x1cjqih5 xq7czo8 x1jrle2z x3qxcvr x19eaz5n x189i1sb x7d3g0m x1runjb5 x120k64m"}}[!!(b!==0)<<0],{children:[j.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2 xmo9yow x6ikm8r x10wlt62 x1f6kntn x1m1tpaw"},{title:c,children:c})),j.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2 xp4054r"},{children:e}))]}),b)});return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:b,okText:c("WAWebFbtCommon")("OK"),type:d("WAWebModal.react").ModalTheme.Flex,children:j.jsxs("div",babelHelpers["extends"]({className:"x9f619 x1p5oq8j x11eofan xwxc41k x12wi22r"},{children:[j.jsx(d("WAWebText.react").WAWebTextLarge,{as:"span",children:h._(/*BTDS*/"__JHASH__byWv_k9wctX__JHASH__")}),j.jsx("div",babelHelpers["extends"]({className:"x78zum5 xdt5ytf xubnuyq xqui205 xw2csxc x1odjw0f xo6wm36 x1iegka5 xc530u0 x8zx4qv x1gcmwly x17sy6yu xwsakjw x1vz1ssi xxbb1rq x1ty27gb xqivcxy"},{children:a}))]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLocaleToLanguages",["JSResource","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return h.apply(this,arguments)}function h(){h=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){switch(a){case"af_ZA":return c("JSResource")("WAWebLocaleNamesLocaleAF_ZA").__setRef("WAWebLocaleToLanguages").load();case"ar_AR":return c("JSResource")("WAWebLocaleNamesLocaleAR_AR").__setRef("WAWebLocaleToLanguages").load();case"az_AZ":return c("JSResource")("WAWebLocaleNamesLocaleAZ_AZ").__setRef("WAWebLocaleToLanguages").load();case"bg_BG":return c("JSResource")("WAWebLocaleNamesLocaleBG_BG").__setRef("WAWebLocaleToLanguages").load();case"bn_IN":return c("JSResource")("WAWebLocaleNamesLocaleBN_IN").__setRef("WAWebLocaleToLanguages").load();case"ca_ES":return c("JSResource")("WAWebLocaleNamesLocaleCA_ES").__setRef("WAWebLocaleToLanguages").load();case"cs_CZ":return c("JSResource")("WAWebLocaleNamesLocaleCS_CZ").__setRef("WAWebLocaleToLanguages").load();case"da_DK":return c("JSResource")("WAWebLocaleNamesLocaleDA_DK").__setRef("WAWebLocaleToLanguages").load();case"de_DE":return c("JSResource")("WAWebLocaleNamesLocaleDE_DE").__setRef("WAWebLocaleToLanguages").load();case"el_GR":return c("JSResource")("WAWebLocaleNamesLocaleEL_GR").__setRef("WAWebLocaleToLanguages").load();case"en_GB":return c("JSResource")("WAWebLocaleNamesLocaleEN_GB").__setRef("WAWebLocaleToLanguages").load();case"es_LA":return c("JSResource")("WAWebLocaleNamesLocaleES_LA").__setRef("WAWebLocaleToLanguages").load();case"et_EE":return c("JSResource")("WAWebLocaleNamesLocaleET_EE").__setRef("WAWebLocaleToLanguages").load();case"fa_IR":return c("JSResource")("WAWebLocaleNamesLocaleFA_IR").__setRef("WAWebLocaleToLanguages").load();case"fi_FI":return c("JSResource")("WAWebLocaleNamesLocaleFI_FI").__setRef("WAWebLocaleToLanguages").load();case"fr_FR":return c("JSResource")("WAWebLocaleNamesLocaleFR_FR").__setRef("WAWebLocaleToLanguages").load();case"gu_IN":return c("JSResource")("WAWebLocaleNamesLocaleGU_IN").__setRef("WAWebLocaleToLanguages").load();case"he_IL":return c("JSResource")("WAWebLocaleNamesLocaleHE_IL").__setRef("WAWebLocaleToLanguages").load();case"hi_IN":return c("JSResource")("WAWebLocaleNamesLocaleHI_IN").__setRef("WAWebLocaleToLanguages").load();case"hr_HR":return c("JSResource")("WAWebLocaleNamesLocaleHR_HR").__setRef("WAWebLocaleToLanguages").load();case"hu_HU":return c("JSResource")("WAWebLocaleNamesLocaleHU_HU").__setRef("WAWebLocaleToLanguages").load();case"id_ID":return c("JSResource")("WAWebLocaleNamesLocaleID_ID").__setRef("WAWebLocaleToLanguages").load();case"it_IT":return c("JSResource")("WAWebLocaleNamesLocaleIT_IT").__setRef("WAWebLocaleToLanguages").load();case"ja_JP":return c("JSResource")("WAWebLocaleNamesLocaleJA_JP").__setRef("WAWebLocaleToLanguages").load();case"kk_KZ":return c("JSResource")("WAWebLocaleNamesLocaleKK_KZ").__setRef("WAWebLocaleToLanguages").load();case"kn_IN":return c("JSResource")("WAWebLocaleNamesLocaleKN_IN").__setRef("WAWebLocaleToLanguages").load();case"ko_KR":return c("JSResource")("WAWebLocaleNamesLocaleKO_KR").__setRef("WAWebLocaleToLanguages").load();case"lt_LT":return c("JSResource")("WAWebLocaleNamesLocaleLT_LT").__setRef("WAWebLocaleToLanguages").load();case"lv_LV":return c("JSResource")("WAWebLocaleNamesLocaleLV_LV").__setRef("WAWebLocaleToLanguages").load();case"mk_MK":return c("JSResource")("WAWebLocaleNamesLocaleMK_MK").__setRef("WAWebLocaleToLanguages").load();case"ml_IN":return c("JSResource")("WAWebLocaleNamesLocaleML_IN").__setRef("WAWebLocaleToLanguages").load();case"mr_IN":return c("JSResource")("WAWebLocaleNamesLocaleMR_IN").__setRef("WAWebLocaleToLanguages").load();case"ms_MY":return c("JSResource")("WAWebLocaleNamesLocaleMS_MY").__setRef("WAWebLocaleToLanguages").load();case"nb_NO":return c("JSResource")("WAWebLocaleNamesLocaleNB_NO").__setRef("WAWebLocaleToLanguages").load();case"nl_NL":return c("JSResource")("WAWebLocaleNamesLocaleNL_NL").__setRef("WAWebLocaleToLanguages").load();case"pa_IN":return c("JSResource")("WAWebLocaleNamesLocalePA_IN").__setRef("WAWebLocaleToLanguages").load();case"pl_PL":return c("JSResource")("WAWebLocaleNamesLocalePL_PL").__setRef("WAWebLocaleToLanguages").load();case"pt_BR":return c("JSResource")("WAWebLocaleNamesLocalePT_BR").__setRef("WAWebLocaleToLanguages").load();case"pt_PT":return c("JSResource")("WAWebLocaleNamesLocalePT_PT").__setRef("WAWebLocaleToLanguages").load();case"ro_RO":return c("JSResource")("WAWebLocaleNamesLocaleRO_RO").__setRef("WAWebLocaleToLanguages").load();case"ru_RU":return c("JSResource")("WAWebLocaleNamesLocaleRU_RU").__setRef("WAWebLocaleToLanguages").load();case"sk_SK":return c("JSResource")("WAWebLocaleNamesLocaleSK_SK").__setRef("WAWebLocaleToLanguages").load();case"sl_SI":return c("JSResource")("WAWebLocaleNamesLocaleSL_SI").__setRef("WAWebLocaleToLanguages").load();case"sq_AL":return c("JSResource")("WAWebLocaleNamesLocaleSQ_AL").__setRef("WAWebLocaleToLanguages").load();case"sr_RS":return c("JSResource")("WAWebLocaleNamesLocaleSR_RS").__setRef("WAWebLocaleToLanguages").load();case"sv_SE":return c("JSResource")("WAWebLocaleNamesLocaleSV_SE").__setRef("WAWebLocaleToLanguages").load();case"sw_KE":return c("JSResource")("WAWebLocaleNamesLocaleSW_KE").__setRef("WAWebLocaleToLanguages").load();case"ta_IN":return c("JSResource")("WAWebLocaleNamesLocaleTA_IN").__setRef("WAWebLocaleToLanguages").load();case"te_IN":return c("JSResource")("WAWebLocaleNamesLocaleTE_IN").__setRef("WAWebLocaleToLanguages").load();case"th_TH":return c("JSResource")("WAWebLocaleNamesLocaleTH_TH").__setRef("WAWebLocaleToLanguages").load();case"tl_PH":return c("JSResource")("WAWebLocaleNamesLocaleTL_PH").__setRef("WAWebLocaleToLanguages").load();case"tr_TR":return c("JSResource")("WAWebLocaleNamesLocaleTR_TR").__setRef("WAWebLocaleToLanguages").load();case"uk_UA":return c("JSResource")("WAWebLocaleNamesLocaleUK_UA").__setRef("WAWebLocaleToLanguages").load();case"ur_PK":return c("JSResource")("WAWebLocaleNamesLocaleUR_PK").__setRef("WAWebLocaleToLanguages").load();case"uz_UZ":return c("JSResource")("WAWebLocaleNamesLocaleUZ_UZ").__setRef("WAWebLocaleToLanguages").load();case"vi_VN":return c("JSResource")("WAWebLocaleNamesLocaleVI_VN").__setRef("WAWebLocaleToLanguages").load();case"zh_CN":return c("JSResource")("WAWebLocaleNamesLocaleZH_CN").__setRef("WAWebLocaleToLanguages").load();case"zh_HK":return c("JSResource")("WAWebLocaleNamesLocaleZH_HK").__setRef("WAWebLocaleToLanguages").load();case"zh_TW":return c("JSResource")("WAWebLocaleNamesLocaleZH_TW").__setRef("WAWebLocaleToLanguages").load();case"jv_ID":return c("JSResource")("WAWebLocaleNamesLocaleJV_ID").__setRef("WAWebLocaleToLanguages").load();case"yi_DE":return c("JSResource")("WAWebLocaleNamesLocaleYI_DE").__setRef("WAWebLocaleToLanguages").load();default:return c("JSResource")("WAWebLocaleNamesNativeNames").__setRef("WAWebLocaleToLanguages").load()}});return h.apply(this,arguments)}g.getLanguageNames=a}),98); __d("WAWebBrigadingSettingsGatingUtils",["WAWebABProps"],(function(a,b,c,d,e,f,g){"use strict";function a(){return d("WAWebABProps").getABPropConfigValue("brigading_privacy_setting_enabled")}g.canEnableAntiBrigading=a}),98); __d("WAWebWamEnumPrivacyControlEntryPointType",[],(function(a,b,c,d,e,f){a=Object.freeze({PRIVACY_SETTINGS:0,PROFILE_PHOTO_JIT:1,SETTINGS_SEARCH:2,DEEP_LINK:3,PRIVACY_CHECKUP_BANNER:4,PRIVACY_CHECKUP_DEEP_LINK:5,PRIVACY_CHECKUP_WA_CHAT:6,PRIVACY_CHECKUP_SETTINGS_SEARCH:7,DEFENSE_MODE_LOCKED_INTERSTITIAL:8,STICKER_INFO_SHEET:9});f.PRIVACY_CONTROL_ENTRY_POINT_TYPE=a}),66); __d("WAWebWamEnumPrivacyControlItemType",[],(function(a,b,c,d,e,f){a=Object.freeze({LAST_SEEN_AND_ONLINE:0,PROFILE_PHOTO:1,ABOUT:2,GROUPS:3,STATUS:4,READ_RECEIPT:5,BLOCKED:6,LIVE_LOCATION:7,SCREEN_LOCK:8,DDM_TIMER:9,CALLS:10,FINGERPRINT_LOCK:11,DISAPPEARING_MESSAGES:12,UNKNOWN:13,CHECKUP:14,SHOW_PREVIEW:15,E2EE_BACKUPS:16,TWO_STEP_VERIFICATION:17,FACE_AND_HAND_EFFECTS:18,ADVANCED:19,CHAT_LOCK:20,AVATAR:21,CONTACTS:22,PRIVACY_CHECKUP:23,PIX:24,DEFENSE_MODE:25,PROFILE_LINKS:26,PASSKEY:27,EMAIL:28});f.PRIVACY_CONTROL_ITEM_TYPE=a}),66); __d("WAWebPrivacySettingsClickWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumPrivacyControlEntryPointType","WAWebWamEnumPrivacyControlItemType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({PrivacySettingsClick:[3726,{privacyControlEntryPoint:[1,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE],privacyControlItem:[2,d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE]},[1,1,1],"regular"]},{PrivacySettingsClick:[]});g.PrivacySettingsClickWamEvent=a}),98); __d("WAWebPrivacySettingsDrawer.react",["fbt","WALogger","WANullthrows","WAWebAccountSyncJob","WAWebApiPrivacyDisallowedList","WAWebBlocklistCollection","WAWebBrigadingSettingsGatingUtils","WAWebCheckBox.react","WAWebChevronIcon.react","WAWebClickableLink.react","WAWebCmd","WAWebContactCollection","WAWebContextualBannerConfig","WAWebContextualBannerWrapperLoadable","WAWebDisableLinkPreviewsAction","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebEphemeralityDurations","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFbtIntlList","WAWebLoadingDrawer.react","WAWebMiscGatingUtils","WAWebNoop","WAWebPrivacySettings","WAWebPrivacySettingsClickWamEvent","WAWebScreenLockTimerOptions","WAWebSetPrivacyForOneCategoryAction","WAWebSettingsFBT","WAWebStatusPostingUtils","WAWebSwitch.react","WAWebTextStatusGatingUtils","WAWebToast.react","WAWebToastManager","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsGeneral","WAWebUserPrefsScreenLock","WAWebWamEnumPrivacyControlEntryPointType","WAWebWamEnumPrivacyControlItemType","asyncToGeneratorRuntime","err","react","stylex","useWAWebListener","useWAWebModelValues","useWAWebStatusPrivacySettingConfig"],(function(a,b,c,d,e,f,g,h){var i,j,k;function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["privacy_settings_drawer: set message blocking setting failed ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["privacy_settings_drawer: set readreceipts failed ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["privacy_settings_drawer: get privacy settings failed ",""]);n=function(){return a};return a}e=k||d("react");var o=i||(i=c("react")),p=e.useEffect,q=e.useState,r={drawerTitle:{paddingTop:"x134lwj9",paddingEnd:"x4uap5",paddingBottom:"x1i2zvha",paddingStart:"xkhd6sd",$$css:!0},chevronIcon:{color:"x16zc8z2",height:"x17rw0jw",$$css:!0}};function s(a,b){new(d("WAWebPrivacySettingsClickWamEvent").PrivacySettingsClickWamEvent)({privacyControlItem:a,privacyControlEntryPoint:b}).commit()}function t(a){var b=a.url;return o.jsx(c("WAWebClickableLink.react"),{onClick:function(a){d("WAWebExternalLink.react").openExternalLink(b),a.stopPropagation()},children:c("WAWebFbtCommon")("Learn more")})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var e,f=a.onClose,g=a.onOpenBlockedContacts,i=a.onOpenEphemeralityDrawer,k=a.onOpenScreenLockDrawer,l=a.onOpenStatusPrivacySettingDrawer,m=a.onOpenVisibilityEditDrawer;a=a.ref;var u=q(function(){return w(d("WAWebUserPrefsGeneral").getUserPrivacySettings())}),z=u[0],B=u[1];u=q({about:null,groupadd:null,last:null,profile:null});var C=u[0],D=u[1];u=d("useWAWebStatusPrivacySettingConfig").useWAWebStatusPrivacySettingConfig();u=u.statusPostingPrivacyConfig;var E=c("WANullthrows")(d("WAWebContactCollection").ContactCollection.getMeContact());E=d("useWAWebModelValues").useModelValues(E,["disappearingModeDuration"]);E=E.disappearingModeDuration;function F(a){var b=w(a.privacySettings);if(b==null)throw c("err")("Incomplete privacy settings: "+Object.keys(d("WAWebUserPrefsGeneral").getUserPrivacySettings()).join(", "));B(b);D(d("WAWebApiPrivacyDisallowedList").disallowedRowsToLists(a.privacyDisallowedRows))}p(function(){var a=new AbortController();z==null&&b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var b=(yield d("WAWebAccountSyncJob").updatePrivacySettings());if(a.signal.aborted)return;F(b)}catch(a){a instanceof Error&&d("WALogger").ERROR(n(),a.stack).sendLogs("privacy_settings_drawer: get privacy settings failed"),f(),d("WAWebToastManager").ToastManager.open(o.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__FZvj53aL_-d__JHASH__")}))}})();return function(){return a.abort()}},[]);p(function(){var a=new AbortController();b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield d("WAWebApiPrivacyDisallowedList").queryDisallowedLists());if(a.signal.aborted)return;D(b)})();return function(){return a.abort()}},[]);d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"account_sync_for_privacy",function(a){F(a)});var G=h._(/*BTDS*/"__JHASH__zfB6j45zrdG__JHASH__");if(!z)return o.jsx(c("WAWebLoadingDrawer.react"),{title:G,error:!1});var H=d("WAWebMiscGatingUtils").isDefaultDisappearingMessagesEnabled(),I=z.lastSeen,J=z.online,K=z.profilePicture,L=z.about,M=z.groupAdd,N=z.readReceipts,O=z.disableLinkPreviews,P=z.messages;e=[x(I,(e=C.last)==null?void 0:e.disallowedList.length)];I!==d("WAWebPrivacySettings").VISIBILITY.all&&J===d("WAWebPrivacySettings").ONLINE_VISIBILITY.all&&e.push(x(J));I=c("WAWebFbtIntlList")(e,c("WAWebFbtIntlList").CONJUNCTIONS.NONE,c("WAWebFbtIntlList").DELIMITERS.COMMA);J=o.jsx(v,{title:d("WAWebSettingsFBT").privacyLastSeenOnlineEnabledTitle(),onClick:function(){m("lastSeen"),s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.LAST_SEEN_AND_ONLINE,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS)},testid:void 0,children:o.jsxs("span",{children:[" ",I]})});e=d("WAWebBlocklistCollection").BlocklistCollection.dedupedList().length;I=h._(/*BTDS*/"__JHASH__x5Hlana7FHU__JHASH__");var Q=h._(/*BTDS*/"__JHASH__i7c6q_KKlS-__JHASH__"),R=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled(),S=R?d("WAWebSwitch.react").Switch:d("WAWebCheckBox.react").CheckBox,T=d("WAWebBrigadingSettingsGatingUtils").canEnableAntiBrigading()?o.jsx(c("WAWebDrawerItem.react"),{title:d("WAWebSettingsFBT").antiBrigadingTitle(),tabIndex:-1,icon:o.jsx("div",babelHelpers["extends"]({className:"x1849jeq x78zum5 xl56j7k"},{children:o.jsx(S,{checked:P===d("WAWebPrivacySettings").ALL_CONTACTS.contacts,onChange:c("WAWebNoop"),ariaLabel:d("WAWebSettingsFBT").antiBrigadingTitle().toString()+". "+d("WAWebSettingsFBT").antiBrigadingDescription().toString()})})),theme:"privacy",isLastItem:!1,disableKeydownHandling:!0,onClick:function(){void A(z,B,P)},testid:void 0,children:o.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(R&&d("WAWebUISpacing").uiPadding.end20),{children:[d("WAWebSettingsFBT").antiBrigadingDescription()," ",o.jsx(t,{url:d("WAWebFaqUrl").getAntiBrigadingFaqUrl()})]}))}):null;u=u?o.jsx(v,{title:d("WAWebSettingsFBT").privacyStatusPostingTitle(),onClick:function(){l()},testid:void 0,children:o.jsx("span",{children:d("WAWebStatusPostingUtils").formatStatusSetting(u)})}):null;var U=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){B(babelHelpers["extends"]({},z,{disableLinkPreviews:a})),void d("WAWebDisableLinkPreviewsAction").setDisableLinkPreviews(a)});return function(b){return a.apply(this,arguments)}}();return o.jsxs(c("WAWebDrawer.react"),{ref:a,theme:"striped",testid:void 0,children:[o.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:G,onBack:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),o.jsxs(c("WAWebDrawerBody.react"),{children:[o.jsx(d("WAWebContextualBannerWrapperLoadable").ContextualBannerWrapperLoadable,{bannerListOrderedByPriority:[{id:d("WAWebContextualBannerConfig").ContextualBannerId.AppLockUpsell,onClick:k}]}),o.jsxs(c("WAWebDrawerSection.react"),{title:d("WAWebSettingsFBT").privacyPersonalInfoHeaderTitle(),titleXStyle:r.drawerTitle,theme:"padding-no-vertical",animation:!1,ellipsify:!1,children:[J,o.jsx(v,{title:d("WAWebSettingsFBT").privacyProfilePhotoTitle(),onClick:function(){m("profilePicture"),s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.PROFILE_PHOTO,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS)},testid:void 0,children:o.jsx("span",{children:x(K,(a=C.profile)==null?void 0:a.disallowedList.length)})}),o.jsx(v,{title:d("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?d("WAWebSettingsFBT").privacyTextStatusTitle():d("WAWebSettingsFBT").privacyAboutTitle(),onClick:function(){m("about"),s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.ABOUT,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS)},testid:void 0,children:o.jsx("span",{children:x(L,(G=C.about)==null?void 0:G.disallowedList.length)})}),u,o.jsx(c("WAWebDrawerItem.react"),{title:d("WAWebSettingsFBT").privacyReadReceiptsTitle(),tabIndex:-1,icon:o.jsx("div",babelHelpers["extends"]({className:"x1849jeq x78zum5 xl56j7k"},{children:o.jsx(S,{checked:N===d("WAWebPrivacySettings").ALL_NONE.all,onChange:c("WAWebNoop"),ariaLabel:d("WAWebSettingsFBT").privacyReadReceiptsTitle().toString()+". "+I.toString()})})),theme:"privacy",isLastItem:!0,disableKeydownHandling:!0,onClick:function(){s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.READ_RECEIPT,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),y(z,B,N)},testid:void 0,children:o.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(R&&d("WAWebUISpacing").uiPadding.end20),{children:I}))})]}),H&&o.jsx(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:h._(/*BTDS*/"__JHASH__605pD75h6Wa__JHASH__"),titleXStyle:r.drawerTitle,animation:!1,children:o.jsx(v,{title:d("WAWebSettingsFBT").privacyDDMTitle(),onClick:function(){s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.DDM_TIMER,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),i()},isLastItem:!0,testid:void 0,children:o.jsx("span",{"data-testid":void 0,children:d("WAWebEphemeralityDurations").durationToLabel(E)})})}),o.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:h._(/*BTDS*/"__JHASH__xKyUyL3cmP8__JHASH__"),titleXStyle:r.drawerTitle,animation:!1,children:[T,o.jsx(c("WAWebDrawerItem.react"),{title:d("WAWebSettingsFBT").privacyLinkPreviewsTitle(),tabIndex:-1,icon:o.jsx("div",babelHelpers["extends"]({className:"x1849jeq x78zum5 xl56j7k"},{children:o.jsx(S,{checked:O,onChange:c("WAWebNoop"),ariaLabel:d("WAWebSettingsFBT").privacyLinkPreviewsTitle().toString()+". "+Q.toString()})})),theme:"privacy",isLastItem:!0,disableKeydownHandling:!0,onClick:function(){void U(!O)},testid:void 0,children:o.jsxs("div",babelHelpers["extends"]({},j.props(R&&d("WAWebUISpacing").uiPadding.end20),{children:[Q," ",o.jsx(t,{url:d("WAWebFaqUrl").getDisableLinkPreviewsFaqUrl()})]}))})]}),o.jsxs(c("WAWebDrawerSection.react"),{theme:H?"padding":"padding-no-vertical",animation:!1,children:[o.jsx(v,{title:d("WAWebSettingsFBT").privacyGroupsTitle(),onClick:function(){s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.GROUPS,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),m("groupAdd")},testid:void 0,children:o.jsx("span",{children:x(M,(J=C.groupadd)==null?void 0:J.disallowedList.length)})}),o.jsx(v,{title:d("WAWebSettingsFBT").privacyBlockedTitle(),onClick:function(){s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.BLOCKED,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),g()},testid:void 0,children:o.jsx("span",{children:e===0?h._(/*BTDS*/"__JHASH__qtyc0fycakq__JHASH__"):e})}),o.jsx(v,{title:d("WAWebSettingsFBT").privacyScreenlockTitle(),isLastItem:!0,onClick:function(){s(d("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.SCREEN_LOCK,d("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),k()},testid:void 0,children:d("WAWebScreenLockTimerOptions").getScreenLockAutoTimerLabelForSummary(d("WAWebUserPrefsScreenLock").getScreenLockDurationInSeconds())})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";var u=function(){return o.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:r.chevronIcon})};function v(a){var b=a.children,d=a.icon,e=a.isLastItem,f=a.onClick,g=a.tabIndex;g=g===void 0?0:g;var h=a.testid;h=a.title;a=d!=null?d:u();return o.jsx(c("WAWebDrawerItem.react"),{title:h,theme:"privacy",icon:a,onClick:f,isLastItem:e,tabIndex:g,testid:void 0,children:b})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.about,c=a.groupAdd,e=a.lastSeen,f=a.online;f=f===void 0?"all":f;var g=a.profilePicture,h=a.readReceipts,i=a.disableLinkPreviews;i=i===void 0?!1:i;a=a.messages;a=a===void 0?d("WAWebPrivacySettings").ALL_CONTACTS.all:a;if(b!=null&&c!=null&&e!=null&&g!=null&&h!=null&&a!=null)return{about:b,groupAdd:c,lastSeen:e,online:f,profilePicture:g,readReceipts:h,disableLinkPreviews:i,messages:a}}function x(a,b){switch(a){case d("WAWebPrivacySettings").VISIBILITY.all:return h._(/*BTDS*/"__JHASH__V_0DIA-3ES8__JHASH__");case d("WAWebPrivacySettings").VISIBILITY.contacts:return h._(/*BTDS*/"__JHASH__R3PW7ZJPlwV__JHASH__");case d("WAWebPrivacySettings").VISIBILITY.contact_blacklist:return b==null?"":h._(/*BTDS*/"__JHASH__EcxUDeg4ZpC__JHASH__",[h._plural(b,"count")]);case d("WAWebPrivacySettings").VISIBILITY.none:return h._(/*BTDS*/"__JHASH__UfItQ5G0pTc__JHASH__");case d("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen:return h._(/*BTDS*/"__JHASH__SrK10eDMnJH__JHASH__");default:return""}}function y(a,b,c){return z.apply(this,arguments)}function z(){z=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){c=c===d("WAWebPrivacySettings").ALL_NONE.all?d("WAWebPrivacySettings").ALL_NONE.none:d("WAWebPrivacySettings").ALL_NONE.all;b(babelHelpers["extends"]({},a,{readReceipts:c}));try{c===d("WAWebPrivacySettings").ALL_NONE.none?yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"readreceipts",value:"none"}):yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"readreceipts",value:"all"})}catch(a){a instanceof Error&&d("WALogger").WARN(m(),a.stack).sendLogs("privacy_settings_drawer: set readreceipts failed"),d("WAWebToastManager").ToastManager.open(o.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__A3nyctjYpYJ__JHASH__")}))}});return z.apply(this,arguments)}function A(a,b,c){return B.apply(this,arguments)}function B(){B=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){c=c===d("WAWebPrivacySettings").ALL_CONTACTS.all?d("WAWebPrivacySettings").ALL_CONTACTS.contacts:d("WAWebPrivacySettings").ALL_CONTACTS.all;b(babelHelpers["extends"]({},a,{messages:c}));try{c===d("WAWebPrivacySettings").ALL_CONTACTS.all?yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"messages",value:"all"}):yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"messages",value:"contacts"})}catch(a){a instanceof Error&&d("WALogger").WARN(l(),a.stack).sendLogs("privacy_settings_drawer: set message blocking setting failed"),d("WAWebToastManager").ToastManager.open(o.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__hbSSEkl07gH__JHASH__")}))}});return B.apply(this,arguments)}g.PrivacySettingsDrawer=a;g.getChevronIcon=u}),226); __d("WAWebLanguageAndTimeSettingsDrawer.react",["fbt","WAWebClock","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebL10N","WAWebLocaleToLanguages","WAWebPrivacySettingsDrawer.react","WAWebSettingsFBT","WAWebSpinner.react","asyncToGeneratorRuntime","react","useWAWebAsync"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var e=a.onClose,f=a.onLanguageOpen,g=a.onTimeFormatOpen;a=a.ref;var i=l(""),j=i[0],n=i[1];i=c("useWAWebAsync")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebLocaleToLanguages").getLanguageNames()),b=c("WAWebL10N").getLocale();a.forEach(function(a,c){c===b&&n(a)})}),[]);var o=h._(/*BTDS*/"__JHASH__PK3xc7r5M2J__JHASH__"),p=h._(/*BTDS*/"__JHASH__qyiaRhBa1Zv__JHASH__"),q=null;i.loading||i.error?q=k.jsx(d("WAWebSpinner.react").Spinner,{}):q=k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding",animation:!1,children:[k.jsx(m,{title:d("WAWebSettingsFBT").languageTitle(),onClick:f,isLastItem:!1,children:k.jsx("span",{children:j})}),k.jsx(m,{title:d("WAWebSettingsFBT").timeFormatTitle(),onClick:g,isLastItem:!0,children:k.jsx("span",{children:d("WAWebClock").Clock.getIs24Hour()?o:p})})]})});return k.jsxs(c("WAWebDrawer.react"),{ref:a,theme:"striped",testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:d("WAWebSettingsFBT").languageAndTimeTitle(),onBack:e,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),k.jsx(c("WAWebDrawerBody.react"),{children:q})]})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=a.children,e=a.isLastItem,f=a.onClick;a=a.title;return k.jsx(c("WAWebDrawerItem.react"),{title:a,theme:"privacy",icon:d("WAWebPrivacySettingsDrawer.react").getChevronIcon(),onClick:f,isLastItem:e,testid:void 0,children:b})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebConfirmLanguageModal.react",["fbt","WAWebConfirmPopup.react","WAWebL10N","WAWebL10NConstants","WAWebModalManager","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield c("WAWebL10N").setLocale(a,d("WAWebL10NConstants").L10N_PRIORITY.SAVED,!0),d("WAWebModalManager").ModalManager.close()});return function(b){return a.apply(this,arguments)}}();function a(a){var b=a.newLanguage,c=a.newLocale;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__p2RewGS_gSN__JHASH__"),onOK:function(){return k(c)},okText:h._(/*BTDS*/"__JHASH__-fmfQ8lGkcL__JHASH__",[h._param("language-name",b)]),onCancel:function(){return d("WAWebModalManager").ModalManager.close()},cancelText:h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),children:h._(/*BTDS*/"__JHASH__uDCiLglSY6l__JHASH__",[h._param("language-name",b)])})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebLanguageDrawer.react",["WALogger","WAWebConfirmLanguageModal.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebL10N","WAWebL10nGetRenderedLocale","WAWebLocaleToLanguages","WAWebModalManager","WAWebRadio.react","WAWebSettingsFBT","WAWebSpinner.react","WAWebText.react","asyncToGeneratorRuntime","react","useWAWebAsync"],(function(a,b,c,d,e,f,g){var h,i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[l10n] WAWebLanguageDrawer: No languages found, likely an issue with getLanguageNames"]);j=function(){return a};return a}var k=i||c("react"),l=(h||(h=d("react"))).useState;function a(a){var e=a.onClose;a=a.ref;var f=l(d("WAWebL10nGetRenderedLocale").WAWebL10nGetRenderedLocale()),g=f[0],h=f[1];f=l([]);var i=f[0],m=f[1];function n(){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=c("WAWebL10N").getLocale();a=(yield d("WAWebLocaleToLanguages").getLanguageNames(a));return a});return o.apply(this,arguments)}function p(){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield d("WAWebLocaleToLanguages").getLanguageNames());return a});return q.apply(this,arguments)}f=c("useWAWebAsync")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield p()),b=(yield n()),e=c("WAWebL10N").getLocale(),f=[];b.forEach(function(b,c){c===e&&h(c);var d=a.get(c);d!=null&&f.push({language:d,language_native:b,locale:c})});f.sort(function(a,b){if(a.locale<b.locale)return-1;else if(a.locale>b.locale)return 1;return 0});f.length===0&&d("WALogger").LOG(j());m(f)}),[]);function r(a,b){h(a),d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebConfirmLanguageModal.react"),{newLocale:a,newLanguage:b}))}var s=null;f.loading||f.error?s=k.jsx(d("WAWebSpinner.react").Spinner,{}):s=k.jsx(d("WAWebRadio.react").RadioGroup,{name:"language",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:g,options:i.map(function(a){return{value:a.locale,label:a.language,secondaryLabel:a.language_native,onChange:function(){return r(a.locale,a.language)}}})});return k.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:d("WAWebSettingsFBT").languageTitle(),onBack:e,focusBackOrCancel:!0,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[k.jsx(d("WAWebText.react").WAWebTextSectionTitle,{margin:[32,0,16,0],children:d("WAWebSettingsFBT").languageHeaderTitle()}),s]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMediaAutoDownloadDrawer.react",["fbt","WAWebAutoDownloadSettings.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.onClose;a=a.ref;return j.jsxs(c("WAWebDrawer.react"),{ref:a,children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__8aDuBiuR2V6__JHASH__"),onBack:b,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),j.jsx(c("WAWebDrawerBody.react"),{children:j.jsx(c("WAWebAutoDownloadSettings.react"),{},"auto-download")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMediaUploadQualitySettings.react",["fbt","WAWebChatPreferenceCollection","WAWebDrawerSection.react","WAWebRadio.react","WAWebText.react","WAWebUISpacing","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k=[{value:"sd",label:function(){return j.jsxs("div",{className:d("WAWebUISpacing").uiMargin.bottom8,children:[h._(/*BTDS*/"__JHASH__XiNxLzw647G__JHASH__"),j.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__EH8_C6KM1Gu__JHASH__")})]})}},{value:"hd",label:function(){return j.jsxs(j.Fragment,{children:[h._(/*BTDS*/"__JHASH__KOOEgEd_seY__JHASH__"),j.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__fgqs8kWFXxG__JHASH__")})]})}}];function a(){var a=d("useWAWebModelValues").useModelValues(c("WAWebChatPreferenceCollection").getDefault(),["hdMediaEnabled"]),b=function(b){a.set("hdMediaEnabled",b==="hd")};return j.jsx(c("WAWebDrawerSection.react"),{animation:!1,xstyle:[d("WAWebUISpacing").uiPadding.horiz30,d("WAWebUISpacing").uiPadding.vert20],children:j.jsx(d("WAWebRadio.react").RadioGroup,{name:"radio-media-upload-quality",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:a.hdMediaEnabled?"hd":"sd",options:k.map(function(a){var c=a.label,e=a.value;return{value:e,label:c(),onChange:function(){return b(e)},xstyle:d("WAWebUISpacing").uiPadding.vert18}})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMediaUploadQualityDrawer.react",["WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebMediaUploadQualitySettings.react","WAWebSettingsFBT","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){var b=a.onClose;a=a.ref;return i.jsxs(c("WAWebDrawer.react"),{ref:a,children:[i.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:d("WAWebSettingsFBT").mediaUploadQualityTitle(),onBack:b,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),i.jsx(c("WAWebDrawerBody.react"),{children:i.jsx(c("WAWebMediaUploadQualitySettings.react"),{},"media-quality")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMexCreateReportAppealJobMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"reason"},b={defaultValue:null,kind:"LocalArgument",name:"report_id"},c={alias:null,args:null,kind:"ScalarField",name:"report_id",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null};d=[{alias:null,args:[{kind:"Variable",name:"reason",variableName:"reason"},{kind:"Variable",name:"report_id",variableName:"report_id"}],concreteType:"XWA2ChannelsReport",kind:"LinkedField",name:"xwa2_create_channel_report_appeal_v2",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},d,{alias:null,args:null,kind:"ScalarField",name:"last_update_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channel_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channel_jid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"server_msg_id",storageKey:null},{alias:null,args:null,concreteType:"XWA2ReportAppeal",kind:"LinkedField",name:"appeal",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"appeal_reason",storageKey:null},d,c],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[a,b],kind:"Fragment",metadata:null,name:"WAWebMexCreateReportAppealJobMutation",selections:d,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[b,a],kind:"Operation",name:"WAWebMexCreateReportAppealJobMutation",selections:d},params:{id:"6925652394192853",metadata:{},name:"WAWebMexCreateReportAppealJobMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("WAWebMexCreateReportAppealJob",["WALogger","WAWebBackendErrors","WAWebMexClient","WAWebMexCreateReportAppealJobMutation.graphql","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER][DSAR] create report appeal via mex"]);i=function(){return a};return a}var j=h!==void 0?h:h=b("WAWebMexCreateReportAppealJobMutation.graphql");function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.reportId;a=a.reason;b={report_id:b,reason:a};a=(yield d("WAWebMexClient").fetchQuery(j,b));if((a==null?void 0:a.xwa2_create_channel_report_appeal_v2)==null)throw new(d("WAWebBackendErrors").ServerStatusCodeError)(500,"Mex unexpected null response for creating newsletter report appeal");d("WALogger").DEV(i()).tags("GQL","MEX","DSAR").devConsole({response:a});return a});return k.apply(this,arguments)}g.mexCreateReportAppeal=a}),98); __d("WAWebNewsletterReportModelUtils",["WAWebWidFactory"],(function(a,b,c,d,e,f,g){function a(a){return{id:a.report_id,reportStatus:a.status,creationTime:Number(a.creation_time),newsletterName:a.channel_name,newsletterId:d("WAWebWidFactory").createWid(a.channel_jid),serverMsgId:a.server_msg_id!=null?Number(a.server_msg_id):null,appeal:{state:a.appeal.state,appealReason:a.appeal.appeal_reason,creationTime:a.appeal.creation_time!=null?Number(a.appeal.creation_time):null,reportId:a.appeal.report_id}}}g.mapMexReportToNewsletterReport=a}),98); __d("WAWebCreateReportAppealJob",["WAJobOrchestratorTypes","WALogger","WAWebMexCreateReportAppealJob","WAWebNewsletterReportModelUtils","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER][DSAR] Error creating report appeal"]);h=function(){return a};return a}function a(a){return i.apply(this,arguments)}function i(){i=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("createReportAppeal",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var b=(yield d("WAWebMexCreateReportAppealJob").mexCreateReportAppeal(a));b=b.xwa2_create_channel_report_appeal_v2;return d("WAWebNewsletterReportModelUtils").mapMexReportToNewsletterReport(b)}catch(a){d("WALogger").ERROR(h()).tags("GQL","MEX","DSAR").devConsole({e:a});throw a}}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()});return i.apply(this,arguments)}g.createReportAppeal=a}),98); __d("WAWebNewsletterCreateReportAppealAction",["WALogger","WAWebCreateReportAppealJob","WAWebNewsletterBridgeApi","WAWebNewsletterMetadataCollection","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][DSAR][createNewsletterReportAppealAction] Failed to create report appeal"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][DSAR][createNewsletterReportAppealAction] End"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][DSAR][createNewsletterReportAppealAction] Start"]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){d("WALogger").DEV(j());try{a=(yield d("WAWebCreateReportAppealJob").createReportAppeal(a));if(a.newsletterName==null){var b;a.newsletterName=(b=c("WAWebNewsletterMetadataCollection").get(a.newsletterId))==null?void 0:b.name}void d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterReport({report:a});d("WALogger").DEV(i())}catch(a){d("WALogger").ERROR(h()).tags("newsletter","wa-ice","DSAR").devConsole(a).sendLogs("newsletter-create-report-appeal-action");throw a}});return k.apply(this,arguments)}g.createNewsletterReportAppealAction=a}),98); __d("WAWebNewsletterDSAReportDetailsDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(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")("WAWebNewsletterDSAReportDetailsDrawer.react").__setRef("WAWebNewsletterDSAReportDetailsDrawerLoadable").load());return a}),"NewsletterDSAReportDetailsDrawer");d=c("WAWebLoadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingDrawer.react"),{error:Boolean(a.error)})}});g.NewsletterDSAReportDetailsDrawerLoadable=d}),98); __d("WAWebNewsletterDSAReportsRow.react",["fbt","WAWebArrowForwardIcon.react","WAWebBusinessHoursIcon.react","WAWebCellV2.react","WAWebNewsletterIntegrityUtils","WAWebSettingsDocumentIcon.react","WAWebText.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={icon:{color:"x1tvajsz",$$css:!0}};function a(a){var b=a.onReportClick,c=a.report;a={width:24,height:24,directional:!0,xstyle:k.icon};var e=c.reportStatus==="PENDING"||c.appeal.state==="PENDING"?d("WAWebBusinessHoursIcon.react").BusinessHoursIcon:d("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon;e=j.jsx(e,babelHelpers["extends"]({},a));a=j.jsx(d("WAWebArrowForwardIcon.react").ArrowForwardIcon,babelHelpers["extends"]({},a));var f=j.jsx(d("WAWebText.react").WAWebTextTitle,{textWrap:"wrap",children:d("WAWebNewsletterIntegrityUtils").getReportStatusString(c)}),g=j.jsxs(j.Fragment,{children:[c.newsletterName!=null&&j.jsx(d("WAWebText.react").WAWebTextMuted,{textWrap:"wrap",children:c.newsletterName}),j.jsx(d("WAWebText.react").WAWebTextMuted,{textWrap:"wrap",children:c.appeal.creationTime!=null?h._(/*BTDS*/"__JHASH__TtgF_w3EZEJ__JHASH__",[h._param("appeal_creation_time",d("WAWebNewsletterIntegrityUtils").getDSADateDisplayString(c.appeal.creationTime))]):h._(/*BTDS*/"__JHASH__2ZmishlN3Xj__JHASH__",[h._param("report_creation_time",d("WAWebNewsletterIntegrityUtils").getDSADateDisplayString(c.creationTime))])})]});return j.jsx(d("WAWebCellV2.react").CellV2,{testid:void 0,size:"large",border:"bottom-full",detailLeft:e,detailLeftXStyle:d("WAWebUISpacing").uiPadding.top0,primary:f,secondary:g,detailRight:a,onClick:function(){return b(c)}})}a.displayName=a.name+" [from "+f.id+"]";g.ReportRow=a}),226); __d("WAWebMexFetchNewsletterReportsJobQuery.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"report_id",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null};b=[{alias:null,args:null,concreteType:"XWA2UserChannelsReportList",kind:"LinkedField",name:"xwa2_channels_reports",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2ChannelsReport",kind:"LinkedField",name:"channels_reports",plural:!0,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},b,{alias:null,args:null,kind:"ScalarField",name:"last_update_time",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channel_name",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"channel_jid",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"server_msg_id",storageKey:null},{alias:null,args:null,concreteType:"XWA2ReportAppeal",kind:"LinkedField",name:"appeal",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"state",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"appeal_reason",storageKey:null},b,a],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterReportsJobQuery",selections:b,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WAWebMexFetchNewsletterReportsJobQuery",selections:b},params:{id:"6817622704981396",metadata:{},name:"WAWebMexFetchNewsletterReportsJobQuery",operationKind:"query",text:null}}}();e.exports=a}),null); __d("WAWebMexFetchNewsletterReportsJob",["WALogger","WAWebBackendErrors","WAWebMexClient","WAWebMexFetchNewsletterReportsJobQuery.graphql","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER][WA-ICE][DSAR] fetched newsletter reports"]);i=function(){return a};return a}var j=h!==void 0?h:h=b("WAWebMexFetchNewsletterReportsJobQuery.graphql");function a(){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a={};a=(yield d("WAWebMexClient").fetchQuery(j,a));if((a==null?void 0:a.xwa2_channels_reports)==null)throw new(d("WAWebBackendErrors").ServerStatusCodeError)(500,"Mex unexpected null response for fetching newsletter reports");d("WALogger").LOG(i()).tags("GQL","MEX","wa-ice","DSAR").devConsole({response:a});return a});return k.apply(this,arguments)}g.mexFetchNewsletterReports=a}),98); __d("WAWebNewsletterGetNewsletterReportsJob",["WAJobOrchestratorTypes","WALogger","WAWebMexFetchNewsletterReportsJob","WAWebNewsletterReportModelUtils","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER][WA-ICE][DSAR] GET newsletter reports job error"]);h=function(){return a};return a}function a(){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterReports",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var a=(yield d("WAWebMexFetchNewsletterReportsJob").mexFetchNewsletterReports());return((a=a==null?void 0:(a=a.xwa2_channels_reports)==null?void 0:a.channels_reports)!=null?a:[]).map(d("WAWebNewsletterReportModelUtils").mapMexReportToNewsletterReport)}catch(a){d("WALogger").ERROR(h()).tags("GQL","MEX","wa-ice","DSAR").devConsole({e:a});throw a}}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.getNewsletterReports=a}),98); __d("WAWebNewsletterGetReportsAction",["WALogger","WAWebNewsletterBridgeApi","WAWebNewsletterGetNewsletterReportsJob","WAWebNewsletterMetadataCollection","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][DSAR][getNewsletterReportsAction] Failed to get newsletter reports"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][DSAR][getNewsletterReportsAction] End"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][DSAR][getNewsletterReportsAction] Start"]);j=function(){return a};return a}function a(){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WALogger").DEV(j());try{var a=(yield d("WAWebNewsletterGetNewsletterReportsJob").getNewsletterReports());a=a.map(function(a){var b;if(a.newsletterName!=null)return a;a.newsletterName=(b=c("WAWebNewsletterMetadataCollection").get(a.newsletterId))==null?void 0:b.name;return a});void d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterReports({reports:a});d("WALogger").DEV(i())}catch(a){d("WALogger").ERROR(h()).tags("newsletter","wa-ice","DSAR").devConsole(a).sendLogs("newsletter-get-reports-action");throw a}});return k.apply(this,arguments)}g.getNewsletterReportsAction=a}),98); __d("useWAWebNewsletterReports",["$InternalEnum","WAWebNetworkStatus","WAWebNewsletterGetReportsAction","WAWebNewsletterReportCollection","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g){var h;e=h||d("react");var i=e.useCallback,j=e.useEffect,k=e.useState,l=b("$InternalEnum").Mirrored(["OFFLINE","FETCHING","SUCCESS","ERROR"]);function a(){var a=c("useWAWebUnmountSignal")(),e=k(l.FETCHING),f=e[0],g=e[1];e=c("useWAWebEventTargetValue")(d("WAWebNewsletterReportCollection").NewsletterReportCollection,["add","remove","change","reset"],function(){return d("WAWebNewsletterReportCollection").NewsletterReportCollection.toArray()});var h=i(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(a.aborted)return;g(l.FETCHING);if(!c("WAWebNetworkStatus").online){g(l.OFFLINE);return}try{yield d("WAWebNewsletterGetReportsAction").getNewsletterReportsAction(),g(l.SUCCESS)}catch(a){g(l.ERROR)}}),[a]);j(function(){void h()},[h]);return[f,h,e]}g.FetchReportStatus=l;g.useNewsletterReports=a}),98); __d("WAWebNewsletterDSAReportsDrawer.react",["fbt","WAWebCommonNewsletterIntegrityStrings","WAWebCommonNewsletterStrings","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebEmptyState.react","WAWebFlex.react","WAWebNewsletterDSAReportsRow.react","WAWebText.react","WAWebUISpacing","react","useWAWebNewsletterReports"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={container:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",$$css:!0},emptyListContainer:{alignItems:"x6s0dn4",justifyContent:"xl56j7k",$$css:!0},reportListContainer:{justifyContent:"x1nhvcw1",$$css:!0},textCenter:{textAlign:"x2b8uid",$$css:!0}};function l(){return j.jsxs(c("WAWebDrawerSection.react"),{animation:!1,xstyle:[k.container,k.emptyListContainer,d("WAWebUISpacing").uiPadding.horiz32],children:[j.jsx(d("WAWebText.react").WAWebTextLarge,{testid:void 0,marginBottom:16,children:h._(/*BTDS*/"__JHASH__AEUBA-OUZ5Q__JHASH__")}),j.jsx(d("WAWebText.react").WAWebTextSmall,{testid:void 0,xstyle:k.textCenter,children:h._(/*BTDS*/"__JHASH__lQI0W35QQuz__JHASH__")})]})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.onReportClick;a=a.reports;return j.jsx(c("WAWebDrawerSection.react"),{animation:!1,xstyle:[k.container,k.reportListContainer],children:j.jsx(d("WAWebFlex.react").FlexColumn,{children:a.map(function(a){return j.jsx(d("WAWebNewsletterDSAReportsRow.react").ReportRow,{report:a,onReportClick:b},a.id.toString())})})})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.onClose;a=a.onReportClick;var f=d("useWAWebNewsletterReports").useNewsletterReports(),g=f[0],i=f[1];f=f[2];var k;switch(g){case d("useWAWebNewsletterReports").FetchReportStatus.FETCHING:k=j.jsx(d("WAWebEmptyState.react").Loading,{});break;case d("useWAWebNewsletterReports").FetchReportStatus.SUCCESS:k=f.length===0?j.jsx(l,{}):j.jsx(m,{reports:f,onReportClick:a});break;case d("useWAWebNewsletterReports").FetchReportStatus.ERROR:k=j.jsx(d("WAWebEmptyState.react").EmptyErrorStateWithButton,{center:!0,text:h._(/*BTDS*/"__JHASH__d-hYN_3-I5D__JHASH__"),testid:void 0,onClick:i});break;case d("useWAWebNewsletterReports").FetchReportStatus.OFFLINE:k=j.jsx(d("WAWebEmptyState.react").EmptyErrorStateWithButton,{center:!0,text:d("WAWebCommonNewsletterStrings").getNoInternetConnectionText(),testid:void 0,onClick:i});break}return j.jsxs(c("WAWebDrawer.react"),{theme:"gallery",ref:b,testid:void 0,children:[j.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:d("WAWebCommonNewsletterIntegrityStrings").getNewsletterDSAReportsDrawerTitle(),onBack:e,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),j.jsx(c("WAWebDrawerBody.react"),{children:k})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebRequestReviewHeader.react",["WAWebWdsPictoTextFeedbackWarningIcon.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={exclamationOutline:{fill:"xmgti43",$$css:!0},exclamation:{fill:"xmgti43",$$css:!0},exclamationBackground:{fill:"xmgti43",$$css:!0},documentOutlines:{fill:"x1n2w8rn",$$css:!0},document:{fill:"xgz6z4f",$$css:!0}};function a(a){var b=a.height;a=a.width;return i.jsx(d("WAWebWdsPictoTextFeedbackWarningIcon.react").WdsPictoTextFeedbackWarningIcon,{width:b,height:a,innerStyles:{document:j.document,exclamation:j.exclamation,exclamationBackground:j.exclamationBackground,exclamationOutline:j.exclamationOutline,documentOutlines:j.documentOutlines}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebRequestReviewDescriptionScreenDrawer.react",["fbt","WAWebBusinessHoursIcon.react","WAWebButton.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebInfoIcon.react","WAWebRequestReviewHeader.react","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={container:{display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",justifyContent:"x1nhvcw1",$$css:!0},header:{textAlign:"x2b8uid",lineHeight:"x1evy7pa",$$css:!0},row:{display:"x78zum5",width:"xh8yej3",$$css:!0}};function m(a){a=a.onNext;return k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.all8,align:"center",justify:"center",children:k.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:a,testid:void 0,children:c("WAWebFbtCommon")("Next")})})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.description,e=a.icon;a=a.testid;return k.jsxs("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props([l.row,d("WAWebUISpacing").uiMargin.vert8]),{children:[k.jsx("div",babelHelpers["extends"]({className:"x78zum5 xl56j7k x1849jeq x1gnnpzl"},{children:e})),k.jsx("div",babelHelpers["extends"]({},j.props(d("WAWebUISpacing").uiMargin.start24),{children:k.jsx(d("WAWebText.react").WAWebTextMuted,{testid:void 0,color:"secondaryLighter",children:b})}))]}))}n.displayName=n.name+" [from "+f.id+"]";function o(a){a=a.isReviewOfNewsletterReport;var b=a?[]:[{description:h._(/*BTDS*/"__JHASH__nqnUW_dDx89__JHASH__"),Icon:d("WAWebInfoIcon.react").InfoIcon,iconSize:24},{description:h._(/*BTDS*/"__JHASH__CuKukefWfho__JHASH__"),Icon:d("WAWebBusinessHoursIcon.react").BusinessHoursIcon,iconSize:24}];a=a?h._(/*BTDS*/"__JHASH__Rxb1oPr3BIt__JHASH__",[h._implicitParam("=m2",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),children:h._(/*BTDS*/"__JHASH__2XJk2Bb3ake__JHASH__")}))]):h._(/*BTDS*/"__JHASH__vz9EVinqH1B__JHASH__",[h._implicitParam("=m2",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),children:h._(/*BTDS*/"__JHASH__8lB7zWJ5XkJ__JHASH__")}))]);return k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(c("WAWebRequestReviewHeader.react"),{height:88,width:88})}),k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(d("WAWebText.react").WAWebTextLarge,{weight:"medium",xstyle:l.header,padding:16,color:"primary",children:h._(/*BTDS*/"__JHASH__FlEj5We_l6f__JHASH__")})}),k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:d("WAWebUISpacing").uiMargin.bottom16,children:k.jsx(d("WAWebText.react").WAWebTextMuted,{color:"secondaryLighter",marginTop:8,xstyle:l.header,children:a})}),b.map(function(a,b){var c=a.Icon,e=a.iconSize;a=a.description;return k.jsx(n,{testid:void 0,icon:k.jsx(c,{width:e,height:e,xstyle:d("WAWebUISpacing").uiMargin.vert8,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),description:a},b)})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.isReviewOfNewsletterReport;e=e===void 0?!1:e;var f=a.onBack;a=a.onNext;return k.jsxs(c("WAWebDrawer.react"),{theme:"gallery",ref:b,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:c("WAWebFbtCommon")("Request review"),onBack:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",xstyle:[l.container,d("WAWebUISpacing").uiPadding.vert36,d("WAWebUISpacing").uiPadding.horiz48,d("WAWebUISpacing").uiMargin.bottom0],children:[k.jsx(o,{isReviewOfNewsletterReport:e}),k.jsx(m,{onNext:a})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g.AppealHeaderSectionRow=n;g.RequestReviewDescriptionScreen=a}),226); __d("WAWebNewsletterDSAReportsFlow.react",["$InternalEnum","WAWebNewsletterCreateReportAppealAction","WAWebNewsletterDSAReportDetailsDrawerLoadable","WAWebNewsletterDSAReportsDrawer.react","WAWebNewsletterIntegrityUtils","WAWebRequestReviewDescriptionScreenDrawer.react","WAWebRequestReviewReasonScreenDrawer.react","asyncToGeneratorRuntime","react","useWAWebFlow"],(function(a,b,c,d,e,f,g){var h,i,j=i||c("react"),k=(h||(h=d("react"))).useState,l=b("$InternalEnum").Mirrored(["REPORT_LIST","REPORT_DETAILS","REQUEST_REVIEW_DESCRIPTION_SCREEN","REQUEST_REVIEW_REASON_SCREEN"]);function a(a){var e=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=a.onClose;var f=k(null),g=f[0],h=f[1];f=d("useWAWebFlow").useFlow(l.REPORT_LIST,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight});var i=f[0],m=f[1];f=function(a){h(a),m.push(l.REPORT_DETAILS)};var n=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(g==null){d("WAWebNewsletterIntegrityUtils").showReviewSubmissionFailureToast();return}yield d("WAWebNewsletterCreateReportAppealAction").createNewsletterReportAppealAction({reportId:g.id.toString(),reason:a})});return function(b){return a.apply(this,arguments)}}();if(m.step==null)return null;var o=function(){m.pop()},p;switch(m.step){case l.REPORT_LIST:p=j.jsx(c("WAWebNewsletterDSAReportsDrawer.react"),{onClose:a,onReportClick:f});break;case l.REPORT_DETAILS:if(g==null)return null;p=j.jsx(d("WAWebNewsletterDSAReportDetailsDrawerLoadable").NewsletterDSAReportDetailsDrawerLoadable,{onBack:o,onRequestReviewClick:function(){m.push(l.REQUEST_REVIEW_DESCRIPTION_SCREEN)},report:g});break;case l.REQUEST_REVIEW_DESCRIPTION_SCREEN:p=j.jsx(d("WAWebRequestReviewDescriptionScreenDrawer.react").RequestReviewDescriptionScreen,{isReviewOfNewsletterReport:!0,onBack:o,onNext:function(){o(),m.push(l.REQUEST_REVIEW_REASON_SCREEN)}});break;case l.REQUEST_REVIEW_REASON_SCREEN:p=j.jsx(d("WAWebRequestReviewReasonScreenDrawer.react").RequestReviewReasonScreen,{isReviewOfNewsletterReport:!0,onBack:function(){o(),m.push(l.REQUEST_REVIEW_DESCRIPTION_SCREEN)},onSuccess:o,onSubmit:n});break}return j.jsx(i,{flow:m,ref:e,displayName:"newsletter-reports-flow",children:p})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebPrivacySettingsLastSeenOnlineDrawer.react",["fbt","WALogger","WAWebAccountTakeOverBanner.react","WAWebBackendErrors","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebModalManager","WAWebPrivacySettings","WAWebPrivacyVisibilityOption.react","WAWebSelectContactsExceptModal.react","WAWebSetPrivacyForOneCategoryAction","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUseContactManagementAvailability","WAWebUserPrefsGeneral","asyncToGeneratorRuntime","err","react"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["visibility_edit_drawer: set visiblity option failed ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["visibility_edit_drawer: set visiblity option failed ",""]);l=function(){return a};return a}var m=j||c("react"),n=(i||(i=d("react"))).useState;function o(){d("WAWebToastManager").ToastManager.open(m.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__p-NaXMQvbug__JHASH__")}))}function a(a){var e,f=a.onClose;a=a.ref;var g=d("WAWebUserPrefsGeneral").getUserPrivacySettings();e=n((e=g.lastSeen)!=null?e:d("WAWebPrivacySettings").VISIBILITY.all);var i=e[0],j=e[1];g=n((e=g.online)!=null?e:d("WAWebPrivacySettings").ONLINE_VISIBILITY.all);var p=g[0],q=g[1];e=d("WAWebUseContactManagementAvailability").useAccountIntegrityState();function r(a){return s.apply(this,arguments)}function s(){s=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(a===p)return;q(a);var b=d("WAWebSetPrivacyForOneCategoryAction").privacyWebNameToServerName("online");if(b!=="online")throw c("err")("privacy_settings_last_seen_online_drawer: category can only be online");try{switch(a){case d("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen:yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:b,value:"match_last_seen"});return;case d("WAWebPrivacySettings").VISIBILITY.all:yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:b,value:"all"});return}}catch(b){q(p);a=b instanceof d("WAWebBackendErrors").ServerStatusCodeError&&b.statusCode===409;a||d("WALogger").WARN(l(),b.stack).sendLogs("visibility_edit_drawer: set visiblity option failed");o()}});return s.apply(this,arguments)}function t(a){return u.apply(this,arguments)}function u(){u=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(a===i)return;j(a);var b=d("WAWebSetPrivacyForOneCategoryAction").privacyWebNameToServerName("lastSeen");if(b!=="last")throw c("err")("privacy_settings_last_seen_online_drawer: category can be only last");try{switch(a){case d("WAWebPrivacySettings").VISIBILITY.none:if(b==="groupadd")throw c("err")("privacy_settings_last_seen_online_drawer: groupadd can not be none");yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:b,value:"none"});return;case d("WAWebPrivacySettings").VISIBILITY.contacts:yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:b,value:"contacts"});return;case d("WAWebPrivacySettings").VISIBILITY.all:yield d("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:b,value:"all"});return}}catch(b){j(i);a=b instanceof d("WAWebBackendErrors").ServerStatusCodeError&&b.statusCode===409;a||d("WALogger").WARN(k(),b.stack).sendLogs("visibility_edit_drawer: set visiblity option failed");o()}});return u.apply(this,arguments)}g=h._(/*BTDS*/"__JHASH__YdmiwBg4PcF__JHASH__");var v=h._(/*BTDS*/"__JHASH__o9xMMUOp9bX__JHASH__"),w=null;e===d("WAWebUseContactManagementAvailability").AccountIntegrityState.TIMELOCK&&(i===d("WAWebPrivacySettings").VISIBILITY.contacts||i===d("WAWebPrivacySettings").VISIBILITY.contact_blacklist)&&(w=m.jsx(d("WAWebAccountTakeOverBanner.react").AccountTakeOverBanner,{entryPoint:"privacy-settings"}));return m.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[m.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__dwL4b83EW1h__JHASH__"),onBack:f,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),m.jsxs(c("WAWebDrawerBody.react"),{children:[w,m.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[m.jsx("div",babelHelpers["extends"]({className:"x1sy10c2 x11i5rnm xieb3on x1mh8g0r x1jchvi3 x1n68mz9 x1fc57z9"},{children:g})),m.jsxs("div",{role:"radiogroup","aria-label":g,children:[m.jsx(c("WAWebPrivacyVisibilityOption.react"),{text:h._(/*BTDS*/"__JHASH__V_0DIA-3ES8__JHASH__"),selected:i===d("WAWebPrivacySettings").VISIBILITY.all,testid:void 0,onClick:function(){t(d("WAWebPrivacySettings").VISIBILITY.all)}}),m.jsx(c("WAWebPrivacyVisibilityOption.react"),{text:h._(/*BTDS*/"__JHASH__R3PW7ZJPlwV__JHASH__"),testid:void 0,selected:i===d("WAWebPrivacySettings").VISIBILITY.contacts,onClick:function(){t(d("WAWebPrivacySettings").VISIBILITY.contacts)}}),m.jsx(c("WAWebPrivacyVisibilityOption.react"),{text:h._(/*BTDS*/"__JHASH__7nFeUkYLAfb__JHASH__"),testid:void 0,selected:i===d("WAWebPrivacySettings").VISIBILITY.contact_blacklist,onClick:function(){d("WAWebModalManager").ModalManager.open(m.jsx(c("WAWebSelectContactsExceptModal.react"),{category:"lastSeen",onConfirm:function(){t(d("WAWebPrivacySettings").VISIBILITY.contact_blacklist)}}))}}),m.jsx(c("WAWebPrivacyVisibilityOption.react"),{text:h._(/*BTDS*/"__JHASH__UfItQ5G0pTc__JHASH__"),testid:void 0,selected:i===d("WAWebPrivacySettings").VISIBILITY.none,onClick:function(){t(d("WAWebPrivacySettings").VISIBILITY.none)}})]}),m.jsx("div",{className:"x1qx5ct2 xso031l x1q0q8m5 x1rpwac6"}),m.jsx("div",babelHelpers["extends"]({className:"x1sy10c2 x11i5rnm xieb3on x1mh8g0r x1jchvi3 x1n68mz9 x1fc57z9"},{children:v})),m.jsxs("div",{role:"radiogroup","aria-label":v,children:[m.jsx(c("WAWebPrivacyVisibilityOption.react"),{text:h._(/*BTDS*/"__JHASH__V_0DIA-3ES8__JHASH__"),testid:void 0,selected:p===d("WAWebPrivacySettings").ONLINE_VISIBILITY.all,onClick:function(){r(d("WAWebPrivacySettings").ONLINE_VISIBILITY.all)}}),m.jsx(c("WAWebPrivacyVisibilityOption.react"),{text:h._(/*BTDS*/"__JHASH__SrK10eDMnJH__JHASH__"),testid:void 0,selected:p===d("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen,onClick:function(){r(d("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen)}})]}),m.jsx(d("WAWebText.react").WAWebTextMuted,{margin:[20,0],color:"secondary",children:h._(/*BTDS*/"__JHASH__SaKFuPkp_HB__JHASH__",[h._implicitParam("=m1",m.jsx("strong",{children:h._(/*BTDS*/"__JHASH__sliB2sR7Ro6__JHASH__")})),h._implicitParam("=m4",m.jsx("strong",{children:h._(/*BTDS*/"__JHASH__EPv8Qyffxvd__JHASH__")}))])})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSecurityDrawer.react",["fbt","WAWebCheckBox.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebGroupInfoSeparator.react","WAWebLockRefreshedIcon.react","WAWebMiscGatingUtils","WAWebPrinaUtils","WAWebPrivacyNarrativeE2ESummary.react","WAWebSecurityLockIcon.react","WAWebSecurityShieldIcon.react","WAWebSwitch.react","WAWebText.react","WAWebUIRefreshGatingUtils","WAWebUISpacing","WAWebUserPrefsNotifications","react","stylex","useWAWebToggle"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={icon:{position:"x1n2onr6",boxSizing:"x9f619",width:"xj35x94",height:"x19swzb4",paddingTop:"x1yrsyyn",marginTop:"xdj266r",marginEnd:"xkrivgy",marginBottom:"xat24cr",marginStart:"x1gryazu",color:"x1mysghr",backgroundColor:"xe8plzu",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0},iconLock:{position:"x10l6tqk",start:"x17qophe",end:"xds687c",left:null,right:null,top:"x13vifvy",bottom:"xy1j3rs",color:"x2rqmh4",$$css:!0},controls:{paddingBottom:"x1s14bel",marginTop:"xjv05ge",$$css:!0},e2eSummaryContainer:{borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xcsjwe9",$$css:!0},checkbox:{flex:"x1okw0bk",paddingEnd:"x1i4ejaq",$$css:!0},settingsContainer:{paddingTop:"xz9dl7a",paddingEnd:"xc73u3c",paddingBottom:"xsag5q8",paddingStart:"x5ib6vp",$$css:!0}};function m(){return k.jsxs(k.Fragment,{children:[k.jsxs(d("WAWebFlex.react").FlexColumn,{xstyle:l.icon,align:"center",justify:"center",children:[k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebSecurityShieldIcon.react").SecurityShieldIcon,{})}),k.jsx(d("WAWebFlex.react").FlexColumn,{xstyle:l.iconLock,align:"center",justify:"center",children:k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebSecurityLockIcon.react").SecurityLockIcon,{})})})]}),k.jsxs("div",babelHelpers["extends"]({className:"xaqh0s9 x1jchvi3 x1o2sk6j"},{children:[h._(/*BTDS*/"__JHASH__8nU-F0o6MmM__JHASH__")," ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebPrinaUtils").securityUrl(),children:h._(/*BTDS*/"__JHASH__RR1bpeluTQm__JHASH__")})]}))]})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.onClose;a=a.ref;var e=c("useWAWebToggle")(d("WAWebUserPrefsNotifications").getGlobalSecurityNotifications,d("WAWebUserPrefsNotifications").setGlobalSecurityNotifications),f=e[0];e=e[1];var g=h._(/*BTDS*/"__JHASH__8Lx4soPx8qK__JHASH__"),i=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();return k.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__8J8dgTyjnWZ__JHASH__"),onBack:b,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{theme:i?void 0:"padding-large",animation:!1,children:[d("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()?k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(!i&&[l.e2eSummaryContainer,d("WAWebUISpacing").uiPadding.bottom20]),{children:k.jsx(d("WAWebPrivacyNarrativeE2ESummary.react").E2eSummarySecurityDrawer,{})})):k.jsx(m,{}),i&&k.jsx(d("WAWebGroupInfoSeparator.react").GroupInfoDrawerSeparator,{}),k.jsxs(d("WAWebFlex.react").FlexRow,{xstyle:i?l.settingsContainer:l.controls,children:[i?k.jsx("div",babelHelpers["extends"]({className:"xz9dl7a x1sxyh0 xsag5q8 xurb0ha"},{children:k.jsx(d("WAWebLockRefreshedIcon.react").LockRefreshedIcon,{})})):k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(l.checkbox,d("WAWebUISpacing").uiMargin.top2),{children:k.jsx(d("WAWebCheckBox.react").CheckBox,{onChange:e,checked:f})})),k.jsxs(c("WAWebFlexItem.react"),{xstyle:d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled&&d("WAWebUISpacing").uiPadding.horiz14,children:[k.jsx(d("WAWebText.react").WAWebTextTitle,{marginBottom:8,children:h._(/*BTDS*/"__JHASH__eU86q_PbUQE__JHASH__")}),k.jsxs(d("WAWebText.react").WAWebTextMuted,{children:[g," ",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getCodeChangeFaqUrl(),children:h._(/*BTDS*/"__JHASH__RR1bpeluTQm__JHASH__")})]})]}),i&&k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiPadding.top12,d("WAWebUISpacing").uiPadding.end8),{children:k.jsx(d("WAWebSwitch.react").Switch,{onChange:e,checked:f,ariaLabel:h._(/*BTDS*/"__JHASH__eU86q_PbUQE__JHASH__")})}))]})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebHistorySyncPausedPopup.react",["fbt","WAWebConfirmPopup.react","WAWebFaqUrl","WAWebHistorySyncUIText","WAWebModal.react","WAWebModalManager","WAWebText_DONOTUSE.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={title:{fontWeight:"xk50ysn",fontSize:"x1603h9y",$$css:!0},body:{fontWeight:"xo1l8bm",fontSize:"x1jchvi3",lineHeight:"x1xet1wb",color:"x19q65qo",$$css:!0}};function a(){return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:j.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{xstyle:k.title,children:d("WAWebHistorySyncUIText").SYNCING_PAUSED_POPUP_TITLE()}),type:d("WAWebModal.react").ModalTheme.HistorySyncProgress,cancelText:h._(/*BTDS*/"__JHASH__1X8_VuO9HeO__JHASH__"),onOK:function(){d("WAWebModalManager").ModalManager.close()},onCancel:function(){window.open(d("WAWebFaqUrl").getMessageHistoryOnLinkedDevicesFAQUrl())},children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:k.body,children:d("WAWebHistorySyncUIText").SYNCING_PAUSED_POPUP_DESC()})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSyncInProgressIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="sync-in-progress";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=16;(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 16 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",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0.71003V2.50003C12.42 2.50003 16 6.08003 16 10.5C16 11.54 15.8 12.54 15.43 13.45C15.16 14.12 14.3 14.3 13.79 13.79C13.52 13.52 13.41 13.11 13.56 12.75C13.85 12.06 14 11.29 14 10.5C14 7.19003 11.31 4.50003 8 4.50003V6.29003C8 6.74003 7.46 6.96003 7.14 6.65003L4.35 3.86003C4.15 3.66003 4.15 3.35003 4.35 3.15003L7.15 0.360031C7.46 0.0400305 8 0.260031 8 0.71003ZM2 10.5C2 13.81 4.69 16.5 8 16.5V14.71C8 14.26 8.54 14.04 8.85 14.35L11.64 17.14C11.84 17.34 11.84 17.65 11.64 17.85L8.85 20.64C8.54 20.96 8 20.74 8 20.29V18.5C3.58 18.5 0 14.92 0 10.5C0 9.46003 0.2 8.46003 0.57 7.55003C0.84 6.88003 1.7 6.70003 2.21 7.21003C2.48 7.48003 2.59 7.89003 2.44 8.25003C2.15 8.94003 2 9.71003 2 10.5Z",fill:"#8696A0"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.SyncInProgressIcon=a}),98); __d("WAWebHistorySyncSettingItem.react",["WAWebAlertSyncPausedIcon.react","WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncPausedPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebMenuItems.react","WAWebModalManager","WAWebSyncInProgressIcon.react","react","useWAWebHistorySyncProgressValues"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(){var a=d("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([d("WAWebHistorySyncProgressGetters").getInProgress,d("WAWebHistorySyncProgressGetters").getPaused,d("WAWebHistorySyncProgressGetters").getProgress]),b=a[0],e=a[1];a=a[2];if(!b)return null;return e?i.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"history-sync-paused",testid:void 0,onSelect:function(){return d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebHistorySyncPausedPopup.react"),{}))},detailLeft:i.jsx(d("WAWebAlertSyncPausedIcon.react").AlertSyncPausedIcon,{width:24,height:24}),primary:d("WAWebHistorySyncUIText").SYNCING_PAUSED_GLOBAL_SETTINGS_TITLE(),secondary:d("WAWebHistorySyncUIText").SYNCING_PAUSED_GLOBAL_SETTINGS_SUBTITLE(),border:"bottom-partial"}):i.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"history-sync-in-progress",testid:void 0,onSelect:function(){return d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebHistorySyncInProgressPopup.react"),{}))},detailLeft:i.jsx(d("WAWebSyncInProgressIcon.react").SyncInProgressIcon,{}),primary:d("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_SETTINGS_TITLE(),secondary:a==null?null:d("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_SETTINGS_PERCENT_COMPLETE(a),border:"bottom-partial"})}a.displayName=a.name+" [from "+f.id+"]";g.HistorySyncSettingItem=a}),98); __d("WAWebThunk",[],(function(a,b,c,d,e,f){function a(a){return typeof a==="function"?a():a}b=a;f.getResult=b}),66); __d("WAWebSettingSearchModel",["WAWebSearchModel","WAWebSearchUtils","WAWebSettingsHierarchy","WAWebThunk","WAWebUIRefreshGatingUtils"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(b=c=a.call.apply(a,[this].concat(e))||this,c.id="SettingSearch",b)||babelHelpers.assertThisInitialized(c)}var c=b.prototype;c.preloadData=function(){var a=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();this.data=d("WAWebSettingsHierarchy").buildSearchableHierarchy(d("WAWebSettingsHierarchy").getSettingsSearchHierarchy(a)).filter(function(a){return a.parent!=null&&!d("WAWebThunk").getResult(a.parent.isAvailable)?!1:d("WAWebThunk").getResult(a.isAvailable)})};c.queryFn=function(a){var b=d("WAWebSearchUtils").normalizeString(a);return{type:"setting",results:this.data.filter(function(a){return a.searchCriteria!=null&&a.searchCriteria.includes(b)}).map(function(a){return{id:a.id,type:"setting",data:a}})}};return b}(d("WAWebSearchModel").Search);g.SettingSearch=a}),98); __d("WAWebSettings.MenuItem",["WAWebDevOnlyBadge.react","WAWebDrawerManager","WAWebMenuItems.react","WAWebSettingsFlowLoadable","WAWebSettingsStepIcon.react","WAWebText.react","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(i.jsx(d("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:function(){return d("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},initialStep:a}))}function j(a){var b,c=a.border,e=a.isRefresh,f=a.onSelect,g=a.setting;a=a.showIcon;a=a?i.jsx(d("WAWebSettingsStepIcon.react").SettingsStepIcon,{setting:(a=(a=g.parent)==null?void 0:a.step)!=null?a:g.step}):" ";var h;if(e===!0)h=(g==null?void 0:g.secondaryTitle)!=null&&(g==null?void 0:g.secondaryTitle());else{var j;h=(j=g.parent)==null?void 0:j.title()}j=g.color!=null?i.jsx(d("WAWebText.react").WAWebTextColor,{color:g.color,children:g.title()}):g.title();return i.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:g.id,onSelect:f,detailLeft:a,primary:j,secondary:h,detailRight:g.isDevOnly===!0&&i.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{}),testid:void 0,border:c,isRefresh:e})}j.displayName=j.name+" [from "+f.id+"]";function b(a){var b=a.onSelect;a=a.settings;var c=new Set();return a.map(function(a){var d=!1;if(a.parent==null||!c.has(a.parent.step)){var e;d=!0;c.add((e=(e=a.parent)==null?void 0:e.step)!=null?e:a.step)}return i.jsx(j,{setting:a,showIcon:d,onSelect:function(){return b(a)}},a.id)})}b.displayName=b.name+" [from "+f.id+"]";g.openSettingDrawer=a;g.SettingsMenuItem=j;g.SettingsMenu=b}),98); __d("WAWebWamEnumSettingsClickEntryPoint",[],(function(a,b,c,d,e,f){a=Object.freeze({SETTINGS_SCREEN:0,SETTINGS_SEARCH:1,DEEP_LINK:2,PRIVACY_CHECKUP:3,METAB_SCREEN:4});f.SETTINGS_CLICK_ENTRY_POINT=a}),66); __d("WAWebWamEnumSettingsPageType",[],(function(a,b,c,d,e,f){a=Object.freeze({SETTINGS:0,ME_TAB:1,AVATAR_COINFLIP:2});f.SETTINGS_PAGE_TYPE=a}),66); __d("WAWebSettingsClickWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumSettingsClickEntryPoint","WAWebWamEnumSettingsItemType","WAWebWamEnumSettingsPageType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({SettingsClick:[2214,{isBookmarkAppInstalled:[4,d("WAWebWamCodegenUtils").TYPES.BOOLEAN],settingsClickEntryPoint:[2,d("WAWebWamEnumSettingsClickEntryPoint").SETTINGS_CLICK_ENTRY_POINT],settingsItem:[1,d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE],settingsPageType:[3,d("WAWebWamEnumSettingsPageType").SETTINGS_PAGE_TYPE]},[1,1,1],"regular"]},{SettingsClick:[]});g.SettingsClickWamEvent=a}),98); __d("WAWebSettingsSearchInitiateWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumSettingsPageType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({SettingsSearchInitiate:[4014,{settingsPageType:[1,d("WAWebWamEnumSettingsPageType").SETTINGS_PAGE_TYPE]},[1,1,1],"regular"]},{SettingsSearchInitiate:[]});g.SettingsSearchInitiateWamEvent=a}),98); __d("WAWebSettingsSearchTapWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumSettingsItemType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({SettingsSearchTap:[4016,{tapItemName:[1,d("WAWebWamCodegenUtils").TYPES.STRING],topLevelParentSetting:[2,d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE]},[1,1,1],"regular"]},{SettingsSearchTap:[]});g.SettingsSearchTapWamEvent=a}),98); __d("WAWebSettingsDrawer.react",["fbt","WAWebChatStatus","WAWebChatTextStatusWrapper","WAWebConnModel","WAWebDetailImage.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEmojiText.react","WAWebEmptyState.react","WAWebFlex.react","WAWebGroupInfoSeparator.react","WAWebHistorySyncSettingItem.react","WAWebLexicalWDSMenu.react","WAWebMacBetaUpsellToastbar.react","WAWebMemoizeWithClearUtils","WAWebMenuItems.react","WAWebSearchInput","WAWebSettingSearchModel","WAWebSettings.MenuItem","WAWebSettingsClickWamEvent","WAWebSettingsSearchInitiateWamEvent","WAWebSettingsSearchTapWamEvent","WAWebTextStatusGatingUtils","WAWebUIRefreshGatingUtils","WAWebUserPrefsMeUser","WAWebWamEnumSettingsClickEntryPoint","WAWebWamEnumSettingsItemType","WAWebWamEnumWebcNativeUpsellCtaSourceType","react","useWAWebExternalBetaOptIn","useWAWebNavigatableList","useWAWebSearchModel"],(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.useRef,n=b.useState;function o(a,b){new(d("WAWebSettingsClickWamEvent").SettingsClickWamEvent)({settingsItem:a,settingsClickEntryPoint:b}).commit()}function p(a,b){new(d("WAWebSettingsSearchTapWamEvent").SettingsSearchTapWamEvent)({tapItemName:a,topLevelParentSetting:b}).commit()}function q(){new(d("WAWebSettingsSearchInitiateWamEvent").SettingsSearchInitiateWamEvent)().commit()}function r(a){var b=a.listSelection,e=a.onClick,f=a.onProfile;a=a.profileId;var g=d("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),h=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();a=d("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?k.jsx(c("WAWebChatTextStatusWrapper"),{contactId:a}):k.jsx(c("WAWebChatStatus"),{id:a});var i=k.jsx(d("WAWebDetailImage.react").DetailImage,{id:d("WAWebUserPrefsMeUser").getMeUser(),size:h===!0?64:82,quality:d("WAWebDetailImage.react").DetailImageQuality.High}),j=k.jsx(d("WAWebEmojiText.react").EmojiText,{text:d("WAWebConnModel").Conn.pushname,ellipsify:!0,titlify:!0});return k.jsxs(d("WAWebLexicalWDSMenu.react").LexicalWDSMenu,{allowTabNavigation:!0,colorScheme:"lightest",children:[k.jsx(d("WAWebMenuItems.react").ActionMenuItem,{optionId:"profile",onSelect:f,detailLeft:i,primary:j,secondary:a,isRefresh:h}),h===!0&&k.jsx(d("WAWebGroupInfoSeparator.react").GroupInfoDrawerSeparator,{animation:!1}),k.jsx(d("WAWebHistorySyncSettingItem.react").HistorySyncSettingItem,{}),b.list.filter(function(a){return a.parentId==null}).map(function(a,b){return a.id==="divider"?h===!0?k.jsx(d("WAWebGroupInfoSeparator.react").GroupInfoDrawerSeparator,{animation:!1},b):null:k.jsx(d("WAWebSettings.MenuItem").SettingsMenuItem,{setting:a,onSelect:function(){return e(a)},showIcon:!0,border:"bottom-partial",isRefresh:h},a.id)}),h&&k.jsx("div",{className:"x9orja2 x4uap5 xbaz6xv xkhd6sd"}),g&&k.jsx(c("WAWebMacBetaUpsellToastbar.react"),{sourceType:d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SETTINGS})]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=d("WAWebUIRefreshGatingUtils").uiRefreshM1Enabled();var f=n(""),g=f[0],i=f[1];f=d("useWAWebSearchModel").useSearchModel(function(){return new(d("WAWebSettingSearchModel").SettingSearch)()});var j=f.results,t=f.query,u=f.searchInstance,v=m();f=l(function(){if(g==="")return u.data.filter(function(a){return a.parentId==null});else if(j!=null)return j.results.map(function(a){return a.data});return[]},[g,j,u.data]);var w=d("useWAWebNavigatableList").useNavigatableList(f),x=w.activeItem;w=w.listSelection;var y=l(function(){return d("WAWebMemoizeWithClearUtils").memoizeWithClear(q)},[]),z=y[0];y=y[1];var A=function(){var a;((a=v.current)==null?void 0:a.scrollTop)!=null&&(v.current.scrollTop=0)},B=function(a){z(),t(a),i(a)},C=function(a){if(a!=null){var b=g.length>0;a.wamName!=null&&a.parentId==null&&o(a.wamName,b?d("WAWebWamEnumSettingsClickEntryPoint").SETTINGS_CLICK_ENTRY_POINT.SETTINGS_SEARCH:d("WAWebWamEnumSettingsClickEntryPoint").SETTINGS_CLICK_ENTRY_POINT.SETTINGS_SCREEN);if(b){b=a.id;var c;if(a.parent!=null){var f;c=(f=a.parent.wamName)!=null?f:d("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.UNKNOWN}p(b,c)}e.onSettingClick!=null&&e.onSettingClick(a.step)}},D=function(){C(x)},E=h._(/*BTDS*/"__JHASH__okCBMSvvgyq__JHASH__");return k.jsxs(c("WAWebDrawer.react"),{ref:b,theme:"settings",testid:void 0,tsNavigationData:{surface:"settings-drawer"},children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__oo7mTfTBGys__JHASH__"),onBack:e.onClose,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB}),k.jsx(c("WAWebDrawerBody.react"),{ref:v,isRefresh:a,backgroundColor:a===!0?"default":void 0,children:k.jsx(d("WAWebSearchInput").DrawerSearchInput,{searchInputA11yLabel:E,placeholder:E,onSearch:B,onEnter:D,onBlur:y,onFocus:A,focusOnMount:!0,children:k.jsx(d("WAWebFlex.react").FlexColumn,{align:"stretch",children:g===""?k.jsx(r,{profileId:e.profileId,onProfile:e.onProfile,listSelection:w,onClick:C}):k.jsx(s,{results:f,onSelect:C})})})})]})}a.displayName=a.name+" [from "+f.id+"]";function s(a){var b=a.onSelect;a=a.results;return a.length?k.jsx(d("WAWebLexicalWDSMenu.react").LexicalWDSMenu,{allowTabNavigation:!0,colorScheme:"lightest",children:k.jsx(d("WAWebSettings.MenuItem").SettingsMenu,{settings:a,onSelect:b})}):k.jsx(d("WAWebEmptyState.react").SearchWithoutKeyword,{})}s.displayName=s.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebThemePopup.react",["WAWebConfirmPopup.react","WAWebModalManager","WAWebRadio.react","WAWebSettingsFBT","WAWebSystemTheme","WAWebThemeContext","react"],(function(a,b,c,d,e,f,g){var h,i;b=i||d("react");var j=h||(h=c("react")),k=b.useContext,l=b.useState,m=[{value:"light",label:d("WAWebSettingsFBT").themeLightLabel},{value:"dark",label:d("WAWebSettingsFBT").themeDarkLabel},{value:"system",label:d("WAWebSettingsFBT").themeSystemLabel}];function a(){var a=k(d("WAWebThemeContext").ThemeContext),b=l(a.systemThemeMode?"system":a.theme),e=b[0],f=b[1],g=function(a){f(a)};b=function(){e==="system"?(a.setSystemThemeMode(!0),a.setTheme(c("WAWebSystemTheme").getCurrentTheme())):(a.setSystemThemeMode(!1),a.setTheme(e)),d("WAWebModalManager").ModalManager.close()};var h=function(){d("WAWebModalManager").ModalManager.close()},i=j.jsx(d("WAWebRadio.react").RadioGroup,{name:"theme",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.NORMAL,checkedValue:e,options:m.map(function(a){var b=a.label,c=a.value;return{value:c,label:b(),onChange:function(){return g(c)}}})});return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:d("WAWebSettingsFBT").themeTitle(),onOK:b,onCancel:h,children:j.jsx("form",{children:j.jsx("ol",{children:i})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebTimeFormatDrawer.react",["fbt","WAWebClock","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebRadio.react","WAWebText.react","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState;function a(a){var b=a.onClose;a=a.ref;var e=l(d("WAWebClock").Clock.getIs24Hour()),f=e[0],g=e[1];e=[{value:"24",label:h._(/*BTDS*/"__JHASH__6oWl3UNnRng__JHASH__"),secondaryLabel:h._(/*BTDS*/"__JHASH__IEFWadHQEEj__JHASH__"),onChange:function(){return i(!0)}},{value:"12",label:h._(/*BTDS*/"__JHASH__CRtX2TgineI__JHASH__"),secondaryLabel:h._(/*BTDS*/"__JHASH__d6jKqSjGB2S__JHASH__"),onChange:function(){return i(!1)}}];function i(a){a!==f&&(d("WAWebClock").Clock.setIs24Hour(a,d("WAWebClock").TimeFormatSource.DeviceTimeFormat),g(a))}return k.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:h._(/*BTDS*/"__JHASH__fyU5zQBWbs7__JHASH__"),onBack:b,focusBackOrCancel:!0,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[k.jsx(d("WAWebText.react").WAWebTextSectionTitle,{margin:[32,0,16,0],children:h._(/*BTDS*/"__JHASH__2HcuFZSwZqX__JHASH__")}),k.jsx(d("WAWebRadio.react").RadioGroup,{name:"time format",theme:d("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:f?"24":"12",options:e})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebWallpaperDrawer.react",["fbt","WAWebABProps","WAWebButton.react","WAWebChatPreferenceCollection","WAWebCheckBox.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebFlex.react","WAWebText.react","WAWebThemeContext","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebWallpaper","asyncToGeneratorRuntime","react","stylex","useWAWebModelValues"],(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.useContext,n=e.useEffect,o=e.useState,p={wallpaperColorCanvas:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k","float":"xrbpyxo",width:"x1pigqs1",height:"xn6wvy2",marginBottom:"x1fqp7bg",marginStart:"x13ibhcj",textAlign:"x2b8uid",borderTopWidth:"x1gp4ovq",borderEndWidth:"xdio9jc",borderBottomWidth:"x1h2mt7u",borderStartWidth:"x7g060r",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1v8p93f",borderEndColor:"xogb00i",borderBottomColor:"x16stqrj",borderStartColor:"x1ftr3km",$$css:!0},canvasHover:{cursor:"x1ypdohk",$$css:!0},canvasActive:{boxShadow:"xftp5sx",$$css:!0},canvasHoverBorder:{borderTopWidth:"x1gp4ovq",borderEndWidth:"xdio9jc",borderBottomWidth:"x1h2mt7u",borderStartWidth:"x7g060r",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x105q525",borderEndColor:"xfpjtht",borderBottomColor:"x8bxmfy",borderStartColor:"xtt3khl",$$css:!0},canvasActiveBorder:{borderTopWidth:"x1gp4ovq",borderEndWidth:"xdio9jc",borderBottomWidth:"x1h2mt7u",borderStartWidth:"x7g060r",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1gp5a3t",borderEndColor:"x1sgyrih",borderBottomColor:"x6ge1gz",borderStartColor:"xffif1h",$$css:!0},canvasDefault:{backgroundColor:"xo32pxx",$$css:!0},wallpaperUseGlobal:{display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",justifyContent:"xl56j7k",$$css:!0},checkboxLabel:{display:"xt0psk2",marginStart:"x1mnrxsn",verticalAlign:"xxymvpz",$$css:!0}};function q(a){var e=a.chat,f=a.colorHex,g=a.isDefault,i=o(!1),k=i[0],m=i[1],n=d("useWAWebModelValues").useOptionalModelValues(e,["wallpaper"]),q=function(){return g?d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER:f};i=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=q();var b=c("WAWebChatPreferenceCollection").get("defaultPreference");d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&n!=null&&a!==n.wallpaper?(yield n.setChatWallpaper(a),d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__35TcNG73A-v__JHASH__")}))):b&&a!==b.wallpaper&&(b.set("wallpaper",a),d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:h._(/*BTDS*/"__JHASH__3UkSO2Nin1b__JHASH__")})))});return function(b){return a.apply(this,arguments)}}();e=function(a){k||(m(!0),c("WAWebChatPreferenceCollection").trigger("wallpaper_preview",q()))};var r=function(a){k||(m(!0),c("WAWebChatPreferenceCollection").trigger("wallpaper_preview",q()))},s=function(a){k&&(m(!1),c("WAWebChatPreferenceCollection").trigger("wallpaper_preview"))},t=a.isDefault?l.jsx("span",babelHelpers["extends"]({className:"xlrnmfh xdj266r xeyog9w xat24cr x1w4ip6v x6ikm8r x10wlt62 x1ncwhqj xlyipyv xuxw1ft"},{"data-testid":void 0,children:h._(/*BTDS*/"__JHASH__mlWyo87itev__JHASH__")})):null,u=a.isSelected?p.canvasActiveBorder:k&&p.canvasHoverBorder;u=(j||(j=c("stylex")))(p.wallpaperColorCanvas,a.isSelected&&p.canvasActive,k&&p.canvasHover,u,a.isDefault&&p.canvasDefault);var v=f!=null?"wallpaper-canvas-color-"+f:"wallpaper-canvas-color";return l.jsx("span",{className:u,style:{backgroundColor:a.colorHex},onMouseOver:e,onMouseEnter:r,onMouseLeave:s,onClick:i,"data-testid":void 0,"aria-label":a.ariaLabel,title:a.isDefault?h._(/*BTDS*/"__JHASH__mlWyo87itev__JHASH__"):null,children:t})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var e,f=a.chat,g=a.colors,i=d("useWAWebModelValues").useOptionalModelValues(f,["wallpaper","showDoodle"]),k=d("useWAWebModelValues").useOptionalModelValues(a.chatPreference,["wallpaper","showDoodle"]),n=m(d("WAWebThemeContext").ThemeContext),o=d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?(a=i==null?void 0:i.wallpaper)!=null?a:k==null?void 0:k.wallpaper:k==null?void 0:k.wallpaper;a=function(){if(d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&i){var a=i.showDoodle!=null?!i.showDoodle:!(k==null?void 0:k.showDoodle);i.set("showDoodle",a);d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:a?h._(/*BTDS*/"__JHASH__wMGU7csPWy8__JHASH__"):h._(/*BTDS*/"__JHASH__Elvri8sB-Lu__JHASH__")}))}else if(k){a=!k.showDoodle;k.set("showDoodle",a);d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:a?h._(/*BTDS*/"__JHASH__yYiprdQ203v__JHASH__"):h._(/*BTDS*/"__JHASH__hAfEhnyag57__JHASH__")}))}};var r=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield i==null?void 0:i.setChatWallpaper(null),yield i==null?void 0:i.setShowDoodle(null),c("WAWebChatPreferenceCollection").trigger("wallpaper_preview",k==null?void 0:k.wallpaper)});return function(){return a.apply(this,arguments)}}();e=d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?(e=i==null?void 0:i.showDoodle)!=null?e:k==null?void 0:k.showDoodle:k==null?void 0:k.showDoodle;g=g.map(function(a){var b=o===a;return l.jsx(q,{ariaLabel:d("WAWebWallpaper").getWallpaperColorAriaLabel(a,n.theme),chat:f,colorHex:a,isSelected:b,isDefault:!1},a)});var s=l.jsx(q,{chat:f,isSelected:o===d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER,isDefault:!0},d("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER);g.unshift(s);for(s=0;s<2;s++)g.push(l.jsx("div",{className:"x1pigqs1 xqtp20y x13ibhcj"},"emptyEl"+s));s=l.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x1q0g3np x1a02dak xl56j7k x9orja2 x6x52a7 xvpee5o"},{children:[l.jsx(d("WAWebCheckBox.react").CheckBox,{onChange:a,checked:!!e,id:"add-doodles"}),l.jsx(d("WAWebText.react").WAWebTextSmall,{xstyle:p.checkboxLabel,as:"label",labelFor:"add-doodles",children:h._(/*BTDS*/"__JHASH__zIWxaSyc9a0__JHASH__")})]}));a=d("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&i!=null?l.jsx(d("WAWebFlex.react").FlexRow,{wrap:"wrap",justify:"center",className:(j||(j=c("stylex")))(p.wallpaperUseGlobal,d("WAWebUISpacing").uiPadding.all10,d("WAWebUISpacing").uiMargin.all10),children:l.jsx(d("WAWebButton.react").Button,{onClick:r,disabled:(i==null?void 0:i.wallpaper)==null&&(i==null?void 0:i.showDoodle)==null,children:h._(/*BTDS*/"__JHASH__776wlyjwFww__JHASH__")})}):null;return l.jsxs(l.Fragment,{children:[s,l.jsx("div",babelHelpers["extends"]({"aria-label":h._(/*BTDS*/"__JHASH__hsaDe2Emdb7__JHASH__")},{className:"x78zum5 x1q0g3np x1a02dak xl56j7k x9orja2 x6x52a7 xvpee5o"},{children:g})),a]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=a.chat,e=a.onClose;a=a.ref;var f=m(d("WAWebThemeContext").ThemeContext),g=b==null;n(function(){c("WAWebChatPreferenceCollection").trigger("wallpaper_drawer_open",g);return function(){c("WAWebChatPreferenceCollection").trigger("wallpaper_preview"),c("WAWebChatPreferenceCollection").trigger("wallpaper_drawer_close",g)}},[]);return l.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__WF6d-WwRaJJ__JHASH__"),onBack:e,type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),l.jsx(c("WAWebDrawerBody.react"),{children:l.jsx(c("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:l.jsx(r,{chat:b,colors:d("WAWebWallpaper").getWallpaperColors(f.theme),chatPreference:c("WAWebChatPreferenceCollection").get("defaultPreference")})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebSettingsFlow.react",["JSResourceForInteraction","WAWebAccountSettingsDrawer.react","WAWebBizLabelFlow.react","WAWebBizToolsFlow.react","WAWebBlockedDrawer.react","WAWebBugnubLoadable","WAWebChatsSettingsDrawer.react","WAWebConfirmLogoutModal.react","WAWebConnModel","WAWebContactCollection","WAWebCrashlog","WAWebCurrentUser","WAWebDefaultEphemeralityDrawer.react","WAWebDeveloperMenuConstants","WAWebGdprRequestAccountInfoSettingsDrawer.react","WAWebHelpDrawer.react","WAWebKeyboardHotKeys.react","WAWebKeyboardShortcutsPopup.react","WAWebLanguageAndTimeSettingsDrawer.react","WAWebLanguageDrawer.react","WAWebLazyLoadedRetriable","WAWebMediaAutoDownloadDrawer.react","WAWebMediaUploadQualityDrawer.react","WAWebModalManager","WAWebNewsletterDSAReportsFlow.react","WAWebNotificationsDrawer.react","WAWebPrivacySettingsDrawer.react","WAWebPrivacySettingsLastSeenOnlineDrawer.react","WAWebPrivacySettingsStatusPostDrawer.react","WAWebPrivacyVisibilityEditDrawer.react","WAWebProfileDrawerLoadable","WAWebProfilePicThumbCollection","WAWebSMBDataSharingDrawer.react","WAWebScreenLockDrawer.react","WAWebSecurityDrawer.react","WAWebSettingsConst","WAWebSettingsDrawer.react","WAWebSettingsModel","WAWebTextStatusCollection","WAWebThemePopup.react","WAWebTimeFormatDrawer.react","WAWebUserPrefsMeUser","WAWebWallpaperDrawer.react","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumSmbDataSharingConsentSettingEntryPoint","WAWebWamUtils","asyncToGeneratorRuntime","cr:17209","cr:1977","cr:2404","cr:7753","cr:8751","react","useWAWebFlow","useWAWebFocusOnMount"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function j(a){switch(a){case d("WAWebSettingsConst").SettingsSteps.Theme:d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebThemePopup.react"),{}));return!0;case d("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts:d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebKeyboardShortcutsPopup.react"),{}));return!0;case d("WAWebSettingsConst").SettingsSteps.Logout:d("WAWebWamUtils").forceFlushAllWamAndQplBuffers();d("WAWebModalManager").ModalManager.open(i.jsx(c("WAWebConfirmLogoutModal.react"),{checkUnsent:!0}));return!0;case d("WAWebSettingsConst").SettingsSteps.Bugnub:d("WAWebCurrentUser").isEmployee()&&c("WAWebBugnubLoadable")();return!0;case d("WAWebSettingsConst").SettingsSteps.DeveloperInfraSettings:d("WAWebCurrentUser").isEmployee()&&void c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebMdDebugSetting.react").__setRef("WAWebSettingsFlow.react").load());return a}),"MdDebugSetting")().then(function(a){d("WAWebModalManager").ModalManager.open(i.jsx(a,{}))});return!0;default:return!1}}function a(a){var e=a.initialStep;e=e===void 0?d("WAWebSettingsConst").SettingsSteps.Settings:e;var f=a.onEnd;a=a.activeAccountInfo;var g=d("WAWebUserPrefsMeUser").getMeUser();f=d("useWAWebFlow").useFlow(e,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight,onEnd:f});var h=f[0],k=f[1];f=c("useWAWebFocusOnMount")();if(!k.step)return null;if(j(k.step)){k.end();return}var l=function(){k.pop()},m=function(a){if(j(a))return;switch(a){case d("WAWebSettingsConst").SettingsSteps.Help:void d("WAWebCrashlog").upload({reason:"help-page-opened",isHighPri:!0});break;default:break}k.push(a)},n;switch(k.step){case d("WAWebSettingsConst").SettingsSteps.Settings:n=i.jsx(c("WAWebSettingsDrawer.react"),{profileId:g,onProfile:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.Profile)},onClose:l,onSettingClick:m});break;case d("WAWebSettingsConst").SettingsSteps.Wallpaper:n=i.jsx(c("WAWebWallpaperDrawer.react"),{chat:null,onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings:n=i.jsx(c("WAWebGdprRequestAccountInfoSettingsDrawer.react"),{settings:c("WAWebSettingsModel"),onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.NewsletterReports:n=i.jsx(c("WAWebNewsletterDSAReportsFlow.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.Blocked:n=i.jsx(c("WAWebBlockedDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.Profile:m=d("WAWebTextStatusCollection").TextStatusCollection.assertGet(g);var o=d("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(g);g=d("WAWebContactCollection").ContactCollection.assertGet(g);n=i.jsx(d("WAWebProfileDrawerLoadable").ProfileDrawerFlowLoadable,{status:m,profilePicThumb:o,contact:g,conn:d("WAWebConnModel").Conn,onClose:l,isInitialStep:!1});break;case d("WAWebSettingsConst").SettingsSteps.Notifications:n=i.jsx(c("WAWebNotificationsDrawer.react"),{onClose:l,onShowNotificationBannerClick:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.ShowNotificationBanner)},onTaskbarNotificationSettingsClick:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.TaskbarNotificationSettings)}});break;case d("WAWebSettingsConst").SettingsSteps.LanguageAndTime:n=i.jsx(c("WAWebLanguageAndTimeSettingsDrawer.react"),{onClose:l,onLanguageOpen:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.Language)},onTimeFormatOpen:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.TimeFormat)}});break;case d("WAWebSettingsConst").SettingsSteps.Language:n=i.jsx(c("WAWebLanguageDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.Lists:n=i.jsx(c("WAWebBizLabelFlow.react"),{isInitialStep:!1});break;case d("WAWebSettingsConst").SettingsSteps.TimeFormat:n=i.jsx(c("WAWebTimeFormatDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.MediaAutoDownload:n=i.jsx(c("WAWebMediaAutoDownloadDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.MediaUploadQuality:n=i.jsx(c("WAWebMediaUploadQualityDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.Security:n=i.jsx(c("WAWebSecurityDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditLastSeen:n=i.jsx(c("WAWebPrivacySettingsLastSeenOnlineDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditProfilePicture:n=i.jsx(c("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:l,category:"profilePicture"});break;case d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditAbout:n=i.jsx(c("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:l,category:"about"});break;case d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditStatus:n=i.jsx(c("WAWebPrivacySettingsStatusPostDrawer.react"),{onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditGroupAdd:n=i.jsx(c("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:l,category:"groupAdd"});break;case d("WAWebSettingsConst").SettingsSteps.PrivacySettings:m=function(a){switch(a){case"lastSeen":k.push(d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditLastSeen);break;case"about":k.push(d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditAbout);break;case"groupAdd":k.push(d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditGroupAdd);break;case"profilePicture":k.push(d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditProfilePicture);break}};o=function(){k.push(d("WAWebSettingsConst").SettingsSteps.Blocked)};g=function(){k.push(d("WAWebSettingsConst").SettingsSteps.DefaultEphemerality)};var p=function(){k.push(d("WAWebSettingsConst").SettingsSteps.ScreenLock)},q=function(){k.push(d("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditStatus)};n=i.jsx(d("WAWebPrivacySettingsDrawer.react").PrivacySettingsDrawer,{onClose:l,onOpenVisibilityEditDrawer:m,onOpenBlockedContacts:o,onOpenEphemeralityDrawer:g,onOpenScreenLockDrawer:p,onOpenStatusPrivacySettingDrawer:q});break;case d("WAWebSettingsConst").SettingsSteps.DefaultEphemerality:n=i.jsx(c("WAWebDefaultEphemeralityDrawer.react"),{onClose:l,entryPoint:d("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.ACCOUNT_SETTINGS});break;case d("WAWebSettingsConst").SettingsSteps.Help:n=i.jsx(c("WAWebHelpDrawer.react"),{onClose:l,onNewsletterReports:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.NewsletterReports)},isInitialStep:e===d("WAWebSettingsConst").SettingsSteps.Help});break;case d("WAWebSettingsConst").SettingsSteps.Developer:b("cr:8751")&&(n=i.jsx(b("cr:8751"),{onBack:l}));break;case d("WAWebSettingsConst").SettingsSteps.DeveloperABProps:b("cr:8751")&&(n=i.jsx(b("cr:8751"),{onBack:l,initialStep:d("WAWebDeveloperMenuConstants").DeveloperMenu.ABProps}));break;case d("WAWebSettingsConst").SettingsSteps.BusinessTools:n=i.jsx(c("WAWebBizToolsFlow.react"),{adsAccountInfo:a,entryPoint:d("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_SETTINGS});break;case d("WAWebSettingsConst").SettingsSteps.DataSharing:n=i.jsx(c("WAWebSMBDataSharingDrawer.react"),{onClose:l,entrypoint:d("WAWebWamEnumSmbDataSharingConsentSettingEntryPoint").SMB_DATA_SHARING_CONSENT_SETTING_ENTRY_POINT.ENTRY_POINT_SETTINGS_SCREEN});break;case d("WAWebSettingsConst").SettingsSteps.ScreenLock:n=i.jsx(c("WAWebScreenLockDrawer.react"),{onBack:l});break;case d("WAWebSettingsConst").SettingsSteps.Account:n=i.jsx(d("WAWebAccountSettingsDrawer.react").AccountSettingsDrawer,{onClickSecurity:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.Security)},onClickRequestAccountInfo:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings)},onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.Chats:n=i.jsx(d("WAWebChatsSettingsDrawer.react").ChatsSettingsDrawer,{onClickTheme:function(){return j(d("WAWebSettingsConst").SettingsSteps.Theme)},onClickWallpaper:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.Wallpaper)},onClickMediaAutoDownload:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.MediaAutoDownload)},onClickMediaUploadQuality:function(){return k.push(d("WAWebSettingsConst").SettingsSteps.MediaUploadQuality)},onClose:l});break;case d("WAWebSettingsConst").SettingsSteps.ShowNotificationBanner:b("cr:7753")&&(n=i.jsx(b("cr:7753"),{onClose:l}));break;case d("WAWebSettingsConst").SettingsSteps.TaskbarNotificationSettings:b("cr:2404")&&(n=i.jsx(b("cr:2404"),{onClose:l}));break;case d("WAWebSettingsConst").SettingsSteps.WinGeneralSettings:b("cr:1977")&&(n=i.jsx(b("cr:1977"),{onClose:l}));break;case d("WAWebSettingsConst").SettingsSteps.WinDevicesSettings:b("cr:17209")&&(n=i.jsx(b("cr:17209"),{onClose:l}));default:}return i.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:f,tabIndex:0,children:i.jsx(h,{flow:k,children:n})})}a.displayName=a.name+" [from "+f.id+"]";g.SettingsFlow=a}),98); __d("WAWebWamEnumCadminDemoteOriginType",[],(function(a,b,c,d,e,f){a=Object.freeze({PROMOTION_NOTIFICATION:1,MEMBER_LIST:2});f.CADMIN_DEMOTE_ORIGIN_TYPE=a}),66); __d("WAWebWamEnumCadminDemoteResultType",[],(function(a,b,c,d,e,f){a=Object.freeze({SUCCESS:1,FAILURE:2,CANCEL:3,RETRY_SUCCESS:4,RETRY_FAILURE:5,RETRY_CANCEL:6});f.CADMIN_DEMOTE_RESULT_TYPE=a}),66); __d("WAWebCadminDemoteWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumCadminDemoteOriginType","WAWebWamEnumCadminDemoteResultType"],(function(a,b,c,d,e,f,g){a=d("WAWebWamCodegenUtils").defineEvents({CadminDemote:[3426,{cadminDemoteOrigin:[1,d("WAWebWamEnumCadminDemoteOriginType").CADMIN_DEMOTE_ORIGIN_TYPE],cadminDemoteResult:[2,d("WAWebWamEnumCadminDemoteResultType").CADMIN_DEMOTE_RESULT_TYPE],isLastCadminOrCreator:[4,d("WAWebWamCodegenUtils").TYPES.BOOLEAN]},[1,1,1],"regular"]},{CadminDemote:[]});g.CadminDemoteWamEvent=a}),98); __d("WAWebChatHistoryIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="chat-history";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=20;m=22;(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 22 20",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.14407 10.0018C3.14407 4.94179 7.31407 0.861789 12.4041 1.00179C17.0941 1.13179 21.0141 5.05179 21.1441 9.74179C21.2841 14.8318 17.1941 19.0018 12.1441 19.0018C10.0641 19.0018 8.14407 18.2918 6.62407 17.1018C6.15407 16.7318 6.12407 16.0318 6.54407 15.6018C6.90407 15.2418 7.46407 15.2118 7.86407 15.5218C9.04407 16.4518 10.5341 17.0018 12.1441 17.0018C16.0441 17.0018 19.1941 13.8118 19.1441 9.90179C19.0941 6.18179 15.9641 3.05179 12.2441 3.00179C8.32407 2.95179 5.14407 6.10179 5.14407 10.0018H6.94407C7.38407 10.0018 7.61407 10.5418 7.29407 10.8518L4.50407 13.6518C4.30407 13.8518 3.99407 13.8518 3.79407 13.6518L1.00407 10.8518C0.684073 10.5418 0.904073 10.0018 1.35407 10.0018H3.14407ZM11.1441 6.75179C11.1441 6.34179 11.4841 6.00179 11.8941 6.00179C12.3141 6.00179 12.6441 6.34179 12.6441 6.74179V10.1418L15.5241 11.8518C15.8741 12.0618 15.9941 12.5218 15.7841 12.8818C15.5741 13.2318 15.1141 13.3518 14.7541 13.1418L11.6341 11.2918C11.3341 11.1118 11.1441 10.7818 11.1441 10.4318V6.75179Z",fill:"#8696A0"})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.ChatHistoryIcon=a}),98); __d("WAWebCommunityAdminSelfDemotePopup.react",["fbt","WAWebCmd","WAWebCommunityTransferOwnershipFlowLoadable.react","WAWebConfirmPopup.react","WAWebDrawerManager","WAWebKeyboardTabUtils","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function k(a){var b=a.onCancel,c=a.onDemote;a=a.ref;var e=h._(/*BTDS*/"__JHASH__oIsxhd8mhin__JHASH__"),f=h._(/*BTDS*/"__JHASH__0FvH_bA0B4n__JHASH__");return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{ref:a,title:e,onOK:c,onCancel:b,children:j.jsx("div",babelHelpers["extends"]({className:"x1jchvi3 x1xet1wb"},{children:f}))})}k.displayName=k.name+" [from "+f.id+"]";function l(a){var b=a.handleDismissModal,c=a.parentGroupChat;a=a.ref;if(c!=null){var e=function(){d("WAWebDrawerManager").DrawerManager.openDrawerRight(j.jsx(d("WAWebCommunityTransferOwnershipFlowLoadable.react").CommunityTransferOwnershipFlowLoadable,{parentGroupChat:c,onEnd:function(){return d("WAWebCmd").Cmd.openCommunityTabbedInfo(c.id)}}),{transition:"flow-transition-drawer-push",focusType:d("WAWebKeyboardTabUtils").FocusType.TABBABLE}),b()};return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,ref:a,onOK:e,okText:h._(/*BTDS*/"__JHASH__cOL-t2n3LGq__JHASH__"),onCancel:b,children:j.jsx("div",babelHelpers["extends"]({className:"x1jchvi3 x1xet1wb"},{children:h._(/*BTDS*/"__JHASH__IgC_IUEushb__JHASH__")}))})}return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{ref:a,onOK:b,children:j.jsx("div",babelHelpers["extends"]({className:"x1jchvi3 x1xet1wb"},{children:h._(/*BTDS*/"__JHASH__kjsnTybpfPJ__JHASH__")}))})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var c=a.onDemote,d=a.onCancel,e=a.onFailure,f=a.isCommunitySuperAdmin;f=f===void 0?!1:f;a=a.parentGroupChat;return f?j.jsx(l,{ref:b,handleDismissModal:e,parentGroupChat:a}):j.jsx(k,{ref:b,onDemote:c,onCancel:d})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCommunityAnnouncementGroupUtils",["WAWebGroupMetadataCollection","WAWebGroupType"],(function(a,b,c,d,e,f,g){function a(a){a=a==null?void 0:a.getSubgroupsMetadata();return a==null?void 0:a.find(function(a){return a.groupType===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP})}function b(a){a=a!=null?c("WAWebGroupMetadataCollection").get(a):null;return(a==null?void 0:a.isLidAddressingMode)===!0}g.getCommunityAnnouncementGroup=a;g.isLidAddressingModeGivenCAGId=b}),98); __d("WAWebCommunityLogEvents",["WAWebCadminDemoteWamEvent"],(function(a,b,c,d,e,f,g){a=function(a,b,c){a=new(d("WAWebCadminDemoteWamEvent").CadminDemoteWamEvent)({cadminDemoteOrigin:a,cadminDemoteResult:b,isLastCadminOrCreator:c});a.commit()};g.logCadminDemoteEvent=a}),98); __d("WAWebCommunityParticipantsUtils",["WAWebApiContact","WAWebContactCollection","WAWebContactComparator","WAWebContactGetters","WAWebGroupMetadataCollection","WAWebGroupType","WAWebLidMigrationUtils","WAWebUserPrefsMeUser","WAWebWidFactory"],(function(a,b,c,d,e,f,g){function h(a,b){var e=new Set();a=a.flatMap(function(a){a=c("WAWebGroupMetadataCollection").assertGet(a.toString());a=a.groupType===d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?a.participants.getAdmins():a.participants.toArray();return a.map(function(a){a=a.contact;var b=d("WAWebLidMigrationUtils").toPn(a.id);if(a.id.isLid()&&b!=null){return(b=d("WAWebContactCollection").ContactCollection.get(b))!=null?b:a}return a}).filter(function(a){return e.has(a.id.toString())?!1:e.add(a.id.toString())&&b(a)})}).sort(d("WAWebContactComparator").ContactComparator);return a}function a(a,b,c,e){var f,g,i=[],j=new Set(),k=[],l=new Set(),m=d("WAWebUserPrefsMeUser").getMaybeMeUser();m&&(f=d("WAWebContactCollection").ContactCollection.get(m));b==null?void 0:b.forEach(function(a){if(d("WAWebContactGetters").getIsMe(a.contact))return;else(a==null?void 0:a.isSuperAdmin)?g=a.contact:(a==null?void 0:a.isAdmin)?(i.push(a.contact),j.add(a.id.toString())):(k.push(a.contact),l.add(a.id.toString()))});var n=function(a){var b;return!l.has(a.toString())&&!j.has(a.toString())&&!a.equals((b=g)==null?void 0:b.id)&&!d("WAWebUserPrefsMeUser").isMeAccount(a)&&e===a.isLid()};(b==null?void 0:b.iAmAdmin())&&(a==null?void 0:a.forEach(function(a){a=a.contact;var b=d("WAWebApiContact").getAlternateUserWid(d("WAWebWidFactory").toUserWid(a.id)),c=n(a.id);b=b?n(b):!0;c=c&&b;c&&(k.push(a),l.add(a.id.toString()))}));m=[];c.length&&(m=h(c,function(a){return n(a.id)}));b=[];f&&b.push(f);g&&b.push(g);b=b.concat(i,k,m);return b}function b(a,b,c){if(a==null)return{membersInCAG:[],membersNotInCAG:b};var e=[];b==null?void 0:b.forEach(function(b){var d=b.id;d=c!==!0?(a==null?void 0:a.get(d))!=null:a.isParticipantWidOrAlternateWidValid(d,function(a){return a!=null});d||e.push(b)});var f;b=((b=a)!=null?b:[]).map(function(a){return a.contact}).filter(function(a){var b=d("WAWebUserPrefsMeUser").isMeAccount(a.id);b&&(f=a);return!b});b=f?[f].concat(b):b;return{membersInCAG:b,membersNotInCAG:e}}g.getMembersMyselfSharesSubgroupsWith=h;g.mergeAndSortCommunityParticipants=a;g.splitCommunityParticipants=b}),98); __d("WAWebCommunityPromoteDemotePopups.react",["fbt","WAWebConfirmPopup.react","WAWebEmojiText.react","WAWebFrontendContactGetters","WAWebModalManager","WAWebText_DONOTUSE.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function k(){d("WAWebModalManager").ModalManager.close()}function a(a){var b=a.parentGroupAdminsLimit;a=a.onOk;a=a===void 0?k:a;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__rvOkwcCyVeR__JHASH__"),onOK:a,children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:h._(/*BTDS*/"__JHASH__tTeGyC2cJ9N__JHASH__",[h._plural(b,"adminsNumber")])})})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.contact,c=a.onParticipantPromote;a=a.onCancel;a=a===void 0?k:a;b=b?h._(/*BTDS*/"__JHASH__xLKnXHZGMNW__JHASH__",[h._param("contact_name",j.jsx(d("WAWebEmojiText.react").EmojiText,{text:d("WAWebFrontendContactGetters").getFormattedName(b)}))]):h._(/*BTDS*/"__JHASH__h027GbQ7-dl__JHASH__");return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__JDLfe0fPW9l__JHASH__"),onOK:c,onCancel:a,children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:b})})}b.displayName=b.name+" [from "+f.id+"]";function e(a){var b=a.onParticipantPromote;a=a.onCancel;a=a===void 0?k:a;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:b,okText:h._(/*BTDS*/"__JHASH__ITznToGiZWw__JHASH__"),onCancel:a,children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:h._(/*BTDS*/"__JHASH__HhlYTobZjXp__JHASH__")})})}e.displayName=e.name+" [from "+f.id+"]";function l(a){a=a.onOk;a=a===void 0?k:a;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{onOK:a,children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:h._(/*BTDS*/"__JHASH__xLuUdhkpwMu__JHASH__")})})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.onParticipantDemote,c=a.onCancel;c=c===void 0?k:c;a=a.isMe;a=a===void 0?!1:a;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{okText:h._(/*BTDS*/"__JHASH__OGRHuoScPJB__JHASH__"),onOK:b,onCancel:c,children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:a?h._(/*BTDS*/"__JHASH__ZxkrtEGZBlp__JHASH__"):h._(/*BTDS*/"__JHASH__WO3znckpi_q__JHASH__")})})}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b=a.onParticipantDemote;a=a.onCancel;a=a===void 0?k:a;return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__q7pyNuL2xrU__JHASH__"),onOK:b,onCancel:a,children:j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:h._(/*BTDS*/"__JHASH__Cs0-otfwo5I__JHASH__")})})}n.displayName=n.name+" [from "+f.id+"]";g.CommunityAdminLimitPopup=a;g.CommunityAdminPromotePopup=b;g.CommunityAdminPromoteErrorPopup=e;g.CommunityAdminPromoteInvalidParticipantErrorPopup=l;g.CommunityAdminDemoteErrorPopup=m;g.CommunityAdminDemotePopup=n}),226); __d("WAWebCommunitySubgroupSuggestionsModals.react",["fbt","Promise","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react");function l(){d("WAWebModalManager").ModalManager.close()}function a(a){var b=a.onOK;return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__bUyLkVgXaQe__JHASH__"),testid:void 0,onOK:function(){l(),b()},okText:h._(/*BTDS*/"__JHASH__I7XCDv94EEY__JHASH__"),onCancel:l,children:h._(/*BTDS*/"__JHASH__gthJIatEhhh__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";function e(a,c){return new(i||(i=b("Promise")))(function(b){var e=a===0?h._(/*BTDS*/"__JHASH__sExoBOWYcCF__JHASH__"):h._(/*BTDS*/"__JHASH__7IBw4ylSSna__JHASH__",[h._param("available",a,[0]),h._plural(c,"pending_suggestions")]);d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__-VQbrT-Is3c__JHASH__"),okText:a!==0?h._(/*BTDS*/"__JHASH__yXbJOL6g-hO__JHASH__"):void 0,onOK:function(){b(!0),l()},onCancel:function(){b(!1),l()},children:e}))})}g.SubgroupSuggestionsApproveLimit=a;g.confirmCommunityFull=e}),226); __d("WAWebSettingsPopup.react",["fbt","WAWebConfirmPopup.react","WAWebModalManager","WAWebRadio.react","WAWebText.react","react"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={explanation:{marginBottom:"x1c436fg",$$css:!0}};function a(a){var b=a.options,c=a.explanation,e=a.onSelect,f=l(a.initialValue),g=f[0],i=f[1];f=function(){d("WAWebModalManager").ModalManager.close()};var j=function(){g!=null&&e(g)},n=function(a){i(a)};b=b.map(function(a){var b=a.value,c=a.label,e=a.secondaryLabel;a=a.testid;return k.jsx("li",{"data-testid":void 0,children:k.jsx(d("WAWebRadio.react").RadioWithLabel,{tabIndex:0,name:"settings",value:b,label:c,checked:b===g,onChange:function(){return n(b)},secondaryLabel:e,testid:void 0})},"setting-"+b)});return k.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{title:a.title,okText:h._(/*BTDS*/"__JHASH__FvWjqlz9Z8E__JHASH__"),onOK:j,onCancel:f,testid:void 0,children:[c!=null?k.jsx(d("WAWebText.react").WAWebTextMuted,{xstyle:m.explanation,children:c}):null,k.jsx("form",{children:k.jsx("ol",{children:b})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCommunitySettingsDrawer.react",["fbt","Promise","WANullthrows","WAWebCommunityGatingUtils","WAWebCommunitySubgroupSuggestionsModals.react","WAWebConfirmPopup.react","WAWebDrawer.react","WAWebDrawerBlock.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebGroupConstants","WAWebModalManager","WAWebNoop","WAWebSetPropertyGroupAction","WAWebSettingsPopup.react","WAWebText.react","WAWebUISpacing","asyncToGeneratorRuntime","react","stylex","useWAWebFocusOnMount","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k,l,m=l||c("react"),n=(k||(k=d("react"))).useMemo;function o(a){var e=a.settingType,f=d("useWAWebModelValues").useModelValues(a.chat,["id"]),g=d("useWAWebModelValues").useModelValues(a.groupMetadata,["allowNonAdminSubGroupCreation","subgroupSuggestions","joinedSubgroups","unjoinedSubgroups"]);a=n(function(){switch(e){case d("WAWebGroupConstants").GROUP_SETTING_TYPE.ALLOW_NON_ADMIN_SUB_GROUP_CREATION:return[{label:h._(/*BTDS*/"__JHASH__OK9fN0Hs8GM__JHASH__"),secondaryLabel:h._(/*BTDS*/"__JHASH__fsoqOfLX7UZ__JHASH__"),value:1},{label:h._(/*BTDS*/"__JHASH__R4ncmi5phMl__JHASH__"),secondaryLabel:h._(/*BTDS*/"__JHASH__dJ1K6bCi4xF__JHASH__"),value:0}];default:return[]}},[e]);var i=n(function(){var a=g.allowNonAdminSubGroupCreation;switch(e){case d("WAWebGroupConstants").GROUP_SETTING_TYPE.ALLOW_NON_ADMIN_SUB_GROUP_CREATION:return a===!0?1:0;default:return 0}},[e,g]),j=n(function(){switch(e){case d("WAWebGroupConstants").GROUP_SETTING_TYPE.ALLOW_NON_ADMIN_SUB_GROUP_CREATION:return h._(/*BTDS*/"__JHASH__DN8Qj0UV8zv__JHASH__");default:return""}},[e]),k=n(function(){return e===d("WAWebGroupConstants").GROUP_SETTING_TYPE.ALLOW_NON_ADMIN_SUB_GROUP_CREATION?h._(/*BTDS*/"__JHASH__i-S8QobZGUW__JHASH__",[h._implicitParam("=m1",m.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getMemberAddedGroupsUrl(),children:h._(/*BTDS*/"__JHASH__wQRE6BGZkwC__JHASH__")}))]):null},[e]),l=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){if(a===i){d("WAWebModalManager").ModalManager.close();return}var b=function(){d("WAWebSetPropertyGroupAction").setGroupProperty(f,e,a)["catch"](function(){return c("WAWebNoop")})};switch(e){case d("WAWebGroupConstants").GROUP_SETTING_TYPE.ALLOW_NON_ADMIN_SUB_GROUP_CREATION:var h=g.subgroupSuggestions.length;if(a===1&&h>0&&d("WAWebCommunityGatingUtils").memberSuggestedGroupsEnabled()){if(!(yield p()))break;var j=g.joinedSubgroups.length+g.unjoinedSubgroups.length;j=d("WAWebCommunityGatingUtils").getParentGroupLinkLimit()-j;if(h>j&&!(yield d("WAWebCommunitySubgroupSuggestionsModals.react").confirmCommunityFull(j,h)))break}b();break;default:b();break}d("WAWebModalManager").ModalManager.close()});return function(b){return a.apply(this,arguments)}}();return m.jsx(c("WAWebSettingsPopup.react"),{options:a,initialValue:i,title:j,onSelect:function(a){l(a)},explanation:k})}o.displayName=o.name+" [from "+f.id+"]";function p(){return new(i||(i=b("Promise")))(function(a){d("WAWebModalManager").ModalManager.open(m.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__r__FkbmvI_Q__JHASH__"),okText:h._(/*BTDS*/"__JHASH__yXbJOL6g-hO__JHASH__"),onOK:function(){return a(!0)},onCancel:function(){return a(!1)},children:h._(/*BTDS*/"__JHASH__OipR_GjbmY2__JHASH__")}))})}function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.chat,f=a.onBack;a=d("useWAWebModelValues").useOptionalModelValues(a.chat.groupMetadata,["allowNonAdminSubGroupCreation"]);var g=c("useWAWebFocusOnMount")();return m.jsxs(c("WAWebDrawer.react"),{ref:b,testid:void 0,children:[m.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__nkFA8MSdqjs__JHASH__"),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:f}),m.jsx("div",{role:"complementary",ref:g,tabIndex:-1,"aria-label":h._(/*BTDS*/"__JHASH__7ximS0E9pSf__JHASH__"),children:m.jsx(c("WAWebDrawerBody.react"),{children:m.jsx(c("WAWebDrawerSection.react"),{title:h._(/*BTDS*/"__JHASH__EIVAPmgkfrX__JHASH__"),titleXStyle:d("WAWebUISpacing").uiPadding.top20,children:m.jsx(q,{isEnabled:Boolean(a==null?void 0:a.allowNonAdminSubGroupCreation),onClick:function(){d("WAWebModalManager").ModalManager.open(m.jsx(o,{settingType:d("WAWebGroupConstants").GROUP_SETTING_TYPE.ALLOW_NON_ADMIN_SUB_GROUP_CREATION,chat:e,groupMetadata:c("WANullthrows")(e.groupMetadata)}),{transition:"modal"})}})})})})]})}a.displayName=a.name+" [from "+f.id+"]";function q(a){var b=a.isEnabled;a=a.onClick;var e=h._(/*BTDS*/"__JHASH__Fw1PhifYmDZ__JHASH__");return m.jsxs(c("WAWebDrawerBlock.react"),{onClick:a,multiline:!0,testid:void 0,ariaLabel:e,children:[m.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiMargin.bottom2),{children:m.jsx(d("WAWebText.react").WAWebTextTitle,{children:e})})),m.jsx(d("WAWebText.react").WAWebTextMuted,{testid:void 0,children:b?h._(/*BTDS*/"__JHASH__g3u9I25qb0B__JHASH__"):h._(/*BTDS*/"__JHASH__WZM5_2jy_pg__JHASH__")})]})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCommunitySubgroupSuggestionsUtils",[],(function(a,b,c,d,e,f){function a(a,b){return a.toString()+"-"+b.toString()}f.getSubgroupSuggestionId=a}),66); __d("WAWebCommunitySubgroupsLimitReachedPopup.react",["fbt","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.maxSubgroups;a=a.isCommunityCreation;a=a===void 0?!1:a;return a?j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:h._(/*BTDS*/"__JHASH__EfGUGueP85L__JHASH__",[h._plural(b-1,"max_subgroup_count")])}):j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,onOK:function(){return d("WAWebModalManager").ModalManager.close()},children:h._(/*BTDS*/"__JHASH__RhPPJebD2ys__JHASH__",[h._plural(b-1,"max_subgroups")])})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebCommunitySubjectChangePopups.react",["fbt","WALogger","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","WAWebSetSubjectGroupAction","fbs","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["community_half_success_error_popup:onSetSubject failed"]);j=function(){return a};return a}var k=i||c("react");function l(a){var b=a.contact.name;d("WAWebSetSubjectGroupAction").setGroupSubject(a,b)["catch"](function(a){d("WALogger").WARN(j()).devConsole(a)});d("WAWebModalManager").ModalManager.close()}function m(){return c("fbs")._(/*BTDS*/"__JHASH__Zd97evxiUe5__JHASH__")}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.parentChat,e=a.onOK;a=m();var f=h._(/*BTDS*/"__JHASH__HHDSDne5ZCh__JHASH__");return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:a,onCancel:function(){d("WAWebModalManager").ModalManager.close()},onOK:function(){l(b),e==null?void 0:e()},okText:c("WAWebFbtCommon")("Try again"),children:f})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.parentChat;a=h._(/*BTDS*/"__JHASH__YAljEFRCX4J__JHASH__");var e=h._(/*BTDS*/"__JHASH__0Xazf0TRyeN__JHASH__");return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:a,onCancel:function(){d("WAWebModalManager").ModalManager.close()},onOK:function(){return l(b)},okText:c("WAWebFbtCommon")("Try again"),children:e})}b.displayName=b.name+" [from "+f.id+"]";g.getCommunitySubjectSyncingIssueTitle=m;g.CommunitySubjectSyncingIssuePopup=a;g.CommunitySubjectHalfSuccessErrorPopup=b}),226); __d("WAWebSetSubjectGroupAction",["fbt","Promise","WAFilteredCatch","WALogger","WAWebActionToast.react","WAWebBackendErrors","WAWebCommunitySubjectChangePopups.react","WAWebDBUpdateContactTable","WAWebGroupModifyInfoJob","WAWebGroupType","WAWebMiscErrors","WAWebModalManager","WAWebNoop","WAWebStateUtils","WAWebToastManager","react"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["models:chat:setSubject dropped"]);k=function(){return a};return a}var l=j||c("react");function a(a,b){b===void 0&&(b="");return m(d("WAWebStateUtils").unproxy(a),b)}function m(a,e,f){var g;f===void 0&&(f=d("WAWebActionToast.react").genId());var j=e.trim();if(!j)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());if(((e=a.groupMetadata)==null?void 0:e.groupType)!==d("WAWebGroupType").GroupType.COMMUNITY&&j===a.contact.name)return(i||(i=b("Promise"))).reject(new(d("WAWebMiscErrors").ActionError)());e=d("WAWebGroupModifyInfoJob").setGroupSubject(a.id,j);var n=a.contact.name;((g=a.groupMetadata)==null?void 0:g.groupType)===d("WAWebGroupType").GroupType.COMMUNITY?g=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__-yZgUsQFKH1__JHASH__")):g=new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__S9dfuKVfIqP__JHASH__"));var o=h._(/*BTDS*/"__JHASH__NfgVZB5Vr02__JHASH__"),p=e.then(function(){var b;return((b=a.groupMetadata)==null?void 0:b.groupType)===d("WAWebGroupType").GroupType.COMMUNITY?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__5vDLFdfKCuk__JHASH__",[h._param("community",j)])):new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__b-ci-Q6w8_7__JHASH__",[h._param("subject",j)]),{actionText:h._(/*BTDS*/"__JHASH__mpD8GydGn1Q__JHASH__"),actionHandler:function(){return m(a,n,f)}})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(b){var c;if(((c=a.groupMetadata)==null?void 0:c.groupType)===d("WAWebGroupType").GroupType.COMMUNITY)if(b.status===530){d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebCommunitySubjectChangePopups.react").CommunitySubjectHalfSuccessErrorPopup,{parentChat:a}));return}else if(b.status>=400)return new(d("WAWebActionToast.react").ActionType)(o);if(b.status>=400)return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__-O6cTG0HPgf__JHASH__"))}))["catch"](function(b){d("WALogger").WARN(k()).devConsole(b);return((b=a.groupMetadata)==null?void 0:b.groupType)===d("WAWebGroupType").GroupType.COMMUNITY?new(d("WAWebActionToast.react").ActionType)(o):new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__-O6cTG0HPgf__JHASH__"),{actionText:h._(/*BTDS*/"__JHASH__TyKOR8KAtP1__JHASH__"),actionHandler:function(){return m(a,j,f)}})});d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebActionToast.react").ActionToast,{id:f,initialAction:g,pendingAction:p}));return e.then(function(){var b={name:j};return d("WAWebDBUpdateContactTable").updateContactTable(a.contact.id,b).then(function(){a.contact.set(b)})})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,c("WAWebNoop")))}g.setGroupSubject=a}),226); __d("WAWebCopyUtils",["WAWebBizCtwaAGMUtils","WAWebCopyPasteClipboard","WAWebCopyToClipboard","WAWebFrontendMsgGetters","WAWebMediaInMemoryBlobCache","WAWebMsgActionCapability","WAWebMsgType"],(function(a,b,c,d,e,f,g){function a(a){var b;if(!d("WAWebMsgActionCapability").canWamoSubMsgBeSharedByUser(a,d("WAWebFrontendMsgGetters").getChat(a)))return!1;if(a.type===d("WAWebMsgType").MSG_TYPE.CHAT||d("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessageEnabled((b=a.ctwaContext)==null?void 0:b.sourceApp,a.type,(b=a.ctwaContext)==null?void 0:b.automatedGreetingMessageShown))return!0;return a.type===d("WAWebMsgType").MSG_TYPE.IMAGE&&!a.mediaData.isViewOnce&&d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(a.filehash)!=null&&d("WAWebCopyToClipboard").supportsCopyImageToClipboard()?!0:!1}function b(){var a=window.getSelection();return(a==null?void 0:a.toString())!==""}function h(a){a.body!=null&&void d("WAWebCopyToClipboard").copyTextToClipboard(a.body)}function i(a){a=d("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(a.filehash);a!=null&&void d("WAWebCopyToClipboard").copyImageToClipboard(a)}function c(a){var b;(a.type===d("WAWebMsgType").MSG_TYPE.CHAT||d("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessageEnabled((b=a.ctwaContext)==null?void 0:b.sourceApp,a.type,(b=a.ctwaContext)==null?void 0:b.automatedGreetingMessageShown))&&h(a);a.type===d("WAWebMsgType").MSG_TYPE.IMAGE&&i(a)}function e(a){var b=window.getSelection();if(b!=null){a=d("WAWebCopyPasteClipboard").Clipboard.fromSelection(a,b);void d("WAWebCopyToClipboard").copyTextToClipboard(a.toPlainString())}}g.canCopyMessage=a;g.canCopySelection=b;g.copyMessageToClipboard=c;g.copySelection=e}),98); __d("WAWebSubgroupSuggestionCreateJob",["Promise","WALogger","WASmaxGroupsCreateSubGroupSuggestionRPC","WAWebBackendErrors","WAWebWidFactory","WAWebWidToJid","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["createNewGroupSubgroupSuggestion failed: ",":",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["createExistingGroupSubgroupSuggestion failed: ",":",""]);j=function(){return a};return a}function a(a,b){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){function e(a){var c=a.code;a=a.text;d("WALogger").LOG(j(),c,a);return(h||(h=b("Promise"))).reject(new(d("WAWebBackendErrors").ServerStatusCodeError)(Number(c),a))}a=(yield d("WASmaxGroupsCreateSubGroupSuggestionRPC").sendCreateSubGroupSuggestionRPC({iqTo:d("WAWebWidToJid").widToGroupJid(a),suggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroupArgs:{createSubGroupSuggestionSuggestionForExistingGroups:{groupArgs:c.map(function(a){return{groupJid:d("WAWebWidToJid").widToGroupJid(a),hasHiddenGroup:!1}})}}}));switch(a.name){case"CreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess":return a.value.subGroupSuggestionGroup.map(function(a){return{groupJid:a.jid,error:(a=a.subGroupNotAuthorizedOrNotExistOrConflictOrSuggestionNotAllowedOrResourceLimitOrBadRequestOrServerErrorMixinGroup)==null?void 0:a.value.error}});case"CreateSubGroupSuggestionResponseClientError":c=a.value.errorCreateSubGroupSuggestionErrors;return e(c.value);case"CreateSubGroupSuggestionResponseNewGroupSuggestionSuccess":return e({code:500,text:"Received invalid new group success response for create existing group subgroup suggestion"});default:a.name;return e(a.value.errorServerErrors.value)}});return k.apply(this,arguments)}function c(a,b,c,d,e,f,g){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e,f,g,j,k){function l(a){var c=a.code;a=a.text;d("WALogger").LOG(i(),c,a);return(h||(h=b("Promise"))).reject(new(d("WAWebBackendErrors").ServerStatusCodeError)(Number(c),a))}g=(yield d("WASmaxGroupsCreateSubGroupSuggestionRPC").sendCreateSubGroupSuggestionRPC({iqTo:d("WAWebWidToJid").widToGroupJid(a),suggestionForCreateSubGroupSuggestionNewGroupOrCreateSubGroupSuggestionExistingGroupsMixinGroupArgs:{createSubGroupSuggestionSuggestionForNewGroup:{subjectElementValue:c,hasAnnouncement:!g,hasLocked:!f,hasHiddenGroup:!1,membershipApprovalModeArgs:{groupJoinMembershipApprovalModeEnabledOrDisabledMixinGroupArgs:j===!1?{isGroupJoinMembershipApprovalModeDisabled:!0}:{isGroupJoinMembershipApprovalModeEnabled:!0}},groupMemberAddModeMixinArgs:{adminOrAllMembersOrUnknownAddModeMixinGroupArgs:k===!1?{isAdminAddMode:!0}:{isAllMembersAddMode:!0}},descriptionArgs:e!=null?{bodyElementValue:e}:void 0}}}));switch(g.name){case"CreateSubGroupSuggestionResponseNewGroupSuggestionSuccess":j=((f=g.value.subGroupSuggestionDescription)==null?void 0:f.error)?void 0:e;return{id:d("WAWebWidFactory").createWid(g.value.subGroupSuggestionJid),owner:d("WAWebWidFactory").createWid(g.value.subGroupSuggestionCreator),t:g.value.subGroupSuggestionCreation,parentGroupId:a,subject:c,desc:j,isExistingGroup:!1,participantCount:void 0,hiddenSubgroup:void 0};case"CreateSubGroupSuggestionResponseClientError":k=g.value.errorCreateSubGroupSuggestionErrors;return l(k.value);case"CreateSubGroupSuggestionResponseExistingGroupsSuggestionSuccess":return l({code:500,text:"Received invalid existing group success response for create new subgroup suggestion"});default:g.name;return l(g.value.errorServerErrors.value)}});return l.apply(this,arguments)}g.createExistingGroupSubgroupSuggestion=a;g.createNewGroupSubgroupSuggestion=c}),98); __d("WAWebCreateSubgroupSuggestionAction",["fbt","WAFilteredCatch","WALogger","WAWebActionToast.react","WAWebApiSubgroupSuggestionStore","WAWebBackendErrors","WAWebCommunitySubgroupSuggestionsUtils","WAWebStateUtils","WAWebSubgroupSuggestionCreateJob","WAWebToastManager","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){var i;function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["failed to add subgroup suggestion to table"]);j=function(){return a};return a}var k=i||c("react"),l=function(a){a===void 0&&(a=1);return{initialAction:new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__FsZgTnyq0d___JHASH__",[h._plural(a)])),exitedAction:new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__m--zpiVw6lt__JHASH__",[h._plural(a)])),defaultErrorAction:new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__0XcArtFZnkM__JHASH__",[h._plural(a)]))}},m=function(a,b){switch(a.status){case 406:return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__qeToBQiBfr0__JHASH__"));case 419:b();return new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH___TEiw1C8EiF__JHASH__"));default:b();return l().defaultErrorAction}};function a(a,b,c,d){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){var f=l(b.length),g=f.initialAction,i=f.exitedAction,j=f.defaultErrorAction;f=d("WAWebSubgroupSuggestionCreateJob").createExistingGroupSubgroupSuggestion(a,b);a=f.then(function(a){a=a.filter(function(a){return a.error==null}).length;if(a===0){c();return j}e();return a!==b.length?new(d("WAWebActionToast.react").ActionType)(h._(/*BTDS*/"__JHASH__7BQSqGAivHV__JHASH__",[h._param("succeeded-suggestions",a,[0]),h._param("total-suggestions",b.length,[0]),h._plural(a)])):i})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(a){return m(a,c)}))["catch"](function(){c();return j});d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebActionToast.react").ActionToast,{initialAction:g,pendingAction:a}));yield f});return n.apply(this,arguments)}function e(a,b,c,d){return o.apply(this,arguments)}function o(){o=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c,e){var f=d("WAWebStateUtils").unproxy(a);a=l();var g=a.initialAction,h=a.exitedAction,i=a.defaultErrorAction;a=d("WAWebSubgroupSuggestionCreateJob").createNewGroupSubgroupSuggestion(f.id,b.subject,b.description,b.restrict,b.announce,b.membershipApprovalMode,b.memberAddMode);b=a.then(function(a){void p(f,a);e==null?void 0:e();return h})["catch"](d("WAFilteredCatch").filteredCatch(d("WAWebBackendErrors").ServerStatusCodeError,function(a){return m(a,c)}))["catch"](function(){c();return i});d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebActionToast.react").ActionToast,{initialAction:g,pendingAction:b}));yield a});return o.apply(this,arguments)}function p(a,b){return q.apply(this,arguments)}function q(){q=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){try{yield d("WAWebApiSubgroupSuggestionStore").addSubgroupSuggestions(a.id,[b]);(a=a.groupMetadata)==null?void 0:(a=a.subgroupSuggestions)==null?void 0:a.add(babelHelpers["extends"]({},b,{id:d("WAWebCommunitySubgroupSuggestionsUtils").getSubgroupSuggestionId(b.id,b.owner),groupId:b.id}))}catch(a){d("WALogger").ERROR(j()).verbose().devConsole(a)}});return q.apply(this,arguments)}g.createExistingGroupsSubgroupSuggestionsAction=a;g.createNewGroupSubgroupSuggestionAction=e}),226); __d("WAWebDesktopUpsellCallingPopover.react",["WAWebButton.react","WAWebDesktopUpsellCommonStrings","WAWebFlex.react","WAWebText.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react"),j={container:{minWidth:"x1h80ny7",$$css:!0},textContainer:{maxWidth:"x1jkqq1h",$$css:!0},buttonContainer:{height:"x5yr21d",$$css:!0}};function a(a){var b,c,e=a.body,f=a.onClick;a=a.title;return i.jsxs((b=d("WAWebFlex.react")).FlexRow,{xstyle:[j.container,(c=d("WAWebUISpacing")).uiPadding.horiz20,c.uiPadding.bottom14,c.uiPadding.top12],align:"center",justify:"all",children:[i.jsxs(b.FlexColumn,{xstyle:j.textContainer,children:[i.jsx(b.FlexItem,{children:i.jsx(d("WAWebText.react").WAWebTextTitle,{children:a})}),i.jsx(b.FlexItem,{xstyle:c.uiMargin.top2,children:i.jsx(d("WAWebText.react").WAWebTextMuted,{children:e})})]}),i.jsx(b.FlexColumn,{xstyle:j.buttonContainer,align:"center",justify:"center",children:i.jsx(b.FlexItem,{xstyle:c.uiMargin.start16,children:i.jsx(d("WAWebButton.react").WAWebButtonPrimary,{onClick:f,children:d("WAWebDesktopUpsellCommonStrings").getDesktopAppDownloadBtnLabel()})})})]})}a.displayName=a.name+" [from "+f.id+"]";g.WAWebDesktopUpsellCallingPopover=a}),98); __d("WAWebDesktopUpsellCallingUnavailablePopover.react",["fbt","WAWebDesktopUpsellCallingPopover.react","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebWamEnumWebcNativeUpsellCtaEventType","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWebcNativeUpsellCtaWamEvent","react","useWAWebDesktopUpsellWamImpression","useWAWebOnUnmount"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){a=a.userDesktopOs;var b=d("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.CALL_BTN_MODAL_2;d("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:!0,source:b});c("useWAWebOnUnmount")(function(){new(d("WAWebWebcNativeUpsellCtaWamEvent").WebcNativeUpsellCtaWamEvent)({webcNativeUpsellCtaEventType:d("WAWebWamEnumWebcNativeUpsellCtaEventType").WEBC_NATIVE_UPSELL_CTA_EVENT_TYPE.CTA_DISMISS,webcNativeUpsellCtaSource:b}).commit()});return j.jsx(d("WAWebDesktopUpsellCallingPopover.react").WAWebDesktopUpsellCallingPopover,{title:k(a),body:a===d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS?h._(/*BTDS*/"__JHASH__ELcfZfzrNUW__JHASH__"):h._(/*BTDS*/"__JHASH__Rx_sntM1NHc__JHASH__"),onClick:function(){d("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:b})}})}a.displayName=a.name+" [from "+f.id+"]";function k(a){return a===d("WAWebDesktopUpsellUtils").UserDesktopOs.WINDOWS?h._(/*BTDS*/"__JHASH__OcHC7PsDGpP__JHASH__"):h._(/*BTDS*/"__JHASH__ofHZPK8jxoC__JHASH__")}k.displayName=k.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebDisappearingLogoIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="disappearing-logo";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=112;m=112;(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 112 112",height:l,width:m,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsxs("g",{fill:"#06cf9c",children:[j.jsx("path",{clipRule:"evenodd",d:"m56 112c30.9279 0 56-25.0721 56-56s-25.0721-56-56-56-56 25.0721-56 56 25.0721 56 56 56zm-.0005-83.0671c-14.9485 0-27.0666 12.1181-27.0666 27.0666s12.1181 27.0667 27.0666 27.0667c.1482 0 .2961-.0012.4437-.0036 1.6607-.0267 2.9853-1.3947 2.9586-3.0554-.0268-1.6607-1.3947-2.9854-3.0555-2.9586-.1153.0018-.2309.0028-.3468.0028-11.6266 0-21.0518-9.4253-21.0518-21.0519s9.4252-21.0518 21.0518-21.0518c.1159 0 .2315.0009.3468.0028 1.6608.0267 3.0287-1.2979 3.0555-2.9586.0267-1.6608-1.2979-3.0287-2.9586-3.0555-.1476-.0023-.2955-.0035-.4437-.0035zm13.1524 3.4053c-1.4511-.8081-3.2826-.2869-4.0907 1.1642-.8082 1.4511-.2869 3.2825 1.1641 4.0907.2008.1118.3995.2268.5962.3449 1.4239.8552 3.2714.3943 4.1267-1.0296.8552-1.4238.3942-3.2713-1.0296-4.1266-.2529-.1519-.5085-.2998-.7667-.4436zm10.0653 9.7423c-.8552-1.4239-2.7027-1.8848-4.1266-1.0296-1.4238.8552-1.8848 2.7028-1.0295 4.1266.1181.1967.2331.3955.3449.5962.8081 1.4511 2.6396 1.9723 4.0907 1.1642s1.9723-2.6396 1.1642-4.0907c-.1439-.2582-.2918-.5138-.4437-.7667zm3.8454 13.4754c-.0267-1.6608-1.3947-2.9854-3.0554-2.9586-1.6607.0267-2.9853 1.3947-2.9586 3.0554.0019.1154.0028.231.0028.3468 0 .1159-.0009.2315-.0028.3468-.0267 1.6608 1.2979 3.0287 2.9586 3.0555 1.6607.0267 3.0287-1.2979 3.0554-2.9586.0024-.1476.0036-.2955.0036-.4437 0-.1481-.0012-.296-.0036-.4436zm-3.4017 13.5959c.8081-1.451.2869-3.2825-1.1642-4.0906-1.4511-.8082-3.2826-.287-4.0907 1.1641-.1118.2008-.2268.3995-.3449.5962-.8553 1.4239-.3943 3.2714 1.0295 4.1266 1.4239.8553 3.2714.3943 4.1266-1.0295.1519-.2529.2998-.5085.4437-.7668zm-9.7423 10.0654c1.4238-.8552 1.8848-2.7027 1.0296-4.1266-.8553-1.4238-2.7028-1.8848-4.1267-1.0296-.1967.1182-.3954.2332-.5962.345-1.451.8081-1.9723 2.6396-1.1641 4.0907.8081 1.4511 2.6396 1.9723 4.0907 1.1641.2582-.1438.5138-.2917.7667-.4436zm-3.2446-35.2261c.6903-.5177 1.6561-.449 2.2663.1611.6101.6101.6787 1.576.161 2.2662l-9.3605 12.4806c-1.3177 1.757-3.886 1.9395-5.4389.3866l-.4951-.495c-1.5529-1.553-1.3704-4.1213.3866-5.439z",fillOpacity:.15,fillRule:"evenodd"}),j.jsx("path",{d:"m55.9995 28.9329c-14.9485 0-27.0666 12.1181-27.0666 27.0666s12.1181 27.0667 27.0666 27.0667c.1482 0 .2961-.0012.4437-.0036 1.6607-.0267 2.9853-1.3947 2.9586-3.0554-.0268-1.6607-1.3947-2.9854-3.0555-2.9586-.1153.0018-.2309.0028-.3468.0028-11.6266 0-21.0518-9.4253-21.0518-21.0519s9.4252-21.0518 21.0518-21.0518c.1159 0 .2315.0009.3468.0028 1.6608.0267 3.0287-1.2979 3.0555-2.9586.0267-1.6607-1.2979-3.0287-2.9586-3.0555-.1476-.0023-.2955-.0035-.4437-.0035z"}),j.jsx("path",{d:"m69.1519 32.3382c-1.4511-.8081-3.2826-.2869-4.0907 1.1642-.8082 1.4511-.2869 3.2825 1.1641 4.0907.2008.1118.3995.2268.5962.3449 1.4239.8552 3.2714.3943 4.1266-1.0296.8553-1.4238.3943-3.2713-1.0295-4.1266-.2529-.1519-.5085-.2998-.7667-.4436z"}),j.jsx("path",{d:"m75.0906 41.0509c1.4239-.8552 3.2714-.3943 4.1266 1.0296.1519.2529.2998.5085.4436.7667.8082 1.4511.287 3.2826-1.1641 4.0907s-3.2826.2869-4.0907-1.1642c-.1118-.2007-.2268-.3995-.345-.5962-.8552-1.4238-.3942-3.2713 1.0296-4.1266z"}),j.jsx("path",{d:"m83.0626 55.5559c-.0267-1.6608-1.3947-2.9854-3.0554-2.9586-1.6607.0267-2.9854 1.3947-2.9586 3.0554.0018.1154.0028.231.0028.3468 0 .1159-.001.2315-.0028.3468-.0268 1.6608 1.2979 3.0287 2.9586 3.0555 1.6607.0267 3.0287-1.2979 3.0554-2.9586.0024-.1476.0036-.2955.0036-.4437 0-.1481-.0012-.296-.0036-.4436z"}),j.jsx("path",{d:"m78.4967 65.0612c1.4511.8081 1.9723 2.6396 1.1641 4.0907-.1438.2582-.2917.5138-.4436.7667-.8552 1.4238-2.7027 1.8848-4.1266 1.0295-1.4238-.8552-1.8848-2.7027-1.0296-4.1266.1182-.1967.2332-.3954.345-.5962.8081-1.451 2.6396-1.9723 4.0907-1.1641z"}),j.jsx("path",{d:"m69.9186 79.2172c1.4238-.8552 1.8848-2.7027 1.0295-4.1266-.8552-1.4238-2.7027-1.8848-4.1266-1.0296-.1967.1182-.3954.2332-.5962.345-1.451.8081-1.9723 2.6396-1.1641 4.0907.8081 1.4511 2.6396 1.9723 4.0907 1.1641.2582-.1438.5138-.2917.7667-.4436z"}),j.jsx("path",{d:"m68.9402 44.1522c-.6101-.6101-1.5759-.6788-2.2662-.1611l-12.4806 9.3605c-1.757 1.3177-1.9395 3.886-.3866 5.439l.495.495c1.553 1.5529 4.1213 1.3704 5.439-.3866l9.3605-12.4806c.5177-.6902.449-1.6561-.1611-2.2662z"})]})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.DisappearingLogoIcon=a}),98); __d("WAWebEphemeralKicNux.react",["fbt","WAWebChatThreadLogging","WAWebConfirmPopup.react","WAWebDisappearingLogoIcon.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebHandIcon.react","WAWebKeepInChatIcon.react","WAWebKeepInChatNuxWamEvent","WAWebModalManager","WAWebNux","WAWebText_DONOTUSE.react","WAWebTimerIcon.react","WAWebWamEnumKicNuxActionNameType","WAWebWamEnumTriggerType","asyncToGeneratorRuntime","react","useWAWebNux"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useEffect,m={header:{fontSize:"x1603h9y",fontWeight:"xk50ysn",lineHeight:"x1u7k74",marginTop:"xqui205",textAlign:"x2b8uid",color:"xw2npq5",$$css:!0},subtitle:{marginTop:"xw7yly9",fontSize:"x1f6kntn",textAlign:"x2b8uid",marginBottom:"xvl6max",$$css:!0},icon:{marginEnd:"xktsk01",color:"x1xhoq4m",$$css:!0},container:{position:"x1n2onr6",display:"x78zum5",alignItems:"x6s0dn4",marginTop:"x1sy10c2",color:"xhgddhk",fontSize:"x1nxh6w3",$$css:!0},body:{marginTop:"x1rdy4ex",fontSize:"x1nxh6w3",color:"x1xhoq4m",$$css:!0}};function a(a){var e=a.chat,f=a.fromMe,g=a.onOk;a=c("useWAWebNux")(d("WAWebNux").NUX.EPHEMERAL);var i=a[1];a=c("useWAWebNux")(d("WAWebNux").NUX.KEEP_IN_CHAT);var j=a[1];a=function(){i(),j(),d("WAWebModalManager").ModalManager.close(),g&&g()};var o=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){i();j();var a=new(d("WAWebKeepInChatNuxWamEvent").KeepInChatNuxWamEvent)({kicNuxActionName:d("WAWebWamEnumKicNuxActionNameType").KIC_NUX_ACTION_NAME_TYPE.KIC_NUX_LEARN_MORE_TAP,trigger:d("WAWebWamEnumTriggerType").TRIGGER_TYPE.CHAT_ENTRY});e&&a.set({chatEphemeralityDuration:e.ephemeralDuration,threadId:yield d("WAWebChatThreadLogging").getChatThreadID(e.id.toJid())});a.commit();d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getEphemeralFaqUrl())});return function(){return a.apply(this,arguments)}}();l(function(){var a=new(d("WAWebKeepInChatNuxWamEvent").KeepInChatNuxWamEvent)({kicNuxActionName:d("WAWebWamEnumKicNuxActionNameType").KIC_NUX_ACTION_NAME_TYPE.FIRST_DM_NUX_IMPRESSION,trigger:d("WAWebWamEnumTriggerType").TRIGGER_TYPE.CHAT_ENTRY});if(e==null){a.commit();return}d("WAWebChatThreadLogging").getChatThreadID(e.id.toJid()).then(function(b){a.set({chatEphemeralityDuration:e.ephemeralDuration,threadId:b})})["finally"](function(){a.commit()})},[]);f=f?h._(/*BTDS*/"__JHASH__rDS5NZTkvPn__JHASH__"):h._(/*BTDS*/"__JHASH__FahkGdRrCGX__JHASH__");return k.jsxs(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,onOK:a,onCancel:o,cancelText:h._(/*BTDS*/"__JHASH__5kXLqSeB0iP__JHASH__"),children:[k.jsx(d("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",children:k.jsx(c("WAWebFlexItem.react"),{children:k.jsx(d("WAWebDisappearingLogoIcon.react").DisappearingLogoIcon,{width:112,height:112})})}),k.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{xstyle:m.header,children:f}),k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:m.subtitle,children:h._(/*BTDS*/"__JHASH__lugUfnF0V3m__JHASH__")}),k.jsx(n,{Icon:d("WAWebTimerIcon.react").TimerIcon,size:18,children:h._(/*BTDS*/"__JHASH__kzafnZRiFtO__JHASH__")}),k.jsx(n,{Icon:d("WAWebKeepInChatIcon.react").KeepInChatIcon,children:h._(/*BTDS*/"__JHASH__6wdjlg4YnCs__JHASH__")}),k.jsx(n,{Icon:d("WAWebHandIcon.react").HandIcon,children:h._(/*BTDS*/"__JHASH__lQMDJIZw4fF__JHASH__")})]})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.Icon,c=a.children;a=a.size;return k.jsxs(d("WAWebText_DONOTUSE.react").TextDiv,{xstyle:m.container,children:[k.jsx(b,{"aria-hidden":!0,displayInline:!0,width:(b=a)!=null?b:24,height:(b=a)!=null?b:24,xstyle:m.icon}),k.jsx(d("WAWebText_DONOTUSE.react").TextDiv,{xstyle:m.body,children:k.jsx(d("WAWebText_DONOTUSE.react").TextSpan,{children:c})})]})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebEphemeralL10N",["fbt","$InternalEnum","WALogger","WAWebL10N","WAWebMiscGatingUtils"],(function(a,b,c,d,e,f,g,h){function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["getEphemeralOnDaysString is given type "," and name ",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["getEphemeralOnHoursString is given type "," and name ",""]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["getEphemeralOnMinutesString is given type "," and name ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["getEphemeralOnSecondsString is given type "," and name ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["getEphemeralOffString is given invalid type ",""]);m=function(){return a};return a}function n(){var a=babelHelpers.taggedTemplateLiteralLoose(["getEphemeralString "," is given invalid duration ",""]);n=function(){return a};return a}var o=b("$InternalEnum").Mirrored(["SettingChangeByOthers","SettingChangeByYou","SettingChangeByUnknown","SettingChangeByOthersAsAdmin","SettingChangeByYouAsAdmin","SettingChangeByUnknownAsAdmin","Duration","OutOfSyncInfo","Explanation","ModeChangeByOthers","ModeChangeByYou"]);function a(a,b){a===void 0&&(a=0);return x(o.SettingChangeByOthers,a,b)}function e(a){a===void 0&&(a=0);return x(o.SettingChangeByYou,a)}function f(a){a===void 0&&(a=0);return x(o.SettingChangeByUnknown,a)}function p(a,b){a===void 0&&(a=0);return x(o.SettingChangeByOthersAsAdmin,a,b)}function q(a){a===void 0&&(a=0);return x(o.SettingChangeByYouAsAdmin,a)}function r(a){a===void 0&&(a=0);return x(o.SettingChangeByUnknownAsAdmin,a)}function s(a){a===void 0&&(a=0);return x(o.Duration,a)}function t(a){a===void 0&&(a=0);return x(o.OutOfSyncInfo,a)}function u(a){a===void 0&&(a=0);return x(o.Explanation,a)}function v(a,b){a===void 0&&(a=0);return x(o.ModeChangeByOthers,a,b)}function w(a){a===void 0&&(a=0);return x(o.ModeChangeByYou,a)}function x(a,b,c){b===void 0&&(b=0);if(b<0){d("WALogger").ERROR(n(),a,b).sendLogs("invalid-duration");return""}if(b===0)return y(a,c);else if(b<=60)return z(a,b,c);else if(b<=60*60){var e=Math.floor(b/60);return A(a,e,c)}else if(b<=24*60*60){e=Math.floor(b/60/60);return B(a,e,c)}e=Math.floor(b/24/60/60);return C(a,e,c)}function y(a,b){if(a===o.SettingChangeByOthers&&b!=null)return h._(/*BTDS*/"__JHASH__nWZlxduv6Rb__JHASH__",[h._param("name",b)]);else if(a===o.SettingChangeByYou)return h._(/*BTDS*/"__JHASH__IuerFUqbQKT__JHASH__");else if(a===o.SettingChangeByUnknown)return h._(/*BTDS*/"__JHASH__4SllGGYGiKz__JHASH__");else if(a===o.SettingChangeByOthersAsAdmin&&b!=null)return h._(/*BTDS*/"__JHASH__n0nzEM1UvWJ__JHASH__",[h._param("name",b)]);else if(a===o.SettingChangeByYouAsAdmin)return h._(/*BTDS*/"__JHASH__cHRBuRLCcOr__JHASH__");else if(a===o.SettingChangeByUnknownAsAdmin)return h._(/*BTDS*/"__JHASH__11T8f87kUOX__JHASH__");else if(a===o.Duration)return h._(/*BTDS*/"__JHASH__oQybUFYxCdX__JHASH__");else if(a===o.OutOfSyncInfo)return h._(/*BTDS*/"__JHASH__74pivzfiph9__JHASH__");d("WALogger").ERROR(m(),a).sendLogs("invalid-ephemeral-string-type");return""}function z(a,b,e){var f=d("WAWebMiscGatingUtils").isDefaultDisappearingMessagesEnabled(),g=c("WAWebL10N").n(b);if(a===o.SettingChangeByOthers&&e!=null)return h._(/*BTDS*/"__JHASH__aE69lUNbHsv__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYou)return h._(/*BTDS*/"__JHASH__EjZ4fMDtNJ6__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknown)return h._(/*BTDS*/"__JHASH__NkUcY1YNdcx__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByOthersAsAdmin&&e!=null)return h._(/*BTDS*/"__JHASH__TZcmC5WESNE__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYouAsAdmin)return h._(/*BTDS*/"__JHASH__DPUdpin5OEq__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknownAsAdmin)return h._(/*BTDS*/"__JHASH__2KsvtktxsX4__JHASH__",[h._plural(b,"number")]);else if(a===o.Duration)return h._(/*BTDS*/"__JHASH__7T2GHo_aFpg__JHASH__",[h._plural(b,"number")]);else if(a===o.OutOfSyncInfo)return h._(/*BTDS*/"__JHASH__LIR2WT6YAo1__JHASH__",[h._plural(b,"number")]);else if(a===o.Explanation)return h._(/*BTDS*/"__JHASH__eUWi0x7R8dj__JHASH__",[h._plural(b,"number")]);else if(a===o.ModeChangeByOthers)return f?h._(/*BTDS*/"__JHASH__uzFVw5vZzVs__JHASH__",[h._plural(b,"number"),h._param("name",e)]):h._(/*BTDS*/"__JHASH__zxANc7jeaOc__JHASH__",[h._plural(b),h._param("name",e),h._param("number",g)]);else if(a===o.ModeChangeByYou&&f)return h._(/*BTDS*/"__JHASH__QdamrNTU-jZ__JHASH__",[h._plural(b,"number")]);d("WALogger").ERROR(l(),a,e).sendLogs("invalid-ephemeral-string-type");return""}function A(a,b,e){var f=d("WAWebMiscGatingUtils").isDefaultDisappearingMessagesEnabled(),g=c("WAWebL10N").n(b);if(a===o.SettingChangeByOthers&&e!=null)return h._(/*BTDS*/"__JHASH__nVZ3mnLo7SU__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYou)return h._(/*BTDS*/"__JHASH__6eBDF6I9Pja__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknown)return h._(/*BTDS*/"__JHASH__clo-toB4his__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByOthersAsAdmin&&e!=null)return h._(/*BTDS*/"__JHASH__p6OTnkuH_vw__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYouAsAdmin)return h._(/*BTDS*/"__JHASH__yQAnsvI1e1O__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknownAsAdmin)return h._(/*BTDS*/"__JHASH__N93TvyU6cHW__JHASH__",[h._plural(b,"number")]);else if(a===o.Duration)return h._(/*BTDS*/"__JHASH__rM7bgqtxc3G__JHASH__",[h._plural(b,"number")]);else if(a===o.OutOfSyncInfo)return h._(/*BTDS*/"__JHASH__Ef96zWAEUft__JHASH__",[h._plural(b,"number")]);else if(a===o.Explanation)return h._(/*BTDS*/"__JHASH__ed9YpqIjaZF__JHASH__",[h._plural(b,"number")]);else if(a===o.ModeChangeByOthers)return f?h._(/*BTDS*/"__JHASH__Rj3sU3v4rhj__JHASH__",[h._plural(b,"number"),h._param("name",e)]):h._(/*BTDS*/"__JHASH__VelxJeFo9cH__JHASH__",[h._plural(b),h._param("name",e),h._param("number",g)]);else if(a===o.ModeChangeByYou&&f)return h._(/*BTDS*/"__JHASH__L4IT_k3QvSX__JHASH__",[h._plural(b,"number")]);d("WALogger").ERROR(k(),a,e).sendLogs("invalid-ephemeral-string-type");return""}function B(a,b,e){var f=d("WAWebMiscGatingUtils").isDefaultDisappearingMessagesEnabled(),g=c("WAWebL10N").n(b);if(a===o.SettingChangeByOthers&&e!=null)return h._(/*BTDS*/"__JHASH__k4GZyZdIS4X__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYou)return h._(/*BTDS*/"__JHASH__zub1wUAXqB3__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknown)return h._(/*BTDS*/"__JHASH__Qqu7Ch_LrE3__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByOthersAsAdmin&&e!=null)return h._(/*BTDS*/"__JHASH__lb1AEwvF0M2__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYouAsAdmin)return h._(/*BTDS*/"__JHASH__9Cm8zHY9-dY__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknownAsAdmin)return h._(/*BTDS*/"__JHASH__45w880lX7_C__JHASH__",[h._plural(b,"number")]);else if(a===o.Duration)return h._(/*BTDS*/"__JHASH__9BvBcoxElQ1__JHASH__",[h._plural(b,"number")]);else if(a===o.OutOfSyncInfo)return h._(/*BTDS*/"__JHASH__4Tise_u9IE9__JHASH__",[h._plural(b,"number")]);else if(a===o.Explanation)return h._(/*BTDS*/"__JHASH__1YxxECNPMlG__JHASH__",[h._plural(b,"number")]);else if(a===o.ModeChangeByOthers)return f?h._(/*BTDS*/"__JHASH__9L6bWlLlawW__JHASH__",[h._plural(b,"number"),h._param("name",e)]):h._(/*BTDS*/"__JHASH__MMjW1Na1vwE__JHASH__",[h._plural(b),h._param("name",e),h._param("number",g)]);else if(a===o.ModeChangeByYou&&f)return h._(/*BTDS*/"__JHASH__LKkdMlHNp_8__JHASH__",[h._plural(b,"number")]);d("WALogger").ERROR(j(),a,e).sendLogs("invalid-ephemeral-string-type");return""}function C(a,b,e){var f=d("WAWebMiscGatingUtils").isDefaultDisappearingMessagesEnabled(),g=c("WAWebL10N").n(b);if(a===o.SettingChangeByOthers&&e!=null)return h._(/*BTDS*/"__JHASH__Qwi-iWiEdAQ__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYou)return h._(/*BTDS*/"__JHASH__-cI3mKBVBnB__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknown)return h._(/*BTDS*/"__JHASH__y4yAC2Wg9XM__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByOthersAsAdmin&&e!=null)return h._(/*BTDS*/"__JHASH__bhYpa5w2dqo__JHASH__",[h._plural(b,"number"),h._param("name",e)]);else if(a===o.SettingChangeByYouAsAdmin)return h._(/*BTDS*/"__JHASH__iTB3Fa-DI3Q__JHASH__",[h._plural(b,"number")]);else if(a===o.SettingChangeByUnknownAsAdmin)return h._(/*BTDS*/"__JHASH__tvdiWytkW-p__JHASH__",[h._plural(b,"number")]);else if(a===o.Duration)return h._(/*BTDS*/"__JHASH__4f0cBzvGiOF__JHASH__",[h._plural(b,"number")]);else if(a===o.OutOfSyncInfo)return h._(/*BTDS*/"__JHASH__eQ36IUsRvJF__JHASH__",[h._plural(b,"number")]);else if(a===o.Explanation)return h._(/*BTDS*/"__JHASH__SgeTOqwNhtO__JHASH__",[h._plural(b,"number")]);else if(a===o.ModeChangeByOthers)return f?h._(/*BTDS*/"__JHASH__jBmX-nXr6FO__JHASH__",[h._plural(b,"number"),h._param("name",e)]):h._(/*BTDS*/"__JHASH__S0Z3q_rK5d1__JHASH__",[h._plural(b),h._param("name",e),h._param("number",g)]);else if(a===o.ModeChangeByYou&&f)return h._(/*BTDS*/"__JHASH__55eSpVx5K4f__JHASH__",[h._plural(b,"number")]);d("WALogger").ERROR(i(),a,e).sendLogs("invalid-ephemeral-string-type");return""}g.getDisappearingMessageSettingOthersString=a;g.getDisappearingMessageSettingYouString=e;g.getDisappearingMessageSettingUnknownString=f;g.getDisappearingMessageSettingOthersAsAdminString=p;g.getDisappearingMessageSettingYouAsAdminString=q;g.getDisappearingMessageSettingUnknownAsAdminString=r;g.getDisappearingMessageDurationString=s;g.getDisappearingMessageOutOfSyncInfoString=t;g.getDisappearingMessageExplanationString=u;g.getDisappearingModeOtherString=v;g.getDisappearingModeYouString=w}),226); __d("WAWebEphemeralNuxAnimationData",[],(function(a,b,c,d,e,f){e.exports=JSON.parse('{"v":"5.7.4","fr":29.9900054931641,"ip":0,"op":333.000060994453,"w":190,"h":120,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Graphic Outlines 3","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[95,60,0]},"a":{"a":0,"k":[93,58,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[-19.412,-1.227],[-3.848,-0.447],[-24.798,4.416],[-6.722,4.072],[0,0],[0,0]],"o":[[0,0],[0,0],[10.548,0.667],[4.615,0.537],[15.816,-2.817],[3.841,-2.326],[0,0],[0,0]],"v":[[17.037,36.952],[13.568,101.171],[51.662,105.227],[76.735,112.498],[130.934,106.817],[177.896,98.49],[171.776,61.758],[166.995,46.289]],"c":true}},"o":{"a":0,"k":100},"x":{"a":0,"k":0},"nm":"Mask 1"}],"shapes":[{"ty":"gr","it":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.077,0.547],[-0.547,-0.076],[0,0],[0.078,-0.547],[0.546,0.077],[0,0]],"o":[[0.078,-0.547],[0,0],[0.547,0.076],[-0.077,0.547],[0,0],[-0.547,-0.077]],"v":[[-6.272,-0.881],[-5.141,-1.733],[5.422,-0.247],[6.271,0.882],[5.141,1.732],[-5.422,0.248]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[36.164,61.282]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 3","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.078,0.547],[-0.547,-0.077],[0,0],[0.077,-0.547],[0.547,0.077],[0,0]],"o":[[0.078,-0.547],[0,0],[0.547,0.077],[-0.077,0.547],[0,0],[-0.547,-0.077]],"v":[[-8.913,-1.253],[-7.782,-2.104],[8.062,0.123],[8.913,1.252],[7.781,2.103],[-8.062,-0.124]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[39.269,58.352]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 4","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.777,-0.25],[0,0],[-0.252,1.778],[0,0],[1.777,0.25],[0,0],[-0.271,-0.271],[0,0],[0.236,-1.664],[0,0]],"o":[[0,0],[1.777,0.25],[0,0],[0.252,-1.778],[0,0],[-0.38,-0.054],[0,0],[1.189,1.187],[0,0],[-0.251,1.776]],"v":[[-9.684,5.488],[11.088,8.407],[14.762,5.641],[15.7,-0.959],[12.938,-4.629],[-15.342,-8.603],[-15.68,-7.925],[-13.525,-5.774],[-12.012,-1.245],[-12.447,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.725,60.837]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 5","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.777,-0.25],[0,0],[-0.252,1.778],[0,0],[1.777,0.25],[0,0],[-0.271,-0.271],[0,0],[0.236,-1.664],[0,0]],"o":[[0,0],[1.777,0.25],[0,0],[0.252,-1.778],[0,0],[-0.38,-0.054],[0,0],[1.189,1.187],[0,0],[-0.251,1.776]],"v":[[-9.684,5.488],[11.088,8.407],[14.762,5.641],[15.7,-0.959],[12.938,-4.629],[-15.342,-8.603],[-15.68,-7.925],[-13.525,-5.774],[-12.012,-1.245],[-12.447,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.725,60.837]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 6","bm":0,"hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.171},"t":158,"s":[-10.391,53.124],"to":[1.732,-8.854],"ti":[-1.732,8.854]},{"t":177.000032420475,"s":[0,0]}]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":268,"s":[100]},{"t":287.000052568792,"s":[0]}]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 31","bm":0,"hd":false},{"ty":"gr","it":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.075,0.547],[-0.547,0.077],[0,0],[-0.076,-0.548],[0.546,-0.076],[0,0]],"o":[[-0.077,-0.547],[0,0],[0.547,-0.077],[0.076,0.547],[0,0],[-0.547,0.076]],"v":[[-6.271,0.882],[-5.419,-0.248],[5.144,-1.732],[6.272,-0.881],[5.419,0.248],[-5.143,1.734]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[141.883,62.682]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 15","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.075,0.547],[-0.547,0.077],[0,0],[-0.076,-0.548],[0.547,-0.077],[0,0]],"o":[[-0.076,-0.548],[0,0],[0.547,-0.077],[0.077,0.547],[0,0],[-0.548,0.077]],"v":[[-8.911,1.253],[-8.059,0.123],[7.784,-2.104],[8.912,-1.252],[8.061,-0.123],[-7.783,2.104]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[144.059,59.01]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 16","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.776,-0.25],[0,0],[0.252,1.778],[0,0],[-1.777,0.249],[0,0],[0.272,-0.271],[0,0],[-0.235,-1.664],[0,0]],"o":[[0,0],[-1.779,0.249],[0,0],[-0.252,-1.777],[0,0],[0.38,-0.054],[0,0],[-1.19,1.187],[0,0],[0.252,1.777]],"v":[[9.685,5.488],[-11.087,8.408],[-14.763,5.641],[-15.7,-0.959],[-12.938,-4.628],[15.341,-8.603],[15.68,-7.925],[13.525,-5.773],[12.011,-1.245],[12.446,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[147.837,61.04]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 17","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.776,-0.25],[0,0],[0.252,1.778],[0,0],[-1.777,0.249],[0,0],[0.272,-0.271],[0,0],[-0.235,-1.664],[0,0]],"o":[[0,0],[-1.779,0.249],[0,0],[-0.252,-1.777],[0,0],[0.38,-0.054],[0,0],[-1.19,1.187],[0,0],[0.252,1.777]],"v":[[9.685,5.488],[-11.087,8.408],[-14.763,5.641],[-15.7,-0.959],[-12.938,-4.628],[15.341,-8.603],[15.68,-7.925],[13.525,-5.773],[12.011,-1.245],[12.446,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.882000014361,1,0.779999976065,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[147.837,61.04]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 18","bm":0,"hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.171},"t":166,"s":[10.082,50.817],"to":[-1.68,-8.47],"ti":[1.68,8.47]},{"t":186.000034068974,"s":[0,0]}]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":276,"s":[100]},{"t":295.000054034125,"s":[0]}]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 32","bm":0,"hd":false}],"ip":150.000027474979,"op":331.00006062812,"st":150.000027474979,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Graphic Outlines","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[95,60,0]},"a":{"a":0,"k":[93,58,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[0,0],[0,0],[-19.412,-1.227],[-3.848,-0.447],[-24.798,4.416],[-6.722,4.072],[0,0],[0,0]],"o":[[0,0],[0,0],[10.548,0.667],[4.615,0.537],[15.816,-2.817],[3.841,-2.326],[0,0],[0,0]],"v":[[17.037,36.952],[13.568,101.171],[51.662,105.227],[76.735,112.498],[130.934,106.817],[177.896,98.49],[171.776,61.758],[166.995,46.289]],"c":true}},"o":{"a":0,"k":100},"x":{"a":0,"k":0},"nm":"Mask 1"}],"shapes":[{"ty":"gr","it":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.077,0.547],[-0.547,-0.076],[0,0],[0.078,-0.547],[0.546,0.077],[0,0]],"o":[[0.078,-0.547],[0,0],[0.547,0.076],[-0.077,0.547],[0,0],[-0.547,-0.077]],"v":[[-6.272,-0.881],[-5.141,-1.733],[5.422,-0.247],[6.271,0.882],[5.141,1.732],[-5.422,0.248]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[36.164,61.282]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 3","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.078,0.547],[-0.547,-0.077],[0,0],[0.077,-0.547],[0.547,0.077],[0,0]],"o":[[0.078,-0.547],[0,0],[0.547,0.077],[-0.077,0.547],[0,0],[-0.547,-0.077]],"v":[[-8.913,-1.253],[-7.782,-2.104],[8.062,0.123],[8.913,1.252],[7.781,2.103],[-8.062,-0.124]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[39.269,58.352]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 4","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.777,-0.25],[0,0],[-0.252,1.778],[0,0],[1.777,0.25],[0,0],[-0.271,-0.271],[0,0],[0.236,-1.664],[0,0]],"o":[[0,0],[1.777,0.25],[0,0],[0.252,-1.778],[0,0],[-0.38,-0.054],[0,0],[1.189,1.187],[0,0],[-0.251,1.776]],"v":[[-9.684,5.488],[11.088,8.407],[14.762,5.641],[15.7,-0.959],[12.938,-4.629],[-15.342,-8.603],[-15.68,-7.925],[-13.525,-5.774],[-12.012,-1.245],[-12.447,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.725,60.837]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 5","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-1.777,-0.25],[0,0],[-0.252,1.778],[0,0],[1.777,0.25],[0,0],[-0.271,-0.271],[0,0],[0.236,-1.664],[0,0]],"o":[[0,0],[1.777,0.25],[0,0],[0.252,-1.778],[0,0],[-0.38,-0.054],[0,0],[1.189,1.187],[0,0],[-0.251,1.776]],"v":[[-9.684,5.488],[11.088,8.407],[14.762,5.641],[15.7,-0.959],[12.938,-4.629],[-15.342,-8.603],[-15.68,-7.925],[-13.525,-5.774],[-12.012,-1.245],[-12.447,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.725,60.837]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 6","bm":0,"hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"t":8,"s":[-10.391,53.124],"to":[1.732,-8.854],"ti":[-1.732,8.854]},{"t":25.0000045791631,"s":[0,0]}]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":118,"s":[100]},{"t":137.000025093814,"s":[0]}]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 31","bm":0,"hd":false},{"ty":"gr","it":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.075,0.547],[-0.547,0.077],[0,0],[-0.076,-0.548],[0.546,-0.076],[0,0]],"o":[[-0.077,-0.547],[0,0],[0.547,-0.077],[0.076,0.547],[0,0],[-0.547,0.076]],"v":[[-6.271,0.882],[-5.419,-0.248],[5.144,-1.732],[6.272,-0.881],[5.419,0.248],[-5.143,1.734]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[141.883,62.682]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 15","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.075,0.547],[-0.547,0.077],[0,0],[-0.076,-0.548],[0.547,-0.077],[0,0]],"o":[[-0.076,-0.548],[0,0],[0.547,-0.077],[0.077,0.547],[0,0],[-0.548,0.077]],"v":[[-8.911,1.253],[-8.059,0.123],[7.784,-2.104],[8.912,-1.252],[8.061,-0.123],[-7.783,2.104]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[144.059,59.01]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 16","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.776,-0.25],[0,0],[0.252,1.778],[0,0],[-1.777,0.249],[0,0],[0.272,-0.271],[0,0],[-0.235,-1.664],[0,0]],"o":[[0,0],[-1.779,0.249],[0,0],[-0.252,-1.777],[0,0],[0.38,-0.054],[0,0],[-1.19,1.187],[0,0],[0.252,1.777]],"v":[[9.685,5.488],[-11.087,8.408],[-14.763,5.641],[-15.7,-0.959],[-12.938,-4.628],[15.341,-8.603],[15.68,-7.925],[13.525,-5.773],[12.011,-1.245],[12.446,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[147.837,61.04]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 17","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[1.776,-0.25],[0,0],[0.252,1.778],[0,0],[-1.777,0.249],[0,0],[0.272,-0.271],[0,0],[-0.235,-1.664],[0,0]],"o":[[0,0],[-1.779,0.249],[0,0],[-0.252,-1.777],[0,0],[0.38,-0.054],[0,0],[-1.19,1.187],[0,0],[0.252,1.777]],"v":[[9.685,5.488],[-11.087,8.408],[-14.763,5.641],[-15.7,-0.959],[-12.938,-4.628],[15.341,-8.603],[15.68,-7.925],[13.525,-5.773],[12.011,-1.245],[12.446,1.819]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.882000014361,1,0.779999976065,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[147.837,61.04]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 18","bm":0,"hd":false},{"ty":"tr","p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.167,"y":0.167},"t":16,"s":[10.082,50.817],"to":[-1.68,-8.47],"ti":[1.68,8.47]},{"t":34.0000062276618,"s":[0,0]}]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":126,"s":[100]},{"t":145.000026559146,"s":[0]}]},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 32","bm":0,"hd":false}],"ip":0,"op":150.000027474979,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Graphic Outlines 2","sr":1,"ks":{"o":{"a":0,"k":100},"r":{"a":0,"k":0},"p":{"a":0,"k":[95,60,0]},"a":{"a":0,"k":[93,58,0]},"s":{"a":0,"k":[100,100,100]}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.717,0.104],[0.099,-0.71],[-0.716,-0.104],[-0.099,0.71]],"o":[[-0.72,-0.104],[-0.099,0.706],[0.72,0.104],[0.099,-0.706]],"v":[[0.185,-1.292],[-1.303,-0.183],[-0.185,1.292],[1.303,0.183]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[29.352,19.516]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 1","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.717,0.104],[0.099,-0.71],[-0.716,-0.104],[-0.099,0.71]],"o":[[-0.72,-0.104],[-0.099,0.706],[0.72,0.104],[0.099,-0.706]],"v":[[0.185,-1.292],[-1.303,-0.183],[-0.185,1.292],[1.303,0.183]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[29.352,19.516]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 2","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.394,-2.817],[0,0],[2.817,0.395],[0,0],[-0.394,2.816],[0,0],[-2.816,-0.396],[0,0],[0,0],[0,0]],"o":[[0,0],[-0.394,2.815],[0,0],[-2.816,-0.394],[0,0],[0.395,-2.817],[0,0],[0,0],[0,0],[2.817,0.396]],"v":[[26.064,-36.057],[15.164,41.852],[9.351,46.236],[-21.678,41.874],[-26.064,36.057],[-15.165,-41.85],[-9.351,-46.234],[-4.565,-45.561],[16.891,-42.546],[21.677,-41.873]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.7},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.874,59.969]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 7","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.394,-2.817],[0,0],[2.817,0.395],[0,0],[-0.394,2.816],[0,0],[-2.816,-0.396],[0,0],[0,0],[0,0]],"o":[[0,0],[-0.394,2.815],[0,0],[-2.816,-0.394],[0,0],[0.395,-2.817],[0,0],[0,0],[0,0],[2.817,0.396]],"v":[[26.064,-36.057],[15.164,41.852],[9.351,46.236],[-21.678,41.874],[-26.064,36.057],[-15.165,-41.85],[-9.351,-46.234],[-4.565,-45.561],[16.891,-42.546],[21.677,-41.873]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.933000033509,0.995999983245,0.980000035903,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.874,59.969]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 8","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.91,-0.549],[0,0],[0.547,-3.91],[0,0],[3.91,0.549],[0,0],[-0.547,3.911],[0,0]],"o":[[0,0],[3.91,0.55],[0,0],[-0.547,3.911],[0,0],[-3.91,-0.55],[0,0],[0.547,-3.911]],"v":[[-9.926,-49.345],[23.083,-44.706],[29.173,-36.63],[17.997,43.259],[9.925,49.345],[-23.083,44.706],[-29.173,36.63],[-17.997,-43.259]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.7},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[39.123,60.3]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 9","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.91,-0.549],[0,0],[0.547,-3.91],[0,0],[3.91,0.549],[0,0],[-0.547,3.911],[0,0]],"o":[[0,0],[3.91,0.55],[0,0],[-0.547,3.911],[0,0],[-3.91,-0.55],[0,0],[0.547,-3.911]],"v":[[-9.926,-49.345],[23.083,-44.706],[29.173,-36.63],[17.997,43.259],[9.925,49.345],[-23.083,44.706],[-29.173,36.63],[-17.997,-43.259]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[39.123,60.3]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 10","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.909,-0.549],[0,0],[0.547,-3.908],[0,0],[3.909,0.548],[0,0],[-0.547,3.909],[0,0]],"o":[[0,0],[3.909,0.549],[0,0],[-0.546,3.909],[0,0],[-3.909,-0.55],[0,0],[0.546,-3.909]],"v":[[-9.926,-49.342],[23.083,-44.702],[29.17,-36.63],[17.993,43.259],[9.926,49.342],[-23.083,44.703],[-29.17,36.63],[-17.993,-43.258]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.706},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.79,63.987]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 11","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.909,-0.549],[0,0],[0.547,-3.908],[0,0],[3.909,0.548],[0,0],[-0.547,3.909],[0,0]],"o":[[0,0],[3.909,0.549],[0,0],[-0.546,3.909],[0,0],[-3.909,-0.55],[0,0],[0.546,-3.909]],"v":[[-9.926,-49.342],[23.083,-44.702],[29.17,-36.63],[17.993,43.259],[9.926,49.342],[-23.083,44.703],[-29.17,36.63],[-17.993,-43.258]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[38.79,63.987]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 12","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.717,-0.098],[-0.101,-0.71],[-0.716,0.099],[0.102,0.71]],"o":[[-0.722,0.099],[0.1,0.706],[0.722,-0.098],[-0.099,-0.706]],"v":[[-0.178,-1.293],[-1.303,0.184],[0.177,1.292],[1.302,-0.184]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[128.168,23.801]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 13","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0.717,-0.098],[-0.101,-0.71],[-0.716,0.099],[0.102,0.71]],"o":[[-0.722,0.099],[0.1,0.706],[0.722,-0.098],[-0.099,-0.706]],"v":[[-0.178,-1.293],[-1.303,0.184],[0.177,1.292],[1.302,-0.184]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[128.168,23.801]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 14","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.397,-2.81],[0,0],[2.81,-0.394],[0,0],[0.395,2.808],[0,0],[-2.811,0.395],[0,0],[0,0],[0,0]],"o":[[0,0],[0.397,2.81],[0,0],[-2.81,0.394],[0,0],[-0.398,-2.81],[0,0],[0,0],[0,0],[2.811,-0.395]],"v":[[15.104,-41.842],[26.101,36.052],[21.731,41.854],[-9.297,46.216],[-15.103,41.844],[-26.1,-36.051],[-21.731,-41.854],[-16.944,-42.527],[4.511,-45.542],[9.297,-46.215]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.724},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[148.471,60.063]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 19","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.397,-2.81],[0,0],[2.81,-0.394],[0,0],[0.395,2.808],[0,0],[-2.811,0.395],[0,0],[0,0],[0,0]],"o":[[0,0],[0.397,2.81],[0,0],[-2.81,0.394],[0,0],[-0.398,-2.81],[0,0],[0,0],[0,0],[2.811,-0.395]],"v":[[15.104,-41.842],[26.101,36.052],[21.731,41.854],[-9.297,46.216],[-15.103,41.844],[-26.1,-36.051],[-21.731,-41.854],[-16.944,-42.527],[4.511,-45.542],[9.297,-46.215]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.933000033509,0.995999983245,0.980000035903,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[148.471,60.063]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 20","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.904,0.549],[0,0],[-0.551,-3.904],[0,0],[3.904,-0.549],[0,0],[0.552,3.903],[0,0]],"o":[[0,0],[3.903,-0.548],[0,0],[0.55,3.903],[0,0],[-3.903,0.549],[0,0],[-0.551,-3.904]],"v":[[-23.14,-44.686],[9.869,-49.325],[17.935,-43.25],[29.212,36.624],[23.141,44.686],[-9.869,49.324],[-17.935,43.25],[-29.211,-36.624]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.724},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[148.849,60.347]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 21","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.904,0.549],[0,0],[-0.551,-3.904],[0,0],[3.904,-0.549],[0,0],[0.552,3.903],[0,0]],"o":[[0,0],[3.903,-0.548],[0,0],[0.55,3.903],[0,0],[-3.903,0.549],[0,0],[-0.551,-3.904]],"v":[[-23.14,-44.686],[9.869,-49.325],[17.935,-43.25],[29.212,36.624],[23.141,44.686],[-9.869,49.324],[-17.935,43.25],[-29.211,-36.624]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[148.849,60.347]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 22","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.911,0.549],[0,0],[-0.553,-3.91],[0,0],[3.91,-0.55],[0,0],[0.552,3.91],[0,0]],"o":[[0,0],[3.91,-0.55],[0,0],[0.552,3.91],[0,0],[-3.91,0.549],[0,0],[-0.552,-3.91]],"v":[[-23.142,-44.697],[9.867,-49.336],[17.947,-43.252],[29.223,36.623],[23.142,44.698],[-9.867,49.337],[-17.947,43.253],[-29.223,-36.622]],"c":true}},"nm":"Path 1","hd":false},{"ty":"st","c":{"a":0,"k":[0.19199999641,0.39199999641,0.455000005984,1]},"o":{"a":0,"k":100},"w":{"a":0,"k":1.7},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","hd":false},{"ty":"tr","p":{"a":0,"k":[149.223,63.987]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 23","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-3.911,0.549],[0,0],[-0.553,-3.91],[0,0],[3.91,-0.55],[0,0],[0.552,3.91],[0,0]],"o":[[0,0],[3.91,-0.55],[0,0],[0.552,3.91],[0,0],[-3.91,0.549],[0,0],[-0.552,-3.91]],"v":[[-23.142,-44.697],[9.867,-49.336],[17.947,-43.252],[29.223,36.623],[23.142,44.698],[-9.867,49.337],[-17.947,43.253],[-29.223,-36.622]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.258999992819,0.795999983245,0.647000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[149.223,63.987]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 24","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-0.304,-0.304],[0.259,-0.344],[0,0],[0.839,0.84],[-0.951,0.712]],"o":[[0.344,-0.258],[0.305,0.305],[0,0],[-0.712,0.95],[-0.84,-0.84],[0,0]],"v":[[2.833,-4.044],[3.963,-3.964],[4.043,-2.833],[-0.103,2.788],[-3.462,3.462],[-3.253,0.521]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[93.5,56.7]},"a":{"a":0,"k":[-2.5,2.4]},"s":{"a":0,"k":[100,100]},"r":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":33,"s":[710]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":60,"s":[710]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":63,"s":[720]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":91,"s":[720]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":94,"s":[730]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":120,"s":[730]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":123,"s":[740]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":150,"s":[740]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":153,"s":[750]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":180,"s":[750]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":183,"s":[760]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":210,"s":[760]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":213,"s":[770]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":240,"s":[770]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":243,"s":[780]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":270,"s":[780]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":273,"s":[790]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0.167]},"t":295,"s":[790]},{"t":312.000057147956,"s":[1070]}]},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 25","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,-7.456],[-7.456,0],[0,0],[0,5.799],[-5.799,0]],"o":[[0,0],[-7.456,0],[0,7.456],[0,0],[-5.799,0],[0,-5.799],[0,0]],"v":[[6.75,-13.5],[6.75,-13.5],[-6.75,0],[6.75,13.5],[6.75,10.5],[-3.75,0],[6.75,-10.5]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[86.251,56]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 26","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.33,0.211],[0.445,0.699],[0.698,-0.446],[0.271,-0.142],[-0.383,-0.734],[-0.735,0.383]],"o":[[0.699,-0.446],[-0.446,-0.699],[-0.258,0.164],[-0.735,0.383],[0.384,0.734],[0.349,-0.183]],"v":[[0.505,11.387],[0.963,9.315],[-1.108,8.858],[-1.901,9.317],[-2.538,11.34],[-0.514,11.977]],"c":true}},"nm":"Path 1","hd":false},{"ind":1,"ty":"sh","ks":{"a":0,"k":{"i":[[-0.182,0.348],[0.735,0.384],[0.383,-0.734],[0.164,-0.258],[-0.699,-0.446],[-0.444,0.698]],"o":[[0.383,-0.736],[-0.733,-0.383],[-0.142,0.271],[-0.447,0.698],[0.697,0.445],[0.211,-0.331]],"v":[[5.226,6.237],[4.59,4.212],[2.567,4.849],[2.109,5.642],[2.566,7.713],[4.636,7.256]],"c":true}},"nm":"Path 2","hd":false},{"ind":2,"ty":"sh","ks":{"a":0,"k":{"i":[[0.009,0.195],[0.828,-0.036],[-0.035,-0.828],[0,-0.154],[0.007,-0.153],[-0.827,-0.036],[-0.035,0.827],[0,0.197]],"o":[[-0.035,-0.828],[-0.827,0.035],[0.007,0.152],[0,0.155],[-0.035,0.827],[0.828,0.035],[0.009,-0.196],[0,-0.196]],"v":[[6.737,-0.588],[5.174,-2.022],[3.74,-0.459],[3.75,0],[3.74,0.46],[5.174,2.023],[6.737,0.589],[6.75,0]],"c":true}},"nm":"Path 3","hd":false},{"ind":3,"ty":"sh","ks":{"a":0,"k":{"i":[[0.211,0.33],[0.697,-0.445],[-0.447,-0.698],[-0.142,-0.271],[-0.733,0.383],[0.383,0.735]],"o":[[-0.444,-0.698],[-0.699,0.446],[0.164,0.257],[0.383,0.735],[0.735,-0.383],[-0.182,-0.349]],"v":[[4.636,-7.255],[2.566,-7.713],[2.109,-5.641],[2.567,-4.848],[4.59,-4.212],[5.226,-6.236]],"c":true}},"nm":"Path 4","hd":false},{"ind":4,"ty":"sh","ks":{"a":0,"k":{"i":[[0.349,0.182],[0.384,-0.734],[-0.735,-0.383],[-0.258,-0.163],[-0.446,0.699],[0.699,0.446]],"o":[[-0.735,-0.383],[-0.383,0.735],[0.271,0.141],[0.698,0.446],[0.445,-0.698],[-0.33,-0.211]],"v":[[-0.514,-11.976],[-2.538,-11.34],[-1.901,-9.316],[-1.108,-8.858],[0.963,-9.315],[0.505,-11.386]],"c":true}},"nm":"Path 5","hd":false},{"ind":5,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-0.153,-0.006],[-0.036,0.828],[0.828,0.036],[0.197,0]],"o":[[0.154,0],[0.827,0.036],[0.035,-0.828],[-0.195,-0.008],[0,0]],"v":[[-6.75,-10.5],[-6.29,-10.49],[-4.727,-11.924],[-6.162,-13.487],[-6.75,-13.5]],"c":true}},"nm":"Path 6","hd":false},{"ind":6,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[-0.195,0.008],[0.035,0.827],[0.827,-0.036],[0.154,0]],"o":[[0.197,0],[0.828,-0.036],[-0.036,-0.828],[-0.153,0.006],[0,0]],"v":[[-6.75,13.5],[-6.162,13.488],[-4.727,11.925],[-6.29,10.491],[-6.75,10.5]],"c":true}},"nm":"Path 7","hd":false},{"ty":"mm","mm":1,"nm":"Merge Paths 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.536999990426,0.481999984442,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[99.75,56]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 27","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,2.872],[-2.882,0],[-0.452,-0.127],[-3.481,0],[0,-4.308],[0,0],[-0.761,0],[0,-2.299],[2.306,0]],"o":[[0,0],[-2.882,0],[0,-2.873],[0.493,0],[1.017,-3.132],[4.323,0],[0,0],[0.614,-0.354],[2.306,0],[0,2.298],[0,0]],"v":[[-8.833,7.801],[-8.872,7.801],[-14.091,2.601],[-8.872,-2.6],[-7.449,-2.405],[0,-7.802],[7.828,0],[7.828,0.036],[9.916,-0.52],[14.091,3.641],[9.916,7.801]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[74.091,87.801]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 28","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[0,0],[0,2.872],[-2.882,0],[-0.452,-0.127],[-3.481,0],[0,-4.309],[0,0],[-0.761,0],[0,-2.297],[2.305,0]],"o":[[-2.882,0],[0,-2.872],[0.493,0],[1.017,-3.132],[4.323,0],[0,0],[0.614,-0.354],[2.305,0],[0,2.298],[0,0]],"v":[[-8.872,7.801],[-14.091,2.6],[-8.872,-2.601],[-7.449,-2.405],[0,-7.802],[7.828,0],[7.828,0.036],[9.916,-0.52],[14.091,3.64],[9.916,7.801]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[1,1,1,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[167.091,39.801]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 29","bm":0,"hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ks":{"a":0,"k":{"i":[[-21.078,6.951],[2.365,29.357],[27.324,-13.139],[26.548,0],[2.517,-25.241],[-27.153,-8.154]],"o":[[21.814,-7.195],[-3.596,-44.604],[-37.066,17.824],[-19.773,0],[-1.824,18.295],[49.419,14.839]],"v":[[56.81,46.564],[92.775,-10.294],[17.995,-52.824],[-50.314,-32.078],[-92.737,2.499],[-60.07,44.918]],"c":true}},"nm":"Path 1","hd":false},{"ty":"fl","c":{"a":0,"k":[0.8,0.936999990426,0.922000002394,1]},"o":{"a":0,"k":100},"r":1,"bm":0,"nm":"Fill 1","hd":false},{"ty":"tr","p":{"a":0,"k":[93,58]},"a":{"a":0,"k":[0,0]},"s":{"a":0,"k":[100,100]},"r":{"a":0,"k":0},"o":{"a":0,"k":100},"sk":{"a":0,"k":0},"sa":{"a":0,"k":0},"nm":"Transform"}],"nm":"Group 30","bm":0,"hd":false}],"ip":0,"op":340.000062276618,"st":0,"bm":0}],"markers":[]}')}),null); __d("WAWebEphemeralNux.react",["fbt","WAWebEphemeralNuxAnimationData","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebLottieAnimationLoadable","WAWebText_DONOTUSE.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={badge:{backgroundColor:"x13ase7j",borderTopStartRadius:"x1npaq5j",borderTopEndRadius:"x1c83p5e",borderBottomEndRadius:"x1enjb0b",borderBottomStartRadius:"x199158v",color:"xzqyxu6",fontSize:"x1pg5gke",marginTop:"x14vqqas",paddingTop:"x1iorvi4",paddingEnd:"xsyo7zv",paddingBottom:"xjkvuk6",paddingStart:"x16hj40l",textTransform:"xtvhhri",$$css:!0},header:{fontSize:"x1603h9y",lineHeight:"x1o2sk6j",marginTop:"x14vqqas",$$css:!0},animation:{height:"x1njnjl6",width:"x1oysuqx",$$css:!0},paragraph:{marginTop:"x14vqqas",$$css:!0}};function a(a){a=a.fromMe;var b=a?h._(/*BTDS*/"__JHASH__W57bLxOvhe5__JHASH__"):h._(/*BTDS*/"__JHASH__FeURsPKoGzb__JHASH__"),e=h._(/*BTDS*/"__JHASH__Tuhd3LbQXZ9__JHASH__");a?a=h._(/*BTDS*/"__JHASH__VH1B7JJrzfj__JHASH__"):a=j.jsxs(j.Fragment,{children:[h._(/*BTDS*/"__JHASH__VH1B7JJrzfj__JHASH__")," ",j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getEphemeralFaqUrl(),children:h._(/*BTDS*/"__JHASH__RR1bpeluTQm__JHASH__")})]});return j.jsxs(j.Fragment,{children:[j.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:j.jsx(d("WAWebLottieAnimationLoadable").LottieAnimation,{loop:!0,autoplay:!0,data:c("WAWebEphemeralNuxAnimationData"),xstyle:k.animation})}),j.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:j.jsx(c("WAWebFlexItem.react"),{xstyle:k.badge,children:h._(/*BTDS*/"__JHASH__FyeCHbu_gMo__JHASH__")})}),j.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{xstyle:k.header,children:b}),j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:k.paragraph,children:e}),j.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:k.paragraph,children:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebEphemeralPopup.react",["fbt","WAWebConfirmPopup.react","WAWebEphemeralNux.react","WAWebEphemeralityDurations","WAWebExternalLink.react","WAWebFaqUrl","WAWebModalManager","WAWebNux","WAWebRadio.react","WAWebText_DONOTUSE.react","react","useWAWebNux"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={explanation:{marginBottom:"xod5an3",$$css:!0}};function a(a){var b=a.initialDuration,e=a.onDurationSelected;a=l(b);var f=a[0],g=a[1];b=c("useWAWebNux")(d("WAWebNux").NUX.EPHEMERAL);a=b[0];var i=b[1],j=function(a){g(a)};b=function(){i()};var n=function(){d("WAWebExternalLink.react").openExternalLink(d("WAWebFaqUrl").getEphemeralFaqUrl())},o=function(){e(f),d("WAWebModalManager").ModalManager.close()},p=function(){d("WAWebModalManager").ModalManager.close()},q;a?q=k.jsx(c("WAWebEphemeralNux.react"),{fromMe:!0}):q=k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:m.explanation,children:h._(/*BTDS*/"__JHASH__S8ck8FPPuWm__JHASH__")}),d("WAWebEphemeralityDurations").getDefaultEphemeralityDurations().map(function(a){var b=a.value;a=a.label;return k.jsx(d("WAWebRadio.react").RadioWithLabel,{name:"duration",value:b,label:a,checked:b===f,onChange:function(){return j(b)}},b)})]});return k.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,title:a?void 0:h._(/*BTDS*/"__JHASH__7vr4J_QPl4y__JHASH__"),onOK:a?b:o,onCancel:a?n:p,cancelText:a?h._(/*BTDS*/"__JHASH__RR1bpeluTQm__JHASH__"):h._(/*BTDS*/"__JHASH__JomY4EcHzcJ__JHASH__"),children:q})}a.displayName=a.name+" [from "+f.id+"]";g.EphemeralPopup=a}),226); __d("WAWebGroupGetCommunityParticipantsJob",["Promise","WALogger","WASmaxGroupsGetLinkedGroupsParticipantsRPC","WAWebBackendErrors","WAWebWidFactory","WAWebWidToJid","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["getLinkedGroupsParticipants failed: ",":",""]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["getLinkedGroupsParticipants failed: ",":",""]);j=function(){return a};return a}function a(a){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield d("WASmaxGroupsGetLinkedGroupsParticipantsRPC").sendGetLinkedGroupsParticipantsRPC({iqTo:d("WAWebWidToJid").widToGroupJid(a)}));switch(a.name){case"GetLinkedGroupsParticipantsResponseSuccess":var c=a.value.linkedGroupsParticipantsParticipant.map(function(a){return d("WAWebWidFactory").createWid(a.jid)});return c;case"GetLinkedGroupsParticipantsResponseClientError":c=a.value.errorGetLinkedGroupsParticipantsClientErrors.value;d("WALogger").LOG(j(),c.code,c.text);return(h||(h=b("Promise"))).reject(new(d("WAWebBackendErrors").ServerStatusCodeError)(Number(c.code),c.text));case"GetLinkedGroupsParticipantsResponseServerError":c=a.value.errorServerErrors.value;d("WALogger").LOG(i(),c.code,c.text);return(h||(h=b("Promise"))).reject(new(d("WAWebBackendErrors").ServerStatusCodeError)(Number(c.code),c.text))}});return k.apply(this,arguments)}g.getCommunityParticipants=a}),98); __d("WAWebGroupsModal.react",["fbt","Promise","WAPromiseDelays","WAWebChat.react","WAWebCommunityGroupJourneyEventImpl","WAWebEmptyState.react","WAWebGroupMetadataCollection","WAWebL10N","WAWebModalsListModal.react","WAWebNoop","WAWebPhoneNumberSearch","WAWebSingleSelection","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumSurfaceType","react","useLazyRef","useWAWebDebouncedCallback"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=j||(j=c("react")),m=e.useEffect,n=e.useState,o=d("WAWebChat.react").ChatFactory(),p=d("WAWebModalsListModal.react").ListModalFactory();function q(a){var b=a.active,c=a.chat,e=a.mode,f=a.onClick,g=a.showSpeakerForCag,h=a.subtitle,i=a.type,j,k,m=typeof h!=="boolean";m&&(j=h,k="group-modal");a=function(){if(m)return;i==="subgroup_switcher"&&new(d("WAWebCommunityGroupJourneyEventImpl").CommunityGroupJourneyEvent)({action:d("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.GROUP_NAVIGATION,surface:d("WAWebWamEnumSurfaceType").SURFACE_TYPE.COMMUNITY_NAV_SHEET,chat:c}).commit();f.call(null,c)};return l.jsx(o,{chat:c,mode:e,active:b,secondary:j,noContext:!0,theme:k,onClick:a,overrideCommunityAnnouncementGroupName:!0,hiddenSubgroupIcon:"chat-list",showSpeakerForCag:g})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var e=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var f=h._(/*BTDS*/"__JHASH__nd746YUrwWA__JHASH__"),g=a.onCancel,j=a.chats,k=a.filter,o=k===void 0?function(a){return!0}:k,r=a.onGroup;k=a.mode;var s=k===void 0?d("WAWebChat.react").Mode.INFO:k;k=a.title;k=k===void 0?f:k;var t=a.titleStr;f=t===void 0?f:t;t=a.firstRow;var u=a.lastRow,v=a.hideSearchBar;v=v===void 0?!1:v;var w=a.showSpeakerForCag,x=a.rotateList;x=x===void 0?!1:x;var y=a.tsNavigationData,z=a.type,A=c("useLazyRef")(function(){return new(c("WAWebSingleSelection"))([],function(a){return a.toString()})});a=n(!0);var B=a[0],C=a[1];a=n(void 0);var D=a[0];a=a[1];m(function(){d("WAPromiseDelays").delayMs(300).then(function(){return(i||(i=b("Promise"))).all(j.reduce(function(a,b){var c;((c=b.groupMetadata)==null?void 0:c.stale)&&a.push(b.groupMetadata.id);return a},[]).map(function(a){return c("WAWebGroupMetadataCollection").update(a)["catch"](c("WAWebNoop"))}))})["finally"](function(){return C(!1)})},[]);var E=function(a,b){o(b.chat)===!0&&r(b.chat)},F=function(){var a=[];if(B)return a;var b=c("WAWebL10N").accentFold(D),e=d("WAWebPhoneNumberSearch").numberSearch(b),f=j.filter(function(a){return o(a)&&(!b||b&&a.contact.searchMatch(b,e))});A.current.init(f.filter(function(a){return o(a)===!0}).map(function(a){return a.id}));a=f.map(function(a){return{chat:a,itemKey:a.id.toString()}});return a};a=c("useWAWebDebouncedCallback")(a,100);var G=B?l.jsx(d("WAWebEmptyState.react").Loading,{}):l.jsx(d("WAWebEmptyState.react").SearchGroups,{});return l.jsx(p,{title:k,titleStr:f,data:F(),tsNavigationData:y,renderItem:function(a){a=a.chat;return l.jsx(q,{chat:a,subtitle:o(a),active:A.current,onClick:r,mode:s,showSpeakerForCag:w,type:z})},emptyState:G,selection:A.current,rotateList:x,onCancel:g,onSearch:v?void 0:a,onSelect:E,ref:e,searchPlaceholder:h._(/*BTDS*/"__JHASH__t-nowQ-4q1H__JHASH__"),firstRows:[t],lastRow:u})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebMessageKeptBySubtitle.react",["WAWebEphemeralFbtKic","WAWebMsgGetters","react"],(function(a,b,c,d,e,f,g){var h,i=h||c("react");function a(a){a=a.msg;var b,c=d("WAWebMsgGetters").getKicSender(a);d("WAWebMsgGetters").getIsKept(a)&&c!=null&&(b=i.jsx("div",babelHelpers["extends"]({className:"x1f6kntn x16cd2qt xzbgwbi x2vb376"},{children:d("WAWebEphemeralFbtKic").getKeptByString(c)})));return i.jsx(i.Fragment,{children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMessageLogQplEvents",["WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule"],(function(a,b,c,d,e,f,g){function a(a){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_PROFILE_VIEW,{annotations:{string:{EntryPoint:a}}})}function b(a){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_PROFILE_VIEW,a)}function c(a){d("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(d("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ORDER_VIEW,{annotations:{bool:{IsCached:a}}})}g.qplStartProfileView=a;g.qplEndProfileView=b;g.qplStartOrderView=c}),98); __d("WAWebMexDeleteNewsletterJobMutation.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"}],b=[{alias:null,args:[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"}],concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_delete_v2",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,concreteType:"XWA2NewsletterState",kind:"LinkedField",name:"state",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"type",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"WAWebMexDeleteNewsletterJobMutation",selections:b,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"WAWebMexDeleteNewsletterJobMutation",selections:b},params:{id:"8316537688363079",metadata:{},name:"WAWebMexDeleteNewsletterJobMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null); __d("WAWebMexDeleteNewsletterJob",["WALogger","WAWebBackendErrors","WAWebMexClient","WAWebMexDeleteNewsletterJobMutation.graphql","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){var h;function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER] newsletter deleted via mex"]);i=function(){return a};return a}function a(a){return j.apply(this,arguments)}function j(){j=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield d("WAWebNewsletterRpcUtils").runWithBackoff(function(){return k(a)}));if(b.xwa2_newsletter_delete_v2!=null)return!0;throw new(d("WAWebBackendErrors").ServerStatusCodeError)(500,"xwa2_newsletter_delete_v2 is null")});return j.apply(this,arguments)}function k(a){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var c=h!==void 0?h:h=b("WAWebMexDeleteNewsletterJobMutation.graphql");a={newsletter_id:a};c=(yield d("WAWebMexClient").fetchQuery(c,a));d("WALogger").DEV(i()).tags("GQL","MEX").devConsole({response:c});return c});return l.apply(this,arguments)}g.mexDeleteNewsletter=a}),98); __d("WAWebRenderCursorGetWindowHeight",["lodash"],(function(a,b,c,d,e,f,g){var h=window.innerHeight;b=c("lodash").debounce(function(a){h=window.innerHeight},500);window.addEventListener("resize",b);function a(){return h}g["default"]=a}),98); __d("WAWebRenderCursorGuessMessageHeight",["WAUnicodeUtils","WAWebMessageLiveLocation.react","WAWebMessageLocation.react","WAWebMsgGetters","WAWebMsgType"],(function(a,b,c,d,e,f,g){var h=10;function a(a){var b=0;if(!a)return b;if(d("WAWebMsgGetters").getIsBotPluginCarouselMsg(a))return h;a.quotedMsg&&(b+=54);a.caption&&(b+=31);switch(a.type){case d("WAWebMsgType").MSG_TYPE.NOTIFICATION:case d("WAWebMsgType").MSG_TYPE.GP2:case d("WAWebMsgType").MSG_TYPE.BROADCAST_NOTIFICATION:case d("WAWebMsgType").MSG_TYPE.E2E_NOTIFICATION:case d("WAWebMsgType").MSG_TYPE.CALL_LOG:case d("WAWebMsgType").MSG_TYPE.CIPHERTEXT:case d("WAWebMsgType").MSG_TYPE.REVOKED:case d("WAWebMsgType").MSG_TYPE.CHAT:var c;d("WAWebMsgGetters").getLinkPreview(a)&&(b+=53);c=d("WAUnicodeUtils").numCodepoints((c=a.body)==null?void 0:c.toString());return b+Math.ceil(c/100)*19+13;case d("WAWebMsgType").MSG_TYPE.IMAGE:return b+(((c=a.mediaData)==null?void 0:c.fullWidth)&&((c=a.mediaData)==null?void 0:c.fullHeight)||0)?Math.floor(Math.min(330/a.mediaData.fullWidth*a.mediaData.fullHeight,330)):330;case d("WAWebMsgType").MSG_TYPE.VIDEO:case d("WAWebMsgType").MSG_TYPE.AUDIO:return a.isGif?b+137:b+166;case d("WAWebMsgType").MSG_TYPE.LOCATION:return b+a.isLive?d("WAWebMessageLiveLocation.react").MSG_HEIGHT:d("WAWebMessageLocation.react").PREVIEW_HEIGHT;case d("WAWebMsgType").MSG_TYPE.PTT:return b+67;case d("WAWebMsgType").MSG_TYPE.VCARD:return b+74;case d("WAWebMsgType").MSG_TYPE.DOCUMENT:return b+188;case d("WAWebMsgType").MSG_TYPE.STICKER:return b+125;case d("WAWebMsgType").MSG_TYPE.UNKNOWN:default:return b}}g["default"]=a}),98); __d("WAWebRenderCursor",["WALogger","WAWebFrontendMsgGetters","WAWebMessageListAlbums","WAWebMsgGetters","WAWebRenderCursorGetWindowHeight","WAWebRenderCursorGuessMessageHeight","WAWebUserPrefsMeUser"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["Invalid cursor at ",", array.length = ",", element = ",""]);h=function(){return a};return a}var i={RECENT_AT_TOP:"recent_at_top",RECENT_AT_BOTTOM:"recent_at_bottom",CONVERSATION:"conversation",GROUP_CONVERSATION:"group_conversation",STARRED_DRAWER:"starred_drawer"},j={BEFORE:"before",AFTER:"after"},k=2,l=12,m=19,n=65,o=2;function p(a,b,c){var e=b,f=a.toArray(),g=c===j.BEFORE?-1:1;return{hasNext:function(){return e>=0&&e<f.length},next:function(){var a=f[e];a||d("WALogger").WARN(h(),e,f.length,a);e+=g;return a}}}function q(a,b,e,f,g){f===void 0&&(f=1);f=c("WAWebRenderCursorGetWindowHeight")()*f;a=p(a,b,e);b=0;e=0;var h;while(a.hasNext()){var i=a.next(),j=c("WAWebRenderCursorGuessMessageHeight")(i),m=2*(d("WAWebMsgGetters").getIsNotification(i)?1:0)+(d("WAWebMsgGetters").getIsSentByMe(i)?1:0),n=!m||m!==h?l:k;b+=j+n;e++;if(b>f)break;if(e>=g)break;j=d("WAWebFrontendMsgGetters").getAsGroupedSticker(i);n=d("WAWebFrontendMsgGetters").getAsAlbumAsset(i)!=null;if(j||n){var o=[],q=!1,r=1;if(j){var s=void 0;if(a.hasNext()){s=a.next();o.push(s);e++;if(e>=g)break;d("WAWebMessageListAlbums").canBeGroupedAsAlbum(i.safe(),s.safe())&&d("WAWebFrontendMsgGetters").getAsGroupedSticker(s)&&(q=!0)}}if(n){s=i;i=void 0;while(a.hasNext()&&r<d("WAWebMessageListAlbums").ALBUM_MAX_SIZE){i=a.next();o.push(i);e++;if(e>=g)break;if(d("WAWebMessageListAlbums").canBeGroupedAsAlbum(s.safe(),i.safe())&&d("WAWebFrontendMsgGetters").getAsAlbumAsset(i))r++,s=i;else break}}if(j&&!q||n&&r<d("WAWebMessageListAlbums").ALBUM_MIN_SIZE){s=o.reduce(function(a,b){return a+c("WAWebRenderCursorGuessMessageHeight")(b)},0);b+=s;if(b>f)break}}h=m}return e}function r(a,b,e,f,g){f===void 0&&(f=1);f=c("WAWebRenderCursorGetWindowHeight")()*f;a=p(a,b,e);b=0;e=0;var h;while(a.hasNext()){var i=a.next(),j=c("WAWebRenderCursorGuessMessageHeight")(i),n=i.author||(d("WAWebMsgGetters").getIsSentByMe(i)?d("WAWebUserPrefsMeUser").getMaybeMeUser():void 0),o=n&&!d("WAWebMsgGetters").getIsSentByMe(i)&&n!==h?m:0,q=!n||n!==h?l:k;b+=j+o+q;e++;if(b>f)break;if(e>=g)break;j=d("WAWebFrontendMsgGetters").getAsGroupedSticker(i);o=d("WAWebFrontendMsgGetters").getAsAlbumAsset(i)!=null;if(j||o){q=[];var r=!1,s=1;if(j){var t=void 0;if(a.hasNext()){t=a.next();q.push(t);e++;if(e>=g)break;d("WAWebMessageListAlbums").canBeGroupedAsAlbum(i.safe(),t.safe())&&d("WAWebFrontendMsgGetters").getAsGroupedSticker(t)&&(r=!0)}}if(o){t=i;i=void 0;while(a.hasNext()&&s<d("WAWebMessageListAlbums").ALBUM_MAX_SIZE){i=a.next();q.push(i);e++;if(e>=g)break;if(d("WAWebMessageListAlbums").canBeGroupedAsAlbum(t.safe(),i.safe())&&d("WAWebFrontendMsgGetters").getAsAlbumAsset(i)!=null)s++,t=i;else break}}if(j&&!r||o&&s<d("WAWebMessageListAlbums").ALBUM_MIN_SIZE){t=q.reduce(function(a,b){return a+c("WAWebRenderCursorGuessMessageHeight")(b)},0);b+=t;if(b>f)break}}h=n}return e}function s(a,b,d,e,f){e===void 0&&(e=1);e=c("WAWebRenderCursorGetWindowHeight")()*e;a=p(a,b,d);b=0;d=0;while(a.hasNext()){var g=a.next();g=c("WAWebRenderCursorGuessMessageHeight")(g);b+=g+n;d++;if(b>e)break;if(d>=f)break}return d}function t(a){switch(a){case i.CONVERSATION:case i.GROUP_CONVERSATION:return i.RECENT_AT_BOTTOM;case i.STARRED_DRAWER:return i.RECENT_AT_TOP;default:return i.RECENT_AT_BOTTOM}}function u(a){switch(a){case i.CONVERSATION:return q;case i.GROUP_CONVERSATION:return r;case i.STARRED_DRAWER:return s;default:return q}}function v(a,b,e){e===void 0&&(e=j.AFTER);var f=c("WAWebRenderCursorGetWindowHeight")()*o;a=p(a,b,e);b=0;e=!0;var g=null;while(a.hasNext()){var h=a.next(),i=c("WAWebRenderCursorGuessMessageHeight")(h);h=2*(d("WAWebMsgGetters").getIsNotification(h)?1:0)+(d("WAWebMsgGetters").getIsSentByMe(h)?1:0);var m=!h||h!==g?l:k;b+=i+m;if(b>f){e=!1;break}g=h}return e}a=function(){a.create=function(b){var c=b.msgCollection,d=b.focusedMsgKey,e=b.type;b=b.maxInitialCount;b=b===void 0?Number.MAX_SAFE_INTEGER:b;return new a({type:e}).init(d,c,b)};function a(a){var b=a.type,c=a.before,d=a.after,e=a.focusedMsgKey;a=a.prevFocusedMsgKey;this._type=b;this._focusedMsgKey=e;this._prevFocusedMsgKey=a;this.before=c||0;this.after=d||0}var b=a.prototype;b._cloneWith=function(b){return new a(babelHelpers["extends"]({type:this._type,before:this.before,after:this.after,focusedMsgKey:this._focusedMsgKey,prevFocusedMsgKey:this._prevFocusedMsgKey},b))};b._getCursorSize=function(a,b,c,d,e){var f=u(this._type);return f(a,b,c,d,e)};b.getStart=function(a){return Math.max(w(this._focusedMsgKey,a,this._type)-this.before,0)};b.getEnd=function(a){return Math.min(w(this._focusedMsgKey,a,this._type)+this.after+1,a.length)};b.hasBefore=function(a){return w(this._focusedMsgKey,a,this._type)-this.before>0};b.hasAfter=function(a){return w(this._focusedMsgKey,a,this._type)+this.after<a.length-1};b.init=function(b,c,d){d===void 0&&(d=Number.MAX_SAFE_INTEGER);return new a({type:this._type,before:0,after:0,focusedMsgKey:b}).loadBefore(c,{factor:1,maxCount:d}).loadAfter(c,{factor:1,maxCount:d})};b.setFocusedMsgKey=function(a,b){var c=w(this._focusedMsgKey,a,this._type),d=w(b,a,this._type),e;b?(e=this.after-(d-c),d=this.before+(d-c)):(d=this.before+this.after,e=0);return this._cloneWith({focusedMsgKey:b,before:d,after:e})._updatePrev(a)};b.ensureValidFocus=function(a){var b=this._prevFocusedMsgKey!=null&&a.get(this._prevFocusedMsgKey)==null,c=this._focusedMsgKey!=null&&a.get(this._focusedMsgKey)==null,d=this;b&&(d=d._updatePrev(a));c&&(d=d.focusBefore(a));return d};b._updatePrev=function(a){var b=w(this._focusedMsgKey,a,this._type);return this._cloneWith({prevFocusedMsgKey:b>0?(a=a.at(b-1))==null?void 0:a.id:void 0})};b.focusBefore=function(a){return this._cloneWith({focusedMsgKey:this._prevFocusedMsgKey})._updatePrev(a)};b.loadBefore=function(a,b){b=b||{};var c=b.count,d=b.maxCount;d=d===void 0?Number.MAX_SAFE_INTEGER:d;b=b.factor;b=b===void 0?2:b;c=c!=null&&c!==0?c:this._getCursorSize(a,Math.max(0,this.getStart(a)-1),j.BEFORE,b,d);return this._cloneWith({before:this.before+c})};b.loadAfter=function(a,b){b=b||{};var c=b.count,d=b.maxCount;d=d===void 0?Number.MAX_SAFE_INTEGER:d;b=b.factor;b=b===void 0?2:b;c=c!=null&&c!==0?c:this._getCursorSize(a,this.getEnd(a),j.AFTER,b,d);return this._cloneWith({after:this.after+c})};b.loadBeforeCapped=function(a,b){b=b||{};var c=b.count;b=b.factor;b=b===void 0?2:b;return v(a,this.getStart(a),j.AFTER)?this.loadBefore(a,{count:c,factor:b}):this};b.resetBeforeCursor=function(a,b){b===void 0&&(b=Number.MAX_SAFE_INTEGER);if(!v(a,this.getStart(a),j.AFTER)){var c=Math.max(0,this.getEnd(a)-1);a=this._getCursorSize(a,c,j.BEFORE,2,b);return this._cloneWith({before:Math.min(this.before,a)})}return this};return a}();function w(a,b,c){if(a){a=b.get(a);a=b.indexOf(a);if(a!==-1)return a}return t(c)===i.RECENT_AT_TOP?0:b.length-1}g.RENDER_CURSOR=i;g.RenderCursor=a}),98); __d("WAWebReportedMsgSubtitle.react",["fbt","WAWebText.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react"),l={reportedBy:{fontSize:"x1f6kntn",color:"x16cd2qt",$$css:!0}};function a(a){var b=a.msg,e=a.onMsgFooterClick;a=(a=b.reporterJidList)==null?void 0:a.length;a=h._(/*BTDS*/"__JHASH__kUiEhZI_7mR__JHASH__",[h._plural(a,"number_of_reporter")]);a=k.jsx(d("WAWebText.react").WAWebTextSmall,{as:"span",children:h._(/*BTDS*/"__JHASH__wd7naa-Kbsz__JHASH__",[h._param("number_of_members_str",k.jsx(d("WAWebText.react").WDSClickableText,{color:"teal",onClick:function(){return e==null?void 0:e(b)},children:a}))])});a=k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(l.reportedBy,d("WAWebUISpacing").uiMargin.start36,d("WAWebUISpacing").uiMargin.top8),{children:a}));return k.jsx(k.Fragment,{children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewsletterDeleteJob",["WAJobOrchestratorTypes","WALogger","WAWebJidToWid","WAWebMexDeleteNewsletterJob","WAWebNewsletterDeleteChatJob","WAWebNewsletterMetadataJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][deleteNewsletter] Failed to delete newsletter"]);h=function(){return a};return a}function a(a){return d("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("deleteNewsletter",b("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{yield d("WAWebMexDeleteNewsletterJob").mexDeleteNewsletter(a);yield d("WAWebNewsletterMetadataJob").deleteNewsletterMetadata(a.toString());yield d("WAWebNewsletterDeleteChatJob").deleteNewsletterChat(d("WAWebJidToWid").newsletterJidToWid(a));yield d("WAWebNewsletterMetadataJob").deleteNewsletterPicture(a.toString());return!0}catch(a){d("WALogger").ERROR(h()).tags("newsletter").devConsole(a).sendLogs("newsletter-delete-job-fail");throw a}}),{priority:d("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}g.deleteNewsletter=a}),98); __d("WAWebNewsletterDeleteAction",["WAJids","WALogger","WAWebChatGetters","WAWebNewsletterBackendQueues","WAWebNewsletterBridgeApi","WAWebNewsletterDeleteJob","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){function h(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][deleteNewsletterAction] Failed to delete"]);h=function(){return a};return a}function i(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][deleteNewsletterAction] End"]);i=function(){return a};return a}function j(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][deleteNewsletterAction] called with a non-newsletter chat"]);j=function(){return a};return a}function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["[newsletters][deleteNewsletterAction] Start"]);k=function(){return a};return a}function a(a){return d("WAWebNewsletterBackendQueues").newsletterDeleteQueue.enqueue(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("WALogger").DEV(k());if(!d("WAWebChatGetters").getIsNewsletter(a)){d("WALogger").ERROR(j()).tags("newsletter").devConsole(a).sendLogs("delete-not-a-newsletter");return}var b=d("WAJids").toNewsletterJid(a.id.toJid());try{yield d("WAWebNewsletterDeleteJob").deleteNewsletter(b),d("WAWebNewsletterBridgeApi").NewsletterBridgeApi.deleteNewsletter({id:a.id,keep:!1}),d("WALogger").DEV(i())}catch(a){d("WALogger").ERROR(h()).tags("newsletter").devConsole(b).sendLogs("newsletter-failed-to-delete");throw a}}))}g.deleteNewsletterAction=a}),98); __d("WAWebPhoneNumberConfirmationModal.react",["fbt","Promise","WACcToIso","WAIsoToCc","WAPhoneFindCC","WAPromiseLoop","WAWebButton.react","WAWebFbtCommon","WAWebFlex.react","WAWebLinkDevicePhoneNumberEntryInputFormatUtils","WAWebLinkDevicePhoneNumberEntryScreen.react","WAWebModal.react","WAWebModalManager","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUserPrefsMeUser","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useRef,n=e.useState,o={error:{color:"x1sr8853",fontSize:"x1nxh6w3",$$css:!0}};function a(a){var e=a.actions,f=a.actionText,g=a.actionType,j=a.contentText,p=a.onCancel,q=a.onCompletion,r=a.successText;a=a.tsNavigationData;var s=n(!1),t=s[0],u=s[1];s=n(!1);var v=s[0],w=s[1];s=n(!1);var x=s[0],y=s[1],z=m(e);s=n(null);e=s[0];var A=s[1];s=n(function(){var a=d("WAWebUserPrefsMeUser").getMeUser();a=a.user;a=d("WAPhoneFindCC").findCC(a);return c("WACcToIso")[parseInt(a,10)]});var B=s[0],C=s[1];s=n("");var D=s[0],E=s[1],F=m(null),G=l(function(){var a=d("WAWebToast.react").genId();d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{msg:r,id:a}))},[r]),H=l(function(){u(!0);var a=z.current;d("WAPromiseLoop").promiseLoop(function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(c){var d=a[0],e=d.action,f=d.onSuccess,g=d.onError;d=d.errorMessage;try{yield e(),f==null?void 0:f(),a.shift(),a.length===0&&c()}catch(a){return(i||(i=b("Promise"))).reject({error:a,errorMessage:d,onError:g})}});return function(a){return c.apply(this,arguments)}}()).then(function(){y(!1),G(),q()})["catch"](function(a){var b=a.error,c=a.errorMessage;a=a.onError;y(!0);A(c);a==null?void 0:a(b)})["finally"](function(){u(!1)})},[q,G]);s=l(function(a,b){w(!1),C(a),E(b)},[]);var I=l(function(){if(B==null||!d("WAWebLinkDevicePhoneNumberEntryInputFormatUtils").isPhoneNumberValid(c("WAIsoToCc")[B],D)){var a;w(!0);(a=F.current)==null?void 0:a.focus();return}a=""+c("WAIsoToCc")[B]+D;a===d("WAWebUserPrefsMeUser").getMeUser().user&&void H()},[H,D,B]),J=l(function(){d("WAWebModalManager").ModalManager.close(),p==null?void 0:p()},[p]);J=k.jsx(d("WAWebButton.react").Button,{testid:void 0,type:"secondary",onClick:J,disabled:t,children:c("WAWebFbtCommon")("Cancel")});f=x?c("WAWebFbtCommon")("Try again"):f;g=k.jsx(d("WAWebButton.react").Button,{testid:void 0,type:x?"primary":g,onClick:I,disabled:D===""||t,spinner:t,children:f});t=k.jsxs(d("WAWebButton.react").ButtonGroup,{direction:"horizontal",children:[J,g]});f=x?k.jsx(d("WAWebText.react").WAWebTextMuted,{testid:void 0,children:e}):k.jsx(d("WAWebText.react").WAWebTextLarge,{testid:void 0,children:j});J=x?null:k.jsxs(k.Fragment,{children:[k.jsx(d("WAWebLinkDevicePhoneNumberEntryScreen.react").PhoneNumberSection,{shouldDisplayError:v,phoneNumberWithoutCountryCode:D,selectedCountryId:B,onSubmit:I,onChangePhoneNumber:s,onChangeSelectedCountry:C,isInsideModal:!0}),v&&k.jsx(d("WAWebFlex.react").FlexRow,{testid:void 0,xstyle:[d("WAWebUISpacing").uiMargin.top10,o.error],children:h._(/*BTDS*/"__JHASH__AGO6NAJyWe___JHASH__")})]});return k.jsxs(d("WAWebModal.react").Modal,{testid:void 0,type:x?d("WAWebModal.react").ModalTheme.Small:d("WAWebModal.react").ModalTheme.DeleteNewsletter,actions:t,overflow:"visible",tsNavigationData:a,children:[k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:d("WAWebUISpacing").uiMargin.bottom10,children:f}),J]})}a.displayName=a.name+" [from "+f.id+"]";g.PhoneNumberConfirmationModal=a}),226); __d("WAWebNewsletterDeleteModal.react",["fbt","WAWebDrawerManager","WAWebEmojiText.react","WAWebModalManager","WAWebNewsletterDeleteAction","WAWebPhoneNumberConfirmationModal.react","WAWebWamEnumThreadType","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useCallback;function a(a){var b=a.chat;a=d("useWAWebModelValues").useModelValues(b,["name"]);var c=l(function(){d("WAWebDrawerManager").DrawerManager.closeDrawerRight(),d("WAWebModalManager").ModalManager.close()},[]),e=[{action:function(){return d("WAWebNewsletterDeleteAction").deleteNewsletterAction(b)},errorMessage:h._(/*BTDS*/"__JHASH__juzGgahss1L__JHASH__")}];return k.jsx(d("WAWebPhoneNumberConfirmationModal.react").PhoneNumberConfirmationModal,{actions:e,actionType:"solid-warning",actionText:h._(/*BTDS*/"__JHASH__JNW4yIUPOTX__JHASH__"),contentText:h._(/*BTDS*/"__JHASH__nTtDB3v5vuG__JHASH__"),successText:h._(/*BTDS*/"__JHASH__Y48p3PaYKKr__JHASH__",[h._param("channel-name",k.jsx(d("WAWebEmojiText.react").EmojiText,{text:a.name}))]),onCompletion:c,tsNavigationData:{surface:"channel-delete-page",extras:{channelWid:b.id,threadType:d("WAWebWamEnumThreadType").THREAD_TYPE.CHANNEL}}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewsletterDrawerBodyParagraph.react",["WAWebText.react","WAWebUISpacing","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={row:{display:"x78zum5",width:"xh8yej3",$$css:!0},paragraph:{flexGrow:"x1iyjqo2",$$css:!0}};function a(a){var b=a.description,e=a.icon;a=a.title;return j.jsxs("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props([k.row,d("WAWebUISpacing").uiMargin.vert15]),{children:[j.jsx("div",babelHelpers["extends"]({className:"xvy4d1p xxk0z11"},{children:e})),j.jsxs("div",babelHelpers["extends"]({},h.props([k.paragraph,d("WAWebUISpacing").uiMargin.horiz16]),{children:[j.jsx(d("WAWebText.react").WAWebTextTitle,{as:"p",weight:"normal",color:"primary",children:a}),j.jsx(d("WAWebText.react").WAWebTextMuted,{as:"p",xstyle:d("WAWebUISpacing").uiMargin.top8,children:b})]}))]}))}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterDrawerBodyParagraph=a}),98); __d("WAWebNewsletterImageWithAction.react",["WAWebDetailImage.react","WAWebUISpacing","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={badge:{zIndex:"xa1v5g2",bottom:"x1c56n8",end:"x3i2s9x",left:null,right:null,position:"x1n2onr6",marginEnd:"x1l75z5i",borderTopWidth:"xmn4e3e",borderEndWidth:"x10qsr78",borderBottomWidth:"x2x41l1",borderStartWidth:"x19jh3bc",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopColor:"x1s0ki91",borderEndColor:"x1mn67wr",borderBottomColor:"x1sik5lz",borderStartColor:"x26ctlz",color:"xzqyxu6",borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",backgroundColor:"x2hu6h8",$$css:!0},primaryColor:{backgroundColor:"x1ooda66",$$css:!0},dangerColor:{backgroundColor:"x2hu6h8",$$css:!0}};function a(a){var b=a.Icon,c=a.actionTheme;a=a.chat;return i.jsxs(i.Fragment,{children:[i.jsx(d("WAWebDetailImage.react").DetailImage,{id:a.id,size:104,quality:d("WAWebDetailImage.react").DetailImageQuality.High,shape:d("WAWebDetailImage.react").DetailImageShape.Circle}),i.jsx(b,{width:24,height:24,xstyle:[j.badge,d("WAWebUISpacing").uiPadding.all5,c==="primary"&&j.primaryColor,c==="danger"&&j.dangerColor]})]})}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterImageWithAction=a}),98); __d("WAWebNewsletterDeleteDrawer.react",["fbt","WAWebButton.react","WAWebChatHistoryIcon.react","WAWebCommonNewsletterStrings","WAWebDeleteIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebEmojiText.react","WAWebFlex.react","WAWebModalManager","WAWebNewsletterDeleteModal.react","WAWebNewsletterDrawerBodyParagraph.react","WAWebNewsletterGatingUtils","WAWebNewsletterImageWithAction.react","WAWebNewsletterWamoSubUtils","WAWebText_DONOTUSE.react","WAWebUISpacing","cr:640","react","useWAWebModelValues"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useCallback,m={container:{display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",justifyContent:"x1nhvcw1",paddingTop:"xijc0j3",paddingEnd:"xs022h5",paddingBottom:"xq1608w",paddingStart:"x8aayfw",flexGrow:"x1iyjqo2",$$css:!0},buttonContainer:{textAlign:"x2b8uid",$$css:!0},header:{textAlign:"x2b8uid",lineHeight:"x1evy7pa",$$css:!0},icon:{color:"x40yjcy",$$css:!0}};function a(a){var e=a.chat,f=a.onBack,g=a.onCancel;a=a.ref;var i=d("useWAWebModelValues").useModelValues(e,["newsletterMetadata","contact"]),j=d("useWAWebModelValues").useModelValues(i.contact,["id","name"]);i=d("useWAWebModelValues").useOptionalModelValues(i.newsletterMetadata,["suspended","wamoSubPlanId"]);j=h._(/*BTDS*/"__JHASH__x_BaZStAXFH__JHASH__",[h._param("channel-name",k.jsx(d("WAWebEmojiText.react").EmojiText,{text:j.name}))]);var n=[];n.push({title:h._(/*BTDS*/"__JHASH__ihjFDRMC5_s__JHASH__"),description:h._(/*BTDS*/"__JHASH__BgqGuUjX0wa__JHASH__"),Icon:d("WAWebDeleteIcon.react").DeleteIcon,key:"channel-will-be-permanently-deleted"});b("cr:640")!=null&&d("WAWebNewsletterWamoSubUtils").newsletterSupportsSubscriptions(i)&&d("WAWebNewsletterGatingUtils").isWamoSubCreatorExperienceSupported()?((i==null?void 0:i.suspended)!==!0&&n.push(b("cr:640").getNewsletterDeleteDialogSuspendedWamoSubWarningMessageContent()),n.push(b("cr:640").getNewsletterDeleteDialogWamoSubWarningMessageContent())):(i==null?void 0:i.suspended)!==!0&&n.push({title:h._(/*BTDS*/"__JHASH__j_b9kDIqHvR__JHASH__"),description:h._(/*BTDS*/"__JHASH__M8mZi9ltdqx__JHASH__"),Icon:d("WAWebChatHistoryIcon.react").ChatHistoryIcon,key:"followers-can-see-past-activity"});i=l(function(){d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebNewsletterDeleteModal.react"),{chat:e}))},[e]);return k.jsxs(c("WAWebDrawer.react"),{ref:a,testid:void 0,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:d("WAWebCommonNewsletterStrings").getDeleteChannelText(),type:d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:f,onCancel:g}),k.jsx(c("WAWebDrawerBody.react"),{children:k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,xstyle:m.container,children:[k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(d("WAWebNewsletterImageWithAction.react").NewsletterImageWithAction,{chat:e,actionTheme:"danger",Icon:d("WAWebDeleteIcon.react").DeleteIcon})}),k.jsx(d("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:k.jsx(d("WAWebText_DONOTUSE.react").TextHeader,{xstyle:[m.header,d("WAWebUISpacing").uiMargin.top16,d("WAWebUISpacing").uiMargin.bottom16],size:"24",color:"dark",weight:"medium",children:j})}),n.map(function(a){var b=a.Icon,c=a.title,e=a.description;a=a.key;return k.jsx(d("WAWebNewsletterDrawerBodyParagraph.react").NewsletterDrawerBodyParagraph,{icon:k.jsx(b,{width:24,height:24,xstyle:m.icon}),title:c,description:e},a)}),k.jsx(d("WAWebFlex.react").FlexRow,{xstyle:[m.buttonContainer,d("WAWebUISpacing").uiMargin.top16],children:k.jsx(d("WAWebButton.react").Button,{testid:void 0,type:"solid-warning",onClick:i,children:h._(/*BTDS*/"__JHASH__BtpYdRnytmp__JHASH__")})})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebReportContactPopup.react",["fbt","WAWebBlockBusinessPopup.react","WAWebBlocklistUtils","WAWebChatGetters","WAWebChatGroupUtils","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFrontendContactGetters","WAWebModalManager","WAWebName.react","WAWebReportPopupBase.react","WAWebSendSpamChatAction","WAWebUseBusinessProfile.react","asyncToGeneratorRuntime","react","useWAWebContactValues"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var e=a.chat,f=a.spamFlow;a=(a=d("WAWebUseBusinessProfile.react").useBusinessProfile(e.contact.id,["isBizBot3p"]))!=null?a:{};a=a.isBizBot3p;var g=a===void 0?!1:a;a=d("useWAWebContactValues").useContactValues(e.contact.id,[d("WAWebFrontendContactGetters").getIsContactBlocked]);a=a[0];var i=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield d("WAWebSendSpamChatAction").sendReport({chat:e,spamFlow:f}),d("WAWebModalManager").ModalManager.close()});return function(){return a.apply(this,arguments)}}(),k=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(g||e.contact.isBusiness){yield d("WAWebSendSpamChatAction").sendReport({chat:e,spamFlow:f});d("WAWebModalManager").ModalManager.close();var a=d("WAWebBlocklistUtils").getBlockEntryPointFromSpamFlow(f);d("WAWebModalManager").ModalManager.open(j.jsx(c("WAWebBlockBusinessPopup.react"),{contact:e.contact,blockEntryPoint:a,withReport:!1}));return}void d("WAWebSendSpamChatAction").sendReportBlock({chat:e,spamFlow:f});d("WAWebModalManager").ModalManager.close()});return function(){return a.apply(this,arguments)}}(),l=j.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getBlockingReportingFaqUrl(),testid:void 0,children:c("WAWebFbtCommon")("Learn more")}),m=j.jsx(d("WAWebName.react").Name,{contact:e.contact}),n=function(){if(g)return h._(/*BTDS*/"__JHASH__NpI1n2ahQii__JHASH__",[h._param("link to learn more",l)]);return e.contact.isBusiness?h._(/*BTDS*/"__JHASH__WUZ691sYnoH__JHASH__",[h._param("link to learn more",l)]):h._(/*BTDS*/"__JHASH__8K94Gf1fnUS__JHASH__",[h._param("link to learn more",l)])};return j.jsx(d("WAWebReportPopupBase.react").ReportPopupBase,{hasAdditionalAction:!a,reportSubText:n(),additionalActionLabelText:d("WAWebReportPopupBase.react").getBlockLabelText(g,m),additionalActionSubText:d("WAWebReportPopupBase.react").getBlockSubText({isBizBot3p:g,isBusiness:e.contact.isBusiness,isGroup:d("WAWebChatGetters").getIsGroup(e),isCommunityAnnouncementGroup:d("WAWebChatGroupUtils").isCommunityAnnouncementGroup(e)}),onSendReport:i,onSendReportAndAdditionalAction:k})}a.displayName=a.name+" [from "+f.id+"]";g.ReportContactPopupV2=a}),226); __d("WAWebWdsPictoSuccessTickIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(a,b,c,d,e,f,g){var h,i,j=h||c("react"),k="wds-picto-success-tick";function a(a){var b=a.iconXstyle,e=a.height,f=a.width,g=a.viewBox,h=a.innerStyles;a=babelHelpers.objectWithoutPropertiesLoose(a,["iconXstyle","height","width","viewBox","innerStyles"]);var l;if(g){var m=g.x;m=m===void 0?0:m;var n=g.y;n=n===void 0?0:n;var o=g.width;o=o===void 0?0:o;g=g.height;g=g===void 0?0:g;l=[m,n,o,g].join(" ")}m=88;n=88;(e!=null||f!=null)&&(m=e,n=f);return j.jsx(d("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers["extends"]({name:k},a,{children:j.jsxs("svg",{viewBox:(o=l)!=null?o:"0 0 88 88",height:m,width:n,preserveAspectRatio:"xMidYMid meet",className:(i||(i=c("stylex")))(b),fill:"none",children:[j.jsx("title",{children:k}),j.jsx("path",{d:"M70.1257 44.0009C70.1257 58.4271 58.4266 70.1262 44.0005 70.1262C29.5743 70.1262 17.8752 58.4271 17.8752 44.0009C17.8752 29.5748 29.5639 17.8757 43.9901 17.8757C58.4162 17.8757 70.1153 29.5748 70.1153 44.0009H70.1257Z",fill:"#25D366",className:i(h==null?void 0:h.inner)}),j.jsx("path",{d:"M43.995 76.9903C62.2098 76.9903 77.0002 62.2207 77.0002 43.9851C77.0002 25.7495 62.2306 11.0007 43.995 11.0007C25.7594 11.0007 11.0002 25.7703 11.0002 43.9955C11.0002 62.2207 25.7698 77.0007 43.995 77.0007V76.9903Z",fill:"#25D366",className:i(h==null?void 0:h.inner)}),j.jsx("path",{d:"M70.1257 44.0009C70.1257 58.4271 58.4266 70.1262 44.0005 70.1262C29.5743 70.1262 17.8752 58.4271 17.8752 44.0009C17.8752 29.5748 29.5639 17.8757 43.9901 17.8757C58.4162 17.8757 70.1153 29.5748 70.1153 44.0009H70.1257Z",fill:"#25D366",className:i(h==null?void 0:h.inner)}),j.jsx("path",{d:"M59.6711 33.9761L58.5524 32.846C57.0963 31.3752 54.7347 31.3752 53.2787 32.846L41.4172 44.8279L34.7407 38.0836C33.2847 36.6128 30.923 36.6128 29.4492 38.0836L28.3306 39.2136C26.8745 40.6844 26.8745 43.0701 28.3306 44.5409L38.878 55.1954C40.2808 56.6124 42.5536 56.6124 43.9564 55.1954L59.6711 39.3212C61.1271 37.8504 61.1271 35.4648 59.6711 33.9761Z",fill:"#25D366",className:i(h==null?void 0:h.inner)}),j.jsx("path",{d:"M43.995 76.9903C62.2098 76.9903 77.0002 62.2207 77.0002 43.9851C77.0002 25.7495 62.2306 11.0007 43.995 11.0007C25.7594 11.0007 11.0002 25.7703 11.0002 43.9955C11.0002 62.2207 25.7698 77.0007 43.995 77.0007V76.9903Z",fill:"#25D366",className:i(h==null?void 0:h.inner)}),j.jsx("path",{d:"M70.1257 44.0009C70.1257 58.4271 58.4266 70.1262 44.0005 70.1262C29.5743 70.1262 17.8752 58.4271 17.8752 44.0009C17.8752 29.5748 29.5639 17.8757 43.9901 17.8757C58.4162 17.8757 70.1153 29.5748 70.1153 44.0009H70.1257Z",fill:"#25D366",className:i(h==null?void 0:h.inner)}),j.jsx("path",{d:"M70.1257 44.0009C70.1257 58.4271 58.4266 70.1262 44.0005 70.1262C29.5743 70.1262 17.8752 58.4271 17.8752 44.0009C17.8752 29.5748 29.5639 17.8757 43.9901 17.8757C58.4162 17.8757 70.1153 29.5748 70.1153 44.0009H70.1257Z",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10,className:i(h==null?void 0:h.outline)}),j.jsx("path",{d:"M43.995 76.9903C62.2098 76.9903 77.0002 62.2207 77.0002 43.9851C77.0002 25.7495 62.2306 11.0007 43.995 11.0007C25.7594 11.0007 11.0002 25.7703 11.0002 43.9955C11.0002 62.2207 25.7698 77.0007 43.995 77.0007V76.9903Z",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10,className:i(h==null?void 0:h.outline)}),j.jsx("path",{d:"M70.1257 44.0009C70.1257 58.4271 58.4266 70.1262 44.0005 70.1262C29.5743 70.1262 17.8752 58.4271 17.8752 44.0009C17.8752 29.5748 29.5639 17.8757 43.9901 17.8757C58.4162 17.8757 70.1153 29.5748 70.1153 44.0009H70.1257Z",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10,className:i(h==null?void 0:h.outline)}),j.jsx("path",{d:"M59.6711 33.9761L58.5524 32.846C57.0963 31.3752 54.7347 31.3752 53.2787 32.846L41.4172 44.8279L34.7407 38.0836C33.2847 36.6128 30.923 36.6128 29.4492 38.0836L28.3306 39.2136C26.8745 40.6844 26.8745 43.0701 28.3306 44.5409L38.878 55.1954C40.2808 56.6124 42.5536 56.6124 43.9564 55.1954L59.6711 39.3212C61.1271 37.8504 61.1271 35.4648 59.6711 33.9761Z",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10,className:i(h==null?void 0:h.outline)}),j.jsx("path",{d:"M43.995 76.9903C62.2098 76.9903 77.0002 62.2207 77.0002 43.9851C77.0002 25.7495 62.2306 11.0007 43.995 11.0007C25.7594 11.0007 11.0002 25.7703 11.0002 43.9955C11.0002 62.2207 25.7698 77.0007 43.995 77.0007V76.9903Z",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10,className:i(h==null?void 0:h.outline)}),j.jsx("path",{d:"M70.1257 44.0009C70.1257 58.4271 58.4266 70.1262 44.0005 70.1262C29.5743 70.1262 17.8752 58.4271 17.8752 44.0009C17.8752 29.5748 29.5639 17.8757 43.9901 17.8757C58.4162 17.8757 70.1153 29.5748 70.1153 44.0009H70.1257Z",stroke:"#111B21",strokeWidth:1.5,strokeMiterlimit:10,className:i(h==null?void 0:h.outline)})]})}))}a.displayName=a.name+" [from "+f.id+"]";g.WdsPictoSuccessTickIcon=a}),98); __d("WAWebNewsletterComplianceReportPopup.react",["fbt","WAWebDrawerManager","WAWebExternalLink.react","WAWebFbtCommon","WAWebFlex.react","WAWebIconPopup.react","WAWebPrivacyTipBanner.react","WAWebSettingsConst","WAWebSettingsFlow.react","WAWebSettingsSecurityIcon.react","WAWebWdsPictoSuccessTickIcon.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react"),k={iconColor:{color:"xhslqc4",$$css:!0}};function a(a){var b=a.learnMoreUrl;return j.jsx(d("WAWebIconPopup.react").IconPopup,{icon:d("WAWebWdsPictoSuccessTickIcon.react").WdsPictoSuccessTickIcon,useFilledIcon:!1,iconSize:"small",title:h._(/*BTDS*/"__JHASH__06smA6QvZcy__JHASH__"),description:h._(/*BTDS*/"__JHASH__zFAc2pwWFi-__JHASH__"),extraContent:j.jsx(d("WAWebFlex.react").FlexRow,{paddingTop:16,testid:void 0,children:j.jsx(d("WAWebPrivacyTipBanner.react").PrivacyTipBanner,{image:j.jsx(d("WAWebSettingsSecurityIcon.react").SettingsSecurityIcon,{iconXstyle:k.iconColor}),testId:"newsletter-dsa-report-learn-more",text:h._(/*BTDS*/"__JHASH__V7ffYnKlmYK__JHASH__"),actionText:c("WAWebFbtCommon")("Learn more"),actionTextColor:"blue",onAction:function(){return d("WAWebExternalLink.react").openExternalLink(b)}})}),primaryActionText:c("WAWebFbtCommon")("Close"),secondaryActionText:h._(/*BTDS*/"__JHASH__3S3i4oFmglg__JHASH__"),onSecondaryActionClick:function(){d("WAWebDrawerManager").DrawerManager.openDrawerLeft(j.jsx(d("WAWebSettingsFlow.react").SettingsFlow,{initialStep:d("WAWebSettingsConst").SettingsSteps.NewsletterReports}))}})}a.displayName=a.name+" [from "+f.id+"]";g.NewsletterComplianceReportPopup=a}),226); __d("useWAWebShouldShowNewsletterUnfollowUpsell",["WAWebCommonNewsletterEnums","WAWebFrontendChatGetters","WAWebNewsletterGatingUtils","WAWebNewsletterWamoSubUtils","useWAWebChatValues"],(function(a,b,c,d,e,f,g){function a(a){a=d("useWAWebChatValues").useChatValues(a.id,[d("WAWebFrontendChatGetters").getNewsletterMetadata]);a=a[0];var b=d("WAWebNewsletterWamoSubUtils").iHavePaidSubscription(a)&&d("WAWebNewsletterGatingUtils").isWamoSubConsumerExperienceEnabled();a=(a==null?void 0:a.membershipType)===d("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber&&!b;return a}g.useShouldShowNewsletterUnfollowUpsell=a}),98); __d("WAWebReportedMsg.react",["WANullthrows","WAWebChevronIcon.react","WAWebClock","WAWebDetailImage.react","WAWebDisplayType","WAWebDomScroll","WAWebEmojiText.react","WAWebFocusTracer","WAWebFrontendContactGetters","WAWebGalleryMsg.react","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebMessagePosition","WAWebReportedMsgSubtitle.react","WAWebStylesEnv","WAWebUISpacing","WAWebWrapper.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.useImperativeHandle,l=b.useRef,m=b.useState,n={author:{marginEnd:"xeyog9w",$$css:!0}};function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),f=e.msg,g=e.currSelection,h=e.activeSelection,i=e.onClickMsg;a=e.testid;a=e.onMsgFooterClick;var o=l(null),p=l(null),q=l(null),r=m(!1),s=r[0],t=r[1];r=m(function(){return g?g.value===f:!1});var u=r[0],v=r[1];r=m(function(){return h?h.value===f:!1});var w=r[0],x=r[1];r=m(!1);var y=r[0],z=r[1];r=function(a,b){a=a==="focus";if(a){var e=q.current;e&&(c("WAWebFocusTracer").focus(e),b&&d("WAWebDomScroll").scrollIntoViewIfNeeded(e))}v(a)};var A=function(a,b){if(a==="focus"){var e=q.current;e&&(c("WAWebFocusTracer").focus(e),b&&d("WAWebDomScroll").scrollIntoViewIfNeeded(e))}x(!!a)};d("useWAWebListener").useListener(g,f.id.toString(),r);d("useWAWebListener").useListener(h,f.id.toString(),A);r=function(){s||t(!0)};A=function(){s||t(!0)};var B=function(){s&&t(!1)},C=function(a){a.stopPropagation(),a.preventDefault(),i==null?void 0:i(f)},D=function(){var a;(a=o.current)==null?void 0:a.openContextMenu()},E=function(){var a;(a=p.current)==null?void 0:a.indicateFocus()},F=function(a){z(!0),E()},G=function(a){z(!1)},H=function(){return o.current},I=function(){return c("WANullthrows")(q.current)};k(b,function(){return{getElement:I,getWrapperRef:H}});b=d("WAWebFrontendContactGetters").getFormattedName(f.senderObj);b=j.jsxs("div",babelHelpers["extends"]({},{0:{className:"x78zum5 x6s0dn4 xwoyzhm x1f6kntn x1fcty0u x9307sf"},1:{className:"x78zum5 x6s0dn4 xwoyzhm x1f6kntn x1fcty0u x9307sf xwgq4w4"}}[!!d("WAWebStylesEnv").hasEmoji<<0],{children:[j.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x1c4vz4f x1nhvcw1 x6ikm8r x10wlt62 xlyipyv xuxw1ft"},{children:[j.jsx("div",babelHelpers["extends"]({className:"x1okw0bk x1w0mnb"},{children:j.jsx(d("WAWebDetailImage.react").DetailImage,{id:f.senderObj.id,size:26})})),j.jsx(d("WAWebEmojiText.react").EmojiText,{xstyle:n.author,text:b,direction:"auto",titlify:!0})]})),j.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2 x2lah0s x1mnrxsn x1pg5gke x1qb5hxa x40yjcy xp4054r x11njtxf"},{dir:"auto",children:d("WAWebClock").Clock.relativeStr(f.t)})),j.jsx("div",babelHelpers["extends"]({className:"x1okw0bk x1y332i5 x1mnrxsn xeu7kla"},{children:j.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,height:21})}))]}));C={enter:C};C[c("WAWebL10N").LR("right","left")]=D;D=j.jsx(c("WAWebReportedMsgSubtitle.react"),{msg:f,onMsgFooterClick:a});return j.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{xstyle:d("WAWebUISpacing").marginBottom8,ref:q,handlers:C,onFocus:F,onBlur:G,children:j.jsxs(c("WAWebGalleryMsg.react"),{ref:p,hover:s,current:u&&y,active:w,onClick:function(){return e.onClickMsg&&e.onClickMsg(f)},onMouseEnter:A,onMouseOver:r,onMouseLeave:B,testid:void 0,footer:D,children:[b,j.jsx(d("WAWebWrapper.react").Wrapper,{msg:f,ref:o,current:u&&y,displayType:d("WAWebDisplayType").DISPLAY_TYPE.REPORTED_MSG,isMsgVisible:e.isMsgVisible,selectable:e.selectable,position:d("WAWebMessagePosition").MsgPosition.END,tailOverride:"left",onMessageClick:e.onMessageClick},f.id.toString())]},"rta-gallery-msg-"+f.id.toString())})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebStarredMsg.react",["WANullthrows","WAWebChatGetters","WAWebChevronIcon.react","WAWebClock","WAWebContactCollection","WAWebDetailImage.react","WAWebDisplayType","WAWebDomScroll","WAWebEmojiText.react","WAWebFocusTracer","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebGalleryMsg.react","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebMessageKeptBySubtitle.react","WAWebMessagePosition","WAWebStylesEnv","WAWebWidFormat","WAWebWrapper.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.useImperativeHandle,l=b.useRef,m=b.useState,n={chat:{marginStart:"x1w4ip6v",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",$$css:!0},author:{marginEnd:"xeyog9w",$$css:!0}};function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]),f=e.msg,g=e.selectedMessages;a=e.displayType;var h=e.currSelection,i=e.activeSelection,o=e.onClickMsg,p=e.testid,q=l(null),r=l(null),s=l(null);p=m(!1);var t=p[0],u=p[1];p=m(function(){return h?h.value===f:!1});var v=p[0],w=p[1];p=m(function(){return i?i.value===f:!1});var x=p[0],y=p[1];p=m(!1);var z=p[0],A=p[1];p=function(a,b){a=a==="focus";if(a){var e=s.current;e&&(c("WAWebFocusTracer").focus(e),b&&d("WAWebDomScroll").scrollIntoViewIfNeeded(e))}w(a)};var B=function(a,b){if(a==="focus"){var e=s.current;e&&(c("WAWebFocusTracer").focus(e),b&&d("WAWebDomScroll").scrollIntoViewIfNeeded(e))}y(!!a)};d("useWAWebListener").useListener(h,f.id.toString(),p);d("useWAWebListener").useListener(i,f.id.toString(),B);p=function(){t||u(!0)};B=function(){t||u(!0)};var C=function(){t&&u(!1)},D=function(a){a.stopPropagation(),a.preventDefault(),o==null?void 0:o(f)},E=function(){var a;(a=q.current)==null?void 0:a.openContextMenu()},F=function(){var a;(a=r.current)==null?void 0:a.indicateFocus()},G=function(a){A(!0),F()},H=function(a){A(!1)},I=function(){return q.current},J=function(){return c("WANullthrows")(s.current)};k(b,function(){return{getElement:J,getWrapperRef:I}});b=d("WAWebFrontendContactGetters").getFormattedName(f.senderObj);var K=d("WAWebChatGetters").getIsUser(d("WAWebFrontendMsgGetters").getChat(f))?d("WAWebFrontendContactGetters").getFormattedName(d("WAWebContactCollection").ContactCollection.assertGet(f.to))?d("WAWebFrontendContactGetters").getFormattedName(d("WAWebContactCollection").ContactCollection.assertGet(f.to)):d("WAWebWidFormat").widToFormattedUser(f.to):d("WAWebFrontendMsgGetters").getChat(f).title();b=a===d("WAWebDisplayType").DISPLAY_TYPE.GALLERY?null:j.jsxs("div",babelHelpers["extends"]({},{0:{className:"x78zum5 x6s0dn4 xwoyzhm x1f6kntn x1fcty0u x9307sf"},1:{className:"x78zum5 x6s0dn4 xwoyzhm x1f6kntn x1fcty0u x9307sf xwgq4w4"}}[!!d("WAWebStylesEnv").hasEmoji<<0],{children:[j.jsxs("div",babelHelpers["extends"]({className:"x78zum5 x1c4vz4f x1nhvcw1 x6ikm8r x10wlt62 xlyipyv xuxw1ft"},{children:[j.jsx("div",babelHelpers["extends"]({className:"x1okw0bk x1w0mnb"},{children:j.jsx(d("WAWebDetailImage.react").DetailImage,{id:f.senderObj.id,size:26})})),j.jsx(d("WAWebEmojiText.react").EmojiText,{xstyle:n.author,text:b,direction:"auto",titlify:!0}),j.jsx("span",babelHelpers["extends"]({},{0:{className:"x1n2onr6 x1okw0bk x1xc55vz x1hmns74 x1y3wzot x1mhyesy x1rmj1tg xszcg87 x13na15d xaawtem x1exyk9b xbbkvkc"},1:{className:"x1n2onr6 x1okw0bk x1xc55vz x1hmns74 x1y3wzot x1mhyesy x1rmj1tg xszcg87 x13na15d xaawtem x1exyk9b xbbkvkc xpk2tj9"}}[!!c("WAWebL10N").isRTL()<<0])),j.jsx(d("WAWebEmojiText.react").EmojiText,{xstyle:n.chat,text:K,direction:"auto",titlify:!0})]})),j.jsx("div",babelHelpers["extends"]({className:"x1iyjqo2 x2lah0s x1mnrxsn x1pg5gke x1qb5hxa x40yjcy xp4054r x11njtxf"},{dir:"auto",children:d("WAWebClock").Clock.relativeStr(f.t)})),j.jsx("div",babelHelpers["extends"]({className:"x1okw0bk x1y332i5 x1mnrxsn xeu7kla"},{children:j.jsx(d("WAWebChevronIcon.react").ChevronIcon,{directional:!0,height:21})}))]}));K={enter:D};K[c("WAWebL10N").LR("right","left")]=E;D=e.selectable===!0||t&&(a===d("WAWebDisplayType").DISPLAY_TYPE.GALLERY||a===d("WAWebDisplayType").DISPLAY_TYPE.GALLERY_LINKS);var L;a===d("WAWebDisplayType").DISPLAY_TYPE.KEPT_MSGS&&(L=j.jsx(c("WAWebMessageKeptBySubtitle.react"),{msg:f}));return j.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:s,handlers:K,onFocus:G,onBlur:H,children:j.jsxs(c("WAWebGalleryMsg.react"),{ref:r,hover:t,current:v&&z,active:x,onClick:function(){return e.onClickMsg&&e.onClickMsg(f,g&&!g.isSelected(f))},onMouseEnter:t?null:B,onMouseOver:t?null:p,onMouseLeave:t?C:null,testid:void 0,children:[b,j.jsx(d("WAWebWrapper.react").Wrapper,{msg:f,ref:q,current:v&&z,displayType:a||d("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS,isMsgVisible:e.isMsgVisible,selectable:D,selectedMessages:g,onMessageSelect:e.onMessageSelect,position:d("WAWebMessagePosition").MsgPosition.END,tailOverride:"left",onProductClick:e.onProductClick,onMessageClick:e.onMessageClick,showProfilePicture:!1},f.id.toString()),L]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98); __d("WAWebMsgDrawer.react",["fbt","WALogger","WAWebChatMessageSearch","WAWebCmd","WAWebCollectionConstants","WAWebContentPlaceholder.react","WAWebDisplayType","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEmptyState.react","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebKeyboardHotKeys.react","WAWebMessagePosition","WAWebMsgType","WAWebNoop","WAWebRefreshIcon.react","WAWebRenderCursor","WAWebReportedMsg.react","WAWebSingleSelection","WAWebSpinner.react","WAWebStarredMsg.react","WAWebTabOrder","WAWebVelocityTransitionGroup","gkx","react","useLazyRef","useWAWebForceUpdate","useWAWebListener","useWAWebStableCallback","useWAWebThrottledCallback","useWAWebUIM","useWAWebUiIdle","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g,h){var i,j;function k(){var a=babelHelpers.taggedTemplateLiteralLoose(["all refs: ",""]);k=function(){return a};return a}function l(){var a=babelHelpers.taggedTemplateLiteralLoose(["invalid ref lookup for ref: "," msg index: ",""]);l=function(){return a};return a}function m(){var a=babelHelpers.taggedTemplateLiteralLoose(["MsgDrawer:loadEarlierMsgs failed\n",""],["MsgDrawer:loadEarlierMsgs failed\\n",""]);m=function(){return a};return a}b=j||d("react");var n=i||(i=c("react")),o=b.useEffect,p=b.useRef,q=b.useState;function r(a){return a.scrollTop+d("WAWebFrontendConstants").SCROLL_FUDGE>a.scrollHeight-a.clientHeight}function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.msgCollection,f=a.chat,g=f===void 0?null:f,i=a.onClose;f=a.title;var j=a.emptyListText,s=a.footerText,t=a.headerMenu,u=a.headerType;u=u===void 0?d("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL:u;var v=a.descriptionSection,w=a.displayType,x=a.testid,aa=a.onMsgFooterClick;x=a.tsNavigationSurface;x=x===void 0?"unknown":x;var ba=c("useWAWebUnmountSignal")(),y=c("useWAWebUIM")(),z=d("useWAWebForceUpdate").useForceUpdateDONOTUSE(),A=c("useWAWebUiIdle")(),B=c("useLazyRef")(function(){return new(c("WAWebSingleSelection"))([],function(a){return a.id.toString()})}),C=c("useLazyRef")(function(){return new(c("WAWebSingleSelection"))([],function(a){return a.id.toString()})}),D=c("useLazyRef")(function(){return new Set()}),E=p(0),F=p({}),G=p(null),H=p(null),I=function(){return d("WAWebRenderCursor").RenderCursor.create({msgCollection:e,type:d("WAWebRenderCursor").RENDER_CURSOR.STARRED_DRAWER}).loadAfter(e,{count:d("WAWebCollectionConstants").MSG_PRELOAD_THRESHOLD})},J=q(I),K=J[0],L=J[1],M=function(){var a=e.toArray();B.current.init(a,!0);C.current.init(a)};J=function(a){M(),z()};var N=function(a,b){b?F.current[a.id.toString()]=b:delete F.current[a.id.toString()]},O=c("useWAWebStableCallback")(function(){var a=g==null?void 0:g.id;if(K.getEnd(e)<e.length)L(K.loadAfter(e));else{if(e.isSynced)return;e.sync(a).then(function(){if(ba.aborted)return;K.hasAfter(e)&&L(K.loadAfter(e))})["catch"](function(a){d("WALogger").LOG(m(),a)})}}),ca=function(){i?i():y==null?void 0:y.requestDismiss()},P=function(a){if(!G.current)return;a=a?a.target:document.activeElement;if(a!==G.current)return;B.current.index<0?B.current.setFirst(!0):B.current.reset(!1)},Q=function(a){a&&a.preventDefault();a=B.current.next();B.current.index!==a&&B.current.setNext(!0)},R=function(a){a&&a.preventDefault();a=B.current.prev();a>-1&&B.current.setPrev(!0)},da=function(a){B.current.setVal(a);C.current.setVal(a);var b={collection:g.msgs,key:a.id,msg:a};void d("WAWebCmd").Cmd.openChatAt({chat:d("WAWebFrontendMsgGetters").getChat(a),msgContext:b})},ea=function(a){B.current.setVal(a),C.current.setVal(a),void d("WAWebCmd").Cmd.openChatAt({chat:d("WAWebFrontendMsgGetters").getChat(a),msgContext:d("WAWebChatMessageSearch").getSearchContext(d("WAWebFrontendMsgGetters").getChat(a),a.id),onSuccess:{mediaMsgToOpenInMediaViewer:a}})},S=function(){var a=e.toArray(),b=e.isSynced?K.getEnd(e):Math.min(K.getEnd(e),a.length);a=a.slice(K.getStart(e),b);E.current=a.length;return a},T=function(a){if(!a)return d("WAWebMessagePosition").MSG_VISIBILITY.BELOW;var b=H.current;if(!b)return;var c=b.previousSibling;if(!c||!(c instanceof HTMLElement))return;c=c.clientHeight;c=b.scrollTop+c;b=c+b.clientHeight;a=a.getElement();if(!a)return d("WAWebMessagePosition").MSG_VISIBILITY.BELOW;if(a.offsetTop+a.clientHeight<=c)return d("WAWebMessagePosition").MSG_VISIBILITY.ABOVE;else if(a.offsetTop>=b)return d("WAWebMessagePosition").MSG_VISIBILITY.BELOW;return d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE},U=function(a){a=F.current[a.toString()];if(!a)return;a=a.getWrapperRef();if(a&&typeof a.getMsgComponentRef==="function")return a.getMsgComponentRef()},fa=function(a,b){b===void 0&&(b=!1);return D.current.has(a.toString())&&(b?!0:U(a))},ga=function(a,b){a.forEach(function(a){if(!b.has(a)){var c=e.get(a);if(c==null?void 0:c.isGif){c=U(a);(c==null?void 0:c.getPlayCount)!=null&&(c.getPlayCount()&&c.pause())}}})},V=c("useWAWebThrottledCallback")(function(){var a=S(),b=new Set(),e=0,f=E.current-1;while(e<f){var g=Math.floor((e+f)/2),h=F.current[a[g].id.toString()];if(!c("gkx")("26258")){var i=h==null?void 0:h.getElement();i||(d("WALogger").WARN(l(),a[g].id.toString(),g),d("WALogger").WARN(k(),Object.keys(F.current).toString()))}T(h)===d("WAWebMessagePosition").MSG_VISIBILITY.ABOVE?e=g+1:f=g}for(i=e;i<a.length;i++){h=F.current[a[i].id.toString()];if(T(h)!==d("WAWebMessagePosition").MSG_VISIBILITY.VISIBLE)break;b.add(a[i].id.toString())}ga(D.current,b);D.current=b},100),ha=c("useWAWebThrottledCallback")(function(a){V(),a.currentTarget&&r(a.currentTarget)&&O()},100);o(function(){M(),!e.isSynced&&e.length<d("WAWebCollectionConstants").PAGE_SIZE&&A(O)},[]);o(function(){V()});d("useWAWebListener").useListener(window,"resize",V);d("useWAWebListener").useListener(e,["reset","sync"],function(){M(),z()});d("useWAWebListener").useListener(e,["add","remove"],J);d("useWAWebListener").useListener(e,"reset",function(){D.current=new Set(),L(I()),O()});var W=e.isSynced,X=e.length;o(function(){!W&&X<d("WAWebCollectionConstants").PAGE_SIZE&&A(O)},[O,A,W,X]);J=S();var Y,Z;e.isSynced&&K.getEnd(e)>=J.length?Y=null:a.msgCollection.syncPromise?Y=n.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1okw0bk xl56j7k x1p5oq8j xwxc41k xt16idv"},{title:h._(/*BTDS*/"__JHASH__tdRLYwdNocz__JHASH__"),children:n.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24})})):Y=n.jsx("div",babelHelpers["extends"]({className:"x78zum5 x1okw0bk xl56j7k x1p5oq8j xwxc41k xt16idv"},{children:n.jsx("div",{title:h._(/*BTDS*/"__JHASH__qUKMplZh2-K__JHASH__"),onClick:O,children:n.jsx(d("WAWebRefreshIcon.react").RefreshIcon,{})})}));Q={down:Q,up:R};R=w===d("WAWebDisplayType").DISPLAY_TYPE.REPORTED_MSG?"reported-msg":"md-chat-search-list";if(J.length>0){J=J.map(function(a){var b=a.type===d("WAWebMsgType").MSG_TYPE.IMAGE||a.type===d("WAWebMsgType").MSG_TYPE.VIDEO||a.type===d("WAWebMsgType").MSG_TYPE.AUDIO;b={msg:a,isMsgVisible:b?fa:c("WAWebNoop"),currSelection:B.current,activeSelection:C.current};return w===d("WAWebDisplayType").DISPLAY_TYPE.REPORTED_MSG?n.jsx(c("WAWebReportedMsg.react"),babelHelpers["extends"]({ref:function(b){return void N(a,b)},onMsgFooterClick:aa,onClickMsg:da},b),"rta-msg-"+a.id.toString()):n.jsx(c("WAWebStarredMsg.react"),babelHelpers["extends"]({ref:function(b){return void N(a,b)},displayType:w||d("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS,onClickMsg:ea},b),"starred-msg-"+a.id.toString())});P=n.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"slide",children:n.jsx(d("WAWebKeyboardHotKeys.react").HotKeys,{ref:G,onFocus:P,tabIndex:0,"data-tab":d("WAWebTabOrder").TAB_ORDER.CHAT_STARRED_DRAWER,handlers:Q,children:J})});Z=v}else a.msgCollection.isSynced?(P=j,w===d("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS&&(R="starred-msgs-drawer-empty")):(P=n.jsx(d("WAWebEmptyState.react").Loading,{}),Y=null);var $;s!=null&&($=n.jsx(c("WAWebContentPlaceholder.react"),{theme:R,children:s}));Q=w===d("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS?"starred":"gallery";return n.jsx(c("WAWebDrawer.react"),{theme:Q,ref:b,testid:void 0,tsNavigationData:{surface:x},children:n.jsxs("div",babelHelpers["extends"]({className:"x10l6tqk x13vifvy x17qophe x78zum5 xdt5ytf xh8yej3 x5yr21d x6ikm8r x10wlt62 x67bb7w"},{children:[n.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:f,onBack:ca,type:u,menu:t,focusBackOrCancel:!0}),n.jsxs(c("WAWebDrawerBody.react"),{onScroll:ha,ref:H,children:[Z,P,Y,$]})]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewGroupDrawer.react",["fbt","WAWebABProps","WAWebAddressingModePopup.react","WAWebCheckmarkMediumIcon.react","WAWebChevronIcon.react","WAWebClickable.react","WAWebCommunityGetParticipantInfoText","WAWebContactCollection","WAWebDevOnlyBadge.react","WAWebDrawer.react","WAWebDrawerBlock.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebDrawerUtils","WAWebEmojiText.react","WAWebEphemeralKicNux.react","WAWebEphemeralL10N","WAWebEphemeralPopup.react","WAWebEphemeralityResolver","WAWebGroupGatingUtils","WAWebModalManager","WAWebNoop","WAWebNux","WAWebPhotoPickerConstants","WAWebPhotoPickerLoadable.react","WAWebRichTextField.react","WAWebRound.react","WAWebSpinner.react","WAWebTabOrder","WAWebText.react","WAWebUserPrefsNuxPreferences","WAWebVelocityTransitionGroup","gkx","react","useWAWebCallbackOnce"],(function(a,b,c,d,e,f,g,h){var i,j,k=j||c("react"),l=(i||(i=d("react"))).useState,m={header:{marginBottom:"xjpr12u",$$css:!0},chevronIcon:{color:"xt16idv",$$css:!0},labelDescription:{lineHeight:"x1o1kx08",fontSize:"xkpwil5",color:"xraqfvc",$$css:!0}};function n(a){var b=a.ephemeralDuration;a=a.handleEphemeralDurationClick;b>0?b=d("WAWebEphemeralL10N").getDisappearingMessageDurationString(b):b=h._(/*BTDS*/"__JHASH__oQybUFYxCdX__JHASH__");var e=k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{xstyle:m.chevronIcon,directional:!0,height:21});return k.jsx(c("WAWebDrawerSection.react"),{children:k.jsxs(c("WAWebDrawerBlock.react"),{tabOrder:d("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT,testid:void 0,onClick:a,side:e,ariaLabel:h._(/*BTDS*/"__JHASH__yP_ZjPshFol__JHASH__").toString(),multiline:!0,children:[k.jsx("div",babelHelpers["extends"]({className:"xjpr12u"},{children:k.jsx(d("WAWebText.react").WAWebTextTitle,{as:"h3",children:h._(/*BTDS*/"__JHASH__7vr4J_QPl4y__JHASH__")})})),k.jsx(d("WAWebText.react").WAWebTextMuted,{as:"p",children:b})]})})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.addressingModeOverride;a=a.handleAddressingModeClick;return k.jsx(c("WAWebDrawerSection.react"),{children:k.jsxs(c("WAWebDrawerBlock.react"),{tabOrder:d("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT,testid:void 0,onClick:a,side:k.jsx(d("WAWebDevOnlyBadge.react").DevOnlyBadge,{}),ariaLabel:h._(/*BTDS*/"__JHASH__xNtr_Tkhh80__JHASH__").toString(),multiline:!0,children:[k.jsx("div",babelHelpers["extends"]({className:"xjpr12u"},{children:k.jsx(d("WAWebText.react").WAWebTextTitle,{as:"h3",children:h._(/*BTDS*/"__JHASH__Mk-SSbe_OOA__JHASH__")})})),k.jsx(d("WAWebText.react").WAWebTextMuted,{as:"p",children:b})]})})}o.displayName=o.name+" [from "+f.id+"]";function p(a){a=a.onGroupPermissions;var b=k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{xstyle:m.chevronIcon,directional:!0,height:21});return k.jsx(c("WAWebDrawerSection.react"),{children:k.jsx(c("WAWebDrawerBlock.react"),{tabOrder:d("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT,testid:void 0,onClick:a,side:b,ariaLabel:h._(/*BTDS*/"__JHASH__O5YDz93Er0P__JHASH__").toString(),multiline:!0,children:k.jsx("div",babelHelpers["extends"]({className:"xjpr12u"},{children:k.jsx(d("WAWebText.react").WAWebTextTitle,{as:"h3",children:h._(/*BTDS*/"__JHASH__DcAiPpy5tAc__JHASH__")})}))})})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.onAddParticipants;a=a.participants;a=d("WAWebCommunityGetParticipantInfoText").getParticipantInfoText(a);return k.jsx(c("WAWebDrawerSection.react"),{children:k.jsxs(c("WAWebDrawerBlock.react"),{tabOrder:d("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT,onClick:b,side:k.jsx(d("WAWebChevronIcon.react").ChevronIcon,{xstyle:m.chevronIcon,directional:!0,height:21}),ariaLabel:h._(/*BTDS*/"__JHASH__REAkIk7SHqT__JHASH__").toString(),multiline:!0,children:[k.jsx(d("WAWebText.react").WAWebTextTitle,{as:"h3",xstyle:m.header,children:h._(/*BTDS*/"__JHASH__Qj-2tb3ISM3__JHASH__")}),k.jsx(d("WAWebText.react").WAWebTextMuted,{as:"p",children:a})]})})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.ref,e=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=e.participants;var f=a===void 0?[]:a,g=e.onSubmit;a=e.communityName;var i=e.allowUnnamedGroup,j=e.parentGroupId,r=e.shortenedCreationFlow,s=e.onAddParticipants,t=e.onGroupPermissions,u=e.loading;u=u===void 0?!1:u;var v=l(e.subject||""),w=v[0],x=v[1];v=l(e.thumb);var y=v[0],z=v[1];v=l(e.full);var A=v[0],B=v[1];v=l(function(){if(e.ephemeralDuration!=null)return e.ephemeralDuration;var a=d("WAWebEphemeralityResolver").getEphemeralDurationForUser(d("WAWebContactCollection").ContactCollection.getMeContact());return(a=a)!=null?a:0});var C=v[0],D=v[1];v=l((v=e.addressingModeOverride)!=null?v:"lid");var E=v[0],F=v[1];v=function(a,b){z(a),B(b),e.handleLiftGroupInfo==null?void 0:e.handleLiftGroupInfo({thumb:a,full:b})};var G=c("useWAWebCallbackOnce")(function(){var a=w.trim();g(a,y,A,C,f,E)}),H=function(a){x(a),e.handleLiftGroupInfo==null?void 0:e.handleLiftGroupInfo({text:a})},I=function(a){D(a),e.handleLiftGroupInfo==null?void 0:e.handleLiftGroupInfo({ephemeralDuration:a})},J=function(a){F(a),e.handleLiftGroupInfo==null?void 0:e.handleLiftGroupInfo({addressingModeOverride:a})},K=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebEphemeralPopup.react").EphemeralPopup,{initialDuration:C,onDurationSelected:I}))},L=function(){d("WAWebUserPrefsNuxPreferences").shouldShowNUX(d("WAWebNux").NUX.EPHEMERAL)?d("WAWebModalManager").ModalManager.open(k.jsx(c("WAWebEphemeralKicNux.react"),{fromMe:!0,onOk:K})):K()},M=function(){d("WAWebModalManager").ModalManager.open(k.jsx(d("WAWebAddressingModePopup.react").AddressingModePopup,{initialAddressingMode:E,onAddressingModeSelected:J}))},N=function(){if(j||i!==!0)return w.trim().length>0;return d("WAWebABProps").getABPropConfigValue("ugc_enabled")?!0:w.trim().length>0},O=!j&&i===!0&&d("WAWebABProps").getABPropConfigValue("ugc_enabled")?h._(/*BTDS*/"__JHASH__L9M7fdBd2yI__JHASH__"):h._(/*BTDS*/"__JHASH__D3K8xLkQ7R3__JHASH__");L=k.jsx(n,{ephemeralDuration:C,handleEphemeralDurationClick:L});M=!c("gkx")("26258")&&k.jsx(o,{addressingModeOverride:E,handleAddressingModeClick:M});r=r===!0&&s?k.jsx(q,{participants:f,onAddParticipants:s}):null;s=k.jsx(p,{onGroupPermissions:t});t=N()===!0?k.jsx(c("WAWebVelocityTransitionGroup"),{transitionName:"btn",children:k.jsx("div",babelHelpers["extends"]({className:"xhtitgo x78zum5 x1l1ennw x17r0vjz x178dpqu x2b8uid"},{children:k.jsx(d("WAWebClickable.react").Clickable,{onClick:G,"data-tab":d("WAWebTabOrder").TAB_ORDER.DRAWER_FOOTER,children:k.jsx(d("WAWebRound.react").Round,{testid:void 0,label:h._(/*BTDS*/"__JHASH__dRr-nfmeBqv__JHASH__"),children:u?k.jsx(d("WAWebSpinner.react").Spinner,{color:"white",size:30}):k.jsx(d("WAWebCheckmarkMediumIcon.react").CheckmarkMediumIcon,{})})})}))}):null;u=d("WAWebDrawerUtils").getDrawerHeaderType(e.viewType);return k.jsxs(c("WAWebDrawer.react"),{ref:b,testid:void 0,viewType:e.viewType,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__imdeDskwMHj__JHASH__"),type:u,onBack:e.onBack,onCancel:e.onCancel}),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsxs(c("WAWebDrawerSection.react"),{children:[k.jsx("div",babelHelpers["extends"]({className:"x178dpqu xxpo1cj xc8tqf8 x1yblut7"},{children:k.jsx(d("WAWebPhotoPickerLoadable.react").PhotoPickerLoadable,{type:d("WAWebPhotoPickerConstants").PhotoPickerType.GROUP,attachToChat:!1,startImage:A,onImageSet:v,dataTab:d("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT})})),k.jsxs("div",babelHelpers["extends"]({"data-testid":void 0},{className:"x178dpqu xxpo1cj xc8tqf8 x1yblut7"},{children:[k.jsx(d("WAWebRichTextField.react").RichTextField,{value:w,maxLength:d("WAWebGroupGatingUtils").getGroupMaxSubject(),showRemaining:!0,onChange:function(a){H(a.text)},title:O,placeholder:O,onEnter:N()?G:c("WAWebNoop"),emojiBtnPosition:"side",focusOnMount:!0,tabOrder:d("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT}),!d("WAWebABProps").getABPropConfigValue("parent_group_no_disclaimer")&&a!=null?k.jsx(d("WAWebEmojiText.react").EmojiText,{xstyle:m.labelDescription,element:"p",text:h._(/*BTDS*/"__JHASH__Be7SHi3qpGP__JHASH__",[h._param("community-name",a)])}):null]}))]}),M,L,s,r,t]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewGroupPermissionsDrawer.react",["fbt","WAWebActionToast.react","WAWebAddUserIcon.react","WAWebChatInfoDrawerRow.react","WAWebChatsOutlineIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebDrawerUtils","WAWebExternalLink.react","WAWebFaqUrl","WAWebGroupConstants","WAWebMediaEditorDrawingIcon.react","WAWebPendingParticipantsIcon.react","WAWebSetPropertyGroupAction","WAWebSvgComponentBase","WAWebSwitch.react","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","asyncToGeneratorRuntime","react","stylex"],(function(a,b,c,d,e,f,g,h){var i,j,k=i||c("react");function l(a){var c=a.icon,e=a.settingType,f=a.title,g=a.secondaryTitle,h=a.value,i=a.setValue,j=h===!0?"off":"on",l=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){i(!a);a=d("WAWebActionToast.react").genId();var b=d("WAWebSetPropertyGroupAction").getActionString(e,j)[1];d("WAWebToastManager").ToastManager.open(k.jsx(d("WAWebToast.react").Toast,{id:a,msg:b}))});return function(b){return a.apply(this,arguments)}}();a=k.jsx(d("WAWebSwitch.react").Switch,{ariaLabel:f,checked:h,onChange:function(){return l(h)}});return k.jsx(d("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRow,{icon:c,side:a,title:f,secondaryTitle:g,spaced:!0})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);var e=a.announce,f=a.memberAddMode,g=a.membershipApprovalMode,i=a.onBack,m=a.onCancel,n=a.restrict,o=a.setAnnounce,p=a.setMemberAddMode,q=a.setMembershipApprovalMode,r=a.setRestrict,s=d("WAWebDrawerUtils").getDrawerHeaderType(a.viewType);return k.jsxs(c("WAWebDrawer.react"),{ref:b,theme:"striped",testid:void 0,viewType:a.viewType,children:[k.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__-IBxQHBvlUz__JHASH__"),type:s,onBack:i,onCancel:m}),k.jsxs(c("WAWebDrawerBody.react"),{children:[k.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(d("WAWebUISpacing").uiMargin.horiz30,d("WAWebUISpacing").uiMargin.vert10),{children:k.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__0k1Y9zIWk91__JHASH__")})})),k.jsxs(c("WAWebDrawerSection.react"),{animation:!1,children:[k.jsx(l,{value:n,setValue:r,icon:k.jsx(d("WAWebMediaEditorDrawingIcon.react").MediaEditorDrawingIcon,{width:18,height:18,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),settingType:d("WAWebGroupConstants").GROUP_SETTING_TYPE.RESTRICT,title:h._(/*BTDS*/"__JHASH__Vq1rgSUN6o___JHASH__"),secondaryTitle:k.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__BTHjRGZD2C0__JHASH__")})}),k.jsx(l,{value:e,setValue:o,icon:k.jsx(d("WAWebChatsOutlineIcon.react").ChatsOutlineIcon,{width:20,height:20,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),settingType:d("WAWebGroupConstants").GROUP_SETTING_TYPE.ANNOUNCEMENT,title:h._(/*BTDS*/"__JHASH__sdlKBoihTqz__JHASH__")}),k.jsx(l,{value:f,setValue:p,icon:k.jsx(d("WAWebAddUserIcon.react").AddUserIcon,{width:22,height:22,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),settingType:d("WAWebGroupConstants").GROUP_SETTING_TYPE.MEMBER_ADD_MODE,title:h._(/*BTDS*/"__JHASH__CsGyhfLp3kt__JHASH__")})]}),k.jsxs(k.Fragment,{children:[k.jsx("div",babelHelpers["extends"]({},j.props(d("WAWebUISpacing").uiMargin.horiz30,d("WAWebUISpacing").uiMargin.vert10),{children:k.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__JQ5pRwHZhZl__JHASH__")})})),k.jsx(c("WAWebDrawerSection.react"),{animation:!1,children:k.jsx(l,{value:g,setValue:q,icon:k.jsx(d("WAWebPendingParticipantsIcon.react").PendingParticipantsIcon,{width:19,height:19,DEPRECATED_color:d("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),settingType:d("WAWebGroupConstants").GROUP_SETTING_TYPE.MEMBERSHIP_APPROVAL_MODE,title:h._(/*BTDS*/"__JHASH__VChggAtHQjp__JHASH__"),secondaryTitle:k.jsx(d("WAWebText.react").WAWebTextMuted,{children:h._(/*BTDS*/"__JHASH__Vz39IT8iMSq__JHASH__",[h._implicitParam("=m2",k.jsx(d("WAWebExternalLink.react").ExternalLink,{href:d("WAWebFaqUrl").getMembershipApprovalModeFaqUrl(),children:h._(/*BTDS*/"__JHASH__-hdWoubADWm__JHASH__")}))])})})})]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebNewGroupFlow.react",["$InternalEnum","WAWebABProps","WAWebChatCollection","WAWebCmd","WAWebContactCollection","WAWebCreateGroupAction","WAWebDrawerViewType","WAWebNewGroupDrawer.react","WAWebNewGroupParticipantsDrawer.react","WAWebNewGroupPermissionsDrawer.react","react","useWAWebFlow","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.useState,m=b("$InternalEnum").Mirrored(["ADD_PARTICIPANTS_DRAWER","SET_GROUP_INFO_DRAWER","GROUP_PERMISSIONS_DRAWER"]);function a(a){var b=a.initialParticipants,e=a.initialSelectedSubgroup,f=a.initialStep;f=f===void 0?m.ADD_PARTICIPANTS_DRAWER:f;var g=a.isSubFlow;g=g===void 0?!0:g;var h=a.onCreateGroup,i=a.onEnd,n=a.parentGroupWid,o=a.ref,p=a.shortenedCreationFlow,q=a.viewType;a=n!=null?d("WAWebChatCollection").ChatCollection.get(n):null;var r=a!=null?a.formattedTitle:null;f=d("useWAWebFlow").useFlow(f,{transitions:d("useWAWebFlow").FlowTransitions.DrawerRight,onEnd:i});var s=f[0],t=f[1];b=l((f=b)!=null?f:[]);f=b[0];var u=b[1];b=l(!0);var v=b[0],w=b[1];b=l(!1);var x=b[0],y=b[1];b=l();var z=b[0],A=b[1];b=l();var B=b[0],C=b[1];b=l();var D=b[0],E=b[1];b=l();var F=b[0],G=b[1];b=l("lid");var H=b[0],I=b[1];b=l(!0);var J=b[0];b=b[1];var K=l(!0),L=K[0];K=K[1];var M=l(!0),N=M[0];M=M[1];var O=l(!1),P=O[0];O=O[1];var Q=function(){t.end()};d("useWAWebListener").useListener(d("WAWebCmd").Cmd,"end_flow",Q);k(function(){d("WAWebContactCollection").ContactCollection.ensureSorted()},[]);Q=function(a,b,c,e,f,g){f===void 0&&(f=[]);g===void 0&&(g="pn");y(!0);a=d("WAWebCreateGroupAction").createGroup({title:a,thumb:b,full:c,ephemeralDuration:e,parentGroupId:n,restrict:J,announce:L,membershipApprovalMode:P,memberAddMode:N,addressingModeOverride:g},f);h==null?void 0:h(a)};var R=function(a,b){u(a),w(b),p===!0?t.pop():t.push(m.SET_GROUP_INFO_DRAWER)},S=function(a){a.text!=null&&A(a.text),a.thumb!=null&&C(a.thumb),a.full!=null&&E(a.full),a.ephemeralDuration!=null&&G(a.ephemeralDuration),a.addressingModeOverride!=null&&I(a.addressingModeOverride)};if(t.step==null)return null;var T,U={onBack:function(){return t.pop()},onCancel:q===c("WAWebDrawerViewType").MODAL?function(){return i==null?void 0:i()}:void 0};switch(t.step){case m.SET_GROUP_INFO_DRAWER:a=d("WAWebABProps").getABPropConfigValue("parent_group_no_disclaimer")&&(a==null?void 0:(a=a.groupMetadata)==null?void 0:a.isParentGroupClosed)===!0;T=j.jsx(c("WAWebNewGroupDrawer.react"),{participants:f,onBack:U.onBack,onCancel:U.onCancel,onSubmit:Q,communityName:a?null:r,allowUnnamedGroup:v,parentGroupId:n,shortenedCreationFlow:p,onAddParticipants:function(){return t.push(m.ADD_PARTICIPANTS_DRAWER)},onGroupPermissions:function(){return t.push(m.GROUP_PERMISSIONS_DRAWER)},handleLiftGroupInfo:S,subject:z,thumb:B,full:D,ephemeralDuration:F,addressingModeOverride:H,loading:x,viewType:q});break;case m.ADD_PARTICIPANTS_DRAWER:Q={onBack:function(){return t.pop()}};(!g||q===c("WAWebDrawerViewType").MODAL)&&(delete Q.onBack,Q.onCancel=function(){return q===c("WAWebDrawerViewType").MODAL?i==null?void 0:i():t.pop()});T=j.jsx(c("WAWebNewGroupParticipantsDrawer.react"),babelHelpers["extends"]({},Q,{onContinue:R,participants:f,communityName:r,parentGroupId:n,initialSelectedSubgroup:e,viewType:q}));break;case m.GROUP_PERMISSIONS_DRAWER:T=j.jsx(c("WAWebNewGroupPermissionsDrawer.react"),{onBack:U.onBack,onCancel:U.onCancel,restrict:J,setRestrict:b,announce:L,setAnnounce:K,membershipApprovalMode:P,setMembershipApprovalMode:O,memberAddMode:N,setMemberAddMode:M,viewType:q});break}return j.jsx(s,{ref:o,flow:t,children:T})}a.displayName=a.name+" [from "+f.id+"]";e=a;g.NewGroupFlowStep=m;g.NewGroupFlow=e}),98); __d("WAWebUnknownContactSection.react",["fbt","WAPhoneUtils","WAWebBlocklistCollection","WAWebCellFrame.react","WAWebChatContactUtils","WAWebDetailImage.react","WAWebEmojiText.react","WAWebFbtCommon","WAWebSectionHeader.react","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b,e=a.contactInfo,f=a.onUnknownContactClick;a=e.wid;var g=e.chat,i=e.isBusiness,k=e.verifiedName,l=e.verifiedLevel;b=(b=g==null?void 0:g.contact.isContactBlocked)!=null?b:!!d("WAWebBlocklistCollection").BlocklistCollection.get(a);var m=j.jsx(d("WAWebDetailImage.react").DetailImage,{id:a,waitIdle:!0}),n={ellipsify:!0,titlify:!0,breakWord:!0,direction:"auto"};a=j.jsx(d("WAWebEmojiText.react").EmojiText,babelHelpers["extends"]({text:d("WAPhoneUtils").formatPhone(a.user)},n));var o;if(g){g=g.contact.pushname;if(!g){var p;g=(p=k)!=null?p:""}o=d("WAWebChatContactUtils").getFormattedNotifyName(g);i&&(l==="high"&&(a=j.jsx(d("WAWebEmojiText.react").EmojiText,babelHelpers["extends"]({text:k},n))),(g==null||g==="")&&(o=h._(/*BTDS*/"__JHASH__3radveXOHyJ__JHASH__")))}b&&(o=h._(/*BTDS*/"__JHASH__kUylZV1ALQa__JHASH__"));return j.jsxs(j.Fragment,{children:[j.jsx(c("WAWebSectionHeader.react"),{header:c("WAWebFbtCommon")("Not in your contacts")},"not-in-your-contacts-header"),j.jsx(c("WAWebCellFrame.react"),{image:m,primary:a,secondary:o!=null?j.jsx(d("WAWebEmojiText.react").EmojiText,babelHelpers["extends"]({text:o},n)):null,onClick:function(a){return f(a,e.wid)},focusable:!0})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebUnnamedNewGroupAlreadyExistsModal.react",["fbt","WAWebCmd","WAWebComposeBoxActions","WAWebConfirmPopup.react","WAWebFindChatAction","react"],(function(a,b,c,d,e,f,g,h){var i,j=i||c("react");function a(a){var b=a.existingUnnamedGroup,c=a.onCancel,e=a.onCreateNewGroupClick,f=a.onEnd;a=a.ref;e={text:h._(/*BTDS*/"__JHASH__IvlY6rCKF4k__JHASH__"),onClick:e};return j.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{ref:a,title:h._(/*BTDS*/"__JHASH__W9WGjD9Ulbd__JHASH__"),onOK:function(){f(),void d("WAWebFindChatAction").findOrCreateLatestChat(b,"existingUnnamedGroup").then(function(a){var b=a.chat;void d("WAWebCmd").Cmd.openChatBottom(b).then(function(a){a&&(d("WAWebComposeBoxActions").ComposeBoxActions.focus(b),d("WAWebCmd").Cmd.endFlow())})})},onCancel:c,okText:h._(/*BTDS*/"__JHASH__teD3nb-9ss1__JHASH__"),cancelText:h._(/*BTDS*/"__JHASH__X_z8MHQk1qP__JHASH__"),extraButtonProps:e,children:h._(/*BTDS*/"__JHASH__O_v38vpAWeP__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebQueryAndUpdateCommunityParticipantsAction",["WAWebGroupDatabaseJob","WAWebGroupGetCommunityParticipantsJob","WAWebGroupMetadataCollection","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=(yield d("WAWebGroupGetCommunityParticipantsJob").getCommunityParticipants(a)),e=c("WAWebGroupMetadataCollection").get(a);if(!e)return;var f=e.participants;b=b.map(function(a){var b=f.get(a),c=!1,d=!1;b&&(c=b.isAdmin,d=b.isSuperAdmin);return{id:a,isAdmin:c,isSuperAdmin:d}});a={id:a,announce:!1,participants:b.map(function(a){return a}),owner:e.owner,subject:e.subject,creation:e.creation,membershipApprovalMode:e.membershipApprovalMode,reportToAdminMode:e.reportToAdminMode,noFrequentlyForwarded:e.noFrequentlyForwarded,restrict:e.restrict};yield d("WAWebGroupDatabaseJob").updateGroupParticipantTableWithoutDeviceSyncJob([a]);f.set(b)});return h.apply(this,arguments)}g.queryAndUpdateCommunityParticipants=a}),98); __d("useWAWebCommunitySubgroups",["useWAWebModelValues"],(function(a,b,c,d,e,f,g){function a(a){a=d("useWAWebModelValues").useOptionalModelValues(a,["joinedSubgroups","unjoinedSubgroups","id"])||{};var b=a.joinedSubgroups;b=b===void 0?[]:b;a=a.unjoinedSubgroups;a=a===void 0?[]:a;var c=b.length+a.length;return{joinedSubgroups:b,unjoinedSubgroups:a,subgroupCount:c}}g["default"]=a}),98); __d("useWAWebCommunityMembers",["Promise","WAWebCommunityAnnouncementGroupUtils","WAWebCommunityParticipantsUtils","WAWebQueryAndUpdateCommunityParticipantsAction","useWAWebAsync","useWAWebCommunitySubgroups","useWAWebEventTargetValue"],(function(a,b,c,d,e,f,g){var h;function a(a,e){var f,g=e==null?void 0:e.participants,i=a==null?void 0:(f=a.groupMetadata)==null?void 0:f.participants,j=Boolean(i==null?void 0:i.iAmAdmin());f=c("useWAWebCommunitySubgroups")(j?null:a==null?void 0:a.groupMetadata);var k=f.joinedSubgroups;f=c("useWAWebAsync")(function(){return a&&e&&j?d("WAWebQueryAndUpdateCommunityParticipantsAction").queryAndUpdateCommunityParticipants(a.id):(h||(h=b("Promise"))).resolve()},[e,j,a==null?void 0:a.id]);f=f.loading;var l=e==null?void 0:e.id,m=d("WAWebCommunityAnnouncementGroupUtils").isLidAddressingModeGivenCAGId(l);l=c("useWAWebEventTargetValue")([i,g],["bulk_add","bulk_remove","reset","change:isAdmin"],function(){return d("WAWebCommunityParticipantsUtils").mergeAndSortCommunityParticipants(g,i,k,m)});return{members:l,announcementGroupParticipants:g,parentGroupParticipants:i,loading:f}}g.useCommunityMembers=a}),98); __d("WAWebNewGroupParticipantsDrawer.react",["fbt","WAWebABProps","WAWebArrowForwardIcon.react","WAWebBlockContactAction","WAWebChatCollection","WAWebChatComparator","WAWebChatContactList.react","WAWebChatParticipantList.react","WAWebClassnames","WAWebClickable.react","WAWebCommunityAnnouncementGroupUtils","WAWebCommunityGatingUtils","WAWebConfirmPopup.react","WAWebContactCollection","WAWebContactComparator","WAWebContactGetters","WAWebContactlessChatUtils","WAWebCopyPasteSelectable.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerUtils","WAWebDrawerViewType","WAWebEmojiText.react","WAWebEmptyState.react","WAWebFbtCommon","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebFocusIndicator","WAWebFocusTracer","WAWebGroupMetadataCollection","WAWebGroupType","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebLidContactsGatingUtils","WAWebLidMigrationUtils","WAWebMiscGatingUtils","WAWebModal.react","WAWebModalManager","WAWebName.react","WAWebNewGroupFlow.react","WAWebNoop","WAWebPeopleIcon.react","WAWebPhoneNumberSearch","WAWebRound.react","WAWebSelectAllIcon.react","WAWebSpinner.react","WAWebTabOrder","WAWebText_DONOTUSE.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUnknownContactSection.react","WAWebUnnamedNewGroupAlreadyExistsModal.react","WAWebUnstyledButton.react","WAWebUserPrefsMeUser","WAWebVelocityTransitionGroup","WAWebWid","asyncToGeneratorRuntime","lodash","react","stylex","useLazyRef","useWAWebCommunityMembers","useWAWebCommunitySubgroups","useWAWebUnknownContact","useWAWebUnmountSignal"],(function(a,b,c,d,e,f,g,h){var i,j,k;e=k||d("react");var l=i||(i=c("react")),aa=e.useEffect,ba=e.useMemo,m=e.useRef,n=e.useState,o={icon:{marginEnd:"xw3qccf",$$css:!0},subgroup:{borderTopStartRadius:"x11jm1t7",borderTopEndRadius:"xe0know",borderBottomEndRadius:"x3f462a",borderBottomStartRadius:"xhtl50t",backgroundColor:"xairv4b",paddingStart:"x1ye3gou",paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0},selectedSubgroup:{backgroundColor:"xa9qhua",color:"x9updlm",$$css:!0},selectAllIcon:{color:"xq22nx5",$$css:!0},inputLine:{position:"x1n2onr6",width:"xh8yej3",minHeight:"xisnujt",maxHeight:"x1hkcv85",overflowY:"x1odjw0f",fontSize:"x6prxxf",fontWeight:"x1fcty0u",lineHeight:"x1fc57z9",backgroundColor:"xjbqb8w",borderTopStyle:"x1ejq31n",borderEndStyle:"xd10rxx",borderStartStyle:"x17r0tee",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xqqk3jl",outline:"x1a2a7pz",transitionProperty:"xshfolx",transitionDuration:"x13dflua",transitionTimingFunction:"x9lcvmn",$$css:!0},drawerSection:{zIndex:"xhtitgo",display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",justifyContent:"x1l1ennw",paddingTop:"x1p5oq8j",paddingEnd:"x4uap5",paddingBottom:"x1t1ogtf",paddingStart:"xkhd6sd",textAlign:"x2b8uid",$$css:!0},paragraph:{paddingTop:"xyamay9",paddingEnd:"xxbr6pl",paddingBottom:"x18d9i69",paddingStart:"xbbxn1n",fontSize:"x1f6kntn",lineHeight:"x37zpob",textAlign:"x2b8uid",color:"x16cd2qt",overflowWrap:"x1mzt3pk",$$css:!0}},p=d("WAWebToast.react").genId("max_participant_toast");function a(a){var e=a.ref,f=babelHelpers.objectWithoutPropertiesLoose(a,["ref"]);a=f.participants;a=a===void 0?[]:a;var g=f.onBack,i=f.onCancel,k=f.onContinue,q=f.communityName,r=f.parentGroupId,s=f.initialSelectedSubgroup,ca=c("useWAWebUnmountSignal")(),t=c("useLazyRef")(function(){return new(c("WAWebFlatListController"))()}),u=m(null),v=m(null),w=m(null),da=m(null),x=n(s),y=x[0],z=x[1];x=n("");var A=x[0],B=x[1];x=n(a);var C=x[0],D=x[1];a=n(!0);var E=a[0],F=a[1];x=n(!1);a=x[0];var G=x[1],H=Boolean(r)&&d("WAWebCommunityGatingUtils").subgroupFilterEnabled(),I=Boolean(!y&&r);x=r?d("WAWebChatCollection").ChatCollection.get(r):null;var J=d("WAWebCommunityAnnouncementGroupUtils").getCommunityAnnouncementGroup(x==null?void 0:x.groupMetadata);J=d("useWAWebCommunityMembers").useCommunityMembers(x,J);var K=J.members;J=c("useWAWebCommunitySubgroups")(x==null?void 0:x.groupMetadata);var L=J.joinedSubgroups,M=ba(function(){var a=[];if(!H||!L.length)return a;var b=L.map(function(a){return d("WAWebChatCollection").ChatCollection.assertGet(a)}).filter(function(a){return((a=a.groupMetadata)==null?void 0:a.groupType)!==d("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP}).sort(c("WAWebChatComparator"));s&&a.push(d("WAWebChatCollection").ChatCollection.assertGet(s));b.forEach(function(b){b.id.equals(s)||a.push(b)});return a},[H,L,s]);x=function(a){if(!v.current)return;a.preventDefault();a.stopPropagation();c("WAWebFocusIndicator").shouldIndicateFocus();(a=v.current)==null?void 0:a.focusFirst()};J=function(a){B(a.target.value)};var N=function(a){c("WAWebFocusIndicator").shouldIndicateFocus(),c("WAWebFocusTracer").focus(w.current)},O=function(a){var b;if(a.repeat||((b=w.current)==null?void 0:b.selectionStart)!==0)return;if(!u.current)return;a.preventDefault();a.stopPropagation();(b=u.current)==null?void 0:b.focusLast()},ea=function(a,b){a=C.filter(function(a){return!a.id.equals(b.id)});D(a);F(!a.length)},fa=function(){var a=c("WAWebGroupMetadataCollection").filter(function(a){var b=a.participants.filter(function(a){return!d("WAWebContactGetters").getIsMe(a.contact)});if(b.length===C.length&&a.subject===""){a=C.sort(function(a,b){return a.id.toString().localeCompare(b.id.toString())});b=b.sort(function(a,b){return a.id.toString().localeCompare(b.id.toString())});for(var e=0;e<a.length;e++)if(!c("WAWebWid").equals.apply(c("WAWebWid"),d("WAWebLidMigrationUtils").toCommonAddressingMode(a[e].id,b[e].id)))return!1;return!0}return!1});return a.length>0?a[0].id:void 0},P=function(){var a=fa();if(!r&&a){var b=function(){d("WAWebModalManager").ModalManager.close()};d("WAWebModalManager").ModalManager.open(l.jsx(c("WAWebUnnamedNewGroupAlreadyExistsModal.react"),{existingUnnamedGroup:a,onCancel:b,onCreateNewGroupClick:function(){f.viewType===c("WAWebDrawerViewType").MODAL?d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebModal.react").Modal,{type:d("WAWebModal.react").ModalTheme.Tower,children:l.jsx(d("WAWebNewGroupFlow.react").NewGroupFlow,{initialStep:d("WAWebNewGroupFlow.react").NewGroupFlowStep.SET_GROUP_INFO_DRAWER,initialParticipants:C,viewType:c("WAWebDrawerViewType").MODAL,onEnd:function(){d("WAWebModalManager").ModalManager.close()}})})):(b(),k(C,!1))},onEnd:b}))}else r?k(C,!1):k(C,C.length<=d("WAWebABProps").getABPropConfigValue("ugc_participant_limit"))},ga=function(a){a.key==="Backspace"&&!A&&C.length>0&&(a.preventDefault(),D(C.slice(0,C.length-1)),F(!0))},ha=function(){c("WAWebFocusTracer").focus(w.current)},ia=function(){B("")},ja=function(a){D(C.filter(function(b){return!a.id.equals(b.id)})),F(!0)},Q=function(a){var b=d("WAWebMiscGatingUtils").getGroupSizeLimit();if(C.length>=b){b=h._(/*BTDS*/"__JHASH__BOLdYU-2Rzz__JHASH__",[h._param("max",b)]);d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:b,id:p}))}else B(""),D(C.concat(a)),F(!0)},ka=function(a){G(!0),d("WAWebBlockContactAction").unblockContact(a).then(function(){if(ca.aborted)return;Q(a);G(!1)})["catch"](function(){G(!1)})},R=function(){var a=[];if(y&&H){var b=c("WAWebGroupMetadataCollection").assertGet(y),e=[];b.participants.forEach(function(a){d("WAWebContactGetters").getIsMe(a.contact)||e.push(a.contact)});b=c("lodash").difference(e,C)}else{var f=d("WAWebLidContactsGatingUtils").isLidContactAddToGroupEnabled();f=d("WAWebContactCollection").ContactCollection.getFilteredContacts({includeLidContacts:f});var g=[];K&&I&&(g=K.filter(function(a){a=a.id;return!d("WAWebUserPrefsMeUser").isMeAccount(a)&&!a.isLid()}).sort(d("WAWebContactComparator").ContactComparator),a=c("lodash").difference(g,C));b=c("lodash").difference(f,[].concat(C,g))}var h=A;if(!h)return{contacts:b,communityDirectory:a};h=c("WAWebL10N").accentFold(h);var i=d("WAWebPhoneNumberSearch").numberSearch(h);f=function(a){return a.searchMatch(h,i)};return{contacts:b.filter(f),communityDirectory:a.filter(f)}};R=R();var S=R.contacts,T=R.communityDirectory;R=S.length===0&&T.length===0;var U=c("useWAWebUnknownContact")({phoneNumber:A,shouldStartSearch:R}),V=U.unknownContactInfo,W=U.loading,X=U.error;U=U.onRetry;var Y=function(a,b){a=C.find(function(a){return a.id.equals(b.id)});a?ja(b):b.isContactBlocked?d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__XUpzxynr1EN__JHASH__"),onOK:function(){ka(b),d("WAWebModalManager").ModalManager.close()},onCancel:function(){return d("WAWebModalManager").ModalManager.close()},okText:h._(/*BTDS*/"__JHASH___3OwJwwEFqn__JHASH__"),cancelText:h._(/*BTDS*/"__JHASH__p5mloanc-eI__JHASH__"),children:h._(/*BTDS*/"__JHASH__TgBhcoaU22___JHASH__")})):Q(b)},Z=function(a){var b;a.preventDefault();a.stopPropagation();b=(b=T==null?void 0:T[0])!=null?b:S==null?void 0:S[0];b&&Y(a,b);(V==null?void 0:V.wid)&&Y(a,d("WAWebContactCollection").ContactCollection.gadd(V.wid))};aa(function(){w.current&&E&&ha()},[C,E]);var $;a?$=l.jsx("div",babelHelpers["extends"]({className:"x78zum5 xl56j7k"},{children:l.jsx(d("WAWebSpinner.react").Spinner,{stroke:6,size:24})})):C.length&&($=l.jsx(d("WAWebClickable.react").Clickable,{"data-tab":d("WAWebTabOrder").TAB_ORDER.DRAWER_FOOTER,onClick:P,children:l.jsx(d("WAWebRound.react").Round,{testid:void 0,label:c("WAWebFbtCommon")("Next"),children:l.jsx(d("WAWebArrowForwardIcon.react").ArrowForwardIcon,{directional:!0})})}));a=C.length?" ":c("WAWebFbtCommon")("Search name or number");x={down:x,enter:A?Z:(C==null?void 0:C.length)?P:c("WAWebNoop"),up:O};x[c("WAWebL10N").LR("left","right")]=O;R?W?Z=l.jsx(d("WAWebEmptyState.react").SearchingNonContact,{}):X?Z=l.jsx(d("WAWebEmptyState.react").SearchingNonContactError,{error:d("WAWebContactlessChatUtils").getErrorStr(X),onClick:U}):V?Z=l.jsx(c("WAWebUnknownContactSection.react"),{contactInfo:V,onUnknownContactClick:function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){return Y(a,(a=(a=V.chat)==null?void 0:a.contact)!=null?a:d("WAWebContactCollection").ContactCollection.gadd(b))});return function(b,c){return a.apply(this,arguments)}}()}):Z=l.jsx(d("WAWebEmptyState.react").SearchContacts,{}):Z=l.jsx(c("WAWebChatContactList.react"),{ref:v,flatListController:t.current,contacts:S,separateContacts:{contacts:T,header:h._(/*BTDS*/"__JHASH__8IghB0xIgfO__JHASH__",[h._param("community-name",q)])},onClick:Y,onFocusSearch:N,showPersonGroupDivisionHeader:I});var la=function(a){a.equals(y)?z(void 0):z(a)};P=function(){var a=S.filter(function(a){return!a.isContactBlocked}),b=d("WAWebMiscGatingUtils").getGroupSizeLimit();if(C.length+a.length>=b){b=h._(/*BTDS*/"__JHASH__BOLdYU-2Rzz__JHASH__",[h._param("max",b)]);d("WAWebToastManager").ToastManager.open(l.jsx(d("WAWebToast.react").Toast,{msg:b,id:p}))}else B(""),D(C.concat(a)),F(!0),a.length!==S.length&&d("WAWebModalManager").ModalManager.open(l.jsx(d("WAWebConfirmPopup.react").ConfirmPopup,{title:h._(/*BTDS*/"__JHASH__m9sxCGtmQ4j__JHASH__"),onOK:function(){d("WAWebModalManager").ModalManager.close()},children:h._(/*BTDS*/"__JHASH__rWrNTRCd40K__JHASH__")}))};O=W?l.jsx(c("WAWebUnstyledButton.react"),{onClick:ia,xstyle:d("WAWebUISpacing").uiPadding.end2,children:l.jsx(d("WAWebSpinner.react").Spinner,{size:20,stroke:5,color:"highlight"})}):null;R=H?l.jsx("div",babelHelpers["extends"]({className:"xz9dl7a xsag5q8 x1b9tyad x1gz9zih x150wa6m x14aock7 xuxw1ft"},{children:M.map(function(a,b){return l.jsx(c("WAWebUnstyledButton.react"),{onClick:function(){return la(a.id)},xstyle:[o.subgroup,b+1<M.length&&d("WAWebUISpacing").uiMargin.end6,a.id.equals(y)&&o.selectedSubgroup],children:l.jsxs(d("WAWebFlex.react").FlexRow,{children:[l.jsx(d("WAWebPeopleIcon.react").PeopleIcon,{width:20,height:20,xstyle:o.icon}),l.jsx(d("WAWebName.react").Name,{chat:a})]})},a.id.toString())})})):null;X=y&&H?l.jsx(c("WAWebUnstyledButton.react"),{onClick:P,children:l.jsx(d("WAWebSelectAllIcon.react").SelectAllIcon,{title:h._(/*BTDS*/"__JHASH__H9pBgTmOCK5__JHASH__"),xstyle:o.selectAllIcon})}):null;U=q!=null&&C.length?l.jsx(d("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:o.paragraph,children:h._(/*BTDS*/"__JHASH__Mns6QRWHUJZ__JHASH__",[h._param("community-name",l.jsx(d("WAWebEmojiText.react").EmojiText,{text:q}))])}):null;W=d("WAWebDrawerUtils").getDrawerHeaderType(f.viewType);return l.jsxs(c("WAWebDrawer.react"),{ref:e,testid:void 0,viewType:f.viewType,children:[l.jsx(d("WAWebDrawerHeader.react").DrawerHeader,{title:h._(/*BTDS*/"__JHASH__cpZUkBIG8zA__JHASH__"),type:W,onBack:g,onCancel:i}),l.jsxs(c("WAWebDrawerBody.react"),{children:[l.jsx("div",babelHelpers["extends"]({className:"x9desvi x1gz9zih xsag5q8 x1b9tyad xdj266r x11i5rnm xat24cr x1mh8g0r x150wa6m"},{children:l.jsx("div",{children:l.jsxs(d("WAWebKeyboardHotKeys.react").HotKeys,{handlers:x,className:(j||(j=c("stylex")))(o.inputLine,d("WAWebUISpacing").uiPadding.top6,d("WAWebUISpacing").uiPadding.bottom0,d("WAWebUISpacing").uiPadding.horiz2),children:[l.jsx("div",{"data-list-scroll-container":!0,children:l.jsx(c("WAWebChatParticipantList.react"),{ref:u,theme:"list-names",contacts:C,onDelete:ea,onFocusSearch:N})}),l.jsxs(d("WAWebFlex.react").FlexRow,{children:[l.jsx("input",{"data-testid":void 0,className:d("WAWebClassnames").classnamesConvertMeToStylexPlease("x1rg5ohu xh8yej3 xt7dq6l x1nn3v0j x4uap5 x1120s5i xkhd6sd xdj266r x11i5rnm xat24cr x1mh8g0r x6prxxf x19v9tvf xzsf02u x16dsc37 xjbqb8w x1ejq31n xd10rxx x1sy0etr x17r0tee x1a2a7pz",d("WAWebCopyPasteSelectable.react").SELECTABLE_INPUT_CSS_CLASS),ref:w,placeholder:a,onKeyDown:ga,onChange:J,value:A,type:"text"}),l.jsx("span",babelHelpers["extends"]({className:"xixxii4 xlshs6z"},{ref:da,children:A})),X,O]})]})})})),R,l.jsx(c("WAWebFlatListContainer.react"),{className:"x1n2onr6 x1iyjqo2 xs83m0k x1r8uery x6ikm8r x1odjw0f x150wa6m",flatListControllers:[t.current],children:Z}),l.jsxs(c("WAWebVelocityTransitionGroup"),{transitionName:"btn",xstyle:o.drawerSection,children:[$,U]})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226); __d("WAWebReachoutTimelockRestrictedModalLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingModal.react","asyncToGeneratorRuntime","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||c("react");a=c("WAWebLazyLoadedRetriable")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield c("JSResourceForInteraction")("WAWebReachoutTimelockRestrictedModal.react").__setRef("WAWebReachoutTimelockRestrictedModalLoadable").load());return a.ReachoutTimelockRestrictedModal}),"ReachoutTimelockRestrictedModal");d=c("WAWebLoadable")({loader:a,loading:function(a){return i.jsx(c("WAWebLoadingModal.react"),{error:Boolean(a.error)})}});g.ReachoutTimelockRestrictedModalLoadable=d}),98);