;/*FB_PKG_DELIM*/ __d("WAArrayFindNext",[],(function(t,n,r,o,a,i){"use strict";function e(e,t){var n=e.findIndex(t);if(n!==-1&&!(n>=e.length-1))return e[n+1]}i.default=e}),66); __d("WASmaxInBugReportingIQErrorResponseMixin",["WAResultOrError","WASmaxParseReference","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WASmaxParseUtils").assertTag(e,"iq");if(!n.success)return n;var r=o("WASmaxParseReference").attrStringFromReference(t,["id"]);if(!r.success)return r;var a=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"id",r.value);if(!a.success)return a;var i=o("WASmaxParseReference").attrStringFromReference(t,["to"]);if(!i.success)return i;var l=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"from",i.value);if(!l.success)return l;var s=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"type","error");return s.success?o("WAResultOrError").makeResult({type:s.value}):s}l.parseIQErrorResponseMixin=e}),98); __d("WASmaxInBugReportingHackBaseIQErrorResponseMixin",["WAResultOrError","WASmaxInBugReportingIQErrorResponseMixin","WASmaxParseJid","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WASmaxParseUtils").assertTag(e,"iq");if(!n.success)return n;var r=o("WASmaxParseUtils").optional(o("WASmaxParseJid").attrUserJid,e,"to");if(!r.success)return r;var a=o("WASmaxInBugReportingIQErrorResponseMixin").parseIQErrorResponseMixin(e,t);return a.success?o("WAResultOrError").makeResult(babelHelpers.extends({to:r.value},a.value)):a}l.parseHackBaseIQErrorResponseMixin=e}),98); __d("WASmaxInBugReportingIQErrorBadRequestMixin",["WAResultOrError","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e){var t=o("WASmaxParseUtils").assertTag(e,"error");if(!t.success)return t;var n=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"text","bad-request");if(!n.success)return n;var r=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrInt,e,"code",400);return r.success?o("WAResultOrError").makeResult({text:n.value,code:r.value}):r}l.parseIQErrorBadRequestMixin=e}),98); __d("WASmaxInBugReportingIQErrorInternalServerErrorMixin",["WAResultOrError","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e){var t=o("WASmaxParseUtils").assertTag(e,"error");if(!t.success)return t;var n=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"text","internal-server-error");if(!n.success)return n;var r=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrInt,e,"code",500);return r.success?o("WAResultOrError").makeResult({text:n.value,code:r.value}):r}l.parseIQErrorInternalServerErrorMixin=e}),98); __d("WASmaxInBugReportingReportBugErrors",["WAResultOrError","WASmaxInBugReportingIQErrorBadRequestMixin","WASmaxInBugReportingIQErrorInternalServerErrorMixin","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e){var t=o("WASmaxInBugReportingIQErrorBadRequestMixin").parseIQErrorBadRequestMixin(e);if(t.success)return o("WAResultOrError").makeResult({name:"IQErrorBadRequest",value:t.value});var n=o("WASmaxInBugReportingIQErrorInternalServerErrorMixin").parseIQErrorInternalServerErrorMixin(e);return n.success?o("WAResultOrError").makeResult({name:"IQErrorInternalServerError",value:n.value}):o("WASmaxParseUtils").errorMixinDisjunction(e,["IQErrorBadRequest","IQErrorInternalServerError"],[t,n])}l.parseReportBugErrors=e}),98); __d("WASmaxInBugReportingReportBugResponseError",["WAResultOrError","WASmaxInBugReportingHackBaseIQErrorResponseMixin","WASmaxInBugReportingReportBugErrors","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WASmaxParseUtils").assertTag(e,"iq");if(!n.success)return n;var r=o("WASmaxParseUtils").flattenedChildWithTag(e,"error");if(!r.success)return r;var a=o("WASmaxInBugReportingHackBaseIQErrorResponseMixin").parseHackBaseIQErrorResponseMixin(e,t);if(!a.success)return a;var i=o("WASmaxInBugReportingReportBugErrors").parseReportBugErrors(r.value);return i.success?o("WAResultOrError").makeResult(babelHelpers.extends({},a.value,{errorReportBugErrors:i.value})):i}l.parseReportBugResponseError=e}),98); __d("WASmaxInBugReportingIQResultResponseMixin",["WAResultOrError","WASmaxParseReference","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WASmaxParseUtils").assertTag(e,"iq");if(!n.success)return n;var r=o("WASmaxParseReference").attrStringFromReference(t,["id"]);if(!r.success)return r;var a=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"id",r.value);if(!a.success)return a;var i=o("WASmaxParseReference").attrStringFromReference(t,["to"]);if(!i.success)return i;var l=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"from",i.value);if(!l.success)return l;var s=o("WASmaxParseUtils").literal(o("WASmaxParseUtils").attrString,e,"type","result");return s.success?o("WAResultOrError").makeResult({type:s.value}):s}l.parseIQResultResponseMixin=e}),98); __d("WASmaxInBugReportingHackBaseIQResultResponseMixin",["WAResultOrError","WASmaxInBugReportingIQResultResponseMixin","WASmaxParseJid","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WASmaxParseUtils").assertTag(e,"iq");if(!n.success)return n;var r=o("WASmaxParseUtils").optional(o("WASmaxParseJid").attrUserJid,e,"to");if(!r.success)return r;var a=o("WASmaxInBugReportingIQResultResponseMixin").parseIQResultResponseMixin(e,t);return a.success?o("WAResultOrError").makeResult(babelHelpers.extends({to:r.value},a.value)):a}l.parseHackBaseIQResultResponseMixin=e}),98); __d("WASmaxInBugReportingReportBugResponseSuccess",["WAResultOrError","WASmaxInBugReportingHackBaseIQResultResponseMixin","WASmaxParseUtils"],(function(t,n,r,o,a,i,l){function e(e,t){var n=o("WASmaxParseUtils").assertTag(e,"iq");if(!n.success)return n;var r=o("WASmaxParseUtils").flattenedChildWithTag(e,"task_id");if(!r.success)return r;var a=o("WASmaxParseUtils").contentString(r.value);if(!a.success)return a;var i=o("WASmaxInBugReportingHackBaseIQResultResponseMixin").parseHackBaseIQResultResponseMixin(e,t);return i.success?o("WAResultOrError").makeResult(babelHelpers.extends({taskIdElementValue:a.value},i.value)):i}l.parseReportBugResponseSuccess=e}),98); __d("WASmaxOutBugReportingBaseIQSetRequestMixin",["WASmaxJsx","WASmaxMixins","WAWap"],(function(t,n,r,o,a,i,l){function e(){var e=o("WASmaxJsx").smax("iq",{id:o("WAWap").generateId(),type:"set"});return e}function s(t){var n=e();return o("WASmaxMixins").mergeStanzas(t,n)}l.mergeBaseIQSetRequestMixin=s}),98); __d("WASmaxOutBugReportingHackBaseIQSetRequestMixin",["WASmaxAttrs","WASmaxJsx","WASmaxMixins","WASmaxOutBugReportingBaseIQSetRequestMixin","WAWap"],(function(t,n,r,o,a,i,l){function e(e){var t=e.iqFrom,n=o("WASmaxOutBugReportingBaseIQSetRequestMixin").mergeBaseIQSetRequestMixin(o("WASmaxJsx").smax("iq",{from:o("WASmaxAttrs").OPTIONAL(o("WAWap").USER_JID,t),to:o("WAWap").S_WHATSAPP_NET}));return n}function s(t,n){var r=e(n);return o("WASmaxMixins").mergeStanzas(t,r)}l.mergeHackBaseIQSetRequestMixin=s}),98); __d("WASmaxOutBugReportingReportBugRequest",["WASmaxAttrs","WASmaxChildren","WASmaxJsx","WASmaxOutBugReportingHackBaseIQSetRequestMixin","WAWap"],(function(t,n,r,o,a,i,l){function e(e){var t=e.deviceLogHandleElementValue,n=o("WASmaxJsx").smax("device_log_handle",null,t);return n}function s(e){var t=e.mediaIv,n=e.mediaCipherKey,r=e.mediaType,a=e.mediaElementValue,i=o("WASmaxJsx").smax("media",{iv:o("WAWap").CUSTOM_STRING(t),cipherKey:o("WAWap").CUSTOM_STRING(n),type:o("WASmaxAttrs").OPTIONAL(o("WAWap").CUSTOM_STRING,r)},a);return i}function u(e){var t=e.titleElementValue,n=o("WASmaxJsx").smax("title",null,t);return n}function c(e){var t=e.categoryElementValue,n=o("WASmaxJsx").smax("category",null,t);return n}function d(t){var n,r=t.deviceLogHandleArgs,a=t.mediaArgs,i=t.titleArgs,l=t.categoryArgs,d=t.descriptionElementValue,m=t.debugInformationJsonElementValue,p=o("WASmaxOutBugReportingHackBaseIQSetRequestMixin").mergeHackBaseIQSetRequestMixin(o("WASmaxJsx").smax("iq",{xmlns:"fb:thrift_iq",smax_id:o("WAWap").INT(105)},[o("WASmaxJsx").smax("description",null,d),o("WASmaxJsx").smax("debug_information_json",null,m),(n=o("WASmaxChildren")).OPTIONAL_CHILD(e,r)].concat(n.REPEATED_CHILD(s,a,0,10),[n.OPTIONAL_CHILD(u,i),n.OPTIONAL_CHILD(c,l)])),t);return p}l.makeReportBugRequestDeviceLogHandle=e,l.makeReportBugRequestMedia=s,l.makeReportBugRequestTitle=u,l.makeReportBugRequestCategory=c,l.makeReportBugRequest=d}),98); __d("WASmaxBugReportingReportBugRPC",["WAComms","WASmaxInBugReportingReportBugResponseError","WASmaxInBugReportingReportBugResponseSuccess","WASmaxOutBugReportingReportBugRequest","WASmaxParsingFailure","WASmaxRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n=o("WASmaxOutBugReportingReportBugRequest").makeReportBugRequest(e),r=yield o("WAComms").sendSmaxStanza(n,t),a=o("WASmaxInBugReportingReportBugResponseSuccess").parseReportBugResponseSuccess(r,n);if(a.success)return{name:"ReportBugResponseSuccess",value:a.value};var i=o("WASmaxInBugReportingReportBugResponseError").parseReportBugResponseError(r,n);if(i.success)return{name:"ReportBugResponseError",value:i.value};throw new(o("WASmaxParsingFailure")).SmaxParsingFailure(o("WASmaxRpcUtils").errorMessageRpcParsing("ReportBug",{Success:a,Error:i}))}),s.apply(this,arguments)}l.sendReportBugRPC=e}),98); __d("WAWebSettingsHierarchy",["WAWebABProps","WAWebBizGatingUtils","WAWebCommonCTWADataSharing","WAWebCurrentUser","WAWebListsGatingUtils","WAWebSettingsConst","WAWebSettingsFBT","WAWebWamEnumSettingsItemType","cr:1131","cr:17208","cr:687","cr:7288","gkx"],(function(t,n,r,o,a,i,l){var e,s,u,c,d=(e=n("cr:7288"))!=null?e:{},m=d.ShowNotificationBannerSettingsItem,p=(s=n("cr:1131"))!=null?s:{},_=p.GeneralSettingsItem,f=p.SystemTraySettingsItem,g=(u=n("cr:17208"))!=null?u:{},h=g.AudioOutputSettingsItem,y=g.DeviceSettingsParentItem,C=g.MicrophoneSettingsItem,b=g.WebcamSettingsItem,v=(c=n("cr:687"))!=null?c:{},S=v.TaskbarNotificationSettingsItem;function R(e){return e===void 0&&(e=!1),[{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","send_feedback","newsletter_reports","terms"]}].concat(e===!1?["bugnub"]:[],["logout"],e===!0?["divider"]:[],e===!0?["bugnub"]:[],[{developer:["developer_abprops","developer_infra_settings"]}])}var L={step:o("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings,id:"request_account_info",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").requestAccountInfoTitle()).toLowerCase(),title:o("WAWebSettingsFBT").requestAccountInfoTitle,testid:"li-request-account-info",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.REQUEST_ACCOUNT_INFO},E={step:o("WAWebSettingsConst").SettingsSteps.Security,id:"security",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").securityTitle()),title:o("WAWebSettingsFBT").securityTitle,testid:"li-security",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.SECURITY},k={step:o("WAWebSettingsConst").SettingsSteps.DeleteAccount,id:"delete_account",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").deleteAccountTitle()).toLowerCase(),title:o("WAWebSettingsFBT").deleteAccountTitle},I={step:o("WAWebSettingsConst").SettingsSteps.Wallpaper,id:"wallpaper",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").wallpaperTitle()).toLowerCase(),title:o("WAWebSettingsFBT").wallpaperTitle,testid:"li-wallpaper",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.CHAT_WALLPAPER},T={step:o("WAWebSettingsConst").SettingsSteps.Theme,id:"theme",isAvailable:!0,searchCriteria:[String(o("WAWebSettingsFBT").themeTitle()),String(o("WAWebSettingsFBT").themeLightLabel()),String(o("WAWebSettingsFBT").themeDarkLabel())].join(" ").toLowerCase(),title:o("WAWebSettingsFBT").themeTitle,testid:"li-theme",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.THEME},D={step:o("WAWebSettingsConst").SettingsSteps.MediaAutoDownload,id:"media_auto_download",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").mediaAutoDownloadTitle()).toLowerCase(),title:o("WAWebSettingsFBT").mediaAutoDownloadTitle,testid:"li-media-auto-download",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.MEDIA_AUTO_DOWNLOAD},x={step:o("WAWebSettingsConst").SettingsSteps.MediaUploadQuality,id:"media_upload_quality",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").mediaUploadQualityTitle()).toLowerCase(),title:o("WAWebSettingsFBT").mediaUploadQualityTitle,testid:"li-media-upload-quality"};function $(e){e===void 0&&(e=!1);var t=o("WAWebBizGatingUtils").isBizToolsDrawerEnabled(),n=[{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsTitle()),title:o("WAWebSettingsFBT").businessToolsTitle,secondaryTitle:o("WAWebSettingsFBT").businessToolsSecondaryTitle,testid:"li-biz-tools",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.BUSINESS_TOOLS},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_business_profile",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsBusinessProfileTitle()),title:o("WAWebSettingsFBT").businessToolsBusinessProfileTitle},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_catalog",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsCatalogTitle()),title:o("WAWebSettingsFBT").businessToolsCatalogTitle},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_orders",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsOrdersTitle()),title:o("WAWebSettingsFBT").businessToolsOrdersTitle},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_advertise",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsAdvertiseTitle()),title:o("WAWebSettingsFBT").businessToolsAdvertiseTitle},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_quick_replies",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsQuickRepliesTitle()),title:o("WAWebSettingsFBT").businessToolsQuickRepliesTitle},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_labels",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsLabelsTitle()),title:o("WAWebSettingsFBT").businessToolsLabelsTitle},{step:o("WAWebSettingsConst").SettingsSteps.BusinessTools,id:"business_tools_help_center",isAvailable:t,searchCriteria:String(o("WAWebSettingsFBT").businessToolsHelpCenterTitle()),title:o("WAWebSettingsFBT").businessToolsHelpCenterTitle},m,S,{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"notifications",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").notificationsTitle()),title:o("WAWebSettingsFBT").notificationsTitle,secondaryTitle:o("WAWebSettingsFBT").notificationsSecondaryTitle,testid:"li-notifications",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.NOTIFICATIONS},{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"message_notifications",isAvailable:!0,title:o("WAWebSettingsFBT").messageNotificationsTitle,searchCriteria:[String(o("WAWebSettingsFBT").messageNotificationsTitle()),String(o("WAWebSettingsFBT").messageNotificationsSubtitle())].join(" ").toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"show_previews",isAvailable:!0,title:o("WAWebSettingsFBT").showPreviewsTitle,searchCriteria:String(o("WAWebSettingsFBT").showPreviewsTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"show_reaction_notifications",isAvailable:!0,title:o("WAWebSettingsFBT").showReactionsTitle,searchCriteria:String(o("WAWebSettingsFBT").showReactionsTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"show-calls-notification",isAvailable:!0,title:o("WAWebSettingsFBT").showCallsTitle,searchCriteria:String(o("WAWebSettingsFBT").showCallsTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"option-play-call-ringtone",isAvailable:!0,title:o("WAWebSettingsFBT").playCallRingtoneTitle,searchCriteria:String(o("WAWebSettingsFBT").playCallRingtoneTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.Notifications,id:"sounds",isAvailable:!0,title:o("WAWebSettingsFBT").soundsTitle,searchCriteria:[String(o("WAWebSettingsFBT").soundsTitle()),String(o("WAWebSettingsFBT").soundsSubtitle())].join(" ").toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.PrivacySettings,id:"privacy",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").privacyTitle()),title:o("WAWebSettingsFBT").privacyTitle,secondaryTitle:o("WAWebSettingsFBT").privacySecondaryTitle,testid:"settings-drawer-item-privacy",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.PRIVACY},{step:o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditLastSeen,id:"wcs_last_seen",isAvailable:!0,title:o("WAWebSettingsFBT").privacyLastSeenOnlineEnabledTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyLastSeenOnlineEnabledTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditProfilePicture,id:"wcs_profile_photo",isAvailable:!0,title:o("WAWebSettingsFBT").privacyProfilePhotoTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyProfilePhotoTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditAbout,id:"wcs_about_status",isAvailable:!0,title:o("WAWebSettingsFBT").privacyAboutTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyAboutTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.PrivacySettings,id:"wcs_read_receipts",isAvailable:!0,title:o("WAWebSettingsFBT").privacyReadReceiptsTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyReadReceiptsTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.DefaultEphemerality,id:"default_message_timer",isAvailable:!0,title:o("WAWebSettingsFBT").privacyDDMTitle,searchCriteria:[String(o("WAWebSettingsFBT").privacyDDMTitle()),String(o("WAWebSettingsFBT").privacyDMTitle())].join(" ").toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditGroupAdd,id:"privacy_groups",isAvailable:!0,title:o("WAWebSettingsFBT").privacyGroupsTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyGroupsTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.Blocked,id:"privacy_blocked",isAvailable:!0,title:o("WAWebSettingsFBT").privacyBlockedTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyBlockedTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.ScreenLock,id:"screen_lock",isAvailable:!0,title:o("WAWebSettingsFBT").privacyScreenlockTitle,searchCriteria:String(o("WAWebSettingsFBT").privacyScreenlockTitle()).toLowerCase()},{step:o("WAWebSettingsConst").SettingsSteps.DataSharing,id:"data_sharing",isAvailable:r("WAWebCommonCTWADataSharing").shouldDisplayDataSharingSetting(),searchCriteria:String(o("WAWebSettingsFBT").dataSharingTitle()).toLowerCase(),title:o("WAWebSettingsFBT").dataSharingTitle,testid:"li-data-sharing",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DATA_SHARING},{step:o("WAWebSettingsConst").SettingsSteps.Lists,id:"lists",isAvailable:o("WAWebListsGatingUtils").isListsM2Enabled(),searchCriteria:[String(o("WAWebSettingsFBT").listsTitle()),String(o("WAWebSettingsFBT").listsSecondaryTitle())].join(" ").toLowerCase(),secondaryTitle:o("WAWebSettingsFBT").listsSecondaryTitle,title:o("WAWebSettingsFBT").listsTitle,testid:"li-lists",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.LISTS},{step:o("WAWebSettingsConst").SettingsSteps.LanguageAndTime,id:"language_and_time",isAvailable:!1,searchCriteria:String(o("WAWebSettingsFBT").languageAndTimeTitle()).toLowerCase(),title:o("WAWebSettingsFBT").languageAndTimeTitle,testid:"li-language-and-time"},{step:o("WAWebSettingsConst").SettingsSteps.Language,id:"language",isAvailable:!1,searchCriteria:String(o("WAWebSettingsFBT").languageTitle()).toLowerCase(),title:o("WAWebSettingsFBT").languageTitle,testid:"li-language"},{step:o("WAWebSettingsConst").SettingsSteps.TimeFormat,id:"time_format",isAvailable:!1,searchCriteria:String(o("WAWebSettingsFBT").timeFormatTitle()).toLowerCase(),title:o("WAWebSettingsFBT").timeFormatTitle,testid:"li-time-format"},E,T,I,D,L,{step:o("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts,id:"keyboard_shortcuts",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").keyboardShortcutsTitle()).toLowerCase(),title:o("WAWebSettingsFBT").keyboardShortcutsTitle,secondaryTitle:o("WAWebSettingsFBT").keyboardShortcutsSecondaryTitle,testid:"li-keyboard-shortcuts",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.KEYBOARD_SHORTCUTS},{step:o("WAWebSettingsConst").SettingsSteps.Help,id:"help",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").helpTitle()).toLowerCase(),title:o("WAWebSettingsFBT").helpTitle,secondaryTitle:o("WAWebSettingsFBT").helpSecondaryTitle,testid:"li-help",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.HELP},{step:o("WAWebSettingsConst").SettingsSteps.Help,id:"help_center",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").helpCenterTitle()).toLowerCase(),title:o("WAWebSettingsFBT").helpCenterTitle},{step:o("WAWebSettingsConst").SettingsSteps.Help,id:"contact_us",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").contactUsTitle()),title:o("WAWebSettingsFBT").contactUsTitle},{step:o("WAWebSettingsConst").SettingsSteps.Help,id:"send_feedback",isAvailable:function(){return o("WAWebABProps").getABPropConfigValue("web_internal_in_app_bug_reporting_enable")},searchCriteria:String(o("WAWebSettingsFBT").sendFeedbackTitle()).toLowerCase(),title:o("WAWebSettingsFBT").sendFeedbackTitle,testid:"li-send-feedback"},{step:o("WAWebSettingsConst").SettingsSteps.NewsletterReports,id:"newsletter_reports",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").newsletterReportsTitle()).toLowerCase(),title:o("WAWebSettingsFBT").newsletterReportsTitle,testid:"li-newsletter-reports"},{step:o("WAWebSettingsConst").SettingsSteps.Help,id:"terms",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").termsTitle()).toLowerCase(),title:o("WAWebSettingsFBT").termsTitle},{step:o("WAWebSettingsConst").SettingsSteps.DeleteAccount,id:"delete_account",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").deleteAccountTitle()).toLowerCase(),title:o("WAWebSettingsFBT").deleteAccountTitle},{step:o("WAWebSettingsConst").SettingsSteps.Bugnub,id:"bugnub",isAvailable:o("WAWebCurrentUser").isEmployee(),searchCriteria:"Report a bug",title:function(){return"Report a bug (internal)"},secondaryTitle:function(){return"Tell us what went wrong"}}].concat(r("gkx")("26258")?[]:[{step:o("WAWebSettingsConst").SettingsSteps.Developer,id:"developer",isAvailable:!r("gkx")("26258"),searchCriteria:String(o("WAWebSettingsFBT").developerTitle()),title:o("WAWebSettingsFBT").developerTitle,secondaryTitle:o("WAWebSettingsFBT").developerSecondaryTitle,testid:"li-developer",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0},{step:o("WAWebSettingsConst").SettingsSteps.DeveloperABProps,id:"developer_abprops",isAvailable:!r("gkx")("26258"),searchCriteria:String(o("WAWebSettingsFBT").developerABPropsTitle()),title:o("WAWebSettingsFBT").developerABPropsTitle,testid:"li-developer-abprops",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0},{step:o("WAWebSettingsConst").SettingsSteps.DeveloperInfraSettings,id:"developer_infra_settings",isAvailable:!r("gkx")("26258"),searchCriteria:String(o("WAWebSettingsFBT").developerInfraSettingsTitle()),title:o("WAWebSettingsFBT").developerInfraSettingsTitle,testid:"li-developer-infra",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0},{step:o("WAWebSettingsConst").SettingsSteps.DeveloperInfraSettings,id:"developer_infra_settings",isAvailable:!r("gkx")("26258"),searchCriteria:String(o("WAWebSettingsFBT").developerWWWSettingsTitle()),title:o("WAWebSettingsFBT").developerWWWSettingsTitle,testid:"li-developer-www",wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.DEVELOPER,isDevOnly:!0}],[{step:o("WAWebSettingsConst").SettingsSteps.Logout,id:"logout",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").logoutTitle()),title:o("WAWebSettingsFBT").logoutTitle,wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.LOGOUT,testid:"li-logout",color:"critical"},{step:o("WAWebSettingsConst").SettingsSteps.Account,id:"account",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").accountTitle()),title:o("WAWebSettingsFBT").accountTitle,secondaryTitle:o("WAWebSettingsFBT").accountSecondaryTitle,wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.ACCOUNT,testid:"li-account"},{step:o("WAWebSettingsConst").SettingsSteps.Chats,id:"chats",isAvailable:!0,searchCriteria:String(o("WAWebSettingsFBT").chatsTitle()),title:o("WAWebSettingsFBT").chatsTitle,secondaryTitle:o("WAWebSettingsFBT").chatsSecondaryTitle,wamName:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.CHATS,testid:"li-chats"},{step:o("WAWebSettingsConst").SettingsSteps.Divider,id:"divider",isAvailable:!0,title:function(){return"divider"},testid:"li-divider"},_,f,y,C,b,h]).filter(Boolean),a=n.reduce(function(e,t){return e.set(t.id,t),e},new Map),i=[];function l(e,t){for(var n of t)if(typeof n=="string"){var r=a.get(n);r!=null&&(r.parentId=e,i.push(r))}else for(var o of Object.getOwnPropertyNames(n)){var s=a.get(o);s!=null&&(s.parentId=e,i.push(s)),l(o,n[o])}}return l(null,R(e)),i}function P(e){var t={};return e.map(function(e){var n=babelHelpers.extends({},e);return t[n.id]==null&&(t[n.id]=n),n.searchCriteria!=null&&(n.searchCriteria=n.searchCriteria.toLowerCase()),n.parentId!=null&&(n.parent=t[n.parentId],n.parent!=null&&n.parent.searchCriteria!=null&&(n.searchCriteria==null&&(n.searchCriteria=""),n.parent.searchCriteria!=null&&(n.searchCriteria+=n.parent.searchCriteria))),n})}l.RequestAccountInfoSettingsItem=L,l.SecuritySettingsItem=E,l.DeleteAccountSettingsItem=k,l.ThemeSettingsItem=T,l.MediaAutoDownloadSettingsItem=D,l.MediaUploadQualitySettingsItem=x,l.getSettingsSearchHierarchy=$,l.buildSearchableHierarchy=P}),98); __d("WAWebBugnubRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="bugnub-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.BugnubRefreshedIcon=m}),98); __d("WAWebIcComputerIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-computer";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcComputerIcon=m}),98); __d("WAWebIcSyncIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-sync";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M6 12.05a5.84 5.84 0 0 0 1.75 4.15l.25.25V15c0-.28.1-.52.29-.71.19-.2.43-.29.71-.29.28 0 .52.1.71.29.2.19.29.43.29.71v4c0 .28-.1.52-.29.71-.19.2-.43.29-.71.29H5a.97.97 0 0 1-.71-.29A.97.97 0 0 1 4 19c0-.28.1-.52.29-.71.19-.2.43-.29.71-.29h1.75l-.4-.35a6.32 6.32 0 0 1-1.82-2.62A8.82 8.82 0 0 1 4 12.04a8 8 0 0 1 4.43-7.2.77.77 0 0 1 .73-.02c.26.11.43.3.52.57.08.25.07.5-.02.75-.09.25-.25.44-.48.57A6.14 6.14 0 0 0 6 12.05Zm12-.1a5.84 5.84 0 0 0-1.75-4.15L16 7.55V9c0 .28-.1.52-.29.71-.19.2-.43.29-.71.29a.97.97 0 0 1-.71-.29A.97.97 0 0 1 14 9V5c0-.28.1-.52.29-.71.19-.2.43-.29.71-.29h4c.28 0 .52.1.71.29.2.19.29.43.29.71 0 .28-.1.52-.29.71-.19.2-.43.29-.71.29h-1.75l.4.35a7.77 7.77 0 0 1 2.35 5.6 8 8 0 0 1-4.43 7.2.77.77 0 0 1-.73.02.9.9 0 0 1-.52-.57 1.1 1.1 0 0 1 .02-.75c.09-.25.25-.44.48-.58A6.14 6.14 0 0 0 18 11.95Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcSyncIcon=m}),98); __d("WAWebKeyOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="key-outline";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.KeyOutlineIcon=m}),98); __d("WAWebKeyboardIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="keyboard";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.KeyboardIcon=m}),98); __d("WAWebShieldIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="shield";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ShieldIcon=m}),98); __d("WAWebStorefrontIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="storefront";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.StorefrontIcon=m}),98); __d("WAWebThemeRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="theme-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ThemeRefreshedIcon=m}),98); __d("WAWebTransferRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="transfer-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M5.8248 17L7.7248 18.9C7.9248 19.1 8.02064 19.3333 8.0123 19.6C8.00397 19.8667 7.8998 20.1 7.6998 20.3C7.4998 20.4833 7.26647 20.5792 6.9998 20.5875C6.73314 20.5958 6.4998 20.5 6.2998 20.3L2.6998 16.7C2.5998 16.6 2.52897 16.4917 2.4873 16.375C2.44564 16.2583 2.4248 16.1333 2.4248 16C2.4248 15.8667 2.44564 15.7417 2.4873 15.625C2.52897 15.5083 2.5998 15.4 2.6998 15.3L6.2998 11.7C6.48314 11.5167 6.7123 11.425 6.9873 11.425C7.2623 11.425 7.4998 11.5167 7.6998 11.7C7.8998 11.9 7.9998 12.1375 7.9998 12.4125C7.9998 12.6875 7.8998 12.925 7.6998 13.125L5.8248 15H19.9998C20.2831 15 20.5206 15.0958 20.7123 15.2875C20.904 15.4792 20.9998 15.7167 20.9998 16C20.9998 16.2833 20.904 16.5208 20.7123 16.7125C20.5206 16.9042 20.2831 17 19.9998 17H5.8248ZM18.1748 8.99999H3.9998C3.71647 8.99999 3.47897 8.90415 3.2873 8.71249C3.09564 8.52082 2.9998 8.28332 2.9998 7.99999C2.9998 7.71665 3.09564 7.47915 3.2873 7.28749C3.47897 7.09582 3.71647 6.99999 3.9998 6.99999H18.1748L16.2748 5.09999C16.0748 4.89999 15.979 4.66665 15.9873 4.39999C15.9956 4.13332 16.0998 3.89999 16.2998 3.69999C16.4998 3.51665 16.7331 3.42082 16.9998 3.41249C17.2665 3.40415 17.4998 3.49999 17.6998 3.69999L21.2998 7.29999C21.3998 7.39999 21.4706 7.50832 21.5123 7.62499C21.554 7.74165 21.5748 7.86665 21.5748 7.99999C21.5748 8.13332 21.554 8.25832 21.5123 8.37499C21.4706 8.49165 21.3998 8.59999 21.2998 8.69999L17.6998 12.3C17.5165 12.4833 17.2873 12.575 17.0123 12.575C16.7373 12.575 16.4998 12.4833 16.2998 12.3C16.0998 12.1 15.9998 11.8625 15.9998 11.5875C15.9998 11.3125 16.0998 11.075 16.2998 10.875L18.1748 8.99999Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.TransferRefreshedIcon=m}),98); __d("WAWebWallpaperRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wallpaper-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WallpaperRefreshedIcon=m}),98); __d("WAWebSettingsStepIcon.react",["WAWebBugnubRefreshedIcon.react","WAWebChatRefreshedIcon.react","WAWebClockRefreshedIcon.react","WAWebDevIcon.react","WAWebDocumentRefreshedIcon.react","WAWebExitRefreshedIcon.react","WAWebIcComputerIcon.react","WAWebIcDownloadIcon.react","WAWebIcSyncIcon.react","WAWebInfoRefreshedIcon.react","WAWebKeyOutlineIcon.react","WAWebKeyboardIcon.react","WAWebListPeopleIcon.react","WAWebLockRefreshedIcon.react","WAWebMessageReportRefreshedIcon.react","WAWebQuestionIcon.react","WAWebSettingsConst","WAWebShieldIcon.react","WAWebStorefrontIcon.react","WAWebSvgComponentBase","WAWebThemeRefreshedIcon.react","WAWebTransferRefreshedIcon.react","WAWebUnmuteNotificationsRefreshedIcon.react","WAWebVideoCallRefreshedIcon.react","WAWebWallpaperRefreshedIcon.react","WDSIconIcWarning.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.setting,n=c;return s.jsx("div",{className:"xhslqc4",children:s.jsx(n,{setting:t})})}u.displayName=u.name+" [from "+i.id+"]";function c(e){var t=e.setting;switch(t){case o("WAWebSettingsConst").SettingsSteps.BusinessTools:return s.jsx(o("WAWebStorefrontIcon.react").StorefrontIcon,{});case o("WAWebSettingsConst").SettingsSteps.DataSharing:return s.jsx(o("WAWebTransferRefreshedIcon.react").TransferRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Notifications:return s.jsx(o("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.PrivacySettings:return s.jsx(o("WAWebLockRefreshedIcon.react").LockRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.LanguageAndTime:return s.jsx(o("WAWebClockRefreshedIcon.react").ClockRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Security:return s.jsx(o("WAWebShieldIcon.react").ShieldIcon,{});case o("WAWebSettingsConst").SettingsSteps.Wallpaper:return s.jsx(o("WAWebWallpaperRefreshedIcon.react").WallpaperRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.MediaAutoDownload:return s.jsx(o("WAWebIcDownloadIcon.react").IcDownloadIcon,{});case o("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings:return s.jsx(o("WAWebDocumentRefreshedIcon.react").DocumentRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Help:return s.jsx(o("WAWebQuestionIcon.react").QuestionIcon,{});case o("WAWebSettingsConst").SettingsSteps.Bugnub:return s.jsx(o("WAWebBugnubRefreshedIcon.react").BugnubRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Developer:case o("WAWebSettingsConst").SettingsSteps.DeveloperABProps:return s.jsx(o("WAWebDevIcon.react").DevIcon,{});case o("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts:return s.jsx(o("WAWebKeyboardIcon.react").KeyboardIcon,{});case o("WAWebSettingsConst").SettingsSteps.Theme:return s.jsx(o("WAWebThemeRefreshedIcon.react").ThemeRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Logout:return s.jsx(o("WAWebExitRefreshedIcon.react").ExitRefreshedIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL});case o("WAWebSettingsConst").SettingsSteps.NewsletterReports:return s.jsx(o("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Account:return s.jsx(o("WAWebKeyOutlineIcon.react").KeyOutlineIcon,{});case o("WAWebSettingsConst").SettingsSteps.Chats:return s.jsx(o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.DeleteAccount:return s.jsx(o("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{});case o("WAWebSettingsConst").SettingsSteps.Lists:return s.jsx(o("WAWebListPeopleIcon.react").ListPeopleIcon,{});case o("WAWebSettingsConst").SettingsSteps.WinGeneralSettings:return s.jsx(o("WAWebIcComputerIcon.react").IcComputerIcon,{width:24,height:24});case o("WAWebSettingsConst").SettingsSteps.WinDevicesSettings:return s.jsx(o("WAWebVideoCallRefreshedIcon.react").VideoCallRefreshedIcon,{width:24,height:24});case o("WAWebSettingsConst").SettingsSteps.HistorySyncPaused:return s.jsx(r("WDSIconIcWarning.react"),{colorName:"secondaryWarning"});case o("WAWebSettingsConst").SettingsSteps.HistorySyncInProgress:return s.jsx(o("WAWebIcSyncIcon.react").IcSyncIcon,{});default:return null}}c.displayName=c.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebAccountSettingsDrawer.react",["fbt","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebMenu.react","WAWebMenuItems.react","WAWebSettingsFBT","WAWebSettingsHierarchy","WAWebSettingsStepIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onClickRequestAccountInfo,n=e.onClickSecurity,a=e.onClose,i=e.ref;return u.jsxs(r("WAWebDrawer.react"),{ref:i,theme:"settings",testid:void 0,children:[u.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:o("WAWebSettingsFBT").accountTitle(),onBack:a,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),u.jsx(r("WAWebDrawerBody.react"),{children:u.jsxs(o("WAWebMenu.react").WAWebMenu,{size:"medium",colorScheme:"default",allowTabNavigation:!0,children:[u.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:o("WAWebSettingsHierarchy").SecuritySettingsItem.id,testid:void 0,detailLeft:u.jsx(r("WAWebSettingsStepIcon.react"),{setting:o("WAWebSettingsHierarchy").SecuritySettingsItem.step}),onSelect:n,primary:s._(/*BTDS*/"Notificaciones de seguridad"),searchCriteria:o("WAWebSettingsHierarchy").SecuritySettingsItem.searchCriteria}),u.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:o("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.id,testid:void 0,detailLeft:u.jsx(r("WAWebSettingsStepIcon.react"),{setting:o("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.step}),onSelect:t,primary:o("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.title(),searchCriteria:o("WAWebSettingsHierarchy").RequestAccountInfoSettingsItem.searchCriteria}),u.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:o("WAWebSettingsHierarchy").DeleteAccountSettingsItem.id,testid:void 0,detailLeft:u.jsx(r("WAWebSettingsStepIcon.react"),{setting:o("WAWebSettingsHierarchy").DeleteAccountSettingsItem.step}),onSelect:d,primary:o("WAWebSettingsHierarchy").DeleteAccountSettingsItem.title(),searchCriteria:o("WAWebSettingsHierarchy").DeleteAccountSettingsItem.searchCriteria})]})})]})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getDeleteAccountUrl())}l.default=c}),226); __d("WAWebActionLinkButterbar.react",["WAWebChevronIcon.react","WAWebClickable.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={chevron:{display:"x1rg5ohu",verticalAlign:"x16dsc37",$$css:!0}};function c(e){var t=e.action,n=e.children,r=e.dataTab,a=e.inline,i=e.overrideDirection,l=i===void 0?null:i;return s.jsx(o("WAWebClickable.react").Clickable,{"data-tab":r,onClick:function(){t==null||t()},children:s.jsxs("span",babelHelpers.extends({},{0:{},1:{className:"x1lliihq"}}[!a<<0],{children:[s.jsx("span",{className:"xt0b8zv x1277o0a",children:n}),s.jsx(o("WAWebChevronIcon.react").ChevronIcon,{xstyle:u.chevron,directional:!1,height:20,width:18,overrideDirection:l})]}))})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebAdaptiveLayoutGatingUtils",["WAWebABProps","justknobx"],(function(t,n,r,o,a,i,l){function e(){return o("WAWebABProps").getABPropConfigValue("functional_chatlist_panel_enabled")&&r("justknobx")._("5197")}function s(){return o("WAWebABProps").getABPropConfigValue("functional_chatlist_enabled")&&r("justknobx")._("5244")}l.shouldUseFunctionalChatlistPanel=e,l.shouldUseFunctionalChatlist=s}),98); __d("WAWebAddToFavoritesModal.react",["fbt","WAWebABProps","WAWebAddToFavoritesAction","WAWebFavoriteCollection","WAWebNoop","WAWebSelectModal.react","WAWebSelectModalFooter.react","WAWebWamEnumFavoritesUpdateEntryPoint","WDSBanner.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t,n=e.onClose;function a(e){o("WAWebAddToFavoritesAction").addToFavoritesAction(e.map(function(e){return e.id}),{entryPoint:o("WAWebWamEnumFavoritesUpdateEntryPoint").FAVORITES_UPDATE_ENTRY_POINT.FILTER_EMPTY_STATE_ACTION}).catch(r("WAWebNoop")),n()}function i(e){return!e.isFavorite&&e.canToggleFavorite()}function l(e){return!e.isFavorite&&e.canToggleFavorite()}var c=(t=o("WAWebABProps").getABPropConfigValue("favorites_limit"))!=null?t:100,d=o("WAWebFavoriteCollection").FavoriteCollection.length,m=Math.max(0,c-d),p=s._(/*BTDS*/"Puedes a\u00f1adir hasta {favorites_limit} personas o grupos a favoritos.",[s._param("favorites_limit",c)]),_=u.jsx("div",{className:"x1x7fbuw",children:u.jsx("div",{className:"x1380le5 x14mko6t xefnzgg x1uvdrpn",children:u.jsx(r("WDSBanner.react"),{type:"warning",platform:"macWeb",body:s._(/*BTDS*/"A\u00f1ade tantas personas o grupos como quieras. Solo t\u00fa puedes ver qui\u00e9nes est\u00e1n incluidos en tus listas.")})})});return u.jsx(o("WAWebSelectModal.react").SelectModal,{listType:o("WAWebSelectModal.react").ListType.ChatSelectModal,title:s._(/*BTDS*/"A\u00f1ade a Favoritos"),ephemeralIcon:"chat-list",onConfirm:a,maxItems:m,maxItemsExceedErrorMsg:p,chatFilter:i,contactFilter:l,shouldShowSelectedChatList:!0,shouldShowSelectionSummary:!1,singleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,multipleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,customHeader:_,hideCustomHeaderWhenSelected:!0})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebPersonAddFilledRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="person-add-filled-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M18 11H16C15.7167 11 15.4792 10.9042 15.2875 10.7125C15.0958 10.5208 15 10.2833 15 10C15 9.71667 15.0958 9.47917 15.2875 9.2875C15.4792 9.09583 15.7167 9 16 9H18V7C18 6.71667 18.0958 6.47917 18.2875 6.2875C18.4792 6.09583 18.7167 6 19 6C19.2833 6 19.5208 6.09583 19.7125 6.2875C19.9042 6.47917 20 6.71667 20 7V9H22C22.2833 9 22.5208 9.09583 22.7125 9.2875C22.9042 9.47917 23 9.71667 23 10C23 10.2833 22.9042 10.5208 22.7125 10.7125C22.5208 10.9042 22.2833 11 22 11H20V13C20 13.2833 19.9042 13.5208 19.7125 13.7125C19.5208 13.9042 19.2833 14 19 14C18.7167 14 18.4792 13.9042 18.2875 13.7125C18.0958 13.5208 18 13.2833 18 13V11ZM9 12C7.9 12 6.95833 11.6083 6.175 10.825C5.39167 10.0417 5 9.1 5 8C5 6.9 5.39167 5.95833 6.175 5.175C6.95833 4.39167 7.9 4 9 4C10.1 4 11.0417 4.39167 11.825 5.175C12.6083 5.95833 13 6.9 13 8C13 9.1 12.6083 10.0417 11.825 10.825C11.0417 11.6083 10.1 12 9 12ZM1 18V17.2C1 16.6333 1.14583 16.1125 1.4375 15.6375C1.72917 15.1625 2.11667 14.8 2.6 14.55C3.63333 14.0333 4.68333 13.6458 5.75 13.3875C6.81667 13.1292 7.9 13 9 13C10.1 13 11.1833 13.1292 12.25 13.3875C13.3167 13.6458 14.3667 14.0333 15.4 14.55C15.8833 14.8 16.2708 15.1625 16.5625 15.6375C16.8542 16.1125 17 16.6333 17 17.2V18C17 18.55 16.8042 19.0208 16.4125 19.4125C16.0208 19.8042 15.55 20 15 20H3C2.45 20 1.97917 19.8042 1.5875 19.4125C1.19583 19.0208 1 18.55 1 18Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.PersonAddFilledRefreshedIcon=m}),98); __d("WAWebAddFavoriteButton.react",["fbt","WAWebAddToFavoritesModal.react","WAWebCellV2.react","WAWebModalManager","WAWebPersonAddFilledRefreshedIcon.react","WAWebRoundShape.react","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebAddToFavoritesModal.react"),{onClose:o("WAWebModalManager").closeModalManager}))},t=o("WAWebPersonAddFilledRefreshedIcon.react").PersonAddFilledRefreshedIcon,n=u.jsx(r("WAWebRoundShape.react"),{theme:"compact",children:u.jsx(t,{directional:!0})}),a=s._(/*BTDS*/"A\u00f1adir favorito");return u.jsx(r("WAWebCellV2.react"),{testid:void 0,detailLeft:n,primary:u.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:a}),onClick:e,size:"medium",isRefresh:!0})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebAddToListModal.react",["fbt","WAWebChatGetters","WAWebSelectModal.react","WAWebSelectModalFooter.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onClose,n=e.preselectedChats,r=n.map(function(e){return o("WAWebChatGetters").getIsGroup(e)?e:e.contact});return u.jsx(o("WAWebSelectModal.react").SelectModal,{listType:o("WAWebSelectModal.react").ListType.ChatSelectModal,title:s._(/*BTDS*/"A\u00f1adir a la lista"),ephemeralIcon:"chat-list",onConfirm:t,shouldShowSelectedChatList:!0,shouldShowSelectionSummary:!1,singleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,multipleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,getInitialItems:function(){return r},activeWithoutSelection:!0})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebAiAgentAutoReplyControlMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24541201322134132"}),null); __d("WAWebAiAgentAutoReplyControlMutation.graphql",["WAWebAiAgentAutoReplyControlMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"consumer_lid"},{defaultValue:null,kind:"LocalArgument",name:"phone_number"},{defaultValue:null,kind:"LocalArgument",name:"thread_status"}],t=[{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:e,kind:"Fragment",metadata:null,name:"WAWebAiAgentAutoReplyControlMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebAiAgentAutoReplyControlMutation",selections:t},params:{id:n("WAWebAiAgentAutoReplyControlMutation_facebookRelayOperation"),metadata:{},name:"WAWebAiAgentAutoReplyControlMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("WAWebAiAgentAutoReplyControlMutation",["Promise","WAWebAiAgentAutoReplyControlMutation.graphql","WAWebBizAiAgentGating","WAWebFetchAdAccountToken","WAWebLidMigrationUtils","WAWebNetworkStatus","WAWebRelayClient"],(function(t,n,r,o,a,i,l){var e,s,u=e!==void 0?e:e=n("WAWebAiAgentAutoReplyControlMutation.graphql"),c={isSuccess:!0},d={isSuccess:!1};function m(e,t){var r,a;if(!o("WAWebBizAiAgentGating").isAiAgentAutoReplyEnabled())return(s||(s=n("Promise"))).resolve(d);var i=e.isLid()?e.user:(r=o("WAWebLidMigrationUtils").toLid(e))==null?void 0:r.user,l=e.isRegularUserPn()?e.user:(a=o("WAWebLidMigrationUtils").toPn(e))==null?void 0:a.user;return p(l,i,t)}function p(e,t,n){return o("WAWebFetchAdAccountToken").fetchToken().then(function(a){return a.type==="success"?r("WAWebNetworkStatus").waitIfOffline().then(function(){return o("WAWebRelayClient").commitMutation(u,{consumer_lid:t!=null?t:"",phone_number:e!=null?e:"",thread_status:n},{environmentType:"facebook",accessToken:a.token}).then(function(e){var t,n=e==null||(t=e.xfb_whatsapp_smb_maiba_status_update)==null?void 0:t.success;return n===!0?c:d}).catch(function(e){return d})}):d})}l.changeAiReplyStatus=m}),98); __d("WAWebAppLockConfirmationDialog.react",["fbt","$InternalEnum","WAWebConfirmPopup.react","WAWebDialogEventLogger","WAWebFlexItem.react","WAWebLockScreenResolver","WAWebModalManager","WAWebWamEnumDialogNameType","WDSText.react","react","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useRef,m=n("$InternalEnum")({DONE:"done",LOCK:"lock"}),p={descriptionSpace:{marginBottom:"x1ua1l7f",$$css:!0}};function _(){var e=d(!1),t=function(){e.current=!0,r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.APP_LOCK_ENABLED_CONFIRM,source:m.LOCK}),o("WAWebModalManager").ModalManager.close(),o("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow()},n=function(){o("WAWebModalManager").ModalManager.close()};return o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"close_modal",function(){e.current||r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.APP_LOCK_ENABLED_CONFIRM,source:m.DONE})}),c.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"Se estableci\u00f3 la contrase\u00f1a"),onOK:t,okText:s._(/*BTDS*/"Bloquear ahora"),onCancel:n,cancelText:s._(/*BTDS*/"OK"),cancelButtonType:"simplified",testid:void 0,children:[c.jsx(r("WAWebFlexItem.react"),{xstyle:p.descriptionSpace,children:c.jsx(r("WDSText.react"),{type:"Body1",colorName:"contentDeemphasized",children:s._(/*BTDS*/"Puedes bloquear WhatsApp desde el men\u00fa Chats.")})}),c.jsx(r("WDSText.react"),{type:"Body1",colorName:"contentDeemphasized",children:s._(/*BTDS*/"Actualiza el bloqueo de la aplicaci\u00f3n en cualquier momento en Ajustes > Privacidad > Bloqueo de aplicaci\u00f3n.")})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebAudioPlayIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="audio-play";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=34,R=34;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 34 34",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 34 34",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M8.5,8.7c0-1.7,1.2-2.4,2.6-1.5l14.4,8.3c1.4,0.8,1.4,2.2,0,3l-14.4,8.3 c-1.4,0.8-2.6,0.2-2.6-1.5V8.7z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.AudioPlayIcon=m}),98); __d("WAWebAudioStatusIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","innerStyles","name","viewBox","width"],s,u,c=s||(s=r("react")),d="audio-status";function m(t){var n=t.height,a=t.iconXstyle,i=t.innerStyles,l=t.name,s=t.viewBox,m=t.width,p=babelHelpers.objectWithoutPropertiesLoose(t,e),_;if(s){var f=s.height,g=f===void 0?0:f,h=s.width,y=h===void 0?0:h,C=s.x,b=C===void 0?0:C,v=s.y,S=v===void 0?0:v;_=[b,S,y,g].join(" ")}var R=19,L=19;return(n!=null||m!=null)&&(R=n,L=m),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:l!=null?l:d},p,{children:c.jsxs("svg",{viewBox:_!=null?_:"0 0 19 19",height:R,width:L,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:l!=null?l:d}),c.jsx("path",{fill:"#FFFFFF",className:u(i==null?void 0:i.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"}),c.jsx("path",{fill:"currentColor",className:u(i==null?void 0:i.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.AudioStatusIcon=m}),98); __d("WAWebSettingsCheckList.react",["WDSSwitch.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={controlRightAligned:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",alignItems:"x6s0dn4",marginInlineStart:"x6pxu1d",transitionProperty:"x19991ni",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3",$$css:!0},control:{display:"x1rg5ohu",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",marginInlineEnd:"x1sa5p1d",verticalAlign:"x1uuroth",transitionProperty:"x19991ni",transitionDuration:"x1d8287x",transitionTimingFunction:"xwji4o3",$$css:!0},controlDisabled:{opacity:"x1iy03kw",$$css:!0}};function d(e){var t=e.checkboxRightAligned,n=e.children,r=e.disabled;return u.jsx("div",babelHelpers.extends({},{0:{className:"x78zum5 xv6tirj x7vsco6 x1f6kntn x1fc57z9"},2:{className:"x78zum5 x134lwj9 x1i2zvha x6prxxf x1fc57z9"},1:{className:"x78zum5 xv6tirj x7vsco6 x1f6kntn x1fc57z9 x47corl"},3:{className:"x78zum5 x134lwj9 x1i2zvha x6prxxf x1fc57z9 x47corl"}}[(t===!0)<<1|(r===!0)<<0],{children:n}))}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.ariaLabel,n=e.checkboxRightAligned,o=n===void 0?!1:n,a=e.hidden,i=a===void 0?!1:a,l=u.jsx("label",babelHelpers.extends({},{0:{className:"x1iyjqo2 xs83m0k x1r8uery x19991ni x1d8287x xwji4o3"},1:{className:"x1iyjqo2 xs83m0k x1r8uery x19991ni x1d8287x xwji4o3 xhslqc4 x197sbye"}}[(e.disabled===!0)<<0],{htmlFor:e.id,children:e.children})),m=u.jsx("div",babelHelpers.extends({"data-testid":void 0},(s||(s=r("stylex"))).props(o?c.controlRightAligned:c.control,e.disabled===!0&&c.controlDisabled,e.checkboxXStyle),{children:u.jsx(r("WDSSwitch.react"),{"aria-label":t,id:e.id,onChange:e.onChange,value:e.checked,disabled:e.disabled})}));return o?i?null:u.jsxs(d,{disabled:e.disabled,checkboxRightAligned:o,children:[l,m]}):u.jsxs(d,{disabled:e.disabled,children:[m,l]})}m.displayName=m.name+" [from "+i.id+"]",l.SettingsCheckListSection=d,l.SettingsCheckListItem=m}),98); __d("WAWebSettingsSyncBridge",["WALogger","WAWebSettingsSync","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(e,t,n){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,a){a===void 0&&(a="app"),o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Bridge: Sending mutation for ",""])),t),yield r("WAWebSettingsSync").sendMutation(t,n,a)}),u.apply(this,arguments)}l.sendSettingChange=s}),98); __d("useWAWebSettingSync",["WALogger","WAWebSettingsSyncBridge","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=(s||(s=o("react"))).useCallback;function c(t,n,r){return r===void 0&&(r="app"),u(function(a){for(var i=arguments.length,l=new Array(i>1?i-1:0),s=1;s0?r("WANullthrows")(t.head()).id:null]}))},c=_(u),d=c[0],g=c[1];o("useWAWebListener").useListener(o("WAWebChatAssignmentCollection").ChatAssignmentCollection,"add change remove",function(){g(u())});var h=function(){var e=d.get(a[0].id.toString()),t=!0;return d.forEach(function(n){n!==e&&(e=null),n!=null&&(t=!1)}),{areAllChatsUnassigned:t,commonlyAssignedAgentId:e}},v=_(h().commonlyAssignedAgentId),S=v[0],R=v[1],L=_(y()),E=L[0],k=L[1];o("useWAWebListener").useListener(o("WAWebAgentCollection").AgentCollection,"add change remove",function(){k(y())});var I=function(){R(null)},T=m.jsxs(o("WAWebFlex.react").FlexRow,{justify:"all",align:"center",children:[m.jsx(o("WAWebText.react").WAWebTextLarge,{as:"span",weight:"medium",children:s._(/*BTDS*/"Asignar chat")}),m.jsx(o("WAWebButton.react").WAWebButtonSimplified,{nowrap:!0,disabled:!S,onClick:I,children:s._(/*BTDS*/"ANULAR ASIGNACI\u00d3N")})]}),D=function(){o("WAWebModalManager").ModalManager.close()},x=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{o("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ASSIGN_CHAT,{annotations:{int:{chats_count:a.length}}}),yield o("WAWebBizChatAssignmentAction").changeChatAssignment(a.map(function(e){return{agentId:S,chat:e}}),i),o("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ASSIGN_CHAT,o("WAQplTypes").QuickLogActionType.SUCCESS),l==null||l()}catch(t){o("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_ASSIGN_CHAT,o("WAQplTypes").QuickLogActionType.FAIL),o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["chat_assignment_modal: handleOk error ",""])),t)}finally{o("WAWebModalManager").ModalManager.close()}});return function(){return t.apply(this,arguments)}})(),$=function(t){R(t.target.value)},P=E.map(function(e){return m.jsx("li",{children:m.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",children:[m.jsx("input",{id:e.id,className:"x2lah0s xmix8c7 xqf2s3x x1xp8n7a",type:"radio",name:"agent",checked:e.id===S,value:e.id,onChange:$}),m.jsx(o("WAWebText_DONOTUSE.react").TextLabel,{htmlFor:e.id,size:"16",color:"secondary",xstyle:f.label,children:e.name}),m.jsx(b,{}),C(e)]})},e.id)}),N=function(){var e=h(),t=e.areAllChatsUnassigned,n=e.commonlyAssignedAgentId;return a.length>1&&S==null?t:S===n};return p(function(){o("WAWebQplQuickPerformanceLoggerModule").QPL.markerEnd(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,o("WAQplTypes").QuickLogActionType.SUCCESS)},[]),m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:T,okText:s._(/*BTDS*/"Guardar"),type:o("WAWebModal.react").ModalTheme.ChatAssignment,onCancel:D,onOK:x,okDisabled:N(),children:m.jsx("form",{children:m.jsx("ol",{children:P})})})}v.displayName=v.name+" [from "+i.id+"]",l.default=v}),226); __d("WAWebBizChatAssignmentAiRepliesModal.react",["fbt","WAWebAiAgentAutoReplyControlMutation","WAWebBizChatAssignmentModal.react","WAWebBizGatingUtils","WAWebChatAssignmentLogEvents.flow","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","WAWebToast.react","WAWebToastManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chat,n=s._(/*BTDS*/"Para asignar un chat a otro dispositivo, se deben desactivar las respuestas de la IA en tu dispositivo m\u00f3vil.");if(!o("WAWebBizGatingUtils").isBizAiChatAssignmentInteropTosEnabled())return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:d,okText:r("WAWebFbtCommon")("OK"),children:n});var a=s._(/*BTDS*/"Para asignar un chat a otro dispositivo, se deben desactivar las respuestas de la IA en tu dispositivo m\u00f3vil."),i=s._(/*BTDS*/"Asignar el chat"),l=s._(/*BTDS*/"Desactivar respuestas de la IA"),c=s._(/*BTDS*/"Descartar"),m=function(){p(),t.setForceDismissAiAgentBlockingBar(!0)},p=function(){o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{action:{actionText:r("WAWebFbtCommon")("OK"),dismiss:!0},msg:s._(/*BTDS*/"No se pudieron desactivar las respuestas autom\u00e1ticas. Por favor, vuelve a intentarlo.")}))};return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:i,onOK:function(){o("WAWebAiAgentAutoReplyControlMutation").changeAiReplyStatus(t.id,"MUTED").then(function(e){e.isSuccess?o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebBizChatAssignmentModal.react"),{chats:[t],entryPoint:o("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.CONVERSATION_MENU})):m()}).catch(function(){m()}),o("WAWebModalManager").ModalManager.close()},okText:l,onCancel:function(){return o("WAWebModalManager").ModalManager.close()},cancelText:c,children:a})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.close()}l.default=c}),226); __d("WAWebBizChatAssignmentForMultipleChatsAiRepliesModal.react",["fbt","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(){var e=s._(/*BTDS*/"Asigna los chats"),t=s._(/*BTDS*/"Antes de asignar estos chats a otro agente, desactiva las respuestas de la IA."),n=s._(/*BTDS*/"Descartar");return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:e,onCancel:d,cancelText:n,children:t})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.close()}l.default=c}),226); __d("WAWebDBLabelDatabaseApi",["WAWebSchemaLabel","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){function e(){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebSchemaLabel").getLabelTable().all();if(e.length===0)return 1;var t=Math.max.apply(Math,e.map(function(e){var t=e.id;return parseInt(t,10)}));if(!Number.isInteger(t))throw r("err")("getNextLabelId: Invalid label id "+t);return t+1}),s.apply(this,arguments)}function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return o("WAWebSchemaLabel").getLabelTable().createOrReplace(e)}),c.apply(this,arguments)}function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return o("WAWebSchemaLabel").getLabelTable().remove(e)}),m.apply(this,arguments)}l.getNextLabelId=e,l.addOrEditLabel=u,l.removeLabel=d}),98); __d("WAWebBizLabelEditingAction",["invariant","WALogger","WATimeUtils","WAWebBizGatingUtils","WAWebDBLabelDatabaseApi","WAWebLabelCollection","WAWebLabelConstants","WAWebLabelSync","WAWebListsGatingUtils","WAWebSchemaLabel","WAWebSyncdCoreApi","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=0;function p(e,t){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,a){o("WAWebBizGatingUtils").labelsEditingEnabled()||s(0,75240);var i;try{i=yield o("WAWebDBLabelDatabaseApi").getNextLabelId()}catch(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["labelAddAction: failed to generate next label id with error ",""])),t).sendLogs("labelAddAction-failed");return}var l=o("WATimeUtils").unixTime(),c=o("WAWebLabelConstants").mapLabelNameToPredefinedId(t),d,m;o("WAWebListsGatingUtils").isListsEnabled()&&(d=!0,m=o("WAWebSchemaLabel").ListType.CUSTOM);var p=r("WAWebLabelSync").getLabelMutation(String(i),t,a,!1,c,d,m,l);o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[Label] labelAddAction: id ",", mutation generated"])),i);var _={id:String(i),name:t,colorIndex:a,predefinedId:c,isActive:d,type:m};return yield o("WAWebSyncdCoreApi").lockForSync(["label"],[p],n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebDBLabelDatabaseApi").addOrEditLabel(_)})),o("WAWebLabelCollection").LabelCollection.add(babelHelpers.extends({},_)),i}),_.apply(this,arguments)}function f(e,t,n,r,o,a){return g.apply(this,arguments)}function g(){return g=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,a,i,l,u){o("WAWebBizGatingUtils").labelsEditingEnabled()||s(0,75241);var d=o("WATimeUtils").unixTime(),p=r("WAWebLabelSync").getLabelMutation(e,t,i,!1,a!=null?a:m,l,u,d);o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[Label] labelEditAction: id ",", mutation generated"])),e);var _={id:e,name:t,colorIndex:i,predefinedId:a,isActive:l!=null?l:void 0,type:u!=null?u:void 0};yield o("WAWebSyncdCoreApi").lockForSync(["label"],[p],n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebDBLabelDatabaseApi").addOrEditLabel(_)})),o("WAWebLabelCollection").LabelCollection.add(babelHelpers.extends({},_),{merge:!0})}),g.apply(this,arguments)}function h(e,t,n){return y.apply(this,arguments)}function y(){return y=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,a){o("WAWebBizGatingUtils").labelsEditingEnabled()||s(0,75242);var i=o("WATimeUtils").unixTime(),l=r("WAWebLabelSync").getLabelMutation(e,t,a,!0,m,void 0,void 0,i);o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[Label] labelDeleteAction: id ",", mutation generated"])),e),yield o("WAWebSyncdCoreApi").lockForSync(["label"],[l],n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebDBLabelDatabaseApi").removeLabel(e)})),o("WAWebLabelCollection").LabelCollection.remove(e)}),y.apply(this,arguments)}l.labelAddAction=p,l.labelEditAction=f,l.labelDeleteAction=h}),98); __d("WAWebLabelColorPanel.react",["WAWebDropdown.react","WAWebFlex.react","WAWebL10N","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["anchor","onClose"],s,u,c=s||(s=r("react")),d={btnOutline:{boxSizing:"x9f619",width:"x1n7h9c3",height:"x1s1d1n7",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",$$css:!0}};function m(e){var t=e.colors,n=e.onSelect,a=e.selectedIndex,i=0;return c.jsx("div",babelHelpers.extends({role:"tablist"},(u||(u=r("stylex"))).props([o("WAWebUISpacing").uiPadding.horiz16,o("WAWebUISpacing").uiPadding.vert20]),{"data-testid":void 0,children:t.map(function(e,t){return c.jsx(o("WAWebFlex.react").FlexRow,{className:(u||(u=r("stylex")))(o("WAWebUISpacing").uiMargin.top9),justify:"center",children:e.map(function(e){var t=i++,l=a===t;return c.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",align:"center",children:c.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",align:"center",className:(u||(u=r("stylex")))(d.btnOutline,o("WAWebUISpacing").uiMargin.horiz10),style:{border:l?"1.5px solid "+e.hexColor:""},children:c.jsx("button",{role:"tab",tabIndex:l?0:-1,"aria-selected":l,"data-testid":void 0,className:{0:"x1td3qas x10w6t97 x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13345yd x1kqiigx x1iy4mvq x1nrmj05",2:"x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13345yd x1kqiigx x1iy4mvq x1nrmj05 x1ksvffz xqaafxp",1:"x1td3qas x10w6t97 x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13345yd x1kqiigx x1iy4mvq x1nrmj05 x1ptxcow x47corl",3:"x1c9tyrk xeusxvb x1pahc9y x1ertn4p x13345yd x1kqiigx x1iy4mvq x1nrmj05 x1ksvffz xqaafxp x1ptxcow x47corl"}[!!l<<1|!e.enabled<<0],style:{backgroundColor:e.hexColor},onClick:e.enabled?function(){return n(t)}:null,disabled:!e.enabled})})},t)})},t)})}))}m.displayName=m.name+" [from "+i.id+"]";function p(t){var n=t.anchor,a=t.onClose,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=c.jsx(m,{colors:i.colors,selectedIndex:i.selectedIndex,onSelect:i.onSelect});return c.jsx(o("WAWebUimUie.react").UIE,{displayName:"LabelColorPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:a,children:c.jsx(r("WAWebUimUieMenu.react"),{contextMenu:{menu:l,type:o("WAWebDropdown.react").MenuType.LabelColorPicker,anchor:n,offsetX:r("WAWebL10N").isRTL()?9:-9,offsetY:2}})})}p.displayName=p.name+" [from "+i.id+"]",l.LabelColorPicker=m,l.LabelColorPopup=p}),98); __d("WAWebEditFormTypes",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["EDITING","PENDING","DONE","ERROR"]),l=n("$InternalEnum").Mirrored(["PENDING","DONE","ERROR"]);i.EditType=e,i.LoadType=l}),66); __d("WAWebSavePopup.react",["fbt","WAWebConfirmPopup.react","WAWebDrawerHeader.react","WAWebEditFormTypes","WAWebModal.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState;function m(e){var t=e.afterSave,n=e.children,r=e.doSave,a=e.isValid,i=e.modalConfig,l=e.onCancel,u=e.onError,m=e.title,p=e.tsNavigationData,_=d(o("WAWebEditFormTypes").EditType.EDITING),f=_[0],g=_[1],h=c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:m,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:function(){o("WAWebModalManager").ModalManager.close(),l==null||l()}});return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,babelHelpers.extends({children:n,okText:s._(/*BTDS*/"Guardar"),cancelText:s._(/*BTDS*/"Cancelar"),type:o("WAWebModal.react").ModalTheme.Auto,onOK:function(){g(o("WAWebEditFormTypes").EditType.PENDING),r().then(function(){g(o("WAWebEditFormTypes").EditType.DONE),t&&t(),o("WAWebModalManager").ModalManager.close()},function(e){g(o("WAWebEditFormTypes").EditType.ERROR),u&&u(e)})},onCancel:function(){o("WAWebModalManager").ModalManager.close(),l==null||l()},okSpinner:f===o("WAWebEditFormTypes").EditType.PENDING,okDisabled:f===o("WAWebEditFormTypes").EditType.PENDING||!a,title:h,tsNavigationData:p},i))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebBizLabelChooseColorModal.react",["fbt","$InternalEnum","WAWebBizLabelEditingAction","WAWebFlex.react","WAWebLabelCollection","WAWebLabelColorPanel.react","WAWebListUtils","WAWebModal.react","WAWebModalManager","WAWebSavePopup.react","WAWebToast.react","WAWebToastManager","asyncToGeneratorRuntime","chunkArray","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState,m=n("$InternalEnum").Mirrored(["SaveFailed"]),p=function(t){switch(t){case m.SaveFailed:return s._(/*BTDS*/"Error al guardar la etiqueta")}},_={surface:"smb-label-edit-color"};function f(e){var t,a=e.label,i=d((t=a==null?void 0:a.colorIndex)!=null?t:o("WAWebLabelCollection").LabelCollection.getNextAvailableColor()),l=i[0],u=i[1],f=function(t){u(t)},g=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebBizLabelEditingAction").labelEditAction(a.id,a.name,a.predefinedId,l)});return function(){return e.apply(this,arguments)}})(),h=function(){o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Color de la etiqueta guardado")}))},y=function(){var e=m.SaveFailed;o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:p(e)}))},C=o("WAWebListUtils").getAllLabelColors().map(function(e){return{hexColor:e,enabled:!0}}),b=r("chunkArray")(C,5);return c.jsx(r("WAWebSavePopup.react"),{title:s._(/*BTDS*/"Selecciona un color"),doSave:g,afterSave:h,onError:y,isValid:!0,modalConfig:{type:o("WAWebModal.react").ModalTheme.LabelChooseColor,onCancel:o("WAWebModalManager").closeModalManager},tsNavigationData:_,children:c.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:c.jsx(o("WAWebLabelColorPanel.react").LabelColorPicker,{colors:b,selectedIndex:l,onSelect:f})})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebBizLabelDrawerHeaderDropdownMenu.react",["fbt","WAWebDropdown.react","WAWebDropdownItem.react","WAWebMenuBar.react","WAWebMoreRefreshedIcon.react","WAWebTabOrder","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.isReorderActive,n=e.onReorder,r=e.ref,a=t?s._(/*BTDS*/"Finalizar repetici\u00f3n del pedido"):s._(/*BTDS*/"Reordenar");return u.jsx(o("WAWebMenuBar.react").MenuBarItem,{ref:r,tabOrder:o("WAWebTabOrder").TAB_ORDER.LABELS_TAB_HEADER,testid:void 0,icon:u.jsx(o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}),title:s._(/*BTDS*/"Men\u00fa"),dropdownMenu:{menu:u.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:n,testid:void 0,children:a},"labels-drawer-dropdown-menu-item-reorder"),flipOnRTL:!0,type:o("WAWebDropdown.react").MenuType.DropdownMenu,dirX:o("WAWebDropdown.react").DirX.LEFT,testid:"labels-drawer-menu-dropdown"}})}c.displayName=c.name+" [from "+i.id+"]";var d=c;l.LabelDrawerHeaderDropdownMenu=d}),226); __d("WAWebWamEnumLabelOperations",[],(function(t,n,r,o,a,i){var e=Object.freeze({ADD:1,EDIT:2,DELETE:3,VIEW:4,CLICK_POSITIVE:5,CLICK_NEGATIVE:6,UPDATE_LABEL_COUNT:7,AUTO_ADDED:8,REORDER:9,RENAME:10,UPDATE_MEMBERS:11,MUTE:12,UNMUTE:13,SUGGESTION_CLICKED:14,UPDATED_COLOR:15});i.LABEL_OPERATIONS=e}),66); __d("WAWebWamEnumLabelTargets",[],(function(t,n,r,o,a,i){var e=Object.freeze({LABEL:1,MESSAGE:2,CONTACT:3,LABELS_SCREEN:4,LABEL_DETAILS_SCREEN:5,EDIT_LABEL_DIALOG:6,DELETE_LABEL_DIALOG:7,LABEL_MESSAGE_DIALOG:8,LABEL_CHAT_DIALOG:9,ADD_LABEL_DIALOG:10,BULK_UNLABEL_DIALOG:11,LABEL_COMBINED_DIALOG:12,GROUP:13,BROADCAST:14});i.LABEL_TARGETS=e}),66); __d("WAWebLabelEventWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamEnumLastMessageDirection"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({LabelEvent:[1422,{customLabelTitle:[9,e.TYPES.STRING],entryPointConversionSource:[10,e.TYPES.STRING],itemsLabeledCount:[5,e.TYPES.INTEGER],labelCount:[4,e.TYPES.INTEGER],labelOperation:[2,o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS],labelOperationEntryPoint:[6,e.TYPES.STRING],labelTarget:[1,o("WAWebWamEnumLabelTargets").LABEL_TARGETS],lastMessageDirection:[14,o("WAWebWamEnumLastMessageDirection").LAST_MESSAGE_DIRECTION],messageDepth:[15,e.TYPES.INTEGER],predefinedLabelNumber:[3,e.TYPES.INTEGER],threadCreationDate:[11,e.TYPES.STRING],threadId:[12,e.TYPES.STRING],threadIdHmac:[13,e.TYPES.STRING]},[1,1,1],"regular"]},{LabelEvent:[]});l.LabelEventWamEvent=s}),98); __d("WAWebWamLabelEventReporter",["WAWebBizGatingUtils","WAWebLabelEventWamEvent"],(function(t,n,r,o,a,i,l){function e(e,t,n,r,a,i){var l={labelOperation:e};t!=null&&(l.labelCount=t),n&&(l.labelTarget=n),r!=null&&o("WAWebBizGatingUtils").isSMBEnhancedLoggingEnabled()&&(l.threadIdHmac=r),a!=null&&(l.predefinedLabelNumber=a),i!=null&&(l.customLabelTitle=i);var s=new(o("WAWebLabelEventWamEvent")).LabelEventWamEvent(l);s.commit()}l.logLabelOperationEvent=e}),98); __d("WAWebBizLabelEditModal.react",["fbt","$InternalEnum","WANullthrows","WAWebBizLabelEditingAction","WAWebFlex.react","WAWebL10N","WAWebLabelCollection","WAWebLabelColorPanel.react","WAWebLabelConstants","WAWebLabels.react","WAWebListUtils","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(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useRef,_=d.useState,f=n("$InternalEnum").Mirrored(["NameEmpty","NameAlreadyExists","SaveFailed"]),g=function(t){if(o("WAWebListsGatingUtils").isListsEnabled())switch(t){case f.NameEmpty:return s._(/*BTDS*/"Selecciona un nombre para tu lista.");case f.NameAlreadyExists:return s._(/*BTDS*/"Este nombre est\u00e1 en uso. Selecciona otro nombre.");case f.SaveFailed:return s._(/*BTDS*/"Error al guardar la lista")}else switch(t){case f.NameEmpty:return s._(/*BTDS*/"El nombre de la etiqueta no puede quedar vac\u00edo");case f.NameAlreadyExists:return s._(/*BTDS*/"La etiqueta ya existe");case f.SaveFailed:return s._(/*BTDS*/"Error al guardar la etiqueta")}};function h(e){var t,a,i=o("WAWebListsGatingUtils").isListsEnabled(),l=e.label,c=_((t=l==null?void 0:l.name)!=null?t:""),d=c[0],h=c[1],y=_(null),C=y[0],b=y[1],v=_(o("WAWebMobilePlatforms").isSMB()?(a=l==null?void 0:l.colorIndex)!=null?a:o("WAWebLabelCollection").LabelCollection.getNextAvailableColor():null),S=v[0],R=v[1],L=_(!1),E=L[0],k=L[1],I=p(),T=r("WAWebL10N").getFullLocale(),D=function(t){var e=t.trim().toLocaleLowerCase(T);return e===""?f.NameEmpty:(l==null?void 0:l.name.toLocaleLowerCase(T))!==e&&o("WAWebLabelCollection").LabelCollection.some(function(t){return t.name.toLocaleLowerCase(T)===e})?f.NameAlreadyExists:null},x=function(t){var e=D(t);h(t),b(e?g(e):null)},$=function(){k(!E)},P=function(t){R(t),k(!1)},N=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(l){var e=d!==l.name,t=o("WAWebLabelConstants").mapLabelNameToPredefinedId(d);yield o("WAWebBizLabelEditingAction").labelEditAction(l.id,d,t,S),e&&i&&o("WAWebListsLogging").logListUpdate({listId:Number(l.id),listAction:o("WAWebWamEnumListAction").LIST_ACTION.RENAME,entryPoint:o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS})}else{var n=yield o("WAWebBizLabelEditingAction").labelAddAction(d,S);n!=null&&i&&o("WAWebListsLogging").logListUpdate({listId:n,listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,entryPoint:o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS,chatsBeforeUpdate:[],addedChats:[],removedChats:[]})}o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.EDIT,void 0,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.EDIT_LABEL_DIALOG)});return function(){return e.apply(this,arguments)}})(),M=function(){o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:i?s._(/*BTDS*/"Lista guardada"):s._(/*BTDS*/"Etiqueta guardada")}))},w=function(t){var e,n=(e=f.cast(t.message))!=null?e:f.SaveFailed;o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:g(n)}))},A=function(){return d!==""&&C==null},F=o("WAWebListUtils").getAllLabelColors().map(function(e){return{hexColor:e,enabled:!0}}),O=r("chunkArray")(F,5),B,W;return i?(B=l?s._(/*BTDS*/"Edita la lista"):s._(/*BTDS*/"A\u00f1adir lista"),W=s._(/*BTDS*/"Lista")):(B=l?s._(/*BTDS*/"Edita la etiqueta"):s._(/*BTDS*/"A\u00f1ade una etiqueta"),W=s._(/*BTDS*/"Etiqueta")),m.jsxs(r("WAWebSavePopup.react"),{title:B,doSave:N,afterSave:M,onError:w,isValid:A(),modalConfig:{type:o("WAWebModal.react").ModalTheme.LabelEdit,onCancel:o("WAWebModalManager").closeModalManager},tsNavigationData:{surface:"smb-labels-edit"},children:[m.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",xstyle:[o("WAWebUISpacing").uiPadding.all16,o("WAWebUISpacing").uiPadding.top0],children:[o("WAWebMobilePlatforms").isSMB()&&S!=null&&m.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiPadding.top8,o("WAWebUISpacing").uiPadding.end16),{children:m.jsx(r("WAWebUnstyledButton.react"),{ref:I,onClick:$,children:m.jsx(o("WAWebLabels.react").Label,{color:o("WAWebListUtils").colorIndexToHex(S),renderAsCircle:!0})})})),m.jsx("div",{className:"xh8yej3",children:m.jsx(o("WAWebRichTextField.react").RichTextField,{placeholder:W,value:d,maxLength:o("WAWebLabelConstants").LABEL_NAME_MAX_LENGTH,error:C,onChange:function(t){var e=t.text;return x(e)},emojiBtnPosition:"side",showRemaining:!0,focusOnMount:!0,testid:void 0})})]}),E&&S!=null&&m.jsx(o("WAWebLabelColorPanel.react").LabelColorPopup,{colors:O,selectedIndex:S,onSelect:P,anchor:r("WANullthrows")(I.current),onClose:function(){return k(!1)}})]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebSettingsOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="settings-outline";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M11.75 14.5C13.1307 14.5 14.25 13.3807 14.25 12C14.25 10.6193 13.1307 9.5 11.75 9.5C10.3693 9.5 9.25 10.6193 9.25 12C9.25 13.3807 10.3693 14.5 11.75 14.5Z",stroke:"currentColor",strokeWidth:2}),c.jsx("mask",{id:"mask0_226_11",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:2,y:2,width:20,height:20,children:c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.87042 22H13.6204C13.8704 22 14.0871 21.9167 14.2704 21.75C14.4538 21.5833 14.5621 21.375 14.5954 21.125L14.8954 18.8C15.0954 18.7167 15.2954 18.6167 15.4954 18.5C15.6954 18.3833 15.8871 18.2583 16.0704 18.125L18.1954 19.025C18.4288 19.1083 18.6663 19.1125 18.9079 19.0375C19.1496 18.9625 19.3371 18.8167 19.4704 18.6L21.3204 15.4C21.4538 15.1833 21.4954 14.95 21.4454 14.7C21.3954 14.45 21.2704 14.25 21.0704 14.1L19.1954 12.675C19.2288 12.5583 19.2454 12.4458 19.2454 12.3375V11.6625C19.2454 11.5542 19.2371 11.4417 19.2204 11.325L21.0954 9.9C21.2954 9.75 21.4204 9.55 21.4704 9.3C21.5204 9.05 21.4788 8.81667 21.3454 8.6L19.4954 5.375C19.3621 5.15833 19.1788 5.01667 18.9454 4.95C18.7121 4.88333 18.4788 4.89167 18.2454 4.975L16.0704 5.875C15.8871 5.74167 15.6996 5.61667 15.5079 5.5C15.3163 5.38333 15.1121 5.28333 14.8954 5.2L14.5954 2.875C14.5621 2.625 14.4538 2.41667 14.2704 2.25C14.0871 2.08333 13.8704 2 13.6204 2H9.87042C9.62046 2 9.40379 2.08333 9.22046 2.25C9.03712 2.41667 8.92879 2.625 8.89546 2.875L8.59546 5.2C8.39546 5.28333 8.19546 5.38333 7.99546 5.5C7.79546 5.61667 7.60379 5.74167 7.42046 5.875L5.24546 4.975C5.01212 4.89167 4.77462 4.87917 4.53296 4.9375C4.29129 4.99583 4.11212 5.14167 3.99546 5.375L2.14546 8.6C2.01212 8.81667 1.97046 9.05 2.02046 9.3C2.07046 9.55 2.19546 9.75 2.39546 9.9L4.27046 11.325C4.25379 11.4417 4.24546 11.5542 4.24546 11.6625V12.3375C4.24546 12.4458 4.25379 12.5583 4.27046 12.675L2.39546 14.1C2.19546 14.25 2.07046 14.45 2.02046 14.7C1.97046 14.95 2.01212 15.1833 2.14546 15.4L3.99546 18.625C4.12879 18.8417 4.31212 18.9833 4.54546 19.05C4.77879 19.1167 5.01212 19.1083 5.24546 19.025L7.42046 18.125C7.60379 18.2583 7.79129 18.3833 7.98296 18.5C8.17462 18.6167 8.37879 18.7167 8.59546 18.8L8.89546 21.125C8.92879 21.375 9.03712 21.5833 9.22046 21.75C9.40379 21.9167 9.62046 22 9.87042 22Z",fill:"white"})}),c.jsx("g",{mask:"url(#mask0_226_11)",children:c.jsx("path",{d:"M14.5954 21.125L16.5779 21.3893L16.579 21.3809L14.5954 21.125ZM14.8954 18.8L14.1262 16.9538L13.0597 17.3982L12.9119 18.5441L14.8954 18.8ZM16.0704 18.125L16.8504 16.2834L15.8089 15.8422L14.8941 16.5075L16.0704 18.125ZM18.1954 19.025L17.4155 20.8666L17.4685 20.8891L17.5228 20.9085L18.1954 19.025ZM19.4704 18.6L21.1738 19.6482L21.1882 19.6248L21.2019 19.601L19.4704 18.6ZM21.3204 15.4L19.6171 14.3518L19.6027 14.3752L19.589 14.399L21.3204 15.4ZM21.0704 14.1L19.8602 15.6924L19.8704 15.7L21.0704 14.1ZM19.1954 12.675L17.2724 12.1256L16.8968 13.4401L17.9853 14.2673L19.1954 12.675ZM19.2204 11.325L18.0103 9.73268L17.0743 10.444L17.2405 11.6078L19.2204 11.325ZM21.0954 9.9L19.8954 8.29997L19.8853 8.30768L21.0954 9.9ZM21.3454 8.6L19.6106 9.59517L19.626 9.62193L19.6421 9.64819L21.3454 8.6ZM19.4954 5.375L21.2303 4.37983L21.2149 4.35307L21.1988 4.32681L19.4954 5.375ZM18.2454 4.975L17.5728 3.09152L17.5263 3.10811L17.4807 3.12697L18.2454 4.975ZM16.0704 5.875L14.8941 7.49247L15.8 8.15135L16.8351 7.72303L16.0704 5.875ZM14.8954 5.2L12.9119 5.45594L13.0645 6.63862L14.1775 7.06669L14.8954 5.2ZM14.5954 2.875L16.579 2.61905L16.5779 2.61067L14.5954 2.875ZM8.89544 2.875L6.91296 2.61067L6.91188 2.61906L8.89544 2.875ZM8.59544 5.2L9.36467 7.04615L10.4311 6.60179L10.579 5.45594L8.59544 5.2ZM7.42044 5.875L6.65573 7.72303L7.69083 8.15135L8.59678 7.49247L7.42044 5.875ZM5.24544 4.975L6.01014 3.12697L5.96456 3.10811L5.91811 3.09152L5.24544 4.975ZM3.99544 5.375L5.73027 6.37017L5.75872 6.32057L5.78429 6.26943L3.99544 5.375ZM2.14544 8.6L3.84875 9.64819L3.86492 9.62193L3.88027 9.59517L2.14544 8.6ZM2.39544 9.9L3.60563 8.30764L3.59544 8.3L2.39544 9.9ZM4.27044 11.325L6.25034 11.6078L6.4166 10.444L5.4806 9.73268L4.27044 11.325ZM4.27044 12.675L5.4806 14.2673L6.4166 13.556L6.25034 12.3922L4.27044 12.675ZM2.39544 14.1L3.59546 15.7L3.6056 15.6923L2.39544 14.1ZM2.14544 15.4L3.88027 14.4048L3.86492 14.3781L3.84875 14.3518L2.14544 15.4ZM3.99544 18.625L2.26061 19.6202L2.27596 19.6469L2.29212 19.6732L3.99544 18.625ZM5.24544 19.025L5.91811 20.9085L5.96456 20.8919L6.01014 20.873L5.24544 19.025ZM7.42044 18.125L8.59678 16.5075L7.69083 15.8487L6.65573 16.277L7.42044 18.125ZM8.59544 18.8L10.579 18.5441L10.4264 17.3614L9.3134 16.9333L8.59544 18.8ZM8.89544 21.125L6.91186 21.3809L6.91298 21.3893L8.89544 21.125ZM13.6204 20H9.8704V24H13.6204V20ZM12.9251 20.2701C13.0043 20.1981 13.1143 20.1239 13.2525 20.0708C13.3903 20.0178 13.519 20 13.6204 20V24C14.363 24 15.0606 23.7345 15.6158 23.2299L12.9251 20.2701ZM12.613 20.8607C12.6247 20.7729 12.6543 20.6624 12.7148 20.546C12.7755 20.4292 12.8517 20.3369 12.9251 20.2701L15.6158 23.2299C16.155 22.7397 16.4834 22.0978 16.5779 21.3893L12.613 20.8607ZM12.9119 18.5441L12.6119 20.8691L16.579 21.3809L16.879 19.0559L12.9119 18.5441ZM14.4877 16.7724C14.3593 16.8474 14.2388 16.9069 14.1262 16.9538L15.6647 20.6462C15.9521 20.5264 16.2316 20.386 16.5032 20.2276L14.4877 16.7724ZM14.8941 16.5075C14.7662 16.6005 14.6309 16.6889 14.4877 16.7724L16.5032 20.2276C16.76 20.0778 17.008 19.9161 17.2468 19.7425L14.8941 16.5075ZM18.9754 17.1834L16.8504 16.2834L15.2905 19.9666L17.4155 20.8666L18.9754 17.1834ZM18.3151 17.1274C18.3842 17.1059 18.4762 17.089 18.5836 17.0909C18.6916 17.0928 18.7889 17.1132 18.8681 17.1415L17.5228 20.9085C18.1732 21.1408 18.855 21.148 19.5007 20.9476L18.3151 17.1274ZM17.7671 17.5518C17.8169 17.4708 17.8937 17.3774 18.0019 17.2932C18.1103 17.2089 18.2212 17.1565 18.3151 17.1274L19.5007 20.9476C20.2074 20.7283 20.7883 20.2746 21.1738 19.6482L17.7671 17.5518ZM19.589 14.399L17.739 17.599L21.2019 19.601L23.0519 16.401L19.589 14.399ZM19.4843 15.0922C19.464 14.9906 19.4565 14.8586 19.4828 14.7109C19.5092 14.5632 19.5621 14.4412 19.6171 14.3518L23.0238 16.4482C23.4225 15.8002 23.5555 15.0521 23.4066 14.3078L19.4843 15.0922ZM19.8704 15.7C19.7852 15.6361 19.694 15.5438 19.6182 15.4225C19.5427 15.3017 19.5028 15.1847 19.4843 15.0922L23.4066 14.3078C23.2622 13.5858 22.8726 12.9516 22.2704 12.5L19.8704 15.7ZM17.9853 14.2673L19.8602 15.6924L22.2806 12.5077L20.4056 11.0827L17.9853 14.2673ZM17.2454 12.3375C17.2454 12.2393 17.2607 12.1665 17.2724 12.1256L21.1185 13.2244C21.1968 12.9502 21.2454 12.6524 21.2454 12.3375H17.2454ZM17.2454 11.6625V12.3375H21.2454V11.6625H17.2454ZM17.2405 11.6078C17.245 11.6389 17.2454 11.6566 17.2454 11.6625H21.2454C21.2454 11.4517 21.2292 11.2444 21.2003 11.0422L17.2405 11.6078ZM19.8853 8.30768L18.0103 9.73268L20.4306 12.9173L22.3056 11.4923L19.8853 8.30768ZM19.5093 8.90777C19.5278 8.81526 19.5677 8.69828 19.6432 8.5775C19.719 8.45616 19.8102 8.3639 19.8954 8.29997L22.2954 11.5C22.8976 11.0484 23.2872 10.4142 23.4316 9.69223L19.5093 8.90777ZM19.6421 9.64819C19.5871 9.5588 19.5342 9.43682 19.5078 9.28908C19.4815 9.14142 19.489 9.00936 19.5093 8.90777L23.4316 9.69223C23.5805 8.94794 23.4475 8.19983 23.0488 7.55181L19.6421 9.64819ZM17.7606 6.37017L19.6106 9.59517L23.0803 7.60483L21.2303 4.37983L17.7606 6.37017ZM18.396 6.87305C18.2804 6.84001 18.1537 6.78048 18.035 6.68882C17.9177 6.59818 17.8396 6.50037 17.7921 6.42319L21.1988 4.32681C20.8175 3.70724 20.2335 3.238 19.4949 3.02695L18.396 6.87305ZM18.9181 6.85848C18.8533 6.88163 18.7675 6.90138 18.6668 6.90498C18.5657 6.90859 18.473 6.89505 18.396 6.87305L19.4949 3.02695C18.8511 2.84301 18.1905 2.8709 17.5728 3.09152L18.9181 6.85848ZM16.8351 7.72303L19.0101 6.82303L17.4807 3.12697L15.3057 4.02697L16.8351 7.72303ZM14.468 7.2084C14.6125 7.29634 14.7545 7.39097 14.8941 7.49247L17.2468 4.25753C17.0197 4.09236 16.7867 3.93699 16.5478 3.7916L14.468 7.2084ZM14.1775 7.06669C14.2862 7.10849 14.3822 7.15615 14.468 7.2084L16.5478 3.7916C16.2503 3.61052 15.938 3.45817 15.6134 3.33331L14.1775 7.06669ZM12.6119 3.13094L12.9119 5.45594L16.879 4.94406L16.579 2.61905L12.6119 3.13094ZM12.9251 3.72988C12.8517 3.66314 12.7755 3.57076 12.7148 3.45395C12.6543 3.33761 12.6247 3.22709 12.613 3.13933L16.5779 2.61067C16.4834 1.90221 16.155 1.26032 15.6158 0.77012L12.9251 3.72988ZM13.6204 4C13.519 4 13.3903 3.98222 13.2525 3.92919C13.1143 3.87605 13.0043 3.80191 12.9251 3.72988L15.6158 0.77012C15.0606 0.265451 14.363 0 13.6204 0V4ZM9.8704 4H13.6204V0H9.8704V4ZM10.5658 3.72988C10.4865 3.80191 10.3766 3.87605 10.2384 3.92919C10.1005 3.98222 9.9719 4 9.8704 4V0C9.12787 0 8.43023 0.265451 7.87509 0.77012L10.5658 3.72988ZM10.8779 3.13933C10.8662 3.22709 10.8366 3.33762 10.7761 3.45396C10.7154 3.57076 10.6392 3.66314 10.5658 3.72988L7.87509 0.77012C7.33588 1.26032 7.00742 1.9022 6.91296 2.61067L10.8779 3.13933ZM10.579 5.45594L10.879 3.13094L6.91188 2.61906L6.61188 4.94406L10.579 5.45594ZM9.00318 7.22756C9.1316 7.15265 9.25209 7.09306 9.36467 7.04615L7.82621 3.35385C7.53878 3.47361 7.25928 3.61402 6.9877 3.77244L9.00318 7.22756ZM8.59678 7.49247C8.72465 7.39947 8.85996 7.3111 9.00318 7.22756L6.9877 3.77244C6.73092 3.92223 6.48289 4.08386 6.24409 4.25753L8.59678 7.49247ZM4.48073 6.82303L6.65573 7.72303L8.18514 4.02697L6.01014 3.12697L4.48073 6.82303ZM5.00222 6.88166C4.94371 6.89579 4.87006 6.90472 4.78719 6.90036C4.70427 6.896 4.63109 6.87931 4.57277 6.85848L5.91811 3.09152C5.31682 2.87677 4.6824 2.84398 4.06366 2.99334L5.00222 6.88166ZM5.78429 6.26943C5.73217 6.37367 5.6371 6.51376 5.47986 6.64175C5.32037 6.77156 5.14931 6.84616 5.00222 6.88166L4.06366 2.99334C3.21731 3.19763 2.572 3.74974 2.20658 4.48057L5.78429 6.26943ZM3.88027 9.59517L5.73027 6.37017L2.26061 4.37983L0.410609 7.60483L3.88027 9.59517ZM3.9816 8.90777C4.00192 9.00936 4.00941 9.14142 3.98304 9.28908C3.95666 9.43682 3.90377 9.5588 3.84875 9.64819L0.442121 7.55181C0.0433362 8.19983 -0.0895818 8.94794 0.0592762 9.69223L3.9816 8.90777ZM3.59544 8.3C3.68068 8.36393 3.77185 8.45616 3.84768 8.5775C3.92317 8.69828 3.9631 8.81525 3.9816 8.90777L0.0592762 9.69223C0.203672 10.4142 0.593266 11.0484 1.19544 11.5L3.59544 8.3ZM5.4806 9.73268L3.60563 8.30764L1.18527 11.4923L3.06027 12.9173L5.4806 9.73268ZM6.24544 11.6625C6.24544 11.6566 6.2459 11.6389 6.25034 11.6078L2.29054 11.0422C2.26164 11.2444 2.24544 11.4517 2.24544 11.6625H6.24544ZM6.24544 12.3375V11.6625H2.24544V12.3375H6.24544ZM6.25034 12.3922C6.2459 12.3611 6.24544 12.3434 6.24544 12.3375H2.24544C2.24544 12.5483 2.26164 12.7556 2.29054 12.9578L6.25034 12.3922ZM3.6056 15.6923L5.4806 14.2673L3.06027 11.0827L1.18527 12.5077L3.6056 15.6923ZM3.9816 15.0922C3.9631 15.1847 3.92317 15.3017 3.84768 15.4225C3.77185 15.5438 3.6807 15.6361 3.59546 15.7L1.19544 12.5C0.593266 12.9516 0.203672 13.5858 0.0592762 14.3078L3.9816 15.0922ZM3.84875 14.3518C3.90377 14.4412 3.95666 14.5632 3.98304 14.7109C4.00941 14.8586 4.00192 14.9906 3.9816 15.0922L0.0592762 14.3078C-0.0895818 15.0521 0.0433353 15.8002 0.442122 16.4482L3.84875 14.3518ZM5.73027 17.6298L3.88027 14.4048L0.410609 16.3952L2.26061 19.6202L5.73027 17.6298ZM5.09489 17.127C5.21053 17.16 5.33721 17.2195 5.45583 17.3112C5.57313 17.4018 5.65126 17.4996 5.69876 17.5768L2.29212 19.6732C2.6734 20.2928 3.25734 20.762 3.99599 20.973L5.09489 17.127ZM4.57276 17.1415C4.63756 17.1184 4.72334 17.0986 4.82405 17.095C4.92518 17.0914 5.01786 17.1049 5.09489 17.127L3.99599 20.973C4.63979 21.157 5.30038 21.1291 5.91811 20.9085L4.57276 17.1415ZM6.65573 16.277L4.48073 17.177L6.01014 20.873L8.18514 19.973L6.65573 16.277ZM9.02283 16.7916C8.87835 16.7037 8.73635 16.609 8.59678 16.5075L6.24409 19.7425C6.47119 19.9076 6.70419 20.063 6.94304 20.2084L9.02283 16.7916ZM9.3134 16.9333C9.20471 16.8915 9.10868 16.8439 9.02283 16.7916L6.94304 20.2084C7.24053 20.3895 7.55283 20.5418 7.87747 20.6667L9.3134 16.9333ZM10.879 20.8691L10.579 18.5441L6.61188 19.0559L6.91186 21.3809L10.879 20.8691ZM10.5658 20.2701C10.6392 20.3369 10.7154 20.4292 10.7761 20.546C10.8366 20.6624 10.8662 20.7729 10.8779 20.8607L6.91298 21.3893C7.00744 22.0978 7.33587 22.7397 7.87509 23.2299L10.5658 20.2701ZM9.8704 20C9.9719 20 10.1005 20.0178 10.2384 20.0708C10.3766 20.1239 10.4865 20.1981 10.5658 20.2701L7.87509 23.2299C8.43023 23.7345 9.12787 24 9.8704 24V20Z",fill:"currentColor"})})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SettingsOutlineIcon=m}),98); __d("WAWebChatCheckboxWrapper.react",["WAWebCheckBox.react","WAWebKeyboardIsKeyActivation","react","useWAWebEventTargetValue","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.Children,m=u.cloneElement,p=u.useState;function _(e){var t=e.checkboxAriaLabel,n=e.children,a=e.initialSelection,i=e.model,l=e.multiSelection,s=e.onArrowKeyLeftRight,u=e.onSelect,_=e.ref,f=e.role,g=f===void 0?"none":f,h=e.selectableState,y=e.theme,C=p(function(){switch(a){case 0:return!1;case 1:case 2:return!0;default:return l.isSelected(i)}}),b=C[0],v=C[1],S=p(function(){return a===2}),R=S[0],L=S[1],E=i.id.toString(),k=p(E),I=k[0],T=k[1];I!==E&&(T(E),v(l.isSelected(i)));var D=function(t){v(t)},x=function(t){if(!(t!=null&&t.isDefaultPrevented())){t&&t.stopPropagation();var e;b?(v(!1),L(!1),e=!1):e=!0,u==null||u(i,e,!1)}},$=function(t){r("WAWebKeyboardIsKeyActivation")(t)&&(t.stopPropagation(),t.preventDefault(),w==null||w())};o("useWAWebListener").useListener(l,I,D);var P=r("useWAWebEventTargetValue")(h,"all",function(){return h.isSelectable}),N={};if(P&&y&&(N.theme=y),P&&(N.noContext=!0),n==null)return null;var M=d.toArray(n)[0],w=y==="label-selection"||y==="label-selection-redesigned"?x:null;return c.jsxs("div",{ref:_,role:P?"button":g,className:"x1n2onr6",onKeyPress:$,tabIndex:0,onClick:w,children:[P&&c.jsx("div",babelHelpers.extends({},{0:{className:"x10l6tqk x1pe450p x16uhe5s x78zum5 x6s0dn4 x1pju0fl x5yr21d"},2:{className:"x10l6tqk x16uhe5s x78zum5 x6s0dn4 x5yr21d x145d82y xlgexem x14atkfc"},1:{className:"x10l6tqk x1pe450p x16uhe5s x78zum5 x6s0dn4 x1pju0fl x5yr21d xdg88n9"},3:{className:"x10l6tqk x16uhe5s x78zum5 x6s0dn4 x5yr21d xlgexem x14atkfc xdg88n9"}}[(y==="label-selection"||y==="label-selection-redesigned")<<1|(y==="label-selection-redesigned")<<0],{tabIndex:-1,children:c.jsx(o("WAWebCheckBox.react").CheckBox,{onChange:x,ariaLabel:t,onArrowKeyLeftRight:s,checked:b,theme:b&&R?o("WAWebCheckBox.react").CheckboxTheme.PARTIAL:void 0})})),m(M,N)]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98); __d("WAWebDraggableItemIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="draggable-item";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=6,R=16;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 16 6",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M15 0H1C0.45 0 0 0.45 0 1C0 1.55 0.45 2 1 2H15C15.55 2 16 1.55 16 1C16 0.45 15.55 0 15 0ZM1 6H15C15.55 6 16 5.55 16 5C16 4.45 15.55 4 15 4H1C0.45 4 0 4.45 0 5C0 5.55 0.45 6 1 6Z",fill:"#8696A0"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.DraggableItemIcon=m}),98); __d("WAWebLabelErrors",["WACustomError"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(t){var n;return n=e.call(this,t!=null?t:"")||this,n.name="LabelActionError",n}return babelHelpers.inheritsLoose(t,e),t})(o("WACustomError").CustomError);l.LabelActionError=e}),98); __d("WAWebPaletteOutlineIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="palette-outline";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=20,R=20;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 20 20",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.PaletteOutlineIcon=m}),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","WAWebFavoriteRefreshedIcon.react","WAWebFocusTracer","WAWebIcLabelFilledIcon.react","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebLabelCollection","WAWebLabelErrors","WAWebLabelGetters","WAWebLabels.react","WAWebListPeopleIcon.react","WAWebListsGatingUtils","WAWebListsLogging","WAWebMobilePlatforms","WAWebModalManager","WAWebPaletteOutlineIcon.react","WAWebPencilRefreshedIcon.react","WAWebSchemaLabel","WAWebToast.react","WAWebToastManager","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebWamEnumListAction","asyncToGeneratorRuntime","react","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useRef,p=c.useState,_={color:{color:"xhslqc4",$$css:!0}};function f(e){"use no forget";var t,a=e.detailElement,i=e.entryPoint,l=e.label,u=e.label,c=e.onClick,f=e.shouldDisplayAutoLabeledText,g=e.showContextActions,h=e.theme,y=p(null),C=y[0],b=y[1],v=m(null),S=m(null),R=o("WAWebListsGatingUtils").isListsEnabled(),L=r("WAWebL10N").isRTL()?"left":"right",E=(t={},t[L]=function(){var e;(e=S.current)==null||e.focusOnContextMenuButton()},t),k=function(t){t.stopPropagation(),t.preventDefault()},I=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),T=function(){I()};o("useWAWebListener").useListener(o("WAWebLabelCollection").LabelCollection,"label_updated_"+u,T);var D=o("WAWebLabelCollection").LabelCollection.get(l);if(!D||!D.name)return null;if(h==="label-list"){var x=function(){o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebBizLabelEditModal.react"),{label:D}))},$=function(){o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebBizLabelChooseColorModal.react"),{label:D}))},P=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{try{yield o("WAWebBizLabelEditingAction").labelDeleteAction(l,D.name,D.colorIndex),i!=null&&R&&o("WAWebListsLogging").logListUpdate({listId:Number(l),listAction:o("WAWebWamEnumListAction").LIST_ACTION.DELETE,entryPoint:i})}catch(e){throw new(o("WAWebLabelErrors")).LabelActionError}o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Etiqueta eliminada")}))}catch(e){e instanceof o("WAWebLabelErrors").LabelActionError&&o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo eliminar la etiqueta")}))}finally{o("WAWebModalManager").ModalManager.close()}});return function(){return e.apply(this,arguments)}})(),N=function(){var e=R?s._(/*BTDS*/"\u00bfDeseas eliminar esta lista?"):s._(/*BTDS*/"\u00bfDeseas eliminar esta etiqueta?"),t=R?s._(/*BTDS*/"Si eliminas una lista, esta se quita de todos los contactos y chats. \u00bfConfirmas que deseas eliminar esta lista?"):s._(/*BTDS*/"Si eliminas una etiqueta, se quitar\u00e1 de todos los mensajes y contactos, y de la lista de etiquetas. \u00bfConfirmas que deseas quitar esta etiqueta?");o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:e,onOK:P,onCancel:o("WAWebModalManager").closeModalManager,children:t}))},M=function(t){if(C){b(null);return}var e=[];e.push(d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:x,icon:d.jsx(o("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,{}),children:s._(/*BTDS*/"Editar")},"mi-edit-label")),o("WAWebMobilePlatforms").isSMB()&&e.push(d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:$,icon:d.jsx(o("WAWebPaletteOutlineIcon.react").PaletteOutlineIcon,{}),children:s._(/*BTDS*/"Seleccionar color")},"mi-choose-label-color")),e.push(d.jsx(r("WAWebDropdownItemSeparator.react"),{})),e.push(d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:N,icon:d.jsx(o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}),theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:s._(/*BTDS*/"Eliminar")},"mi-delete-label")),b({menu:e,event:t.event,anchor:t.anchor})},w=function(){b(null),r("WAWebFocusTracer").focus(v.current)},A=C&&d.jsx(o("WAWebUimUie.react").UIE,{displayName:"LabelContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:w,children:d.jsx(r("WAWebUimUieMenu.react"),{contextMenu:C})}),F;o("WAWebBizGatingUtils").canDisplayLabel()&&(F=d.jsx(o("WAWebLabels.react").Labels,{renderAsCircle:!0,theme:"label-list",labels:[l]}));var O=d.jsx(o("WAWebEmojiText.react").EmojiText,{text:D.name,ellipsify:!0,titlify:!0,preformatted:!0});return d.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{ref:v,tabIndex:0,handlers:E,onFocus:k,children:[d.jsx(r("WAWebChatCell.react"),{ref:S,theme:o("WAWebBizGatingUtils").labelsEditingEnabled()?"label-list-no-border":"label-list",image:F,primary:O,secondary:s._(/*BTDS*/"_j{\"*\":\"{count} elementos\",\"_1\":\"1 elemento\"}",[s._plural(D.chatCount,"count")]),detail:a,active:!!C,onClick:c,onContext:M,contextEnabled:function(){return o("WAWebBizGatingUtils").labelsEditingEnabled()&&g&&D.isImmutable!==!0},contextMenuControlled:!0}),A]})}var B=o("WAWebLabelGetters").getHexColor(D),W=null;R?W=d.jsx("div",{className:"x78zum5 x1okw0bk x6s0dn4 x13jy36j xsfy40s",children:D.type===o("WAWebSchemaLabel").ListType.FAVORITES?d.jsx(o("WAWebFavoriteRefreshedIcon.react").FavoriteRefreshedIcon,{iconXstyle:_.color,viewBox:{x:2,y:2,height:20,width:20}}):d.jsx(o("WAWebListPeopleIcon.react").ListPeopleIcon,{iconXstyle:_.color,viewBox:{x:2,y:2,height:20,width:20}})}):o("WAWebBizGatingUtils").canDisplayLabel()&&(W=o("WAWebBizGatingUtils").labelsEditingEnabled()?d.jsx(o("WAWebLabels.react").Labels,{renderAsCircle:!0,theme:"label-list",labels:[l]}):d.jsx(o("WAWebIcLabelFilledIcon.react").IcLabelFilledIcon,{style:B!=null&&B!==""?{color:B}:{}}));var q=d.jsx(o("WAWebEmojiText.react").EmojiText,{text:D.name,ellipsify:!0,titlify:!0}),U=f?s._(/*BTDS*/"Etiqueta autom\u00e1tica"):null,V="label-selection";return R?V="lists-assign-modal":o("WAWebBizGatingUtils").labelsEditingEnabled()&&(V="label-selection-redesigned"),d.jsx(r("WAWebCellFrame.react"),{theme:V,image:W,customImage:R,primary:q,secondary:U,onClick:c})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebListNameValidation",["WAWebL10N","WAWebLabelCollection"],(function(t,n,r,o,a,i,l){function e(e){var t=r("WAWebL10N").getFullLocale(),n=e.trim().toLocaleLowerCase(t);return n===""?!1:o("WAWebLabelCollection").LabelCollection.some(function(e){return e.name.toLocaleLowerCase(t)===n})}l.isListNameDuplicate=e}),98); __d("WAWebLabelEditInput.react",["fbt","$InternalEnum","WANullthrows","WAWebBizLabelEditingAction","WAWebCellFrame.react","WAWebL10N","WAWebLabelCollection","WAWebLabelColorPanel.react","WAWebLabelConstants","WAWebLabelErrors","WAWebLabels.react","WAWebListNameValidation","WAWebListUtils","WAWebListsGatingUtils","WAWebListsLogging","WAWebMobilePlatforms","WAWebRichTextField.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUnstyledButton.react","WAWebWamEnumListAction","WAWebWamEnumListUpdateUserJourneyAction","asyncToGeneratorRuntime","chunkArray","react","stylex","useWAWebDebouncedCallback","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useEffect,_=d.useRef,f=d.useState,g={inputContainer:{width:"xh8yej3",$$css:!0}},h=n("$InternalEnum").Mirrored(["NameEmpty","NameAlreadyExists","SaveFailed"]),y=function(t){var e=o("WAWebListsGatingUtils").isListsEnabled();switch(t){case h.NameEmpty:return e?s._(/*BTDS*/"Selecciona un nombre para tu lista."):s._(/*BTDS*/"El nombre de la etiqueta no puede quedar vac\u00edo");case h.NameAlreadyExists:return e?s._(/*BTDS*/"Este nombre est\u00e1 en uso. Selecciona otro nombre."):s._(/*BTDS*/"La etiqueta ya existe");case h.SaveFailed:return e?s._(/*BTDS*/"Error al guardar la lista"):s._(/*BTDS*/"Error al guardar la etiqueta")}};function C(e){var t,a,i=e.entryPoint,l=e.label,c=e.listsFlow,d=e.onCancel,C=e.onSave,b=e.rowTheme,v=f((t=l==null?void 0:l.name)!=null?t:""),S=v[0],R=v[1],L=f(null),E=L[0],k=L[1],I=f(o("WAWebMobilePlatforms").isSMB()?(a=l==null?void 0:l.colorIndex)!=null?a:o("WAWebLabelCollection").LabelCollection.getNextAvailableColor():null),T=I[0],D=I[1],x=f(!1),$=x[0],P=x[1],N=_(),M=f(!1),w=M[0],A=M[1],F=r("useWAWebUnmountSignal")(),O=o("WAWebListsGatingUtils").isListsEnabled();p(function(){O&&!c&&i!=null&&o("WAWebListsLogging").logListUpdateUserJorney({listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,userJorneyAction:o("WAWebWamEnumListUpdateUserJourneyAction").LIST_UPDATE_USER_JOURNEY_ACTION.START,entryPoint:i})},[O,i,c]);var B=r("WAWebL10N").getFullLocale(),W=r("useWAWebDebouncedCallback")(function(e){var t=(l==null?void 0:l.name.toLocaleLowerCase(B))===e.toLocaleLowerCase(B);!t&&o("WAWebListNameValidation").isListNameDuplicate(e)&&k(y(h.NameAlreadyExists))},300),q=function(t){var e=t.trim();return e===""?(W.cancel(),k(y(h.NameEmpty)),!1):(k(null),W(e),!0)},U=function(t){q(t),c===!0&&C(t,T),R(t)},V=function(){P(!$)},H=function(t){D(t),P(!1),c&&C(S,t)},G=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(C(S,T),!(O&&c)){A(!0);try{try{if(l)yield o("WAWebBizLabelEditingAction").labelEditAction(l.id,S,l.predefinedId,T);else{var e=yield o("WAWebBizLabelEditingAction").labelAddAction(S,T);O&&e!=null&&i!=null&&(o("WAWebListsLogging").logListUpdate({listId:e,listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,entryPoint:i,chatsBeforeUpdate:[],addedChats:[],removedChats:[]}),o("WAWebListsLogging").logListUpdateUserJorney({listId:""+e,listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,userJorneyAction:o("WAWebWamEnumListUpdateUserJourneyAction").LIST_UPDATE_USER_JOURNEY_ACTION.CREATE_LIST,entryPoint:i}))}}catch(e){throw new(o("WAWebLabelErrors")).LabelActionError}o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:O?s._(/*BTDS*/"Lista guardada"):s._(/*BTDS*/"Etiqueta guardada")}))}catch(e){e instanceof o("WAWebLabelErrors").LabelActionError&&o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:y(h.SaveFailed)}))}finally{F.aborted||A(!1)}}});return function(){return e.apply(this,arguments)}})(),z;if(o("WAWebMobilePlatforms").isSMB()&&T!=null){var j=o("WAWebListUtils").getAllLabelColors().map(function(e){return{hexColor:e,enabled:!0}}),K=r("chunkArray")(j,5);z=m.jsxs(r("WAWebUnstyledButton.react"),{ref:N,onClick:V,children:[m.jsx(o("WAWebLabels.react").Label,{color:o("WAWebListUtils").colorIndexToHex(T),renderAsCircle:!0}),$&&m.jsx(o("WAWebLabelColorPanel.react").LabelColorPopup,{colors:K,selectedIndex:T,onSelect:H,anchor:r("WANullthrows")(N.current),onClose:function(){return P(!1)}})]})}var Q=m.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([g.inputContainer,o("WAWebUISpacing").uiPadding.end2,z==null&&c!==!0&&o("WAWebUISpacing").uiPadding.start8]),{children:m.jsx(o("WAWebRichTextField.react").RichTextField,{placeholder:O?s._(/*BTDS*/"Nuevo nombre de lista"):s._(/*BTDS*/"Nueva etiqueta"),value:S,maxLength:o("WAWebLabelConstants").LABEL_NAME_MAX_LENGTH,error:E,validate:function(t){return q(t!=null?t:"")},onChange:function(t){var e=t.text;return U(e)},onSave:G,onCancel:d,theme:"label-input",lineWrap:!1,pending:w,lockable:c!==!0,startActive:!0,emojiBtnPosition:"side",hideFloatingLabel:!0,showRemaining:!0,focusOnMount:!0,testid:void 0})}));return m.jsx(r("WAWebCellFrame.react"),{theme:b,image:z,primary:Q})}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226); __d("WAWebListsActions",["fbt","Promise","WALogger","WAWebBizLabelEditingAction","WAWebLabelCollection","WAWebListsGatingUtils","WAWebListsLogging","WAWebListsUtil","WAWebToast.react","WAWebToastManager","WAWebWamEnumListAction","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_,f,g,h,y,C,b,v,S=v||(v=r("react"));function R(e,t,n,r){return L.apply(this,arguments)}function L(){return L=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,r,a){if(!o("WAWebListsGatingUtils").isListsEnabled()){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[Lists] createNewList: lists not enabled"])));return}var i;try{i=yield o("WAWebBizLabelEditingAction").labelAddAction(t,r)}catch(e){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[Lists] createNewList: failed to add new empty list"]))).tags("lists").sendLogs("create-new-list-failed");return}if(n.length>0){var l={id:String(i),type:"add"};try{o("WAWebLabelCollection").LabelCollection.addOrRemoveLabels([l],n,{listUpdateMode:o("WAWebLabelCollection").ListUpdateMode.CREATE})}catch(e){o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[Lists] createNewList: failed to assign label to chats"]))).tags("lists").sendLogs("create-new-list-failed");return}}return i!=null&&o("WAWebListsLogging").logListUpdate({listId:i,listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,entryPoint:a,chatsBeforeUpdate:[],addedChats:n,removedChats:[]}),o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[Lists] created list id="," color="," chats=",""])),i,r,n.length),i}),L.apply(this,arguments)}function E(e){return k.apply(this,arguments)}function k(){return k=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.entryPoint,n=e.labelModel,r=e.newColor,a=e.newName,i=e.updatedAssociatedChats;if(!o("WAWebListsGatingUtils").isListsEnabled()){o("WALogger").ERROR(m||(m=babelHelpers.taggedTemplateLiteralLoose(["[Lists] editListAction: lists not enabled"])));return}var l=n.name!==a,s=n.colorIndex!==r;try{(l||s)&&(yield o("WAWebBizLabelEditingAction").labelEditAction(n.id,a,n.predefinedId,r,n.isActive,n.type))}catch(e){o("WALogger").ERROR(p||(p=babelHelpers.taggedTemplateLiteralLoose(["[Lists] editListAction: failed to edit list properties"]))).tags("lists").sendLogs("edit-list-failed");return}var u=o("WAWebListsUtil").getAllChatsInList(n),c=o("WAWebListsUtil").getTwoArraysDifference(u,i),d=c.addedItems,g=c.removedItems;try{if(d.length>0){var h={id:String(n.id),type:"add"};o("WAWebLabelCollection").LabelCollection.addOrRemoveLabels([h],d)}if(g.length>0){var y={id:String(n.id),type:"remove"};o("WAWebLabelCollection").LabelCollection.addOrRemoveLabels([y],g)}}catch(e){o("WALogger").ERROR(_||(_=babelHelpers.taggedTemplateLiteralLoose(["[Lists] editListAction: failed to edit list chats"]))).tags("lists").sendLogs("edit-list-failed");return}l&&o("WAWebListsLogging").logListUpdate({listId:Number(n.id),listAction:o("WAWebWamEnumListAction").LIST_ACTION.RENAME,entryPoint:t}),(d.length!==0||g.length!==0)&&o("WAWebListsLogging").logListUpdate({listId:Number(n.id),listAction:o("WAWebWamEnumListAction").LIST_ACTION.UPDATE_MEMBERS,entryPoint:t,chatsBeforeUpdate:u,addedChats:d,removedChats:g}),o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["[Lists] saved list id="," color="," chats=",""])),n.id,r,i.length)}),k.apply(this,arguments)}function I(e,t,n){return T.apply(this,arguments)}function T(){return T=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,r){if(!o("WAWebListsGatingUtils").isListsEnabled())return o("WALogger").ERROR(g||(g=babelHelpers.taggedTemplateLiteralLoose(["[Lists] deleteListAction: lists not enabled"]))),(b||(b=n("Promise"))).resolve();try{var a=o("WAWebLabelCollection").LabelCollection.get(e);if(a==null)return o("WALogger").WARN(h||(h=babelHelpers.taggedTemplateLiteralLoose(["[Lists] deleteListAction: label not found id=",""])),e),(b||(b=n("Promise"))).resolve();yield o("WAWebBizLabelEditingAction").labelDeleteAction(a.id,a.name,a.colorIndex),o("WAWebListsLogging").logListUpdate({listId:Number(e),listAction:o("WAWebWamEnumListAction").LIST_ACTION.DELETE,entryPoint:r}),o("WAWebToastManager").ToastManager.open(S.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Lista eliminada")})),o("WALogger").LOG(y||(y=babelHelpers.taggedTemplateLiteralLoose(['[Lists] Successfully deleted list: id: "','"'])),e)}catch(t){o("WALogger").ERROR(C||(C=babelHelpers.taggedTemplateLiteralLoose(['[Lists] deleteListAction: Failed deleting list with id:"','"'])),e).tags("lists").sendLogs("delete-list-failed"),o("WAWebToastManager").ToastManager.open(S.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo eliminar la lista")}))}finally{t()}}),T.apply(this,arguments)}l.createNewListAction=R,l.editListAction=E,l.deleteListAction=I}),226); __d("WAWebListsUtil",["fbt","WAWebBizGatingUtils","WAWebChatCollection","WAWebChatThreadLogging","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebListItemParentType","WAWebListUtils","WAWebListsActions","WAWebModalManager","WAWebMsgModel","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamLabelEventReporter","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e,t){o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.CLICK_POSITIVE,e,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABEL_COMBINED_DIALOG,t==null?void 0:t)}function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.length;o("WAWebBizGatingUtils").isSMBEnhancedLoggingEnabled()?e.forEach(function(e){var n=e instanceof o("WAWebMsgModel").Msg?e.id.toString():e.id.toJid(),r=o("WAWebChatThreadLogging").getChatThreadIDHMAC(n),a=function(n){return c(t,n)};r.then(a)}):c(t)}),m.apply(this,arguments)}var p=function(t){return t.labelItemCollection.reduce(function(e,t){if(t==null||t.parentType!==o("WAWebListItemParentType").LabelItemParentType.Chat)return e;var n=o("WAWebChatCollection").ChatCollection.get(t.parentId);return n!=null&&e.push(n),e},[])},_=function(t,n){var e=new Set(t),r=new Set(n),o=[];for(var a of r)e.has(a)||o.push(a);var i=[];for(var l of e)r.has(l)||i.push(l);return{removedItems:i,addedItems:o}},f=function(t,n){var e=s._(/*BTDS*/"\u00bfDeseas eliminar esta lista?"),r=s._(/*BTDS*/"Si eliminas una lista, esta se quita de todos los contactos y chats. \u00bfConfirmas que deseas eliminar esta lista?");o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,title:e,onOK:function(){o("WAWebListsActions").deleteListAction(t,o("WAWebModalManager").closeModalManager,n)},onCancel:o("WAWebModalManager").closeModalManager,children:r}))};function g(e){o("WAWebModalManager").ModalManager.openAlert(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return o("WAWebModalManager").ModalManager.closeAlert()},okText:r("WAWebFbtCommon")("OK"),children:o("WAWebListUtils").getReachMaxLabelCountText(e)}))}l.logLabelOperationEventsForModels=d,l.getAllChatsInList=p,l.getTwoArraysDifference=_,l.openListDeleteConfirmPopup=f,l.showMaxListsModal=g}),226); __d("WAWebLabelsLabelListNewLabel.react",["fbt","WAWebCellFrame.react","WAWebLabelEditInput.react","WAWebListUtils","WAWebListsGatingUtils","WAWebListsUtil","WAWebMobilePlatforms","WAWebPlusIcon.react","WDSIconIcAdd.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState;function m(e){var t=e.entryPoint,n=e.onNewLabelAdded,a=d(!1),i=a[0],l=a[1],u=o("WAWebListsGatingUtils").isListsEnabled();if(i){var m=function(t){l(!1),n==null||n(t)},p;return u?p=o("WAWebMobilePlatforms").isSMB()?"create-new-list-smb":"create-new-list-consumer":p="label-selection-new-label",c.jsx("div",{className:"xh8yej3 xuzvuw4",children:c.jsx(r("WAWebLabelEditInput.react"),{label:null,onSave:m,onCancel:function(){return l(!1)},rowTheme:p,entryPoint:t})})}var _=function(){if(o("WAWebListUtils").isListFlowMaxListsCountReached()){o("WAWebListsUtil").showMaxListsModal(u);return}l(!0)},f=u?c.jsx(r("WDSIconIcAdd.react"),{viewBox:{x:3,y:3,width:18,height:18}}):c.jsx(o("WAWebPlusIcon.react").PlusIcon,{}),g=c.jsx("div",babelHelpers.extends({},{0:{className:"x78zum5 x6s0dn4 xl56j7k x100vrsf x1vqgdyp x1c9tyrk xeusxvb x1pahc9y x1ertn4p x111a3t xhyrrhw"},1:{className:"x78zum5 x6s0dn4 xl56j7k x100vrsf x16wdlz0 xt8t1vi x1xc408v x129tdwq x15urzxu xfn3atn x1pse0pq x1m2oepg"}}[!!u<<0],{"data-testid":void 0,children:f})),h=u?s._(/*BTDS*/"Nueva lista"):s._(/*BTDS*/"Nueva etiqueta"),y=u?"lists-assign-modal":"label-selection-new-label";return c.jsx("div",babelHelpers.extends({role:"button",tabIndex:0},{0:{className:"xh8yej3 xuzvuw4 x1ypdohk"},1:{className:"xh8yej3 x1ypdohk xnnlda6 xjkvuk6"}}[!!u<<0],{onKeyDown:_,onClick:_,children:c.jsx(r("WAWebCellFrame.react"),{theme:y,image:g,primary:h})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebListUseDragAndAutoScrollForSafari",["WAStartAnimationLoop","react","useWAWebStableCallback","useWAWebThrottledCallback"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useEffect,c=s.useMemo,d=150,m=50,p=6,_={addDragScroll:null,removeDragScroll:null};function f(e){var t=e.getBoundingClientRect(),n=t.bottom,r=t.top,a=0,i=!1,l,s=function(){a-=p,e.scrollTop=a,(!i||a<=0)&&(l==null||l())},u=function(){a+=p,e.scrollTop=a,(!i||a>e.scrollHeight)&&(l==null||l())},c=function(c){var t=a>=0&&c.clientY>r&&c.clientYn-m&&c.clientY<=n;!i&&(t||d)?(i=!0,a=e.scrollTop,l=o("WAStartAnimationLoop").startAnimationLoop(t?s:u)):!t&&!d&&(i=!1)},d=function(){i=!1,l==null||l()};return{handleDragOver:c,forceStop:d}}function g(e){var t=c(function(){return f(e)},[e]),n=r("useWAWebThrottledCallback")(t.handleDragOver,d),o=r("useWAWebStableCallback")(function(){e.addEventListener("dragover",n)}),a=r("useWAWebStableCallback")(function(){e.removeEventListener("dragover",n),n.cancel(),t.forceStop()});return u(function(){return a},[a]),{removeDragScroll:a,addDragScroll:o}}l.EMPTY_SCROLL_EVENTS=_,l.useDragAndAutoScrollForSafari=g}),98); __d("WAWebListDragAndDropItem.react",["WAWebListUseDragAndAutoScrollForSafari","WAWebUA","react","react-dnd-cjs","react-dnd-html5-backend-cjs"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.createContext,m=u.memo,p=u.useContext,_=u.useRef,f="item",g=d(o("WAWebListUseDragAndAutoScrollForSafari").EMPTY_SCROLL_EVENTS);function h(e){var t=e.children,n=e.index,r=e.onFinalDrop,a=e.onMove,i=_(null),l=p(g),s=l.addDragScroll,u=l.removeDragScroll,d=o("react-dnd-cjs").useDrop({accept:f,collect:function(t){return{handlerId:t.getHandlerId()}},hover:function(t,r){var e;if(i.current){var o=t.index,l=n;if(o!==l){var s=(e=i.current)==null?void 0:e.getBoundingClientRect(),u=(s.bottom-s.top)/2,c=r.getClientOffset(),d=c.y-s.top;ol&&d>u||(a(o,l),t.index=l)}}}}),m=d[0].handlerId,h=d[1],y={index:n,type:f},C=o("react-dnd-cjs").useDrag({item:y,begin:function(){return s==null||s(),y},end:function(){u==null||u(),r==null||r()},collect:function(t){return{handlerId:t.getHandlerId(),isDragging:t.isDragging()}}}),b=C[0].isDragging,v=C[1];return c.jsx("div",babelHelpers.extends({ref:v(h(i))},{0:{className:"xv5twrn"},1:{className:"xv5twrn xg01cxk"}}[!!b<<0],{"data-handler-id":m,children:t}))}h.displayName=h.name+" [from "+i.id+"]";var y=m(h);function C(e){var t=e.children,n=e.containerRef,a=o("WAWebListUseDragAndAutoScrollForSafari").useDragAndAutoScrollForSafari(n);return c.jsx(g.Provider,{value:a,children:c.jsx(o("react-dnd-cjs").DndProvider,{backend:r("react-dnd-html5-backend-cjs").default,children:t})})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.children,n=e.containerRef;return o("WAWebUA").UA.isSafari&&n?c.jsx(C,{containerRef:n,children:t}):c.jsx(g.Provider,{value:o("WAWebListUseDragAndAutoScrollForSafari").EMPTY_SCROLL_EVENTS,children:c.jsx(o("react-dnd-cjs").DndProvider,{backend:r("react-dnd-html5-backend-cjs").default,children:t})})}b.displayName=b.name+" [from "+i.id+"]",l.DragAndDropItem=y,l.DragAndDropWrapper=b}),98); __d("WAWebSelectableState",["WAWebEventEmitter"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(t){var n;return n=e.call(this)||this,n.isSelectable=t,n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.setSelectable=function(t){return this.isSelectable=t,this.trigger("update-selectable",t),this.isSelectable},t})(r("WAWebEventEmitter"));l.default=e}),98); __d("WAWebLabelsMultiSelectLabelList.react",["fbt","WAArrayMove","WAPromiseDelays","WAWebAutomaticEventsUserJourneyWamEvent","WAWebBizGatingUtils","WAWebChatCheckboxWrapper.react","WAWebClickableLink.react","WAWebDOIntroPopup.react","WAWebDraggableItemIcon.react","WAWebFbtCommon","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebLabelCollection","WAWebLabelsLabelListItem.react","WAWebLabelsLabelListNewLabel.react","WAWebListDragAndDropItem.react","WAWebListUtils","WAWebListsGatingUtils","WAWebModalManager","WAWebNoop","WAWebNux","WAWebSchemaLabel","WAWebSelectableState","WAWebText.react","WAWebUISpacing","WAWebUserPrefsGeneral","WAWebWamEnumAutomaticEventsTargetComponentEnum","WAWebWamEnumSmbUserActionTypeEnum","WAWebWamEnumSurfaceType","WAWebWamEnumUpdateEntryPoint","asyncToGeneratorRuntime","react","useWAWebListener","useWAWebNux","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useMemo,_=c.useRef,f=c.useState,g=o("WAWebFlatList.react").FlatListFactory(),h=new(r("WAWebFlatListController")),y=72,C=56,b=0;function v(){return d.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:[o("WAWebUISpacing").uiMargin.all6,o("WAWebUISpacing").uiMargin.end16],justify:"center",align:"center",children:d.jsx(o("WAWebDraggableItemIcon.react").DraggableItemIcon,{width:18,height:18})})}v.displayName=v.name+" [from "+i.id+"]";var S=function(t){return t.map(function(e,t){return{itemKey:e.id,listItem:e,order:t}})};function R(e){var t=e.autoLabeledLabelIds,n=e.detailElement,a=e.entryPoint,i=e.initialLabelState,l=e.label,s=e.onLabelClick,u=e.onMultiSelect,c=e.ref,m=e.renderContext,p=e.selectableState,_=e.selectedLabels,f=e.showContextActions;if(!l.name)return null;var g=o("WAWebLabelCollection").LabelCollection.assertGet(l.id),h=s?function(){s(l.id)}:void 0,y=t.includes(l.id),C=m==="label-selection"?d.jsx(r("WAWebChatCheckboxWrapper.react"),{theme:o("WAWebBizGatingUtils").labelsEditingEnabled()?"label-selection-redesigned":"label-selection",model:g,initialSelection:i[l.id]||0,multiSelection:_,selectableState:p,onSelect:u,children:d.jsx(r("WAWebLabelsLabelListItem.react"),{label:l.id,onClick:h,showContextActions:f,entryPoint:a,shouldDisplayAutoLabeledText:y})}):d.jsx(r("WAWebLabelsLabelListItem.react"),{label:l.id,detailElement:n,theme:m,onClick:h,showContextActions:f,entryPoint:a,shouldDisplayAutoLabeledText:y});return d.jsx("div",{ref:c,children:C},"label_item_"+l.id)}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e.children,n=e.containerRef;return d.jsx(d.Fragment,{children:t})}L.displayName=L.name+" [from "+i.id+"]";function E(){var e=o("WAWebLabelCollection").LabelCollection.filter(function(e){return o("WAWebListsGatingUtils").isListsEnabled()?e.isActive!==!1&&e.type!==o("WAWebSchemaLabel").ListType.UNREAD&&e.type!==o("WAWebSchemaLabel").ListType.GROUPS:!o("WAWebListUtils").isBuiltInList(e.type)});return o("WAWebListUtils").sortLabels(e),e}function k(e){var t=e.shouldScrollIntoViewAndSelect,a=e.selectedLabels,i=e.onMultiSelect,l=e.renderContext,u=e.onLabelClick,c=e.onNewLabelAdded,k=e.initialLabelState,I=k===void 0?{}:k,T=e.isReorderActive,D=T===void 0?!1:T,x=e.entryPoint,$=e.autoLabeledLabelIds,P=f(function(){return E()}),N=P[0],M=P[1],w=r("useWAWebNux")(o("WAWebNux").NUX.DO_AUTOMATIC_LABEL),A=w[1],F=o("WAWebUserPrefsGeneral").getDetectedOutcomeOnboardingStatus(),O=o("WAWebBizGatingUtils").isCTWADetectedOutcomeWS2Enabled();m(function(){F&&O&&x!==o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS&&new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_APPLICATION,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.LEARN_MORE}).commit()},[F,O,x]);var B=p(function(){return S(N)},[N]),W=_(null),q=r("useWAWebUnmountSignal")(),U=function(t,n,r){a==null||a.setVal(t,n,r),i==null||i(t.id)},V=function(){var e=E();M(e)};o("useWAWebListener").useListener(o("WAWebLabelCollection").LabelCollection,"reorder",V);var H=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,n,r){if(V(),r.add===!0&&t){var a=t(e.name),i=a.shouldScrollIntoView,l=a.shouldSelect;if(i)try{var s;yield o("WAPromiseDelays").delayMs(b,q),(s=W.current)==null||s.scrollIntoView({behavior:"smooth"})}catch(e){}l&&U(e,!0,!1)}});return function(n,r,o){return e.apply(this,arguments)}})();o("useWAWebListener").useListener(o("WAWebLabelCollection").LabelCollection,"add remove",H);var G=function(t,n){return M(function(e){return o("WAArrayMove").arrayMove(e,t,n)})},z=r("WAWebNoop"),j=o("WAWebBizGatingUtils").isLabelReorderingInWebEnabled()?o("WAWebListDragAndDropItem.react").DragAndDropWrapper:L,K=function(n,i){return o("WAWebBizGatingUtils").isLabelReorderingInWebEnabled()&&D?d.jsx(o("WAWebListDragAndDropItem.react").DragAndDropItem,{index:i,onMove:G,onFinalDrop:z,children:d.jsx(R,{autoLabeledLabelIds:$,showContextActions:!D,detailElement:d.jsx(v,{}),selectedLabels:a,renderContext:l,onLabelClick:u,initialLabelState:I,onMultiSelect:U,label:n,selectableState:e.selectableState||new(r("WAWebSelectableState"))(!0),ref:function(t){i===N.length-1&&(W.current=t)},entryPoint:x},n.id)}):d.jsx(R,{autoLabeledLabelIds:$,showContextActions:!0,selectedLabels:a,renderContext:l,onLabelClick:u,initialLabelState:I,onMultiSelect:U,label:n,selectableState:e.selectableState||new(r("WAWebSelectableState"))(!0),ref:function(t){i===N.length-1&&(W.current=t)},entryPoint:x},n.id)},Q=o("WAWebListsGatingUtils").isListsEnabled()&&l==="label-selection"?C:y;return d.jsxs(r("WAWebFlatListContainer.react"),{flatListControllers:[h],children:[l==="label-selection"&&o("WAWebBizGatingUtils").labelsEditingEnabled()&&d.jsx(r("WAWebLabelsLabelListNewLabel.react"),{onNewLabelAdded:c,entryPoint:x}),d.jsxs(j,{containerRef:null,children:[d.jsx(g,{flatListController:h,direction:"vertical",forceConsistentRenderCount:!1,data:B,renderItem:function(t){var e=t.listItem,n=t.order;return K(e,n)},defaultItemHeight:Q}),O&&F&&x!==o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS&&d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[o("WAWebUISpacing").uiPadding.vert16,o("WAWebUISpacing").uiPadding.horiz24],children:d.jsxs(o("WAWebText.react").WAWebTextMuted,{children:[s._(/*BTDS*/"Se pueden etiquetar autom\u00e1ticamente clientes potenciales y nuevos pedidos. Si no quieres que esto suceda, puedes desmarcar las opciones que correspondan.")," ",d.jsx(r("WAWebClickableLink.react"),{onClick:function(){o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebDOIntroPopup.react"),{onContinue:function(){A(),o("WAWebModalManager").ModalManager.close()},surfaceType:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_APPLICATION})),new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_APPLICATION,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.LEARN_MORE}).commit()},children:r("WAWebFbtCommon")("Learn more")})]})})]})]})}k.displayName=k.name+" [from "+i.id+"]",l.default=k}),226); __d("WAWebBizLabelDrawer.react",["fbt","WAWebAutomaticEventsUserJourneyWamEvent","WAWebBizGatingUtils","WAWebBizLabelDrawerHeaderDropdownMenu.react","WAWebBizLabelEditModal.react","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebDOIntroPopup.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFbtCommon","WAWebFlex.react","WAWebLabelsMultiSelectLabelList.react","WAWebListUtils","WAWebListsGatingUtils","WAWebMenuBar.react","WAWebModalManager","WAWebMultiSelection","WAWebNux","WAWebPlusIcon.react","WAWebTabOrder","WAWebText.react","WAWebUISpacing","WAWebUserPrefsGeneral","WAWebWamEnumAutomaticEventsTargetComponentEnum","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamEnumSmbUserActionTypeEnum","WAWebWamEnumSurfaceType","WAWebWamEnumUpdateEntryPoint","WAWebWamLabelEventReporter","WDSIconIcEdit.react","WDSMenuBarItem.react","react","useWAWebNux"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useEffect,_=d.useMemo,f=d.useState;function g(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.isInitialStep,l=i===void 0?!1:i,u=a.onClose,c=a.onCreateListClick,d=a.onEditListClick,g=a.onLabelClick,h=f(!1),y=h[0],C=h[1],b=r("useWAWebNux")(o("WAWebNux").NUX.DO_AUTOMATIC_LABEL),v=b[1],S=_(function(){return new(r("WAWebMultiSelection"))([],function(e){return e.id})},[]),R=o("WAWebListsGatingUtils").isListsEnabled();p(function(){o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.VIEW,void 0,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABELS_SCREEN)},[]);var L=o("WAWebUserPrefsGeneral").getDetectedOutcomeOnboardingStatus(),E=o("WAWebBizGatingUtils").isCTWADetectedOutcomeWS2Enabled();p(function(){L&&E&&new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_LIST,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.LEARN_MORE}).commit()},[L,E]);var k=function(t){return{shouldScrollIntoView:!0,shouldSelect:!1}},I=function(){if(o("WAWebListUtils").isListFlowMaxListsCountReached()){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:o("WAWebModalManager").closeModalManager,okText:r("WAWebFbtCommon")("OK"),children:o("WAWebListUtils").getReachMaxLabelCountTextForBizLabelDrawer(R)}));return}R?c():o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizLabelEditModal.react"),{label:null}))},T=o("WAWebBizGatingUtils").labelsEditingEnabled()&&m.jsx(r("WDSMenuBarItem.react"),{tabOrder:o("WAWebTabOrder").TAB_ORDER.LABELS_TAB_HEADER,testid:void 0,icon:o("WAWebPlusIcon.react").PlusIcon,title:R?s._(/*BTDS*/"A\u00f1adir nueva lista"):s._(/*BTDS*/"A\u00f1adir etiqueta nueva"),onClick:I}),D=function(){d()},x=R?m.jsx(o("WAWebMenuBar.react").MenuBarItem,{tabOrder:o("WAWebTabOrder").TAB_ORDER.LABELS_TAB_HEADER,testid:void 0,icon:m.jsx(r("WDSIconIcEdit.react"),{width:20,height:20}),title:s._(/*BTDS*/"Editar listas"),onClick:D}):null,$=o("WAWebBizGatingUtils").isLabelReorderingInWebEnabled()?m.jsx(o("WAWebBizLabelDrawerHeaderDropdownMenu.react").LabelDrawerHeaderDropdownMenu,{onReorder:function(){return C(function(e){return!e})},isReorderActive:y}):null,P={};l?P.onCancel=u:P.onBack=u;var N=o("WAWebListsGatingUtils").isListsEnabled()?{surface:"list-management"}:{surface:"smb-labels-list"};return m.jsxs(r("WAWebDrawer.react"),babelHelpers.extends({ref:n,theme:"settings"},N&&{tsNavigationData:N},{children:[m.jsxs(o("WAWebDrawerHeader.react").DrawerHeader,babelHelpers.extends({title:R?s._(/*BTDS*/"Listas"):s._(/*BTDS*/"Etiquetas")},P,{type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,children:[T,x,$]})),m.jsxs(r("WAWebDrawerBody.react"),{children:[m.jsx(r("WAWebLabelsMultiSelectLabelList.react"),{autoLabeledLabelIds:[],isReorderActive:y,shouldScrollIntoViewAndSelect:k,selectedLabels:S,renderContext:"label-list",onLabelClick:g,entryPoint:o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_SETTINGS}),E&&L&&m.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[o("WAWebUISpacing").uiMargin.bottom28,o("WAWebUISpacing").uiPadding.vert10,o("WAWebUISpacing").uiPadding.horiz20],children:m.jsxs(o("WAWebText.react").WAWebTextMuted,{xstyle:o("WAWebUISpacing").uiPadding.bottom16,children:[s._(/*BTDS*/"Usa etiquetas para organizar tus clientes y chats. Mant\u00e9n presionado cualquier mensaje o contacto para etiquetarlo. Algunos chats se etiquetan autom\u00e1ticamente.")," ",m.jsx(r("WAWebClickableLink.react"),{onClick:function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebDOIntroPopup.react"),{onContinue:function(){v(),o("WAWebModalManager").ModalManager.close()},surfaceType:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_LIST})),new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_LIST,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.LEARN_MORE}).commit()},children:r("WAWebFbtCommon")("Learn more")})]})})]})]}))}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226); __d("WAWebLabelOffRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="label-off-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.LabelOffRefreshedIcon=m}),98); __d("WAWebLabelRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="label-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.LabelRefreshedIcon=m}),98); __d("WAWebMixedMultiSelectBar.react",["cx","fbt","WAWebBizChatAssignmentAiRepliesModal.react","WAWebBizChatAssignmentForMultipleChatsAiRepliesModal.react","WAWebBizChatAssignmentModal.react","WAWebChatAssignmentLogEvents.flow","WAWebChatAssignmentUtils","WAWebChatAssignmentWithContainerIcon.react","WAWebChatModel","WAWebClassnames","WAWebCommonCTWADataSharing","WAWebDeleteRefreshedIcon.react","WAWebLabelOffRefreshedIcon.react","WAWebLabelRefreshedIcon.react","WAWebListPeopleIcon.react","WAWebListsGatingUtils","WAWebManageLabelFlowLoadable","WAWebModalManager","WAWebMultiSelectEntryPointConstants","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebSmbDataSharingOptInModalDialog","WAWebWamEnumSmbDataSharingConsentScreenEntryPoint","WDSIconIcClose.react","react","useWAWebForceUpdate","useWAWebListener","useWAWebStableCallback"],(function(t,n,r,o,a,i,l,s,u){var e=["ref"],c,d,m=d||(d=r("react")),p=(c||(c=o("react"))).useEffect;function _(t){"use no forget";var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.labelEditEnabled,s=l===void 0?!1:l,c=i.multiSelectEntryPoint,d=i.onCancel,_=i.onDelete,g=i.onRemoveLabel,h=i.selectedModels,y=c===o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatAssignment,C=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),b=h.getSelected(),v=b.length,S=function(){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebManageLabelFlowLoadable").ManageLabelFlowLoadable,{onLabelUpdateComplete:d,modelsToUpdate:b,onClose:function(){return o("WAWebModalManager").ModalManager.close()},entryPoint:null}))},R=function(){var e=b.reduce(function(e,t){return t instanceof o("WAWebChatModel").Chat&&e.push(t),e},[]);r("WAWebSmbDataSharingOptInModalDialog").maybeShowLabelDataSharingDialog(e,r("WAWebCommonCTWADataSharing").SmbDataSharingLabelTargetValues.CHAT,S,o("WAWebWamEnumSmbDataSharingConsentScreenEntryPoint").SMB_DATA_SHARING_CONSENT_SCREEN_ENTRY_POINT.LABEL_CHAT)},L=r("useWAWebStableCallback")(d);p(function(){v===0&&L()},[v,L]),o("useWAWebListener").useListener(h,"all",C);var E=b.length,k,I,T,D;if(y&&E>0){var x=function(){var e=b;if(o("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_FETCH_ASSIGN_CHAT_AGENT_LIST,{annotations:{string:{CHAT_ASSIGNMENT_ENTRY_POINT:"MULTI_SELECT"}}}),o("WAWebChatAssignmentUtils").canAssignAllChats(e)===!1){if(e.length===1){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizChatAssignmentAiRepliesModal.react"),{chat:e[0]}));return}o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizChatAssignmentForMultipleChatsAiRepliesModal.react"),{}));return}o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizChatAssignmentModal.react"),{chats:e,onSave:d,entryPoint:o("WAWebChatAssignmentLogEvents.flow").ChatAssignmentEntryPointType.MULTI_SELECT}))};k=m.jsx(f,{testid:void 0,Icon:o("WAWebChatAssignmentWithContainerIcon.react").ChatAssignmentWithContainerIcon,disabled:!E,title:u._(/*BTDS*/"Asignar chat"),onClick:x})}var $=o("WAWebListsGatingUtils").isListsEnabled();if(s&&E>0){var P=$?u._(/*BTDS*/"A\u00f1adir a la lista"):u._(/*BTDS*/"A\u00f1adir etiqueta");I=m.jsx(f,{testid:void 0,Icon:$?o("WAWebListPeopleIcon.react").ListPeopleIcon:o("WAWebLabelRefreshedIcon.react").LabelRefreshedIcon,disabled:!E,title:P,onClick:R})}if(g&&E>0){var N=$?u._(/*BTDS*/"Quitar de una lista"):u._(/*BTDS*/"Quitar etiqueta");D=m.jsx(f,{testid:void 0,Icon:o("WAWebLabelOffRefreshedIcon.react").LabelOffRefreshedIcon,disabled:!E,title:N,onClick:g})}if(_&&E>0){var M=$?u._(/*BTDS*/"Eliminar lista"):u._(/*BTDS*/"Eliminar etiqueta");T=m.jsx(f,{testid:void 0,Icon:o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,disabled:!E,title:M,onClick:_})}var w=o("WAWebClassnames").classnamesConvertMeToStylexPlease((n={},n._akao=i.theme==="drawer-header",n._akap=i.theme==="chatlist-panel",n._akan=!0,n._arj9=!0,n));return m.jsxs("div",{className:w,ref:a,children:[m.jsx(f,{testid:void 0,Icon:r("WDSIconIcClose.react"),onClick:i.onCancel}),m.jsx("div",{className:"_akaq",children:u._(/*BTDS*/"_j{\"*\":\"{count} seleccionados\",\"4\":\"{count} seleccionado\",\"_1\":\"1 seleccionado\"}",[u._plural(E,"count")])}),k,I,T,D]})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.Icon,n=e.customIcon,r=e.directional,o=e.disabled,a=e.onClick,i=e.testid,l=e.title;return m.jsx("button",{"data-testid":void 0,className:"_akar",title:l,onClick:a,disabled:o===!0?"disabled":void 0,children:m.jsx(t,{directional:r})})}f.displayName=f.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebBizLabelItemDrawer.react",["fbt","WAWebAdaptiveLayoutGatingUtils","WAWebAutomaticEventsUserJourneyWamEvent","WAWebBizGatingUtils","WAWebBizLabelChooseColorModal.react","WAWebBizLabelEditModal.react","WAWebBizLabelEditingAction","WAWebCTWAConstants","WAWebChatlistPanelFunctional.react","WAWebChatlistPanelMode","WAWebChatlistPanel_DEPRECATED.react","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebDOIntroPopup.react","WAWebDeleteRefreshedIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDropdown.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebFbtCommon","WAWebFlex.react","WAWebLabelCollection","WAWebLabelErrors","WAWebLabels.react","WAWebListsGatingUtils","WAWebMixedMultiSelectBar.react","WAWebMobilePlatforms","WAWebModalManager","WAWebMoreRefreshedIcon.react","WAWebMsgModel","WAWebMultiSelectEntryPointConstants","WAWebMultiSelection","WAWebNux","WAWebPaletteOutlineIcon.react","WAWebPencilRefreshedIcon.react","WAWebSettingsGetters","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUserPrefsGeneral","WAWebWamEnumAutomaticEventsTargetComponentEnum","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamEnumSmbUserActionTypeEnum","WAWebWamEnumSurfaceType","WAWebWamLabelEventReporter","WDSMenuBarItem.react","asyncToGeneratorRuntime","react","useWAWebForceUpdate","useWAWebListener","useWAWebNux","useWAWebSettingsValues"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useEffect,_=d.useMemo;function f(t){"use no forget";var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.labelId,u=i.onRemoveLabel,c=o("useWAWebSettingsValues").useSettingsValues([o("WAWebSettingsGetters").getShowArchiveV2]),d=c[0],f=r("useWAWebNux")(o("WAWebNux").NUX.DO_AUTOMATIC_LABEL),g=f[1],h=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),y=_(function(){return new(r("WAWebMultiSelection"))([],function(e){return e.id.toString()})},[]);o("useWAWebListener").useListener(y,"all",h),p(function(){o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.VIEW,void 0,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABEL_DETAILS_SCREEN)},[]);var C=o("WAWebLabelCollection").LabelCollection.get(l),b=C==null?void 0:C.predefinedId,v=C!=null&&(C==null?void 0:C.count)>0,S=o("WAWebUserPrefsGeneral").getDetectedOutcomeOnboardingStatus(),R=o("WAWebBizGatingUtils").isCTWADetectedOutcomeWS2Enabled();p(function(){S&&R&&(b===o("WAWebCTWAConstants").NEW_ORDER_PREDEFINED_ID||b===o("WAWebCTWAConstants").LEAD_PREDEFINED_ID)&&v&&new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_DETAILS,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.LEARN_MORE}).commit()},[b,v,S,R]);var L=o("WAWebListsGatingUtils").isListsEnabled(),E=function(){y.unsetAll()},k=function(t,n){o("WAWebModalManager").ModalManager.close(),E(),u(t,n),o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.CLICK_POSITIVE,n.length,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.BULK_UNLABEL_DIALOG)},I=function(){var e=y.getSelected();o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.CLICK_NEGATIVE,e.length,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.BULK_UNLABEL_DIALOG),o("WAWebModalManager").ModalManager.close()},T=function(){var e=y.getSelected(),t=o("WAWebLabelCollection").LabelCollection.assertGet(l);o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.VIEW,e.length,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.BULK_UNLABEL_DIALOG);var n=L?s._(/*BTDS*/"_j{\"*\":\"Quitar {count} elementos de la lista \\\"{listName}\\\"\",\"_1\":\"Quitar 1 elemento de la lista \\\"{listName}\\\"\"}",[s._plural(e.length,"count"),s._param("listName",t.name)]):s._(/*BTDS*/"_j{\"*\":\"Quitar la etiqueta \\\"{labelName}\\\" de {count} elementos\",\"4\":\"Quitar la etiqueta \\\"{labelName}\\\" de {count} elemento\",\"_1\":\"Quitar la etiqueta \\\"{labelName}\\\" de 1 elemento\"}",[s._plural(e.length,"count"),s._param("labelName",t.name)]);o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:n,okText:r("WAWebFbtCommon")("OK"),cancelText:s._(/*BTDS*/"Cancelar"),onCancel:I,onOK:function(){return k(l,e)}}))},D=function(t){for(var e,n,r=0;r0)$=m.jsx(r("WAWebMixedMultiSelectBar.react"),{labelEditEnabled:!x,onRemoveLabel:T,selectedModels:y,onCancel:E,theme:"chatlist-panel",multiSelectEntryPoint:o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.Label});else{var P,N=o("WAWebLabelCollection").LabelCollection.get(l);if(N&&o("WAWebBizGatingUtils").labelsEditingEnabled()){var M=function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizLabelEditModal.react"),{label:N}))},w=function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebBizLabelChooseColorModal.react"),{label:N}))},A=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{try{yield o("WAWebBizLabelEditingAction").labelDeleteAction(l,N.name,N.colorIndex)}catch(e){throw new(o("WAWebLabelErrors")).LabelActionError}o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Etiqueta eliminada")}))}catch(e){e instanceof o("WAWebLabelErrors").LabelActionError&&o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo eliminar la etiqueta")}))}finally{o("WAWebModalManager").ModalManager.close(),i.onClose()}});return function(){return e.apply(this,arguments)}})(),F=L?s._(/*BTDS*/"\u00bfDeseas eliminar esta lista?"):s._(/*BTDS*/"\u00bfDeseas eliminar esta etiqueta?"),O=L?s._(/*BTDS*/"Si eliminas una lista, esta se quita de todos los contactos y chats. \u00bfConfirmas que deseas eliminar esta lista?"):s._(/*BTDS*/"Si eliminas una etiqueta, se quitar\u00e1 de todos los mensajes y contactos, y de la lista de etiquetas. \u00bfConfirmas que deseas quitar esta etiqueta?"),B=function(){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:F,onOK:A,onCancel:o("WAWebModalManager").closeModalManager,children:O}))};P=m.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,title:s._(/*BTDS*/"Men\u00fa"),dropdownMenu:{menu:m.jsxs(m.Fragment,{children:[m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:M,icon:m.jsx(o("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,{}),children:s._(/*BTDS*/"Editar")},"mi-edit-label"),o("WAWebMobilePlatforms").isSMB()&&m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:w,icon:m.jsx(o("WAWebPaletteOutlineIcon.react").PaletteOutlineIcon,{}),children:s._(/*BTDS*/"Seleccionar color")},"mi-choose-label-color"),m.jsx(r("WAWebDropdownItemSeparator.react"),{}),m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,icon:m.jsx(o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}),action:B,children:s._(/*BTDS*/"Eliminar")},"mi-delete-label")]}),type:o("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.LEFT}})}var W=o("WAWebBizGatingUtils").canDisplayLabel();$=m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:W||N==null?void 0:N.name,onBack:i.onClose,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,menu:P,children:W&&m.jsx(o("WAWebLabels.react").Labels,{labels:[i.labelId],renderAsCircle:!0,showName:!0,theme:"drawer-title"})})}var q=(b===o("WAWebCTWAConstants").NEW_ORDER_PREDEFINED_ID||b===o("WAWebCTWAConstants").LEAD_PREDEFINED_ID)&&v&&m.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[o("WAWebUISpacing").uiPadding.vert16,o("WAWebUISpacing").uiPadding.horiz24],children:m.jsxs(o("WAWebText.react").WAWebTextMuted,{children:[s._(/*BTDS*/"Algunos chats se etiquetan autom\u00e1ticamente.")," ",m.jsx(r("WAWebClickableLink.react"),{onClick:function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebDOIntroPopup.react"),{onContinue:function(){g(),o("WAWebModalManager").ModalManager.close()},surfaceType:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_DETAILS})),new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.LABEL_DETAILS,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.LEARN_MORE}).commit()},children:r("WAWebFbtCommon")("Learn more")})]})}),U=o("WAWebAdaptiveLayoutGatingUtils").shouldUseFunctionalChatlistPanel();return m.jsxs(r("WAWebDrawer.react"),{ref:a,theme:"settings",testid:void 0,tsNavigationData:{surface:"smb-labels-detail"},children:[$,m.jsxs(r("WAWebDrawerBody.react"),{children:[S&&R&&q,U?m.jsx(o("WAWebChatlistPanelFunctional.react").ChatlistPanelFunctional,{hideMultiSelectBar:!0,multiSelection:y,labelFilter:i.labelId,showArchiveV2:d,mode:r("WAWebChatlistPanelMode").Chatlist,selectable:!0}):m.jsx(o("WAWebChatlistPanel_DEPRECATED.react").ChatlistPanel,{hideMultiSelectBar:!0,multiSelection:y,labelFilter:i.labelId,showArchiveV2:d,mode:r("WAWebChatlistPanelMode").Chatlist,selectable:!0})]})]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebOrderConfirmDiscardModal",["fbt","WAWebConfirmPopup.react","WAWebModalManager","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onOK;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas descartar los cambios?"),onOK:function(){o("WAWebModalManager").ModalManager.close(),t()},okText:s._(/*BTDS*/"Descartar"),onCancel:function(){return o("WAWebModalManager").ModalManager.close()},children:u.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Si cierras esta pantalla, se descartar\u00e1 el borrador.")})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebCreateOrEditListDrawer.react",["fbt","WAWebAddToListModal.react","WAWebButton.react","WAWebCellFrame.react","WAWebChat.react","WAWebChatSearchFilters","WAWebCmd","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlatList.react","WAWebFlatListController","WAWebFlex.react","WAWebLabelCollection","WAWebLabelEditInput.react","WAWebListNameValidation","WAWebListsActions","WAWebListsLogging","WAWebListsUtil","WAWebMobilePlatforms","WAWebModalManager","WAWebNoop","WAWebOrderConfirmDiscardModal","WAWebSectionHeader.react","WAWebUISpacing","WAWebWamEnumListAction","WAWebWamEnumListUpdateUserJourneyAction","WDSIconIcAdd.react","asyncToGeneratorRuntime","isStringNullOrEmpty","react","stylex"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d,m=d||(d=o("react")),p=u||(u=r("react")),_=m.useEffect,f=m.useMemo,g=m.useState,h={sectionHeader:{height:"xng8ra",$$css:!0},chatsListPadding:{paddingInlineStart:"x1djpfga",$$css:!0},buttonPadding:{paddingInlineStart:"xzm8p2n",$$css:!0},inputRowPadding:{paddingInlineStart:"xmzvs34",$$css:!0}};function y(t){var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.entryPoint,u=i.listId,d=i.onBack,m=i.onClose,y=g(!1),b=y[0],v=y[1],S=o("WAWebMobilePlatforms").isSMB(),R=u!=null,L=f(function(){if(u==null)return[null,[],null,null];var e=o("WAWebLabelCollection").LabelCollection.get(u);if(e==null)return[null,[],null,null];var t=o("WAWebListsUtil").getAllChatsInList(e),n=r("isStringNullOrEmpty")(e.name)?e.name:null,a=e.color!=null?Number(e.color):null;return[e,t,n,a]},[u]),E=L[0],k=L[1],I=L[2],T=L[3],D=g(I),x=D[0],$=D[1],P=g(T),N=P[0],M=P[1],w=g(k),A=w[0],F=w[1],O=new(r("WAWebFlatListController")),B=o("WAWebFlatList.react").FlatListFactory();_(function(){R||o("WAWebListsLogging").logListUpdateUserJorney({listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,userJorneyAction:o("WAWebWamEnumListUpdateUserJourneyAction").LIST_UPDATE_USER_JOURNEY_ACTION.START,entryPoint:l})},[R,l]);var W=function(t,n){$((t||"").trim()),M(n)},q=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(x!=null){v(!0);try{if(u!=null&&E!=null)yield o("WAWebListsActions").editListAction({newName:x,newColor:N,labelModel:E,updatedAssociatedChats:A,entryPoint:l});else{var e=yield o("WAWebListsActions").createNewListAction(x,A,N,l);e!=null&&(o("WAWebListsLogging").logListUpdateUserJorney({listId:""+e,listAction:o("WAWebWamEnumListAction").LIST_ACTION.CREATE,userJorneyAction:o("WAWebWamEnumListUpdateUserJourneyAction").LIST_UPDATE_USER_JOURNEY_ACTION.CREATE_LIST,entryPoint:l}),o("WAWebCmd").Cmd.trigger("set_active_filter",o("WAWebChatSearchFilters").SearchFilters.LABELS,String(e)))}m()}finally{v(!1)}}});return function(){return e.apply(this,arguments)}})(),U=function(){o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebAddToListModal.react"),{preselectedChats:A,onClose:function(t){F(t),o("WAWebModalManager").ModalManager.close()}}))},V=function(){j()===!1?o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebOrderConfirmDiscardModal"),{onOK:d})):d()},H=A.map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e}}),G=E==null?void 0:E.name,z=E==null?void 0:E.colorIndex,j=f(function(){return function(){if(b)return!0;if(R){if(x!==G||S&&N!==z||k.length!==A.length)return!1;var e=o("WAWebListsUtil").getTwoArraysDifference(k,A),t=e.addedItems,n=e.removedItems;return t.length===0&&n.length===0}var a=S&&N==null,i=S?0:1;return r("isStringNullOrEmpty")(x)||o("WAWebListNameValidation").isListNameDuplicate(x)||A.length0&&V&&(j||U&&x)&&(z=4,L=o("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.NOTIFICATION_DISABLED),z===0?R=c.jsx(r("WAWebNotificationsButterbar.react"),{onDismiss:H,action:G}):R=c.jsx(r("WAWebNotificationsM1Butterbar.react"),{onDismiss:H,onAction:G,bannerVariant:z,ref:b})}else C();else if(!v&&o("WAWebPushNotificationsGatingUtils").canEnableOfflineNotifications()&&window.Notification&&l!==o("WAWebNotificationConstants").PERMISSION_DENIED&&R==null){var K=o("WAWebUserPrefsNotifications").getOfflineNotificationsBBStatus(),Q=K.firstSeenTime,X=o("WAWebUserPrefsNotifications").getGlobalOfflineNotifications();!B&&(!X||l===o("WAWebNotificationConstants").PERMISSION_DEFAULT)&&(Q==null&&(Q=o("WATimeUtils").unixTime(),o("WAWebUserPrefsNotifications").setOfflineNotificationsBBStatus({isDismissed:!1,firstSeenTime:Q})),o("WATimeUtils").unixTime()-Q<=7*o("WATimeUtils").DAY_SECONDS&&(L=o("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE_NOTIFICATION,R=c.jsx("div",{className:"x1380le5 x14mko6t xefnzgg x1uvdrpn",children:c.jsx(r("WDSBanner.react"),{type:"default",icon:r("WDSIconIcSync.react"),title:s._(/*BTDS*/"Activa la sincronizaci\u00f3n en segundo plano"),body:o("WAWebSettingsFBT").offlineSyncSubtitle(),actionText:s._(/*BTDS*/"Activar"),onAction:function(){y(o("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE_NOTIFICATION,o("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_CTA),o("WAWebBackgroundSyncReporter").logBackgroundSyncAdoptionEvent({offboardSource:null,onboardSource:o("WAWebWamEnumOnboardSources").ONBOARD_SOURCES.BACKGROUND_SYNC_BUTTERBAR}),u()},onDismiss:function(){h(o("WAWebWamEnumWebcButterbarBbType").WEBC_BUTTERBAR_BB_TYPE.OFFLINE_NOTIFICATION),o("WAWebUserPrefsNotifications").setOfflineNotificationsBBStatus({isDismissed:!0}),W(!0)}},"bbar")})))}}return R!=null&&L&&m!==L&&(m!=null&&y(m,o("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.AUTO_DISMISS),m=L,y(L,o("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.IMPRESSION)),R}p.displayName=p.name+" [from "+i.id+"]";function _(){o("WAWebUpdater").Updater.restart()}function f(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getCannotConnectFaqUrl())}function g(e,t){if(t===void 0&&(t=!1),r("WAWebEnvironment").isWindows&&!t)return!1;var n=o("WAWebUserPrefsNotifications").getWebNotificationsBBStatus(),a=n.firstSeenTime,i=n.isDismissed,l=n.lastDismissTime;if(e){if(i)return l==null||o("WATimeUtils").unixTime()-l>2*o("WATimeUtils").WEEK_SECONDS}else if(a==null)o("WAWebUserPrefsNotifications").setWebNotificationsBBStatus({isDismissed:!1,firstSeenTime:o("WATimeUtils").unixTime()});else if(i||o("WATimeUtils").unixTime()-a>4*o("WATimeUtils").WEEK_SECONDS)return!1;return!0}function h(e){m=null,y(e,o("WAWebWamEnumWebcButterbarActionType").WEBC_BUTTERBAR_ACTION_TYPE.CLICK_DISMISS)}function y(e,t){new(o("WAWebWebcButterbarEventWamEvent")).WebcButterbarEventWamEvent({webcButterbarType:e,webcButterbarAction:t}).commit()}l.default=p}),226); __d("WAWebChatButterbar.react",["fbt","WALogger","WANullthrows","WAShiftTimer","WAWebBrigadingButterBar.react","WAWebCmd","WAWebDrawerManager","WAWebGuidePopup.react","WAWebL10N","WAWebLocaleManualUpdateButterbar.react","WAWebModalManager","WAWebMuteCollection","WAWebNoticeButterbar.react","WAWebNoticeModel","WAWebNotificationConstants","WAWebNotificationsFlow.react","WAWebOfflineHandler","WAWebOfflineResumeTypes.flow","WAWebPDFNLogging","WAWebPrimaryButterbar.react","WAWebPushNotificationsGatingUtils","WAWebStreamModel","WAWebSubscribePushManagerAction","WAWebToast.react","WAWebToastManager","WAWebUserPrefsGeneral","WAWebUserPrefsIndexedDBStorage","WAWebVelocityTransitionGroup","WAWebWamEnumUserNoticeEvent","cr:5037","cr:5735","gkx","react","useLazyRef","useWAWebABPropConfigValue","useWAWebForceUpdate","useWAWebListener","useWAWebModelValues","useWAWebOnUnmount"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useEffect,_=d.useState,f={container:{display:"x78zum5",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",flexDirection:"xdt5ytf",$$css:!0}},g=1e4;function h(t){"use no forget";var a,i=t.setShowButterBar,l=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebModelValues").useModelValues(t.stream,["displayInfo","needsUpdate","isHardRefresh"]),o("useWAWebModelValues").useModelValues(t.notice,["noticeId","blocking","banner","shouldShowButterBar"]);var u=_((a=window.Notification)==null?void 0:a.permission),c=u[0],d=u[1],h=_(!1),y=h[0],C=h[1],b=_(!1),v=b[0],S=b[1],R=_({detected:!1}),L=R[0],E=R[1],k=o("useWAWebABPropConfigValue").useABPropConfigValue("brigading_privacy_setting_enabled"),I=o("WAWebUserPrefsIndexedDBStorage").userPrefsIdb.get("WABrigadingState"),T=_(I),D=T[0],x=T[1],$=_(function(){return!1}),P=$[0],N=$[1],M=_(function(){return r("gkx")("26258")?null:o("WAWebUserPrefsGeneral").getStorageAlert()}),w=M[0],A=M[1],F=r("useLazyRef")(function(){return new(o("WAShiftTimer")).ShiftTimer(function(e){C(e)})}),O=_(o("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===o("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.ButterBar),B=O[0],W=O[1],q=function(){F.current.onOrBefore(g,!0)},U=function(t){var e;o("WAWebModalManager").ModalManager.open(m.jsx((e=o("WAWebGuidePopup.react")).GuidePopup,{messaging:e.Messaging.NOTIFICATIONS,onConfirm:e.guideConfirm,onCancel:e.notificationGuideLearnMore,type:e.GuidePopupType.GUIDE_ALLOW,enableNewBannerLogic:t,featureSurface:e.FeatureSurface.NOTIFICATION})),window.Notification.requestPermission(function(e){var n;if(o("WAWebPushNotificationsGatingUtils").canShowNotificationsBanner((n=window.Notification)==null?void 0:n.permission,t)||o("WAWebModalManager").ModalManager.close(),d(e),e===o("WAWebNotificationConstants").PERMISSION_ALLOWED){var r=o("WAWebMuteCollection").MuteCollection.getGlobalNotifications();if(r||o("WAWebMuteCollection").MuteCollection.setAllNotificationsAndReactions(!0),o("WAWebPushNotificationsGatingUtils").canEnableOfflineNotifications()){var a=o("WAWebMuteCollection").MuteCollection.getGlobalOfflineNotifications();a||(o("WAWebSubscribePushManagerAction").handleOfflineNotifications(!0),o("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(!0))}}})},V=function(){if(window.Notification&&c===o("WAWebNotificationConstants").PERMISSION_ALLOWED){o("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(!0),o("WAWebSubscribePushManagerAction").handleOfflineNotifications(!0),l();var t=s._(/*BTDS*/"Sincronizaci\u00f3n en segundo plano activada"),n=s._(/*BTDS*/"Ver");o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:t,duration:6e3,action:{actionText:n,onAction:function(){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(m.jsx(o("WAWebNotificationsFlow.react").NotificationsFlow,{onEnd:function(){o("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}))}}}),o("WAWebToastManager").ToastPosition.RIGHT)}else if(window.Notification&&c===o("WAWebNotificationConstants").PERMISSION_DEFAULT){var r;o("WAWebModalManager").ModalManager.open(m.jsx((r=o("WAWebGuidePopup.react")).GuidePopup,{messaging:r.Messaging.BACKGROUND_SYNC,onConfirm:r.guideConfirm,onCancel:r.notificationGuideLearnMore,type:r.GuidePopupType.GUIDE_ALLOW,featureSurface:r.FeatureSurface.NOTIFICATION})),window.Notification.requestPermission(function(e){if(o("WAWebModalManager").ModalManager.close(),d(e),e===o("WAWebNotificationConstants").PERMISSION_ALLOWED){var t=o("WAWebMuteCollection").MuteCollection.getGlobalOfflineNotifications();t||(o("WAWebMuteCollection").MuteCollection.setGlobalOfflineNotifications(!0),o("WAWebSubscribePushManagerAction").handleOfflineNotifications(!0))}})}else o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Enable offline notifications failed: window.Notification unavailable or denied"])))},H=function(){return r("WAWebNoticeModel").shouldShowButterBar&&r("WAWebNoticeModel").noticeId!=null&&r("WAWebNoticeModel").banner!=null&&r("WAWebNoticeModel").blocking===!1},G=function(){H()&&(v||(o("WAWebPDFNLogging").logUserNoticeEvent({noticeId:r("WAWebNoticeModel").noticeId,noticeContentVersion:r("WAWebNoticeModel").policyVersion,noticeEvent:o("WAWebWamEnumUserNoticeEvent").USER_NOTICE_EVENT.BANNER_APPEAR}),S(!0)))},z=function(){r("gkx")("26258")||A(o("WAWebUserPrefsGeneral").getStorageAlert())},j=function(){S(!1)},K=function(){N(!1)},Q=function(){i&&i(y||v)};p(function(){Q()},[]),r("useWAWebOnUnmount")(function(){F.current.cancel()}),o("useWAWebListener").useListener(r("WAWebNoticeModel"),"change:noticeId",j),o("useWAWebListener").useListener(r("WAWebNoticeModel"),["change:banner","change:blocking"],G),o("useWAWebListener").useListener(r("gkx")("26258")?o("WAWebCmd").Cmd:null,"handle_low_storage_butter_bar",z),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"on_notification_permission_change",function(){d(window.Notification.permission)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"on_brigading_state_change_from_bridge",function(e){x(e)}),o("useWAWebListener").useListener(r("WAWebL10N"),"locale_changed_on_phone",function(e){var t=e.currentLocale,n=e.newLocale;E(n!==t?{detected:!0,newLocale:n}:{detected:!1})}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,["offline_progress_update_from_bridge","offline_delivery_end_from_bridge"],function(){W(o("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===o("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.ButterBar)});var X=null,Y=n("cr:5735")?m.jsx(n("cr:5735"),{alertType:w}):null,J=L.detected?m.jsx(r("WAWebLocaleManualUpdateButterbar.react"),{locale:L.newLocale}):null,Z=k&&D!=null?m.jsx(r("WAWebBrigadingButterBar.react"),{state:D,onDismiss:function(){o("WAWebUserPrefsGeneral").clearBrigadingstate(),x(null)}}):null;return m.jsxs(r("WAWebVelocityTransitionGroup"),{transitionName:"butterbar",xstyle:f.container,testid:void 0,children:[Z,X,Y,J,m.jsx(r("WAWebNoticeButterbar.react"),{shouldShow:H(),banner:r("WAWebNoticeModel").banner}),m.jsx(r("WAWebPrimaryButterbar.react"),{displayInfo:o("WAWebStreamModel").Stream.displayInfo,needsUpdate:o("WAWebStreamModel").Stream.needsUpdate,isHardRefresh:o("WAWebStreamModel").Stream.isHardRefresh,showResumeProgress:B,showNotify:y,notifyPermission:c,onShowNotifyDelay:q,onRequestPermissions:U,onEnableOfflineNotifications:V})]})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.setShowButterBar;return m.jsx(h,{stream:o("WAWebStreamModel").Stream,notice:r("WAWebNoticeModel"),setShowButterBar:t})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebCurrentMoment",["WAWeb-moment"],(function(t,n,r,o,a,i,l){function e(){return r("WAWeb-moment")(Date.now())}l.getCurrentMoment=e}),98); __d("WAWebNuxCoolOff",["WAWeb-moment","WAWebBannerEventWamEvent","WAWebCurrentMoment","WAWebNux","WAWebUserPrefsStore","WAWebWamEnumBannerOperations"],(function(t,n,r,o,a,i,l){var e={COOL_OFF_DURATION_IN_DAYS:4,VIEWS_BEFORE_COOL_OFF_IN_DAYS:2,CLICKS_BEFORE_COOL_OFF:1,MAX_DISMISSES:1,MAX_CLICKS:2,MAX_VIEWS_IN_DAYS:4,COOL_OFF_START_STORAGE_KEY:o("WAWebNux").CoolOffPeriodKeys.DEFAULT,storageAccessors:c()},s=function(t){if(typeof t=="object"&&t!=null){var e=typeof t.startDate=="string"?r("WAWeb-moment")(t.startDate):null,n=typeof t.duration=="number"?t.duration:null;if(e!=null&&n!=null)return{startDate:e,duration:n}}},u=(function(){function t(t,n){this.key=o("WAWebNux").asCoolOffNuxType(t),this.config=babelHelpers.extends({},e,n),this.nux=this.$1(),this.coolOffData=this.$2()}var n=t.prototype;return n.$3=function(){return{viewDaysBeforeCoolOff:0,totalViewDays:0,clicks:0,dismisses:0,lastViewedDay:r("WAWeb-moment")(0)}},n.$1=function(){var e=this.config.storageAccessors.getNuxOptions(this.key);if(e!=null){var t=typeof e.clicks=="number"?e.clicks:null,n=typeof e.dismisses=="number"?e.dismisses:null,o=typeof e.totalViewDays=="number"?e.totalViewDays:null,a=typeof e.viewDaysBeforeCoolOff=="number"?e.viewDaysBeforeCoolOff:null,i=typeof e.lastViewedDay=="string"?r("WAWeb-moment")(e.lastViewedDay):null;if(t!=null&&n!=null&&a!=null&&o!=null&&i!=null)return{clicks:t,dismisses:n,viewDaysBeforeCoolOff:a,totalViewDays:o,lastViewedDay:i}}var l=this.$3();return this.$4(l),l},n.$2=function(){var e=this.config.storageAccessors.getCoolOffData(this.config.COOL_OFF_START_STORAGE_KEY),t=s(e);return t!=null?t:this.$5(r("WAWeb-moment")(0))},n.$5=function(t){var e={startDate:t,duration:this.config.COOL_OFF_DURATION_IN_DAYS};return this.config.storageAccessors.setCoolOffData(this.config.COOL_OFF_START_STORAGE_KEY,babelHelpers.extends({},e,{startDate:e.startDate})),e},n.$6=function(t){var e=this.$5(t);this.coolOffData=e},n.$4=function(t){this.config.storageAccessors.setNuxOptions(this.key,babelHelpers.extends({},t,{lastViewedDay:t.lastViewedDay}))},n.$7=function(t){this.$4(Object.assign(this.nux,t))},n.$8=function(){var e=o("WAWebCurrentMoment").getCurrentMoment(),t=e.diff(this.coolOffData.startDate,"days",!0);return t>=0&&t0||o("WAWebFrontendChatGetters").getOptimisticUnreadCount(e)===r("WAWebConstantsDeprecated").MARKED_AS_UNREAD)}).length;n(e)},d=function(){var e=o("WAWebChatCollection").ChatCollection.filter(function(e){return e.archive&&o("WAWebChatGetters").getIsGroup(e)&&(o("WAWebFrontendChatGetters").getOptimisticUnreadCount(e)>0||o("WAWebFrontendChatGetters").getOptimisticUnreadCount(e)===r("WAWebConstantsDeprecated").MARKED_AS_UNREAD)}),t=e.some(function(e){var t,n,r=(t=(n=e.groupMetadata)==null?void 0:n.unreadMentionMetadata.getUnreadMentionCount())!=null?t:0,o=!e.archiveAtMentionViewedInDrawer;return r>0&&o});l(t)};return o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"add remove reset change:archive change:unreadCount change:pendingSeenCount change:muteExpiration",s),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:archive change:hasUnreadMention change:archiveAtMentionViewedInDrawer",d),u(function(){s(),d()},[]),{unreadCount:t,showUnreadMentionIcon:i}}l.useArchivedChatsActivityIndicator=d}),98); __d("WAWebChatArchivedEntryPoint.react",["fbt","WAWebArchiveRefreshedIcon.react","WAWebArchivedFlowLoadable","WAWebChatFolderOpenWamEvent","WAWebChatUnreadCount.react","WAWebChatlistPanelDrawerButton.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebMentionsRefreshedIcon.react","WAWebTabOrder","react","useWAWebArchivedChatsActivityIndicator"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={iconMentions:{display:"x1rg5ohu",width:"xw4jnvo",height:"x1qx5ct2",color:"x1r8hjv8",marginInlineEnd:"xnnr8r",$$css:!0}};function d(){var e=o("useWAWebArchivedChatsActivityIndicator").useArchivedChatsActivityIndicator(),t=e.showUnreadMentionIcon,n=e.unreadCount,a=n!==0&&!t,i=a?u.jsx("div",{className:"x1rg5ohu xnnr8r",children:u.jsx(o("WAWebChatUnreadCount.react").UnreadCount,{count:n,theme:o("WAWebChatUnreadCount.react").UnreadCountTheme.Transparent})}):null,l=u.jsx(o("WAWebArchiveRefreshedIcon.react").ArchiveRefreshedIcon,{}),d=t?u.jsx("div",{className:"x1rg5ohu xw4jnvo x1qx5ct2 x1r8hjv8 xnnr8r",children:u.jsx(o("WAWebMentionsRefreshedIcon.react").MentionsRefreshedIcon,{xstyle:c.iconMentions,height:20})},"icon-mentions"):null,m=[s._(/*BTDS*/"Archivados"),t?s._(/*BTDS*/"Mensaje con menci\u00f3n"):""].join(" "),p=u.jsxs(u.Fragment,{children:[d,i]}),_=function(){new(o("WAWebChatFolderOpenWamEvent")).ChatFolderOpenWamEvent({activityIndicatorCount:n,folderType:"Archive"}).commit(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebArchivedFlowLoadable").ArchivedFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})};return u.jsx(r("WAWebChatlistPanelDrawerButton.react"),{dataTestId:"chatlist-panel-archived-button",dataTab:o("WAWebTabOrder").TAB_ORDER.ARCHIVED_ENTRY_POINT,ariaLabel:m,onClick:_,primary:s._(/*BTDS*/"Archivados"),icon:l,detail:p})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebChatListFilterListsDropdown.react",["fbt","WAWebChatCollection","WAWebCountRenderingUtils","WAWebCreateOrEditListDrawer.react","WAWebDrawerManager","WAWebFilterLogging","WAWebLabelCollection","WAWebListUtils","WAWebListsGatingUtils","WAWebListsIntroPopupLoadable","WAWebListsUtil","WAWebModalManager","WAWebNux","WAWebTabOrder","WAWebWamEnumUpdateEntryPoint","WDSChip.react","WDSIconIcAdd.react","WDSIconIcArrowDropDown.react","WDSMenu.react","WDSMenuItem.react","react","useMergeRefs","useWAWebListener","useWAWebNux","useWDSMenu"],(function(t,n,r,o,a,i,l,s){var e=["ref","currentFilter","filters","filterSession","onSelect"],u=["ref","onClick","opened","tabOrder"],c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useMemo,f=m.useRef,g=m.useState;function h(t){var n=t.ref,a=t.currentFilter,i=t.filters,l=t.filterSession,u=t.onSelect,c=babelHelpers.objectWithoutPropertiesLoose(t,e),d=a==null?void 0:a.kind,m=a==null?void 0:a.label,h=o("WAWebListsGatingUtils").isListsEnabled(),C=g(h?o("WAWebListUtils").getListsUnreadChatCountMap():new Map),b=C[0],v=C[1],S=r("useWAWebNux")(o("WAWebNux").NUX.ADD_TO_LISTS),R=S[0],L=S[1],E=f(null),k=r("useMergeRefs")(E,n),I=g(void 0),T=I[0],D=I[1],x=function(){return v(o("WAWebListUtils").getListsUnreadChatCountMap())};o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:showUnreadInTitle change:archive add remove reset change:unreadCount change:isFavorite",x),o("useWAWebListener").useListener(h?o("WAWebLabelCollection").LabelCollection:null,"change:count",x);var $=_(function(){return Array.from(b.values()).some(function(e){return e>0})},[b]),P=i.map(function(e,t){var n=e.getLabel(),a=n.toString(),i=function(){u(e.filter,e.listId,e.listType,t)},l=o("WAWebListUtils").getUnreadChatsCountForFilter(e,b),s=d===e.filter&&(e.listId==null||m===e.listId),c=o("WAWebCountRenderingUtils").renderCount(l,100,"unread_message");return p.jsx(r("WDSMenuItem.react"),{title:n,onPress:i,hasNumber:$,number:c!=null?c:void 0,isToggleable:!0,toggled:s,testid:void 0,truncateText:!0},a)});P.push(p.jsx(r("WDSMenuItem.react"),{type:"separator"},"separator"));var N=function(){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(p.jsx(r("WAWebCreateOrEditListDrawer.react"),{onBack:o("WAWebDrawerManager").closeDrawerLeft,onClose:o("WAWebDrawerManager").closeDrawerLeft,entryPoint:o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.ADD_LIST_FILTER}))},M=function(){if(o("WAWebListUtils").isListFlowMaxListsCountReached()){o("WAWebListsUtil").showMaxListsModal(h);return}R?o("WAWebModalManager").ModalManager.open(p.jsx(o("WAWebListsIntroPopupLoadable").ListsIntroPopupLoadable,{onContinue:function(){L(),N()}})):N()};P.push(p.jsx(r("WDSMenuItem.react"),{Icon:r("WDSIconIcAdd.react"),title:s._(/*BTDS*/"Nueva lista"),onPress:M,testid:void 0,truncateText:!0},"create-new-list-item"));var w=r("useWDSMenu")({targetRef:E,menu:p.jsx(r("WDSMenu.react"),{maxHeight:T,children:P})}),A=w.closeMenu,F=w.isMenuOpen,O=w.menuPortal,B=w.openMenu,W=function(){if(F)A();else{if(E.current!=null){var e=E.current.getBoundingClientRect(),t=window.innerHeight-e.bottom-16;D(Math.max(100,t))}B(),l!=null&&o("WAWebFilterLogging").logLabelDropdownShownEvent(l.newSessionId())}};return p.jsxs(p.Fragment,{children:[p.jsx(y,{ref:k,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,opened:F,onClick:W,id:c.id,role:c.role,"aria-selected":c["aria-selected"],"aria-controls":c["aria-controls"],tabIndex:c.tabIndex,onFocus:c.onFocus},"filters-dropdown"),O]})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.ref,n=e.onClick,o=e.opened,a=e.tabOrder,i=babelHelpers.objectWithoutPropertiesLoose(e,u),l=s._(/*BTDS*/"M\u00e1s listas");return p.jsx("div",{onFocus:i.onFocus,tabIndex:i.tabIndex,"data-tab":a,children:p.jsx(r("WDSChip.react"),{ref:t,id:i.id,label:l,onPress:function(t){n==null||n(t)},role:i.role,"aria-pressed":o,"aria-selected":i["aria-selected"],"aria-controls":i["aria-controls"],Icon:r("WDSIconIcArrowDropDown.react"),iconOnly:!0,testid:void 0})})}y.displayName=y.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebListChatListFilterRightClickMenu.react",["fbt","WAWebCreateOrEditListDrawer.react","WAWebDrawerManager","WAWebDropdownItem.react","WAWebListsUtil","WAWebNonEmptyString","WAWebSchemaLabel","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebWamEnumUpdateEntryPoint","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={item:{boxSizing:"x9f619",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",fontSize:"x1f6kntn",lineHeight:"x1o2sk6j",$$css:!0}},m=function(t){switch(t){case o("WAWebSchemaLabel").ListType.CUSTOM:return!0;case o("WAWebSchemaLabel").ListType.NONE:case o("WAWebSchemaLabel").ListType.UNREAD:case o("WAWebSchemaLabel").ListType.GROUPS:case o("WAWebSchemaLabel").ListType.FAVORITES:case o("WAWebSchemaLabel").ListType.PREDEFINED:case o("WAWebSchemaLabel").ListType.COMMUNITY:case o("WAWebSchemaLabel").ListType.SERVER_ASSIGNED:return!1}};function p(e){var t=e.contextEvent,n=e.listId,a=e.listType,i=e.onDismiss;if(a==null||!m(a))return null;var l=o("WAWebNonEmptyString").asMaybeNonEmptyString(n),p=[];if(l!=null){var _=function(){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(c.jsx(r("WAWebCreateOrEditListDrawer.react"),{listId:l,onBack:o("WAWebDrawerManager").closeDrawerLeft,onClose:o("WAWebDrawerManager").closeDrawerLeft,entryPoint:o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.FILTER_CONTEXT_MENU}))};p.push(c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:_,children:c.jsx("button",babelHelpers.extends({},(u||(u=r("stylex"))).props(d.item,o("WAWebUISpacing").uiPadding.vert8,o("WAWebUISpacing").uiPadding.end32,o("WAWebUISpacing").uiPadding.start24),{children:s._(/*BTDS*/"Editar")}))},"dropdown-item-edit")),p.push(c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return o("WAWebListsUtil").openListDeleteConfirmPopup(l,o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.FILTER_CONTEXT_MENU)},children:c.jsx("button",babelHelpers.extends({},u.props(d.item,o("WAWebUISpacing").uiPadding.vert8,o("WAWebUISpacing").uiPadding.end32,o("WAWebUISpacing").uiPadding.start24),{children:s._(/*BTDS*/"Eliminar lista")}))},"dropdown-item-delete"))}var f=t!=null?c.jsx(o("WAWebUimUie.react").UIE,{displayName:"InboxFilterListPillContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:i,requestRecentFocusOnUnmount:!1,children:c.jsx(r("WAWebUimUieMenu.react"),{contextMenu:{menu:p,event:t,anchor:t.target}})}):null;return f}p.displayName=p.name+" [from "+i.id+"]",l.allowToDisplayListFilterPillContextMenu=m,l.ListChatListFilterRightClickMenu=p}),226); __d("WAWebListFilterButton.react",["WAWebABProps","WAWebFlex.react","WAWebListChatListFilterRightClickMenu.react","WAWebNoop","WAWebThemeContext","WAWebUISpacing","WAWebUnstyledButton.react","WDSChip.react","WDSFocusStateStyles","react"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c=u||(u=r("react")),d=(s||(s=o("react"))).useState,m={filterRefreshed:{borderStartStartRadius:"xtf1z3e",borderStartEndRadius:"x18i4vdl",borderEndEndRadius:"x17ka9pb",borderEndStartRadius:"xaozknv",fontSize:"x6prxxf",fontWeight:"xo1l8bm",lineHeight:"x1btupbp",color:"xhslqc4",backgroundColor:"x1280gxy",boxShadow:"x1hdfv4t",$$css:!0},filterHoverRefreshed:{":hover_backgroundColor":"x1ubxc9n",$$css:!0},selectedRefreshed:{color:"xk4n5i7",backgroundColor:"x1abdmlv",$$css:!0},drawerHeader:{backgroundColor:"x1hqk2wv",color:"xk4n5i7",borderTopColor:"xx42vgk",borderBottomColor:"x120ee7l",borderInlineEndColor:"xbogo7e",borderInlineStartColor:"x1vb5itz",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",":disabled_color":"x1f47i5p",":disabled_backgroundColor":"x182k0kv",":disabled_cursor":"x1s07b3s",$$css:!0},drawerHeaderDark:{backgroundColor:"xjbqb8w",$$css:!0}};function p(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.count,l=a.disabled,s=a.endIcon,u=a.id,p=a.label,_=a.listId,f=a.listType,g=a.onClick,h=a.onFocus,y=a.restrictSize,C=a.selected,b=a.startIcon,v=a.tabOrder,S=a.testIdSuffix,R=a.theme,L=R===void 0?"list-filter":R,E=o("WAWebThemeContext").useIsDarkTheme(),k=d(null),I=k[0],T=k[1],D=i==null?0:i,x=D>0?{endNumber:D}:{};if(o("WAWebABProps").getABPropConfigValue("wds_web_chip")&&s==null&&!!b==!!a.startWDSIcon)return c.jsx("div",{"data-testid":void 0,children:c.jsx(r("WDSChip.react"),babelHelpers.extends({tabOrder:Number(a.tabIndex)>=0?v:void 0,truncateText:!0,ref:n,id:u,isDisabled:l,label:p},x,{isSelected:C,onPress:function(t){g==null||g(t)},onFocus:h!=null?h:r("WAWebNoop"),role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],Icon:a.startWDSIcon,showEndDropdownIcon:a.showEndDropdownIcon,testid:void 0}))});var $=function(t){t.preventDefault(),T(t)},P=function(){T(null)},N=f!=null?o("WAWebListChatListFilterRightClickMenu.react").allowToDisplayListFilterPillContextMenu(f):!1,M=[o("WAWebUISpacing").uiPadding.vert6,o("WAWebUISpacing").uiPadding.horiz12];M.push(m.filterRefreshed,o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus),C?M.push(m.selectedRefreshed):M.push(m.filterHoverRefreshed),L==="drawer-header"&&M.push(E?[m.drawerHeader,m.drawerHeaderDark]:m.drawerHeader);var w=i!=null&&i>0?" "+i:"";return c.jsxs(c.Fragment,{children:[c.jsx(r("WAWebUnstyledButton.react"),{ref:n,testid:void 0,dataTab:v,onClick:g,onFocus:h,onContextMenu:N?$:null,"aria-pressed":C,disabled:l,xstyle:M,id:a.id,role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],tabIndex:a.tabIndex,children:c.jsxs(o("WAWebFlex.react").FlexRow,{columnGap:8,align:"center",children:[b,c.jsxs("div",babelHelpers.extends({"data-testid":void 0},{0:{},1:{className:"x6ikm8r x10wlt62 xuxw1ft xlyipyv x1qh4rir"}}[!!y<<0],{children:[p,w]})),s]})}),N?c.jsx(o("WAWebListChatListFilterRightClickMenu.react").ListChatListFilterRightClickMenu,{listId:_,listType:f,contextEvent:I,onDismiss:P}):null]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebChatListFiltersLabelsPill.react",["fbt","WAWebABProps","WAWebBizGatingUtils","WAWebCTWAConstants","WAWebChatCollection","WAWebChatListFilterLabelsDropdownMenu.react","WAWebChevronCustomIcons","WAWebDOIntroPopup.react","WAWebFilterLogging","WAWebLabelCollection","WAWebLabels.react","WAWebListFilterButton.react","WAWebModalManager","WAWebNoop","WAWebNux","WAWebScreenWidthThresholds","WAWebTabOrder","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUserPrefsGeneral","WAWebWamEnumSurfaceType","WDSChip.react","react","useMergeRefs","useWAWebListener","useWAWebNux","useWAWebWindowSize"],(function(t,n,r,o,a,i,l,s){var e=["ref","filterSession","isSelected","onClick","selectedLabelId","unreadChatsCountMap"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useMemo,_=d.useRef,f=d.useState,g=function(){return o("WAWebLabelCollection").LabelCollection.getChatLabelsWithUnarchivedAssociations().length===0};function h(t){var n=t.ref,a=t.filterSession,i=t.isSelected,l=t.onClick,u=t.selectedLabelId,c=t.unreadChatsCountMap,d=babelHelpers.objectWithoutPropertiesLoose(t,e),h=f(!1),y=h[0],C=h[1],b=f(g),v=b[0],S=b[1],R=r("useWAWebNux")(o("WAWebNux").NUX.DO_AUTOMATIC_LABEL),L=R[0],E=R[1],k=_(null),I=r("useMergeRefs")(k,n),T=p(function(){return u==null?null:o("WAWebLabelCollection").LabelCollection.get(u)},[u]),D=r("useWAWebWindowSize")(),x=D.width=0?o("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER:void 0,ref:I,id:d.id,label:w,isSelected:i,onPress:N,onFocus:(A=d.onFocus)!=null?A:r("WAWebNoop"),role:d.role,"aria-selected":d["aria-selected"],"aria-controls":d["aria-controls"],showEndDropdownIcon:!0,smbLabelsContent:M}),P]})}return m.jsxs("span",{children:[m.jsx(r("WAWebListFilterButton.react"),babelHelpers.extends({ref:I,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,label:w,selected:i,onClick:N},M&&{startIcon:M},{endIcon:m.jsx(o("WAWebChevronCustomIcons").ChevronDownCustomIcon,{height:22}),restrictSize:!0,id:d.id,role:d.role,"aria-selected":d["aria-selected"],"aria-controls":d["aria-controls"],tabIndex:d.tabIndex,onFocus:d.onFocus})),P]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebChatListFiltersNewListButton.react",["fbt","WAWebCreateOrEditListDrawer.react","WAWebDrawerManager","WAWebListsIntroPopupLoadable","WAWebModalManager","WAWebNux","WAWebTabOrder","WAWebWamEnumUpdateEntryPoint","WDSChip.react","WDSIconIcAdd.react","react","useMergeRefs","useWAWebNux"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useRef;function p(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=m(null),l=r("useMergeRefs")(n,i),u=r("useWAWebNux")(o("WAWebNux").NUX.ADD_TO_LISTS),c=u[0],p=u[1],_=function(){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(d.jsx(r("WAWebCreateOrEditListDrawer.react"),{onBack:o("WAWebDrawerManager").closeDrawerLeft,onClose:o("WAWebDrawerManager").closeDrawerLeft,entryPoint:o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.ADD_LIST_FILTER}),{focusOnUnMount:!0})},f=function(){c?o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebListsIntroPopupLoadable").ListsIntroPopupLoadable,{onContinue:function(){p(),_()}})):_()},g=s._(/*BTDS*/"Nueva lista");return d.jsx("div",{onFocus:a.onFocus,tabIndex:a.tabIndex,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,children:d.jsx(r("WDSChip.react"),{ref:l,id:a.id,label:g,onPress:f,role:a.role,"aria-selected":a["aria-selected"],"aria-controls":a["aria-controls"],"aria-label":g,Icon:r("WDSIconIcAdd.react"),iconOnly:!0,testid:void 0})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebChatListFilters.react",["fbt","WALogger","WAWebChatAssignmentUtils","WAWebChatCollection","WAWebChatListFilterListsDropdown.react","WAWebChatListFiltersLabelsPill.react","WAWebChatListFiltersNewListButton.react","WAWebChatSearchFilters","WAWebCmd","WAWebFilterLogging","WAWebInboxFiltersGatingUtils","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebL10NIsUsingSupportedBritishEnglishLocale","WAWebLabelCollection","WAWebListFilterButton.react","WAWebListUtils","WAWebListsGatingUtils","WAWebMobilePlatforms","WAWebSchemaLabel","WAWebTabOrder","isStringNullOrEmpty","react","useWAWebForceUpdate","useWAWebListener","useWAWebWindowSize"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_,f=["ref"],g,h,y=h||(h=o("react")),C=g||(g=r("react")),b=y.useImperativeHandle,v=y.useRef,S={id:"all-filter",getLabel:function(){return s._(/*BTDS*/"Todos")},testid:"all-filter"},R={id:"unread-filter",filter:o("WAWebChatSearchFilters").SearchFilters.UNREAD,getLabel:function(){return s._(/*BTDS*/"No le\u00eddos")},listType:o("WAWebSchemaLabel").ListType.UNREAD,testid:"unread-filter",count:0},L={id:"group-filter",filter:o("WAWebChatSearchFilters").SearchFilters.GROUP,getLabel:function(){return s._(/*BTDS*/"Grupos")},listType:o("WAWebSchemaLabel").ListType.GROUPS,testid:"group-filter",count:0},E={id:"favorites-filter",filter:o("WAWebChatSearchFilters").SearchFilters.FAVORITES,getLabel:function(){return o("WAWebL10NIsUsingSupportedBritishEnglishLocale").isUsingSupportedBritishEnglishLocale()?s._(/*BTDS*/"Favourites"):s._(/*BTDS*/"Favoritos")},listType:o("WAWebSchemaLabel").ListType.FAVORITES,testid:"favorites-filter",count:0},k={id:"assigned-to-you-filter",filter:o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU,getLabel:function(){return s._(/*BTDS*/"Asignados a ti")},testid:"assigned-to-you-filter"},I=function(t){return t==null?o("WAWebChatSearchFilters").SearchFilters.LABELS:t===o("WAWebSchemaLabel").ListType.NONE||t===o("WAWebSchemaLabel").ListType.SERVER_ASSIGNED?null:t===o("WAWebSchemaLabel").ListType.UNREAD?o("WAWebChatSearchFilters").SearchFilters.UNREAD:t===o("WAWebSchemaLabel").ListType.GROUPS?o("WAWebChatSearchFilters").SearchFilters.GROUP:t===o("WAWebSchemaLabel").ListType.FAVORITES?o("WAWebChatSearchFilters").SearchFilters.FAVORITES:t===o("WAWebSchemaLabel").ListType.COMMUNITY?o("WAWebChatSearchFilters").SearchFilters.COMMUNITY:t===o("WAWebSchemaLabel").ListType.PREDEFINED||t===o("WAWebSchemaLabel").ListType.CUSTOM?o("WAWebChatSearchFilters").SearchFilters.LABELS:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+t)})()},T=function(t,n,r){var e=[S,R];if(t&&e.push(E),e.push(L),n&&e.push(k),r&&o("WAWebLabelCollection").LabelCollection.length!==0){var a,i=o("WAWebLabelCollection").LabelCollection.toArray();o("WAWebListUtils").sortLabels(i);var l=i.reduce(function(t,n){if(!n.name)return t;var r=I(n.type);if(o("WAWebListUtils").isBuiltInList(n.type)&&(e=e.filter(function(e){return e.filter!==r})),n.isActive===!1)return t;var a={id:"label_item_"+n.name,getLabel:function(){return n.name},testid:"label_item_"+n.name,listId:n.id,listType:n.type};return r!=null&&(a.filter=r),t.push(a),t},[]);(a=e).push.apply(a,l)}return e},D=function(t,n,r,a){if(a=1600?4:e>=1e3&&e<1600?3:2}var $={filterPillsContainer:{paddingTop:"x1nn3v0j",paddingBottom:"x1ykpatu",paddingInlineStart:"x106a9eq",paddingInlineEnd:"x2vl965",backgroundColor:"x1280gxy",display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",flexShrink:"x2lah0s",rowGap:"x3pnbk8",columnGap:"xfex06f",minWidth:"xeuugli",minHeight:"x2lwn1j",$$css:!0}};function P(t){"use no forget";var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,f),i=a.filter,l=a.filterSession,s=a.onFilterChange,g=i.kind,h=i.label,y=g===o("WAWebChatSearchFilters").SearchFilters.LABELS,S=r("useWAWebWindowSize")(),R=S.width,L=x(R),E=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),k=v([]),I=v(null),P=v(null),N=o("WAWebListsGatingUtils").isListsEnabled(),M=N&&!o("WAWebMobilePlatforms").isSMB(),w=T(o("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled(),o("WAWebChatAssignmentUtils").canAssignChats(),M),A=function(t,n){if(k.current[n]=t,!(n>=w.length)){var e=w[n].filter;e===g&&(I.current=t)}},F=function(t){t&&(t.focus(),P.current=t)};o("useWAWebListener").useListener(h!=null?o("WAWebLabelCollection").LabelCollection:null,"remove",function(t){t.id===h&&(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: Calling onFilterChange from LabelCollection remove event (label deleted), resetting to ALL filter"]))),s({kind:null}))}),o("useWAWebListener").useListener(h!=null?o("WAWebLabelCollection").LabelCollection:null,"change:count",function(e,t){e.id===h&&t===0&&(o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: Calling onFilterChange from LabelCollection change:count event (label count became 0), resetting to ALL filter"]))),s({kind:null}))}),o("useWAWebListener").useListener(N?o("WAWebLabelCollection").LabelCollection:null,"change:count change:sort change:name change:color change:isActive remove add reorder",function(){o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: forceUpdate triggered by LabelCollection event (change:count/sort/name/color/isActive/remove/add/reorder)"]))),E()}),o("useWAWebListener").useListener(N?o("WAWebChatCollection").ChatCollection:null,"change:showUnreadInTitle change:unreadCount change:isFavorite",function(){o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: forceUpdate triggered by ChatCollection event (change:showUnreadInTitle/unreadCount/isFavorite)"]))),E()});var O=function(t,n){var e,r={kind:t!=null?t:null,label:n!=null?n:null};if(i.kind===r.kind&&i.label===r.label){var a;o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: Skipping onFilterChange from handleSetActiveFilter - filter unchanged (filterKind: ",", hasLabel: ",")"])),(a=r.kind)!=null?a:"none",!!r.label);return}(l==null?void 0:l.sessionId)!=null&&o("WAWebFilterLogging").logSelectFilterEvent(l.newSessionId(),r),o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: Calling onFilterChange from handleSetActiveFilter, filterKind: ",", hasLabel: ",""])),(e=r.kind)!=null?e:"none",!!r.label),s(r)};o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"set_active_filter",O),b(n,function(){return{focus:function(){F(I.current)}}});var B=function(t,n,a){var e,i=t===g,u=n===h,c=n==null,d=i&&c&&!u,m=d?{kind:null}:{kind:t!=null?t:null,label:o("WAWebListUtils").isBuiltInList(a)||r("isStringNullOrEmpty")(n)?null:n};(l==null?void 0:l.sessionId)!=null&&o("WAWebFilterLogging").logSelectFilterEvent(l.newSessionId(),m),o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatListFilters: Calling onFilterChange from handleLabelSelection, filterKind: ",", hasLabel: ",""])),(e=m.kind)!=null?e:"none",!!m.label),s(m)},W=function(t){var e=k.current.indexOf(P.current),n;r("WAWebL10N").isRTL()?n=e+(t==="next"?-1:1):n=e+(t==="next"?1:-1);var o=k.current[n];o&&F(o)},q={left:function(){return W("previous")},right:function(){return W("next")}},U=function(t){var e=t.target;e instanceof HTMLElement&&(P.current=e)},V=o("WAWebListUtils").getListsUnreadChatCountMap(),H,G,z,j,K;if(M){var Q=w.findIndex(function(e){return g===e.filter&&(o("WAWebListUtils").isBuiltInList(e.listType)||h===e.listId)||g==null&&e.filter==null}),X=D(L,i,w,Q),Y=Q>=L,J=Y?w:w.filter(function(e){return!X.some(function(t){return t.id===e.id||t.listId!=null&&t.listId===e.listId})}),Z=w.length>L||o("WAWebLabelCollection").LabelCollection.getCustomLists().length>0;Q>=L&&(Q=1),z=X.map(function(e,t){var n=Q===t,a=r("isStringNullOrEmpty")(e.listId)?{}:{listId:e.listId};return C.createElement(r("WAWebListFilterButton.react"),babelHelpers.extends({ref:function(n){return A(n,t)},id:e.id,role:"tab","aria-selected":n,"aria-controls":"chat-list",listType:e.listType},a,{testIdSuffix:e.testid,key:e.getLabel().toString(),tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,tabIndex:n?0:-1,label:e.getLabel(),selected:n,restrictSize:!0,count:o("WAWebListUtils").getUnreadChatsCountForFilter(e,V),onClick:function(){return B(e.filter,e.listId,e.listType)},onFocus:U}))}),Z?j=C.jsx(r("WAWebChatListFilterListsDropdown.react"),{ref:function(t){return A(t,L)},id:"additional-filters",role:"tab","aria-selected":!1,"aria-controls":"chat-list",filters:J,currentFilter:i,tabIndex:-1,filterSession:l,onSelect:B,onFocus:U}):K=C.jsx(r("WAWebChatListFiltersNewListButton.react"),{ref:function(t){return A(t,L)},id:"new-filter",role:"tab","aria-selected":!1,"aria-controls":"chat-list",tabIndex:-1,onFocus:U})}else H=w.map(function(e,t){var n=e.filter,a=e.getLabel,i=e.id,l=e.listId,s=e.listType,u=e.testid,c=g===n||g==null&&n==null;return C.jsx(r("WAWebListFilterButton.react"),{ref:function(n){return A(n,t)},testIdSuffix:u,id:i,count:o("WAWebMobilePlatforms").isSMB()&&N?o("WAWebListUtils").getUnreadChatsCountForFilter({filter:n,getLabel:a,testid:u,listId:l,listType:s,id:i},V):void 0,role:"tab","aria-selected":c,"aria-controls":"chat-list",listType:s,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_LIST_FILTER,tabIndex:c?0:-1,label:a(),selected:c,onClick:function(){return B(n,l,s)},onFocus:function(t){var e=t.target;e instanceof HTMLElement&&(P.current=e)}},a().toString())}),G=o("WAWebInboxFiltersGatingUtils").inboxCustomFiltersEnabled()?C.jsx(r("WAWebChatListFiltersLabelsPill.react"),{ref:function(t){return A(t,H.length)},id:"labels-filter",role:"tab","aria-selected":y,"aria-controls":"chat-list",filterSession:l,isSelected:y,onClick:function(t){return B(o("WAWebChatSearchFilters").SearchFilters.LABELS,t)},selectedLabelId:h,tabIndex:y?0:-1,onFocus:U,unreadChatsCountMap:V},o("WAWebChatSearchFilters").SearchFilters.LABELS):null;return C.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{role:"tablist","aria-label":"chat-list-filters",handlers:q,xstyle:$.filterPillsContainer,children:[H,G,z,j,K]})}P.displayName=P.name+" [from "+i.id+"]";var N=P;l.ChatListFilters=N}),226); __d("WAWebChatCellV2.react",["fbt","WAWebBizGatingUtils","WAWebCellV2.react","WAWebChatGetters","WAWebChatIcons.react","WAWebChatTimestamp.react","WAWebChatstateInfo.react","WAWebChevronCustomIcons","WAWebCommunityGatingUtils","WAWebContactGetters","WAWebDetailImage.react","WAWebErrorBoundary.react","WAWebFlexBox.react","WAWebFocusTracer","WAWebGroupChatImage.react","WAWebName.react","WAWebPopoverContext.react","WAWebSettingsModel","WAWebStackedCirclesImage.react","WAWebSvgComponentBase","WAWebText.react","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebVelocityTransition","WDSFocusStateStyles","WDSFontTokenStyles","react","stylex","useMergeRefs","useWAWebHover","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e=["chat","ref"],u=["contextMenuItems","forceActive","hideArchivedIcon","hideMuteIcon","onContextMenuToggle","showCommunityInfo","showMessageYourselfName","showSpeakerForCag","useShortName"],c,d,m,p=m||(m=o("react")),_=c||(c=r("react")),f=p.useEffect,g=p.useRef,h=p.useState,y={mutedTextColor:{color:"xhslqc4",$$css:!0}};function C(t){var n=t.chat,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.contextMenuItems,c=i.forceActive,m=i.hideArchivedIcon,p=m===void 0?!1:m,C=i.hideMuteIcon,b=C===void 0?!1:C,v=i.onContextMenuToggle,S=i.showCommunityInfo,R=S===void 0?!1:S,L=i.showMessageYourselfName,E=L===void 0?!1:L,k=i.showSpeakerForCag,I=k===void 0?!1:k,T=i.useShortName,D=babelHelpers.objectWithoutPropertiesLoose(i,u);o("useWAWebModelValues").useModelValues(n,["unreadCount"]);var x=g(null),$=r("useMergeRefs")(a,x),P=o("WAWebPopoverContext.react").useWAWebPopoverControllerRef(),N=o("useWAWebHover").useWAWebHover(x),M=h(null),w=M[0],A=M[1],F=c===!0||D.active,O=g(!1);f(function(){v==null||v(w!=null)},[w,v]);var B=function(t){A({anchor:t.anchor,event:t.event,menu:l!=null?l:[]})},W=function(){A(null),q()},q=function(){O.current&&(O.current=!1,r("WAWebFocusTracer").focus(re.current))},U=function(t){if(t.key==="Enter"){var e;t.preventDefault(),t.stopPropagation(),B({anchor:re.current}),O.current=!0,(e=P.current)==null||e.showPopover()}},V=function(t){t.preventDefault(),t.stopPropagation(),B({event:t,anchor:re.current})},H=o("WAWebBizGatingUtils").canDisplayLabel(),G;o("WAWebChatGetters").getIsGroup(n)?G=_.jsx(o("WAWebName.react").Name,{chat:n,useShortName:T,showLabelIcon:H,titlify:!0,ellipsify:!0,showMessageYourselfName:E}):G=_.jsx(o("WAWebName.react").Name,{contact:n.contact,useShortName:T,showBusinessCheckmark:o("WAWebContactGetters").getShowBusinessCheckmarkAsPrimary(n.contact),showLabelIcon:H,titlify:!0,ellipsify:!0,you:!0,showMessageYourselfName:E});var z,j=R===!0&&o("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(n.groupMetadata);if(j){var K,Q=(K=n.groupMetadata)==null?void 0:K.getParentGroupChat();Q!=null&&(z=_.jsx("span",babelHelpers.extends({},(d||(d=r("stylex"))).props(y.mutedTextColor,o("WDSFontTokenStyles").WDSFontTokenStyles.Body2),{children:_.jsx(o("WAWebName.react").Name,{chat:Q,titlify:!0,ellipsify:!0})})))}var X=_.jsx(o("WAWebText.react").WAWebTextTitle,{children:G}),Y=_.jsx("span",babelHelpers.extends({},(d||(d=r("stylex"))).props(y.mutedTextColor,o("WDSFontTokenStyles").WDSFontTokenStyles.Body2),{children:_.jsx(r("WAWebChatstateInfo.react"),{chat:n})})),J=40,Z=_.jsx(o("WAWebDetailImage.react").DetailImage,{id:n.id,size:J,waitIdle:!0}),ee=o("WAWebChatGetters").getIsGroup(n)?_.jsx(r("WAWebGroupChatImage.react"),{chat:n,regularChatImage:Z,showSpeakerForCag:I,showCommunityInfo:R,isHovered:N,size:J,theme:o("WAWebStackedCirclesImage.react").SubgroupImageTheme.CHAT_LIST}):Z,te=_.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-cell-image",children:ee}),ne=_.jsx(o("WAWebText.react").WAWebTextSmall,{color:n.unreadCount?"teal":null,children:_.jsx(r("WAWebChatTimestamp.react"),{chat:n})}),re=g(null),oe;w&&(oe=_.jsx(o("WAWebUimUie.react").UIE,{displayName:"ChatContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:W,children:_.jsx(r("WAWebUimUieMenu.react"),{contextMenu:w})}));var ae=w!=null||N||D.active===!0,ie=_.jsxs(o("WAWebFlexBox.react").FlexRow,{gap:8,align:"center",children:[_.jsx(o("WAWebChatIcons.react").Icons,{chat:n,mute:n.mute,settings:r("WAWebSettingsModel"),hideArchivedIcon:p,hideMuteIcon:b,unreadCount:n.unreadCount,unreadMentionIcon:n.hasUnreadMention}),l!=null&&_.jsx(r("WAWebVelocityTransition"),{nodeRef:re,transitionName:"pop-fast-chat",in:ae,mountOnEnter:!0,unmountOnExit:!0,appear:!0,children:_.jsxs("button",babelHelpers.extends({"data-testid":void 0,ref:re,onClick:V,onKeyDown:U},(d||(d=r("stylex"))).props(o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus),{"aria-label":s._(/*BTDS*/"Abrir el men\u00fa contextual del chat"),children:[_.jsx(o("WAWebChevronCustomIcons").ChevronDownCustomIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:24}),oe]}))})]}),le,se,ue;return z!=null?(le=ne,se=ie,ue=null):(le=null,se=ne,ue=ie),_.jsx(r("WAWebCellV2.react"),babelHelpers.extends({ref:$},D,{active:F,primary:X,secondary:Y,detailLeft:te,primaryRight:se,secondaryRight:ue,detailTop:z,detailTopRight:le,alignPrimary:"start",onContextMenu:B}))}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226); __d("WAWebChatContextMenuItemUnlock.react",["fbt","WAWebChatLockCodeModal.react","WAWebDropdownItem.react","WAWebWamEnumActionEntryPoint","WDSIconWdsIcChatlockUnlockedOutline.react","asyncToGeneratorRuntime","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chat,a=o("useWAWebModelValues").useModelValues(t,["isLocked"]),i=a.isLocked,l=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){o("WAWebChatLockCodeModal.react").promptAndUnlockChat(t,{entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_CONTEXT_MENU})});return function(){return e.apply(this,arguments)}})();return i?u.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:l,icon:u.jsx(r("WDSIconWdsIcChatlockUnlockedOutline.react"),{}),children:s._(/*BTDS*/"Desbloquear chat")},"ChatUnlockMenuItem"):null}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebChatListMenuItem.react",["WAWebChatCellV2.react","WAWebCommunityGatingUtils","WAWebMenuItem.react","react"],(function(t,n,r,o,a,i,l){var e=["chat","chatCellRef","onSelect","optionId","ref"],s,u=s||(s=r("react"));function c(e){var t;return o("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(e.groupMetadata)&&((t=e.groupMetadata)==null?void 0:t.getParentGroupChat())!=null}function d(e,t){var n=t||{},r=n.showCommunityInfo,o=r===void 0?!1:r;return{itemKey:e.id.toString(),height:o&&c(e)?88:72,chat:e}}function m(t){var n=t.chat,a=t.chatCellRef,i=t.onSelect,l=t.optionId,s=t.ref,c=babelHelpers.objectWithoutPropertiesLoose(t,e),d=o("WAWebMenuItem.react").useMenuItem(l),m=d.border,p=d.colorScheme,_=d.isActive,f=d.material,g=d.size;return u.jsx(o("WAWebMenuItem.react").WAWebMenuItem,{ref:s,onSelect:i,optionId:l,type:"action",children:u.jsx(r("WAWebChatCellV2.react"),babelHelpers.extends({ref:a,chat:n,colorScheme:p,size:g,material:f,border:m,active:_},c))})}m.displayName=m.name+" [from "+i.id+"]",l.getFlatListConfigFromChat=d,l.ChatMenuItem=m}),98); __d("WAWebSearchModel",["asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e){this.maxPageLength=e==null?void 0:e.maxPageLength,this.preloadData()}var t=e.prototype;return t.preloadData=function(){},t.queryFn=function(t,n){throw r("err")("Cannot create `Search` Model without `query` method")},t.query=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n,r=this;if(t===void 0&&(t={}),this.maxPageLength!=null){var o;((o=t)==null?void 0:o.pagination)==null?t.pagination={pageLength:this.maxPageLength,page:0}:t.pagination.pageLength=this.maxPageLength}var a=yield this.queryFn(e,t),i=babelHelpers.extends({},a,{query:{searchText:e,options:t},pagination:null});if(((n=t)==null?void 0:n.pagination)!=null){var l,s,u,c,d,m;if(a.pagination==null){var p;l=(p=t.pagination.page)!=null?p:0,s=t.pagination.pageLength;var _=l*s,f=_+s;u=Math.ceil(i.results.length/s),c=ll+1)&&(d=function(){return r.query(e,babelHelpers.extends({},t,{pagination:{pageLength:s,page:l+1}}))}),l>0&&(m=function(){return r.query(e,babelHelpers.extends({},t,{pagination:{pageLength:s,page:l-1}}))}),i.pagination={page:l,pageLength:s,totalPages:u,hasMoreResults:c,next:d,previous:m}}return i});function t(t,n){return e.apply(this,arguments)}return t})(),e})();l.Search=e}),98); __d("WAWebChatSearchModel",["WAWebChatCollection","WAWebChatGetters","WAWebFrontendChatGetters","WAWebPhoneNumberSearch","WAWebSearchModel","WAWebSearchUtils"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0}function p(e){var t=e.condition,n=e.entryPoint,r=e.id,a=e.landingSurface,i=e.onPromptFailure,l=e.onPromptSuccess,s=e.unlockEntryPoint,p,_;t==="always"?(p=!0,_=o("WAWebChatLockUtils").lockedChatsAreAccessible()):t==="bypass"?(p=!1,_=!0):(p=t.isLocked,_=o("WAWebChatLockUtils").chatIsAccessible(t));var f=c(_),g=f[0],h=f[1],y=c(!1),C=y[0],b=y[1];return u(function(){p&&!g&&!C&&(b(!0),o("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,entryPoint:n,landingSurface:a,unlockEntryPoint:s}).then(function(e){h(e),e?l==null||l():i==null||i()}))},[g,p,C,l,i,n,a,s]),u(function(){return p&&g&&d.add(r),function(){p&&g&&(d.delete(r),m()||o("WAWebChatLockUtils").lockChats())}},[g,p,r]),g}l.chatLockComponentIsMounted=m,l.useChatLockRestriction=p}),98); __d("useWAWebOpenChat",["WAWebChatCollection","WAWebCmd","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(){var e=s(o("WAWebChatCollection").ChatCollection.getActive()),t=e[0],n=e[1];o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:active",function(e){n(e)});var r=function(t,n){return o("WAWebCmd").Cmd.openChatBottom({chat:t,chatEntryPoint:n})};return{openedChat:t,openChat:r}}l.useOpenChat=u}),98); __d("useWAWebSearchModel",["asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useCallback,c=s.useMemo,d=s.useState;function m(e){var t=c(e,[]),r=d(),o=r[0],a=r[1],i=u((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,n){var r=yield t.query(e,n);return a(r),r});return function(t,n){return e.apply(this,arguments)}})(),[t]),l=u(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e;if((o==null||(e=o.pagination)==null?void 0:e.next)!=null){var t=yield o.pagination.next();return a(t),t}}),[o]),s=u(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e;if((o==null||(e=o.pagination)==null?void 0:e.previous)!=null){var t=yield o.pagination.previous();return a(t),t}}),[o]);return{results:o,query:i,searchInstance:t,next:l,previous:s}}l.useSearchModel=m}),98); __d("WAWebLockedChatsDrawer.react",["fbt","WAWebChatCellV2.react","WAWebChatCollection","WAWebChatContextMenuItemBlock.react","WAWebChatContextMenuItemDelete.react","WAWebChatContextMenuItemMarkUnread.react","WAWebChatContextMenuItemMute.react","WAWebChatContextMenuItemUnlock.react","WAWebChatListMenuItem.react","WAWebChatLockWAMUtils","WAWebChatSearchModel","WAWebCmd","WAWebComposeBoxActions","WAWebCopyToClipboard","WAWebDevOnlyBadge.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebEmptyState.react","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebMiscGatingUtils","WAWebPrivacyNarrativeE2EMessage.react","WAWebSearchInput","WAWebStateUtils","WAWebTabOrder","WAWebWamEnumChatLockActionType","WAWebWamEnumLandingSurface","gkx","react","useWAWebChatLockRestriction","useWAWebListener","useWAWebOpenChat","useWAWebSearchModel"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useMemo,_=c.useRef,f=c.useState,g={surface:"settings-drawer"};function h(e){var t=o("WAWebStateUtils").unproxy(e),n=[d.jsx(r("WAWebChatContextMenuItemUnlock.react"),{chat:t},"unlock"),d.jsx(r("WAWebChatContextMenuItemDelete.react"),{chat:t},"delete"),d.jsx(r("WAWebChatContextMenuItemMute.react"),{chat:t},"mute"),d.jsx(r("WAWebChatContextMenuItemBlock.react"),{chat:t},"block"),d.jsx(r("WAWebChatContextMenuItemMarkUnread.react"),{chat:t},"mark_unread")];return r("gkx")("26258")||(n.push(d.jsx(r("WAWebDropdownItemSeparator.react"),{},"separator")),n.push(d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){o("WAWebCopyToClipboard").copyTextToClipboard(y(t))},children:d.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Chat ID"})},"copy_id"))),n}var y=function(t){return t.id.toString()},C=function(t,n){return t!=null&&n instanceof HTMLElement},b=o("WAWebFlatList.react").FlatListFactory();function v(e){var t,n=e.entryPoint,a=e.focusOnMount,i=a===void 0?!0:a,l=e.onClose,u=e.ref,c=e.unlockEntryPoint,v=o("useWAWebSearchModel").useSearchModel(function(){return new(o("WAWebChatSearchModel")).LockedChatSearch}),S=v.query,R=v.results,L=o("useWAWebOpenChat").useOpenChat(),E=L.openedChat,k=f(!1),I=k[0],T=k[1],D=R==null?void 0:R.query.searchText,x=D!=null&&D!=="";o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change add remove",function(){S(D!=null?D:"",R==null?void 0:R.query.options)});var $=o("useWAWebChatLockRestriction").useChatLockRestriction({id:"locked-chats-drawer",condition:"always",entryPoint:n,unlockEntryPoint:c,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER});m(function(){$&&o("WAWebChatLockWAMUtils").chatLockActionWAMEvent({actionEntryPoint:n,chatLockActionType:o("WAWebWamEnumChatLockActionType").CHAT_LOCK_ACTION_TYPE.FOLDER_OPEN})},[$,n]);var P=(t=R==null?void 0:R.results.map(function(e){return babelHelpers.extends({},o("WAWebChatListMenuItem.react").getFlatListConfigFromChat(e.data,{showCommunityInfo:!0}))}))!=null?t:[],N=s._(/*BTDS*/"Busca chats restringidos"),M=o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()?d.jsx(o("WAWebPrivacyNarrativeE2EMessage.react").E2eMessageChatList,{tabOrder:o("WAWebTabOrder").TAB_ORDER.DRAWER_FOOTER}):null,w=_(null),A=_(null),F=_(new Map),O=function(t,n){t?F.current.set(n,t):F.current.delete(n)},B=f({index:0,id:""}),W=B[0],q=B[1],U=function(t){if(P.length!==0){var e=W.index+(t==="up"?-1:1);e>=P.length?e=0:e<0&&(e=P.length-1);var n=P[e];if(n){var r=y(n.chat);q({id:r,index:e}),H==null||H(r)}}},V={up:function(){return U("up")},down:function(){return U("down")},enter:function(t){var e=t.target;if(!(W.index<0)){var n=F.current.get(W.id);if(n===e){var r=P[W.index].chat;r&&o("WAWebCmd").Cmd.openChatBottom({chat:r}).then(function(){window.setTimeout(function(){o("WAWebComposeBoxActions").ComposeBoxActions.focus(r)},200)})}}}},H=function(t){if(t!=null){var e=F.current.get(t);e&&r("WAWebFocusTracer").focus(e)}},G=function(t){var e=w.current,n=t.relatedTarget;!C(e,n)||e!=null&&e.contains(n)||I||q({index:-1,id:""})},z=function(t){var e=t.target,n=w.current;if(!(!C(n,e)||e!==n)){var r=0;if(E!=null){var o=P.findIndex(function(e){return y(e.chat)===y(E)});o!==-1&&(r=o)}var a=P[r];if(a){var i=y(a.chat);q({id:i,index:r}),H(i)}}},j=p(function(){return new(r("WAWebFlatListController"))},[]);return d.jsxs(r("WAWebDrawer.react"),{ref:u,theme:"archived",testid:void 0,tsNavigationData:g,children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Chats restringidos"),onBack:l,type:l==null?o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),d.jsx(r("WAWebDrawerBody.react"),{children:d.jsxs(o("WAWebSearchInput").DrawerSearchInput,{tabOrder:o("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT,onSearch:S,focusOnMount:i,placeholder:N,children:[P.length===0?d.jsx(o("WAWebEmptyState.react").Empty,{title:x?s._(/*BTDS*/"No se encontraron chats restringidos"):s._(/*BTDS*/"No tienes chats restringidos")}):d.jsx("div",{"data-testid":void 0,children:d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{ref:w,handlers:V,onFocus:z,onBlur:G,"data-tab":o("WAWebTabOrder").TAB_ORDER.DRAWER_CONTENT,children:d.jsx(r("WAWebFlatListContainer.react"),{flatListControllers:[j],className:"x1rife3k x1plvlek x1hm9lzh x1sa5p1d",children:d.jsx(b,{ref:A,data:P,renderItem:function(t){return d.jsx(r("WAWebChatCellV2.react"),{size:"large",ref:function(n){O(n,y(t.chat))},onClick:function(){o("WAWebCmd").Cmd.openChatBottom({chat:t.chat})},active:y(t.chat)===W.id,applyFocusStyles:!1,chat:t.chat,contextMenuItems:h(t.chat),forceActive:E!=null&&y(E)===y(t.chat),showCommunityInfo:!0,onContextMenuToggle:T},t.itemKey)},direction:"vertical",flatListController:j,disablePointerEventsOnScroll:!1})})})}),M]})})]})}v.displayName=v.name+" [from "+i.id+"]",l.default=v}),226); __d("useWAWebChatLockEvents",["WAWebChatLockUtils","WAWebCmd","react","useWAWebListener"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useState;function u(){var e=s(o("WAWebChatLockUtils").lockedChatsAreAccessible()),t=e[0],n=e[1];return o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"chatlock:lock",function(){n(!1)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"chatlock:unlock",function(){n(!0)}),t}l.useChatLockEvents=u}),98); __d("useWAWebChatLockSettings",["WAWebChatLockSettings","react","useWAWebListener"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useState,u=function(t){return{hideLockedChats:t.hideLockedChats===!0,hasSecretCode:t.secretCode!=null}};function c(){var e=o("WAWebChatLockSettings").getChatLockSettings(),t=s(function(){return u(e)}),n=t[0],r=t[1];return o("useWAWebListener").useListener(e,"change",function(){r(u(e))}),n}l.useChatLockSettings=c}),98); __d("WAWebChatLockedEntryPoint.react",["fbt","WAWebChatLockCodeModal.react","WAWebChatlistPanelDrawerButton.react","WAWebDrawerManager","WAWebKeyboardTabUtils","WAWebLockedChatsDrawer.react","WAWebTabOrder","WAWebWamEnumActionEntryPoint","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","WDSIconWdsIcChatlockOutline.react","WDSIconWdsIcChatlockUnlockedOutline.react","asyncToGeneratorRuntime","react","useWAWebChatLockEvents","useWAWebChatLockRestriction","useWAWebChatLockSettings"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onOpen,a=o("useWAWebChatLockEvents").useChatLockEvents(),i=o("useWAWebChatLockSettings").useChatLockSettings(),l=i.hideLockedChats;o("useWAWebChatLockRestriction").useChatLockRestriction({id:"chatlist-entry-point",condition:l?"always":"bypass",entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.UNKNOWN,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST});var c;a?c=r("WDSIconWdsIcChatlockUnlockedOutline.react"):c=r("WDSIconWdsIcChatlockOutline.react");var d=u.jsx(c,{}),m=s._(/*BTDS*/"Chats restringidos"),p=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebChatLockCodeModal.react").waitForChatlockSecretCode({unlockAppOnSuccess:!0,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST,entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST});e&&(o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(r("WAWebLockedChatsDrawer.react"),{onClose:o("WAWebDrawerManager").closeDrawerLeft,entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_LIST,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_LIST}),{focusType:o("WAWebKeyboardTabUtils").FocusType.CUSTOM}),t==null||t())});return function(){return e.apply(this,arguments)}})();return u.jsx(r("WAWebChatlistPanelDrawerButton.react"),{dataTab:o("WAWebTabOrder").TAB_ORDER.ARCHIVED_ENTRY_POINT,onClick:p,primary:m,icon:d,ariaLabel:m})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebChatlistPageNavigation.react",["WAWebABProps"],(function(t,n,r,o,a,i,l){"use strict";var e='[aria-label="Chat list"]',s='[role="row"]',u=e+" > "+s,c='[aria-selected="true"][tabindex="0"]',d="pane-side",m=8;function p(){var e=document.getElementById(d);if(e){var t=e.getBoundingClientRect(),n=t.top+m,r=t.bottom-m,o=r-n;return{top:n,bottom:r,height:o,element:e}}}function _(){var e=document.querySelector(c);if(!e)return-1;var t=e.closest(s);if(!t)return-1;var n=Array.from(document.querySelectorAll(u));return n.indexOf(t)}function f(e){var t=p();if(!t)return!1;var n=e.getBoundingClientRect(),r=t.top,o=t.bottom;return n.top>=r&&n.bottom<=o}function g(e){for(var t=e.direction,n=t===void 0?"down":t,r=e.nodes,o=e.start,a=o,i=o+(n==="down"?1:-1);(n==="down"?i=0)&&f(r[i]);n==="down"?++i:--i)a=i;return a}function h(e){for(var t=e.direction,n=t===void 0?"down":t,r=e.nodes,o=e.start,a=e.viewportHeight,i=0,l=o,s=n==="down"?1:-1,u=o+s;u>=0&&u=a)break}return l}function y(){var e=Array.from(document.querySelectorAll(u));return e}function C(e,t){t===void 0&&(t=!1);var n=p();if(n){var r=y();if(!(e<0||e>=r.length)){var o=r[e],a=o.getBoundingClientRect();if(t){var i=a.bottom-n.bottom;n.element.scrollTop+=i}else{var l=a.top-n.top;n.element.scrollTop+=l}}}}function b(e){var t=e.direction,n=e.event,r=e.selection,a=e.setSelectedChat;if(o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&r){var i=r.list;if(i.length!==0){var l=r.index;if(l!==-1){var s=p();if(s){n&&n.preventDefault();var c=Array.from(document.querySelectorAll(u)),d=_();if(d!==-1){var m=g({start:d,nodes:c,direction:t}),f=t==="down"?m>d:m0&&d.jsx(r("WAWebFacePile.react"),{idsOrUrls:S,chatWid:f==null?void 0:f.id,faceSize:20,keyName:"call-"+C})]}),L=d.jsx(o("WAWebButton.react").WAWebButtonPrimary,{onClick:function(){o("WAWebVoipStartCall").joinOngoingWAWebVoipGroupCallPN(C,f,y,b!=null&&b?o("WAWebWamEnumLobbyEntryPointType").LOBBY_ENTRY_POINT_TYPE.CALL_LINK_CALL_LOG:o("WAWebWamEnumLobbyEntryPointType").LOBBY_ENTRY_POINT_TYPE.CALL_LOG)},children:d.jsx("div",{className:"x13m54ha",children:s._(/*BTDS*/"Abrir")})});return d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:{enter:i,space:i},onFocus:_,ref:u,children:d.jsx(r("WAWebChatCell.react"),{theme:"voip-ongoing-call",idle:!0,contextEnabled:o("WAWebBoolFunc").returnFalse,active:p,image:d.jsx(r("WAWebCallLogEntryChatImage.react"),{msg:a}),primary:d.jsx(r("WAWebCallLogTitle.react"),{callLogMsg:a}),secondary:R,detail:L,onClick:i,testid:void 0,className:(c||(c=r("stylex")))(m.expandingCell,o("WAWebUISpacing").uiPadding.vert8)})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebChatAction.react",["WAWebEmojiText.react","WAWebFlex.react","WAWebFlexItem.react","WAWebFormatConfiguration","WAWebKeyboardHotKeys.react","WAWebKeyboardShortcut.react","WAWebStateUtils","WAWebUISpacing","WAWebUnstyledButton.react","react","useWAWebActiveSelection","useWAWebModelValues","useWAWebSearchQuery"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={button:{width:"xh8yej3",backgroundColor:"x1280gxy",$$css:!0},hover:{":hover_backgroundColor":"x17gydlx",$$css:!0},active:{backgroundColor:"x4wrhlh",$$css:!0},container:{height:"xdiz9cm",marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",$$css:!0},text:{fontSize:"x1f6kntn",$$css:!0},label:{textAlign:"x1yc453h",$$css:!0}};function c(e){var t=o("useWAWebModelValues").useModelValues(e.action,["id","name","label"]),n=e.onClick,a=e.searchQuery,i=r("useWAWebActiveSelection")(e.active,t.id),l=i[0],c=i[1],d=function(r){n(r,o("WAWebStateUtils").unproxy(t))},m=function(t){t.stopPropagation(),t.preventDefault()},p=o("useWAWebSearchQuery").useSearchText(a),_=o("WAWebFormatConfiguration").Search({terms:[p]}),f={enter:d,space:d};return s.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{ref:l,onFocus:m,handlers:f,children:s.jsx(r("WAWebUnstyledButton.react"),{xstyle:[u.button,c&&u.active,!c&&u.hover,o("WAWebUISpacing").uiPadding.start30],onClick:d,children:s.jsxs(o("WAWebFlex.react").FlexRow,{ref:l,xstyle:[u.container,o("WAWebUISpacing").uiPadding.end30],align:"center",justify:"all",children:[s.jsx(r("WAWebFlexItem.react"),{xstyle:[u.label,o("WAWebUISpacing").uiPadding.end10],children:s.jsx(o("WAWebEmojiText.react").EmojiText,{multiline:!0,text:t.label,formatters:_,xstyle:u.text})}),s.jsx("div",{children:s.jsx(o("WAWebKeyboardShortcut.react").KeyboardShortcut,{action:t.name,addModifiers:!0})})]})})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebChatMessage.react",["WATypeUtils","WAWebBizGatingUtils","WAWebBoolFunc","WAWebChatCell.react","WAWebChatGetters","WAWebChatLastMsg.react","WAWebChatMessageSearch","WAWebChatTimestamp.react","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebKeyboardHotKeys.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgType","WAWebName.react","WAWebStateUtils","react","useWAWebActiveSelection","useWAWebChatValues","useWAWebMsgValues","useWAWebSearchQuery"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t,n=e.chat,a=e.filterPreset,i=e.msg,l=e.onClick,u=e.searchQuery,c=e.testid,d=o("useWAWebMsgValues").useOptionalMsgValues(e.msg.id,[(t=o("WAWebMsgGetters")).getId,t.getIsSentByMe,t.getIsGroupMsg,t.getIsNotification,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebFrontendMsgGetters").getDir,o("WAWebFrontendMsgGetters").getRtl,t.getType,t.getLabels]),m=d!=null?d[0]:e.msg.id,p=d!=null?d[8]:[],_=o("useWAWebChatValues").useChatValues(e.chat.id,[o("WAWebChatGetters").getId,o("WAWebChatGetters").getIsUser,o("WAWebFrontendChatGetters").getContact,o("WAWebFrontendChatGetters").getFormattedTitle,o("WAWebFrontendChatGetters").getGroupMetadata,o("WAWebChatGetters").getIsNewsletter]),f=_[0],g=_[1],h=_[2],y=_[3],C=_[4],b=_[5],v=r("useWAWebActiveSelection")(e.active,m.toString()),S=v[0],R=v[1],L=o("useWAWebSearchQuery").useHighlightedText(u),E=function(t){if(o("WATypeUtils").isFunction(l)){var e,r,a=o("WAWebMsgCollection").MsgCollection.assertGet(m),i=o("WAWebChatMessageSearch").getSearchContext(n,a.id);((e=L==null?void 0:L.length)!=null?e:0)>0&&(i.highlightTerms=L),((r=i.msg)==null?void 0:r.type)!==o("WAWebMsgType").MSG_TYPE.ALBUM&&(i.msg=a),l(t,o("WAWebStateUtils").unproxy(n),i,a)}},k={enter:E,space:E},I=function(t){t.stopPropagation(),t.preventDefault()},T=s.jsx(r("WAWebChatTimestamp.react"),{msg:i}),D=s.jsx(r("WAWebChatLastMsg.react"),{msg:i.safe(),msgType:"FTSMessage",searchQuery:L});return s.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:k,onFocus:I,ref:S,children:s.jsx(r("WAWebChatCell.react"),{contextEnabled:o("WAWebBoolFunc").returnFalse,theme:e.theme==="chat-checkbox"?"cell-message-checkbox":"cell-message",active:R,primary:s.jsx(o("WAWebName.react").Name,{chat:n,labels:p,firstLabel:a==null?void 0:a.label,showLabelIcon:o("WAWebBizGatingUtils").canDisplayLabel(),titlify:!0,ellipsify:!0}),primaryDetail:T,secondary:D,onClick:E,testid:void 0})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebChatSetting.react",["WANullthrows","WAWebDrawerButton.react","WAWebEmojiText.react","WAWebFormatConfiguration","WAWebSettingsConst","WAWebSettingsStepIcon.react","WAWebStateUtils","react","useWAWebModelValues","useWAWebSearchQuery"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={text:{fontSize:"x1f6kntn",$$css:!0}};function c(e){var t=e.onClick,n=e.searchQuery,a=o("useWAWebModelValues").useModelValues(e.setting,["id","label"]),i=function(n){t(n,o("WAWebStateUtils").unproxy(a))},l=o("useWAWebSearchQuery").useSearchText(n),c=o("WAWebFormatConfiguration").Search({terms:[l]});return s.jsx(o("WAWebDrawerButton.react").DrawerButton,{icon:s.jsx(r("WAWebSettingsStepIcon.react"),{setting:r("WANullthrows")(o("WAWebSettingsConst").SettingsSteps.cast(a.id))}),id:a.id,active:e.active,onClick:i,theme:"chatlist",children:s.jsx(o("WAWebEmojiText.react").EmojiText,{text:a.label,formatters:c,xstyle:u.text})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebChatlistTypes",[],(function(t,n,r,o,a,i){var e=Object.freeze({SEC_CHATS:"SEC_CHATS",SEC_UNREAD_CHATS:"SEC_UNREAD_CHATS",SEC_CONTACTS:"SEC_CONTACTS",SEC_ACTIONS:"SEC_ACTIONS",SEC_DEBUG_COMMANDS:"SEC_DEBUG_COMMANDS",SEC_COMMUNITIES:"SEC_COMMUNITIES",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_FAVORITES:"SEC_CALLS_FAVORITES",SEC_UPCOMING_EVENTS:"SEC_UPCOMING_EVENTS",SEC_CALLS_ONGOING:"SEC_CALLS_ONGOING",SEC_CALLS_RECENT:"SEC_CALLS_RECENT",SEC_CALLS_SEARCH_RESULTS:"SEC_CALLS_SEARCH_RESULTS",SEC_CALLS_SEARCH_GROUPS:"SEC_CALLS_SEARCH_GROUPS",SEC_META_AI_TYPEAHEAD_SUGGESTIONS:"SEC_META_AI_TYPEAHEAD_SUGGESTIONS"}),l=Object.freeze({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_ONGOING:"ROW_CALL_ONGOING",ROW_CALL_LOG:"ROW_CALL_LOG",ROW_CALLS_FAVORITE:"ROW_CALLS_FAVORITE",ROW_CALLS_ADD_FAVORITE:"ROW_CALLS_ADD_FAVORITE",ROW_CALLS_VIEW_ALL_FAVORITES:"ROW_CALLS_VIEW_ALL_FAVORITES",ROW_UPCOMING_EVENT:"ROW_UPCOMING_EVENT",ROW_META_AI_TYPEAHEAD_SUGGESTIONS:"ROW_META_AI_TYPEAHEAD_SUGGESTIONS",ROW_UPCOMING_EVENTS_VIEW_ALL:"ROW_UPCOMING_EVENTS_VIEW_ALL"});i.WAWebChatlistSection=e,i.WAWebChatlistRow=l}),66); __d("WAWebChatlistWrappedItem.react",["fbt","WAWebChatCheckboxWrapper.react","WAWebChatModel","WAWebErrorBoundary.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.children,n=e.mode,a=e.model,i=e.multiSelection,l=e.onArrowKeyInChatItem,c=e.onSelect,d=e.selectableState,m=e.setCheckboxWrapperRef;if(!d)return u.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list-item",children:t});var p="selectable-chat-list-item-"+n,_=a instanceof o("WAWebChatModel").Chat?a.formattedTitle:null;return u.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:p,children:u.jsx(r("WAWebChatCheckboxWrapper.react"),{ref:function(t){return void m(a.id.toString(),t)},model:a,theme:"chat-checkbox",selectableState:d,multiSelection:i,onSelect:c,onArrowKeyLeftRight:function(){return l(a.id.toString())},checkboxAriaLabel:s._(/*BTDS*/"Seleccionar chat {chat-name}",[s._param("chat-name",_)]),role:"gridcell",children:t})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebCommonGroupSubtitle.react",["fbt","WAWebChatContactUtils","WAWebContactGetters","WAWebElevatedPushNamesFlag","WAWebEmojiText.react","WAWebFbtIntlList","WAWebFormatConfiguration","WAWebFrontendContactGetters","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e,t){t===void 0&&(t={});var n=t,a=n.formatString,i=a===void 0?"":a,l=r("WAWebFbtIntlList")(e.map(function(e){var t=o("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(e),n=t?o("WAWebChatContactUtils").getFormattedNotifyName(o("WAWebContactGetters").getNotifyName(e)).toString():o("WAWebFrontendContactGetters").getFormattedName(e);return""+i+n+i}),r("WAWebFbtIntlList").CONJUNCTIONS.AND,r("WAWebFbtIntlList").DELIMITERS.COMMA);return s._(/*BTDS*/"_j{\"*\":\"{contacts-list} tambi\\u00e9n est\\u00e1n en este grupo.\",\"_1\":\"{contacts-list} tambi\\u00e9n est\\u00e1 en este grupo.\"}",[s._plural(e.length),s._param("contacts-list",l)])}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.commonGroup,n=e.searchQuery,r=t[1],a=r.slice(0,2),i=c(a,{formatString:"*"}),l=c(a).toString(),s=o("WAWebFormatConfiguration").Search({terms:[n==null?void 0:n.trimmed()]});return u.jsx(o("WAWebEmojiText.react").EmojiText,{text:i,formatters:s,titlify:!0,title:l,direction:"auto"})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebVoipCallButtonsLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebCallButtons.react").__setRef("WAWebVoipCallButtonsLoadable").load();return e.WAWebCallButtons}),"WAWebCallButtonsLoadable"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(s.Fragment,{})}});l.requireBundle=u,l.WAWebCallButtonsLoadable=c}),98); __d("WAWebFavoriteCell.react",["WAWebBoolFunc","WAWebCallButtonsSurface","WAWebChatCell.react","WAWebDetailImage.react","WAWebFlexBox.react","WAWebKeyboardHotKeys.react","WAWebName.react","WAWebVoipCallButtonsLoadable","WAWebVoipGatingUtils","WAWebWamEnumCallFromUi","WAWebWamEnumLobbyEntryPointType","react","useWAWebActiveSelection"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react"));function u(e){var t=e.active,n=e.chat,a=e.disableHover,i=a===void 0?!1:a,l=e.isEditing,u=l===void 0?!1:l,c=e.onClick,d=e.photoSize,m=d===void 0?49:d,p=e.testid,_=r("useWAWebActiveSelection")(t,n.id.toString()),f=_[0],g=_[1],h=function(t){t.stopPropagation(),t.preventDefault()},y=function(){c&&c()},C={enter:y,space:y},b=!u&&o("WAWebVoipGatingUtils").isCallingEnabled()?s.jsx(o("WAWebFlexBox.react").FlexRow,{children:s.jsx(o("WAWebVoipCallButtonsLoadable").WAWebCallButtonsLoadable,{chat:n,surface:o("WAWebCallButtonsSurface").WAWebCallButtonsSurface.FavoritesHeader,callFromUI:o("WAWebWamEnumCallFromUi").CALL_FROM_UI.FAVORITES,lobbyEntryPoint:o("WAWebWamEnumLobbyEntryPointType").LOBBY_ENTRY_POINT_TYPE.NOT_OPENED})}):null;return s.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:C,onFocus:h,ref:f,children:s.jsx(r("WAWebChatCell.react"),{contextEnabled:o("WAWebBoolFunc").returnFalse,active:g,idle:i,image:s.jsx(o("WAWebDetailImage.react").DetailImage,{id:n.id,size:m}),primary:s.jsx(o("WAWebName.react").Name,{chat:n,titlify:!0,ellipsify:!0}),secondary:null,detail:b,onClick:y,testid:void 0})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebUpcomingEventCell.react",["fbt","WALogger","WATimeUtils","WAWebABProps","WAWebApiParse","WAWebBoolFunc","WAWebButton.react","WAWebCallLogEntryChatImage.react","WAWebChatCell.react","WAWebEmojiText.react","WAWebEventResponseCollection","WAWebFlex.react","WAWebFormatEventDateString","WAWebFrontendMsgGetters","WAWebKeyboardHotKeys.react","WAWebMsgGetters","WAWebProtobufsE2E.pb","WAWebTag.react","WAWebText.react","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebVoipGatingUtils","WAWebWamEnumLobbyEntryPointType","WDSFontTokenStyles","cr:17104","cr:9382","react","stylex","useWAWebActiveSelection","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m,p=d||(d=r("react")),_=(e=n("cr:17104"))!=null?e:{},f=_.handleClickCallLink,g={expandingCell:{height:"xdmi676",minHeight:"x1qafhyn",$$css:!0}};function h(e){var t,a,i=e.eventMessage,l=e.lobbyEntryPointType,d=e.onClick,_=r("useWAWebActiveSelection")(e.active,i.id.toString()),h=_[0],y=_[1],C=function(t){t.stopPropagation(),t.preventDefault()},b=o("WAWebFrontendMsgGetters").getChat(i),v=o("useWAWebMsgValues").useMsgValues(i.id,[(a=o("WAWebMsgGetters")).getId,a.getEventName,a.getEventStartTime,a.getEventEndTime,a.getEventJoinLink,a.getEventIsScheduledCall]),S=v[0],R=v[1],L=v[2],E=v[3],k=v[4],I=v[5],T=o("WAWebFormatEventDateString").getEventDateStringFor(L,E),D=function(t){try{var e,n=o("WAWebEventResponseCollection").EventResponseCollection.getModelsArray(),r=n.filter(function(e){var n;return(n=e.parentMsgKey)==null?void 0:n.equals(t.id)}),a=r.find(function(e){return o("WAWebUserPrefsMeUser").isMeAccount(e.sender)});return(e=a==null?void 0:a.eventResponse)!=null?e:o("WAWebProtobufsE2E.pb").Message$EventResponseMessage$EventResponseType.UNKNOWN}catch(e){return o("WAWebProtobufsE2E.pb").Message$EventResponseMessage$EventResponseType.UNKNOWN}},x=function(){var e=o("WAWebMsgGetters").getIsSentByMe(i);if(e)return{text:s._(/*BTDS*/"Creador"),theme:o("WAWebTag.react").TagTheme.Primary};var t=D(i);return t===o("WAWebProtobufsE2E.pb").Message$EventResponseMessage$EventResponseType.GOING?{text:s._(/*BTDS*/"Asistir\u00e9"),theme:o("WAWebTag.react").TagTheme.Primary}:t===o("WAWebProtobufsE2E.pb").Message$EventResponseMessage$EventResponseType.MAYBE?{text:s._(/*BTDS*/"Tal vez"),theme:o("WAWebTag.react").TagTheme.Secondary}:t===o("WAWebProtobufsE2E.pb").Message$EventResponseMessage$EventResponseType.NOT_GOING?{text:s._(/*BTDS*/"No asistir\u00e9"),theme:o("WAWebTag.react").TagTheme.Error}:{text:s._(/*BTDS*/"Sin respuesta"),theme:o("WAWebTag.react").TagTheme.Secondary}},$=o("WATimeUtils").unixTime(),P=(t=o("WAWebABProps").getABPropConfigValue("schedule_call_show_join_button_time_interval_mins"))!=null?t:15,N=L!=null&&$>=L-P*60,M=E!=null&&$>E,w=D(i),A=w===o("WAWebProtobufsE2E.pb").Message$EventResponseMessage$EventResponseType.NOT_GOING,F=N&&!M&&!A&&(k!=null||I),O=function(t){if(t.stopPropagation(),t.preventDefault(),!!F&&k!=null)try{o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["UpcomingEventCell: handleJoinEvent: joining call link ",""])),k);var e=o("WAWebApiParse").parseAPICmd(k);if(e.resultType==="CALL_LINK"){var r=f;r==null&&n("cr:9382")!=null&&o("WAWebVoipGatingUtils").callLinksEnabled()&&(r=n("cr:9382").handleClickCallLink),r==null||r(e,l!=null?l:o("WAWebWamEnumLobbyEntryPointType").LOBBY_ENTRY_POINT_TYPE.UPCOMING_SCHEDULE_CALL)}}catch(e){o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["voip: UpcomingEventCell: Failed to join event via call link"]))).sendLogs("voip-upcoming-event-cell-join-call-link-error")}},B=p.jsx(o("WAWebEmojiText.react").EmojiText,{text:R,direction:"auto",ellipsify:!0,xstyle:o("WDSFontTokenStyles").WDSFontTokenStyles.Body1Emphasized}),W=x(),q=p.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:4,children:[p.jsx(o("WAWebText.react").WAWebTextMuted,{children:p.jsx(o("WAWebEmojiText.react").EmojiText,{text:b.formattedTitle,direction:"auto",ellipsify:!0})}),p.jsx(o("WAWebText.react").WAWebTextSmall,{children:T})]}),U=F?p.jsx(o("WAWebButton.react").WAWebButtonPrimary,{onClick:O,children:p.jsx("div",{className:"x13m54ha",children:s._(/*BTDS*/"Unirme")})}):p.jsx(o("WAWebTag.react").Tag,{theme:W.theme,testid:void 0,children:W.text});return p.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:{enter:d,space:d},onFocus:C,ref:h,children:p.jsx(r("WAWebChatCell.react"),{contextEnabled:o("WAWebBoolFunc").returnFalse,active:y,image:p.jsx(r("WAWebCallLogEntryChatImage.react"),{msg:i}),primary:B,secondary:q,detail:U,onClick:d,testid:void 0,className:(m||(m=r("stylex")))(g.expandingCell,o("WAWebUISpacing").uiPadding.vert8)})})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebViewAllButton.react",["fbt","WAWebBoolFunc","WAWebChatCell.react","WAWebKeyboardHotKeys.react","WAWebVoipCallsTabPanelManager","react","vulture"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.ariaLabel,n=e.onAction,a=e.testId;return u.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:{enter:n,space:n},"aria-label":t.toString(),role:"button","data-testid":void 0,children:u.jsx(r("WAWebChatCell.react"),{primary:s._(/*BTDS*/"Ver todo"),contextEnabled:o("WAWebBoolFunc").returnFalse,onClick:n,theme:"view-all",className:"x1rgrh6f x1v5yvga x1iikomf"})})}c.displayName=c.name+" [from "+i.id+"]";function d(){var e=function(){r("WAWebVoipCallsTabPanelManager").trigger("openFavoritesDrawer")},t=s._(/*BTDS*/"Ver todos los favoritos");return u.jsx(c,{ariaLabel:t,onAction:e,testId:"view-all-favorites-cell"})}d.displayName=d.name+" [from "+i.id+"]";function m(){r("vulture")("7hgC7mjcgj77ymPxbHQFgKYoPPs=");var e=function(){r("WAWebVoipCallsTabPanelManager").trigger("openUpcomingEventsDrawer")},t=s._(/*BTDS*/"Ver todos los pr\u00f3ximos eventos");return u.jsx(c,{ariaLabel:t,onAction:e,testId:"view-all-upcoming-events-cell"})}m.displayName=m.name+" [from "+i.id+"]",l.ViewAllButton=c,l.ViewAllFavoritesButton=d,l.ViewAllUpcomingEventsButton=m}),226); __d("WAWebChatlistItem.react",["fbt","WALogger","WAWebABProps","WAWebAddFavoriteButton.react","WAWebCallLogEntryCell.react","WAWebCallLogJoinOngoingCell.react","WAWebChat.react","WAWebChatAction.react","WAWebChatContact.react","WAWebChatEntryPoint","WAWebChatMessage.react","WAWebChatSetting.react","WAWebChatlistTypes","WAWebChatlistWrappedItem.react","WAWebCmd","WAWebCommonGroupSubtitle.react","WAWebCommunityCells.react","WAWebContactGetters","WAWebFavoriteCell.react","WAWebFlatList.react","WAWebFrontendMsgGetters","WAWebGroupInfoSeparator.react","WAWebMetaAISuggestion.react","WAWebNoop","WAWebPreCallUserJourneyLogger","WAWebSectionHeader.react","WAWebUpcomingEventCell.react","WAWebViewAllButton.react","WAWebVoipGatingUtils","WAWebVoipOngoingCallCollection","WAWebWamEnumSubSurface","cr:104","cr:5736","gkx","nullthrows","react"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=o("WAWebChat.react").ChatFactory(),p=o("WAWebChatContact.react").ContactFactory(),_={unreadChatsHeader:{paddingInlineStart:"xbmws1g",$$css:!0},sectionHeader:{fontWeight:"x1s688f",color:"xhslqc4",$$css:!0}};function f(t){var a=t.createPreventAutoReadProps,i=t.data,l=t.filterPreset,c=t.getDetailImageSize,f=t.handleArrowKeyInChatItem,h=t.handleChatClick,y=t.handleContactItemClick,C=t.handleKeptMessageClick,b=t.handleMultiSelect,v=t.handleMutedChatsBarClick,S=t.mode,R=t.multiSelection,L=t.mutedChats,E=t.mutedChatsCollapsed,k=t.onItemClick,I=t.onStartMultiSelect,T=t.searchQuery,D=t.selectableState,x=t.selection,$=t.setCheckboxWrapperRef,P=t.upcomingEvents,N={mode:S,selectableState:D,multiSelection:R,onSelect:b,onArrowKeyInChatItem:f,setCheckboxWrapperRef:$};switch(i.type){case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CHATS:return d.jsx(g,{header:s._(/*BTDS*/"Chats")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UNREAD_CHATS:return d.jsx(g,{xstyle:_.unreadChatsHeader,header:s._(/*BTDS*/"Filtrado por No le\u00eddos")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CONTACTS:return d.jsx(g,{header:s._(/*BTDS*/"Contactos")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ACTIONS:return d.jsx(g,{header:s._(/*BTDS*/"Acciones")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_DEBUG_COMMANDS:return d.jsx(g,{header:"Debug Commands"});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMUNITIES:return d.jsx(g,{header:s._(/*BTDS*/"Comunidades")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_SETTINGS:return d.jsx(g,{header:s._(/*BTDS*/"Ajustes")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMON_GROUPS:return d.jsx(g,{header:s._(/*BTDS*/"Grupos en com\u00fan")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_META_AI_TYPEAHEAD_SUGGESTIONS:return d.jsx(g,{header:s._(/*BTDS*/"Preg\u00fantale a Meta AI")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_STARRED:return d.jsx(g,{testid:void 0,header:s._(/*BTDS*/"Mensajes destacados")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_KEPT:return d.jsx(g,{testid:void 0,header:s._(/*BTDS*/"Mensajes conservados")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MSG:return d.jsx(g,{header:s._(/*BTDS*/"Mensajes")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_FAVORITES:return d.jsxs(d.Fragment,{children:[(P.length>0||o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled())&&d.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),d.jsx(g,{header:s._(/*BTDS*/"Favoritos")})]});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UPCOMING_EVENTS:return d.jsxs(d.Fragment,{children:[o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled()&&d.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),d.jsx(g,{header:s._(/*BTDS*/"Pr\u00f3ximamente")})]});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_ONGOING:return d.jsx(g,{header:s._(/*BTDS*/"En curso")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_RECENT:return d.jsxs(d.Fragment,{children:[d.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),d.jsx(g,{header:s._(/*BTDS*/"Recientes")})]});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_SEARCH_GROUPS:return d.jsx(g,{header:s._(/*BTDS*/"Grupos")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_SEARCH_RESULTS:return d.jsx(g,{header:s._(/*BTDS*/"Llamadas")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MUTED_CHATS:return n("cr:5736")!=null?d.jsx(n("cr:5736"),{mutedChats:L,mutedChatsCollapsed:E,onClick:v}):null;case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ASSIGNED_TO_YOU:return d.jsx(g,{header:s._(/*BTDS*/"ASIGNADOS A TI")});case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS:{var M=i.data,w=i.index;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:M,children:d.jsx(m,babelHelpers.extends({chat:M,mode:o("WAWebChat.react").Mode.LAST,searchQuery:T,filterPreset:l,onClick:h,mouseDownAsClick:!0,selectableState:D,multiSelection:R,onStartMultiSelect:I,active:x,ephemeralIcon:"chat-list",showStatusRingAroundProfilePhoto:!0,index:w,photoSize:c(),showCommunityInfo:!0,skipCheckMark:!o("WAWebABProps").getABPropConfigValue("verified_badge_in_chats_list_enabled"),handleArrowKeyInChatItem:f},a(M)))}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CONTACTS:{var A=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:A,children:d.jsx(p,{contact:A,active:x,searchQuery:T,onClick:y,mouseDownAsClick:!0,waitIdle:!0,showStatusRingAroundProfilePhoto:!0,photoSize:c(),hideStatus:o("WAWebContactGetters").getIsMe(A),showMessageYourselfName:o("WAWebContactGetters").getIsMe(A)})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_ACTIONS:{var F=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:F,children:d.jsx(r("WAWebChatAction.react"),{action:F,active:x,onClick:k,searchQuery:T})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_DEBUG_COMMANDS:{var O=i.data;if(!r("gkx")("26258")&&n("cr:104")!=null)return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:O,children:d.jsx(n("cr:104"),{active:x,debugCommand:O,onClick:k,searchQuery:T})}));throw o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebChatlistItem with type ROW_DEBUG_COMMANDS"]))),new(o("WAWebFlatList.react")).UnknownDataError(i)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMUNITIES:{var B=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:B,children:d.jsx(o("WAWebCommunityCells.react").CommunityCell,{active:x,parentGroupMetadata:r("nullthrows")(B.groupMetadata),parentGroupChat:B,onClick:function(t){return k==null?void 0:k(t,B)},inCommandPalette:!0})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_SETTINGS:{var W=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:W,children:d.jsx(r("WAWebChatSetting.react"),{active:x,onClick:k,searchQuery:T,setting:W})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMON_GROUPS:{var q=i.data,U=q[0],V=d.jsx(r("WAWebCommonGroupSubtitle.react"),{commonGroup:q,searchQuery:T});return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:U,children:d.jsx(m,babelHelpers.extends({chat:U,secondary:V,mode:o("WAWebChat.react").Mode.LAST,searchQuery:T,filterPreset:l,onClick:k,mouseDownAsClick:!0,selectableState:D,multiSelection:R,onStartMultiSelect:I,active:x},a(U)))}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_META_AI_TYPEAHEAD_SUGGESTIONS:{var H=i.data;return d.jsx(r("WAWebMetaAISuggestion.react"),{active:x,suggestion:H,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.MetaAITypeaheadSuggestion,onClick:k})}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_STARRED:{var G=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:G,children:d.jsx(r("WAWebChatMessage.react"),{msg:G,chat:o("WAWebFrontendMsgGetters").getChat(G),searchQuery:T,filterPreset:l,onClick:k,active:x,testid:void 0})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_KEPT:{var z=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:z,children:d.jsx(r("WAWebChatMessage.react"),{msg:z,chat:o("WAWebFrontendMsgGetters").getChat(z),searchQuery:T,filterPreset:l,onClick:C,active:x,testid:void 0})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_MSG:{var j=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:j,children:d.jsx(r("WAWebChatMessage.react"),{msg:j,chat:o("WAWebFrontendMsgGetters").getChat(j),searchQuery:T,filterPreset:l,onClick:k,active:x,testid:void 0})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_ONGOING:{var K=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:K,children:d.jsx(r("WAWebCallLogJoinOngoingCell.react"),{callLogMsg:K,active:x,onClick:function(){return x==null?void 0:x.setVal(K)}})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_LOG:{var Q=i.data,X=Q[Q.length-1];return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:X,children:d.jsx(o("WAWebCallLogEntryCell.react").CallLogEntryCell,{mergedMsgs:Q,searchQuery:T,filterPreset:l,onClick:function(){return x==null?void 0:x.setVal(X)},active:x,testidPrefix:"chatlist-message"})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_FAVORITE:{var Y=i.data;return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:Y,children:d.jsx(r("WAWebFavoriteCell.react"),{active:x,chat:Y,onClick:r("WAWebNoop"),photoSize:c(),testid:void 0})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_ADD_FAVORITE:return d.jsx(r("WAWebAddFavoriteButton.react"),{});case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_VIEW_ALL_FAVORITES:return d.jsx(o("WAWebViewAllButton.react").ViewAllFavoritesButton,{});case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENT:{var J=i.data,Z=function(){var e=new(o("WAWebPreCallUserJourneyLogger")).PreCallUserJourneyLogger;e.clickEventDetail(o("WAWebWamEnumSubSurface").SUB_SURFACE.NONE);var t=o("WAWebFrontendMsgGetters").getChat(J),n=o("WAWebFrontendMsgGetters").getAsEventCreation(J);n!=null&&o("WAWebCmd").Cmd.openEventInfoDrawer(t,n)};return d.jsx(r("WAWebChatlistWrappedItem.react"),babelHelpers.extends({},N,{model:J,children:d.jsx(r("WAWebUpcomingEventCell.react"),{eventMessage:J,active:x,onClick:Z})}))}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENTS_VIEW_ALL:return d.jsx(o("WAWebViewAllButton.react").ViewAllUpcomingEventsButton,{});default:throw o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebChatlistItem with type default"]))),new(o("WAWebFlatList.react")).UnknownDataError(i)}}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.header,n=e.testid,o=e.xstyle;return d.jsx(r("WAWebSectionHeader.react"),{testid:void 0,header:t,xstyle:[_.sectionHeader,o],uppercase:!1})}g.displayName=g.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebFavoritesUtils",["WAWebChatCollection","WAWebFavoriteCollection"],(function(t,n,r,o,a,i,l){"use strict";function e(){return o("WAWebFavoriteCollection").FavoriteCollection.toArray().map(function(e){return o("WAWebChatCollection").ChatCollection.get(e.id)}).filter(function(e){return e!=null}).sort(function(e,t){var n,r,a=o("WAWebFavoriteCollection").FavoriteCollection.get(e.id.toString()),i=o("WAWebFavoriteCollection").FavoriteCollection.get(t.id.toString());return((n=a==null?void 0:a.orderIndex)!=null?n:0)-((r=i==null?void 0:i.orderIndex)!=null?r:0)})}function s(t){return t===void 0&&(t=3),e().slice(0,t)}l.getFavoriteChats=e,l.getFavoriteChatsLimited=s}),98); __d("WAWebChatlistFunctional.react",["fbt","Promise","WAWebABProps","WAWebCallLogUtils","WAWebChatCollection","WAWebChatCommunityUtils","WAWebChatGetters","WAWebChatLisFunctionalPageNav.react","WAWebChatLockUtils","WAWebChatModel","WAWebChatPreferenceCollection","WAWebChatSearchFilters","WAWebChatlistItem.react","WAWebChatlistPanelMode","WAWebChatlistTypes","WAWebCmd","WAWebCommunityGatingUtils","WAWebComposeBoxActions","WAWebDisappearingMessageKeepInChatWamEvent","WAWebEnvironment","WAWebEventUtils","WAWebFavoriteCollection","WAWebFavoritesUtils","WAWebFlatList.react","WAWebFocusTracer","WAWebFrontendMsgGetters","WAWebInboxFiltersGatingUtils","WAWebKeyboardHotKeys.react","WAWebKeyboardTabUtils","WAWebMsgCollection","WAWebMsgGetters","WAWebMuteCollection","WAWebMuteGetters","WAWebNoop","WAWebTabOrder","WAWebTextSizeUtils","WAWebTimeSpentLoggingNavigation","WAWebUim","WAWebUimUie.react","WAWebUseIsKeyboardUser","WAWebVoipCallsTabPanelManager","WAWebVoipGatingUtils","WAWebVoipOngoingCallCollection","WAWebWamEnumKicActionNameType","asyncToGeneratorRuntime","gkx","nullthrows","react","useWAWebDebouncedCallback","useWAWebForceUpdate","useWAWebListener","useWAWebPrevious"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useEffect,f=d.useImperativeHandle,g=d.useMemo,h=d.useRef,y=d.useState,C=30,b={flatListViewport:{paddingTop:"x16ovd2e",$$css:!0}},v=o("WAWebFlatList.react").FlatListFactory(),S=[],R=[];function L(t){var a,i=t.actions,l=t.aiSuggestions,u=t.chats,c=u===void 0?S:u,d=t.commonGroups,L=d===void 0?R:d,E=t.communities,k=t.contacts,I=t.debugCommands,T=t.filterPreset,D=t.flatListController,x=t.ftsResult,$=t.isSearching,P=t.isSearchInputFocused,N=t.messages,M=t.mode,w=t.multiSelection,A=t.onFocusFilters,F=t.onFocusSearch,O=t.onItemClick,B=t.onStartMultiSelect,W=t.ref,q=t.searchQuery,U=t.selectableState,V=t.selection,H=t.settings,G=h(null),z=h(!0),j=h(null),K=h(null),Q=h(null),X=h(null),Y=h(new Map),J=h(!1),Z=y([]),ee=Z[0],te=Z[1],ne=y([]),re=ne[0],oe=ne[1],ae=y(!1),ie=ae[0],le=ae[1],se=y(o("WAWebChatCollection").ChatCollection.getActive()),ue=se[0],ce=se[1],de=y(V==null?void 0:V.getVal()),me=de[0],pe=de[1],_e=y(0),fe=_e[0],ge=_e[1],he=g(function(){return(x!=null?x:[]).filter(function(e){return o("WAWebChatLockUtils").chatIsAccessible(o("WAWebFrontendMsgGetters").getChat(e))})},[x]),ye=g(function(){return he.filter(function(e){var t=e.star;return t})},[he]),Ce=g(function(){return he.filter(function(e){return o("WAWebMsgGetters").getIsKept(e)})},[he]),be=g(function(){return he.filter(function(e){return!e.star&&!o("WAWebMsgGetters").getIsKept(e)})},[he]),ve=g(function(){return r("gkx")("26258")?[]:(c!=null?c:[]).filter(function(e){var t=e.mute;return o("WAWebMuteGetters").getIsMuted(t)})},[c,fe]),Se=y(r("gkx")("26258")?!1:o("WAWebMuteCollection").MuteCollection.getCollapseMuted()),Re=Se[0],Le=Se[1],Ee=y(!0),ke=Ee[0],Ie=Ee[1],Te=h(0),De=r("WAWebUseIsKeyboardUser")(),xe=De.isKeyboardUser;_(function(){return Te.current=o("WAWebTimeSpentLoggingNavigation").tsNavigationEnter({surface:"chat-list"}),V==null||V.init(it()),function(){o("WAWebTimeSpentLoggingNavigation").tsNavigationExit(Te.current)}},[]),o("useWAWebListener").useListener(r("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(e){o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&e&&(J.current=!0)}),o("useWAWebListener").useListener(r("WAWebChatPreferenceCollection"),"wallpaper_drawer_close",function(e){o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&e&&(J.current=!1)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"focus_next_chat",function(e){(!o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||!J.current)&&qe(null,!0,e)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"focus_prev_chat",function(e){(!o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||!J.current)&&We(null,!0,e)});var $e=p(function(e){e===void 0&&(e=!1);var t=V==null?void 0:V.getVal();t!=null&&(t instanceof o("WAWebChatModel").Chat&&t!==o("WAWebChatCollection").ChatCollection.getActive()?o("WAWebCmd").Cmd.openChatFromUnread({chat:t}).then(function(n){n&&e===!0&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(t)}):e===!0&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(t))},[V]),Pe=p(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!o("WAWebABProps").getABPropConfigValue("enable_upcoming_schedule_call_events_in_calls_tab")){te([]),oe([]);return}var t=yield(e||(e=n("Promise"))).all([o("WAWebEventUtils").getUpcomingEvents(),o("WAWebEventUtils").getUpcomingEventsForCallsTab()]),r=t[0],a=t[1],i=a.slice(0,1);te(i),oe(r)}),[]),Ne=r("useWAWebDebouncedCallback")(function(){var e;$e((e=G.current)!=null?e:!1),G.current=!1},200),Me=p(function(){X.current&&K.current&&r("WAWebFocusTracer").focus(K.current)},[]),we=p(function(){r("gkx")("26258")||Ie(function(e){return!e})},[]),Ae=p(function(e,t){var n=e.nativeEvent;n instanceof MouseEvent&&o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&(pe(null),V.unset()),O==null||O(e,t)},[V,O]),Fe=p(function(e){var t=V==null?void 0:V.getVal();e===t&&(V==null||V.unset()),ce(null),pe(e)},[V]),Oe=p(function(e){Ne.cancel(),V==null||V.setVal(e,!1),j.current=e},[Ne,V]),Be=p(function(e){e===void 0&&(e=100),X.current&&V&&V.index>=0&&X.current.scrollIntoViewIfNeeded(V.index,e)},[V]),We=p(function(e,t,n){e&&e.preventDefault();var a=V==null?void 0:V.prev();a!=null&&a>-1&&(V==null||V.setPrev(!0),G.current=n,Be(),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?pe(V==null?void 0:V.getVal()):M===r("WAWebChatlistPanelMode").Chatlist&&Ne())},[V,Be,M,Ne]),qe=p(function(e,t,n){e&&e.preventDefault();var a=V==null?void 0:V.next();(V==null?void 0:V.index)!==a&&(V==null||V.setNext(!0),G.current=n,Be(),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?pe(V==null?void 0:V.getVal()):M===r("WAWebChatlistPanelMode").Chatlist&&Ne())},[V,Be,M,Ne]),Ue=p(function(e,t,n){e&&e.preventDefault(),(V==null?void 0:V.index)!==t&&(V==null||V.set(t,!0),G.current=n,Be(),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?pe(V==null?void 0:V.getVal()):M===r("WAWebChatlistPanelMode").Chatlist&&Ne())},[V,Be,M,Ne]),Ve=p(function(){var e=Q.current;e&&e.activate(),V==null||V.setFirst(),Be(0),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?pe(V==null?void 0:V.getVal()):M===r("WAWebChatlistPanelMode").Chatlist&&Ne(),M===r("WAWebChatlistPanelMode").CommandPalette&&qe(void 0)},[V,Be,M,Ne,qe]),He=o("WAWebChatLisFunctionalPageNav.react").usePageNavigation({selection:V,setSelectedChat:pe}),Ge=He.handlePageDown,ze=He.handlePageUp,je=p(function(){var e=ue;if(!e){Ve();return}var t=V==null?void 0:V.list.indexOf(e);if(t==null||t<0){Ve();return}var n=Q.current;n&&n.activate(),V==null||V.set(t,!0),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&pe(V==null?void 0:V.getVal()),Be()},[ue,Ve,V,Be]),Ke=p(function(e){e.target===K.current&&z.current&&xe&&(V&&V.index<0?o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?je():Ve():(Q.current&&Q.current.activate(),V==null||V.reset(!0)),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&pe(V==null?void 0:V.getVal()))},[V,Ve,je,xe]),Qe=p(function(){z.current=!0},[]),Xe=p(function(){z.current=!1},[]),Ye=p(function(e){le(e)},[]),Je=p(function(e){if(o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")){var t=K.current,n=e.relatedTarget;!n||!t||!(n instanceof HTMLElement)||t.contains(n)||ie||(V==null||V.set(-1,!1),pe(null))}},[ie,V]),Ze=p(function(e){var t=o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread"),n=void 0,a="DEFAULT",i=r("WAWebNoop");if(!t)return{forceActive:n,activeStyleType:a,onContextMenuChange:i};var l=e===ue,s=e===me;return l&&s?(n=!0,a="BOTH"):l?(n=!0,a="DEFAULT"):s&&(a="BORDER"),i=Ye,{forceActive:n,activeStyleType:a,onContextMenuChange:i}},[ue,me,Ye]);o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"update_chatlist_selection",Oe),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"open_chat",function(e){var t=e.chat;ce(t)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"close_chat",function(e){Fe(e),xe&&(V==null||V.setVal(e,!0),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&(pe(e),ce(null)))}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"archive_chat",function(e){e===ue&&ce(null)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"scroll_to_active_chat",function(){Be(0)}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"scroll_chat_list_to_top",function(){X.current&&X.current.scrollIntoViewIfNeeded(0,0)}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:muteExpiration",function(){r("gkx")("26258")||ge(function(e){return e+1})}),o("useWAWebListener").useListener(o("WAWebMuteCollection").MuteCollection,"change:collapseMuted",function(e){r("gkx")("26258")||Le(e)}),o("useWAWebListener").useListener(r("WAWebVoipCallsTabPanelManager"),"closeCallLogInfoPanel",function(){M===r("WAWebChatlistPanelMode").CallsTab&&(V==null||V.unset())}),o("useWAWebListener").useListener(o("WAWebMsgCollection").MsgCollection,"add remove reset",function(){M===r("WAWebChatlistPanelMode").CallsTab&&Pe()}),o("useWAWebListener").useListener(o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection,"add remove reset",function(){M===r("WAWebChatlistPanelMode").CallsTab&&Pe()}),_(function(){M===r("WAWebChatlistPanelMode").CallsTab&&Pe()},[M,Pe]);var et=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:isParentGroup",function(){et()}),o("useWAWebListener").useListener(o("WAWebFavoriteCollection").FavoriteCollection,"add remove change",function(){et()});var tt=r("useWAWebPrevious")($),nt=g(function(){var e;return(e=V==null?void 0:V.list.map(function(e){return e.id.toString()}).join("-"))!=null?e:""},[V==null?void 0:V.list]),rt=r("useWAWebPrevious")(nt),ot=V==null?void 0:V.getVal(),at=r("useWAWebPrevious")(ot),it=p(function(){var e=[].concat(I,i,H,E,c,k,L.map(function(e){return e[0]}),l,ye,N);if(M===r("WAWebChatlistPanelMode").CallsTab){var t=[];if(o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled()&&o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&t.push.apply(t,o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.getModelsArray()),o("WAWebABProps").getABPropConfigValue("enable_upcoming_schedule_call_events_in_calls_tab")&&ee.length>0&&t.push(ee[0]),!$){var n=o("WAWebFavoritesUtils").getFavoriteChatsLimited(3);t.push.apply(t,n)}if(be.length>0){var a=be.slice(0,200),s=o("WAWebCallLogUtils").mergeCallRecords(a);t.push.apply(t,s.map(function(e){var t=e.mergedMsgs;return t[0]}))}return[].concat(t,e)}return e.splice.apply(e,[9,0].concat(be)),e},[I,i,H,E,c,k,L,l,ye,N,M,ee,$,be]);_(function(){var e;if(V){var t=ue,n=tt!==!1&&!$&&!P&&!((e=q==null?void 0:q.hasFilter())!=null&&e)&&!(t!=null&&t.archive),r=it();V.init(r,n)}},[V,it,$,P,q,tt,ue]),_(function(){if(V){var e=ue;e&&V.list.includes(e)&&V.getVal()!==e&&!xe&&M===r("WAWebChatlistPanelMode").Chatlist&&!$&&!P&&V.setVal(e,!1)}},[V,V==null?void 0:V.list,xe,M,$,P,ue]),_(function(){V&&M===r("WAWebChatlistPanelMode").CommandPalette&&rt!==void 0&&nt!==rt&&V.setFirst(!1)},[V,M,nt,rt]),_(function(){if(V&&tt===!0&&!$&&!P){var e=V.getVal();!e&&j.current&&V.setVal(j.current)}},[V,$,P,tt]),_(function(){V&&ot&&at!==void 0&&ot!==at&&ot!==ue&&M===r("WAWebChatlistPanelMode").Chatlist&&!o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&(G.current=!xe,Ne())},[V,ot,at,M,xe,Ne,ue]);var lt=p(function(e,t){if(t!=null){Y.current.set(e,t);return}Y.current.delete(e)},[]),st=p(function(e){var t;return(t=Y.current)==null?void 0:t.get(e)},[]),ut=p(function(){M!==r("WAWebChatlistPanelMode").CommandPalette&&(V==null||V.reset(!1,!1),V&&V.index>-1&&document.activeElement===document.body&&Me())},[M,V,Me]),ct=p(function(e){e.stopPropagation(),e.preventDefault(),F==null||F()},[F]),dt=p(function(e,t){var n=new(o("WAWebDisappearingMessageKeepInChatWamEvent")).DisappearingMessageKeepInChatWamEvent({kicActionName:o("WAWebWamEnumKicActionNameType").KIC_ACTION_NAME_TYPE.SEARCH_RESULTS_TAP,isAGroup:o("WAWebChatGetters").getIsGroup(t)});if(o("WAWebChatGetters").getIsGroup(t)){var r;n.set({isAdmin:(r=t.groupMetadata)==null?void 0:r.participants.iAmAdmin()})}n.commit(),O==null||O(e,t)},[O]),mt=p(function(){V==null||V.reset(!0)},[V]),pt=p(function(e,t,n,r){O==null||O(e,t)},[O]),_t=p(function(e,t,n){w==null||w.setVal(e,t,n)},[w]),ft=p(function(e){var t=st(e);if(t){var n=o("WAWebKeyboardTabUtils").getNextTabbableElement(t,o("WAWebKeyboardTabUtils").TabDirection.FORWARD,o("WAWebKeyboardTabUtils").FocusType.TABBABLE);r("WAWebFocusTracer").focus(n)}},[st]),gt=p(function(){var e=o("WAWebTextSizeUtils").getWAWebTextSizeStyles().height;return e+4},[]),ht=p(function(){return o("WAWebTextSizeUtils").getWAWebTextSizeStyles().detailImageSize},[]),yt=p(function(e){return m.jsx(r("WAWebChatlistItem.react"),{data:e,mode:M,selectableState:U,multiSelection:w,searchQuery:q,filterPreset:T,selection:V,upcomingEvents:ee,mutedChats:ve,mutedChatsCollapsed:ke,handleMultiSelect:_t,handleArrowKeyInChatItem:ft,setCheckboxWrapperRef:lt,handleChatClick:Ae,onStartMultiSelect:B,getDetailImageSize:ht,handleContactItemClick:pt,onItemClick:O,handleKeptMessageClick:dt,handleMutedChatsBarClick:we,createPreventAutoReadProps:Ze})},[M,U,w,q,T,V,ee,ve,ke,_t,ft,lt,Ae,B,ht,pt,O,dt,we,Ze]),Ct=g(function(){var e=[],t=0;if(M===r("WAWebChatlistPanelMode").CallsTab){if(!$){if(o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled()&&o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&(e.push({itemKey:"section-ongoing-calls",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_ONGOING}),e.push.apply(e,o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.getModelsArray().map(function(e){return{itemKey:"ongoing-call-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_ONGOING,height:96}}))),o("WAWebABProps").getABPropConfigValue("enable_upcoming_schedule_call_events_in_calls_tab")&&ee.length>0){var n=ee[0];e.push({itemKey:"section-upcoming-events",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UPCOMING_EVENTS}),e.push({itemKey:"upcoming-event-"+n.id.toString(),data:n,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENT,height:108}),re.length>1&&e.push({itemKey:"view-all-upcoming-events",type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENTS_VIEW_ALL})}var a=o("WAWebFavoritesUtils").getFavoriteChatsLimited(3);e.push({itemKey:"section-calls-favorites",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_FAVORITES}),a.length>0?(e.push.apply(e,a.map(function(e){return{itemKey:"favorite-chat-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_FAVORITE}})),e.push({itemKey:"view-all-favorites",type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_VIEW_ALL_FAVORITES})):e.push({itemKey:"add-favorite-button",type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_ADD_FAVORITE})}if($&&k&&k.length>0&&(e.push({itemKey:"section-contacts",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CONTACTS}),e.push.apply(e,k.map(function(e){return{itemKey:"contact-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CONTACTS}}))),be.length>0){$?e.push({itemKey:"section-calls-search-results",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_SEARCH_RESULTS}):e.push({itemKey:"section-calls-recent",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_RECENT});var s=be.slice(0,200);e.push.apply(e,o("WAWebCallLogUtils").mergeCallRecords(s).map(function(e){var t=e.mergedMsgs,n=t[0];return{itemKey:"msg-"+n.id.toString(),data:t,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_LOG}}))}return e}$&&I&&I.length>0&&e.push({itemKey:"section-debug-commands",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_DEBUG_COMMANDS}),e.push.apply(e,(I!=null?I:[]).map(function(e){return{itemKey:"debug-command-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_DEBUG_COMMANDS,height:60}})),$&&i&&i.length>0&&e.push({itemKey:"section-actions",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ACTIONS}),e.push.apply(e,(i!=null?i:[]).map(function(e){return{itemKey:"action-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_ACTIONS,height:60}})),$&&H&&H.length>0&&e.push({itemKey:"section-settings",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_SETTINGS}),e.push.apply(e,(H!=null?H:[]).map(function(e){return{itemKey:"setting-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_SETTINGS,height:60}})),$&&E&&E.length>0&&e.push({itemKey:"section-communities",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMUNITIES}),e.push.apply(e,(E!=null?E:[]).map(function(e){return{itemKey:"community-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMUNITIES,height:72}})),q&&q.filter.kind===o("WAWebChatSearchFilters").SearchFilters.LABELS&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()||($&&c&&c.length>0?e.push({itemKey:"section-chats",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CHATS}):!$&&q&&q.filter.kind===o("WAWebChatSearchFilters").SearchFilters.UNREAD&&!o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()?e.push({itemKey:"section-chats",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UNREAD_CHATS}):!$&&q&&q.filter.kind===o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU&&e.push({itemKey:"section-chats",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ASSIGNED_TO_YOU}));var u=function(t){if(o("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(t))return o("WAWebChatCommunityUtils").SUBGROUP_V2_CHAT_CELL_HEIGHT+4};if(!$&&Re)ve.length>0&&e.push({itemKey:"section-collapse-muted",contentKey:String(ke)+"-"+ve.length,type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MUTED_CHATS,height:30}),ke||e.push.apply(e,ve.map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e,expanded:!ke,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS}})),e.push.apply(e,(c!=null?c:[]).filter(function(e){return!o("WAWebMuteGetters").getIsMuted(e.mute)}).map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS,index:t++,height:u(e.groupMetadata)}}));else{var d=[].concat(c!=null?c:[]);e.push.apply(e,d.map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS,index:t++,height:u(e.groupMetadata)}}))}return $&&k&&k.length>0&&e.push({itemKey:"section-contacts",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CONTACTS}),e.push.apply(e,(k!=null?k:[]).map(function(e){return{itemKey:"contact-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CONTACTS}})),$&&L&&L.length>0&&e.push({itemKey:"section-common-groups",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMON_GROUPS}),e.push.apply(e,(L!=null?L:[]).map(function(e){return{itemKey:"common-group-"+e[0].id.toString()+"-"+e[1].map(function(e){return e.id.toString()}).join("-"),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMON_GROUPS}})),$&&l&&l.length>0&&e.push({itemKey:"section-ai-suggestions",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_META_AI_TYPEAHEAD_SUGGESTIONS}),e.push.apply(e,(l!=null?l:[]).map(function(e){return{itemKey:"ai-suggestion-"+e.id,data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_META_AI_TYPEAHEAD_SUGGESTIONS,height:40}})),$&&ye.length>0&&e.push({itemKey:"section-starred",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_STARRED}),e.push.apply(e,ye.map(function(e){return{itemKey:"starred-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_STARRED}})),$&&Ce.length>0&&e.push({itemKey:"section-kept",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_KEPT}),e.push.apply(e,Ce.map(function(e){return{itemKey:"kept-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_KEPT}})),$&&be.length>0&&e.push({itemKey:"section-msg",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MSG}),e.push.apply(e,be.map(function(e){return{itemKey:"msg-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_MSG}})),$&&N&&N.length>0&&e.push({itemKey:"section-msg",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MSG}),e.push.apply(e,(N!=null?N:[]).map(function(e){return{itemKey:"msg-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_MSG}})),e},[M,$,c,k,i,I,E,H,L,q,l,N,ye,be,Ce,ve,ke,Re,ee,re]);o("useWAWebListener").useListener(document,"keydown",function(e){var t=r("WAWebEnvironment").isWindows;if(t&&e&&e.ctrlKey){var n=parseInt(e.key,10);if(!isNaN(n)&&n>=1&&n<=9){var o=n-1;e.preventDefault(),Ue(e,o)}}}),_(function(){return function(){if(!(V&&V.list.length>0)){var e=V==null?void 0:V.getVal();e instanceof o("WAWebChatModel").Chat&&e.isState&&!$&&o("WAWebCmd").Cmd.closeChat(e)}}},[V,$]),f(W,function(){return{focusFirst:Ve,requestFocus:ut,restoreFocus:mt}},[Ve,ut,mt]);var bt=g(function(){return{down:function(t){return qe(t,!1)},j:function(t){return qe(t,!1)},up:function(t){return We(t,!1)},k:function(t){return We(t,!1)},"/":function(t){return ct(t)},home:function(t){return Ue(t,0)},end:function(t){return Ue(t,V?V.list.length-1:0)},pagedown:function(t){return Ge(t)},pageup:function(t){return ze(t)}}},[qe,We,ct,Ue,V,Ge,ze]),vt=g(function(){return $?s._(/*BTDS*/"Resultados de la b\u00fasqueda."):s._(/*BTDS*/"Lista de chats")},[$]);return m.jsx(o("WAWebUimUie.react").UIE,{displayName:"Chatlist",ref:Q,uimState:o("WAWebUim").UIMState.PASSIVE,requestFocus:ut,children:m.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{tabIndex:0,handlers:bt,onFocus:Ke,onBlur:Je,ref:K,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHAT_LIST,children:m.jsx(v,babelHelpers.extends({"aria-label":vt,testid:void 0,data:Ct,renderItem:yt,flatListController:D,direction:"vertical",defaultItemHeight:gt(),onPointerEventsOff:Xe,onPointerEventsOn:Qe,ref:X},(function(){var e=r("WAWebEnvironment").isWindows||o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread"),t=0;return!$&&e&&(t=C),e?{extraItems:t}:{}})(),{role:"grid",itemRole:"row","aria-rowcount":(a=c==null?void 0:c.length)!=null?a:0,viewportXstyles:b.flatListViewport}))})})}L.displayName=L.name+" [from "+i.id+"]",l.default=L}),226); __d("WAWebChatlistPanelUtils",["WAWebChatLockUtils","WAWebChatlistPanelMode","WAWebEnvironment"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=e.hideLockedChats,n=e.lockedChatsEntryPointVisible,a=e.mode,i=e.searchQuery,l=e.selectableState,s=e.showMultiSelectBar;return a!==r("WAWebChatlistPanelMode").Chatlist||(l==null?void 0:l.isSelectable)===!0||s||!o("WAWebChatLockUtils").shouldShowChatLockEntryPoints()?!1:r("WAWebEnvironment").isWindows===!0?n&&t===!0:n||t===!1&&i.isEmptyQuery()&&!i.hasFilter()}l.shouldShowLockedChatsPanel=e}),98); __d("WAWebChatlist_DEPRECATED.react",["fbt","WALogger","WANullthrows","WAWebABProps","WAWebAddFavoriteButton.react","WAWebCallLogEntryCell.react","WAWebCallLogJoinOngoingCell.react","WAWebCallLogUtils","WAWebChat.react","WAWebChatAction.react","WAWebChatCheckboxWrapper.react","WAWebChatCollection","WAWebChatCommunityUtils","WAWebChatContact.react","WAWebChatContactUtils","WAWebChatEntryPoint","WAWebChatGetters","WAWebChatLockUtils","WAWebChatMessage.react","WAWebChatModel","WAWebChatPreferenceCollection","WAWebChatSearchFilters","WAWebChatSetting.react","WAWebChatlistPageNavigation.react","WAWebChatlistPanelMode","WAWebChatlistTypes","WAWebCmd","WAWebCommunityCells.react","WAWebCommunityGatingUtils","WAWebComposeBoxActions","WAWebContactGetters","WAWebDisappearingMessageKeepInChatWamEvent","WAWebElevatedPushNamesFlag","WAWebEmojiText.react","WAWebEnvironment","WAWebErrorBoundary.react","WAWebEventUtils","WAWebFavoriteCell.react","WAWebFavoriteCollection","WAWebFavoritesUtils","WAWebFbtIntlList","WAWebFlatList.react","WAWebFocusTracer","WAWebFormatConfiguration","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebGroupInfoSeparator.react","WAWebInboxFiltersGatingUtils","WAWebKeyboardContext","WAWebKeyboardHotKeys.react","WAWebKeyboardTabUtils","WAWebListenerHoc_DEPRECATED","WAWebMetaAISuggestion.react","WAWebMsgCollection","WAWebMsgGetters","WAWebMuteCollection","WAWebMuteGetters","WAWebNoop","WAWebPreCallUserJourneyLogger","WAWebSearchLogging","WAWebSectionHeader.react","WAWebTabOrder","WAWebTextSizeUtils","WAWebTimeSpentLoggingNavigation","WAWebTimerHoc_DEPRECATED.react","WAWebUim","WAWebUimUie.react","WAWebUpcomingEventCell.react","WAWebViewAllButton.react","WAWebVoipCallsTabPanelManager","WAWebVoipGatingUtils","WAWebVoipOngoingCallCollection","WAWebWamEnumKicActionNameType","WAWebWamEnumSubSurface","asyncToGeneratorRuntime","cr:104","cr:5736","gkx","react"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=r("react")),p=(c||(c=o("react"))).Component,_=30,f={unreadChatsHeader:{paddingInlineStart:"xbmws1g",$$css:!0},flatListViewport:{paddingTop:"x1tiyuxx",$$css:!0},sectionHeader:{fontWeight:"x1s688f",color:"xhslqc4",$$css:!0}},g=o("WAWebChat.react").ChatFactory(),h=o("WAWebChatContact.react").ContactFactory(),y=o("WAWebFlatList.react").FlatListFactory();function C(e,t){t===void 0&&(t={});var n=t,a=n.formatString,i=a===void 0?"":a,l=r("WAWebFbtIntlList")(e.map(function(e){var t=o("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(e),n=t?o("WAWebChatContactUtils").getFormattedNotifyName(o("WAWebContactGetters").getNotifyName(e)).toString():o("WAWebFrontendContactGetters").getFormattedName(e);return""+i+n+i}),r("WAWebFbtIntlList").CONJUNCTIONS.AND,r("WAWebFbtIntlList").DELIMITERS.COMMA);return s._(/*BTDS*/"_j{\"*\":\"{contacts-list} tambi\\u00e9n est\\u00e1n en este grupo.\",\"_1\":\"{contacts-list} tambi\\u00e9n est\\u00e1 en este grupo.\"}",[s._plural(e.length),s._param("contacts-list",l)])}C.displayName=C.name+" [from "+i.id+"]";var b=(function(t){function a(a){var i;return i=t.call(this,a)||this,i.$4=new Map,i.$7=0,i.$8=!o("WAWebABProps").getABPropConfigValue("verified_badge_in_chats_list_enabled"),i.disableChatSwitching=!1,i.$10=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!o("WAWebABProps").getABPropConfigValue("enable_upcoming_schedule_call_events_in_calls_tab")){i.setState({upcomingEvents:[],allUpcomingEvents:[]});return}var e=yield o("WAWebEventUtils").getUpcomingEvents(),t=yield o("WAWebEventUtils").getUpcomingEventsForCallsTab(),n=t.slice(0,1);i.setState({upcomingEvents:n,allUpcomingEvents:e})}),i.$13=function(e){i.$6=e},i.setRefUIE=function(e){i.uie=e},i.setRefList=function(e){i.refList=e},i.$14=function(){i.refList&&i.$6&&r("WAWebFocusTracer").focus(i.$6)},i.$15=function(){r("gkx")("26258")||i.setState(function(e){return{mutedChatsCollapsed:!e.mutedChatsCollapsed}})},i.$16=function(e){e===i.$9&&i.props.selection.setVal(e,!0),i.$17()},i.$17=function(){i.$9=null,o("WAWebCmd").Cmd.removeListener("close_chat",i.$16)},i.$18=function(e,t){var n=e.nativeEvent;if(n instanceof KeyboardEvent){var r=i.props.selection.getVal();r instanceof o("WAWebChatModel").Chat&&(i.$17(),i.$9=r,o("WAWebCmd").Cmd.listenToOnce(o("WAWebCmd").Cmd,"close_chat",i.$16))}else o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&(i.setState({selectedChat:null}),i.props.selection.unset());i.props.onItemClick(e,t)},i.$19=function(e,t){if(t!=null){i.$4.set(e,t);return}i.$4.delete(e)},i.$20=function(e){var t;return(t=i.$4)==null?void 0:t.get(e)},i.requestFocus=function(){i.props.mode!==r("WAWebChatlistPanelMode").CommandPalette&&(i.props.selection.reset(!1,!1),i.props.selection.index>-1&&document.activeElement===document.body&&i.$14())},i.$21=function(e){e.stopPropagation(),e.preventDefault(),i.props.onFocusSearch()},i.$22=function(e){var t=i.props.selection.getVal();e===t&&i.props.selection.unset(),i.setState({activeChat:null}),i.setState({selectedChat:e})},i.restoreFocus=function(){i.props.selection.reset(!0)},i.$23=function(e,t){var n=new(o("WAWebDisappearingMessageKeepInChatWamEvent")).DisappearingMessageKeepInChatWamEvent({kicActionName:o("WAWebWamEnumKicActionNameType").KIC_ACTION_NAME_TYPE.SEARCH_RESULTS_TAP,isAGroup:o("WAWebChatGetters").getIsGroup(t)});if(o("WAWebChatGetters").getIsGroup(t)){var r;n.set({isAdmin:(r=t.groupMetadata)==null?void 0:r.participants.iAmAdmin()})}n.commit(),i.props.onItemClick(e,t)},i.$24=function(e){i.setState({contextMenuOpened:e})},i.$25=function(e,t,n,r){i.props.onItemClick(e,t)},i.$29=function(e,t,n){var r=i.props.multiSelection;r.setVal(e,t,n)},i.$30=function(e){var t=i.$20(e);if(t){var n=o("WAWebKeyboardTabUtils").getNextTabbableElement(t,o("WAWebKeyboardTabUtils").TabDirection.FORWARD,o("WAWebKeyboardTabUtils").FocusType.TABBABLE);r("WAWebFocusTracer").focus(n)}},i.$31=function(e,t){var n=i.props,a=n.multiSelection,l=n.selectableState;if(!l)return m.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list-item",children:e});var u="selectable-chat-list-item-"+i.props.mode,c=t instanceof o("WAWebChatModel").Chat?t.formattedTitle:null;return m.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:u,children:m.jsx(r("WAWebChatCheckboxWrapper.react"),{ref:function(n){return void i.$19(t.id.toString(),n)},model:t,theme:"chat-checkbox",selectableState:l,multiSelection:a,onSelect:i.$29,onArrowKeyLeftRight:function(){return i.$30(t.id.toString())},checkboxAriaLabel:s._(/*BTDS*/"Seleccionar chat {chat-name}",[s._param("chat-name",c)]),role:"gridcell",children:e})})},i.$26=function(e){if(e&&e.ctrlKey){var t=parseInt(e.key,10);if(!isNaN(t)&&t>=1&&t<=9){var n=t-1;e.preventDefault(),i.$34(null,n)}}},i.$38=function(e){var t=o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread"),n=void 0,a="DEFAULT",l=r("WAWebNoop");if(!t)return{forceActive:n,activeStyleType:a,onContextMenuChange:l};var s=e===i.state.activeChat,u=e===i.state.selectedChat;return s&&u?(n=!0,a="BOTH"):s?(n=!0,a="DEFAULT"):u&&(a="BORDER"),l=i.$24,{forceActive:n,activeStyleType:a,onContextMenuChange:l}},i.renderItem=function(t){var a=i.props,l=a.filterPreset,c=a.searchQuery;switch(t.type){case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CHATS:return m.jsx(v,{header:s._(/*BTDS*/"Chats")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UNREAD_CHATS:return m.jsx(v,{xstyle:f.unreadChatsHeader,header:s._(/*BTDS*/"Filtrado por No le\u00eddos")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CONTACTS:return m.jsx(v,{header:s._(/*BTDS*/"Contactos")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ACTIONS:return m.jsx(v,{header:s._(/*BTDS*/"Acciones")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_DEBUG_COMMANDS:return m.jsx(v,{header:"Debug Commands"});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMUNITIES:return m.jsx(v,{header:s._(/*BTDS*/"Comunidades")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_SETTINGS:return m.jsx(v,{header:s._(/*BTDS*/"Ajustes")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMON_GROUPS:return m.jsx(v,{header:s._(/*BTDS*/"Grupos en com\u00fan")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_META_AI_TYPEAHEAD_SUGGESTIONS:return m.jsx(v,{header:s._(/*BTDS*/"Preg\u00fantale a Meta AI")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_STARRED:return m.jsx(v,{testid:void 0,header:s._(/*BTDS*/"Mensajes destacados")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_KEPT:return m.jsx(v,{testid:void 0,header:s._(/*BTDS*/"Mensajes conservados")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MSG:return m.jsx(v,{header:s._(/*BTDS*/"Mensajes")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_FAVORITES:return m.jsxs(m.Fragment,{children:[(i.state.upcomingEvents.length>0||o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled())&&m.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),m.jsx(v,{header:s._(/*BTDS*/"Favoritos")})]});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UPCOMING_EVENTS:return m.jsxs(m.Fragment,{children:[o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled()&&m.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),m.jsx(v,{header:s._(/*BTDS*/"Pr\u00f3ximamente")})]});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_ONGOING:return m.jsx(v,{header:s._(/*BTDS*/"En curso")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_RECENT:return m.jsxs(m.Fragment,{children:[m.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),m.jsx(v,{header:s._(/*BTDS*/"Recientes")})]});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_SEARCH_GROUPS:return m.jsx(v,{header:s._(/*BTDS*/"Grupos")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_SEARCH_RESULTS:return m.jsx(v,{header:s._(/*BTDS*/"Llamadas")});case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MUTED_CHATS:return n("cr:5736")!=null?m.jsx(n("cr:5736"),{mutedChats:i.state.mutedChats,mutedChatsCollapsed:i.state.mutedChatsCollapsed,onClick:i.$15}):null;case o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ASSIGNED_TO_YOU:return m.jsx(v,{header:s._(/*BTDS*/"ASIGNADOS A TI")});case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS:{var d=t.data,p=t.index;return i.$31(m.jsx(g,babelHelpers.extends({chat:d,mode:o("WAWebChat.react").Mode.LAST,searchQuery:c,filterPreset:l,onClick:i.$18,mouseDownAsClick:!0,selectableState:i.props.selectableState,multiSelection:i.props.multiSelection,onStartMultiSelect:i.props.onStartMultiSelect,active:i.props.selection,ephemeralIcon:"chat-list",showStatusRingAroundProfilePhoto:!0,index:p,photoSize:i.$28(),showCommunityInfo:!0,skipCheckMark:i.$8,handleArrowKeyInChatItem:i.$30},i.$38(d))),d)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CONTACTS:{var _=t.data;return i.$31(m.jsx(h,{contact:_,active:i.props.selection,searchQuery:c,onClick:i.$25,mouseDownAsClick:!0,waitIdle:!0,showStatusRingAroundProfilePhoto:!0,photoSize:i.$28(),hideStatus:o("WAWebContactGetters").getIsMe(_),showMessageYourselfName:o("WAWebContactGetters").getIsMe(_)}),_)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_ACTIONS:{var y=t.data;return i.$31(m.jsx(r("WAWebChatAction.react"),{action:y,active:i.props.selection,onClick:i.props.onItemClick,searchQuery:c}),y)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_DEBUG_COMMANDS:{var C=t.data;if(!r("gkx")("26258")&&n("cr:104")!=null)return i.$31(m.jsx(n("cr:104"),{active:i.props.selection,debugCommand:C,onClick:i.props.onItemClick,searchQuery:c}),C);throw o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebChatlist_DEPRECATED with type ROW_DEBUG_COMMANDS"]))),new(o("WAWebFlatList.react")).UnknownDataError(t)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMUNITIES:{var b=t.data;return i.$31(m.jsx(o("WAWebCommunityCells.react").CommunityCell,{active:i.props.selection,parentGroupMetadata:r("WANullthrows")(b.groupMetadata),parentGroupChat:b,onClick:function(t){return i.props.onItemClick(t,b)},inCommandPalette:!0}),b)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_SETTINGS:{var S=t.data;return i.$31(m.jsx(r("WAWebChatSetting.react"),{active:i.props.selection,onClick:i.props.onItemClick,searchQuery:c,setting:S}),S)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMON_GROUPS:{var R=t.data,L=R[0],E=i.$32(R);return i.$31(m.jsx(g,babelHelpers.extends({chat:L,secondary:E,mode:o("WAWebChat.react").Mode.LAST,searchQuery:c,filterPreset:l,onClick:i.props.onItemClick,mouseDownAsClick:!0,selectableState:i.props.selectableState,multiSelection:i.props.multiSelection,onStartMultiSelect:i.props.onStartMultiSelect,active:i.props.selection},i.$38(L))),L)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_META_AI_TYPEAHEAD_SUGGESTIONS:{var k=t.data;return m.jsx(r("WAWebMetaAISuggestion.react"),{active:i.props.selection,suggestion:k,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.MetaAITypeaheadSuggestion,onClick:function(){return o("WAWebSearchLogging").logSearchActionTypeAheadItemClick(k)}})}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_STARRED:{var I=t.data;return i.$31(m.jsx(r("WAWebChatMessage.react"),{msg:I,chat:o("WAWebFrontendMsgGetters").getChat(I),searchQuery:c,filterPreset:l,onClick:i.props.onItemClick,active:i.props.selection,testid:void 0}),I)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_KEPT:{var T=t.data;return i.$31(m.jsx(r("WAWebChatMessage.react"),{msg:T,chat:o("WAWebFrontendMsgGetters").getChat(T),searchQuery:c,filterPreset:l,onClick:i.$23,active:i.props.selection,testid:void 0}),T)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_MSG:{var D=t.data;return i.$31(m.jsx(r("WAWebChatMessage.react"),{msg:D,chat:o("WAWebFrontendMsgGetters").getChat(D),searchQuery:c,filterPreset:l,onClick:i.props.onItemClick,active:i.props.selection,testid:void 0}),D)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_ONGOING:{var x=t.data;return i.$31(m.jsx(r("WAWebCallLogJoinOngoingCell.react"),{callLogMsg:x,active:i.props.selection,onClick:function(){return i.props.selection.setVal(x)}}),x)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_LOG:{var $=t.data,P=$[$.length-1];return i.$31(m.jsx(o("WAWebCallLogEntryCell.react").CallLogEntryCell,{mergedMsgs:$,searchQuery:c,filterPreset:l,onClick:function(){return i.props.selection.setVal(P)},active:i.props.selection,testidPrefix:"chatlist-message"}),P)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_FAVORITE:{var N=t.data;return i.$31(m.jsx(r("WAWebFavoriteCell.react"),{active:i.props.selection,chat:N,onClick:r("WAWebNoop"),photoSize:i.$28(),testid:void 0}),N)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_ADD_FAVORITE:return m.jsx(r("WAWebAddFavoriteButton.react"),{});case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_VIEW_ALL_FAVORITES:return m.jsx(o("WAWebViewAllButton.react").ViewAllFavoritesButton,{});case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENT:{var M=t.data,w=function(){var e=new(o("WAWebPreCallUserJourneyLogger")).PreCallUserJourneyLogger;e.clickEventDetail(o("WAWebWamEnumSubSurface").SUB_SURFACE.NONE);var t=o("WAWebFrontendMsgGetters").getChat(M),n=o("WAWebFrontendMsgGetters").getAsEventCreation(M);n!=null&&o("WAWebCmd").Cmd.openEventInfoDrawer(t,n)};return i.$31(m.jsx(r("WAWebUpcomingEventCell.react"),{eventMessage:M,active:i.props.selection,onClick:w}),M)}case o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENTS_VIEW_ALL:return m.jsx(o("WAWebViewAllButton.react").ViewAllUpcomingEventsButton,{});default:throw o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebChatlist_DEPRECATED with type default"]))),new(o("WAWebFlatList.react")).UnknownDataError(t)}},i.$37=function(e){i.$2.cancel(),i.props.selection.setVal(e,!1),i.$5=e},i.$39=function(e){if(e.target===i.$6&&i.$3&&i.context.isKeyboardUser){if(i.props.selection.index<0)o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?i.focusActiveChat():i.focusFirst();else{var t=i,n=t.uie;n&&n.activate(),i.props.selection.reset(!0)}o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")&&i.setState({selectedChat:i.props.selection.getVal()})}},i.$40=function(e){if(o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")){var t=i.$6,n=e.relatedTarget;!n||!t||!(n instanceof HTMLElement)||t.contains(n)||i.state.contextMenuOpened||(i.props.selection.set(-1,!1),i.setState({selectedChat:null}))}},i.$41=function(){i.$3=!0},i.$42=function(){i.$3=!1},i.$43=function(e){var t=typeof e=="function"?e(i.props.selection.getVal()):e;i.setState({selectedChat:t})},i.$3=!0,i.$5=null,i.$2=i.props.debounce(function(){i.$12(i.$1),i.$1=!1},200),i.state={ftsStarred:[],ftsKept:[],ftsMessages:[],mutedChats:[],collapseMutedChatsEnabled:!1,mutedChatsCollapsed:!0,upcomingEvents:[],allUpcomingEvents:[],contextMenuOpened:!1,activeChat:o("WAWebChatCollection").ChatCollection.getActive(),selectedChat:i.props.selection.getVal()},r("gkx")("26258")||(i.state.collapseMutedChatsEnabled=o("WAWebMuteCollection").MuteCollection.getCollapseMuted()),i}babelHelpers.inheritsLoose(a,t),a.getDerivedStateFromProps=function(t){var e=t.ftsResult.filter(function(e){return o("WAWebChatLockUtils").chatIsAccessible(o("WAWebFrontendMsgGetters").getChat(e))}),n=e.filter(function(e){return o("WAWebMsgGetters").getIsKept(e)}),a=e.filter(function(e){return!e.star&&!o("WAWebMsgGetters").getIsKept(e)});return babelHelpers.extends({ftsStarred:e.filter(function(e){var t=e.star;return t}),ftsKept:n,ftsMessages:a},r("gkx")("26258")?null:{mutedChats:t.chats.filter(function(e){var t=e.mute;return o("WAWebMuteGetters").getIsMuted(t)})})};var i=a.prototype;return i.$11=function(){return this.context.isKeyboardUser},i.$12=function(t){t===void 0&&(t=!1);var e=this.props.selection.getVal();e!=null&&(e instanceof o("WAWebChatModel").Chat&&e!==o("WAWebChatCollection").ChatCollection.getActive()?o("WAWebCmd").Cmd.openChatFromUnread({chat:e}).then(function(n){n&&t===!0&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(e)}):t===!0&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(e))},i.componentWillUnmount=function(){var e=r("WAWebEnvironment").isWindows;e&&document.removeEventListener("keydown",this.$26),o("WAWebTimeSpentLoggingNavigation").tsNavigationExit(this.$7);var t=this.props.selection;if(!(t.list.length>0)){var n=t.getVal();n instanceof o("WAWebChatModel").Chat&&n.isState&&!this.props.isSearching&&o("WAWebCmd").Cmd.closeChat(n)}},i.$27=function(){var e=o("WAWebTextSizeUtils").getWAWebTextSizeStyles().height;return e+4},i.$28=function(){return o("WAWebTextSizeUtils").getWAWebTextSizeStyles().detailImageSize},i.$32=function(t){var e=t[1],n=e.slice(0,2),r=C(n,{formatString:"*"}),a=C(n).toString(),i=o("WAWebFormatConfiguration").Search({terms:[this.props.searchQuery.trimmed()]});return m.jsx(o("WAWebEmojiText.react").EmojiText,{text:r,formatters:i,titlify:!0,title:a,direction:"auto"})},i.getData=function(){var e=this.props,t=e.actions,n=e.aiSuggestions,a=e.chats,i=e.commonGroups,l=e.communities,s=e.contacts,u=e.debugCommands,c=e.isSearching,d=e.messages,m=e.searchQuery,p=e.settings,_=this.state,f=_.collapseMutedChatsEnabled,g=_.ftsKept,h=_.ftsMessages,y=_.ftsStarred,C=_.mutedChats,b=_.mutedChatsCollapsed,v=_.upcomingEvents,S=[],R=0;if(this.props.mode===r("WAWebChatlistPanelMode").CallsTab){if(!c){if(o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled()&&o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&(S.push({itemKey:"section-ongoing-calls",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_ONGOING}),S.push.apply(S,o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.getModelsArray().map(function(e){return{itemKey:"ongoing-call-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_ONGOING,height:96}}))),o("WAWebABProps").getABPropConfigValue("enable_upcoming_schedule_call_events_in_calls_tab")&&v.length>0){var L=v[0];S.push({itemKey:"section-upcoming-events",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UPCOMING_EVENTS}),S.push({itemKey:"upcoming-event-"+L.id.toString(),data:L,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENT,height:108}),this.state.allUpcomingEvents.length>1&&S.push({itemKey:"view-all-upcoming-events",type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_UPCOMING_EVENTS_VIEW_ALL})}var E=o("WAWebFavoritesUtils").getFavoriteChatsLimited(3);S.push({itemKey:"section-calls-favorites",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_FAVORITES}),E.length>0?(S.push.apply(S,E.map(function(e){return{itemKey:"favorite-chat-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_FAVORITE}})),S.push({itemKey:"view-all-favorites",type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_VIEW_ALL_FAVORITES})):S.push({itemKey:"add-favorite-button",type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALLS_ADD_FAVORITE})}if(c&&s.length>0&&(S.push({itemKey:"section-contacts",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CONTACTS}),S.push.apply(S,s.map(function(e){return{itemKey:"contact-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CONTACTS}}))),h.length>0){c?S.push({itemKey:"section-calls-search-results",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_SEARCH_RESULTS}):S.push({itemKey:"section-calls-recent",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CALLS_RECENT});var k=h.slice(0,200);S.push.apply(S,o("WAWebCallLogUtils").mergeCallRecords(k).map(function(e){var t=e.mergedMsgs,n=t[0];return{itemKey:"msg-"+n.id.toString(),data:t,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CALL_LOG}}))}return S}c&&u.length>0&&S.push({itemKey:"section-debug-commands",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_DEBUG_COMMANDS}),S.push.apply(S,u.map(function(e){return{itemKey:"debug-command-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_DEBUG_COMMANDS,height:60}})),c&&t.length>0&&S.push({itemKey:"section-actions",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ACTIONS}),S.push.apply(S,t.map(function(e){return{itemKey:"action-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_ACTIONS,height:60}})),c&&p.length>0&&S.push({itemKey:"section-settings",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_SETTINGS}),S.push.apply(S,p.map(function(e){return{itemKey:"setting-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_SETTINGS,height:60}})),c&&l.length>0&&S.push({itemKey:"section-communities",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMUNITIES}),S.push.apply(S,l.map(function(e){return{itemKey:"community-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMUNITIES,height:72}})),m.filter.kind===o("WAWebChatSearchFilters").SearchFilters.LABELS&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()||(c&&a.length>0?S.push({itemKey:"section-chats",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CHATS}):!c&&m.filter.kind===o("WAWebChatSearchFilters").SearchFilters.UNREAD&&!o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()?S.push({itemKey:"section-chats",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_UNREAD_CHATS}):!c&&m.filter.kind===o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU&&S.push({itemKey:"section-chats",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_ASSIGNED_TO_YOU}));var I=function(t){if(o("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(t))return o("WAWebChatCommunityUtils").SUBGROUP_V2_CHAT_CELL_HEIGHT+4};if(!c&&f)C.length>0&&S.push({itemKey:"section-collapse-muted",contentKey:String(b)+"-"+C.length,type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MUTED_CHATS,height:30}),b||S.push.apply(S,C.map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e,expanded:!b,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS}})),S.push.apply(S,a.filter(function(e){return!o("WAWebMuteGetters").getIsMuted(e.mute)}).map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS,index:R++,height:I(e.groupMetadata)}}));else{var T=[].concat(a);S.push.apply(S,T.map(function(e){return{itemKey:"chat-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CHATS,index:R++,height:I(e.groupMetadata)}}))}return c&&s.length>0&&S.push({itemKey:"section-contacts",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_CONTACTS}),S.push.apply(S,s.map(function(e){return{itemKey:"contact-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_CONTACTS}})),c&&i.length>0&&S.push({itemKey:"section-common-groups",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_COMMON_GROUPS}),S.push.apply(S,i.map(function(e){return{itemKey:"common-group-"+e[0].id.toString()+"-"+e[1].map(function(e){return e.id.toString()}).join("-"),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_COMMON_GROUPS}})),c&&n.length>0&&S.push({itemKey:"section-ai-suggestions",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_META_AI_TYPEAHEAD_SUGGESTIONS}),S.push.apply(S,n.map(function(e){return{itemKey:"ai-suggestion-"+e.id,data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_META_AI_TYPEAHEAD_SUGGESTIONS,height:40}})),c&&y.length>0&&S.push({itemKey:"section-starred",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_STARRED}),S.push.apply(S,y.map(function(e){return{itemKey:"starred-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_STARRED}})),c&&g.length>0&&S.push({itemKey:"section-kept",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_KEPT}),S.push.apply(S,g.map(function(e){return{itemKey:"kept-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_KEPT}})),c&&h.length>0&&S.push({itemKey:"section-msg",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MSG}),S.push.apply(S,h.map(function(e){return{itemKey:"msg-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_MSG}})),c&&d.length>0&&S.push({itemKey:"section-msg",type:o("WAWebChatlistTypes").WAWebChatlistSection.SEC_MSG}),S.push.apply(S,d.map(function(e){return{itemKey:"msg-"+e.id.toString(),data:e,type:o("WAWebChatlistTypes").WAWebChatlistRow.ROW_MSG}})),S},i.$33=function(t){t===void 0&&(t=100),this.refList&&this.props.selection.index>=0&&this.refList.scrollIntoViewIfNeeded(this.props.selection.index,t)},i.componentDidMount=function(){var e=this;this.$7=o("WAWebTimeSpentLoggingNavigation").tsNavigationEnter({surface:"chat-list"}),this.props.selection.init(this.getSelection());var t=r("WAWebEnvironment").isWindows;t&&document.addEventListener("keydown",this.$26),this.props.listeners.add(r("WAWebChatPreferenceCollection"),"wallpaper_drawer_open",function(t){o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&t&&(e.disableChatSwitching=!0)}),this.props.listeners.add(r("WAWebChatPreferenceCollection"),"wallpaper_drawer_close",function(t){o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&t&&(e.disableChatSwitching=!1)}),this.props.listeners.add(o("WAWebCmd").Cmd,"focus_next_chat",function(t){(!o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||!e.disableChatSwitching)&&e.$35(null,!0,t)}),this.props.listeners.add(o("WAWebCmd").Cmd,"focus_prev_chat",function(t){(!o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")||!e.disableChatSwitching)&&e.$36(null,!0,t)}),this.props.listeners.add(o("WAWebCmd").Cmd,"update_chatlist_selection",this.$37),this.props.listeners.add(o("WAWebCmd").Cmd,"close_chat",this.$22),this.props.listeners.add(o("WAWebCmd").Cmd,"open_chat",function(t){var n=t.chat;e.setState({activeChat:n})}),this.props.listeners.add(o("WAWebCmd").Cmd,"archive_chat",function(t){t===e.state.activeChat&&e.setState({activeChat:null})}),this.props.listeners.add(o("WAWebCmd").Cmd,"scroll_to_active_chat",function(){e.$33(0)}),this.props.listeners.add(o("WAWebCmd").Cmd,"scroll_chat_list_to_top",function(){e.refList&&e.refList.scrollIntoViewIfNeeded(0,0)}),r("gkx")("26258")||(this.props.listeners.add(o("WAWebChatCollection").ChatCollection,"change:muteExpiration",function(){e.setState({mutedChats:e.props.chats.filter(function(e){return o("WAWebMuteGetters").getIsMuted(e.mute)})})}),this.props.listeners.add(o("WAWebMuteCollection").MuteCollection,"change:collapseMuted",function(t){e.setState({collapseMutedChatsEnabled:t})})),this.props.mode===r("WAWebChatlistPanelMode").CallsTab&&(this.props.listeners.add(r("WAWebVoipCallsTabPanelManager"),"closeCallLogInfoPanel",function(){e.props.selection.unset()}),this.props.listeners.add(o("WAWebMsgCollection").MsgCollection,"add remove reset",function(){e.$10()}),this.props.listeners.add(o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection,"add remove reset",function(){e.$10()}),this.$10()),this.props.listeners.add(o("WAWebChatCollection").ChatCollection,"change:isParentGroup",function(){return e.forceUpdate()}),this.props.listeners.add(o("WAWebFavoriteCollection").FavoriteCollection,"add remove change",function(){e.forceUpdate()})},i.componentDidUpdate=function(t,n){var e=t.selection.getVal(),o=this.state.activeChat,a=!t.isSearching&&!this.props.isSearching&&!this.props.isSearchInputFocused&&!this.props.searchQuery.hasFilter()&&!(o!=null&&o.archive),i=this.props.selection,l=i.list.map(function(e){return e.id.toString()}).join("-"),s=this.getSelection(),u=s.map(function(e){return e.id.toString()}).join("-");i.init(s,a),o&&i.list.includes(o)&&i.getVal()!==o&&!this.$11()&&this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&!this.props.isSearching&&!this.props.isSearchInputFocused&&i.setVal(o,!1),this.props.mode===r("WAWebChatlistPanelMode").CommandPalette&&l!==u&&i.setFirst(!1);var c=this.props.selection.getVal();t.isSearching&&!this.props.isSearching&&!this.props.isSearchInputFocused&&!c&&this.$5&&this.props.selection.setVal(this.$5,!1),c&&c!==e&&c!==o&&this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&(this.$1=!this.$11(),this.$2())},i.getSelection=function(){var e=[].concat(this.props.debugCommands,this.props.actions,this.props.settings,this.props.communities,this.props.chats,this.props.contacts,this.props.commonGroups.map(function(e){return e[0]}),this.props.aiSuggestions,this.state.ftsStarred,this.props.messages);if(this.props.mode===r("WAWebChatlistPanelMode").CallsTab){var t=[];if(o("WAWebVoipGatingUtils").isWinHybridJoinableCallsEnabled()&&o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.hasOngoingJoinableGroupCalls()&&t.push.apply(t,o("WAWebVoipOngoingCallCollection").WAWebVoipOngoingCallCollection.getModelsArray()),o("WAWebABProps").getABPropConfigValue("enable_upcoming_schedule_call_events_in_calls_tab")&&this.state.upcomingEvents.length>0&&t.push(this.state.upcomingEvents[0]),!this.props.isSearching){var n=o("WAWebFavoritesUtils").getFavoriteChatsLimited(3);t.push.apply(t,n)}if(this.state.ftsMessages.length>0){var a=this.state.ftsMessages.slice(0,200),i=o("WAWebCallLogUtils").mergeCallRecords(a);t.push.apply(t,i.map(function(e){var t=e.mergedMsgs;return t[0]}))}return[].concat(t,e)}return e.splice.apply(e,[9,0].concat(this.state.ftsMessages)),e},i.$36=function(t,n,a){t&&t.preventDefault();var e=this.props.selection.prev();e>-1&&(this.props.selection.setPrev(!0),this.$1=a,this.$33(),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?this.setState({selectedChat:this.props.selection.getVal()}):this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&this.$2())},i.$35=function(t,n,a){t&&t.preventDefault();var e=this.props.selection.next();this.props.selection.index!==e&&(this.props.selection.setNext(!0),this.$1=a,this.$33(),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?this.setState({selectedChat:this.props.selection.getVal()}):this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&this.$2())},i.$34=function(t,n,a){t&&t.preventDefault(),this.props.selection.index!==n&&(this.props.selection.set(n,!0),this.$1=a,this.$33(),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")?this.setState({selectedChat:this.props.selection.getVal()}):this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&this.$2())},i.focusActiveChat=function(){var e=this.state.activeChat;if(!e){this.focusFirst();return}var t=this.props.selection.list.indexOf(e);if(t<0){this.focusFirst();return}var n=this.uie;n&&n.activate(),this.props.selection.set(t,!0),this.$33()},i.focusFirst=function(){var e=this.uie;e&&e.activate(),this.props.selection.setFirst(),this.$33(0),o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread")||this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&this.$2(),this.props.mode===r("WAWebChatlistPanelMode").CommandPalette&&this.$35(void 0)},i.render=function(){var e=this,t,n=this.props,a=n.chats,i=n.isSearching,l={down:function(n){return e.$35(n,!1)},j:function(n){return e.$35(n,!1)},up:function(n){return e.$36(n,!1)},k:function(n){return e.$36(n,!1)},"/":function(n){return e.$21(n)},home:function(n){return e.$34(n,0)},end:function(n){return e.$34(n,e.props.selection.list.length-1)},pageup:function(n){var t=e.props.selection,r=e.$43;o("WAWebChatlistPageNavigation.react").handlePageNavigation({event:n,direction:"up",selection:t,setSelectedChat:r})},pagedown:function(n){var t=e.props.selection,r=e.$43;o("WAWebChatlistPageNavigation.react").handlePageNavigation({event:n,direction:"down",selection:t,setSelectedChat:r})}},u;return i?u=s._(/*BTDS*/"Resultados de la b\u00fasqueda."):u=s._(/*BTDS*/"Lista de chats"),m.jsx(o("WAWebUimUie.react").UIE,{displayName:"Chatlist",ref:this.setRefUIE,uimState:o("WAWebUim").UIMState.PASSIVE,requestFocus:this.requestFocus,children:m.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{tabIndex:0,handlers:l,onFocus:this.$39,onBlur:this.$40,ref:this.$13,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHAT_LIST,children:m.jsx(y,babelHelpers.extends({"aria-label":u,testid:void 0,data:this.getData(),renderItem:this.renderItem,flatListController:this.props.flatListController,direction:"vertical",defaultItemHeight:this.$27(),onPointerEventsOff:this.$42,onPointerEventsOn:this.$41,ref:this.setRefList},(function(){var e=r("WAWebEnvironment").isWindows||o("WAWebABProps").getABPropConfigValue("chatlist_prevent_autoread"),t=0;return!i&&e&&(t=_),e?{extraItems:t}:{}})(),{role:"grid",itemRole:"row","aria-rowcount":(t=a==null?void 0:a.length)!=null?t:0,viewportXstyles:f.flatListViewport}))})})},a})(p);b.contextType=r("WAWebKeyboardContext"),b.defaultProps={chats:[],commonGroups:[]};function v(e){var t=e.header,n=e.testid,o=e.xstyle;return m.jsx(r("WAWebSectionHeader.react"),{testid:void 0,header:t,xstyle:[f.sectionHeader,o],uppercase:!1})}v.displayName=v.name+" [from "+i.id+"]";var S=o("WAWebListenerHoc_DEPRECATED").ListenerHOC(r("WAWebTimerHoc_DEPRECATED.react")(b)),R=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.focusFirst=function(){return this.getComponent().focusFirst()},t})(S);l.default=R}),226); __d("WAWebCommandModel",["WAWebBaseModel"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a0&&(p?d.jsx(r("WDSMenuBarItem.react"),{icon:o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,title:s._(/*BTDS*/"Men\u00fa"),wdsMenuToRender:y,testid:void 0,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER}):d.jsx(o("WAWebMenuBar.react").MenuBar,{children:d.jsx(o("WAWebMenuBar.react").MenuBarVelocityTransitionGroup,{transitionName:"dropdown",children:d.jsx(o("WAWebMenuBar.react").MenuBarItem,{testid:void 0,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHATLIST_HEADER,icon:d.jsx(o("WAWebMoreRefreshedIcon.react").MoreRefreshedIcon,{}),title:s._(/*BTDS*/"Men\u00fa"),dropdownMenu:{menu:y,type:o("WAWebDropdown.react").MenuType.Dropdown,flipOnRTL:!0,key:"MultiSelectOverflowMenu",dirX:o("WAWebDropdown.react").DirX.RIGHT,dirY:o("WAWebDropdown.react").DirY.BOTTOM,testid:"multi-select-bar-header-overflow-menu"}})})},"multi-select-bar-header"))]}))}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebDesktopUpsellEvents",["WAWebTypedEventEmitter"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){return e.apply(this,arguments)||this}return babelHelpers.inheritsLoose(t,e),t})(r("WAWebTypedEventEmitter")),s=new e;l.WAWebDesktopUpsellEvents=s}),98); __d("WAWebDesktopUpsellWASquareIcon.react",["WAWebDesktopUpsellUtils","WAWebUISpacing","WAWebWaSquareIconIcon.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u={icon:{marginInlineStart:"x8sq2zk",$$css:!0},macIcon:{borderStartStartRadius:"x16qb05n",borderStartEndRadius:"xi7iut8",borderEndEndRadius:"x1dm3dyd",borderEndStartRadius:"x1pv694p",$$css:!0}};function c(){var e=o("WAWebDesktopUpsellUtils").getUserDesktopOs();return s.jsx(o("WAWebWaSquareIconIcon.react").WaSquareIconIcon,{height:40,xstyle:[u.icon,o("WAWebUISpacing").uiMargin.end8],iconXstyle:e===o("WAWebDesktopUpsellUtils").UserDesktopOs.MACOS?u.macIcon:null})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebToastbar.react",["fbt","WAWebClickable.react","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebTabOrder","WAWebUISpacing","WAWebVelocityTransitionGroup","WDSFocusStateStyles","WDSIconIcClose.react","WDSTooltip.react","react","useHoverState","useWAWebFocusState"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState,m=24,p={container:{position:"x10l6tqk",bottom:"x1ey2m1c",zIndex:"xoz0ns6",width:"xh8yej3",backgroundColor:"x1280gxy",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",$$css:!0},childrenContainer:{display:"x3nfvp2",$$css:!0},icon:{color:"xhslqc4",$$css:!0}};function _(e){var t=e.alwaysShowDismissBtn,n=e.children,a=e.childrenXStyle,i=e.dismissible,l=e.dismissXstyle,u=e.hidden,_=u===void 0?!1:u,f=e.onClick,g=e.onDismiss,h=e.wrapperXstyle,y=d(!1),C=y[0],b=y[1],v=r("useHoverState")(),S=v.isHovered,R=v.onMouseEnter,L=v.onMouseLeave,E=r("useWAWebFocusState")(),k=E[0],I=E[1],T=r("useWAWebFocusState")(),D=T[0],x=T[1],$=s._(/*BTDS*/"Descartar"),P=c.jsx(r("WDSTooltip.react"),{label:$,children:c.jsx(r("WDSIconIcClose.react"),{height:m,"aria-label":$,xstyle:p.icon})}),N=null;if(!C&&!_){var M=!t&&!S&&!I&&!x?null:c.jsx(o("WAWebClickable.react").Clickable,{ref:D,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHAT_LIST,onClick:function(t){t==null||t.preventDefault(),t==null||t.stopPropagation(),b(!0),g==null||g()},children:P});N=c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",justify:"all",xstyle:[o("WAWebUISpacing").uiPadding.top12,o("WAWebUISpacing").uiPadding.bottom10,p.container,h],children:[c.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[o("WAWebUISpacing").uiMargin.start13,p.childrenContainer,I&&o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus,a],align:"center",justify:"center",grow:1,children:n}),i===!0&&c.jsx(o("WAWebFlex.react").FlexItem,{xstyle:[o("WAWebUISpacing").uiMargin.end20,l],grow:0,shrink:0,basis:m,children:c.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"noop",children:M})})]})}return c.jsx(o("WAWebClickable.react").Clickable,{ref:k,"data-tab":o("WAWebTabOrder").TAB_ORDER.CHAT_LIST,onClick:f,children:c.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{onMouseEnter:R,onMouseLeave:L,children:c.jsx(r("WAWebVelocityTransitionGroup"),{component:"div",transitionName:"toast-transition",children:N})})})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebMacBetaUpsellToastbar.react",["fbt","WAWebDesktopUpsellStoreOpener","WAWebFlex.react","WAWebText.react","WAWebToastbar.react","WAWebUserPrefsStore","WAWebWaSquareIconIcon.react","WAWebWamEnumWebcNativeUpsellCtaEventType","WAWebWamEnumWebcNativeUpsellCtaReleaseChannel","WAWebWebcNativeUpsellCtaWamEvent","react","useWAWebDesktopUpsellWamImpression"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useState,_={wrapperXstyle:{insetInlineStart:"x1o0tod",left:null,right:null,justifyContent:"xlqzeqv",width:"xh8yej3",boxSizing:"x9f619",paddingInlineStart:"x13jy36j",paddingInlineEnd:"xziim83",paddingTop:"xz9dl7a",paddingBottom:"xsag5q8",$$css:!0},childrenXStyle:{flexGrow:"x1iyjqo2",marginInlineStart:"x1lziwak",$$css:!0},body:{columnGap:"x1vg3z9j",width:"xh8yej3",$$css:!0},waIcon:{width:"x1useyqa",alignItems:"x6s0dn4",$$css:!0},iconXstyle:{borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",$$css:!0},dismissXstyle:{marginInlineEnd:"x14z9mp",$$css:!0}},f="mac_beta_upsell_dismiss";function g(e){var t=e.sourceType,n=p(r("WAWebUserPrefsStore").getUser(f)===!0),a=n[0],i=n[1],l=m(function(){r("WAWebUserPrefsStore").setUser(f,!0),i(!0)},[]),u=function(){new(o("WAWebWebcNativeUpsellCtaWamEvent")).WebcNativeUpsellCtaWamEvent({webcNativeUpsellCtaEventType:o("WAWebWamEnumWebcNativeUpsellCtaEventType").WEBC_NATIVE_UPSELL_CTA_EVENT_TYPE.CTA_DISMISS,webcNativeUpsellCtaSource:t,webcNativeUpsellCtaReleaseChannel:o("WAWebWamEnumWebcNativeUpsellCtaReleaseChannel").WEBC_NATIVE_UPSELL_CTA_RELEASE_CHANNEL.BETA,webcNativeUpsellCtaIsBetaUser:!0}).commit(),l()};return o("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:!a,source:t,isBeta:!0,isBetaUser:!0}),a?null:d.jsx(r("WAWebToastbar.react"),{onClick:function(){o("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:t,isBetaUpsell:!0,isBetaUser:!0}),window.setTimeout(function(){l()},1e3)},dismissible:!0,onDismiss:u,alwaysShowDismissBtn:!0,dismissXstyle:_.dismissXstyle,wrapperXstyle:_.wrapperXstyle,childrenXStyle:_.childrenXStyle,children:d.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:_.body,align:"center",children:[d.jsx(o("WAWebFlex.react").FlexColumn,{shrink:0,xstyle:_.waIcon,children:d.jsx(o("WAWebWaSquareIconIcon.react").WaSquareIconIcon,{height:32,iconXstyle:_.iconXstyle})}),d.jsxs(o("WAWebFlex.react").FlexColumn,{grow:1,justify:"center",align:"start",children:[d.jsx(o("WAWebFlex.react").FlexRow,{children:d.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:s._(/*BTDS*/"Descarga la versi\u00f3n beta de la aplicaci\u00f3n para Mac")})}),d.jsx(o("WAWebFlex.react").FlexRow,{children:d.jsx(o("WAWebText.react").WAWebTextMutedRefreshed,{children:s._(/*BTDS*/"Prueba nuevas funciones y comparte tus opiniones")})})]})]})})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226); __d("WAWebDesktopUpsellChatlistToastbar.react",["WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellEvents","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebDesktopUpsellWASquareIcon.react","WAWebMacBetaUpsellToastbar.react","WAWebText.react","WAWebToastbar.react","WAWebUserPrefsKeys","WAWebUserPrefsStore","WAWebWamEnumWebcNativeUpsellCtaEventType","WAWebWamEnumWebcNativeUpsellCtaReleaseChannel","WAWebWamEnumWebcNativeUpsellCtaSourceType","WAWebWebcNativeUpsellCtaWamEvent","cr:23046","react","useWAWebDesktopUpsellWamImpression","useWAWebExternalBetaOptIn","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useState,d={textWrapper:{lineHeight:"xo5v014",$$css:!0}};function m(){var e,t=o("WAWebDesktopUpsellUtils").getUserDesktopOs(),a=o("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck(),i=(e=n("cr:23046")==null?void 0:n("cr:23046").isWindowsHybridEnabled())!=null?e:!1,l=!i&&a,s=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),m=s[0],f=o("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),g=c(!0),h=g[0],y=g[1];o("useWAWebListener").useListener(o("WAWebDesktopUpsellEvents").WAWebDesktopUpsellEvents,"conversation_panel_ui_change",function(e){y(e.conversationPanelVisible)});var C=p(),b=l===!0&&t!=null&&!C&&!f,v=o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.BUTTERBAR;return o("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:b&&!f,source:v,isBeta:f,isBetaUser:m}),f?u.jsx(r("WAWebMacBetaUpsellToastbar.react"),{sourceType:v}):b?u.jsxs(r("WAWebToastbar.react"),{hidden:!h,dismissible:!0,onClick:function(){o("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:v,isBetaUser:m})},onDismiss:function(){_(),new(o("WAWebWebcNativeUpsellCtaWamEvent")).WebcNativeUpsellCtaWamEvent({webcNativeUpsellCtaEventType:o("WAWebWamEnumWebcNativeUpsellCtaEventType").WEBC_NATIVE_UPSELL_CTA_EVENT_TYPE.CTA_DISMISS,webcNativeUpsellCtaSource:v,webcNativeUpsellCtaReleaseChannel:o("WAWebWamEnumWebcNativeUpsellCtaReleaseChannel").WEBC_NATIVE_UPSELL_CTA_RELEASE_CHANNEL.PRODUCTION,webcNativeUpsellCtaIsBetaUser:m}).commit()},children:[u.jsx(r("WAWebDesktopUpsellWASquareIcon.react"),{}),u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",color:"teal",xstyle:d.textWrapper,children:o("WAWebDesktopUpsellCommonStrings").getDesktopUpsellToastbarLabel(!1)})]}):null}m.displayName=m.name+" [from "+i.id+"]";function p(){var e=r("WAWebUserPrefsStore").get(o("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_DISMISSED_CHATLIST_TOASTBAR);return!!e}function _(){r("WAWebUserPrefsStore").set(o("WAWebUserPrefsKeys").KEYS.DESKTOP_UPSELL_USER_HAS_DISMISSED_CHATLIST_TOASTBAR,!0)}l.default=m}),98); __d("WAWebDesktopUpsellSearchToastbar.react",["fbt","WAWebDesktopUpsellCommonStrings","WAWebDesktopUpsellPlatformAwareHooks","WAWebDesktopUpsellStoreOpener","WAWebDesktopUpsellUtils","WAWebDesktopUpsellWASquareIcon.react","WAWebFlex.react","WAWebText.react","WAWebToastbar.react","WAWebWamEnumWebcNativeUpsellCtaSourceType","cr:23046","react","useWAWebDesktopUpsellWamImpression","useWAWebExternalBetaOptIn"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={textWrapper:{lineHeight:"xo5v014",$$css:!0},toastbar:{justifyContent:"xl56j7k",$$css:!0}};function d(){var e,t=o("WAWebDesktopUpsellUtils").getUserDesktopOs(),a=o("WAWebDesktopUpsellPlatformAwareHooks").useWAWebDesktopUpsellPlatformCheck(),i=(e=n("cr:23046")==null?void 0:n("cr:23046").isWindowsHybridEnabled())!=null?e:!1,l=!i&&a,d=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),m=d[0],p=o("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb();return o("useWAWebDesktopUpsellWamImpression").useWAWebDesktopUpsellWamImpression({isCtaVisible:l===!0,source:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SEARCH_RESULTS,isBeta:p,isBetaUser:m}),l!==!0||t==null?null:u.jsxs(r("WAWebToastbar.react"),{onClick:function(){o("WAWebDesktopUpsellStoreOpener").openExternalWhatsAppDesktopDownloadUrl({ctaSource:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SEARCH_RESULTS,isBetaUpsell:p,isBetaUser:m})},wrapperXstyle:c.toastbar,children:[u.jsx(r("WAWebDesktopUpsellWASquareIcon.react"),{}),u.jsxs(o("WAWebFlex.react").FlexColumn,{children:[u.jsx(o("WAWebFlex.react").FlexItem,{children:u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:s._(/*BTDS*/"Acceder a un historial de chats m\u00e1s amplio en la aplicaci\u00f3n")})}),u.jsx(o("WAWebFlex.react").FlexItem,{inline:!0,children:u.jsx(o("WAWebText.react").WAWebTextMuted,{as:"span",xstyle:c.textWrapper,children:o("WAWebDesktopUpsellCommonStrings").getDesktopUpsellToastbarLabel(p)})})]})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebFilterSession",[],(function(t,n,r,o,a,i){var e=(function(){function e(){this.initSessionId()}var t=e.prototype;return t.initSessionId=function(){this.sessionId=this.newSessionId()},t.newSessionId=function(){return this.sessionId=Math.floor(2147483648*Math.random()),this.sessionId},e})();i.default=e}),66); __d("WAWebFtsMsgsCallLogCollection",["WAWebContactCollection","WAWebFtsMsgsChatlessCollection","WAWebMsgCollection","WAWebPhoneNumberSearch","WAWebUserPrefsMeUser","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var r=t.prototype;return r.getNextMsgs=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){return o("WAWebMsgCollection").MsgCollection.getVoipCallLogMsgs(e,t)});function t(t,n){return e.apply(this,arguments)}return t})(),r.filterMsgs=function(t,n){var e=t.filter(function(e){var t,n=e.callParticipants;if(n==null)return!0;var r=(t=n.some(function(e){return e.participant.isLid()}))!=null?t:!1,a=r?o("WAWebUserPrefsMeUser").getMeLidUserOrThrow():o("WAWebUserPrefsMeUser").getMePnUserOrThrow();return n.some(function(e){return!e.participant.equals(a)})});return n===""?e:e.filter(function(e){var t,r=o("WAWebPhoneNumberSearch").numberSearch(n),a=o("WAWebContactCollection").ContactCollection.get(e.from);return(t=a==null?void 0:a.searchMatchExact(n,r))!=null?t:!1})},t})(r("WAWebFtsMsgsChatlessCollection"));l.default=e}),98); __d("WAWebFtsMsgsCollection",["WAWebAppTracker","WAWebChatMessageSearch","WAWebFtsMsgsCollectionBase","WAWebMsgCollection","WAWebUiActionWamEvent","WAWebWamEnumUiActionType","WAWebWamPrivateStatsUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(t){var n=t?t.msgs:o("WAWebMsgCollection").MsgCollection;return e.call(this,n)||this}babelHelpers.inheritsLoose(t,e);var r=t.prototype;return r.searchImpl=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n,r,a){return n===void 0&&(n=1),e?o("WAWebChatMessageSearch").fts(e,t,n,r):o("WAWebMsgCollection").MsgCollection.search(t,n,r,void 0,a)});function t(t,n,r,o,a){return e.apply(this,arguments)}return t})(),r.onSeachPromiseComplete=function(t){var e=new(o("WAWebUiActionWamEvent")).UiActionWamEvent({uiActionType:o("WAWebWamEnumUiActionType").UI_ACTION_TYPE.FIRST_FTS_RESULT,uiActionPreloaded:t});e.markUiActionT(),o("WAWebAppTracker").attachWAMAppContext(e,e.uiActionT),e.commit(),o("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()},t})(r("WAWebFtsMsgsCollectionBase"));l.default=e}),98); __d("WAWebContentPlaceholder.react",["WAWebMediaHubGating","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={main:{fontSize:"x1f6kntn",fontWeight:"xk50ysn",lineHeight:"xdod15v",color:"x14ug900",$$css:!0},mdChatSearchList:{justifyContent:"xlqzeqv",paddingTop:"x1xy6bms",paddingInlineEnd:"xv54qhq",paddingBottom:"xsag5q8",paddingInlineStart:"xf7dkkf",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",$$css:!0},mdChatSearchListMain:{fontSize:"x1f6kntn",fontWeight:"xo1l8bm",lineHeight:"x1fc57z9",color:"xhslqc4",textAlign:"x2b8uid",$$css:!0},themeReportedMsgMainComponentColor:{color:"xhslqc4",$$css:!0},starredMsgsDrawerEmpty:{backgroundColor:"x1280gxy",$$css:!0}};function d(e){switch(e){case"list":return"xlqzeqv xz9dl7a x1q3ajuy xsag5q8 xbmws1g x178xt8z x13fuv20 xx42vgk";case"md-chat-search-list":return"xlqzeqv x1xy6bms xv54qhq xsag5q8 xf7dkkf x178xt8z x13fuv20 xx42vgk";case"reported-msg":return"x1yrsyyn x11lfxj5 xjkvuk6 x135b78x x972fbf";case"starred-msgs-drawer-empty":return(s||(s=r("stylex")))([c.starredMsgsDrawerEmpty,c.mdChatSearchList]);case"media-gallery-follow":return"x2b8uid x1xrf6ya xde1mab xscbp6u x1iw51ew";case"media-gallery-footer":return"x2b8uid x178xt8z x13fuv20 xx42vgk xv8gdss xgb8hzy"}}function m(e){switch(e){case"md-chat-search-list":case"starred-msgs-drawer-empty":return(s||(s=r("stylex")))([c.main,c.mdChatSearchListMain]);case"reported-msg":return(s||(s=r("stylex")))([c.main,c.themeReportedMsgMainComponentColor]);case"list":return(s||(s=r("stylex")))([c.main]);case"media-gallery-footer":return(s||(s=r("stylex")))([c.main]);case"media-gallery-follow":return(s||(s=r("stylex")))([c.main])}}function p(e){var t=e.children,n=e.hideBorder,r=n===void 0?!1:n,a=e.secondary,i=e.theme,l=a!=null?u.jsx("div",{className:"x1nxh6w3 x17fgdl5 xhslqc4",children:a}):null,s;o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled()?s=i==="media-gallery-footer"&&r?"":d(i):s=d(i);var c=m(i);return u.jsx("div",{className:s,children:u.jsxs("div",{className:"xkz0k9k x6ikm8r x10wlt62",children:[u.jsx("div",{className:c,children:t}),l]})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("useWAWebHistorySyncProgressValues",["WAWebHistorySyncProgressModel","useWAWebCollectionValues"],(function(t,n,r,o,a,i,l){function e(e){return o("useWAWebCollectionValues").useModelGetterValues(o("WAWebHistorySyncProgressModel").getHistorySyncProgressModel(),e)}l.useHistorySyncProgressValues=e}),98); __d("WAWebHistorySyncInProgressPopup.react",["fbt","WAWebConfirmPopup.react","WAWebFaqUrl","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebModal.react","WAWebModalManager","WAWebProgressBar.react","WAWebText_DONOTUSE.react","react","useWAWebHistorySyncProgressValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c="x1gnekcx-B",d={body:{fontWeight:"xo1l8bm",fontSize:"x1jchvi3",lineHeight:"x1xet1wb",color:"x19q65qo",$$css:!0}};function m(){var e=o("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([o("WAWebHistorySyncProgressGetters").getProgress]),t=e[0];return u.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{type:o("WAWebModal.react").ModalTheme.HistorySyncProgress,title:o("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_MODAL_TITLE(),cancelText:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),onOK:o("WAWebModalManager").closeModalManager,onCancel:f,children:[u.jsx(p,{progress:t}),u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:d.body,children:o("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_MODAL_TEXT()})]})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.progress,n=t;return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"xz9dl7a xod5an3 x78zum5 xdt5ytf",children:n==null?u.jsx(_,{}):u.jsx(r("WAWebProgressBar.react"),{value:n,max:100})}),u.jsx(o("WAWebText_DONOTUSE.react").TextDiv,{color:"dark",size:"12",className:"x1kpxq89 xieb3on",children:n==null?"":o("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_MODAL_PERCENT(n)})]})}p.displayName=p.name+" [from "+i.id+"]";function _(){return u.jsx("div",{className:"x1izncso x7t6ubo xa4qsjk xc0ps8e xgbwgrv xuoj239"})}_.displayName=_.name+" [from "+i.id+"]";function f(){window.open(o("WAWebFaqUrl").getMessageHistoryOnLinkedDevicesFAQUrl())}l.default=m}),226); __d("WAWebHistorySyncComponents.react",["fbt","WAWebChatConstants","WAWebClock","WAWebContentPlaceholder.react","WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebMediaHubGating","WAWebModalManager","WAWebUserPrefsHistorySync","react","useWAWebHistorySyncProgressValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chat,n=e.theme,a=n===void 0?"list":n,i=u.jsx(h,{chat:t,Paused:o("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:g,Complete:y}),l;return o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled()&&(l=(t==null?void 0:t.endOfHistoryTransferType)===o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY),u.jsx(r("WAWebContentPlaceholder.react"),{theme:a,secondary:i,hideBorder:l})}c.displayName=c.name+" [from "+i.id+"]";function d(){return u.jsx(r("WAWebContentPlaceholder.react"),{theme:"md-chat-search-list",children:u.jsx(h,{Paused:o("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:g,Complete:function(){return s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para ver mensajes y chats anteriores.")}})})}d.displayName=d.name+" [from "+i.id+"]";function m(){return u.jsx(h,{Paused:o("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:g,Complete:function(){return s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para ver mensajes y chats anteriores.")}})}m.displayName=m.name+" [from "+i.id+"]";function p(){return u.jsx(h,{Paused:o("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:g,Complete:function(){return s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para ver mensajes anteriores al {date}.",[s._param("date",f())])}})}p.displayName=p.name+" [from "+i.id+"]";function _(){return u.jsx(r("WAWebContentPlaceholder.react"),{theme:"md-chat-search-list",children:u.jsx(h,{Paused:o("WAWebHistorySyncUIText").SYNCING_PAUSED_CONTEXTUAL_TEXT,InProgress:g,Complete:function(){return s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para buscar mensajes anteriores al {date}.",[s._param("date",f())])}})})}_.displayName=_.name+" [from "+i.id+"]";function f(){return o("WAWebClock").Clock.relativeDateStr(o("WAWebUserPrefsHistorySync").getHistorySyncEarliestDate())}function g(){return o("WAWebHistorySyncUIText").SYNC_IN_PROGRESS_CONTEXTUAL_DRAWER(function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebHistorySyncInProgressPopup.react"),{}))})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=o("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([o("WAWebHistorySyncProgressGetters").getPaused,o("WAWebHistorySyncProgressGetters").getInProgress]),n=t[0],r=t[1];if(e.chat&&e.chat.endOfHistoryTransferType===o("WAWebChatConstants").ConversationEndOfHistoryTransferModelPropType.COMPLETE_AND_NO_MORE_MESSAGE_REMAIN_ON_PRIMARY)return null;var a=e.Complete,i=e.InProgress,l=e.Paused;return r?n?u.jsx(l,{}):u.jsx(i,{}):u.jsx(a,{})}h.displayName=h.name+" [from "+i.id+"]";function y(){return s._(/*BTDS*/"Usa WhatsApp en tu tel\u00e9fono para ver mensajes anteriores al {date}.",[s._param("date",f())])}y.displayName=y.name+" [from "+i.id+"]",l.HistorySyncGalleryPlaceholder=c,l.HistorySyncSearchIncompletePlaceholder=d,l.HistorySyncStarredMsgsPlaceholderText=m,l.HistorySyncChatStarredMsgsPlaceholderText=p,l.HistorySyncChatSearchIncompletePlaceholder=_}),226); __d("WAWebCustomLabel3pdEventQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"custom_labels"},{defaultValue:null,kind:"LocalArgument",name:"expt_group"}],t=[{alias:null,args:[{kind:"Variable",name:"custom_labels",variableName:"custom_labels"},{kind:"Variable",name:"expt_group",variableName:"expt_group"}],concreteType:"XWACustomLabelTo3PDEvent",kind:"LinkedField",name:"xwa_get_3pd_event",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"custom_label",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ctwa_3pd_conversion_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ctwa_3pd_conversion_subtype",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"ctwa_3pd_conversion_metadata",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebCustomLabel3pdEventQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebCustomLabel3pdEventQuery",selections:t},params:{id:"24247439618185103",metadata:{},name:"WAWebCustomLabel3pdEventQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebCustomLabel3pdEventQuery",["WALogger","WAWebCustomLabel3pdEventQuery.graphql","WAWebGraphQLServerError","WAWebNetworkStatus","WAWebRelayClient","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c={type:"error"},d=e!==void 0?e:e=n("WAWebCustomLabel3pdEventQuery.graphql");function m(e,t){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){yield r("WAWebNetworkStatus").waitIfOffline();try{var n=yield o("WAWebRelayClient").fetchQuery(d,{custom_labels:e,expt_group:t});if(n==null)return c;var a=n.xwa_get_3pd_event;if(a==null)return c;var i={type:"success",events:a.map(function(e){var t;return{custom_label:(t=e.custom_label)!=null?t:"",ctwa_3pd_conversion_type:e.ctwa_3pd_conversion_type,ctwa_3pd_conversion_subtype:e.ctwa_3pd_conversion_subtype,ctwa_3pd_conversion_metadata:e.ctwa_3pd_conversion_metadata}})};return o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["getCustomLabel3pdEvent: success"]))),i}catch(e){return o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["getCustomLabel3pdEvent: failed with error"]))),e instanceof o("WAWebGraphQLServerError").GraphQLServerError?{type:"graphql-error",error:e}:c}}),p.apply(this,arguments)}l.getCustomLabel3pdEvent=m}),98); __d("WAWebWamEnumCtwaDirectionFrom",[],(function(t,n,r,o,a,i){var e=Object.freeze({CUSTOMER:0,BUSINESS:1});i.CTWA_DIRECTION_FROM=e}),66); __d("WAWebCtwa3pdConversionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumCtwaDirectionFrom"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({Ctwa3pdConversion:[5138,{ctwa3pdConversionMetadata:[1,e.TYPES.STRING],ctwa3pdConversionSubtype:[2,e.TYPES.STRING],ctwa3pdConversionType:[3,e.TYPES.STRING],ctwa3pdSchemaVersion:[4,e.TYPES.INTEGER],ctwa3pdSurfaceType:[5,e.TYPES.STRING],ctwaConversationDepth:[8,e.TYPES.INTEGER],ctwaConversationRepeat:[9,e.TYPES.INTEGER],ctwaDirectionFrom:[10,o("WAWebWamEnumCtwaDirectionFrom").CTWA_DIRECTION_FROM],ctwaSignals:[7,e.TYPES.STRING],ctwaTrackingPayload:[6,e.TYPES.STRING]},[1,1,1],"regular"]},{Ctwa3pdConversion:[]});l.Ctwa3pdConversionWamEvent=s}),98); __d("WAWebSmb3pdConversionSignalAction",["WALogger","WASmaxInBizSettingsEnums","WATimeUtils","WAWebBizGatingUtils","WAWebCTWAConstants","WAWebCTWADataSharingModel","WAWebChatModel","WAWebCommonCTWADataSharing","WAWebCtwa3pdConversionWamEvent","WAWebDownloads3PDSignalsDatabaseApi","WAWebFrontendMsgGetters","WAWebLabelCollection","WAWebMsgModel","WAWebOrderStatus"],(function(t,n,r,o,a,i,l){var e,s=function(t,n){if(n==="order_created"||t==null)return"processing";switch(t){case o("WAWebOrderStatus").OrderStatus.Shipped:return"shipped";case o("WAWebOrderStatus").OrderStatus.Complete:case o("WAWebOrderStatus").OrderStatus.Delivered:return"completed";case o("WAWebOrderStatus").OrderStatus.Canceled:return"canceled";case o("WAWebOrderStatus").OrderStatus.Processing:case o("WAWebOrderStatus").OrderStatus.Pending:case o("WAWebOrderStatus").OrderStatus.PartiallyShipped:case o("WAWebOrderStatus").OrderStatus.PreparingToShip:case o("WAWebOrderStatus").OrderStatus.PaymentRequested:case o("WAWebOrderStatus").OrderStatus.Confirmed:case o("WAWebOrderStatus").OrderStatus.Delayed:case o("WAWebOrderStatus").OrderStatus.Failed:case o("WAWebOrderStatus").OrderStatus.OutForDelivery:case o("WAWebOrderStatus").OrderStatus.Refunded:return"processing"}},u=function(n,a){var t=n.chat,i=n.orderStatus,l=n.paidData,u=n.subType,c=n.surface,d=n.type,m=r("WAWebCommonCTWADataSharing").getCTWAEligibilityFromChat(t),p=r("WAWebCommonCTWADataSharing").getCTWASignalsValueFromChat(t);if(m!=null&&o("WAWebCTWADataSharingModel").CTWADataSharingModel.getValue()===o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.true){var _=u==null?s(i!=null?i:null,d):u,f=JSON.stringify(l),g={ctwa3pdSchemaVersion:2,ctwa3pdSurfaceType:c,ctwa3pdConversionType:d,ctwa3pdConversionSubtype:_,ctwa3pdConversionMetadata:f,ctwaSignals:p!=null?p:void 0};if(m.data!=null&&(g.ctwaTrackingPayload=m.data),o("WAWebBizGatingUtils").isDownload3PDSignalsEnabled()){var h;o("WAWebDownloads3PDSignalsDatabaseApi").addOrEdit3PDSignal({clickId:(h=g.ctwaTrackingPayload)!=null?h:"",ctwa3pdConversionType:d,ctwa3pdConversionSubtype:_,ctwa3pdConversionMetadata:f,timestamp:o("WATimeUtils").unixTimeMs()}).catch(function(t){return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["addOrEdit3PDSignal: failed to add 3PD signal to the database"]))),null})}a&&new(o("WAWebCtwa3pdConversionWamEvent")).Ctwa3pdConversionWamEvent(g).commit()}},c=function(t,n,r,a){var e=o("WAWebLabelCollection").LabelCollection.get(t);if(e!=null){var i=e.predefinedId;if(i!=null&&!(!o("WAWebCTWAConstants").ALLOWED_PREDEFINED_LABEL_IDS_SET.has(i)&&!(i===o("WAWebCTWAConstants").NEW_CUSTOMER_PREDEFINED_ID&&o("WAWebBizGatingUtils").is3pdSignalNewCustomerEnabled()||i===o("WAWebCTWAConstants").IMPORTANT_PREDEFINED_ID&&o("WAWebBizGatingUtils").is3pdImportantLabelSignalsEnabled()))){var l;i===o("WAWebCTWAConstants").FOLLOW_UP_PREDEFINED_ID||i===o("WAWebCTWAConstants").LEAD_PREDEFINED_ID||i===o("WAWebCTWAConstants").IMPORTANT_PREDEFINED_ID?l="lead_created":i===o("WAWebCTWAConstants").ALLOWED_PREDEFINED_LABEL_IDS.NEW_ORDER||i===o("WAWebCTWAConstants").NEW_CUSTOMER_PREDEFINED_ID?l="order_created":l="order_updated";var s,c={};switch(i){case o("WAWebCTWAConstants").NEW_CUSTOMER_PREDEFINED_ID:s="new_customer",c={paid:!1};break;case o("WAWebCTWAConstants").ALLOWED_PREDEFINED_LABEL_IDS.ORDER_COMPLETE:s="order_complete",c={paid:!1};break;case o("WAWebCTWAConstants").ALLOWED_PREDEFINED_LABEL_IDS.NEW_ORDER:s="new_order",c={paid:!1};break;case o("WAWebCTWAConstants").ALLOWED_PREDEFINED_LABEL_IDS.PAID:s="paid",c={paid:!0};break;case o("WAWebCTWAConstants").ALLOWED_PREDEFINED_LABEL_IDS.PENDING_PAYMENT:s="pending_payment",c={paid:!1};break;case o("WAWebCTWAConstants").FOLLOW_UP_PREDEFINED_ID:s="follow_up";break;case o("WAWebCTWAConstants").LEAD_PREDEFINED_ID:s="lead";break;case o("WAWebCTWAConstants").IMPORTANT_PREDEFINED_ID:s="important",c={paid:!1};break}u({paidData:c,chat:n,surface:r,type:l,subType:s},a)}}},d=function(t,n){var e=t.chat,r=t.isPaidStateChanged,a=t.orderStatus,i=t.paidData,l=t.type;if(o("WAWebBizGatingUtils").smbDataSharingConsentEnabled()){var s={surface:"order",chat:e,type:l,orderStatus:a,paidData:i};r===!0&&(s.subType="paid_change"),u(s,n)}},m=function(t,n,r){var e="label_chat";t.forEach(function(t){n.forEach(function(n){c(n,t,e,r)})})},p=function(t,n,r){var e="label_chat";t.forEach(function(t){n.forEach(function(n){var o=n.ctwa_3pd_conversion_subtype,a=n.ctwa_3pd_conversion_type;if(!(!a||!o)){var i=JSON.parse(n.ctwa_3pd_conversion_metadata);u({paidData:i,chat:t,surface:e,type:a,subType:o},r)}})})},_=function(t,n,r){var e="label_message";t.forEach(function(t){var a=o("WAWebFrontendMsgGetters").getChat(t);n.forEach(function(t){c(t,a,e,r)})})},f=function(t,n,r,a){if(t.length!==0){var e=t.reduce(function(e,t){return t instanceof o("WAWebChatModel").Chat?e.chats.push(t):t instanceof o("WAWebMsgModel").Msg&&e.messages.push(t),e},{chats:[],messages:[]}),i=e.chats,l=e.messages;n!=null&&n.length>0&&(i.length>0&&o("WAWebBizGatingUtils").isSMBLabelsDataSharingEnabledForChats()&&m(i,n,r),l.length>0&&o("WAWebBizGatingUtils").isSMBLabelsDataSharingEnabledForMessages()&&_(l,n,r)),a!=null&&a.length>0&&i.length>0&&o("WAWebBizGatingUtils").isSMBLabelsDataSharingEnabledForChats()&&p(i,a,r)}};l.log3pdConversionSignalForOrders=d,l.log3pdConversionSignalForChatsOrMessages=f}),98); __d("WAWebWamEnumCtwaLabelTarget",[],(function(t,n,r,o,a,i){var e=Object.freeze({CHAT:0,MESSAGE:1});i.CTWA_LABEL_TARGET=e}),66); __d("WAWebWamEnumCustomerAdsSharingSettingEnabled",[],(function(t,n,r,o,a,i){var e=Object.freeze({UNSET:0,TRUE:1,FALSE:2});i.CUSTOMER_ADS_SHARING_SETTING_ENABLED=e}),66); __d("WAWebCtwaLabelSignalWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumCtwaLabelTarget","WAWebWamEnumCtwaLabelType","WAWebWamEnumCustomerAdsSharingSettingEnabled"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({CtwaLabelSignal:[4662,{ctwaConversationDepth:[11,e.TYPES.INTEGER],ctwaLabelSignalVersion:[1,e.TYPES.INTEGER],ctwaLabelTarget:[2,o("WAWebWamEnumCtwaLabelTarget").CTWA_LABEL_TARGET],ctwaLabelType:[3,o("WAWebWamEnumCtwaLabelType").CTWA_LABEL_TYPE],ctwaSignalMetadata:[9,e.TYPES.STRING],customerAdsSharingSettingEnabled:[10,o("WAWebWamEnumCustomerAdsSharingSettingEnabled").CUSTOMER_ADS_SHARING_SETTING_ENABLED],deepLinkConversionData:[4,e.TYPES.STRING],deepLinkConversionSource:[5,e.TYPES.STRING],eventSharingSettingEnabled:[6,e.TYPES.BOOLEAN],globalSharingSettingEnabled:[7,e.TYPES.BOOLEAN],threadIdHmac:[8,e.TYPES.STRING]},[1,1,1],"regular"]},{CtwaLabelSignal:[]});l.CtwaLabelSignalWamEvent=s}),98); __d("WAWebSmbMarkAsXLabelAction",["WALogger","WASmaxInBizSettingsEnums","WAWebBizGatingUtils","WAWebCTWAConstants","WAWebCTWADataSharingModel","WAWebChatModel","WAWebCommonCTWADataSharing","WAWebCtwaLabelSignalWamEvent","WAWebFrontendMsgGetters","WAWebLabelCollection","WAWebLabelConstants","WAWebMsgModel","WAWebWamEnumCtwaLabelTarget","WAWebWamEnumCtwaLabelType","WAWebWamEnumCustomerAdsSharingSettingEnabled"],(function(t,n,r,o,a,i,l){var e,s,u,c=new Map([[(s=o("WAWebCTWAConstants")).ALLOWED_PREDEFINED_LABEL_IDS.NEW_ORDER,(u=o("WAWebWamEnumCtwaLabelType")).CTWA_LABEL_TYPE.NEW_ORDER],[s.ALLOWED_PREDEFINED_LABEL_IDS.PENDING_PAYMENT,u.CTWA_LABEL_TYPE.PENDING_PAYMENT],[s.ALLOWED_PREDEFINED_LABEL_IDS.PAID,u.CTWA_LABEL_TYPE.PAID],[s.ALLOWED_PREDEFINED_LABEL_IDS.ORDER_COMPLETE,u.CTWA_LABEL_TYPE.ORDER_COMPLETE],[s.ALLOWED_PREDEFINED_LABEL_IDS.FOLLOW_UP,u.CTWA_LABEL_TYPE.FOLLOW_UP],[s.ALLOWED_PREDEFINED_LABEL_IDS.LEAD,u.CTWA_LABEL_TYPE.LEAD]]),d={globalSharingSettingEnabled:!1},m=function(t){return t===o("WAWebWamEnumCtwaLabelType").CTWA_LABEL_TYPE.FOLLOW_UP||t===o("WAWebWamEnumCtwaLabelType").CTWA_LABEL_TYPE.LEAD?{}:t===o("WAWebWamEnumCtwaLabelType").CTWA_LABEL_TYPE.PAID?{paid:!0}:{paid:!1}},p=function(t){var e=o("WAWebCTWADataSharingModel").CTWADataSharingModel.getValue();switch(e){case o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.true:return{globalSharingSettingEnabled:!0,eventSharingSettingEnabled:t};case o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.false:return d;case o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.notset:default:return null}},_=function(t,n,a,i){var e=r("WAWebCommonCTWADataSharing").getCTWAEligibilityFromChat(t);e==null||!o("WAWebBizGatingUtils").isSMBLabelsDataSharingEnabledForChats()||(n&&n.length!==0&&n.forEach(function(t){var n=m(t),r=JSON.stringify(n),i=babelHelpers.extends({ctwaLabelSignalVersion:1,ctwaLabelTarget:o("WAWebWamEnumCtwaLabelTarget").CTWA_LABEL_TARGET.CHAT,ctwaLabelType:t,ctwaSignalMetadata:r,deepLinkConversionSource:e.source},p(a),{customerAdsSharingSettingEnabled:o("WAWebWamEnumCustomerAdsSharingSettingEnabled").CUSTOMER_ADS_SHARING_SETTING_ENABLED.UNSET});new(o("WAWebCtwaLabelSignalWamEvent")).CtwaLabelSignalWamEvent(i).commit()}),i&&i.length!==0&&i.forEach(function(t){var n=t.ctwa_3pd_conversion_subtype;if(n){var r=babelHelpers.extends({ctwaLabelSignalVersion:1,ctwaLabelTarget:o("WAWebWamEnumCtwaLabelTarget").CTWA_LABEL_TARGET.CHAT,ctwaLabelType:o("WAWebLabelConstants").mapCustomLabelSubtypeToCTWALabelType(n),ctwaSignalMetadata:t.ctwa_3pd_conversion_metadata,deepLinkConversionSource:e.source},p(a),{customerAdsSharingSettingEnabled:o("WAWebWamEnumCustomerAdsSharingSettingEnabled").CUSTOMER_ADS_SHARING_SETTING_ENABLED.UNSET});new(o("WAWebCtwaLabelSignalWamEvent")).CtwaLabelSignalWamEvent(r).commit()}}))},f=function(n,a,i){var t=o("WAWebFrontendMsgGetters").getChat(n);if(!t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[ctwa][labels] logLabelAddedToMessageAction: chat missing"])));return}var l=r("WAWebCommonCTWADataSharing").getCTWAEligibilityFromChat(t);l==null||!o("WAWebBizGatingUtils").isSMBLabelsDataSharingEnabledForMessages()||a.forEach(function(e){var t=m(e),n=JSON.stringify(t);new(o("WAWebCtwaLabelSignalWamEvent")).CtwaLabelSignalWamEvent(babelHelpers.extends({ctwaLabelSignalVersion:1,ctwaLabelTarget:o("WAWebWamEnumCtwaLabelTarget").CTWA_LABEL_TARGET.MESSAGE,ctwaLabelType:e,ctwaSignalMetadata:n,deepLinkConversionSource:l.source},p(i),{customerAdsSharingSettingEnabled:o("WAWebWamEnumCustomerAdsSharingSettingEnabled").CUSTOMER_ADS_SHARING_SETTING_ENABLED.UNSET})).commit()})},g=function(t,n,r){var e=[];if(n.forEach(function(t){var n=o("WAWebLabelCollection").LabelCollection.get(t),r=n==null?void 0:n.predefinedId;if(r!=null){var a=c.get(r);a!=null&&e.push(a),r===o("WAWebCTWAConstants").NEW_CUSTOMER_PREDEFINED_ID&&o("WAWebBizGatingUtils").is3pdSignalNewCustomerEnabled()&&e.push(o("WAWebWamEnumCtwaLabelType").CTWA_LABEL_TYPE.NEW_CUSTOMER),r===o("WAWebCTWAConstants").IMPORTANT_PREDEFINED_ID&&o("WAWebBizGatingUtils").is3pdImportantLabelSignalsEnabled()&&e.push(o("WAWebWamEnumCtwaLabelType").CTWA_LABEL_TYPE.IMPORTANT)}}),e.length!==0){if(t[0]instanceof o("WAWebMsgModel").Msg){f(t[0],e,r);return}t.forEach(function(t){t instanceof o("WAWebChatModel").Chat&&_(t,e,r)})}};l.logLabelAddedToChatAction=_,l.logLabelSignalForModels=g}),98); __d("WAWebCustomLabels3pdSignalUtils",["WALogger","WAWebBizGatingUtils","WAWebChatModel","WAWebCustomLabel3pdEventQuery","WAWebLabelCollection","WAWebLabelConstants","WAWebSessionStorage","WAWebSmb3pdConversionSignalAction","WAWebSmbMarkAsXLabelAction","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamLabelEventReporter"],(function(t,n,r,o,a,i,l){var e,s,u="wa_custom_label_";function c(e){if(r("WAWebSessionStorage")==null)return null;try{var t=u+e,n=r("WAWebSessionStorage").getItem(t);if(n!=null&&n!=="")return JSON.parse(n)}catch(e){}return null}function d(e,t){if(r("WAWebSessionStorage"))try{var n=u+e;r("WAWebSessionStorage").setItem(n,JSON.stringify(t))}catch(e){}}function m(e){switch(e){case"order_created":case"order_updated":case"lead_created":return e;default:return null}}function p(e){switch(e){case"processing":case"shipped":case"completed":case"canceled":case"new_order":case"order_complete":case"paid":case"pending_payment":case"paid_change":case"new_customer":case"follow_up":case"lead":case"important":return e;default:return null}}function _(t,n,r){if(!(!o("WAWebBizGatingUtils").isCTWACustomLabelsSignalsEnabled()||!o("WAWebBizGatingUtils").isCTWAWebCustomLabelsSignalsEnabled())){var a=[];if(t.forEach(function(e){var t=o("WAWebLabelCollection").LabelCollection.get(e);if(t){var n=o("WAWebLabelConstants").mapLabelNameToPredefinedId(t.name);n||a.push({custom_label:t.name}),o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.ADD,void 0,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABEL_CHAT_DIALOG,void 0,n||void 0,n?void 0:t.name)}}),a.length!==0){var i=[],l=[];a.forEach(function(e){var t=c(e.custom_label);t!=null?i.push(t):l.push(e)});var u=o("WAWebBizGatingUtils").getCTWACustomLabelAlgorithmGroup();o("WAWebCustomLabel3pdEventQuery").getCustomLabel3pdEvent(l,u).then(function(t){if(t.type==="success"){var a=t.events.map(function(e){var t,n={custom_label:e.custom_label,ctwa_3pd_conversion_type:e.ctwa_3pd_conversion_type!=null?m(e.ctwa_3pd_conversion_type.toLowerCase()):null,ctwa_3pd_conversion_subtype:e.ctwa_3pd_conversion_subtype!=null?p(e.ctwa_3pd_conversion_subtype.toLowerCase()):null,ctwa_3pd_conversion_metadata:(t=e.ctwa_3pd_conversion_metadata)!=null?t:"{}"};return e.ctwa_3pd_conversion_type!=null&&d(e.custom_label,n),n}),l=[].concat(a,i);l.length>0&&(o("WAWebSmb3pdConversionSignalAction").log3pdConversionSignalForChatsOrMessages(n,[],r,l),n.forEach(function(e){e instanceof o("WAWebChatModel").Chat&&o("WAWebSmbMarkAsXLabelAction").logLabelAddedToChatAction(e,[],r,l)}))}else o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["getCustomLabel3pdEvent: unsuccessful response: ",""])),t.type)}).catch(function(e){o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["getCustomLabel3pdEvent: failed to call GraphQL endpoint: ",""])),String(e))})}}}l.processCustomLabels3pdSignals=_}),98); __d("WAWebDataSharingOptOutOrUpsell.react",["fbt","WASmaxInBizSettingsEnums","WAWebCTWADataSharingModel","WAWebCheckBox.react","WAWebCopyPasteSelectable.react","WAWebDataSharingUpsellModel","WAWebDrawerManager","WAWebFlex.react","WAWebModalManager","WAWebSMBDataSharingDrawer.react","WAWebSMBDataSharingSettingAction","WAWebText.react","WAWebUISpacing","WAWebWamEnumSmbDataSharingConsentSettingEntryPoint","react","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useState,_={themeOrderCreate:{backgroundColor:"x1h3rtpe",$$css:!0},themeLabelsOptOut:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xog00wb",$$css:!0}},f=function(t){o("WAWebModalManager").ModalManager.close(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(d.jsx(r("WAWebSMBDataSharingDrawer.react"),{onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerLeft()},entrypoint:t}))};function g(e){var t=e.children,n=e.entryPoint;return d.jsx(o("WAWebCopyPasteSelectable.react").SelectableLink,{className:"x1ypdohk",id:"data-sharing-learn-more-link",selectable:!0,onClick:function(){return f(n)},children:t})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.checkboxValue,n=e.entryPoint,r=e.onCheckboxToggle,a=e.theme,i=a==="labels-opt-out"?s._(/*BTDS*/"Comparte la actualizaci\u00f3n de esta etiqueta con Meta. {=m1}",[s._implicitParam("=m1",d.jsx(g,{entryPoint:n,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))]):s._(/*BTDS*/"Compartir el estado de este pedido con Meta. {=m1}",[s._implicitParam("=m1",d.jsx(g,{entryPoint:n,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))]);return d.jsxs(d.Fragment,{children:[d.jsx(o("WAWebCheckBox.react").CheckBox,{checked:t,onChange:r}),d.jsx(o("WAWebText.react").WAWebTextSmall,{color:"secondary",xstyle:o("WAWebUISpacing").uiMargin.start16,children:i})]})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.entryPoint;return d.jsx(o("WAWebText.react").WAWebTextSmall,{color:"secondary",children:s._(/*BTDS*/"Permitir el uso compartido de datos de anuncios puede ayudarte a llegar a la audiencia correcta en Facebook e Instagram. {=m1}",[s._implicitParam("=m1",d.jsx(g,{entryPoint:t,children:s._(/*BTDS*/"Ir a Ajustes")}))])})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=e.checkboxValue,n=e.onCheckboxToggle,a=e.theme,i=r("useWAWebUnmountSignal")(),l=p(null),s=l[0],u=l[1];if(m(function(){return o("WAWebSMBDataSharingSettingAction").getSMBDataSharingSettingAction().then(function(e){i.aborted||(u(e),o("WAWebCTWADataSharingModel").CTWADataSharingModel.subscribeForUpdates(u))}),function(){o("WAWebCTWADataSharingModel").CTWADataSharingModel.unsubscribeFromUpdates(u)}},[i.aborted]),s==null||s===o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.notset)return null;var c;a==="order-create"?c=[_.themeOrderCreate,o("WAWebUISpacing").uiPadding.start16,o("WAWebUISpacing").uiPadding.top16,o("WAWebUISpacing").uiPadding.bottom32]:a==="order-update"?c=[o("WAWebUISpacing").uiPadding.start28,o("WAWebUISpacing").uiPadding.top48,o("WAWebUISpacing").uiPadding.bottom16]:a==="labels-opt-out"&&(c=[_.themeLabelsOptOut,o("WAWebUISpacing").uiMargin.top24,o("WAWebUISpacing").uiPadding.top12,o("WAWebUISpacing").uiPadding.start30]);var f=s===o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.true,g=s===o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.false&&r("WAWebDataSharingUpsellModel").isUpsellEnabled(),C;return a==="labels-opt-out"?C=o("WAWebWamEnumSmbDataSharingConsentSettingEntryPoint").SMB_DATA_SHARING_CONSENT_SETTING_ENTRY_POINT.ENTRY_POINT_LABELS_SCREEN:C=o("WAWebWamEnumSmbDataSharingConsentSettingEntryPoint").SMB_DATA_SHARING_CONSENT_SETTING_ENTRY_POINT.ENTRY_POINT_ORDER_SCREEN,d.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",xstyle:c,children:[g?d.jsx(y,{entryPoint:C}):null,f?d.jsx(h,{theme:a,entryPoint:C,checkboxValue:t,onCheckboxToggle:n}):null]})}C.displayName=C.name+" [from "+i.id+"]",l.OptOutText=h,l.UpsellText=y,l.DataSharingOptOutOrUpsell=C}),226); __d("WAWebBizManageLabelModal.react",["fbt","WASmaxInBizSettingsEnums","WAWebABProps","WAWebBizGatingUtils","WAWebBizLabelUtils","WAWebButton.react","WAWebCTWAConstants","WAWebCTWADataSharingModel","WAWebChatCollection","WAWebCommonCTWADataSharing","WAWebCustomLabels3pdSignalUtils","WAWebDataSharingOptOutOrUpsell.react","WAWebDataSharingUpsellModel","WAWebDrawerHeader.react","WAWebFbtCommon","WAWebLabelCollection","WAWebLabelConstants","WAWebLabelsMultiSelectLabelList.react","WAWebListItemParentType","WAWebListsGatingUtils","WAWebListsLogging","WAWebListsUtil","WAWebModal.react","WAWebMultiSelection","WAWebSchemaLabel","WAWebSmb3pdConversionSignalAction","WAWebSmbMarkAsXLabelAction","WAWebStateUtils","WAWebUserPrefsGeneral","WAWebWamEnumLabelOperations","WAWebWamEnumLabelTargets","WAWebWamEnumListAction","WAWebWamLabelEventReporter","WDSButton.react","WDSButtonGroup.react","compactMap","react","useWAWebForceUpdate"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useEffect,_=d.useMemo,f=d.useState,g={NONE_SELECTED:0,ALL_SELECTED:1,PARTIALLY_SELECTED:2},h=function(){return o("WAWebCTWADataSharingModel").CTWADataSharingModel.getValue()===o("WASmaxInBizSettingsEnums").ENUM_FALSE_NOTSET_TRUE.true};function y(t){"use no forget";var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=f(h),l=i[0],u=i[1];p(function(){return function(){r("WAWebDataSharingUpsellModel").enableUpsell()}},[]);var c=a.entryPoint,d=a.modelsToUpdate,y=a.onLabelUpdateComplete,C=o("WAWebListsGatingUtils").isListsEnabled(),b=_(function(){return new(r("WAWebMultiSelection"))([],function(e){return e.id})},[]),v=f([]),S=v[0],R=v[1],L=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),E=_(function(){var e=function(){var e,t={},n=C?(e=o("WAWebLabelCollection").LabelCollection.findFirst(function(e){return e.type===o("WAWebSchemaLabel").ListType.FAVORITES}))==null?void 0:e.id:null;return d.forEach(function(e){var r=o("WAWebStateUtils").unproxy(e);r.labels&&r.labels.forEach(function(e){t[e]=t[e]?++t[e]:1}),r.isFavorite===!0&&n!=null&&(t[n]=t[n]?++t[n]:1)}),t},t=e(),n={};return Object.entries(t).forEach(function(e){var t=e[0],r=e[1];if(r===d.length)n[t]=g.ALL_SELECTED;else if(r>0){n[t]=g.PARTIALLY_SELECTED;return}else n[t]=g.NONE_SELECTED}),n},[]),k=function(t){t!=null&&(E[t]===g.PARTIALLY_SELECTED?R(function(e){return[].concat(e,["{labelId}_changed"])}):S.includes(t)?R(function(e){return e.filter(function(e){return e!==t})}):(E[t]==null&&o("WAWebBizGatingUtils").labelsEditingEnabled()&&(E[t]=g.ALL_SELECTED),R(function(e){return e.includes(t)?e:[].concat(e,[t])})),L())},I=function(){o("WAWebListsUtil").logLabelOperationEventsForModels(d);var e=b.list,t=b.selected,n=[],a=[],i=[],s=new Map;if(e.forEach(function(e,r){if(t[r]?n.push(e.id):a.push(e.id),i.push(babelHelpers.extends({id:e.id,type:t[r]?"add":"remove"},e.type!=null&&{listType:e.type})),c!=null&&C){var l=o("WAWebLabelCollection").LabelCollection.get(e.id);l!=null&&s.set(e.id,o("WAWebListsUtil").getAllChatsInList(l))}}),o("WAWebLabelCollection").LabelCollection.addOrRemoveLabels(i,d),c!=null&&C){var u=r("compactMap")(d,function(e){return o("WAWebChatCollection").ChatCollection.get(e.id)});i.forEach(function(e){var t=s.get(e.id);if(t!=null){var n,r;e.type==="add"?n=u:e.type==="remove"&&(r=u),o("WAWebListsLogging").logListUpdate({listId:Number(e.id),listAction:o("WAWebWamEnumListAction").LIST_ACTION.UPDATE_MEMBERS,entryPoint:c,chatsBeforeUpdate:t,addedChats:n,removedChats:r})}})}n.length>0&&(o("WAWebSmbMarkAsXLabelAction").logLabelSignalForModels(d,n,l),o("WAWebSmb3pdConversionSignalAction").log3pdConversionSignalForChatsOrMessages(d,n,l),o("WAWebCustomLabels3pdSignalUtils").processCustomLabels3pdSignals(n,d,l)),a.length>0&&a.forEach(function(e){var t=o("WAWebLabelCollection").LabelCollection.get(e);if(t){var n=o("WAWebLabelConstants").mapLabelNameToPredefinedId(t.name);o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.DELETE,void 0,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABEL_CHAT_DIALOG,void 0,n||void 0,n?void 0:t.name)}}),d.forEach(function(e){var t=o("WAWebChatCollection").ChatCollection.get(e.id);if(t){var r=t.labels||[],i=r.length+n.length-a.length;o("WAWebWamLabelEventReporter").logLabelOperationEvent(o("WAWebWamEnumLabelOperations").LABEL_OPERATIONS.UPDATE_LABEL_COUNT,i,o("WAWebWamEnumLabelTargets").LABEL_TARGETS.LABEL_CHAT_DIALOG)}}),y()},T=o("WAWebABProps").getABPropConfigValue("wds_web_button")&&C?m.jsx(r("WDSButton.react"),{type:"default",size:"medium",variant:"filled",onPress:I,testid:void 0,disabled:S.length===0,label:s._(/*BTDS*/"OK")}):m.jsx(o("WAWebButton.react").Button,{testid:void 0,type:"primary",disabled:S.length===0,onClick:I,children:s._(/*BTDS*/"Guardar")},1),D=o("WAWebABProps").getABPropConfigValue("wds_web_button")&&C?m.jsx(r("WDSButton.react"),{variant:"borderless",onPress:a.onCancel,testid:void 0,size:"medium",type:"default",label:r("WAWebFbtCommon")("Cancel")}):m.jsx(o("WAWebButton.react").Button,{testid:void 0,type:"secondary",onClick:a.onCancel,children:r("WAWebFbtCommon")("Cancel")},0),x=o("WAWebABProps").getABPropConfigValue("wds_web_button"),$=x&&C?m.jsx(r("WDSButtonGroup.react"),{width:"hug",orientation:"horizontal",primaryButtonProps:{variant:"filled",type:"default",onPress:I,testid:"popup-controls-ok",disabled:S.length===0,label:s._(/*BTDS*/"OK")},secondaryButtonProps:{variant:"borderless",type:"default",onPress:a.onCancel,testid:"popup-controls-cancel",label:r("WAWebFbtCommon")("Cancel")}}):m.jsxs(o("WAWebButton.react").ButtonGroup,{direction:"horizontal",children:[D,T]}),P=C?s._(/*BTDS*/"Selecciona una lista"):m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Elementos de etiquetas"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:a.onCancel}),N=r("WAWebCommonCTWADataSharing").shouldDisplayDataSharingLabelOptOutOrUpsell(d)?m.jsx(o("WAWebDataSharingOptOutOrUpsell.react").DataSharingOptOutOrUpsell,{checkboxValue:l,onCheckboxToggle:function(){return u(!l)},theme:"labels-opt-out"}):null,M=_(function(){if(o("WAWebBizGatingUtils").isCTWADetectedOutcomeWS4Enabled()&&o("WAWebUserPrefsGeneral").getDetectedOutcomeOnboardingStatus()===!0&&d.length===1){var e=d[0];return o("WAWebLabelCollection").LabelCollection.filter(function(e){return e.predefinedId===o("WAWebCTWAConstants").NEW_ORDER_PREDEFINED_ID||e.predefinedId===o("WAWebCTWAConstants").LEAD_PREDEFINED_ID}).reduce(function(t,n){return n.labelItemCollection.map(function(n){if(n.parentType===o("WAWebListItemParentType").LabelItemParentType.Chat&&n.parentId===e.id.toString()&&n.detectedOutcomeOriginalLabelPredefinedId!=null){var r=o("WAWebBizLabelUtils").mapDOLabelPredefinedIdToManualLabelId(n.detectedOutcomeOriginalLabelPredefinedId);r!=null&&t.push(r)}}),t},[])}return[]},[d]),w=C?o("WAWebModal.react").ModalTheme.ListsAssignModal:o("WAWebModal.react").ModalTheme.LabelList;return m.jsxs(o("WAWebModal.react").Modal,{ref:n,type:w,actions:$,title:P,tsNavigationData:{surface:"smb-labels-list"},children:[m.jsx(r("WAWebLabelsMultiSelectLabelList.react"),{autoLabeledLabelIds:M,onNewLabelAdded:a.onNewLabelAdded,shouldScrollIntoViewAndSelect:a.shouldScrollIntoViewAndSelect,initialLabelState:E,selectedLabels:b,renderContext:"label-selection",onMultiSelect:k,entryPoint:c}),N]})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebCommandPaletteUtils",[],(function(t,n,r,o,a,i){var e=!1,l=function(n){e=n},s=function(){return e};i.setIsCommandPaletteOpen=l,i.isCommandPaletteOpen=s}),66); __d("WAWebDrawerItem.react",["fbt","WAWebCopyPasteSelectable.react","WAWebKeyboardIsKeyActivation","WAWebL10N","WAWebUseIsKeyboardUser","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.children,n=e.disabled,a=e.disableKeydownHandling,i=e.icon,l=e.isLastItem,c=e.onClick,d=e.onDisabledClick,m=e.tabIndex,p=m===void 0?0:m,_=e.testid,f=e.theme,g=f===void 0?"default":f,h=e.title,y={0:"xso031l x1q0q8m5 x120ee7l x1g2khh7 xdpxx8g",4:"xso031l x1q0q8m5 x120ee7l x1g2khh7 x1hr2gdg",2:"xso031l x1q0q8m5 x120ee7l x1g2khh7 xdpxx8g x6s0dn4 x78zum5",6:"xso031l x1q0q8m5 x120ee7l x1g2khh7 x1hr2gdg x6s0dn4 x78zum5",1:"xso031l x120ee7l x1g2khh7 xdpxx8g x1sy0etr",5:"xso031l x120ee7l x1g2khh7 x1hr2gdg x1sy0etr",3:"xso031l x120ee7l x1g2khh7 xdpxx8g x6s0dn4 x78zum5 x1sy0etr",7:"xso031l x120ee7l x1g2khh7 x1hr2gdg x6s0dn4 x78zum5 x1sy0etr"}[!!r("WAWebL10N").isRTL()<<2|(i!=null)<<1|(l===!0)<<0],C={0:"",1:"x98rzlu"}[(i!=null)<<0],b={0:"",1:"xhslqc4 x1okw0bk"}[(i!=null)<<0],v=r("WAWebUseIsKeyboardUser")(),S=v.isKeyboardUser,R=n===!0?d:c,L=R!=null,E=n===!0?{"aria-label":s._(/*BTDS*/"Se desactiv\u00f3 un elemento del contenedor.")}:{};return u.jsx("div",babelHelpers.extends({tabIndex:L?p:null},{0:{className:"x1fc57z9 xisnujt xyinxu5"},2:{className:"x1fc57z9 xisnujt xyinxu5 x1jsj9aw"},1:{className:"x1fc57z9 xisnujt xyinxu5 xbyyjgo"},3:{className:"x1fc57z9 xisnujt xyinxu5 x1jsj9aw xbyyjgo"}}[!!S<<1|(n===!0)<<0],{onClick:R,role:L?"button":"",onKeyDown:function(t){a===!0||!r("WAWebKeyboardIsKeyActivation")(t)||!R||R()}},E,{"data-testid":void 0,children:u.jsxs("div",{className:y,children:[u.jsxs("div",{className:C,dir:"auto",children:[u.jsx(o("WAWebCopyPasteSelectable.react").SelectableDiv,{className:"x14ug900 x6prxxf",selectable:!0,children:h}),u.jsx("div",babelHelpers.extends({},{0:{className:"x1v5yvga x1f6kntn xd4r4e8"},1:{className:"x1f6kntn xd4r4e8 x16zc8z2"}}[(g==="privacy")<<0],{children:t}))]}),u.jsx("div",{className:b,children:i})]})}))}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebEligibilityLogging",["WAWebABProps","WAWebABPropsConfigs"],(function(t,n,r,o,a,i,l){"use strict";var e=["wa_web_app_lock_upsell"],s=(function(){function t(){this.$1=new Map}var n=t.prototype;return n.init=function(){for(var t of e)this.$1.set(t,o("WAWebABProps").getABPropConfigValue(t))},n.getValue=function(t){var e;return(e=this.$1.get(t))!=null?e:o("WAWebABPropsConfigs").ABPropConfigs[t][2]},t})(),u=new s;l.eligibilityLogger=u}),98); __d("WAWebPasscodeModalStyles",[],(function(t,n,r,o,a,i,l){var e={container:{paddingTop:"x1p5oq8j",paddingInlineEnd:"xjfo4ez",paddingBottom:"xwxc41k",paddingInlineStart:"xf7qf19",width:"x1l2rt3b",backgroundColor:"x16w0wmm",$$css:!0},containerUpdated:{paddingTop:"xl7twdi",paddingInlineEnd:"xyo0t3i",paddingBottom:"xvg22vi",paddingInlineStart:"xb0esv5",$$css:!0},titleText:{lineHeight:"x1u7k74",$$css:!0},bottomSpacing:{marginBottom:"xui9b5u",$$css:!0},errorText:{height:"x1qx5ct2",lineHeight:"xcgms0a",$$css:!0},passcodeMessage:{minHeight:"x879a55",marginBottom:"xdqhqc9",$$css:!0},passcodeMessageUpdated:{color:"xhslqc4",marginBottom:"x14mdic9",minHeight:"x1t4djm1",$$css:!0}},s=e.container,u=e.containerUpdated,c=e.titleText,d=e.bottomSpacing,m=e.errorText,p=e.passcodeMessage,_=e.passcodeMessageUpdated;l.container=s,l.containerUpdated=u,l.titleText=c,l.bottomSpacing=d,l.errorText=m,l.passcodeMessage=p,l.passcodeMessageUpdated=_}),98); __d("WAWebPasscodeRemoval.react",["fbt","$InternalEnum","WAPromiseDelays","WAWebABProps","WAWebButton.react","WAWebDialogEventLogger","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebModal.react","WAWebModalManager","WAWebPasscodeModalStyles","WAWebPasswordInput.react","WAWebScreenLockErrorMessages","WAWebSocketModel","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUserPrefsInfoStore","WAWebUserPrefsScreenLock","WAWebWamEnumDialogNameType","asyncToGeneratorRuntime","react","stylex","useWAWebListener","useWAWebPersistentCounterAsync"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useRef,_=d.useState,f=n("$InternalEnum")({CANCEL:"cancel",DISABLE:"disable"}),g={description:{lineHeight:"x1xet1wb",$$css:!0}};function h(e){var t=e.onSubmit,a=_(""),i=a[0],l=a[1],c=_(null),d=c[0],h=c[1],C=_(!1),b=C[0],v=C[1],S=_(!1),R=S[0],L=S[1],E=p(!1),k=r("useWAWebPersistentCounterAsync")(o("WAWebUserPrefsScreenLock").getScreenUnlockTryCount,o("WAWebUserPrefsScreenLock").setScreenUnlockTryCount),I=k[0],T=I.count,D=I.error,x=I.loading,$=k[1],P=k[2],N=T!=null?T:0,M=N>=o("WAWebABProps").getABPropConfigValue("web_screen_lock_max_retries");M&&o("WAWebSocketModel").Socket.logout();var w=N+1===o("WAWebABProps").getABPropConfigValue("web_screen_lock_max_retries"),A=function(t){l(t.currentTarget.value)},F=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(L(!0),i===""){h(!0),L(!1);return}h(!1);var e=yield o("WAWebUserPrefsInfoStore").waNoiseInfo.removeLockOnNoiseInfo(i);yield o("WAPromiseDelays").delayMs(400),e?(E.current=!0,r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.APP_LOCK_DISABLE,source:f.DISABLE}),P(),o("WAWebModalManager").ModalManager.close(),t()):($(),v(!0)),L(!1)});return function(){return e.apply(this,arguments)}})(),O=function(t){t.key==="Enter"&&F()};return o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"close_modal",function(){E.current||r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.APP_LOCK_DISABLE,source:f.CANCEL})}),m.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.Flex,testid:void 0,children:m.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebPasscodeModalStyles").container),{children:[m.jsx(o("WAWebText_DONOTUSE.react").TextHeader,{size:"20",weight:"medium",xstyle:[o("WAWebPasscodeModalStyles").titleText,o("WAWebUISpacing").uiMargin.bottom12],children:s._(/*BTDS*/"Ingresa la contrase\u00f1a actual")}),m.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",xstyle:[g.description,o("WAWebUISpacing").uiMargin.bottom20],children:s._(/*BTDS*/"Para desactivar el bloqueo de aplicaci\u00f3n, debes ingresar tu contrase\u00f1a actual.")}),m.jsxs(r("WAWebFlexItem.react"),{xstyle:o("WAWebPasscodeModalStyles").bottomSpacing,children:[m.jsx(r("WAWebPasswordInput.react"),{value:i,onChange:A,onKeyDown:O,placeholder:s._(/*BTDS*/"Ingresa la contrase\u00f1a").toString(),focusOnMount:!0,enableShowPassword:!0,testid:void 0}),m.jsx(o("WAWebText_DONOTUSE.react").Text,{as:"div",size:"13",color:"danger",xstyle:[o("WAWebPasscodeModalStyles").errorText,o("WAWebUISpacing").uiMargin.top4],extras:{role:"alert"},children:o("WAWebScreenLockErrorMessages").getErrorMessage({emptyInputEntered:d,incorrectPasscode:b,onlyOneTryRemaining:w,triesExceeded:M})})]}),m.jsxs(o("WAWebFlex.react").FlexRow,{justify:"end",children:[m.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiMargin.end4,children:m.jsx(o("WAWebButton.react").Button,{type:"secondary",onClick:y,testid:void 0,buttonType:"button",children:s._(/*BTDS*/"Cancelar")})}),m.jsx(r("WAWebFlexItem.react"),{children:m.jsx(o("WAWebButton.react").Button,{type:"primary",onClick:function(){F()},disabled:R||M||x||D!=null,spinner:R,testid:void 0,buttonType:"submit",children:r("WAWebFbtCommon")("OK")})})]})]}))})}h.displayName=h.name+" [from "+i.id+"]";function y(){o("WAWebModalManager").ModalManager.close()}l.default=h}),226); __d("WAWebPasscodeSetup.react",["fbt","$InternalEnum","WAPromiseDelays","WAWebAppLockConfirmationDialog.react","WAWebButton.react","WAWebDialogEventLogger","WAWebEligibilityLogging","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebFocusTracer","WAWebModal.react","WAWebModalManager","WAWebPasscodeModalStyles","WAWebPasswordInput.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUserPrefsInfoStore","WAWebWamEnumDialogNameType","WDSButton.react","WDSText.react","asyncToGeneratorRuntime","react","stylex","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useRef,_=d.useState,f=6,g=128,h="^[ -~]{"+f+","+g+"}$",y=n("$InternalEnum")({CANCEL:"cancel",ENABLE:"enable"});function C(e,t){var n="";return e.lengthg?(n=s._(/*BTDS*/"La contrase\u00f1a debe tener entre {minimum_length} y {maximum_length} caracteres.",[s._param("minimum_length",String(f)),s._param("maximum_length",String(g))]).toString(),{valid:!1,errorMessage:n}):e.match(h)==null?(n=s._(/*BTDS*/"La contrase\u00f1a solo puede contener letras, n\u00fameros y signos de puntuaci\u00f3n comunes.").toString(),{valid:!1,errorMessage:n}):t!==""?b(e,t):{valid:!0,errorMessage:n}}function b(e,t){var n="";return e!==t?(n=s._(/*BTDS*/"Las contrase\u00f1as deben coincidir.").toString(),{valid:!1,errorMessage:n}):{valid:!0,errorMessage:n}}function v(e){var t=e.onSubmit,a=_(""),i=a[0],l=a[1],c=_(""),d=c[0],h=c[1],v=_(""),R=v[0],L=v[1],E=_(!1),k=E[0],I=E[1],T=p(!1),D=p(null),x=o("WAWebEligibilityLogging").eligibilityLogger.getValue("wa_web_app_lock_upsell"),$=function(t,n){t===""&&n===""&&L("")},P=function(t){l(t.currentTarget.value),$(t.currentTarget.value,d)},N=function(t){h(t.currentTarget.value),$(t.currentTarget.value,i)},M=function(t){if(t.currentTarget.value!==""){var e=C(i,d);L(e.errorMessage)}},w=function(t){if(t.currentTarget.value!==""){var e=b(i,d);R===""&&L(e.errorMessage)}},A=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=C(i,d),n=b(i,d);if(L(e.errorMessage||n.errorMessage),!(!e.valid||!n.valid)){I(!0);var a=yield o("WAWebUserPrefsInfoStore").waNoiseInfo.lockNoiseInfo(d);yield o("WAPromiseDelays").delayMs(400),a&&(T.current=!0,r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.APP_LOCK_ENABLE,source:y.ENABLE}),o("WAWebModalManager").ModalManager.close(),t(),x&&o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebAppLockConfirmationDialog.react"),{}))),I(!1)}});return function(){return e.apply(this,arguments)}})();o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"close_modal",function(){T.current||r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.APP_LOCK_ENABLE,source:y.CANCEL})});var F=function(t){t.key==="Enter"&&r("WAWebFocusTracer").focus(D.current)},O=function(t){t.key==="Enter"&&A()},B=x?s._(/*BTDS*/"Establece una contrase\u00f1a"):s._(/*BTDS*/"Establece la contrase\u00f1a del dispositivo"),W=s._(/*BTDS*/"La contrase\u00f1a debe tener entre {mininum_passcode_length} y {maximum_passcode_length} caracteres y solo puede contener letras, n\u00fameros o signos de puntuaci\u00f3n comunes.",[s._param("mininum_passcode_length",f),s._param("maximum_passcode_length",g)]),q=k!==!0&&i!==""&&d!==""&&R==="";return m.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.Flex,testid:void 0,children:m.jsxs("form",babelHelpers.extends({method:"dialog"},(u||(u=r("stylex"))).props([o("WAWebPasscodeModalStyles").container,x&&o("WAWebPasscodeModalStyles").containerUpdated]),{onSubmit:A,children:[x?m.jsx(r("WDSText.react"),{type:"Headline1",colorName:"contentDefault",xstyle:o("WAWebUISpacing").uiMargin.bottom16,children:B}):m.jsx(o("WAWebText_DONOTUSE.react").TextHeader,{size:"20",weight:"medium",xstyle:[o("WAWebPasscodeModalStyles").titleText,o("WAWebUISpacing").uiMargin.bottom12],children:B}),m.jsx(r("WAWebFlexItem.react"),{xstyle:x?o("WAWebUISpacing").uiMargin.bottom16:o("WAWebUISpacing").uiMargin.bottom8,children:m.jsx(r("WAWebPasswordInput.react"),{value:i,onChange:P,onBlur:M,required:!0,placeholder:s._(/*BTDS*/"Ingresa la contrase\u00f1a").toString(),focusOnMount:!0,testid:void 0,onKeyDown:F,appLockUpsellEnabled:x})}),m.jsx(r("WAWebFlexItem.react"),{xstyle:x?o("WAWebUISpacing").uiMargin.bottom16:o("WAWebUISpacing").uiMargin.bottom8,children:m.jsx(r("WAWebPasswordInput.react"),{ref:D,value:d,onChange:N,onBlur:w,title:R,required:!0,placeholder:s._(/*BTDS*/"Vuelve a ingresar la contrase\u00f1a").toString(),testid:void 0,onKeyDown:O,appLockUpsellEnabled:x})}),m.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{color:R?"danger":"secondary",xstyle:[o("WAWebPasscodeModalStyles").bottomSpacing,o("WAWebPasscodeModalStyles").passcodeMessage,x&&o("WAWebPasscodeModalStyles").passcodeMessageUpdated],testid:void 0,extras:R?{role:"alert"}:{},children:R||W}),m.jsxs(o("WAWebFlex.react").FlexRow,{justify:"end",children:[m.jsx(r("WAWebFlexItem.react"),{xstyle:x?o("WAWebUISpacing").uiMargin.end8:o("WAWebUISpacing").uiMargin.end4,children:x?m.jsx(r("WDSButton.react"),{variant:"borderless",onPress:S,testid:void 0,size:"medium",type:"default",label:s._(/*BTDS*/"Cancelar")}):m.jsx(o("WAWebButton.react").Button,{type:"secondary",onClick:function(){return o("WAWebModalManager").ModalManager.close()},testid:void 0,buttonType:"button",children:s._(/*BTDS*/"Cancelar")})}),m.jsx(r("WAWebFlexItem.react"),{children:m.jsx(o("WAWebButton.react").Button,{type:"primary",onClick:A,disabled:!q,spinner:k,testid:void 0,buttonType:"submit",children:r("WAWebFbtCommon")("OK")})})]})]}))})}v.displayName=v.name+" [from "+i.id+"]";function S(){o("WAWebModalManager").ModalManager.close()}l.default=v}),226); __d("WAWebScreenLockTimerOptions",["fbt","WALogger","WANullthrows","WATimeUtils","WAWebUserPrefsScreenLock"],(function(t,n,r,o,a,i,l,s){var e,u=15*o("WATimeUtils").MINUTE_SECONDS;function c(){return[{value:o("WATimeUtils").MINUTE_SECONDS,label:s._(/*BTDS*/"Despu\u00e9s de 1 minuto"),summaryText:s._(/*BTDS*/"Despu\u00e9s de 1 minuto")},{value:u,label:s._(/*BTDS*/"Despu\u00e9s de 15 minutos"),summaryText:s._(/*BTDS*/"Despu\u00e9s de 15 minutos")},{value:o("WATimeUtils").HOUR_SECONDS,label:s._(/*BTDS*/"Despu\u00e9s de 1 hora"),summaryText:s._(/*BTDS*/"Despu\u00e9s de 1 hora")},{value:8*o("WATimeUtils").HOUR_SECONDS,label:s._(/*BTDS*/"Despu\u00e9s de 8 horas"),summaryText:s._(/*BTDS*/"Despu\u00e9s de 8 horas")}]}function d(t){var n,a;if(t===0)return s._(/*BTDS*/"Requerir contrase\u00f1a para desbloquear WhatsApp");var i=(n=c().find(function(e){return e.value===t}))==null?void 0:n.summaryText;return i!=null?i:(o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["App lock auto lock option "," does not exist"])),t),o("WAWebUserPrefsScreenLock").setScreenLockDurationInSeconds(u),r("WANullthrows")((a=c().find(function(e){return e.value===u}))==null?void 0:a.summaryText))}l.DEFAULT_SCREEN_LOCK_DURATION_SECONDS=u,l.getScreenLockTimerOptions=c,l.getScreenLockAutoTimerLabelForSummary=d}),226); __d("WAWebWdsPictoPrivacyIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-picto-privacy";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=88,R=133;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"#25D366",fillRule:"evenodd",stroke:"#111B21",strokeWidth:1.5,d:"M78.3684 48.5816c1.0139-8.3636-1.2714-16.6198-6.4323-23.2559-5.1661-6.6308-12.5908-10.8474-20.9168-11.8721-17.1616-2.0975-32.8265 10.2359-34.9241 27.4887-.6705 5.5149.1127 11.078 2.2639 16.153l-5.193 14.7797 15.8473-1.4324c4.2488 3.0472 9.2058 4.9892 14.4202 5.6276h.0108c17.1615 2.0976 32.8264-10.2358 34.924-27.4886Z",clipRule:"evenodd"}),c.jsx("path",{fill:"#25D366",fillRule:"evenodd",stroke:"#111B21",strokeLinejoin:"round",strokeWidth:1.5,d:"m24.7358 58.0122-1.3251-3.0257c-1.765-4.1415-2.4087-8.7069-1.8562-13.2025 1.7221-14.1091 14.6027-24.1893 28.7118-22.4779 2.7735.3379 5.4397 1.1051 7.9182 2.2746 3.6373 1.7113 6.7541 4.2166 9.2755 7.4354 4.2435 5.4237 6.1211 12.1778 5.2896 19.0124-1.7221 14.1091-14.6026 24.1947-28.7117 22.478-2.7467-.3326-5.4022-1.0998-7.8915-2.2746-1.3894-.6545-2.7252-1.4378-3.9698-2.3283l-2.4517-1.7328-7.9665 1.1159 2.9774-7.2799v.0054Z",clipRule:"evenodd"}),c.jsx("path",{fill:"#25D366",fillRule:"evenodd",stroke:"#111B21",strokeWidth:1.5,d:"M60.2962 53.0068c-.7135-.4721-4.2381-2.7682-4.9087-3.1062-.6706-.3379-1.1588-.5257-1.7596.1717-.6009.6974-2.2693 2.2371-2.7789 2.6877-.5043.456-.9603.4614-1.6738-.0107-.7135-.4721-3.074-1.5719-5.6705-4.5171-2.0224-2.2907-3.2456-4.9623-3.5997-5.7777-.354-.8155.0966-1.1803.5258-1.5129.3862-.3004.8691-.7939 1.3036-1.1909.4345-.397.6008-.6974.9174-1.1749.3165-.4774.2414-.9334.0965-1.3411-.1448-.4024-1.2124-4.3293-1.663-5.928-.4399-1.5558-1.0891-1.4324-1.5558-1.5129-.4399-.0751-.9495-.1448-1.4592-.2038-.5096-.0644-1.3572.0268-2.1512.7028-.794.6759-2.9828 2.2746-3.4441 6.0191-.456 3.7392 1.8347 7.6876 2.1566 8.2402.3165.5525 4.3775 8.8356 11.6252 13.0576 1.7221 1.0032 3.0847 1.6416 4.1523 2.1298 1.7542.7993 3.428.9227 4.7638.8851 1.4914-.0375 4.737-1.2929 5.5846-2.9881.853-1.7006 1.0354-3.2188.8852-3.5621-.1502-.338-.6384-.5902-1.3519-1.0622l.0054-.0054Z",clipRule:"evenodd"}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.72036,d:"M116.596 35.4275c-.572-.5852-1.207-1.0321-1.905-1.3194-.687-.2979-1.436-.4362-2.248-.4362h-2.936v-6.0008c0-1.2555-.145-2.4365-.406-3.5749 0-.0532 0-.1064-.02-.1596-.042-.1596-.094-.3192-.136-.4788-.031-.0958-.052-.2022-.083-.2979-.125-.4043-.26-.798-.416-1.1917-.032-.0744-.063-.1383-.094-.2127-.135-.3299-.292-.6491-.448-.9683-.052-.0957-.093-.1915-.145-.2872-.198-.3724-.417-.7342-.656-1.0959-.031-.0426-.063-.0851-.094-.1277-.218-.3192-.447-.6277-.687-.9363-.073-.0957-.146-.1809-.218-.266-.282-.3405-.573-.6809-.896-1.0001-1.436-1.4683-3.018-2.5642-4.746-3.2877-.6457-.2766-1.3223-.4788-2.0197-.649-1.1555-.2873-2.3526-.4469-3.6225-.4469-1.2699 0-2.4774.1596-3.6224.4469-.6871.1702-1.3741.3724-2.0195.649-1.7279.7342-3.3101 1.83-4.7466 3.2877-.3227.3298-.6142.6596-.8952 1.0001-.0729.0851-.1457.1809-.2186.266-.2394.3086-.4788.6171-.687.9363-.0313.0426-.0625.0851-.0937.1277-.2394.3617-.4476.7235-.6558 1.0959-.052.0957-.1041.1915-.1457.2872-.1666.3192-.3123.6384-.4476.9683-.0313.0744-.0625.1383-.0937.2127-.1562.3937-.2915.7874-.4164 1.1917-.0312.0957-.052.1915-.0833.2979-.0416.1596-.0936.3192-.1353.4788-.0104.0532 0 .1064-.0208.1596-.2602 1.1384-.406 2.3301-.406 3.5749v6.0008h-2.9354c-.8119 0-1.5614.149-2.2484.4362-.687.2873-1.322.7342-1.8945 1.3194-1.145 1.1703-1.728 2.5854-1.728 4.2452v30.0146c0 1.6491.5725 3.0642 1.728 4.2452.5725.5852 1.2075 1.0321 1.8945 1.3193.687.2873 1.4365.4363 2.2484.4363h35.2462c.812 0 1.561-.149 2.248-.4363.687-.2979 1.322-.7341 1.905-1.3193 1.145-1.1704 1.728-2.5854 1.728-4.2452V39.6727c0-1.6492-.572-3.0642-1.728-4.2452Zm-30.5825-1.7662v-6.0008c0-.8725.1145-1.6917.3123-2.4684.0833-.3192.1874-.6278.3019-.9363 0-.0213.0104-.0319.0208-.0532.1249-.3192.281-.6278.4476-.9363.052-.0851.1041-.1702.1561-.2554.1353-.2234.2811-.4362.4268-.649.0625-.0851.1249-.1702.1874-.2553.2186-.2767.4476-.5533.7078-.8087.3227-.3298.6558-.6171 1.0097-.8831 1.0409-.7979 2.1964-1.3299 3.4663-1.5853.5621-.1064 1.1555-.1596 1.7696-.1596.6142 0 1.1971.0532 1.7696.1596 1.2699.2447 2.4254.7767 3.4666 1.5853.343.266.687.5533 1.009.8831.261.266.49.532.708.8087.063.0851.125.1702.188.2553.156.2128.301.4256.426.649.052.0852.104.1703.157.2554.166.3085.322.6171.447.9363 0 .0213.011.0319.021.0532.114.3085.219.6171.302.9363.208.7767.312 1.5959.312 2.4684v6.0008H86.0031h.0104Z"}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.72036,d:"M95.2109 58.4416c2.0691 0 3.7465-1.6863 3.7465-3.7665 0-2.0801-1.6774-3.7664-3.7465-3.7664-2.0692 0-3.7465 1.6863-3.7465 3.7664 0 2.0802 1.6773 3.7665 3.7465 3.7665Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsPictoPrivacyIcon=m}),98); __d("WAWebScreenLockDrawer.react",["fbt","WAWebCheckBoxRound.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebEligibilityLogging","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebGroupInfoSeparator.react","WAWebModalManager","WAWebPasscodeRemoval.react","WAWebPasscodeSetup.react","WAWebScreenLockTimerOptions","WAWebSettingsCheckList.react","WAWebSubscribePushManagerAction","WAWebText.react","WAWebUserPrefsScreenLock","WAWebWdsPictoPrivacyIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState,m={appLockHeader:{fontSize:"x1aueamr",marginTop:"xw7yly9",marginInlineEnd:"x14z9mp",marginBottom:"x1yztbdb",marginInlineStart:"x1lziwak",$$css:!0}};function p(e){var t=e.onBack,n=e.onCancel,a=e.ref,i=d(function(){return o("WAWebUserPrefsScreenLock").getScreenLockDurationInSeconds()}),l=i[0],u=i[1],p=d(function(){return o("WAWebUserPrefsScreenLock").getScreenLockEnabled()}),_=p[0],f=p[1],g=function(t){o("WAWebUserPrefsScreenLock").setScreenLockDurationInSeconds(t),u(t),f(t!==0),o("WAWebSubscribePushManagerAction").updatePushManager()},h=o("WAWebEligibilityLogging").eligibilityLogger.getValue("wa_web_app_lock_upsell"),y=function(t){if(l>0&&t>0){g(t);return}t===0?o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebPasscodeRemoval.react"),{onSubmit:function(){return g(t)}})):o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebPasscodeSetup.react"),{onSubmit:function(){return g(t)}}))},C=function(){_?o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebPasscodeRemoval.react"),{onSubmit:function(){return g(0)}})):o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebPasscodeSetup.react"),{onSubmit:function(){return g(o("WAWebScreenLockTimerOptions").DEFAULT_SCREEN_LOCK_DURATION_SECONDS)}}))},b=s._(/*BTDS*/"Bloquea con una contrase\u00f1a"),v=s._(/*BTDS*/"Usa el bloqueo de aplicaci\u00f3n para m\u00e1s privacidad"),S=h?s._(/*BTDS*/"Activar bloqueo de aplicaci\u00f3n"):s._(/*BTDS*/"Bloqueo de aplicaci\u00f3n"),R;h?R=s._(/*BTDS*/"Puedes bloquear {whatsapp_app_name} en lugar de cerrar sesi\u00f3n, para que sea m\u00e1s f\u00e1cil volver a acceder m\u00e1s tarde.",[s._param("whatsapp_app_name",r("WAWebEnvironment").isWindows?r("WAWebFbtCommon")("WhatsApp"):r("WAWebFbtCommon")("WhatsApp Web"))]):R=r("WAWebEnvironment").isWindows?s._(/*BTDS*/"Cuando est\u00e9 activado, deber\u00e1s ingresar tu contrase\u00f1a para desbloquear WhatsApp para Windows. Si la aplicaci\u00f3n est\u00e1 bloqueada, no se mostrar\u00e1n notificaciones. Cuando cierres sesi\u00f3n, se desactivar\u00e1 el bloqueo de aplicaci\u00f3n."):s._(/*BTDS*/"Cuando est\u00e9 activado, deber\u00e1s ingresar tu contrase\u00f1a para desbloquear WhatsApp Web. Si la aplicaci\u00f3n est\u00e1 bloqueada, no se mostrar\u00e1n notificaciones. Cuando cierres sesi\u00f3n, se desactivar\u00e1 el bloqueo de aplicaci\u00f3n.");var L=h&&!_&&c.jsxs(c.Fragment,{children:[c.jsx(o("WAWebText.react").WAWebTextMuted,{padding:[8,0],children:s._(/*BTDS*/"Cuando el bloqueo de la aplicaci\u00f3n est\u00e1 activado, puedes bloquear {whatsapp_app_name} desde el men\u00fa Chats.",[s._param("whatsapp_app_name",r("WAWebEnvironment").isWindows?r("WAWebFbtCommon")("WhatsApp"):r("WAWebFbtCommon")("WhatsApp Web"))])}),c.jsx(o("WAWebText.react").WAWebTextMuted,{padding:[8,0],children:s._(/*BTDS*/"No recibir\u00e1s notificaciones cuando {whatsapp_app_name} est\u00e9 bloqueado. El bloqueo de la aplicaci\u00f3n se restablecer\u00e1 si cierras sesi\u00f3n.",[s._param("whatsapp_app_name",r("WAWebEnvironment").isWindows?r("WAWebFbtCommon")("WhatsApp"):r("WAWebFbtCommon")("WhatsApp Web"))])})]}),E=h&&_&&c.jsx(o("WAWebText.react").WAWebTextMuted,{marginTop:8,children:s._(/*BTDS*/"Cuando estableces una contrase\u00f1a, puedes bloquear {whatsapp_app_name} desde el men\u00fa Chats.",[s._param("whatsapp_app_name",r("WAWebEnvironment").isWindows?r("WAWebFbtCommon")("WhatsApp"):r("WAWebFbtCommon")("WhatsApp Web"))])}),k=h&&_&&c.jsx(o("WAWebText.react").WAWebTextMuted,{padding:[8,0],children:s._(/*BTDS*/"Cu\u00e1ndo bloquear")}),I=_&&o("WAWebScreenLockTimerOptions").getScreenLockTimerOptions().map(function(e){var t=e.label,n=e.value;return c.jsx(r("WAWebDrawerItem.react"),{title:t,tabIndex:-1,icon:c.jsx("div",{children:c.jsx(r("WAWebCheckBoxRound.react"),{testid:void 0,ariaLabel:t,checked:n===l,radio:!0,hover:!1,systemUncheckedColor:!0,onClick:function(){return y(n)}},n)}),isLastItem:!0,testid:void 0},n)}),T=c.jsxs(c.Fragment,{children:[" ",c.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getScreenLockLearnMoreUrl(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})," "]});return c.jsxs(r("WAWebDrawer.react"),{ref:a,testid:void 0,children:[c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:s._(/*BTDS*/"Bloqueo de aplicaci\u00f3n"),onBack:t,onCancel:n,focusBackOrCancel:!0,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),c.jsx(r("WAWebDrawerBody.react"),{children:c.jsxs(r("WAWebDrawerSection.react"),{theme:"padding",animation:!1,children:[h&&c.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",children:c.jsx(o("WAWebWdsPictoPrivacyIcon.react").WdsPictoPrivacyIcon,{})}),h?c.jsx(o("WAWebText.react").WAWebTextMediumRefreshed,{xstyle:m.appLockHeader,children:b}):c.jsx(o("WAWebText.react").WAWebTextSectionTitle,{margin:[8,0,32,0],as:"h2",children:v}),c.jsxs(o("WAWebText.react").WAWebTextMuted,{marginBottom:24,children:[R,h&&c.jsx("br",{}),T]}),h&&c.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1,padding:!1}),c.jsx(o("WAWebSettingsCheckList.react").SettingsCheckListItem,{testid:void 0,id:"screen-lock-setting-checkbox",checked:_,checkboxRightAligned:!0,onChange:C,children:S}),h&&c.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1,padding:!1}),k,I,h&&_&&c.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1,padding:!1}),L,E]})})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebKeyboardRun",["fbt","WALogger","WAWebActions","WAWebBizManageLabelModal.react","WAWebCallCollection","WAWebChatCollection","WAWebChatPinBridge","WAWebCmd","WAWebCommandPaletteUtils","WAWebComposeBoxActions","WAWebComposeBoxPanelTypes","WAWebConfirmPopup.react","WAWebConnModel","WAWebContactCollection","WAWebDrawerManager","WAWebDrawerManagerGlobalContext","WAWebKeyboardTabUtils","WAWebLockScreenResolver","WAWebModalManager","WAWebMsgCollection","WAWebMuteGetters","WAWebNavBarTypes","WAWebNewChatFlowLoadable","WAWebNewGroupFlowLoadable","WAWebNewsletterCollection","WAWebNewsletterGatingUtils","WAWebNoop","WAWebProfilePicThumbCollection","WAWebScreenLockDrawer.react","WAWebSendLogsPopupLoadable","WAWebSettingsFlowLoadable","WAWebSocketModel","WAWebTextStatusCollection","WAWebThemeContext","WAWebUserPrefsGeneral","WAWebUserPrefsMeUser","WAWebUserPrefsScreenLock","WAWebVoipSignalingEnums","WAWebVoipStackInterface","WAWebVoipWaCallEnums","asyncToGeneratorRuntime","cr:13920","cr:1923","react"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_=p||(p=r("react"));function f(e){switch(e){case o("WAWebActions").Action.OPEN_NTH_CHAT:return r("WAWebNoop");case o("WAWebActions").Action.CONTACT_US:return P;case o("WAWebActions").Action.GO_TO_NEXT_CHAT:return x;case o("WAWebActions").Action.GO_TO_PREV_CHAT:return $;case o("WAWebActions").Action.CLOSE_CHAT:return v;case o("WAWebActions").Action.LOGOUT:return S;case o("WAWebActions").Action.OPEN_NEW_CHAT:return y;case o("WAWebActions").Action.OPEN_NEW_GROUP:return C;case o("WAWebActions").Action.OPEN_PROFILE:return b;case o("WAWebActions").Action.OPEN_SETTINGS:return h;case o("WAWebActions").Action.SEARCH:return R;case o("WAWebActions").Action.SEARCH_IN_CHAT:return D;case o("WAWebActions").Action.TOGGLE_ARCHIVE:return L;case o("WAWebActions").Action.TOGGLE_MUTE:return E;case o("WAWebActions").Action.TOGGLE_PIN:return k;case o("WAWebActions").Action.TOGGLE_UNREAD:return I;case o("WAWebActions").Action.TOGGLE_THEME:return T;case o("WAWebActions").Action.OPEN_EMOJI_PANEL:return N;case o("WAWebActions").Action.OPEN_GIF_PANEL:return H;case o("WAWebActions").Action.OPEN_STICKER_PANEL:return G;case o("WAWebActions").Action.TOGGLE_STICKER_MAKER:return j;case o("WAWebActions").Action.TOGGLE_COMMAND_PALETTE:return K;case o("WAWebActions").Action.LOCK_SCREEN:return Q;case o("WAWebActions").Action.LABEL_CHAT:return X;case o("WAWebActions").Action.ZOOM_IN:return Y();case o("WAWebActions").Action.ZOOM_OUT:return J();case o("WAWebActions").Action.ZOOM_RESET:return Z();case o("WAWebActions").Action.INCREASE_PTT_SPEED:case o("WAWebActions").Action.DECREASE_PTT_SPEED:case o("WAWebActions").Action.TOGGLE_BOLD:case o("WAWebActions").Action.TOGGLE_ITALIC:case o("WAWebActions").Action.TOGGLE_STRIKETHROUGH:case o("WAWebActions").Action.TOGGLE_CODE:case o("WAWebActions").Action.TOGGLE_INLINE_CODE:case o("WAWebActions").Action.TOGGLE_NUMBERED_LIST:case o("WAWebActions").Action.TOGGLE_BULLETED_LIST:case o("WAWebActions").Action.TOGGLE_QUOTE:return null;case o("WAWebActions").Action.OPEN_CHAT_INFO:return M();case o("WAWebActions").Action.BLOCK_CHAT:return w();case o("WAWebActions").Action.REPLY:return A();case o("WAWebActions").Action.REPLY_PRIVATE:return F();case o("WAWebActions").Action.FORWARD:return O();case o("WAWebActions").Action.STAR_MESSAGE:return B();case o("WAWebActions").Action.OPEN:return r("WAWebNoop")();case o("WAWebActions").Action.OPEN_ATTACHMENT_DROPDOWN:return z();case o("WAWebActions").Action.START_PTT_RECORDING:return q();case o("WAWebActions").Action.PAUSE_PTT_RECORDING:return U();case o("WAWebActions").Action.SEND_PTT:return V();case o("WAWebActions").Action.EDIT_LAST_MESSAGE:return void 0;case o("WAWebActions").Action.TOGGLE_CALL_CAMERA:return ee();case o("WAWebActions").Action.TOGGLE_CALL_MUTE:return te();case o("WAWebActions").Action.SHOW_CALL_REACTIONS:return ne();case o("WAWebActions").Action.TOGGLE_RAISE_HAND:return re();case o("WAWebActions").Action.START_SCREEN_SHARE:return oe();case o("WAWebActions").Action.END_CALL:return ae()}}function g(t){var n=f(t);if(n)try{n(),t!==o("WAWebActions").Action.TOGGLE_COMMAND_PALETTE&&o("WAWebCmd").Cmd.closeCommandPalette()}catch(n){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["keyboard:error occurred running action ","."])),t)}}function h(){var e,t,n=(e=(t=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("left"))==null?void 0:t.existsDrawer())!=null?e:!1;n&&o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(_.jsx(o("WAWebSettingsFlowLoadable").SettingsFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft}))}function y(){var e,t,n=(e=(t=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("left"))==null?void 0:t.existsDrawer())!=null?e:!1;n&&o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(_.jsx(o("WAWebNewChatFlowLoadable").NewChatFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})}function C(){var e,t,r=(e=(t=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("left"))==null?void 0:t.existsDrawer())!=null?e:!1;r&&o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(_.jsx(o("WAWebNewGroupFlowLoadable").NewGroupFlowLoadable,{onEnd:o("WAWebDrawerManager").closeDrawerLeft,onCreateGroup:(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){yield e,o("WAWebDrawerManager").DrawerManager.closeDrawerLeft()});return function(t){return e.apply(this,arguments)}})()}))}function b(){var e,t,r=(e=(t=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("left"))==null?void 0:t.existsDrawer())!=null?e:!1;r&&o("WAWebDrawerManager").DrawerManager.closeDrawerLeft();var a=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),i=o("WAWebTextStatusCollection").TextStatusCollection.assertGet(a),l=o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(a),s=o("WAWebContactCollection").ContactCollection.assertGet(a);o("WAWebCmd").Cmd.closeActiveChat(),o("WAWebDrawerManager").DrawerManager.openDrawerLeft(_.jsx(n("cr:1923"),{status:i,profilePicThumb:l,contact:s,conn:o("WAWebConnModel").Conn,onClose:o("WAWebDrawerManager").closeDrawerLeft,isInitialStep:!0}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE,transition:"pop-drawer-fast",focusOnUnMount:!0}),o("WAWebCmd").Cmd.setActiveNavBarItem(o("WAWebNavBarTypes").NavBarItems.Profile)}function v(){var e=o("WAWebChatCollection").ChatCollection.getActive();if(e)o("WAWebCmd").Cmd.closeChat(e);else if(o("WAWebNewsletterGatingUtils").isNewsletterEnabled()){var t=r("WAWebNewsletterCollection")==null?void 0:r("WAWebNewsletterCollection").getActive();t&&o("WAWebCmd").Cmd.closeChat(t)}}function S(){if(!o("WAWebMsgCollection").MsgCollection.hasUnsentMessages())return o("WAWebSocketModel").Socket.logout();o("WAWebModalManager").ModalManager.open(_.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas cerrar sesi\u00f3n?"),onOK:function(){o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["Keyboard: user inputs logout"]))),o("WAWebSocketModel").Socket.logout()},okText:s._(/*BTDS*/"Cerrar sesi\u00f3n"),onCancel:o("WAWebModalManager").closeModalManager,cancelText:s._(/*BTDS*/"Cancelar"),children:s._(/*BTDS*/"Algunos de tus mensajes todav\u00eda se est\u00e1n enviando.")}))}function R(){o("WAWebCmd").Cmd.focusChatSearch()}function L(){var e=o("WAWebChatCollection").ChatCollection.getActive();if(e&&e.canArchive()){var t=e.archive;o("WAWebCmd").Cmd.archiveChat(e,!t)}}function E(){var e=o("WAWebChatCollection").ChatCollection.getActive();if(e&&e.mute.canMute()){var t=o("WAWebMuteGetters").getIsMuted(e.mute);o("WAWebCmd").Cmd.muteChat(e,!t)}}function k(){var e=o("WAWebChatCollection").ChatCollection.getActive();if(e&&(e.pin!=null||o("WAWebChatCollection").ChatCollection.filter(function(e){return e.pin}).length=o("WAWebAck").ACK.PLAYED?!1:o("WAWebMsgGetters").getIsAckPlayable(e)||e.isViewOnce}l.markPlayed=s,l.canMarkPlayed=u}),98); __d("WAWebPttIsValidPlaybackSequence",["WAWebFrontendMsgGetters","WAWebMsgGetters"],(function(t,n,r,o,a,i,l){function e(e){var t=e.currentMsg,n=e.nextMsg,r=e.playedBefore;return o("WAWebFrontendMsgGetters").getAsPttLike(n.unsafe())==null?!1:!o("WAWebMsgGetters").getIsSentByMe(n)||o("WAWebMsgGetters").getIsSentByMe(t)?!0:!!r}l.isValidPlaybackSequence=e}),98); __d("WAWebPttFindSequentialMsg",["WAArrayFindNext","WAWebAck","WAWebFrontendMsgGetters","WAWebPttIsValidPlaybackSequence"],(function(t,n,r,o,a,i,l){function e(e){var t=e.id,n=r("WAArrayFindNext")(o("WAWebFrontendMsgGetters").getChat(e.unsafe()).msgs.toArray(),function(e){return t.equals(e.id)});if(!n)return null;var a=o("WAWebFrontendMsgGetters").getAsAudio(n)||o("WAWebFrontendMsgGetters").getAsPtt(n);return a&&o("WAWebPttIsValidPlaybackSequence").isValidPlaybackSequence({currentMsg:e,nextMsg:a,playedBefore:e.ack===o("WAWebAck").ACK.PLAYED})?a:null}function s(e){var t=e.id,n=r("WAArrayFindNext")(o("WAWebFrontendMsgGetters").getChat(e.unsafe()).msgs.toArray(),function(e){return t.equals(e.id)});return n?o("WAWebFrontendMsgGetters").getAsPtv(n):null}l.findSequentialMsg=e,l.findSequentialPtv=s}),98); __d("WAWebWamEnumAudioStreamType",[],(function(t,n,r,o,a,i){var e=Object.freeze({STREAM_MUSIC:0,STREAM_VOICE_CALL:1});i.AUDIO_STREAM_TYPE=e}),66); __d("WAWebWamEnumPttPlaybackSpeedType",[],(function(t,n,r,o,a,i){var e=Object.freeze({SPEED_1:0,SPEED_1_5:1,SPEED_2:2});i.PTT_PLAYBACK_SPEED_TYPE=e}),66); __d("WAWebWamEnumPttPlayerType",[],(function(t,n,r,o,a,i){var e=Object.freeze({AUDIO_QUEUE:0,AVPLAYER:1,AVAUDIOPLAYER:2,OPUSPLAYER:3,ANDROIDPLAYER:4,EXOPLAYER:5,UWPPLAYER:6,VOIPPLAYER:7});i.PTT_PLAYER_TYPE=e}),66); __d("WAWebWamEnumPttStreamType",[],(function(t,n,r,o,a,i){var e=Object.freeze({UNKNOWN:0,AAC:1,MP3:2,AMR_NB:3,AMR_WB:4,OPUS:5,MULTIPLE_TRACKS:6});i.PTT_STREAM_TYPE=e}),66); __d("WAWebWamEnumPttTriggerType",[],(function(t,n,r,o,a,i){var e=Object.freeze({MANUAL:0,SEQUENTIAL:1});i.PTT_TRIGGER_TYPE=e}),66); __d("WAWebPttPlaybackWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumAudioStreamType","WAWebWamEnumPttPlaybackSpeedType","WAWebWamEnumPttPlayerType","WAWebWamEnumPttStreamType","WAWebWamEnumPttTriggerType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({PttPlayback:[2044,{audioStreamType:[19,o("WAWebWamEnumAudioStreamType").AUDIO_STREAM_TYPE],pttDuration:[12,e.TYPES.TIMER],pttMainThreadBlock:[7,e.TYPES.BOOLEAN],pttMiniPlayerClick:[15,e.TYPES.INTEGER],pttMiniPlayerClose:[16,e.TYPES.BOOLEAN],pttMiniPlayerPauseCnt:[17,e.TYPES.INTEGER],pttPlayRequestT:[1,e.TYPES.TIMER],pttPlaybackFailed:[8,e.TYPES.BOOLEAN],pttPlaybackOverallT:[4,e.TYPES.TIMER],pttPlaybackSpeed:[10,o("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE],pttPlaybackSpeedCnt:[11,e.TYPES.INTEGER],pttPlayedOutOfChat:[18,e.TYPES.BOOLEAN],pttPlayedPct:[14,e.TYPES.NUMBER],pttPlayer:[9,o("WAWebWamEnumPttPlayerType").PTT_PLAYER_TYPE],pttPlayerInitT:[2,e.TYPES.TIMER],pttPlayerPlayT:[3,e.TYPES.TIMER],pttSeekCnt:[13,e.TYPES.INTEGER],pttTrigger:[5,o("WAWebWamEnumPttTriggerType").PTT_TRIGGER_TYPE],pttType:[6,o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE]},[1,1,1],"regular"]},{PttPlayback:[]});l.PttPlaybackWamEvent=s}),98); __d("WAWebPttPlaybackLogger",["WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebPttCalculateAudioProgress","WAWebPttDailyUtils","WAWebPttGetDurationFromMediaOrProtobuf","WAWebPttPlaybackWamEvent","WAWebPttPrefs","WAWebPttTsExternalLogger","WAWebWamEnumPttPlaybackSpeedType","WAWebWamEnumPttStreamType","WAWebWamEnumPttTriggerType","err"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e,t){var n=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(){n._hasStartedPlayback=!0},this._handleRateChange=function(){n._audio.playbackRate!==n._currentPlaybackRate&&(n._currentPlaybackRate=n._audio.playbackRate,n._pttPlaybackSpeedCnt+=1)},this._handleTimeupdate=function(){var e=o("WAWebPttCalculateAudioProgress").calculateAudioProgress(n._audio);n._pttPlayedPct=Math.max(e,n._pttPlayedPct)},this._handleEnded=function(){n.commit(!0)},this._handleError=function(){n.commit(!1)},this._msg=e,this._audio=t,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),e.type==="ptt"&&(this._disposeTsExternalLogger=o("WAWebPttTsExternalLogger").attachPttPlayTimeSpentLogger(t))}var t=e.prototype;return t.dispose=function(){var e;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),(e=this._disposeTsExternalLogger)==null||e.call(this)},t._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},t.commit=function(t){if(this._hasStartedPlayback&&this._msg.type==="ptt"){var e=o("WAWebPttPrefs").PttPrefs.playbackRate,n=this._msg.mediaData,r=new(o("WAWebPttPlaybackWamEvent")).PttPlaybackWamEvent({pttSeekCnt:0,pttPlaybackSpeedCnt:0,pttTrigger:this.isSequentialPlayback?o("WAWebWamEnumPttTriggerType").PTT_TRIGGER_TYPE.SEQUENTIAL:o("WAWebWamEnumPttTriggerType").PTT_TRIGGER_TYPE.MANUAL});r.pttPlaybackFailed=!t,r.pttType=s(n.mimetype),r.pttPlaybackSpeed=u(e);var a=o("WAWebPttGetDurationFromMediaOrProtobuf").getDurationFromMediaOrProtobuf(this._audio,n);r.pttDuration=Math.round(a)*1e3,r.pttPlaybackSpeedCnt=this._pttPlaybackSpeedCnt,r.pttSeekCnt=this._pttSeekCnt,r.pttPlayedPct=this._pttPlayedPct,r.pttPlayedOutOfChat=this._pttPlayedOutOfChat,r.pttMiniPlayerPauseCnt=this._pttMiniPlayerPauseCnt,r.pttMiniPlayerClose=this._pttMiniPlayerClose,r.pttMiniPlayerClick=this._pttMiniPlayerClick,r.commit(),this._reset();var i=this._msg.id,l=i==null?null:o("WAWebMsgCollection").MsgCollection.get(i),c=l==null?null:o("WAWebFrontendChatGetters").getKind(o("WAWebFrontendMsgGetters").getChat(l));c!=null&&(o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.PLAYBACK,c),e>1&&o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.FAST_PLAYBACK,c))}},t.increasePttSeekCount=function(){this._pttSeekCnt+=1},t.markAsPlayedInOoc=function(){this._pttPlayedOutOfChat=!0},t.increaseOocPauseCount=function(){this._pttMiniPlayerPauseCnt+=1},t.markAsOocClosedByUser=function(){this._pttMiniPlayerClose=!0},t.increaseOocClickToChatCount=function(){this._pttMiniPlayerClick+=1},e})();function s(e){var t=e==null?void 0:e.split(";")[0];switch(t){case"audio/ogg":return o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.OPUS;case"audio/aac":return o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.AAC;case"audio/mpeg":return o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.MP3;case"audio/amr-wb":return o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.AMR_WB;case"audio/amr":case"audio/3gpp2":return o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.AMR_NB;case"audio/3gpp":default:return o("WAWebWamEnumPttStreamType").PTT_STREAM_TYPE.UNKNOWN}}function u(e){switch(e){case 1:return o("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE.SPEED_1;case 1.5:return o("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE.SPEED_1_5;case 2:return o("WAWebWamEnumPttPlaybackSpeedType").PTT_PLAYBACK_SPEED_TYPE.SPEED_2;default:throw r("err")("Invalid playback rate: "+e)}}l.PttPlaybackLogger=e}),98); __d("WAWebPttPlaybackTone",["WAWebMuteCollection","bx","promiseDone"],(function(t,n,r,o,a,i,l){var e,s=(e=r("bx")).getURL(e("9563")),u=e.getURL(e("9564")),c=new window.Audio(u),d=new window.Audio(s);function m(){_(c)}function p(){_(d)}function _(e){o("WAWebMuteCollection").MuteCollection.getGlobalSounds()&&r("promiseDone")(e.play())}l.playMidPttTone=m,l.playEndPttTone=p}),98); __d("WAWebPttAudioPlaybackController",["WAPromiseDelays","WAWebFrontendMsgGetters","WAWebMarkPlayedMsgAction","WAWebPttAudioChannels","WAWebPttCalculateAudioProgress","WAWebPttFindSequentialMsg","WAWebPttMsgAudioStore","WAWebPttPlaybackLogger","WAWebPttPlaybackTone","WAWebPttPrefs","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e="playing",s="timeupdate",u="ended",c=400,d=(function(){function t(t){var r=this;this.$3=!1,this.$7=function(){o("WAWebMarkPlayedMsgAction").canMarkPlayed(r.$1.unsafe())&&o("WAWebMarkPlayedMsgAction").markPlayed(r.$1.unsafe())},this.$8=function(){r.$1.updateLastPlaybackProgress(o("WAWebPttCalculateAudioProgress").calculateAudioProgress(r.audio,r.$1.mediaData))},this.$5=function(){r.$2=o("WAWebPttPrefs").PttPrefs.setPlayingMessage(r.$1)},this.$6=function(){r.$2==null||r.$2(),r.$2=null,r.audio.currentTime=0,r.$1.updateLastPlaybackProgress(0),r.$9(),r.$3&&(r.$4==null||r.$4(),r.$4=null)},this.$9=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=o("WAWebPttFindSequentialMsg").findSequentialMsg(r.$1),t=!1,n=o("WAWebPttAudioChannels").MainAudioChannel.claim(r,function(){t=!0});if(yield o("WAPromiseDelays").delayMs(c),n(),!t)if(e){o("WAWebPttPlaybackTone").playMidPttTone();var a=o("WAWebPttMsgAudioStore").MsgAudioStore.acquireAudio(e);a.controller.playAsSequential(),a.dispose()}else r.$3&&(o("WAWebPttPlaybackTone").playEndPttTone(),r.$3=!1,r.pttPlaybackLogger.isSequentialPlayback=!1)}),this.audio=t.audio,this.pttPlaybackLogger=new(o("WAWebPttPlaybackLogger")).PttPlaybackLogger(t.msg,t.audio),this.$1=t.msg,this.audio.addEventListener(e,this.$5),this.audio.addEventListener(u,this.$6),o("WAWebMarkPlayedMsgAction").canMarkPlayed(this.$1.unsafe())&&this.audio.addEventListener(e,this.$7),this.audio.addEventListener(s,this.$8)}var r=t.prototype;return r.playAsSequential=function(){o("WAWebPttPrefs").PttPrefs.outOfChatPlayerMessage=this.$1,this.$4=o("WAWebPttMsgAudioStore").MsgAudioStore.acquireAudio(this.$1).dispose,this.$3=!0,this.pttPlaybackLogger.isSequentialPlayback=!0;var e=o("WAWebFrontendMsgGetters").getAsPttLike(this.$1.unsafe())==null?1:o("WAWebPttPrefs").PttPrefs.playbackRate;this.audio.playbackRate=e,this.audio.defaultPlaybackRate=e,this.audio.currentTime=0,this.audio.play()},r.dispose=function(){var t;o("WAWebMarkPlayedMsgAction").canMarkPlayed(this.$1.unsafe())&&this.audio.removeEventListener(e,this.$7),this.audio.removeEventListener(s,this.$8),this.audio.removeEventListener(e,this.$5),this.audio.removeEventListener(u,this.$6),this.pttPlaybackLogger.dispose(),(t=this.$2)==null||t.call(this)},t})();l.AudioPlaybackController=d}),98); __d("WAWebPttMsgAudioStore",["invariant","WANullthrows","WAWebMediaInMemoryBlobCache","WAWebPttAudioChannels","WAWebPttAudioManager","WAWebPttAudioPlaybackController","WAWebPttGetDurationFromMediaOrProtobuf"],(function(t,n,r,o,a,i,l,s){var e=(function(){function e(){this.$1=new Map}var t=e.prototype;return t.$2=function(t,n){var e=this,a=t.mediaData,i=o("WAWebPttAudioManager").AudioManager.createAudioProxy(),l=o("WAWebPttAudioChannels").MainAudioChannel.registerMedia(i),s=d(a);if(s){i.src=s.url;var u=o("WAWebPttGetDurationFromMediaOrProtobuf").getDurationFromMediaOrProtobuf(i,t.mediaData);t.lastPlaybackProgress!=null&&u!=null&&(i.currentTime=u*t.lastPlaybackProgress)}var c=new(o("WAWebPttAudioPlaybackController")).AudioPlaybackController({msg:t,audio:i});return{playbackController:c,refCount:1,dispose:function(){var t=r("WANullthrows")(e.$1.get(n));t.refCount--,t.refCount===0&&(l(),e.$1.delete(n),s==null||s.dispose(),c.dispose())}}},t.acquireAudio=function(t){var e=c(t),n=this.$1.get(e);n?n.refCount++:(n=this.$2(t,e),this.$1.set(e,n));var r=n,o=r.dispose,a=r.playbackController;return{audio:a.audio,pttPlaybackLogger:a.pttPlaybackLogger,controller:a,dispose:u(o)}},e})();function u(e){var t=!1;return function(){!t||s(0,56332),t=!0,e()}}function c(e){return e.id.toString()}function d(e){var t=e.filehash;if(!o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.has(t))return null;var n=o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.getOrCreateURL(t);o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.increaseUsageCount(t);var r=function(){return o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.decreaseUsageCount(t)};return{url:n,dispose:r}}var m=new e;l.MsgAudioStore=m}),98); __d("WAWebPttUseMsgAudioPlaybackController",["WAWebPttMsgAudioStore","react","useWAWebOnUnmount"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(e){var t=function(){return e==null?null:o("WAWebPttMsgAudioStore").MsgAudioStore.acquireAudio(e)},n=s(t),a=n[0],i=n[1],l=s(e),u=l[0],c=l[1];return u!==e&&(c(e),a==null||a.dispose(),i(t())),r("useWAWebOnUnmount")(function(){a==null||a.dispose()}),a}l.useMsgAudioPlaybackController=u}),98); __d("WAWebPttOocPlayer",["cx","WANullthrows","WAWebAudioFileIcon.react","WAWebAudioStatusIcon.react","WAWebChatGetters","WAWebChatMessageSearch","WAWebClassnames","WAWebCmd","WAWebDetailImage.react","WAWebElevatedPushNamesFlag","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgGetters","WAWebName.react","WAWebNewsletterName.react","WAWebPttCalculateAudioProgress","WAWebPttCloseButton.react","WAWebPttDailyUtils","WAWebPttOocMarquee","WAWebPttPlayPauseButton.react","WAWebPttPrefs","WAWebPttStatusIcon.react","WAWebPttUseMsgAudioPlaybackController","WAWebTabOrder","WAWebThemeContext","WAWebUnstyledButton.react","WAWebVelocityTransitionGroup","react","useWAWebAnimationFrames","useWAWebListener","useWAWebMeasure","useWAWebModelValues","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useContext,_=c.useEffect,f=c.useRef,g=c.useState,h=62,y=3,C=26,b=40,v=18,S={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}},R="_ak99",L="_ak9a";function E(){var e=o("useWAWebModelValues").useModelValues(o("WAWebPttPrefs").PttPrefs,["outOfChatPlayerMessage"]),t=e.outOfChatPlayerMessage;_(function(){t&&o("WAWebMsgCollection").MsgCollection.gadd(t)},[t]);var n=o("WAWebPttUseMsgAudioPlaybackController").useMsgAudioPlaybackController(t),r=function(t){o("WAWebPttPrefs").PttPrefs.outOfChatPlayerMessage=t};return t&&n?d.jsx(k,{msg:t,playbackController:n,onPlayNext:r}):null}E.displayName=E.name+" [from "+i.id+"]";function k(e){var t,n=e.msg,a=e.onPlayNext,i=e.playbackController,l=o("useWAWebMsgValues").useMsgValues(n.id,[o("WAWebFrontendMsgGetters").getAsRevoked,o("WAWebFrontendMsgGetters").getPendingDeleteForMe]),s=l[0],u=l[1],c=o("WAWebFrontendMsgGetters").getChat(n.unsafe()),m=i.audio,p=i.pttPlaybackLogger,h=N(n),y=g(!m.paused),C=y[0],b=y[1],v=f(!1),R=function(){return v.current=!1};_(function(){R()},[n]);var L=function(){return b(!m.paused)};(t=o("useWAWebListener")).useListener(m,"playing",function(){L()}),t.useListener(m,"timeupdate",function(){L(),h&&(p.markAsPlayedInOoc(),v.current||(v.current=!0,o("WAWebPttDailyUtils").incrementPttDailyCount(o("WAWebPttDailyUtils").PttDailyCountKind.OOC_PLAYBACK,r("WANullthrows")(o("WAWebFrontendChatGetters").getKind(c)))))}),t.useListener(m,"pause",L),t.useListener(m,"ended",function(){L(),h&&R()}),t.useListener(o("WAWebCmd").Cmd,["status_viewer_open","status_posting_flow","open_lock_screen_modal"],function(){m.pause()}),t.useListener(c,"remove",function(){m.pause(),o("WAWebPttPrefs").PttPrefs.closeOocPlayer()}),_(function(){(s||u)&&(m.pause(),o("WAWebPttPrefs").PttPrefs.closeOocPlayer())},[s,u,m]);var E=function(t){C?(m.pause(),p.increaseOocPauseCount()):m.play(),t.preventDefault()},k=function(t){m.pause(),o("WAWebPttPrefs").PttPrefs.closeOocPlayer(),o("WAWebPttPrefs").PttPrefs.setPlayingMessage(null),p.markAsOocClosedByUser(),p.commit(!0),t.preventDefault()},D=function(t){t.defaultPrevented||(o("WAWebCmd").Cmd.openChatAt({chat:c,msgContext:o("WAWebChatMessageSearch").getSearchContext(c,n.id)}),p.increaseOocClickToChatCount())},x=h&&!s&&!u;return d.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"ptt-out-of-chat",children:x?d.jsxs("div",{className:"x10l6tqk x12xzxwr x78zum5 xh8yej3 x1x0gksc x1xrx4lg xnj6ddq",children:[d.jsx("div",{className:"xfvyar9 x5yr21d x78zum5 xl56j7k x6s0dn4",children:d.jsx(r("WAWebPttPlayPauseButton.react"),{onConfirm:E,paused:!C,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_OOC_BUTTON,theme:"out-of-chat-playback"})}),d.jsx("div",{className:"xh8yej3 x5yr21d x6ikm8r x10wlt62 x78zum5 xl56j7k x6s0dn4 x1n2onr6",children:d.jsxs(r("WAWebUnstyledButton.react"),{dataTab:o("WAWebTabOrder").TAB_ORDER.PTT_OOC_BUTTON,xstyle:S.senderButton,onClick:D,children:[d.jsx(T,{msg:n}),d.jsx(I,{author:n.senderObj,chat:c})]})}),d.jsx("div",{className:"xfvyar9 x5yr21d x78zum5 xl56j7k x6s0dn4",children:d.jsx(r("WAWebPttCloseButton.react"),{onConfirm:k,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_OOC_BUTTON,theme:"out-of-chat-playback"})}),d.jsx(P,{audio:m,isPlaying:C})]}):null})}k.displayName=k.name+" [from "+i.id+"]";function I(e){var t=e.author,n=e.chat,a=r("useWAWebMeasure")(),i=a[0],l=a[1].width,s=r("useWAWebMeasure")(),u=s[0],c=s[1].width,m=o("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(n),p;o("WAWebChatGetters").getIsGroup(n)?p=d.jsx(o("WAWebName.react").ContactAndGroupName,{contact:t,chat:n,elevatedPushNamesEnabled:!0,xstyle:S.senderName}):o("WAWebChatGetters").getIsNewsletter(n)?p=d.jsx(o("WAWebNewsletterName.react").NewsletterName,{chat:n,elevatedPushNamesEnabled:m,xstyle:S.senderName}):p=d.jsx(o("WAWebName.react").Name,{contact:t,useShortName:!0,xstyle:S.senderName,elevatedPushNamesEnabled:m});var _=c>l;return d.jsxs(d.Fragment,{children:[d.jsx("div",{ref:i,className:"xoiwuju x5yr21d x6ikm8r x10wlt62 x10l6tqk",children:d.jsx("div",{ref:u,className:"xlshs6z x10l6tqk xomak03 xx7j5b9",children:p})}),d.jsx("div",{className:"xuxw1ft xbrixnn x6ikm8r x10wlt62 x193iq5w x5yr21d x78zum5 x6s0dn4",children:_?d.jsx(r("WAWebPttOocMarquee"),{children:p}):p})]})}I.displayName=I.name+" [from "+i.id+"]";function T(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebFrontendMsgGetters").getAsPttLike,o("WAWebMsgGetters").getHasOriginatedFromNewsletter]),r=n[0],a=n[1];return r||a?d.jsx(D,{msg:t}):t.isForwarded?d.jsx(x,{}):d.jsx($,{})}T.displayName=T.name+" [from "+i.id+"]";function D(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebFrontendMsgGetters").getMsgSenderId,o("WAWebFrontendMsgGetters").getAsPttLike]),r=n[0],a=n[1],i=t.type==="ptt"||a?o("WAWebPttStatusIcon.react").PttStatusIcon:o("WAWebAudioStatusIcon.react").AudioStatusIcon;return d.jsxs("div",{className:"x14iifvp x100vrsf x1vqgdyp x1fns5xo x78zum5 xl56j7k x6s0dn4 x1a02dak x1n2onr6",children:[d.jsx(o("WAWebDetailImage.react").DetailImage,{id:r,size:b}),d.jsx("span",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("x11uqc5h x10l6tqk xuivejd xdj266r x14z9mp xat24cr x1lziwak xexx8yu xyri2b x18d9i69 x1c1uobl x9hgfsb",R),children:d.jsx(i,{width:C,height:C})})]})}D.displayName=D.name+" [from "+i.id+"]";function x(){return d.jsx("div",{className:"x14iifvp x100vrsf x1vqgdyp x1fns5xo x78zum5 xl56j7k x6s0dn4 x1a02dak x1n2onr6 xvs2etk xg3wpu6 x1jwbhkm xgg4q86 x6ikm8r x10wlt62 x1aqdfop",children:d.jsx(o("WAWebPttStatusIcon.react").PttStatusIcon,{width:20,height:20,className_DONOTUSE:L})})}x.displayName=x.name+" [from "+i.id+"]";function $(){return d.jsx("div",{className:"x14iifvp x100vrsf x1vqgdyp x1fns5xo x78zum5 xl56j7k x6s0dn4 x1a02dak x1n2onr6 xvs2etk xg3wpu6 x1jwbhkm xgg4q86 x6ikm8r x10wlt62",children:d.jsx(o("WAWebAudioFileIcon.react").AudioFileIcon,{width:b,height:b})})}$.displayName=$.name+" [from "+i.id+"]";function P(e){var t=e.audio,n=e.isPlaying,a=g(o("WAWebPttCalculateAudioProgress").calculateAudioProgress(t)),i=a[0],l=a[1],s=m(function(){l(o("WAWebPttCalculateAudioProgress").calculateAudioProgress(t))},[t]);r("useWAWebAnimationFrames")(s,{active:n}),o("useWAWebListener").useListener(t,"timeupdate",s),o("useWAWebListener").useListener(t,"ended",function(){return l(0)});var u=p(o("WAWebThemeContext").ThemeContext),c=u.theme;return d.jsx("div",{className:"xh8yej3 x10l6tqk xef1mmm xuoj239",children:d.jsx("div",{className:{0:"xh8yej3 x5yr21d",2:"xh8yej3 x5yr21d x1r1mewj xwq05k6",1:"xh8yej3 x5yr21d x1liytr5 xyd83as",3:"xh8yej3 x5yr21d x1liytr5 xyd83as"}[(c==="light")<<1|(c==="dark")<<0],style:{transform:"translateX("+(i*100-100)+"%)"}})})}P.displayName=P.name+" [from "+i.id+"]";function N(e){var t=o("useWAWebModelValues").useModelValues(o("WAWebPttPrefs").PttPrefs,["isOocPlayerClosedByUser"]),n=t.isOocPlayerClosedByUser,r=o("WAWebFrontendMsgGetters").getChat(e.unsafe()),a=o("useWAWebModelValues").useModelValues(r,["active"]),i=a.active;return!n&&!i}l.default=E}),98); __d("useWAWebCallbackAfterRender",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useLayoutEffect,c=s.useRef;function d(e){var t=c(null);return u(function(){if(t.current){var e=t.current;t.current=null,e()}},e),function(e){t.current=e}}l.default=d}),98); __d("useWAWebShiftTimerCallback",["WAShiftTimer","react","useWAWebStableCallback"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useCallback,c=s.useEffect,d=s.useMemo;function m(e){var t=r("useWAWebStableCallback")(e),n=d(function(){return new(o("WAShiftTimer")).ShiftTimer(t)},[t]);c(function(){return n.cancel},[n]);var a=u(function(e,t){e===void 0?n.onOrBeforeRepaint():t===void 0?n.debounce(e):n.debounceAndCap(e,t)},[n]);return a}l.default=m}),98); __d("WAWebChatlistPanelFunctional.react",["cx","fbt","Promise","WAAbortError","WAFilteredCatch","WAFtsIsSearchQueryEligibleForMessageSearch","WALogger","WANullthrows","WAPromiseRaceAbort","WAWebABProps","WAWebAccessibility.react","WAWebAdaptiveLayoutGatingUtils","WAWebBizGatingUtils","WAWebBotGating","WAWebChatArchivedEntryPoint.react","WAWebChatAssignmentCollection","WAWebChatAssignmentUtils","WAWebChatCollection","WAWebChatGetters","WAWebChatListFilters.react","WAWebChatListSearch.react","WAWebChatLockUtils","WAWebChatLockedEntryPoint.react","WAWebChatMessageSearch","WAWebChatModel","WAWebChatSearchFilters","WAWebChatSearchQuery","WAWebChatlistBanners.react","WAWebChatlistFunctional.react","WAWebChatlistPanelMode","WAWebChatlistPanelUtils","WAWebChatlistUtils","WAWebChatlist_DEPRECATED.react","WAWebChevronCustomIcons","WAWebClassnames","WAWebClientFeatureFlags","WAWebCmd","WAWebCommandCollection","WAWebCommandModel","WAWebCommunityGroupJourneyEventImpl","WAWebComposeBoxActions","WAWebConnModel","WAWebConstantsDeprecated","WAWebConsumerMultiSelectBar.react","WAWebContactCollection","WAWebContactGetters","WAWebContactModel","WAWebContactlessChatUtils","WAWebDesktopUpsellChatlistToastbar.react","WAWebDesktopUpsellSearchToastbar.react","WAWebDrawerManager","WAWebDrawerManagerContext","WAWebEmptyState.react","WAWebEnvironment","WAWebErrorBoundary.react","WAWebFilterLogging","WAWebFilterSession","WAWebFindCommonGroupsContactAction","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFocusTracer","WAWebFrontendChatGetters","WAWebFrontendConstants","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebFtsConstants","WAWebFtsMsgsCallLogCollection","WAWebFtsMsgsCollection","WAWebGetMetaAISearchSuggestionsAction","WAWebGroupType","WAWebHistorySyncComponents.react","WAWebInboxFiltersGatingUtils","WAWebKeyboardRun","WAWebL10NAccentFold","WAWebListsGatingUtils","WAWebMessageYourselfMetricUtils","WAWebMiscGatingUtils","WAWebMixedMultiSelectBar.react","WAWebModalManager","WAWebMsgCollection","WAWebMsgModel","WAWebMultiSelectEntryPointConstants","WAWebMultiSelection","WAWebNoop","WAWebOfflineHandler","WAWebOfflineResumeProgressToastbar.react","WAWebOfflineResumeTypes.flow","WAWebPREGatingUtils","WAWebParticipantListUtils","WAWebPhoneNumberSearch","WAWebPrivacyNarrativeE2EMessage.react","WAWebPttOocPlayer","WAWebSearchLogging","WAWebSearchUserJourneyLogger","WAWebSelectableState","WAWebSettingsConst","WAWebSettingsFlowLoadable","WAWebSingleSelection","WAWebSpinner.react","WAWebUISpacing","WAWebUimUie.react","WAWebUnknownContactSection.react","WAWebUsernameKeyVerificationFlow","WAWebUsernameSearchLogger","WAWebVelocityAnimate","WAWebVelocityTransitionGroup","WAWebVoipCallsTabPanelManager","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumContactSearchEntrypoint","WAWebWamEnumLandingSurface","WAWebWamEnumSearchActionName","WAWebWamEnumSurfaceType","WAWebWamEnumTsSurface","WAWebWamEnumUnlockEntryPoint","WAWebWid","asyncToGeneratorRuntime","cr:5923","cr:5932","cr:5959","err","gkx","isEmptyObject","react","stylex","useWAWebCallbackAfterRender","useWAWebChatLockRestriction","useWAWebDebouncedCallback","useWAWebForceUpdate","useWAWebListener","useWAWebShiftTimerCallback","useWAWebStableCallback","useWAWebThrottledCallback","useWAWebUnknownContact","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m,p,_,f,g,h,y,C,b,v,S,R,L,E,k,I,T,D,x,$,P,N,M,w,A,F,O,B,W,q,U,V,H,G,z,j,K,Q,X,Y,J,Z,ee,te,ne=te||(te=o("react")),re=ee||(ee=r("react")),oe=ne.startTransition,ae=ne.useCallback,ie=ne.useEffect,le=ne.useImperativeHandle,se=ne.useRef,ue=ne.useState,ce={unreadIcon:{verticalAlign:"xwgq4w4",$$css:!0}},de=n("cr:5959")==null?void 0:n("cr:5959").executeDebugCommand,me=50,pe=75,_e={THROTTLE:450},fe=[o("WAWebChatSearchFilters").SearchFilters.UNREAD],ge=[].concat(fe,[o("WAWebChatSearchFilters").SearchFilters.CONTACT,o("WAWebChatSearchFilters").SearchFilters.GROUP,o("WAWebChatSearchFilters").SearchFilters.FAVORITES]),he=[].concat(ge,[o("WAWebChatSearchFilters").SearchFilters.LABELS]),ye=new Set(fe),Ce=new Set(ge),be=new Set(he),ve=new Set([o("WAWebChatSearchFilters").SearchFilters.UNREAD,o("WAWebChatSearchFilters").SearchFilters.CONTACT,o("WAWebChatSearchFilters").SearchFilters.GROUP,o("WAWebChatSearchFilters").SearchFilters.FAVORITES,o("WAWebChatSearchFilters").SearchFilters.LABELS,o("WAWebChatSearchFilters").SearchFilters.COMMUNITY]),Se=function(){return o("WAWebListsGatingUtils").isListsEnabled()?ve:o("WAWebInboxFiltersGatingUtils").inboxCustomFiltersEnabled()?be:o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()?Ce:ye};function Re(t){"use no forget";var a,i,l,s,ee=t.aiSearchExperienceEnabled,te=t.chatlistPanelRef,ne=te===void 0?null:te,fe=t.endMultiSelect,ge=t.hideLockedChats,he=t.hideMultiSelectBar,ye=t.labelFilter,Ce=t.mode,be=t.multiSelectEntryPoint,ve=t.multiSelection,Re=t.selectable,Le=t.showArchiveV2,Ee=t.startChatInteraction,ke=t.unknownContactPhoneSearchEnabled,Ie=t.unknownContactUsernameSearchEnabled,Te=ye?{label:ye}:void 0,De=o("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===o("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.Toastbar,xe=ue(!1),$e=xe[0],Pe=xe[1],Ne=ue(void 0),Me=Ne[0],we=Ne[1],Ae=ue([]),Fe=Ae[0],Oe=Ae[1],Be=ue(!1),We=Be[0],qe=Be[1],Ue=ue(be),Ve=Ue[0],He=Ue[1],Ge=ue(Te),ze=Ge[0],je=Ge[1],Ke=ue(void 0),Qe=Ke[0],Xe=Ke[1],Ye=ue(De),Je=Ye[0],Ze=Ye[1],et=ue(!1),tt=et[0],nt=et[1],rt=ue([]),ot=rt[0],at=rt[1],it=se(Ce===r("WAWebChatlistPanelMode").CallsTab?new(r("WAWebFtsMsgsCallLogCollection")):new(r("WAWebFtsMsgsCollection"))),lt=se(new(r("WAWebSingleSelection"))([],function(e){return e.id.toString()})),st=se(new(o("WAWebChatSearchQuery")).SearchQuery),ut=se(null),ct=se(null),dt=se(null),mt=se(null),pt=se(null),_t=se(null),ft=ae(function(e){ct.current=e},[]),gt=se(new(r("WAWebFlatListController"))),ht=se(ve||new(r("WAWebMultiSelection"))([],function(e){return e.id.toString()})),yt=se(new(r("WAWebSelectableState"))(Re||!1)),Ct=se(new(r("WAWebFilterSession"))),bt=se({}),vt=se(null),St=se(null),Rt=se(null),Lt=se(null),Et=se(null),kt=se(null),It=r("useWAWebUnmountSignal")(),Tt=ae(function(e){return!e||!e.label&&!e.kind},[]),Dt=ae(function(e,t,n){var a=t!=null?t:{},i=n!=null?n:{},l=i.includeActiveChat,s=l===void 0?!1:l,u=Se(),c=(e||"").trim();if(c||!Tt(a)){c=o("WAWebL10NAccentFold").accentFold(c);var d=o("WAWebPhoneNumberSearch").numberSearch(c);return o("WAWebChatCollection").ChatCollection.filter(function(e){if(!o("WAWebFrontendChatGetters").getShouldAppearInList(e))return!1;var t=s&<.current.getVal()===e;if(t)return!0;var n=e.archive&&a.kind!=null&&u.has(a.kind);if(n)return!1;var i=a.label!=null&&e.contact.searchMatchExact(c,d,a.label);if(i)return!0;var l=!c||e.contact.searchMatchExact(c,d),m=!a.kind&&!a.label||o("WAWebChatMessageSearch").matchFilter(e,a);if(l&&m)return!0;var p=!1;return o("WAWebChatGetters").getIsGroup(e)&&(p=r("WANullthrows")(e.groupMetadata).isUnnamed&&o("WAWebParticipantListUtils").calculateUnnamedGroupFullParticipantsList(r("WANullthrows")(e.groupMetadata)).includes(c)),!!(p&&m)})}return o("WAWebChatCollection").ChatCollection.filter(function(e){return!e.archive&&o("WAWebFrontendChatGetters").getShouldAppearInList(e)})},[Tt]),xt=ue(function(){return Dt("",ze)}),$t=xt[0],Pt=xt[1],Nt=ae(function(e){var t=e!=null?e:{},n=t.searchText,r=t.filter,a=r===void 0?{}:r,i=t.includeChats,l=i===void 0?!1:i,s=t.includeNonContacts,u=s===void 0?!1:s;if(a.kind===o("WAWebChatSearchFilters").SearchFilters.CONTACT||a.kind===o("WAWebChatSearchFilters").SearchFilters.NON_CONTACT||a.kind===o("WAWebChatSearchFilters").SearchFilters.UNREAD||a.kind===o("WAWebChatSearchFilters").SearchFilters.FAVORITES)return[];var c=(n||"").trim();if(!c&&Tt(a))return[];c=o("WAWebL10NAccentFold").accentFold(c);var d=o("WAWebPhoneNumberSearch").numberSearch(c);return o("WAWebContactCollection").ContactCollection.searchContacts({query:{text:c,number:d,label:a.label},filter:{showMe:!!c,showWithoutName:u,cancelAt:e==null?void 0:e.cancelAt,filterFn:function(t){if(l)return!0;var e=o("WAWebChatCollection").ChatCollection.getLatestChatForWid(t.id);return e==null||!o("WAWebFrontendChatGetters").getShouldAppearInList(e)}}})},[Tt]),Mt=ue(function(){return Nt({searchText:"",filter:ze})}),wt=Mt[0],At=Mt[1],Ft=ue(""),Ot=Ft[0],Bt=Ft[1],Wt=ae(function(e){var t=(e||"").trim();return!t||Ce!==r("WAWebChatlistPanelMode").CommandPalette?[]:o("WAWebCommandCollection").CommandCollection.query({query:t,type:"action"})},[Ce]),qt=ue(function(){return Wt("")}),Ut=qt[0],Vt=qt[1],Ht=ae(function(e){var t,a=(e||"").trim();return!a||Ce!==r("WAWebChatlistPanelMode").CommandPalette||!o("WAWebClientFeatureFlags").isFeatureEnabled("debug_commands")?[]:(t=n("cr:5923")==null?void 0:n("cr:5923").query(a).slice(0,3))!=null?t:[]},[Ce]),Gt=ue(function(){return Ht("")}),zt=Gt[0],jt=Gt[1],Kt=ae(function(e){var t=(e||"").trim().toLowerCase();if(!t||Ce!==r("WAWebChatlistPanelMode").CommandPalette)return[];var n=o("WAWebChatCollection").ChatCollection.filter(function(e){var n;return((n=e.groupMetadata)==null?void 0:n.groupType)===o("WAWebGroupType").GroupType.COMMUNITY&&e.formattedTitle.toLowerCase().includes(t)});return n},[Ce]),Qt=ue(function(){return Kt("")}),Xt=Qt[0],Yt=Qt[1],Jt=ae(function(e){var t=(e||"").trim();return!t||Ce!==r("WAWebChatlistPanelMode").CommandPalette?[]:o("WAWebCommandCollection").CommandCollection.query({query:t,type:"setting"})},[Ce]),Zt=ue(function(){return Jt("")}),en=Zt[0],tn=Zt[1],nn=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),rn=r("useWAWebDebouncedCallback")(function(e){var t;e===void 0&&(e=!1),ye||Er();var a=st.current.trimmed();(t=St.current)==null||t.abort(),St.current=new AbortController;var i=St.current.signal,l=(J||(J=n("Promise"))).resolve().then(function(){!e&&!$e&&yn({searching:!0},pe)}).then(function(){return e&&it.current.resetSearch(),it.current.search({count:o("WAWebFtsConstants").FTS_NUM_RESULTS,filter:st.current.filter,searchTerm:a})});vt.current=r("WAPromiseRaceAbort")(l,i).then(function(t){t&&!t.canceled&&(yn({searching:!1},pe),e&&nn())}).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).finally(function(){vt.current=void 0,St.current=void 0}).catch(function(){$e&&yn({searching:!1},pe)})},o("WAWebFtsConstants").FTS_TYPING_DELAY),on=r("useWAWebThrottledCallback")(function(e,t){var n=Dt(e,t);xn(n)&&yn({chats:n},pe,me)},_e.THROTTLE,{leading:!1,trailing:!0}),an=r("useWAWebThrottledCallback")(function(t,n){var a=Nt({searchText:t,filter:n,includeChats:Ce===r("WAWebChatlistPanelMode").CallsTab});o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Updating contacts via throttledFilteredContacts, count: ",""])),a.length),yn({contacts:a},pe,me)},_e.THROTTLE,{leading:!1,trailing:!0}),ln=r("useWAWebThrottledCallback")(function(e){var t=Wt(e);yn({actions:t},pe,me)},_e.THROTTLE,{leading:!1,trailing:!0}),sn=r("useWAWebThrottledCallback")(function(e){var t=Ht(e);yn({debugCommands:t},pe,me)},_e.THROTTLE,{leading:!1,trailing:!0}),un=r("useWAWebThrottledCallback")(function(e){var t=Kt(e);yn({communities:t},pe,me)},_e.THROTTLE,{leading:!1,trailing:!0}),cn=r("useWAWebThrottledCallback")(function(e){var t=Jt(e);yn({settingsCommands:t},pe,me)},_e.THROTTLE,{leading:!1,trailing:!0}),dn=r("useWAWebThrottledCallback")(function(){if(!Cn()){an.cancel();var e=Nt({filter:st.current.filter});o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Updating contacts via ContactCollection sort, count: ",""])),e.length),yn({contacts:e})}},_e.THROTTLE),mn=r("useWAWebThrottledCallback")(function(e){jn(e)&&er()},100),pn=r("useWAWebDebouncedCallback")(function(){var e,t=st.current.trimmed();if(!t){Oe([]);return}var a=st.current.filter;if(a.kind===o("WAWebChatSearchFilters").SearchFilters.CONTACT||a.kind===o("WAWebChatSearchFilters").SearchFilters.NON_CONTACT||a.kind===o("WAWebChatSearchFilters").SearchFilters.FAVORITES){Oe([]);return}var i=o("WAWebABProps").getABPropConfigValue("web_max_contacts_to_show_common_groups"),l=Nt({searchText:t,filter:a,includeChats:!0,includeNonContacts:!0,cancelAt:i+1});if(l.length===0){Oe([]);return}var s=l.map((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){try{return yield o("WAWebFindCommonGroupsContactAction").findCommonGroups(e),e.commonGroups}catch(e){var t=String(e);throw o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["get from participants table failed"]))).verbose().sendLogs("get from participants table failed when finding common groups: "+t),r("err")("get from participants table failed")}});return function(t){return e.apply(this,arguments)}})());(e=Lt.current)==null||e.abort(),Lt.current=new AbortController;var u=Lt.current.signal;Rt.current=r("WAPromiseRaceAbort")((J||(J=n("Promise"))).all(s),u).then(function(e){if(t===st.current.trimmed()){var n=Kn(e,l);Oe(n)}}).catch(r("WAWebNoop")).finally(function(){Rt.current=null,Lt.current=null})},750),_n=r("useWAWebDebouncedCallback")(function(){var e;if(!(o("WAWebBotGating").canSearchMetaAiSuggestions(st.current)&&ee===!0)){at([]);return}var t=o("WAWebGetMetaAISearchSuggestionsAction").getMetaAISearchTypeAheadSuggestionsAction(st.current.trimmed());(e=kt.current)==null||e.abort(),kt.current=new AbortController;var n=kt.current.signal;Et.current=r("WAPromiseRaceAbort")(t,n).then(function(e){at(e.slice(0,o("WAWebBotGating").getMetaAISearchTypeAheadMaxSuggestionsCount()))}).catch(o("WAFilteredCatch").filteredCatch(o("WAAbortError").AbortError,r("WAWebNoop"))).finally(function(){Et.current=null,kt.current=null})},200),fn=r("useWAWebDebouncedCallback")(function(e){Qn(e)},1e3),gn=ae(function(e){r("isEmptyObject")(e)||(e.searching!==void 0&&Pe(e.searching),e.chats!==void 0&&Pt(e.chats),e.contacts!==void 0&&At(e.contacts),e.messages!==void 0&&we(e.messages),e.actions!==void 0&&Vt(e.actions),e.communities!==void 0&&Yt(e.communities),e.debugCommands!==void 0&&jt(e.debugCommands),e.settingsCommands!==void 0&&tn(e.settingsCommands),e.commonGroups!==void 0&&Oe(e.commonGroups),e.showMultiSelectBar!==void 0&&qe(e.showMultiSelectBar),e.multiSelectEntryPoint!==void 0&&He(e.multiSelectEntryPoint),e.filterPreset!==void 0&&je(e.filterPreset),e.unreadButton!==void 0&&Xe(e.unreadButton),e.showOfflineToastbar!==void 0&&Ze(e.showOfflineToastbar),e.lockedChatsEntryPointVisible!==void 0&&nt(e.lockedChatsEntryPointVisible),e.aiSuggestions!==void 0&&at(e.aiSuggestions))},[]),hn=r("useWAWebShiftTimerCallback")(function(){gn(bt.current),bt.current={}}),yn=ae(function(e,t,n){if(!r("isEmptyObject")(e)){var o=Object.keys(e).some(function(t){return bt.current[t]!==e[t]});o&&(Object.assign(bt.current,e),hn(t,n))}},[hn]),Cn=ae(function(){return Ce===r("WAWebChatlistPanelMode").CallsTab||!!st.current.query},[Ce]),bn=(Ce===r("WAWebChatlistPanelMode").Chatlist||Ce===r("WAWebChatlistPanelMode").CallsTab)&&Cn(),vn=Ce===r("WAWebChatlistPanelMode").Chatlist,Sn=bn&&ke===!0,Rn=Ot.startsWith("@"),Ln=bn&&Ie===!0&&(!vn||Rn),En=r("useWAWebUnknownContact")({phoneOrUsername:Ot,searchPhoneNumber:Sn,searchUsername:Ln}),kn=En.error,In=En.loading,Tn=En.onRetry,Dn=En.unknownContactInfo,xn=ae(function(e){if(!o("WAWebPREGatingUtils").isPREMessageSendEnabled())return!0;var t=$t.length===e.length;if(!t)return!0;var n=$t.some(function(t,n){return t.id!==e[n].id});return n},[$t]),$n=se(0),Pn=se(null),Nn=se(null),Mn=se(!1);o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"remove",function(e){if(o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: ChatCollection remove event, isSearching: ",""])),!!st.current.query),st.current.query){var t=$t.filter(function(t){return t!==e});$t&&t.length!==$t.length&&yn({chats:t})}else on.cancel(),yn({chats:Dt(void 0,st.current.filter)})}),o("useWAWebListener").useListener(o("WAWebContactCollection").ContactCollection,"remove",function(e){if(Cn()){var t=wt.filter(function(t){return t!==e});wt&&t.length!==wt.length&&(o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Updating contacts via ContactCollection remove (searching), old count: ",", new count: ",""])),wt.length,t.length),yn({contacts:t}))}else{an.cancel();var n=Nt({searchText:void 0,filter:st.current.filter});o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Updating contacts via ContactCollection remove (not searching), count: ",""])),n.length),yn({contacts:n})}}),o("useWAWebListener").useListener(o("WAWebChatAssignmentCollection").ChatAssignmentCollection,"add remove",function(e){if(o("WAWebChatAssignmentUtils").canAssignChats()&&st.current.filter.kind===o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU)if(st.current.query){var t=$t.filter(function(t){return t!==e});$t&&t.length!==$t.length&&yn({chats:t})}else on.cancel(),yn({chats:Dt(void 0,st.current.filter)})});var wn=r("useWAWebThrottledCallback")(function(e){if(!(Cn()||st.current.filter.kind!==o("WAWebChatSearchFilters").SearchFilters.UNREAD&&(!o("WAWebChatAssignmentUtils").canAssignChats()||st.current.filter.kind!==o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU))){on.cancel();var t=Dt(void 0,st.current.filter,{includeActiveChat:!0});e&&(t=t.filter(function(t){return t!==e})),yn({chats:t})}},_e.THROTTLE);o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"sort change:archive",function(){var e;if(o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: ChatCollection sort/archive event, isSearching: ",", filter: ",""])),Cn(),(e=st.current.filter.kind)!=null?e:"none"),!Cn()){if(st.current.filter.kind===o("WAWebChatSearchFilters").SearchFilters.UNREAD){wn();return}if(st.current.filter.kind===o("WAWebChatSearchFilters").SearchFilters.FAVORITES){An();return}on.cancel();var t=Dt(void 0,st.current.filter),n=$t.length!==t.length||$t.some(function(e,n){var r;return e.id!==((r=t[n])==null?void 0:r.id)});n&&yn(babelHelpers.extends({chats:t},void 0))}}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:unreadCount change:isAssignedToMe",function(){return wn()}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"close_chat",function(e){wn(e)});var An=r("useWAWebThrottledCallback")(function(){if(!(Cn()||st.current.filter.kind!==o("WAWebChatSearchFilters").SearchFilters.FAVORITES)){on.cancel();var e=Dt(void 0,st.current.filter,{includeActiveChat:!1});yn({chats:e})}},_e.THROTTLE);o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:isFavorite",function(){return An()}),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"offline_progress_update_from_bridge offline_delivery_end_from_bridge",function(){return kr()}),o("useWAWebListener").useListener(o("WAWebContactCollection").ContactCollection,"sort",dn),o("useWAWebListener").useListener(it.current,"bulk_remove reset",function(){Cn()||(on.cancel(),yn({chats:Dt(void 0,st.current.filter)}))}),o("useWAWebListener").useListener(r("WAWebVoipCallsTabPanelManager"),"onWriteCallLogMessage",function(){on.cancel(),rn(!0)}),o("useWAWebListener").useListener(o("WAWebMsgCollection").MsgCollection,r("WAWebConstantsDeprecated").NEW_MSG_SENT,function(){Cn()?nr().then(function(){return Gn()}):Gn()}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:unreadCount",function(e){}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:archive remove",function(e){}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"reset",function(){}),o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"open_modal open_media",function(){o("WALogger").LOG(g||(g=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: ModalManager open_modal/open_media event received"]))),Ce===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&(o("WALogger").LOG(h||(h=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Calling handleChatlistDisplayUpdate(true) from open_modal/open_media event"]))),Ir(!0))}),o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"close_modal close_media",function(){o("WALogger").LOG(y||(y=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: ModalManager close_modal/close_media event received"]))),Ce===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&(o("WALogger").LOG(C||(C=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Calling handleChatlistDisplayUpdate() from close_modal/close_media event"]))),Ir())}),o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"change:contact.labels",function(){o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&st.current.filter.kind===o("WAWebChatSearchFilters").SearchFilters.LABELS&&st.current.filter.label!=null&&(on.cancel(),yn({chats:Dt(void 0,st.current.filter)}))});var Fn=ae(function(){var e;return!1;var t;if(Pn.current&&!((e=Pn.current)!=null&&e.archive)){var n;$n.current=(n+.5)*o("WAWebFlatList.react").DEFAULT_ITEM_HEIGHT,t||(t=ut.current!=null&&ut.current.scrollTop>$n.current),Pn.current=void 0}},[Qe]),On=ae(function(){Qe===!0&&(Pn.current=void 0,Xe(!1))},[Qe]),Bn=ae(function(e){if(!e.active){var t=Pn.current!=null&&r("WAWebWid").equals(Pn.current.id,e.id);e.isDirty()?t||(Pn.current=e):t&&On()}},[On]),Wn=ae(function(e){Pn.current&&r("WAWebWid").equals(Pn.current.id,e.id)&&On()},[On]),qn=ae(function(){var e;pt.current&&((e=pt.current)==null||e.focusFirst())},[]),Un=ae(function(){var e=ht.current&&ht.current.getSelected().length>0&&!he;We!==e&&yn({showMultiSelectBar:e})},[We,he,yn]);o("useWAWebListener").useListener(ht.current,"all",Un);var Vn=ae(function(e){e.key==="ArrowDown"&&(ct.current&&!ct.current.cursorIsAtEnd()||(e==null||e.preventDefault(),qn()))},[qn]),Hn=ae(function(e){e!==Ve&&He(e)},[Ve]),Gn=ae(function(){var e=ut.current;if(e){var t=e.scrollTop;e.scrollTop!==0&&(te.scrollHeight-e.clientHeight},[zn,Ce]),Kn=ae(function(e,t){for(var n=new Map,r=function(o){var r=e[o];r&&r.forEach(function(e){e&&(n.has(e)||n.set(e,[]),n.get(e).push(t[o]))})},a=0;a0&&((e=yt.current)==null?void 0:e.isSelectable)!==!0&&o("WAWebChatCollection").ChatCollection.some(function(e){return e.archive&&o("WAWebFrontendChatGetters").getShouldAppearInList(e)}))},[Ce,Le,We,$t]),Lr=ae(function(){return o("WAWebChatlistPanelUtils").shouldShowLockedChatsPanel({mode:Ce,selectableState:yt.current,showMultiSelectBar:We,hideLockedChats:ge===!0,lockedChatsEntryPointVisible:tt,searchQuery:st.current})},[Ce,ge,We,tt]),Er=ae(function(){o("WAWebBizGatingUtils").smartFiltersEnabled()&&o("WAWebFilterLogging").logSearchFilterEvent(Ct.current.sessionId,st.current.filter)},[]),kr=ae(function(){yn({showOfflineToastbar:o("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===o("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.Toastbar})},[yn]),Ir=ae(function(e){var t;if(e===void 0&&(e=!1),o("WALogger").LOG(F||(F=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: handleChatlistDisplayUpdate called, open: ",", chatlistHidden: ",", filterKind: ",""])),e,Mn.current,(t=st.current.filter.kind)!=null?t:"none"),o("WAWebCmd").Cmd.chatListVisibilityChange(!e),!st.current.filter.kind){o("WALogger").LOG(O||(O=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Early return - no filter selected"])));return}if(e&&Mn.current){o("WALogger").LOG(B||(B=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Early return - chatlist already hidden"])));return}var a=new(J||(J=n("Promise")))(function(e){self.setTimeout(function(){var t,n=(t=_r.existsDrawer())!=null?t:!1;e(n)},0)}),i=new J(function(e){self.setTimeout(function(){return o("WAWebModalManager").ModalManager.exists(e)},0)}),l=new J(function(e){self.setTimeout(function(){return o("WAWebModalManager").ModalManager.existsMedia(e)},0)});J.all([a,i,l]).then(function(e){var t=e[0],n=e[1],a=e[2];if(It.aborted){o("WALogger").LOG(W||(W=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Unmount signal aborted, skipping processing"])));return}var i=t||n||a;if(o("WALogger").LOG(q||(q=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Checked overlays - drawer: ",", modal: ",", media: ",", hovered: ",""])),t,n,a,i),i)o("WALogger").LOG(U||(U=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Marking chatlist as hidden (user left chats screen)"]))),Mn.current=!0;else if(Mn.current)if(o("WALogger").LOG(V||(V=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Marking chatlist as visible (user returned to chats screen)"]))),Mn.current=!1,Nn.current!=null){var l=Date.now()-r("WANullthrows")(Nn.current),s=o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")*1e3;o("WALogger").LOG(H||(H=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Filters set timespan: ","ms, reset timeout: ","ms"])),l,s),l>=s?(o("WALogger").LOG(G||(G=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Resetting filters via handleSearchRef.current (timeout exceeded)"]))),or.current(st.current.query,{kind:null})):o("WALogger").LOG(z||(z=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Filters NOT reset (timeout not exceeded)"])))}else o("WALogger").LOG(j||(j=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: No filter set time tracked"])));else o("WALogger").LOG(K||(K=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistDisplayUpdate: Chatlist remains visible (no state change)"])))}).catch(r("WAWebNoop"))},[_r,It.aborted]),Tr=ae(function(){if(ar())return!0;var e=o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled();if(e===!1&&st.current.hasLabelFilter())return!0;if(st.current.filter.kind==null)return!1;var t=e?o("WAWebChatSearchFilters").isFilterExcludedFromSearchTreatmentInInboxFlow:o("WAWebChatSearchFilters").isFilterExcludedFromSearchTreatmentInNormalFlow;return!t(st.current.filter.kind)},[ar]),Dr=ae(function(){Ce===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&(o("WALogger").LOG(Q||(Q=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Calling handleChatlistDisplayUpdate(true) from handleDrawerOpenLeft"]))),Ir(!0))},[Ce,Ir]),xr=ae(function(){Ce===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&(o("WALogger").LOG(X||(X=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Calling handleChatlistDisplayUpdate() from handleLeftDrawerClose"]))),Ir())},[Ce,Ir]);le(ne,function(){return{containsDOMNode:function(t){return _t.current?_t.current.contains(t):!1},onLeftDrawerOpen:Dr,onLeftDrawerClose:xr}},[Dr,xr]);var $r=it.current.toArray(),Pr=Cr($r),Nr=Pr[1],Mr=Pr[0],wr,Ar=o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled(),Fr=Tr();if(Mr==null&&(Ce===r("WAWebChatlistPanelMode").CallsTab||Ce===r("WAWebChatlistPanelMode").Chatlist||Ce===r("WAWebChatlistPanelMode").CommandPalette&&st.current.query.length>0)){var Or,Br=o("WAWebAdaptiveLayoutGatingUtils").shouldUseFunctionalChatlist(),Wr={flatListController:gt.current,chats:$t,contacts:wt||[],messages:Me||[],actions:Ut||[],debugCommands:zt||[],communities:Xt||[],settings:en||[],filterPreset:ze,commonGroups:Fe,isSearching:Fr,isSearchInputFocused:!!((Or=ct.current)!=null&&Or.hasFocus()),searchQuery:st.current,ftsResult:$r,selection:lt.current,onFocusSearch:fr,multiSelection:ht.current,onStartMultiSelect:Hn,selectableState:yt.current,onItemClick:mr,onFocusFilters:lr,mode:Ce,aiSuggestions:ot};Br?Mr=re.jsx(r("WAWebChatlistFunctional.react"),babelHelpers.extends({},Wr,{ref:pt})):Mr=re.jsx(r("WAWebChatlist_DEPRECATED.react"),babelHelpers.extends({},Wr,{ref:pt}))}Je===!0&&(wr=re.jsx(r("WAWebOfflineResumeProgressToastbar.react"),{})),wr==null&&Mr!=null&&Ce===r("WAWebChatlistPanelMode").Chatlist&&(wr=Cn()?re.jsx(r("WAWebDesktopUpsellSearchToastbar.react"),{}):re.jsx(r("WAWebDesktopUpsellChatlistToastbar.react"),{}));var qr=$e&&ye||$e&&it.current.length?re.jsx("div",{className:"_ak9o",children:re.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24})},"spinner"):null,Ur=Ce===r("WAWebChatlistPanelMode").CommandPalette,Vr=o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ak9p",(a={},a._ak9q=Ur,a._ak9s=Ur,a)),Hr=it.current.hasMoreMsgs&&rn.length||Sr()?gr:void 0,Gr,zr=null,jr,Kr=ae(function(e){var t;Nn.current=e.kind==null?void 0:Date.now(),o("WALogger").LOG(Y||(Y=babelHelpers.taggedTemplateLiteralLoose(["WAWebChatlistPanelFunctional: Calling handleSearch from handleFilterChange, hasQuery: ",", filterKind: ",""])),!!st.current.query,(t=e.kind)!=null?t:"none"),or.current(st.current.query,e)},[]),Qr,Xr;if(We||Ve===o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown?(Gr=re.jsx(o("WAWebUimUie.react").UIE,{displayName:"MultiSelect",escapable:!0,dismissOnWindowResize:!0,requestDismiss:vr,children:o("WAWebConnModel").Conn.isSMB?re.jsx(r("WAWebMixedMultiSelectBar.react"),{theme:"chatlist-panel",selectedModels:ht.current,labelEditEnabled:Ve===o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.Label,multiSelectEntryPoint:Ve,onCancel:vr}):re.jsx(r("WAWebConsumerMultiSelectBar.react"),{selectedModels:ht.current,onCancel:vr})},"multiSelectBar"),Nr=Nr==null&&Gr!=null?u._(/*BTDS*/"Seleccionar chats"):Nr):(jr=re.jsx("div",{ref:mt,className:"_ak9t",children:re.jsx(o("WAWebChatListSearch.react").ListSearch,{ref:ft,handleKeyDown:Vn,onSearch:rr,onEnter:pr,filterSession:Ct.current,listFilterEnabled:Ce===r("WAWebChatlistPanelMode").Chatlist&&!Ar,chatlistFilterEnabled:Ce===r("WAWebChatlistPanelMode").Chatlist&&!Ar,inboxFiltersEnabled:Ce===r("WAWebChatlistPanelMode").Chatlist&&Ar,inboxFilter:st.current.filter,aiSuggestionsEnabled:ee,logSearchActionEvents:ee,focusOnMount:Ce===r("WAWebChatlistPanelMode").CommandPalette,mode:Ce,borderBottom:Ce===r("WAWebChatlistPanelMode").CallsTab?!1:void 0,showPlaceholderUntilType:!0,usernameSearchEnabled:Ie===!0,tsSurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_LIST})}),Ce===r("WAWebChatlistPanelMode").Chatlist&&Ar&&(Qr=re.jsx(o("WAWebChatListFilters.react").ChatListFilters,{ref:dt,filter:st.current.filter,filterSession:Ct.current,onFilterChange:Kr}))),!ye){var Yr;!r("gkx")("26258")&&Qe===!0&&(Yr=re.jsx("div",{className:"_ak9u",children:re.jsxs("div",{className:"_ak9v",onClick:Gn,role:"button",children:[re.jsx("span",babelHelpers.extends({},(Z||(Z=r("stylex"))).props(o("WAWebUISpacing").uiMargin.end8),{children:re.jsx(o("WAWebChevronCustomIcons").ChevronUpCustomIcon,{xstyle:ce.unreadIcon,height:19,displayInline:!0})})),u._(/*BTDS*/"Mensajes no le\u00eddos")]})}));var Jr=Ce===r("WAWebChatlistPanelMode").CallsTab||Ur||Fr||Gr?null:re.jsx(r("WAWebChatlistBanners.react"),{});zr=re.jsxs(re.Fragment,{children:[jr,Qr,Jr,Gr,null]})}Rr()&&(Xr=re.jsx(r("WAWebChatArchivedEntryPoint.react"),{}));var Zr;Lr()&&(Zr=re.jsx(r("WAWebChatLockedEntryPoint.react"),{onOpen:function(){nr()}}));var eo=null,to=((i=st.current)==null?void 0:i.query)||"";if(Fr&&(Sn||Ln)&&to){var no=!wt.some(function(e){return e.id.equals(Dn==null?void 0:Dn.wid)||e.username===(Dn==null?void 0:Dn.username)})&&!$t.some(function(e){return e.id.equals(Dn==null?void 0:Dn.wid)||e.contact.username===(Dn==null?void 0:Dn.username)});In?eo=re.jsx("div",{className:"_ak9o",children:re.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24})},"unknown-contact-loading"):kn?eo=re.jsx(o("WAWebEmptyState.react").SearchingNonContactError,{error:o("WAWebContactlessChatUtils").getErrorStr(kn),onClick:Tn},"error"):Dn&&no&&(eo=re.jsx(r("WAWebUnknownContactSection.react"),{contactInfo:Dn,onUnknownContactClick:dr,searchText:to},"unknown-contact"))}var ro;wr==null&&(ar()||st.current.hasLabelFilter())&&(ro=re.jsx(o("WAWebHistorySyncComponents.react").HistorySyncSearchIncompletePlaceholder,{}));var oo=(l=$t==null?void 0:$t.length)!=null?l:0,ao=o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()&&oo>0?re.jsx(o("WAWebPrivacyNarrativeE2EMessage.react").E2eMessageChatList,{}):null,io=Ce===r("WAWebChatlistPanelMode").CallsTab&&o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()?re.jsx(o("WAWebPrivacyNarrativeE2EMessage.react").E2eMessageCallsList,{}):null,lo=Nr!=null?re.jsx(o("WAWebAccessibility.react").InvisibleAnnouncement,{text:Nr}):null;return re.jsxs("div",{id:"side",className:Vr,ref:_t,children:[re.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"app-header",children:zr}),re.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list",type:"fatal",children:re.jsxs(r("WAWebFlatListContainer.react"),{flatListControllers:[gt.current],ref:br,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ak9y",(s={},s._ak9z=Ce===r("WAWebChatlistPanelMode").CommandPalette,s)),onScroll:Hr,id:"pane-side","data-scrolltracepolicy":"wa.web.chatlist",children:[Zr,!r("WAWebEnvironment").isWindows&&Xr,lo,Mr,eo,qr,Ce===r("WAWebChatlistPanelMode").Chatlist&&(ro!=null?ro:ao),Ce===r("WAWebChatlistPanelMode").CallsTab&&io]})}),re.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"out-of-chat-player",children:re.jsx(r("WAWebPttOocPlayer"),{})}),re.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list-toastbar",children:wr!=null?wr:null})]})}Re.displayName=Re.name+" [from "+i.id+"]",l.getFiltersWhichArchivedChats=Se,l.ChatlistPanelFunctional=Re}),226); __d("WAWebUnmountSignalHoc_DEPRECATED.react",["WAWebHocComponent_DEPRECATED.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t,n;return t=(function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o0&&!i.props.hideMultiSelectBar;e===!1&&t&&i.setState({showMultiSelectBar:!0})},i.$48=function(){var e;i.$24.current&&((e=i.$24.current)==null||e.focusFirst())},i.$49=function(e){e.key==="ArrowDown"&&(i.refSearch&&!i.refSearch.cursorIsAtEnd()||(e==null||e.preventDefault(),i.$48()))},i.$50=function(e){e!==i.state.multiSelectEntryPoint&&i.setState({multiSelectEntryPoint:e})},i.$43=function(){var e=i.$1;if(e){var t=e.scrollTop;e.scrollTop!==0&&(te.scrollHeight-e.clientHeight},i.$33=function(e,t){for(var n=new Map,r=function(o){var r=e[o];r&&r.forEach(function(e){e&&(n.has(e)||n.set(e,[]),n.get(e).push(t[o]))})},a=0;a=c&&i.$37(i.searchQuery.query,{kind:null})}}}).catch(r("WAWebNoop"))}},i.ftsMsgs=i.props.mode===r("WAWebChatlistPanelMode").CallsTab?new(r("WAWebFtsMsgsCallLogCollection")):new(r("WAWebFtsMsgsCollection")),i.selection=new(r("WAWebSingleSelection"))([],function(e){return e.id.toString()}),i.searchQuery=new(o("WAWebChatSearchQuery")).SearchQuery,i.$2=i.props.multiSelection||new(r("WAWebMultiSelection"))([],function(e){return e.id.toString()}),i.$4=i.props.debounce(function(e){var t;e===void 0&&(e=!1),i.props.labelFilter||i.logSearchEvent();var a=i.searchQuery.trimmed();(t=i.$6)==null||t.abort(),i.$6=new AbortController;var l=i.$6.signal,s=i.props.getUnmountSignal(),u=(c||(c=n("Promise"))).resolve().then(function(){!e&&!i.isFTSSearching()&&i.debounceSetState({searching:!0},$)}).then(function(){return e&&i.ftsMsgs.resetSearch(),i.ftsMsgs.search({count:o("WAWebFtsConstants").FTS_NUM_RESULTS,filter:i.searchQuery.filter,searchTerm:a})});i.$5=r("WAPromiseRaceAbort")(u,l).then(function(t){s.aborted||t&&!t.canceled&&(i.debounceSetState({searching:!1},$),e&&i.forceUpdate())}).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).finally(function(){i.$5=void 0,i.$6=void 0}).catch(function(){i.isFTSSearching()&&i.debounceSetState({searching:!1},$)})},o("WAWebFtsConstants").FTS_TYPING_DELAY),i.$7=i.props.throttle(function(e,t){var n=i.$31(e,t);i.shouldUpdateChats(n)&&i.debounceSetState({chats:n},$,x)},b.THROTTLE,{leading:!1,trailing:!0}),i.$8=i.props.throttle(function(e,t){var n=i.getFilteredContacts({searchText:e,filter:t,includeChats:i.props.mode===r("WAWebChatlistPanelMode").CallsTab});i.debounceSetState({contacts:n},$,x)},b.THROTTLE,{leading:!1,trailing:!0}),i.$9=i.props.throttle(function(e){var t=i.getFilteredActions(e);i.debounceSetState({actions:t},$,x)},b.THROTTLE,{leading:!1,trailing:!0}),i.$10=i.props.throttle(function(e){var t=i.getFilteredDebugCommands(e);i.debounceSetState({debugCommands:t},$,x)},b.THROTTLE,{leading:!1,trailing:!0}),i.$11=i.props.throttle(function(e){var t=i.getFilteredCommunities(e);i.debounceSetState({communities:t},$,x)},b.THROTTLE,{leading:!1,trailing:!0}),i.$12=i.props.throttle(function(e){var t=i.getFilteredSettings(e);i.debounceSetState({settingsCommands:t},$,x)},b.THROTTLE,{leading:!1,trailing:!0}),i.$13=i.props.throttle(function(e){i.shouldFTSSearch(e)&&i.fullTextSearch()},100),i.$14=r("WAWebDebounce")(function(){var t,a=i.searchQuery.trimmed();if(!a){i.setState({commonGroups:[]});return}var l=i.searchQuery.filter;if(l.kind===o("WAWebChatSearchFilters").SearchFilters.CONTACT||l.kind===o("WAWebChatSearchFilters").SearchFilters.NON_CONTACT||l.kind===o("WAWebChatSearchFilters").SearchFilters.FAVORITES){i.setState({commonGroups:[]});return}var s=o("WAWebABProps").getABPropConfigValue("web_max_contacts_to_show_common_groups"),u=i.getFilteredContacts({searchText:a,filter:l,includeChats:!0,includeNonContacts:!0,cancelAt:s+1});if(u.length===0){i.setState({commonGroups:[]});return}var d=u.map((function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){try{return yield o("WAWebFindCommonGroupsContactAction").findCommonGroups(t),t.commonGroups}catch(t){var n=String(t);throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["get from participants table failed"]))).verbose().sendLogs("get from participants table failed when finding common groups: "+n),r("err")("get from participants table failed")}});return function(e){return t.apply(this,arguments)}})());(t=i.$17)==null||t.abort(),i.$17=new AbortController;var m=i.$17.signal;i.$16=r("WAPromiseRaceAbort")((c||(c=n("Promise"))).all(d),m).then(function(e){if(a===i.searchQuery.trimmed()){var t=i.$33(e,u);i.setState({commonGroups:t})}}).catch(r("WAWebNoop")).finally(function(){i.$16=null,i.$17=null})},750),i.$18=r("WAWebDebounce")(function(){var e;if(!(o("WAWebBotGating").canSearchMetaAiSuggestions(i.searchQuery)&&i.props.aiSearchExperienceEnabled===!0)){i.setState({aiSuggestions:[]});return}var t=o("WAWebGetMetaAISearchSuggestionsAction").getMetaAISearchTypeAheadSuggestionsAction(i.searchQuery.trimmed());(e=i.$20)==null||e.abort(),i.$20=new AbortController;var n=i.$20.signal;i.$19=r("WAPromiseRaceAbort")(t,n).then(function(e){i.setState({aiSuggestions:e.slice(0,o("WAWebBotGating").getMetaAISearchTypeAheadMaxSuggestionsCount())})}).catch(o("WAFilteredCatch").filteredCatch(o("WAAbortError").AbortError,r("WAWebNoop"))).finally(function(){i.$19=null,i.$20=null})},200),i.$15=r("WAWebDebounce")(function(e){i.$34(e)},1e3);var l=i.props,s=l.labelFilter,u=l.multiSelectEntryPoint,d=i.props.labelFilter?{label:s}:void 0;return i.state=babelHelpers.extends({searching:!1,chats:i.$31("",d),contacts:i.getFilteredContacts({searchText:"",filter:d}),actions:i.getFilteredActions(""),debugCommands:i.getFilteredDebugCommands(""),communities:i.getFilteredCommunities(""),settingsCommands:i.getFilteredSettings(""),commonGroups:[],showMultiSelectBar:!1,multiSelectEntryPoint:u,chatlistKeyId:0,filterPreset:d,isOverflowing:!1,lockedChatsEntryPointVisible:!1},{},{showOfflineToastbar:o("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===o("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.Toastbar,aiSuggestions:[]}),i.searchQuery.updateLabelQuery(d),i}babelHelpers.inheritsLoose(a,t);var i=a.prototype;return i.$36=function(){return this.props.mode===r("WAWebChatlistPanelMode").CallsTab||!!this.searchQuery.query},i.componentWillMount=function(){this.props.mode===r("WAWebChatlistPanelMode").CallsTab&&this.$37("")},i.shouldUpdateChats=function(t){if(!o("WAWebPREGatingUtils").isPREMessageSendEnabled())return!0;var e=this.state.chats.length===t.length;if(!e)return!0;var n=this.state.chats.some(function(e,n){return e.id!==t[n].id});return n},i.componentDidMount=function(){var e=this,t=this.props,n=t.labelFilter,a=t.listeners,i=t.mode;i===r("WAWebChatlistPanelMode").CommandPalette&&(o("WAWebCommandCollection").CommandCollection.reset(),o("WAWebCommandCollection").CommandCollection.initializeCommands()),n&&this.$37("",{label:n}),this.$38(),a.add(o("WAWebChatCollection").ChatCollection,"remove",function(t){if(e.searchQuery.query){var n=e.state.chats.filter(function(e){return e!==t});e.state.chats&&n.length!==e.state.chats.length&&e.debounceSetState({chats:n})}else e.$7.cancel(),e.debounceSetState({chats:e.$31(void 0,e.searchQuery.filter)})}),a.add(o("WAWebContactCollection").ContactCollection,"remove",function(t){if(e.$36()){var n=e.state.contacts.filter(function(e){return e!==t});e.state.contacts&&n.length!==e.state.contacts.length&&e.debounceSetState({contacts:n})}else e.$8.cancel(),e.debounceSetState({contacts:e.getFilteredContacts({searchText:void 0,filter:e.searchQuery.filter})})}),o("WAWebChatAssignmentUtils").canAssignChats()&&a.add(o("WAWebChatAssignmentCollection").ChatAssignmentCollection,"add remove",function(t){if(e.searchQuery.filter.kind===o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU)if(e.searchQuery.query){var n=e.state.chats.filter(function(e){return e!==t});e.state.chats&&n.length!==e.state.chats.length&&e.debounceSetState({chats:n})}else e.$7.cancel(),e.debounceSetState({chats:e.$31(void 0,e.searchQuery.filter)})});var l=this.props.throttle(function(t){if(!(e.$36()||e.searchQuery.filter.kind!==o("WAWebChatSearchFilters").SearchFilters.UNREAD&&(!o("WAWebChatAssignmentUtils").canAssignChats()||e.searchQuery.filter.kind!==o("WAWebChatSearchFilters").SearchFilters.ASSIGNED_TO_YOU))){e.$7.cancel();var n=e.$31(void 0,e.searchQuery.filter,{includeActiveChat:!0});t&&(n=n.filter(function(e){return e!==t})),e.debounceSetState({chats:n})}},b.THROTTLE);a.add(o("WAWebChatCollection").ChatCollection,"sort change:archive",function(){if(!e.$36()){if(e.searchQuery.filter.kind===o("WAWebChatSearchFilters").SearchFilters.UNREAD){l();return}if(e.searchQuery.filter.kind===o("WAWebChatSearchFilters").SearchFilters.FAVORITES){s();return}e.$7.cancel();var t=e.$31(void 0,e.searchQuery.filter);e.shouldUpdateChats(t)&&e.debounceSetState(babelHelpers.extends({chats:t},void 0))}}),a.add(o("WAWebChatCollection").ChatCollection,"change:unreadCount change:isAssignedToMe",function(){return l()}),a.add(o("WAWebCmd").Cmd,"close_chat",function(e){l(e)});var s=this.props.throttle(function(){if(!(e.$36()||e.searchQuery.filter.kind!==o("WAWebChatSearchFilters").SearchFilters.FAVORITES)){e.$7.cancel();var t=e.$31(void 0,e.searchQuery.filter,{includeActiveChat:!1});e.debounceSetState({chats:t})}},b.THROTTLE);a.add(o("WAWebChatCollection").ChatCollection,"change:isFavorite",function(){return s()}),a.add(o("WAWebCmd").Cmd,"offline_progress_update_from_bridge offline_delivery_end_from_bridge",function(){return e.$40()}),a.add(o("WAWebContactCollection").ContactCollection,"sort",function(){e.$36()||(e.$8.cancel(),e.debounceSetState({contacts:e.getFilteredContacts({filter:e.searchQuery.filter})}))}),a.add(this.ftsMsgs,"bulk_remove reset",function(){e.$36()||(e.$7.cancel(),e.debounceSetState({chats:e.$31(void 0,e.searchQuery.filter)}))}),a.add(o("WAWebCmd").Cmd,"focus_chat_search",this.$41),a.add(r("WAWebVoipCallsTabPanelManager"),"onWriteCallLogMessage",function(){e.$7.cancel(),e.$4(!0)}),a.add(o("WAWebMsgCollection").MsgCollection,r("WAWebConstantsDeprecated").NEW_MSG_SENT,function(){e.$36()?e.$42().then(function(){return e.$43()}):e.$43()}),this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&(a.add(o("WAWebModalManager").ModalManager,"open_modal open_media",function(){return e.$46(!0)}),a.add(o("WAWebModalManager").ModalManager,"close_modal close_media",function(){return e.$46()})),o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&a.add(o("WAWebChatCollection").ChatCollection,"change:contact.labels",function(){e.searchQuery.filter.kind===o("WAWebChatSearchFilters").SearchFilters.LABELS&&e.searchQuery.filter.label!=null&&(e.$7.cancel(),e.debounceSetState({chats:e.$31(void 0,e.searchQuery.filter)}))})},i.getClientWidth=function(){var e;return(e=this.$26.current)==null?void 0:e.clientWidth},i.isCommandPaletteOverflowing=function(){if(!this.$26.current)return!1;var e=this.$26.current.clientHeight,t=window.innerHeight;return e>=Math.floor(t*D)},i.containsDOMNode=function(t){return this.$26.current?this.$26.current.contains(t):!1},i.onLeftDrawerOpen=function(){this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&this.$46(!0)},i.onLeftDrawerClose=function(){this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&o("WAWebABProps").getABPropConfigValue("inbox_filters_reset_timeout")>0&&o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled()&&this.$46()},i.$39=function(){var e;return!1;var t;if(this.$28&&!((e=this.$28)!=null&&e.archive)){var n;this.$27=(n+.5)*o("WAWebFlatList.react").DEFAULT_ITEM_HEIGHT,t||(t=this.$1!=null&&this.$1.scrollTop>this.$27),this.$28=void 0}},i.$32=function(){this.state.unreadButton===!0&&(this.$28=void 0,this.setState({unreadButton:!1}))},i.componentWillUnmount=function(){this.$51(),this.$52(),this.$35.cancel()},i.$34=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(this.props.hideLockedChats===!0){var t=yield o("WAWebChatLockUtils").validateSecretCode(e,{unlockAppOnSuccess:!0,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.SEARCH,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.FOLDER});!t&&this.state.lockedChatsEntryPointVisible&&!o("useWAWebChatLockRestriction").chatLockComponentIsMounted()&&o("WAWebChatLockUtils").lockChats(),this.debounceSetState({lockedChatsEntryPointVisible:t})}});function t(t){return e.apply(this,arguments)}return t})(),i.$54=function(){var e,t=this.searchQuery;if(!(t.hasFilter()||!t.query)){var n=this.state,r=n.aiSuggestions,a=n.chats,i=n.commonGroups,l=n.contacts,s=n.messages;o("WAWebSearchLogging").logSearchActionTypesAheadShow({aiSuggestionsCount:r.length,chatsCount:a.length,contactsCount:l.length,groupsCount:i.length,messagesCount:(e=s==null?void 0:s.length)!=null?e:0})}},i.$53=function(t){return!t||!t.label&&!t.kind},i.$68=function(){return!1},i.$69=function(){var e;return!!(this.props.mode===r("WAWebChatlistPanelMode").Chatlist&&this.props.showArchiveV2===!0&&!this.state.showMultiSelectBar&&this.searchQuery.isEmptyQuery()&&!this.searchQuery.hasFilter()&&this.state.chats&&this.state.chats.length>0&&((e=this.selectableState)==null?void 0:e.isSelectable)!==!0&&o("WAWebChatCollection").ChatCollection.some(function(e){return e.archive&&o("WAWebFrontendChatGetters").getShouldAppearInList(e)}))},i.$70=function(){return o("WAWebChatlistPanelUtils").shouldShowLockedChatsPanel({mode:this.props.mode,selectableState:this.selectableState,showMultiSelectBar:this.state.showMultiSelectBar,hideLockedChats:this.props.hideLockedChats===!0,lockedChatsEntryPointVisible:this.state.lockedChatsEntryPointVisible,searchQuery:this.searchQuery})},i.logSearchEvent=function(){o("WAWebBizGatingUtils").smartFiltersEnabled()&&o("WAWebFilterLogging").logSearchFilterEvent(this.$25.sessionId,this.searchQuery.filter)},i.$40=function(){this.debounceSetState({showOfflineToastbar:o("WAWebOfflineHandler").OfflineMessageHandler.getResumeUIProgressBarType()===o("WAWebOfflineResumeTypes.flow").ResumeUIProgressBarType.Toastbar})},i.componentDidUpdate=function(){if(this.props.mode===r("WAWebChatlistPanelMode").CommandPalette){var e=this.isCommandPaletteOverflowing();e!==this.state.isOverflowing&&this.setState({isOverflowing:e})}if(this.$55()){var t,n=this.state,a=n.aiSuggestions,i=n.chats,l=n.commonGroups,s=n.contacts,u=n.messages,c=i.length,d=s.length,m=(t=u==null?void 0:u.length)!=null?t:0,p=a.length,_=l.length,f=this.ftsMsgs.length;o("WAWebSearchUserJourneyLogger").SearchUserJourneyLogger.resultPageShow({aiSuggestionCount:p,chatsCount:c,contactsCount:d,messagesCount:m,groupsInCommonCount:_,ftsMessagesCount:f})}},i.$71=function(){if(this.$55())return!0;var e=o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled();if(e===!1&&this.searchQuery.hasLabelFilter())return!0;if(this.searchQuery.filter.kind==null)return!1;var t=e?o("WAWebChatSearchFilters").isFilterExcludedFromSearchTreatmentInInboxFlow:o("WAWebChatSearchFilters").isFilterExcludedFromSearchTreatmentInNormalFlow;return!t(this.searchQuery.filter.kind)},i.render=function(){var e,t=this,n,a,i=this.state,l=i.actions,s=i.aiSuggestions,c=i.chats,m=i.commonGroups,p=i.communities,_=i.contacts,g=i.debugCommands,h=i.filterPreset,y=i.isOverflowing,C=i.messages,b=i.settingsCommands,v=this.props,S=v.aiSearchExperienceEnabled,R=v.mode,L=this.ftsMsgs.toArray(),E=this.getEmptyChatlistState(L),k=E[1],I=E[0],T,D=o("WAWebInboxFiltersGatingUtils").inboxFiltersEnabled(),x=this.$71();if(I==null&&(R===r("WAWebChatlistPanelMode").CallsTab||R===r("WAWebChatlistPanelMode").Chatlist||R===r("WAWebChatlistPanelMode").CommandPalette&&this.searchQuery.query.length>0)){var $;I=f.jsx(r("WAWebChatlist_DEPRECATED.react"),{ref:this.$24,flatListController:this.flatListController,chats:c,contacts:_||[],messages:C||[],actions:l||[],debugCommands:g||[],communities:p||[],settings:b||[],filterPreset:h,commonGroups:m,isSearching:x,isSearchInputFocused:!!(($=this.refSearch)!=null&&$.hasFocus()),searchQuery:this.searchQuery,ftsResult:L,selection:this.selection,onFocusSearch:this.$41,onFocusFilters:this.$56,multiSelection:this.$2,onStartMultiSelect:this.$50,selectableState:this.selectableState,onItemClick:this.$61,mode:R,aiSuggestions:s},this.state.chatlistKeyId)}this.state.showOfflineToastbar===!0&&(T=f.jsx(r("WAWebOfflineResumeProgressToastbar.react"),{})),T==null&&I!=null&&R===r("WAWebChatlistPanelMode").Chatlist&&(T=this.$36()?f.jsx(r("WAWebDesktopUpsellSearchToastbar.react"),{}):f.jsx(r("WAWebDesktopUpsellChatlistToastbar.react"),{}));var N=this.state.searching&&this.props.labelFilter||this.state.searching&&this.ftsMsgs.length?f.jsx("div",{className:"_ak9o",children:f.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24})},"spinner"):null,M=R===r("WAWebChatlistPanelMode").CommandPalette,w=o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ak9p",(e={},e._ak9q=M,e._ak9r=M&&y,e._ak9s=M&&!y,e)),A=this.ftsMsgs.hasMoreMsgs&&L.length||this.$68()?this.$63:void 0,F,O=null,B,W,q;if(this.state.showMultiSelectBar||this.state.multiSelectEntryPoint===o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.ChatListHeaderDropdown?(F=f.jsx(o("WAWebUimUie.react").UIE,{displayName:"MultiSelect",escapable:!0,dismissOnWindowResize:!0,requestDismiss:this.$67,children:o("WAWebConnModel").Conn.isSMB?f.jsx(r("WAWebMixedMultiSelectBar.react"),{theme:"chatlist-panel",selectedModels:this.$2,labelEditEnabled:this.state.multiSelectEntryPoint===o("WAWebMultiSelectEntryPointConstants").MultiSelectEntryPoint.Label,multiSelectEntryPoint:this.state.multiSelectEntryPoint,onCancel:this.$67}):f.jsx(r("WAWebConsumerMultiSelectBar.react"),{selectedModels:this.$2,onCancel:this.$67})},"multiSelectBar"),k=k==null&&F!=null?u._(/*BTDS*/"Seleccionar chats"):k):(B=f.jsx("div",{onFocus:this.indicateFocus,ref:this.$23,className:"_ak9t",children:f.jsx(o("WAWebChatListSearch.react").ListSearch,{ref:this.setRefSearch,handleKeyDown:this.$49,onSearch:this.$37,onEnter:this.$62,filterSession:this.$25,listFilterEnabled:R===r("WAWebChatlistPanelMode").Chatlist&&!D,chatlistFilterEnabled:R===r("WAWebChatlistPanelMode").Chatlist&&!D,inboxFiltersEnabled:R===r("WAWebChatlistPanelMode").Chatlist&&D,inboxFilter:this.searchQuery.filter,aiSuggestionsEnabled:S,logSearchActionEvents:S,focusOnMount:R===r("WAWebChatlistPanelMode").CommandPalette,mode:R,borderBottom:R===r("WAWebChatlistPanelMode").CallsTab?!1:void 0,showPlaceholderUntilType:!0,tsSurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_LIST})}),R===r("WAWebChatlistPanelMode").Chatlist&&D&&(W=f.jsx(o("WAWebChatListFilters.react").ChatListFilters,{ref:this.$21,filter:this.searchQuery.filter,filterSession:this.$25,onFilterChange:function(n){t.$29=n.kind==null?void 0:Date.now(),t.$37(t.searchQuery.query,n)}}))),!this.props.labelFilter){var U;!r("gkx")("26258")&&this.state.unreadButton===!0&&(U=f.jsx("div",{className:"_ak9u",children:f.jsxs("div",{className:"_ak9v",onClick:this.$43,role:"button",children:[f.jsx("span",babelHelpers.extends({},(d||(d=r("stylex"))).props(o("WAWebUISpacing").uiMargin.end8),{children:f.jsx(o("WAWebChevronCustomIcons").ChevronUpCustomIcon,{xstyle:P.unreadIcon,height:19,displayInline:!0})})),u._(/*BTDS*/"Mensajes no le\u00eddos")]})}));var V=R===r("WAWebChatlistPanelMode").CallsTab||M||x||F?null:f.jsx(r("WAWebChatlistBanners.react"),{});O=f.jsxs(f.Fragment,{children:[B,W,V,F,null]})}this.$69()&&(q=f.jsx(r("WAWebChatArchivedEntryPoint.react"),{}));var H;this.$70()&&(H=f.jsx(r("WAWebChatLockedEntryPoint.react"),{onOpen:function(){t.$42()}}));var G;T==null&&(this.$55()||this.searchQuery.hasLabelFilter())&&(G=f.jsx(o("WAWebHistorySyncComponents.react").HistorySyncSearchIncompletePlaceholder,{}));var z=(n=c==null?void 0:c.length)!=null?n:0,j=o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()&&z>0?f.jsx(o("WAWebPrivacyNarrativeE2EMessage.react").E2eMessageChatList,{}):null,K=R===r("WAWebChatlistPanelMode").CallsTab&&o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()?f.jsx(o("WAWebPrivacyNarrativeE2EMessage.react").E2eMessageCallsList,{}):null,Q=k!=null?f.jsx(o("WAWebAccessibility.react").InvisibleAnnouncement,{text:k}):null;return f.jsxs("div",{id:"side",className:w,ref:this.$26,children:[f.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"app-header",children:O}),f.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list",type:"fatal",children:f.jsxs(r("WAWebFlatListContainer.react"),{flatListControllers:[this.flatListController],ref:this.$66,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ak9y",(a={},a._ak9z=R===r("WAWebChatlistPanelMode").CommandPalette,a)),onScroll:A,id:"pane-side",children:[H,!r("WAWebEnvironment").isWindows&&q,Q,I,N,R===r("WAWebChatlistPanelMode").Chatlist&&(G!=null?G:j),R===r("WAWebChatlistPanelMode").CallsTab&&K]})}),f.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"out-of-chat-player",children:f.jsx(r("WAWebPttOocPlayer"),{})}),f.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"chat-list-toastbar",children:T!=null?T:null})]})},a})(g),M=r("WAWebUnmountSignalHoc_DEPRECATED.react")(r("WAWebTimerHoc_DEPRECATED.react")(o("WAWebListenerHoc_DEPRECATED").ListenerHOC(N))),w=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.getClientWidth=function(){return this.getComponent().getClientWidth()},n.containsDOMNode=function(t){return this.getComponent().containsDOMNode(t)},n.onLeftDrawerOpen=function(){this.getComponent().onLeftDrawerOpen()},n.onLeftDrawerClose=function(){this.getComponent().onLeftDrawerClose()},t})(M);l.getFiltersWhichArchivedChats=T,l.ChatlistPanel=w}),226); __d("WAWebBrigadingButterBar.react",["fbt","WAWebButterbar.react","WAWebChevronIcon.react","WAWebDrawerManager","WAWebFlex.react","WAWebSettingsConst","WAWebSettingsFlow.react","WAWebText.react","WAWebUserPrefsGeneral","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c={icon:{height:"xrza7oe",width:"x1ksu7kd",color:"x14ug900",$$css:!0}};function d(e){var t=e.onDismiss,n=e.state,a=o("WAWebUserPrefsGeneral").getUserPrivacySettings(),i=a==null?void 0:a.messages,l=n==="ENFORCED"&&i==="contacts",d=n==="DETECTED"&&i==="all",m=n==="NOT_ENFORCED";if(!(l||d||m))return null;var p=s._(/*BTDS*/"Tu dispositivo est\u00e1 recibiendo una gran cantidad de mensajes"),_=function(){o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(o("WAWebSettingsFlow.react").SettingsFlow,{onEnd:o("WAWebDrawerManager").closeDrawerLeft,initialStep:o("WAWebSettingsConst").SettingsSteps.PrivacySettings}))},f,g,h,y,C;switch(n){case"DETECTED":{f=p,g=s._(/*BTDS*/"Bloquea los mensajes de cuentas desconocidas."),h=s._(/*BTDS*/"Activa en los ajustes"),C=_,y="brigadingWarning";break}case"ENFORCED":{f=p,g=s._(/*BTDS*/"El bloqueo de los mensajes de cuentas desconocidas est\u00e1 activado."),h=s._(/*BTDS*/"Desactiva en los ajustes"),C=_,y="brigadingWarning";break}case"NOT_ENFORCED":{f=s._(/*BTDS*/"Bloqueo de mensajes desactivado"),g=s._(/*BTDS*/"Ya no se bloquear\u00e1n los mensajes de cuentas desconocidas."),y="brigadingNotification";break}default:break}return y==null?null:u.jsx(r("WAWebButterbar.react"),{type:y,title:f,text:u.jsxs(u.Fragment,{children:[u.jsx(o("WAWebText.react").WAWebTextTitle,{color:"primary",children:g}),h!=null&&C!=null&&u.jsx(o("WAWebText.react").WAWebClickableText,{onClick:C,color:"primary",children:u.jsxs(o("WAWebFlex.react").FlexRow,{padding:0,margin:0,children:[u.jsx(o("WAWebText.react").WAWebTextTitle,{color:"primary",alignSelf:"center",children:h}),u.jsx(o("WAWebChevronIcon.react").ChevronIcon,{iconXstyle:c.icon,directional:!0})]})})]}),onDismiss:t})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebBizRefreshedProfileDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizRefreshedProfileDrawer.react").__setRef("WAWebBizRefreshedProfileDrawerLoadable").load();return e}),"BizRefreshedProfileDrawer"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.WAWebBizRefreshedProfileDrawerLoadable=c}),98); __d("WAWebBizToolsFlowLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBizToolsFlow.react").__setRef("WAWebBizToolsFlowLoadable").load();return e}),"BizToolsFlow"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.BizToolsFlowLoadable=c}),98); __d("WAWebNewsletterSubscriberListModal.react",["$InternalEnum","WAWebNewsletterFullPendingInvitesList.react","WAWebNewsletterFullSubscriberList.react","react","useWAWebFlow"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=n("$InternalEnum").Mirrored(["Followers","PendingInvites"]);function c(e){var t=e.initialStep,n=t===void 0?u.Followers:t,a=e.newsletter,i=e.onTransferOwnershipSelection,l=e.onVerification,c=o("useWAWebFlow").useFlow(n),d=c[1];if(!d.step)return null;switch(d.step){case u.Followers:return s.jsx(r("WAWebNewsletterFullSubscriberList.react"),{onCancel:function(){return d.pop()},newsletter:a,onVerification:l,onTransferOwnershipSelection:i});case u.PendingInvites:return s.jsx(r("WAWebNewsletterFullPendingInvitesList.react"),{onCancel:function(){return d.pop()},newsletter:a,onVerification:l})}}c.displayName=c.name+" [from "+i.id+"]",l.FollowersFlowStep=u,l.NewsletterSubscriberListModal=c}),98); __d("WAWebMexFetchNewsletterPendingInvitesJobQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"}],t=[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"}],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={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},n],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterPendingInvitesJobQuery",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterAdmin",kind:"LinkedField",name:"xwa2_newsletter_admin",plural:!1,selections:[r],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexFetchNewsletterPendingInvitesJobQuery",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterAdmin",kind:"LinkedField",name:"xwa2_newsletter_admin",plural:!1,selections:[r,n],storageKey:null}]},params:{id:"9783111038412085",metadata:{},name:"WAWebMexFetchNewsletterPendingInvitesJobQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebMexFetchNewsletterPendingInvitesJob",["WALogger","WAWebMexClient","WAWebMexFetchNewsletterPendingInvitesJobQuery.graphql","WAWebNewsletterGatingUtils","WAWebWidFactory","asyncToGeneratorRuntime","compactMap"],(function(t,n,r,o,a,i,l){var e,s,u,c=e!==void 0?e:e=n("WAWebMexFetchNewsletterPendingInvitesJobQuery.graphql");function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n={newsletter_id:e};if(!o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled())return o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[mexFetchNewsletterPendingInvites] creation ABProp not enabled"]))).tags("newsletter"),null;var a=yield o("WAWebMexClient").fetchQuery(c,n);o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER] fetched pending invites for ",""])),e).tags("GQL","MEX");var i=(t=a.xwa2_newsletter_admin)==null?void 0:t.pending_admin_invites,l=i!=null?r("compactMap")(i,function(e){var t,n,r,a=(t=e==null||(n=e.user)==null?void 0:n.pn)!=null?t:e==null||(r=e.user)==null?void 0:r.id;return a!=null?o("WAWebWidFactory").createWid(a):null}):void 0;return l}),m.apply(this,arguments)}l.mexFetchNewsletterPendingInvites=d}),98); __d("WAWebNewsletterPendingInvitesQueryJob",["WAWebMexFetchNewsletterPendingInvitesJob","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){var t=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebMexFetchNewsletterPendingInvitesJob").mexFetchNewsletterPendingInvites(e)});return function(){return t.apply(this,arguments)}})();return o("WAWebNewsletterRpcUtils").runWithBackoff(t)}l.getNewsletterPendingInvites=e}),98); __d("WAWebNewsletterPendingInvitesJob",["WAJobOrchestratorTypes","WAWebNewsletterPendingInvitesQueryJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterPendingInvites",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebNewsletterPendingInvitesQueryJob").getNewsletterPendingInvites(e)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.getNewsletterPendingInvites=e}),98); __d("WAWebNewsletterPendingInvitesAction",["WALogger","WAWebChatGetters","WAWebContactCollection","WAWebNewsletterMembershipUtil","WAWebNewsletterPendingInvitesJob","WAWebNewsletterSubscriberModel","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime","compactMap"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e){var t,n=(t=o("WAWebContactCollection").ContactCollection.get(e))!=null?t:o("WAWebContactCollection").ContactCollection.gadd(e);return e.isLid()&&(n==null?void 0:n.phoneNumber)!=null?o("WAWebContactCollection").ContactCollection.get(n.phoneNumber):n}function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){if(!o("WAWebChatGetters").getIsNewsletter(t))return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterPendingInvitesAction] non-newsletter chat"]))).tags("newsletter").sendLogs("pending-invites-of-non-newsletter"),[];if(!o("WAWebNewsletterMembershipUtil").iAmOwner(t==null?void 0:t.newsletterMetadata))return o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterPendingInvitesAction] owner-only access"]))).tags("newsletter").sendLogs("non-channel-owner-viewing-pending-invites"),[];try{var n,a,i=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid()),l=yield o("WAWebNewsletterPendingInvitesJob").getNewsletterPendingInvites(i),d=l!=null?r("compactMap")(l,function(e){var t=c(e);return new(o("WAWebNewsletterSubscriberModel")).NewsletterSubscriber({id:t==null?void 0:t.id,contact:t,isPendingAdmin:!0})}):void 0,m=d!=null?d:[];return t==null||(n=t.newsletterMetadata)==null||(n=n.pendingAdmins)==null||n.reset(),t==null||(a=t.newsletterMetadata)==null||(a=a.pendingAdmins)==null||a.add(m,{sort:!1}),m.map(function(e){return e.contact})}catch(e){return o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterPendingInvitesAction] fetch invites failed"]))).tags("newsletter").sendLogs("pending-invites-on-newsletter-failed"),[]}}),m.apply(this,arguments)}l.getNewsletterPendingInvitesAction=d}),98); __d("useWAWebNewsletterPendingInvites",["WALogger","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterPendingInvitesAction","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s,u=(s||(s=o("react"))).useEffect;function c(t){var a,i=r("useWAWebUnmountSignal")(),l=r("useWAWebEventTargetValue")((a=t.newsletterMetadata)==null?void 0:a.pendingAdmins,["add","remove","change"],function(){var e,n;return(e=(n=t.newsletterMetadata)==null?void 0:n.pendingAdmins.compactMap(function(e){return e.contact}))!=null?e:[]});return u(function(){n("asyncToGeneratorRuntime").asyncToGenerator(function*(){i.aborted||!o("WAWebNewsletterMembershipUtil").iAmOwner(t.newsletterMetadata)||!o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()||(yield o("WAWebNewsletterPendingInvitesAction").getNewsletterPendingInvitesAction(t))})().catch(function(n){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[useNewsletterPendingInvites] Failed to get pending invites for newsletter ",""])),t.id).sendLogs("newsletter-hook-failed-to-get-pending-invites")})},[t,i]),l}l.useNewsletterPendingInvites=c}),98); __d("WAWebNewsletterModalsUtils.react",["fbt","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebIcVisibilityOffIcon.react","WAWebPencilIcon.react","WAWebSecurityShieldIcon.react","WAWebSvgComponentBase","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.Icon,n=e.iconColor,r=n===void 0?o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.TEAL_LIGHTER:n,a=e.iconSize,i=a===void 0?24:a,l=e.subtext,s=e.testid,c=s===void 0?"bullet-point-item":s,d=e.text;return u.jsxs(o("WAWebFlex.react").FlexRow,{testid:void 0,className:"x9f619 xh8yej3 x1qjc9v5",paddingStart:8,paddingTop:4,paddingBottom:4,marginBottom:8,children:[u.jsx(o("WAWebFlex.react").FlexColumn,{justify:"center",align:"start",shrink:0,className:"x1useyqa",children:u.jsx(t,{height:i,width:i,DEPRECATED_color:r})}),u.jsxs(o("WAWebFlex.react").FlexColumn,{children:[d!=null&&u.jsx(o("WAWebText.react").WAWebTextTitle,{children:d}),u.jsx(o("WAWebText.react").WAWebTextSmall,{children:l})]})]})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.bullets;return t.map(function(e,t){return u.jsx(c,{testid:void 0,Icon:e.Icon,text:e.text(),subtext:e.subtext(),iconSize:e.iconSize,iconColor:e.iconColor},t)})}d.displayName=d.name+" [from "+i.id+"]";var m=[{Icon:o("WAWebPencilIcon.react").PencilIcon,text:function(){return s._(/*BTDS*/"Los admin. pueden escribir actualizaciones")},subtext:function(){return s._(/*BTDS*/"Los administradores tambi\u00e9n pueden cambiar el perfil y los ajustes del canal. {=m2}",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterAdminInviteFaqUrlV2(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))])}}],p={Icon:o("WAWebIcVisibilityOffIcon.react").IcVisibilityOffIcon,text:function(){return s._(/*BTDS*/"Solo eres visible para otros admin.")},subtext:function(){return s._(/*BTDS*/"Los seguidores de este canal no pueden ver tu n\u00famero de tel\u00e9fono, foto del perfil ni nombre. Solo quienes lo administran pueden ver estos datos.")}},_=[].concat(m,[p,{Icon:o("WAWebSecurityShieldIcon.react").SecurityShieldIcon,text:function(){return s._(/*BTDS*/"Eres responsable de este canal")},subtext:function(){return s._(/*BTDS*/"Este canal debe seguir nuestras {=m2} y se revisa en funci\u00f3n de ellas.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),children:s._(/*BTDS*/"normas")}))])}}]);l.BulletPointList=d,l.MinimalBullets=m,l.VisibilityBullet=p,l.ExtendedBullets=_}),226); __d("WAWebNewsletterAdminInvitePrivacyNux.react",["fbt","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebNewsletterModalsUtils.react","react"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useEffect;function p(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getNewsletterAdminInviteFaqUrlV2()),o("WAWebModalManager").ModalManager.close()}function _(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.viewNux;return m(function(){i()},[i]),d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{ref:n,title:f.modalTitle(),onOK:a.onOk,okText:f.invite(),onCancel:p,cancelText:r("WAWebFbtCommon")("Learn more"),children:d.jsx(o("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",children:d.jsx(o("WAWebNewsletterModalsUtils.react").BulletPointList,{bullets:g})})})}_.displayName=_.name+" [from "+i.id+"]";var f={modalTitle:function(){return s._(/*BTDS*/"Invita a administradores")},invite:function(){return s._(/*BTDS*/"Invitar")}},g=[].concat(o("WAWebNewsletterModalsUtils.react").MinimalBullets,[o("WAWebNewsletterModalsUtils.react").VisibilityBullet]);l.default=_}),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","WAWebUISpacing","WAWebVelocityTransitionGroup","WAWebWdsIcSendFilledIcon.react","react","stylex"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d,m,p=m||(m=o("react")),_=d||(d=r("react")),f=p.useRef,g=p.useState,h={onSendInvite:{position:"x10l6tqk",insetInlineEnd:"x145d82y",left:null,right:null,bottom:"xn0vg7t",zIndex:"xhtitgo",textAlign:"x2b8uid",$$css:!0}};function y(t){var a,i=t.ref,l=babelHelpers.objectWithoutPropertiesLoose(t,e),d=l.onClose,m=l.onSend,p=l.wid,y=f(null),C=f(null),b=g(l.initialInviteComment.toString()),v=b[0],S=b[1],R=function(){d()},L=function(){var e=o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.get(p);return new(u||(u=n("Promise")))(function(t){if(!e||!e.img){t(void 0);return}r("WAWebPonyfillsFetch")(e.img).then(function(e){if(!e.ok){t(void 0);return}return e.blob()}).then(function(e){if(e){var n=new FileReader;n.onloadend=function(){var e=n.result;if(e==null){t(void 0);return}var r=e.toString().split(",")[1];t(r)},n.readAsDataURL(e)}}).catch(function(){return t(void 0)})})},E=function(){L().then(function(e){m(v,e)})},k=function(t){var e=t.text;S(e)},I=_.jsx(o("WAWebRound.react").Round,{testid:void 0,large:!0,onClick:E,label:r("WAWebFbtCommon")("Next"),children:_.jsx(o("WAWebWdsIcSendFilledIcon.react").WdsIcSendFilledIcon,{directional:!0})}),T=_.jsx(o("WAWebDetailImage.react").DetailImage,{id:l.wid}),D=_.jsx(o("WAWebEmojiText.react").EmojiText,{text:l.chatName});return _.jsx(o("WAWebModal.react").Modal,{ref:i,type:o("WAWebModal.react").ModalTheme.Invite,testid:void 0,children:_.jsxs(r("WAWebDrawer.react"),{theme:"invite",children:[_.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,title:(a=l.customTitle)!=null?a:s._(/*BTDS*/"Enviar invitaci\u00f3n a\u2026"),onCancel:R}),_.jsxs(r("WAWebDrawerBody.react"),{children:[l.customHeader,l.hideParticipantList===!0?null:_.jsx("div",{className:"xkgu5aw xyamay9 xgws4yx xxbrewl xzm8p2n x1odjw0f x1280gxy xso031l x1q0q8m5 x120ee7l",children:_.jsx("div",{"data-list-scroll-container":!0,children:_.jsx(r("WAWebChatParticipantList.react"),{ref:y,theme:"list-names",contacts:l.invitees})})}),_.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(o("WAWebUISpacing").uiPadding.horiz16,o("WAWebUISpacing").uiPadding.top16),{children:_.jsx(o("WAWebRichTextField.react").RichTextField,{testid:void 0,ref:C,value:v,showRemaining:!0,maxLength:r("WAWebConstantsDeprecated").MAX_CAPTION_LENGTH,onChange:k,theme:"invite-message-caption",emojiBtnPosition:"side",textFormatEnabled:!0})})),_.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"btn",xstyle:h.onSendInvite,children:I}),_.jsx("div",{className:"x10l6tqk x1ey2m1c xvue9z x1od0jb8",children:_.jsx(r("WAWebCellFrame.react"),{idle:!0,image:T,primary:D,secondary:l.chatNameSubtitle,theme:"groups_v4_invite"})})]})]})})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebNewsletterAdminInviteWithMessageModal.react",["fbt","WAWebChatInviteWithCommentModal.react","WAWebCommonNewsletterStrings","WAWebParticipantListUtils","WAWebText.react","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={customHeader:{backgroundColor:"x1280gxy",borderBottomColor:"x120ee7l",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",$$css:!0}};function d(e){var t=e.chat,n=e.invitees,a=e.isDirectInvite,i=e.onClose,l=e.onSend,s=o("useWAWebModelValues").useModelValues(t,["id","name"]),d=a?u.jsx(o("WAWebText.react").WAWebTextMuted,{padding:[16,24],xstyle:c.customHeader,children:o("WAWebCommonNewsletterStrings").adminPrivacyNux()}):void 0,p=n.length===1,_=p?m.title(n[0]):void 0;return u.jsx(r("WAWebChatInviteWithCommentModal.react"),{customHeader:d,chatName:s.name,customTitle:_,wid:s.id,hideParticipantList:p,chatNameSubtitle:m.chatNameSubtitle(),initialInviteComment:m.initialInviteComment(s.name),invitees:n,onClose:i,onSend:l})}d.displayName=d.name+" [from "+i.id+"]";var m={title:function(t){var e=o("WAWebParticipantListUtils").getFirstNameForContact(t);return s._(/*BTDS*/"\u00bfDeseas invitar a {first-name} como admin.?",[s._param("first-name",e)])},chatNameSubtitle:function(){return s._(/*BTDS*/"Invitaci\u00f3n para ser admin. del canal")},initialInviteComment:function(t){return s._(/*BTDS*/"Acepta esta invitaci\u00f3n para ser admin. de mi canal de WhatsApp, {newsletter-name}.",[s._param("newsletter-name",t)])}};l.default=d}),226); __d("useWAWebNewsletterAdmins",["WAWebCommonNewsletterEnums","useWAWebEventTargetValue"],(function(t,n,r,o,a,i,l){function e(e){var t,n=r("useWAWebEventTargetValue")(e==null||(t=e.newsletterMetadata)==null?void 0:t.subscribers,["add","remove","sort","change"],function(){var t,n;return(t=e==null||(n=e.newsletterMetadata)==null||(n=n.subscribers)==null||(n=n.filter(function(e){return e.membership===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin||e.membership===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Owner}))==null?void 0:n.map(function(e){return e.contact}))!=null?t:[]});return n}l.useNewsletterAdmins=e}),98); __d("WAWebMexFetchNewsletterFollowersJobQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{kind:"Variable",name:"input",variableName:"input"}],n={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"pn",storageKey:null},a={kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"username",storageKey:null}],type:"XWA2Username",abstractKey:null},i={alias:null,args:null,kind:"ScalarField",name:"follow_time",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"role",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterFollowersJobQuery",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterFollowersResponse",kind:"LinkedField",name:"xwa2_newsletter_followers",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterFollowerConnection",kind:"LinkedField",name:"followers",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterFollowerEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XWA2User",kind:"LinkedField",name:"node",plural:!1,selections:[n,r,o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"username_info",plural:!1,selections:[a],storageKey:null}],storageKey:null},i,l],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexFetchNewsletterFollowersJobQuery",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterFollowersResponse",kind:"LinkedField",name:"xwa2_newsletter_followers",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterFollowerConnection",kind:"LinkedField",name:"followers",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterFollowerEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"XWA2User",kind:"LinkedField",name:"node",plural:!1,selections:[n,r,o,{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"username_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},a],storageKey:null}],storageKey:null},i,l],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:"25895136756785869",metadata:{},name:"WAWebMexFetchNewsletterFollowersJobQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebMexFetchNewsletterFollowersJob",["WATimeUtils","WAWebLidMigrationUtils","WAWebMexClient","WAWebMexFetchNewsletterFollowersJobQuery.graphql","WAWebMexNewsletterUtils","WAWebNewsletterGatingUtils","WAWebSetUsernameJob","WAWebUsernameGatingUtils","WAWebWidFactory","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=e!==void 0?e:e=n("WAWebMexFetchNewsletterFollowersJobQuery.graphql");function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n,r,a={input:{newsletter_id:e,count:Math.min(o("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),t)}},i=yield o("WAWebMexClient").fetchQuery(s,a),l=i.xwa2_newsletter_followers;if(l==null)return null;if(((n=l.followers)==null?void 0:n.edges)==null)return{subscribers:[]};var u=d(l.followers.edges),c=o("WAWebUsernameGatingUtils").isNewsletterUsernamePnPrivacyEnabled();return c&&(yield m(u)),{subscribers:(r=u.map(function(e){var t,n=e.follow_time,r=e.node,a=e.role,i=r.id,l=r.pn;if(i==null)return null;var s=n!=null?o("WATimeUtils").castToUnixTime(Number.parseInt(n,10)):null,u=l!=null?o("WAWebWidFactory").createWid(l):void 0;return{displayName:r.display_name,id:o("WAWebWidFactory").createWid(i),role:o("WAWebMexNewsletterUtils").mapRoleToMembership(a),phoneNumber:u,subscribeTime:s,username:c?(t=r.username_info)==null?void 0:t.username:void 0}}).filter(Boolean))!=null?r:[]}}),c.apply(this,arguments)}function d(e){var t=e.filter(function(e){return e.role==="ADMIN"||e.role==="OWNER"}),n=new Set(t.map(function(e){return e.node.id})),r=e.filter(function(e){return!n.has(e.node.id)});return[].concat(t,r)}function m(e){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.reduce(function(e,t){var n,r=t.node.id,a=r!=null?o("WAWebLidMigrationUtils").toUserLid(o("WAWebWidFactory").createWid(r)):null,i=(n=t.node.username_info)==null?void 0:n.username;return i!=null&&a!=null&&e.push({userId:a,username:i}),e},[]);t.length>0&&(yield o("WAWebSetUsernameJob").setUsernamesJob(t))}),p.apply(this,arguments)}l.mexFetchNewsletterFollowers=u}),98); __d("WAWebMexFetchNewsletterSubscribersJobQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"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:e,kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterSubscribersJobQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexFetchNewsletterSubscribersJobQuery",selections:t},params:{id:"9537574256318798",metadata:{},name:"WAWebMexFetchNewsletterSubscribersJobQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebMexFetchNewsletterSubscribersJob",["WATimeUtils","WAWebMexClient","WAWebMexFetchNewsletterSubscribersJobQuery.graphql","WAWebMexNewsletterUtils","WAWebNewsletterGatingUtils","WAWebWidFactory","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=e!==void 0?e:e=n("WAWebMexFetchNewsletterSubscribersJobQuery.graphql");function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n,r,a={input:{newsletter_id:e,count:Math.min(o("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),t)}},i=yield o("WAWebMexClient").fetchQuery(s,a),l=i.xwa2_newsletter_subscribers;if(l==null)return null;if(((n=l.subscribers)==null?void 0:n.edges)==null)return{subscribers:[]};var u=d(l.subscribers.edges);return{subscribers:(r=u.map(function(e){var t=e.node,n=e.role,r=e.subscribe_time,a=t.id,i=t.pn;if(a==null)return null;var l=r!=null?o("WATimeUtils").castToUnixTime(Number.parseInt(r,10)):null,s=i!=null?o("WAWebWidFactory").createWid(i):void 0;return{displayName:t.display_name,id:o("WAWebWidFactory").createWid(a),role:o("WAWebMexNewsletterUtils").mapRoleToMembership(n),phoneNumber:s,subscribeTime:l}}).filter(Boolean))!=null?r:[]}}),c.apply(this,arguments)}function d(e){var t=e.filter(function(e){return e.role==="ADMIN"||e.role==="OWNER"}),n=new Set(t.map(function(e){return e.node.id})),r=e.filter(function(e){return!n.has(e.node.id)});return[].concat(t,r)}l.mexFetchNewsletterSubscribers=u}),98); __d("WAWebNewsletterSubscriberListQueryJob",["WAWebMexFetchNewsletterFollowersJob","WAWebMexFetchNewsletterSubscribersJob","WAWebNewsletterGatingUtils","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){var r=(function(){var r=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebNewsletterGatingUtils").isNewsletterSubscriberMigrationEnabled()?o("WAWebMexFetchNewsletterFollowersJob").mexFetchNewsletterFollowers(e,t):o("WAWebMexFetchNewsletterSubscribersJob").mexFetchNewsletterSubscribers(e,t)});return function(){return r.apply(this,arguments)}})();return o("WAWebNewsletterRpcUtils").runWithBackoff(r)}l.getNewsletterSubscribers=e}),98); __d("WAWebNewsletterSubscriberListJob",["WAJobOrchestratorTypes","WAWebNewsletterSubscriberListQueryJob","WAWebOrchestratorNonPersistedJob","WAWebUserPrefsNewsletter","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t,r){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterSubscribers",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var n={view:r,newsletterJid:e},a=yield o("WAWebUserPrefsNewsletter").NewsletterSubscribersCache.get(n);if(a!=null)return{subscribers:a};var i=yield o("WAWebNewsletterSubscriberListQueryJob").getNewsletterSubscribers(e,t);return(i==null?void 0:i.subscribers)!=null&&(yield o("WAWebUserPrefsNewsletter").NewsletterSubscribersCache.set(n,i.subscribers)),i}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.getNewsletterSubscribers=e}),98); __d("WAWebNewsletterSubscriberListAction",["WALogger","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebContactCollection","WAWebFrontendContactGetters","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterSubscriberListJob","WAWebNewsletterSubscriberModel","WAWebNewsletterValidationUtils","WAWebUsernameGatingUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e,t){var n,r;if(t!=null){var a=t.map(function(e){var t=e.contact,n=e.role;return new(o("WAWebNewsletterSubscriberModel")).NewsletterSubscriber({id:t.id,contact:t,membership:n,isPendingAdmin:!1})});(n=e.newsletterMetadata)==null||(n=n.subscribers)==null||n.reset(),(r=e.newsletterMetadata)==null||(r=r.subscribers)==null||r.add(a,{sort:!0})}}function d(e){if(e==null)return[];var t=e.reduce(function(e,t){var n=o("WAWebContactCollection").ContactCollection.get(t.id),r=!o("WAWebNewsletterGatingUtils").isNewsletterMultiAdminLidMigrationEnabled()&&n!=null&&n.phoneNumber?o("WAWebContactCollection").ContactCollection.get(n.phoneNumber):n,a=t.role===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin||t.role===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Owner;if(r==null){if(!a)return e;var i=o("WAWebContactCollection").ContactCollection.gadd({id:t.id,phoneNumber:t.phoneNumber,name:t.displayName,type:"out"});e.push({contact:i,role:t.role})}else{if(!a&&!o("WAWebFrontendContactGetters").getIsMyContact(r))return e;a&&r.phoneNumber==null&&r.set({phoneNumber:t.phoneNumber}),e.push({contact:r,role:t.role})}return e},[]);return t}var m=9;function p(e,t,n){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,r){if(!o("WAWebChatGetters").getIsNewsletter(t))return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterSubscribersAction] non-newsletter chat"]))).tags("newsletter").sendLogs("get-subscribers-of-non-newsletter"),{subscribers:null,hasMore:!1};if(!o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(t==null?void 0:t.newsletterMetadata))return{subscribers:null,hasMore:!1};try{var a,i,l=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid()),p=yield o("WAWebNewsletterSubscriberListJob").getNewsletterSubscribers(l,n,r),_=(a=p==null?void 0:p.subscribers.length)!=null?a:0,f={subscribers:d(p==null?void 0:p.subscribers),hasMore:_>=m};return(i=f.subscribers)!=null&&i.some(function(e){return!e.contact.name&&e.contact.phoneNumber!=null&&o("WAWebUsernameGatingUtils").isNewsletterUsernamePnPrivacyEnabled()})&&o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][getNewsletterSubscribersAction] Phone number is displayed for non-contact channel admin"]))).tags("newsletter","username").sendLogs("newsletter-phone-number-not-null"),yield c(t,f.subscribers),f}catch(e){return o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterSubscribersAction] get subscribers failed"]))).tags("newsletter").sendLogs("get-subscribers-from-newsletter-failed"),{subscribers:null,hasMore:!1}}}),_.apply(this,arguments)}l.getSubscribersInContacts=d,l.NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT=m,l.getNewsletterSubscribersAction=p}),98); __d("useWAWebNewsletterSubscribers",["WALogger","WAWebContactCollection","WAWebNewsletterGatingUtils","WAWebNewsletterSubscriberListAction","WAWebUserPrefsNewsletter","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s,u=(s||(s=o("react"))).useEffect;function c(t){var a,i=t.cacheType,l=t.count,s=t.includeMeContact,c=s===void 0?!1:s,d=t.newsletter,m=r("useWAWebUnmountSignal")(),p=r("useWAWebEventTargetValue")(d==null||(a=d.newsletterMetadata)==null?void 0:a.subscribers,["add","remove","sort","change"],function(){var e,t,n=(e=d==null||(t=d.newsletterMetadata)==null||(t=t.subscribers)==null?void 0:t.map(function(e){return{contact:e.contact,role:e.membership}}))!=null?e:[],r=o("WAWebContactCollection").ContactCollection.getMeContact();if(c&&r!=null){var a;n.unshift({contact:r,role:d==null||(a=d.newsletterMetadata)==null?void 0:a.membershipType})}return[n,n.length>=o("WAWebNewsletterSubscriberListAction").NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT]}),_=p[0],f=p[1];return u(function(){n("asyncToGeneratorRuntime").asyncToGenerator(function*(){m.aborted||(yield o("WAWebNewsletterSubscriberListAction").getNewsletterSubscribersAction(d,l,i))})().catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[useNewsletterSubscribers] Failed to get subscribers for newsletter ",""])),d.id).sendLogs("newsletter-hook-failed-to-get-subscribers")})},[d,m.aborted,l,i,c]),[_,f]}function d(e){var t=c({newsletter:e,cacheType:o("WAWebUserPrefsNewsletter").ValidCachedNewsletterSubscriberKeys.FULL,count:o("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),includeMeContact:!1}),n=t[0];return n.map(function(e){return e.contact})}l.useNewsletterSubscribers=c,l.useNewsletterAllSubscribers=d}),98); __d("WAWebNewsletterAdminSelectionModal.react",["fbt","WAWebApiContact","WAWebChatGetters","WAWebCommonNewsletterStrings","WAWebFrontendChatGetters","WAWebLidMigrationUtils","WAWebMultiSelectContactList.react","WAWebNewsletterGatingUtils","WAWebSelectModal.react","WAWebSelectModalFooter.react","WAWebText.react","WAWebWidFactory","compactMap","react","useWAWebChatValues","useWAWebNewsletterAdmins","useWAWebNewsletterPendingInvites","useWAWebNewsletterSubscribers"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useMemo,_=c.useState,f={customHeader:{backgroundColor:"x1280gxy",borderBottomColor:"x120ee7l",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xso031l",$$css:!0}};function g(e){var t=e.chat,n=e.onConfirm,r=o("useWAWebChatValues").useChatValues(t.id,[o("WAWebChatGetters").getId,o("WAWebFrontendChatGetters").getNewsletterMetadata,o("WAWebChatGetters").getIsNewsletter,o("WAWebChatGetters").getId]),a=r[0],i=r[1],l=r[2],s=o("useWAWebNewsletterPendingInvites").useNewsletterPendingInvites(t),u=o("useWAWebNewsletterAdmins").useNewsletterAdmins(t),c=o("useWAWebNewsletterSubscribers").useNewsletterAllSubscribers(t),m=p(function(){return y(s)},[s]),_=p(function(){return y(u)},[u]),f=o("WAWebNewsletterGatingUtils").getMaxNumberOfAdmins()-(u.length+s.length),g=function(t){return _.has(t.toString())},v=function(t){return m.has(t.toString())},S=function(t){return g(t.id)||v(t.id)},R=function(t){if(g(t))return b.alreadyAnAdmin();if(v(t))return b.alreadyInvited()};return d.jsx(h,{customSecondaryText:R,maxItems:f,isDisabled:S,onConfirm:n,customGetData:function(t){return C(c,t)}})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.customGetData,n=e.customSecondaryText,r=e.isDisabled,a=e.maxItems,i=e.onConfirm,l=_(0),s=l[0],u=l[1],c=m(function(e,t,n){u(n.length)},[]),p=d.jsxs(d.Fragment,{children:[d.jsx(o("WAWebText.react").WAWebTextLarge,{color:"white",children:b.modalTitle()}),d.jsx(o("WAWebText.react").WAWebTextSmall,{color:"white",children:b.modalSubtitle(s,a)})]}),g=d.jsx(o("WAWebText.react").WAWebTextMuted,{padding:[16,24],xstyle:f.customHeader,children:b.privacyNux()});return d.jsx(o("WAWebSelectModal.react").SelectModal,{customHeader:g,onSelectionChanged:c,headerChildren:p,listType:o("WAWebSelectModal.react").ListType.ParticipantManageModal,onConfirm:i,maxItems:a,isDisabled:r,customSecondaryText:n,singleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,multipleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,shouldShowSelectionSummary:!1,customGetData:t})}h.displayName=h.name+" [from "+i.id+"]";function y(e){return e.reduce(function(e,t){var n=o("WAWebWidFactory").asUserWidOrThrow(t.id),r=o("WAWebApiContact").getAlternateUserWid(n);return r!=null&&e.add(r.toString()),e.add(n.toString()),e},new Set)}function C(e,t){var n=new Set(r("compactMap")(e,function(e){var t;return(t=o("WAWebLidMigrationUtils").toPn(e.id))==null?void 0:t.toString()})),a=t.reduce(function(e,t){var r=n.has(t.id.toString())?"followersFromContacts":"others";return e[r].push(t),e},{followersFromContacts:[],others:[]}),i=a.followersFromContacts,l=a.others,s=[];return i.length>0&&(s.push({itemKey:o("WAWebMultiSelectContactList.react").ContactListSection.FOLLOWERS,type:o("WAWebMultiSelectContactList.react").ContactListSection.FOLLOWERS}),s.push.apply(s,i.map(function(e){return{itemKey:e.id.toString(),type:o("WAWebMultiSelectContactList.react").Row.ROW_CONTACTS,data:e,isUnknownContact:!1}}))),l.length>0&&(s.push({itemKey:o("WAWebMultiSelectContactList.react").ContactListSection.CONTACTS,type:o("WAWebMultiSelectContactList.react").ContactListSection.CONTACTS}),s.push.apply(s,l.map(function(e){return{itemKey:e.id.toString(),type:o("WAWebMultiSelectContactList.react").Row.ROW_CONTACTS,data:e,isUnknownContact:!1}}))),s}var b={modalTitle:function(){return s._(/*BTDS*/"Invita a administradores")},modalSubtitle:function(t,n){return s._(/*BTDS*/"_j{\"*\":\"{selected} de {max} contactos seleccionado\"}",[s._plural(t),s._param("selected",t),s._param("max",n)])},alreadyAnAdmin:function(){return s._(/*BTDS*/"Ya es admin.")},alreadyInvited:function(){return s._(/*BTDS*/"Persona ya invitada")},privacyNux:function(){return o("WAWebCommonNewsletterStrings").adminPrivacyNux()}};l.default=g}),226); __d("WAWebNewsletterBulkSendAdminInviteAction",["Promise","WAWebFindChatAction","WAWebLidMigrationUtils","WAWebNewsletterSendMsgAction","WAWebNewsletterSubscriberModel","WAWebSendMsgResultAction","WAWebStateUtils","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e;function s(e){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var a=t.base64Thumb,i=t.chat,l=t.invitees,s=t.inviteMessage,u=o("WAWebStateUtils").unproxy(i).id,c=s!=null?s:"",d=l.map((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){try{var t,n=o("WAWebWidFactory").asUserWidOrThrow(e.id),l=o("WAWebLidMigrationUtils").toPn(n);if(l==null)throw r("err")("WaWebLidPn - Phone number not found for contact");var s=yield o("WAWebFindChatAction").findOrCreateLatestChat(l,"sendNewsletterAdminInvite"),d=s.chat,m=yield o("WAWebNewsletterSendMsgAction").sendNewsletterAdminInviteMessage(d,{newsletterWid:u,invitee:n,inviteMessage:c,base64Thumb:a}),p=m.messageSendResult;return(t=i.newsletterMetadata)==null||(t=t.pendingAdmins)==null||t.add(new(o("WAWebNewsletterSubscriberModel")).NewsletterSubscriber({id:e.id,isPendingAdmin:!0,membership:null,contact:e})),{result:p,invitee:e}}catch(t){return{result:o("WAWebSendMsgResultAction").SendMsgResult.ERROR_UNKNOWN,invitee:e}}});return function(t){return e.apply(this,arguments)}})()),m=yield(e||(e=n("Promise"))).all(d),p=m.filter(function(e){return e.result!==o("WAWebSendMsgResultAction").SendMsgResult.OK});return{failedAttempts:p,allFailed:p.length===l.length}}),u.apply(this,arguments)}l.sendBulkNewsletterAdminInviteAction=s}),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(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useCallback,p=c.useRef,_=n("$InternalEnum").Mirrored(["PrivacyNux","Selection","Confirmation"]);function f(){o("WAWebModalManager").ModalManager.close()}function g(e,t){if(e.invitees!=null&&e.invitees.length>0)return _.Confirmation;if(!t)return _.Selection;var n=r("WAWebNewsletterMetadataCollection").some(function(e){return o("WAWebNewsletterMembershipUtil").iAmAdmin(e)});return n?_.Selection:_.PrivacyNux}function h(e){var t,n=r("useWAWebNux")(o("WAWebNux").NUX.NEWSLETTER_MULTI_ADMIN),a=n[0],i=n[1],l=g(e,a),s=o("useWAWebFlow").useFlow(l,{transitions:o("useWAWebFlow").FlowTransitions.Modal}),u=s[0],c=s[1],h=p((t=e.invitees)!=null?t:[]),b=m(function(e){h.current=e,c.push(_.Confirmation)},[c]),v=m(function(t,n){var r=h.current;o("WAWebModalManager").ModalManager.close(),o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:y.sendingInvites(r.length)})),C({inviteMessage:t,base64Thumb:n,invitees:r,chat:e.chat})},[e.chat]);if(c.step==null)return null;var S;switch(c.step){case _.PrivacyNux:{S=d.jsx(r("WAWebNewsletterAdminInvitePrivacyNux.react"),{onOk:function(){return c.push(_.Selection)},viewNux:i});break}case _.Selection:{S=d.jsx("div",{children:d.jsx(r("WAWebNewsletterAdminSelectionModal.react"),{chat:e.chat,onConfirm:b})});break}case _.Confirmation:{var R=l===_.Confirmation;S=d.jsx(r("WAWebNewsletterAdminInviteWithMessageModal.react"),{chat:e.chat,isDirectInvite:R,invitees:h.current,onSend:v,onClose:f});break}}return d.jsx(u,{flow:c,children:S})}h.displayName=h.name+" [from "+i.id+"]";var y={sendingInvites:function(t){return s._(/*BTDS*/"_j{\"*\":\"Enviando {invites-sending} invitaciones\\u2026\",\"_1\":\"Enviando 1 invitaci\\u00f3n\\u2026\"}",[s._plural(t,"invites-sending")])},invitesSent:function(t){return s._(/*BTDS*/"_j{\"*\":\"{invites-sent} invitaciones enviadas\",\"4\":\"{invites-sent} invitaci\\u00f3n enviada\",\"_1\":\"Se envi\\u00f3 1 invitaci\\u00f3n.\"}",[s._plural(t,"invites-sent")])}};function C(e){var t=e.base64Thumb,n=e.chat,r=e.invitees,a=e.inviteMessage;return o("WAWebNewsletterBulkSendAdminInviteAction").sendBulkNewsletterAdminInviteAction({invitees:r,chat:n,inviteMessage:a,base64Thumb:t}).then(function(e){var i=e.failedAttempts;if(i.length===0){o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:y.invitesSent(r.length)}));return}var l=i.map(function(e){var t=e.invitee;return t}),s=r.length-i.length;b({failedInvites:l,base64Thumb:t,chat:n,inviteMessage:a,numberOfSuccessfulInvites:s})}).catch(function(){return b({base64Thumb:t,chat:n,inviteMessage:a,failedInvites:r,numberOfSuccessfulInvites:0})})}function b(e){var t=e.base64Thumb,n=e.chat,r=e.failedInvites,a=e.inviteMessage,i=e.numberOfSuccessfulInvites;o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebNewsletterErrorPopups.react").NewsletterCouldNotSendInviteListPopup,{contactList:r,numberOfSuccessfulInvites:i,onOk:function(){C({chat:n,inviteMessage:a,base64Thumb:t,invitees:r})}}))}function v(e){o("WAWebModalManager").ModalManager.open(d.jsx(h,babelHelpers.extends({},e)),{transition:"modal-flow"})}l.startAdminInviteFlow=v}),226); __d("WAWebMexDemoteNewsletterAdminJobMutation.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"},{defaultValue:null,kind:"LocalArgument",name:"user_id"}],t=[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"},{kind:"Variable",name:"user_id",variableName:"user_id"}],n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebMexDemoteNewsletterAdminJobMutation",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_demote",plural:!1,selections:[n],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexDemoteNewsletterAdminJobMutation",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_demote",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"9880997548630971",metadata:{},name:"WAWebMexDemoteNewsletterAdminJobMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("WAWebMexDemoteNewsletterAdminJob",["WAWebLidMigrationUtils","WAWebMexClient","WAWebMexDemoteNewsletterAdminJobMutation.graphql","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=e!==void 0?e:e=n("WAWebMexDemoteNewsletterAdminJobMutation.graphql");function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){return o("WAWebNewsletterRpcUtils").runWithBackoff(function(){return d(e,t)})}),c.apply(this,arguments)}function d(e,t){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n=o("WAWebLidMigrationUtils").toUserLidOrThrow(t);yield o("WAWebMexClient").fetchQuery(s,{newsletter_id:e,user_id:n.toString()})}),m.apply(this,arguments)}l.demoteNewsletterAdmin=u}),98); __d("WAWebNewsletterDemoteAdminJob",["WAJobOrchestratorTypes","WAWebMexDemoteNewsletterAdminJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("demoteNewsletterAdmin",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebMexDemoteNewsletterAdminJob").demoteNewsletterAdmin(e,t)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.demoteNewsletterAdmin=e}),98); __d("WAWebDemoteNewsletterAdminAction",["WALogger","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebNewsletterBridgeApi","WAWebNewsletterDemoteAdminJob","WAWebNewsletterMembershipUtil","WAWebNewsletterValidationUtils","WAWebUserPrefsMeUser","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e,s,u,c;function d(e,t){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){if(!o("WAWebChatGetters").getIsNewsletter(t))throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[demoteNewsletterAdminAction] not a newsletter"]))).tags("newsletter").sendLogs("demote-admins-of-non-newsletter"),r("err")("demote-admins-of-non-newsletter");if(!o("WAWebNewsletterMembershipUtil").iAmOwner(t==null?void 0:t.newsletterMetadata)&&!o("WAWebUserPrefsMeUser").isMeAccount(n.id))throw o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[demoteNewsletterAdminAction] only owner can demote admins"]))).tags("newsletter").sendLogs("non-channel-owner-dismissing-other-admins"),r("err")("non-channel-owner-dismissing-other-admins");if(!o("WAWebNewsletterMembershipUtil").iAmAdmin(t==null?void 0:t.newsletterMetadata)&&o("WAWebUserPrefsMeUser").isMeAccount(n.id))throw o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[demoteNewsletterAdminAction] only admin can demote self"]))).tags("newsletter").sendLogs("non-channel-admins-dismissing-themselves"),r("err")("non-channel-admins-dismissing-themselves");try{var a=o("WAWebWidFactory").asUserWidOrThrow(n.id),i=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid());yield o("WAWebNewsletterDemoteAdminJob").demoteNewsletterAdmin(i,a),o("WAWebUserPrefsMeUser").isMeAccount(n.id)?yield o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateMyNewsletterMembershipRole({newsletter:t,newRole:o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber}):yield o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterMemberRole({newsletter:t,member:n,newRole:o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber})}catch(e){throw o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[demoteNewsletterAdminAction] demote failed"]))).tags("newsletter").sendLogs("demote-admins-on-newsletter-failed"),e}}),m.apply(this,arguments)}l.demoteNewsletterAdminAction=d}),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","WAWebWamEnumTsSurface","asyncToGeneratorRuntime","react","stylex","useWAWebToggle"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useCallback;function p(e){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.contact,r=e.isMe,a=e.newsletter,i=e.shouldUnfollowNewsletter,l=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){o("WAWebModalManager").closeModalManager(),yield p({newsletter:a,contact:t,isMe:r,shouldUnfollowNewsletter:i})});return function(){return e.apply(this,arguments)}})(),s=r&&i?o("WAWebNewsletterUnsubscribeAction").unsubscribeFromNewsletterAction(a,{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_PROFILE,discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_PROFILE}):o("WAWebDemoteNewsletterAdminAction").demoteNewsletterAdminAction(a,t);try{yield s;var u=o("WAWebFrontendContactGetters").getIsMyContact(t)?o("WAWebParticipantListUtils").getFirstNameForContact(t):o("WAWebContactGetters").getPushname(t);o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:r?o("WAWebCommonNewsletterStrings").getYouAreNoLongerAnAdminText():o("WAWebCommonNewsletterStrings").getSomeoneIsNoLongerAnAdminText(u===""?o("WAWebFrontendContactGetters").getFormattedUser(t):u)})),o("WAWebModalManager").closeModalManager()}catch(e){o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebNewsletterErrorPopups.react").NewsletterCouldNotDismissAdminPopup,{onOK:l,contact:t}),{transition:"modal-flow"})}}),_.apply(this,arguments)}function f(e){var t=e.contact,a=e.isMe,i=e.newsletter,l=r("useWAWebToggle")(!1),c=l[0],_=l[1],f=a?s._(/*BTDS*/"\u00bfDeseas dejar de ser admin. del canal?"):s._(/*BTDS*/"\u00bfDeseas descartar a {admin-dismissal-contact-first-name} como admin.?",[s._param("admin-dismissal-contact-first-name",o("WAWebParticipantListUtils").getFirstNameForContact(t))]),g=a?s._(/*BTDS*/"No podr\u00e1s enviar actualizaciones ni cambiar el perfil o los ajustes del canal."):s._(/*BTDS*/"No podr\u00e1 enviar actualizaciones ni cambiar el perfil o los ajustes del canal. Seguir\u00e1 formando parte del canal como seguidor."),h=m(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield p({isMe:a,newsletter:i,contact:t,shouldUnfollowNewsletter:c})}),[i,t,a,c]),y=a?d.jsxs(o("WAWebFlex.react").FlexRow,{columnGap:8,paddingTop:16,paddingBottom:16,xstyle:o("WAWebUISpacing").uiMargin.start3,alignSelf:"start",align:"center",children:[d.jsx(o("WAWebCheckBox.react").CheckBox,{id:"admin-dismissal-unfollow-checkbox",testid:void 0,checked:c,onChange:_}),d.jsx(o("WAWebText_DONOTUSE.react").TextLabel,{htmlFor:"admin-dismissal-unfollow-checkbox",size:"16",className:(u||(u=r("stylex")))(o("WAWebUISpacing").uiMargin.horiz10),children:o("WAWebCommonNewsletterStrings").getUnfollowNewsletterText()})]}):null;return d.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{title:f,onOK:h,onCancel:o("WAWebModalManager").closeModalManager,children:[d.jsx(o("WAWebText.react").WAWebTextTitle,{color:"secondary",children:g}),y]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebMexRevokeNewsletterAdminInviteJobMutation.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"newsletter_id"},{defaultValue:null,kind:"LocalArgument",name:"user_id"}],t=[{kind:"Variable",name:"newsletter_id",variableName:"newsletter_id"},{kind:"Variable",name:"user_id",variableName:"user_id"}],n={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebMexRevokeNewsletterAdminInviteJobMutation",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_invite_revoke",plural:!1,selections:[n],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexRevokeNewsletterAdminInviteJobMutation",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_admin_invite_revoke",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"9656078347839416",metadata:{},name:"WAWebMexRevokeNewsletterAdminInviteJobMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("WAWebMexRevokeNewsletterAdminInviteJob",["WAWebLidMigrationUtils","WAWebMexClient","WAWebMexRevokeNewsletterAdminInviteJobMutation.graphql","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=e!==void 0?e:e=n("WAWebMexRevokeNewsletterAdminInviteJobMutation.graphql");function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){return o("WAWebNewsletterRpcUtils").runWithBackoff(function(){return d(e,t)})}),c.apply(this,arguments)}function d(e,t){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n=o("WAWebLidMigrationUtils").toUserLidOrThrow(t);yield o("WAWebMexClient").fetchQuery(s,{newsletter_id:e,user_id:n.toString()})}),m.apply(this,arguments)}l.revokeNewsletterAdminInvite=u}),98); __d("WAWebNewsletterRevokeAdminInviteJob",["WAJobOrchestratorTypes","WAWebMexRevokeNewsletterAdminInviteJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("revokeNewsletterAdminInvite",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebMexRevokeNewsletterAdminInviteJob").revokeNewsletterAdminInvite(e,t)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.revokeNewsletterAdminInvite=e}),98); __d("WAWebRevokeNewsletterAdminInviteAction",["WALogger","WAWebChatGetters","WAWebNewsletterMembershipUtil","WAWebNewsletterRevokeAdminInviteJob","WAWebNewsletterValidationUtils","WAWebWidFactory","asyncToGeneratorRuntime","err","getErrorSafe"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e,t){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){if(!o("WAWebChatGetters").getIsNewsletter(t))throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][revokeNewsletterAdminInvite] called with a non-newsletter chat"]))).tags("newsletter").sendLogs("revoke-admin-invite-on-non-newsletter"),r("err")("revoke-admin-invite-on-non-newsletter");if(!o("WAWebNewsletterMembershipUtil").iAmOwner(t==null?void 0:t.newsletterMetadata))throw o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][revokeNewsletterAdminInvite] Only channel owners can revoke admin invite"]))).tags("newsletter").sendLogs("non-channel-owner-revoking-an-admin-invite"),r("err")("non-channel-owner-revoking-an-admin-invite");try{var a,i=o("WAWebWidFactory").asUserWidOrThrow(n.id),l=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid());t==null||(a=t.newsletterMetadata)==null||(a=a.pendingAdmins)==null||a.remove(n.id),yield o("WAWebNewsletterRevokeAdminInviteJob").revokeNewsletterAdminInvite(l,i)}catch(e){var c=r("getErrorSafe")(e);throw o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][revokeNewsletterAdminInvite] failed to revoke admin invite ",""])),c.name).tags("newsletter").sendLogs("revoke-admin-invite-on-newsletter-failed"),c}}),d.apply(this,arguments)}l.revokeNewsletterAdminInviteAction=c}),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(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useCallback,m={buttonGroup:{justifyContent:"xl56j7k",$$css:!0}};function p(){o("WAWebModalManager").ModalManager.close()}function _(e){return f.apply(this,arguments)}function f(){return f=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat,r=e.contact,a=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){p(),yield _({chat:t,contact:r})});return function(){return e.apply(this,arguments)}})();try{yield o("WAWebRevokeNewsletterAdminInviteAction").revokeNewsletterAdminInviteAction(t,r),o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:o("WAWebCommonNewsletterStrings").getInviteRevokedText()})),p()}catch(e){o("WAWebModalManager").ModalManager.open(c.jsx(o("WAWebNewsletterErrorPopups.react").NewsletterCouldNotRevokeInvitePopup,{onOK:a,contact:r}),{transition:"modal-flow"})}}),f.apply(this,arguments)}function g(e){var t=e.chat,r=e.contact,a=d(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield _({chat:t,contact:r})}),[t,r]),i=o("WAWebParticipantListUtils").getFirstNameForContact(r),l=s._(/*BTDS*/"\u00bfDeseas anular la invitaci\u00f3n para ser administrador para {contact-name}?",[s._param("contact-name",i)]),u=s._(/*BTDS*/"Si anulas la invitaci\u00f3n, {contact-name} no podr\u00e1 usarla para convertirse en admin. del canal.",[s._param("contact-name",i)]);return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:l,onOK:a,onCancel:p,okText:o("WAWebCommonNewsletterStrings").getRevokeButtonFullText(),children:c.jsx(o("WAWebText.react").WAWebTextTitle,{color:"secondary",children:u})})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.chat;return c.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",marginBottom:12,children:[c.jsx(o("WAWebDetailImage.react").DetailImage,{id:t.id,size:o("WAWebDetailImage.react").DetailImageSize.Medium,xstyle:o("WAWebUISpacing").uiMargin.bottom12,showOutline:!0}),c.jsx(o("WAWebText.react").WAWebTextLarge,{as:"h1",xstyle:o("WAWebUISpacing").uiMargin.bottom12,children:c.jsx(o("WAWebNewsletterName.react").NewsletterName,{chat:t,checkmarkLarge:!0})}),c.jsx(o("WAWebText.react").WAWebTextSmall,{children:o("WAWebCommonNewsletterStrings").getChannelAdminInviteText()})]})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.chat,r=e.contact,a=d(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield _({chat:t,contact:r})}),[t,r]),i=c.jsx(h,{chat:t});return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:i,onOK:a,onCancel:p,okText:o("WAWebCommonNewsletterStrings").getRevokeButtonFullText(),buttonGroupStyle:[m.buttonGroup,o("WAWebUISpacing").uiPadding.all0]})}y.displayName=y.name+" [from "+i.id+"]",l.NewsletterRevokeInvitePopupWithContactName=g,l.NewsletterRevokeInvitePopupWithNewsletterInformation=y}),226); __d("useWAWebNewsletterSubscribersContextMenu",["fbt","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebDropdownItem.react","WAWebModalManager","WAWebNewsletterAdminSelectionFlow.react","WAWebNewsletterDismissAdminPopup.react","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebNewsletterRevokeInvitePopup.react","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUserPrefsMeUser","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState;function m(e){var t=e.chat,n=e.followerInformation,a=e.isFullModal,i=e.newsletter,l=e.onTransferOwnershipSelection,u=e.onVerification,m=i==null?void 0:i.newsletterMetadata,p=d(null),_=p[0],f=p[1],g=[],h=function(d,p){var e,_=n.get(p.id),h=s._(/*BTDS*/"Descartar como admin."),y=function(){o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebNewsletterDismissAdminPopup.react"),{isMe:o("WAWebUserPrefsMeUser").isMeAccount(p.id),contact:p,newsletter:i}))},C=function(){o("WAWebNewsletterAdminSelectionFlow.react").startAdminInviteFlow({chat:t,invitees:[p]})},b=c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:y,children:h},"newsletter-dismiss-as-admin"),v=i==null||(e=i.newsletterMetadata)==null||(e=e.pendingAdmins)==null?void 0:e.get(p.id);if(!o("WAWebUserPrefsMeUser").isMeAccount(p.id)){if(o("WAWebNewsletterMembershipUtil").iAmOwner(m)&&o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()){if(v!=null){var S=s._(/*BTDS*/"Anular invitaci\u00f3n"),R=function(){o("WAWebModalManager").ModalManager.open(c.jsx(o("WAWebNewsletterRevokeInvitePopup.react").NewsletterRevokeInvitePopupWithContactName,{contact:p,chat:i}))};g.push(c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:R,children:S},"newsletter-revoke-invite"))}else if((_==null?void 0:_.newsletterRole)===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin){g.push(b);var L=c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){l==null||l(p)},children:o("WAWebCommonNewsletterStrings").getNewsletterTransferOwnershipText()},"newsletter-transfer-ownership");g.push(L)}else if(v==null){var E=s._(/*BTDS*/"Invitar como admin. del canal");g.push(c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:C,children:E},"newsletter-invite-as-channel-admin"))}}var k=function(){u(p)},I=s._(/*BTDS*/"Confirmar c\u00f3digo de seguridad");g.push(c.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:k,children:I},"newsletter-verify-identity"))}o("WAWebNewsletterMembershipUtil").iAmAdmin(m)&&o("WAWebUserPrefsMeUser").isMeAccount(p.id)&&o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()&&g.push(b);var T=d.type==="click"?void 0:d.target,D=d.anchor?void 0:d;f({contactId:p.id,menu:g,anchor:a?T:d.anchor,event:a?D:d.event})},y=function(){f(null)},C;return _&&(C=c.jsx(o("WAWebUimUie.react").UIE,{displayName:"NewsletterSubscribersContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:y,children:c.jsx(r("WAWebUimUieMenu.react"),{contextMenu:_})})),[C,h]}l.useNewsletterSubscribersContextMenu=m}),226); __d("WAWebNewsletterFullPendingInvitesList.react",["WAWebBoolFunc","WAWebCommonNewsletterStrings","WAWebContactsModal.react","react","useWAWebNewsletterPendingInvites","useWAWebNewsletterSubscribersContextMenu"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.newsletter,n=e.onCancel,a=e.onVerification,i=o("useWAWebNewsletterPendingInvites").useNewsletterPendingInvites(t),l=o("useWAWebNewsletterSubscribersContextMenu").useNewsletterSubscribersContextMenu({chat:t,isFullModal:!0,onVerification:a,followerInformation:new Map(i.map(function(e){return[e.id,{newsletterRole:null}]})),newsletter:t}),u=l[0],c=l[1];return s.jsxs(s.Fragment,{children:[s.jsx(r("WAWebContactsModal.react"),{title:o("WAWebCommonNewsletterStrings").getSearchForPendingInvitesText(),filter:o("WAWebBoolFunc").returnTrue,onCancel:n,contacts:i,isParentGroup:!0,newsletterRoles:new Map(i.map(function(e){return[e.id,{pendingInvitee:!0}]})),openContextOnClick:!0,contextEnabled:o("WAWebBoolFunc").returnFalse,contextMenu:o("WAWebBoolFunc").returnTrue,onContext:c}),u]})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebNewsletterFullSubscriberList.react",["WAWebBoolFunc","WAWebCommonNewsletterStrings","WAWebContactsModal.react","WAWebNewsletterGatingUtils","WAWebNewsletterSubscriberList.react","WAWebUserPrefsNewsletter","react","useWAWebNewsletterSubscribers","useWAWebNewsletterSubscribersContextMenu"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useCallback;function d(e){var t=e.newsletter,n=e.onCancel,a=e.onTransferOwnershipSelection,i=e.onVerification,l=o("useWAWebNewsletterSubscribers").useNewsletterSubscribers({newsletter:t,count:o("WAWebNewsletterGatingUtils").getMaxSubscriberNumber(),cacheType:o("WAWebUserPrefsNewsletter").ValidCachedNewsletterSubscriberKeys.FULL,includeMeContact:!0}),s=l[0],d=new Map(s.map(function(e){var t=e.contact.id,n=e.role;return[t,{role:n}]})),m=o("useWAWebNewsletterSubscribersContextMenu").useNewsletterSubscribersContextMenu({chat:t,isFullModal:!0,onVerification:i,followerInformation:new Map(s.map(function(e){var t=e.contact,n=e.role;return[t.id,{newsletterRole:n}]})),newsletter:t,onTransferOwnershipSelection:a}),p=m[0],_=m[1],f=c(function(e){return o("WAWebNewsletterSubscriberList.react").showContextForCell(e,t==null?void 0:t.newsletterMetadata)},[t]);return u.jsxs(u.Fragment,{children:[u.jsx(r("WAWebContactsModal.react"),{title:o("WAWebCommonNewsletterStrings").getSearchForChannelFollowersText(),filter:o("WAWebBoolFunc").returnTrue,onCancel:n,contacts:s.map(function(e){var t=e.contact;return t}),newsletterRoles:d,isNewsletter:!0,openContextOnClick:!0,contextEnabled:o("WAWebBoolFunc").returnFalse,contextMenu:f,onContext:_}),p]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebChatInfoDrawerSection.react",["WAWebDrawerSection.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l){var e=["ref"],s=["ref"],u=["ref"],c,d=c||(c=r("react")),m=10,p=11,_={containerWithoutTitle:{paddingTop:"xexx8yu",paddingInlineEnd:"x5zjp28",paddingBottom:"x18d9i69",paddingInlineStart:"x162tt16",marginBottom:"xat24cr",$$css:!0}};function f(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=[[o("WAWebUISpacing").uiPadding.horiz20,o("WAWebUISpacing").uiPadding.vert10],a.title==null&&_.containerWithoutTitle,a.xstyle],l=[a.titleXStyle];return d.jsx(r("WAWebDrawerSection.react"),babelHelpers.extends({},a,{xstyle:i,titleXStyle:l,theme:"refresh-new",ref:n,children:a.children}))}f.displayName=f.name+" [from "+i.id+"]";var g={drawerSectionContainer:{paddingBottom:"x18d9i69",$$css:!0}};function h(e){var t=e.ref,n=babelHelpers.objectWithoutPropertiesLoose(e,s);return d.jsx(f,babelHelpers.extends({},n,{xstyle:[g.drawerSectionContainer,n.xstyle],ref:t,children:d.jsx("div",{children:n.children})}))}h.displayName=h.name+" [from "+i.id+"]";var y={drawerSectionContainer:{paddingTop:"xexx8yu",paddingInlineEnd:"xyri2b",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",$$css:!0}};function C(e){var t=e.ref,n=babelHelpers.objectWithoutPropertiesLoose(e,u);return d.jsx(f,babelHelpers.extends({},n,{xstyle:[y.drawerSectionContainer,n.xstyle],ref:t,children:n.children}))}C.displayName=C.name+" [from "+i.id+"]",l.INFO_DRAWER_MAX_ROWS=m,l.INFO_DRAWER_MAX_ROWS_IN_COLLAPSED_LIST=p,l.ChatInfoDrawerSection=f,l.ChatInfoDrawerListSection=h,l.ChatInfoDrawerButtonsSection=C}),98); __d("WAWebChevronRightRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="chevron-right-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ChevronRightRefreshedIcon=m}),98); __d("WAWebDrawerButtonRefreshed.react",["WAWebFlex.react","WAWebL10NFbtTypeUtils","WAWebUISpacing","WDSText.react","react","stylex","useMergeRefs","useWAWebStaticButtonA11y"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c=u||(u=o("react")),d={btn:{borderStartStartRadius:"x7zqoo0",borderStartEndRadius:"xt1g1te",borderEndEndRadius:"x1iz9ej4",borderEndStartRadius:"x1ga13z8",":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 m(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.ariaLabel,l=a.children,u=a.danger,m=a.disabled,p=a.icon,_=a.onClick,f=a.testid,g=a.tooltip,h=r("useWAWebStaticButtonA11y")(_,{disabled:m}),y=h[0],C=h[1],b=r("useMergeRefs")(y,n),v=o("WAWebL10NFbtTypeUtils").isStringOrFbt(l)?l:null,S=g!=null?g:v,R=i!=null?i:v,L=m!==!0&&u===!0,E=c.jsx(r("WDSText.react"),{type:"Body1",colorName:L?"secondaryNegativeEmphasized":"contentDefault",children:l});return c.jsx("div",babelHelpers.extends({},C,(s||(s=r("stylex"))).props(d.btn,o("WAWebUISpacing").uiMargin.horiz10),{"data-ignore-capture":"any","data-testid":void 0,ref:b,title:S,"aria-label":R,children:c.jsxs(o("WAWebFlex.react").FlexRow,{align:"stretch",xstyle:[d.container,o("WAWebUISpacing").uiPadding.horiz20,o("WAWebUISpacing").uiPadding.vert10],children:[c.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[d.iconContainer,o("WAWebUISpacing").uiMargin.end14,L&&d.danger],children:p}),c.jsx(o("WAWebFlex.react").FlexColumn,{justify:"center",grow:1,xstyle:d.middleContainer,children:E})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebChatInfoExpandButton.react",["fbt","WALogger","WAWebChevronCustomIcons","WAWebChevronRightRefreshedIcon.react","WAWebCommonNewsletterStrings","WAWebDrawerButton.react","WAWebDrawerButtonRefreshed.react","WAWebFlex.react","WAWebFlexItem.react","WAWebRoundShape.react","WAWebSvgComponentBase","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d={container:{height:"xnnlda6",width:"xh8yej3",boxSizing:"x9f619",paddingInlineStart:"xe2zdcy",display:"x78zum5",alignItems:"x6s0dn4",color:"xhslqc4",":hover_backgroundColor":"x17gydlx",$$css:!0},iconWrapper:{width:"x13zx6y",$$css:!0},iconWrapperRefreshed:{transform:"x1wc7zzz",color:"xhslqc4",$$css:!0},textAlt:{color:"x1v5yvga",$$css:!0}};function m(t){var n=t.ariaLabel,a=t.fromNewsletter,i=a===void 0?!1:a,l=t.isRefresh,u=t.numMore,m=t.onClick,p=t.viewAll,_=p===void 0?!1:p,f=t.xstyle;u<=0&&o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[chat-info-expand-button] number of expand button should not be less than 1"]))).sendLogs("invalid-number-of-more-contacts-in-chat");var g=c.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:l===!0?d.iconWrapperRefreshed:d.iconWrapper,children:_?null:c.jsx(r("WAWebRoundShape.react"),{transparent:!0,children:l===!0?c.jsx(o("WAWebChevronRightRefreshedIcon.react").ChevronRightRefreshedIcon,{}):c.jsx(o("WAWebChevronCustomIcons").ChevronDownCustomIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY})})}),h=s._(/*BTDS*/"_j{\"*\":\"{count} m\\u00e1s\",\"_1\":\"1 m\\u00e1s\"}",[s._plural(u,"count")]);_&&(h=s._(/*BTDS*/"Ver todos ({more})",[s._param("more",h)]),i&&(h=o("WAWebCommonNewsletterStrings").getViewAllChannelFollowersText()));var y=c.jsx(r("WAWebFlexItem.react"),{grow:1,align:"start",xstyle:_&&d.textAlt,children:h}),C=l===!0?r("WAWebDrawerButtonRefreshed.react"):o("WAWebDrawerButton.react").DrawerButtonSimple;return c.jsx(C,{ariaLabel:n,icon:g,xstyle:[d.container,f],onClick:m,children:y})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebNavigableFlatList.react",["WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebKeyboardHotKeys.react","react","stylex","useLazyRef"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useMemo,p=c.useRef,_={listContainer:{zIndex:"xupqr0c",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",overflowY:"x1odjw0f",backgroundColor:"x1280gxy",$$css:!0}};function f(e){var t=e.ariaLabel,n=e.flatListController,a=e.listData,i=e.onRenderItem,l=e.rotateList,u=l===void 0?!1:l,c=e.selection,f=e.xstyle,g=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),h=p(),y=m(function(){return o("WAWebFlatList.react").FlatListFactory()},[]),C=function(t){t.target===h.current&&(c.index<0?c.setFirst(!0):c.reset(!0))},b=function(t){var e=t.relatedTarget;e instanceof HTMLElement&&t.currentTarget instanceof HTMLElement&&!t.currentTarget.contains(e)&&c.unset()},v=function(t){t==null||t.preventDefault(),t==null||t.stopPropagation();var e=c.prev(u);e>-1&&c.setPrev(!0,u)},S=function(t){t==null||t.preventDefault(),t==null||t.stopPropagation();var e=c.next(u);c.index!==e&&c.setNext(!0,u)};return d.jsx(r("WAWebFlatListContainer.react"),{flatListControllers:[n!=null?n:g.current],className:(s||(s=r("stylex")))(_.listContainer,f),id:"pane-side",children:d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{role:"list",handlers:{up:v,down:S},onFocus:C,onBlur:b,ref:h,tabIndex:c.list.length!==0?0:-1,children:d.jsx(y,{flatListController:n!=null?n:g.current,direction:"vertical",data:a,renderItem:i,"aria-label":t})})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),98); __d("WAWebNewsletterInviteAdminButton.react",["fbt","WAWebCellV2.react","WAWebNewsletterAdminSelectionFlow.react","WAWebNewsletterGatingUtils","WAWebNewsletterMembershipUtil","WAWebPersonAddFilledRefreshedIcon.react","WAWebRoundShape.react","WAWebText.react","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useCallback;function m(e){var t=e.chat,n=o("useWAWebModelValues").useModelValues(t,["newsletterMetadata"]),r=d(function(){o("WAWebNewsletterAdminSelectionFlow.react").startAdminInviteFlow({chat:n})},[n]);return!o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()||!o("WAWebNewsletterMembershipUtil").iAmOwner(n.newsletterMetadata)?null:c.jsx(p,{onInviteAdmin:r})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.onInviteAdmin,n=c.jsx(r("WAWebRoundShape.react"),{theme:"group-modal",children:c.jsx(o("WAWebPersonAddFilledRefreshedIcon.react").PersonAddFilledRefreshedIcon,{directional:!0})});return c.jsx(r("WAWebCellV2.react"),{testid:void 0,detailLeft:n,primary:c.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:s._(/*BTDS*/"Invitar a administradores")}),onClick:t,size:"medium",isRefresh:!0})}p.displayName=p.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebNewsletterFollowerSelectionFlow.react",["$InternalEnum","WAWebModalManager","react","useWAWebFlow"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=n("$InternalEnum").Mirrored(["Selection","Confirmation"]);function c(e){return e.invitees!=null&&e.invitees.length>0?u.Confirmation:u.Selection}function d(e){var t=c(e),n=o("useWAWebFlow").useFlow(t,{transitions:o("useWAWebFlow").FlowTransitions.Modal}),r=n[0],a=n[1];if(a.step==null)return null;var i;switch(a.step){case u.Selection:{i=s.jsx("div",{});break}case u.Confirmation:{i=s.jsx("div",{});break}}return s.jsx(r,{flow:a,children:i})}d.displayName=d.name+" [from "+i.id+"]";function m(e){o("WAWebModalManager").ModalManager.open(s.jsx(d,babelHelpers.extends({},e)),{transition:"modal-flow"})}l.startFollowerInviteFlow=m}),98); __d("WAWebNewsletterInviteFollowerButton.react",["fbt","WAWebAddUserIcon.react","WAWebCellFrame.react","WAWebNewsletterFollowerSelectionFlow.react","WAWebNewsletterGatingUtils","WAWebRoundShape.react","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useCallback,m={inviteFollowerIcon:{transform:"xpk2tj9",$$css:!0}};function p(e){var t=e.chat,n=o("useWAWebModelValues").useModelValues(t,["newsletterMetadata"]),a=d(function(){o("WAWebNewsletterFollowerSelectionFlow.react").startFollowerInviteFlow({chat:n})},[n]);if(!o("WAWebNewsletterGatingUtils").isChannelInviteContactsToFollowProducerEnabled())return null;var i=c.jsx(r("WAWebRoundShape.react"),{theme:"compact",children:c.jsx(o("WAWebAddUserIcon.react").AddUserIcon,{height:26,directional:!0,iconXstyle:m.inviteFollowerIcon})});return c.jsx(r("WAWebCellFrame.react"),{testid:void 0,image:i,theme:"chat-info",primary:s._(/*BTDS*/"Invitar seguidores"),onClick:a,focusable:!0})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebSearchIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="search";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 24 24",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M15.009,13.805h-0.636l-0.22-0.219c0.781-0.911,1.256-2.092,1.256-3.386 c0-2.876-2.332-5.207-5.207-5.207c-2.876,0-5.208,2.331-5.208,5.207s2.331,5.208,5.208,5.208c1.293,0,2.474-0.474,3.385-1.255 l0.221,0.22v0.635l4.004,3.999l1.194-1.195L15.009,13.805z M10.201,13.805c-1.991,0-3.605-1.614-3.605-3.605 s1.614-3.605,3.605-3.605s3.605,1.614,3.605,3.605S12.192,13.805,10.201,13.805z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SearchIcon=m}),98); __d("WAWebNewsletterSubscriberList.react",["fbt","WAWebCellV2.react","WAWebChatContact.react","WAWebChatInfoDrawerSection.react","WAWebChatInfoExpandButton.react","WAWebCommonNewsletterStrings","WAWebContactGetters","WAWebEmojiText.react","WAWebFlatListController","WAWebFlex.react","WAWebLinkRefreshedIcon.react","WAWebModalManager","WAWebNavigableFlatList.react","WAWebNewsletterGatingUtils","WAWebNewsletterInviteAdminButton.react","WAWebNewsletterInviteFollowerButton.react","WAWebNewsletterMembershipUtil","WAWebNewsletterSubscriberListAction","WAWebNewsletterSubscriberListModal.react","WAWebRoundShape.react","WAWebSearchIcon.react","WAWebSingleSelection","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebUserPrefsNewsletter","WAWebWamEnumChannelAdminAction","react","useLazyRef","useWAWebNewsletterSubscribers","useWAWebNewsletterSubscribersContextMenu"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useCallback,m={italic:{fontStyle:"x1k4tb9n",$$css:!0},copyLink:{borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",height:"x1vqgdyp",width:"x100vrsf",backgroundColor:"xfn3atn",$$css:!0},lastRow:{width:"xh8yej3",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"x1y55ic2",marginTop:"x98l61r",$$css:!0},center:{textAlign:"x2b8uid",$$css:!0},start:{textAlign:"x1yc453h",$$css:!0},lastRowLabel:{color:"xhslqc4",width:"xh8yej3",fontSize:"x1f6kntn",lineHeight:"xx6cpbe",$$css:!0},copyIcon:{color:"x1awj2ng",$$css:!0}},p=o("WAWebChatContact.react").ContactFactory(),_=68;function f(e){var t=e.text,n=e.textAlign;return c.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:[o("WAWebUISpacing").uiPadding.vert16,m.lastRow,m[n]],children:c.jsx(o("WAWebEmojiText.react").EmojiText,{direction:"auto",text:t,titlify:!0,xstyle:[m.lastRowLabel,o("WAWebUISpacing").uiPadding.horiz20]})})}f.displayName=f.name+" [from "+i.id+"]";function g(){return c.jsx(o("WAWebEmojiText.react").EmojiText,{direction:"auto",titlify:!0,breakWord:!0,xstyle:m.italic,text:o("WAWebCommonNewsletterStrings").getMeContactLabelChannelText()})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.onShareLink,n=c.jsx(r("WAWebRoundShape.react"),{theme:"group-modal",children:c.jsx(o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,{})});return c.jsx(r("WAWebCellV2.react"),{testid:void 0,detailLeft:n,primary:c.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:o("WAWebCommonNewsletterStrings").getInviteViaLinkText()}),onClick:t,size:"medium",isRefresh:!0})}h.displayName=h.name+" [from "+i.id+"]";function y(e,t){return!(o("WAWebUserPrefsMeUser").isMeAccount(e)&&o("WAWebNewsletterMembershipUtil").iAmOwner(t))}function C(e){var t=e.active,n=e.handleContactClick,r=e.handleContactContextMenu,a=e.newsletter,i=e.subscriberData,l=d(function(){var e;return y((e=i.contact)==null?void 0:e.id,a==null?void 0:a.newsletterMetadata)},[i,a]);return i.contact==null?null:c.jsx(p,{contact:i.contact,active:t,theme:"chat-info",newsletterMembershipType:i.role,onClick:n,secondary:o("WAWebContactGetters").getIsMe(i.contact)?c.jsx(g,{}):null,isPendingParticipant:i.isPendingAdmin,contextMenu:!0,contextEnabled:l,onContext:r})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.adminFunnelLogger,n=e.onShareLink,a=e.onTransferOwnershipSelection,i=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),l=r("useLazyRef")(function(){return new(r("WAWebSingleSelection"))([],function(e){return e.id.toString()})}),u=c.jsx(o("WAWebSearchIcon.react").SearchIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),d=e.newsletter.newsletterMetadata,m=(d==null?void 0:d.size)!=null?o("WAWebCommonNewsletterStrings").getNewsletterFollowersText(d.size,!0):null,p=o("useWAWebNewsletterSubscribers").useNewsletterSubscribers({newsletter:e.newsletter,count:o("WAWebNewsletterSubscriberListAction").NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT,cacheType:o("WAWebUserPrefsNewsletter").ValidCachedNewsletterSubscriberKeys.LIMITED,includeMeContact:!0}),g=p[0],y=p[1],b=g.map(function(e){var t=e.contact,n=e.role;return{itemKey:t.id.toString(),contact:t,height:_,role:n,isPendingAdmin:!1}}),v=o("useWAWebNewsletterSubscribersContextMenu").useNewsletterSubscribersContextMenu({chat:e.newsletter,isFullModal:!1,onVerification:e.onVerification,followerInformation:new Map(b.map(function(e){var t;return[(t=e.contact)==null?void 0:t.id,{newsletterRole:e.role}]})),newsletter:e.newsletter,onTransferOwnershipSelection:a}),S=v[0],R=v[1];l.current.init(g.map(function(e){var t=e.contact;return t}));var L=function(t){o("WAWebModalManager").ModalManager.close(),a(t)},E=function(){t.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.SEARCH_FOLLOWER),o("WAWebModalManager").ModalManager.open(c.jsx(o("WAWebNewsletterSubscriberListModal.react").NewsletterSubscriberListModal,{newsletter:e.newsletter,onVerification:e.onVerification,onTransferOwnershipSelection:L}),{transition:"modal-flow"})},k=y?c.jsx(r("WAWebChatInfoExpandButton.react"),{numMore:g.length,onClick:E,fromNewsletter:!0,viewAll:!0}):null;return c.jsxs(c.Fragment,{children:[c.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{testid:void 0,title:m,subtitle:u,xstyle:o("WAWebUISpacing").uiMargin.top10,titleOnClick:E}),c.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{testid:void 0,xstyle:o("WAWebUISpacing").uiPadding.horiz0,children:[c.jsx(r("WAWebNewsletterInviteFollowerButton.react"),{chat:e.newsletter}),c.jsx(r("WAWebNewsletterInviteAdminButton.react"),{chat:e.newsletter}),c.jsx(h,{onShareLink:n}),c.jsx(r("WAWebNavigableFlatList.react"),{ariaLabel:s._(/*BTDS*/"Lista de seguidores: {follower-size}",[s._param("follower-size",m)]),flatListController:i.current,listData:b,onRenderItem:function(n){return c.jsx(C,{newsletter:e.newsletter,active:l.current,subscriberData:n,handleContactClick:function(n,r){return e.onContactInfo(r)},handleContactContextMenu:R})},selection:l.current,rotateList:!0}),k,c.jsx(f,{textAlign:"start",text:o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()?o("WAWebCommonNewsletterStrings").getFollowersOnlyInYourContactsAndAdminsText():o("WAWebCommonNewsletterStrings").getFollowersOnlyInYourContactsText()})]}),S]})}b.displayName=b.name+" [from "+i.id+"]",l.NewsletterSubListLastRow=f,l.YouArentVisibleToYourFollowersLabel=g,l.showContextForCell=y,l.NewsletterSubscriber=C,l.NewsletterSubscriberList=b}),226); __d("WAWebListButton.react",["WAWebFlex.react","WAWebText.react","WAWebUnstyledButton.react","react","useWAWebActiveSelection"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=60,c={container:{height:"xng8ra",fontSize:"x1jchvi3",paddingInlineStart:"xbcx4z0",color:"x1v5yvga",backgroundColor:"x1280gxy",$$css:!0},hover:{":hover_backgroundColor":"x17gydlx",$$css:!0},active:{backgroundColor:"x4wrhlh",$$css:!0},button:{width:"xh8yej3",height:"x5yr21d",textAlign:"x1yc453h",$$css:!0},textColorRefreshed:{color:"x1v5yvga",$$css:!0}};function d(e){var t=e.children,n=e.id,a=e.onClick,i=e.testid,l=r("useWAWebActiveSelection")(e.active,n!=null?n:""),u=l[0],d=l[1];return s.jsx(o("WAWebFlex.react").FlexRow,{ref:u,xstyle:[c.container,d&&c.active,!d&&c.hover],align:"center",justify:"center",testid:void 0,children:s.jsx(r("WAWebUnstyledButton.react"),{xstyle:c.button,onClick:a,children:e.isRefresh===!0?s.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{xstyle:c.textColorRefreshed,children:t}):t})})}d.displayName=d.name+" [from "+i.id+"]",l.LIST_BUTTON_HEIGHT=u,l.ListButton=d}),98); __d("WAWebContactsModal.react",["fbt","WALogger","WATypeUtils","WAWebChatContact.react","WAWebChatParticipantUtils.react","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebContactCollection","WAWebContactGetters","WAWebEmptyState.react","WAWebFbtCommon","WAWebFlatList.react","WAWebFrontendContactGetters","WAWebL10NAccentFold","WAWebListButton.react","WAWebModalsListModal.react","WAWebNewsletterSubscriberList.react","WAWebNoop","WAWebPhoneNumberSearch","WAWebSectionHeader.react","WAWebSingleSelection","react","useLazyRef","useWAWebDebouncedSearch","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d,m=d||(d=r("react")),p=(c||(c=o("react"))).useMemo,_={HEADER:"HEADER",ROW:"ROW",BUTTON:"BUTTON"},f="in-your-contacts-header-key",g=o("WAWebChatContact.react").ContactFactory(),h=o("WAWebModalsListModal.react").ListModalFactory();function y(e){var t,n=e.active,a=e.contextEnabled,i=e.contextMenu,l=e.data,s=e.elevatedPushNamesEnabled,c=e.filter,d=e.listenForAdminChange,p=e.loadOnlyContactPictures,h=p===void 0?!1:p,y=e.newsletterRoles,C=e.onContext,b=e.onSelect,v=e.openContextOnClick,S=e.participantCollection,R=e.showMemberLabel,L=e.showNotifyName,E=e.showStatusRingAroundProfilePhoto,k=e.sourceChat;switch(l.type){case _.HEADER:return m.jsx(r("WAWebSectionHeader.react"),{header:(t=l.header)!=null?t:"",uppercase:l.itemKey!==f});case _.ROW:{var I=!!v,T=o("WATypeUtils").isString(c(l.contact)),D=T?"group-modal":null,x=T?c(l.contact):null,$=y&&o("WAWebContactGetters").getIsMe(l.contact)?m.jsx(o("WAWebNewsletterSubscriberList.react").YouArentVisibleToYourFollowersLabel,{}):x,P=C&&i&&a?{contextEnabled:function(){return a(l.contact.id)},contextMenu:i(l.contact.id),onContext:C}:{},N=!0;return h&&(N=o("WAWebFrontendContactGetters").getIsMyContact(l.contact)),m.jsx(g,babelHelpers.extends({contact:l.contact,active:n,theme:D,secondary:$,newsletterMembershipType:l.newsletterRole,onClick:I&&C?C:T?void 0:b?function(){b(l.contact)}:r("WAWebNoop"),waitIdle:!0,showNotifyName:L,elevatedPushNamesEnabled:s,listenForAdminChange:d,participantCollection:S,isPendingParticipant:l.isPending},P,{showStatusRingAroundProfilePhoto:E,loadPicture:N,showMemberLabel:R,sourceChat:k}))}case _.BUTTON:return m.jsx(o("WAWebListButton.react").ListButton,{active:n,id:l.itemKey,onClick:l.onClick,children:l.text});default:throw o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebContactsModal"]))),new(o("WAWebFlatList.react")).UnknownDataError(l)}}y.displayName=y.name+" [from "+i.id+"]";var C=5001;function b(e,t){var n;if(t==null)return o("WAWebFrontendContactGetters").getHeader(e);if((t==null||(n=t.get(e.id))==null?void 0:n.role)===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Subscriber)return r("WAWebFbtCommon")("In Your Contacts").toString()}function v(t){"use no forget";var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.title,l=a.onCancel,u=a.onBack,c=a.contacts,d=a.newsletterRoles,f=a.filter,g=f===void 0?function(e){return o("WAWebContactCollection").ContactCollection.isFilteredContact(e)}:f,v=a.onSelect,S=a.onContext,R=a.contextEnabled,L=a.contextMenu,E=a.openContextOnClick,k=a.showNotifyName,I=a.elevatedPushNamesEnabled,T=a.participantCollection,D=a.listenForAdminChange,x=a.isNewsletter,$=x===void 0?!1:x,P=a.button,N=a.isParentGroup,M=a.lastRow,w=a.firstRows,A=a.searchPlaceholder,F=a.showStatusRingAroundProfilePhoto,O=a.spinnerInHeader,B=O===void 0?!1:O,W=a.loadOnlyContactPictures,q=W===void 0?!1:W,U=r("useLazyRef")(function(){return new(r("WAWebSingleSelection"))([],function(e){return String(e.id)})}),V=r("useWAWebDebouncedSearch")(),H=V[0],G=V[1],z=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListener(o("WAWebContactCollection").ContactCollection,["add","remove","change:name"],function(){c||z()});var j=function(t,n){if(n.type===_.ROW){var e=n.contact;g(e)===!0&&(v==null||v(e))}},K=$&&c!=null&&c.length>=C?m.jsx(o("WAWebNewsletterSubscriberList.react").NewsletterSubListLastRow,{text:H!=null&&H!==""?o("WAWebCommonNewsletterStrings").getFirstFiveThousandChannelFollowersSearchingText():o("WAWebCommonNewsletterStrings").getFirstFiveThousandChannelFollowersText(),textAlign:"center"}):M,Q=a.sourceChat,X=a.showMemberLabel===!0,Y=Q==null?void 0:Q.groupMetadata,J=p(function(){var e=o("WAWebL10NAccentFold").accentFold(H),t=o("WAWebPhoneNumberSearch").numberSearch(e),n=c||o("WAWebContactCollection").ContactCollection,r=n.filter(function(n){return g(n)&&(!e||n.searchMatchExact(e,t))}),a=r.filter(function(e){return g(e)===!0});P&&a.push({id:"button"}),U.current.init(a);var i=[];if(!r.length)return i;for(var l,s,u=d==null?r.length>10&&N!==!0:!0,m=0;m0?u.jsx(r("WAWebFlatListContainer.react"),{flatListControllers:[l.current],className:"x6ikm8r x1odjw0f",children:u.jsx(c,{flatListController:l.current,direction:"vertical",data:i,handleKeyboardNavigation:!0,role:"list","aria-label":s._(/*BTDS*/"Contactos bloqueados"),focusableItemSelector:"[data-testid='cell-frame-container']",renderItem:function(t){return u.jsx(d,{data:t,onClick:m,onDelete:m})}})}):u.jsx(o("WAWebEmptyState.react").Blocked,{}),g=o("WAWebBlocklistCollection").BlocklistCollection.length>0?u.jsx("div",{"data-testid":void 0,className:"x1okw0bk x109j2v6 x1xnnf8n x1w3bhph xizuyw3 x1f6kntn x1fc57z9 xhslqc4",children:s._(/*BTDS*/"Los contactos bloqueados ya no podr\u00e1n llamarte ni enviarte mensajes.")}):null;return u.jsxs(r("WAWebDrawer.react"),{ref:a,testid:void 0,children:[u.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Contactos bloqueados"),onBack:t,focusBackOrCancel:!0,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),u.jsx("div",{className:"xso031l x1q0q8m5 x120ee7l",children:u.jsx(o("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,onClick:_,icon:u.jsx(o("WAWebAddUserIcon.react").AddUserIcon,{directional:!0}),children:s._(/*BTDS*/"A\u00f1adir contacto bloqueado")})}),u.jsxs(r("WAWebDrawerBody.react"),{children:[f,g]})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebBugnubLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBugnub.react").__setRef("WAWebBugnubLoadable").load();return e.openBugnubPopup}),"bugnub");function s(){e().then(function(e){e()})}l.default=s}),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","useWAWebSettingSync"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useContext,m={chevronIcon:{color:"x16zc8z2",height:"x17rw0jw",$$css:!0}};function p(e){var t=e.systemThemeMode,n=e.theme;return t?o("WAWebSettingsFBT").themeSystemLabel():n==="dark"?s._(/*BTDS*/"Modo oscuro"):s._(/*BTDS*/"Modo claro")}p.displayName=p.name+" [from "+i.id+"]";function _(e){var t=e.onClickMediaAutoDownload,n=e.onClickMediaUploadQuality,a=e.onClickTheme,i=e.onClickWallpaper,l=e.onClose,u=e.ref,_=d(o("WAWebThemeContext").ThemeContext),f=o("useWAWebModelValues").useModelValues(r("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend","autoplayAnimatedImages"]),g=o("useWAWebSettingSync").useSettingSync("replaceTextWithEmoji",function(e){f.set("transformTextEmoji",e)}),h=o("useWAWebSettingSync").useSettingSync("isSpellCheckEnabled",function(e){f.set("spellcheck",e)}),y=function(){h(!f.spellcheck)},C=function(){g(!f.transformTextEmoji)},b=o("useWAWebSettingSync").useSettingSync("isEnterToSendEnabled",function(e){f.set("enterIsSend",e)}),v=function(){b(!f.enterIsSend)},S=function(){f.set("autoplayAnimatedImages",!f.autoplayAnimatedImages)},R=s._(/*BTDS*/"Correcci\u00f3n ortogr\u00e1fica"),L=s._(/*BTDS*/"Revisa la ortograf\u00eda mientras escribes."),E=c.jsxs(o("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:R.toString()+". "+L.toString(),testid:void 0,id:"spellcheck",checked:f.spellcheck,checkboxRightAligned:!0,checkboxXStyle:o("WAWebUISpacing").uiMargin.end6,onChange:y,children:[R,c.jsx(o("WAWebText.react").WAWebTextMuted,{children:L})]}),k=s._(/*BTDS*/"Reemplaza texto con emojis"),I=s._(/*BTDS*/"El emoji reemplazar\u00e1 el texto espec\u00edfico mientras escribes"),T=c.jsxs(o("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:k.toString()+". "+I.toString(),testid:void 0,id:"emoji",checked:f.transformTextEmoji,checkboxRightAligned:!0,checkboxXStyle:o("WAWebUISpacing").uiMargin.end6,onChange:C,children:[k,c.jsx(o("WAWebText.react").WAWebTextMuted,{children:I})]}),D=s._(/*BTDS*/"Enter para enviar"),x=s._(/*BTDS*/"Se enviar\u00e1 tu mensaje cuando presiones la tecla Enter."),$=c.jsxs(o("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:D.toString()+". "+x.toString(),testid:void 0,id:"enter",checked:f.enterIsSend,checkboxRightAligned:!0,checkboxXStyle:o("WAWebUISpacing").uiMargin.end6,onChange:v,children:[D,c.jsx(o("WAWebText.react").WAWebTextMuted,{children:x})]}),P=s._(/*BTDS*/"Reproduce autom\u00e1ticamente las im\u00e1genes animadas"),N=s._(/*BTDS*/"Haz que los emojis y GIF se muevan autom\u00e1ticamente"),M=c.jsxs(o("WAWebSettingsCheckList.react").SettingsCheckListItem,{ariaLabel:P.toString()+". "+N.toString(),testid:void 0,id:"animated-images",checked:f.autoplayAnimatedImages,checkboxRightAligned:!0,checkboxXStyle:o("WAWebUISpacing").uiMargin.end6,onChange:S,children:[P,c.jsx(o("WAWebText.react").WAWebTextMuted,{children:N})]}),w=o("WAWebMediaGatingUtils").isHDMediaGlobalSettingEnabled()&&c.jsx(r("WAWebDrawerItem.react"),{title:o("WAWebSettingsHierarchy").MediaUploadQualitySettingsItem.title(),theme:"privacy",icon:c.jsx(o("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:n,testid:void 0});return c.jsxs(r("WAWebDrawer.react"),{ref:u,theme:"striped",testid:void 0,children:[c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:o("WAWebSettingsFBT").chatsTitle(),onBack:l,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),c.jsx(r("WAWebDrawerBody.react"),{children:c.jsxs(o("WAWebMenu.react").WAWebMenu,{size:"medium",colorScheme:"default",children:[c.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:s._(/*BTDS*/"Pantalla"),titleXStyle:[o("WAWebUISpacing").uiPadding.vert20,o("WAWebUISpacing").uiPadding.horiz0],animation:!1,children:[c.jsx(r("WAWebDrawerItem.react"),{title:o("WAWebSettingsHierarchy").ThemeSettingsItem.title(),theme:"privacy",icon:c.jsx(o("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:a,testid:void 0,children:p(_)}),c.jsx(r("WAWebDrawerItem.react"),{title:s._(/*BTDS*/"Fondo"),theme:"privacy",icon:c.jsx(o("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:i,isLastItem:!0,testid:void 0})]}),c.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:s._(/*BTDS*/"Ajustes de chats"),titleXStyle:[o("WAWebUISpacing").uiPadding.vert20,o("WAWebUISpacing").uiPadding.horiz0],animation:!1,children:[w,c.jsx(r("WAWebDrawerItem.react"),{title:o("WAWebSettingsHierarchy").MediaAutoDownloadSettingsItem.title(),theme:"privacy",icon:c.jsx(o("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:m.chevronIcon}),onClick:t,testid:void 0}),E,T,$,o("WAWebAnimatedEmojiGatingUtils").isAnimatedEmojiEnabled()&&M]})]})})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebConfirmLogoutModal.react",["fbt","$InternalEnum","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebDialogEventLogger","WAWebDrawerManager","WAWebEligibilityLogging","WAWebKeyboardTabUtils","WAWebLockScreenResolver","WAWebModalManager","WAWebMsgCollection","WAWebScreenLockDrawer.react","WAWebSocketModel","WAWebUserPrefsScreenLock","WAWebWamEnumDialogNameType","WDSText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=n("$InternalEnum")({LOGOUT:"logout",CANCEL:"cancel",APP_LOCK:"app_lock"}),d=function(){r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.LOGOUT,source:c.APP_LOCK}),o("WAWebModalManager").ModalManager.close(),o("WAWebUserPrefsScreenLock").getScreenLockEnabled()?o("WAWebLockScreenResolver").lockScreenAndTriggerUnlockFlow():o("WAWebDrawerManager").DrawerManager.openDrawerLeft(u.jsx(r("WAWebScreenLockDrawer.react"),{onCancel:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerLeft()}}),{focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE})};function m(e){var t=e.checkUnsent,n=o("WAWebEligibilityLogging").eligibilityLogger.getValue("wa_web_app_lock_upsell"),a;t&&o("WAWebMsgCollection").MsgCollection.hasUnsentMessages()?a=s._(/*BTDS*/"Algunos de tus mensajes todav\u00eda se est\u00e1n enviando."):n?o("WAWebUserPrefsScreenLock").getScreenLockEnabled()?a=s._(/*BTDS*/"El bloqueo de la aplicaci\u00f3n se restablecer\u00e1 si cierras sesi\u00f3n. \u00bfQuieres bloquear WhatsApp Web?"):a=s._(/*BTDS*/"Puedes bloquear WhatsApp Web con una contrase\u00f1a para que sea m\u00e1s f\u00e1cil volver a acceder m\u00e1s tarde."):a=s._(/*BTDS*/"\u00bfConfirmas que deseas cerrar sesi\u00f3n?");var i=o("WAWebUserPrefsScreenLock").getScreenLockEnabled()||n?null:s._(/*BTDS*/"Tambi\u00e9n puedes activar el {=m2}.",[s._implicitParam("=m2",u.jsx(r("WAWebClickableLink.react"),{onClick:d,children:s._(/*BTDS*/"bloqueo de aplicaci\u00f3n")}))]),l=n?{text:s._(/*BTDS*/"Bloquear aplicaci\u00f3n"),onClick:d}:null;return u.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas cerrar sesi\u00f3n?"),onOK:function(){r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.LOGOUT,source:c.LOGOUT}),o("WAWebSocketModel").Socket.logout()},okText:s._(/*BTDS*/"Cerrar sesi\u00f3n"),okButtonType:"solid-warning",onCancel:function(){r("WAWebDialogEventLogger")({dialogName:o("WAWebWamEnumDialogNameType").DIALOG_NAME_TYPE.LOGOUT,source:c.CANCEL}),o("WAWebModalManager").ModalManager.close()},cancelText:s._(/*BTDS*/"Cancelar"),extraButtonProps:l,splitLayout:n,children:[n?u.jsx(r("WDSText.react"),{type:"Body1",colorName:"contentDeemphasized",children:a}):a,u.jsx("br",{}),i]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebWamEnumDmChatPickerEntryPointType",[],(function(t,n,r,o,a,i){var e=Object.freeze({DEFAULT_MODE_SETTING:0,STORAGE_SETTING:1,PRIVACY_SETTING:2});i.DM_CHAT_PICKER_ENTRY_POINT_TYPE=e}),66); __d("WAWebWamEnumDmChatPickerEventNameType",[],(function(t,n,r,o,a,i){var e=Object.freeze({CHAT_PICKER_LINK_IMPRESSION:0,CHAT_PICKER_TRAY_OPEN:1,CHAT_PICKER_TRAY_EXIT:2,CHAT_PICKER_CHATS_SELECTED:3});i.DM_CHAT_PICKER_EVENT_NAME_TYPE=e}),66); __d("WAWebDisappearingMessageChatPickerWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDmChatPickerEntryPointType","WAWebWamEnumDmChatPickerEventNameType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({DisappearingMessageChatPicker:[3398,{chatsSelected:[1,e.TYPES.INTEGER],dmChatPickerEntryPoint:[2,o("WAWebWamEnumDmChatPickerEntryPointType").DM_CHAT_PICKER_ENTRY_POINT_TYPE],dmChatPickerEventName:[3,o("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE],ephemeralityDuration:[4,e.TYPES.INTEGER],groupChatsSelected:[5,e.TYPES.INTEGER],groupSizeDistributionJson:[9,e.TYPES.STRING],newlyEphemeralChats:[7,e.TYPES.INTEGER],totalChatsInChatPicker:[8,e.TYPES.INTEGER]},[1,1,1],"regular"]},{DisappearingMessageChatPicker:[]});l.DisappearingMessageChatPickerWamEvent=s}),98); __d("WAWebWamEnumDisappearingModeEntryPointType",[],(function(t,n,r,o,a,i){var e=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});i.DISAPPEARING_MODE_ENTRY_POINT_TYPE=e}),66); __d("WAWebDisappearingModeSettingChangeWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDisappearingModeEntryPointType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({DisappearingModeSettingChange:[3056,{disappearingModeEntryPoint:[4,o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE],lastToggleTimestamp:[3,e.TYPES.INTEGER],newEphemeralityDuration:[2,e.TYPES.INTEGER],previousEphemeralityDuration:[1,e.TYPES.INTEGER]},[1,1,1],"regular"]},{DisappearingModeSettingChange:[]});l.DisappearingModeSettingChangeWamEvent=s}),98); __d("WAWebWamEnumDisappearingModeSettingEventNameType",[],(function(t,n,r,o,a,i){var e=Object.freeze({DEFAULT_MESSAGE_TIMER_OPEN:1,DEFAULT_MESSAGE_TIMER_SET:2,DEFAULT_MESSAGE_TIMER_EXIT:3,LEARN_MORE_CLICK:4});i.DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE=e}),66); __d("WAWebDisappearingModeSettingEventsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumDisappearingModeSettingEventNameType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({DisappearingModeSettingEvents:[3446,{disappearingModeEntryPoint:[5,o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE],disappearingModeSettingEventName:[1,o("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE],lastToggleTimestamp:[2,e.TYPES.INTEGER],newEphemeralityDuration:[3,e.TYPES.INTEGER],previousEphemeralityDuration:[4,e.TYPES.INTEGER]},[1,1,1],"regular"]},{DisappearingModeSettingEvents:[]});l.DisappearingModeSettingEventsWamEvent=s}),98); __d("WAWebEphemeralityDurations",["fbt","WALogger","WAWebABProps","WAWebFormatEphemeralSetting","fbs","gkx"],(function(t,n,r,o,a,i,l,s){var e,u=[86400,604800,7776e3],c=[3600,10800,21600,43200,172800,259200,345600,432e3,518400,1209600,1814400,2592e3,5184e3,15552e3,31536e3],d=["additional","dev"];function m(e,t){return{type:t,value:e,label:o("WAWebFormatEphemeralSetting").getDisappearingMessageDurationString(e)}}function p(e){e===void 0&&(e=!1);var t=[].concat(u.map(function(e){return m(e,"default")}));if(o("WAWebABProps").getABPropConfigValue("dm_additional_durations")){var n;(n=t).push.apply(n,c.map(function(e){return m(e,"additional")}))}if(!r("gkx")("26258")||r("gkx")("26256")){var a=[5,10,15,30,60,300,600];t=[].concat(t,a.map(function(e){return m(e,"dev")}))}return e?t.sort(function(e,t){return t.value-e.value}):t.sort(function(e,t){return e.value-t.value}),t.push({type:"default",value:0,label:r("fbs")._(/*BTDS*/"Desactivados")}),t}function _(e){return p(e).filter(function(e){return e.type==="default"})}function f(e){return p(e).filter(function(e){return d.includes(e.type)})}function g(t){var n=p().find(function(e){return e.value===t});return n===void 0&&typeof t=="number"?(o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(['Could not find matching duration label for duration: "','"'])),t).sendLogs("No matching duration label"),s._(/*BTDS*/"Activados")):n===void 0?s._(/*BTDS*/"Desactivados"):n.label}l.getDefaultEphemeralityDurations=_,l.getAdditionalEphemeralityDurations=f,l.durationToLabel=g}),226); __d("WAWebEphemeralSettingChangeWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumEphemeralSettingEntryPointType","WAWebWamEnumPreciseSizeBucket"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({EphemeralSettingChange:[2370,{chatEphemeralityDuration:[1,e.TYPES.INTEGER],ephemeralSettingEntryPoint:[3,o("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE],ephemeralSettingGroupSize:[5,o("WAWebWamEnumPreciseSizeBucket").PRECISE_SIZE_BUCKET],previousEphemeralityDuration:[2,e.TYPES.INTEGER],threadId:[6,e.TYPES.STRING]},[1,1,1],"regular"]},{EphemeralSettingChange:[]});l.EphemeralSettingChangeWamEvent=s}),98); __d("WAWebUpdateEphemeralSettingTimestampChatAction",["WALogger","WAWebChatGetters","WAWebDBUpdateChatTable"],(function(t,n,r,o,a,i,l){var e,s;function u(t,n){if(o("WAWebChatGetters").getIsGroup(t)){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["chat.updateEphemeralSettingTimestamp should not be called for group ",""])),t.id.toLogString()).sendLogs("update-ephemeral-setting-timestamp");return}o("WAWebDBUpdateChatTable").updateChatTable(t.id,{ephemeralSettingTimestamp:n}).then(function(){t.ephemeralSettingTimestamp=n,o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["chat.updateEphemeralSettingTimestamp chatId="," ephemeralSettingTimestamp=",""])),t.id.toLogString(),n)})}l.default=u}),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(t,n,r,o,a,i,l){var e,s,u;function c(e,t,n){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,a,i){if(o("WAWebChatGetters").getIsGroup(t))throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["chat.changeChatEphemeralDuration should not be called for group ",""])),t.id.toLogString()).sendLogs("change-ephemeral-duration"),r("err")("changeChatEphemeralDuration should not be called for group. Use changeEphemeralDuration which handles both 1-1 and group cases");var l=t.contact;if(o("WAWebContactGetters").getIsUser(l)&&l.isContactBlocked)return(u||(u=n("Promise"))).reject(new(r("WAWebContactBlockedErrorAction"))("changing ephemeral setting for contact is blocked",l));var c=new(r("WAWebMsgKey"))({id:yield r("WAWebMsgKey").newId(),remote:t.id,fromMe:!0}),d={disappearingModeTrigger:i,disappearingModeInitiatedByMe:!0},m=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),p=o("WAWebUserPrefsMeUser").getMeLidUserOrThrow(),_=t.id.isLid()?p:m,f=babelHelpers.extends({id:c,from:_,to:t.id,t:o("WATimeUtils").unixTime(),type:o("WAWebMsgType").MSG_TYPE.PROTOCOL,subtype:"ephemeral_setting",ephemeralDuration:a,ephemeralSettingUser:_,local:!0,isNewMsg:!0,messageSecret:self.crypto.getRandomValues(new Uint8Array(32))},d),g=t.ephemeralSettingTimestamp==null?1:t.ephemeralSettingTimestamp+1;r("WAWebUpdateEphemeralSettingTimestampChatAction")(t,g);var h=yield o("WAWebSendMsgChatAction").addAndSendMsgToChat(t,f)[1];h.messageSendResult===o("WAWebSendMsgResultAction").SendMsgResult.OK&&h.t!=null&&r("WAWebUpdateEphemeralSettingTimestampChatAction")(t,h.t);var y={disappearingModeTrigger:i,disappearingModeInitiatedByMe:!0};yield o("WAWebDBUpdateChatTable").updateChatTable(t.id,babelHelpers.extends({ephemeralDuration:a,disappearingModeInitiator:o("WAWebEphemeralityTypes").DisappearingModeInitiator.ChangedInChat},y)),t.ephemeralDuration=a,t.disappearingModeInitiator=o("WAWebEphemeralityTypes").DisappearingModeInitiator.ChangedInChat,t.disappearingModeTrigger=i,t.disappearingModeInitiatedByMe=!0,o("WAWebDBChatEphemeralExemptionData").updateEphemeralDurationCache(t.id,t.ephemeralDuration),o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["chat.changeEphemeralDuration chatId="," ephemeralDuration=",""])),t.id.toLogString(),a)}),d.apply(this,arguments)}function m(e,t,n){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){if(!o("WAWebChatGetters").getIsGroup(e))throw r("err")("changeGroupEphemeralDuration should not be called for 1-1 chats. Use changeEphemeralDuration which handles both 1-1 and group cases");o("WAWebABProps").getABPropConfigValue("dm_initiator_trigger_groups")?yield o("WAWebGroupModifyInfoJob").setEphemeralGroupProperty(e.id,t,n):yield o("WAWebGroupModifyInfoJob").setGroupProperty(e.id,o("WAWebGroupConstants").GROUP_SETTING_TYPE.EPHEMERAL,t)}),p.apply(this,arguments)}function _(e,t,n,r){return f.apply(this,arguments)}function f(){return f=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n,a){if(!o("WAWebChatEphemerality").shouldShowEphemeralSetting(e))throw r("err")("user cannot change group ephemeral duration for chat "+e.id.toString());var i=o("WAWebChatEphemerality").getEphemeralSetting(e);i!==t&&(o("WAWebChatGetters").getIsGroup(e)?yield m(e,t,a):yield c(e,t,a));var l={chatEphemeralityDuration:t,threadId:yield o("WAWebChatThreadLogging").getChatThreadID(e.id.toJid()),ephemeralSettingEntryPoint:n};if(i!=null&&(l.previousEphemeralityDuration=i),o("WAWebChatGetters").getIsGroup(e)){var s,u;l.ephemeralSettingGroupSize=o("WAWebWamNumberToPreciseSizeBucket").numberToPreciseSizeBucket((s=(u=e.groupMetadata)==null?void 0:u.participants.length)!=null?s:0)}new(o("WAWebEphemeralSettingChangeWamEvent")).EphemeralSettingChangeWamEvent(l).commit()}),f.apply(this,arguments)}function g(e,t,r){var a=e.map(function(e){return _(e,t,r,o("WAWebEphemeralityTypes").DisappearingModeTrigger.BulkChange)});return(u||(u=n("Promise"))).allSettled(a)}l.changeEphemeralDuration=_,l.bulkChangeEphemeralDuration=g}),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","WAWebWamEnumDmChatPickerEventNameType","WAWebWamEnumEphemeralSettingEntryPointType","asyncToGeneratorRuntime","countWhere","err","gkx","react"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useEffect,_=d.useRef,f=d.useState,g={durationCTA:{display:"x78zum5",justifyContent:"x1qughib",alignItems:"x6s0dn4",textAlign:"x1yc453h",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xee4sfp",borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"x1y55ic2",backgroundColor:"x1280gxy",":hover_backgroundColor":"x17gydlx",$$css:!0}};function h(e){var t=e.initialDuration,n=e.onSelect,a=f(!1),i=a[0],l=a[1],u=f(t!=null&&t>0?t:o("WAWebEphemeralConstants").NINETY_DAYS),c=u[0],d=u[1],p=_(),h;if(i){var y=function(t){d(t),n(t)},C={menu:o("WAWebEphemeralityDurations").getDefaultEphemeralityDurations().filter(function(e){return e.value>0}).map(function(e){return m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return y(e.value)},selected:c===e.value,children:e.label},"dm-duration-dd-"+e.value)}),anchor:p.current};h=m.jsx(o("WAWebUimUie.react").UIE,{displayName:"ChatContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:function(){return l(!1)},children:m.jsx(r("WAWebUimUieMenu.react"),{contextMenu:C})})}return m.jsxs(r("WAWebUnstyledButton.react"),{xstyle:[g.durationCTA,o("WAWebUISpacing").uiPadding.vert16,o("WAWebUISpacing").uiPadding.horiz32],onClick:function(){return l(!0)},ref:p,children:[m.jsxs("div",{children:[m.jsx(o("WAWebText.react").WAWebTextTitle,{children:s._(/*BTDS*/"Duraci\u00f3n de los mensajes temporales")}),m.jsx(o("WAWebText.react").WAWebTextMuted,{as:"h1",children:o("WAWebEphemeralityDurations").durationToLabel(c)})]}),m.jsx(o("WAWebChevronCustomIcons").ChevronDownCustomIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:24}),h]})}h.displayName=h.name+" [from "+i.id+"]";function y(e,t,n){switch(e){case o("WAWebEphemeralConstants").ONE_DAY:return s._(/*BTDS*/"_j{\"*\":\"Aplicaste una duraci\\u00f3n de 24 horas para los mensajes de {appliedChatCount} de tus chats existentes.\",\"_1\":\"Aplicaste una duraci\\u00f3n de 24 horas para los mensajes de 1 de tus chats existentes.\"}",[s._plural(t,"appliedChatCount")]);case o("WAWebEphemeralConstants").SEVEN_DAYS:return s._(/*BTDS*/"_j{\"*\":\"Aplicaste una duraci\\u00f3n de 7 d\\u00edas para los mensajes en {appliedChatCount} de tus chats existentes.\",\"_1\":\"Aplicaste una duraci\\u00f3n de 7 d\\u00edas para los mensajes en 1 de tus chats existentes.\"}",[s._plural(t,"appliedChatCount")]);case o("WAWebEphemeralConstants").NINETY_DAYS:return s._(/*BTDS*/"_j{\"*\":\"Aplicaste una duraci\\u00f3n de 90 d\\u00edas para los mensajes en {appliedChatCount} de tus chats existentes.\",\"_1\":\"Aplicaste una duraci\\u00f3n de 90 d\\u00edas para los mensajes 1 de tus chats existentes.\"}",[s._plural(t,"appliedChatCount")]);default:throw r("err")("Duration passed to DM Chat Picker invalid "+e)}}function C(t){var a=t.entryPoint,i=t.initialDuration,l=t.ref,u=f(0),c=u[0],d=u[1],_=f(i!=null&&i>0?i:o("WAWebEphemeralConstants").NINETY_DAYS),g=_[0],C=_[1];p(function(){new(o("WAWebDisappearingMessageChatPickerWamEvent")).DisappearingMessageChatPickerWamEvent({dmChatPickerEntryPoint:a,dmChatPickerEventName:o("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_TRAY_OPEN,ephemeralityDuration:g}).commit()},[]);var b=m.jsx(h,{initialDuration:g,onSelect:C}),v=function(t,n){var e=r("countWhere")(t,function(e){return o("WAWebChatGetters").getIsGroup(e)}),i=r("countWhere")(t,function(e){return e instanceof o("WAWebChatModel").Chat?!o("WAWebChatEphemerality").isEphemeralSettingOn(e):!1});new(o("WAWebDisappearingMessageChatPickerWamEvent")).DisappearingMessageChatPickerWamEvent({dmChatPickerEntryPoint:a,dmChatPickerEventName:n,ephemeralityDuration:g,chatsSelected:t.length,groupChatsSelected:e,totalChatsInChatPicker:c,newlyEphemeralChats:i}).commit()},S=function(t){d(t.length)},R=function(t){var e=t;v(e,o("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_TRAY_EXIT),o("WAWebModalManager").ModalManager.close()},L=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){v(t,o("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_CHATS_SELECTED),o("WAWebModalManager").ModalManager.close();var n=0,a=0,i=yield o("WAWebChangeEphemeralDurationChatAction").bulkChangeEphemeralDuration(t,g,o("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.CHAT_PICKER);i.map(function(t){switch(t.status){case"fulfilled":n++;break;case"rejected":a++;break;default:o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["bulkChangeEphemeralDuration result has unknown status ",""])),t.status)}}),r("gkx")("26258")||(n>0&&o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:y(g,n,c)})),a>0&&o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"Se produjo un error mientras intent\\u00e1bamos cambiar la duraci\\u00f3n de los mensajes en {errorCount} de tus chats.\",\"_1\":\"Se produjo un error mientras intent\\u00e1bamos cambiar la duraci\\u00f3n de los mensajes en 1 de tus chats.\"}",[s._plural(a,"errorCount")])})))});return function(n){return t.apply(this,arguments)}})(),E=function(t){var e;return!!(t instanceof o("WAWebChatModel").Chat&&!o("WAWebChatEphemerality").shouldShowEphemeralSetting(t)||t instanceof o("WAWebChatModel").Chat&&o("WAWebChatGetters").getIsGroup(t)&&!((e=t.groupMetadata)!=null&&e.canSetEphemeralSetting()))},k=function(t,n){if(n)return s._(/*BTDS*/"No puedes editar los ajustes del grupo.")};return m.jsx(o("WAWebSelectModal.react").SelectModal,{ref:l,testid:void 0,title:s._(/*BTDS*/"Selecciona los chats"),customHeader:b,onConfirm:L,listType:o("WAWebSelectModal.react").ListType.ChatSelectModal,singleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,multipleSelectionFooterType:o("WAWebSelectModalFooter.react").FooterType.CONFIRM,ephemeralIcon:"conversation-header",isDisabled:E,customItemSecondaryText:k,onCancel:R,onDataLoaded:S,excludeContacts:!0,getSelectionSummary:function(t){return s._(/*BTDS*/"_j{\"*\":\"{number} chats seleccionados\",\"4\":\"{number} chat seleccionado\",\"_1\":\"1 chat seleccionado\"}",[s._plural(t.length,"number")])}})}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226); __d("WAWebSetDisappearingModeJob",["WADeprecatedSendIq","WADeprecatedWapParser","WALogger","WAWap","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=new(r("WADeprecatedWapParser"))("setDMResponseParser",function(e){e.assertTag("iq"),e.assertAttr("type","result")});function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n,r=(n=o("WAWap")).wap("iq",{xmlns:"disappearing_mode",to:n.S_WHATSAPP_NET,type:"set",id:n.generateId()},n.wap("disappearing_mode",{duration:n.CUSTOM_STRING(String(t))})),a=yield o("WADeprecatedSendIq").deprecatedSendIq(r,s);if(!a.success){var i=a.errorCode,l=a.errorText;throw o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["setDisappearingMode: failed ",", ",""])),i,l).tags("DM","DDM"),new Error({errorCode:i,errorText:l})}}),c.apply(this,arguments)}l.setDisappearingMode=u}),98); __d("WAWebSetDisappearingModePrivacyAction",["WATimeUtils","WAWebSetDisappearingModeJob","WAWebUpdateDisappearingModeForContact","WAWebUserPrefsMeUser","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){yield o("WAWebSetDisappearingModeJob").setDisappearingMode(e);var t=o("WAWebUserPrefsMeUser").getMePnUserOrThrow();yield o("WAWebUpdateDisappearingModeForContact").updateDisappearingModeForContact({contactId:t,newDuration:e,newSettingTimestamp:o("WATimeUtils").unixTime()})}),s.apply(this,arguments)}l.setDisappearingMode=e}),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(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useEffect,f=m.useMemo,g=m.useState,h={learnMoreLink:{display:"x1rg5ohu",marginTop:"x1e1m7ul",fontSize:"x1f6kntn",$$css:!0}};function y(t){var n=t.entryPoint,a=t.onClose,i=t.ref;o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[DM] DDM drawer opened"])));var l=f(function(){var e,t,n=o("WAWebEphemeralityResolver").getDisappearingModeSettingForUser(o("WAWebContactCollection").ContactCollection.getMeContact());return{duration:(e=n==null?void 0:n.duration)!=null?e:0,settingTimestamp:(t=n==null?void 0:n.settingTimestamp)!=null?t:0}},[]),c=g({duration:l.duration,settingTimestamp:l.settingTimestamp}),d=c[0],m=c[1],y=d.duration>0;_(function(){new(o("WAWebDisappearingModeSettingEventsWamEvent")).DisappearingModeSettingEventsWamEvent({disappearingModeSettingEventName:o("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE.DEFAULT_MESSAGE_TIMER_OPEN,disappearingModeEntryPoint:n}).commit()},[]),_(function(){y&&new(o("WAWebDisappearingMessageChatPickerWamEvent")).DisappearingMessageChatPickerWamEvent({dmChatPickerEntryPoint:o("WAWebWamEnumDmChatPickerEntryPointType").DM_CHAT_PICKER_ENTRY_POINT_TYPE.DEFAULT_MODE_SETTING,dmChatPickerEventName:o("WAWebWamEnumDmChatPickerEventNameType").DM_CHAT_PICKER_EVENT_NAME_TYPE.CHAT_PICKER_LINK_IMPRESSION,ephemeralityDuration:d.duration}).commit()},[y]);function C(e){m({duration:e,settingTimestamp:o("WATimeUtils").unixTime()})}function b(){var e=l.duration,t=l.settingTimestamp,r=d.duration;o("WAWebSetDisappearingModePrivacyAction").setDisappearingMode(r).then(function(){new(o("WAWebDisappearingModeSettingChangeWamEvent")).DisappearingModeSettingChangeWamEvent({disappearingModeEntryPoint:n,lastToggleTimestamp:t,newEphemeralityDuration:r,previousEphemeralityDuration:e}).commit()}).catch(function(){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["DDM duration change failed. Entry: "," Previous: "," New: ",""])),n,e,r).sendLogs("DDM-change-fail"),o("WAWebToastManager").ToastManager.open(p.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo cambiar la duraci\u00f3n de los mensajes temporales.")}))})}function v(){o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebMultiSelectDdm.react"),{initialDuration:d.duration,entryPoint:o("WAWebWamEnumDmChatPickerEntryPointType").DM_CHAT_PICKER_ENTRY_POINT_TYPE.DEFAULT_MODE_SETTING}))}function S(){new(o("WAWebDisappearingModeSettingEventsWamEvent")).DisappearingModeSettingEventsWamEvent({disappearingModeSettingEventName:o("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE.LEARN_MORE_CLICK,disappearingModeEntryPoint:n}).commit()}function R(e){b(),new(o("WAWebDisappearingModeSettingEventsWamEvent")).DisappearingModeSettingEventsWamEvent({disappearingModeSettingEventName:o("WAWebWamEnumDisappearingModeSettingEventNameType").DISAPPEARING_MODE_SETTING_EVENT_NAME_TYPE.DEFAULT_MESSAGE_TIMER_EXIT,disappearingModeEntryPoint:n}).commit(),a(e)}var L=o("WAWebABProps").getABPropConfigValue("ddm_reversed_options");return p.jsxs(r("WAWebDrawer.react"),{ref:i,testid:void 0,children:[p.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:s._(/*BTDS*/"Duraci\u00f3n predeterminada de los mensajes"),onBack:R,focusBackOrCancel:!0,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),p.jsx(r("WAWebDrawerBody.react"),{children:p.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[p.jsx(o("WAWebText.react").WAWebTextSectionTitle,{margin:[32,0,16,0],children:s._(/*BTDS*/"Inicia chats nuevos con mensajes temporales")}),p.jsx(o("WAWebRadio.react").RadioGroup,{name:"duration",theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:d.duration,options:o("WAWebEphemeralityDurations").getDefaultEphemeralityDurations(L).map(function(e){var t=e.label,n=e.value;return{value:n,label:t,onChange:function(){return C(n)}}})}),p.jsxs(o("WAWebFlex.react").FlexColumn,{margin:[16,0],children:[y?p.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Esto no afecta tus chats existentes. Si quieres aplicar esta duraci\u00f3n de los mensajes en chats existentes, {=m1}.",[s._implicitParam("=m1",p.jsx(r("WAWebClickableLink.react"),{onClick:v,tabIndex:0,children:s._(/*BTDS*/"debes seleccionarlos")}))])}):p.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Cuando se activa esta opci\u00f3n, todos los chats individuales nuevos comienzan con mensajes temporales que desaparecen despu\u00e9s de la duraci\u00f3n que seleccionas. Esto no afectar\u00e1 tus chats existentes.")}),p.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getEphemeralFaqUrl(),xstyle:h.learnMoreLink,onClick:S,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})]})})]})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebDeveloperMenuConstants",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["Menu","ABProps","DebugCommands","NuxManager","VoipWasmSamples"]);i.DeveloperMenu=e}),66); __d("WAWebGdprConstants",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["Account","Newsletters"]);i.ReportType=e}),66); __d("WAWebGdprRequestAccountInfoSettingsDrawerConfirmPopup",["fbt","WAWebConfirmPopup.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.okDisabled,n=e.okSpinner,r=e.onCancel,a=e.onOK;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{okDisabled:t,okSpinner:n,okText:s._(/*BTDS*/"Eliminar"),onCancel:r,onOK:a,children:s._(/*BTDS*/"\u00bfDeseas eliminar el informe? Si lo haces, no se eliminar\u00e1 ning\u00fan dato de tu cuenta.")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebGdprHookUtils",["WAWap","WAWebGdprConstants"],(function(t,n,r,o,a,i,l){function e(e){switch(e){case o("WAWebGdprConstants").ReportType.Account:return null;case o("WAWebGdprConstants").ReportType.Newsletters:return"newsletters"}}function s(t,n,r){var a=e(n);return o("WAWap").wap("iq",{xmlns:"urn:xmpp:whatsapp:account",to:o("WAWap").S_WHATSAPP_NET,type:"get",id:t},a!=null?o("WAWap").wap("gdpr",{action:r,report_type:a}):o("WAWap").wap("gdpr",{action:r}))}l.getGdprIq=s}),98); __d("WAWebCommsExperimental",["WADeprecatedSendIq","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e=new Map;function s(e,t){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){var r=t.attrs.id,a=e.get(r);if(a!=null)return a;var i=o("WADeprecatedSendIq").deprecatedSendIq(t,n);e.set(r,i);var l=yield i;return e.set(r,l),l}),u.apply(this,arguments)}l.sendSuspensefulIq=s}),98); __d("WAWebUseGdprStatusAction",["Promise","WADeprecatedWapParser","WANullthrows","WAWap","WAWebCommsExperimental","WAWebGdprConstants","WAWebGdprHookUtils","WAWebProtobufsE2E.pb","decodeProtobuf","react","useWAWebAsync","useWAWebOnUnmount"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=u.useCallback,d=u.useMemo,m=u.useState,p=new(r("WADeprecatedWapParser"))("parseStatus",function(e){if(!e.hasChild("gdpr"))return null;var t=e.child("gdpr");if(t.hasChild("document")){var n=t.child("document");return{creation:n.attrTime("creation"),documentMessage:r("WANullthrows")(o("decodeProtobuf").decodeProtobuf(o("WAWebProtobufsE2E.pb").MessageSpec,n.contentBytes()).documentMessage),expiration:n.attrTime("expiration"),type:"GdprAvailableStatusResponse"}}return{timestamp:t.attrTime("timestamp"),type:"GdprPendingStatusResponse"}}),_=new Map([[o("WAWebGdprConstants").ReportType.Account,o("WAWap").generateId()],[o("WAWebGdprConstants").ReportType.Newsletters,o("WAWap").generateId()]]);function f(e){return e.some(function(e){return(e==null?void 0:e.type)==="GdprPendingStatusResponse"||(e==null?void 0:e.type)==="GdprAvailableStatusResponse"})}function g(t,a,i){r("useWAWebOnUnmount")(function(){_.set(a,o("WAWap").generateId())});var l=m(_.get(a)),s=l[0],u=l[1],c=d(function(){return t(r("WANullthrows")(s))},[t,s]),f=r("useWAWebAsync")(function(t){return i&&!t.aborted?o("WAWebCommsExperimental").sendSuspensefulIq(c,p):(e||(e=n("Promise"))).resolve()},[c,i]);return[f.loading,f.value,function(){return u(o("WAWap").generateId())}]}function h(e,t){var n=c(function(t){return o("WAWebGdprHookUtils").getGdprIq(t,e,"status")},[e]),r=g(n,e,t),a=r[0],i=r[1],l=r[2];return[a,i==null?void 0:i.result,l]}l.GdprStatusWapParser=p,l.doOtherPendingRequestsExist=f,l.useGdprStatus=h}),98); __d("useWAWebSendIq",["WADeprecatedSendIq","react"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(e,t){var n=s(!1),r=n[0],a=n[1];return[r,function(){return a(!0),o("WADeprecatedSendIq").deprecatedSendIq(e,t).finally(function(){return a(!1)})}]}l.useSendIq=u}),98); __d("WAWebUseGdprDeleteAction",["WAWap","WAWebGdprHookUtils","WAWebUseGdprStatusAction","useWAWebSendIq"],(function(t,n,r,o,a,i,l){function e(e){return o("useWAWebSendIq").useSendIq(o("WAWebGdprHookUtils").getGdprIq(o("WAWap").generateId(),e,"delete"),o("WAWebUseGdprStatusAction").GdprStatusWapParser)}l.useGdprDelete=e}),98); __d("WAWebWamEnumChannelDyiEventType",[],(function(t,n,r,o,a,i){var e=Object.freeze({CHANNEL_REPORT_REQUEST:1,CHANNEL_REPORT_DOWNLOAD:2,CHANNEL_REPORT_EXPORT:3});i.CHANNEL_DYI_EVENT_TYPE=e}),66); __d("WAWebChannelDyiWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumChannelDyiEventType"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({ChannelDyi:[4726,{channelDyiEventType:[1,o("WAWebWamEnumChannelDyiEventType").CHANNEL_DYI_EVENT_TYPE],unifiedSessionId:[2,o("WAWebWamCodegenUtils").TYPES.STRING],updatesTabSessionId:[3,o("WAWebWamCodegenUtils").TYPES.INTEGER]},[1,1,1],"regular"]},{ChannelDyi:[]});l.ChannelDyiWamEvent=e}),98); __d("WAWebWamEnumDyiReportTypeCode",[],(function(t,n,r,o,a,i){var e=Object.freeze({ACCOUNT:1,CHANNEL:2});i.DYI_REPORT_TYPE_CODE=e}),66); __d("WAWebDyiReportDownloadWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDyiReportTypeCode"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({DyiReportDownload:[7162,{dyiDownloadErrorMessage:[3,o("WAWebWamCodegenUtils").TYPES.STRING],dyiDownloadSucceeded:[1,o("WAWebWamCodegenUtils").TYPES.BOOLEAN],dyiReportType:[2,o("WAWebWamEnumDyiReportTypeCode").DYI_REPORT_TYPE_CODE]},[1,1,1],"regular"]},{DyiReportDownload:[]});l.DyiReportDownloadWamEvent=e}),98); __d("WAWebGdprDownloadMedia",["WABase64","WANullthrows","WATimeUtils","WAWebMediaInMemoryBlobCache","WAWebMediaMmsV4Download","WAWebMediaStorage","WAWebMediaTypes","WAWebMmsMediaTypes","WAWebWamEnumDownloadOriginType","WAWebWamEnumWebcRmrReasonCode","err"],(function(t,n,r,o,a,i,l){function e(e){var t,n=o("WABase64").encodeB64((t=r("WANullthrows"))(e.fileSha256)),a=o("WAWebMediaStorage").getOrCreateMediaObject(n),i={debugHint:"setMediaObjectValues",deprecatedMms3Url:"",directPath:t(e.directPath),encFilehash:o("WABase64").encodeB64(t(e.fileEncSha256)),mediaKey:o("WABase64").encodeB64(t(e.mediaKey)),mediaKeyTimestamp:o("WATimeUtils").unixTime(),type:o("WAWebMmsMediaTypes").MEDIA_TYPES.DOCUMENT};return a.entries.addEntry(i),a.consolidate(babelHelpers.extends({},i,{filehash:n,type:o("WAWebMediaTypes").OUTWARD_TYPES.DOCUMENT})),o("WAWebMediaMmsV4Download").downloadMedia({downloadEvenIfExpensive:!0,downloadOrigin:o("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.GDPR,mediaObject:a,mediaType:o("WAWebMmsMediaTypes").MEDIA_TYPES.DOCUMENT,mimetype:"application/zip",rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.DOCUMENT_DOWNLOAD}).then(function(){var e=o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(n);if(e)return e;var t=a.mediaBlob;if(t)return t.formData();throw r("err")("GDPR report blob not found after download")})}l.gdprDownloadMedia=e}),98); __d("WAWebUseGdprDownloadAction",["fbt","WALogger","WAWebChannelDyiWamEvent","WAWebDyiReportDownloadWamEvent","WAWebFileSaver","WAWebFileSaverTypes","WAWebGdprConstants","WAWebGdprDownloadMedia","WAWebWamEnumChannelDyiEventType","WAWebWamEnumDyiReportTypeCode","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=(u||(u=o("react"))).useState;function d(){var t=c(!1),n=t[0],r=t[1];return[n,function(t,n){n===o("WAWebGdprConstants").ReportType.Newsletters&&new(o("WAWebChannelDyiWamEvent")).ChannelDyiWamEvent({channelDyiEventType:o("WAWebWamEnumChannelDyiEventType").CHANNEL_DYI_EVENT_TYPE.CHANNEL_REPORT_DOWNLOAD}).commit();var a=!0,i=n===o("WAWebGdprConstants").ReportType.Newsletters?o("WAWebWamEnumDyiReportTypeCode").DYI_REPORT_TYPE_CODE.CHANNEL:o("WAWebWamEnumDyiReportTypeCode").DYI_REPORT_TYPE_CODE.ACCOUNT;r(!0),o("WAWebGdprDownloadMedia").gdprDownloadMedia(t).then(function(e){return o("WAWebFileSaver").FileSaver.downloadData(e,String(s._(/*BTDS*/"Info. de mi cuenta")),o("WAWebFileSaverTypes").AllowedFileExtensions.ZIP)}).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["GDPR download failed: ",""])),t),a=!1}).finally(function(){r(!1),new(o("WAWebDyiReportDownloadWamEvent")).DyiReportDownloadWamEvent({dyiDownloadSucceeded:a,dyiReportType:i}).commit()})}]}l.useGdprDownload=d}),226); __d("WAWebGdprRequestAccountInfoSettingsDrawerAvailable",["fbt","WALongInt","WAWeb-moment","WAWebDeleteIcon.react","WAWebDrawerButton.react","WAWebGdprRequestAccountInfoSettingsDrawerConfirmPopup","WAWebIcDownloadIcon.react","WAWebL10nFilesize","WAWebModalManager","WAWebNewsletterGatingUtils","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUseGdprDeleteAction","WAWebUseGdprDownloadAction","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={availability:{marginInlineStart:"xymharo",marginInlineEnd:"x2pibh5",$$css:!0}};function d(e){var t=e.gdprStatus,n=t.creation,a=t.documentMessage,i=t.expiration,l=e.onDeleteSuccess,d=e.report,m=o("WALongInt").maybeNumberOrThrowIfTooLarge(a.fileLength),p=o("WAWebUseGdprDownloadAction").useGdprDownload(),_=p[0],f=p[1],g=o("WAWebUseGdprDeleteAction").useGdprDelete(d),h=g[0],y=g[1],C=s._(/*BTDS*/"Podr\u00e1s descargar el informe hasta el {availability_date}.",[s._param("availability_date",r("WAWeb-moment").unix(i).format("MMMM D, YYYY"))]);return u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"x178xt8z x13fuv20 xx42vgk xso031l x1q0q8m5 x120ee7l",children:u.jsxs(o("WAWebDrawerButton.react").DrawerButtonSimple,{color:"dark",disabled:_,icon:u.jsx(o("WAWebIcDownloadIcon.react").IcDownloadIcon,{}),onClick:function(){return f(a,d)},children:[u.jsx(o("WAWebText_DONOTUSE.react").TextDiv,{children:s._(/*BTDS*/"Descargar informe")}),u.jsx(o("WAWebText.react").WAWebTextMuted,{children:m!=null?s._(/*BTDS*/"{availability_date} \u00b7 {file_size}",[s._param("availability_date",r("WAWeb-moment").unix(n).format("MMMM D, YYYY")),s._param("file_size",o("WAWebL10nFilesize").getL10nFilesize(m))]):s._(/*BTDS*/"{availability_date}",[s._param("availability_date",r("WAWeb-moment").unix(n).format("MMMM D, YYYY"))])})]})}),u.jsx("div",{className:"xso031l x1q0q8m5 x120ee7l",children:u.jsx(o("WAWebDrawerButton.react").DrawerButtonSimple,{color:"dark",disabled:h,icon:u.jsx(o("WAWebDeleteIcon.react").DeleteIcon,{}),onClick:function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawerConfirmPopup"),{okDisabled:h,okSpinner:h,onCancel:function(){return o("WAWebModalManager").ModalManager.close()},onOK:function(){return y().then(function(e){e.success&&(o("WAWebModalManager").ModalManager.close(),l())})}}))},children:u.jsx(o("WAWebText_DONOTUSE.react").TextDiv,{children:s._(/*BTDS*/"Eliminar y solicitar un nuevo informe")})})}),o("WAWebNewsletterGatingUtils").isNewsletterEnabled()?u.jsx(o("WAWebText_DONOTUSE.react").TextDiv,{color:"secondary",size:"16",xstyle:[c.availability,o("WAWebUISpacing").uiMargin.top18],children:C}):u.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:[c.availability,o("WAWebUISpacing").uiMargin.top30],children:C})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebGdprErrors",["WACustomError"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(t){var n;return n=e.call(this,t!=null?t:"")||this,n.name="PendingGdprRequestsError",n}return babelHelpers.inheritsLoose(t,e),t})(o("WACustomError").CustomError);l.PendingGdprRequestsError=e}),98); __d("WAWebGdprRequestAccountInfoSettingsFooterNotice",["fbt","WAWebNewsletterGatingUtils","WAWebText.react","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={availability:{marginBottom:"x1e56ztr",$$css:!0},footer:{paddingInlineStart:"x162tt16",paddingInlineEnd:"x5zjp28",$$css:!0}};function m(e){var t=e.daysDelta,n=t===void 0?3:t,a=e.isPending,i=e.newsletterBodyText,l=n<1?1:n,m=s._(/*BTDS*/"Si realizas cambios en tu cuenta, como eliminarla o modificar el n\u00famero de tel\u00e9fono, se cancelar\u00e1 tu solicitud.");return o("WAWebNewsletterGatingUtils").isNewsletterEnabled()?c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.footer,o("WAWebUISpacing").uiPadding.top18]),{children:c.jsx(o("WAWebText.react").WAWebTextMuted,{children:a?m:c.jsx(c.Fragment,{children:i})})})):c.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.footer,o("WAWebUISpacing").uiPadding.top30]),{children:[c.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:d.availability,children:s._(/*BTDS*/"_j{\"*\":\"El informe estar\\u00e1 listo en {number} d\\u00edas aproximadamente. Tendr\\u00e1s algunas semanas para descargarlo despu\\u00e9s de que est\\u00e9 disponible.\",\"4\":\"El informe estar\\u00e1 listo en {number} d\\u00eda aproximadamente. Tendr\\u00e1s algunas semanas para descargarlo despu\\u00e9s de que est\\u00e9 disponible.\",\"_1\":\"El informe estar\\u00e1 listo en 1 d\\u00eda aproximadamente. Tendr\\u00e1s algunas semanas para descargarlo despu\\u00e9s de que est\\u00e9 disponible.\"}",[s._plural(l,"number",l)])}),c.jsx(o("WAWebText.react").WAWebTextMuted,{children:m})]}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebGdprRequestOverrideModal.react",["fbt","WAWebConfirmPopup.react","WAWebGdprConstants","WAWebModalManager","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useCallback;function p(e){switch(e){case o("WAWebGdprConstants").ReportType.Newsletters:{var t=s._(/*BTDS*/"\u00bfDeseas cancelar la solicitud de informaci\u00f3n de la cuenta?"),n=s._(/*BTDS*/"{=m0}{=m1}",[s._implicitParam("=m0",d.jsx("p",{children:s._(/*BTDS*/"Tu solicitud anterior de informaci\u00f3n de la cuenta est\u00e1 en curso. Se cancelar\u00e1 si solicitas un reporte del canal ahora.")})),s._implicitParam("=m1",d.jsx("p",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiMargin.top12),{children:s._(/*BTDS*/"Espera a que se complete tu primera solicitud antes de realizar otra.")})))]);return[t,n]}case o("WAWebGdprConstants").ReportType.Account:{var a=s._(/*BTDS*/"\u00bfDeseas cancelar la solicitud de actividad del canal?"),i=s._(/*BTDS*/"{=m0}{=m1}",[s._implicitParam("=m0",d.jsx("p",{children:s._(/*BTDS*/"Tu solicitud anterior sobre la actividad del canal est\u00e1 en curso. Se cancelar\u00e1 si solicitas informaci\u00f3n de la cuenta ahora.")})),s._implicitParam("=m1",d.jsx("p",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiMargin.top12),{children:s._(/*BTDS*/"Espera a que se complete tu primera solicitud antes de realizar otra.")})))]);return[a,i]}}}function _(e){var t=e.onConfirm,n=m(function(){t().finally(function(){return o("WAWebModalManager").ModalManager.close()})},[t]),r=p(e.requestedReport),a=r[0],i=r[1];return d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:a,onOK:n,okText:s._(/*BTDS*/"S\u00ed, cancelar"),onCancel:f,cancelText:s._(/*BTDS*/"No, no cancelar"),children:i})}_.displayName=_.name+" [from "+i.id+"]";function f(){o("WAWebModalManager").ModalManager.close()}l.default=_}),226); __d("WAWebSettingsDocumentIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="settings-document";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SettingsDocumentIcon=m}),98); __d("WAWebWamEnumDyiTriggerTypeCode",[],(function(t,n,r,o,a,i){var e=Object.freeze({ADHOC:1,SCHEDULED:2});i.DYI_TRIGGER_TYPE_CODE=e}),66); __d("WAWebDyiReportRequestWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumDyiReportTypeCode","WAWebWamEnumDyiTriggerTypeCode"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({DyiReportRequest:[7166,{dyiReportType:[1,o("WAWebWamEnumDyiReportTypeCode").DYI_REPORT_TYPE_CODE],dyiTriggerType:[2,o("WAWebWamEnumDyiTriggerTypeCode").DYI_TRIGGER_TYPE_CODE]},[1,1,1],"regular"]},{DyiReportRequest:[]});l.DyiReportRequestWamEvent=e}),98); __d("WAWebUseGdprRequestAction",["Promise","WAWap","WAWebChannelDyiWamEvent","WAWebDyiReportRequestWamEvent","WAWebGdprConstants","WAWebGdprErrors","WAWebGdprHookUtils","WAWebUseGdprStatusAction","WAWebWamEnumChannelDyiEventType","WAWebWamEnumDyiReportTypeCode","WAWebWamEnumDyiTriggerTypeCode","useWAWebSendIq"],(function(t,n,r,o,a,i,l){var e,s=function(t){switch(t){case o("WAWebGdprConstants").ReportType.Account:return o("WAWebGdprConstants").ReportType.Newsletters;case o("WAWebGdprConstants").ReportType.Newsletters:return o("WAWebGdprConstants").ReportType.Account}};function u(t,r){var a=o("WAWebGdprHookUtils").getGdprIq(o("WAWap").generateId(),t,"request"),i=o("useWAWebSendIq").useSendIq(a,o("WAWebUseGdprStatusAction").GdprStatusWapParser),l=i[0],u=i[1],c=o("WAWebGdprHookUtils").getGdprIq(o("WAWap").generateId(),s(t),"delete"),d=o("useWAWebSendIq").useSendIq(c,o("WAWebUseGdprStatusAction").GdprStatusWapParser),m=d[1],p=r?m:function(){return(e||(e=n("Promise"))).resolve()};return[l,function(a){if(a===void 0&&(a=!1),!a&&r)return(e||(e=n("Promise"))).reject(new(o("WAWebGdprErrors")).PendingGdprRequestsError("GDPR request already in progress"));t===o("WAWebGdprConstants").ReportType.Newsletters&&new(o("WAWebChannelDyiWamEvent")).ChannelDyiWamEvent({channelDyiEventType:o("WAWebWamEnumChannelDyiEventType").CHANNEL_DYI_EVENT_TYPE.CHANNEL_REPORT_REQUEST}).commit(),new(o("WAWebDyiReportRequestWamEvent")).DyiReportRequestWamEvent({dyiReportType:t===o("WAWebGdprConstants").ReportType.Newsletters?o("WAWebWamEnumDyiReportTypeCode").DYI_REPORT_TYPE_CODE.CHANNEL:o("WAWebWamEnumDyiReportTypeCode").DYI_REPORT_TYPE_CODE.ACCOUNT,dyiTriggerType:o("WAWebWamEnumDyiTriggerTypeCode").DYI_TRIGGER_TYPE_CODE.ADHOC}).commit();var i=function(){return p().then(function(){return u()})};return a?i():u()}]}l.useGdprRequest=u}),98); __d("WAWebGdprRequestAccountInfoSettingsDrawerInitial",["fbt","WAFilteredCatch","WAWebCmd","WAWebDrawerButton.react","WAWebGdprConstants","WAWebGdprErrors","WAWebGdprRequestAccountInfoSettingsFooterNotice","WAWebGdprRequestOverrideModal.react","WAWebModalManager","WAWebSettingsDocumentIcon.react","WAWebUseGdprRequestAction","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.newsletterBodyText,n=e.onRequestSuccess,a=e.otherPendingRequestsExist,i=e.report,l=o("WAWebUseGdprRequestAction").useGdprRequest(i,a),s=l[0],c=l[1],m=function(t){return c(t).then(function(e){e.success&&n()})},p=function(){return m().catch(o("WAFilteredCatch").filteredCatch(o("WAWebGdprErrors").PendingGdprRequestsError,function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebGdprRequestOverrideModal.react"),{onConfirm:function(){return m(!0).then(function(){o("WAWebCmd").Cmd.trigger("refresh_gdpr")})},requestedReport:i}))}))},_=d(i);return u.jsxs(u.Fragment,{children:[u.jsx(o("WAWebDrawerButton.react").DrawerButtonSimple,{className:"x178xt8z x13fuv20 xx42vgk xso031l x1q0q8m5 x120ee7l",color:"dark",disabled:s,testid:void 0,icon:u.jsx(o("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon,{}),onClick:p,children:_}),u.jsx(r("WAWebGdprRequestAccountInfoSettingsFooterNotice"),{newsletterBodyText:t,isPending:!1})]})}c.displayName=c.name+" [from "+i.id+"]";function d(e){switch(e){case o("WAWebGdprConstants").ReportType.Account:return s._(/*BTDS*/"Solicitar informe");case o("WAWebGdprConstants").ReportType.Newsletters:return s._(/*BTDS*/"Solicitar informe de tu canal")}}function m(e){switch(e){case o("WAWebGdprConstants").ReportType.Account:return"request-gdpr-report-button-account";case o("WAWebGdprConstants").ReportType.Newsletters:return"request-gdpr-report-button-channels"}}l.default=c}),226); __d("WAWebGdprRequestAccountInfoSettingsDrawerPending",["fbt","WATimeUtils","WAWeb-moment","WAWebBusinessHoursIcon.react","WAWebClock","WAWebDrawerButton.react","WAWebGdprRequestAccountInfoSettingsFooterNotice","WAWebNoop","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.gdprStatus.timestamp,n=o("WAWebClock").Clock.daysDeltaAbs(o("WATimeUtils").unixTime(),t);return u.jsxs(u.Fragment,{children:[u.jsxs(o("WAWebDrawerButton.react").DrawerButtonSimple,{disabled:!0,color:"dark",className:"xt0e3qv x178xt8z x13fuv20 xx42vgk xso031l x1q0q8m5 x120ee7l",icon:u.jsx(o("WAWebBusinessHoursIcon.react").BusinessHoursIcon,{}),onClick:r("WAWebNoop"),children:[u.jsx(o("WAWebText.react").WAWebTextTitle,{testid:void 0,children:s._(/*BTDS*/"Se envi\u00f3 la solicitud")}),u.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Estar\u00e1 listo el {availability_date}",[s._param("availability_date",r("WAWeb-moment").unix(t).format("MMMM D, YYYY"))])})]}),u.jsx(r("WAWebGdprRequestAccountInfoSettingsFooterNotice"),{daysDelta:n,isPending:!0})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebGdprRequestAccountInfoSettingsDrawerBodyContent",["WAWebGdprRequestAccountInfoSettingsDrawerAvailable","WAWebGdprRequestAccountInfoSettingsDrawerInitial","WAWebGdprRequestAccountInfoSettingsDrawerPending","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.newsletterBodyText,n=e.otherPendingRequestsExist,o=e.refetch,a=e.report,i=e.status;switch(i==null?void 0:i.type){case"GdprAvailableStatusResponse":return s.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawerAvailable"),{gdprStatus:i,onDeleteSuccess:o,report:a});case"GdprPendingStatusResponse":return s.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawerPending"),{gdprStatus:i});default:return s.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawerInitial"),{onRequestSuccess:o,otherPendingRequestsExist:n,report:a,newsletterBodyText:t})}}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebWdsPictoDocIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-picto-doc";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=88,R=88;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 88 88",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),children:[c.jsx("title",{children:i!=null?i:d}),c.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}}),c.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}}),c.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"}})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsPictoDocIcon=m}),98); __d("WAWebGdprRequestAccountInfoSettingsDrawer.react",["fbt","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebGdprConstants","WAWebGdprRequestAccountInfoSettingsDrawerBodyContent","WAWebNewsletterGatingUtils","WAWebSpinner.react","WAWebText.react","WAWebUISpacing","WAWebUseGdprStatusAction","WAWebWdsPictoDocIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.Suspense,p=c.useCallback,_={drawerSection:{paddingTop:"x9orja2",$$css:!0},title:{paddingInlineStart:"x162tt16",marginTop:"x1dpc15r",marginBottom:"xcugx37",$$css:!0}};function f(e){var t=e.onClose,n=e.ref,a=e.settings,i=o("WAWebUseGdprStatusAction").useGdprStatus(o("WAWebGdprConstants").ReportType.Account,!0),l=i[0],u=i[1],c=i[2],m=o("WAWebUseGdprStatusAction").useGdprStatus(o("WAWebGdprConstants").ReportType.Newsletters,o("WAWebNewsletterGatingUtils").isNewsletterEnabled()),_=m[0],f=m[1],g=m[2],h=p(function(){c(),o("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&g()},[c,g]);return d.jsxs(r("WAWebDrawer.react"),{ref:n,testid:void 0,children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Solicita informaci\u00f3n de la cuenta"),onBack:t,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),d.jsxs(r("WAWebDrawerBody.react"),{children:[d.jsx(y,{isLoading:l,report:o("WAWebGdprConstants").ReportType.Account,status:u,refetch:h,otherPendingRequestsExist:o("WAWebUseGdprStatusAction").doOtherPendingRequestsExist([f])}),o("WAWebNewsletterGatingUtils").isNewsletterEnabled()?d.jsx(y,{isLoading:_,report:o("WAWebGdprConstants").ReportType.Newsletters,status:f,refetch:h,otherPendingRequestsExist:o("WAWebUseGdprStatusAction").doOtherPendingRequestsExist([u])}):null]})]})}f.displayName=f.name+" [from "+i.id+"]";function g(e){switch(e){case o("WAWebGdprConstants").ReportType.Account:return"account-information";case o("WAWebGdprConstants").ReportType.Newsletters:return"newsletter-activity"}}function h(e){switch(e){case o("WAWebGdprConstants").ReportType.Account:{var t=s._(/*BTDS*/"Informaci\u00f3n de la cuenta");return[t,d.jsxs(d.Fragment,{children:[s._(/*BTDS*/"Crea un informe de los ajustes y la info. de tu cuenta de WhatsApp. De esta manera, podr\u00e1s acceder al informe o transferirlo a otra aplicaci\u00f3n. El informe no incluye tus mensajes.")," ",d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getRequestAccountInfoFAQUrl(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})]}case o("WAWebGdprConstants").ReportType.Newsletters:{var n=s._(/*BTDS*/"Actividad de canales");return[n,d.jsxs(d.Fragment,{children:[s._(/*BTDS*/"Crea un informe de las actualizaciones y la informaci\u00f3n de los canales con los que interact\u00faas o administras. De esta manera, podr\u00e1s acceder al informe o transferirlo a otra aplicaci\u00f3n.")," ",d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterActivityInforUrl(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})]}}}function y(e){var t=e.isLoading,n=e.otherPendingRequestsExist,a=e.refetch,i=e.report,l=e.status,s=h(i),u=s[0],c=s[1];return o("WAWebNewsletterGatingUtils").isNewsletterEnabled()?d.jsxs(r("WAWebDrawerSection.react"),{animation:!1,xstyle:[_.drawerSection,o("WAWebUISpacing").uiPadding.bottom18],testid:void 0,children:[d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:_.title,children:d.jsx(o("WAWebText.react").WAWebTextMuted,{children:u})}),t?d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:d.jsx(r("WAWebFlexItem.react"),{children:d.jsx(o("WAWebSpinner.react").Spinner,{size:50,stroke:4})})}):d.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawerBodyContent"),{status:l,refetch:a,report:i,otherPendingRequestsExist:n,newsletterBodyText:d.jsx(d.Fragment,{children:c})})]}):d.jsxs(r("WAWebDrawerSection.react"),{animation:!1,xstyle:[_.drawerSection,o("WAWebUISpacing").uiPadding.bottom30],testid:void 0,children:[d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:d.jsx(r("WAWebFlexItem.react"),{children:d.jsx(o("WAWebWdsPictoDocIcon.react").WdsPictoDocIcon,{})})}),d.jsx(o("WAWebText.react").WAWebTextMuted,{padding:32,children:c}),d.jsx(m,{fallback:d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:d.jsx(r("WAWebFlexItem.react"),{children:d.jsx(o("WAWebSpinner.react").Spinner,{size:50,stroke:4})})}),children:d.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawerBodyContent"),{status:l,refetch:a,report:i,otherPendingRequestsExist:n})})]})}y.displayName=y.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebIcLightbulbIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-lightbulb";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M12 22c-.55 0-1.02-.2-1.41-.59-.4-.39-.59-.86-.59-1.41h4c0 .55-.2 1.02-.59 1.41-.39.4-.86.59-1.41.59Zm-3-3a.97.97 0 0 1-.71-.29A.97.97 0 0 1 8 18c0-.28.1-.52.29-.71.19-.2.43-.29.71-.29h6c.28 0 .52.1.71.29.2.19.29.43.29.71 0 .28-.1.52-.29.71-.19.2-.43.29-.71.29H9Zm-.75-3a7.66 7.66 0 0 1-2.74-2.75A7.28 7.28 0 0 1 4.5 9.5c0-2.08.73-3.85 2.19-5.31A7.23 7.23 0 0 1 12 2c2.08 0 3.85.73 5.31 2.19A7.23 7.23 0 0 1 19.5 9.5c0 1.35-.34 2.6-1.01 3.75A7.66 7.66 0 0 1 15.75 16h-7.5Zm.6-2h6.3a5.55 5.55 0 0 0 2.35-4.5 5.3 5.3 0 0 0-1.6-3.9A5.3 5.3 0 0 0 12 4a5.3 5.3 0 0 0-3.9 1.6 5.3 5.3 0 0 0-1.6 3.9A5.38 5.38 0 0 0 8.85 14Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcLightbulbIcon=m}),98); __d("WAWebWdsAnimPhoneNoteFeedbackIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-anim-phone-note-feedback";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=88,R=133;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("rect",{width:45.57,height:75.05,x:23.5,y:6.58,fill:"#25D366",stroke:"#111B21",strokeWidth:1.5,rx:5.25}),c.jsx("rect",{width:34.11,height:55.56,x:29.23,y:14.53,fill:"#25D366",stroke:"#111B21",strokeWidth:1.5,rx:1.75}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M39.75 75.92h12.54"}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeWidth:1.5,d:"M55.16 29.1h39.18a6.66 6.66 0 0 1 6.66 6.66v39.18a6.66 6.66 0 0 1-6.66 6.66H55.16a6.66 6.66 0 0 1-6.66-6.66V35.76a6.66 6.66 0 0 1 6.66-6.66Z"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M90.75 42h-31M88.75 55h-29M86.75 68h-27"}),c.jsx("path",{fill:"#25D366",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"M117.85 47.08 95.8 67.78l-12.58.4 1.45-12.25 22.06-20.7a4.84 4.84 0 0 1 6.78.24l4.62 4.92a4.7 4.7 0 0 1-.26 6.69h0Z"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m87.7 68.04-3.92-4.18M115.21 49.24l-11-11.52"}),c.jsx("path",{fill:"#25D366",d:"m95.79 67.79-.07-.73a3.47 3.47 0 0 0-2.93-3.1l-.72-.12-.09-.82A3.48 3.48 0 0 0 89 59.97l-.62-.1-.15-.96a3.48 3.48 0 0 0-3.14-2.94l-.43-.04"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m95.79 67.79-.07-.73a3.47 3.47 0 0 0-2.93-3.1l-.72-.12-.09-.82A3.48 3.48 0 0 0 89 59.97l-.62-.1-.15-.96a3.48 3.48 0 0 0-3.14-2.94l-.43-.04"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsAnimPhoneNoteFeedbackIcon=m}),98); __d("WAWebFeedbackIntroNuxModal.react",["fbt","WAWebABPropsSaga","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebContactFormWrapper.react","WAWebExternalLink.react","WAWebFbtCommon","WAWebFlex.react","WAWebIcLightbulbIcon.react","WAWebImageRefreshedIcon.react","WAWebMessageReportIcon.react","WAWebModalManager","WAWebNux","WAWebNuxSync","WAWebSupportAiSessionWamEvent","WAWebText.react","WAWebUISpacing","WAWebWamEnumSupportAiEventType","WAWebWdsAnimPhoneNoteFeedbackIcon.react","react","stylex","useWAWebFocusOnMount","useWAWebListener"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d={headerText:{fontSize:"x1603h9y",fontStyle:"x1j61x8r",fontWeight:"x1s688f",lineHeight:"xgif2c7",textAlign:"x2b8uid",$$css:!0},sectionIcon:{width:"xvy4d1p",$$css:!0},sectionTitle:{width:"xxsgkw5",$$css:!0},buttonContainer:{paddingTop:"xexx8yu",paddingInlineEnd:"xyri2b",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",backgroundColor:"x16w0wmm",$$css:!0},icon:{color:"xhslqc4",$$css:!0}},m=function(){return s._(/*BTDS*/"Env\u00eda comentarios para ayudar a mejorar WhatsApp")};function p(t){var n=r("useWAWebFocusOnMount")(),a=function(){o("WAWebModalManager").ModalManager.close(),t.onAcknowledge()},i=function(){o("WAWebModalManager").ModalManager.close()};o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"close_modal",function(){r("WAWebNuxSync").acknowledgeNux(o("WAWebNux").NuxSyncKey.FEEDBACK_INTRO)});var l={width:24,height:24,xstyle:d.icon},u=[{icon:c.jsx(o("WAWebMessageReportIcon.react").MessageReportIcon,babelHelpers.extends({},l)),description:s._(/*BTDS*/"Reporta problemas como bloqueos de la aplicaci\u00f3n, fallas o funciones que no se ejecutan correctamente.")},{icon:c.jsx(o("WAWebIcLightbulbIcon.react").IcLightbulbIcon,babelHelpers.extends({},l)),description:s._(/*BTDS*/"Env\u00edanos sugerencias para mejorar WhatsApp para todos.")},{icon:c.jsx(o("WAWebImageRefreshedIcon.react").ImageRefreshedIcon,babelHelpers.extends({},l)),description:s._(/*BTDS*/"Incluye detalles y capturas de pantalla para ayudarnos a entender tu opini\u00f3n.")}];return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{ref:n,onOK:a,onCancel:i,okText:r("WAWebFbtCommon")("Continue"),onOverlayClick:i,buttonGroupStyle:d.buttonContainer,testid:void 0,children:c.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",children:[c.jsx(o("WAWebWdsAnimPhoneNoteFeedbackIcon.react").WdsAnimPhoneNoteFeedbackIcon,{xstyle:o("WAWebUISpacing").uiMargin.top8}),c.jsx(o("WAWebText.react").WAWebTextLargeRefreshed,{xstyle:[d.headerText,o("WAWebUISpacing").uiMargin.horiz8,o("WAWebUISpacing").uiMargin.top16,o("WAWebUISpacing").uiMargin.bottom16],children:m()}),u.map(function(t,n){var a=t.description,i=t.icon;return c.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",gap:24,className:(e||(e=r("stylex")))([o("WAWebUISpacing").uiMargin.vert8]),children:[c.jsx(o("WAWebFlex.react").FlexItem,{xstyle:d.sectionIcon,children:i}),c.jsx(o("WAWebFlex.react").FlexItem,{xstyle:d.sectionTitle,children:c.jsx(o("WAWebText.react").WAWebTextMuted,{color:"wdsContentDefault",children:a})})]},n)}),c.jsx(o("WAWebText.react").WAWebTextSmall,{xstyle:[o("WAWebUISpacing").uiMargin.horiz28,o("WAWebUISpacing").uiMargin.top16,o("WAWebUISpacing").uiMargin.bottom20],children:s._(/*BTDS*/"Para solucionar problemas como spam o estafas, puedes obtener ayuda del {help_center_link} o {contact_us_link}.",[s._param("help_center_link",c.jsx(r("WAWebClickableLink.react"),{onClick:_,children:s._(/*BTDS*/"Centro de ayuda")})),s._param("contact_us_link",c.jsx(r("WAWebClickableLink.react"),{onClick:function(){o("WAWebABPropsSaga").getIsSagaV1Enabled()&&new(o("WAWebSupportAiSessionWamEvent")).SupportAiSessionWamEvent({supportAiEventType:o("WAWebWamEnumSupportAiEventType").SUPPORT_AI_EVENT_TYPE.CONTACT_US_CLICKED}).commit(),i(),o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebContactFormWrapper.react"),{}))},children:s._(/*BTDS*/"Cont\u00e1ctanos")}))])})]})})}p.displayName=p.name+" [from "+i.id+"]";function _(){o("WAWebExternalLink.react").openExternalLink("https://faq.whatsapp.com/")}l.default=p}),226); __d("WAWebBugnubScreenshotUploadLoadable.react",["JSResourceForInteraction","WAWebLazyLoadLoading.react","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebBugnubScreenshotUpload.react").__setRef("WAWebBugnubScreenshotUploadLoadable.react").load();return e}),"WAWebBugnubScreenshotUpload"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLazyLoadLoading.react"),{error:!!t.error})}});l.WAWebBugnubScreenshotUploadLoadable=c}),98); __d("WAWebScreenshotUpload.react",["fbt","WAWebBugnubScreenshotUploadLoadable.react","WAWebFlex.react","WDSText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.customCloseMediaModal,n=e.customOpenMediaModal,a=e.customOpenSupportModal,i=e.mediaState,l=e.onChangeState,c=e.onUploadStateChange,d=function(t){l(t),c==null||c(t.state==="uploading")};return u.jsxs(o("WAWebFlex.react").FlexItem,{children:[u.jsx(o("WAWebFlex.react").FlexItem,{marginTop:20,children:u.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDefault",children:s._(/*BTDS*/"Capturas de pantalla o grabaciones (opcional)")})}),u.jsx(r("WDSText.react"),{type:"Body3",colorName:"contentDeemphasized",children:s._(/*BTDS*/"Selecciona hasta 3 archivos")}),u.jsx(o("WAWebFlex.react").FlexRow,{justify:"all",marginTop:8,children:u.jsx(o("WAWebBugnubScreenshotUploadLoadable.react").WAWebBugnubScreenshotUploadLoadable,{mediaState:i,onChangeState:d,customOpenSupportModal:a,customOpenMediaModal:n,customCloseMediaModal:t})})]})}c.displayName=c.name+" [from "+i.id+"]",l.WAWebScreenshotUpload=c}),226); __d("WAWebWdsPictoSucessCelebrationTickIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-picto-sucess-celebration-tick";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=88,R=89;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"#25D366",d:"M70.375 44c0 14.426-11.699 26.125-26.125 26.125S18.125 58.426 18.125 44 29.814 17.875 44.24 17.875c14.426 0 26.125 11.7 26.125 26.125h.01Z"}),c.jsx("path",{fill:"#25D366",d:"M44.245 76.99c18.215 0 33.005-14.77 33.005-33.006C77.25 25.75 62.48 11 44.245 11 26.009 11 11.25 25.77 11.25 43.995 11.25 62.22 26.02 77 44.245 77v-.01Z"}),c.jsx("path",{fill:"#25D366",d:"M70.375 44c0 14.426-11.699 26.125-26.125 26.125S18.125 58.426 18.125 44 29.814 17.875 44.24 17.875c14.426 0 26.125 11.7 26.125 26.125h.01Z"}),c.jsx("path",{fill:"#25D366",d:"m59.92 33.975-1.118-1.13a3.703 3.703 0 0 0-5.274 0L41.667 44.827l-6.677-6.744a3.724 3.724 0 0 0-5.291 0l-1.119 1.13a3.795 3.795 0 0 0 0 5.327l10.548 10.655a3.565 3.565 0 0 0 5.078 0L59.921 39.32c1.456-1.471 1.456-3.857 0-5.346Z"}),c.jsx("path",{fill:"#25D366",d:"M44.245 76.99c18.215 0 33.005-14.77 33.005-33.006C77.25 25.75 62.48 11 44.245 11 26.009 11 11.25 25.77 11.25 43.995 11.25 62.22 26.02 77 44.245 77v-.01Z"}),c.jsx("path",{fill:"#25D366",d:"M70.375 44c0 14.426-11.699 26.125-26.125 26.125S18.125 58.426 18.125 44 29.814 17.875 44.24 17.875c14.426 0 26.125 11.7 26.125 26.125h.01Z"}),c.jsx("path",{stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M70.375 44c0 14.426-11.699 26.125-26.125 26.125S18.125 58.426 18.125 44 29.814 17.875 44.24 17.875c14.426 0 26.125 11.7 26.125 26.125h.01Z"}),c.jsx("path",{stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M44.245 76.99c18.215 0 33.005-14.77 33.005-33.006C77.25 25.75 62.48 11 44.245 11 26.009 11 11.25 25.77 11.25 43.995 11.25 62.22 26.02 77 44.245 77v-.01Z"}),c.jsx("path",{stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M70.375 44c0 14.426-11.699 26.125-26.125 26.125S18.125 58.426 18.125 44 29.814 17.875 44.24 17.875c14.426 0 26.125 11.7 26.125 26.125h.01Z"}),c.jsx("path",{stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"m59.92 33.975-1.118-1.13a3.703 3.703 0 0 0-5.274 0L41.667 44.827l-6.677-6.744a3.724 3.724 0 0 0-5.291 0l-1.119 1.13a3.795 3.795 0 0 0 0 5.327l10.548 10.655a3.565 3.565 0 0 0 5.078 0L59.921 39.32c1.456-1.471 1.456-3.857 0-5.346Z"}),c.jsx("path",{stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M44.245 76.99c18.215 0 33.005-14.77 33.005-33.006C77.25 25.75 62.48 11 44.245 11 26.009 11 11.25 25.77 11.25 43.995 11.25 62.22 26.02 77 44.245 77v-.01Z"}),c.jsx("path",{stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M70.375 44c0 14.426-11.699 26.125-26.125 26.125S18.125 58.426 18.125 44 29.814 17.875 44.24 17.875c14.426 0 26.125 11.7 26.125 26.125h.01Z"}),c.jsx("path",{fill:"#E6FFDA",d:"m75.532 1.5.868 1.719c.908 1.794 2.284 3.257 3.954 4.211l1.598.907c.557.318.556 1.19-.003 1.547l-1.608.995c-1.679 1.037-3.065 2.576-3.99 4.418l-.88 1.762c-.309.614-1.111.64-1.422.042l-.869-1.72c-.907-1.793-2.283-3.257-3.954-4.208l-1.597-.907c-.558-.318-.557-1.19.003-1.546l1.607-.996c1.68-1.037 3.065-2.576 3.99-4.418l.88-1.762c.31-.614 1.112-.638 1.423-.042V1.5ZM9.593 67.717l.767 1.52c.803 1.586 2.019 2.88 3.496 3.723l1.412.802c.493.28.492 1.052-.003 1.367l-1.42.88c-1.485.916-2.71 2.278-3.528 3.906l-.778 1.557c-.273.543-.983.567-1.258.037l-.767-1.52c-.803-1.586-2.019-2.88-3.496-3.72l-1.412-.802c-.493-.28-.492-1.052.002-1.367l1.422-.88c1.484-.917 2.71-2.278 3.526-3.906l.779-1.557c.273-.544.982-.565 1.257-.038v-.002ZM82.712 17.581l.51 1.01a5.894 5.894 0 0 0 2.32 2.47l.936.532c.328.186.327.698-.001.907l-.944.584a6.423 6.423 0 0 0-2.34 2.592l-.516 1.033c-.182.361-.653.377-.835.025l-.51-1.009a5.88 5.88 0 0 0-2.32-2.469l-.936-.532c-.327-.186-.327-.698.001-.907l.944-.584a6.423 6.423 0 0 0 2.34-2.592l.516-1.033c.182-.36.653-.375.835-.025v-.002Z"}),c.jsx("path",{stroke:"#111B21",strokeLinejoin:"round",strokeMiterlimit:10,strokeWidth:1.5,d:"m75.532 1.5.868 1.719c.908 1.794 2.284 3.257 3.954 4.211l1.598.907c.557.318.556 1.19-.003 1.547l-1.608.995c-1.679 1.037-3.065 2.576-3.99 4.418l-.88 1.762c-.309.614-1.111.64-1.422.042l-.869-1.72c-.907-1.793-2.283-3.257-3.954-4.208l-1.597-.907c-.558-.318-.557-1.19.003-1.546l1.607-.996c1.68-1.037 3.065-2.576 3.99-4.418l.88-1.762c.31-.614 1.112-.638 1.423-.042V1.5ZM9.593 67.717l.767 1.52c.803 1.586 2.019 2.88 3.496 3.723l1.412.802c.493.28.492 1.052-.003 1.367l-1.42.88c-1.485.916-2.71 2.278-3.528 3.906l-.778 1.557c-.273.543-.983.567-1.258.037l-.767-1.52c-.803-1.586-2.019-2.88-3.496-3.72l-1.412-.802c-.493-.28-.492-1.052.002-1.367l1.422-.88c1.484-.917 2.71-2.278 3.526-3.906l.779-1.557c.273-.544.982-.565 1.257-.038v-.002ZM82.712 17.581l.51 1.01a5.894 5.894 0 0 0 2.32 2.47l.936.532c.328.186.327.698-.001.907l-.944.584a6.423 6.423 0 0 0-2.34 2.592l-.516 1.033c-.182.361-.653.377-.835.025l-.51-1.009a5.88 5.88 0 0 0-2.32-2.469l-.936-.532c-.327-.186-.327-.698.001-.907l.944-.584a6.423 6.423 0 0 0 2.34-2.592l.516-1.033c.182-.36.653-.375.835-.025v-.002Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsPictoSucessCelebrationTickIcon=m}),98); __d("WAWebSendFeedbackModal.react",["fbt","$InternalEnum","WASmaxBugReportingReportBugRPC","WAWebABPropsSaga","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebContactFormWrapper.react","WAWebCrashlog","WAWebExternalLink.react","WAWebFlex.react","WAWebLoggerDebugInfo","WAWebMmsMediaTypes","WAWebModalManager","WAWebRichTextField.react","WAWebScreenshotUpload.react","WAWebSupportAiSessionWamEvent","WAWebText.react","WAWebTextLineClamp.react","WAWebToast.react","WAWebToastManager","WAWebWamEnumSupportAiEventType","WAWebWdsPictoSucessCelebrationTickIcon.react","WDSText.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useRef,_=c.useState,f=5e3,g=10,h={feedbackField:{borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderBottomWidth:"xv7zg05",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xhl97hz x1vtqnfi",$$css:!0},buttonGroup:{marginTop:"x1sy10c2",paddingTop:"xexx8yu",paddingInlineEnd:"xyri2b",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",$$css:!0}},y=n("$InternalEnum").Mirrored(["FORM","SUCCESS"]),C={titleContainer:{textAlign:"x2b8uid",$$css:!0}};function b(e){var t=e.onCancel,a=e.onComplete,i=e.onSubmit,l=_(""),u=l[0],c=l[1],y=_({state:"none",mediaFiles:[]}),C=y[0],b=y[1],v=_(!1),S=v[0],k=v[1],I=_(!1),T=I[0],D=I[1],x=_(!1),$=x[0],P=x[1],N=_(!1),M=N[0],w=N[1],A=p(null);m(function(){$&&o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Se produjo un error al enviar el formulario. Vuelve a intentarlo.")}))},[$]);var F=s._(/*BTDS*/"Env\u00eda comentarios"),O=function(t){var e=t.text;c(e),w(V(e))},B=function(t){var e=new Uint8Array(t);return btoa(String.fromCharCode.apply(String,Array.from(e)))},W=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{D(!0),P(!1);var e=JSON.stringify(yield o("WAWebLoggerDebugInfo").getDebugInfo({supportTag:"FeedbackSubmission",convertFields:!0,addUserAgentDetails:!0}),null,2),t=yield o("WAWebCrashlog").upload({reason:o("WAWebCrashlog").USER_REPORT,immediate:!1,isHighPri:!0,logType:o("WAWebCrashlog").LogType.SUPPORT}),n=C.mediaFiles.map(function(e){return{mediaCipherKey:B(e.encKey),mediaElementValue:e.url,mediaIv:B(e.iv),mediaType:e.mediaType===o("WAWebMmsMediaTypes").MEDIA_TYPES.VIDEO?"video":"image"}}),r=yield o("WASmaxBugReportingReportBugRPC").sendReportBugRPC({descriptionElementValue:u,debugInformationJsonElementValue:e,deviceLogHandleArgs:t!=null?{deviceLogHandleElementValue:t}:void 0,mediaArgs:n,titleArgs:{titleElementValue:"User Feedback"},categoryArgs:void 0});r.name==="ReportBugResponseSuccess"?(i==null||i(u),a()):(P(!0),D(!1))}catch(e){P(!0),D(!1)}});return function(){return e.apply(this,arguments)}})(),q=function(){t==null||t(),o("WAWebModalManager").ModalManager.close()},U=s._(/*BTDS*/"Describe el problema t\u00e9cnico o la sugerencia\u2026"),V=function(t){return t==null?!1:t.trim().length>=g};return d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:F,okText:s._(/*BTDS*/"Enviar"),onOK:W,onCancel:q,okDisabled:!M||T||S,okSpinner:T,buttonGroupStyle:h.buttonGroup,testid:void 0,children:d.jsxs(o("WAWebFlex.react").FlexColumn,{align:"stretch",children:[d.jsx(o("WAWebText.react").WAWebTextSmall,{marginBottom:20,children:s._(/*BTDS*/"Para solucionar otros problemas, como spam o estafas, puedes obtener ayuda en el {help_center_link} o comunicarte con nosotros en {contact_us_link}.",[s._param("help_center_link",d.jsx(r("WAWebClickableLink.react"),{onClick:R,children:s._(/*BTDS*/"Centro de ayuda")})),s._param("contact_us_link",d.jsx(r("WAWebClickableLink.react"),{onClick:L,children:s._(/*BTDS*/"Cont\u00e1ctanos")}))])}),d.jsx(o("WAWebRichTextField.react").RichTextField,{testid:void 0,maxLength:f,onChange:O,inputPlaceholder:U,ariaLabel:U,ref:A,value:u,minVisibleLines:3,maxVisibleLines:7,multiline:!0,enterIsNewLine:!0,hideSpacer:!0,hideFloatingLabel:!0,theme:"gray-background",containerXstyle:h.feedbackField,contextMsg:M?null:s._(/*BTDS*/"Escribe una descripci\u00f3n de al menos {FEEDBACK_MIN_DESC_LENGTH} caracteres.",[s._param("FEEDBACK_MIN_DESC_LENGTH",g)])}),d.jsx(o("WAWebFlex.react").FlexItem,{marginBottom:16,children:d.jsx(o("WAWebScreenshotUpload.react").WAWebScreenshotUpload,{mediaState:C,onChangeState:b,onUploadStateChange:k})}),d.jsxs(o("WAWebText.react").WAWebTextSmall,{children:[s._(/*BTDS*/"Si realizas el env\u00edo, autorizas a WhatsApp a revisar la informaci\u00f3n t\u00e9cnica relacionada para ayudarte a abordar tus comentarios.")," ",d.jsx(r("WAWebClickableLink.react"),{onClick:E,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})]})})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.onCancel,n=function(){t()};return d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,okText:s._(/*BTDS*/"OK"),onOK:n,children:d.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",children:[d.jsx(o("WAWebFlex.react").FlexItem,{marginBottom:16,align:"center",justify:"center",children:d.jsx(o("WAWebWdsPictoSucessCelebrationTickIcon.react").WdsPictoSucessCelebrationTickIcon,{height:88,width:89})}),d.jsx(o("WAWebFlex.react").FlexItem,{marginBottom:24,xstyle:C.titleContainer,children:d.jsx(r("WAWebTextLineClamp.react"),{maxLines:3,children:d.jsx(r("WDSText.react"),{type:"Headline1",colorName:"contentDefault",textAlign:"center",children:s._(/*BTDS*/"Gracias por tus comentarios")})})}),d.jsx(o("WAWebFlex.react").FlexItem,{testid:void 0,marginBottom:16,children:d.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",textAlign:"center",children:s._(/*BTDS*/"Ayuda a que WhatsApp sea mejor para todos. Si bien no compartimos actualizaciones sobre tus comentarios, nos permiten saber qu\u00e9 debemos mejorar.")})}),d.jsx(o("WAWebFlex.react").FlexItem,{testid:void 0,children:d.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",textAlign:"center",children:s._(/*BTDS*/"\u00bfNecesitas m\u00e1s ayuda? Visita el {help_center_link} o {contact_us_link}.",[s._param("help_center_link",d.jsx(r("WAWebClickableLink.react"),{onClick:function(){o("WAWebExternalLink.react").openExternalLink("https://faq.whatsapp.com/")},children:"Help Center"})),s._param("contact_us_link",d.jsx(r("WAWebClickableLink.react"),{onClick:function(){o("WAWebABPropsSaga").getIsSagaV1Enabled()&&new(o("WAWebSupportAiSessionWamEvent")).SupportAiSessionWamEvent({supportAiEventType:o("WAWebWamEnumSupportAiEventType").SUPPORT_AI_EVENT_TYPE.CONTACT_US_CLICKED}).commit(),o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebContactFormWrapper.react"),{}))},children:"contact us"}))])})})]})})}v.displayName=v.name+" [from "+i.id+"]";function S(e){var t=e.onCancel,n=e.onSubmit,r=_(y.FORM),a=r[0],i=r[1],l=function(){i(y.SUCCESS)},s=function(){t==null||t(),o("WAWebModalManager").ModalManager.close()};e:{if(a===y.FORM)return d.jsx(b,{onCancel:s,onComplete:l,onSubmit:n});if(a===y.SUCCESS)return d.jsx(v,{onCancel:s});throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+a)}}S.displayName=S.name+" [from "+i.id+"]";function R(){o("WAWebExternalLink.react").openExternalLink("https://faq.whatsapp.com/")}function L(){o("WAWebABPropsSaga").getIsSagaV1Enabled()&&new(o("WAWebSupportAiSessionWamEvent")).SupportAiSessionWamEvent({supportAiEventType:o("WAWebWamEnumSupportAiEventType").SUPPORT_AI_EVENT_TYPE.CONTACT_US_CLICKED}).commit(),o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebContactFormWrapper.react"),{}))}function E(){o("WAWebExternalLink.react").openExternalLink("https://faq.whatsapp.com/1040401477781770")}l.default=S}),226); __d("WAWebFeedbackModalUtils",["WAWebFeedbackIntroNuxModal.react","WAWebModalManager","WAWebNux","WAWebSendFeedbackModal.react","WAWebUserPrefsNuxPreferences","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(){o("WAWebUserPrefsNuxPreferences").shouldShowNUX(o("WAWebNux").NUX.FEEDBACK_INTRO)?o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebFeedbackIntroNuxModal.react"),{onAcknowledge:function(){o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebSendFeedbackModal.react"),{}))}})):o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebSendFeedbackModal.react"),{}))}l.openFeedbackModal=u}),98); __d("WAWebContactQuestionIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="contact-question";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ContactQuestionIcon=m}),98); __d("WAWebIcRateAppIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-rate-app";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcRateAppIcon=m}),98); __d("WAWebTestRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="test-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.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"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.TestRefreshedIcon=m}),98); __d("WAWebHelpItemIcon.react",["$InternalEnum","WAWebBugnubRefreshedIcon.react","WAWebContactQuestionIcon.react","WAWebDocumentRefreshedIcon.react","WAWebIcRateAppIcon.react","WAWebInfoRefreshedIcon.react","WAWebMessageReportRefreshedIcon.react","WAWebQuestionIcon.react","WAWebTestRefreshedIcon.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=n("$InternalEnum").Mirrored(["Feedback","Bug","Faq","ContactUs","Rate","Tos","NewsletterReports","Beta"]);function c(e){var t=e.iconType;return s.jsx("div",{className:"xhslqc4",children:s.jsx(d,{iconType:t})})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.iconType;switch(t){case u.Feedback:return s.jsx(o("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{});case u.Bug:return s.jsx(o("WAWebBugnubRefreshedIcon.react").BugnubRefreshedIcon,{});case u.Faq:return s.jsx(o("WAWebQuestionIcon.react").QuestionIcon,{});case u.ContactUs:return s.jsx(o("WAWebContactQuestionIcon.react").ContactQuestionIcon,{});case u.Rate:return s.jsx(o("WAWebIcRateAppIcon.react").IcRateAppIcon,{});case u.Tos:return s.jsx(o("WAWebDocumentRefreshedIcon.react").DocumentRefreshedIcon,{});case u.NewsletterReports:return s.jsx(o("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{});case u.Beta:return s.jsx(o("WAWebTestRefreshedIcon.react").TestRefreshedIcon,{})}}d.displayName=d.name+" [from "+i.id+"]",l.HelpItemIconType=u,l.HelpItemIcon=c}),98); __d("WAWebWamEnumContactUsExitState",[],(function(t,n,r,o,a,i){var e=Object.freeze({PROBLEM_DESCRIPTION:1,SUGGESTED_FAQ:2,EMAIL_SEND:3,IN_APP_FAQ:4,CANCELLED:5,FAQ:6});i.CONTACT_US_EXIT_STATE=e}),66); __d("WAWebContactUsSessionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumContactUsExitState"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({ContactUsSession:[470,{contactUsAutomaticEmail:[3,e.TYPES.BOOLEAN],contactUsExitState:[1,o("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE],contactUsFaq:[2,e.TYPES.BOOLEAN],contactUsLogs:[4,e.TYPES.BOOLEAN],contactUsMenuFaqT:[12,e.TYPES.TIMER],contactUsOutage:[5,e.TYPES.BOOLEAN],contactUsOutageEmail:[6,e.TYPES.BOOLEAN],contactUsScreenshotC:[19,e.TYPES.NUMBER],contactUsT:[11,e.TYPES.TIMER],languageCode:[21,e.TYPES.STRING]},[1,1,1],"regular"]},{ContactUsSession:[]});l.ContactUsSessionWamEvent=s}),98); __d("WAWebLogSessionEvent",["WAWebContactUsSessionWamEvent"],(function(t,n,r,o,a,i,l){function e(e,t,n){var r=new(o("WAWebContactUsSessionWamEvent")).ContactUsSessionWamEvent({contactUsExitState:e,contactUsT:Math.ceil(self.performance.now()-t)});n&&(r.contactUsAutomaticEmail=!0,r.contactUsScreenshotC=n.numScreenshots),r.commit()}l.logSessionEvent=e}),98); __d("WAWebVersionInfo.react",["fbt","WAWebBuildConstants","WAWebCopyPasteSelectable.react","WAWebLid1X1MigrationGating","WAWebPrimaryVersion","WAWebUserPrefsMeUser","cr:21012","gkx","react","useWAWebExternalBetaOptIn"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useState;function _(){var e=p([]),t=e[0],n=e[1],a=void 0,i=void 0,l=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),u=l[0];if(!r("gkx")("26258")&&t!=null&&(a=d.jsxs("span",{dir:"LTR",children:["Primary app version: ",t]})),!r("gkx")("26258")){var c=o("WAWebUserPrefsMeUser").getMaybeMeDevicePn(),_=o("WAWebUserPrefsMeUser").getMaybeMeDeviceLid();i=d.jsxs(d.Fragment,{children:[d.jsx("div",{children:d.jsxs("span",{dir:"LTR",children:["Phone Number: ",c==null?void 0:c.user," - LID:",_==null?void 0:_.user]})}),d.jsx("div",{children:d.jsxs("span",{dir:"LTR",children:["Companion device ID: ",c==null?void 0:c.getDeviceId()]})}),d.jsx("div",{children:d.jsxs("span",{dir:"LTR",children:["Chat DB Lid migrated:"," ",o("WAWebLid1X1MigrationGating").Lid1X1MigrationUtils.isLidMigrated().toString()]})})]})}m(function(){r("gkx")("26258")||o("WAWebPrimaryVersion").getPrimaryCurrentVersion().then(function(e){n(e)})},[]);var f=d.jsxs(d.Fragment,{children:[s._(/*BTDS*/"Versi\u00f3n {version}",[s._param("version","")]),d.jsx("span",{dir:"LTR",children:o("WAWebBuildConstants").VERSION_STR})]}),g,h;return r("gkx")("26258")||(f=d.jsxs("span",{children:["Version: ",o("WAWebBuildConstants").VERSION_STR]}),g="React Compiler: "+(r("gkx")("7685")?"forget":"classic")),d.jsxs(o("WAWebCopyPasteSelectable.react").SelectableDiv,{"data-testid":void 0,className:"xamitd3 x1f6kntn x1fc57z9 xhslqc4 x2b8uid",selectable:!0,children:[f,d.jsx("div",{children:i}),u?d.jsx("div",{children:s._(/*BTDS*/"(versi\u00f3n beta)")}):null,d.jsx("div",{children:a}),d.jsx("div",{children:g}),d.jsx("div",{children:h})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebHelpDrawer.react",["fbt","WAWebABProps","WAWebABPropsSaga","WAWebConnModel","WAWebContactFormWrapper.react","WAWebDevOnlyBadge.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEnvironment","WAWebExternalLink.react","WAWebFaqUrl","WAWebFeedbackModalUtils","WAWebFlex.react","WAWebHelpItemIcon.react","WAWebLogSessionEvent","WAWebMacBetaUpsellToastbar.react","WAWebMenu.react","WAWebMenuItems.react","WAWebModalManager","WAWebSettingsFBT","WAWebSupportAiSessionWamEvent","WAWebTosUrl","WAWebVersionInfo.react","WAWebWamEnumContactUsExitState","WAWebWamEnumSupportAiEventType","WAWebWamEnumWebcNativeUpsellCtaSourceType","cr:13601","cr:17219","gkx","react","useMergeRefs","useWAWebExternalBetaOptIn","useWAWebFocusOnMount"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useRef;function _(e){var t=e.isInitialStep,a=e.onClose,i=e.onNewsletterReports,l=e.ref,u=r("useWAWebFocusOnMount")(),c=r("useMergeRefs")(u,l),_=o("useWAWebExternalBetaOptIn").useMacBetaUpsellOnWeb(),f=p(-1),g=p(!1),h=function(t,n){o("WAWebLogSessionEvent").logSessionEvent(t,f.current,n),g.current=!0};m(function(){return f.current=self.performance.now(),function(){g.current||h(o("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.CANCELLED)}},[]);var y=function(){g.current=!0;var e=o("WAWebConnModel").Conn.isSMB?o("WAWebTosUrl").getBizTosUrl():o("WAWebTosUrl").getTosUrl();o("WAWebExternalLink.react").openExternalLink(e)},C=function(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getFaqUrl()),h(o("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.FAQ)},b=function(){h(o("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.PROBLEM_DESCRIPTION)},v=function(t){h(o("WAWebWamEnumContactUsExitState").CONTACT_US_EXIT_STATE.EMAIL_SEND,t)},S=function(){o("WAWebABPropsSaga").getIsSagaV1Enabled()&&new(o("WAWebSupportAiSessionWamEvent")).SupportAiSessionWamEvent({supportAiEventType:o("WAWebWamEnumSupportAiEventType").SUPPORT_AI_EVENT_TYPE.CONTACT_US_CLICKED}).commit(),o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebContactFormWrapper.react"),{onCancel:b,onSend:v}))},R=function(){g.current=!0,o("WAWebFeedbackModalUtils").openFeedbackModal()},L=function(){r("gkx")("26258")||o("WAWebExternalLink.react").openExternalLink(r("WAWebEnvironment").isWindows?"https://fb.workplace.com/groups/2056676158176704":"https://fb.workplace.com/groups/643787895765975")},E;r("gkx")("26258")||(E=d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-feedback-group",testid:void 0,onSelect:L,detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.Feedback}),primary:d.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Feedback Group"}),ariaLabel:"Feedback Group"}));var k=t?o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,I=n("cr:13601")?d.jsx(n("cr:13601"),{}):null;return d.jsxs(r("WAWebDrawer.react"),{ref:c,children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:o("WAWebABProps").getABPropConfigValue("public_bug_reporting_settings")?s._(/*BTDS*/"Ayuda y comentarios"):s._(/*BTDS*/"Ayuda"),onBack:a,type:k,focusBackOrCancel:!0}),d.jsxs(r("WAWebDrawerBody.react"),{backgroundColor:"default",children:[null,null,d.jsx(o("WAWebFlex.react").FlexRow,{shrink:0,children:d.jsxs(o("WAWebMenu.react").WAWebMenu,{size:"medium",border:"bottom-partial",allowTabNavigation:!0,children:[d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-faq",testid:void 0,onSelect:C,detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.Faq}),primary:o("WAWebSettingsFBT").helpCenterTitle(),secondary:o("WAWebSettingsFBT").helpCenterSubtitle(),ariaLabel:o("WAWebSettingsFBT").helpCenterTitle().toString()}),d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-contact-us",testid:void 0,onSelect:S,detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.ContactUs}),primary:o("WAWebSettingsFBT").contactUsTitle(),secondary:o("WAWebSettingsFBT").contactUsSubtitle(),ariaLabel:o("WAWebSettingsFBT").contactUsTitle().toString()}),o("WAWebABProps").getABPropConfigValue("public_bug_reporting_settings")?d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-send-feedback",testid:void 0,onSelect:R,detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.Bug}),primary:o("WAWebSettingsFBT").sendFeedbackTitle(),secondary:o("WAWebSettingsFBT").sendFeedbackSubtitle(),ariaLabel:o("WAWebSettingsFBT").sendFeedbackTitle().toString()}):null,n("cr:17219")!=null?d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"rate-app",testid:void 0,onSelect:function(){var e,t=n("cr:17219").getWindowsBridge==null||(e=n("cr:17219").getWindowsBridge())==null?void 0:e.getRateTheApp();t==null||t.requestRateAndApp()},detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.Rate}),primary:o("WAWebSettingsFBT").rateTheApp(),ariaLabel:o("WAWebSettingsFBT").rateTheApp().toString()}):null,d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-tos",testid:void 0,onSelect:y,detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.Tos}),primary:o("WAWebSettingsFBT").termsTitle(),ariaLabel:o("WAWebSettingsFBT").termsTitle().toString()}),d.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-newsletter-reports",testid:void 0,onSelect:i,detailLeft:d.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.NewsletterReports}),primary:o("WAWebSettingsFBT").newsletterReportsTitle(),ariaLabel:o("WAWebSettingsFBT").newsletterReportsTitle().toString()}),E||I?d.jsx(o("WAWebMenuItems.react").MenuSeparator,{}):null,E,I,d.jsxs(d.Fragment,{children:[d.jsx(o("WAWebMenuItems.react").MenuSeparator,{}),d.jsx(o("WAWebFlex.react").FlexRow,{marginBottom:32,justify:"center",shrink:0,children:d.jsx(r("WAWebVersionInfo.react"),{})})]})]})})]}),_&&d.jsx(r("WAWebMacBetaUpsellToastbar.react"),{sourceType:o("WAWebWamEnumWebcNativeUpsellCtaSourceType").WEBC_NATIVE_UPSELL_CTA_SOURCE_TYPE.SETTINGS_HELP})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebKeyboardShortcutsPopup.react",["fbt","WAWebActions","WAWebConfirmPopup.react","WAWebEnvironment","WAWebFbtCommon","WAWebKeyboardShortcut.react","WAWebKeyboardShortcuts","WAWebModal.react","WAWebModalManager","WAWebText.react","WAWebUA","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useMemo,m=[o("WAWebActions").Action.TOGGLE_UNREAD,o("WAWebActions").Action.TOGGLE_MUTE,o("WAWebActions").Action.TOGGLE_ARCHIVE,o("WAWebActions").Action.TOGGLE_PIN,o("WAWebActions").Action.SEARCH,o("WAWebActions").Action.SEARCH_IN_CHAT,o("WAWebActions").Action.OPEN_NEW_CHAT,o("WAWebActions").Action.GO_TO_NEXT_CHAT,o("WAWebActions").Action.GO_TO_PREV_CHAT,o("WAWebActions").Action.LABEL_CHAT,o("WAWebActions").Action.CLOSE_CHAT,o("WAWebActions").Action.OPEN_NEW_GROUP,o("WAWebActions").Action.OPEN_PROFILE,o("WAWebActions").Action.INCREASE_PTT_SPEED,o("WAWebActions").Action.DECREASE_PTT_SPEED,o("WAWebActions").Action.OPEN_SETTINGS,o("WAWebActions").Action.OPEN_EMOJI_PANEL,o("WAWebActions").Action.OPEN_GIF_PANEL,o("WAWebActions").Action.OPEN_STICKER_PANEL,o("WAWebActions").Action.TOGGLE_COMMAND_PALETTE,o("WAWebActions").Action.LOCK_SCREEN,o("WAWebActions").Action.OPEN_CHAT_INFO,o("WAWebActions").Action.BLOCK_CHAT,o("WAWebActions").Action.REPLY,o("WAWebActions").Action.REPLY_PRIVATE,o("WAWebActions").Action.FORWARD,o("WAWebActions").Action.STAR_MESSAGE,o("WAWebActions").Action.OPEN_ATTACHMENT_DROPDOWN,o("WAWebActions").Action.START_PTT_RECORDING,o("WAWebActions").Action.PAUSE_PTT_RECORDING,o("WAWebActions").Action.SEND_PTT,o("WAWebActions").Action.EDIT_LAST_MESSAGE,o("WAWebActions").Action.TOGGLE_CALL_CAMERA,o("WAWebActions").Action.TOGGLE_CALL_MUTE,o("WAWebActions").Action.SHOW_CALL_REACTIONS,o("WAWebActions").Action.TOGGLE_RAISE_HAND,o("WAWebActions").Action.START_SCREEN_SHARE,o("WAWebActions").Action.END_CALL].concat(r("WAWebEnvironment").isWindows?[o("WAWebActions").Action.ZOOM_IN,o("WAWebActions").Action.ZOOM_OUT,o("WAWebActions").Action.ZOOM_RESET,o("WAWebActions").Action.OPEN_NTH_CHAT]:[]);function p(){var e=function(){o("WAWebModalManager").ModalManager.close()},t=function(t){return(r("WAWebEnvironment").isWindows||t!==o("WAWebActions").Action.INCREASE_PTT_SPEED&&t!==o("WAWebActions").Action.DECREASE_PTT_SPEED)&&t!==o("WAWebActions").Action.CLOSE_CHAT},n=d(function(){return m.filter(function(e){if(o("WAWebUA").UA.os===o("WAWebUA").OS_TYPE.MAC){var t=o("WAWebKeyboardShortcuts").getShortcutDisplayModifiers(e);if(t!=null&&t.includes("Option"))return!1}return!0})},[]),a=n.map(function(e){return[o("WAWebActions").getLabel(e),e,t(e)]}).map(function(e,t){var n=e[0],r=e[1],a=e[2],i=a===void 0?!0:a;if(n!==""){var l=c.jsx(o("WAWebKeyboardShortcut.react").KeyboardShortcut,{action:r,addModifiers:i});if(l)return c.jsxs("div",babelHelpers.extends({},{0:{className:"x78zum5 x1okw0bk x6s0dn4 x1nxh6w3 x1cjqih5 xq7czo8 x1jrle2z xszpbae x19eaz5n x1oyju9o x7d3g0m x1runjb5"},1:{className:"x78zum5 x1okw0bk x6s0dn4 x1nxh6w3 x1cjqih5 xq7czo8 x1jrle2z xszpbae x19eaz5n x1oyju9o x7d3g0m x1runjb5 xhjgn53"}}[(t!==0)<<0],{children:[c.jsx("div",{className:"x1iyjqo2 x1sa5p1d x6ikm8r x10wlt62 x1f6kntn x1m1tpaw",title:n,children:n}),c.jsx("div",{className:"x1iyjqo2 xp4054r",children:l})]}),t)}});return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:e,okText:r("WAWebFbtCommon")("OK"),type:o("WAWebModal.react").ModalTheme.Flex,children:c.jsxs("div",{className:"x9f619 x1p5oq8j xjfo4ez xwxc41k xf7qf19",children:[c.jsx(o("WAWebText.react").WAWebTextLarge,{as:"span",children:s._(/*BTDS*/"Atajos del teclado")}),c.jsx("div",{className:"x78zum5 xdt5ytf xubnuyq x9u28bd xw2csxc x1odjw0f xo6wm36 x1iegka5 xc530u0 x8zx4qv xap7olu x17sy6yu x1frvojh x1vz1ssi xxbb1rq xvtidz5 xuygrt7",children:a})]})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebLocaleToLanguages",["JSResource","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){switch(e){case"af_ZA":return r("JSResource")("WAWebLocaleNamesLocaleAF_ZA").__setRef("WAWebLocaleToLanguages").load();case"ar_AR":return r("JSResource")("WAWebLocaleNamesLocaleAR_AR").__setRef("WAWebLocaleToLanguages").load();case"az_AZ":return r("JSResource")("WAWebLocaleNamesLocaleAZ_AZ").__setRef("WAWebLocaleToLanguages").load();case"bg_BG":return r("JSResource")("WAWebLocaleNamesLocaleBG_BG").__setRef("WAWebLocaleToLanguages").load();case"bn_IN":return r("JSResource")("WAWebLocaleNamesLocaleBN_IN").__setRef("WAWebLocaleToLanguages").load();case"ca_ES":return r("JSResource")("WAWebLocaleNamesLocaleCA_ES").__setRef("WAWebLocaleToLanguages").load();case"cs_CZ":return r("JSResource")("WAWebLocaleNamesLocaleCS_CZ").__setRef("WAWebLocaleToLanguages").load();case"da_DK":return r("JSResource")("WAWebLocaleNamesLocaleDA_DK").__setRef("WAWebLocaleToLanguages").load();case"de_DE":return r("JSResource")("WAWebLocaleNamesLocaleDE_DE").__setRef("WAWebLocaleToLanguages").load();case"el_GR":return r("JSResource")("WAWebLocaleNamesLocaleEL_GR").__setRef("WAWebLocaleToLanguages").load();case"en_US":return r("JSResource")("WAWebLocaleNamesLocaleEN_US").__setRef("WAWebLocaleToLanguages").load();case"en_GB":return r("JSResource")("WAWebLocaleNamesLocaleEN_GB").__setRef("WAWebLocaleToLanguages").load();case"es_LA":return r("JSResource")("WAWebLocaleNamesLocaleES_LA").__setRef("WAWebLocaleToLanguages").load();case"et_EE":return r("JSResource")("WAWebLocaleNamesLocaleET_EE").__setRef("WAWebLocaleToLanguages").load();case"fa_IR":return r("JSResource")("WAWebLocaleNamesLocaleFA_IR").__setRef("WAWebLocaleToLanguages").load();case"fi_FI":return r("JSResource")("WAWebLocaleNamesLocaleFI_FI").__setRef("WAWebLocaleToLanguages").load();case"fr_FR":return r("JSResource")("WAWebLocaleNamesLocaleFR_FR").__setRef("WAWebLocaleToLanguages").load();case"gu_IN":return r("JSResource")("WAWebLocaleNamesLocaleGU_IN").__setRef("WAWebLocaleToLanguages").load();case"he_IL":return r("JSResource")("WAWebLocaleNamesLocaleHE_IL").__setRef("WAWebLocaleToLanguages").load();case"hi_IN":return r("JSResource")("WAWebLocaleNamesLocaleHI_IN").__setRef("WAWebLocaleToLanguages").load();case"hr_HR":return r("JSResource")("WAWebLocaleNamesLocaleHR_HR").__setRef("WAWebLocaleToLanguages").load();case"hu_HU":return r("JSResource")("WAWebLocaleNamesLocaleHU_HU").__setRef("WAWebLocaleToLanguages").load();case"id_ID":return r("JSResource")("WAWebLocaleNamesLocaleID_ID").__setRef("WAWebLocaleToLanguages").load();case"it_IT":return r("JSResource")("WAWebLocaleNamesLocaleIT_IT").__setRef("WAWebLocaleToLanguages").load();case"ja_JP":return r("JSResource")("WAWebLocaleNamesLocaleJA_JP").__setRef("WAWebLocaleToLanguages").load();case"kk_KZ":return r("JSResource")("WAWebLocaleNamesLocaleKK_KZ").__setRef("WAWebLocaleToLanguages").load();case"kn_IN":return r("JSResource")("WAWebLocaleNamesLocaleKN_IN").__setRef("WAWebLocaleToLanguages").load();case"ko_KR":return r("JSResource")("WAWebLocaleNamesLocaleKO_KR").__setRef("WAWebLocaleToLanguages").load();case"lt_LT":return r("JSResource")("WAWebLocaleNamesLocaleLT_LT").__setRef("WAWebLocaleToLanguages").load();case"lv_LV":return r("JSResource")("WAWebLocaleNamesLocaleLV_LV").__setRef("WAWebLocaleToLanguages").load();case"mk_MK":return r("JSResource")("WAWebLocaleNamesLocaleMK_MK").__setRef("WAWebLocaleToLanguages").load();case"ml_IN":return r("JSResource")("WAWebLocaleNamesLocaleML_IN").__setRef("WAWebLocaleToLanguages").load();case"mr_IN":return r("JSResource")("WAWebLocaleNamesLocaleMR_IN").__setRef("WAWebLocaleToLanguages").load();case"ms_MY":return r("JSResource")("WAWebLocaleNamesLocaleMS_MY").__setRef("WAWebLocaleToLanguages").load();case"nb_NO":return r("JSResource")("WAWebLocaleNamesLocaleNB_NO").__setRef("WAWebLocaleToLanguages").load();case"nl_NL":return r("JSResource")("WAWebLocaleNamesLocaleNL_NL").__setRef("WAWebLocaleToLanguages").load();case"pa_IN":return r("JSResource")("WAWebLocaleNamesLocalePA_IN").__setRef("WAWebLocaleToLanguages").load();case"pl_PL":return r("JSResource")("WAWebLocaleNamesLocalePL_PL").__setRef("WAWebLocaleToLanguages").load();case"pt_BR":return r("JSResource")("WAWebLocaleNamesLocalePT_BR").__setRef("WAWebLocaleToLanguages").load();case"pt_PT":return r("JSResource")("WAWebLocaleNamesLocalePT_PT").__setRef("WAWebLocaleToLanguages").load();case"ro_RO":return r("JSResource")("WAWebLocaleNamesLocaleRO_RO").__setRef("WAWebLocaleToLanguages").load();case"ru_RU":return r("JSResource")("WAWebLocaleNamesLocaleRU_RU").__setRef("WAWebLocaleToLanguages").load();case"sk_SK":return r("JSResource")("WAWebLocaleNamesLocaleSK_SK").__setRef("WAWebLocaleToLanguages").load();case"sl_SI":return r("JSResource")("WAWebLocaleNamesLocaleSL_SI").__setRef("WAWebLocaleToLanguages").load();case"sq_AL":return r("JSResource")("WAWebLocaleNamesLocaleSQ_AL").__setRef("WAWebLocaleToLanguages").load();case"sr_RS":return r("JSResource")("WAWebLocaleNamesLocaleSR_RS").__setRef("WAWebLocaleToLanguages").load();case"sv_SE":return r("JSResource")("WAWebLocaleNamesLocaleSV_SE").__setRef("WAWebLocaleToLanguages").load();case"sw_KE":return r("JSResource")("WAWebLocaleNamesLocaleSW_KE").__setRef("WAWebLocaleToLanguages").load();case"ta_IN":return r("JSResource")("WAWebLocaleNamesLocaleTA_IN").__setRef("WAWebLocaleToLanguages").load();case"te_IN":return r("JSResource")("WAWebLocaleNamesLocaleTE_IN").__setRef("WAWebLocaleToLanguages").load();case"th_TH":return r("JSResource")("WAWebLocaleNamesLocaleTH_TH").__setRef("WAWebLocaleToLanguages").load();case"tl_PH":return r("JSResource")("WAWebLocaleNamesLocaleTL_PH").__setRef("WAWebLocaleToLanguages").load();case"tr_TR":return r("JSResource")("WAWebLocaleNamesLocaleTR_TR").__setRef("WAWebLocaleToLanguages").load();case"uk_UA":return r("JSResource")("WAWebLocaleNamesLocaleUK_UA").__setRef("WAWebLocaleToLanguages").load();case"ur_PK":return r("JSResource")("WAWebLocaleNamesLocaleUR_PK").__setRef("WAWebLocaleToLanguages").load();case"uz_UZ":return r("JSResource")("WAWebLocaleNamesLocaleUZ_UZ").__setRef("WAWebLocaleToLanguages").load();case"vi_VN":return r("JSResource")("WAWebLocaleNamesLocaleVI_VN").__setRef("WAWebLocaleToLanguages").load();case"zh_CN":return r("JSResource")("WAWebLocaleNamesLocaleZH_CN").__setRef("WAWebLocaleToLanguages").load();case"zh_HK":return r("JSResource")("WAWebLocaleNamesLocaleZH_HK").__setRef("WAWebLocaleToLanguages").load();case"zh_TW":return r("JSResource")("WAWebLocaleNamesLocaleZH_TW").__setRef("WAWebLocaleToLanguages").load();case"jv_ID":return r("JSResource")("WAWebLocaleNamesLocaleJV_ID").__setRef("WAWebLocaleToLanguages").load();case"yi_DE":return r("JSResource")("WAWebLocaleNamesLocaleYI_DE").__setRef("WAWebLocaleToLanguages").load();default:return r("JSResource")("WAWebLocaleNamesNativeNames").__setRef("WAWebLocaleToLanguages").load()}}),s.apply(this,arguments)}l.getLanguageNames=e}),98); __d("WAWebBrigadingSettingsGatingUtils",["WAWebABProps"],(function(t,n,r,o,a,i,l){"use strict";function e(){return o("WAWebABProps").getABPropConfigValue("brigading_privacy_setting_enabled")}l.canEnableAntiBrigading=e}),98); __d("WAWebWamEnumPrivacyControlEntryPointType",[],(function(t,n,r,o,a,i){var e=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,DEFENSE_MODE_QUARANTINED_INTERSTITIAL:10,DEFENSE_MODE_SETTINGS_REMINDER_BANNER:11});i.PRIVACY_CONTROL_ENTRY_POINT_TYPE=e}),66); __d("WAWebWamEnumPrivacyControlItemType",[],(function(t,n,r,o,a,i){var e=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,CHANNELS:29,COVER_PHOTO:30,GROUP_CREATION:31});i.PRIVACY_CONTROL_ITEM_TYPE=e}),66); __d("WAWebPrivacySettingsClickWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumPrivacyControlEntryPointType","WAWebWamEnumPrivacyControlItemType"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({PrivacySettingsClick:[3726,{privacyControlEntryPoint:[1,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE],privacyControlItem:[2,o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE]},[1,1,1],"regular"]},{PrivacySettingsClick:[]});l.PrivacySettingsClickWamEvent=e}),98); __d("WAWebPrivacySettingsDrawer.react",["fbt","WALogger","WANullthrows","WAWebAccountSyncJob","WAWebApiPrivacyDisallowedList","WAWebBlocklistCollection","WAWebBrigadingSettingsGatingUtils","WAWebChevronIcon.react","WAWebClickableLink.react","WAWebCmd","WAWebContactCollection","WAWebContextualBannerConfig","WAWebContextualBannerWrapperLoadable","WAWebDefenseModeLockedInterstitial.react","WAWebDefenseModeUtils","WAWebDisableLinkPreviewsAction","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebEphemeralityDurations","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFbtIntlList","WAWebLoadingDrawer.react","WAWebMiscGatingUtils","WAWebPrivacySettings","WAWebPrivacySettingsClickWamEvent","WAWebScreenLockTimerOptions","WAWebSetPrivacyForOneCategoryAction","WAWebSettingsFBT","WAWebStatusPostingUtils","WAWebTextStatusGatingUtils","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUserPrefsGeneral","WAWebUserPrefsScreenLock","WAWebWamEnumPrivacyControlEntryPointType","WAWebWamEnumPrivacyControlItemType","WDSSwitch.react","asyncToGeneratorRuntime","err","react","stylex","useWAWebListener","useWAWebModelValues","useWAWebStatusPrivacySettingConfig"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_=p||(p=o("react")),f=d||(d=r("react")),g=_.useEffect,h=_.useState,y={drawerTitle:{paddingTop:"x134lwj9",paddingInlineEnd:"xyri2b",paddingBottom:"x1i2zvha",paddingInlineStart:"x1c1uobl",$$css:!0},chevronIcon:{color:"x16zc8z2",height:"x17rw0jw",$$css:!0}};function C(e,t){new(o("WAWebPrivacySettingsClickWamEvent")).PrivacySettingsClickWamEvent({privacyControlItem:e,privacyControlEntryPoint:t}).commit()}function b(e){var t=e.url;return f.jsx(r("WAWebClickableLink.react"),{onClick:function(n){o("WAWebExternalLink.react").openExternalLink(t),n.stopPropagation()},children:r("WAWebFbtCommon")("Learn more")})}b.displayName=b.name+" [from "+i.id+"]";function v(t){var a,i,l,u,c=t.onClose,d=t.onOpenBlockedContacts,p=t.onOpenEphemeralityDrawer,_=t.onOpenScreenLockDrawer,v=t.onOpenStatusPrivacySettingDrawer,S=t.onOpenVisibilityEditDrawer,I=t.ref,D=h(function(){return L(o("WAWebUserPrefsGeneral").getUserPrivacySettings())}),x=D[0],$=D[1],P=h({about:null,groupadd:null,last:null,profile:null}),N=P[0],M=P[1],w=o("useWAWebStatusPrivacySettingConfig").useWAWebStatusPrivacySettingConfig(),A=w.statusPostingPrivacyConfig,F=r("WANullthrows")(o("WAWebContactCollection").ContactCollection.getMeContact()),O=o("useWAWebModelValues").useModelValues(F,["disappearingModeDuration"]),B=O.disappearingModeDuration;function W(e){var t=L(e.privacySettings);if(t==null)throw r("err")("Incomplete privacy settings: "+Object.keys(o("WAWebUserPrefsGeneral").getUserPrivacySettings()).join(", "));$(t),M(o("WAWebApiPrivacyDisallowedList").disallowedRowsToLists(e.privacyDisallowedRows))}g(function(){var t=new AbortController;return x==null&&n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var n=yield o("WAWebAccountSyncJob").updatePrivacySettings();if(t.signal.aborted)return;W(n)}catch(t){t instanceof Error&&o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["privacy_settings_drawer: get privacy settings failed ",""])),t.stack).sendLogs("privacy_settings_drawer: get privacy settings failed"),c(),o("WAWebToastManager").ToastManager.open(f.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudieron obtener los ajustes de privacidad. Por favor, vuelve a intentarlo.")}))}})(),function(){return t.abort()}},[]),g(function(){var e=new AbortController;return n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=yield o("WAWebApiPrivacyDisallowedList").queryDisallowedLists();e.signal.aborted||M(t)})(),function(){return e.abort()}},[]),o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"account_sync_for_privacy_from_bridge",function(e){W(e)});var q=h(function(){return o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("disableLinkPreviews")}),U=q[0],V=q[1],H=U!=null,G=h(function(){return o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("messages")}),z=G[0],j=G[1],K=z!=null;o("useWAWebListener").useListener(o("WAWebUserPrefsGeneral").privacySettingsEventEmitter,"all",function(){var e=o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("disableLinkPreviews");e!==U&&V(e);var t=o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("messages");t!==z&&j(t)});var Q=s._(/*BTDS*/"Privacidad");if(!x)return f.jsx(r("WAWebLoadingDrawer.react"),{title:Q,error:!1});var X=o("WAWebMiscGatingUtils").isDefaultDisappearingMessagesEnabled(),Y=x.about,J=x.disableLinkPreviews,Z=x.groupAdd,ee=x.lastSeen,te=x.messages,ne=x.online,re=x.profilePicture,oe=x.readReceipts,ae=[E(ee,(a=N.last)==null?void 0:a.disallowedList.length)];ee!==o("WAWebPrivacySettings").VISIBILITY.all&&ne===o("WAWebPrivacySettings").ONLINE_VISIBILITY.all&&ae.push(E(ne));var ie=r("WAWebFbtIntlList")(ae,r("WAWebFbtIntlList").CONJUNCTIONS.NONE,r("WAWebFbtIntlList").DELIMITERS.COMMA),le=f.jsx(R,{title:o("WAWebSettingsFBT").privacyLastSeenOnlineEnabledTitle(),onClick:function(){S("lastSeen"),C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.LAST_SEEN_AND_ONLINE,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS)},testid:void 0,children:f.jsxs("span",{children:[" ",ie]})}),se=o("WAWebBlocklistCollection").BlocklistCollection.dedupedList().length,ue=s._(/*BTDS*/"Si desactivas las confirmaciones de lectura, no podr\u00e1s enviarlas ni recibirlas. Las confirmaciones de lectura se enviar\u00e1n siempre en los chats en grupo."),ce=s._(/*BTDS*/"Para ayudar a evitar que sitios web de terceros puedan deducir tu direcci\u00f3n IP, ya no se generar\u00e1n vistas previas de los enlaces que compartas en los chats."),de=o("WAWebBrigadingSettingsGatingUtils").canEnableAntiBrigading()?f.jsx(r("WAWebDrawerItem.react"),{title:o("WAWebSettingsFBT").antiBrigadingTitle(),tabIndex:K?0:-1,icon:f.jsx("div",{className:"x1849jeq x78zum5 xl56j7k",children:f.jsx(r("WDSSwitch.react"),{value:te===o("WAWebPrivacySettings").ALL_CONTACTS.contacts||K,disabled:K,"aria-label":o("WAWebSettingsFBT").antiBrigadingTitle().toString()+". "+o("WAWebSettingsFBT").antiBrigadingDescription().toString()})}),theme:"privacy",isLastItem:!1,disableKeydownHandling:!K,disabled:K,onDisabledClick:function(){z!=null&&o("WAWebDefenseModeLockedInterstitial.react").openDefenseModeLockedInterstitialGlobal(z,te===o("WAWebPrivacySettings").ALL_CONTACTS.contacts?"on":"off")},onClick:function(){T(x,$,te)},testid:void 0,children:f.jsxs("div",babelHelpers.extends({},(m||(m=r("stylex"))).props(o("WAWebUISpacing").uiPadding.end20),{children:[o("WAWebSettingsFBT").antiBrigadingDescription()," ",f.jsx(b,{url:o("WAWebFaqUrl").getAntiBrigadingFaqUrl()})]}))}):null,me=A?f.jsx(R,{title:o("WAWebSettingsFBT").privacyStatusPostingTitle(),onClick:v,testid:void 0,children:f.jsx("span",{children:o("WAWebStatusPostingUtils").formatStatusSetting(A)})}):null,pe=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){$(babelHelpers.extends({},x,{disableLinkPreviews:e})),o("WAWebDisableLinkPreviewsAction").setDisableLinkPreviews(e)});return function(n){return e.apply(this,arguments)}})();return f.jsxs(r("WAWebDrawer.react"),{ref:I,theme:"striped",testid:void 0,children:[f.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:Q,onBack:c,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),f.jsxs(r("WAWebDrawerBody.react"),{children:[f.jsx(o("WAWebContextualBannerWrapperLoadable").ContextualBannerWrapperLoadable,{bannerListOrderedByPriority:[{id:o("WAWebContextualBannerConfig").ContextualBannerId.AppLockUpsell,onClick:_}]}),f.jsxs(r("WAWebDrawerSection.react"),{title:o("WAWebSettingsFBT").privacyPersonalInfoHeaderTitle(),titleXStyle:y.drawerTitle,theme:"padding-no-vertical",animation:!1,ellipsify:!1,children:[le,f.jsx(R,{title:o("WAWebSettingsFBT").privacyProfilePhotoTitle(),onClick:function(){S("profilePicture"),C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.PROFILE_PHOTO,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS)},testid:void 0,children:f.jsx("span",{children:E(re,(i=N.profile)==null?void 0:i.disallowedList.length)})}),f.jsx(R,{title:o("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?o("WAWebSettingsFBT").privacyTextStatusTitle():o("WAWebSettingsFBT").privacyAboutTitle(),onClick:function(){S("about"),C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.ABOUT,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS)},testid:void 0,children:f.jsx("span",{children:E(Y,(l=N.about)==null?void 0:l.disallowedList.length)})}),me,f.jsx(r("WAWebDrawerItem.react"),{title:o("WAWebSettingsFBT").privacyReadReceiptsTitle(),tabIndex:-1,icon:f.jsx("div",{className:"x1849jeq x78zum5 xl56j7k",children:f.jsx(r("WDSSwitch.react"),{value:oe===o("WAWebPrivacySettings").ALL_NONE.all,"aria-label":o("WAWebSettingsFBT").privacyReadReceiptsTitle().toString()+". "+ue.toString()})}),theme:"privacy",isLastItem:!0,disableKeydownHandling:!0,onClick:function(){C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.READ_RECEIPT,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),k(x,$,oe)},testid:void 0,children:f.jsx("div",babelHelpers.extends({},(m||(m=r("stylex"))).props(o("WAWebUISpacing").uiPadding.end20),{children:ue}))})]}),X&&f.jsx(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:s._(/*BTDS*/"Mensajes temporales"),titleXStyle:y.drawerTitle,animation:!1,children:f.jsx(R,{title:o("WAWebSettingsFBT").privacyDDMTitle(),onClick:function(){C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.DDM_TIMER,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),p()},isLastItem:!0,testid:void 0,children:f.jsx("span",{"data-testid":void 0,children:o("WAWebEphemeralityDurations").durationToLabel(B)})})}),f.jsxs(r("WAWebDrawerSection.react"),{theme:X?"padding":"padding-no-vertical",animation:!1,children:[f.jsx(R,{title:o("WAWebSettingsFBT").privacyGroupsTitle(),onClick:function(){C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.GROUPS,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),S("groupAdd")},testid:void 0,children:f.jsx("span",{children:E(Z,(u=N.groupadd)==null?void 0:u.disallowedList.length)})}),f.jsx(R,{title:o("WAWebSettingsFBT").privacyBlockedTitle(),onClick:function(){C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.BLOCKED,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),d()},testid:void 0,children:f.jsx("span",{children:se===0?s._(/*BTDS*/"Ninguno"):se})}),f.jsx(R,{title:o("WAWebSettingsFBT").privacyScreenlockTitle(),isLastItem:!0,onClick:function(){C(o("WAWebWamEnumPrivacyControlItemType").PRIVACY_CONTROL_ITEM_TYPE.SCREEN_LOCK,o("WAWebWamEnumPrivacyControlEntryPointType").PRIVACY_CONTROL_ENTRY_POINT_TYPE.PRIVACY_SETTINGS),_()},testid:void 0,children:o("WAWebScreenLockTimerOptions").getScreenLockAutoTimerLabelForSummary(o("WAWebUserPrefsScreenLock").getScreenLockDurationInSeconds())})]}),f.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",title:s._(/*BTDS*/"Opciones avanzadas"),titleXStyle:y.drawerTitle,animation:!1,children:[de,f.jsx(r("WAWebDrawerItem.react"),{title:o("WAWebSettingsFBT").privacyLinkPreviewsTitle(),tabIndex:H?0:-1,icon:f.jsx("div",{className:"x1849jeq x78zum5 xl56j7k",children:f.jsx(r("WDSSwitch.react"),{value:J||H,disabled:H,"aria-label":o("WAWebSettingsFBT").privacyLinkPreviewsTitle().toString()+". "+ce.toString()})}),theme:"privacy",isLastItem:!0,disableKeydownHandling:!H,disabled:H,onDisabledClick:function(){U!=null&&o("WAWebDefenseModeLockedInterstitial.react").openDefenseModeLockedInterstitialGlobal(U,J?"on":"off")},onClick:function(){pe(!J)},testid:void 0,children:f.jsxs("div",babelHelpers.extends({},m.props(o("WAWebUISpacing").uiPadding.end20),{children:[ce," ",f.jsx(b,{url:o("WAWebFaqUrl").getDisableLinkPreviewsFaqUrl()})]}))})]})]})]})}v.displayName=v.name+" [from "+i.id+"]";var S=function(){return f.jsx(o("WAWebChevronIcon.react").ChevronIcon,{directional:!0,iconXstyle:y.chevronIcon})};function R(e){var t=e.children,n=e.disabled,o=e.icon,a=e.isLastItem,i=e.onClick,l=e.tabIndex,s=l===void 0?0:l,u=e.testid,c=e.title,d=o!=null?o:S();return f.jsx(r("WAWebDrawerItem.react"),{title:c,theme:"privacy",icon:d,onClick:i,disabled:n,isLastItem:a,tabIndex:s,testid:void 0,children:t})}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e.about,n=e.groupAdd,r=e.lastSeen,a=e.online,i=a===void 0?"all":a,l=e.profilePicture,s=e.readReceipts,u=e.disableLinkPreviews,c=u===void 0?!1:u,d=e.messages,m=d===void 0?o("WAWebPrivacySettings").ALL_CONTACTS.all:d;if(t!=null&&n!=null&&r!=null&&l!=null&&s!=null&&m!=null)return{about:t,groupAdd:n,lastSeen:r,online:i,profilePicture:l,readReceipts:s,disableLinkPreviews:c,messages:m}}function E(e,t){switch(e){case o("WAWebPrivacySettings").VISIBILITY.all:return s._(/*BTDS*/"Todos");case o("WAWebPrivacySettings").VISIBILITY.contacts:return s._(/*BTDS*/"Mis contactos");case o("WAWebPrivacySettings").VISIBILITY.contact_blacklist:return t==null?"":s._(/*BTDS*/"_j{\"*\":\"{count} contactos excluidos\",\"_1\":\"1 contacto excluido\"}",[s._plural(t,"count")]);case o("WAWebPrivacySettings").VISIBILITY.none:return s._(/*BTDS*/"Nadie");case o("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen:return s._(/*BTDS*/"Igual que la hora de \u00falt. vez");default:return""}}function k(e,t,n){return I.apply(this,arguments)}function I(){return I=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var r=n===o("WAWebPrivacySettings").ALL_NONE.all?o("WAWebPrivacySettings").ALL_NONE.none:o("WAWebPrivacySettings").ALL_NONE.all;t(babelHelpers.extends({},e,{readReceipts:r}));try{r===o("WAWebPrivacySettings").ALL_NONE.none?yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"readreceipts",value:"none"}):yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"readreceipts",value:"all"})}catch(e){e instanceof Error&&o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["privacy_settings_drawer: set readreceipts failed ",""])),e.stack).sendLogs("privacy_settings_drawer: set readreceipts failed"),o("WAWebToastManager").ToastManager.open(f.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudieron actualizar las confirmaciones de lectura. Por favor, vuelve a intentarlo.")}))}}),I.apply(this,arguments)}function T(e,t,n){return D.apply(this,arguments)}function D(){return D=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var r=n===o("WAWebPrivacySettings").ALL_CONTACTS.all?o("WAWebPrivacySettings").ALL_CONTACTS.contacts:o("WAWebPrivacySettings").ALL_CONTACTS.all;t(babelHelpers.extends({},e,{messages:r}));try{r===o("WAWebPrivacySettings").ALL_CONTACTS.all?yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"messages",value:"all"}):yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:"messages",value:"contacts"})}catch(e){e instanceof Error&&o("WALogger").WARN(c||(c=babelHelpers.taggedTemplateLiteralLoose(["privacy_settings_drawer: set message blocking setting failed ",""])),e.stack).sendLogs("privacy_settings_drawer: set message blocking setting failed"),o("WAWebToastManager").ToastManager.open(f.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudieron actualizar los ajustes del bloqueo de mensajes")}))}}),D.apply(this,arguments)}l.PrivacySettingsDrawer=v,l.getChevronIcon=S}),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","vulture"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState;function m(e){var t=e.onClose,a=e.onLanguageOpen,i=e.onTimeFormatOpen,l=e.ref;r("vulture")("HwLyWc5lSm6nLsMuJOnqOYUA_MM=");var u=d(""),m=u[0],_=u[1],f=r("useWAWebAsync")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebLocaleToLanguages").getLanguageNames(),t=r("WAWebL10N").getLocale();e.forEach(function(e,n){n===t&&_(e)})}),[]),g=s._(/*BTDS*/"24 horas"),h=s._(/*BTDS*/"12 horas"),y=null;return f.loading||f.error?y=c.jsx(o("WAWebSpinner.react").Spinner,{}):y=c.jsx(r("WAWebDrawerBody.react"),{children:c.jsxs(r("WAWebDrawerSection.react"),{theme:"padding",animation:!1,children:[c.jsx(p,{title:o("WAWebSettingsFBT").languageTitle(),onClick:a,isLastItem:!1,children:c.jsx("span",{children:m})}),c.jsx(p,{title:o("WAWebSettingsFBT").timeFormatTitle(),onClick:i,isLastItem:!0,children:c.jsx("span",{children:o("WAWebClock").Clock.getIs24Hour()?g:h})})]})}),c.jsxs(r("WAWebDrawer.react"),{ref:l,theme:"striped",testid:void 0,children:[c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:o("WAWebSettingsFBT").languageAndTimeTitle(),onBack:t,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),c.jsx(r("WAWebDrawerBody.react"),{children:y})]})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.children,n=e.isLastItem,a=e.onClick,i=e.title;return r("vulture")("bDxaUJXDn2ueULhe6OvVbr0qr7I="),c.jsx(r("WAWebDrawerItem.react"),{title:i,theme:"privacy",icon:o("WAWebPrivacySettingsDrawer.react").getChevronIcon(),onClick:a,isLastItem:n,testid:void 0,children:t})}p.displayName=p.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebConfirmLanguageModal.react",["fbt","WAWebConfirmPopup.react","WAWebL10N","WAWebL10NConstants","WAWebModalManager","WAWebSettingsSyncBridge","asyncToGeneratorRuntime","react","vulture"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){o("WAWebSettingsSyncBridge").sendSettingChange("language",e,"app"),yield r("WAWebL10N").setLocale(e,o("WAWebL10NConstants").L10N_PRIORITY.SAVED,!0),o("WAWebModalManager").ModalManager.close()});return function(n){return e.apply(this,arguments)}})();function d(e){var t=e.newLanguage,n=e.newLocale;return r("vulture")("MqdxC6cIk8RmFF4LADLCE4v9ONU="),u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas cambiar el idioma?"),onOK:function(){return c(n)},okText:s._(/*BTDS*/"Establecer {language-name} como idioma",[s._param("language-name",t)]),onCancel:m,cancelText:s._(/*BTDS*/"Cancelar"),children:s._(/*BTDS*/"Para cambiar el idioma a {language-name}, es necesario volver a cargar la p\u00e1gina.",[s._param("language-name",t)])})}d.displayName=d.name+" [from "+i.id+"]";function m(){o("WAWebModalManager").ModalManager.close()}l.default=d}),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","vulture"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=r("react")),d=(s||(s=o("react"))).useState;function m(t){var a=t.onClose,i=t.ref;r("vulture")("DXYBM58sNSx8o5bXw0d5cEUUAm8=");var l=d(o("WAWebL10nGetRenderedLocale").WAWebL10nGetRenderedLocale()),s=l[0],u=l[1],m=d([]),p=m[0],_=m[1];function f(){return g.apply(this,arguments)}function g(){return g=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=r("WAWebL10N").getLocale(),t=yield o("WAWebLocaleToLanguages").getLanguageNames(e);return t}),g.apply(this,arguments)}function h(){return y.apply(this,arguments)}function y(){return y=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebLocaleToLanguages").getLanguageNames();return e}),y.apply(this,arguments)}var C=r("useWAWebAsync")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=yield h(),n=yield f(),a=r("WAWebL10N").getLocale(),i=[];n.forEach(function(e,n){n===a&&u(n);var r=t.get(n);r!=null&&i.push({language:r,language_native:e,locale:n})}),i.sort(function(e,t){return e.localet.locale?1:0}),i.length===0&&o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[l10n] WAWebLanguageDrawer: No languages found, likely an issue with getLanguageNames"]))),_(i)}),[]);function b(e,t){u(e),o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebConfirmLanguageModal.react"),{newLocale:e,newLanguage:t}))}var v=null;return C.loading||C.error?v=c.jsx(o("WAWebSpinner.react").Spinner,{}):v=c.jsx(o("WAWebRadio.react").RadioGroup,{name:"language",theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:s,options:p.map(function(e){return{value:e.locale,label:e.language,secondaryLabel:e.language_native,onChange:function(){return b(e.locale,e.language)}}})}),c.jsxs(r("WAWebDrawer.react"),{ref:i,testid:void 0,children:[c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:o("WAWebSettingsFBT").languageTitle(),onBack:a,focusBackOrCancel:!0,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),c.jsx(r("WAWebDrawerBody.react"),{children:c.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[c.jsx(o("WAWebText.react").WAWebTextSectionTitle,{margin:[32,0,16,0],children:o("WAWebSettingsFBT").languageHeaderTitle()}),v]})})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebMediaAutoDownloadDrawer.react",["fbt","WAWebAutoDownloadSettings.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onClose,n=e.ref;return u.jsxs(r("WAWebDrawer.react"),{ref:n,children:[u.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:s._(/*BTDS*/"Descarga autom\u00e1tica de archivos multimedia"),onBack:t,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),u.jsx(r("WAWebDrawerBody.react"),{children:u.jsx(r("WAWebAutoDownloadSettings.react"),{},"auto-download")})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebMediaUploadQualitySettings.react",["fbt","WAWebChatPreferenceCollection","WAWebDrawerSection.react","WAWebProtobufSyncAction.pb","WAWebRadio.react","WAWebText.react","WAWebUISpacing","react","stylex","useWAWebModelValues","useWAWebSettingSync"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d=[{value:"sd",label:function(){return c.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiMargin.bottom8),{children:[s._(/*BTDS*/"Calidad est\u00e1ndar"),c.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Los archivos multimedia est\u00e1ndar ocupan menos espacio de almacenamiento y se env\u00edan m\u00e1s r\u00e1pido.")})]}))}},{value:"hd",label:function(){return c.jsxs(c.Fragment,{children:[s._(/*BTDS*/"Calidad HD"),c.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"El env\u00edo de los archivos multimedia HD es m\u00e1s lento, pero los archivos pueden ser 6 veces m\u00e1s grandes.")})]})}}];function m(){var e=o("useWAWebModelValues").useModelValues(r("WAWebChatPreferenceCollection").getDefault(),["hdMediaEnabled"]),t=o("useWAWebSettingSync").useSettingSync("mediaUploadQuality",function(t){e.set("hdMediaEnabled",t===o("WAWebProtobufSyncAction.pb").SyncActionValue$SettingsSyncAction$MediaQualitySetting.HD)}),n=function(n){var e=n==="hd"?o("WAWebProtobufSyncAction.pb").SyncActionValue$SettingsSyncAction$MediaQualitySetting.HD:o("WAWebProtobufSyncAction.pb").SyncActionValue$SettingsSyncAction$MediaQualitySetting.STANDARD;t(e)};return c.jsx(r("WAWebDrawerSection.react"),{animation:!1,xstyle:[o("WAWebUISpacing").uiPadding.horiz30,o("WAWebUISpacing").uiPadding.vert20],children:c.jsx(o("WAWebRadio.react").RadioGroup,{name:"radio-media-upload-quality",theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:e.hdMediaEnabled?"hd":"sd",options:d.map(function(e){var t=e.label,r=e.value;return{value:r,label:t(),onChange:function(){return n(r)},xstyle:o("WAWebUISpacing").uiPadding.vert18}})})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebMediaUploadQualityDrawer.react",["WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebMediaUploadQualitySettings.react","WAWebSettingsFBT","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.onClose,n=e.ref;return s.jsxs(r("WAWebDrawer.react"),{ref:n,children:[s.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:o("WAWebSettingsFBT").mediaUploadQualityTitle(),onBack:t,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),s.jsx(r("WAWebDrawerBody.react"),{children:s.jsx(r("WAWebMediaUploadQualitySettings.react"),{},"media-quality")})]})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMexCreateReportAppealJobMutation.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"reason"},t={defaultValue:null,kind:"LocalArgument",name:"report_id"},n={alias:null,args:null,kind:"ScalarField",name:"report_id",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},o=[{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:[n,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},r,{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,kind:"ScalarField",name:"response_server_msg_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notify_name",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},r,n,{alias:null,args:null,kind:"ScalarField",name:"appeal_id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t],kind:"Fragment",metadata:null,name:"WAWebMexCreateReportAppealJobMutation",selections:o,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[t,e],kind:"Operation",name:"WAWebMexCreateReportAppealJobMutation",selections:o},params:{id:"25877334095205200",metadata:{},name:"WAWebMexCreateReportAppealJobMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("WAWebMexCreateReportAppealJob",["WAWebBackendErrors","WAWebMexClient","WAWebMexCreateReportAppealJobMutation.graphql","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=e!==void 0?e:e=n("WAWebMexCreateReportAppealJobMutation.graphql");function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.reason,n=e.reportId,r={report_id:n,reason:t},a=yield o("WAWebMexClient").fetchQuery(s,r);if((a==null?void 0:a.xwa2_create_channel_report_appeal_v2)==null)throw new(o("WAWebBackendErrors")).ServerStatusCodeError(500,"Mex unexpected null response for creating newsletter report appeal");return a}),c.apply(this,arguments)}l.mexCreateReportAppeal=u}),98); __d("WAWebNewsletterReportModelUtils",["WAWebWidFactory"],(function(t,n,r,o,a,i,l){function e(e){var t;return{id:e.report_id,reportStatus:e.status,creationTime:Number(e.creation_time),newsletterName:e.channel_name,newsletterId:o("WAWebWidFactory").createWid(e.channel_jid),serverMsgId:e.server_msg_id!=null?Number(e.server_msg_id):null,responseServerMsgId:e.response_server_msg_id!=null?Number(e.response_server_msg_id):null,notifyName:e.notify_name,appeal:{state:e.appeal.state,appealReason:e.appeal.appeal_reason,creationTime:e.appeal.creation_time!=null?Number(e.appeal.creation_time):null,reportId:e.appeal.report_id,appealId:(t=e.appeal.appeal_id)!=null?t:""}}}l.mapMexReportToNewsletterReport=e}),98); __d("WAWebCreateReportAppealJob",["WAJobOrchestratorTypes","WAWebMexCreateReportAppealJob","WAWebNewsletterReportModelUtils","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("createReportAppeal",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=yield o("WAWebMexCreateReportAppealJob").mexCreateReportAppeal(e),n=t.xwa2_create_channel_report_appeal_v2;return o("WAWebNewsletterReportModelUtils").mapMexReportToNewsletterReport(n)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}),s.apply(this,arguments)}l.createReportAppeal=e}),98); __d("WAWebNewsletterCreateReportAppealAction",["WALogger","WAWebCreateReportAppealJob","WAWebNewsletterBridgeApi","WAWebNewsletterMetadataCollection","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e;function s(e){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){try{var n=yield o("WAWebCreateReportAppealJob").createReportAppeal(t);if(n.newsletterName==null){var a;n.newsletterName=(a=r("WAWebNewsletterMetadataCollection").get(n.newsletterId))==null?void 0:a.name}o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterReport({report:n})}catch(t){throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[DSAR] createNewsletterReportAppealAction failed"]))).tags("newsletter","wa-ice","DSAR").sendLogs("newsletter-create-report-appeal-action"),t}}),u.apply(this,arguments)}l.createNewsletterReportAppealAction=s}),98); __d("WAWebNewsletterDSAReportDetailsDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebNewsletterDSAReportDetailsDrawer.react").__setRef("WAWebNewsletterDSAReportDetailsDrawerLoadable").load();return e}),"NewsletterDSAReportDetailsDrawer"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.NewsletterDSAReportDetailsDrawerLoadable=c}),98); __d("WAWebDSADateUtils",["fbt","WAWebClock"],(function(t,n,r,o,a,i,l,s){"use strict";function e(e){if(e!=null)return o("WAWebClock").Clock.dsaDisplayDate(Number(e))}function u(t){return s._(/*BTDS*/"{enforcement_creation_time}",[s._param("enforcement_creation_time",e(t==null?void 0:t.toString()))])}l.getDSADateDisplayString=e,l.getSectionSubtitle=u}),226); __d("WAWebLocationSearchingIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="location-searching";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M11 22v-1q-3.125-.35-5.363-2.587Q3.4 16.175 3.05 13.05h-1a.97.97 0 0 1-.713-.288.97.97 0 0 1-.287-.712q0-.424.287-.713a.97.97 0 0 1 .713-.287h1q.35-3.124 2.587-5.363Q7.875 3.45 11 3.1v-1q0-.424.287-.713A.97.97 0 0 1 12 1.1q.424 0 .712.287.288.288.288.713v1q3.124.35 5.362 2.587t2.588 5.363h1q.424 0 .712.287.288.288.288.713 0 .424-.288.712a.97.97 0 0 1-.712.288h-1q-.35 3.124-2.588 5.363Q16.125 20.65 13 21v1q0 .424-.288.712A.97.97 0 0 1 12 23a.97.97 0 0 1-.713-.288A.97.97 0 0 1 11 22m1-2.95q2.9 0 4.95-2.05T19 12.05 16.95 7.1 12 5.05q-2.901 0-4.95 2.05T5 12.05 7.05 17 12 19.05",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.LocationSearchingIcon=m}),98); __d("WAWebNewsletterLearnMoreModal.react",["WAWebConfirmPopup.react","WAWebEnforcementActionLogging","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebNewsletterModalsUtils.react","WAWebText.react","WAWebUISpacing","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useCallback,d={icon:{backgroundColor:"x1i3zgry",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",color:"xijeqtt",$$css:!0},textCenter:{textAlign:"x2b8uid",$$css:!0}};function m(e){o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,"close_modal",function(){r("WAWebEnforcementActionLogging").logDismissModalClick()});var t=c(function(){o("WAWebModalManager").ModalManager.close()},[]),n=e.Icon,a=e.paragraphs,i=e.sections,l=e.title;return u.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{okText:r("WAWebFbtCommon")("Close"),onOK:t,children:[n!=null&&u.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:u.jsx(n,{width:48,height:48,xstyle:[o("WAWebUISpacing").uiPadding.all24,d.icon]})}),u.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",padding:24,children:u.jsx(o("WAWebText.react").WAWebTextLarge,{weight:"medium",color:"primary",children:l})}),u.jsx(o("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",children:a==null?void 0:a.map(function(e){return u.jsx(o("WAWebText.react").WAWebTextTitle,{color:"primary",paddingBottom:16,xstyle:d.textCenter,children:e.content()},e.key)})}),u.jsx(o("WAWebFlex.react").FlexColumn,{align:"center",justify:"start",children:i==null?void 0:i.map(function(e){return u.jsxs(o("WAWebFlex.react").FlexColumn,{children:[e.title!=null&&u.jsx(o("WAWebText.react").WAWebTextSectionTitle,{color:"primary",paddingBottom:16,children:e.title()}),u.jsx(o("WAWebNewsletterModalsUtils.react").BulletPointList,{bullets:e.bullets})]},e.key)})})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebStatusVcardIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="status-vcard";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=20,R=14;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 14 20",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 14 20",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M6.844,9.975c1.657,0,3-1.343,3-3s-1.343-3-3-3s-3,1.343-3,3S5.187,9.975,6.844,9.975z M12.603,13.062c-0.884-0.845-3.136-1.587-5.721-1.587c-2.584,0-4.739,0.742-5.622,1.587C1.057,13.257,1,13.526,1,13.808v1.679h12 v-1.679C13,13.526,12.807,13.256,12.603,13.062z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.StatusVcardIcon=m}),98); __d("WAWebNewsletterDSAModals.react",["fbt","WAWebBusinessWebsiteIcon.react","WAWebCommonNewsletterEnums","WAWebEnforcementActionLogging","WAWebExternalLink.react","WAWebFaqUrl","WAWebLocationSearchingIcon.react","WAWebNewsletterLearnMoreModal.react","WAWebNullFunc","WAWebSettingsDocumentIcon.react","WAWebStatusVcardIcon.react","WAWebSvgComponentBase","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=[{key:"dsa-guidelines-modal-first-paragraph",content:function(){return s._(/*BTDS*/"Para ayudar a mantener la seguridad de WhatsApp, requerimos que todas las actualizaciones compartidas sigan nuestras Normas de los canales y cualquier ley local.")}},{key:"dsa-guidelines-modal-second-paragraph",content:function(){return s._(/*BTDS*/"Si sigues nuestras {=m1} y las leyes locales, ayudar\u00e1s a mantener tu canal abierto para todos los seguidores.",[s._implicitParam("=m1",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:d,children:s._(/*BTDS*/"Normas de los canales")}))])}}];return u.jsx(r("WAWebNewsletterLearnMoreModal.react"),{title:s._(/*BTDS*/"C\u00f3mo mantener tu canal abierto"),paragraphs:e})}c.displayName=c.name+" [from "+i.id+"]";function d(){r("WAWebEnforcementActionLogging").logChannelGuidelinesClick()}function m(e){switch(e){case o("WAWebCommonNewsletterEnums").NewsletterDSADecisionModalCategory.RM_COPS:case o("WAWebCommonNewsletterEnums").NewsletterDSADecisionModalCategory.IP_SRT_VIOLATION:return s._(/*BTDS*/"Un tercero report\u00f3 tu contenido porque infringe sus derechos de propiedad intelectual, lo cual no sigue nuestras {=m1}. Como resultado, tomamos medidas.",[s._implicitParam("=m1",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:d,children:s._(/*BTDS*/"Normas de los canales")}))]);case o("WAWebCommonNewsletterEnums").NewsletterDSADecisionModalCategory.RM_PRODUCT_RESTRICTION:case o("WAWebCommonNewsletterEnums").NewsletterDSADecisionModalCategory.GENERIC_VIOLATION:return s._(/*BTDS*/"Nuestra tecnolog\u00eda detect\u00f3 que tu actualizaci\u00f3n no sigue nuestras {=m1}. Como resultado, tomamos medidas.",[s._implicitParam("=m1",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:d,children:s._(/*BTDS*/"Normas de los canales")}))]);case o("WAWebCommonNewsletterEnums").NewsletterDSADecisionModalCategory.LEGAL_TDR:return s._(/*BTDS*/"Un tercero report\u00f3 tu contenido por no seguir las leyes locales, lo que no sigue nuestras {=m1}. Como resultado, tomamos medidas.",[s._implicitParam("=m1",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:d,children:s._(/*BTDS*/"Normas de los canales")}))]);case o("WAWebCommonNewsletterEnums").NewsletterDSADecisionModalCategory.RESPONSE_VIOLATES_GUIDELINES:return s._(/*BTDS*/"Nuestras tecnolog\u00edas revisaron tu reporte para asegurarnos de que todas las respuestas sigan nuestras {=m1}.",[s._implicitParam("=m1",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:d,children:s._(/*BTDS*/"Normas de los canales")}))])}}function p(e){var t=e.DSADecisionModalCategory,n=[{key:"dsa-decision-modal-first-paragraph",content:function(){return m(t)}}],a=[{key:"dsa-decision-modal-first-section",bullets:[{Icon:o("WAWebBusinessWebsiteIcon.react").BusinessWebsiteIcon,iconColor:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,text:o("WAWebNullFunc").returnNull,subtext:function(){return s._(/*BTDS*/"WhatsApp aplica las mismas Normas de los canales en todo el mundo.")}},{Icon:o("WAWebLocationSearchingIcon.react").LocationSearchingIcon,iconColor:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,text:o("WAWebNullFunc").returnNull,subtext:function(){return s._(/*BTDS*/"Nuestra tecnolog\u00eda y nuestros equipos trabajan en diferentes idiomas para garantizar que las Normas de los canales se apliquen de forma consistente.")}}]}];return u.jsx(r("WAWebNewsletterLearnMoreModal.react"),{title:s._(/*BTDS*/"C\u00f3mo tomamos esta decisi\u00f3n"),paragraphs:n,sections:a})}p.displayName=p.name+" [from "+i.id+"]";function _(){var e=[{key:"dsa-eu-notice-modal-first-paragraph",content:function(){return s._(/*BTDS*/"Adem\u00e1s de la opci\u00f3n de solicitarnos una revisi\u00f3n, tambi\u00e9n tienes otras opciones.")}}],t=[{key:"dsa-eu-notice-modal-first-section",bullets:[{Icon:o("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon,iconColor:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,text:o("WAWebNullFunc").returnNull,subtext:function(){return s._(/*BTDS*/"Es posible que tengas derecho a impugnar nuestra decisi\u00f3n ante un tribunal.")}},{Icon:o("WAWebStatusVcardIcon.react").StatusVcardIcon,iconColor:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,text:o("WAWebNullFunc").returnNull,subtext:function(){return s._(/*BTDS*/"Es posible que puedas remitir nuestra decisi\u00f3n a un organismo de resoluci\u00f3n de litigios certificado.")}}]}];return u.jsx(r("WAWebNewsletterLearnMoreModal.react"),{title:s._(/*BTDS*/"Informaci\u00f3n para las personas en la UE"),paragraphs:e,sections:t})}_.displayName=_.name+" [from "+i.id+"]",l.NewsletterDSAGuidelinesModal=c,l.logChannelGuidelinesClick=d,l.NewsletterDSADecisionModal=p,l.NewsletterDSAEUNoticeModal=_}),226); __d("WAWebNewsletterIntegrityUtils",["fbt","WAWebCommonNewsletterEnums","WAWebCommonNewsletterIntegrityStrings","WAWebContactFormsUrl","WAWebDSADateUtils","WAWebEnforcementActionLogging","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtIntlList","WAWebNewsletterDSAModals.react","WAWebNewsletterGatingUtils","WAWebToast.react","WAWebToastManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={seeRule:{color:"x1v5yvga",cursor:"x1ypdohk",$$css:!0}};function d(){var e=o("WAWebToast.react").genId(),t=s._(/*BTDS*/"No se pudo solicitar la revisi\u00f3n.");o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{msg:t,id:e}))}function m(){var e=o("WAWebToast.react").genId(),t=s._(/*BTDS*/"Revisi\u00f3n solicitada");o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{msg:t,id:e}))}function p(){var e=o("WAWebToast.react").genId(),t=s._(/*BTDS*/"No se pudo obtener el n\u00famero de referencia.");o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{msg:t,id:e}))}function _(e){return s._(/*BTDS*/"Fecha de solicitud: {review_request_date}",[s._param("review_request_date",o("WAWebDSADateUtils").getDSADateDisplayString(e.toString()))])}_.displayName=_.name+" [from "+i.id+"]";function f(e,t){switch(t){case o("WAWebCommonNewsletterEnums").EnforcementType.GEOSUSPEND:case o("WAWebCommonNewsletterEnums").EnforcementType.SUSPEND:return e==="PENDING"?o("WAWebCommonNewsletterIntegrityStrings").getChannelInReviewTitleString():o("WAWebCommonNewsletterIntegrityStrings").getChannelReviewCompletedString();case o("WAWebCommonNewsletterEnums").EnforcementType.SUSPEND_INFORM:case o("WAWebCommonNewsletterEnums").EnforcementType.GEOSUSPEND_INFORM:case o("WAWebCommonNewsletterEnums").EnforcementType.VIOLATING_MSG:return e==="PENDING"?s._(/*BTDS*/"Actualizaci\u00f3n en revisi\u00f3n"):s._(/*BTDS*/"Se complet\u00f3 la revisi\u00f3n de la actualizaci\u00f3n");case o("WAWebCommonNewsletterEnums").EnforcementType.PROFILE_PICTURE_DELETION:return e==="PENDING"?o("WAWebCommonNewsletterIntegrityStrings").getProfilePictureDeletionInReviewTitleString():o("WAWebCommonNewsletterIntegrityStrings").getProfilePictureDeletionReviewCompletedString()}}function g(){r("WAWebEnforcementActionLogging").logSeeRuleClick()}function h(e,t){switch(t){case o("WAWebCommonNewsletterEnums").EnforcementType.GEOSUSPEND:{switch(e){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getChannelInReviewTitleString();case"REJECT":case"SUCCESS":return o("WAWebCommonNewsletterIntegrityStrings").getChannelReviewCompletedString()}break}case o("WAWebCommonNewsletterEnums").EnforcementType.GEOSUSPEND_INFORM:case o("WAWebCommonNewsletterEnums").EnforcementType.VIOLATING_MSG:{switch(e){case"PENDING":return s._(/*BTDS*/"Actualizaci\u00f3n en revisi\u00f3n");case"REJECT":case"SUCCESS":case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getUpdateReviewCompletedString()}break}case o("WAWebCommonNewsletterEnums").EnforcementType.SUSPEND_INFORM:{switch(e){case"PENDING":return s._(/*BTDS*/"Actualizaci\u00f3n en revisi\u00f3n");case"REJECT":case"SUCCESS":case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getUpdateReviewCompletedString()}break}case o("WAWebCommonNewsletterEnums").EnforcementType.SUSPEND:{switch(e){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getChannelInReviewTitleString();case"REJECT":case"SUCCESS":return o("WAWebCommonNewsletterIntegrityStrings").getChannelReviewCompletedString()}break}case o("WAWebCommonNewsletterEnums").EnforcementType.PROFILE_PICTURE_DELETION:{switch(e){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getProfilePictureDeletionInReviewTitleString();case"REJECT":case"SUCCESS":case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getProfilePictureDeletionReviewCompletedString()}break}}}function y(e){var t=e.appealOutcome,n=e.countries,a=e.enforcementType,i=e.enforcementViolationCategory,l=n==null?void 0:n.map(function(e){return e.countryName}),c=l!=null?r("WAWebFbtIntlList")(l,r("WAWebFbtIntlList").CONJUNCTIONS.NONE,r("WAWebFbtIntlList").DELIMITERS.COMMA):null;switch(a){case o("WAWebCommonNewsletterEnums").EnforcementType.GEOSUSPEND_INFORM:{switch(t){case"PENDING":return s._(/*BTDS*/"Se est\u00e1 revisando tu actualizaci\u00f3n. Recibir\u00e1s noticias en unos d\u00edas.");case"REJECT":return s._(/*BTDS*/"No se restaur\u00f3 tu actualizaci\u00f3n. El titular de los derechos no renunci\u00f3 a su reclamo.");case"SUCCESS":return s._(/*BTDS*/"Se restaur\u00f3 tu actualizaci\u00f3n. El propietario de los derechos renunci\u00f3 a su reclamo, y se determin\u00f3 que esta actualizaci\u00f3n sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]);case"CONTENT_UNAVAILABLE":return s._(/*BTDS*/"Se cerr\u00f3 tu revisi\u00f3n porque esta actualizaci\u00f3n ya no est\u00e1 disponible en tu canal. Es posible que haya caducado despu\u00e9s de 30 d\u00edas o que un administrador del canal la haya eliminado.")}break}case o("WAWebCommonNewsletterEnums").EnforcementType.GEOSUSPEND:{switch(t){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getChannelInReviewString();case"REJECT":return(n==null?void 0:n.length)!==0?s._(/*BTDS*/"Tu canal sigue cerrado en estos pa\u00edses: {list_of_suspended_country}. Nuestro equipo de Soporte confirm\u00f3 que no sigue nuestras {=m5} o las leyes locales.",[s._param("list_of_suspended_country",c),s._implicitParam("=m5",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]):null;case"SUCCESS":return(n==null?void 0:n.length)!==0?s._(/*BTDS*/"Se volvi\u00f3 a abrir tu canal en estos pa\u00edses: {list_of_suspended_country}. Nuestro equipo de Soporte determin\u00f3 que sigue nuestras {=m5}.",[s._param("list_of_suspended_country",c),s._implicitParam("=m5",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]):null}break}case o("WAWebCommonNewsletterEnums").EnforcementType.VIOLATING_MSG:{switch(t){case"PENDING":return s._(/*BTDS*/"Nuestro equipo de Soporte est\u00e1 revisando tu actualizaci\u00f3n. Recibir\u00e1s noticias en unos d\u00edas.");case"REJECT":return s._(/*BTDS*/"El equipo de Soporte confirm\u00f3 que esta actualizaci\u00f3n no sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]);case"SUCCESS":return s._(/*BTDS*/"El equipo de Soporte determin\u00f3 que esta actualizaci\u00f3n sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]);case"CONTENT_UNAVAILABLE":return s._(/*BTDS*/"Se cerr\u00f3 tu revisi\u00f3n porque esta actualizaci\u00f3n ya no est\u00e1 disponible en tu canal. Es posible que haya caducado despu\u00e9s de 30 d\u00edas o que un administrador del canal la haya eliminado.")}break}case o("WAWebCommonNewsletterEnums").EnforcementType.SUSPEND_INFORM:{switch(t){case"PENDING":return s._(/*BTDS*/"Se est\u00e1 revisando tu actualizaci\u00f3n. Recibir\u00e1s noticias en unos d\u00edas.");case"REJECT":return s._(/*BTDS*/"No se restaur\u00f3 tu actualizaci\u00f3n. El titular de los derechos no renunci\u00f3 a su reclamo.");case"SUCCESS":return s._(/*BTDS*/"Se restaur\u00f3 tu actualizaci\u00f3n. El propietario de los derechos renunci\u00f3 a su reclamo, y se determin\u00f3 que esta actualizaci\u00f3n sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]);case"CONTENT_UNAVAILABLE":return s._(/*BTDS*/"Se cerr\u00f3 tu revisi\u00f3n porque esta actualizaci\u00f3n ya no est\u00e1 disponible en tu canal. Es posible que haya caducado despu\u00e9s de 30 d\u00edas o que un administrador del canal la haya eliminado.")}break}case o("WAWebCommonNewsletterEnums").EnforcementType.SUSPEND:{switch(t){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getChannelInReviewString();case"REJECT":return s._(/*BTDS*/"Tu canal sigue cerrado. El equipo de Soporte confirm\u00f3 que este canal no sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]);case"SUCCESS":return s._(/*BTDS*/"Se volvi\u00f3 a abrir tu canal. Nuestro equipo de WhatsApp determin\u00f3 que sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))])}break}case o("WAWebCommonNewsletterEnums").EnforcementType.PROFILE_PICTURE_DELETION:{switch(t){case"PENDING":return s._(/*BTDS*/"Nuestro equipo de Soporte est\u00e1 revisando tu foto del perfil. Recibir\u00e1s noticias en unos d\u00edas.");case"REJECT":return s._(/*BTDS*/"Tu foto del perfil no sigue nuestras {=m2} sobre {violation_category_text}",[s._param("violation_category_text",C(i)),s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))]);case"SUCCESS":return s._(/*BTDS*/"Se restaur\u00f3 tu foto del perfil. Nuestro equipo de Soporte determin\u00f3 que este canal sigue nuestras {=m2}.",[s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))])}break}}}function C(e){if(e==null)return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterGenericViolationPolicyString();switch(e){case"ADULT_SEXUAL_EXPLOITATION":return s._(/*BTDS*/"la exhibici\u00f3n o promoci\u00f3n de violencia o explotaci\u00f3n sexual.");case"ADULT_SEXUAL_SOLICITATION":return s._(/*BTDS*/"contenido sexual expl\u00edcito u organizaci\u00f3n de servicios sexuales comerciales.");case"BULLYING_AND_HARASSMENT":return s._(/*BTDS*/"amenazas, intimidaci\u00f3n o acoso.");case"CHILD_SEXUAL_EXPLOITATION":return s._(/*BTDS*/"contenido que podr\u00eda poner en peligro a los ni\u00f1os o muestra abuso infantil o explotaci\u00f3n sexual infantil.");case"COORDINATING_HARM_AND_PROMOTING_CRIME":return s._(/*BTDS*/"el incentivo, la promoci\u00f3n o la ayuda para coordinar da\u00f1os o cr\u00edmenes.");case"CYBERSECURITY":return s._(/*BTDS*/"riesgos de ciberseguridad que podr\u00edan da\u00f1ar a otras personas.");case"DANGEROUS_INDIVIDUALS_AND_ORGS":return s._(/*BTDS*/"muestras de apoyo a grupos o personas terroristas, que incitan al odio o criminales.");case"FRAUD_AND_DECEPTION":return s._(/*BTDS*/"la participaci\u00f3n en fraudes o estafas.");case"GRAPHIC_VIOLENCE":return s._(/*BTDS*/"contenido demasiado violento o gr\u00e1fico.");case"HARMFUL_HEALTH":return s._(/*BTDS*/"contenido que podr\u00eda da\u00f1ar a las personas.");case"HATE":return s._(/*BTDS*/"contenidos que supongan amenazas, inciten al odio o sean ofensivos desde el punto de vista racial.");case"HUMAN_EXPLOITATION":return s._(/*BTDS*/"la promoci\u00f3n o facilitaci\u00f3n de trata o explotaci\u00f3n de personas, violencia o explotaci\u00f3n sexual.");case"INTELLECTUALPROPERTY_RIGHTS":return s._(/*BTDS*/"la infracci\u00f3n de los derechos de propiedad intelectual.");case"PLATFORM_POLICY":return s._(/*BTDS*/"el uso legalmente aceptable para el cumplimiento internacional.");case"PORN":return s._(/*BTDS*/"contenido gr\u00e1fico o sexual.");case"PRIVACY_VIOLATION":return s._(/*BTDS*/"riesgos de privacidad y tergiversaci\u00f3n.");case"REGULATED_GOODS":return s._(/*BTDS*/"la compra, venta o intercambio de bienes regulados o restringidos.");case"SPAM":return s._(/*BTDS*/"spam y riesgos de ciberseguridad.");case"SSI":return s._(/*BTDS*/"contenido que podr\u00eda incitar al suicidio o la autolesi\u00f3n.");case"VIOLENCE_AND_INCITEMENT":return s._(/*BTDS*/"la incitaci\u00f3n a la violencia o el da\u00f1o f\u00edsico, o las amenazas a la seguridad p\u00fablica.");case"IP_COUNTERFEIT_REPORTED":case"IP_TRADEMARK_REPORTED":return s._(/*BTDS*/"infracci\u00f3n de los derechos de propiedad intelectual, incluidas nuestras pol\u00edticas sobre marcas comerciales.");case"IP_COPYRIGHT_REPORTED":return s._(/*BTDS*/"infracci\u00f3n de los derechos de propiedad intelectual, incluidas nuestras pol\u00edticas sobre derechos de autor.");case"IP_REPEAT_INFRINGEMENT_REPORTED":return s._(/*BTDS*/"infracci\u00f3n de los derechos de propiedad intelectual.");case"SUICIDE_OR_SELFINJURY":case"HATESPEECH":case"UNKNOWN":default:return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterGenericViolationPolicyString()}}function b(e){return s._(/*BTDS*/"Algunas de las actualizaciones que se compartieron en este canal no siguen nuestras {=m1} sobre {violation_category_text}",[s._param("violation_category_text",C(e)),s._implicitParam("=m1",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))])}b.displayName=b.name+" [from "+i.id+"]";function v(e,t){return t!=null?s._(/*BTDS*/"Esta actualizaci\u00f3n contiene material protegido por derechos de autor de {rights_holder_name}. {=m4}",[s._param("rights_holder_name",t.name),s._implicitParam("=m4",u.jsx(o("WAWebExternalLink.react").ExternalLink,{onClick:g,xstyle:c.seeRule,href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),children:s._(/*BTDS*/"Ver norma")}))]):s._(/*BTDS*/"Esta actualizaci\u00f3n no sigue nuestras Normas de los canales sobre {violation_category_text} {=m4}",[s._param("violation_category_text",C(e)),s._implicitParam("=m4",u.jsx(o("WAWebExternalLink.react").ExternalLink,{onClick:g,xstyle:c.seeRule,href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),children:s._(/*BTDS*/"Ver regla")}))])}function S(e){return s._(/*BTDS*/"Tu foto del perfil no sigue nuestras {=m2} sobre {violation_category_text}",[s._param("violation_category_text",C(e)),s._implicitParam("=m2",u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getNewsletterGuidelinesFaqUrl(),onClick:o("WAWebNewsletterDSAModals.react").logChannelGuidelinesClick,children:s._(/*BTDS*/"Normas de los canales")}))])}S.displayName=S.name+" [from "+i.id+"]";function R(e){return e.reportStatus==="PENDING"||e.appeal.state==="PENDING"?s._(/*BTDS*/"Reporte en revisi\u00f3n"):s._(/*BTDS*/"Reporte revisado")}R.displayName=R.name+" [from "+i.id+"]";function L(e){return e.responseServerMsgId!=null&&o("WAWebNewsletterGatingUtils").isNewsletterIntegrityQuestionsM1Enabled()===!0?e.notifyName!=null?s._(/*BTDS*/"Reportaste una respuesta de {sender_name} a una pregunta del canal",[s._param("sender_name",e.notifyName)]):s._(/*BTDS*/"Reportaste una respuesta a una pregunta del canal"):e.serverMsgId!=null?e.newsletterName!=null?s._(/*BTDS*/"Reportaste una actualizaci\u00f3n que se comparti\u00f3 en {channel_name}",[s._param("channel_name",e.newsletterName)]):s._(/*BTDS*/"Reportaste una actualizaci\u00f3n que se comparti\u00f3 en un canal"):e.newsletterName!=null?s._(/*BTDS*/"Reportaste {channel_name}",[s._param("channel_name",e.newsletterName)]):s._(/*BTDS*/"Reportaste un canal")}function E(e){if(e.newsletterName==null)return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportClosedNullNewsletterNameDescription();if(e.responseServerMsgId!=null&&o("WAWebNewsletterGatingUtils").isNewsletterIntegrityQuestionsM1Enabled()===!0)switch(e.reportStatus){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportPendingDescription();case"SUCCESS":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterResponseReportSuccessDescription();case"FAIL":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterResponseReportFailDescription();case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterResponseReportContentUnavailableDescription()}switch(e.reportStatus){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportPendingDescription();case"SUCCESS":return e.serverMsgId!=null?o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportMessageLevelSuccessDescription():o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportSuccessDescription();case"FAIL":return e.serverMsgId!=null?o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportMessageLevelFailDescription():o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportFailDescription();case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportContentUnavailableDescription()}}function k(e){if(e.newsletterName==null)return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportClosedNullNewsletterNameDescription();if(e.responseServerMsgId!=null&&o("WAWebNewsletterGatingUtils").isNewsletterIntegrityQuestionsM1Enabled()===!0)switch(e.appeal.state){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportPendingDescription();case"SUCCESS":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterResponseReportSuccessDescription();case"REJECT":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterResponseReportFailDescription();case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterResponseReportContentUnavailableDescription()}switch(e.appeal.state){case"PENDING":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportPendingDescription();case"SUCCESS":return e.serverMsgId!=null?o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportMessageLevelSuccessDescription():o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportSuccessDescription();case"REJECT":return e.serverMsgId!=null?o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportMessageLevelFailDescription():o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportFailDescription();case"CONTENT_UNAVAILABLE":return o("WAWebCommonNewsletterIntegrityStrings").getNewsletterReportContentUnavailableDescription();case"NON_APPEALABLE":return null}}function I(e){if(o("WAWebNewsletterGatingUtils").isNewsletterReportUnlawfulContentEnabled())return o("WAWebFaqUrl").getReportUnlawfulContentWebFaqUrl();if(o("WAWebNewsletterGatingUtils").isNewsletterUKOSAReportingEnabled())return o("WAWebContactFormsUrl").getReportContentUKFormUrl(e)}l.showReviewSubmissionFailureToast=d,l.showReviewSubmissionSuccessToast=m,l.showDsbReferenceNumberFailureToast=p,l.getOutcomeListSubtitle=_,l.getOutcomeListTitle=f,l.getTitleBasedOnEnforcementTypeAndOutcome=h,l.getHeaderBodyTextBasedOnEnforcementTypeAndOutcome=y,l.getSuspendedNewsletterPolicyGuideline=b,l.getSuspendInformPolicyGuideline=v,l.getProfilePictureDeletionPolicyGuideline=S,l.getReportStatusString=R,l.getReportDetailsTitleString=L,l.getReportDetailsSubtitleString=E,l.getReportDetailsWithAppealInfoSubtitleString=k,l.getLearnMoreUrlForCompliance=I}),226); __d("WAWebNewsletterDSAReportsRow.react",["fbt","WAWebArrowForwardIcon.react","WAWebBusinessHoursIcon.react","WAWebCellV2.react","WAWebDSADateUtils","WAWebNewsletterIntegrityUtils","WAWebSettingsDocumentIcon.react","WAWebText.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={icon:{color:"xhslqc4",$$css:!0}};function d(e){var t=e.onReportClick,n=e.report,a={width:24,height:24,directional:!0,xstyle:c.icon},i=n.reportStatus==="PENDING"||n.appeal.state==="PENDING"?o("WAWebBusinessHoursIcon.react").BusinessHoursIcon:o("WAWebSettingsDocumentIcon.react").SettingsDocumentIcon,l=u.jsx(i,babelHelpers.extends({},a)),d=u.jsx(o("WAWebArrowForwardIcon.react").ArrowForwardIcon,babelHelpers.extends({},a)),m=u.jsx(o("WAWebText.react").WAWebTextTitle,{testid:void 0,textWrap:"wrap",children:u.jsx("span",{className:"report-id","data-testid":void 0,children:o("WAWebNewsletterIntegrityUtils").getReportStatusString(n)})}),p=u.jsxs(u.Fragment,{children:[n.newsletterName!=null&&u.jsx(o("WAWebText.react").WAWebTextMuted,{textWrap:"wrap",children:n.newsletterName}),u.jsx(o("WAWebText.react").WAWebTextMuted,{testid:void 0,textWrap:"wrap",children:n.appeal.creationTime!=null?s._(/*BTDS*/"Solicitud de revisi\u00f3n: {appeal_creation_time}",[s._param("appeal_creation_time",o("WAWebDSADateUtils").getDSADateDisplayString(n.appeal.creationTime))]):s._(/*BTDS*/"Fecha del reporte: {report_creation_time}",[s._param("report_creation_time",o("WAWebDSADateUtils").getDSADateDisplayString(n.creationTime))])})]});return u.jsx(r("WAWebCellV2.react"),{testid:void 0,size:"large",border:"bottom-full",detailLeft:l,detailLeftXStyle:o("WAWebUISpacing").uiPadding.top0,primary:m,secondary:p,detailRight:d,onClick:function(){return t(n)}})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebMexFetchNewsletterReportsJobQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"report_id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"creation_time",storageKey:null},n=[{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:[e,{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},t,{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,kind:"ScalarField",name:"response_server_msg_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"notify_name",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},t,e,{alias:null,args:null,kind:"ScalarField",name:"appeal_id",storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterReportsJobQuery",selections:n,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WAWebMexFetchNewsletterReportsJobQuery",selections:n},params:{id:"25246702401624388",metadata:{},name:"WAWebMexFetchNewsletterReportsJobQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebMexFetchNewsletterReportsJob",["WALogger","WAWebBackendErrors","WAWebMexClient","WAWebMexFetchNewsletterReportsJobQuery.graphql","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s,u=e!==void 0?e:e=n("WAWebMexFetchNewsletterReportsJobQuery.graphql");function c(){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e={},t=yield o("WAWebMexClient").fetchQuery(u,e);if((t==null?void 0:t.xwa2_channels_reports)==null)throw new(o("WAWebBackendErrors")).ServerStatusCodeError(500,"Mex unexpected null response for fetching newsletter reports");return o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER][WA-ICE][DSAR] fetched newsletter reports"]))).tags("GQL","MEX","wa-ice","DSAR"),t}),d.apply(this,arguments)}l.mexFetchNewsletterReports=c}),98); __d("WAWebNewsletterGetNewsletterReportsJob",["WAJobOrchestratorTypes","WAWebMexFetchNewsletterReportsJob","WAWebNewsletterReportModelUtils","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterReports",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e,t,n=yield o("WAWebMexFetchNewsletterReportsJob").mexFetchNewsletterReports();return((e=n==null||(t=n.xwa2_channels_reports)==null?void 0:t.channels_reports)!=null?e:[]).map(o("WAWebNewsletterReportModelUtils").mapMexReportToNewsletterReport)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.getNewsletterReports=e}),98); __d("WAWebNewsletterGetReportsAction",["WALogger","WAWebNewsletterBridgeApi","WAWebNewsletterGetNewsletterReportsJob","WAWebNewsletterMetadataCollection","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e;function s(){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var t=yield o("WAWebNewsletterGetNewsletterReportsJob").getNewsletterReports(),n=t.map(function(e){var t;return e.newsletterName!=null||(e.newsletterName=(t=r("WAWebNewsletterMetadataCollection").get(e.newsletterId))==null?void 0:t.name),e});o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterReports({reports:n})}catch(t){throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][DSAR][getNewsletterReportsAction] failed"]))).tags("newsletter","wa-ice","DSAR").sendLogs("newsletter-get-reports-action"),t}}),u.apply(this,arguments)}l.getNewsletterReportsAction=s}),98); __d("useWAWebNewsletterReports",["$InternalEnum","WAWebNetworkStatus","WAWebNewsletterGetReportsAction","WAWebNewsletterReportCollection","asyncToGeneratorRuntime","react","useWAWebEventTargetValue","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useCallback,c=s.useEffect,d=s.useState,m=n("$InternalEnum").Mirrored(["OFFLINE","FETCHING","SUCCESS","ERROR"]);function p(){var e=r("useWAWebUnmountSignal")(),t=d(m.FETCHING),a=t[0],i=t[1],l=r("useWAWebEventTargetValue")(o("WAWebNewsletterReportCollection").NewsletterReportCollection,["add","remove","change","reset"],function(){return o("WAWebNewsletterReportCollection").NewsletterReportCollection.toArray()}),s=u(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!e.aborted){if(i(m.FETCHING),!r("WAWebNetworkStatus").online){i(m.OFFLINE);return}try{yield o("WAWebNewsletterGetReportsAction").getNewsletterReportsAction(),i(m.SUCCESS)}catch(e){i(m.ERROR)}}}),[e]);return c(function(){s()},[s]),[a,s,l]}l.FetchReportStatus=m,l.useNewsletterReports=p}),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(t,n,r,o,a,i,l,s){var e=["ref"],u,c=u||(u=r("react")),d={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 m(){return c.jsxs(r("WAWebDrawerSection.react"),{animation:!1,xstyle:[d.container,d.emptyListContainer,o("WAWebUISpacing").uiPadding.horiz32],children:[c.jsx(o("WAWebText.react").WAWebTextLarge,{testid:void 0,marginBottom:16,children:s._(/*BTDS*/"No hay informes")}),c.jsx(o("WAWebText.react").WAWebTextSmall,{testid:void 0,xstyle:d.textCenter,children:s._(/*BTDS*/"Cuando reportas un canal, puedes ver el reporte y el resultado aqu\u00ed.")})]})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.onReportClick,n=e.reports;return c.jsx(r("WAWebDrawerSection.react"),{animation:!1,testid:void 0,xstyle:[d.container,d.reportListContainer],children:c.jsx(o("WAWebFlex.react").FlexColumn,{children:n.map(function(e){return c.jsx(r("WAWebNewsletterDSAReportsRow.react"),{report:e,onReportClick:t},e.id.toString())})})})}p.displayName=p.name+" [from "+i.id+"]";function _(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.onClose,l=a.onReportClick,u=o("useWAWebNewsletterReports").useNewsletterReports(),d=u[0],_=u[1],f=u[2],g;switch(d){case o("useWAWebNewsletterReports").FetchReportStatus.FETCHING:g=c.jsx(o("WAWebEmptyState.react").Loading,{});break;case o("useWAWebNewsletterReports").FetchReportStatus.SUCCESS:g=f.length===0?c.jsx(m,{}):c.jsx(p,{reports:f,onReportClick:l});break;case o("useWAWebNewsletterReports").FetchReportStatus.ERROR:g=c.jsx(o("WAWebEmptyState.react").EmptyErrorStateWithButton,{center:!0,text:s._(/*BTDS*/"Se produjo un error. Vuelve a intentarlo."),testid:void 0,onClick:_});break;case o("useWAWebNewsletterReports").FetchReportStatus.OFFLINE:g=c.jsx(o("WAWebEmptyState.react").EmptyErrorStateWithButton,{center:!0,text:o("WAWebCommonNewsletterStrings").getNoInternetConnectionText(),testid:void 0,onClick:_});break}return c.jsxs(r("WAWebDrawer.react"),{theme:"gallery",ref:n,testid:void 0,children:[c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:o("WAWebCommonNewsletterIntegrityStrings").getNewsletterDSAReportsDrawerTitle(),onBack:i,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),c.jsx(r("WAWebDrawerBody.react"),{children:g})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebNewsletterDSBFlowStepOneDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebNewsletterDSBFlowStepOneDrawer.react").__setRef("WAWebNewsletterDSBFlowStepOneDrawerLoadable").load();return e}),"WAWebNewsletterDSBFlowStepOneDrawerLoadable"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.WAWebNewsletterDSBFlowStepOneDrawerLoadable=c}),98); __d("WAWebNewsletterDSBFlowStepThreeDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebNewsletterDSBFlowStepThreeDrawer.react").__setRef("WAWebNewsletterDSBFlowStepThreeDrawerLoadable").load();return e}),"WAWebNewsletterDSBFlowStepThreeDrawerLoadable"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.WAWebNewsletterDSBFlowStepThreeDrawerLoadable=c}),98); __d("WAWebNewsletterDSBFlowStepTwoDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebNewsletterDSBFlowStepTwoDrawer.react").__setRef("WAWebNewsletterDSBFlowStepTwoDrawerLoadable").load();return e.WAWebNewsletterDSBFlowStepTwoDrawer}),"WAWebNewsletterDSBFlowStepTwoDrawerLoadable"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.WAWebNewsletterDSBFlowStepTwoDrawerLoadable=c}),98); __d("WAWebNewsletterReportsRemediationOptionsDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebNewsletterReportsRemediationOptionsDrawer.react").__setRef("WAWebNewsletterReportsRemediationOptionsDrawerLoadable").load();return e}),"NewsletterReportsRemediationOptionsDrawer"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.NewsletterReportsRemediationOptionsDrawerLoadable=c}),98); __d("WAWebRequestReviewDescriptionScreenDrawerLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebRequestReviewDescriptionScreenDrawer.react").__setRef("WAWebRequestReviewDescriptionScreenDrawerLoadable").load();return e.RequestReviewDescriptionScreen}),"RequestReviewDescriptionScreen"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.RequestReviewDescriptionScreenLoadable=c}),98); __d("WAWebNewsletterRequestReviewReasons",["fbt"],(function(t,n,r,o,a,i,l,s){var e=[{value:"UNJUSTIFIED_SUSPENSION",getLabel:function(){return s._(/*BTDS*/"No se deber\u00eda cerrar este canal.")}},{value:"MISUNDERSTOOD_UPDATES",getLabel:function(){return s._(/*BTDS*/"Se malinterpretaron algunas actualizaciones.")}},{value:"FOLLOWED_GUIDELINES",getLabel:function(){return s._(/*BTDS*/"Este canal sigue todas las Normas de los canales.")}},{value:"ALLOWED_UPDATES",getLabel:function(){return s._(/*BTDS*/"Se deber\u00eda permitir este tipo de actualizaciones.")}}],u=[{value:"CLOSE_CHANNEL",getLabel:function(){return s._(/*BTDS*/"Se deber\u00eda cerrar este canal a los seguidores.")}},{value:"REMOVE_UPDATE",getLabel:function(){return s._(/*BTDS*/"Se deber\u00edan quitar algunas actualizaciones.")}},{value:"VIOLATES_GUIDELINES",getLabel:function(){return s._(/*BTDS*/"Este canal no sigue todas las Normas de los canales.")}},{value:"FORBIDDEN_UPDATES",getLabel:function(){return s._(/*BTDS*/"No se deber\u00eda permitir este tipo de actualizaciones.")}}],c=[{value:"INAPPROPRIATE_FOLLOWER",getLabel:function(){return s._(/*BTDS*/"La persona que escribi\u00f3 esta respuesta no deber\u00eda poder usar WhatsApp.")}},{value:"REMOVE_RESPONSE",getLabel:function(){return s._(/*BTDS*/"Se debe quitar esta respuesta.")}},{value:"RESPONSE_VIOLATES_GUIDELINES",getLabel:function(){return s._(/*BTDS*/"Esta respuesta no cumple con todas las Normas de los canales.")}},{value:"FORBID_SIMILAR_RESPONSES",getLabel:function(){return s._(/*BTDS*/"No se deber\u00eda permitir este tipo de respuestas.")}}],d=[{value:"ORIGINAL_MATERIAL",getLabel:function(){return s._(/*BTDS*/"Este es mi material original.")}},{value:"LICENSE_OWNER",getLabel:function(){return s._(/*BTDS*/"Tengo una licencia para usar este material.")}},{value:"PUBLIC_DOMAIN",getLabel:function(){return s._(/*BTDS*/"Este material es de dominio p\u00fablico.")}},{value:"FAIR_USE_OR_ALLOWED",getLabel:function(){return s._(/*BTDS*/"Afirmo que hago un uso leg\u00edtimo de este material o que tengo permiso para usarlo.")}}];l.ENFORCEMENT_APPEAL_REASONS_LIST=e,l.REPORT_APPEAL_REASON_LIST=u,l.RESPONSE_REPORT_APPEAL_REASON_LIST=c,l.RM_ENFORCEMENT_APPEAL_REASONS_LIST=d}),226); __d("WAWebRequestReviewReasonScreenDrawer.react",["fbt","WALogger","WAWebButton.react","WAWebCommonNewsletterEnums","WAWebCommonNewsletterIntegrityStrings","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebEnforcementActionLogging","WAWebFbtCommon","WAWebFlex.react","WAWebNewsletterIntegrityUtils","WAWebNewsletterRequestReviewReasons","WAWebRadio.react","WAWebText.react","WAWebUISpacing","WAWebWamEnumInteractionSurface","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u=["ref"],c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useEffect,f=m.useState,g={container:{display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",justifyContent:"x1nhvcw1",$$css:!0},header:{textAlign:"x2b8uid",lineHeight:"x1evy7pa",$$css:!0}};function h(e){var t=e.isDisabled,n=e.onSubmit,r=e.submittingReview;return p.jsx(o("WAWebFlex.react").FlexRow,{xstyle:o("WAWebUISpacing").uiMargin.all20,align:"center",justify:"center",children:p.jsx(o("WAWebButton.react").WAWebButtonPrimary,{testid:void 0,onClick:n,disabled:t,spinner:r,children:o("WAWebCommonNewsletterIntegrityStrings").getRequestAppealButtonText()})})}h.displayName=h.name+" [from "+i.id+"]";function y(){return p.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:p.jsx(o("WAWebText.react").WAWebTextLarge,{weight:"medium",xstyle:g.header,padding:16,alignSelf:"center",color:"primary",children:s._(/*BTDS*/"\u00bfPor qu\u00e9 quieres una revisi\u00f3n?")})})}y.displayName=y.name+" [from "+i.id+"]";function C(t){var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,u),l=i.onBack,s=i.onSubmit,c=i.onSuccess,d=i.reviewType;_(function(){r("WAWebEnforcementActionLogging").setSurface(o("WAWebWamEnumInteractionSurface").INTERACTION_SURFACE.REQUEST_REVIEW_REASON_SCREEN)},[]);var m=f(null),C=m[0],b=m[1],v=f(!1),S=v[0],R=v[1],L=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(C==null){o("WAWebNewsletterIntegrityUtils").showReviewSubmissionFailureToast();return}R(!0);try{yield s(C),o("WAWebNewsletterIntegrityUtils").showReviewSubmissionSuccessToast(),c()}catch(e){o("WAWebNewsletterIntegrityUtils").showReviewSubmissionFailureToast()}finally{R(!1)}});return function(){return e.apply(this,arguments)}})(),E;switch(d){case o("WAWebCommonNewsletterEnums").ReviewType.RESPONSE_REPORT:E=o("WAWebNewsletterRequestReviewReasons").RESPONSE_REPORT_APPEAL_REASON_LIST;break;case o("WAWebCommonNewsletterEnums").ReviewType.REPORT:E=o("WAWebNewsletterRequestReviewReasons").REPORT_APPEAL_REASON_LIST;break;case o("WAWebCommonNewsletterEnums").ReviewType.ENFORCEMENT:E=o("WAWebNewsletterRequestReviewReasons").ENFORCEMENT_APPEAL_REASONS_LIST;break}if(!E){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[RequestReviewReasonScreen] reason list is not available while requesting review of report"])));return}return p.jsxs(r("WAWebDrawer.react"),{theme:"gallery",ref:a,testid:void 0,children:[p.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:r("WAWebFbtCommon")("Request review"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:function(){l==null||l()}}),p.jsx(r("WAWebDrawerBody.react"),{children:p.jsxs(r("WAWebDrawerSection.react"),{theme:"full-height",animation:!1,xstyle:[g.container,o("WAWebUISpacing").uiPadding.vert36,o("WAWebUISpacing").uiPadding.horiz48,o("WAWebUISpacing").uiMargin.bottom0],children:[p.jsx(y,{}),p.jsx(o("WAWebRadio.react").RadioGroup,{name:"appeal-radio-group",testid:void 0,theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.NORMAL,checkedValue:C,options:E.map(function(e){var t=e.getLabel,n=e.value;return{value:n,label:t(),onChange:function(){return b(n)}}})}),p.jsx(h,{onSubmit:L,isDisabled:C==null||S,submittingReview:S})]})})]})}C.displayName=C.name+" [from "+i.id+"]",l.InAppReviewFooterSection=h,l.InAppReviewReasonHeaderSection=y,l.RequestReviewReasonScreen=C}),226); __d("WAWebNewsletterDSAReportsFlow.react",["$InternalEnum","WAWebCommonNewsletterEnums","WAWebNewsletterCreateReportAppealAction","WAWebNewsletterDSAReportDetailsDrawerLoadable","WAWebNewsletterDSAReportsDrawer.react","WAWebNewsletterDSBFlowStepOneDrawerLoadable","WAWebNewsletterDSBFlowStepThreeDrawerLoadable","WAWebNewsletterDSBFlowStepTwoDrawerLoadable","WAWebNewsletterGatingUtils","WAWebNewsletterIntegrityUtils","WAWebNewsletterReportsRemediationOptionsDrawerLoadable","WAWebRequestReviewDescriptionScreenDrawerLoadable","WAWebRequestReviewReasonScreenDrawer.react","asyncToGeneratorRuntime","react","useWAWebFlow"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c=u||(u=r("react")),d=(s||(s=o("react"))).useState,m=n("$InternalEnum").Mirrored(["REPORT_LIST","REPORT_DETAILS","REQUEST_REVIEW_DESCRIPTION_SCREEN","REQUEST_REVIEW_REASON_SCREEN","DSA_REPORT_REMEDIATION_OPTIONS","DSB_STEP1_SCREEN","DSB_STEP2_SCREEN","DSB_STEP3_SCREEN"]);function p(t){var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.onClose,s=d(null),u=s[0],p=s[1],_=d(o("WAWebCommonNewsletterEnums").ReviewType.REPORT),f=_[0],g=_[1],h=d(null),y=h[0],C=h[1],b=o("useWAWebFlow").useFlow(m.REPORT_LIST,{transitions:o("useWAWebFlow").FlowTransitions.DrawerRight}),v=b[0],S=b[1],R=function(t){p(t),S.push(m.REPORT_DETAILS)},L=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(u==null){o("WAWebNewsletterIntegrityUtils").showReviewSubmissionFailureToast();return}yield o("WAWebNewsletterCreateReportAppealAction").createNewsletterReportAppealAction({reportId:u.id.toString(),reason:e})});return function(n){return e.apply(this,arguments)}})(),E=function(t){if(t==null){o("WAWebNewsletterIntegrityUtils").showDsbReferenceNumberFailureToast();return}C(t),S.push(m.DSB_STEP3_SCREEN)};if(S.step==null)return null;var k=function(){if(u!=null){var e=u.responseServerMsgId!=null&&o("WAWebNewsletterGatingUtils").isNewsletterIntegrityQuestionsM1Enabled()===!0;e&&g(o("WAWebCommonNewsletterEnums").ReviewType.RESPONSE_REPORT),S.push(m.REQUEST_REVIEW_DESCRIPTION_SCREEN)}},I;switch(S.step){case m.REPORT_LIST:I=c.jsx(r("WAWebNewsletterDSAReportsDrawer.react"),{onClose:l,onReportClick:R});break;case m.REPORT_DETAILS:if(u==null)return null;I=c.jsx(o("WAWebNewsletterDSAReportDetailsDrawerLoadable").NewsletterDSAReportDetailsDrawerLoadable,{onBack:function(){return S.pop()},onRequestReviewClick:k,onClickSeeOptions:function(){S.push(m.DSA_REPORT_REMEDIATION_OPTIONS)},report:u});break;case m.REQUEST_REVIEW_DESCRIPTION_SCREEN:I=c.jsx(o("WAWebRequestReviewDescriptionScreenDrawerLoadable").RequestReviewDescriptionScreenLoadable,{reviewType:f,onBack:function(){return S.pop()},onNext:function(){S.pop(),S.push(m.REQUEST_REVIEW_REASON_SCREEN)}});break;case m.REQUEST_REVIEW_REASON_SCREEN:{var T=function(){S.pop(void 0,o("WAWebNewsletterGatingUtils").isDSA21ChannelReportingEnabled()?2:1)};I=c.jsx(o("WAWebRequestReviewReasonScreenDrawer.react").RequestReviewReasonScreen,{reviewType:f,onBack:function(){S.pop(),S.push(m.REQUEST_REVIEW_DESCRIPTION_SCREEN)},onSuccess:T,onSubmit:L});break}case m.DSA_REPORT_REMEDIATION_OPTIONS:{if(u==null)return null;I=c.jsx(o("WAWebNewsletterReportsRemediationOptionsDrawerLoadable").NewsletterReportsRemediationOptionsDrawerLoadable,{onBack:function(){return S.pop()},selectedReport:u,onClickRequestReview:k,onClickDSBFlow:function(){S.push(m.DSB_STEP1_SCREEN)}});break}case m.DSB_STEP1_SCREEN:{I=c.jsx(o("WAWebNewsletterDSBFlowStepOneDrawerLoadable").WAWebNewsletterDSBFlowStepOneDrawerLoadable,{onBack:function(){return S.pop()},onClickContinue:function(){S.push(m.DSB_STEP2_SCREEN)}});break}case m.DSB_STEP2_SCREEN:{if(u==null)return null;I=c.jsx(o("WAWebNewsletterDSBFlowStepTwoDrawerLoadable").WAWebNewsletterDSBFlowStepTwoDrawerLoadable,{onBack:function(){return S.pop()},onClickGetReferenceNumber:E,entityId:u.id.toString()});break}case m.DSB_STEP3_SCREEN:{I=y!=null?c.jsx(o("WAWebNewsletterDSBFlowStepThreeDrawerLoadable").WAWebNewsletterDSBFlowStepThreeDrawerLoadable,{onBack:function(){return S.pop()},entityId:y}):null;break}}return c.jsx(v,{flow:S,ref:a,displayName:"newsletter-reports-flow",children:I})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebPrivacySettingsLastSeenOnlineDrawer.react",["fbt","WALogger","WAWebAccountTakeOverBanner.react","WAWebBackendErrors","WAWebDefenseModeLockedInterstitial.react","WAWebDefenseModeUtils","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","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=r("react")),p=(c||(c=o("react"))).useState;function _(){o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudieron actualizar los ajustes de privacidad. Por favor, vuelve a intentarlo.")}))}function f(t){var a=t.onClose,i=t.ref,l=p(function(){var e,t=o("WAWebUserPrefsGeneral").getUserPrivacySettings();return(e=t.lastSeen)!=null?e:o("WAWebPrivacySettings").VISIBILITY.all}),c=l[0],d=l[1],f=p(function(){var e,t=o("WAWebUserPrefsGeneral").getUserPrivacySettings();return(e=t.online)!=null?e:o("WAWebPrivacySettings").VISIBILITY.all}),y=f[0],C=f[1],b=p(function(){return o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("lastSeen")}),v=b[0],S=b[1],R=p(function(){return o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("online")}),L=R[0],E=R[1],k=o("WAWebUseContactManagementAvailability").useAccountIntegrityState();o("useWAWebListener").useListener(o("WAWebUserPrefsGeneral").privacySettingsEventEmitter,"all",function(){var e,t,n=o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("lastSeen"),r=o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("online");n!==v&&S(n),r!==L&&E(r);var a=o("WAWebUserPrefsGeneral").getUserPrivacySettings();d((e=a.lastSeen)!=null?e:o("WAWebPrivacySettings").ONLINE_VISIBILITY.all),C((t=a.online)!=null?t:o("WAWebPrivacySettings").ONLINE_VISIBILITY.all)});function I(e){return T.apply(this,arguments)}function T(){return T=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){if(t!==y){C(t);var n=o("WAWebSetPrivacyForOneCategoryAction").privacyWebNameToServerName("online");if(n!=="online")throw r("err")("privacy_settings_last_seen_online_drawer: category can only be online");try{switch(t){case o("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen:yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:n,value:"match_last_seen"});return;case o("WAWebPrivacySettings").VISIBILITY.all:yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:n,value:"all"});return}}catch(t){C(y);var a=t instanceof o("WAWebBackendErrors").ServerStatusCodeError&&t.statusCode===409;a||o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["visibility_edit_drawer: set visiblity option failed ",""])),t.stack).sendLogs("visibility_edit_drawer: set visiblity option failed"),_()}}}),T.apply(this,arguments)}function D(e){return x.apply(this,arguments)}function x(){return x=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(e!==c){d(e);var t=o("WAWebSetPrivacyForOneCategoryAction").privacyWebNameToServerName("lastSeen");if(t!=="last")throw r("err")("privacy_settings_last_seen_online_drawer: category can be only last");try{switch(e){case o("WAWebPrivacySettings").VISIBILITY.none:yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:t,value:"none"});return;case o("WAWebPrivacySettings").VISIBILITY.contacts:yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:t,value:"contacts"});return;case o("WAWebPrivacySettings").VISIBILITY.all:yield o("WAWebSetPrivacyForOneCategoryAction").setPrivacyForOneCategory({name:t,value:"all"});return}}catch(e){d(c);var n=e instanceof o("WAWebBackendErrors").ServerStatusCodeError&&e.statusCode===409;n||o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["visibility_edit_drawer: set visiblity option failed ",""])),e.stack).sendLogs("visibility_edit_drawer: set visiblity option failed"),_()}}}),x.apply(this,arguments)}var $=s._(/*BTDS*/"Qui\u00e9n puede ver mi hora de \u00falt. vez"),P=s._(/*BTDS*/"Qui\u00e9n puede ver cu\u00e1ndo estoy en l\u00ednea"),N=null;return k===o("WAWebUseContactManagementAvailability").AccountIntegrityState.TIMELOCK&&(c===o("WAWebPrivacySettings").VISIBILITY.contacts||c===o("WAWebPrivacySettings").VISIBILITY.contact_blacklist)&&(N=m.jsx(r("WAWebAccountTakeOverBanner.react"),{entryPoint:"privacy-settings"})),m.jsxs(r("WAWebDrawer.react"),{ref:i,testid:void 0,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:s._(/*BTDS*/"Hora de \u00falt. vez y En l\u00ednea"),onBack:a,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),m.jsxs(r("WAWebDrawerBody.react"),{children:[N,m.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[m.jsx("div",{className:"x1sy10c2 x14z9mp xieb3on x1lziwak x1jchvi3 x1v5yvga x1fc57z9",children:$}),m.jsxs("div",{role:"radiogroup","aria-label":$,children:[m.jsx(g,{text:s._(/*BTDS*/"Todos"),visibility:o("WAWebPrivacySettings").VISIBILITY.all,lastSeenChoice:c,lastSeenWamIfLocked:v,onClick:D}),m.jsx(g,{text:s._(/*BTDS*/"Mis contactos"),visibility:o("WAWebPrivacySettings").VISIBILITY.contacts,lastSeenChoice:c,lastSeenWamIfLocked:v,onClick:D}),m.jsx(g,{text:s._(/*BTDS*/"Mis contactos, excepto\u2026"),visibility:o("WAWebPrivacySettings").VISIBILITY.contact_blacklist,lastSeenChoice:c,lastSeenWamIfLocked:v,onClick:function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebSelectContactsExceptModal.react"),{category:"lastSeen",onConfirm:function(t){D(o("WAWebPrivacySettings").VISIBILITY.contact_blacklist)}}))}}),m.jsx(g,{text:s._(/*BTDS*/"Nadie"),visibility:o("WAWebPrivacySettings").VISIBILITY.none,lastSeenChoice:c,lastSeenWamIfLocked:v,onClick:D})]}),m.jsx("div",{className:"x1qx5ct2 xso031l x1q0q8m5 x1rpwac6"}),m.jsx("div",{className:"x1sy10c2 x14z9mp xieb3on x1lziwak x1jchvi3 x1v5yvga x1fc57z9",children:P}),m.jsxs("div",{role:"radiogroup","aria-label":P,children:[m.jsx(h,{text:s._(/*BTDS*/"Todos"),visibility:o("WAWebPrivacySettings").ONLINE_VISIBILITY.all,onlineChoice:y,onlineWamIfLocked:L,onClick:I}),m.jsx(h,{text:s._(/*BTDS*/"Igual que la hora de \u00falt. vez"),visibility:o("WAWebPrivacySettings").ONLINE_VISIBILITY.match_last_seen,onlineChoice:y,onlineWamIfLocked:L,onClick:I})]}),m.jsx(o("WAWebText.react").WAWebTextMuted,{margin:[20,0],color:"secondary",children:s._(/*BTDS*/"Si no compartes la informaci\u00f3n de tus secciones {=m1} y {=m4}, no podr\u00e1s ver la de otras personas.",[s._implicitParam("=m1",m.jsx("strong",{children:s._(/*BTDS*/"\u00dalt. vez")})),s._implicitParam("=m4",m.jsx("strong",{children:s._(/*BTDS*/"En l\u00ednea")}))])})]})]})]})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.lastSeenChoice,n=e.lastSeenWamIfLocked,a=e.onClick,i=e.text,l=e.visibility,s=n!=null,u=t===l;return m.jsx(r("WAWebPrivacyVisibilityOption.react"),{text:i,selected:u,disabled:s&&!u,testid:void 0,onDisabledClick:function(){n!=null&&o("WAWebDefenseModeLockedInterstitial.react").openDefenseModeLockedInterstitialGlobal(n,l)},onClick:function(){a(l)}})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.onClick,n=e.onlineChoice,a=e.onlineWamIfLocked,i=e.text,l=e.visibility,s=a!=null,u=n===l;return m.jsx(r("WAWebPrivacyVisibilityOption.react"),{text:i,selected:u,testid:void 0,disabled:s&&!u,onDisabledClick:function(){a!=null&&o("WAWebDefenseModeLockedInterstitial.react").openDefenseModeLockedInterstitialGlobal(a,l)},onClick:function(){t(l)}})}h.displayName=h.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebSecurityDrawer.react",["fbt","WAWebDefenseModeLockedInterstitial.react","WAWebDefenseModeUtils","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerItem.react","WAWebDrawerSection.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebGroupInfoSeparator.react","WAWebLockRefreshedIcon.react","WAWebMiscGatingUtils","WAWebPrinaUtils","WAWebPrivacyNarrativeE2ESummary.react","WAWebSecurityLockIcon.react","WAWebSecurityShieldIcon.react","WAWebUISpacing","WAWebUserPrefsGeneral","WAWebUserPrefsNotifications","WDSSwitch.react","react","stylex","useWAWebListener","useWAWebToggle"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useCallback,_=d.useState,f={icon:{position:"x1n2onr6",boxSizing:"x9f619",width:"xj35x94",height:"x19swzb4",paddingTop:"x16ovd2e",marginInlineEnd:"x11t971q",marginBottom:"xat24cr",marginInlineStart:"xvc5jky",marginTop:"x98l61r",color:"x1mysghr",backgroundColor:"xe8plzu",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",$$css:!0},iconLock:{position:"x10l6tqk",insetInlineStart:"x1o0tod",insetInlineEnd:"xtijo5x",left:null,right:null,top:"x13vifvy",bottom:"xy1j3rs",color:"x2rqmh4",$$css:!0},itemWithLeadingIcon:{display:"x78zum5",alignItems:"x6s0dn4",columnGap:"x1s70e7g",$$css:!0}};function g(){return m.jsxs(m.Fragment,{children:[m.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:f.icon,align:"center",justify:"center",children:[m.jsx(r("WAWebFlexItem.react"),{children:m.jsx(o("WAWebSecurityShieldIcon.react").SecurityShieldIcon,{})}),m.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:f.iconLock,align:"center",justify:"center",children:m.jsx(r("WAWebFlexItem.react"),{children:m.jsx(o("WAWebSecurityLockIcon.react").SecurityLockIcon,{})})})]}),m.jsxs("div",{className:"x1h678fw xcldk2z xv6tirj x1phvje8 x1nmyh1g x1jchvi3 x1o2sk6j",children:[s._(/*BTDS*/"Los mensajes y llamadas en los chats cifrados de extremo a extremo son solo para ti y las personas con quienes decidas compartirlos, ni siquiera WhatsApp puede leerlos ni escucharlos.")," ",m.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebPrinaUtils").securityUrl(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]})]})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.onClose,n=e.ref,a=r("useWAWebToggle")(o("WAWebUserPrefsNotifications").getGlobalSecurityNotifications,o("WAWebUserPrefsNotifications").setGlobalSecurityNotifications),i=a[0],l=a[1],c=s._(/*BTDS*/"Recibe una notificaci\u00f3n cuando cambie el c\u00f3digo de seguridad del tel\u00e9fono de alguno de tus contactos. Si tienes varios dispositivos, debes activar este ajuste en cada dispositivo en el que quieras ver las notificaciones."),d=o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled(),h=_(function(){return o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("securityNotifications")}),y=h[0],C=h[1],b=y!=null;o("useWAWebListener").useListener(o("WAWebUserPrefsGeneral").privacySettingsEventEmitter,"all",function(){var e=o("WAWebDefenseModeUtils").getWamEnumIfSettingLockedByDefenseMode("securityNotifications");e!==y&&C(e)});var v=p(function(){y!=null?o("WAWebDefenseModeLockedInterstitial.react").openDefenseModeLockedInterstitialGlobal(y,i?"on":"off"):l()},[y,i,l]);return m.jsxs(r("WAWebDrawer.react"),{ref:n,testid:void 0,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:s._(/*BTDS*/"Seguridad"),onBack:t,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),m.jsx(r("WAWebDrawerBody.react"),{children:m.jsxs(r("WAWebDrawerSection.react"),{animation:!1,children:[d?m.jsx(o("WAWebPrivacyNarrativeE2ESummary.react").E2eSummarySecurityDrawer,{}):m.jsx(g,{}),m.jsx(r("WAWebGroupInfoSeparator.react"),{animation:!1}),m.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(f.itemWithLeadingIcon,o("WAWebUISpacing").uiPadding.horiz20),{children:[m.jsx("div",{className:"x1xrf6ya x1nzty39 xscbp6u x12w63v0",children:m.jsx(o("WAWebLockRefreshedIcon.react").LockRefreshedIcon,{})}),m.jsx(r("WAWebDrawerItem.react"),{title:s._(/*BTDS*/"Mostrar notificaciones de seguridad en esta computadora"),tabIndex:b?0:-1,icon:m.jsx("div",{className:"x1849jeq x78zum5 xl56j7k",children:m.jsx(r("WDSSwitch.react"),{value:i||y!==void 0,"aria-label":s._(/*BTDS*/"Mostrar notificaciones de seguridad en esta computadora")})}),theme:"privacy",isLastItem:!0,disableKeydownHandling:!b,disabled:b,onDisabledClick:v,onClick:v,testid:void 0,children:m.jsxs("div",babelHelpers.extends({},u.props(o("WAWebUISpacing").uiPadding.end20),{children:[c," ",m.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getCodeChangeFaqUrl(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")})]}))})]}))]})})]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebHistorySyncPausedPopup.react",["fbt","WAWebConfirmPopup.react","WAWebFaqUrl","WAWebHistorySyncUIText","WAWebModal.react","WAWebModalManager","WAWebText_DONOTUSE.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={title:{fontWeight:"xk50ysn",fontSize:"x1603h9y",$$css:!0},body:{fontWeight:"xo1l8bm",fontSize:"x1jchvi3",lineHeight:"x1xet1wb",color:"x19q65qo",$$css:!0}};function d(){return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:u.jsx(o("WAWebText_DONOTUSE.react").TextHeader,{xstyle:c.title,children:o("WAWebHistorySyncUIText").SYNCING_PAUSED_POPUP_TITLE()}),type:o("WAWebModal.react").ModalTheme.HistorySyncProgress,cancelText:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),onOK:o("WAWebModalManager").closeModalManager,onCancel:m,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:c.body,children:o("WAWebHistorySyncUIText").SYNCING_PAUSED_POPUP_DESC()})})}d.displayName=d.name+" [from "+i.id+"]";function m(){window.open(o("WAWebFaqUrl").getMessageHistoryOnLinkedDevicesFAQUrl())}l.default=d}),226); __d("WAWebHistorySyncSettingItem.react",["WAWebHistorySyncInProgressPopup.react","WAWebHistorySyncPausedPopup.react","WAWebHistorySyncProgressGetters","WAWebHistorySyncUIText","WAWebMenuItems.react","WAWebModalManager","WAWebSettingsConst","WAWebSettingsStepIcon.react","react","useWAWebHistorySyncProgressValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){var e=o("useWAWebHistorySyncProgressValues").useHistorySyncProgressValues([o("WAWebHistorySyncProgressGetters").getInProgress,o("WAWebHistorySyncProgressGetters").getPaused,o("WAWebHistorySyncProgressGetters").getProgress]),t=e[0],n=e[1],a=e[2];return t?n?s.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"history-sync-paused",testid:void 0,onSelect:c,detailLeft:s.jsx(r("WAWebSettingsStepIcon.react"),{setting:o("WAWebSettingsConst").SettingsSteps.HistorySyncPaused}),primary:o("WAWebHistorySyncUIText").SYNCING_PAUSED_GLOBAL_SETTINGS_TITLE(),secondary:o("WAWebHistorySyncUIText").SYNCING_PAUSED_GLOBAL_SETTINGS_SUBTITLE(),border:"bottom-partial",isRefresh:!0}):s.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"history-sync-in-progress",testid:void 0,onSelect:d,detailLeft:s.jsx(r("WAWebSettingsStepIcon.react"),{setting:o("WAWebSettingsConst").SettingsSteps.HistorySyncInProgress}),primary:o("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_SETTINGS_TITLE(),secondary:a==null?null:o("WAWebHistorySyncUIText").SYNCING_OLDER_MESSAGES_SETTINGS_PERCENT_COMPLETE(a),border:"bottom-partial",isRefresh:!0}):null}u.displayName=u.name+" [from "+i.id+"]";function c(){o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebHistorySyncPausedPopup.react"),{}))}function d(){o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebHistorySyncInProgressPopup.react"),{}))}l.default=u}),98); __d("WAWebThunk",[],(function(t,n,r,o,a,i){function e(e){return typeof e=="function"?e():e}var l=e;i.getResult=l}),66); __d("WAWebSettingSearchModel",["WAWebSearchModel","WAWebSearchUtils","WAWebSettingsHierarchy","WAWebThunk"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0;if(t.wamName!=null&&t.parentId==null&&y(t.wamName,e?o("WAWebWamEnumSettingsClickEntryPoint").SETTINGS_CLICK_ENTRY_POINT.SETTINGS_SEARCH:o("WAWebWamEnumSettingsClickEntryPoint").SETTINGS_CLICK_ENTRY_POINT.SETTINGS_SCREEN),e){var n=t.id,r;if(t.parent!=null){var i;r=(i=t.parent.wamName)!=null?i:o("WAWebWamEnumSettingsItemType").SETTINGS_ITEM_TYPE.UNKNOWN}C(n,r)}a.onSettingClick!=null&&a.onSettingClick(t.step)}},w=function(){M(I)},A=s._(/*BTDS*/"Buscar en los ajustes"),F=m.jsx(o("WAWebFlex.react").FlexColumn,{align:"stretch",children:l===""?m.jsx(R,{profileId:a.profileId,onProfile:a.onProfile,listSelection:T,onClick:M}):m.jsx(E,{results:L,onSelect:M})});return m.jsxs(r("WAWebDrawer.react"),{ref:n,theme:"settings",testid:void 0,tsNavigationData:h,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Ajustes"),onBack:a.onClose,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.TAB}),m.jsx(r("WAWebDrawerBody.react"),{ref:S,isRefresh:!0,backgroundColor:"default",children:o("WAWebWDSGatingUtils").isWDSSearchBarEnabled()?m.jsxs(o("LexicalComposer").LexicalComposer,{initialConfig:{namespace:"SettingsSearch",onError:r("WAWebNoop")},children:[m.jsx("div",{className:"x1phvje8 xcldk2z x1gxa6cn xa0aww2",children:m.jsx(r("WDSSearchBar.react"),{hintText:A,onValueChange:N,onEnter:w,onBlur:$,onFocus:P,value:l})}),F]}):m.jsx(o("WAWebSearchInput").DrawerSearchInput,{searchInputA11yLabel:A,placeholder:A,onSearch:N,onEnter:w,onBlur:$,onFocus:P,focusOnMount:!0,children:F})})]})}L.displayName=L.name+" [from "+i.id+"]";function E(e){var t=e.onSelect,n=e.results;return n.length?m.jsx(o("WAWebLexicalWAWebMenu.react").LexicalWAWebMenu,{allowTabNavigation:!0,colorScheme:"lightest",children:m.jsx(o("WAWebSettings.MenuItem").SettingsMenu,{settings:n,onSelect:t})}):m.jsx(o("WAWebEmptyState.react").SearchWithoutKeyword,{})}E.displayName=E.name+" [from "+i.id+"]",l.default=L}),226); __d("WAWebThemeType",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum")({SystemDefault:0,Light:1,Dark:2});i.ThemesSettingValue=e}),66); __d("WAWebThemePopup.react",["WALogger","WAWebConfirmPopup.react","WAWebModalManager","WAWebRadio.react","WAWebSettingsFBT","WAWebSettingsSyncBridge","WAWebSystemTheme","WAWebThemeContext","WAWebThemeType","react"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useContext,p=c.useState,_=[{value:"light",label:o("WAWebSettingsFBT").themeLightLabel},{value:"dark",label:o("WAWebSettingsFBT").themeDarkLabel},{value:"system",label:o("WAWebSettingsFBT").themeSystemLabel}];function f(){var e=m(o("WAWebThemeContext").ThemeContext),t=p(e.systemThemeMode?"system":e.theme),n=t[0],a=t[1],i=function(t){a(t)},l=function(){n==="system"?(e.setSystemThemeMode(!0),e.setTheme(r("WAWebSystemTheme").getCurrentTheme())):(e.setSystemThemeMode(!1),e.setTheme(n)),g(n),o("WAWebModalManager").ModalManager.close()},s=function(){o("WAWebModalManager").ModalManager.close()},u=d.jsx(o("WAWebRadio.react").RadioGroup,{name:"theme",theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.NORMAL,checkedValue:n,options:_.map(function(e){var t=e.label,n=e.value;return{value:n,label:t(),onChange:function(){return i(n)}}})});return d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:o("WAWebSettingsFBT").themeTitle(),onOK:l,onCancel:s,children:d.jsx("form",{children:d.jsx("ol",{children:u})})})}f.displayName=f.name+" [from "+i.id+"]";function g(t){var n=t==="light"?o("WAWebThemeType").ThemesSettingValue.Light:t==="dark"?o("WAWebThemeType").ThemesSettingValue.Dark:t==="system"?o("WAWebThemeType").ThemesSettingValue.SystemDefault:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+t)})();o("WAWebSettingsSyncBridge").sendSettingChange("appTheme",n,"app").catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[settings-sync] Error sending mutation for appTheme: ",""])),t).tags("settings-sync")})}l.default=f}),98); __d("WAWebTimeFormatDrawer.react",["fbt","WAWebClock","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebRadio.react","WAWebText.react","react","vulture"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState;function m(e){var t=e.onClose,n=e.ref;r("vulture")("Wf8lNuML3q61LQYfRZYgoFlyISI=");var a=d(o("WAWebClock").Clock.getIs24Hour()),i=a[0],l=a[1],u=[{value:"24",label:s._(/*BTDS*/"24 horas"),secondaryLabel:s._(/*BTDS*/"p. ej.: 13:30"),onChange:function(){return m(!0)}},{value:"12",label:s._(/*BTDS*/"12 horas"),secondaryLabel:s._(/*BTDS*/"p. ej.: 1:30 p. m."),onChange:function(){return m(!1)}}];function m(e){e!==i&&(o("WAWebClock").Clock.setIs24Hour(e,o("WAWebClock").TimeFormatSource.DeviceTimeFormat),l(e))}return c.jsxs(r("WAWebDrawer.react"),{ref:n,testid:void 0,children:[c.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:s._(/*BTDS*/"Formato de hora"),onBack:t,focusBackOrCancel:!0,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL}),c.jsx(r("WAWebDrawerBody.react"),{children:c.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-vertical",animation:!1,children:[c.jsx(o("WAWebText.react").WAWebTextSectionTitle,{margin:[32,0,16,0],children:s._(/*BTDS*/"Usa este ajuste para reemplazar el formato de hora de tu dispositivo.")}),c.jsx(o("WAWebRadio.react").RadioGroup,{name:"time format",theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,checkedValue:i?"24":"12",options:u})]})})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebWallpaperDrawer.react",["fbt","WAWebABProps","WAWebButton.react","WAWebChatPreferenceCollection","WAWebCheckBox.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerManager","WAWebDrawerSection.react","WAWebFlex.react","WAWebPopoverContext.react","WAWebPopoverPosition","WAWebSettingsSyncBridge","WAWebText.react","WAWebThemeContext","WAWebToast.react","WAWebToastManager","WAWebTooltip.react","WAWebUISpacing","WAWebWallpaper","WDSFocusStateStyles","asyncToGeneratorRuntime","react","stylex","useWAWebModelValues","useWAWebSettingSync"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useContext,_=d.useEffect,f=d.useRef,g=d.useState,h={wallpaperColorCanvas:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",float:"xj87blo",width:"x1pigqs1",height:"xn6wvy2",marginBottom:"x1fqp7bg",marginInlineStart:"xx6jrq6",textAlign:"x2b8uid",borderTopWidth:"xl8et2f",borderInlineEndWidth:"xuc0g9m",borderBottomWidth:"x1dmim90",borderInlineStartWidth:"xs4xcjr",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"x1v8p93f",borderInlineEndColor:"x1o3jo1z",borderBottomColor:"x16stqrj",borderInlineStartColor:"xv5lvn5",cursor:"x1ypdohk",":hover_borderTopWidth":"x964kle",":hover_borderInlineEndWidth":"xk5gepk",":hover_borderBottomWidth":"x1wql1ll",":hover_borderInlineStartWidth":"x1dwt4bm",":hover_borderTopStyle":"x1lwdpx3",":hover_borderInlineEndStyle":"xb90sal",":hover_borderBottomStyle":"x1rlzdi",":hover_borderInlineStartStyle":"xrhz2io",":hover_borderTopColor":"x1j88qlk",":hover_borderInlineEndColor":"xmly02p",":hover_borderBottomColor":"x36lclb",":hover_borderInlineStartColor":"xzyl2ln",$$css:!0},canvasActive:{boxShadow:"xftp5sx",$$css:!0},canvasActiveBorder:{borderTopWidth:"xl8et2f",borderInlineEndWidth:"xuc0g9m",borderBottomWidth:"x1dmim90",borderInlineStartWidth:"xs4xcjr",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"x1pyc6se",borderInlineEndColor:"x1mlb2bo",borderBottomColor:"x16pkwpw",borderInlineStartColor:"xqe4bef",$$css:!0},canvasDefault:{backgroundColor:"x1q80dvb",$$css:!0},wallpaperUseGlobal:{display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",justifyContent:"xl56j7k",$$css:!0},checkboxLabel:{marginInlineStart:"xdzw4kq",display:"x78zum5",justifyContent:"xl56j7k",alignItems:"x6s0dn4",$$css:!0},canvasBg:function(t){return[{backgroundColor:t!=null?"xl8spv7":t,$$css:!0},{"--x-backgroundColor":t!=null?t:void 0}]}};function y(e){var t=e.chat,a=e.colorHex,i=e.colorName,l=e.isDefault,c=g(!1),d=c[0],p=c[1],_=o("useWAWebModelValues").useOptionalModelValues(t,["wallpaper"]),y=f(null),C=function(){return l?o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER:a},b=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=C(),n=r("WAWebChatPreferenceCollection").get("defaultPreference");o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&_!=null&&t!==_.wallpaper?(yield _.setChatWallpaper(t),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Fondo del chat establecido")}))):n&&t!==n.wallpaper&&(n.set("wallpaper",t),o("WAWebSettingsSyncBridge").sendSettingChange("wallpaperId",o("WAWebWallpaper").getWallpaperId(t)),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Fondo global establecido")})))});return function(n){return e.apply(this,arguments)}})(),v=function(t){d||(p(!0),r("WAWebChatPreferenceCollection").trigger("wallpaper_preview",C()))},S=function(t){d||(p(!0),r("WAWebChatPreferenceCollection").trigger("wallpaper_preview",C()))},R=function(t){d&&(p(!1),r("WAWebChatPreferenceCollection").trigger("wallpaper_preview"))},L=e.isDefault?m.jsx("span",{className:"xlrnmfh xdj266r x1p8j9ns xat24cr x7phf20 x6ikm8r x10wlt62 x1ncwhqj xlyipyv xuxw1ft","data-testid":void 0,children:s._(/*BTDS*/"Predeterminado")}):null,E=a!=null?"wallpaper-canvas-color-"+a:"wallpaper-canvas-color",k=[h.wallpaperColorCanvas,e.isSelected&&h.canvasActive,e.isSelected&&h.canvasActiveBorder,e.isDefault&&h.canvasDefault,e.colorHex!=null&&h.canvasBg(e.colorHex),o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus];return m.jsxs("button",babelHelpers.extends({},(u||(u=r("stylex"))).props(k),{ref:y,onMouseOver:v,onFocus:v,tabIndex:0,onMouseEnter:S,onMouseLeave:R,onClick:b,"data-testid":void 0,"aria-label":e.ariaLabel,title:e.isDefault?s._(/*BTDS*/"Predeterminado"):void 0,children:[L,m.jsx(o("WAWebPopoverContext.react").WAWebPopoverController,{targetRef:y,popover:m.jsx(o("WAWebTooltip.react").WAWebHoverTooltip,{targetRef:"context",alignment:o("WAWebPopoverPosition").PopoverAlignment.Center,position:o("WAWebPopoverPosition").PopoverPosition.Bottom,showOnFocus:!0,enableEnterTransition:!1,children:i})})]}))}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t,a,i=e.chat,l=e.colors,c=o("useWAWebModelValues").useOptionalModelValues(i,["wallpaper","showDoodle"]),d=o("useWAWebModelValues").useOptionalModelValues(e.chatPreference,["wallpaper","showDoodle"]),_=p(o("WAWebThemeContext").ThemeContext),f=o("useWAWebSettingSync").useSettingSync("isDoodleWallpaperEnabled",function(e){o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&c?c.setShowDoodle(e):d&&d.set("showDoodle",e)}),g=o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&(t=c==null?void 0:c.wallpaper)!=null?t:d==null?void 0:d.wallpaper,C=function(){if(o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&c){var e=c.showDoodle!=null?!c.showDoodle:!(d!=null&&d.showDoodle);f(e),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:e?s._(/*BTDS*/"Se a\u00f1adieron dibujos al fondo del chat"):s._(/*BTDS*/"Se quitaron los dibujos del fondo del chat")}))}else if(d){var t=!d.showDoodle;f(t),o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:t?s._(/*BTDS*/"Se a\u00f1adieron dibujos al fondo global"):s._(/*BTDS*/"Se quitaron los dibujos del fondo global")}))}},b=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield c==null?void 0:c.setChatWallpaper(null),yield c==null?void 0:c.setShowDoodle(null),r("WAWebChatPreferenceCollection").trigger("wallpaper_preview",d==null?void 0:d.wallpaper)});return function(){return e.apply(this,arguments)}})(),v=o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&(a=c==null?void 0:c.showDoodle)!=null?a:d==null?void 0:d.showDoodle,S=l.map(function(e){var t=g===e;return m.jsx(y,{ariaLabel:o("WAWebWallpaper").getWallpaperColorAriaLabel(e,_.theme),colorName:o("WAWebWallpaper").getWallpaperColorName(e,_.theme),chat:i,colorHex:e,isSelected:t,isDefault:!1},e)}),R=m.jsx(y,{chat:i,ariaLabel:o("WAWebWallpaper").getWallpaperColorAriaLabel(o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER,_.theme),colorName:o("WAWebWallpaper").getWallpaperColorName(o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER,_.theme),isSelected:g===o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER,isDefault:!0},o("WAWebWallpaper").DEFAULT_CHAT_WALLPAPER);S.unshift(R);for(var L=0;L<2;L++)S.push(m.jsx("div",{className:"x1pigqs1 xqtp20y xx6jrq6"},"emptyEl"+L));var E=m.jsxs("div",{className:"x78zum5 x1q0g3np x1a02dak xl56j7k x9orja2 x5zjp28 x1gx403c",children:[m.jsx(o("WAWebCheckBox.react").CheckBox,{onChange:C,checked:!!v,id:"add-doodles"}),m.jsx(o("WAWebText.react").WAWebTextSmall,{xstyle:h.checkboxLabel,as:"label",labelFor:"add-doodles",children:s._(/*BTDS*/"A\u00f1adir WhatsApp Doodles")})]}),k=o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")&&c!=null?m.jsx(o("WAWebFlex.react").FlexRow,{wrap:"wrap",justify:"center",className:(u||(u=r("stylex")))(h.wallpaperUseGlobal,o("WAWebUISpacing").uiPadding.all10,o("WAWebUISpacing").uiMargin.all10),children:m.jsx(o("WAWebButton.react").Button,{onClick:b,disabled:(c==null?void 0:c.wallpaper)==null&&(c==null?void 0:c.showDoodle)==null,children:s._(/*BTDS*/"Restablecer los ajustes predeterminados")})}):null;return m.jsxs(m.Fragment,{children:[E,m.jsx("div",{"aria-label":s._(/*BTDS*/"Lista de colores para establecer como fondo del chat"),className:"x78zum5 x1q0g3np x1a02dak xl56j7k x9orja2 x5zjp28 x1gx403c",children:S}),k]})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.chat,n=e.onClose,a=e.ref,i=p(o("WAWebThemeContext").ThemeContext),l=t==null;return _(function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerMid(),r("WAWebChatPreferenceCollection").trigger("wallpaper_drawer_open",l),function(){r("WAWebChatPreferenceCollection").trigger("wallpaper_preview"),r("WAWebChatPreferenceCollection").trigger("wallpaper_drawer_close",l)}},[]),m.jsxs(r("WAWebDrawer.react"),{ref:a,testid:void 0,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Establece el fondo del chat"),onBack:n,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),m.jsx(r("WAWebDrawerBody.react"),{children:m.jsx(r("WAWebDrawerSection.react"),{animation:!1,theme:"full-height",children:m.jsx(C,{chat:t,colors:o("WAWebWallpaper").getWallpaperColors(i.theme),chatPreference:r("WAWebChatPreferenceCollection").get("defaultPreference")})})})]})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),226); __d("WAWebWamEnumBusinessToolsEntryPointType",[],(function(t,n,r,o,a,i){var e=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});i.BUSINESS_TOOLS_ENTRY_POINT_TYPE=e}),66); __d("WAWebSettingsFlow.react",["JSResourceForInteraction","WAWebAccountSettingsDrawer.react","WAWebBizGatingUtils","WAWebBizLabelFlow.react","WAWebBizRefreshedProfileDrawerLoadable","WAWebBizToolsFlowLoadable","WAWebBlockedDrawer.react","WAWebBugnubLoadable","WAWebCallsNotificationsDrawer.react","WAWebChatsSettingsDrawer.react","WAWebConfirmLogoutModal.react","WAWebConnModel","WAWebContactCollection","WAWebCrashlog","WAWebCurrentUser","WAWebDefaultEphemeralityDrawer.react","WAWebDeveloperMenuConstants","WAWebDirectMessagesNotificationsDrawer.react","WAWebDrawerManager","WAWebGdprRequestAccountInfoSettingsDrawer.react","WAWebGroupMessagesNotificationsDrawer.react","WAWebHelpDrawer.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","WAWebProfilePicThumbCollection","WAWebSMBDataSharingDrawer.react","WAWebScreenLockDrawer.react","WAWebSecurityDrawer.react","WAWebSettingsConst","WAWebSettingsDrawer.react","WAWebSettingsModel","WAWebStatusUpdatesNotificationsDrawer.react","WAWebTextStatusCollection","WAWebThemePopup.react","WAWebTimeFormatDrawer.react","WAWebUserPrefsMeUser","WAWebWallpaperDrawer.react","WAWebWamEnumBusinessToolsEntryPointType","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumEntryPoint","WAWebWamEnumSmbDataSharingConsentSettingEntryPoint","WAWebWamUtils","asyncToGeneratorRuntime","cr:17209","cr:1923","cr:1977","cr:2404","cr:7753","cr:8751","react","useWAWebFlow","useWAWebFocusOnMount"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){switch(e){case o("WAWebSettingsConst").SettingsSteps.Theme:return o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebThemePopup.react"),{})),!0;case o("WAWebSettingsConst").SettingsSteps.KeyboardShortcuts:return o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebKeyboardShortcutsPopup.react"),{})),!0;case o("WAWebSettingsConst").SettingsSteps.Logout:return o("WAWebWamUtils").forceFlushAllWamAndQplBuffers(),o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebConfirmLogoutModal.react"),{checkUnsent:!0})),!0;case o("WAWebSettingsConst").SettingsSteps.Bugnub:return o("WAWebCurrentUser").isEmployee()&&r("WAWebBugnubLoadable")(),!0;case o("WAWebSettingsConst").SettingsSteps.DeveloperInfraSettings:return o("WAWebCurrentUser").isEmployee()&&r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebMdDebugSetting.react").__setRef("WAWebSettingsFlow.react").load();return e}),"MdDebugSetting")().then(function(e){o("WAWebModalManager").ModalManager.open(s.jsx(e,{}))}),!0;default:return!1}}function c(e){var t=e.initialStep,a=t===void 0?o("WAWebSettingsConst").SettingsSteps.Settings:t,i=e.onEnd,l=e.activeAccountInfo,c=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),d=o("useWAWebFlow").useFlow(a,{transitions:o("useWAWebFlow").FlowTransitions.DrawerRight,onEnd:i}),m=d[0],p=d[1],_=o("WAWebBizGatingUtils").businessProfileRefreshEnabled(),f=r("useWAWebFocusOnMount")();if(!p.step)return null;if(u(p.step)){p.end();return}var g=function(){p.pop()},h=function(t){u(t)||(t===o("WAWebSettingsConst").SettingsSteps.Help&&o("WAWebCrashlog").upload({reason:"help-page-opened",isHighPri:!0}),p.push(t))},y;switch(p.step){case o("WAWebSettingsConst").SettingsSteps.Settings:y=s.jsx(r("WAWebSettingsDrawer.react"),{profileId:c,onProfile:function(){_?o("WAWebDrawerManager").DrawerManager.openDrawerMid(s.jsx(o("WAWebBizRefreshedProfileDrawerLoadable").WAWebBizRefreshedProfileDrawerLoadable,{entryPoint:o("WAWebWamEnumEntryPoint").ENTRY_POINT.SETTINGS,onClose:function(){return o("WAWebDrawerManager").DrawerManager.closeDrawerMid()}})):p.push(o("WAWebSettingsConst").SettingsSteps.Profile)},onClose:g,onSettingClick:h});break;case o("WAWebSettingsConst").SettingsSteps.Wallpaper:y=s.jsx(r("WAWebWallpaperDrawer.react"),{chat:null,onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings:y=s.jsx(r("WAWebGdprRequestAccountInfoSettingsDrawer.react"),{settings:r("WAWebSettingsModel"),onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.NewsletterReports:y=s.jsx(r("WAWebNewsletterDSAReportsFlow.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.Blocked:y=s.jsx(r("WAWebBlockedDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.Profile:{var C=o("WAWebTextStatusCollection").TextStatusCollection.assertGet(c),b=o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.assertGet(c),v=o("WAWebContactCollection").ContactCollection.assertGet(c);y=s.jsx(n("cr:1923"),{status:C,profilePicThumb:b,entryPoint:o("WAWebWamEnumEntryPoint").ENTRY_POINT.SETTINGS,contact:v,conn:o("WAWebConnModel").Conn,onClose:g,isInitialStep:!1});break}case o("WAWebSettingsConst").SettingsSteps.Notifications:y=s.jsx(r("WAWebNotificationsDrawer.react"),{onClose:g,onShowNotificationBannerClick:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.ShowNotificationBanner)},onTaskbarNotificationSettingsClick:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.TaskbarNotificationSettings)},onOpenCalls:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.Calls)},onOpenDirectMessages:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.DirectMessages)},onOpenGroupMessages:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.GroupMessages)},onOpenStatusUpdates:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.StatusUpdates)}});break;case o("WAWebSettingsConst").SettingsSteps.DirectMessages:y=s.jsx(r("WAWebDirectMessagesNotificationsDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.GroupMessages:y=s.jsx(r("WAWebGroupMessagesNotificationsDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.StatusUpdates:y=s.jsx(r("WAWebStatusUpdatesNotificationsDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.Calls:y=s.jsx(r("WAWebCallsNotificationsDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.LanguageAndTime:y=s.jsx(r("WAWebLanguageAndTimeSettingsDrawer.react"),{onClose:g,onLanguageOpen:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.Language)},onTimeFormatOpen:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.TimeFormat)}});break;case o("WAWebSettingsConst").SettingsSteps.Language:y=s.jsx(r("WAWebLanguageDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.Lists:y=s.jsx(r("WAWebBizLabelFlow.react"),{isInitialStep:!1});break;case o("WAWebSettingsConst").SettingsSteps.TimeFormat:y=s.jsx(r("WAWebTimeFormatDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.MediaAutoDownload:y=s.jsx(r("WAWebMediaAutoDownloadDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.MediaUploadQuality:y=s.jsx(r("WAWebMediaUploadQualityDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.Security:y=s.jsx(r("WAWebSecurityDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditLastSeen:y=s.jsx(r("WAWebPrivacySettingsLastSeenOnlineDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditProfilePicture:y=s.jsx(r("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:g,category:"profilePicture"});break;case o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditAbout:y=s.jsx(r("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:g,category:"about"});break;case o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditStatus:y=s.jsx(r("WAWebPrivacySettingsStatusPostDrawer.react"),{onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditGroupAdd:y=s.jsx(r("WAWebPrivacyVisibilityEditDrawer.react"),{onClose:g,category:"groupAdd"});break;case o("WAWebSettingsConst").SettingsSteps.PrivacySettings:{var S=function(t){switch(t){case"lastSeen":p.push(o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditLastSeen);break;case"about":p.push(o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditAbout);break;case"groupAdd":p.push(o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditGroupAdd);break;case"profilePicture":p.push(o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditProfilePicture);break}},R=function(){p.push(o("WAWebSettingsConst").SettingsSteps.Blocked)},L=function(){p.push(o("WAWebSettingsConst").SettingsSteps.DefaultEphemerality)},E=function(){p.push(o("WAWebSettingsConst").SettingsSteps.ScreenLock)},k=function(){p.push(o("WAWebSettingsConst").SettingsSteps.PrivacyVisiblityEditStatus)};y=s.jsx(o("WAWebPrivacySettingsDrawer.react").PrivacySettingsDrawer,{onClose:g,onOpenVisibilityEditDrawer:S,onOpenBlockedContacts:R,onOpenEphemeralityDrawer:L,onOpenScreenLockDrawer:E,onOpenStatusPrivacySettingDrawer:k});break}case o("WAWebSettingsConst").SettingsSteps.DefaultEphemerality:y=s.jsx(r("WAWebDefaultEphemeralityDrawer.react"),{onClose:g,entryPoint:o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.ACCOUNT_SETTINGS});break;case o("WAWebSettingsConst").SettingsSteps.Help:y=s.jsx(r("WAWebHelpDrawer.react"),{onClose:g,onNewsletterReports:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.NewsletterReports)},isInitialStep:a===o("WAWebSettingsConst").SettingsSteps.Help});break;case o("WAWebSettingsConst").SettingsSteps.Developer:{n("cr:8751")&&(y=s.jsx(n("cr:8751"),{onBack:g}));break}case o("WAWebSettingsConst").SettingsSteps.DeveloperABProps:{n("cr:8751")&&(y=s.jsx(n("cr:8751"),{onBack:g,initialStep:o("WAWebDeveloperMenuConstants").DeveloperMenu.ABProps}));break}case o("WAWebSettingsConst").SettingsSteps.BusinessTools:y=s.jsx(o("WAWebBizToolsFlowLoadable").BizToolsFlowLoadable,{adsAccountInfo:l,entryPoint:o("WAWebWamEnumBusinessToolsEntryPointType").BUSINESS_TOOLS_ENTRY_POINT_TYPE.ENTRY_SETTINGS});break;case o("WAWebSettingsConst").SettingsSteps.DataSharing:y=s.jsx(r("WAWebSMBDataSharingDrawer.react"),{onClose:g,entrypoint:o("WAWebWamEnumSmbDataSharingConsentSettingEntryPoint").SMB_DATA_SHARING_CONSENT_SETTING_ENTRY_POINT.ENTRY_POINT_SETTINGS_SCREEN});break;case o("WAWebSettingsConst").SettingsSteps.ScreenLock:y=s.jsx(r("WAWebScreenLockDrawer.react"),{onBack:g});break;case o("WAWebSettingsConst").SettingsSteps.Account:y=s.jsx(r("WAWebAccountSettingsDrawer.react"),{onClickSecurity:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.Security)},onClickRequestAccountInfo:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.RequestAccountInfoSettings)},onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.Chats:y=s.jsx(r("WAWebChatsSettingsDrawer.react"),{onClickTheme:function(){return u(o("WAWebSettingsConst").SettingsSteps.Theme)},onClickWallpaper:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.Wallpaper)},onClickMediaAutoDownload:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.MediaAutoDownload)},onClickMediaUploadQuality:function(){return p.push(o("WAWebSettingsConst").SettingsSteps.MediaUploadQuality)},onClose:g});break;case o("WAWebSettingsConst").SettingsSteps.ShowNotificationBanner:n("cr:7753")&&(y=s.jsx(n("cr:7753"),{onClose:g}));break;case o("WAWebSettingsConst").SettingsSteps.TaskbarNotificationSettings:n("cr:2404")&&(y=s.jsx(n("cr:2404"),{onClose:g}));break;case o("WAWebSettingsConst").SettingsSteps.WinGeneralSettings:n("cr:1977")&&(y=s.jsx(n("cr:1977"),{onClose:g}));break;case o("WAWebSettingsConst").SettingsSteps.WinDevicesSettings:n("cr:17209")&&(y=s.jsx(n("cr:17209"),{onClose:g}));default:}return s.jsx(m,{ref:f,flow:p,children:y})}c.displayName=c.name+" [from "+i.id+"]",l.SettingsFlow=c}),98); __d("WAWebCallDialerRefreshedIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="call-dialer-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M12 23C11.45 23 10.9792 22.8042 10.5875 22.4125C10.1958 22.0208 10 21.55 10 21C10 20.45 10.1958 19.9792 10.5875 19.5875C10.9792 19.1958 11.45 19 12 19C12.55 19 13.0208 19.1958 13.4125 19.5875C13.8042 19.9792 14 20.45 14 21C14 21.55 13.8042 22.0208 13.4125 22.4125C13.0208 22.8042 12.55 23 12 23ZM6 5C5.45 5 4.97917 4.80417 4.5875 4.4125C4.19583 4.02083 4 3.55 4 3C4 2.45 4.19583 1.97917 4.5875 1.5875C4.97917 1.19583 5.45 1 6 1C6.55 1 7.02083 1.19583 7.4125 1.5875C7.80417 1.97917 8 2.45 8 3C8 3.55 7.80417 4.02083 7.4125 4.4125C7.02083 4.80417 6.55 5 6 5ZM6 11C5.45 11 4.97917 10.8042 4.5875 10.4125C4.19583 10.0208 4 9.55 4 9C4 8.45 4.19583 7.97917 4.5875 7.5875C4.97917 7.19583 5.45 7 6 7C6.55 7 7.02083 7.19583 7.4125 7.5875C7.80417 7.97917 8 8.45 8 9C8 9.55 7.80417 10.0208 7.4125 10.4125C7.02083 10.8042 6.55 11 6 11ZM6 17C5.45 17 4.97917 16.8042 4.5875 16.4125C4.19583 16.0208 4 15.55 4 15C4 14.45 4.19583 13.9792 4.5875 13.5875C4.97917 13.1958 5.45 13 6 13C6.55 13 7.02083 13.1958 7.4125 13.5875C7.80417 13.9792 8 14.45 8 15C8 15.55 7.80417 16.0208 7.4125 16.4125C7.02083 16.8042 6.55 17 6 17ZM18 5C17.45 5 16.9792 4.80417 16.5875 4.4125C16.1958 4.02083 16 3.55 16 3C16 2.45 16.1958 1.97917 16.5875 1.5875C16.9792 1.19583 17.45 1 18 1C18.55 1 19.0208 1.19583 19.4125 1.5875C19.8042 1.97917 20 2.45 20 3C20 3.55 19.8042 4.02083 19.4125 4.4125C19.0208 4.80417 18.55 5 18 5ZM12 17C11.45 17 10.9792 16.8042 10.5875 16.4125C10.1958 16.0208 10 15.55 10 15C10 14.45 10.1958 13.9792 10.5875 13.5875C10.9792 13.1958 11.45 13 12 13C12.55 13 13.0208 13.1958 13.4125 13.5875C13.8042 13.9792 14 14.45 14 15C14 15.55 13.8042 16.0208 13.4125 16.4125C13.0208 16.8042 12.55 17 12 17ZM18 17C17.45 17 16.9792 16.8042 16.5875 16.4125C16.1958 16.0208 16 15.55 16 15C16 14.45 16.1958 13.9792 16.5875 13.5875C16.9792 13.1958 17.45 13 18 13C18.55 13 19.0208 13.1958 19.4125 13.5875C19.8042 13.9792 20 14.45 20 15C20 15.55 19.8042 16.0208 19.4125 16.4125C19.0208 16.8042 18.55 17 18 17ZM18 11C17.45 11 16.9792 10.8042 16.5875 10.4125C16.1958 10.0208 16 9.55 16 9C16 8.45 16.1958 7.97917 16.5875 7.5875C16.9792 7.19583 17.45 7 18 7C18.55 7 19.0208 7.19583 19.4125 7.5875C19.8042 7.97917 20 8.45 20 9C20 9.55 19.8042 10.0208 19.4125 10.4125C19.0208 10.8042 18.55 11 18 11ZM12 11C11.45 11 10.9792 10.8042 10.5875 10.4125C10.1958 10.0208 10 9.55 10 9C10 8.45 10.1958 7.97917 10.5875 7.5875C10.9792 7.19583 11.45 7 12 7C12.55 7 13.0208 7.19583 13.4125 7.5875C13.8042 7.97917 14 8.45 14 9C14 9.55 13.8042 10.0208 13.4125 10.4125C13.0208 10.8042 12.55 11 12 11ZM12 5C11.45 5 10.9792 4.80417 10.5875 4.4125C10.1958 4.02083 10 3.55 10 3C10 2.45 10.1958 1.97917 10.5875 1.5875C10.9792 1.19583 11.45 1 12 1C12.55 1 13.0208 1.19583 13.4125 1.5875C13.8042 1.97917 14 2.45 14 3C14 3.55 13.8042 4.02083 13.4125 4.4125C13.0208 4.80417 12.55 5 12 5Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.CallDialerRefreshedIcon=m}),98); __d("WAWebComposeBoxPopupPanel.react",["WAWebFbtCommon","WAWebTabOrder","WDSButton.react","WDSIconIcClose.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useImperativeHandle,p=c.useRef,_={container:{display:"x78zum5",alignItems:"x6s0dn4",backgroundColor:"xhjsbib",$$css:!0},notQuestionContainer:{width:"xh8yej3",borderInlineStartWidth:"xpilrb4",borderInlineStartStyle:"x1t7ytsu",borderInlineStartColor:"x1vb5itz",$$css:!0},containerRefresh:{backgroundColor:"xk7ee7b",borderInlineStartWidth:"x14e42zd",borderInlineEndWidth:"x10w94by",$$css:!0},quotedQuestionContainer:{backgroundColor:"x4wrhlh",borderInlineStartWidth:"xpilrb4",borderInlineEndWidth:"x1lun4ml",borderInlineStartStyle:"x1t7ytsu",borderInlineEndStyle:"x18b5jzi",borderTopColor:"xx42vgk",borderInlineEndColor:"xbogo7e",borderBottomColor:"x120ee7l",borderInlineStartColor:"x1vb5itz",$$css:!0},notTopmostPanel:{transition:"x1lkwvkz",$$css:!0},topmostPanel:{borderStartStartRadius:"x12l2aii",borderStartEndRadius:"x1mbk4o",transition:"x1yf5jnz",$$css:!0},questionsTopMostPanel:{borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",$$css:!0},body:{display:"x78zum5",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",backgroundColor:"xk7ee7b",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",marginInlineStart:"x150mmf0",marginInlineEnd:"xqf2s3x",marginLeft:null,marginRight:null,marginTop:"x1380le5",$$css:!0},cancelButtonRefresh:{borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",position:"x10l6tqk",top:"xfr5jun",insetInlineEnd:"x11dcrhx",left:null,right:null,$$css:!0},transparentBackground:{backgroundColor:"xjbqb8w",$$css:!0}};function f(e){var t=e.bodyBackground,n=t===void 0?!0:t,a=e.children,i=e.isTopmostPanel,l=i===void 0?!1:i,u=e.onOmit,c=e.questionType,f=e.ref,g=e.showCloseButton,h=g===void 0?!0:g,y=p();m(f,function(){return{getElement:function(){return y.current}}});var C=[_.container];c!=null?C.push(_.quotedQuestionContainer):C.push([_.notQuestionContainer,_.containerRefresh]),l?(C.push(_.topmostPanel),c!=null&&C.push(_.questionsTopMostPanel)):C.push(_.notTopmostPanel);var b=[_.body];n||b.push(_.transparentBackground);var v=h&&d.jsx("div",{className:"x9f619 x1okw0bk x6s0dn4 xl56j7k xv371q9 xf9nvzp xhslqc4 x1bu39yj x1lliihq x1n2onr6",children:d.jsx(r("WDSButton.react"),{Icon:r("WDSIconIcClose.react"),variant:"borderless",tabOrder:o("WAWebTabOrder").TAB_ORDER.COMPOSE_BOX_MENU_BUTTON,onPress:u,xstyle:_.cancelButtonRefresh,"aria-label":r("WAWebFbtCommon")("Cancel")})});return d.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(C),{"data-testid":void 0,ref:y,children:d.jsxs("div",babelHelpers.extends({},s.props(b),{children:[a,v]}))}))}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),98); __d("WAWebExternalBetaDrawerButton.react",["fbt","WAWebHelpItemIcon.react","WAWebMenuItems.react","WAWebPrimaryFeatures","WAWebText.react","WDSSwitch.react","cr:23046","react","useWAWebABPropConfigValue","useWAWebExternalBetaOptIn"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=o("useWAWebExternalBetaOptIn").useExternalBetaOptIn(),t=e[0],a=e[1],i=o("useWAWebABPropConfigValue").useABPropConfigValue("external_beta_can_join");if(!i||!o("WAWebPrimaryFeatures").primaryFeatureEnabled("external_web_beta_opt_in")||n("cr:23046")!=null&&n("cr:23046").isWindowsHybridEnabled())return null;var l=u.jsx(r("WDSSwitch.react"),{value:t,onChange:function(t,n){n.stopPropagation(),n.preventDefault(),a()}});return u.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"help-join-beta",testid:void 0,onSelect:a,detailLeft:u.jsx(o("WAWebHelpItemIcon.react").HelpItemIcon,{iconType:o("WAWebHelpItemIcon.react").HelpItemIconType.Beta}),secondary:u.jsx(o("WAWebText.react").WAWebTextMuted,{textWrap:"wrap",children:s._(/*BTDS*/"Accede a nuevas funciones antes de su lanzamiento. Utiliza el formulario Cont\u00e1ctanos que se encuentra m\u00e1s arriba para reportar errores.")}),detailRight:l,primary:s._(/*BTDS*/"Unirse a la versi\u00f3n beta")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebPhoneIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","innerStyles","name","viewBox","width"],s,u,c=s||(s=r("react")),d="phone";function m(t){var n=t.height,a=t.iconXstyle,i=t.innerStyles,l=t.name,s=t.viewBox,m=t.width,p=babelHelpers.objectWithoutPropertiesLoose(t,e),_;if(s){var f=s.height,g=f===void 0?0:f,h=s.width,y=h===void 0?0:h,C=s.x,b=C===void 0?0:C,v=s.y,S=v===void 0?0:v;_=[b,S,y,g].join(" ")}var R=24,L=24;return(n!=null||m!=null)&&(R=n,L=m),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:l!=null?l:d},p,{children:c.jsxs("svg",{viewBox:_!=null?_:"0 0 24 24",height:R,width:L,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"currentColor",children:[c.jsx("title",{children:l!=null?l:d}),c.jsx("path",{d:"M19.23 15.26l-2.54-.29c-.61-.07-1.21.14-1.64.57l-1.84 1.84c-2.83-1.44-5.15-3.75-6.59-6.59l1.85-1.85c.43-.43.64-1.03.57-1.64l-.29-2.52c-.12-1.01-.97-1.77-1.99-1.77H5.03c-1.13 0-2.07.94-2 2.07.53 8.54 7.36 15.36 15.89 15.89 1.13.07 2.07-.87 2.07-2v-1.73c.01-1.01-.75-1.86-1.76-1.98z",className:u(i==null?void 0:i.primary)})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.PhoneIcon=m}),98); __d("WAWebQuestionReplyQuotedMessage.react",["WAWebEmojiText.react","WAWebFlex.react","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgModelFromData","WAWebNewsletterOpenAtAction","WAWebNewsletterValidationUtils","WAWebQuotedMsgContent.react","WAWebQuotedMsgWrapper.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useMemo,c={barColor:{backgroundColor:"x1518k6t",$$css:!0},contentWrapper:{paddingInlineEnd:"x1nzty39",paddingInlineStart:"x12w63v0",paddingTop:"x16ovd2e",paddingBottom:"x12xbjc7",backgroundColor:"x1bu39yj",width:"xh8yej3",$$css:!0},responseBody:{paddingTop:"x1tiyuxx",$$css:!0}};function d(e){var t=e.questionReplyQuotedMessage,a=e.replyMsg,i=a&&o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(o("WAWebFrontendMsgGetters").getChat(a).id.toJid()),l=a==null?void 0:a.serverId,d=function(){l==null||i==null||o("WAWebNewsletterOpenAtAction").openNewsletterAt({newsletterJid:i,serverId:l})},m=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){i!=null&&o("WAWebNewsletterOpenAtAction").openNewsletterAt({newsletterJid:i,serverId:t.questionServerId,onMessageDeleted:d,onMessageNotFound:d})});return function(){return e.apply(this,arguments)}})(),p=u(function(){var e=o("WAWebMsgModelFromData").msgModelFromMsgData(t.quotedQuestion);return o("WAWebMsgCollection").MsgCollection.gadd(e)},[t.quotedQuestion]);return s.jsx(r("WAWebQuotedMsgWrapper.react"),{authorBackgroundStyle:c.barColor,handleClick:m,clickable:a!=null,rootMsg:a==null?void 0:a.safe(),children:s.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:c.contentWrapper,children:[s.jsx(r("WAWebQuotedMsgContent.react"),{msg:p.safe(),theme:"questions"}),s.jsx(o("WAWebEmojiText.react").EmojiText,{xstyle:c.responseBody,text:t.quotedResponse.body,breakWord:!0})]})})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebQuotedMsgAdminGroupName.react",["fbt","WAWebChatCollection","WAWebCmd","WAWebEmojiText.react","WAWebFindChatAction","WAWebGroupMetadataCollection","react"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useImperativeHandle,_=d.useState,f={description:{color:"xhslqc4",paddingTop:"x123j3cw",fontSize:"x1f6kntn",fontWeight:"xo1l8bm",lineHeight:"xyesn5m",$$css:!0}};function g(t){var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.isComposePreview,u=l===void 0?!1:l,c=i.quotedGroupJid,d=i.quotedGroupSubject,g=i.quotedParentGroupJid,h=(n=r("WAWebGroupMetadataCollection").get(c))==null?void 0:n.participants,y=g!=null,C=_(!1),b=C[0],v=C[1],S=function(t){v(!0)},R=function(t){v(!0)},L=function(t){v(!1)},E=function(){var e=o("WAWebChatCollection").ChatCollection.get(c);return e==null?void 0:e.formattedTitle},k=function(){var e=y&&(h==null||!h.iAmMember());e||o("WAWebFindChatAction").findOrCreateLatestChat(c,"quotedMsgAdminGroupName").then(function(e){var t=e.chat;return o("WAWebCmd").Cmd.openChatBottom({chat:t})})},I=function(){return!b&&!u};p(a,function(){return{hoverable:I}});var T=d!=null?d:E();if(T==null)return null;var D={0:"x1n2onr6 x78zum5 x6ikm8r x10wlt62 x16p640f xp43t2z x5j5mwf xptal55 xjodkme",2:"x1ypdohk x1n2onr6 x78zum5 x6ikm8r x10wlt62 x16p640f xp43t2z x5j5mwf xptal55 xjodkme",1:"x1n2onr6 x78zum5 x6ikm8r x10wlt62 xjbqb8w x1bczwif x17un8ov x1e7945m x11o6v7j",3:"x1ypdohk x1n2onr6 x78zum5 x6ikm8r x10wlt62 xjbqb8w x1bczwif x17un8ov x1e7945m x11o6v7j"}[!!b<<1|!!u<<0],x=y?s._(/*BTDS*/"{subgroup-name}",[s._param("subgroup-name",T)]):null,$=y?m.jsx(o("WAWebEmojiText.react").EmojiText,{xstyle:f.description,text:s._(/*BTDS*/"Solicitar unirme")}):null;return m.jsx("div",{onMouseOver:S,onMouseEnter:R,onMouseLeave:L,className:D,children:m.jsxs("div",babelHelpers.extends({},{0:{className:"x78zum5 x6ikm8r x10wlt62 xlyipyv"},1:{className:"x78zum5 x6ikm8r x10wlt62 xlyipyv xh8yej3 xcr9lap x1f6kntn x1n6pog2"}}[!!u<<0],{role:u?"none":"button",onClick:k,children:[m.jsx("span",{className:"x1okw0bk x51ohtg x1w6zdaa"}),m.jsxs("div",babelHelpers.extends({},{0:{className:"x9f619 x78zum5 x1iyjqo2 x6s0dn4 x123j3cw xpdmqnj x1ykpatu xmzvs34 x6ikm8r x10wlt62"},2:{className:"x9f619 x78zum5 x1iyjqo2 x6s0dn4 x6ikm8r x10wlt62 x1y1aw1k xpdmqnj xdvlbce x1iwz3mf"},1:{className:"x9f619 x78zum5 x1iyjqo2 x123j3cw xpdmqnj x1ykpatu xmzvs34 x6ikm8r x10wlt62 xdt5ytf x7a106z x1yc453h"},3:{className:"x9f619 x78zum5 x1iyjqo2 x6ikm8r x10wlt62 x1y1aw1k xpdmqnj xdvlbce x1iwz3mf xdt5ytf x7a106z x1yc453h"}}[!!u<<1|!!y<<0],{children:[m.jsx(o("WAWebEmojiText.react").EmojiText,{className:"quoted-mention",text:x!=null?x:s._(/*BTDS*/"Grupo \u2022 {groupName}",[s._param("groupName",T)]),direction:"auto"},"status"),$]}))]}))})}g.displayName=g.name+" [from "+i.id+"]";var h=g;l.QuotedMsgAdminGroupName=h}),226);