;/*FB_PKG_DELIM*/ __d("WAMapsShallowEqual",[],(function(t,n,r,o,a,i){"use strict";function e(e,t){var n;if(e.size!==t.size)return!1;for(var r of e){var o=r[0],a=r[1];if(n=t.get(o),n!==a||n===void 0&&!t.has(o))return!1}return!0}i.default=e}),66); __d("WAWebAddGroupToCommunityFlowLoadable.react",["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")("WAWebAddGroupToCommunityFlow.react").__setRef("WAWebAddGroupToCommunityFlowLoadable.react").load();return e}),"CommunityTransferOwnershipFlow"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.AddGroupToCommunityFlowLoadable=c}),98); __d("WAWebAiGroupOpenSecurityDrawerSection.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebErrorIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onClick,n=s._(/*BTDS*/"Seguridad"),r=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:n}),a=s._(/*BTDS*/"Un miembro del grupo a\u00f1adi\u00f3 a Meta AI a este chat. Meta puede leer los mensajes nuevos."),i=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowSecondaryTitleRefreshed,{title:a}),l=u.jsx(o("WAWebErrorIcon.react").ErrorIcon,{});return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{icon:l,onClick:t,title:r,secondaryTitle:i})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebBizBot3pInfoAboutSection.react",["fbt","WAWebChatInfoDrawerSection.react","WAWebText.react","react","useWAWebModelValues","vulture"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t,n=e.businessProfile;r("vulture")("OBkCofhl7A7hMcuCxUnYNxYg7uc=");var a=(t=o("useWAWebModelValues").useModelValues(n,["description"]))!=null?t:{},i=a.description;return i==null?null:u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-about",title:s._(/*BTDS*/"Info."),children:u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:i})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebBizBotCommandsSection.react",["fbt","WAWebChatInfoDrawerSection.react","WAWebClickable.react","WAWebComposeBoxActions","WAWebText.react","WAWebUISpacing","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={command:{borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",backgroundColor:"x16ar8wu",$$css:!0},commands:{display:"x78zum5",flexDirection:"x1q0g3np",flexWrap:"x1a02dak",$$css:!0}};function m(e){var t,n=e.businessProfile,a=(t=o("useWAWebModelValues").useModelValues(n,["commands","commandsDescription"]))!=null?t:{},i=a.commands,l=a.commandsDescription;return i==null||!i.length?null:c.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-commands",title:s._(/*BTDS*/"Comandos"),children:[!!l&&c.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:l}),c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(d.commands,o("WAWebUISpacing").uiMargin.top8),{children:i.map(function(e){var t,n=e.description,r=e.name,a="/"+r+" ",i=function(){o("WAWebComposeBoxActions").ComposeBoxActions.paste(null,a,{insertLeadingSpace:!0})};return c.jsx(o("WAWebClickable.react").Clickable,{title:n,onClick:i,xstyle:[d.command,(t=o("WAWebUISpacing")).uiPadding.vert4,t.uiPadding.horiz10,t.uiMargin.end8,t.uiMargin.vert4],children:c.jsx(o("WAWebText.react").WAWebTextSmall,{as:"span",color:"primary",children:a})},r)})}))]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebBizBroadcastsAudienceSelectionStrings",["fbt"],(function(t,n,r,o,a,i,l,s){function e(){return s._(/*BTDS*/"Nuevo p\u00fablico")}function u(){return s._(/*BTDS*/"Selecciona a qui\u00e9nes quieres llegar con tu difusi\u00f3n.")}function c(){return s._(/*BTDS*/"Guardar p\u00fablico")}function d(){return s._(/*BTDS*/"Seleccionar destinatarios")}function m(e,t){return s._(/*BTDS*/"{selected_count} de {max_count} seleccionados",[s._param("selected_count",e),s._param("max_count",t)])}function p(){return s._(/*BTDS*/"Buscar nombre o n\u00famero")}function _(){return s._(/*BTDS*/"Nombre del p\u00fablico")}function f(){return s._(/*BTDS*/"Nombre del p\u00fablico")}l.getNewAudienceTitle=e,l.getNewAudienceSubtitle=u,l.getSaveAudienceButtonLabel=c,l.getChooseRecipientsHeader=d,l.getSelectedCountText=m,l.getSearchPlaceholder=p,l.getAudienceNameHeader=_,l.getAudienceNameInputLabel=f}),226); __d("WAWebBizBroadcastsCreationStrings",["fbt","WAWebBizBroadcastsRecipientUtils"],(function(t,n,r,o,a,i,l,s){"use strict";function e(){return s._(/*BTDS*/"Nueva difusi\u00f3n comercial")}function u(e){return e?s._(/*BTDS*/"Enviando\u2026"):s._(/*BTDS*/"Enviar ahora")}function c(){return s._(/*BTDS*/"P\u00fablico")}function d(){return s._(/*BTDS*/"Crear p\u00fablico")}function m(){return s._(/*BTDS*/"Nuevo p\u00fablico")}function p(){return s._(/*BTDS*/"Importar p\u00fablico")}function _(){return s._(/*BTDS*/"P\u00fablicos existentes")}function f(){return s._(/*BTDS*/"Selecciona a qui\u00e9nes quieres llegar con tu p\u00fablico")}function g(e){return s._(/*BTDS*/"{count} destinatarios",[s._param("count",e)])}function h(){return s._(/*BTDS*/"P\u00fablico importado")}function y(){return s._(/*BTDS*/"Audience created")}function C(){return s._(/*BTDS*/"Audience updated")}function b(){return s._(/*BTDS*/"Mensaje")}function v(){return s._(/*BTDS*/"Mensaje")}function S(){return s._(/*BTDS*/"Archivos adjuntos")}function R(){return s._(/*BTDS*/"Incluye una imagen o un video para que tu mensaje se destaque (opcional).")}function L(){return s._(/*BTDS*/"A\u00f1adir archivo adjunto")}function E(){return s._(/*BTDS*/"C\u00e1mara")}function k(){return s._(/*BTDS*/"Fotos y videos")}function I(){return s._(/*BTDS*/"Vista previa")}function T(){return s._(/*BTDS*/"Tu mensaje se mostrar\u00e1 aqu\u00ed.")}function D(){return s._(/*BTDS*/"Detalles")}function x(){return s._(/*BTDS*/"M\u00e9todo de pago")}function $(){return s._(/*BTDS*/"Resumen")}function P(){return s._(/*BTDS*/"Total de destinatarios")}function N(){return s._(/*BTDS*/"Costo estimado")}function M(){return s._(/*BTDS*/"Impuestos estimados")}function w(){return s._(/*BTDS*/"Total estimado")}function A(){return s._(/*BTDS*/"Cr\u00e9ditos usados")}function F(){return s._(/*BTDS*/"Cr\u00e9ditos disponibles")}function O(){return s._(/*BTDS*/"P\u00fablicos existentes")}function B(e){return s._(/*BTDS*/"{count} destinatarios",[s._param("count",e)])}function W(e){var t=e.broadcastJidIsNull,n=e.contactsCount,r=e.hasPendingBillingAction,a=e.hasRequiredBusinessInfo,i=e.isCreatingCampaign,l=e.isLoadingBusinessInfo,u=e.isMessageEmpty,c=o("WAWebBizBroadcastsRecipientUtils").getRecipientLimit();return i?null:t?s._(/*BTDS*/"Please choose a valid audience to send your broadcast."):l?s._(/*BTDS*/"Loading business information..."):a?n<2?s._(/*BTDS*/"Add at least two recipients to send your broadcast."):n>c?s._(/*BTDS*/"You can only send to up to {recipientLimit} recipients.",[s._param("recipientLimit",c)]):r?s._(/*BTDS*/"Complete the pending billing action to continue."):u?s._(/*BTDS*/"Add a message or attachment to send your broadcast."):null:s._(/*BTDS*/"Could not find account information to send broadcast.")}l.getNewBroadcastDrawerTitle=e,l.getSendNowButtonLabel=u,l.getAudienceSectionTitle=c,l.getCreateAudienceLabel=d,l.getNewAudienceLabel=m,l.getImportAudienceLabel=p,l.getExistingAudiencesLabel=_,l.getAudienceSectionSubtitle=f,l.getAudienceRecipientCountLabel=g,l.getAudienceImportedToastLabel=h,l.getAudienceCreatedToastLabel=y,l.getAudienceUpdatedToastLabel=C,l.getMessageSectionTitle=b,l.getMessageTextFieldLabel=v,l.getAttachmentSectionTitle=S,l.getAttachmentSectionSubtitle=R,l.getAddAttachmentButtonLabel=L,l.getAttachmentMenuCameraLabel=E,l.getAttachmentMenuPhotosVideosLabel=k,l.getPreviewSectionTitle=I,l.getPreviewMessagePlaceholder=T,l.getDetailsSectionTitle=D,l.getPaymentMethodLabel=x,l.getBillingSummarySectionTitle=$,l.getTotalRecipientsLabel=P,l.getEstimatedCostLabel=N,l.getEstimatedTaxLabel=M,l.getEstimatedTotalLabel=w,l.getCreditsUsedLabel=A,l.getAvailableCreditsLabel=F,l.getExistingAudiencesDialogTitle=O,l.getExistingAudienceRecipientsLabel=B,l.getSendNowButtonDisabledReason=W}),226); __d("WAWebBizBroadcastsAudienceUtils",["WAWebBizBroadcastsCreationStrings","WAWebBroadcastListAction","WAWebChatCollection","WAWebChatGetters","WAWebChatGroupUtils","WAWebFbtCommon","WAWebToast.react","WAWebToastManager","WAWebWidToJid","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=100;function c(){var e=o("WAWebChatCollection").ChatCollection.filter(function(e){return o("WAWebChatGetters").getIsBroadcast(e)});return e.map(function(e){var t,n,r;return{broadcastJid:o("WAWebWidToJid").widToBroadcastJid(e.id),name:(t=o("WAWebChatGroupUtils").getBroadcastChatTitle(e))!=null?t:"",recipientCount:(n=(r=e.broadcastMetadata)==null?void 0:r.recipients.length)!=null?n:0}})}function d(e,t,a){var i=e.broadcastJid,l=o("WAWebToast.react").genId(),u=t==="create"?o("WAWebBizBroadcastsCreationStrings").getAudienceCreatedToastLabel():t==="edit"?o("WAWebBizBroadcastsCreationStrings").getAudienceUpdatedToastLabel():t==="import"?o("WAWebBizBroadcastsCreationStrings").getAudienceImportedToastLabel():(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+t)})();o("WAWebToastManager").ToastManager.open(s.jsx(o("WAWebToast.react").Toast,{id:l,msg:u,action:{actionText:r("WAWebFbtCommon")("Undo"),onAction:function(){n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebBroadcastListAction").deleteBroadcastListAction(i).then(function(){return a()}).finally(function(){return o("WAWebToastManager").ToastManager.close(l)})})()}}}))}l.MAX_AUDIENCE_NAME_LENGTH=u,l.getBroadcastChatsAsAudiences=c,l.showCreateAudienceSuccessToast=d}),98); __d("WAWebBizGetProfileShimlinksQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"bizJid"}],t=[{alias:null,args:[{kind:"Variable",name:"biz_jid",variableName:"bizJid"}],concreteType:"XWAWhatsAppSMBProfileWebsiteInfo",kind:"LinkedField",name:"xwa_whatsapp_smb_get_profile_linkshims",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"website",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"shimmed_website_url",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebBizGetProfileShimlinksQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebBizGetProfileShimlinksQuery",selections:t},params:{id:"24491258413796282",metadata:{},name:"WAWebBizGetProfileShimlinksQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebBizGetProfileShimlinksQuery",["WALogger","WAWebBizGetProfileShimlinksQuery.graphql","WAWebGraphQLServerError","WAWebNetworkStatus","WAWebRelayClient","WAWebSignedShimmedUrl","asyncToGeneratorRuntime","isStringNullOrEmpty"],(function(t,n,r,o,a,i,l){var e,s,u,c={type:"error"},d=e!==void 0?e:e=n("WAWebBizGetProfileShimlinksQuery.graphql");function m(e){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return yield r("WAWebNetworkStatus").waitIfOffline(),o("WAWebRelayClient").fetchQuery(d,{bizJid:e}).then(function(e){if(e==null)return c;var t=e.xwa_whatsapp_smb_get_profile_linkshims,n={type:"success",websites:t.reduce(function(e,t){var n=t.shimmed_website_url,a=t.website;return r("isStringNullOrEmpty")(a)||(r("isStringNullOrEmpty")(n)?e.push({url:a}):e.push({url:a,signedShimmedUrl:o("WAWebSignedShimmedUrl").asSignedShimmedUrl(n)})),e},[])};return o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["getProfileShimlinks: success"]))),n}).catch(function(e){return o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["getProfileShimlinks: failed with error"]))),e instanceof o("WAWebGraphQLServerError").GraphQLServerError?{type:"graphql-error",error:e}:c})}),p.apply(this,arguments)}l.getProfileShimlinks=m}),98); __d("WAWebBotDataSharingIcon.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="bot-data-sharing";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:"M5.081 12.9c.44 2.98 2.87 5.41 5.86 5.84 2.22.33 4.26-.38 5.73-1.72.5-.45 1.22-.56 1.8-.22.87.5 1 1.71.26 2.39-2.09 1.92-4.99 2.95-8.13 2.53-4.38-.59-7.92-4.13-8.51-8.51a10.02 10.02 0 0 1 6.98-10.96c.96-.29 1.93.44 1.93 1.44v.02c0 .67-.45 1.24-1.09 1.43a6.996 6.996 0 0 0-4.83 7.76Zm7.92-9.19v-.02c0-1 .97-1.73 1.92-1.44 4.1 1.25 7.08 5.07 7.08 9.57 0 .76-.09 1.51-.26 2.23-.23.96-1.35 1.41-2.21.91l-.01-.01c-.57-.34-.83-1-.69-1.64.11-.48.17-.97.17-1.49 0-3.14-2.07-5.79-4.92-6.68-.63-.2-1.08-.76-1.08-1.43Z",fill:"#8696A0"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.BotDataSharingIcon=m}),98); __d("WAWebBotInfoAboutSection.react",["fbt","WAWebBotProfileGetters","WAWebChatInfoDrawerSection.react","WAWebContactGetters","WAWebText.react","WAWebUseBotProfileValues","react","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.contact,n=o("useWAWebContactValues").useContactValues(t.id,[o("WAWebContactGetters").getId]),r=n[0],a=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(r,[o("WAWebBotProfileGetters").getDescription]),i=a[0];return i==null?null:u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-about",title:s._(/*BTDS*/"Info."),children:u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:i})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebBroadcastAudienceNameField.react",["fbt","WAWebBizBroadcastsAudienceSelectionStrings","WAWebBizBroadcastsAudienceUtils","WDSTextField.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.defaultValue,n=e.onFocus,a=e.onValueChange,i=e.testid,l=e.value,u=d(null),m=u[0],p=u[1];function _(e){a(e),m!=null&&p(null),e.trim()===""&&p(s._(/*BTDS*/"Ingresa un nombre para el p\u00fablico"))}return c.jsx(r("WDSTextField.react"),{defaultValue:t,error:m!=null,errorText:m,label:o("WAWebBizBroadcastsAudienceSelectionStrings").getAudienceNameInputLabel(),maxCharacterCount:o("WAWebBizBroadcastsAudienceUtils").MAX_AUDIENCE_NAME_LENGTH,onFocus:n,onValueChange:_,testid:void 0,value:l})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebBroadcastEditRecipientsModal.react",["fbt","WAWebBizBroadcastsRecipientUtils","WAWebBroadcastListAction","WAWebContactCollection","WAWebModalManager","WAWebSelectModal.react","WAWebSelectModalFooter.react","WAWebWidToJid","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,n=o("useWAWebModelValues").useModelValues(t,["id","name","broadcastMetadata"]),r=o("useWAWebModelValues").useOptionalModelValues(n.broadcastMetadata,["recipients"]),a=function(){var e;return(e=r==null?void 0:r.recipients.map(function(e){return e.contact}))!=null?e:[]},i=o("WAWebContactCollection").ContactCollection.getFilteredContacts({showMe:!1,filterFn:null}),l=function(t){if(!(t.length0){var I=function(a){var t=a.e,i=a.signedShimmedUrl,l=a.url;o("WAWebStopEvent").stopEvent(t),o("WAWebBusinessLogEvents").logWebsiteClick(L,C,!!g);var s=r("WAWebURLUtils").toMaliciousSiteRedirect(l);if(!o("WAWebBizGatingUtils").isUsingSignedShimmedLinkInCatalogueEnabled()){o("WAWebExternalLink.react").openExternalLink(s);return}if(i!=null){o("WAWebExternalLink.react").openExternalLink(i);return}o("WAWebBizGetProfileShimlinksQuery").getProfileShimlinks(o("WAWebBusinessProfileCollection").BusinessProfileCollection.convertBusinessProfileIdForLidMigration(n.id.toString()).toString()).then(function(e){var t;if(e.type!=="success"){o("WAWebExternalLink.react").openExternalLink(s);return}e.type;var n=(t=e.websites.find(function(e){return e.url===l}))==null?void 0:t.signedShimmedUrl;n!=null?o("WAWebExternalLink.react").openExternalLink(n):o("WAWebExternalLink.react").openExternalLink(s)}).catch(function(){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["BusinessInfo: failed to fetch signed shimmed link"]))),o("WAWebExternalLink.react").openExternalLink(s)})};k.push(d.jsx("div",{className:"x1jchvi3 xdod15v x14ug900",children:S.map(function(e){var t=e.signedShimmedUrl,n=e.url;return d.jsx("div",{children:d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:n,onClick:function(r){return I({e:r,url:n,signedShimmedUrl:t})},testid:void 0,children:n})},n)})}))}return k.length===0?null:d.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{xstyle:o("WAWebUISpacing").uiPadding.vert16,children:k.map(function(e,t){return d.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(t!==0&&o("WAWebUISpacing").uiMargin.top24),{children:e}),t)})})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),98); __d("WAWebBusinessName.react",["fbt","WAWebBotFrontendUtils","WAWebBotGating","WAWebBotProfileGetters","WAWebBotTypes","WAWebCheckmarkInfoModal.react","WAWebCheckmarkInfoModalLogEvents","WAWebContactGetters","WAWebEmojiText.react","WAWebExternalLink.react","WAWebFrontendContactGetters","WAWebMiscGatingUtils","WAWebModalManager","WAWebName.react","WAWebSupportChatStrings","WAWebUISpacing","WAWebUseBotProfileValues","WDSIconWdsIcAiFilled.react","isStringNullOrEmpty","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={subtitle:{color:"xyj2c9f",fontSize:"x1jchvi3",lineHeight:"x1u7k74",$$css:!0},botSubtitleDivider:{fontWeight:"x117nqv4",lineHeight:"x1u7k74",color:"x14ug900",$$css:!0},botIcon:{color:"xhslqc4",$$css:!0},title:{fontSize:"xlm9qay",fontWeight:"x1s688f",$$css:!0}};function m(e){var t=e.businessProfile,n=e.contact,a=o("WAWebBotGating").isBizBot3pEnabled()&&t.isBizBot3p,i=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(n.id,[o("WAWebBotProfileGetters").getIsMetaCreated,o("WAWebBotProfileGetters").getCreatorName,o("WAWebBotProfileGetters").getCreatorProfileUrl,o("WAWebBotProfileGetters").getIsDefault,o("WAWebBotProfileGetters").getPosingAsProfessional]),l=i[0],m=i[1],_=i[2],f=i[3],g=i[4],h,y,C,b=function(){o("WAWebMiscGatingUtils").isBlueEducationEnabled()&&(o("WAWebCheckmarkInfoModalLogEvents").logClickProfileBadge(n),o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebCheckmarkInfoModal.react"),{})))};t.customUrl!=null&&(C=c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.subtitle,o("WAWebUISpacing").uiMargin.bottom4]),{children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:t.customUrl,direction:"auto",titlify:!0,breakWord:!0,inlineblock:!0})})));var v=o("WAWebContactGetters").getShowBusinessCheckmarkAsPrimary(n),S=o("WAWebContactGetters").getShowBusinessCheckmarkAsSecondary(n);if(o("WAWebContactGetters").getIsMe(n))h=c.jsx(o("WAWebName.react").Name,{contact:n,showMessageYourselfName:!0,useVerifiedName:!0,breakWord:!0,selectable:!0}),n.name!==n.verifiedName&&(y=c.jsx(o("WAWebName.react").Name,{contact:n,selectable:!0}));else if(h=c.jsx(o("WAWebName.react").Name,{contact:n,showBusinessCheckmark:v,onClick:v?b:null,makeCheckmarkClickable:v,checkmarkLarge:!0,breakWord:!0,selectable:!0}),o("WAWebContactGetters").getIsIAS(n))y=c.jsx("div",{className:"xyj2c9f x1jchvi3 x1u7k74",children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:s._(/*BTDS*/"Cuenta oficial de WhatsApp"),direction:"auto",ellipsify:!0,titlify:!0,breakWord:!0,selectable:!0})});else if(o("WAWebContactGetters").getId(n).isBot()||a){var R=o("WAWebFrontendContactGetters").getShowBiz3pBotVerifiedNameAsSecondary(n),L=s._(/*BTDS*/"IA"),E=o("WAWebContactGetters").getId(n).isBot()?c.jsx(r("WDSIconWdsIcAiFilled.react"),{width:15,height:15,xstyle:[o("WAWebUISpacing").uiMargin.top2,o("WAWebUISpacing").uiMargin.start2,d.botIcon]}):null;if(f)L=o("WAWebBotFrontendUtils").metaAiLlamaVersionTitleFbs(),E=null;else if(o("WAWebBotGating").isUgcBotEnabled()){var k;L=(k=p(l,m,_,g))!=null?k:L,E=null}y=c.jsxs("div",{className:"xhslqc4 x1jchvi3 x1u7k74 x78zum5 xl56j7k x1sdyfia",children:[R&&c.jsxs(c.Fragment,{children:[c.jsx(o("WAWebName.react").Name,{contact:n,showBusinessCheckmark:S,useVerifiedName:!0,breakWord:!0,selectable:!0}),c.jsx("span",babelHelpers.extends({},(u||(u=r("stylex"))).props(d.botSubtitleDivider,S&&o("WAWebUISpacing").uiMargin.end8,!S&&o("WAWebUISpacing").uiMargin.horiz8),{children:"\xB7"}))]}),c.jsxs("div",{className:"xhslqc4 x1jchvi3 x1u7k74 x78zum5 xl56j7k x1sdyfia",children:[L,E]})]})}else o("WAWebContactGetters").getIsCAPISupportAccount(n)?y=c.jsx("div",{className:"xyj2c9f x1jchvi3 x1u7k74",children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebSupportChatStrings").SupportChatSubtitle(),direction:"auto",ellipsify:!0,titlify:!0,breakWord:!0,selectable:!0})}):!r("isStringNullOrEmpty")(n.name)&&!r("isStringNullOrEmpty")(n.verifiedName)&&n.name!==n.verifiedName&&(y=c.jsx(o("WAWebName.react").Name,{contact:n,showBusinessCheckmark:S,onClick:S?b:null,makeCheckmarkClickable:S,useVerifiedName:!0,breakWord:!0,selectable:!0,elevatedPushNamesEnabled:!0}));return c.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiMargin.bottom6),{children:[c.jsx("div",babelHelpers.extends({},u.props(d.title,o("WAWebUISpacing").uiMargin.bottom8),{children:h})),y,C]}))}m.displayName=m.name+" [from "+i.id+"]";function p(e,t,n,r){if(e===!0)return s._(/*BTDS*/"IA de Meta");if(t!=null){var a=s._(/*BTDS*/"IA de {Creator name}",[s._param("Creator name",n!=null&&n!==""?c.jsx(o("WAWebExternalLink.react").ExternalLink,{href:n,children:t}):t)]);return r===o("WAWebBotTypes").BotPosingAsProfessionalType.YES&&o("WAWebBotGating").isUgcNotExpertEnabled()?s._(/*BTDS*/"No es una persona experta \u2022 {Creator label}",[s._param("Creator label",a)]):a}return null}l.default=m}),226); __d("WAWebBusinessOpenHours.react",["fbt","WAWebBusinessProfileUtils","WAWebL10N","WAWebUISpacing","dompurify","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={openStatus:{color:"x1anpt5t",fontSize:"x1f6kntn",$$css:!0}};function m(e){var t=e.hours,n=o("WAWebBusinessProfileUtils").getBusinessOpenState(t),a=_(n);if(a==null)return null;var i=r("dompurify").sanitize(a.toString());return c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.openStatus,o("WAWebUISpacing").uiMargin.bottom5]),{dangerouslySetInnerHTML:{__html:i}}))}m.displayName=m.name+" [from "+i.id+"]";function p(e){return e==null?"":e.toLocaleTimeString(r("WAWebL10N").getNormalizedLocale(),{hour:"numeric",minute:"2-digit"})}function _(e){switch(e.status){case o("WAWebBusinessProfileUtils").BUSINESS_OPEN_STATUS.OPEN_24H:return s._(/*BTDS*/"{open} 24 horas",[s._param("open",''+s._(/*BTDS*/"Abierto").toString()+"")]);case o("WAWebBusinessProfileUtils").BUSINESS_OPEN_STATUS.OPEN_APPOINTMENT:return s._(/*BTDS*/"{open} solo con cita",[s._param("open",''+s._(/*BTDS*/"Abierto").toString()+"")]);case o("WAWebBusinessProfileUtils").BUSINESS_OPEN_STATUS.OPEN:if(e.openUntil&&e.additionalOpen&&e.additionalClose)return s._(/*BTDS*/"{open} hasta la(s) {time}, {additionalOpenTime} - {additionalCloseTime}",[s._param("open",''+s._(/*BTDS*/"Abierto").toString()+""),s._param("time",p(e.openUntil)),s._param("additionalOpenTime",p(e.additionalOpen)),s._param("additionalCloseTime",p(e.additionalClose))]);if(e.openUntil)return s._(/*BTDS*/"{open} hasta la(s) {time}",[s._param("open",''+s._(/*BTDS*/"Abierto").toString()+""),s._param("time",p(e.openUntil))]);break;case o("WAWebBusinessProfileUtils").BUSINESS_OPEN_STATUS.CLOSED:return e.opensAt?s._(/*BTDS*/"{closed}, abre a la(s) {time}",[s._param("closed",''+s._(/*BTDS*/"Cerrado ahora").toString()+""),s._param("time",p(e.opensAt))]):''+s._(/*BTDS*/"Cerrado ahora").toString()+"";case o("WAWebBusinessProfileUtils").BUSINESS_OPEN_STATUS.CLOSED_TODAY:return''+s._(/*BTDS*/"Hoy cerrado").toString()+""}return null}l.default=m}),226); __d("WAWebNotesPrivacyStrings",["fbt"],(function(t,n,r,o,a,i,l,s){"use strict";function e(){return s._(/*BTDS*/"Solo t\u00fa puedes ver esta informaci\u00f3n.")}l.default=e}),226); __d("useWAWebAsyncSaving",["react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.useEffect,c=s.useRef,d=s.useState;function m(e){var t=d(!1),n=t[0],r=t[1],o=d(null),a=o[0],i=o[1],l=d(null),s=l[0],m=l[1],p=c(null);return u(function(){if(s==null){if(a==null){r(!1);return}p.current=new AbortController,m(e(a).finally(function(){var e;(e=p.current)!=null&&e.signal.aborted||m(null)})),i(null),r(!0)}},[a,e,s]),u(function(){return function(){var e;return(e=p.current)==null?void 0:e.abort()}},[]),[n,function(e){return i(e)}]}l.default=m}),98); __d("useWAWebBeforeUnload",["react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(e||(e=o("react"))).useEffect;function u(e){s(function(){var t=function(n){var t=e();if(t.showConfirmationDialog)return n.preventDefault(),n.returnValue="",""};return window.addEventListener("beforeunload",t),function(){window.removeEventListener("beforeunload",t)}},[e])}l.default=u}),98); __d("useWAWebLingeringSavingHint",["react","useWAWebTimeout"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.useCallback,c=s.useEffect,d=s.useRef,m=s.useState;function p(e,t){var n=m(!1),r=n[0],a=n[1],i=d(0),l=u(function(){a(!1)},[a]),s=o("useWAWebTimeout").useManualTimeout(l),p=s[0],_=s[1],f=u(function(){var e=Date.now()-i.current;e>=t.saveHintMs?l():p(t.saveHintMs-e)},[t.saveHintMs,l,p]);c(function(){e&&!r&&(_(),a(!0),i.current=Date.now()),!e&&r&&f()},[e]);var g=u(function(){_(),l()},[_,l]);return[r,g]}l.default=p}),98); __d("WAWebContactInfoNotes.react",["fbt","WAJids","WALogger","WAWebClock","WAWebFormatConfiguration","WAWebLinkify","WAWebNoop","WAWebNoteAction","WAWebNoteCollection","WAWebNotesLogEvents","WAWebNotesPrivacyStrings","WAWebNotesUtils","WAWebRichTextField.react","WAWebUISpacing","asyncToGeneratorRuntime","react","stylex","useWAWebAsync","useWAWebAsyncSaving","useWAWebBeforeUnload","useWAWebDebouncedCallback","useWAWebLingeringSavingHint","useWAWebListener","useWAWebOnScreen"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c,p=m.useCallback,_=m.useEffect,f=m.useMemo,g=m.useRef,h=m.useState,y=2e3,C=500,b=15,v={blockQuoteEnabled:!0,bulletPointsEnabled:!0,floatingToolbarEnabled:!0,inlineCodeEnabled:!0,linksEnabled:!0,numberedListEnabled:!0,textFormatEnabled:!0,textFormatShortcutsEnabled:!0};function S(e){var t,n,r=e.contact,a=o("WAJids").validateChatJid((t=r==null||(n=r.id)==null?void 0:n.toJid())!=null?t:"");return r==null||a==null?null:d.jsx(R,{contact:r,chatJid:a})}S.displayName=S.name+" [from "+i.id+"]";function R(e){var t,a,i,l=e.chatJid,s=e.contact,u=E(l),c=u.value,m=(t=c==null?void 0:c.content)!=null?t:"",_=(a=c==null?void 0:c.createdAt)!=null?a:null,f=(i=c==null?void 0:c.modifiedAt)!=null?i:null,g=p((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(e!==m)return o("WAWebNotesLogEvents").logNoteSaved(s,{content_existed:m!=="",has_content:e!=="",length:e.length,previous_length:m.length}),c==null?o("WAWebNoteAction").noteAddAction("unstructured",l,e):o("WAWebNoteAction").noteEditAction(c.id,"unstructured",l,e,c.createdAt)});return function(t){return e.apply(this,arguments)}})(),[l,s,c,m]),h=r("useWAWebAsyncSaving")(g),y=h[0],C=h[1];if(!(u.error!=null||u.loading))return d.jsx(T,{contact:s,children:d.jsx(L,{contact:s,createdAt:_,modifiedAt:f,note:m,saveNote:C,savingNote:y})})}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e.contact,n=e.createdAt,a=e.modifiedAt,i=e.note,l=e.saveNote,c=e.savingNote,m=h(!1),g=m[0],S=m[1],R=h(!1),L=R[0],E=R[1],T=h(!1),D=T[0],x=T[1],$=h(!1),P=$[0],N=$[1],M=I(t,L),w=r("useWAWebLingeringSavingHint")(c,{saveHintMs:C}),A=w[0],F=w[1],O=!L||!g?s._(/*BTDS*/"A\u00f1ade notas sobre tu cliente"):"",B=h(i),W=B[0],q=B[1];_(function(){return q(i)},[i]);var U=p(function(){return{showConfirmationDialog:W!==i}},[W,i]);r("useWAWebBeforeUnload")(U);var V=f(function(){return k(n,a)},[n,a]),H=f(function(){return A?s._(/*BTDS*/"Guardando nota\u2026"):L?D?V:r("WAWebNotesPrivacyStrings")():V},[A,L,D,V]),G=p(function(){W!==i&&(q(W),l(W),x(!0))},[W,i,l]),z=r("useWAWebDebouncedCallback")(G,y),j={formatters:o("WAWebFormatConfiguration").Conversation({links:o("WAWebLinkify").findLinks(i,!0),parseInlineCode:!0,parseLists:!0,parseQuotes:!0,trusted:!0}),onReadMore:function(){o("WAWebNotesLogEvents").logReadMorePressed(t),N(!0)},preserveWhitespace:!0,readMoreText:s._(/*BTDS*/"Leer m\u00e1s"),textLimit:P?1/0:100};return d.jsx("div",babelHelpers.extends({"data-testid":void 0},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiPadding.vert8),{children:d.jsx(o("WAWebRichTextField.react").RichTextField,babelHelpers.extends({testid:void 0,value:W,lockable:!0,emojiTextSettingsInLockMode:j,onBeginEdit:function(){o("WAWebNotesLogEvents").logEditModeOpened(t),o("WAWebNotesLogEvents").logEditModeSeen(t,{content_existed:W!==""}),E(!0),x(!1)},onSave:function(){G(),E(!1)},onCancel:function(){E(!1),q(i)},onChange:function(t){var e=t.text;e!==W&&M(W!==""),q(e),F(),z()},onFocus:function(){return S(!0)},onBlur:function(){S(!1),G()},inputPlaceholder:O,hideFloatingLabel:!0,managed:!0,minVisibleLines:3,enterIsNewLine:!0,emojiBtnPosition:"side",shutEmojiPickerOnSelect:!0,selectOnMount:!1,multiline:!0,pending:A,contextMsg:H,lowProfile:H==null,showRemaining:!0,maxLength:o("WAWebNotesUtils").MAX_NOTE_LENGTH,charLimit:b},v))}))}L.displayName=L.name+" [from "+i.id+"]";function E(t){var n=h(null),a=n[0],i=n[1],l=h({error:null,loading:!0,value:null}),s=l[0],u=l[1],c=r("useWAWebAsync")(function(){return o("WAWebNoteAction").retrieveOnlyNoteForChatJid(t)},[t]),d=p(function(){var e=o("WAWebNoteCollection").NoteCollection.maybeGetNoteByChatJid(t);i(e),u({error:null,loading:!1,value:e==null?null:{content:e.content,createdAt:e.createdAt,id:e.id,modifiedAt:e.modifiedAt}})},[t]);return _(function(){if(c.error!=null&&o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[useNoteValues] Error fetching note for chat ",""])),t),c.loading||c.error!=null){u(c);return}d()},[t,c.loading,c.error,c.value,d]),o("useWAWebListener").useListener(o("WAWebNoteCollection").NoteCollection,"add remove",d),o("useWAWebListener").useListener(a,"change",d),s}function k(e,t){return e==null||t==null?null:e===t?o("WAWebClock").Clock.addedStr(e):o("WAWebClock").Clock.updatedStr(t)}function I(e,t){var n=g(!1);_(function(){t&&(n.current=!1)},[t]);var r=p(function(t){n.current||(o("WAWebNotesLogEvents").logStartedTypingNote(e,{content_existed:t}),n.current=!0)},[e]);return r}function T(e){var t=e.children,n=e.contact,a=g(!1),i=g(),l=r("useWAWebOnScreen")(i,r("WAWebNoop"));return _(function(){l&&!a.current&&(o("WAWebNotesLogEvents").logNoteViewed(n),a.current=!0)},[n,l]),d.jsx("span",{ref:i,children:t})}T.displayName=T.name+" [from "+i.id+"]",l.default=S}),226); __d("WAWebContactInfoPhoneNumberHidden.react",["fbt","WAWebClickableLink.react","WAWebDialpadIcon.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebSvgComponentBase","WAWebText_DONOTUSE.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=u.jsx(o("WAWebDialpadIcon.react").DialpadIcon,{directional:!0,DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),d=function(){var e=o("WAWebFaqUrl").getPhoneNumberHidingFaqUrl();o("WAWebExternalLink.react").openExternalLink(e)},m={container:{alignItems:"x6s0dn4",backgroundColor:"x1h3rtpe",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",display:"x78zum5",marginTop:"x98l61r",marginInlineEnd:"x11t971q",marginBottom:"x14mdic9",marginInlineStart:"xvc5jky",width:"x1cvmir6",height:"xnnlda6",maxWidth:"x16fdfms",paddingInlineStart:"x12w63v0",paddingInlineEnd:"x1nzty39",lineHeight:"xdod15v",$$css:!0},text:{color:"xhslqc4",marginTop:"xr1yuqi",marginInlineEnd:"x11t971q",marginBottom:"x4ii5y1",marginInlineStart:"xvc5jky",overflowWrap:"x1mzt3pk",$$css:!0},item:{marginInlineStart:"xpcyujq",marginInlineEnd:"xf6vk7d",paddingTop:"x123j3cw",paddingInlineEnd:"x1gabggj",paddingBottom:"xs9asl8",paddingInlineStart:"xaso8d8",$$css:!0}};function p(){return u.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:m.container,children:[u.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:m.item,children:c}),u.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:[m.text,m.item],children:u.jsx(o("WAWebText_DONOTUSE.react").TextSpan,{testid:void 0,children:s._(/*BTDS*/"No se comparte el n\u00famero de tel\u00e9fono de esta persona en el chat. {=m2}",[s._implicitParam("=m2",u.jsx(r("WAWebClickableLink.react"),{testid:void 0,onClick:d,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))])})})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebMemberLabelContactInfo.react",["fbt","WAWebFlex.react","WAWebGroupMemberTagUpdateLogger","WAWebMemberLabelCreateUpdateModal.react","WAWebMemberLabelGating","WAWebMemberLabelHooks","WAWebMemberLabelRenderer.react","WAWebMemberLabelsFrontendUtils","WAWebModalManager","WAWebUnstyledButton.react","WDSText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={memberLabelRow:{columnGap:"x1trrmfo",$$css:!0}};function d(e){var t=e.chat,n=e.contact,a=n.id,i=o("WAWebMemberLabelHooks").useHasSelfMemberLabelForChat(t),l={from:"chat_and_member",chat:t,member:a};if(!(!t||!o("WAWebMemberLabelsFrontendUtils").shouldShowMemberLabelForChat(t))){var d=u.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",children:u.jsx(r("WAWebMemberLabelRenderer.react"),{memberLabelArgs:l,type:"Body2"})});return o("WAWebMemberLabelsFrontendUtils").canEditMemberLabel(n,t)?d=u.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",children:[d,u.jsx(r("WAWebUnstyledButton.react"),{onClick:function(){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebMemberLabelCreateUpdateModal.react").MemberLabelCreateUpdateModal,{chat:t,entryPoint:o("WAWebGroupMemberTagUpdateLogger").GroupMemberTagUpdateLogger.ENTRY_POINT.CONTACT_CARD}))},children:u.jsx(r("WDSText.react"),{type:"Body2Emphasized",colorName:"contentActionEmphasized",children:s._(/*BTDS*/"Editar etiqueta de miembro")})})]}):o("WAWebMemberLabelsFrontendUtils").memberLabelExists(l)&&!i&&o("WAWebMemberLabelGating").isMemberLabelSenderEnabled()&&(d=u.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:c.memberLabelRow,children:[d,u.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",children:"\xB7"}),u.jsx(r("WAWebUnstyledButton.react"),{onClick:function(){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebMemberLabelCreateUpdateModal.react").MemberLabelCreateUpdateModal,{chat:t,entryPoint:o("WAWebGroupMemberTagUpdateLogger").GroupMemberTagUpdateLogger.ENTRY_POINT.CONTACT_CARD}))},children:u.jsx(r("WDSText.react"),{type:"Body2Emphasized",colorName:"contentActionEmphasized",children:s._(/*BTDS*/"A\u00f1adir tu etiqueta de miembro")})})]})),u.jsx("div",{className:"x1anpbxc xyorhqc",children:d})}}d.displayName=d.name+" [from "+i.id+"]",l.MemberLabelContactInfo=d}),226); __d("WAWebBusinessTopCard.react",["WAWebBusinessActions.react","WAWebBusinessName.react","WAWebBusinessOpenHours.react","WAWebBusinessProfileCoverPhoto.react","WAWebContactGetters","WAWebContactInfoNotes.react","WAWebContactInfoPhoneNumberHidden.react","WAWebDrawerSection.react","WAWebErrorBoundary.react","WAWebFbtIntlList","WAWebMemberLabelContactInfo.react","WAWebNotesUtils","WAWebUISpacing","WAWebUserPrefsPhoneNumberHidingThreadPromotionMigration","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={categories:{fontSize:"x1f6kntn",color:"x1anpt5t",lineHeight:"x37zpob",$$css:!0}};function d(e){var t=e.businessProfile,n=e.contact,a=e.displayRequestPhoneNumber,i=e.onProductCatalog,l=e.onProfilePicClick,d=e.onProfilePicLoad,m=e.onSaveContact,p=e.sourceChat,_=o("useWAWebModelValues").useModelValues(t,["businessHours","categories"]),f=_.businessHours,g=_.categories,h=u.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"business-top-card-name",children:u.jsx(r("WAWebBusinessName.react"),{contact:n,businessProfile:t})}),y;!o("WAWebContactGetters").getIsIAS(n)&&!o("WAWebContactGetters").getIsCAPISupportAccount(n)&&!o("WAWebContactGetters").getId(n).isBot()&&!t.isBizBot3p&&g!=null&&g.length>0&&(y=u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props([c.categories,o("WAWebUISpacing").uiMargin.bottom10]),{children:r("WAWebFbtIntlList")(g.map(function(e){return e.localized_display_name}),r("WAWebFbtIntlList").CONJUNCTIONS.NONE,r("WAWebFbtIntlList").DELIMITERS.BULLET)})));var C=f?u.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"business-top-card-business-hours",children:u.jsx(r("WAWebBusinessOpenHours.react"),{hours:f})}):null,b=n.businessProfile?u.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"business-top-card-profile-cover-photo",children:u.jsx(r("WAWebBusinessProfileCoverPhoto.react"),{contact:n,businessProfile:n.businessProfile,onClick:l,onLoad:d})}):null,v=o("WAWebNotesUtils").shouldEnableNotesForWid(n==null?void 0:n.id)?u.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"business-top-card-contact-info-notes",children:u.jsx(r("WAWebContactInfoNotes.react"),{contact:n})}):null,S=a&&!o("WAWebUserPrefsPhoneNumberHidingThreadPromotionMigration").hasPhoneNumberHidingThreadPromotionMigrationStarted();return u.jsxs(r("WAWebDrawerSection.react"),{theme:"padding-no-margin",children:[b,u.jsxs("div",{className:"x2b8uid",children:[h,u.jsx(o("WAWebMemberLabelContactInfo.react").MemberLabelContactInfo,{chat:p,contact:n}),a&&u.jsx(r("WAWebContactInfoPhoneNumberHidden.react"),{}),y,C,u.jsx(r("WAWebBusinessActions.react"),{contact:n,onProductCatalog:i,onSaveContact:m,displayRequestPnButton:S})]}),v]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMexChangeNewsletterOwnerJobMutation.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:"WAWebMexChangeNewsletterOwnerJobMutation",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_change_owner",plural:!1,selections:[n],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexChangeNewsletterOwnerJobMutation",selections:[{alias:null,args:t,concreteType:"XWA2NewsletterMutationResponse",kind:"LinkedField",name:"xwa2_newsletter_change_owner",plural:!1,selections:[n,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:"9546742745432473",metadata:{},name:"WAWebMexChangeNewsletterOwnerJobMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("WAWebMexChangeNewsletterOwnerJob",["WAWebLidMigrationUtils","WAWebMexChangeNewsletterOwnerJobMutation.graphql","WAWebMexClient","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=e!==void 0?e:e=n("WAWebMexChangeNewsletterOwnerJobMutation.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.mexChangeNewsletterOwner=u}),98); __d("WAWebNewsletterChangeOwnerJob",["WAJobOrchestratorTypes","WAWebMexChangeNewsletterOwnerJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("changeNewsletterOwner",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebMexChangeNewsletterOwnerJob").mexChangeNewsletterOwner(e,t)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.changeNewsletterOwner=e}),98); __d("WAWebChangeNewsletterOwnerAction",["WALogger","WAWebChatGetters","WAWebCommonNewsletterEnums","WAWebNewsletterBridgeApi","WAWebNewsletterChangeOwnerJob","WAWebNewsletterMembershipUtil","WAWebNewsletterValidationUtils","WAWebUserPrefsMeUser","WAWebWidFactory","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e,s,u,c,d,m;function p(e,t){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){var a;if(!o("WAWebChatGetters").getIsNewsletter(t))throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[changeNewsletterOwnerAction] not a newsletter"]))).tags("newsletter").sendLogs("change-owner-of-non-newsletter"),r("err")("change-owner-of-non-newsletter");if(!o("WAWebNewsletterMembershipUtil").iAmOwner(t.newsletterMetadata))throw o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[changeNewsletterOwnerAction] only owner can transfer"]))).tags("newsletter").sendLogs("non-newsletter-owner-transferring-ownership"),r("err")("non-newslette-owner-transferring-ownership");if(o("WAWebUserPrefsMeUser").isMeAccount(n.id))throw o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[changeNewsletterOwnerAction] cannot transfer to self"]))).tags("newsletter").sendLogs("transferring-newsletter-to-self"),r("err")("transferring-newsletter-to-self");var i=(a=t.newsletterMetadata)==null?void 0:a.subscribers.get(n.id);if(i==null)throw o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[changeNewsletterOwnerAction] contact not in newsletter"]))).tags("newsletter").sendLogs("contact-not-found-in-newsletter-subscriber-list"),r("err")("contact-not-found-in-newsletter-subscriber-list");if(i.membership!==o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin)throw o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[changeNewsletterOwnerAction] non-admin role=",""])),i.membership).tags("newsletter").sendLogs("transferring-newsletter-ownership-to-non-admin"),r("err")("transferring-newsletter-ownership-to-non-admin");try{var l=o("WAWebWidFactory").asUserWidOrThrow(n.id),p=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid());yield o("WAWebNewsletterChangeOwnerJob").changeNewsletterOwner(p,l),yield o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateMyNewsletterMembershipRole({newsletter:t,newRole:o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Admin}),yield o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateNewsletterMemberRole({newsletter:t,member:n,newRole:o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Owner})}catch(e){throw o("WALogger").ERROR(m||(m=babelHelpers.taggedTemplateLiteralLoose(["[changeNewsletterOwnerAction] transfer failed"]))).tags("newsletter").sendLogs("change-newsletter-owner-failed"),e}}),_.apply(this,arguments)}l.changeNewsletterOwnerAction=p}),98); __d("WAWebWamEnumChannelLinkShareDirection",[],(function(t,n,r,o,a,i){var e=Object.freeze({WHATSAPP:1,STATUS:2,EXTERNAL:3,QR_CODE:4});i.CHANNEL_LINK_SHARE_DIRECTION=e}),66); __d("WAWebWamEnumChannelLinkShareScreen",[],(function(t,n,r,o,a,i){var e=Object.freeze({CONTEXT_CARD:1,CHANNEL_INFO:2,CHANNEL_THREAD:3,SHARE_LINK_SCREEN:4,UPDATES_TAB:5,QR_CODE_SCREEN:6});i.CHANNEL_LINK_SHARE_SCREEN=e}),66); __d("WAWebChannelLinkShareWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumChannelLinkShareDirection","WAWebWamEnumChannelLinkShareEntryPoint","WAWebWamEnumChannelLinkShareScreen"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({ChannelLinkShare:[4728,{channelLinkShareDirection:[1,o("WAWebWamEnumChannelLinkShareDirection").CHANNEL_LINK_SHARE_DIRECTION],channelLinkShareEntryPoint:[2,o("WAWebWamEnumChannelLinkShareEntryPoint").CHANNEL_LINK_SHARE_ENTRY_POINT],channelLinkShareScreen:[4,o("WAWebWamEnumChannelLinkShareScreen").CHANNEL_LINK_SHARE_SCREEN],cid:[3,e.TYPES.STRING],unifiedSessionId:[5,e.TYPES.STRING],updatesTabSessionId:[6,e.TYPES.INTEGER]},[1,1,1],"regular"]},{ChannelLinkShare:[]});l.ChannelLinkShareWamEvent=s}),98); __d("WAWebWamEnumActionTarget",[],(function(t,n,r,o,a,i){var e=Object.freeze({REACH_TAB:0,GROWTH_TAB:1,FOLLOWERS_TAB:2,ACCOUNTS_REACHED_INFO_ICON:3,TOP_REGIONS_REACH_INFO_ICON:4,GROWTH_CHART_INFO_ICON:5,TOP_REGIONS_FOLLOWERS_INFO_ICON:6,HELP_CENTER_DATA_UNAVAILABLE_ARTICLE:7,HELP_CENTER_CHANNEL_METRICS_ARTICLE:8,WIDGET_INFO_ICON:9,TOTAL_FOLLOWERS_INFO_ICON:10});i.ACTION_TARGET=e}),66); __d("WAWebWamEnumChannelProducerInsightsActionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({WIDGET_IMPRESSION:0,OPEN:1,CLOSE:2,NAVIGATION_TAP:3,INFO_ICON_TAP:4,LINK_CLICK:5});i.CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE=e}),66); __d("WAWebWamEnumChannelProducerInsightsEntryPoint",[],(function(t,n,r,o,a,i){var e=Object.freeze({PROFILE_SEE_ALL:0,PROFILE_ACCOUNTS_REACHED:1,PROFILE_NET_FOLLOWS:2});i.CHANNEL_PRODUCER_INSIGHTS_ENTRY_POINT=e}),66); __d("WAWebWamEnumChannelProducerInsightsSurface",[],(function(t,n,r,o,a,i){var e=Object.freeze({CHANNEL_INFO:0,REACH_TAB:1,GROWTH_TAB:2,FOLLOWERS_TAB:3});i.CHANNEL_PRODUCER_INSIGHTS_SURFACE=e}),66); __d("WAWebChannelProducerInsightsNavigationWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumActionTarget","WAWebWamEnumChannelProducerInsightsActionType","WAWebWamEnumChannelProducerInsightsEntryPoint","WAWebWamEnumChannelProducerInsightsSurface"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({ChannelProducerInsightsNavigation:[5626,{channelProducerInsightsActionTarget:[1,o("WAWebWamEnumActionTarget").ACTION_TARGET],channelProducerInsightsActionType:[2,o("WAWebWamEnumChannelProducerInsightsActionType").CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE],channelProducerInsightsEntryPoint:[3,o("WAWebWamEnumChannelProducerInsightsEntryPoint").CHANNEL_PRODUCER_INSIGHTS_ENTRY_POINT],channelProducerInsightsSequenceNumber:[4,e.TYPES.INTEGER],channelProducerInsightsSurface:[5,o("WAWebWamEnumChannelProducerInsightsSurface").CHANNEL_PRODUCER_INSIGHTS_SURFACE],cid:[6,e.TYPES.STRING],producerInsightsSessionId:[7,e.TYPES.INTEGER],unifiedSessionId:[8,e.TYPES.STRING],updatesTabSessionId:[9,e.TYPES.INTEGER]},[1,1,1],"regular"]},{ChannelProducerInsightsNavigation:[]});l.ChannelProducerInsightsNavigationWamEvent=s}),98); __d("WAWebChatInfoFavoritesSection.react",["fbt","WAWebChatGetters","WAWebChatInfoDrawerSection.react","WAWebCmd","WAWebDrawerButtonRefreshed.react","WAWebFavoriteRefreshedIcon.react","WAWebFrontendChatGetters","WAWebL10NIsUsingSupportedBritishEnglishLocale","WAWebUnfavoriteRefreshedIcon.react","WAWebWamEnumFavoritesUpdateEntryPoint","react","useWAWebChatValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chat,n=o("useWAWebChatValues").useChatValues(t.id,[o("WAWebFrontendChatGetters").getIsFavorite,o("WAWebChatGetters").getIsGroup]),a=n[0],i=n[1],l;a?l=o("WAWebL10NIsUsingSupportedBritishEnglishLocale").isUsingSupportedBritishEnglishLocale()?s._(/*BTDS*/"Remove from favourites"):s._(/*BTDS*/"Eliminar de Favoritos"):l=o("WAWebL10NIsUsingSupportedBritishEnglishLocale").isUsingSupportedBritishEnglishLocale()?s._(/*BTDS*/"Add to favourites"):s._(/*BTDS*/"A\u00f1adir a Favoritos");var c=function(){o("WAWebCmd").Cmd.favoriteChat(t,!a,i?o("WAWebWamEnumFavoritesUpdateEntryPoint").FAVORITES_UPDATE_ENTRY_POINT.GROUP_INFO:o("WAWebWamEnumFavoritesUpdateEntryPoint").FAVORITES_UPDATE_ENTRY_POINT.CONTACT_INFO)},d={testid:"li-favorite",onClick:c},m=u.jsx(r("WAWebDrawerButtonRefreshed.react"),babelHelpers.extends({},d,{icon:a?u.jsx(o("WAWebUnfavoriteRefreshedIcon.react").UnfavoriteRefreshedIcon,{}):u.jsx(o("WAWebFavoriteRefreshedIcon.react").FavoriteRefreshedIcon,{}),children:l}));return u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerButtonsSection,{children:m})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebListPeopleRefreshedIcon.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="list-people-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",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 18.3813C7.45 18.3813 6.97917 18.1855 6.5875 17.7938C6.19583 17.4022 6 16.9313 6 16.3813V4.38135C6 3.83135 6.19583 3.36051 6.5875 2.96885C6.97917 2.57718 7.45 2.38135 8 2.38135H20C20.55 2.38135 21.0208 2.57718 21.4125 2.96885C21.8042 3.36051 22 3.83135 22 4.38135V16.3813C22 16.9313 21.8042 17.4022 21.4125 17.7938C21.0208 18.1855 20.55 18.3813 20 18.3813H8ZM15.7375 15.6313C16.2958 15.798 16.8167 16.048 17.3 16.3813H10.7C11.1833 16.048 11.7042 15.798 12.2625 15.6313C12.8208 15.4647 13.4 15.3813 14 15.3813C14.6 15.3813 15.1792 15.4647 15.7375 15.6313ZM4 22.3813C3.45 22.3813 2.97917 22.1855 2.5875 21.7938C2.19583 21.4022 2 20.9313 2 20.3813V7.38135C2 7.09801 2.09583 6.86051 2.2875 6.66885C2.47917 6.47718 2.71667 6.38135 3 6.38135C3.28333 6.38135 3.52083 6.47718 3.7125 6.66885C3.90417 6.86051 4 7.09801 4 7.38135V20.3813H17C17.2833 20.3813 17.5208 20.4772 17.7125 20.6688C17.9042 20.8605 18 21.098 18 21.3813C18 21.6647 17.9042 21.9022 17.7125 22.0938C17.5208 22.2855 17.2833 22.3813 17 22.3813H4ZM8 16.0843C8.69919 15.2911 9.5242 14.6568 10.475 14.1813C11.5417 13.648 12.7167 13.3813 14 13.3813C15.2833 13.3813 16.4583 13.648 17.525 14.1813C18.4758 14.6568 19.3008 15.2911 20 16.0843V4.38135H8V16.0843ZM16.125 11.0063C15.5417 11.5897 14.8333 11.8813 14 11.8813C13.1667 11.8813 12.4583 11.5897 11.875 11.0063C11.2917 10.423 11 9.71468 11 8.88135C11 8.04801 11.2917 7.33968 11.875 6.75635C12.4583 6.17301 13.1667 5.88135 14 5.88135C14.8333 5.88135 15.5417 6.17301 16.125 6.75635C16.7083 7.33968 17 8.04801 17 8.88135C17 9.71468 16.7083 10.423 16.125 11.0063ZM15 8.88135C15 9.43363 14.5523 9.88135 14 9.88135C13.4477 9.88135 13 9.43363 13 8.88135C13 8.32906 13.4477 7.88135 14 7.88135C14.5523 7.88135 15 8.32906 15 8.88135Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ListPeopleRefreshedIcon=m}),98); __d("WAWebChatInfoListsSection.react",["fbt","WAWebChatGetters","WAWebChatInfoDrawerSection.react","WAWebDrawerButtonRefreshed.react","WAWebFrontendChatGetters","WAWebLabelCollection","WAWebListPeopleRefreshedIcon.react","WAWebListsIntroPopupLoadable","WAWebManageLabelFlowLoadable","WAWebModalManager","WAWebNux","WAWebSchemaLabel","WAWebStateUtils","WAWebWamEnumUpdateEntryPoint","react","useWAWebChatValues","useWAWebNux"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.chat,n=r("useWAWebNux")(o("WAWebNux").NUX.ADD_TO_LISTS),a=n[0],i=n[1],l=o("useWAWebChatValues").useChatValues(t.id,[o("WAWebChatGetters").getLabels,o("WAWebFrontendChatGetters").getIsFavorite,o("WAWebChatGetters").getIsGroup]),c=l[0],d=l[1],m=l[2],p=(c==null||c.length===0)&&!(d&&o("WAWebLabelCollection").LabelCollection.some(function(e){return e.type===o("WAWebSchemaLabel").ListType.FAVORITES}))?s._(/*BTDS*/"A\u00f1adir a la lista"):s._(/*BTDS*/"Cambiar de lista"),_=function(){var e=function(n){n===void 0&&(n=!1);var e=[o("WAWebStateUtils").unproxy(t)],r;n?r=o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.LIST_NUX:m?r=o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.GROUP_INFO:r=o("WAWebWamEnumUpdateEntryPoint").UPDATE_ENTRY_POINT.CONTACT_INFO,o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebManageLabelFlowLoadable").ManageLabelFlowLoadable,{modelsToUpdate:e,onClose:o("WAWebModalManager").closeModalManager,entryPoint:r}))};a?o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebListsIntroPopupLoadable").ListsIntroPopupLoadable,{onContinue:function(){i(),e(!0)}})):e()},f={onClick:_,testid:"li-lists"};return u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerButtonsSection,{children:u.jsx(r("WAWebDrawerButtonRefreshed.react"),babelHelpers.extends({icon:u.jsx(o("WAWebListPeopleRefreshedIcon.react").ListPeopleRefreshedIcon,{})},f,{children:p}))})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebChatInfoWallpaperRow.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebPencilRefreshedIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={chatWallpaperIcon:{color:"xhslqc4",$$css:!0}};function d(e){var t=e.onWallpaperClick,n=o("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,r=s._(/*BTDS*/"Fondo del chat"),a=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:r}),i={onClick:t,icon:u.jsx(n,{xstyle:c.chatWallpaperIcon}),testid:"chat-wallpaper-row",title:a};return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,babelHelpers.extends({},i))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebWamEnumContactNotificationSettingActionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({MESSAGES_MUTE_ALWAYS:1,MESSAGES_MUTE_8H:2,MESSAGES_MUTE_1W:3,MESSAGES_UNMUTE:4,CALLS_MUTE_ALWAYS:5,CALLS_MUTE_8H:6,CALLS_MUTE_1W:7,CALLS_UNMUTE:8,CHANGED_MESSAGE_ALERT_TONE:9,CHANGED_MESSAGE_VIBRATION:10,CHANGED_CALL_TONE:11,CHANGED_CALL_VIBRATION:12,CHANGED_MESSAGE_NOTIFICATION_THEME:13,CHANGED_MESSAGE_POPUP_NOTIFICATION:14,CHANGED_MESSAGE_NOTIFICATION_PRIORITY:15,STATUSES_MUTE:16,STATUSES_UNMUTE:17,MUTE_MENTION_EVERYONE_OFF:18,MUTE_MENTION_EVERYONE_ON:19});i.CONTACT_NOTIFICATION_SETTING_ACTION_TYPE=e}),66); __d("WAWebContactNotificationSettingUserJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumContactNotificationSettingActionType","WAWebWamEnumTsSurface"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({ContactNotificationSettingUserJourney:[5304,{appSessionId:[1,o("WAWebWamCodegenUtils").TYPES.STRING],contactNotificationSettingActionType:[2,o("WAWebWamEnumContactNotificationSettingActionType").CONTACT_NOTIFICATION_SETTING_ACTION_TYPE],groupSize:[3,o("WAWebWamCodegenUtils").TYPES.INTEGER],uiSurface:[4,o("WAWebWamEnumTsSurface").TS_SURFACE]},[1,1,1],"regular"]},{ContactNotificationSettingUserJourney:[]});l.ContactNotificationSettingUserJourneyWamEvent=e}),98); __d("WAWebContactNotificationSettingUserJourneyWamLogging",["WAWebContactNotificationSettingUserJourneyWamEvent","WAWebPonyfillsCryptoRandomUUID","WAWebWamEnumContactNotificationSettingActionType"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(){function e(e){e===void 0&&(e=r("WAWebPonyfillsCryptoRandomUUID")()),this.$1=e}var t=e.prototype;return t.$2=function(t,n,r){new(o("WAWebContactNotificationSettingUserJourneyWamEvent")).ContactNotificationSettingUserJourneyWamEvent({appSessionId:this.$1,contactNotificationSettingActionType:t,uiSurface:n,groupSize:r}).commit()},t.logMuteAllMentionsToggle=function(t,n,r){this.$2(t?o("WAWebWamEnumContactNotificationSettingActionType").CONTACT_NOTIFICATION_SETTING_ACTION_TYPE.MUTE_MENTION_EVERYONE_ON:o("WAWebWamEnumContactNotificationSettingActionType").CONTACT_NOTIFICATION_SETTING_ACTION_TYPE.MUTE_MENTION_EVERYONE_OFF,n,r)},e})(),s=new e;l.ContactNotificationSettingUserJourneyLogger=s}),98); __d("WAWebMuteAllMentionsRow.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebContactNotificationSettingUserJourneyWamLogging","WAWebFbtCommon","WAWebMuteGetters","WAWebToast.react","WAWebToastManager","WAWebWamEnumTsSurface","WDSSwitch.react","react","useWAWebMuteValues","useWAWebStableCallback"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.chat,n=e.containerXstyle,a=e.mute,i=o("useWAWebMuteValues").useMuteValues(a.id,[o("WAWebMuteGetters").getIsMuted,o("WAWebMuteGetters").getIsMentionAllMuted]),l=i[0],c=i[1],d=function(){var e=null;if(c)e=a.unmuteMentionAll();else if(a.expiration!=null)e=a.muteMentionAll(a.expiration);else return;return e},m=r("useWAWebStableCallback")(function(){var e,n,a,i=!c,l=(e=(n=t.groupMetadata)==null?void 0:n.participants.length)!=null?e:0;o("WAWebContactNotificationSettingUserJourneyWamLogging").ContactNotificationSettingUserJourneyLogger.logMuteAllMentionsToggle(i,o("WAWebWamEnumTsSurface").TS_SURFACE.CONTACT_NOTIFICATION_SETTING_PAGE,l);var m=o("WAWebToast.react").genId();(a=d())==null||a.then(function(){o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{id:m,msg:i?s._(/*BTDS*/"Se silenciaron las menciones de \u0040todos."):s._(/*BTDS*/"Se reactivaron las menciones de \u0040todos."),action:{actionText:r("WAWebFbtCommon")("Undo"),onAction:function(){d(),o("WAWebToastManager").ToastManager.close(m)}}}))})});if(!l||!t.id.isGroup())return null;var p=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:s._(/*BTDS*/"Silenciar las menciones de \u0040todos")}),_=u.jsx(r("WDSSwitch.react"),{tabIndex:-1,value:c!=null?c:!1});return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,side:_,onClick:m,title:p,containerXstyle:n})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebChatNotificationSettingsDrawer.react",["fbt","WAWebABProps","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebMuteAllMentionsRow.react","WAWebMuteRow.react","cr:7288","cr:7899","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={muteRow:{paddingInlineStart:"x106a9eq",paddingInlineEnd:"x1xnnf8n",paddingTop:"x889kno",paddingBottom:"x1a8lsjc",marginInlineStart:"x1lziwak",$$css:!0},sectionTitle:{paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",paddingInlineStart:"x1c1uobl",paddingInlineEnd:"xyri2b",paddingLeft:null,paddingRight:null,$$css:!0}};function d(){return s._(/*BTDS*/"Notificaciones")}function m(e){var t=e.chat;return u.jsxs(r("WAWebDrawerSection.react"),{animation:!1,title:s._(/*BTDS*/"Mensajes"),titleXStyle:c.sectionTitle,theme:"padding-no-vertical",children:[u.jsx(r("WAWebMuteRow.react"),{chat:t,mute:t.mute,showIcon:!1,containerXstyle:c.muteRow}),o("WAWebABProps").getABPropConfigValue("enable_mention_everyone_receiver")&&u.jsx(r("WAWebMuteAllMentionsRow.react"),{chat:t,mute:t.mute,containerXstyle:c.muteRow}),n("cr:7288")&&n("cr:7899")&&n("cr:7288").isCustomNotificationTonesEnabled()&&u.jsx(n("cr:7899"),{chat:t})]})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.chat,n=e.onClose,a=e.ref;return u.jsxs(r("WAWebDrawer.react"),{ref:a,children:[u.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{testid:void 0,title:d(),onBack:n,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),u.jsx(r("WAWebDrawerBody.react"),{children:u.jsx(m,{chat:t})})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebChatParticipant.react",["WAWebChatContact.react","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=o("WAWebChatContact.react").ContactFactory();function c(e){var t=e.active,n=e.contact,r=e.contextEnabled,a=e.contextMenu,i=e.elevatedPushNamesEnabled,l=e.isPendingParticipant,c=l===void 0?!1:l,d=e.onClick,m=e.onContext,p=e.participantCollection,_=e.showStatusRingAroundProfilePhoto,f=e.theme,g=e.truncateName,h=o("useWAWebModelValues").useModelValues(e.participant,["isAdmin"]),y=function(){return r==null?!1:r(n)},C=function(t){return m==null?void 0:m(t,n)};return s.jsx(u,{truncateName:g,active:t,contact:n,admin:h.isAdmin,onClick:c?m:d,theme:f||"drawer-list",contextEnabled:y,contextMenu:a,onContext:C,isPendingParticipant:c,showNotifyName:!0,elevatedPushNamesEnabled:i,waitIdle:!0,showStatusRingAroundProfilePhoto:_,participantCollection:p,sourceChat:e.sourceChat,showMemberLabel:e.showMemberLabel})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebCommunityGetGeneralChatParticipantText.react",["fbt","WAWebCommunityGatingUtils"],(function(t,n,r,o,a,i,l,s){function e(e){return o("WAWebCommunityGatingUtils").communityGeneralChatV2Enabled()?"":e?s._(/*BTDS*/"Los nuevos miembros de la comunidad ya no se a\u00f1adir\u00e1n autom\u00e1ticamente a este grupo porque est\u00e1 lleno."):s._(/*BTDS*/"Los nuevos miembros de la comunidad se a\u00f1adir\u00e1n autom\u00e1ticamente a este grupo, hasta que est\u00e9 lleno.")}l.getGeneralChatParticipantListText=e}),226); __d("WAWebContactInfoAboutSection",["fbt","WAWebChatInfoDrawerSection.react","WAWebChatStatus","WAWebChatTextStatusWrapper","WAWebExternalLink.react","WAWebFrontendContactGetters","WAWebMiscGatingUtils","WAWebText.react","WAWebTextStatusGatingUtils","WAWebTextStatusUtils","WAWebUISpacing","WAWebWid","react","useWAWebContactValues","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={whatsapp_url:{color:"x14qam3d",$$css:!0}};function d(e){var t,n=e.contact,a=n.getStatus(),i=o("useWAWebModelValues").useModelValues(a,["status"]),l=i.status,d=o("useWAWebContactValues").useContactValues(n.id,[(t=o("WAWebFrontendContactGetters")).getTextStatusString,t.getTextStatusEmoji,t.getTextStatusLastUpdateTime,t.getTextStatusExpiryTs,t.getTextStatusEphemeralDuration]),m=d[0],p=d[1],_=d[2],f=d[3],g=d[4],h=o("WAWebTextStatusUtils").shouldDisplayTextStatus(m,p,_,f,g);if(r("WAWebWid").isPSA(n.id)){var y=o("WAWebMiscGatingUtils").isBlueEnabled()?s._(/*BTDS*/"Los chats oficiales de WhatsApp siempre tendr\u00e1n una insignia verificada de color azul, y nunca te pediremos informaci\u00f3n personal.").toString():s._(/*BTDS*/"Los chats oficiales de WhatsApp siempre tendr\u00e1n una marca de verificaci\u00f3n de color verde, y nunca te pediremos informaci\u00f3n personal.").toString(),C=s._(/*BTDS*/"\u00a1Hola! Te damos la bienvenida al chat oficial de WhatsApp."),b=s._(/*BTDS*/"Aqu\u00ed puedes obtener consejos, ver avisos y conocer las funciones m\u00e1s recientes, directamente de nosotros.").toString(),v=o("WAWebText.react").WAWebTextTitleRefreshed;return u.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-about",title:"",children:[u.jsxs(v,{as:"span",children:[C,u.jsx("br",{}),b,u.jsx("br",{}),y]}),u.jsx("br",{}),u.jsx("br",{}),u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:"https://whatsapp.com/",xstyle:c.whatsapp_url,children:s._(/*BTDS*/"https:\/\/whatsapp.com\/")})]})}if(!o("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()&&l==="")return null;var S;o("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?h===!0?S=s._(/*BTDS*/"Status"):o("WAWebTextStatusUtils").hasCustomAboutSet(a)&&(S=s._(/*BTDS*/"Info.")):S=s._(/*BTDS*/"Info.");var R=o("WAWebTextStatusGatingUtils").receiveTextStatusEnabled()?u.jsx(o("WAWebChatTextStatusWrapper").TextStatus,{contactId:n.id}):u.jsx(o("WAWebChatStatus").StatusWrapper,{id:n.id});return u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-about",title:S,titleXStyle:o("WAWebUISpacing").uiPadding.all0,children:u.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{color:"wdsContentDefault",xstyle:o("WAWebUISpacing").uiMargin.top4,children:R})})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebContactInfoBizBot1pSection.react",["fbt","WAWebBizBot1pLearnMore.react","WAWebBizBotConsumerContentVariant","WAWebBotDataSharingIcon.react","WAWebChatInfoDrawerRow.react","WAWebDoubleChevronInCircleIcon.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebModalManager","WAWebSvgComponentBase","WAWebText.react","WDSIconWdsIcAiFilled.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=o("WAWebBizBotConsumerContentVariant").getBizBotConsumerContentVariant(),t=u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:s._(/*BTDS*/"Este chat utiliza la IA de Meta")}),n=u.jsx(o("WAWebText.react").WAWebTextMuted,{children:e===o("WAWebBizBotConsumerContentVariant").BizBotConsumerContentVariant.BRAZIL?s._(/*BTDS*/"La IA de Meta recibe mensajes y puede usarlos para mejorar la calidad de la IA y generar mensajes para esta empresa."):s._(/*BTDS*/"La IA de Meta recibe mensajes para mejorar la calidad de la IA y generar mensajes para esta empresa.")}),a=e===o("WAWebBizBotConsumerContentVariant").BizBotConsumerContentVariant.INDIA?u.jsx(r("WDSIconWdsIcAiFilled.react"),{colorName:"contentDeemphasized",width:20,height:20}):u.jsx(o("WAWebDoubleChevronInCircleIcon.react").DoubleChevronInCircleIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,width:20,height:20}),i=function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebBizBot1pLearnMore.react"),{}))},l=u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:s._(/*BTDS*/"Administra tus chats de IA")}),c=u.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Aprende a descargar y eliminar la copia que tiene Meta de tus chats de IA. Haz clic para obtener m\u00e1s informaci\u00f3n.")}),d=u.jsx(o("WAWebBotDataSharingIcon.react").BotDataSharingIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,width:20,height:20}),m=function(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getBizBot1pLearnMoreUrl())};return u.jsxs(u.Fragment,{children:[u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,onClick:i,icon:a,title:t,secondaryTitle:n}),u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,onClick:m,icon:d,title:l,secondaryTitle:c})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoBizBot3pSection.react",["fbt","WAWebBotDataSharingIcon.react","WAWebChatInfoDrawerRow.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebSvgComponentBase","WAWebText.react","react","vulture"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){r("vulture")("SfWebLP1tzy03l4lDLgRjOzio9k=");var e=u.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:s._(/*BTDS*/"Acerca de c\u00f3mo administrar los chats de IA")}),t=u.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Obt\u00e9n informaci\u00f3n sobre c\u00f3mo descargar y eliminar los chats que reciben Meta y el desarrollador")}),n=u.jsx(o("WAWebBotDataSharingIcon.react").BotDataSharingIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,width:18,height:18}),a=function(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getBizBot3pDataSharingUrl())};return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRow,{onClick:a,icon:n,title:e,secondaryTitle:t})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoCommonGroupsSection.react",["fbt","WALogger","WAWebChat.react","WAWebChatCommunityUtils","WAWebChatInfoDrawerSection.react","WAWebChatInfoExpandButton.react","WAWebCmd","WAWebCommunityGatingUtils","WAWebComposeBoxActions","WAWebFindCommonGroupsContactAction","WAWebFlatList.react","WAWebFrontendContactGetters","WAWebUISpacing","err","react","useWAWebContactValues","useWAWebEventTargetValue"],(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={titlePadding:{paddingInlineStart:"x1phvje8",paddingInlineEnd:"xcldk2z",paddingLeft:null,paddingRight:null,$$css:!0}},g=o("WAWebFlatList.react").FlatListFactory();function h(t){var n=t.contact,a=t.flatListController,i=t.onClose,l=o("useWAWebContactValues").useContactValues(n.id,[o("WAWebFrontendContactGetters").getCommonGroups]),u=l[0],c=_(!0),d=c[0],h=c[1];p(function(){o("WAWebFindCommonGroupsContactAction").findCommonGroups(n).catch(function(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: "+t),r("err")("get from participants table failed")})},[]);var y=r("useWAWebEventTargetValue")(u,["add","remove"],function(){if(!u)return[];var e=u;return e.length>o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS&&d&&(e=e.slice(0,o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS)),e.map(function(e){return{itemKey:e.id.toString(),chat:e,height:o("WAWebCommunityGatingUtils").shouldShowNewSubgroupIdentity(e.groupMetadata)?o("WAWebChatCommunityUtils").SUBGROUP_V2_CHAT_CELL_HEIGHT:68}})},[d]),C=function(){h(!1)},b=function(t,n){o("WAWebCmd").Cmd.openChatFromUnread({chat:n}).then(function(e){e&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(n)}),i()};if(!u||u.length===0)return null;var v;if(u.length>o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS&&d){var S=u.length-o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS;v=m.jsx(r("WAWebChatInfoExpandButton.react"),{numMore:S,onClick:C})}var R=s._(/*BTDS*/"_j{\"*\":\"{number} grupos en com\\u00fan\",\"_1\":\"1 grupo en com\\u00fan\"}",[s._plural(u.length,"number")]);return m.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{titleTestId:"section-common-groups",title:R,theme:"refresh-new",xstyle:[o("WAWebUISpacing").uiPadding.horiz0,o("WAWebUISpacing").uiMargin.top10],titleXStyle:f.titlePadding,children:[m.jsx("div",{className:"x1380le5",children:m.jsx(g,{flatListController:a,direction:"vertical",forceConsistentRenderCount:!1,data:y,renderItem:function(t){var e=t.chat;return m.jsx(o("WAWebChat.react").Chat,{chat:e,theme:"chat-info",mode:o("WAWebChat.react").Mode.INFO,onClick:b,showCommunityInfo:!0},e.id.toString())}})}),v]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebContactInfoDisclosuresSectionRow.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebCommonCTWAConsumerTransparency","WAWebConsumerTransparencyModalDialog.react","WAWebSingleChevronInCircleIcon.react","WAWebSvgComponentBase","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){if(!o("WAWebCommonCTWAConsumerTransparency").shouldShowROWConsumerDisclosure())return null;var e=s._(/*BTDS*/"Meta recibe informaci\u00f3n limitada, como el n\u00famero y los tipos de interacciones con un chat de empresa.");return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRow,{onClick:o("WAWebConsumerTransparencyModalDialog.react").showConsumerTransparencyModalDialog,icon:u.jsx(o("WAWebSingleChevronInCircleIcon.react").SingleChevronInCircleIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:22,width:22}),title:u.jsx(o("WAWebText.react").WAWebTextTitle,{testid:void 0,children:s._(/*BTDS*/"Este chat comenz\u00f3 a partir de un anuncio")}),secondaryTitle:u.jsx(o("WAWebText.react").WAWebTextMuted,{testid:void 0,children:e})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoEncryptionSection",["fbt","WAWebABPropsSaga","WAWebABPropsSupportGroup","WAWebBizCoexGatingUtils","WAWebContactGetters","WAWebExternalLink.react","WAWebFaqUrl","WAWebFormatNotificationTemplateModalText","WAWebLidMigrationUtils","WAWebMobilePlatforms","WAWebModalManager","WAWebOpenCoexSystemMessageModal.react","WAWebOpenSystemMessageModal","WAWebPrivacyGatingUtils","WAWebPrivacyModeSystemMsg","WAWebSecurityDrawerSection.react","WAWebSupportAIInfoNuxLoadable","WAWebSupportChatStrings","WAWebTextWithLearnMoreLink","WAWebUserPrefsMultiDevice","WAWebWid","react","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.contactId,n=e.onVerificationClick,a=o("useWAWebContactValues").useContactValues(t,[o("WAWebContactGetters").getPrivacyMode,o("WAWebContactGetters").getIsHosted]),i=a[0],l=a[1],c=d(o("WAWebPrivacyModeSystemMsg").getReducedPrivacyMode(i),t,l);return c?u.jsx(r("WAWebSecurityDrawerSection.react"),{header:c.header,text:c.text,onClick:c.onClick}):u.jsx(r("WAWebSecurityDrawerSection.react"),{onClick:n,text:s._(/*BTDS*/"Los mensajes est\u00e1n cifrados de extremo a extremo. Haz clic para verificarlo."),header:{type:"encryption"}})}c.displayName=c.name+" [from "+i.id+"]";function d(e,t,n){var a=o("WAWebLidMigrationUtils").toUserLid(t);if(o("WAWebMobilePlatforms").isSMB()&&o("WAWebBizCoexGatingUtils").bizHostedDevicesEnabled()){var i=o("WAWebUserPrefsMultiDevice").getIsHostedMeAccountFromLocalStorage();if(i===!0)return{text:s._(/*BTDS*/"Tu empresa usa un servicio seguro de Meta para administrar este chat. Haz clic para obtener m\u00e1s informaci\u00f3n."),header:{type:"security"},onClick:function(){o("WAWebOpenCoexSystemMessageModal.react").openCoexSecurityVerifySystemMessageModal(o("WAWebFormatNotificationTemplateModalText").formatCoexSecurityModalTextForYourBusiness(),null,o("WAWebFaqUrl").getCoexHostedFaqUrl(),t,a)}}}if(o("WAWebBizCoexGatingUtils").bizHostedDevicesEnabled()&&n===!0)return{text:s._(/*BTDS*/"Esta empresa usa un servicio seguro de Meta para administrar este chat. Haz clic para obtener m\u00e1s informaci\u00f3n."),header:{type:"security"},onClick:function(){o("WAWebOpenCoexSystemMessageModal.react").openCoexSecurityVerifySystemMessageModal(o("WAWebFormatNotificationTemplateModalText").formatCoexSecurityModalText(),o("WAWebFormatNotificationTemplateModalText").formatCoexSecurityModalTextLastParagraph(),o("WAWebFaqUrl").getCoexHostedFaqUrl(),t,a)}};if(r("WAWebABPropsSupportGroup")(t.user)){if(o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()){var l=function(){_(t)?p():o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getSupportChatSafetyFaqUrl())};return{text:u.jsx(r("WAWebTextWithLearnMoreLink"),{text:s._(/*BTDS*/"WhatsApp protege tus mensajes y llamadas con esta cuenta."),handleClick:l}),header:{type:"none"},onClick:l}}return _(t)?{text:s._(/*BTDS*/"Esta es una cuenta oficial del servicio de atenci\u00f3n al cliente de WhatsApp. Haz clic para obtener m\u00e1s informaci\u00f3n."),header:{type:"security"},onClick:function(){p()}}:{text:s._(/*BTDS*/"Haz clic para obtener informaci\u00f3n sobre la protecci\u00f3n de los mensajes y las llamadas."),header:{type:"security"},onClick:function(){o("WAWebOpenSystemMessageModal").openSystemMessageModal(o("WAWebSupportChatStrings").SupportChatSecurityModalText(),o("WAWebFaqUrl").getSupportChatSafetyFaqUrl(),o("WAWebSupportChatStrings").SupportChatLearnMoreLinkText())}}}switch(e){case o("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.E2EE:case o("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.HOSTED_GROUP:return null;case o("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.BSP:{var c=function(){o("WAWebOpenSystemMessageModal").openSystemMessageModal(o("WAWebFormatNotificationTemplateModalText").formatBspAndFbModalText(),o("WAWebFaqUrl").getE2EEnterpriseFaqUrl())};return{text:o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?u.jsx(r("WAWebTextWithLearnMoreLink"),{text:s._(/*BTDS*/"Esta empresa trabaja con otras compa\u00f1\u00edas para administrar este chat."),handleClick:c}):s._(/*BTDS*/"Esta empresa trabaja con otras compa\u00f1\u00edas para administrar este chat. Haz clic para obtener m\u00e1s informaci\u00f3n."),header:o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?{type:"none"}:{type:"security"},onClick:c}}case o("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.FB:{var d;t.isIAS()?d=o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?s._(/*BTDS*/"WhatsApp Surveys usa un servicio seguro de Meta para administrar este chat."):s._(/*BTDS*/"WhatsApp Surveys usa un servicio seguro de Meta para administrar este chat. Haz clic para obtener m\u00e1s informaci\u00f3n."):d=o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?s._(/*BTDS*/"Esta empresa usa un servicio seguro de Meta para administrar este chat."):s._(/*BTDS*/"Esta empresa usa un servicio seguro de Meta para administrar este chat. Haz clic para obtener m\u00e1s informaci\u00f3n.");var m=function(){o("WAWebOpenSystemMessageModal").openSystemMessageModal(o("WAWebFormatNotificationTemplateModalText").formatFbModalText(t.isIAS()),o("WAWebFaqUrl").getE2EEnterpriseFaqUrl())};return{text:u.jsx(r("WAWebTextWithLearnMoreLink"),{text:d,handleClick:o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?m:null}),header:o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?{type:"none"}:{type:"security"},onClick:m}}}function p(){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebSupportAIInfoNuxLoadable").SupportAIInfoNuxLoadable,{}),{transition:"modal-flow"})}function _(e){return r("WAWebWid").isCAPISupportAccount(e)&&o("WAWebABPropsSaga").getIsSagaV1NuxEnabled()}}l.default=c}),226); __d("WAWebReportUgcBotPopup.react",["fbt","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=s._(/*BTDS*/"Reporta la IA en tu tel\u00e9fono");return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:e,onOK:o("WAWebModalManager").closeModalManager,okText:r("WAWebFbtCommon")("OK"),okButtonType:"solid-warning"})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoIntegritySection.react",["fbt","WALogger","WAWebBlockContactUtils","WAWebBlockContants","WAWebBlockRefreshedIcon.react","WAWebBotGating","WAWebBotProfileGetters","WAWebChatCollection","WAWebChatInfoDrawerSection.react","WAWebContactGetters","WAWebDrawerButtonRefreshed.react","WAWebFindChatAction","WAWebFrontendContactGetters","WAWebModalManager","WAWebName.react","WAWebReportContactPopup.react","WAWebReportRefreshedIcon.react","WAWebReportUgcBotPopup.react","WAWebSpamConstants","WAWebUseBotProfileValues","WAWebUseBusinessProfile.react","WAWebWid","asyncToGeneratorRuntime","react","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d={name:{overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",maxWidth:"x1j9u4d2",$$css:!0}};function m(t){var a,i,l=t.contact,u=o("useWAWebContactValues").useContactValues(l.id,[(i=o("WAWebContactGetters")).getId,o("WAWebFrontendContactGetters").getDisplayName,i.getIsBusiness,o("WAWebFrontendContactGetters").getIsContactBlocked,i.getIsIAS,o("WAWebFrontendContactGetters").getIsMyContact,i.getIsCAPISupportAccount]),m=u[0],p=u[1],_=u[2],f=u[3],g=u[4],h=u[5],y=u[6],C=c.jsx(o("WAWebName.react").Name,{contact:l,skipCheckMark:!0,truncateName:!0,xstyle:d.name}),b=(a=o("WAWebUseBusinessProfile.react").useBusinessProfile(m,["isBizBot3p"]))!=null?a:{},v=b.isBizBot3p,S=v===void 0?!1:v,R=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(m,[o("WAWebBotProfileGetters").getIsMetaCreated]),L=R[0],E=o("WAWebBotGating").isUgcBotEnabled()&&L===!1,k=null;if(!m.isBot())if(f){var I=S?s._(/*BTDS*/"Desbloquear la IA"):s._(/*BTDS*/"Desbloquear a {contact_name}",[s._param("contact_name",C)]),T="li-unblock",D=function(){return o("WAWebBlockContactUtils").handleUnblock(l,o("WAWebBlockContants").BlockEntryPoint.Profile)};k=c.jsx(r("WAWebDrawerButtonRefreshed.react"),{testid:void 0,icon:c.jsx(o("WAWebBlockRefreshedIcon.react").BlockRefreshedIcon,{}),onClick:D,children:I})}else{var x=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=o("WAWebChatCollection").ChatCollection.get(m);if(e==null){var t=yield o("WAWebFindChatAction").findOrCreateLatestChat(l.id,"blockFromIntegritySection");e=t.chat}o("WAWebBlockContactUtils").handleBlock(e,o("WAWebBlockContants").BlockEntryPoint.Profile)});return function(){return e.apply(this,arguments)}})(),$=S?s._(/*BTDS*/"Bloquear la IA"):s._(/*BTDS*/"Bloquear a {contact_name}",[s._param("contact_name",C)]),P="li-block";k=c.jsx(r("WAWebDrawerButtonRefreshed.react"),{testid:void 0,danger:!0,icon:c.jsx(o("WAWebBlockRefreshedIcon.react").BlockRefreshedIcon,{}),onClick:x,children:$})}var N=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(E){o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebReportUgcBotPopup.react"),{}));return}var t=yield o("WAWebFindChatAction").findOrCreateLatestChat(l.id,"reportFromIntegritySection"),n=t.chat;if(n==null){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Unexpected null chat during reporting from contact info"]))),o("WAWebModalManager").ModalManager.close();return}o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebReportContactPopup.react"),{chat:n,spamFlow:o("WAWebSpamConstants").SpamFlow.AccountInfoReport}))});return function(){return t.apply(this,arguments)}})(),M=g||y?s._(/*BTDS*/"Reportar"):s._(/*BTDS*/"Reportar empresa");_||(M=s._(/*BTDS*/"Reportar a {contact_name}",[s._param("contact_name",C)])),(S||E)&&(M=s._(/*BTDS*/"Reportar IA"));var w;if(!r("WAWebWid").isPSA(m)&&(!m.isBot()||E)){var A="li-report-spam",F=N;w=c.jsx(r("WAWebDrawerButtonRefreshed.react"),{testid:void 0,danger:!0,icon:c.jsx(o("WAWebReportRefreshedIcon.react").ReportRefreshedIcon,{}),onClick:F,children:M})}return c.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerButtonsSection,{children:[k,w]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebContactInfoMessagesSection.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebChatInfoDrawerSection.react","WAWebStarRefreshedIcon.react","WAWebSvgComponentBase","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onStarred,n=s._(/*BTDS*/"Mensajes destacados"),r=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:n}),a=u.jsx(o("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY});return u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-starred-messages",xstyle:o("WAWebUISpacing").uiPadding.horiz0,children:u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,icon:a,onClick:t,title:r})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoPhoneNumberSection.react",["fbt","WAWebChatInfoDrawerSection.react","WAWebFrontendContactGetters","WAWebStopEvent","WAWebText.react","WAWebUISpacing","WAWebWamEnumOppositeVisibleIdentificationType","react","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.contact,n=o("useWAWebContactValues").useContactValues(t.id,[o("WAWebFrontendContactGetters").getFormattedPhoneAndType,o("WAWebFrontendContactGetters").getFormattedUserAndType,o("WAWebFrontendContactGetters").getFormattedUsernameOrPhoneAndType]),r=n[0],a=n[1],i=n[2],l=(a.type===o("WAWebWamEnumOppositeVisibleIdentificationType").OPPOSITE_VISIBLE_IDENTIFICATION_TYPE.USERNAME||i.type===o("WAWebWamEnumOppositeVisibleIdentificationType").OPPOSITE_VISIBLE_IDENTIFICATION_TYPE.USERNAME)&&r.type===o("WAWebWamEnumOppositeVisibleIdentificationType").OPPOSITE_VISIBLE_IDENTIFICATION_TYPE.PHONE_NUMBER;if(!l)return null;var c=s._(/*BTDS*/"N\u00famero de tel\u00e9fono"),d=r.displayName;return u.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-phone-number",title:c,titleXStyle:o("WAWebUISpacing").uiPadding.all0,children:u.jsx("div",{onCopy:o("WAWebStopEvent").stopPropagation,children:u.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{color:"wdsContentDefault",xstyle:o("WAWebUISpacing").uiMargin.top4,children:d})})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoSagaSection.react",["fbt","WAWebABPropsSaga","WAWebChatInfoDrawerRow.react","WAWebModalManager","WAWebSagaModal.react","WAWebSagaV1Modal.react","WAWebText.react","WDSIconWdsIcAiFilled.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=u.jsx(r("WDSIconWdsIcAiFilled.react"),{colorName:"contentDeemphasized",height:20}),t=s._(/*BTDS*/"IA"),n=s._(/*BTDS*/"La IA puede generar los mensajes de este chat. Toca para obtener m\u00e1s informaci\u00f3n.");return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{onClick:d,icon:e,title:u.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:t}),secondaryTitle:u.jsx(o("WAWebText.react").WAWebTextMutedRefreshed,{children:n})})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.open(o("WAWebABPropsSaga").getIsSagaV1NuxEnabled()?u.jsx(r("WAWebSagaV1Modal.react"),{}):u.jsx(r("WAWebSagaModal.react"),{}))}l.default=c}),226); __d("WDSIconIcDialpad.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-dialpad";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children: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.default=m}),98); __d("WAWebContactInfoTopCard.react",["fbt","WALogger","WAWebAddUserIcon.react","WAWebBizGatingUtils","WAWebChatCollection","WAWebChatEntryPoint","WAWebChatInfoActionButton.react","WAWebChatRefreshedIcon.react","WAWebCmd","WAWebComposeBoxActions","WAWebContactCollection","WAWebContactGetters","WAWebContactInfoNotes.react","WAWebContactInfoPhoneNumberHidden.react","WAWebContactManagementGating","WAWebContactUtils","WAWebCopyPasteSelectable.react","WAWebDetailImage.react","WAWebDialpadSmallIcon.react","WAWebDrawerSection.react","WAWebFbtCommon","WAWebFindChatAction","WAWebFlex.react","WAWebFrontendContactGetters","WAWebLabelsInfoDrawerLabelWell.react","WAWebLidMigrationUtils","WAWebMemberLabelContactInfo.react","WAWebModalManager","WAWebName.react","WAWebNotesUtils","WAWebRequestPhoneNumberModal.react","WAWebSearchRefreshedIcon.react","WAWebStreamModel","WAWebText.react","WAWebUISpacing","WAWebUserPrefsPhoneNumberHidingThreadPromotionMigration","WAWebUsernameGatingUtils","WAWebWamEnumCallFromUi","WAWebWamEnumLobbyEntryPointType","WAWebWamEnumOppositeVisibleIdentificationType","WAWebWamEnumPnhEntryPointType","WAWebWid","WAWebWidFormat","WDSActionTile.react","WDSActionTileGroup.react","WDSFocusStateStyles","WDSIconIcCall.react","WDSIconIcDialpad.react","WDSIconIcPersonAdd.react","WDSIconIcSearch.react","WDSIconIcVideocam.react","WDSIconWdsIcChat.react","WDSTooltip.react","cr:8385","cr:8412","cr:8456","isStringNullOrEmpty","react","stylex","useWAWebABPropConfigValue","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_=m||(m=r("react")),f=(e=n("cr:8385"))!=null?e:{},g=f.startWAWebVoipCall,h=(u=n("cr:8412"))!=null?u:{},y=h.VideoCallRefreshedIcon,C=(c=n("cr:8456"))!=null?c:{},b=C.CallRefreshedIcon,v={avatar:{display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},secondaryWrapper:{lineHeight:"x1evy7pa",$$css:!0}};function S(e){var t=e.contact,n=e.displayRequestPhoneNumber,a=e.isMessageYourselfChat,i=e.onDetailImageClick,l=e.onDetailImageLoad,u=e.onSaveContact,c=e.onSearchMsgs,d=e.sourceChat,m=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_tooltip"),f=o("useWAWebContactValues").useContactValues(t.id,[o("WAWebFrontendContactGetters").getPhoneNumber]),g=f[0],h=g!=null?o("WAWebContactCollection").ContactCollection.get(g):null,y=L({contact:t,phoneNumberContact:h}),C=o("WAWebNotesUtils").shouldEnableNotesForWid(t==null?void 0:t.id)?_.jsx(r("WAWebContactInfoNotes.react"),{contact:t}):null,b=_.jsx(o("WAWebName.react").Name,{testid:void 0,contact:t,showMessageYourselfName:a,useLiftMeUp:!1,selectable:!0,breakWord:!0,checkmarkLarge:!0}),S=s._(/*BTDS*/"Ver foto"),E=_.jsx(o("WAWebDetailImage.react").DetailImage,{id:t.id,size:o("WAWebDetailImage.react").DetailImageSize.Refresh,loader:!0,onLoad:l,onClick:i,quality:o("WAWebDetailImage.react").DetailImageQuality.High,tabIndex:0,xstyle:o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus,ariaLabel:S}),k=n&&!o("WAWebUserPrefsPhoneNumberHidingThreadPromotionMigration").hasPhoneNumberHidingThreadPromotionMigrationStarted();return _.jsxs(r("WAWebDrawerSection.react"),{theme:"refresh-new",children:[_.jsx("div",babelHelpers.extends({},(p||(p=r("stylex"))).props(v.avatar,o("WAWebUISpacing").uiMargin.bottom10),{children:m?_.jsx(r("WDSTooltip.react"),{label:S,children:E}):E})),_.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",children:[_.jsx(o("WAWebText.react").WAWebTextLargeRefreshed,{children:b}),y!=null&&_.jsx("div",babelHelpers.extends({},(p||(p=r("stylex"))).props(v.secondaryWrapper,o("WAWebUISpacing").uiMargin.top10),{children:_.jsx(o("WAWebCopyPasteSelectable.react").SelectableSpan,{dir:"auto",selectable:!0,children:_.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{color:"wdsContentDeemphasized",children:y})})})),_.jsx(o("WAWebMemberLabelContactInfo.react").MemberLabelContactInfo,{contact:t,chat:d})]}),n&&_.jsx(r("WAWebContactInfoPhoneNumberHidden.react"),{}),!a&&_.jsx(R,{contact:t,displayRequestPnButton:k,onSaveContact:u,onSearchMsgs:c}),o("WAWebBizGatingUtils").canDisplayLabel()&&_.jsx(r("WAWebLabelsInfoDrawerLabelWell.react"),{labels:t.labels}),C]})}S.displayName=S.name+" [from "+i.id+"]";function R(e){var t=e.contact,n=e.displayRequestPnButton,a=e.onSaveContact,i=e.onSearchMsgs,l=o("useWAWebABPropConfigValue").useABPropConfigValue("waweb_chatinfo_refresh"),u=function(){o("WAWebFindChatAction").findOrCreateLatestChat(t.id,"chatInfoTopCard").then(function(e){var t=e.chat;o("WAWebCmd").Cmd.openChatFromUnread({chat:t,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.ContactInfo}).then(function(e){e&&o("WAWebComposeBoxActions").ComposeBoxActions.focus(t)})})},c=[];if(l&&c.push({Icon:o("WAWebSearchRefreshedIcon.react").SearchRefreshedIcon,wdsIcon:r("WDSIconIcSearch.react"),onClick:i,title:s._(/*BTDS*/"Busca"),testid:"contact-action search-button"}),n){var m=s._(/*BTDS*/"Solicitar"),p=s._(/*BTDS*/"Solicitado"),f=o("WAWebContactGetters").getCanRequestPhoneNumber(t)?m:p;c.push({Icon:o("WAWebDialpadSmallIcon.react").DialpadSmallIcon,wdsIcon:r("WDSIconIcDialpad.react"),onClick:function(){o("WAWebModalManager").ModalManager.open(_.jsx(r("WAWebRequestPhoneNumberModal.react"),{entryPoint:o("WAWebWamEnumPnhEntryPointType").PNH_ENTRY_POINT_TYPE.CHAT_INFO_REQUEST}))},testid:"request-phone-number-button-consumer",title:f,disabled:!o("WAWebContactGetters").getCanRequestPhoneNumber(t)})}var h=o("WAWebChatCollection").ChatCollection.getActive(),C=!(h!=null&&h.id.equals(t.id));C&&c.push({Icon:o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,wdsIcon:r("WDSIconWdsIcChat.react"),onClick:u,testid:"contact-action chat-button",title:s._(/*BTDS*/"Mensaje"),disabled:!1});var v=o("WAWebLidMigrationUtils").toPn(t.id)!=null,S=o("WAWebLidMigrationUtils").toLid(t.id)!=null&&!r("isStringNullOrEmpty")(t.username);if(o("WAWebContactUtils").canSaveAsMyContact(t.id)&&!o("WAWebFrontendContactGetters").getIsMyContact(t)&&(v||S&&o("WAWebUsernameGatingUtils").usernameContactUIEnabled())&&o("WAWebContactManagementGating").contactManagementEnabled()&&c.push({Icon:o("WAWebAddUserIcon.react").AddUserIcon,wdsIcon:r("WDSIconIcPersonAdd.react"),onClick:a,testid:"contact-action contact-button",title:r("WAWebFbtCommon")("Add"),ariaLabel:s._(/*BTDS*/"A\u00f1adir a contactos"),disabled:!1}),y!=null&&b!=null&&!o("WAWebFrontendContactGetters").getIsContactBlocked(t)&&o("WAWebStreamModel").Stream.displayInfo===o("WAWebStreamModel").StreamInfo.NORMAL){var R=s._(/*BTDS*/"Voz"),L=s._(/*BTDS*/"Video"),E=function(n){o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["voip: contact info: start 1:1 call, isVideo: ",""])),n),g!=null&&g(t.id,n,o("WAWebWamEnumCallFromUi").CALL_FROM_UI.CONTACT_INFO,o("WAWebWamEnumLobbyEntryPointType").LOBBY_ENTRY_POINT_TYPE.NOT_OPENED)};c.push({Icon:y,wdsIcon:r("WDSIconIcVideocam.react"),onClick:function(){return E(!0)},testid:"contact-video-call-button",title:L}),c.push({Icon:b,wdsIcon:r("WDSIconIcCall.react"),onClick:function(){return E(!1)},testid:"contact-voice-call-button",title:R})}var k;if(l){var I=c.map(function(e,t){var n=e.onClick,o=e.testid,a=e.title,i=e.wdsIcon;return _.jsx(r("WDSActionTile.react"),{Icon:i,onPress:n,label:a,testid:void 0},t)});c.length>=2&&c.length<=5?k=_.jsx(r("WDSActionTileGroup.react"),{children:I}):k=_.jsx("div",{className:"x78zum5 xh8yej3 x9f619 xl56j7k x1s70e7g xdx6fka xvtqlqk",children:I})}else k=c.map(function(e,t){var n=e.Icon,a=e.disabled,i=e.onClick,l=e.testid,s=e.title;return _.jsx(r("WAWebChatInfoActionButton.react"),{Icon:n,iconWidth:19,label:s,testid:void 0,xstyle:[o("WAWebUISpacing").uiMargin.start16,o("WAWebUISpacing").uiMargin.end16],disabled:a!=null?a:!1,onClick:i},t)});return _.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",xstyle:[o("WAWebUISpacing").uiMargin.top8,o("WAWebUISpacing").uiMargin.bottom4],children:k})}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e.contact,n=e.phoneNumberContact;if(r("WAWebWid").isPSA(t.id)){var a=s._(/*BTDS*/"Cuenta oficial de WhatsApp");return a}if(o("WAWebUsernameGatingUtils").usernameDisplayedEnabled()){var i=o("WAWebFrontendContactGetters").getFormattedUserAndType(t);e:{if(i.type===o("WAWebWamEnumOppositeVisibleIdentificationType").OPPOSITE_VISIBLE_IDENTIFICATION_TYPE.PHONE_NUMBER||i.type===o("WAWebWamEnumOppositeVisibleIdentificationType").OPPOSITE_VISIBLE_IDENTIFICATION_TYPE.MASKED_PHONE_NUMBER||i.type===o("WAWebWamEnumOppositeVisibleIdentificationType").OPPOSITE_VISIBLE_IDENTIFICATION_TYPE.USERNAME)break e;{var l=o("WAWebFrontendContactGetters").getFormattedUsernameOrPhone(t);return l===t.name?null:l}}}else{if(!t.id.isLid()&&o("WAWebFrontendContactGetters").getIsMyContact(t))return o("WAWebWidFormat").widToFormattedUser(t.id);if(t.id.isLid()&&n!=null&&o("WAWebFrontendContactGetters").getIsMyContact(n))return o("WAWebWidFormat").widToFormattedUser(n.id)}var u=o("WAWebContactGetters").getNotifyName(t);if(u!=null)return"~"+u}l.default=S}),226); __d("WAWebContactInfoWaChatSecuritySection",["fbt","WAWebFaqUrl","WAWebFormatNotificationTemplateModalText","WAWebOpenSystemMessageModal","WAWebPrivacyGatingUtils","WAWebSecurityDrawerSection.react","WAWebTextWithLearnMoreLink","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=d();return u.jsx(r("WAWebSecurityDrawerSection.react"),{header:e.header,text:e.text,onClick:e.onClick})}c.displayName=c.name+" [from "+i.id+"]";function d(){var e=function(){o("WAWebOpenSystemMessageModal").openSystemMessageModal(o("WAWebFormatNotificationTemplateModalText").formatWaChatSecurityModalText(),o("WAWebFaqUrl").getWAChatFaqUrl())},t=s._(/*BTDS*/"Esta es una cuenta oficial de WhatsApp");return{text:o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?u.jsx(r("WAWebTextWithLearnMoreLink"),{text:t,handleClick:e}):t,header:o("WAWebPrivacyGatingUtils").isDataPrivacyPhase2NonE2eeEnabled()?{type:"none"}:{type:"security"},onClick:e}}l.default=c}),226); __d("WAWebMmSignalSharingDisclosureRow.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebMmSignalSharingLoggingEvents","WAWebMmSignalSharingUIUtils","WAWebSingleChevronInCircleIcon.react","WAWebText.react","WAWebWamEnumDisclosureEventType","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=r("react"));function c(e){var t=e.chat,n=e.isRefresh,r=u.jsx(o("WAWebText.react").WAWebTextTitle,{children:s._(/*BTDS*/"Este chat contiene ofertas y avisos")}),a=u.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Meta recibe informaci\u00f3n limitada, como si visitas un sitio web o env\u00edas comentarios sobre una empresa.")}),i={title:r,secondaryTitle:a,onClick:function(){return o("WAWebMmSignalSharingUIUtils").openMmSignalSharingDisclosureModal({action:"learnMore",onLearnMore:function(){return o("WAWebMmSignalSharingLoggingEvents").logMmSignalSharingDisclosureLearnMoreEvent({eventType:o("WAWebWamEnumDisclosureEventType").DISCLOSURE_EVENT_TYPE.DISCLOSURE_INFO_CLICK,chat:t})}})}};return n===!0?u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,babelHelpers.extends({},i,{icon:u.jsx(o("WAWebSingleChevronInCircleIcon.react").SingleChevronInCircleIcon,{viewBox:{x:0,y:0,width:19,height:19}})})):u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRow,babelHelpers.extends({},i,{spaced:!1,icon:u.jsx(o("WAWebSingleChevronInCircleIcon.react").SingleChevronInCircleIcon,{viewBox:{x:0,y:0,width:22,height:22}})}))}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebProductCatalogShopsCatalogDrawerSection.react",["WANullthrows","WAWebBizShopsManagePopup.react","WAWebBusinessProfileUtils","WAWebExternalLink.react","WAWebModalManager","WAWebPipConst","WAWebProductCatalogCatalogDrawerSection.react","WAWebShopsLog","WAWebWamEnumShopsManagementAction","react","vulture"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.animation,n=t===void 0?!0:t,a=e.businessProfile,i=e.catalog,l=e.hideIncompleteRows,u=e.isEditMode,c=e.productsToShow,d=e.subtitle;r("vulture")("EMI0CRcyFIukL0q3FsuY9nfvCFk=");var m=s.jsx(r("WAWebBizShopsManagePopup.react"),{onViewShopClick:function(){o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_VIEW_SHOPS_FROM_EDIT_BIZ_PROFILE)},onCommerceManagerClick:function(){o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_COMMERCE_MANAGER_FROM_EDIT_BIZ_PROFILE)},onCancelClick:function(){o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_CANCEL_FROM_EDIT_BIZ_PROFILE)}});function p(){u?(o("WAWebModalManager").ModalManager.open(m),o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_MANAGE_SHOPS)):o("WAWebBusinessProfileUtils").goToShop(a)}function _(e){if(u)o("WAWebModalManager").ModalManager.open(m),o("WAWebShopsLog").logShopsManagementEvent(o("WAWebWamEnumShopsManagementAction").SHOPS_MANAGEMENT_ACTION.ACTION_CLICK_SHOPS_PRODUCT_PREVIEW_TILE,{shouldLogJid:!1});else{var t=new URL(r("WANullthrows")(e.url),"https://"+o("WAWebPipConst").HOSTNAME.FACEBOOK);o("WAWebExternalLink.react").openExternalLink(String(t))}}return s.jsx(r("WAWebProductCatalogCatalogDrawerSection.react"),{onProductDetail:_,onProductCatalog:p,catalog:i,subtitle:d,hideIncompleteRows:l,productsToShow:c,showShopsLogo:!0,animation:n})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebSettingsNotificationsIcon.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-notifications";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:"M12,21.7c0.9,0,1.7-0.8,1.7-1.7h-3.4C10.3,20.9,11.1,21.7,12,21.7z M17.6,16.5v-4.7 c0-2.7-1.8-4.8-4.3-5.4V5.8c0-0.7-0.6-1.3-1.3-1.3s-1.3,0.6-1.3,1.3v0.6C8.2,7,6.4,9.1,6.4,11.8v4.7l-1.7,1.7v0.9h14.6v-0.9 L17.6,16.5z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SettingsNotificationsIcon=m}),98); __d("WAWebStopMessagesRow.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebMarketingMessagesFeedbackResumeConfirmationLoadable","WAWebMarketingMessagesFeedbackStopConfirmationLoadable","WAWebMarketingMessagesUserFeedbackGatingUtils","WAWebModalManager","WAWebNoop","WAWebSettingsNotificationsIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebUnmuteNotificationsRefreshedIcon.react","WAWebWamEnumMmUserControlsEntryPoint","WDSSwitch.react","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,n=e.contact,a=e.isRefresh,i=o("useWAWebModelValues").useModelValues(n,["id","isContactOptedOut","isEverOptedOutOfMarketingMessages"]),l=i.isContactOptedOut;if(!i.getIsMarketingMessageThread()&&!i.isEverOptedOutOfMarketingMessages||!o("WAWebMarketingMessagesUserFeedbackGatingUtils").isMMOptOutEnabled()||o("WAWebMarketingMessagesUserFeedbackGatingUtils").isMMUserControlsExceptionNumberPrefixMatch(i.id))return null;var c=function(){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebMarketingMessagesFeedbackStopConfirmationLoadable").WAWebMarketingMessagesFeedbackStopConfirmationLoadable,{chat:t,logEntryPoint:o("WAWebWamEnumMmUserControlsEntryPoint").MM_USER_CONTROLS_ENTRY_POINT.BUSINESS_PROFILE}),{transition:"default"})},d=function(){o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebMarketingMessagesFeedbackResumeConfirmationLoadable").WAWebMarketingMessagesFeedbackResumeConfirmationLoadable,{chat:t,logEntryPoint:o("WAWebWamEnumMmUserControlsEntryPoint").MM_USER_CONTROLS_ENTRY_POINT.BUSINESS_PROFILE}),{transition:"default"})},m=l?d:c,p=u.jsx(o("WAWebText.react").WAWebTextTitle,{children:s._(/*BTDS*/"Ofertas y avisos")}),_=u.jsx(o("WAWebText.react").WAWebTextMuted,{children:s._(/*BTDS*/"Recibe ofertas y avisos de esta empresa.")}),f=a===!0?u.jsx(o("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{}):u.jsx(o("WAWebSettingsNotificationsIcon.react").SettingsNotificationsIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,height:20}),g=u.jsx(r("WDSSwitch.react"),{tabIndex:-1,value:!l,onChange:r("WAWebNoop"),testid:void 0});return a===!0?u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{icon:f,testid:void 0,side:g,onClick:m,title:p,secondaryTitle:_}):u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRow,{icon:f,testid:void 0,side:g,onClick:m,title:p,secondaryTitle:_,spaced:!1})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebContactInfoDrawer.react",["fbt","WAFilteredCatch","WALogger","WAQplTypes","WATimeUtils","WAWebABProps","WAWebABPropsSaga","WAWebBackendErrors","WAWebBizBot3pInfoAboutSection.react","WAWebBizBotCommandsSection.react","WAWebBizGatingUtils","WAWebBotGating","WAWebBotInfoAboutSection.react","WAWebBusinessAboutSection.react","WAWebBusinessAccountBanner.react","WAWebBusinessContactDisclosureSection.react","WAWebBusinessInfo.react","WAWebBusinessLogEvents","WAWebBusinessProfileUtils","WAWebBusinessTopCard.react","WAWebCatalogCollection","WAWebChatCollection","WAWebChatEphemerality","WAWebChatInfoDrawerRow.react","WAWebChatInfoDrawerSection.react","WAWebChatInfoFavoritesSection.react","WAWebChatInfoListsSection.react","WAWebChatInfoMediaSection.react","WAWebChatInfoPhoneNumberVisibilityIndicator.react","WAWebChatInfoWallpaperRow.react","WAWebChatThreadLogging","WAWebClickable.react","WAWebCmd","WAWebCommonCTWAConsumerTransparency","WAWebContactGetters","WAWebContactInfoAboutSection","WAWebContactInfoBizBot1pSection.react","WAWebContactInfoBizBot3pSection.react","WAWebContactInfoCommonGroupsSection.react","WAWebContactInfoDisclosuresSectionRow.react","WAWebContactInfoEncryptionSection","WAWebContactInfoIntegritySection.react","WAWebContactInfoLinkedSocialAccounts.react","WAWebContactInfoMessagesSection.react","WAWebContactInfoPhoneNumberSection.react","WAWebContactInfoSagaSection.react","WAWebContactInfoTopCard.react","WAWebContactInfoWaChatSecuritySection","WAWebContactManagementGating","WAWebContactUtils","WAWebDeleteIcon.react","WAWebDeleteRefreshedIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerButton.react","WAWebDrawerButtonRefreshed.react","WAWebDrawerContext","WAWebDrawerHeader.react","WAWebDrawerManagerGlobalContext","WAWebDrawerSection.react","WAWebEnvironment","WAWebEphemeralSettingRow.react","WAWebErrorBoundary.react","WAWebFlatListController","WAWebFrontendContactGetters","WAWebGroupInfoSeparator.react","WAWebHasAcceptedBizBotTos","WAWebInboxFiltersGatingUtils","WAWebKeepRefreshedIcon.react","WAWebLabelsInfoDrawerLabelWell.react","WAWebLimitSharingSettingRow.react","WAWebLimitSharingUIUtils","WAWebListsGatingUtils","WAWebManageE2ESessionsJob","WAWebMessageLogQplEvents","WAWebMmSignalSharingDisclosureRow.react","WAWebMmSignalSharingExpirationWindowUtils","WAWebModalManager","WAWebMuteRow.react","WAWebODS","WAWebPencilRefreshedIcon.react","WAWebPhotoViewerModal.react","WAWebProductCatalogCatalogDrawerSection.react","WAWebProductCatalogContext","WAWebProductCatalogSession","WAWebProductCatalogShopsCatalogDrawerSection.react","WAWebProfilePicThumbCollection","WAWebSendMsgDatabaseJob","WAWebStateUtils","WAWebStopMessagesRow.react","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUseBusinessProfile.react","WAWebUserPrefsMeUser","WAWebUserPrefsPhoneNumberHidingThreadPromotionMigration","WAWebUsernameGatingUtils","WAWebUsernameTypes","WAWebUtilsLogQplEvents","WAWebWamEnumActionEntryPoint","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumLandingSurface","WAWebWamEnumUnlockEntryPoint","WAWebWid","WDSMenuBarItem.react","cr:6008","cr:7210","gkx","react","useLazyRef","useWAWebABPropConfigValue","useWAWebChatLockRestriction","useWAWebContactValues","useWAWebListener","useWAWebOnUnmount","useWAWebUIM"],(function(t,n,r,o,a,i,l,s){var e,u,c=["ref"],d,m,p=m||(m=o("react")),_=d||(d=r("react")),f=p.useContext,g=p.useEffect,h=p.useRef,y=p.useState,C={lastSectionRow:{marginBottom:"xefnzgg",$$css:!0},drawerHeaderIcon:{color:"x14ug900",$$css:!0},drawerHeaderIconContainer:{borderStartStartRadius:"xvs2etk",borderStartEndRadius:"xg3wpu6",borderEndEndRadius:"x1jwbhkm",borderEndStartRadius:"xgg4q86",height:"x1vqgdyp",width:"x100vrsf",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",flex:"x1okw0bk",cursor:"x1ypdohk",":hover_backgroundColor":"x17gydlx",$$css:!0}},b={surface:"contact-info-drawer"};function v(e){var t=e.catalogContext,n=e.contact,a=e.onProductCatalog,i=e.onProductDetail,l=o("WAWebCatalogCollection").CatalogCollection.get(n.id);if(!l)return null;var u=s._(/*BTDS*/"Ver todo"),c=!0,d=t.session;return d.isAccidental()?null:o("WAWebBusinessProfileUtils").hasShop(n.businessProfile)?o("WAWebBizGatingUtils").bannedShopsEnabled()&&o("WAWebBusinessProfileUtils").isShopBanned(n.businessProfile)?null:_.jsx(r("WAWebProductCatalogShopsCatalogDrawerSection.react"),{businessProfile:n.businessProfile,catalog:l,subtitle:u,hideIncompleteRows:c}):_.jsx(r("WAWebProductCatalogCatalogDrawerSection.react"),{onProductDetail:i,onProductCatalog:a,catalog:l,subtitle:u,hideIncompleteRows:c,shouldLog:!0})}v.displayName=v.name+" [from "+i.id+"]";function S(t){var a,i,l,d=t.ref,m=babelHelpers.objectWithoutPropertiesLoose(t,c),p=m.contact,S=m.onBack,L=m.onClose,E=m.onProductCatalog,k=m.onProductDetail,I=m.onSaveContact,T=m.onVerification,D=m.onWallpaperClick,x=r("useWAWebUIM")(),$=f(o("WAWebDrawerContext").DrawerContext),P=o("useWAWebContactValues").useContactValues(m.contact.id,[(i=o("WAWebContactGetters")).getId,(l=o("WAWebFrontendContactGetters")).getFormattedName,l.getFormattedUser,l.getFormattedShortName,i.getIsBusiness,i.getIsEnterprise,l.getIsMyContact,l.getCommonGroups,i.getShowBusinessCheckmarkAsPrimary,i.getShowBusinessCheckmarkAsSecondary,i.getVerifiedName,i.getVerifiedLevel,i.getName,i.getNotifyName,i.getLabels,l.getPhoneNumber]),N=P[0],M=P[1],w=P[2],A=P[3],F=P[4],O=P[5],B=P[6],W=P[7],q=P[8],U=P[9],V=P[10],H=P[11],G=P[12],z=P[13],j=P[14],K=P[15],Q=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_button"),X=o("useWAWebContactValues").useContactValues(m.contact.id,[l.getBusinessCatalog,i.getIsMe,i.getStatusMute,l.getDisplayName,l.getShareOwnPn,i.getRequestedPnTimestamp,i.getCanRequestPhoneNumber,i.getIsIAS,i.getIsCAPISupportAccount]),Y=X[0],J=X[1],Z=X[2],ee=X[3],te=X[4],ne=X[5],re=X[6],oe=X[7],ae=X[8],ie=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),le=h(!1),se=y(100),ue=se[0],ce=se[1],de=o("WAWebChatCollection").ChatCollection.get(N),me=o("WAWebUseBusinessProfile.react").useBusinessProfile(N,["isBizBot1p","isBizBot3p","stale","isProfileLinked","coverPhoto","isCatalogDisabledDueToMetaLinking"]),pe=o("WAWebBotGating").isBizBot3pEnabled()&&(me==null?void 0:me.isBizBot3p)===!0,_e=o("WAWebBotGating").isBizBot1pEnabled()&&(me==null?void 0:me.isBizBot1p)===!0,fe=o("WAWebHasAcceptedBizBotTos").useHasAcceptedBizBotTos(),ge=J;g(function(){me&&!me.stale&&Y&&o("WAWebCatalogCollection").CatalogCollection.findCarouselCatalog(N).catch(o("WAFilteredCatch").filteredCatch(o("WAWebBackendErrors").ServerStatusCodeError,function(t){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Failed to fetch product catalog in contact drawer from server"])))})).catch(o("WAFilteredCatch").filteredCatch(o("WAWebBackendErrors").CatalogUnknownError,function(e){o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["Failed to fetch product catalog in contact drawer from server"])))})),o("WAWebSendMsgDatabaseJob").getFanOutListJob([N,o("WAWebUserPrefsMeUser").getMeDevicePnOrThrow()]).then(function(e){o("WAWebManageE2ESessionsJob").ensureE2ESessions(e)});var t=o("WAWebProductCatalogContext").getProductCatalogContext($),n=t.session;if(n.isAccidental()){var r;(r=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("right"))==null||r.updateContext(o("WAWebProductCatalogContext").buildProductCatalogContext(new(o("WAWebProductCatalogSession")).ProductCatalogSession,o("WAWebContactUtils").getMaybeBizPlatformForLogging(N.toString()),o("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_PROFILE))}else if(F){var a=o("WAWebUserPrefsMeUser").isMeUser(N),i=m.profileEntryPoint;!a&&i&&o("WAWebBusinessLogEvents").logProfileImpression(o("WAWebProductCatalogContext").getProductCatalogSessionId($),i,!!(me!=null&&me.isProfileLinked),!!(me!=null&&me.coverPhoto))}me&&o("WAWebMessageLogQplEvents").qplEndProfileView(o("WAQplTypes").QuickLogActionType.SUCCESS)},[]),g(function(){if(o("WAWebBizGatingUtils").btmThreadsLoggingEnabled()){var e=o("WAWebUserPrefsMeUser").isMeUser(N),t=o("WAWebProductCatalogContext").getProductCatalogContext($),n=t.session;!n.isAccidental()&&!e&&de!=null&&de.id&&o("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"profileViews",ts:o("WATimeUtils").unixTime(),chatId:de.id}])}},[]),r("useWAWebOnUnmount")(function(){var e=o("WAWebProductCatalogContext").getProductCatalogContext($),t=e.session;t.isAccidental()||F&&o("WAWebBusinessLogEvents").logProfileExit(o("WAWebProductCatalogContext").getProductCatalogSessionId($),ue,me==null?void 0:me.isProfileLinked,!!(me!=null&&me.coverPhoto))});var he=function(){L()},ye=function(){S&&S()},Ce=o("useWAWebChatLockRestriction").useChatLockRestriction({id:"locked-chat-info-"+((a=de==null?void 0:de.id.toString())!=null?a:"unknown"),condition:de!=null?de:"bypass",onPromptFailure:S?ye:he,entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_INFO,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.CHAT_INFO,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_INFO});if(!Ce)return null;var be=function(){T(o("WAWebStateUtils").unproxy(p))},ve=function(){var e=o("WAWebChatCollection").ChatCollection.assertGet(N);o("WAWebCmd").Cmd.deleteOrExitChatFromEntryPoint(e,12)},Se=function(t){o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.resyncPicturesByWid([N]);var e=p.getProfilePicThumb();if(!le.current&&!r("WAWebWid").isPSA(N)||e.imgFull===void 0){o("WAWebToastManager").ToastManager.open(_.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Sin foto del perfil")}));return}var n=t.target,a=function(t){t(n)};o("WAWebModalManager").ModalManager.openMedia(_.jsx(r("WAWebPhotoViewerModal.react"),{contact:p,profilePicThumb:e,animateBorderRadius:!0,getZoomNode:a}),{transition:"profile-viewer",uim:x})},Re=function(){le.current=!0},Le=function(t){o("WAWebUtilsLogQplEvents").qplStartProductView("ContactInfo"),k(t)},Ee=function(){return!(!p||!F||!me||!Y||me.isCatalogDisabledDueToMetaLinking)},ke=function(t){var e=Math.floor(100*(1+t.currentTarget.scrollTop/t.currentTarget.offsetHeight));e>ue&&ce(e)},Ie=O?null:_.jsxs(_.Fragment,{children:[_.jsx(r("WAWebContactInfoCommonGroupsSection.react"),{contact:p,onClose:he,flatListController:ie.current}),_.jsx(r("WAWebGroupInfoSeparator.react"),{})]}),Te=null;m.onMediaGallery&&de&&(Te=_.jsx(r("WAWebChatInfoMediaSection.react"),{chat:de,onMediaGallery:m.onMediaGallery,threadId:m.threadId}));var De;!r("gkx")("26258")&&n("cr:6008")&&(De=_.jsx(n("cr:6008"),{chat:de,contact:p,isRefresh:!0}));var xe=null;Ee()&&(xe=_.jsx(v,{contact:p,catalogContext:o("WAWebProductCatalogContext").getProductCatalogContext($),onProductDetail:Le,onProductCatalog:E}));var $e=de&&de.mute.canMute()?_.jsx(r("WAWebMuteRow.react"),{chat:de,mute:de.mute}):null,Pe=r("WAWebEnvironment").isWindows&&de&&m.onNotificationSettings&&n("cr:7210")?_.jsx(n("cr:7210"),{onClick:m.onNotificationSettings,chat:de,testid:void 0}):null,Ne=F&&de&&de.mute.canMute()?_.jsx(r("WAWebStopMessagesRow.react"),{contact:o("WAWebStateUtils").unproxy(p),chat:o("WAWebStateUtils").unproxy(de),isRefresh:!0}):null,Me=o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?_.jsx(r("WAWebChatInfoWallpaperRow.react"),{onWallpaperClick:D}):null,we=ae&&o("WAWebABPropsSaga").getIsSagaV1Enabled()?_.jsx(r("WAWebContactInfoSagaSection.react"),{}):null,Ae;m.onStarred&&(Ae=_.jsx(r("WAWebContactInfoMessagesSection.react"),{onStarred:m.onStarred}));var Fe;if(de&&(de.hasKeptMsgs()||o("WAWebChatEphemerality").isEphemeralSettingOn(de))){var Oe=_.jsx(o("WAWebText.react").WAWebTextTitle,{as:"span",children:s._(/*BTDS*/"Mensajes conservados")}),Be=_.jsx(o("WAWebKeepRefreshedIcon.react").KeepRefreshedIcon,{}),We={testid:"block-kept-messages",onClick:m.onKept,icon:Be,title:Oe};Fe=_.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-kept-messages",xstyle:o("WAWebUISpacing").uiPadding.horiz0,children:_.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,babelHelpers.extends({},We))})}var qe=de&&o("WAWebChatEphemerality").shouldShowEphemeralSetting(de)?_.jsx(o("WAWebEphemeralSettingRow.react").EphemeralSettingRow,{onClick:m.onEphemeral,chat:de,testid:void 0}):null,Ue=de&&o("WAWebLimitSharingUIUtils").isLimitSharingSettingVisible(de)?_.jsx(r("WAWebLimitSharingSettingRow.react"),{onClick:function(){return m.onLimitSharing==null?void 0:m.onLimitSharing()},chat:de,testid:void 0}):null,Ve=null;N.isRegularUser()&&!pe?Ve=_.jsx(r("WAWebContactInfoEncryptionSection"),{contactId:N,onVerificationClick:be}):r("WAWebWid").isPSA(N)&&(Ve=_.jsx(r("WAWebContactInfoWaChatSecuritySection"),{}));var He=N.isLid()&&K==null&&!o("WAWebUsernameGatingUtils").usernameDisplayedEnabled(),Ge=p.isUsernameContact,ze=o("WAWebFrontendContactGetters").getIsMyContact(p)&&!Ge,je=o("WAWebUsernameGatingUtils").usernameDisplayedEnabled()&&(F||ze),Ke=N.isLid()&&(de==null?void 0:de.lidOriginType)!==o("WAWebUsernameTypes").LidOriginType.GENERAL&&!o("WAWebUserPrefsPhoneNumberHidingThreadPromotionMigration").hasPhoneNumberHidingThreadPromotionMigrationStarted()&&!o("WAWebUsernameGatingUtils").usernameDisplayedEnabled(),Qe=de&&Ke?_.jsx(o("WAWebChatInfoPhoneNumberVisibilityIndicator.react").PhoneNumberVisibilityIndicator1On1,{chat:de}):null,Xe=F&&de&&o("WAWebMmSignalSharingExpirationWindowUtils").isMmSignalSharingUserDisclosedInCollectionWindow(de.mmSignalSharingExpirationWindow)?_.jsx(r("WAWebMmSignalSharingDisclosureRow.react"),{chat:de,isRefresh:!0}):null,Ye,Je=o("WAWebBizGatingUtils").isUpdatedConsumerDisclosureUiRowEnabled()||o("WAWebBizGatingUtils").isUpdatedConsumerDisclosureUiIndiaEnabled()||o("WAWebBizGatingUtils").isUpdatedConsumerDisclosureUiBrazilEnabled();Je?r("WAWebODS").incr("web.contact_info_drawer.is_updated_ui.true"):r("WAWebODS").incr("web.contact_info_drawer.is_updated_ui.false"),_e?Ye=!Je||fe?_.jsx(r("WAWebContactInfoBizBot1pSection.react"),{}):null:pe&&(Ye=_.jsx(r("WAWebContactInfoBizBot3pSection.react"),{}));var Ze=_.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{xstyle:[o("WAWebCommonCTWAConsumerTransparency").shouldShowROWConsumerDisclosure()&&C.lastSectionRow,[o("WAWebUISpacing").uiPadding.horiz0,o("WAWebUISpacing").uiMargin.bottom0]],children:[Pe||$e,Ne,we,qe,Ue,Me,Je?null:[Ye,Ve],Qe,Xe]}),et=de!=null&&o("WAWebCommonCTWAConsumerTransparency").shouldShowConsumerTransparencyDisclosure(de)&&o("WAWebCommonCTWAConsumerTransparency").shouldShowROWConsumerDisclosure();et?r("WAWebODS").incr("web.contact_info_drawer.show_updated_ads_and_ai_disclosure.true"):r("WAWebODS").incr("web.contact_info_drawer.show_updated_ads_and_ai_disclosure.false");var tt=et||Je?_.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{xstyle:[C.lastSectionRow,[o("WAWebUISpacing").uiPadding.horiz0,o("WAWebUISpacing").uiMargin.bottom0]],children:[Je?Ve:null,et?_.jsx(r("WAWebContactInfoDisclosuresSectionRow.react"),{}):null,Je?Ye:null]}):null,nt=!F,rt=nt||oe||ae||N.isBot()||pe?null:_.jsx(r("WAWebBusinessAboutSection.react"),{contact:o("WAWebStateUtils").unproxy(p)}),ot=null;N.isBot()?ot=_.jsx(r("WAWebBotInfoAboutSection.react"),{contact:o("WAWebStateUtils").unproxy(p)}):nt&&(ot=_.jsx(r("WAWebContactInfoAboutSection"),{contact:o("WAWebStateUtils").unproxy(p)}));var at=null;pe&&me&&(at=_.jsx(r("WAWebBizBot3pInfoAboutSection.react"),{businessProfile:o("WAWebStateUtils").unproxy(me)}));var it=null;o("WAWebBotGating").isBizBot3pEnabled()&&me&&(it=_.jsx(r("WAWebBizBotCommandsSection.react"),{businessProfile:o("WAWebStateUtils").unproxy(me)}));var lt=function(){I==null||I(p)},st=F&&me?_.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"contact-info-drawer-business-top-card",children:_.jsx(r("WAWebBusinessTopCard.react"),{contact:p,onProfilePicLoad:Re,onProfilePicClick:Se,businessProfile:o("WAWebStateUtils").unproxy(me),onProductCatalog:E,displayRequestPhoneNumber:He,onSaveContact:lt,sourceChat:m.sourceGroupChatOrNewsletter})}):_.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"contact-info-drawer-top-card",children:_.jsx(r("WAWebContactInfoTopCard.react"),{contact:p,onDetailImageLoad:Re,onDetailImageClick:Se,isMessageYourselfChat:ge,displayRequestPhoneNumber:He,onSearchMsgs:m.onSearchMsgs,onSaveContact:lt,sourceChat:m.sourceGroupChatOrNewsletter})}),ut,ct,dt=null,mt=void 0;if(F&&me){var pt;dt=N.isBot()?null:_.jsx(r("WAWebBusinessInfo.react"),{businessProfile:o("WAWebStateUtils").unproxy(me),showDescription:!pe}),ut=!oe&&!ae?_.jsx(r("WAWebBusinessAccountBanner.react"),{contact:p}):null,((pt=j==null?void 0:j.length)!=null?pt:0)>0&&o("WAWebBizGatingUtils").canDisplayLabel()&&(ct=_.jsx(r("WAWebDrawerSection.react"),{theme:"padding",children:_.jsx(r("WAWebLabelsInfoDrawerLabelWell.react"),{labels:j,theme:"standalone"})})),mt=ke}var _t={title:s._(/*BTDS*/"Info. del contacto"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,rtlFixIfOnDarwin:!0,focusBackOrCancel:!0},ft;S?ft=babelHelpers.extends({onBack:ye},_t):ft=babelHelpers.extends({onCancel:he},_t);var gt;me&&me.isProfileLinked===!0&&o("WAWebBizGatingUtils").bizLinkedAccountsEnabled()&&o("WAWebBizGatingUtils").canViewBizLinkedAccounts()&&(gt=_.jsx(r("WAWebContactInfoLinkedSocialAccounts.react"),{businessProfile:o("WAWebStateUtils").unproxy(me),rowTheme:"linked-account-consumer"}));var ht;if(o("WAWebContactUtils").canSaveAsMyContact(p.id)&&(ze||Ge&&o("WAWebUsernameGatingUtils").usernameContactUIEnabled())&&o("WAWebContactManagementGating").contactManagementEnabled()){var yt=s._(/*BTDS*/"Editar contacto");ht=Q?_.jsx(r("WDSMenuBarItem.react"),{onClick:lt,title:yt,testid:void 0,icon:o("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon}):_.jsx(o("WAWebClickable.react").Clickable,{dataTestId:"btn-save-contact",onClick:lt,title:yt,ariaLabel:yt,xstyle:C.drawerHeaderIconContainer,children:_.jsx(o("WAWebPencilRefreshedIcon.react").PencilRefreshedIcon,{iconXstyle:C.drawerHeaderIcon})})}return _.jsxs(r("WAWebDrawer.react"),{ref:d,theme:"striped",testid:void 0,tsNavigationData:b,children:[_.jsx(o("WAWebDrawerHeader.react").DrawerHeader,babelHelpers.extends({},ft,{testid:void 0,children:ht})),_.jsx(r("WAWebDrawerBody.react"),{flatListControllers:[ie.current],onScroll:mt,children:_.jsxs("section",{className:"x1c4vz4f x2lah0s xdl72j9 x1w3bhph",children:[st,ut,de?_.jsx(r("WAWebBusinessContactDisclosureSection.react"),{chat:de}):null,at,it,ct,xe,dt,gt,je&&_.jsx(r("WAWebContactInfoPhoneNumberSection.react"),{contact:p}),ot,Te&&_.jsx(r("WAWebGroupInfoSeparator.react"),{}),Te,_.jsx(r("WAWebGroupInfoSeparator.react"),{}),Ae,Fe,Ze,tt,_.jsx(r("WAWebGroupInfoSeparator.react"),{}),rt,De,!ge&&Ie,de&&de.canToggleFavorite()&&o("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled()&&_.jsx(r("WAWebChatInfoFavoritesSection.react"),{chat:de}),de&&o("WAWebListsGatingUtils").isListsEnabled()&&_.jsx(r("WAWebChatInfoListsSection.react"),{chat:de}),!ge&&_.jsx(r("WAWebContactInfoIntegritySection.react"),{contact:p}),_.jsx(R,{chatId:N,handleClick:ve,isRefresh:!0})]})})]},"contact-info-modal")}S.displayName=S.name+" [from "+i.id+"]";function R(e){var t=e.chatId,n=e.handleClick,a=e.isRefresh,i=y(function(){return o("WAWebChatCollection").ChatCollection.get(t)!=null}),l=i[0],u=i[1];if(o("useWAWebListener").useListener(o("WAWebChatCollection").ChatCollection,"remove",function(e){e.id.equals(t)&&u(!1)}),!l)return null;var c="li-delete-chat",d=s._(/*BTDS*/"Eliminar chat");return a===!0?_.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerButtonsSection,{children:_.jsx("div",{className:"x1280gxy",children:_.jsx(r("WAWebDrawerButtonRefreshed.react"),{testid:void 0,icon:_.jsx(o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}),danger:!0,onClick:n,children:d})})}):_.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerButtonsSection,{children:_.jsx(o("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,icon:_.jsx(o("WAWebDeleteIcon.react").DeleteIcon,{}),color:"danger",onClick:n,theme:"chat-info",children:d})})}R.displayName=R.name+" [from "+i.id+"]",l.default=S}),226); __d("WAWebDeltaArrow.react",["WAWebArrowForwardIcon.react","WAWebL10N","WAWebNewsletterMetricUtils","WAWebSvgComponentBase","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react"));function u(e){var t=r("WAWebL10N").isRTL();return{transform:"rotate("+(t?e:-e)+"deg) scale("+(t?-1:1)+")"}}function c(e){var t=e.delta,n=e.size;if(o("WAWebNewsletterMetricUtils").isDeltaValueZero(t)||t===o("WAWebNewsletterMetricUtils").DELTA_INFINITE)return null;var r=t>0,a=r?45:-45;return s.jsx(o("WAWebArrowForwardIcon.react").ArrowForwardIcon,{height:n,width:n,style:u(a),DEPRECATED_color:r?o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SUCCESS:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.CRITICAL})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebDeltaText.react",["WAWebL10N","WAWebNewsletterMetricUtils","WAWebText.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react"));function u(e){return o("WAWebNewsletterMetricUtils").isDeltaValueZero(e)?"secondary":e>0?"success":"critical"}function c(e){return Math.abs(e)>=100?r("WAWebL10N").d(e,void 0,{signDisplay:"exceptZero",style:"percent"}):r("WAWebL10N").n(e,void 0,{signDisplay:"exceptZero",style:"percent",maximumSignificantDigits:3,trailingZeroDisplay:"stripIfInteger"})}function d(e){var t=e.delta,n=e.size,r=e.testid;if(t===o("WAWebNewsletterMetricUtils").DELTA_INFINITE)return null;var a=n==="small"?o("WAWebText.react").WAWebTextMuted:o("WAWebText.react").WAWebTextTitle;return s.jsx(a,{testid:void 0,color:u(t),children:c(t)})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMessageGallery.react",["WAAbortError","WAWebChatMessageSearch","WAWebCmd","WAWebDisplayType","WAWebEmptyState.react","WAWebFlatListLoadingSpinnerItem.react","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebHistorySyncComponents.react","WAWebMediaHubEmptyGalleryEntryPoint.react","WAWebMediaHubFooterEntryPoint.react","WAWebMediaHubGating","WAWebStarredMsg.react","WAWebStateUtils","asyncToGeneratorRuntime","react","useMergeRefs","useWAWebForceUpdate","useWAWebListener","useWAWebMeasure","useWAWebThrottledCallback","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useCallback,m=u.useEffect,p=u.useRef,_=u.useState;function f(e){"use no forget";var t=e.chat,a=e.emptyText,i=e.filterMessages,l=e.getHasBefore,s=e.getQueryBefore,u=e.messageElements,f=e.msgsCollection,g=e.msgsCollectionUpdateEvents,h=e.onMessageSelect,y=e.onProductDetail,C=e.queryCollection,b=e.scrollOffset,v=b===void 0?0:b,S=e.selectable,R=e.selectedMessages,L=e.setScrollOffset,E=e.tabName,k=e.testid,I=e.threadId,T=l(),D=s(),x=p(null),$=r("useWAWebUnmountSignal")(),P=r("useWAWebThrottledCallback")(function(e){T&&C(e)},100),N=_(function(){return f.toArray()}),M=N[0],w=N[1],A=r("useWAWebThrottledCallback")(function(e){var t=e.scrollHeight-e.clientHeight-e.scrollTop,n=t1,_=function(){return d.pop()};m=p?s.jsx(r("WAWebGroupPastParticipantSearch.react"),{chat:t,onBack:_,onContactInfo:a}):s.jsx(r("WAWebGroupPastParticipantSearch.react"),{chat:t,onClose:_,onContactInfo:a});break}}return s.jsx(c,{flow:d,children:m})}d.displayName=d.name+" [from "+i.id+"]",l.ParticipantsFlowStep=u,l.getOneToOneContact=c,l.GroupParticipantsFlow=d}),98); __d("WAWebGroupPastParticipant.react",["fbt","WAWebBizGatingUtils","WAWebCellFrame.react","WAWebClock","WAWebContactGetters","WAWebDetailImage.react","WAWebElevatedPushNamesFlag","WAWebFrontendContactGetters","WAWebLeaveReasonType","WAWebName.react","WAWebUserPrefsMeUser","react","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.elevatedPushNamesEnabled,n=t===void 0?!1:t,a=e.onClick,i=e.participant,l=i.contact,s=o("useWAWebContactValues").useContactValues(l.id,[o("WAWebContactGetters").getId,o("WAWebContactGetters").getShowBusinessCheckmarkAsPrimary,o("WAWebContactGetters").getName,o("WAWebContactGetters").getPushname,o("WAWebContactGetters").getNotifyName,o("WAWebFrontendContactGetters").getFormattedName,o("WAWebFrontendContactGetters").getFormattedUsernameOrPhone]),c=s[0],m=s[1],p=s[2],_=s[3],f=s[4],g=s[5],h=s[6],y=u.jsx(o("WAWebName.react").Name,{contact:l,showBusinessCheckmark:m,showLabelIcon:o("WAWebBizGatingUtils").canDisplayLabel(),titlify:!0,ellipsify:!0,you:!0,showNotifyName:n,elevatedPushNamesEnabled:n}),C=o("WAWebClock").Clock.pastParticipantOnDateAtTime(i.leaveTs,d(i)),b=o("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(l)&&n?h:null;return u.jsx(r("WAWebCellFrame.react"),{image:u.jsx(o("WAWebDetailImage.react").DetailImage,{id:c}),primary:y,secondary:C,secondaryDetail:b,onClick:a})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.id.equals(o("WAWebUserPrefsMeUser").getMePnUserOrThrow());return e.leaveReason===o("WAWebLeaveReasonType").LeaveReason.Left?t?s._(/*BTDS*/"Te fuiste"):s._(/*BTDS*/"Se fue"):t?s._(/*BTDS*/"Te quitaron"):s._(/*BTDS*/"Usuario quitado")}l.default=c}),226); __d("WAWebGroupPastParticipantSearch.react",["fbt","WALogger","WAWebElevatedPushNamesFlag","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlatList.react","WAWebFlex.react","WAWebGroupParticipantsFlow.react","WAWebGroupPastParticipant.react","WAWebL10NAccentFold","WAWebModalManager","WAWebModalsListModal.react","WAWebPhoneNumberSearch","WAWebSectionHeader.react","WAWebUISpacing","WAWebUserPrefsMeUser","react","useWAWebDebouncedSearch","useWAWebEventTargetValue"],(function(t,n,r,o,a,i,l,s){var e,u=["ref"],c,d=c||(c=r("react")),m={HEADER:"HEADER",ROW:"ROW",DISCLAIMER:"DISCLAIMER"},p=o("WAWebModalsListModal.react").ListModalFactory();function _(e){var t,n=e.ref,a=babelHelpers.objectWithoutPropertiesLoose(e,u),i=a.chat,l=a.onBack,c=a.onClose,_=a.onContactInfo,g=(t=i.groupMetadata)==null?void 0:t.pastParticipants,h=r("useWAWebDebouncedSearch")(),C=h[0],b=h[1],v=r("useWAWebEventTargetValue")(g,["buld_add","bulk_remove","reset"],function(){var e,t=o("WAWebL10NAccentFold").accentFold(C),n=o("WAWebPhoneNumberSearch").numberSearch(t),r=(e=g==null?void 0:g.getValidRecords().filter(function(e){var r=!t||e.contact.searchMatchExact(t,n);return!o("WAWebUserPrefsMeUser").isMeAccount(e.id)&&r}))!=null?e:[];if(!r.length)return[];var a=[];return a.push({type:m.HEADER,header:s._(/*BTDS*/"Miembros anteriores"),itemKey:"list_header"}),r.forEach(function(e,t){return a.push({type:m.ROW,participant:e,itemKey:e.id.toString()+"_"+t})}),a.push({type:m.DISCLAIMER,itemKey:"list_disclaimer"}),a},[C]),S=function(t){if(_){var e=o("WAWebGroupParticipantsFlow.react").getOneToOneContact(t.participant.contact);e&&(o("WAWebModalManager").ModalManager.close(),_(e))}};return d.jsx(p,{ref:n,title:s._(/*BTDS*/"Busca miembros anteriores"),data:v,renderItem:function(t){return d.jsx(f,{data:t,elevatedPushNamesEnabled:o("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(i),onClick:t.type===m.ROW?function(){return S(t)}:void 0})},emptyState:d.jsx(y,{}),onSearch:b,searchPlaceholder:s._(/*BTDS*/"Buscar contactos"),onBack:l,onCancel:c})}_.displayName=_.name+" [from "+i.id+"]";function f(t){var n,a=t.data,i=t.elevatedPushNamesEnabled,l=t.onClick;switch(a.type){case m.HEADER:return d.jsx(r("WAWebSectionHeader.react"),{header:(n=a.header)!=null?n:"",uppercase:!1});case m.ROW:return d.jsx(r("WAWebGroupPastParticipant.react"),{participant:a.participant,elevatedPushNamesEnabled:i,onClick:l});case m.DISCLAIMER:return d.jsx(h,{});default:throw o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebGroupPastParticipantSearch"]))),new(o("WAWebFlatList.react")).UnknownDataError(a)}}f.displayName=f.name+" [from "+i.id+"]";var g={row:{height:"xy75621",backgroundColor:"x1280gxy",$$css:!0},disclaimer:{fontSize:"x1f6kntn",color:"xhslqc4",$$css:!0},empty:{fontSize:"x1jchvi3",color:"x181ptb6",$$css:!0}};function h(){return d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[g.row,g.disclaimer,o("WAWebUISpacing").uiPadding.horiz15],align:"center",justify:"center",children:d.jsx("span",{children:s._(/*BTDS*/"Personas que salieron o se quitaron en los \u00faltimos 60 d\u00edas. {=m2}",[s._implicitParam("=m2",d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getHowToExitAndDeleteGroupsFaq(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))])})})}h.displayName=h.name+" [from "+i.id+"]";function y(){return d.jsxs(d.Fragment,{children:[d.jsx(r("WAWebSectionHeader.react"),{header:s._(/*BTDS*/"Miembros anteriores"),uppercase:!1}),d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[g.row,g.empty],align:"center",justify:"center",children:d.jsx("span",{children:r("WAWebFbtCommon")("No results found")})}),d.jsx(h,{})]})}y.displayName=y.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebGroupInfoParticipantsSection.react",["fbt","WALogger","WANullthrows","WAWebCellFrame.react","WAWebCellV2.react","WAWebChatGroupUtils","WAWebChatInfoDrawerSection.react","WAWebChatInfoExpandButton.react","WAWebChatParticipant.react","WAWebChatParticipantUtils.react","WAWebClearRefreshedIcon.react","WAWebConfirmPopup.react","WAWebContactCollection","WAWebContactGetters","WAWebDomScroll","WAWebDropdownItem.react","WAWebElevatedPushNamesFlag","WAWebEmojiText.react","WAWebFlatList.react","WAWebFlex.react","WAWebFrontendContactGetters","WAWebGroupGatingUtils","WAWebGroupMemberLinkMode","WAWebGroupMemberTagUpdateLogger","WAWebGroupParticipantsFlow.react","WAWebGroupType","WAWebLinkRefreshedIcon.react","WAWebListButton.react","WAWebMemberLabelCreateUpdateModal.react","WAWebMemberLabelsFrontendUtils","WAWebModalManager","WAWebModifyParticipantsGroupAction","WAWebNavigableFlatList.react","WAWebNumbersIcon.react","WAWebOpenCommunityParticipantDemoteConfirmation","WAWebOpenCommunityParticipantPromoteConfirmation","WAWebParticipantListUtils","WAWebPendingParticipantsIcon.react","WAWebPersonAddFilledRefreshedIcon.react","WAWebPersonShieldCheckIcon.react","WAWebPersonShieldRemoveIcon.react","WAWebRemoveFromCommunityConfirmationPopup.react","WAWebRoundShape.react","WAWebSearchRefreshedIcon.react","WAWebSingleSelection","WAWebSvgComponentBase","WAWebTag.react","WAWebText.react","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUseShowPastParticipants","WAWebUserPrefsMeUser","WAWebWid","WDSIconIcEdit.react","react","useLazyRef","useWAWebEventTargetValue","useWAWebForceUpdate","useWAWebGroupParticipantStatus","useWAWebListener","useWAWebModelValues"],(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.useImperativeHandle,f=d.useMemo,g=d.useRef,h=d.useState,y=20,C={pendingParticipantsIcon:{backgroundColor:"xp0d2wq",color:"xhslqc4",$$css:!0},iconContainerRefreshed:{height:"x1vqgdyp",width:"x100vrsf",$$css:!0},flatListRefreshed:{backgroundColor:"xjbqb8w",$$css:!0}};function b(t){var n=t.active,a=t.contextMenu,i=t.data,l=t.elevatedPushNamesEnabled,s=l===void 0?!1:l,u=t.handleParticipantClick,c=t.handleParticipantMenu,d=t.menuEnabled,p=t.participants,_=t.showMemberLabel,f=_===void 0?!1:_,g=t.sourceChat,h=i.id,y=p.get(h);if(!y)throw o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebGroupInfoParticipantsSection"]))),new(o("WAWebFlatList.react")).UnknownDataError(i);var C=y.contact,b=!!a&&r("WAWebWid").equals(C.id,a.contactId);return m.jsx(r("WAWebChatParticipant.react"),{active:n,sourceChat:g,contact:C,participant:y,onClick:function(t){var e=o("WAWebChatGroupUtils").getOneToOneContactFromGroupContact(C.id,"group_info_participant_section_click");e!=null&&(u==null||u(t,o("WAWebContactCollection").ContactCollection.gadd(e)))},contextEnabled:function(){return d(C)},contextMenu:b,onContext:function(t){return c(t,C)},theme:"refresh",showNotifyName:!0,waitIdle:!0,showStatusRingAroundProfilePhoto:!0,participantCollection:p,elevatedPushNamesEnabled:s,truncateName:!0,showMemberLabel:f},y.id.toString())}b.displayName=b.name+" [from "+i.id+"]";function v(e){"use no forget";var t,n=e.chat,a=e.flatListController,i=e.onAddParticipant,l=e.onGroupInviteLink,u=e.onOpenParticipantSearch,c=e.onParticipantClick,d=e.onPendingParticipants,v=e.onVerification,R=e.ref,L=e.scrollToParticipantList,E=o("useWAWebModelValues").useModelValues(r("WANullthrows")(n.groupMetadata),["support","size","id","membershipApprovalMode","membershipApprovalRequests","memberLinkMode","isUnnamed","isLidAddressingMode","participants","hasCapi"]),k=E.memberLinkMode,I=E.membershipApprovalMode,T=E.membershipApprovalRequests,D=o("WAWebMemberLabelsFrontendUtils").shouldShowMemberLabelForChat(n),x=r("useLazyRef")(function(){return new(r("WAWebSingleSelection"))([],function(e){return e.id.toString()})}),$=r("WANullthrows")(n.groupMetadata).participants,P=$.toArray();E.isLidAddressingMode!==!0&&(P=$.filter(function(e){var t=e.id;return o("WAWebUserPrefsMeUser").isMeAccount(t)||!t.isLid()}));var N=o("WAWebChatGroupUtils").getGroupParticipantsCount(E),M=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListener($,"bulk_add bulk_remove reset sort change:isAdmin change:isSuperAdmin",M);var w=h(!0),A=w[0],F=w[1],O=g(),B=h(),W=B[0],q=B[1],U=o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(n);p(function(){L&&O.current&&o("WAWebDomScroll").scrollIntoViewIfNeeded(O.current,!1)},[L]),_(R,function(){return{scrollIntoView:function(){var e;(e=O.current)==null||e.scrollIntoView()}}});var V=r("useWAWebGroupParticipantStatus")(E),H=V[0],G=V[1],z=r("useWAWebEventTargetValue")(T,["add","remove","reset"],function(){return T.length}),j=o("WAWebUseShowPastParticipants").useShowPastParticipants(n),K=$.iAmMember(),Q=$.iAmAdmin(),X=f(function(){var e,t=[],r=[];P.forEach(function(n){!K&&!n.isAdmin||(o("WAWebContactGetters").getIsMe(n.contact)?e=n:n.isAdmin?t.push(n):r.push(n))});var a=[];return e&&a.push(e),a=a.concat(t,r),S(P)&&A&&(a=a.slice(0,o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS)),x.current.init(a.map(function(e){return e.contact})),a.map(function(e){return{itemKey:e.id.toString(),id:e.id,height:o("WAWebChatParticipantUtils.react").getParticipantItemHeight({contact:e.contact,showMemberLabel:D,chat:n,groupMetadata:E})}})},[A,P]);if(E.isSuspendedOrTerminated())return null;var Y=o("WAWebSearchRefreshedIcon.react").SearchRefreshedIcon,J=m.jsx(Y,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY});J=m.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:C.iconContainerRefreshed,children:J});var Z;if(H&&!E.support){var ee=o("WAWebPersonAddFilledRefreshedIcon.react").PersonAddFilledRefreshedIcon,te=m.jsx(r("WAWebRoundShape.react"),{theme:"group-modal",children:m.jsx(ee,{directional:!0})}),ne=s._(/*BTDS*/"A\u00f1adir miembro");Z=m.jsx(r("WAWebCellV2.react"),{testid:void 0,detailLeft:te,primary:m.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:ne}),onClick:i,size:"medium",isRefresh:!0})}var re;if(!E.support&&l&&(Q||K&&k===o("WAWebGroupMemberLinkMode").MemberLinkMode.ALL_MEMBER_LINK&&o("WAWebGroupGatingUtils").isAnyoneCanLinkToGroupsEnabled())){var oe=o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,ae=m.jsx(r("WAWebRoundShape.react"),{theme:"group-modal",children:m.jsx(oe,{})}),ie=s._(/*BTDS*/"Enlace de invitaci\u00f3n al grupo");re=m.jsx(r("WAWebCellV2.react"),{detailLeft:ae,primary:m.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{children:ie}),onClick:l,size:"medium",isRefresh:!0})}var le;I&&z>0&&(G||Q)&&(le=m.jsx(r("WAWebCellFrame.react"),{image:m.jsx(r("WAWebRoundShape.react"),{xstyle:C.pendingParticipantsIcon,theme:"compact",children:m.jsx(o("WAWebPendingParticipantsIcon.react").PendingParticipantsIcon,{})}),theme:"chat-info",primary:s._(/*BTDS*/"Solicitudes pendientes"),primaryDetail:m.jsx(o("WAWebTag.react").Tag,{round:!0,children:z}),onClick:d,focusable:!0}));var se;if(S(P)&&A){var ue=P.length<=y,ce=P.length-o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS,de=function(){ue?F(!1):u(o("WAWebGroupParticipantsFlow.react").ParticipantsFlowStep.Participants)};se=m.jsx(r("WAWebChatInfoExpandButton.react"),{numMore:ce,onClick:de,viewAll:!ue})}else if(j){var me=function(){u(o("WAWebGroupParticipantsFlow.react").ParticipantsFlowStep.PastParticipants)};se=m.jsx(o("WAWebListButton.react").ListButton,{onClick:me,testid:void 0,children:s._(/*BTDS*/"Ver miembros anteriores")})}var pe=function(t){var e=$.get(t.id);if(!e)return!1;var r=o("WAWebMemberLabelsFrontendUtils").canEditMemberLabel(t,n);return $.canPromote(e)||$.canDemote(e)||$.canRemove(e)||$.canVerifyIdentity(e)||r},_e=function(t,a){var e=$.assertGet(a.id);if(pe(a)){var i=[],l=n.contact.name;if(E.isUnnamed&&(l=o("WAWebParticipantListUtils").calculateUnnamedGroupParticipantsList(E).toLocaleString()),$.canPromote(e)){var u=function(){var t=s._(/*BTDS*/"\u00bfDeseas designar a {member} como admin. del grupo \"{subject}\"?",[s._param("member",o("WAWebFrontendContactGetters").getFormattedName(e.contact)),s._param("subject",l)]),r=function(r){if(e.isAdmin){r&&o("WAWebModalManager").ModalManager.close();return}e.contact.pendingAction++,o("WAWebModifyParticipantsGroupAction").promoteParticipants(n,[e]).finally(function(){e.contact.pendingAction--}),r&&o("WAWebModalManager").ModalManager.close()};o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return r(!0)},okText:s._(/*BTDS*/"Designar como admin. del grupo"),onCancel:function(){return o("WAWebModalManager").ModalManager.close()},cancelText:s._(/*BTDS*/"Cancelar"),children:m.jsx(o("WAWebEmojiText.react").EmojiText,{text:t})}))},c=m.jsx(o("WAWebPersonShieldCheckIcon.react").PersonShieldCheckIcon,{}),d;if(U){var p;d=s._(/*BTDS*/"Designar como admin.");var _=(p=n.groupMetadata)==null?void 0:p.getParentGroupChat();i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){o("WAWebOpenCommunityParticipantPromoteConfirmation").openCommunityParticipantPromoteConfirmation(_,e,$,e.contact)},icon:c,children:d},"promote"))}else d=s._(/*BTDS*/"Designar como admin. del grupo"),i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:u,icon:c,children:d},"promote"))}if($.canRemove(e)){var f=function(){var t,i=(t=n.groupMetadata)==null?void 0:t.getParentGroupChat();if(U===!0&&i!=null){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebRemoveFromCommunityConfirmationPopup.react"),{contact:a,parentGroupChat:i}));return}var u=s._(/*BTDS*/"\u00bfDeseas quitar a {member} del grupo \"{subject}\"?",[s._param("member",o("WAWebFrontendContactGetters").getFormattedName(e.contact)),s._param("subject",l)]),c=function(r){e.contact.pendingAction++,o("WAWebModifyParticipantsGroupAction").removeParticipants(n,[e]).finally(function(){e.contact.pendingAction--}),r&&o("WAWebModalManager").ModalManager.close()};o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return c(!0)},okText:s._(/*BTDS*/"Quitar"),onCancel:function(){return o("WAWebModalManager").ModalManager.close()},cancelText:s._(/*BTDS*/"Cancelar"),children:m.jsx(o("WAWebEmojiText.react").EmojiText,{text:u})}))},g;U===!0?g=s._(/*BTDS*/"Quitar de la comunidad"):g=s._(/*BTDS*/"Quitar"),i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:f,icon:m.jsx(o("WAWebClearRefreshedIcon.react").ClearRefreshedIcon,{}),children:g},"remove"))}if($.canDemote(e)){var h=function(){e.isAdmin&&(e.contact.pendingAction++,o("WAWebModifyParticipantsGroupAction").demoteParticipants(n,[e]).finally(function(){e.contact.pendingAction--}))},y=s._(/*BTDS*/"Descartar como admin."),C=m.jsx(o("WAWebPersonShieldRemoveIcon.react").PersonShieldRemoveIcon,{});if(U){var b,S=(b=n.groupMetadata)==null?void 0:b.getParentGroupChat();i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:function(){return o("WAWebOpenCommunityParticipantDemoteConfirmation").openCommunityParticipantDemoteConfirmation(e,S)},icon:C,children:y},"demote-admin"))}else i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:h,icon:C,children:y},"demote-admin"))}if($.canVerifyIdentity(e)){var R=function(){v&&v(e.contact)},L=s._(/*BTDS*/"Confirmar c\u00f3digo de seguridad");i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:R,icon:m.jsx(o("WAWebNumbersIcon.react").NumbersIcon,{}),children:L},"verify-identity"))}if(o("WAWebMemberLabelsFrontendUtils").canEditMemberLabel(a,n)){var k=function(){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebMemberLabelCreateUpdateModal.react").MemberLabelCreateUpdateModal,{chat:n,entryPoint:o("WAWebGroupMemberTagUpdateLogger").GroupMemberTagUpdateLogger.ENTRY_POINT.MEMBER_LIST}))};i.push(m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:k,icon:m.jsx(r("WDSIconIcEdit.react"),{}),children:s._(/*BTDS*/"Edita la etiqueta del miembro")},"edit-member-label"))}q({contactId:a.id,menu:i,anchor:t.anchor,event:t.event})}},fe=function(){u(o("WAWebGroupParticipantsFlow.react").ParticipantsFlowStep.Participants)},ge=o("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(n),he=((t=n.groupMetadata)==null?void 0:t.groupType)===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?N:$.length,ye=s._(/*BTDS*/"_j{\"*\":\"Lista de miembros: {group-participants} miembros\",\"_1\":\"Lista de miembros: 1 miembro\"}",[s._plural(he,"group-participants")]),Ce=s._(/*BTDS*/"_j{\"*\":\"{number} miembros\",\"_1\":\"1 miembro\"}",[s._plural(he,"number")]),be=s._(/*BTDS*/"{existing_visible_text}. Buscar miembros",[s._param("existing_visible_text",Ce)]),ve=$.length?m.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{theme:"refresh-new",ref:O,titleTestId:"section-participants",testid:void 0,title:Ce,"aria-label":be,titleXStyle:o("WAWebUISpacing").uiPadding.horiz20,titleOnClick:fe,subtitle:J,xstyle:o("WAWebUISpacing").uiPadding.all0,children:[Z,re,le,m.jsx(r("WAWebNavigableFlatList.react"),{ariaLabel:ye,flatListController:a,listData:X,xstyle:C.flatListRefreshed,onRenderItem:function(t){return m.jsx(b,{active:x.current,sourceChat:n,data:t,participants:$,handleParticipantClick:c,menuEnabled:pe,handleParticipantMenu:_e,contextMenu:W,elevatedPushNamesEnabled:ge,showMemberLabel:D})},selection:x.current,rotateList:!0}),se]}):null,Se=function(){q(null)},Re;return W&&(Re=m.jsx(o("WAWebUimUie.react").UIE,{displayName:"ChatContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:Se,children:m.jsx(r("WAWebUimUieMenu.react"),{contextMenu:W})})),m.jsxs(m.Fragment,{children:[ve,Re]})}v.displayName=v.name+" [from "+i.id+"]";function S(e){return e.length>o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS_IN_COLLAPSED_LIST}l.default=v}),226); __d("WAWebGroupInfoPendingParticipantsSection.react",["fbt","WALogger","WANullthrows","WAWebBoolFunc","WAWebChatInfoDrawerSection.react","WAWebChatInfoExpandButton.react","WAWebChatParticipant.react","WAWebConfirmPopup.react","WAWebDropdownItem.react","WAWebEmojiText.react","WAWebFlatList.react","WAWebFrontendContactGetters","WAWebLidMigrationUtils","WAWebModalManager","WAWebNavigableFlatList.react","WAWebSingleSelection","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","asyncToGeneratorRuntime","react","useLazyRef","useWAWebAsync","useWAWebForceUpdate","useWAWebListener"],(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.useMemo,_=d.useState;function f(t){var n=t.active,a=t.data,i=t.groupMetadata,l=t.onContextMenu,u=t.pendingParticipants,c=a.id,d=u.get(c);if(!d)throw o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["UnknownDataError: invoked from WAWebGroupInfoPendingParticipantsSection"]))),new(o("WAWebFlatList.react")).UnknownDataError(a);var p=function(t){var e=function(){var e=function(){o("WAWebModalManager").ModalManager.close(),i.revokeGroupsV4AddInvite([d.id]).then(function(){o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Se restableci\u00f3 la invitaci\u00f3n")}))})};o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:e,okText:s._(/*BTDS*/"Restablecer enlace"),onCancel:o("WAWebModalManager").closeModalManager,cancelText:s._(/*BTDS*/"Cancelar"),children:m.jsx(o("WAWebEmojiText.react").EmojiText,{text:s._(/*BTDS*/"\u00bfDeseas restablecer la invitaci\u00f3n de {member}? Si restableces la invitaci\u00f3n, {member} no podr\u00e1 usarla para unirse a este grupo.",[s._param("member",o("WAWebFrontendContactGetters").getFormattedName(d.contact))])})}))},n=[m.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:e,children:s._(/*BTDS*/"Anular invitaci\u00f3n")},"promote")];l(n,t,d.contact)};return m.jsx(r("WAWebChatParticipant.react"),{active:n,contact:d.contact,participant:d,contextEnabled:o("WAWebBoolFunc").returnFalse,contextMenu:!0,onContext:p,theme:"refresh",showNotifyName:!0,isPendingParticipant:!0,waitIdle:!0,showStatusRingAroundProfilePhoto:!0},d.id.toString())}f.displayName=f.name+" [from "+i.id+"]";function g(e){"use no forget";var t,a,i=e.chat,l=e.flatListController,u=r("WANullthrows")(i.groupMetadata,"WAWebGroupInfoPendingParticipantsSection: Chat must have group metadata for group info section."),c=r("WANullthrows")((t=i.groupMetadata)==null?void 0:t.participants,"WAWebGroupInfoPendingParticipantsSection: Group metadata must have participants."),d=r("WANullthrows")((a=i.groupMetadata)==null?void 0:a.pendingParticipants,"WAWebGroupInfoPendingParticipantsSection: Group metadata must have pending participants."),g=d.toArray(),y=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListener(c,"change:isAdmin change:isSuperAdmin",y),o("useWAWebListener").useListener(d,"add remove reset",y);var C=_(h(d)),b=C[0],v=C[1],S=r("useLazyRef")(function(){return new(r("WAWebSingleSelection"))([],function(e){return e.id.toString()})}),R=_(),L=R[0],E=R[1];r("useWAWebAsync")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield u.queryGroupsV4PendingInvite(),v(h(u.pendingParticipants))}),[u]);var k=p(function(){var e=g;h(g)&&b&&(e=e.slice(0,o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS)),S.current.init(e.map(function(e){return e.contact}));var t=new Set,n=e.filter(function(e){var n,r=e.id,a=(n=o("WAWebLidMigrationUtils").toPn(r))==null?void 0:n.toString();return a!=null&&t.has(a)?!1:(t.add(a!=null?a:r.toString()),!0)});return n.map(function(e){return{itemKey:e.id.toString(),id:e.id,height:68}})},[b,g]);if(u.isSuspendedOrTerminated())return m.jsx(m.Fragment,{});var I=function(t,n,r){var e=n.type==="click"?void 0:n.target;E({contactId:r.id,menu:t,anchor:e,event:n.anchor?void 0:n})},T=s._(/*BTDS*/"_j{\"*\":\"Lista de miembros invitados: {group-participants} miembros\",\"4\":\"Lista de miembros invitados: {group-participants} miembro\",\"_1\":\"Lista de miembros invitados: 1 miembro\"}",[s._plural(d.length,"group-participants")]),D;d.length>0&&(D=m.jsx(r("WAWebNavigableFlatList.react"),{ariaLabel:T,flatListController:l,listData:k,onRenderItem:function(t){return m.jsx(f,{active:S.current,data:t,onContextMenu:I,pendingParticipants:d,groupMetadata:u})},selection:S.current,rotateList:!0}));var x;if(h(d)&&b){var $=d.length-o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS,P=function(){v(!1)};x=m.jsx(r("WAWebChatInfoExpandButton.react"),{numMore:$,onClick:P})}var N;c.iAmAdmin()&&d.length>0&&(N=m.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{xstyle:o("WAWebUISpacing").uiPadding.horiz0,titleXStyle:o("WAWebUISpacing").uiPadding.horiz20,titleTestId:"section-participants",testid:void 0,title:s._(/*BTDS*/"{number} invitados",[s._param("number",d.length)]),children:[D,x]}));var M=function(){E(null)},w;return L&&(w=m.jsx(o("WAWebUimUie.react").UIE,{displayName:"ChatContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:M,children:m.jsx(r("WAWebUimUieMenu.react"),{contextMenu:L})})),m.jsxs(m.Fragment,{children:[N,w]})}g.displayName=g.name+" [from "+i.id+"]";function h(e){return e.length>o("WAWebChatInfoDrawerSection.react").INFO_DRAWER_MAX_ROWS_IN_COLLAPSED_LIST}l.default=g}),226); __d("WAWebGroupInfoTopCard.react",["fbt","WAAbortError","WALogger","WANullthrows","WAPromiseRaceAbort","WAWebBizGatingUtils","WAWebChatGetters","WAWebConfirmPopup.react","WAWebDrawerSection.react","WAWebFbtCommon","WAWebGroupInfoPhoto.react","WAWebGroupInfoSubjectInput.react","WAWebGroupType","WAWebL10N","WAWebLabelsInfoDrawerLabelWell.react","WAWebModalManager","WAWebName.react","WAWebNoop","WAWebParticipantListUtils","WAWebSetSubjectGroupAction","WAWebUISpacing","WAWebUnstyledButton.react","WDSActionTile.react","WDSActionTileGroup.react","WDSFlex.stylex","WDSIconIcPersonAdd.react","WDSIconIcSearch.react","WDSText.react","asyncToGeneratorRuntime","react","stylex","useWAWebABPropConfigValue","useWAWebChatValues","useWAWebModelValues","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=u||(u=r("react")),m={participantCount:{color:"xo1mcw5",$$css:!0}};function p(e){var t,n,a=e.chat,i=e.focusGroupSubjectOnMount,l=e.onAddParticipant,u=e.onAdminSetting,p=e.onClickParticipantsCount,g=e.onSearchMsgs,h=e.showHiddenSubgroupIcon,y=o("useWAWebChatValues").useChatValues(a.id,[o("WAWebChatGetters").getLabels]),C=y[0],b=o("useWAWebModelValues").useOptionalModelValues(a.groupMetadata,["size","creation","groupType","participants","hiddenSubgroup"]),v=b==null?void 0:b.groupType,S=b==null?void 0:b.participants,R=(t=S==null?void 0:S.length)!=null?t:0,L=(n=b==null?void 0:b.size)!=null?n:0,E=S!=null&&S.iAmAdmin()?R:L,k=b==null?void 0:b.getParentGroupChat(),I=s._(/*BTDS*/"Grupo");v===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?I=s._(/*BTDS*/"Avisos"):k!=null&&((b==null?void 0:b.hiddenSubgroup)===!0?I=s._(/*BTDS*/"Grupo oculto en {community-name}",[s._param("community-name",k==null?void 0:k.formattedTitle)]):I=s._(/*BTDS*/"Grupo en {community-name}",[s._param("community-name",k==null?void 0:k.formattedTitle)]));var T=s._(/*BTDS*/"_j{\"*\":\"{number} miembros\",\"_1\":\"1 miembro\"}",[s._plural(v===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?E:R,"number")]),D=b!=null&&b.isSuspendedOrTerminated()?null:d.jsxs(d.Fragment,{children:[r("WAWebL10N").isRTL()?" - ":" \xB7 ",d.jsx(r("WAWebUnstyledButton.react"),{onClick:p,xstyle:m.participantCount,children:T})]});return d.jsx(r("WAWebDrawerSection.react"),{theme:"refresh-new",children:d.jsxs("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(o("WDSFlex.stylex").wdsFlex.flexColumnCenter),{children:[d.jsx(r("WAWebGroupInfoPhoto.react"),{chat:a,xstyle:o("WAWebUISpacing").uiMargin.bottom10,showAddIconOverlay:!0,showHiddenSubgroupIcon:h}),d.jsx(_,{chat:a,focusOnMount:i,xstyle:o("WAWebUISpacing").uiMargin.bottom6}),d.jsx("div",{"data-testid":void 0,className:"x1evy7pa x1kgmq87 x2b8uid",children:d.jsxs(r("WDSText.react"),{type:"Body1",colorName:"contentDeemphasized",selectable:!0,dir:"auto",children:[I," ",D]})}),o("WAWebBizGatingUtils").canDisplayLabel()&&d.jsx(r("WAWebLabelsInfoDrawerLabelWell.react"),{labels:C}),d.jsx(f,{groupMetadata:b,onAddParticipant:l,onSearchMsgs:g})]}))})}p.displayName=p.name+" [from "+i.id+"]";function _(t){var a=t.chat,i=t.focusOnMount,l=i===void 0?!1:i,u=t.xstyle,m=o("useWAWebModelValues").useModelValues(a.contact,["name"]),p=o("useWAWebModelValues").useModelValues(r("WANullthrows")(a.groupMetadata),["creation","restrict","support","isUnnamed","participants"]),_=r("useWAWebUnmountSignal")(),f=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n=t;n!==m.name&&(yield r("WAPromiseRaceAbort")(o("WAWebSetSubjectGroupAction").setGroupSubject(a,n),_).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).catch(function(t){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["group_info_drawer:onSetSubject failed"])))}))});return function(n){return t.apply(this,arguments)}})(),g=function(){o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return o("WAWebModalManager").ModalManager.close()},okText:r("WAWebFbtCommon")("OK"),children:s._(/*BTDS*/"Solo los administradores pueden editar la informaci\u00f3n del grupo")}))};if(!p.support)return p.isUnnamed?d.jsx(r("WAWebGroupInfoSubjectInput.react"),{subject:o("WAWebParticipantListUtils").calculateUnnamedGroupParticipantsList(p).toLocaleString(),onSave:f,editable:p.canSetSubject(),editRestrictionInfo:p.restrict?g:void 0,focusOnMount:l,xstyle:u}):d.jsx(r("WAWebGroupInfoSubjectInput.react"),{subject:m.name||a.formattedTitle,onSave:f,editable:p.canSetSubject(),editRestrictionInfo:p.restrict?g:void 0,focusOnMount:l,xstyle:u});var h=d.jsx(o("WAWebName.react").GroupName,{chat:a,groupMetadata:p,breakWord:!0,checkmarkLarge:!0});return d.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(u),{children:d.jsx(r("WDSText.react"),{colorName:"contentDefault",type:"Headline1",children:h})}))}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.groupMetadata,n=e.onAddParticipant,a=e.onSearchMsgs,i=o("useWAWebABPropConfigValue").useABPropConfigValue("waweb_chatinfo_refresh");if(i===!1)return null;var l=t==null?void 0:t.participants.canAdd(),u=l===!0?s._(/*BTDS*/"A\u00f1adir miembros"):s._(/*BTDS*/"No puedes a\u00f1adir miembros a este grupo");return d.jsx("div",{className:"xh8yej3 x1de0gy",children:d.jsxs(r("WDSActionTileGroup.react"),{children:[d.jsx(r("WDSActionTile.react"),{Icon:r("WDSIconIcPersonAdd.react"),tooltip:u,label:s._(/*BTDS*/"A\u00f1adir"),disabled:l!==!0,onPress:n},"add"),d.jsx(r("WDSActionTile.react"),{Icon:r("WDSIconIcSearch.react"),tooltip:s._(/*BTDS*/"Buscar mensajes"),onPress:a,label:s._(/*BTDS*/"Busca")},"search")]})})}f.displayName=f.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebGroupSupportSecurityDrawerSection.react",["fbt","WAWebChatInfoDrawerRow.react","WAWebLockRefreshedIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onClick,n=s._(/*BTDS*/"Seguridad"),r=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:n}),a=s._(/*BTDS*/"Haz clic para obtener informaci\u00f3n sobre la protecci\u00f3n de los mensajes y las llamadas."),i=u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowSecondaryTitleRefreshed,{title:a}),l=u.jsx(o("WAWebLockRefreshedIcon.react").LockRefreshedIcon,{});return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{icon:l,onClick:t,title:r,secondaryTitle:i})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebLimitSharingBlockedDueToAIGroup.react",["fbt","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebModalManager","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(){return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"Privacidad del chat avanzada y Meta AI"),okText:r("WAWebFbtCommon")("OK"),onOK:o("WAWebModalManager").closeModalManager,children:u.jsx(o("WAWebText.react").WAWebTextMuted,{testid:void 0,children:s._(/*BTDS*/"Meta AI est\u00e1 en este chat. Para activar la privacidad avanzada del chat, primero se debe quitar a Meta AI del chat en grupo.")})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebNotificationsSettingsRow.react",["fbt","WAWebChatGetters","WAWebChatInfoDrawerRow.react","WAWebClock","WAWebMuteGetters","WAWebMuteNotificationsRefreshedIcon.react","WAWebText.react","WAWebUnmuteNotificationsRefreshedIcon.react","react","useWAWebChatValues","useWAWebMuteValues"],(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.onClick,r=e.testid,a=o("useWAWebMuteValues").useMuteValues(t.id,[o("WAWebMuteGetters").getIsMuted]),i=a[0],l=o("useWAWebChatValues").useChatValues(t.id,[o("WAWebChatGetters").getMuteExpiration,o("WAWebChatGetters").getIsNewsletter]),c=l[0],d=l[1],m=i?u.jsx(o("WAWebMuteNotificationsRefreshedIcon.react").MuteNotificationsRefreshedIcon,{}):u.jsx(o("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{}),p;if(i&&c&&!d){var _=o("WAWebClock").Clock.mutedUntilStr(c);p=u.jsx(o("WAWebText.react").WAWebTextMuted,{children:_})}return u.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{icon:m,onClick:n,title:u.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:s._(/*BTDS*/"Ajustes de notificaciones")}),secondaryTitle:p,testid:void 0})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebSubgroupHiddenVisibilityModal.react",["fbt","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebModalManager","WAWebText.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(){var e=s._(/*BTDS*/"La visibilidad del grupo se estableci\u00f3 como oculta"),t=s._(/*BTDS*/"Solo los miembros invitados y los administradores de la comunidad pueden ver este grupo."),n=u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getCommunityGroupsVisibilityFaqUrl(),children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n sobre la visibilidad de los grupos")}),r=s._(/*BTDS*/"Para proteger la privacidad de los miembros, no se puede cambiar este ajuste. {learn-more-link}",[s._param("learn-more-link",n)]);return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:o("WAWebModalManager").closeModalManager,title:e,children:u.jsxs(o("WAWebFlex.react").FlexColumn,{children:[u.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:o("WAWebUISpacing").uiPadding.bottom20,children:t}),u.jsx(o("WAWebText.react").WAWebTextMuted,{children:r})]})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebGroupInfoDrawer.react",["fbt","WAWebABProps","WAWebAiGroupOpenSecurityDrawerSection.react","WAWebBotGroupGatingUtils","WAWebCAPIGroupAboutModal.react","WAWebChatEphemerality","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatInfoDrawerRow.react","WAWebChatInfoDrawerSection.react","WAWebChatInfoFavoritesSection.react","WAWebChatInfoListsSection.react","WAWebChatInfoMediaSection.react","WAWebChatInfoPhoneNumberVisibilityIndicator.react","WAWebChatInfoWallpaperRow.react","WAWebCommunityGroupJourneyEventImpl","WAWebContactGetters","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebE2EInfoModal.react","WAWebEnvironment","WAWebEphemeralSettingRow.react","WAWebExitedGroupMemberSection.react","WAWebFlatListController","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebGroupInfoCommunitySection.react","WAWebGroupInfoCreateCommunitySection.react","WAWebGroupInfoDescriptionSection.react","WAWebGroupInfoEventsSection.react","WAWebGroupInfoIntegritySection.react","WAWebGroupInfoParticipantsSection.react","WAWebGroupInfoPendingParticipantsSection.react","WAWebGroupInfoSeparator.react","WAWebGroupInfoTopCard.react","WAWebGroupParticipantsFlow.react","WAWebGroupSupportSecurityDrawerSection.react","WAWebGroupType","WAWebHostedGroupUtils","WAWebIcVisibilityOffIcon.react","WAWebInboxFiltersGatingUtils","WAWebKeepRefreshedIcon.react","WAWebLimitSharingBlockedDueToAIGroup.react","WAWebLimitSharingSettingRow.react","WAWebLimitSharingUIUtils","WAWebListsGatingUtils","WAWebMessageReportRefreshedIcon.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebMuteRow.react","WAWebNotificationsSettingsRow.react","WAWebOpenAddParticipantModalFlow","WAWebOpenBotGroupOpenAddedModal.react","WAWebPrinaUtils","WAWebReachoutTimelockRestrictedModalLoadable","WAWebReachoutTimelockUtils","WAWebReactionsUtils","WAWebSecurityDrawerSection.react","WAWebSettingsRefreshedIcon.react","WAWebStarRefreshedIcon.react","WAWebStateUtils","WAWebSubgroupHiddenVisibilityModal.react","WAWebSuspendedCommunityUtils","WAWebSuspendedGroupUtils","WAWebText.react","WAWebTextWithLearnMoreLink","WAWebUISpacing","WAWebUiActionWamEvent","WAWebWamAddressingModeUtils","WAWebWamEnumActionEntryPoint","WAWebWamEnumChatFilterActionTypes","WAWebWamEnumLandingSurface","WAWebWamEnumPrivacyHighlightSurfaceEnum","WAWebWamEnumSurfaceType","WAWebWamEnumUiActionType","WAWebWamEnumUnlockEntryPoint","WAWebWamGroupMetricUtils","WAWebWamPrivateStatsUtils","cr:1066","gkx","react","useLazyRef","useWAWebAddParticipantsSelectedContacts","useWAWebChatLockRestriction","useWAWebChatValues","useWAWebContactValues","useWAWebFocusOnMount","useWAWebForceUpdate","useWAWebListener","useWAWebModelValues","useWAWebUIM"],(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.useRef,g={announcementGroupDisclaimer:{textAlign:"x1yc453h",paddingTop:"x1yrsyyn",paddingBottom:"xvpt6g3",paddingInlineStart:"x162tt16",paddingInlineEnd:"x5zjp28",paddingLeft:null,paddingRight:null,lineHeight:"x37zpob",overflowWrap:"xj0a0fe",wordBreak:"x1lldw8n",$$css:!0}};function h(t){"use no forget";var a,i,l=t.ref,u=babelHelpers.objectWithoutPropertiesLoose(t,e),c=u.chat,d=u.onAllEvents,h=u.onClose,C=u.onContactInfo,b=u.onEventInfo,v=u.onVerification,S=u.onWallpaperClick,R=r("useWAWebUIM")(),L=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),E=r("useWAWebFocusOnMount")(),k=o("useWAWebChatValues").useChatValues(u.chat.id,[o("WAWebFrontendChatGetters").getMute,o("WAWebChatGetters").getId,o("WAWebFrontendChatGetters").getPendingAction,o("WAWebFrontendChatGetters").getGroupMetadata,o("WAWebChatGetters").getIsBroadcast,o("WAWebChatGetters").getIsNewsletter]),I=k[0],T=k[1],D=k[2],x=k[3],$=k[4],P=k[5],N=o("useWAWebModelValues").useModelValues(u.groupMetadata,["id","reportToAdminMode","cachedDeviceCount","cachedDeviceSizeBucket","participants","parentGroup","pendingParticipants","announce","support","groupType","restrict","isCag","defaultSubgroup","hasCapi","owner","hiddenSubgroup","isLidAddressingMode"]),M=o("useWAWebContactValues").useContactValues(u.contact.id,[o("WAWebContactGetters").getName,o("WAWebContactGetters").getId,o("WAWebFrontendContactGetters").getPendingAction]),w=M[0],A=M[1],F=M[2],O=r("useWAWebAddParticipantsSelectedContacts")(),B=O.handleClearSelectedContacts,W=O.selectedContactsMap,q=O.updateSelectedContactsState,U=N.groupType===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP,V=N.isLidAddressingMode===!0,H=f(null);p(function(){H.current&&u.focusGroupSubjectOnMount!==!0&&u.focusGroupDescriptionOnMount!==!0&&H.current.scrollTo({top:0,behavior:"instant"})},[u.focusGroupDescriptionOnMount,u.focusGroupSubjectOnMount]);var G=r("useLazyRef")(function(){return new(o("WAWebUiActionWamEvent")).UiActionWamEvent({uiActionType:U?o("WAWebWamEnumUiActionType").UI_ACTION_TYPE.DEFAULT_SUBGROUP_INFO_OPEN:o("WAWebWamEnumUiActionType").UI_ACTION_TYPE.GROUP_INFO_OPEN,uiActionPreloaded:!0,isLid:V})}),z=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),j=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),K=f(null);o("useWAWebListener").useListener(N.participants,["bulk_add","bulk_remove","reset","sort","change:isAdmin","change:isSuperAdmin"],L),o("useWAWebListener").useListener(N.pendingParticipants,["add","remove","reset"],L);var Q=function(){var e;if(o("WAWebReachoutTimelockUtils").isUserReachoutTimelocked()){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebReachoutTimelockRestrictedModalLoadable").ReachoutTimelockRestrictedModalLoadable,{}));return}var t=(e=N.getParentGroupChat())==null?void 0:e.formattedTitle,n=function(){return Q()};o("WAWebOpenAddParticipantModalFlow").openAddParticipantModalFlow({groupMetadata:N,chat:c,communityName:t,selectedContactsMap:W,updateSelectedContactsState:q,reopenAddGroupFlowCallback:n,handleClearSelectedContacts:B})},X=function(t){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebGroupParticipantsFlow.react").GroupParticipantsFlow,{chat:o("WAWebStateUtils").unproxy(c),onVerification:v,onContactInfo:C,initialStep:t}),{transition:"modal-flow"})},Y=function(){h?h():R==null||R.requestDismiss()},J=function(){var e;(e=K.current)==null||e.scrollIntoView()},Z=function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebE2EInfoModal.react"),{chat:c,chatId:T,e2eSubtype:"info_encrypted"}))},ee=function(){o("WAWebModalManager").ModalManager.open(m.jsx(o("WAWebCAPIGroupAboutModal.react").CAPIGroupAboutModal,{}))},te=function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebSubgroupHiddenVisibilityModal.react"),{}))};p(function(){if(o("WAWebChatGroupUtils").isIntegrityDeactivatedCommunityAnnouncementGroup(c)?o("WAWebSuspendedCommunityUtils").openTerminatedCommunityModal():o("WAWebChatGroupUtils").isTerminatedGroupOrNotMember(c)?o("WAWebChatGroupUtils").isSupportGroup(c)||(o("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?o("WAWebSuspendedGroupUtils").openSuspendedGroupModalV2(c):o("WAWebSuspendedGroupUtils").openTerminatedGroupOrNotMemberModal()):o("WAWebChatGroupUtils").isSuspendedGroup(c)&&(o("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()?o("WAWebSuspendedGroupUtils").openSuspendedGroupModalV2(c):o("WAWebSuspendedGroupUtils").openSuspendedGroupModal(o("WAWebChatGroupUtils").shouldIncludeEntityIdInAppealRequest()===!0?N.id.user.toString():null)),N.groupType!==o("WAWebGroupType").GroupType.DEFAULT){var e=new(o("WAWebCommunityGroupJourneyEventImpl")).CommunityGroupJourneyEvent({action:o("WAWebWamEnumChatFilterActionTypes").CHAT_FILTER_ACTION_TYPES.VIEW,surface:o("WAWebWamEnumSurfaceType").SURFACE_TYPE.GROUP_INFO,chat:c});e.commit()}},[]),p(function(){var e=N.participants;e.ensureSorted();var t=N.pendingParticipants;t.ensureSorted()},void 0),p(function(){var e=G.current;if(e){var t=N.cachedDeviceSizeBucket;t!=null&&(e.sizeBucket=t);var n=o("WAWebWamGroupMetricUtils").getGroupCountMetricsFromGroupMetadata(o("WAWebStateUtils").unproxy(N));e.set(n),e.set(o("WAWebWamAddressingModeUtils").getAddressingModeMetricsFromGroupMetadata(o("WAWebStateUtils").unproxy(N))),e.markUiActionT(),e.commit(),G.current=void 0}o("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()},[]);var ne=o("useWAWebChatLockRestriction").useChatLockRestriction({id:"locked-group-info-"+T.toString(),condition:o("WAWebStateUtils").unproxy(c),onPromptFailure:Y,entryPoint:o("WAWebWamEnumActionEntryPoint").ACTION_ENTRY_POINT.CHAT_INFO,landingSurface:o("WAWebWamEnumLandingSurface").LANDING_SURFACE.CHAT_INFO,unlockEntryPoint:o("WAWebWamEnumUnlockEntryPoint").UNLOCK_ENTRY_POINT.CHAT_INFO}),re=_(function(){return{surface:"group-info-drawer",extras:{groupSize:N.participants.length,typeOfGroup:o("WAWebGroupType").groupTypeToWamEnum(o("WAWebGroupType").getGroupTypeFromGroupMetadata(o("WAWebStateUtils").unproxy(N)))}}},[N]);if(!ne)return null;var oe;if(N.canSetGroupProperty()){var ae=s._(/*BTDS*/"Permisos del grupo"),ie=m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:ae}),le=m.jsx(o("WAWebSettingsRefreshedIcon.react").SettingsRefreshedIcon,{});oe=m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,icon:le,onClick:u.onAdminSetting,title:ie})}var se=null;!o("WAWebChatGroupUtils").isSuspendedGroup(c)&&u.onMediaGallery&&(se=m.jsx(r("WAWebChatInfoMediaSection.react"),{onMediaGallery:u.onMediaGallery,chat:o("WAWebStateUtils").unproxy(c)}));var ue=c&&o("WAWebChatEphemerality").shouldShowEphemeralSetting(c)?m.jsx(o("WAWebEphemeralSettingRow.react").EphemeralSettingRow,{onClick:u.onEphemeral,chat:c,groupMetadata:N,testid:void 0}):null,ce=o("WAWebLimitSharingUIUtils").isLimitSharingSettingVisible(c)?m.jsx(r("WAWebLimitSharingSettingRow.react"),{onClick:function(){if(o("WAWebBotGroupGatingUtils").isOpenGroupBotParticipantAddEnabled()&&o("WAWebChatGroupUtils").isAIGroupOpen(c)){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebLimitSharingBlockedDueToAIGroup.react"),{}));return}u.onLimitSharing==null||u.onLimitSharing()},chat:c}):null,de=null;if(c&&N.parentGroup&&N.participants.iAmMember()){var me=N.getParentGroupChat();me!=null&&me.groupMetadata&&(de=m.jsxs(m.Fragment,{children:[m.jsx(r("WAWebGroupInfoSeparator.react"),{}),m.jsx(r("WAWebGroupInfoCommunitySection.react"),{onClick:function(){u.onCommunityClick==null||u.onCommunityClick()},parentGroupMetadata:me.groupMetadata,parentGroupChat:me}),m.jsx(r("WAWebGroupInfoSeparator.react"),{})]}))}var pe=null;b!=null&&d!=null&&(pe=m.jsx(r("WAWebGroupInfoEventsSection.react"),{chat:o("WAWebStateUtils").unproxy(c),onAllEvents:d,onEventInfo:b}));var _e=m.jsx(m.Fragment,{});if(_e=m.jsx(r("WAWebSecurityDrawerSection.react"),{highlightSurface:o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.INFO_SCREEN_GROUP,onClick:function(){return o("WAWebPrinaUtils").showEncryptionInfoPopup(c)},header:{type:"encryption"},text:s._(/*BTDS*/"Los mensajes est\u00e1n cifrados de extremo a extremo. Haz clic para obtener m\u00e1s informaci\u00f3n."),spaced:!0}),o("WAWebHostedGroupUtils").isWAHostedGroupEnabled()){var fe,ge=N.owner&&((fe=N.participants.get(N.owner))==null?void 0:fe.contact);ge&&N.hasCapi===!0&&(_e=m.jsx(r("WAWebSecurityDrawerSection.react"),{highlightSurface:o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.INFO_SCREEN_GROUP,onClick:ee,header:{type:"security"},text:m.jsx(r("WAWebTextWithLearnMoreLink"),{text:o("WAWebHostedGroupUtils").getSecureServicesBannerText(ge,!0),handleClick:ee}),spaced:!0}))}o("WAWebChatGroupUtils").isSupportGroup(c)&&(_e=m.jsx(r("WAWebGroupSupportSecurityDrawerSection.react"),{onClick:Z,spaced:!0})),o("WAWebBotGroupGatingUtils").isOpenGroupBotParticipantAddEnabled()&&o("WAWebChatGroupUtils").isAIGroupOpen(c)&&(_e=m.jsx(r("WAWebAiGroupOpenSecurityDrawerSection.react"),{spaced:!0,onClick:y}));var he;!r("gkx")("26258")&&n("cr:1066")&&N!=null&&(he=m.jsxs(m.Fragment,{children:[m.jsx(n("cr:1066"),{groupMetadata:o("WAWebStateUtils").unproxy(N)}),m.jsx(r("WAWebGroupInfoSeparator.react"),{})]}));var ye=I.canMute()?m.jsx(r("WAWebMuteRow.react"),{chat:c,mute:I}):null,Ce=r("WAWebEnvironment").isWindows||o("WAWebABProps").getABPropConfigValue("enable_mention_everyone_receiver"),be=c&&u.onNotificationSettings&&Ce?m.jsx(r("WAWebNotificationsSettingsRow.react"),{onClick:u.onNotificationSettings,chat:c,testid:void 0}):null,ve=o("WAWebABProps").getABPropConfigValue("use_per_chat_wallpaper")?m.jsx(r("WAWebChatInfoWallpaperRow.react"),{onWallpaperClick:S}):null,Se=!!(N.parentGroup&&N.hiddenSubgroup===!0),Re;if(Se){var Le={testid:"chat-hidden-visibility-row",onClick:te},Ee=s._(/*BTDS*/"Visibilidad del grupo"),ke=s._(/*BTDS*/"Oculto");Re=m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,babelHelpers.extends({},Le,{icon:m.jsx(o("WAWebIcVisibilityOffIcon.react").IcVisibilityOffIcon,{}),title:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:Ee}),secondaryTitle:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowSecondaryTitleRefreshed,{title:ke})}))}var Ie=null;if(!o("WAWebChatGroupUtils").isSuspendedGroup(c)&&u.onStarred){var Te=s._(/*BTDS*/"Mensajes destacados"),De=m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:Te.toString()}),xe=m.jsx(o("WAWebStarRefreshedIcon.react").StarRefreshedIcon,{}),$e=m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,icon:xe,onClick:u.onStarred,title:De});Ie=m.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-starred-messages",xstyle:o("WAWebUISpacing").uiPadding.horiz0,children:$e})}var Pe;if(c.hasKeptMsgs()||o("WAWebChatEphemerality").isEphemeralSettingOn(c)){var Ne=s._(/*BTDS*/"Mensajes conservados"),Me=N.restrict&&s._(/*BTDS*/"Solo quienes administran el grupo pueden conservar mensajes o dejar de hacerlo."),we="block-kept-messages",Ae=u.onKept,Fe={testid:we,onClick:Ae};Pe=m.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{titleTestId:"section-kept-messages",xstyle:o("WAWebUISpacing").uiPadding.horiz0,children:m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,babelHelpers.extends({},Fe,{icon:m.jsx(o("WAWebKeepRefreshedIcon.react").KeepRefreshedIcon,{}),title:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:Ne}),secondaryTitle:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowSecondaryTitleRefreshed,{title:Me})}))})}var Oe=o("WAWebReactionsUtils").isReactionsEnabledInCAG(c)?m.jsx(o("WAWebChatInfoPhoneNumberVisibilityIndicator.react").PhoneNumberVisibilityIndicatorCag,{chat:c}):null,Be;if(o("WAWebABProps").getABPropConfigValue("report_to_admin_kill_switch")&&N.reportToAdminMode&&N.canSetGroupProperty()){var We=s._(/*BTDS*/"Enviados para revisi\u00f3n de admin."),qe={testid:"block-rta-messages",onClick:u.onSentForAdminReview};Be=m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,babelHelpers.extends({},qe,{icon:m.jsx(o("WAWebMessageReportRefreshedIcon.react").MessageReportRefreshedIcon,{}),title:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:We})}))}var Ue=null;(ye||_e||ue||be||ce)&&(Ue=m.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{xstyle:o("WAWebUISpacing").uiPadding.horiz0,children:[be||ye,ve,Be,_e,ue,ce,Re,oe,Oe]}));var Ve=m.jsx(r("WAWebGroupInfoIntegritySection.react"),{chat:o("WAWebStateUtils").unproxy(c)}),He=(a=c.groupMetadata)!=null&&a.isCag&&!((i=c.groupMetadata)!=null&&(i=i.participants)!=null&&i.iAmAdmin())?m.jsx(r("WAWebDrawerSection.react"),{theme:"transparent",children:m.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:g.announcementGroupDisclaimer,children:s._(/*BTDS*/"Solo quienes administran la comunidad pueden ver a todos los participantes de este grupo.")})}):null;return m.jsx("div",{role:"complementary",ref:E,tabIndex:-1,"aria-label":s._(/*BTDS*/"Info. del grupo"),children:m.jsxs(r("WAWebDrawer.react"),{ref:l,theme:"striped",testid:void 0,tsNavigationData:re,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Info. del grupo"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,rtlFixIfOnDarwin:!0,onCancel:Y,testid:void 0}),m.jsx(r("WAWebDrawerBody.react"),{ref:H,children:m.jsxs("section",{className:"x2lah0s x1c4vz4f xdl72j9 x1w3bhph","data-testid":void 0,children:[m.jsx(r("WAWebGroupInfoTopCard.react"),{chat:o("WAWebStateUtils").unproxy(c),onAdminSetting:u.onAdminSetting,onAddParticipant:Q,onClickParticipantsCount:J,focusGroupSubjectOnMount:u.focusGroupSubjectOnMount,showHiddenSubgroupIcon:Se,onSearchMsgs:u.onSearchMsgs}),de,m.jsx(r("WAWebGroupInfoDescriptionSection.react"),{chat:o("WAWebStateUtils").unproxy(c),showFullDescription:u.showFullGroupDescription,focusOnMount:u.focusGroupDescriptionOnMount}),m.jsx(r("WAWebGroupInfoSeparator.react"),{}),se,m.jsx(r("WAWebGroupInfoSeparator.react"),{}),pe,Ie,Pe,Ue,m.jsx(r("WAWebGroupInfoSeparator.react"),{}),he,m.jsx(r("WAWebGroupInfoCreateCommunitySection.react"),{chat:c,groupMetadata:N}),!N.participants.iAmMember()&&m.jsx(r("WAWebExitedGroupMemberSection.react"),{group:c}),m.jsx(r("WAWebGroupInfoParticipantsSection.react"),{ref:K,chat:o("WAWebStateUtils").unproxy(c),scrollToParticipantList:u.scrollToParticipantList,flatListController:z.current,onAddParticipant:Q,onOpenParticipantSearch:X,onGroupInviteLink:u.onGroupInviteLink,onPendingParticipants:u.onPendingParticipants,onVerification:u.onVerification,onParticipantClick:function(t,n){return u.onContactInfo==null?void 0:u.onContactInfo(n)}}),He,m.jsx(r("WAWebGroupInfoPendingParticipantsSection.react"),{chat:o("WAWebStateUtils").unproxy(c),flatListController:j.current}),c&&c.canToggleFavorite()&&o("WAWebInboxFiltersGatingUtils").inboxFavoritesEnabled()&&m.jsx(r("WAWebChatInfoFavoritesSection.react"),{chat:c}),c&&o("WAWebListsGatingUtils").isListsEnabled()&&m.jsx(r("WAWebChatInfoListsSection.react"),{chat:c}),Ve]})})]},"contact-info-modal")})}h.displayName=h.name+" [from "+i.id+"]";function y(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebOpenBotGroupOpenAddedModal.react"),{}))}l.default=h}),226); __d("WAWebIcCloseIcon.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-close";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 13.4-4.9 4.9a.95.95 0 0 1-.7.27.95.95 0 0 1-.7-.27.95.95 0 0 1-.28-.7c0-.28.1-.52.28-.7l4.9-4.9-4.9-4.9a.95.95 0 0 1-.28-.7.95.95 0 0 1 .97-.98c.3 0 .53.1.71.28l4.9 4.9 4.9-4.9a.95.95 0 0 1 .7-.27c.28 0 .52.09.7.27.18.18.27.42.27.7 0 .28-.09.52-.27.7L13.4 12l4.9 4.9c.18.18.27.42.27.7 0 .28-.09.52-.27.7a.95.95 0 0 1-.7.27.95.95 0 0 1-.7-.27L12 13.4Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcCloseIcon=m}),98); __d("WAWebKeptDrawer.react",["fbt","WAWebChatGetters","WAWebChatThreadLogging","WAWebDisappearingMessageKeepInChatWamEvent","WAWebDisplayType","WAWebEmptyState.react","WAWebKicNux.react","WAWebMsgDrawer.react","WAWebWamEnumKicActionNameType","WAWebWamEnumKicEntryPointType","WAWebWamEnumTriggerType","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(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.chat,l=a.keptMsgs,u=a.onClose,c=o("WAWebKicNux.react").useKicNux(i),p=c[0],_=c[1];m(function(){p&&_(o("WAWebWamEnumTriggerType").TRIGGER_TYPE.KEPT_FOLDER_TAP_FIRST_TIME)},[]),m(function(){var e=new(o("WAWebDisappearingMessageKeepInChatWamEvent")).DisappearingMessageKeepInChatWamEvent({kicActionName:o("WAWebWamEnumKicActionNameType").KIC_ACTION_NAME_TYPE.VIEW_KEPT_MESSAGES,kicEntryPoint:o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.CHAT_INFO,messagesInFolder:l.length,isAGroup:i!=null&&o("WAWebChatGetters").getIsGroup(i)});if(i==null){e.commit();return}if(o("WAWebChatGetters").getIsGroup(i)){var t;e.set({isAdmin:(t=i.groupMetadata)==null?void 0:t.participants.iAmAdmin()})}o("WAWebChatThreadLogging").getChatThreadID(i.id.toJid()).then(function(t){t!=null&&e.set({threadId:t})}).finally(function(){e.commit()})},[]);var f=s._(/*BTDS*/"Mensajes conservados"),g=d.jsx(o("WAWebEmptyState.react").KeptMsgs,{}),h=null;if(i!=null&&o("WAWebChatGetters").getIsGroup(i)){var y;(y=i.groupMetadata)!=null&&y.restrict?h=d.jsx("div",{className:"x1xy6bms x1xnnf8n x84yb8i x162tt16 x1nxh6w3 x1sibtaa xib33u6",children:s._(/*BTDS*/"Estos mensajes permanecer\u00e1n en el chat y todos los participantes podr\u00e1n verlos. Solo los administradores pueden conservar mensajes o deshacer esa acci\u00f3n.")}):h=d.jsx("div",{className:"x1xy6bms x1xnnf8n x84yb8i x162tt16 x1nxh6w3 x1sibtaa xib33u6",children:s._(/*BTDS*/"Estos mensajes permanecer\u00e1n en el chat y todos los participantes podr\u00e1n verlos. Cualquier participante puede conservar un mensaje o deshacer esa acci\u00f3n. Quienes administran el grupo pueden establecer l\u00edmites al respecto.")})}else h=d.jsx("div",{className:"x1xy6bms x1xnnf8n x84yb8i x162tt16 x1nxh6w3 x1sibtaa xib33u6",children:s._(/*BTDS*/"Estos mensajes permanecer\u00e1n en el chat y todos los participantes podr\u00e1n verlos. Cualquier participante puede conservar un mensaje o deshacer esa acci\u00f3n.")});return d.jsx(r("WAWebMsgDrawer.react"),{testid:void 0,ref:n,msgCollection:l,onClose:u,chat:i,title:f,emptyListText:g,descriptionSection:h,displayType:o("WAWebDisplayType").DISPLAY_TYPE.KEPT_MSGS})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebLinkMsg.react",["cx","WAWebBizSuspiciousLabel.react","WAWebClassnames","WAWebDisplayType","WAWebEmojiText.react","WAWebFormatConfiguration","WAWebFrontendMsgGetters","WAWebGalleryMsg.react","WAWebL10N","WAWebMediaLinkPreview.react","WAWebMessageAuthor.react","WAWebMessageCheckbox.react","WAWebMessageContainer.react","WAWebMsgGetters","WAWebMsgLinks","WAWebMsgModelPropUtils","WAWebMsgPhoneNumbers","WAWebUISpacing","WAWebVelocityTransitionGroup","react","stylex","useWAWebListener","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useState,p={msg:{position:"x1n2onr6",display:"x78zum5",maxWidth:"x193iq5w",$$css:!0}};function _(e){var t,n,a,i=e.displayAuthor,l=e.link,s=e.msg,c=e.onClickMsg,_=e.onMessageSelect,f=e.selectedMessages,g=e.testid,h=o("useWAWebMsgValues").useMsgValues(e.msg.id,[(n=o("WAWebMsgGetters")).getBody,n.getCaption,(a=o("WAWebFrontendMsgGetters")).getDir,n.getId,n.getIsSentByMe,a.getMediaData,n.getType,a.getRtl,a.getSenderObj,n.getStar,a.getAsRevoked,n.getIsKept]),y=h[0],C=h[1],b=h[2],v=h[3],S=h[4],R=h[5],L=h[6],E=h[7],k=h[8],I=h[9],T=h[10],D=h[11],x=m(!1),$=x[0],P=x[1],N=m(function(){return f.isSelected(s.unsafe())}),M=N[0],w=N[1],A=function(t){M!==t&&w(t)};o("useWAWebListener").useListener(f,v.toString(),A);var F=function(){$||P(!0)},O=function(){$||P(!0)},B=function(){$&&P(!1)},W=function(){c(s.unsafe(),!M)},q=function(t){t&&t.stopPropagation(),_(s.unsafe(),!M,t)},U=e.selectable===!0||$?d.jsx(r("WAWebMessageCheckbox.react"),{checked:M,onClick:q,msgTheme:"gallery"}):null,V=!0,H=o("WAWebFormatConfiguration").Conversation({mentions:s.mentionMap(),groupMentions:s.groupMentionMap(),links:o("WAWebMsgLinks").getLinksFromMsg(s.unsafe()),phoneNumbers:o("WAWebMsgPhoneNumbers").getPhoneNumbersFromMsg(s.unsafe()),selectable:V,trusted:o("WAWebMsgModelPropUtils").isTrusted(s.unsafe()),fromMe:v.fromMe,fromChatWid:v.remote,parseLists:!0,parseQuotes:!0,parseInlineCode:!0}),G=y&&y.includes(l.url)?y:C,z=i?d.jsx("div",{className:"_ak16",children:d.jsx(r("WAWebMessageAuthor.react"),{msg:s,contact:k})}):null,j=o("WAWebMsgLinks").getSuspiciousLinks(s.unsafe()).length>0;return d.jsx(r("WAWebGalleryMsg.react"),{hover:$,onClick:W,onMouseEnter:$?null:O,onMouseOver:$?null:F,onMouseLeave:$?B:null,testid:void 0,children:d.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([p.msg,o("WAWebUISpacing").uiPadding.end12,o("WAWebUISpacing").uiPadding.start30]),{"data-testid":void 0,children:[d.jsx(r("WAWebVelocityTransitionGroup"),{transitionName:"delay-leave",children:U}),d.jsx(r("WAWebMessageContainer.react"),{isSentByMe:S,children:d.jsxs("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((t={},t._ak18=i,t._ak17=j,t._ak15=!0,t)),children:[z,d.jsx(o("WAWebBizSuspiciousLabel.react").SuspiciousLabel,{link:l,displayType:o("WAWebDisplayType").DISPLAY_TYPE.GALLERY}),d.jsx(r("WAWebMediaLinkPreview.react"),{title:l.url,isSentByMe:S,matchedText:l.domain,displayType:o("WAWebDisplayType").DISPLAY_TYPE.GALLERY,star:I,kept:D,isLoading:!1}),d.jsx(o("WAWebEmojiText.react").EmojiText,{text:G,selectable:V,className:"_ak14",dirMismatch:E!==r("WAWebL10N").isRTL(),direction:b,formatters:H})]})})]}))})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98); __d("WAWebLinkGallery.react",["fbt","Promise","WAWebDisplayType","WAWebFrontendMsgGetters","WAWebHistorySyncComponents.react","WAWebLinkMsg.react","WAWebMediaHubEmptyGalleryEntryPoint.react","WAWebMediaHubGating","WAWebMessageGallery.react","WAWebMsgGetters","WAWebMsgLinks","WAWebMsgsCollectionFilterer","WAWebStarredMsg.react","WAWebThreadMsgUtils","react","useLazyRef","useWAWebListener","useWAWebUiIdle"],(function(t,n,r,o,a,i,l,s){var e=["chat","filterText","isFilterEnabled","linkMsgs","threadId"],u,c,d,m=d||(d=r("react")),p=(c||(c=o("react"))).useEffect,_=function(t,n,a,i,l){var e=[];return t.forEach(function(t){var s=!o("WAWebMsgGetters").getIsSentByMe(t)&&o("WAWebMsgGetters").getIsGroupMsg(t),u=null;o("WAWebMsgGetters").getLinkPreview(t)&&(u=m.jsx(r("WAWebStarredMsg.react"),{testid:void 0,msg:t,selectable:a,selectedMessages:l,onMessageSelect:i,displayType:o("WAWebDisplayType").DISPLAY_TYPE.GALLERY_LINKS,onClickMsg:n},t.id.toString())),o("WAWebMsgLinks").getGalleryLinks(t).forEach(function(o,c){(o.href!==t.matchedText||u==null)&&e.push(m.jsx(r("WAWebLinkMsg.react"),{testid:void 0,msg:t.safe(),link:o,displayAuthor:s,selectable:a,selectedMessages:l,onMessageSelect:i,onClickMsg:n},t.id.toString()+"-"+c))}),u!=null&&e.push(u)}),e.reverse(),e};function f(t){var a=t.chat,i=t.filterText,l=t.isFilterEnabled,c=l===void 0?!1:l,d=t.linkMsgs,f=t.onMessageSelect,g=t.selectable,h=t.selectedMessages,y=t.threadId,C=r("useWAWebUiIdle")(),b=r("useLazyRef")(function(){return new(r("WAWebMsgsCollectionFilterer"))(function(e){return o("WAWebFrontendMsgGetters").getText(e)})}),v=["add","remove","reset","query_link_before"];o("useWAWebListener").useListener(d,"add",function(e){c&&b.current.cacheMessageTokens(e)}),o("useWAWebListener").useListener(d,"remove",function(e){b.current.removeMessageTokensFromCache(e)}),o("useWAWebListener").useListener(d,"reset",function(){c&&b.current.clearTokensCache()}),p(function(){c&&d.forEach(function(e){b.current.cacheMessageTokens(e)})},[d,b,c]);var S=function(t){if(t){var e=[],r=Array.isArray(t)?t:[t];(u||(u=n("Promise"))).all(r.map(function(t){var r=o("WAWebMsgLinks").getLinksFromMsg(t);return r.length&&e.push(t),(u||(u=n("Promise"))).resolve()})).then(function(){e.length&&d.add(e)})}};o("useWAWebListener").useListener(a.msgs,"add bulk_add",S);var R=function(t){d.hasLinkBefore&&C(function(){d.queryLinks(a,t)})},L;c?L=function(t,n){return b.current.filter(t,i,n,y)}:y!=null&&(L=function(t,r){return(u||(u=n("Promise"))).resolve(t.filter(function(e){return o("WAWebThreadMsgUtils").isMsgInThread(e,y)}))});var E=t.chat,k=t.filterText,I=t.isFilterEnabled,T=t.linkMsgs,D=t.threadId,x=babelHelpers.objectWithoutPropertiesLoose(t,e);return o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled()?m.jsx("div",{className:"x1c7u0tx x78zum5 xdt5ytf x5yr21d x1n2onr6",children:m.jsx(r("WAWebMessageGallery.react"),babelHelpers.extends({testid:void 0,msgsCollection:d,msgsCollectionUpdateEvents:v,queryCollection:R,getHasBefore:function(){return d.hasLinkBefore},getQueryBefore:function(){return d.queryLinkBefore},messageElements:function(t,n){return _(t,n,g,f,h)},emptyText:s._(/*BTDS*/"Sin enlaces"),tabName:o("WAWebMediaHubEmptyGalleryEntryPoint.react").MediaHubTabs.LINKS,chat:a,filterMessages:L,threadId:y!=null?y:void 0},x))}):m.jsxs("div",{className:"x1c7u0tx x78zum5 xdt5ytf x5yr21d x1n2onr6",children:[m.jsx(r("WAWebMessageGallery.react"),babelHelpers.extends({testid:void 0,msgsCollection:d,msgsCollectionUpdateEvents:v,queryCollection:R,getHasBefore:function(){return d.hasLinkBefore},getQueryBefore:function(){return d.queryLinkBefore},messageElements:function(t,n){return _(t,n,g,f,h)},emptyText:s._(/*BTDS*/"Sin enlaces"),chat:a,filterMessages:L,threadId:y!=null?y:void 0},x)),m.jsx(o("WAWebHistorySyncComponents.react").HistorySyncGalleryPlaceholder,{chat:a})]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebProductGallery.react",["fbt","Promise","WAWebHistorySyncComponents.react","WAWebMessageGallery.react","react","useWAWebUiIdle"],(function(t,n,r,o,a,i,l,s){var e=["chat","productMsgs"],u,c,d=c||(c=r("react"));function m(t){var a=t.chat,i=t.productMsgs,l=babelHelpers.objectWithoutPropertiesLoose(t,e),c=["add","remove","reset","products_loaded"],m=r("useWAWebUiIdle")(),p=function(t){return m(function(){i.queryProducts(a,t)})};return d.jsxs(d.Fragment,{children:[d.jsx(r("WAWebMessageGallery.react"),babelHelpers.extends({msgsCollection:i,msgsCollectionUpdateEvents:c,queryCollection:p,getHasBefore:function(){return i.hasProductBefore},getQueryBefore:function(){return i.hasProductBefore?(u||(u=n("Promise"))).resolve():null},emptyText:s._(/*BTDS*/"Sin productos"),chat:a},l)),d.jsx(o("WAWebHistorySyncComponents.react").HistorySyncGalleryPlaceholder,{chat:a})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebMediaGalleryDrawer.react",["fbt","$InternalEnum","WAWebActionToast.react","WAWebChatListSearch.react","WAWebChatlistPanelMode","WAWebDocGallery.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebLinkGallery.react","WAWebMediaGallery.react","WAWebMediaHubGating","WAWebMiscGatingUtils","WAWebMultiSelectBar.react","WAWebMultiSelection","WAWebProductGallery.react","WAWebTabs.react","WAWebUimUie.react","react","useLazyRef","useWAWebDebouncedSearch","vulture"],(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.useCallback,_=d.useMemo,f=d.useRef,g=d.useState,h={tabs:{backgroundColor:"x1c7u0tx",borderBottomWidth:"x1co6499",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xkveyfu",$$css:!0},tabXStyle:{borderBottomColor:"x16stqrj",borderBottomStyle:"x1q0q8m5",borderBottomWidth:"xv7zg05",$$css:!0},tabHovered:{borderBottomColor:"xhl97hz",$$css:!0},tabSelected:{borderBottomColor:"x1rrvw3c",paddingTop:"xexx8yu",$$css:!0}},y={surface:"media-drawer"},C=n("$InternalEnum")({MEDIA:"media",DOCS:"docs",LINKS:"links",PRODUCTS:"products"}),b=[C.MEDIA,C.DOCS];function v(e){r("vulture")("hulrV6-dlufdzTaA6J8kOptvoOE=");var t=e.onSearch,n=e.selected;switch(n){case C.MEDIA:case C.LINKS:case C.DOCS:return m.jsx("div",{className:"x1ok221b",children:m.jsx(o("WAWebChatListSearch.react").ListSearch,{onSearch:t,loading:!1,listFilterEnabled:!1,chatlistFilterEnabled:!1,mode:r("WAWebChatlistPanelMode").Chatlist,placeholder:s._(/*BTDS*/"Buscar")})});default:return null}}v.displayName=v.name+" [from "+i.id+"]";function S(e){switch(e.selectedTab){case C.MEDIA:return m.jsx(r("WAWebMediaGallery.react"),{chat:e.chat,mediaMsgs:e.chat.getMediaMsgs(),selectable:e.selectable,onMessageSelect:e.onMessageSelect,selectedMessages:e.selectedMessages,fullCollection:!0,isFilterEnabled:e.isFilterEnabled,filterText:e.filterText,threadId:e.threadId});case C.LINKS:return m.jsx(r("WAWebLinkGallery.react"),{chat:e.chat,linkMsgs:e.chat.getLinkMsgs(),selectable:e.selectable,onMessageSelect:e.onMessageSelect,selectedMessages:e.selectedMessages,isFilterEnabled:e.isFilterEnabled,filterText:e.filterText,threadId:e.threadId});case C.DOCS:return m.jsx(r("WAWebDocGallery.react"),{chat:e.chat,docMsgs:e.chat.getDocMsgs(),selectable:e.selectable,onMessageSelect:e.onMessageSelect,selectedMessages:e.selectedMessages,isFilterEnabled:e.isFilterEnabled,filterText:e.filterText,threadId:e.threadId});case C.PRODUCTS:return m.jsx(r("WAWebProductGallery.react"),{chat:e.chat,productMsgs:e.chat.getProductMsgs(),selectable:e.selectable,onMessageSelect:e.onMessageSelect,selectedMessages:e.selectedMessages,onProductDetail:e.onProductDetail,setScrollOffset:e.setScrollOffset,scrollOffset:e.scrollOffset})}}S.displayName=S.name+" [from "+i.id+"]";function R(e){switch(e){case C.MEDIA:return o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.MEDIA;case C.DOCS:return o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.DOCS;case C.LINKS:return o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.LINKS;case C.PRODUCTS:return o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.PRODUCTS}}function L(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.chat,l=a.onProductDetail,u=a.setProductsScrollOffset,c=a.initialTab,d=c===void 0?C.MEDIA:c,L=a.productsScrollOffset,E=L===void 0?0:L,k=a.threadId,I=g(d),T=I[0],D=I[1],x=g(!1),$=x[0],P=x[1],N=r("useWAWebDebouncedSearch")(),M=N[0],w=N[1],A=o("WAWebMiscGatingUtils").mediaLinksDocsFilteringEnabled(),F=r("useLazyRef")(function(){return new(r("WAWebMultiSelection"))([],function(e){return e.id.toString()})}),O=f(null),B=function(){$||P(!0)},W=function(){$&&(F.current.unsetAll(),O.current=null,P(!1))},q=p(function(e,t,n){var r=T===C.MEDIA?i.getMediaMsgs():T===C.LINKS?i.getLinkMsgs():T===C.DOCS?i.getDocMsgs():T===C.PRODUCTS?i.getProductMsgs():(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+T)})(),o=r.indexOf(e),a=r.indexOf(t);if(!(o<0||a<0))for(var l=Math.min(o,a),s=Math.max(o,a),u=l;u<=s;u++){var c=r.at(u);c!=null&&F.current.setVal(c,n)}},[T,i,F]),U=function(t,n,r){B();var e=O.current,o=(r==null?void 0:r.shiftKey)===!0;F.current.setVal(t,n),o&&e!=null&&q(e,t,n),O.current=t,F.current.getSelected().length===0&&W()},V=p(function(e){var t=C.cast(e);if(t!=null){var n=Array.from(C.members()),r=n.indexOf(T),o=n.indexOf(t);r!==o&&F.current.unsetAll(),D(t),P(!1)}},[F,T]),H=_(function(){var e=[{id:C.MEDIA,title:s._(/*BTDS*/"Archivos multimedia")},{id:C.DOCS,title:s._(/*BTDS*/"Documentos")},{id:C.LINKS,title:s._(/*BTDS*/"Enlaces")}];return i.getProductMsgs().length>0&&e.push({id:C.PRODUCTS,title:s._(/*BTDS*/"Productos")}),m.jsx(r("WAWebTabs.react"),{tabConfigs:e,selectedId:T,onSelect:V,testIdPrefix:"gallery-tab",xstyle:o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled()&&h.tabs,tabXstyle:h.tabXStyle,hoveredXStyle:h.tabHovered,selectedXStyle:h.tabSelected,getTitleProps:function(t,n){return o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled()?{color:t||n?"wdsContentDefault":"wdsContentDeemphasized",weight:t||n?"medium":void 0}:{}}})},[T,V,i]),G=R(T),z=b.includes(T),j=$?m.jsx(o("WAWebUimUie.react").UIE,{displayName:"MediaMultiSelect",escapable:!0,requestDismiss:W,children:m.jsx(o("WAWebMultiSelectBar.react").MultiSelectBar,{chat:i,noSortOnForward:!0,theme:"mediaGallery",toastPosition:o("WAWebActionToast.react").ToastPosition.RIGHT,downloadButton:z,selectedMessages:F.current,onCancel:W,entryPoint:G,mode:o("WAWebMultiSelectBar.react").MultiSelectMode.DEFAULT})}):null;return m.jsxs(r("WAWebDrawer.react"),{ref:n,theme:"gallery",testid:void 0,tsNavigationData:y,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:" ",onBack:a.onBack,rtlFixIfOnDarwin:!0,type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,focusBackOrCancel:!0}),j,H,A&&(o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled()===!1||o("WAWebMediaHubGating").isFilesMediaHubComponentEnabled==null)?m.jsx(v,{selected:T,onSearch:w}):null,m.jsx(r("WAWebDrawerBody.react"),{"data-list-scroll-container":!0,children:m.jsx("div",{className:"x78zum5 x1iyjqo2 xs83m0k x1r8uery xdt5ytf x5yr21d",children:m.jsx(S,{chat:i,selectable:$,onMessageSelect:U,selectedMessages:F.current,fullCollection:!0,isFilterEnabled:A,filterText:M,onProductDetail:l,setScrollOffset:u,scrollOffset:E,selectedTab:T,mediaMsgs:i.getMediaMsgs(),linkMsgs:i.getLinkMsgs(),docMsgs:i.getDocMsgs(),productMsgs:i.getProductMsgs(),threadId:k})})})]})}L.displayName=L.name+" [from "+i.id+"]",l.GalleryDrawerTabs=C,l.MediaGalleryDrawer=L}),226); __d("WAWebNewsletterAdminNotificationsDrawerLoadable",["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")("WAWebNewsletterAdminNotificationsDrawer.react").__setRef("WAWebNewsletterAdminNotificationsDrawerLoadable").load();return e}),"WAWebNewsletterAdminNotificationsDrawer"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.NewsletterAdminNotificationsDrawerLoadable=c}),98); __d("WAWebNewsletterDescriptionSection.react",["fbt","Promise","WALogger","WAWebActionToast.react","WAWebChatGetters","WAWebChatInfoDescriptionSection.react","WAWebClock","WAWebCmd","WAWebEditNewsletterMetadataAction","WAWebFbtCommon","WAWebFrontendChatGetters","WAWebNewsletterMembershipUtil","WAWebToastManager","WAWebWamEnumChannelAdminAction","asyncToGeneratorRuntime","err","react","useWAWebChatValues","useWAWebEventTargetValue","useWAWebListener","useWAWebModelValues"],(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.useCallback,f=m.useRef,g=m.useState;function h(t){var a,i=t.chat,l=t.desc,c=l===void 0?"":l,d=t.adminFunnelLogger,m=t.setIsEditing,_=t.toastId,f=_===void 0?o("WAWebActionToast.react").genId():_;if(/\s/.test(c)&&c.trim().length===0)return(u||(u=n("Promise"))).reject(r("err")("Blank space channel description"));var g=o("WAWebEditNewsletterMetadataAction").editNewsletterMetadataAction(i,{editDescription:!0},{description:c}),y=(a=i.newsletterMetadata)==null?void 0:a.description,C=new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"Cambiando la descripci\u00f3n del canal\u2026")),b=g.then(function(){d.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_ADMIN_FLOW_SUCCESS);var e=y?s._(/*BTDS*/"Se cambi\u00f3 la descripci\u00f3n del canal."):s._(/*BTDS*/"Se a\u00f1adi\u00f3 la descripci\u00f3n del canal.");return new(o("WAWebActionToast.react")).ActionType(e,{actionText:r("WAWebFbtCommon")("Undo"),actionHandler:function(){return h({chat:i,desc:y,adminFunnelLogger:d,toastId:f})}})}).catch(function(t){return d.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_ADMIN_FLOW_FAILURE),o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["channel:handleEditDescription dropped"]))),new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"Se produjo un error al cambiar la descripci\u00f3n del canal"),{actionText:r("WAWebFbtCommon")("Try again"),actionHandler:function(){return h({chat:i,desc:y,adminFunnelLogger:d,toastId:f})}})}).finally(function(){m&&m(!1)});return o("WAWebToastManager").ToastManager.open(p.jsx(o("WAWebActionToast.react").ActionToast,{id:f,initialAction:C,pendingAction:b})),g}function y(e){var t=e.adminFunnelLogger,a=e.chat,i=e.focusOnMount,l=g(i!=null?i:!1),u=l[0],c=l[1],d=o("useWAWebChatValues").useChatValues(e.chat.id,[o("WAWebChatGetters").getId,o("WAWebChatGetters").getIsNewsletter,o("WAWebChatGetters").getId,o("WAWebFrontendChatGetters").getNewsletterMetadata]),m=d[0],y=d[1],C=d[2],b=o("useWAWebModelValues").useOptionalModelValues(a.newsletterMetadata,["description","creationTime","membershipType"]),v=r("useWAWebEventTargetValue")(b,["change:description"],function(){return(b==null?void 0:b.description)||""});o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"edit_newsletter_description",function(){c(!0)});var S=g(v),R=S[0],L=S[1],E=f(v),k=_(function(){R!==E.current&&(E.current=R,t.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_DESCRIPTION_SET))},[t,R]),I=_((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,n){n===void 0&&(n=""),k(),t.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_ADMIN_FLOW_CONFIRMATION_TAP),yield h({chat:a,desc:n,adminFunnelLogger:t,setIsEditing:c})});return function(t,n){return e.apply(this,arguments)}})(),[a,k,t]);if(b==null)return null;var T=s._(/*BTDS*/"A\u00f1adir descripci\u00f3n del canal"),D=b.creationTime,x=D!=null?o("WAWebClock").Clock.newsletterDescriptionCreatedStr(b.creationTime):null;return p.jsx(r("WAWebChatInfoDescriptionSection.react"),{description:v,bulletPointsEnabled:!1,expandedFormattingEnabled:!1,chat:e.chat,testid:void 0,containerTestId:"newsletter-info-drawer-description-container",emptyValuePlaceholder:T,creationString:x,canSetDescription:o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(b),setDescriptionAction:I,onChange:L,onBlur:function(){k(),c(!1)},setIsEditing:u,focusOnMount:i,preventBlankDescription:!0})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebNewsletterInfoSubject.react",["fbt","WALogger","WAWebActionToast.react","WAWebEditNewsletterMetadataAction","WAWebFbtCommon","WAWebGroupInfoSubjectInput.react","WAWebName.react","WAWebNewsletterMembershipUtil","WAWebToastManager","WAWebWamEnumChannelAdminAction","WDSText.react","asyncToGeneratorRuntime","react","useWAWebModelValues"],(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.useRef,f=d.useState;function g(t,n,a,i){i===void 0&&(i=o("WAWebActionToast.react").genId());var l=o("WAWebEditNewsletterMetadataAction").editNewsletterMetadataAction(t,{editName:!0},{name:n}),u=t.name,c=new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"Cambiando el nombre del canal\u2026")),d=l.then(function(){return a.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_ADMIN_FLOW_SUCCESS),new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"Se cambi\u00f3 el nombre del canal a {name}",[s._param("name",n)]),{actionText:r("WAWebFbtCommon")("Undo"),actionHandler:function(){return g(t,u,a,i)}})}).catch(function(l){return a.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_ADMIN_FLOW_FAILURE),o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["newsletter:handleEditSubject dropped"]))),new(o("WAWebActionToast.react")).ActionType(s._(/*BTDS*/"No se pudo cambiar el nombre del canal"),{actionText:r("WAWebFbtCommon")("Try again"),actionHandler:function(){return g(t,n,a,i)}})});return o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebActionToast.react").ActionToast,{id:i,initialAction:c,pendingAction:d})),l}function h(e){var t=e.adminFunnelLogger,a=e.chat,i=o("useWAWebModelValues").useOptionalModelValues(a.newsletterMetadata,["name","membershipType","isSuspendedOrTerminated","verified"]),l=f(a.formattedTitle),u=l[0],c=l[1],d=_(a.formattedTitle),h=p(function(){u!==d.current&&(d.current=u,t.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_NAME_SET))},[t,u]),y=p((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){h(),e!==a.formattedTitle&&(t.logEvent(o("WAWebWamEnumChannelAdminAction").CHANNEL_ADMIN_ACTION.CHANNEL_ADMIN_FLOW_CONFIRMATION_TAP),yield g(a,e,t))});return function(t){return e.apply(this,arguments)}})(),[a,h,t]);return i==null?null:i.isSuspendedOrTerminated===!0||!o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(i)?m.jsx(r("WDSText.react"),{type:"Headline1",colorName:"contentDefault",textAlign:"center",children:m.jsx(o("WAWebName.react").Name,{chat:a,breakWord:!0,checkmarkLarge:!0,selectable:!0})}):m.jsx(r("WAWebGroupInfoSubjectInput.react"),{subject:a.formattedTitle,onSave:y,editRestrictionInfo:void 0,editable:o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(i)&&i.isSuspendedOrTerminated!==!0,emptyErrorMessage:s._(/*BTDS*/"El nombre del canal no puede estar vac\u00edo."),onChange:c,onBlur:h,direction:"ltr"})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebNewsletterLinkShareLogging",["WAWebChannelLinkShareWamEvent","WAWebNewsletterGatingUtils"],(function(t,n,r,o,a,i,l){function e(e){var t=e.linkShareScreen,n=e.linkShareScreenEntryPoint,r=e.newsletter,a=e.shareDirection;if(o("WAWebNewsletterGatingUtils").isNewsletterLinkShareLoggingEnabled()){var i=new(o("WAWebChannelLinkShareWamEvent")).ChannelLinkShareWamEvent({channelLinkShareDirection:a,channelLinkShareEntryPoint:n,channelLinkShareScreen:t,cid:r.user});i.commit()}}l.logNewsletterLinkShare=e}),98); __d("useWAWebNewsletterInviteLink",["fbt","WALogger","WAWebCopyToClipboard","WAWebModalManager","WAWebNewsletterLinkShareLogging","WAWebSendTextFlow.react","WAWebToast.react","WAWebToastManager","WAWebWamEnumChannelLinkShareDirection","WAWebWidFactory","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useCallback;function p(e){var t=e.chat,n=e.linkShareLoggingNavigationParams,a=o("useWAWebModelValues").useModelValues(t,["formattedTitle"]),i=a.formattedTitle,l=o("useWAWebModelValues").useOptionalModelValues(t.newsletterMetadata,["membershipType","inviteCode"]),u=l||{},c=u.inviteCode,p=c!=null?f(c):null,g=m(function(){if(p!=null){o("WAWebNewsletterLinkShareLogging").logNewsletterLinkShare({shareDirection:o("WAWebWamEnumChannelLinkShareDirection").CHANNEL_LINK_SHARE_DIRECTION.WHATSAPP,linkShareScreen:n.linkShareScreen,newsletter:o("WAWebWidFactory").asNewsletterWidOrThrow(t.id),linkShareScreenEntryPoint:n.linkShareScreenEntryPoint});var e=s._(/*BTDS*/"Sigue el canal de {newsletter_name} en WhatsApp: {link}",[s._param("newsletter_name",i),s._param("link",p)]),a=s._(/*BTDS*/"Env\u00eda el enlace del canal a");o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebSendTextFlow.react"),{title:a,text:e.toString(),origin:t.id}),{transition:"modal-flow"})}},[p,n,t.id,i]),h=m(function(){p!=null&&_(p)},[p]);return[p,h,g]}function _(t){o("WAWebCopyToClipboard").copyTextToClipboard(t).then(function(e){e?o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Se copi\u00f3 el enlace en el portapapeles.")})):o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo copiar en el portapapeles.")}))}).catch(function(){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][invite link] failed to copy text to clipboard"]))).sendLogs("newsletter-invite-link-failed-to-copy-text-to-clipboard")})}function f(e){return"https://whatsapp.com/channel/"+e}l.useNewsletterInviteLink=p,l.copyInviteLink=_,l.getInviteLink=f}),226); __d("WAWebNewsletterInfoTopCard.react",["fbt","WAWebCheckmarkIcon.react","WAWebCommonNewsletterEnums","WAWebCommonNewsletterStrings","WAWebCopyPasteSelectable.react","WAWebDrawerSection.react","WAWebFlex.react","WAWebFollowNewsletter","WAWebForwardRefreshedIcon.react","WAWebL10N","WAWebLinkRefreshedIcon.react","WAWebModalManager","WAWebNewsletterInfoPhoto.react","WAWebNewsletterInfoSubject.react","WAWebNewsletterMembershipUtil","WAWebPlusIcon.react","WAWebSpinner.react","WAWebStateUtils","WAWebText.react","WAWebUISpacing","WAWebUnfollowNewsletterConfirmationModal.react","WAWebUnstyledButton.react","WAWebWamEnumChannelEventSurface","WAWebWamEnumChannelLinkShareScreen","WAWebWamEnumTsSurface","WDSActionTile.react","WDSActionTileGroup.react","WDSIconIcAdd.react","WDSIconIcCheck.react","WDSIconIcForward.react","WDSIconIcLink.react","asyncToGeneratorRuntime","react","useWAWebABPropConfigValue","useWAWebModelValues","useWAWebNewsletterInviteLink"],(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,_={actionIcon:{color:"xo1mcw5",$$css:!0},infoAction:{flexGrow:"x1iyjqo2",color:"xo1mcw5",fontWeight:"xk50ysn",$$css:!0},spinner:{stroke:"x7iy8sv",$$css:!0},infoActionBtn:{fontSize:"x1nxh6w3",minWidth:"xktpd3l",$$css:!0}};function f(e){var t=e.adminFunnelLogger,n=o("useWAWebModelValues").useOptionalModelValues(e.chat.newsletterMetadata,["size","privacy","terminated","isSuspendedOrTerminated","membershipType","inviteCode"]),a=(n==null?void 0:n.privacy)===o("WAWebCommonNewsletterEnums").NewsletterPrivacy.Private?s._(/*BTDS*/"Canal privado"):s._(/*BTDS*/"Canal");n!=null&&n.terminated&&(a=s._(/*BTDS*/"Canal eliminado"));var i=(n==null?void 0:n.size)!=null?o("WAWebCommonNewsletterStrings").getNewsletterFollowersText(n.size,!0):null,l="padding-small-refreshed";return d.jsxs(r("WAWebDrawerSection.react"),{theme:l,children:[d.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",children:[d.jsx(r("WAWebNewsletterInfoPhoto.react"),{chat:e.chat,xstyle:o("WAWebUISpacing").uiMargin.bottom7,readOnly:(n==null?void 0:n.isSuspendedOrTerminated)===!0||!o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(n),adminFunnelLogger:t,showOutline:!0}),d.jsx(r("WAWebNewsletterInfoSubject.react"),{chat:e.chat,adminFunnelLogger:t}),d.jsx("div",{"data-testid":void 0,className:"x1evy7pa x1kgmq87 x2b8uid",children:d.jsx(o("WAWebCopyPasteSelectable.react").SelectableSpan,{dir:"auto",selectable:!0,children:d.jsxs(o("WAWebText.react").WAWebTextTitle,{color:"secondary",children:[a,n!=null&&n.isSuspendedOrTerminated?null:d.jsxs(d.Fragment,{children:[r("WAWebL10N").isRTL()?" -\xA0":" \xB7\xA0",i]})]})})})]}),n!=null&&n.isSuspendedOrTerminated?null:d.jsx(g,{chat:e.chat})]})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.chat,a=p(!1),i=a[0],l=a[1],u=t.newsletterMetadata,c=m(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){l(!0),yield o("WAWebFollowNewsletter").followNewsletter(o("WAWebStateUtils").unproxy(t),{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_PROFILE,discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_PROFILE}),l(!1)}),[t]),f=o("useWAWebABPropConfigValue").useABPropConfigValue("waweb_chatinfo_refresh"),g=m(function(){o("WAWebModalManager").ModalManager.open(d.jsx(o("WAWebUnfollowNewsletterConfirmationModal.react").UnfollowNewsletterConfirmationModal,{chat:t,loggingOptions:{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_PROFILE,discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_PROFILE}}))},[t]),h=[];o("WAWebNewsletterMembershipUtil").iAmGuest(u)?h.push({Icon:o("WAWebPlusIcon.react").PlusIcon,wdsIcon:r("WDSIconIcAdd.react"),onClick:c,testid:"newsletter-info-follow-action",title:s._(/*BTDS*/"Seguir"),isLoading:i}):o("WAWebNewsletterMembershipUtil").iAmSubscriber(u)&&h.push({Icon:o("WAWebCheckmarkIcon.react").CheckmarkIcon,wdsIcon:r("WDSIconIcCheck.react"),onClick:g,testid:"newsletter-info-unfollow-action",title:s._(/*BTDS*/"Siguiendo"),isLoading:!1});var y=o("useWAWebNewsletterInviteLink").useNewsletterInviteLink({chat:t,linkShareLoggingNavigationParams:{linkShareScreen:o("WAWebWamEnumChannelLinkShareScreen").CHANNEL_LINK_SHARE_SCREEN.CHANNEL_INFO}}),C=y[0],b=y[1],v=y[2];C!=null&&(h.push({Icon:o("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,wdsIcon:r("WDSIconIcForward.react"),onClick:v,testid:"newsletter-info-invite-action",title:o("WAWebCommonNewsletterStrings").getForwardNewsletterLinkText(),isLoading:!1}),document.queryCommandSupported("copy")&&h.push({Icon:o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,wdsIcon:r("WDSIconIcLink.react"),onClick:b,testid:"newsletter-info-copy-link-action",title:o("WAWebCommonNewsletterStrings").getCopyLinkText(),isLoading:!1}));var S=f?h.map(function(e,t){var n=e.isLoading,o=e.onClick,a=e.testid,i=e.title,l=e.wdsIcon;return d.jsx(r("WDSActionTile.react"),{Icon:l,onPress:function(){return void o()},label:i,testid:void 0},t)}):null;return d.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",align:"center",xstyle:[o("WAWebUISpacing").uiMargin.top25,o("WAWebUISpacing").uiMargin.bottom10],children:f?d.jsx(r("WDSActionTileGroup.react"),{children:S}):h.map(function(e,t){var n=e.Icon,a=e.isLoading,l=e.onClick,s=e.testid,u=e.title;return d.jsx(r("WAWebUnstyledButton.react"),{"aria-label":u,testid:void 0,onClick:l,xstyle:_.infoActionBtn,disabled:i,children:d.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",xstyle:[_.infoAction,o("WAWebUISpacing").uiPadding.horiz15],children:[a?d.jsx(o("WAWebSpinner.react").Spinner,{color:_.spinner,size:32,xstyle:o("WAWebUISpacing").uiMargin.bottom15}):d.jsx(n,{xstyle:[_.actionIcon,o("WAWebUISpacing").uiMargin.bottom15],width:24,height:24}),u]})},t)})})}g.displayName=g.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebMetricInfoModal.react",["fbt","WAWebButton.react","WAWebClock","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFlex.react","WAWebModal.react","WAWebModalManager","WAWebText.react","WAWebUISpacing","WAWebWamEnumActionTarget","react","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useCallback;function m(e){var t=e.metric,n=t.description,r=t.name;return c.jsxs(o("WAWebFlex.react").FlexColumn,{children:[c.jsx(o("WAWebText.react").WAWebTextLarge,{children:r}),c.jsx(o("WAWebText.react").WAWebTextMuted,{children:n})]})}m.displayName=m.name+" [from "+i.id+"]";function p(t){var n=t.lastUpdated,a=t.logger,i=t.metrics,l=t.metricsThreshold,u=d(function(){o("WAWebModalManager").ModalManager.close()},[]),p=c.jsx(o("WAWebButton.react").WAWebButtonPrimary,{testid:void 0,onClick:u,children:r("WAWebFbtCommon")("OK")});return c.jsx(o("WAWebModal.react").Modal,{actions:p,children:c.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:16,children:[i.map(function(e){return c.jsx(m,{metric:e},e.key)}),c.jsxs(o("WAWebText.react").WAWebTextMuted,{children:[c.jsxs("p",{children:[n!=null&&c.jsxs(c.Fragment,{children:[s._(/*BTDS*/"Actualizaci\u00f3n m\u00e1s reciente del n\u00famero: {date}.",[s._param("date",o("WAWebClock").Clock.lastUpdatedDateStr(n))])," "]}),s._(/*BTDS*/"Las cifras informadas est\u00e1n en {=m2} y pueden tener una demora de aproximadamente una semana.",[s._implicitParam("=m2",c.jsx(o("WAWebText.react").WAWebClickableText,{weight:"normal",onClick:function(){a.logHelpCentreClick(o("WAWebWamEnumActionTarget").ACTION_TARGET.HELP_CENTER_CHANNEL_METRICS_ARTICLE),o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getNewsletterMetricsEstimatedFaqUrl())},children:s._(/*BTDS*/"desarrollo")}))])]}),l!=null&&c.jsx("p",babelHelpers.extends({},(e||(e=r("stylex"))).props(o("WAWebUISpacing").uiMargin.top16),{children:l}))]})]})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebNewsletterAdminInsightsFailedToLoad.react",["fbt","WAWebButton.react","WAWebFbtCommon","WAWebFlex.react","WAWebText.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.onClick;return u.jsxs(o("WAWebFlex.react").FlexColumn,{justify:"center",align:"center",paddingBottom:4,children:[u.jsx(o("WAWebText.react").WAWebTextMuted,{marginTop:12,marginBottom:2,children:s._(/*BTDS*/"No se pudieron cargar los datos")}),u.jsx(o("WAWebButton.react").WAWebButtonSimplified,{onClick:t,children:r("WAWebFbtCommon")("Try again")})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebNewsletterProducerInsightsLogger",["WALogger","WAWebChannelProducerInsightsNavigationWamEvent","WAWebWamEnumActionTarget","WAWebWamEnumChannelProducerInsightsActionType","WAWebWamEnumChannelProducerInsightsSurface","WAWebWamMediaMetricUtils","err","gkx","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=(function(){function e(e){var t=e.wid;this.$1=0,this.$4=o("WAWebWamMediaMetricUtils").generateMediaEventId(),this.$5=o("WAWebWamEnumChannelProducerInsightsSurface").CHANNEL_PRODUCER_INSIGHTS_SURFACE.CHANNEL_INFO,this.$3=t.user}var t=e.prototype;return t.log=function(t){var e,n=t.actionTarget,r=t.actionType,a=t.entryPoint;this.$2=a!=null?a:this.$2,new(o("WAWebChannelProducerInsightsNavigationWamEvent")).ChannelProducerInsightsNavigationWamEvent({cid:this.$3,channelProducerInsightsSequenceNumber:this.$1,producerInsightsSessionId:this.$4,channelProducerInsightsActionType:r,channelProducerInsightsActionTarget:n,channelProducerInsightsEntryPoint:(e=this.$2)!=null?e:void 0,channelProducerInsightsSurface:this.$5}).commit(),this.$1+=1},t.logClose=function(){this.log({actionType:o("WAWebWamEnumChannelProducerInsightsActionType").CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE.CLOSE}),this.$5=o("WAWebWamEnumChannelProducerInsightsSurface").CHANNEL_PRODUCER_INSIGHTS_SURFACE.CHANNEL_INFO,this.$2=null},t.logOpen=function(t){var e=t.entryPoint,n=t.tab;this.log({actionType:o("WAWebWamEnumChannelProducerInsightsActionType").CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE.OPEN,entryPoint:e}),this.$6(n)},t.logNavigationTap=function(t){this.log({actionType:o("WAWebWamEnumChannelProducerInsightsActionType").CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE.NAVIGATION_TAP,actionTarget:m(t)}),this.$6(t)},t.logInfoIconTap=function(t){this.log({actionType:o("WAWebWamEnumChannelProducerInsightsActionType").CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE.INFO_ICON_TAP,actionTarget:t})},t.logHelpCentreClick=function(t){this.log({actionType:o("WAWebWamEnumChannelProducerInsightsActionType").CHANNEL_PRODUCER_INSIGHTS_ACTION_TYPE.LINK_CLICK,actionTarget:t})},t.$6=function(t){switch(t){case"reach":this.$5=o("WAWebWamEnumChannelProducerInsightsSurface").CHANNEL_PRODUCER_INSIGHTS_SURFACE.REACH_TAB;break;case"followers":this.$5=o("WAWebWamEnumChannelProducerInsightsSurface").CHANNEL_PRODUCER_INSIGHTS_SURFACE.FOLLOWERS_TAB;break;case"growth":this.$5=o("WAWebWamEnumChannelProducerInsightsSurface").CHANNEL_PRODUCER_INSIGHTS_SURFACE.GROWTH_TAB;break;default:}},e})(),d=u.createContext({log:function(){p()},logNavigationTap:function(){p()},logInfoIconTap:function(){p()},logHelpCentreClick:function(){p()},logOpen:function(){p()},logClose:function(){p()}});function m(e){switch(e){case"followers":return o("WAWebWamEnumActionTarget").ACTION_TARGET.FOLLOWERS_TAB;case"growth":return o("WAWebWamEnumActionTarget").ACTION_TARGET.GROWTH_TAB;default:return o("WAWebWamEnumActionTarget").ACTION_TARGET.GROWTH_TAB}}function p(){if(o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[NewsletterProducerInsightsLogger] unimplemented"]))).sendLogs("newsletter-producer-insights-logger-unimplemented"),!r("gkx")("26258"))throw r("err")("unimplemented")}l.NewsletterProducerInsightsLogger=c,l.NewsletterProducerInsightsLoggerContext=d}),98); __d("WAWebNewsletterGrowthChartProcessors",["WALogger","WATimeUtils","WAWebNewsletterMetricUtils"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(e){var t=e.reduce(function(e,t){var n=t.timestamp,r=t.value;if(n==null)return e;var a=Number.parseInt(n,10);return Number.isNaN(a)||e.push([o("WAWebNewsletterMetricUtils").roundToNearestDay(a*1e3),r]),e},[]);if(t.sort(function(e,t){return e[0]-t[0]}),t.length===1){var n=t[0][0],r=n-o("WATimeUtils").DAY_MILLISECONDS;t.unshift([r,0])}return t}function u(t,n){if(t.length!==n.length)return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter][insights] getNetFollowsData: len mismatch"]))).tags("newsletter").sendLogs("newsletter-insights-growth-chart-follows-unfollows-length-mismatch"),[];for(var r=[],a=0;ao("WAWebNewsletterSubscriberListAction").NEWSLETTER_INFO_SUBSCRIBER_DISPLAY_LIMIT?u.jsx(r("WAWebChatInfoExpandButton.react"),{numMore:i,onClick:g,fromNewsletter:!0,viewAll:!0}):null;return u.jsxs(u.Fragment,{children:[u.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerListSection,{testid:void 0,title:o("WAWebCommonNewsletterStrings").getAdminInvitesTitleText(i),xstyle:o("WAWebUISpacing").uiMargin.top10,children:[u.jsx(r("WAWebNavigableFlatList.react"),{ariaLabel:s._(/*BTDS*/"_j{\"*\":\"Lista de invitaciones pendientes: {pending-invites-list-size}\"}",[s._param("pending-invites-list-size",i,[0])]),flatListController:l.current,listData:m,onRenderItem:function(t){return u.jsx(o("WAWebNewsletterSubscriberList.react").NewsletterSubscriber,{subscriberData:t,handleContactClick:r("WAWebNoop"),handleContactContextMenu:f,active:d.current})},selection:d.current,rotateList:!0}),h]}),_]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebNewsletterLoggingContext",["react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.createContext({similarNewsletterSessionId:null,entryPoint:null});l.default=u}),98); __d("WAWebNewsletterChatItem.react",["WAWebDetailImage.react","WAWebFlex.react","WAWebText.react","WAWebUISpacing","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c=92,d=72,m=64,p=20,_={container:{width:"xni59qk",minHeight:"x1aes4zu",cursor:"x1ypdohk",$$css:!0},text:{width:"xni59qk",minHeight:"xisnujt",textAlign:"x2b8uid",overflowX:"x6ikm8r",overflowY:"x10wlt62",breakWord:"x9hmgtc",textWrap:"x9wz5kn",$$css:!0}};function f(e){var t=e.newsletter,n=o("useWAWebModelValues").useOptionalModelValues(t.newsletterMetadata,["name","inviteCode","verified"]);return n==null?null:u.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",xstyle:_.container,children:[u.jsx(o("WAWebDetailImage.react").DetailImage,{id:t.id,size:m,checkmarkIcon:(n==null?void 0:n.verified)===!0?"chat-list":null,showOutline:!0}),u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(_.text,o("WAWebUISpacing").uiMargin.top8,o("WAWebUISpacing").uiMargin.bottom8),{children:u.jsx(o("WAWebText.react").WAWebTextSmall,{color:"primary",textWrap:"ellipsis",children:n==null?void 0:n.name})}))]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),98); __d("WAWebNewsletterRecommendedV2Item.react",["WAWebBaseShimmerComponents.react","WAWebChatEntryPoint","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebLinkDevicePhoneNumberEntryInputFormatUtils","WAWebNewsletterAttributionLogging","WAWebNewsletterChatItem.react","WAWebNewsletterGatingUtils","WAWebNewsletterLoggingContext","WAWebNewsletterQuickFollowButton.react","WAWebOpenNewsletterPreviewChat","WAWebUISpacing","WAWebUserPrefsMeUser","WAWebWamEnumChannelEventUnit","react","stylex","useWAWebEventTargetValue","useWAWebModelValues","useWAWebNewsletterDiscoveryVisibilityLogger"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var d=u||(u=o("react")),m=e||(e=r("react")),p=d.useCallback,_=d.useContext,f={root:{borderStartStartRadius:"x6nvzda",borderStartEndRadius:"x4i4b9w",borderEndEndRadius:"xhl9efl",borderEndStartRadius:"xj65ea0",borderTopColor:"xog00wb",borderInlineEndColor:"x9oqtsu",borderBottomColor:"xk1krjo",borderInlineStartColor:"xqk4rbu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",boxSizing:"x9f619",width:"xj35x94",$$css:!0}};function g(e){var t=e.children,n=e.onClick;return m.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{role:"button",onClick:n,children:m.jsx(o("WAWebFlex.react").FlexColumn,{align:"center",testid:void 0,className:(s||(s=r("stylex")))(f.root,o("WAWebUISpacing").uiPadding.top12,o("WAWebUISpacing").uiPadding.horiz8,o("WAWebUISpacing").uiPadding.bottom8),children:t})})}g.displayName=g.name+" [from "+i.id+"]";function h(e){if(o("WAWebNewsletterGatingUtils").isNewsletterDiscoveryVisibilityLoggingEnabled())return m.jsx(b,babelHelpers.extends({},e));var t=babelHelpers.extends({},(c(e),e));return m.jsx(C,babelHelpers.extends({},t))}h.displayName=h.name+" [from "+i.id+"]";function y(){return m.jsxs(g,{children:[m.jsx(o("WAWebBaseShimmerComponents.react").CircleShimmer,{diameter:64,xstyle:o("WAWebUISpacing").uiMargin.bottom8}),m.jsx(o("WAWebBaseShimmerComponents.react").RectangleShimmer,{height:20,width:96,xstyle:o("WAWebUISpacing").uiMargin.bottom16}),m.jsx(o("WAWebBaseShimmerComponents.react").RectangleShimmer,{height:20,width:66,xstyle:o("WAWebUISpacing").uiMargin.bottom8})]})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=e.chatEntryPoint,n=e.discoverySurface,a=e.eventSurface,i=e.newsletter,l=e.onFollow,s=o("useWAWebModelValues").useModelValues(i,["newsletterMetadata"]),u=s.newsletterMetadata,c=r("useWAWebEventTargetValue")(o("useWAWebModelValues").useOptionalModelValues(u,["isSubscribedOrOwned"]),["isSubscribedOrOwned"],function(){return(u==null?void 0:u.isSubscribedOrOwned)===!0}),d=_(r("WAWebNewsletterLoggingContext")),f=d.entryPoint,h=d.eventUnit,y=d.similarNewsletterSessionId,C=p(function(){t===o("WAWebChatEntryPoint").ChatEntryPoint.SimilarNewsletters&&o("WAWebNewsletterAttributionLogging").NewsletterCoreEventLogger.setSimilarChannelsSessionId(y),o("WAWebOpenNewsletterPreviewChat").openNewsletterPreviewChat({identifier:i.id.toString(),chatEntryPoint:t,discoverySurface:n})},[i,t,y,n]),b={eventSurface:a,similarChannelSessionId:y,entryPoint:f,eventUnit:h,discoverySurface:n};return m.jsxs(g,{onClick:C,children:[m.jsx(r("WAWebNewsletterChatItem.react"),{newsletter:i}),m.jsx(r("WAWebNewsletterQuickFollowButton.react"),{confirmUnfollow:!1,onFollowSuccess:l,following:c,loggingOptions:b,newsletter:i})]})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.discoverySurface,n=e.newsletter,a=e.newsletterDirectorySessionId,i=e.newsletterEventUnit,l=e.similarNewslettersSessionId,s=i!==o("WAWebWamEnumChannelEventUnit").CHANNEL_EVENT_UNIT.SIMILAR_CHANNELS?o("WAWebLinkDevicePhoneNumberEntryInputFormatUtils").getCountryCodeIso(o("WAWebUserPrefsMeUser").getMePnUserOrThrow().user):void 0,u=r("useWAWebNewsletterDiscoveryVisibilityLogger")({cid:n.id.user,newsletterEventUnit:i,discoverySurface:t,similarNewslettersSessionId:l,newsletterDirectorySessionId:a,country:s}),d=u[0],p=u[1],_=babelHelpers.extends({},(c(e),e));return m.jsx("div",{ref:d,children:m.jsx(C,babelHelpers.extends({},_))})}b.displayName=b.name+" [from "+i.id+"]",l.NewsletterRecommendedItem=h,l.NewsletterRecommendedItemShimmer=y}),98); __d("WAWebNewsletterRecommendedV2Unit.react",["WAWebCarouselScrollButton.react","WAWebCommonNewsletterEnums","WAWebFlex.react","WAWebNewsletterRecommendedV2Item.react","WAWebUISpacing","react","useWAWebWindowSize"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useCallback,d={scrollContainer:{overflowX:"x14aock7",maxWidth:"x193iq5w","-ms-overflow-style":"x1pq812k",scrollbarWidth:"x1rohswg","::-webkit-scrollbar_display":"xfk6m8",$$css:!0}},m=120,p=450,_=600,f=970,g=750;function h(e){var t=e.chatEntryPoint,n=e.containerRef,r=e.discoverySurface,a=e.eventSurface,i=e.isFullUnit,l=e.newsletterDirectorySessionId,s=e.newsletterEventUnit,c=e.newsletters,m=e.onFollow,p=e.similarNewslettersSessionId,_=e.size;return i?u.jsx(v,{eventSurface:a,chatEntryPoint:t,newsletters:c,onFollow:null,size:_,discoverySurface:r,newsletterDirectorySessionId:l,similarNewslettersSessionId:p,newsletterEventUnit:s}):u.jsx(o("WAWebFlex.react").FlexColumn,{rowGap:8,xstyle:d.scrollContainer,ref:n,children:u.jsx(b,{eventSurface:a,chatEntryPoint:t,newsletters:c,onFollow:m,discoverySurface:r,newsletterDirectorySessionId:l,similarNewslettersSessionId:p,newsletterEventUnit:s})})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.isFullUnit,n=e.size;return t?u.jsx(o("WAWebFlex.react").FlexColumn,{rowGap:8,align:"center",children:Array.from({length:n.width>f?3:2},function(){return u.jsxs(o("WAWebFlex.react").FlexRow,{columnGap:8,children:[n.height>p&&u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{}),n.height>_&&u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{}),n.height>g&&u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{})]})})}):u.jsxs(o("WAWebFlex.react").FlexRow,{columnGap:8,children:[u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{}),u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{}),u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{}),u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItemShimmer,{})]})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=o("WAWebCarouselScrollButton.react").useScrollableContainer({itemWidth:m,isLoading:e.isLoading,itemsLoaded:e.newsletters.length,isFullUnit:e.isFullUnit}),n=t.containerRef,a=t.handleScroll,i=t.position,l=t.scrollEndBy,s=t.scrollStartBy,d=r("useWAWebWindowSize")(),p=e.afterFollow,_=c(function(t){p==null||p();var n=e.newsletters.findIndex(function(e,n){var r;return((r=e.newsletterMetadata)==null?void 0:r.membershipType)===o("WAWebCommonNewsletterEnums").NewsletterMembershipType.Guest&&n>t});n!==-1&&(l==null||l(m*(n-t)))},[e.newsletters,l,p]),f=u.jsx(h,{eventSurface:e.eventSurface,chatEntryPoint:e.chatEntryPoint,containerRef:n,isFullUnit:e.isFullUnit,newsletters:e.newsletters,onFollow:_,size:d,discoverySurface:e.discoverySurface,newsletterDirectorySessionId:e.newsletterDirectorySessionId,similarNewslettersSessionId:e.similarNewslettersSessionId,newsletterEventUnit:e.newsletterEventUnit}),g=e.isLoading?u.jsx(y,{isFullUnit:e.isFullUnit,size:d}):f;return u.jsx(o("WAWebFlex.react").FlexColumn,{testid:void 0,children:u.jsxs("div",{className:"x1n2onr6 x193iq5w",onWheel:a,children:[g,i!=="start"&&s!=null&&u.jsx(o("WAWebCarouselScrollButton.react").CarouselScrollButton,{direction:"start",onClick:function(){return s(m)},xstyle:o("WAWebUISpacing").uiMargin.start13}),i!=="end"&&l!=null&&u.jsx(o("WAWebCarouselScrollButton.react").CarouselScrollButton,{direction:"end",onClick:function(){return l(m)},xstyle:o("WAWebUISpacing").uiMargin.end13})]})})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.chatEntryPoint,n=e.discoverySurface,r=e.eventSurface,a=e.newsletterDirectorySessionId,i=e.newsletterEventUnit,l=e.newsletters,s=e.onFollow,c=e.similarNewslettersSessionId;return u.jsx(o("WAWebFlex.react").FlexRow,{columnGap:8,children:l.map(function(e,l){return u.jsx(o("WAWebNewsletterRecommendedV2Item.react").NewsletterRecommendedItem,{eventSurface:r,chatEntryPoint:t,newsletter:e,onFollow:function(){return s==null?void 0:s(l)},discoverySurface:n,newsletterDirectorySessionId:a,similarNewslettersSessionId:c,newsletterEventUnit:i},e.id.toJid())})})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.chatEntryPoint,n=e.discoverySurface,r=e.eventSurface,a=e.newsletterDirectorySessionId,i=e.newsletterEventUnit,l=e.newsletters,s=e.onFollow,c=e.similarNewslettersSessionId,d=e.size,m=d.width>f?3:2,h={eventSurface:r,chatEntryPoint:t,onFollow:s,discoverySurface:n,newsletterDirectorySessionId:a,similarNewslettersSessionId:c,newsletterEventUnit:i};return u.jsxs(o("WAWebFlex.react").FlexColumn,{rowGap:8,align:"center",children:[d.height>p&&u.jsx(b,babelHelpers.extends({},h,{newsletters:l.slice(0,m)})),d.height>_&&u.jsx(b,babelHelpers.extends({},h,{newsletters:l.slice(m,m*2)})),d.height>g&&u.jsx(b,babelHelpers.extends({},h,{newsletters:l.slice(m*2,m*3)}))]})}v.displayName=v.name+" [from "+i.id+"]",l.default=C}),98); __d("WAWebSimilarNewslettersUnits.react",["WAWebChatEntryPoint","WAWebCommonNewsletterStrings","WAWebNewsletterAttributionLogging","WAWebNewsletterDirectorySearchAction","WAWebNewsletterLoggingContext","WAWebNewsletterRecommendedV2Unit.react","WAWebSimilarNewsletterLogging","WAWebSimilarNewsletterSessionId","WAWebStateUtils","WAWebSvgButton.react","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebWamEnumBannerStatus","WAWebWamEnumBannerStatusReason","WAWebWamEnumChannelEntryPoint","WAWebWamEnumChannelEventSurface","WAWebWamEnumChannelEventUnit","WAWebWamEnumTsSurface","WAWebXIcon.react","react","stylex","useWAWebOnUnmount","useWAWebSimilarNewsletters","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s,d=c.useEffect,m=c.useMemo,p=c.useRef,_=c.useState,f={root:{backgroundColor:"x1280gxy",position:"x1n2onr6",$$css:!0},dismissButton:{position:"x10l6tqk",top:"x1eu8d0j",insetInlineEnd:"xeer0ze",left:null,right:null,$$css:!0}};function g(t){var n=t.chat,a=t.ref,i=o("useWAWebSimilarNewsletters").useSimilarNewsletters(n),l=i.similarNewsletters,s=i.similarNewslettersToDisplay,c=p(!1),_=o("WAWebSimilarNewsletterSessionId").useSimilarNewslettersSessionId(),g=m(function(){return{similarNewsletterSessionId:_,eventUnit:o("WAWebWamEnumChannelEventUnit").CHANNEL_EVENT_UNIT.SIMILAR_CHANNELS,entryPoint:o("WAWebWamEnumChannelEntryPoint").CHANNEL_ENTRY_POINT.SIMILAR_CHANNEL}},[_]);r("useWAWebOnUnmount")(function(){o("WAWebNewsletterAttributionLogging").NewsletterCoreEventLogger.setIsSimilarUnitMountedForChat(null)}),d(function(){c.current||(o("WAWebNewsletterAttributionLogging").NewsletterCoreEventLogger.setSimilarChannelsSessionId(_),o("WAWebNewsletterAttributionLogging").NewsletterCoreEventLogger.setIsSimilarUnitMountedForChat(n.id),o("WAWebSimilarNewsletterLogging").logSimilarNewsletterImpression({originNewsletter:n,similarNewsletters:l,similarNewslettersToDisplay:s,eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD,sessionId:_,bannerStatus:o("WAWebWamEnumBannerStatus").BANNER_STATUS.DISPLAYED}),c.current=!0)},[n]);var h=function(){var e;o("WAWebSimilarNewsletterLogging").logSimilarNewsletterDismiss({chat:n,reason:o("WAWebWamEnumBannerStatusReason").BANNER_STATUS_REASON.CLOSE_TAP,sessionId:_}),(e=o("WAWebStateUtils").unproxy(n).newsletterMetadata)==null||e.resetRecentlyFollowedFrom()};return u.jsx(r("WAWebNewsletterLoggingContext").Provider,{value:g,children:u.jsxs("div",babelHelpers.extends({"aria-label":o("WAWebCommonNewsletterStrings").getNewsletterSimilarNewslettersTitle(),ref:a},(e||(e=r("stylex"))).props(f.root,o("WAWebUISpacing").uiPadding.top12,o("WAWebUISpacing").uiPadding.bottom16,o("WAWebUISpacing").uiPadding.horiz16),{children:[u.jsx(r("WAWebSvgButton.react"),{Icon:o("WAWebXIcon.react").XIcon,onClick:h,DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY,xstyle:f.dismissButton}),u.jsx(y,{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_THREAD,newsletters:s,similarNewslettersSessionId:Number(_),discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_THREAD})]}))})}g.displayName=g.name+" [from "+i.id+"]";function h(t){var n=t.chat,a=o("useWAWebSimilarNewsletters").useSimilarNewsletters(n),i=a.hasEnoughNewsletters,l=a.similarNewsletters,s=a.similarNewslettersToDisplay,c=o("WAWebSimilarNewsletterSessionId").useSimilarNewslettersSessionId(),g=m(function(){return{similarNewsletterSessionId:c,eventUnit:o("WAWebWamEnumChannelEventUnit").CHANNEL_EVENT_UNIT.SIMILAR_CHANNELS,entryPoint:o("WAWebWamEnumChannelEntryPoint").CHANNEL_ENTRY_POINT.SIMILAR_CHANNEL}},[c]),h=r("useWAWebUnmountSignal")(),C=_(s.length===0),b=C[0],v=C[1];d(function(){h.aborted||s.length===0&&o("WAWebNewsletterDirectorySearchAction").getSimilarNewslettersAction(n).finally(function(){return v(!1)})},[n,s.length,h]);var S=p(!1);return d(function(){!b&&!S.current&&(o("WAWebSimilarNewsletterLogging").logSimilarNewsletterImpression({originNewsletter:n,similarNewsletters:l,similarNewslettersToDisplay:s,eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_PROFILE,sessionId:c,bannerStatus:i?o("WAWebWamEnumBannerStatus").BANNER_STATUS.DISPLAYED:o("WAWebWamEnumBannerStatus").BANNER_STATUS.HIDDEN}),S.current=!0)},[b]),!i&&!b?null:u.jsx(r("WAWebNewsletterLoggingContext").Provider,{value:g,children:u.jsx("div",babelHelpers.extends({},(e||(e=r("stylex"))).props(f.root,o("WAWebUISpacing").uiMargin.top10,o("WAWebUISpacing").uiPadding.start30,o("WAWebUISpacing").uiPadding.vert16),{children:u.jsx(y,{eventSurface:o("WAWebWamEnumChannelEventSurface").CHANNEL_EVENT_SURFACE.CHANNEL_PROFILE,newsletters:s,isLoading:b,similarNewslettersSessionId:Number(c),discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHANNEL_PROFILE})}))})}h.displayName=h.name+" [from "+i.id+"]";function y(t){var n=t.discoverySurface,a=t.eventSurface,i=t.isLoading,l=i===void 0?!1:i,s=t.newsletters,c=t.ref,d=t.similarNewslettersSessionId;return u.jsxs("div",{ref:c,children:[u.jsx("div",babelHelpers.extends({},(e||(e=r("stylex"))).props(o("WAWebUISpacing").uiMargin.bottom12),{children:u.jsx(o("WAWebText.react").WAWebTextSmall,{children:o("WAWebCommonNewsletterStrings").getNewsletterSimilarNewslettersTitle()})})),u.jsx(r("WAWebNewsletterRecommendedV2Unit.react"),{eventSurface:a,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.SimilarNewsletters,newsletters:s,isLoading:l,isFullUnit:!1,discoverySurface:n,newsletterEventUnit:o("WAWebWamEnumChannelEventUnit").CHANNEL_EVENT_UNIT.SIMILAR_CHANNELS,similarNewslettersSessionId:d})]})}y.displayName=y.name+" [from "+i.id+"]",l.SimilarNewslettersConversationBanner=g,l.SimilarNewslettersInfoDrawerUnit=h}),98); __d("WAWebNewsletterInfoDrawer.react",["fbt","WAWebBusinessWebsiteIcon.react","WAWebChatInfoDrawerRow.react","WAWebChatInfoDrawerSection.react","WAWebChevronIcon.react","WAWebCmd","WAWebCommonNewsletterStrings","WAWebDialpadIcon.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebEnforcementActionLogging","WAWebModalManager","WAWebMuteRow.react","WAWebNewsletterDescriptionSection.react","WAWebNewsletterGatingUtils","WAWebNewsletterInfoTopCard.react","WAWebNewsletterInsightsSection.react","WAWebNewsletterIntegritySection.react","WAWebNewsletterMembershipUtil","WAWebNewsletterPendingInvites.react","WAWebNewsletterPhoneNumberPrivacyNux.react","WAWebNewsletterPrivacyRow.react","WAWebNewsletterPublicChannelPrivacyNux.react","WAWebNewsletterSubscriberList.react","WAWebSettingsFBT","WAWebSettingsOutlineIcon.react","WAWebSimilarNewslettersUnits.react","WAWebStateUtils","WAWebUISpacing","WAWebUiActionWamEvent","WAWebUnmuteNotificationsRefreshedIcon.react","WAWebWamEnumInteractionEntryPoint","WAWebWamEnumInteractionSurface","WAWebWamEnumThreadType","WAWebWamEnumUiActionType","WAWebWamPrivateStatsUtils","WAWebWarningOutlineIcon.react","cr:2695","gkx","react","useLazyRef","useWAWebEventTargetValue","useWAWebListener","useWAWebUIM"],(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.useCallback,_=d.useEffect,f=d.useRef,g={icon:{color:"xhslqc4",$$css:!0}};function h(t){var a,i=t.ref,l=babelHelpers.objectWithoutPropertiesLoose(t,e),u=l.adminFunnelLogger,c=l.chat,d=l.focusDescriptionOnMount,h=l.newsletterMetadata,y=l.onAdminCenter,C=l.onClose,b=l.onContactInfo,v=l.onDeleteNewsletter,S=l.onNotificationSettings,R=l.onSettings,L=l.onShareLink,E=l.onTransferNewsletterOwnership,k=l.onTransferOwnershipSelection,I=l.onVerification,T=r("useWAWebUIM")(),D=f(null),x=r("useWAWebEventTargetValue")(h,["change:suspended"],function(){return(h==null?void 0:h.suspended)===!0}),$=r("useWAWebEventTargetValue")(h,["change:canBeMuted"],function(){return!!(h!=null&&h.canBeMuted)&&!x});o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"edit_newsletter_description",function(){D.current&&D.current.scrollTo({top:0,behavior:"smooth"})});var P=r("useLazyRef")(function(){return new(o("WAWebUiActionWamEvent")).UiActionWamEvent({uiActionType:o("WAWebWamEnumUiActionType").UI_ACTION_TYPE.CHANNEL_INFO_OPEN,uiActionPreloaded:!0})}),N=function(){C?C():T==null||T.requestDismiss()},M=x?null:m.jsx(r("WAWebNewsletterDescriptionSection.react"),{chat:c,adminFunnelLogger:u,focusOnMount:d}),w=r("useWAWebEventTargetValue")(h,["change:membershipType"],function(){return o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(l.newsletterMetadata)}),A=h!=null&&!x&&o("WAWebNewsletterGatingUtils").isNewsletterProducerInsightsEnabled(h)?m.jsx(r("WAWebNewsletterInsightsSection.react"),{chat:c,newsletterMetadata:h,xstyle:o("WAWebUISpacing").uiMargin.top10,onSeeAllClick:l.onViewInsights}):null,F=o("WAWebNewsletterGatingUtils").isNewsletterAdminNotificationsEnabled(c.newsletterMetadata)?m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,title:o("WAWebSettingsFBT").notificationsTitle(),icon:m.jsx(o("WAWebUnmuteNotificationsRefreshedIcon.react").UnmuteNotificationsRefreshedIcon,{iconXstyle:g.icon}),onClick:S,side:m.jsx(o("WAWebChevronIcon.react").ChevronIcon,{directional:!0,height:21,iconXstyle:g.icon})}):null,O=!F&&$?m.jsx(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{xstyle:[o("WAWebUISpacing").uiMargin.top10,o("WAWebUISpacing").uiPadding.horiz0],children:m.jsx(r("WAWebMuteRow.react"),{chat:c,mute:c.mute})}):null,B=p(function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebNewsletterPhoneNumberPrivacyNux.react"),{}))},[]),W=p(function(){o("WAWebModalManager").ModalManager.open(m.jsx(r("WAWebNewsletterPublicChannelPrivacyNux.react"),{chat:c,userRole:h==null?void 0:h.membershipType}))},[c,h==null?void 0:h.membershipType]),q=w&&o("WAWebNewsletterGatingUtils").isNewsletterReactionSettingsEnabled()&&!x?m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,title:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:s._(/*BTDS*/"Ajustes del canal")}),icon:m.jsx(o("WAWebSettingsOutlineIcon.react").SettingsOutlineIcon,{iconXstyle:g.icon,height:20}),onClick:R}):null,U=p(function(){r("WAWebEnforcementActionLogging").startEnforcementSession(o("WAWebWamEnumInteractionEntryPoint").INTERACTION_ENTRY_POINT.INFO_DRAWER_ALERT_OPTION,c.id.toString(),o("WAWebWamEnumInteractionSurface").INTERACTION_SURFACE.NEWSLETTER_INFO_DRAWER),r("WAWebEnforcementActionLogging").logChannelAlertsClick(),y()},[c.id,y]),V=!((a=c.newsletterMetadata)!=null&&a.terminated)&&w?m.jsx(o("WAWebChatInfoDrawerRow.react").ChatInfoDrawerRowRefreshed,{testid:void 0,icon:m.jsx(o("WAWebWarningOutlineIcon.react").WarningOutlineIcon,{iconXstyle:g.icon,height:16}),onClick:U,title:m.jsx(o("WAWebChatInfoDrawerRow.react").DrawerRowTitleRefreshed,{title:s._(/*BTDS*/"Alertas del canal")})}):null,H=x?null:m.jsx(r("WAWebNewsletterPrivacyRow.react"),{onClick:w?W:null,title:s._(/*BTDS*/"Canal p\u00fablico"),text:w?s._(/*BTDS*/"Todos podr\u00e1n ver lo que compartas, excepto tu n\u00famero de tel\u00e9fono. Haz clic para obtener m\u00e1s informaci\u00f3n."):s._(/*BTDS*/"Cualquier usuario puede encontrar este canal y ver lo que se comparti\u00f3."),icon:m.jsx(o("WAWebBusinessWebsiteIcon.react").BusinessWebsiteIcon,{iconXstyle:g.icon,height:20})}),G=!x&&!w?m.jsx(r("WAWebNewsletterPrivacyRow.react"),{onClick:B,title:s._(/*BTDS*/"Privacidad del perfil"),text:o("WAWebCommonNewsletterStrings").getNewsletterProfilePrivacyText(),icon:m.jsx(o("WAWebDialpadIcon.react").DialpadIcon,{iconXstyle:g.icon,height:20})}):null,z=m.jsxs(o("WAWebChatInfoDrawerSection.react").ChatInfoDrawerSection,{xstyle:[o("WAWebUISpacing").uiMargin.top10,o("WAWebUISpacing").uiPadding.horiz0],children:[F,H,q,V,G]}),j=m.jsx(r("WAWebNewsletterIntegritySection.react"),{xstyle:o("WAWebUISpacing").uiMargin.top10,chat:l.chat,onDeleteNewsletter:v,onTransferNewsletterOwnership:E}),K=w&&!x?m.jsx(o("WAWebNewsletterSubscriberList.react").NewsletterSubscriberList,{newsletter:c,adminFunnelLogger:u,onShareLink:L,onVerification:I,onContactInfo:b,onTransferOwnershipSelection:k}):null,Q=o("WAWebNewsletterGatingUtils").isNewsletterCreationEnabled()&&o("WAWebNewsletterMembershipUtil").iAmOwner(h)&&!x?m.jsx(r("WAWebNewsletterPendingInvites.react"),{newsletter:c,onVerification:I}):null,X=!x&&!o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(h)&&o("WAWebNewsletterGatingUtils").isSimilarNewsletterInInfoDrawersEnabled()?m.jsx(r("WAWebDrawerSection.react"),{children:m.jsx(o("WAWebSimilarNewslettersUnits.react").SimilarNewslettersInfoDrawerUnit,{chat:c})}):null;_(function(){var e=P.current;e&&(e.markUiActionT(),e.commit(),P.current=void 0),o("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()},[]);var Y;return!r("gkx")("26258")&&n("cr:2695")&&(Y=m.jsx(n("cr:2695"),{chat:c})),m.jsxs(r("WAWebDrawer.react"),{ref:i,theme:"striped",testid:void 0,tsNavigationData:{surface:"channel-profile",extras:{threadType:o("WAWebWamEnumThreadType").THREAD_TYPE.CHANNEL,channelWid:c.id}},children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Info. del canal"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,rtlFixIfOnDarwin:!0,onCancel:N,testid:void 0}),m.jsx(r("WAWebDrawerBody.react"),{ref:D,children:m.jsxs("section",{className:"x2lah0s x1c4vz4f xdl72j9 x1w3bhph","data-testid":void 0,children:[m.jsx(r("WAWebNewsletterInfoTopCard.react"),{chat:o("WAWebStateUtils").unproxy(c),adminFunnelLogger:u}),M,A,O,X,z,Q,K,j,Y]})})]},"newsletter-info-modal")}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebNewsletterInsightsDrawerLoadable",["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")("WAWebNewsletterInsightsDrawer.react").__setRef("WAWebNewsletterInsightsDrawerLoadable").load();return e.NewsletterInsightsDrawer}),"NewsletterInsightsDrawer"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.NewsletterInsightsDrawerLoadable=c}),98); __d("WAWebNewsletterLinkDrawer.react",["fbt","WALogger","WAWebCellFrame.react","WAWebCommonNewsletterStrings","WAWebCopyPasteSelectable.react","WAWebCopyRefreshedIcon.react","WAWebDetailImage.react","WAWebDrawer.react","WAWebDrawerButton.react","WAWebDrawerHeader.react","WAWebFlex.react","WAWebForwardIcon.react","WAWebSvgComponentBase","WAWebText.react","WAWebUISpacing","WAWebWamEnumChannelLinkShareScreen","react","stylex","useWAWebModelValues","useWAWebNewsletterInviteLink"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=u||(u=r("react")),m={drawer:{backgroundColor:"x1280gxy",$$css:!0},header:{width:"x14atkfc",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",backgroundColor:"x1h3rtpe",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},optionsHeader:{textAlign:"x1yc453h",$$css:!0},mouseCursor:{cursor:"x1ypdohk",$$css:!0},link:{wordBreak:"x1yn0g08",$$css:!0},newsletterName:{overflowWrap:"x1mzt3pk",maxHeight:"x1o16irs",$$css:!0}};function p(t){var n=t.entryPoint,a=t.newsletter,i=t.onBack,l=t.onClose,u=t.ref,p=n!=null?n:void 0;p===void 0&&o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Encountered null link share screen entry point"]))).tags("newsletter-logging").sendLogs("Null link share screen entry point in newsletter link share logging");var _=o("useWAWebNewsletterInviteLink").useNewsletterInviteLink({chat:a,linkShareLoggingNavigationParams:{linkShareScreen:o("WAWebWamEnumChannelLinkShareScreen").CHANNEL_LINK_SHARE_SCREEN.SHARE_LINK_SCREEN,linkShareScreenEntryPoint:p}}),f=_[0],g=_[1],h=_[2],y=o("useWAWebModelValues").useOptionalModelValues(a.newsletterMetadata,["name"]),C=o("useWAWebModelValues").useModelValues(a.contact,["id","profilePicThumb"]),b=[];f!=null&&(b.push({Icon:o("WAWebForwardIcon.react").ForwardIcon,onClick:h,testid:"newsletter-info-invite-action",title:o("WAWebCommonNewsletterStrings").getSendLinkViaWhatsAppText()}),document.queryCommandSupported("copy")&&b.push({Icon:o("WAWebCopyRefreshedIcon.react").CopyRefreshedIcon,onClick:g,testid:"newsletter-info-copy-link-action",title:o("WAWebCommonNewsletterStrings").getCopyLinkText()}));var v=d.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(m.header,o("WAWebUISpacing").uiMargin.all15),{children:d.jsx(r("WAWebCellFrame.react"),{image:d.jsx(o("WAWebDetailImage.react").DetailImage,{id:C.id,size:56,shape:o("WAWebDetailImage.react").DetailImageShape.Circle,quality:o("WAWebDetailImage.react").DetailImageQuality.High}),primary:d.jsx(o("WAWebText.react").WAWebTextTitle,{xstyle:m.newsletterName,children:y==null?void 0:y.name}),secondary:d.jsx(o("WAWebCopyPasteSelectable.react").SelectableLink,{selectable:!0,onClick:g,xstyle:m.mouseCursor,children:d.jsx(o("WAWebText.react").WAWebTextMuted,{color:"link",textWrap:"wrap",xstyle:m.link,testid:void 0,children:f})}),theme:"newsletter-link-cell",className:c(o("WAWebUISpacing").uiMargin.vert4,o("WAWebUISpacing").uiMargin.horiz2)})})),S=d.jsx(o("WAWebText.react").WAWebTextSectionTitle,{xstyle:m.optionsHeader,marginEnd:32,marginStart:32,marginTop:16,marginBottom:20,color:"primary",children:o("WAWebCommonNewsletterStrings").getChannelLinkInformationText()}),R=d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[o("WAWebUISpacing").uiMargin.vert4,o("WAWebUISpacing").uiMargin.horiz30],children:d.jsx("div",{className:"xh8yej3 xjm9jq1 x3x0x6p"})}),L=i?{onBack:i}:{onCancel:l};return d.jsxs(r("WAWebDrawer.react"),{ref:u,theme:"striped",testid:void 0,tsNavigationData:{surface:"channel-link"},xstyle:m.drawer,children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,babelHelpers.extends({title:s._(/*BTDS*/"Enlace del canal"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL},L,{rtlFixIfOnDarwin:!0,testid:void 0})),v,S,R,b.map(function(e,t){var n=e.Icon,r=e.onClick,a=e.testid,i=e.title;return d.jsx(o("WAWebDrawerButton.react").DrawerButtonSimple,{testid:void 0,icon:d.jsx(n,{width:24,height:24,DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),divider:!1,onClick:r,children:i},a+"-"+t)})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebNewsletterEmojiSettings.react",["fbt","WAWebCommonNewsletterEnums","WAWebDefaultReactions","WAWebEmoji","WAWebEmoji.react","WAWebRadio.react","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={title:{color:"xhslqc4",$$css:!0}};function m(){return c.jsx("span",{children:o("WAWebDefaultReactions").DEFAULT_REACTIONS.map(function(e,t){var n=o("WAWebEmoji").EmojiUtil.normalizeEmojiFromString(e),a=t+1===o("WAWebDefaultReactions").DEFAULT_REACTIONS.length?o("WAWebUISpacing").uiMargin.end0:o("WAWebUISpacing").uiMargin.end4;return n!=null?c.createElement("span",babelHelpers.extends({},(u||(u=r("stylex"))).props(a),{key:"newsletter-emoji-container-"+t}),c.jsx(r("WAWebEmoji.react"),{emoji:n,size:"small",element:"span"},"newsletter-emoji-"+t)):null})})}m.displayName=m.name+" [from "+i.id+"]";var p=[{getLabel:function(){return s._(/*BTDS*/"Cualquier emoji")},value:o("WAWebCommonNewsletterEnums").NewsletterReactionCodesSetting.All},{getLabel:function(){return s._(/*BTDS*/"Solo predeterminadas ({reaction-emojis})",[s._param("reaction-emojis",c.jsx(m,{}))])},value:o("WAWebCommonNewsletterEnums").NewsletterReactionCodesSetting.Basic},{getLabel:function(){return s._(/*BTDS*/"Ninguna")},value:o("WAWebCommonNewsletterEnums").NewsletterReactionCodesSetting.None}];function _(e){var t=e.currentlySelected,n=e.onClick,a=c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.title,o("WAWebUISpacing").uiMargin.bottom15]),{children:s._(/*BTDS*/"Qu\u00e9 reacciones pueden enviar los seguidores")}));return c.jsxs(c.Fragment,{children:[a,c.jsx(o("WAWebRadio.react").RadioGroup,{name:"newsletter-reaction-codes-setting",checkedValue:t,theme:o("WAWebRadio.react").RadioWithLabelThemeEnum.LARGE,onChange:n,options:p.map(function(e){return{value:e.value,label:e.getLabel(),onChange:n,testid:"newsletter-emoji-setting-"+e.value}})})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebNewsletterSettingsDrawer.react",["fbt","WALogger","WAWebCmd","WAWebCommonNewsletterEnums","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebEditNewsletterMetadataAction","WAWebNewsletterEmojiSettings.react","WAWebUISpacing","asyncToGeneratorRuntime","react","stylex","useWAWebListener","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=r("react")),p=(u||(u=o("react"))).useCallback;function _(e,t){return f.apply(this,arguments)}function f(){return f=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){try{return yield o("WAWebEditNewsletterMetadataAction").editNewsletterMetadataAction(t,{editReactionCodesSetting:!0},{reactionCodesSetting:n})}catch(n){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[handleReactionCodesSettingChange][editNewsletterMetadataAction] Error editing reaction settings for newsletter ",""])),t.id).tags("reactions","newsletter").sendLogs("newsletter-edit-reaction-settings-failed")}}),f.apply(this,arguments)}var g={body:{flexShrink:"x2lah0s",flexGrow:"x1iyjqo2",flexBasis:"xdl72j9",paddingBottom:"x1w3bhph",$$css:!0},drawer:{backgroundColor:"x1280gxy",$$css:!0}};function h(e){var t,a=e.adminFunnelLogger,i=e.isFirstLevel,l=e.newsletter,u=e.onBack,d=e.ref,f=p((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n=(t=o("WAWebCommonNewsletterEnums").NewsletterReactionCodesSetting.cast(e))!=null?t:o("WAWebCommonNewsletterEnums").NewsletterReactionCodesSetting.Basic;a.logReactionSetting(n),yield _(l,n)});return function(t){return e.apply(this,arguments)}})(),[l,a]),h=o("useWAWebModelValues").useOptionalModelValues(l==null?void 0:l.newsletterMetadata,["reactionCodesSetting"]);o("useWAWebListener").useListener(o("WAWebCmd").Cmd,"edit_newsletter_description",function(){return u()});var y=i===!0?{onCancel:u}:{onBack:u};return m.jsxs(r("WAWebDrawer.react"),{ref:d,theme:"striped",testid:void 0,xstyle:g.drawer,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,babelHelpers.extends({title:s._(/*BTDS*/"Ajustes del canal"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL},y,{rtlFixIfOnDarwin:!0,testid:void 0})),m.jsx(r("WAWebDrawerBody.react"),{children:m.jsx("section",babelHelpers.extends({},(c||(c=r("stylex"))).props([g.body,o("WAWebUISpacing").uiMargin.horiz30,o("WAWebUISpacing").uiMargin.vert30]),{"data-testid":void 0,children:m.jsx(r("WAWebNewsletterEmojiSettings.react"),{onClick:f,currentlySelected:(t=h==null?void 0:h.reactionCodesSetting)!=null?t:o("WAWebCommonNewsletterEnums").NewsletterReactionCodesSetting.Basic})}))})]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebNewsletterTransferOwnershipConfirmationModal.react",["fbt","WAWebChangeNewsletterOwnerAction","WAWebContactCollection","WAWebDemoteNewsletterAdminAction","WAWebModalManager","WAWebName.react","WAWebPhoneNumberConfirmationModal.react","react"],(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=e.contact,a=e.onTransferCompletion,i=e.shouldDismissSelfAsAdmin,l=d(function(){o("WAWebModalManager").ModalManager.close()},[]),u=[{action:function(){return o("WAWebChangeNewsletterOwnerAction").changeNewsletterOwnerAction(t,n)},onSuccess:function(){a()},errorMessage:s._(/*BTDS*/"No se pudo transferir la propiedad. Por favor, vuelve a intentarlo.")}];if(i){var m=o("WAWebContactCollection").ContactCollection.getMeContact();m!=null&&u.push({action:function(){return o("WAWebDemoteNewsletterAdminAction").demoteNewsletterAdminAction(t,m)},errorMessage:s._(/*BTDS*/"Se transfiri\u00f3 la propiedad, pero no fue posible eliminarte como admin.")})}return c.jsx(r("WAWebPhoneNumberConfirmationModal.react"),{actions:u,actionType:"primary",actionText:s._(/*BTDS*/"Transferir"),contentText:s._(/*BTDS*/"Para confirmar la trasferencia, ingresa tu c\u00f3digo de pa\u00eds y tu n\u00famero de tel\u00e9fono."),successText:i?s._(/*BTDS*/"Se transfiri\u00f3 la propiedad a \"{new-channel-owner}\". Ya no eres admin.",[s._param("new-channel-owner",c.jsx(o("WAWebName.react").ContactName,{contact:n}))]):s._(/*BTDS*/"Se transfiri\u00f3 la propiedad a \"{new-channel-owner}\".",[s._param("new-channel-owner",c.jsx(o("WAWebName.react").ContactName,{contact:n}))]),onCompletion:l})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebNewsletterTransferOwnershipDrawer.react",["fbt","WAWebButton.react","WAWebCheckBox.react","WAWebCommonNewsletterStrings","WAWebDrawer.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebFlex.react","WAWebModalManager","WAWebName.react","WAWebNewsletterDrawerBodyParagraph.react","WAWebNewsletterImageWithAction.react","WAWebNewsletterTransferOwnershipConfirmationModal.react","WAWebPersonArrowIcon.react","WAWebText_DONOTUSE.react","WAWebUISpacing","WAWebUserShieldIcon.react","WAWebWarningIcon.react","react","stylex","useWAWebToggle"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["ref"],u,c,d=u||(u=r("react")),m={container:{display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x6s0dn4",justifyContent:"x1nhvcw1",paddingTop:"xijc0j3",paddingInlineEnd:"x15zmtp0",paddingBottom:"xq1608w",paddingInlineStart:"x1oiqv2n",flexGrow:"x1iyjqo2",$$css:!0},buttonContainer:{textAlign:"x2b8uid",$$css:!0},header:{textAlign:"x2b8uid",lineHeight:"x1evy7pa",overflowWrap:"xj0a0fe",$$css:!0},icon:{color:"xhslqc4",$$css:!0}};function p(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.chat,l=a.contact,u=r("useWAWebToggle")(!1),p=u[0],_=u[1];if(l==null)return null;var f=function(){o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebNewsletterTransferOwnershipConfirmationModal.react"),{chat:i,contact:l,onTransferCompletion:a.onTransferCompletion,shouldDismissSelfAsAdmin:p}))},g=s._(/*BTDS*/"\u00bfDeseas transferir la propiedad a {channel-name}?",[s._param("channel-name",d.jsx(o("WAWebName.react").ContactName,{contact:l}))]),h=[{title:s._(/*BTDS*/"No podr\u00e1s invitar administradores ni eliminarlos"),description:s._(/*BTDS*/"Tampoco podr\u00e1s eliminar el canal."),Icon:o("WAWebWarningIcon.react").WarningIcon,key:"no-longer-owner"},{title:s._(/*BTDS*/"Puedes seguir siendo admin. u optar por dejar de serlo"),description:s._(/*BTDS*/"Los administradores pueden enviar actualizaciones y cambiar el perfil y los ajustes del canal."),Icon:o("WAWebUserShieldIcon.react").UserShieldIcon,key:"remain-admin"}],y=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:"transfer-ownership-dismiss-self-as-admin-checkbox",testid:void 0,checked:p,onChange:_}),d.jsx(o("WAWebText_DONOTUSE.react").TextLabel,{htmlFor:"transfer-ownership-dismiss-self-as-admin-checkbox",testid:void 0,size:"16",className:(c||(c=r("stylex")))(o("WAWebUISpacing").uiMargin.horiz10),children:s._(/*BTDS*/"Dejar de ser admin.")})]});return d.jsxs(r("WAWebDrawer.react"),{ref:n,testid:void 0,children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:o("WAWebCommonNewsletterStrings").getNewsletterTransferOwnershipText(),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:a.onBack,onCancel:a.onCancel}),d.jsxs(r("WAWebDrawerSection.react"),{animation:!1,xstyle:m.container,children:[d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:d.jsx(r("WAWebNewsletterImageWithAction.react"),{chat:a.chat,actionTheme:"primary",Icon:o("WAWebPersonArrowIcon.react").PersonArrowIcon})}),d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:d.jsx(o("WAWebText_DONOTUSE.react").TextHeader,{xstyle:[m.header,o("WAWebUISpacing").uiMargin.top16,o("WAWebUISpacing").uiMargin.bottom16],size:"24",color:"dark",weight:"medium",children:g})}),h.map(function(e){var t=e.Icon,n=e.description,o=e.key,a=e.title;return d.jsx(r("WAWebNewsletterDrawerBodyParagraph.react"),{icon:d.jsx(t,{width:24,height:24,xstyle:m.icon}),title:a,description:n},o)}),y,d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[m.buttonContainer,o("WAWebUISpacing").uiMargin.top16],children:d.jsx(o("WAWebButton.react").Button,{testid:void 0,type:"primary",onClick:f,children:s._(/*BTDS*/"Transferir")})})]})]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebNewsletterTransferOwnershipSelectionDrawer.react",["fbt","WAWebChatContactList.react","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebDrawerSection.react","WAWebEmptyState.react","WAWebFbtCommon","WAWebFlatListController","WAWebL10NAccentFold","WAWebNewsletterAdminSelectionFlow.react","WAWebPhoneNumberSearch","WAWebSearchInput","WAWebUISpacing","react","useWAWebDebouncedSearch","useWAWebNewsletterAdmins"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useMemo,f=d.useRef,g={drawer:{backgroundColor:"x1280gxy",$$css:!0}};function h(e){var t=e.chat;return m.jsx(o("WAWebEmptyState.react").EmptyErrorStateWithButton,{xstyle:o("WAWebUISpacing").uiMargin.top20,center:!1,text:s._(/*BTDS*/"Tu canal no tiene administradores. Solo puedes transferir la propiedad a los administradores."),buttonText:s._(/*BTDS*/"Invitar a administradores"),onClick:function(){o("WAWebNewsletterAdminSelectionFlow.react").startAdminInviteFlow({chat:t})},testid:void 0})}h.displayName=h.name+" [from "+i.id+"]";function y(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.chat,l=a.onTransferOwnershipSelection,u=f(),c=r("useWAWebDebouncedSearch")(),d=c[0],y=c[1],C=r("WAWebFbtCommon")("Search"),b=_(function(){return new(r("WAWebFlatListController"))},[]),v=o("useWAWebNewsletterAdmins").useNewsletterAdmins(i),S=m.jsx(r("WAWebDrawerSection.react"),{animation:!1,theme:"list-section",children:m.jsx(o("WAWebSearchInput").DrawerSearchInput,{searchInputA11yLabel:C,placeholder:C,onSearch:y,focusOnMount:!1})}),R=p(function(){var e=o("WAWebL10NAccentFold").accentFold(d),t=o("WAWebPhoneNumberSearch").numberSearch(e);return(v!=null?v:[]).filter(function(n){return!e||n.searchMatchExact(e,t)})},[v,d]),L=p(function(){var e={contacts:R(),header:s._(/*BTDS*/"Administradores")};return m.jsx(r("WAWebChatContactList.react"),{ref:u,contacts:[],flatListController:b,onClick:function(t,n){l(n)},showMe:!1,showBot:!1,showPersonGroupDivisionHeader:!0,separateContacts:e,searchText:d})},[R,b,l,d]),E=v==null||(v==null?void 0:v.length)===0?m.jsx(h,{chat:i}):L();return m.jsxs(r("WAWebDrawer.react"),{ref:n,xstyle:g.drawer,testid:void 0,children:[m.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:s._(/*BTDS*/"Selecciona un nuevo propietario"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.SMALL,onBack:a.onBack,onCancel:a.onCancel}),S,m.jsx(r("WAWebDrawerBody.react"),{children:E})]})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebInfoFlow.react",["fbt","WAAbortError","WAJids","WALogger","WANullthrows","WAPromiseRaceAbort","WAWebABProps","WAWebBizShowCartAction","WAWebBroadcastInfoDrawer.react","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatNotificationSettingsDrawer.react","WAWebChatSearchDrawer.react","WAWebCmd","WAWebCommunityFlow.react","WAWebCommunityFlowLoadable","WAWebCommunityHomeWrapper.react","WAWebCommunityTabbedInfoDrawer.react","WAWebConfirmPopup.react","WAWebContactEditDrawer.react","WAWebContactInfoDrawer.react","WAWebContactLogging","WAWebContactUtils","WAWebDefaultEphemeralityDrawer.react","WAWebDrawerContext","WAWebDrawerManagerGlobalContext","WAWebEnvironment","WAWebEphemeralDrawer.react","WAWebEphemeralKicNux.react","WAWebEventInfoFlowLoadable","WAWebEventsInChatDrawer.react","WAWebExistingGroupPermissionsDrawer.react","WAWebFbtCommon","WAWebFrontendChatGetters","WAWebGroupInfoDrawer.react","WAWebGroupInviteLinkDrawerLoadable","WAWebGroupInviteUtils.react","WAWebGroupMembershipApprovalRequestsFlow.react","WAWebGroupQueryJob","WAWebInfoFlowStep","WAWebKeptDrawer.react","WAWebLimitSharingDrawer.react","WAWebMediaGalleryDrawer.react","WAWebModalManager","WAWebNameGroupModal.react","WAWebNativeContactsNuxPopup.react","WAWebNewsletterAdminFunnelLogging","WAWebNewsletterAdminNotificationsDrawerLoadable","WAWebNewsletterDeleteDrawer.react","WAWebNewsletterEnforcementAlertFlowLoadable","WAWebNewsletterGatingUtils","WAWebNewsletterInfoDrawer.react","WAWebNewsletterInsightsDrawerLoadable","WAWebNewsletterLinkDrawer.react","WAWebNewsletterMembershipUtil","WAWebNewsletterProducerInsightsLogger","WAWebNewsletterSettingsDrawer.react","WAWebNewsletterTransferOwnershipDrawer.react","WAWebNewsletterTransferOwnershipSelectionDrawer.react","WAWebNoop","WAWebNux","WAWebProductCatalogCatalogLinkDrawer.react","WAWebProductCatalogContext","WAWebProductCatalogLogEvents","WAWebProductCatalogProductDetailsDrawer.react","WAWebProductCatalogProductLinkDrawer.react","WAWebProductCatalogProductListDrawer.react","WAWebProductCatalogProductMoreInformationDrawer.react","WAWebProductCatalogSession","WAWebProductCollectionCatalogViewDrawer.react","WAWebProductCollectionCollectionContentDrawer.react","WAWebQplQuickPerformanceLoggerMarkerIds","WAWebQplQuickPerformanceLoggerModule","WAWebQueryAndUpdateNewslettersMetadataAction","WAWebSentForAdminReviewFlow.react","WAWebSetSubjectGroupAction","WAWebStarredDrawerLoadable","WAWebStateUtils","WAWebUim","WAWebUserPrefsNuxPreferences","WAWebVerificationDrawerLoadable","WAWebWallpaperDrawer.react","WAWebWamEnumAdminFlowType","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumChannelLinkShareEntryPoint","WAWebWamEnumDisappearingModeEntryPointType","WAWebWamEnumEphemeralSettingEntryPointType","asyncToGeneratorRuntime","err","react","useWAWebChatValues","useWAWebFlow","useWAWebStableCallback","useWAWebUnmountSignal"],(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.useContext,f=m.useEffect,g=m.useMemo,h=m.useRef,y=m.useState,C=function(t){var e;if(o("WAWebChatGetters").getIsGroup(t))return o("WAWebInfoFlowStep").InfoFlowStep.GroupInfo;if(o("WAWebChatGetters").getIsBroadcast(t))return o("WAWebInfoFlowStep").InfoFlowStep.BroadcastInfo;if(o("WAWebChatGetters").getIsUser(t))return o("WAWebInfoFlowStep").InfoFlowStep.ContactInfo;if(o("WAWebChatGetters").getIsNewsletter(t))return o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInfo;var n=(e=o("WAWebFrontendChatGetters").getKind(t))!=null?e:"undefined";throw r("err")("Invalid chat provided of kind "+n)};function b(t){var a,i,l,c,d=t.ref,m=babelHelpers.objectWithoutPropertiesLoose(t,u),b=m.chat,v=m.initialStep,S=v===void 0?C(b):v,R=m.showFullGroupDescription,L=m.scrollToParticipantList,E=m.profileEntryPoint,k=m.onBack,I=m.onEnd,T=m.displayName,D=m.sourceGroupChatOrNewsletter,x=m.focusNewsletterDescriptionOnMount,$=m.focusGroupSubjectOnMount,P=m.focusGroupDescriptionOnMount,N=m.newsletterLinkShareScreenEntryPoint,M=m.threadId,w=h(0),A=r("useWAWebStableCallback")(function(e){w.current=e}),F=h(void 0),O=_(o("WAWebDrawerContext").DrawerContext),B=g(function(){return new(o("WAWebNewsletterProducerInsightsLogger")).NewsletterProducerInsightsLogger({wid:b.id})},[b.id]),W=o("useWAWebFlow").useFlow(S,{transitions:o("useWAWebFlow").FlowTransitions.DrawerRight,onEnd:I}),q=W[0],U=W[1],V=g(function(){return new(o("WAWebNewsletterAdminFunnelLogging")).NewsletterAdminFunnelLogger(o("WAWebWamEnumAdminFlowType").ADMIN_FLOW_TYPE.EDIT)},[]),H=h(N),G=h("reach"),z=h(null),j=h(null),K=y(null),Q=K[0],X=K[1],Y=y(void 0),J=Y[0],Z=Y[1],ee=y(null),te=ee[0],ne=ee[1],re=y(null),oe=re[0],ae=re[1],ie=y(null),le=ie[0],se=ie[1],ue=y(null),ce=ue[0],de=ue[1],me=y(null),pe=me[0],_e=me[1],fe=y(null),ge=fe[0],he=fe[1],ye=h(),Ce=o("useWAWebChatValues").useChatValues(b.id,[o("WAWebChatGetters").getIsUser]),be=Ce[0];f(function(){var e;if(o("WAWebChatGetters").getIsGroup(b)&&(e=b.groupMetadata)!=null&&e.hasJoined())o("WAWebGroupQueryJob").queryAndUpdateGroupMetadataById({id:b.id,request:"enter_group_info"});else if(be){if(b.contact.isBusiness){var t;(t=o("WAWebDrawerManagerGlobalContext").getGlobalDrawerManager("right"))==null||t.updateContext(o("WAWebProductCatalogContext").buildProductCatalogContext(new(o("WAWebProductCatalogSession")).ProductCatalogSession,o("WAWebContactUtils").getMaybeBizPlatformForLogging(b.contact.id.toString()),o("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_PROFILE))}}else if(o("WAWebChatGetters").getIsNewsletter(b)){var n;o("WAWebQueryAndUpdateNewslettersMetadataAction").queryAndUpdateNewsletterMetadataAction(o("WAJids").toNewsletterJid(b.id.toString()),{fields:babelHelpers.extends({name:!0,picture:!0,description:!0,inviteLink:!0,handle:!0,subscribers:!0,privacy:!0,verification:!0,state:!0},!((n=b.newsletterMetadata)!=null&&n.isPreview)&&{muted:!0,membership:!0})})}},[]);var ve=function(t,n){X(t),Z(n),U.push(o("WAWebInfoFlowStep").InfoFlowStep.ProductDetail)},Se=function(t){ne(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.ProductCollection)},Re=function(t){X(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.ProductLink)},Le=function(t){X(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.ProductInfo)},Ee=function(t,n){ae(t),se(n),U.push(o("WAWebInfoFlowStep").InfoFlowStep.CatalogLink)},ke=function(t){var e=o("WAWebProductCatalogContext").getProductCatalogContext(O),n=r("WAWebBizShowCartAction")(t,b,e);n&&(de(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.Cart))},Ie=function(t,n){var e,r=(e=le==null?void 0:le.id)!=null?e:b.id;o("WAWebQplQuickPerformanceLoggerModule").QPL.markerStart(o("WAWebQplQuickPerformanceLoggerMarkerIds").QuickLogMarkerId.WHATSAPP_CATALOG_COLLECTIONS_VIEW,{annotations:{string:{EntryPoint:n}}}),o("WAWebProductCatalogLogEvents").logCarouselViewMoreClick({catalogOwnerWid:r,catalogContext:t}),U.push(o("WAWebInfoFlowStep").InfoFlowStep.Catalog)},Te=function(){o("WAWebModalManager").ModalManager.open(p.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){return o("WAWebModalManager").ModalManager.close()},okText:r("WAWebFbtCommon")("OK"),children:s._(/*BTDS*/"Solo los administradores pueden editar la informaci\u00f3n del grupo")}))},De=r("useWAWebUnmountSignal")(),xe=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){var a=t;yield r("WAPromiseRaceAbort")(o("WAWebSetSubjectGroupAction").setGroupSubject(m.chat,a),De).catch(o("WAAbortError").catchAbort(r("WAWebNoop"))).catch(function(t){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["name_group_modal:onSetSubject failed"])))}),o("WAWebModalManager").ModalManager.close(),U.push(o("WAWebInfoFlowStep").InfoFlowStep.GroupInviteLink)});return function(n,r){return t.apply(this,arguments)}})(),$e=function(){var e;if(o("WAWebChatGroupUtils").isInviteGrowthLockedGroup(b)){var t,n,a=!!((t=b.groupMetadata)!=null&&t.participants.iAmAdmin()),i=(n=b.groupMetadata)==null?void 0:n.memberLinkMode;o("WAWebGroupInviteUtils.react").openGrowthLockedModal(a,!0,i);return}if((e=b.groupMetadata)!=null&&e.isUnnamed){var l,u,c=s._(/*BTDS*/"Se cre\u00f3 este grupo sin un nombre. As\u00edgnale uno para compartir el enlace del grupo.");o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebNameGroupModal.react"),{chat:b,subtext:c,onCancel:function(){return o("WAWebModalManager").ModalManager.close()},onOK:xe,editable:(l=b.groupMetadata)==null?void 0:l.canSetSubject(),editRestrictionInfo:(u=b.groupMetadata)!=null&&u.restrict?Te:void 0}))}else U.push(o("WAWebInfoFlowStep").InfoFlowStep.GroupInviteLink)},Pe=function(t){var e=t||b.contact;e.id.isRegularUser()&&(se(e),U.push(o("WAWebInfoFlowStep").InfoFlowStep.Verification))},Ne=function(t){se(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.ContactInfo)},Me=function(t){se(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterContactInfo)},we=function(t){_e(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.DefaultEphemerality)},Ae=function(){o("WAWebUserPrefsNuxPreferences").shouldShowNUX(o("WAWebNux").NUX.EPHEMERAL)?o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebEphemeralKicNux.react"),{chat:b,fromMe:!0,onOk:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Ephemeral)}})):U.push(o("WAWebInfoFlowStep").InfoFlowStep.Ephemeral)},Fe=function(){U.push(o("WAWebInfoFlowStep").InfoFlowStep.LimitSharing)},Oe=function(){U.push(o("WAWebInfoFlowStep").InfoFlowStep.Notifications)},Be=function(){var e,t=(e=b.groupMetadata)==null?void 0:e.parentGroup;t&&o("WAWebCmd").Cmd.openCommunityHome(t,!0)},We=function(t){he(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.EventInfo)},qe=function(){U.push(o("WAWebInfoFlowStep").InfoFlowStep.AllEvents)},Ue=function(){U.push(o("WAWebInfoFlowStep").InfoFlowStep.Search)},Ve=function(){U.end(o("WAWebUim").DismissReason.LIFECYCLE)},He=function(){F.current=void 0,w.current=0,U.push(o("WAWebInfoFlowStep").InfoFlowStep.MediaGallery)},Ge=function(){F.current=o("WAWebMediaGalleryDrawer.react").GalleryDrawerTabs.PRODUCTS,U.pop()},ze=function(t){se(t),U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterTransferOwnership)},je=r("useWAWebStableCallback")(function(e){if(o("WAWebContactUtils").shouldShowNativeContactsNux()){var t=!!le;o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebNativeContactsNuxPopup.react"),{source:t?o("WAWebContactLogging").ContactSourceType.GroupMemberInfo:o("WAWebContactLogging").ContactSourceType.ContactInfo}));return}j.current=o("WAWebContactUtils").getContactDataFromContactModel(e),U.push(o("WAWebInfoFlowStep").InfoFlowStep.SaveContactFlow)}),Ke=r("useWAWebStableCallback")(function(e){if(o("WAWebContactUtils").shouldShowNativeContactsNux()){o("WAWebModalManager").ModalManager.open(p.jsx(r("WAWebNativeContactsNuxPopup.react"),{source:o("WAWebContactLogging").ContactSourceType.VCard}));return}j.current=e,U.push(o("WAWebInfoFlowStep").InfoFlowStep.SaveContactFlow)}),Qe=function(){if(U.step===o("WAWebInfoFlowStep").InfoFlowStep.SaveContactFlow){var e;(e=ye.current)==null||e.handleDismiss()}U.pop()};if(!U.step)return null;var Xe=D!=null?D:b,Ye;switch(U.step){case o("WAWebInfoFlowStep").InfoFlowStep.GroupInfo:if(o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(Xe)&&!o("WAWebChatGroupUtils").isDeactivatedCommunityAnnouncementGroup(Xe)&&(a=Xe.groupMetadata)!=null&&a.participants.iAmMember()){var Je,Ze=(Je=Xe.groupMetadata)==null?void 0:Je.parentGroup;Ye=p.jsx(o("WAWebCommunityFlowLoadable").CommunityFlowLoadable,{homeTheme:o("WAWebCommunityHomeWrapper.react").CommunityHomeTheme.TabbedInfo,initialStep:o("WAWebCommunityFlow.react").CommunityFlowStep.CommunityHome,initialTab:L||R?o("WAWebCommunityTabbedInfoDrawer.react").CommunityInfoTabs.Community:o("WAWebCommunityTabbedInfoDrawer.react").CommunityInfoTabs.Announcements,jid:Ze,onBack:function(){return U.pop()},scrollToMemberList:L})}else Ye=p.jsx(r("WAWebGroupInfoDrawer.react"),{chat:Xe,focusGroupSubjectOnMount:$,showFullGroupDescription:R,focusGroupDescriptionOnMount:P,scrollToParticipantList:L,groupMetadata:Xe.groupMetadata,contact:Xe.contact,profilePicThumb:Xe.contact.getProfilePicThumb(),onVerification:Pe,onContactInfo:Ne,onStarred:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Starred)},onKept:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Kept)},onWallpaperClick:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Wallpaper)},onSentForAdminReview:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.SentForAdminReview)},onNotificationSettings:Oe,onMediaGallery:He,onAdminSetting:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.GroupSettings)},onGroupInviteLink:$e,onPendingParticipants:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.PendingParticipants)},onEphemeral:Ae,onLimitSharing:Fe,onCommunityClick:Be,onEventInfo:We,onAllEvents:qe,onSearchMsgs:Ue,onClose:function(){D?U.end():U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.SentForAdminReview:Ye=p.jsx(r("WAWebSentForAdminReviewFlow.react"),{chat:b,ref:d,onClose:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.BroadcastInfo:Ye=p.jsx(r("WAWebBroadcastInfoDrawer.react"),{chat:b,contact:b.contact,onStarred:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Starred)},onMediaGallery:He,onClose:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.ContactInfo:Ye=p.jsx(r("WAWebContactInfoDrawer.react"),{contact:le||b.contact,onVerification:Pe,onStarred:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Starred)},onKept:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Kept)},onWallpaperClick:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Wallpaper)},onMediaGallery:He,onProductCatalog:Ie,onProductDetail:ve,onEphemeral:Ae,onLimitSharing:Fe,onSaveContact:je,onSearchMsgs:Ue,onClose:function(){return U.pop()},profileEntryPoint:E,onNotificationSettings:Oe,onBack:D?function(){o("WAWebChatGetters").getIsNewsletter(D)?U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInfo):U.push(o("WAWebInfoFlowStep").InfoFlowStep.GroupInfo)}:k,sourceGroupChatOrNewsletter:D,threadId:M});break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInfo:o("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&(Ye=p.jsx(r("WAWebNewsletterInfoDrawer.react"),{chat:Xe,newsletterMetadata:Xe.newsletterMetadata,profilePicThumb:Xe.contact.getProfilePicThumb(),adminFunnelLogger:V,onClose:function(){U.end()},onTransferNewsletterOwnership:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterTransferOwnershipSelection)},onTransferOwnershipSelection:ze,onDeleteNewsletter:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.DeleteNewsletter)},onAdminCenter:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterAdminCenter)},onSettings:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterSettings)},onNotificationSettings:Oe,onShareLink:function(){H.current=o("WAWebWamEnumChannelLinkShareEntryPoint").CHANNEL_LINK_SHARE_ENTRY_POINT.CHANNEL_INFO_PAGE,U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterLink)},onContactInfo:Me,onVerification:Pe,onViewInsights:function(t,n){G.current=t,z.current=n,U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInsights)},focusDescriptionOnMount:x}));break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterContactInfo:Ye=p.jsx(r("WAWebContactInfoDrawer.react"),{contact:le||b.contact,onVerification:Pe,onStarred:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Starred)},onKept:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Kept)},onWallpaperClick:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Wallpaper)},onMediaGallery:He,onProductCatalog:Ie,onProductDetail:ve,onEphemeral:Ae,onLimitSharing:Fe,onSaveContact:je,onSearchMsgs:Ue,onClose:function(){return U.pop()},profileEntryPoint:E,onNotificationSettings:Oe,onBack:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInfo)},sourceGroupChatOrNewsletter:Xe});break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterSettings:o("WAWebNewsletterGatingUtils").isNewsletterReactionSettingsEnabled()&&(Ye=p.jsx(r("WAWebNewsletterSettingsDrawer.react"),{isFirstLevel:S===o("WAWebInfoFlowStep").InfoFlowStep.NewsletterSettings,onBack:function(){return U.pop()},newsletter:Xe,adminFunnelLogger:V}));break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterLink:o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(b.newsletterMetadata)&&(Ye=p.jsx(r("WAWebNewsletterLinkDrawer.react"),{entryPoint:H.current,onClose:function(){U.end()},onBack:U.previousStep===o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInfo?function(){return U.pop()}:null,newsletter:b}));break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterTransferOwnershipSelection:Ye=p.jsx(r("WAWebNewsletterTransferOwnershipSelectionDrawer.react"),{chat:Xe,onBack:function(){return U.pop()},onTransferOwnershipSelection:ze});break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterTransferOwnership:Ye=p.jsx(r("WAWebNewsletterTransferOwnershipDrawer.react"),{contact:le,chat:Xe,onBack:function(){return U.pop()},onTransferCompletion:function(){U.push(o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInfo)}});break;case o("WAWebInfoFlowStep").InfoFlowStep.DeleteNewsletter:Ye=p.jsx(r("WAWebNewsletterDeleteDrawer.react"),{chat:Xe,onBack:function(){return U.pop()},onCancel:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterAdminCenter:Ye=p.jsx(o("WAWebNewsletterEnforcementAlertFlowLoadable").WAWebNewsletterEnforcementAlertFlowLoadable,{chat:Xe,onClose:function(){return U.pop()},onBack:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.NewsletterInsights:Ye=p.jsx(o("WAWebNewsletterInsightsDrawerLoadable").NewsletterInsightsDrawerLoadable,{entryPoint:z.current,onBack:function(){return U.pop()},chat:b,selectedTab:G.current});break;case o("WAWebInfoFlowStep").InfoFlowStep.ProductDetail:Ye=p.jsx(r("WAWebProductCatalogProductDetailsDrawer.react"),{chat:b,collectionId:J,product:r("WANullthrows")(Q),onEnd:Ve,onBack:Ge,refreshCarousel:!1,onProductLinkClick:Re,onProductMoreInformation:Le,onCartClick:ke});break;case o("WAWebInfoFlowStep").InfoFlowStep.ProductCollection:{var et;Ye=p.jsx(r("WAWebProductCollectionCollectionContentDrawer.react"),{contact:le!=null?le:b.contact,onProductDetail:ve,catalogId:(et=le==null?void 0:le.id)!=null?et:b.id,onBack:function(){return U.pop()},onCatalogLinkClick:Ee,onCartClick:ke,collection:r("WANullthrows")(te)});break}case o("WAWebInfoFlowStep").InfoFlowStep.ProductLink:Ye=p.jsx(r("WAWebProductCatalogProductLinkDrawer.react"),{product:r("WANullthrows")(Q),onBack:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.ProductInfo:Ye=p.jsx(r("WAWebProductCatalogProductMoreInformationDrawer.react"),{product:r("WANullthrows")(Q),onBack:Ge});break;case o("WAWebInfoFlowStep").InfoFlowStep.CatalogLink:Ye=p.jsx(r("WAWebProductCatalogCatalogLinkDrawer.react"),{catalog:r("WANullthrows")(oe),contact:r("WANullthrows")(le),onBack:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.Cart:{var tt=o("WAWebProductCatalogContext").getProductCatalogContext(O),nt=r("WAWebBizShowCartAction")(r("WANullthrows")(ce),b,tt);Ye=r("WANullthrows")(nt);break}case o("WAWebInfoFlowStep").InfoFlowStep.Catalog:Ye=p.jsx(r("WAWebProductCollectionCatalogViewDrawer.react"),{contact:le!=null?le:b.contact,onProductDetail:ve,catalogId:(i=le==null?void 0:le.id)!=null?i:b.id,onBack:function(){return U.pop()},businessProfile:b.contact.businessProfile,onCatalogLinkClick:Ee,onCartClick:ke,onCollectionSeeAll:Se});break;case o("WAWebInfoFlowStep").InfoFlowStep.ProductList:Ye=p.jsx(r("WAWebProductCatalogProductListDrawer.react"),{contact:le!=null?le:b.contact,onProductDetail:ve,catalogId:(l=le==null?void 0:le.id)!=null?l:b.id,onBack:function(){return U.pop()},businessProfile:(c=le==null?void 0:le.businessProfile)!=null?c:b.contact.businessProfile,onCatalogLinkClick:Ee,onCartClick:ke});break;case o("WAWebInfoFlowStep").InfoFlowStep.Starred:Ye=p.jsx(o("WAWebStarredDrawerLoadable").StarredDrawerLoadable,{chat:b,starredMsgs:b.getStarredMsgs(),onClose:function(){return U.pop()},onSaveContact:Ke,threadId:M});break;case o("WAWebInfoFlowStep").InfoFlowStep.Wallpaper:Ye=p.jsx(r("WAWebWallpaperDrawer.react"),{chat:b,onClose:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.Kept:Ye=p.jsx(r("WAWebKeptDrawer.react"),{chat:b,keptMsgs:b.getKeptMsgs(),onClose:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.GroupSettings:Ye=p.jsx(r("WAWebExistingGroupPermissionsDrawer.react"),{chat:b,groupMetadata:b.groupMetadata,onClose:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.MediaGallery:Ye=p.jsx(o("WAWebMediaGalleryDrawer.react").MediaGalleryDrawer,{chat:b,onBack:function(){return U.pop()},onProductDetail:ve,setProductsScrollOffset:A,initialTab:F.current,productsScrollOffset:w.current,threadId:M});break;case o("WAWebInfoFlowStep").InfoFlowStep.GroupInviteLink:Ye=p.jsx(o("WAWebGroupInviteLinkDrawerLoadable").GroupInviteLinkDrawerLoadable,{chat:b,groupMetadata:r("WANullthrows")(b.groupMetadata),onBack:function(){return U.pop()},onGroupSettings:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.GroupSettings)}});break;case o("WAWebInfoFlowStep").InfoFlowStep.PendingParticipants:Ye=p.jsx(r("WAWebGroupMembershipApprovalRequestsFlow.react"),{chat:b,onBack:function(){return U.pop()}});break;case o("WAWebInfoFlowStep").InfoFlowStep.Verification:{var rt=r("WANullthrows")(le),ot=rt.id,at=ot.isLid()?ot:b.accountLid;Ye=p.jsx(r("WAWebVerificationDrawerLoadable").VerificationDrawerLoadable,{lid:at,contact:r("WANullthrows")(le),onClose:function(){return U.pop()},isFirstLevel:!1});break}case o("WAWebInfoFlowStep").InfoFlowStep.DefaultEphemerality:Ye=p.jsx(r("WAWebDefaultEphemeralityDrawer.react"),{onClose:function(){return U.pop()},entryPoint:r("WANullthrows")(pe)});break;case o("WAWebInfoFlowStep").InfoFlowStep.Ephemeral:{var it=o("WAWebChatGetters").getIsGroup(b)?o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.GROUP_CHAT_DISAPPEARING_MESSAGES_SETTING:o("WAWebWamEnumDisappearingModeEntryPointType").DISAPPEARING_MODE_ENTRY_POINT_TYPE.INDIVIDUAL_CHAT_DISAPPEARING_MESSAGES_SETTING;Ye=p.jsx(r("WAWebEphemeralDrawer.react"),{chat:b,showNux:o("WAWebUserPrefsNuxPreferences").shouldShowNUX(o("WAWebNux").NUX.EPHEMERAL),entryPoint:o("WAWebWamEnumEphemeralSettingEntryPointType").EPHEMERAL_SETTING_ENTRY_POINT_TYPE.CHAT_INFO,onClose:function(){return U.pop()},onCloseNux:function(){return U.push(o("WAWebInfoFlowStep").InfoFlowStep.Ephemeral)},onDDMSettingsClick:function(){return we(it)}});break}case o("WAWebInfoFlowStep").InfoFlowStep.SaveContactFlow:{var lt,st=!!le,ut=(lt=j.current)!=null?lt:o("WAWebContactUtils").getContactDataFromContactModel(b.contact),ct=function(){j.current=null,U.pop()};Ye=p.jsx(r("WAWebContactEditDrawer.react"),{ref:ye,origin:st?o("WAWebContactLogging").ContactSourceType.GroupMemberInfo:o("WAWebContactLogging").ContactSourceType.ContactInfo,contactData:ut,onSave:ct,onBack:ct});break}case o("WAWebInfoFlowStep").InfoFlowStep.EventInfo:{ge&&(Ye=p.jsx(o("WAWebEventInfoFlowLoadable").EventInfoFlowLoadable,{chat:b,msg:ge,onBack:function(){return U.pop()}},"event-info-drawer-"+ge.id.toString()));break}case o("WAWebInfoFlowStep").InfoFlowStep.AllEvents:{Ye=p.jsx(r("WAWebEventsInChatDrawer.react"),{chat:b,onEventClick:We,onBack:function(){return U.pop()}},"all-events-drawer-"+b.id.toString());break}case o("WAWebInfoFlowStep").InfoFlowStep.LimitSharing:{Ye=p.jsx(r("WAWebLimitSharingDrawer.react"),{chat:b,onClose:function(){return U.pop()}});break}case o("WAWebInfoFlowStep").InfoFlowStep.Notifications:{var dt=o("WAWebChatGetters").getIsNewsletter(b),mt=!dt&&(r("WAWebEnvironment").isWindows||o("WAWebABProps").getABPropConfigValue("enable_mention_everyone_receiver"));mt?Ye=p.jsx(r("WAWebChatNotificationSettingsDrawer.react"),{chat:b,onClose:function(){return U.pop()}}):dt&&(Ye=p.jsx(o("WAWebNewsletterAdminNotificationsDrawerLoadable").NewsletterAdminNotificationsDrawerLoadable,{onBack:function(){return U.pop()},chat:b}));break}case o("WAWebInfoFlowStep").InfoFlowStep.Search:{Ye=p.jsx(r("WAWebChatSearchDrawer.react"),{chat:o("WAWebStateUtils").unproxy(b),isInFlow:!0},"chat-search-"+b.id.toString());break}}return p.jsx(o("WAWebNewsletterProducerInsightsLogger").NewsletterProducerInsightsLoggerContext.Provider,{value:B,children:p.jsx(q,{ref:d,flow:U,displayName:T,requestDismiss:Qe,children:Ye})})}b.displayName=b.name+" [from "+i.id+"]",l.InfoFlow=b}),226); __d("WAWebMediaAudio.react",["fbt","WAWebEnvironment","WAWebMediaUrlProvider","WAWebPttAudioTag.react","WAWebStopEvent","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.msg,n=e.url,a=r("WAWebEnvironment").isWindows===!0?s._(/*BTDS*/"La reproducci\u00f3n de audio no es compatible con este dispositivo."):s._(/*BTDS*/"Tu navegador no es compatible con la reproducci\u00f3n de audio.");return u.jsx(r("WAWebPttAudioTag.react"),{url:n,className:"xh8yej3 xqolr7f x1anomrk",onClick:o("WAWebStopEvent").stopPropagation,autoPlay:!0,msg:t,controls:!0,testId:"media-audio",children:a})}c.displayName=c.name+" [from "+i.id+"]";function d(){return u.jsx("div",{className:"xzkaem6 xdzyupr x1vd4hg5 xx5krr6 xztyhrg x18d0r48",onClick:o("WAWebStopEvent").stopPropagation})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.mediaData,n=e.msg,a=o("useWAWebModelValues").useModelValues(t,["mediaStage","renderableUrl"]);return u.jsx(r("WAWebMediaUrlProvider"),{mediaData:a,placeholderRenderer:d,children:function(t){return u.jsx(c,{url:t,msg:n})}})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebMediaPdfSharerIframe.react",["WAWebTPFrameUrlBuilder","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useMemo;function c(e){var t=e.iframeRef,n=u(function(){return o("WAWebTPFrameUrlBuilder").getWAWebTPPdfSharerUrl()},[]);return s.jsx("iframe",{credentialless:!1,ref:t,src:n,className:"xh8yej3 x5yr21d",sandbox:"allow-scripts allow-same-origin allow-popups"})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebPdfViewerAppConfig",["WAWebABProps","WAWebConnModel","WAWebEnvironment","WAWebStylesEnv","WAWebUA","WAWebUserPrefsGeneral"],(function(t,n,r,o,a,i,l){"use strict";function e(){var e=o("WAWebUserPrefsGeneral").getSystemThemeMode(),t=o("WAWebUserPrefsGeneral").getTheme(),n=o("WAWebConnModel").Conn.isSMB;return e?n?"smbSystem":"system":t==="dark"?n?"smbDark":"dark":n?"smbLight":"light"}function s(){var e=o("WAWebABProps").getABPropConfigValue("wds_web_roboto");return e===3||e===2&&o("WAWebUA").UA.os===o("WAWebUA").OS_TYPE.MAC?!0:!!(e===1&&(r("WAWebEnvironment").isWindows||o("WAWebUA").UA.os===o("WAWebUA").OS_TYPE.WINDOWS))}function u(){var t;return{theme:e(),hasFontFix:(t=o("WAWebStylesEnv")).hasFontFix,hasSafariFix:t.hasSafariFix,isRobotoFontEnabled:s(),isColorRefreshEnabled:!0,isSmb:o("WAWebConnModel").Conn.isSMB,isOSMac:t.isOSMac,isOSWindows:t.isOSWin,isKeyboardUser:!1}}l.getWebTPAppConfig=u}),98); __d("WAWebTPPdfSharer",["Promise","WAWebTPWhatsAppNetBridge","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e,s=Number.MAX_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,c=Number.MAX_SAFE_INTEGER,d=(function(){function t(e){this.$1=new(o("WAWebTPWhatsAppNetBridge")).WAWebTPWhatsAppNetBridge(e)}var r=t.prototype;return r.publishAppConfig=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return this.$1.publishWhenReady("APP_CONFIG",e)});function t(t){return e.apply(this,arguments)}return t})(),r.listenForCancel=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=this;return new(e||(e=n("Promise")))(function(e,n){t.$1.listenOnce("PDF_SHARER_CANCEL",function(){return e()},{timeoutMs:s,onTimeout:function(){n()}})})});function r(){return t.apply(this,arguments)}return r})(),r.listenForGetPDf=function(){var t=this;return new(e||(e=n("Promise")))(function(e,n){t.$1.listenOnce("PDF_SHARER_GET_PDF",function(){return e()},{timeoutMs:u,onTimeout:function(){n()}})})},r.sharePdf=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,r,o){var a=this;return this.$1.publishWhenReady("PDF_SHARER_GET_PDF_DOCUMENT",{fileBuffer:t,fileName:r,sessionId:o}),new(e||(e=n("Promise")))(function(e,t){a.$1.listenOnce("PDF_SHARER_GET_PDF_RESPONSE",function(n){var r=n.success;r?e():t()},{timeoutMs:c,onTimeout:function(){t()}})})});function r(e,n,r){return t.apply(this,arguments)}return r})(),r.destroy=function(){this.$1.destroy()},t})();l.WAWebTPPdfSharer=d}),98); __d("WAWebMediaEditPdfModal.react",["WAWebConfirmPopup.react","WAWebFileSaverDownloadData","WAWebMediaPdfSharerIframe.react","WAWebModal.react","WAWebModalManager","WAWebNoop","WAWebPdfViewerAppConfig","WAWebSpinner.react","WAWebTPIframeUtils","WAWebTPPdfSharer","WAWebTPSessionUtils","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useEffect,m=u.useRef,p=u.useState;function _(e){var t=m(null),a=p(!1),i=a[0],l=a[1],s=p(!1),u=s[0],_=s[1],f=p(null),g=f[0],h=f[1],y=e.mediaData,C=e.msg;return d(function(){function e(){return t.apply(this,arguments)}function t(){return t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebFileSaverDownloadData").getMultiMsgDownloadData(C);e.blob&&h(e.blob)}),t.apply(this,arguments)}e()},[C]),d(function(){var e=t.current;if(!e)return r("WAWebNoop");var a=o("WAWebTPIframeUtils").getSandboxIframe();a.remove(),l(!0);var i=y.filename,s=new(o("WAWebTPPdfSharer")).WAWebTPPdfSharer(e);return s.publishAppConfig(o("WAWebPdfViewerAppConfig").getWebTPAppConfig()).catch(function(){s.destroy(),_(!0)}).finally(function(){window.setTimeout(function(){l(!1)},200)}),s.listenForCancel().then(function(){o("WAWebModalManager").ModalManager.close()}),s.listenForGetPDf().then(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(g){var e=yield g.arrayBuffer(),t=yield o("WAWebTPSessionUtils").createSessionId(e);yield s.sharePdf(e,i,t),o("WAWebModalManager").ModalManager.close()}})),function(){s.destroy()}},[y.filename,g]),c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{type:o("WAWebModal.react").ModalTheme.PdfEdit,testid:void 0,children:c.jsxs("div",{className:"x14luw17",children:[i&&!u&&c.jsx("div",{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d",children:c.jsx("div",{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d x78zum5 xl56j7k x6s0dn4",children:c.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:40})})}),!u&&c.jsx("div",{className:{0:"x10l6tqk x5yr21d xh8yej3 x13vifvy xg01cxk x1o0tod",1:"x10l6tqk x5yr21d xh8yej3 x13vifvy x1o0tod x1hc1fzr"}[!i<<0],children:c.jsx(r("WAWebMediaPdfSharerIframe.react"),{iframeRef:t})})]})})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98); __d("WAWebMediaPanelHeaderTestIds",["$InternalEnum"],(function(t,n,r,o,a,i){"use strict";var e=n("$InternalEnum")({CLOSE_BUTTON:"media-panel-header-close-button",DELETE_BUTTON:"media-panel-header-delete-button",DOWNLOAD_BUTTON:"media-panel-header-download-button",EDIT_PDF_BUTTON:"media-panel-header-edit-pdf-button",FORWARD_BUTTON:"media-panel-header-forward-button",GO_TO_MESSAGE_BUTTON:"media-panel-header-go-to-message-button",KEEP_BUTTON:"media-panel-header-keep-button",MORE_MENU_BUTTON:"media-panel-header-more-menu-button",PIN_BUTTON:"media-panel-header-pin-button",REACTIONS_BUTTON:"media-panel-header-reactions-button",REPLY_BUTTON:"media-panel-header-reply-button",SEARCH_PDF_BUTTON:"media-panel-header-search-pdf-button",STAR_BUTTON:"media-panel-header-star-button",UNKEEP_BUTTON:"media-panel-header-unkeep-button",UNPIN_BUTTON:"media-panel-header-unpin-button",UNSTAR_BUTTON:"media-panel-header-unstar-button"}),l=e;i.default=l}),66); __d("WAWebMediaEditPdfButton.react",["fbt","WAWebDropdownV2.react","WAWebMediaEditPdfModal.react","WAWebMediaPanelHeaderTestIds","WAWebMenuItems.react","WAWebModalManager","WAWebPopoverContext.react","WAWebUnstyledButton.react","WDSIconIcArrowDropDown.react","WDSIconIcEdit.react","WDSIconIcOpenInNew.react","WDSText.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e,d=c.useCallback,m=c.useRef,p={dropdownShadow:{boxShadow:"xs2e80n",$$css:!0},unifiedButtonMargin:{marginInlineStart:"x150mmf0",marginInlineEnd:"xqf2s3x",$$css:!0},customButton:{alignItems:"x6s0dn4",backgroundColor:"x1280gxy x1ubxc9n",borderTopColor:"xnj1f2r",borderInlineEndColor:"x2uibgs",borderBottomColor:"xkveyfu",borderInlineStartColor:"x12llq9",borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",columnGap:"x1s70e7g",cursor:"x1ypdohk x1s07b3s",display:"x78zum5",opacity:"x1hc1fzr x1lfpgzf",paddingTop:"x16ovd2e",paddingBottom:"x12xbjc7",paddingInlineStart:"xdx6fka",paddingInlineEnd:"xvtqlqk",paddingLeft:null,paddingRight:null,$$css:!0},buttonText:{marginTop:"xfl633f",$$css:!0},buttonIcon:{color:"x14ug900",height:"x1qx5ct2",width:"xw4jnvo",$$css:!0}};function _(e){var t=e.isDisabled,n=t===void 0?!1:t,a=e.mediaData,i=e.msg,l=m(null),c=o("WAWebPopoverContext.react").useWAWebPopoverControllerRef(),_=d(function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebMediaEditPdfModal.react"),{msg:i,mediaData:a}))},[i,a]),f=s._(/*BTDS*/"Editar PDF");return u.jsxs(u.Fragment,{children:[u.jsxs(r("WAWebUnstyledButton.react"),{ref:l,xstyle:[p.customButton,p.unifiedButtonMargin],disabled:n,testid:void 0,"aria-label":f,children:[u.jsx(r("WDSIconIcEdit.react"),{iconXstyle:p.buttonIcon}),u.jsx(r("WDSText.react"),{type:"Body2Emphasized",textAlign:"center",selectable:!1,colorName:"contentDefault",xstyle:p.buttonText,children:f}),u.jsx(r("WDSIconIcArrowDropDown.react"),{iconXstyle:p.buttonIcon})]}),u.jsx(o("WAWebDropdownV2.react").DropdownV2Menu,{controllerRef:c,xstyle:p.dropdownShadow,position:o("WAWebDropdownV2.react").PopoverPosition.Bottom,alignment:o("WAWebDropdownV2.react").PopoverAlignment.End,target:l,children:u.jsx(o("WAWebMenuItems.react").ActionMenuItem,{optionId:"editPdf",primary:f,detailLeft:u.jsx(r("WDSIconIcOpenInNew.react"),{height:20}),onSelect:_})})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebMediaViewerFlow.react",["Keys","Promise","WALogger","WANullthrows","WAWebAllMediaCollection","WAWebCarouselMsgUtils","WAWebChatMedia","WAWebFrontendConstants","WAWebFrontendMsgGetters","WAWebL10N","WAWebMediaIncrementalZoom","WAWebMediaTypes","WAWebMediaViewerModal.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebMsgGetters","WAWebMsgType","WAWebSuspendedGroupUtils","WAWebThumbList.react","WAWebUiActionWamEvent","WAWebVelocityAnimate","WAWebWamEnumUiActionType","WAWebWamGroupMetadataMetricUtils_WORKER_INCOMPATIBLE","WAWebWamMsgUtils","WAWebWamPrivateStatsUtils","asyncToGeneratorRuntime","react","useLazyRef","useWAWebForceUpdate","useWAWebListener","useWAWebPrevious","useWAWebStableCallback","useWAWebThrottledCallback","useWAWebUiIdle","useWAWebUnmountSignal","useWAWebVideoPlaybackRate"],(function(t,n,r,o,a,i,l){var e,s,u,c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useCallback,f=m.useEffect,g=m.useRef,h=m.useState,y=p.createContext(!1),C={duration:300,delay:100,easing:[.1,.82,.25,1]},b=function(t){var e=t.direction,n=[1,0],r=["0%","100%"];return e==="down"&&(n.reverse(),r.reverse()),{opacity:n,translateY:r}},v=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.direction,n=e.el;if(n)return r("WAWebVelocityAnimate")(n,b({direction:t}),C)});return function(n){return e.apply(this,arguments)}})();function S(t){"use no forget";var a,i,l,c=t.highlightedMsgIds,d=t.msg,m=t.shouldShowAllMedia,C=r("useWAWebUnmountSignal")(),b=r("useWAWebUiIdle")(),S=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),L=o("WAWebFrontendMsgGetters").getChat(d),E=!!((a=L.groupMetadata)!=null&&a.isLidAddressingMode),k=o("WAWebWamMsgUtils").msgIsLid(d,L.id,E),I=r("useLazyRef")(function(){return d.type===o("WAWebMsgType").MSG_TYPE.IMAGE?new(o("WAWebUiActionWamEvent")).UiActionWamEvent({uiActionType:o("WAWebWamEnumUiActionType").UI_ACTION_TYPE.IMAGE_OPEN,uiActionPreloaded:d.mediaData.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED,isLid:k}):null}),T=r("useLazyRef")(function(){var e=d;if(d.isCarouselCard){var t;e=(t=o("WAWebCarouselMsgUtils").getParentMsgFromCarouselCard(d))!=null?t:d}return o("WAWebChatMedia").constructMediaMsgs(o("WAWebFrontendMsgGetters").getChat(e),e)}),D=m===!0?o("WAWebAllMediaCollection").AllMediaCollection:null,x=T.current.length,$=r("useWAWebPrevious")(x),P=g(null),N=g(),M=g(),w=g(null),A=g(null),F=g(null),O=h(d),B=O[0],W=O[1],q=h(!1),U=q[0],V=q[1],H=h(R(B)),G=H[0],z=H[1],j=r("useWAWebPrevious")(B),K=function(t){t===void 0&&(t=!1);var e=A.current,n=F.current,o=w.current;if(!(!e||!n||!o)){var a=0;o instanceof HTMLElement&&(a=o.clientWidth/2-e.clientWidth/2),r("WAWebVelocityAnimate")(n,"stop");var i=0;t&&(i=300),r("WAWebVelocityAnimate")(o,"scroll",{duration:i,container:n,offset:a,axis:"x",easing:[.1,.82,.25,1]})}};f(function(){var e=function(t){t&&r("WAWebVelocityAnimate")(t,{opacity:[1,0],translateY:["0%","100%"]},{duration:300,delay:100,easing:[.1,.82,.25,1]}).then(function(){C.aborted||z(!1)})};K(),R(d)&&e(A.current)},[]),f(function(){x>($!=null?$:0)&&K()},void 0);var Q=_(function(e){b(function(){T.current.loadMoreAroundIfNeeded(e)}),W(e)},[T,b]),X=function(){var e=-1;if(!c||!B)return e;var t=B.id.toString();if(!c.has(t))return e;var n=0;return c.forEach(function(r){r===t&&(e=n),n++}),e},Y=function(n){var t,r=D!=null?D:T.current;if(n&&n.stopPropagation(),!U){var a=B;if(a){var i=null;if(i=r.getAfter(a),i){Q(i);return}T.current.hasMediaAfter&&(N.current||(N.current=(t=T.current.queryMedia({chat:o("WAWebFrontendMsgGetters").getChat(d),msg:d,direction:"after"}))==null?void 0:t.then(function(e){C.aborted||typeof(e==null?void 0:e.length)=="number"&&e.length>0&&B===d&&Y()}).catch(function(t){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["query media msgs error: "])))}).finally(function(){N.current=null})))}}},J=function(t){var e,n=D!=null?D:T.current;if(t&&t.stopPropagation(),!U){var r=B;if(r){var a=null;if(a=n.getBefore(r),a){Q(a);return}T.current.hasMediaBefore&&(M.current||(M.current=(e=T.current.queryMedia({chat:o("WAWebFrontendMsgGetters").getChat(d),msg:d,direction:"before"}))==null?void 0:e.then(function(e){C.aborted||typeof(e==null?void 0:e.length)=="number"&&e.length>0&&B===d&&J()}).catch(function(e){o("WALogger").WARN(s||(s=babelHelpers.taggedTemplateLiteralLoose(["query media msgs error: "])))}).finally(function(){M.current=null})))}}},Z=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(!e.defaultPrevented&&!(B&&!R(B))){var t=yield new(u||(u=n("Promise")))(function(e){o("WAWebModalManager").ModalManager.exists(e)});if(!(t&&D==null)){var a=r("WAWebL10N").isRTL();e.keyCode===r("Keys").LEFT?a?Y():J():e.keyCode===r("Keys").RIGHT&&(a?J():Y())}}});return function(n){return e.apply(this,arguments)}})(),ee=null;d.type===o("WAWebMsgType").MSG_TYPE.IMAGE&&(ee=function(){var e=I.current;if(e){var t,n=o("WAWebWamGroupMetadataMetricUtils_WORKER_INCOMPATIBLE").getGroupCountMetricsFromChatWid((t=o("WAWebFrontendMsgGetters").getChat(d))==null?void 0:t.id);n!=null&&e.set(n),e.markUiActionT(),e.commit(),I.current=null}o("WAWebWamPrivateStatsUtils").logUiActionShadowPrivateStatsTestEvents()});var te=function(t){V(t)},ne=function(){o("WAWebModalManager").ModalManager.closeMedia()},re=function(){var e=function(t){t&&r("WAWebVelocityAnimate")(t,{opacity:[0,1],translateY:["100%","0%"]},{duration:300,easing:[.1,.82,.25,1]})};R(d)&&e(A.current)},oe=function(){R(d)&&v({el:A.current,direction:"up"})},ae=function(){R(d)&&v({el:A.current,direction:"down"})},ie=r("useWAWebVideoPlaybackRate")(null),le=ie.resetAllPlaybackRates,se=r("useWAWebStableCallback")(function(){W(null),le(),ne()});f(function(){return function(){le()}},[le]),o("useWAWebListener").useListener(R(B)?null:B,"revoked",se);var ue=R(B)?T.current:null;o("useWAWebListener").useListener(ue,"remove",function(e,t,n){var o=T.current,a=B;if(o.includes(e)||a!=null&&a.id!=null&&a.id.toString()!==e.id.toString()){S();return}var i=n.index;o.length===0?ne():o.length===i?Q(r("WANullthrows")(o.at(i-1))):Q(r("WANullthrows")(o.at(i)))}),o("useWAWebListener").useListener(ue,"reset",function(){ne()}),o("useWAWebListener").useListener(ue,"query_media_after",function(){S()}),o("useWAWebListener").useListener(ue,"query_media_before",function(){var e=F.current;e&&(P.current=e.scrollWidth,e instanceof HTMLElement&&S())}),o("useWAWebListener").useListener(window,"keydown",Z),f(function(){b(function(){B&&T.current.loadMoreAroundIfNeeded(B)})},[B,T,b]),f(function(){if(j!==B)K(!0);else{var e=F.current;if(!e||P.current==null||P.current===0)return;e instanceof HTMLElement&&(e.scrollLeft+=e.scrollWidth-P.current),P.current=null}},[B,j]);var ce=function(t,n,a){if(n.length!==0&&a!=null){if(n.hasMediaBefore&&at.scrollWidth-2*t.clientWidth){var i=r("WANullthrows")(n.last());b(function(){n.queryMedia({chat:o("WAWebFrontendMsgGetters").getChat(i),msg:i,direction:"after"}),S()})}}},de=r("useWAWebThrottledCallback")(ce,100),me=function(t){de(t.currentTarget,T.current,t.currentTarget.scrollLeft)},pe=_(function(e){w.current=e},[]);if(!B)return null;if(!o("WAWebMsgGetters").getIsNewsletterMsg(d)&&o("WAWebFrontendMsgGetters").getChat(d).isSuspendedOrTerminated()&&o("WAWebMiscGatingUtils").isGroupSuspendV2Enabled()){o("WAWebSuspendedGroupUtils").openSuspendedGroupMediaDownloadFailureModal();return}var _e=T.current,fe=D!=null?D:T.current,ge=fe.last(),he=_e.hasMediaAfter||B!==ge?Y:null,ye=fe.head(),Ce=_e.hasMediaBefore||B!==ye?J:null;return p.jsx(o("WAWebMediaIncrementalZoom").MediaIncrementalZoomCtxProvider,{activeMsg:B,children:p.jsx(y.Provider,{value:U,children:p.jsxs("div",{className:U?"img-zoomed-in":null,children:[p.jsx(r("WAWebMediaViewerModal.react"),{msg:B,mediaData:B.mediaData,onBack:ne,onExitAnimation:re,onNext:he,onPrev:Ce,onImgZoomIn:te,getZoomNode:t.getZoomNode,startTime:t.startTime,isAnimatingThumbs:G,onImageLoad:ee,msgIndexInAlbum:X(),albumSize:((i=t.highlightedMsgIds)==null?void 0:i.size)||0,shouldShowNumberText:(l=t.shouldShowNumberText)!=null?l:!1,shouldShowAllMedia:m}),o("WAWebMsgGetters").getHasThumbList(B)&&p.jsx(r("WAWebThumbList.react"),{activeMsg:B,mediaMsgs:D!=null?D:T.current,highlightedMsgIds:t.highlightedMsgIds,onSelectThumb:Q,onSetActiveThumb:pe,onScroll:me,setRefThumbsContainer:function(t){A.current=t},setRefThumbs:function(t){F.current=t},moveUpAnimation:oe,moveDownAnimation:ae})]})})})}S.displayName=S.name+" [from "+i.id+"]";function R(e){return e?o("WAWebMsgGetters").getHasThumbList(e):!0}l.MediaViewerFlowZoomContext=y,l.MediaViewerFlow=S}),98); __d("WAWebMediaViewerReportSpamPopupLoadable",["JSResourceForInteraction","WAWebLazyLoadedRetriable","WAWebLoadable","WAWebLoadingDrawer.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebMediaViewerReportSpamPopup.react").__setRef("WAWebMediaViewerReportSpamPopupLoadable").load();return e}),"WAWebMediaViewerReportSpamPopup"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLoadingDrawer.react"),{error:!!t.error})}});l.WAWebMediaViewerReportSpamPopupLoadable=c}),98); __d("WDSIconIcBookmark.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="ic-bookmark";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M12 18L7.8 19.8C7.13333 20.0833 6.5 20.0292 5.9 19.6375C5.3 19.2458 5 18.6917 5 17.975V5C5 4.45 5.19583 3.97917 5.5875 3.5875C5.97917 3.19583 6.45 3 7 3H17C17.55 3 18.0208 3.19583 18.4125 3.5875C18.8042 3.97917 19 4.45 19 5V17.975C19 18.6917 18.7 19.2458 18.1 19.6375C17.5 20.0292 16.8667 20.0833 16.2 19.8L12 18ZM12 15.8L17 17.95V5H7V17.95L12 15.8Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WDSIconWdsIcBookmarkSlash.react",["WDSSvgComponentBase.react","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-ic-bookmark-slash";function m(t){var n=t.height,o=t.iconXstyle,a=t.viewBox,i=t.width,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s;if(a){var m=a.height,p=m===void 0?0:m,_=a.width,f=_===void 0?0:_,g=a.x,h=g===void 0?0:g,y=a.y,C=y===void 0?0:y;s=[h,C,f,p].join(" ")}var b=24,v=24;return(n!=null||i!=null)&&(b=n,v=i),c.jsx(r("WDSSvgComponentBase.react"),babelHelpers.extends({},l,{children:c.jsxs("svg",{viewBox:s!=null?s:"0 0 24 24",height:b,width:v,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(o),fill:"none",children:[c.jsx("title",{children:d}),c.jsx("path",{d:"M17 5V13.5859L19 15.5859V5C19 3.89543 18.1046 3 17 3H7C6.8208 3 6.6471 3.02357 6.48184 3.06778L8.41406 5H17Z",fill:"currentColor"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 6.41421V18C5 19.4149 6.42905 20.3824 7.74278 19.857L12 18.1541L16.2572 19.857C16.9442 20.1317 17.6627 19.9983 18.1919 19.6061L19.2929 20.7071C19.6834 21.0976 20.3166 21.0976 20.7071 20.7071C21.0976 20.3166 21.0976 19.6834 20.7071 19.2929L4.70711 3.29289C4.31658 2.90237 3.68342 2.90237 3.29289 3.29289C2.90237 3.68342 2.90237 4.31658 3.29289 4.70711L5 6.41421ZM7 8.41421L16.3096 17.7239L12 16L7 18V8.41421Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebMediaPanelHeaderButtons.react",["fbt","$InternalEnum","Promise","WALogger","WAPromiseDelays","WAWebBotGating","WAWebChatGetters","WAWebChatMessageSearch","WAWebChatRefreshedIcon.react","WAWebCmd","WAWebColumnChangeDispatch","WAWebCommentsModal.react","WAWebComposeBoxActions","WAWebConfirmPopup.react","WAWebCopyToClipboard","WAWebDeleteRevokeMsgFlow.react","WAWebDevOnlyBadge.react","WAWebDrawerManager","WAWebDrawerManagerContext","WAWebDropdownItem.react","WAWebEnvironment","WAWebFbtCommon","WAWebFileSaver","WAWebForwardMessageModalLoadable","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebIcDownloadIcon.react","WAWebIcShareWindowsIcon.react","WAWebInfoRefreshedIcon.react","WAWebKeepInChatActions","WAWebLaunchIcon.react","WAWebMediaDocumentUtils","WAWebMediaPanelHeaderTestIds","WAWebMediaViewerConstants","WAWebMediaViewerReportSpamPopupLoadable","WAWebModalManager","WAWebMsgGetters","WAWebMsgType","WAWebNewsletterMembershipUtil","WAWebPinInChatCollection","WAWebPinMessageModal.react","WAWebPinnedMessagesUserJourneyLogger","WAWebProtobufsE2E.pb","WAWebReplyPrivatelyRefreshedIcon.react","WAWebReplyToMsgChatAction","WAWebReportGatingUtils","WAWebRevokeMetricUtils","WAWebSendPinMessageAction","WAWebSendSpamChatAction","WAWebSpamConstants","WAWebStateUtils","WAWebThreadMsgUtils","WAWebThumbsDownRefreshedIcon.react","WAWebWamEnumKicEntryPointType","WDSIconIcBookmark.react","WDSIconIcDelete.react","WDSIconIcForward.react","WDSIconIcGrade.react","WDSIconIcMood.react","WDSIconIcOpenInNew.react","WDSIconIcPushPin.react","WDSIconIcReply.react","WDSIconWdsIcBookmarkSlash.react","WDSIconWdsIcGradeSlash.react","WDSIconWdsIcPushPinSlash.react","WDSMenuBarItem.react","cr:13786","cr:23046","cr:7565","react","requireDeferred","useWAWebIsPinnedMsg","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_,f=_||(_=r("react")),g=r("requireDeferred")("WAWebAusOSAReportModalTrigger").__setRef("WAWebMediaPanelHeaderButtons.react"),h=n("$InternalEnum").Mirrored(["MenuBar","Dropdown"]);function y(e){var t=o("WAWebFrontendMsgGetters").getChat(e);o("WAWebFrontendChatGetters").getIsCAG(t)?o("WAWebModalManager").ModalManager.open(f.jsx(r("WAWebCommentsModal.react"),{parentMsgs:[e]})):(t.composeQuotedMsg=e,o("WAWebComposeBoxActions").ComposeBoxActions.focus(t))}function C(e){return s._(/*BTDS*/"Reportar a {contact_name}",[s._param("contact_name",e.displayName())])}C.displayName=C.name+" [from "+i.id+"]";function b(e){return o("WAWebMsgGetters").getIsSentByMe(e)||o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(o("WAWebFrontendMsgGetters").getChat(e).newsletterMetadata)}var v=function(){return(n("cr:23046")==null||n("cr:23046").isWindowsShareSheetEnabled==null?void 0:n("cr:23046").isWindowsShareSheetEnabled())===!0},S=function(r,a){r==null||r.stopPropagation(),n("cr:7565")==null||n("cr:7565").openMediaFile(o("WAWebStateUtils").unproxy(a),o("WAWebMediaDocumentUtils").displayFileOpeningToast).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Error while opening media file: ",""])),t)})};function R(e){var t=function(n){S(n,e)},r=function(r){r.stopPropagation(),n("cr:7565")&&n("cr:7565").saveMediaFile(o("WAWebStateUtils").unproxy(e)).then(function(){if(n("cr:13786"))return n("cr:13786").shareFile(o("WAWebStateUtils").unproxy(e))}).catch(function(e){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["Error while sharing a message: ",""])),e)})},a=[f.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:r,icon:f.jsx(o("WAWebIcShareWindowsIcon.react").IcShareWindowsIcon,{}),children:s._(/*BTDS*/"Compartir")},"share"),f.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:t,icon:f.jsx(o("WAWebLaunchIcon.react").LaunchIcon,{}),children:s._(/*BTDS*/"Abrir con")},"open-with")];return a}function L(e){var t=e.msg,n=e.onClose,a=e.type,i=o("WAWebDrawerManagerContext").useDrawerManagerContext("right"),l=function(r){var e;r==null||r.stopPropagation(),n();var a=(e=i.existsDrawer())!=null?e:!1;a&&o("WAWebColumnChangeDispatch").Column.column===2&&o("WAWebDrawerManager").DrawerManager.closeDrawerRight();var l=o("WAWebFrontendMsgGetters").getChat(t),s=o("WAWebChatMessageSearch").getSearchContext(l,o("WAWebStateUtils").unproxy(t).id),u;l.id.isBot()&&o("WAWebBotGating").isAiChatThreadsEnabled()&&(u=o("WAWebThreadMsgUtils").getMsgAiThread(t.unsafe())),o("WAWebCmd").Cmd.openChatAt({chat:l,msgContext:s,threadId:u!=null?u:void 0}).then(function(e){e&&(o("WAWebModalManager").ModalManager.close(),o("WAWebComposeBoxActions").ComposeBoxActions.focus(o("WAWebFrontendMsgGetters").getChat(t)))})};return a===h.Dropdown?f.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:l,icon:f.jsx(o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,{}),children:s._(/*BTDS*/"Ir al mensaje")}):f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,title:s._(/*BTDS*/"Ir al mensaje"),onClick:l})}L.displayName=L.name+" [from "+i.id+"]";function E(e){var t=e.msg;return f.jsx(o("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){o("WAWebCopyToClipboard").copyTextToClipboard(t.id.toString())},children:f.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Msg ID"})},"copy-id")}E.displayName=E.name+" [from "+i.id+"]";function k(e){var t=e.msg,a=e.onClose,i=e.theme,l=i===void 0?"default":i,u=function(r){a(),o("WAPromiseDelays").delayMs(o("WAWebMediaViewerConstants").CLOSE_ANIMATION_DURATION).then(function(){if(l==="media_hub"){var e=o("WAWebFrontendMsgGetters").getChat(t);return o("WAWebCmd").Cmd.openChatAt({chat:e,msgContext:{collection:e.msgs,msg:e.msgs.assertGet(t.id),key:t.id,enableAnimation:!0,highlightMsg:!0}})}return(p||(p=n("Promise"))).resolve(!0)}).then(y.bind(null,o("WAWebStateUtils").unproxy(t)))};return f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:r("WDSIconIcReply.react"),title:s._(/*BTDS*/"Responder"),onClick:u})}k.displayName=k.name+" [from "+i.id+"]";function I(e){var t=e.msg,n=e.onClose,a=function(a){o("WAWebModalManager").ModalManager.open(f.jsx(r("WAWebDeleteRevokeMsgFlow.react"),{chat:o("WAWebFrontendMsgGetters").getChat(t),msgList:[o("WAWebStateUtils").unproxy(t)],onDelete:n})),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.startSession(),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.messageSelected()};return f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:r("WDSIconIcDelete.react"),title:s._(/*BTDS*/"Eliminar"),onClick:a})}I.displayName=I.name+" [from "+i.id+"]";function T(e){var t=e.isMediaDownloadable,n=e.msg,a=e.onDownloadClick,i=e.type,l=function(t){t==null||t.stopPropagation(),o("WAWebFileSaver").FileSaver.initDownload(o("WAWebStateUtils").unproxy(n)),a==null||a()};if(!t())return null;var u=r("WAWebEnvironment").isWindows?s._(/*BTDS*/"Guardar como\u2026"):s._(/*BTDS*/"Descargar");return i===h.Dropdown?f.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:l,disabled:!t(),icon:f.jsx(o("WAWebIcDownloadIcon.react").IcDownloadIcon,{}),children:u}):f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:o("WAWebIcDownloadIcon.react").IcDownloadIcon,title:u,disabled:!t(),onClick:l})}T.displayName=T.name+" [from "+i.id+"]";function D(e){var t=e.msg,n=function(n){S(n,t)};return f.jsx(r("WDSMenuBarItem.react"),{icon:r("WDSIconIcOpenInNew.react"),title:s._(/*BTDS*/"Abrir con"),onClick:n})}D.displayName=D.name+" [from "+i.id+"]";function x(e){var t=e.msg,n=e.openReactionTray,a=e.sendReactionButtonRef;return t.type===o("WAWebMsgType").MSG_TYPE.STICKER?null:f.jsx(r("WDSMenuBarItem.react"),{ref:a,testid:void 0,icon:r("WDSIconIcMood.react"),title:s._(/*BTDS*/"Reaccionar"),onClick:n})}x.displayName=x.name+" [from "+i.id+"]";function $(e){var t=e.msg,n,a,i,l=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebMsgGetters").getIsKept]),u=l[0],c=function(n){n==null||n.stopPropagation(),o("WAWebKeepInChatActions").runKeepInChatUX(o("WAWebStateUtils").unproxy(t),o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.MEDIA)},d=function(n){n==null||n.stopPropagation(),o("WAWebKeepInChatActions").runUndoKeepInChatUX(o("WAWebStateUtils").unproxy(t),o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.MEDIA)};if(u&&t.canShowUnkeepOption())n=r("WDSIconWdsIcBookmarkSlash.react"),a=d,i=s._(/*BTDS*/"Dejar de conservar");else if(!u&&t.canShowKeepOption())n=r("WDSIconIcBookmark.react"),a=c,i=s._(/*BTDS*/"Conservar");else return null;return f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:n,title:i,onClick:a},"keep-in-chat-button")}$.displayName=$.name+" [from "+i.id+"]";function P(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebMsgGetters").getStar]),a=n[0],i,l,u;return a?(i=function(n){n==null||n.stopPropagation(),o("WAWebCmd").Cmd.sendUnstarMsgs(o("WAWebFrontendMsgGetters").getChat(t),[o("WAWebStateUtils").unproxy(t)])},l=r("WDSIconWdsIcGradeSlash.react"),u=s._(/*BTDS*/"_j{\"*\":\"No destacar mensajes\",\"_1\":\"No destacar mensaje\"}",[s._plural(1)])):(i=function(n){n==null||n.stopPropagation(),o("WAWebCmd").Cmd.sendStarMsgs(o("WAWebFrontendMsgGetters").getChat(t),[o("WAWebStateUtils").unproxy(t)])},l=r("WDSIconIcGrade.react"),u=s._(/*BTDS*/"_j{\"*\":\"Destacar\"}",[s._plural(1)])),f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:l,title:u,onClick:i},"star-button")}P.displayName=P.name+" [from "+i.id+"]";function N(e){var t=e.msg,n,a,i,l=r("useWAWebIsPinnedMsg")(t.id),u=o("WAWebFrontendMsgGetters").getChat(t);return l?(n=function(n){n==null||n.stopPropagation();var e=o("WAWebPinInChatCollection").PinInChatCollection.getByParentMsgKey(t.id);new(o("WAWebPinnedMessagesUserJourneyLogger")).PinnedMessagesUserJourneyLogger(u).messageMenuClickUnpin(t,e),o("WAWebSendPinMessageAction").sendPinInChatMsg(t,o("WAWebProtobufsE2E.pb").Message$PinInChatMessage$Type.UNPIN_FOR_ALL).catch(function(e){o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["Error while unpinning a message: ",""])),e)})},a=r("WDSIconWdsIcPushPinSlash.react"),i=s._(/*BTDS*/"Desfijar")):(n=function(n){n==null||n.stopPropagation();var e=new(o("WAWebPinnedMessagesUserJourneyLogger")).PinnedMessagesUserJourneyLogger(u);e.messageMenuClickPin(t),o("WAWebModalManager").ModalManager.open(f.jsx(r("WAWebPinMessageModal.react"),{msg:t,logger:e}))},a=r("WDSIconIcPushPin.react"),i=s._(/*BTDS*/"Fijar")),f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:a,title:i,onClick:n},"pin-button")}N.displayName=N.name+" [from "+i.id+"]";function M(e){var t=e.msg,n=function(n){n==null||n.stopPropagation(),o("WAWebFrontendMsgGetters").getIsUnsentMedia(t)?o("WAWebModalManager").ModalManager.open(f.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"No se puede reenviar"),onOK:function(){return o("WAWebModalManager").ModalManager.close()},okText:r("WAWebFbtCommon")("OK"),children:s._(/*BTDS*/"_j{\"*\":\"Espera hasta que se terminen de enviar los mensajes y se muestre una marca de verificaci\\u00f3n antes de reenviarlos.\",\"_1\":\"Espera hasta que se termine de enviar el mensaje y se muestre una marca de verificaci\\u00f3n antes de reenviarlo.\"}",[s._plural(1)])})):o("WAWebModalManager").ModalManager.open(f.jsx(o("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:[o("WAWebStateUtils").unproxy(t)],onClose:function(){return o("WAWebModalManager").ModalManager.close()}}),{transition:"modal-flow"})};return f.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:r("WDSIconIcForward.react"),title:s._(/*BTDS*/"Reenviar"),onClick:n})}M.displayName=M.name+" [from "+i.id+"]";function w(e){var t=e.msg,n=function(){r("WAWebReplyToMsgChatAction")(t)};return f.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:n,icon:f.jsx(o("WAWebReplyPrivatelyRefreshedIcon.react").ReplyPrivatelyRefreshedIcon,{}),children:s._(/*BTDS*/"Responder en privado")})}w.displayName=w.name+" [from "+i.id+"]";function A(e){var t=e.msg,n=function(n){n?o("WAWebSendSpamChatAction").sendMessageReportBlock(t,o("WAWebSpamConstants").SpamFlow.MediaViewer):o("WAWebSendSpamChatAction").sendMessageReport(t,o("WAWebSpamConstants").SpamFlow.MediaViewer).then(function(e){o("WAWebModalManager").ModalManager.close(),e!=null&&o("WAWebReportGatingUtils").isAusOSAReportingEnabled()&&g.load().then(function(t){return t.WAWebAusOSAReportModalTrigger(e)}).catch(function(e){o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["Error opening Aus OSA modal while reporting a message from media viewer: ",""])),e).sendLogs("report-message-aus-osa-from-media-viewer-error")})}).catch(function(e){o("WALogger").ERROR(m||(m=babelHelpers.taggedTemplateLiteralLoose(["Error while reporting a message from media viewer: ",""])),e).sendLogs("report-message-from-media-viewer-error")})},r=function(){var e,r;o("WAWebModalManager").ModalManager.open(f.jsx(o("WAWebMediaViewerReportSpamPopupLoadable").WAWebMediaViewerReportSpamPopupLoadable,{isBusiness:t.senderObj.isBusiness,isGroup:o("WAWebChatGetters").getIsGroup(o("WAWebFrontendMsgGetters").getChat(t)),isBizBot3p:(e=(r=o("WAWebFrontendMsgGetters").getChat(t).contact.businessProfile)==null?void 0:r.isBizBot3p)!=null?e:!1,onReport:n,onCancel:function(){return o("WAWebModalManager").ModalManager.close()},title:C(t)}))};return f.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:r,icon:f.jsx(o("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}),children:C(t)})}A.displayName=A.name+" [from "+i.id+"]";function F(e){var t=e.msg,n=e.onClose,r=function(r){n(),o("WAPromiseDelays").delayMs(o("WAWebMediaViewerConstants").CLOSE_ANIMATION_DURATION+250).then(o("WAWebCmd").Cmd.msgInfoDrawer.bind(o("WAWebCmd").Cmd,o("WAWebStateUtils").unproxy(t)))};return f.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:r,icon:f.jsx(o("WAWebInfoRefreshedIcon.react").InfoRefreshedIcon,{}),children:s._(/*BTDS*/"Info. del mensaje")})}F.displayName=F.name+" [from "+i.id+"]",l.ButtonType=h,l.delayedReplyCallback=y,l.getReportSpamTitle=C,l.canDeleteMsg=b,l.isShareSheetEnabled=v,l.handleOpenAnotherAppButtonClick=S,l.getDropdownMenuItemsForWindowsShareSheet=R,l.GoToButton=L,l.CopyMsgIdButton=E,l.ReplyButton=k,l.DeleteButton=I,l.DownloadButton=T,l.OpenWithAnotherAppButton=D,l.SendReactionButton=x,l.KeepInChatButton=$,l.StarButton=P,l.PinButton=N,l.ForwardButton=M,l.PrivateReplyButton=w,l.ReportSpamButton=A,l.MsgInfoButton=F}),226); __d("WAWebPdfViewerEventEmitter",["WAWebTypedEventEmitter"],(function(t,n,r,o,a,i,l){"use strict";var e=new(r("WAWebTypedEventEmitter"));l.pdfViewerEventEmitter=e}),98); __d("WAWebReportNewsletterPostSpamButton.react",["fbt","WAWebDropdownItem.react","WAWebFrontendMsgGetters","WAWebModalManager","WAWebReportNewsletterPostPopup.react","WAWebSpamConstants","WAWebThumbsDownRefreshedIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.msg,n=o("WAWebFrontendMsgGetters").getChat(t),a=function(){o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebReportNewsletterPostPopup.react"),{chat:n,msg:t,spamFlow:o("WAWebSpamConstants").SpamFlow.MediaViewer}))};return u.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:a,icon:u.jsx(o("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}),children:s._(/*BTDS*/"Reportar")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebSearchTheWebButton.react",["WAWebDropdownItem.react","WAWebModalManager","WAWebSearchRefreshedIcon.react","WAWebSearchTheWebCommonUtils","WAWebSearchTheWebEventLogger","WAWebWamEnumStwInteraction","WAWebWebSearchPopup.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=e.entryPoint,n=e.messageType,a=e.msg,i=e.stwFormat,l=function(){o("WAWebSearchTheWebEventLogger").logSTWEvent({stwEntryPoint:t,stwFormat:i,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.ENTRY_POINT_CLICKED,messageType:n}),o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebWebSearchPopup.react"),{message:a,entryPoint:t,stwFormat:i}))};return s.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:l,icon:s.jsx(o("WAWebSearchRefreshedIcon.react").SearchRefreshedIcon,{}),children:o("WAWebSearchTheWebCommonUtils").getHFMHeaderCTAText()})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebSendForAdminReviewButton.react",["fbt","WAWebDropdownItem.react","WAWebFrontendMsgGetters","WAWebModalManager","WAWebReportToAdminEventsLogger","WAWebReportToAdminPopup.react","WAWebThumbsDownRefreshedIcon.react","WAWebWamEnumReportToAdminInteraction","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.msg,n=function(){o("WAWebReportToAdminEventsLogger").logRTAReportingEvent({reportToAdminInteraction:o("WAWebWamEnumReportToAdminInteraction").REPORT_TO_ADMIN_INTERACTION.CLICK_SEND_FOR_ADMIN_REVIEW,groupId:o("WAWebFrontendMsgGetters").getChat(t).id.user}),o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebReportToAdminPopup.react"),{msg:t}))};return u.jsx(o("WAWebDropdownItem.react").DropdownItem,{action:n,icon:u.jsx(o("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}),children:s._(/*BTDS*/"Enviar para revisi\u00f3n de admin.")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebWamEnumWebtpEventType",[],(function(t,n,r,o,a,i){var e=Object.freeze({OPEN:1,CLOSE:2,DOWNLOAD_DOCUMENT_CLICK:3,EDIT_MENU_CLICK:4,ERROR:5,TELEMETRY:6,APP_PERF_DATA:7});i.WEBTP_EVENT_TYPE=e}),66); __d("WAWebWamEnumWebtpSourceType",[],(function(t,n,r,o,a,i){var e=Object.freeze({CHAT:1,MEDIA_HUB:2,CHAT_MEDIA:3,THUMBNAIL:4,MEDIA_VIEWER_HEADER:5,MESSAGE_BUBBLE:6,PDF_VIEWER_ERROR_SCREEN:7,PDF_VIEWER:8});i.WEBTP_SOURCE_TYPE=e}),66); __d("WAWebWebcWebtpPdfViewerWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebtpEventType","WAWebWamEnumWebtpSourceType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({WebcWebtpPdfViewer:[7506,{webtpErrorCode:[1,e.TYPES.STRING],webtpErrorMessage:[2,e.TYPES.STRING],webtpErrorStack:[3,e.TYPES.STRING],webtpErrorType:[4,e.TYPES.STRING],webtpEvent:[5,o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE],webtpFileSize:[6,e.TYPES.NUMBER],webtpSdkVersion:[7,e.TYPES.STRING],webtpSessionId:[8,e.TYPES.STRING],webtpSource:[9,o("WAWebWamEnumWebtpSourceType").WEBTP_SOURCE_TYPE],webtpTelemetryData:[10,e.TYPES.STRING]},[1,1,1],"regular"]},{WebcWebtpPdfViewer:[]});l.WebcWebtpPdfViewerWamEvent=s}),98); __d("WAWebTPLoggingUtils",["WACustomError","WAWebWamEnumWebtpEventType","WAWebWamEnumWebtpSourceType","WAWebWebcWebtpPdfViewerWamEvent","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.OPEN,webtpSessionId:e,webtpFileSize:t}).commit()}),s.apply(this,arguments)}function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.CLOSE,webtpSessionId:e,webtpFileSize:t}).commit()}),c.apply(this,arguments)}function d(e,t,n){var r=e==="media_viewer_header"?o("WAWebWamEnumWebtpSourceType").WEBTP_SOURCE_TYPE.MEDIA_VIEWER_HEADER:e==="message_bubble"?o("WAWebWamEnumWebtpSourceType").WEBTP_SOURCE_TYPE.MESSAGE_BUBBLE:e==="pdf_viewer_error_screen"?o("WAWebWamEnumWebtpSourceType").WEBTP_SOURCE_TYPE.PDF_VIEWER_ERROR_SCREEN:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})();new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.DOWNLOAD_DOCUMENT_CLICK,webtpSource:r,webtpSessionId:t,webtpFileSize:n}).commit()}function m(e,t,n,r){new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.APP_PERF_DATA,webtpSessionId:t,webtpFileSize:n,webtpTelemetryData:JSON.stringify(e),webtpSdkVersion:r}).commit()}function p(e,t,n,r){new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.TELEMETRY,webtpSessionId:t,webtpFileSize:n,webtpTelemetryData:JSON.stringify(e),webtpSdkVersion:r}).commit()}function _(e){return(function(e){if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="ajsError"&&"type"in e&&"stackTrace"in e&&"errorCode"in e&&"currEvent"in e&&"memInfo"in e){var t=e.type,n=e.stackTrace,r=e.errorCode,o=e.currEvent,a=e.memInfo;return{errorType:"ajsError",errorMessage:t+", currEvent: "+o,errorStack:n,errorCode:r,telemetryData:JSON.stringify({memInfo:a})}}if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="getContentDataFailed"&&"error"in e&&"size"in e){var i=e.error,l=e.size;return{errorType:"getContentDataFailed",errorMessage:i,errorStack:"",errorCode:"",telemetryData:JSON.stringify({size:l})}}if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="ajsInitFailed")return{errorType:"ajsInitFailed",errorMessage:"",errorStack:"",errorCode:""};if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="externalInitFailed"&&"error"in e&&"code"in e){var s=e.error,u=e.code;return{errorType:"externalInitFailed",errorMessage:s,errorStack:"",errorCode:u}}if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="unknownCommand"&&"apiName"in e){var c=e.apiName;return{errorType:"unknownCommand",errorMessage:"apiName: "+c,errorStack:"",errorCode:""}}if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="getContentBufferFailed"&&"error"in e){var d=e.error;return{errorType:"getContentBufferFailed",errorMessage:d,errorStack:"",errorCode:""}}if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="fileHandleNotFound"&&"apiName"in e){var m=e.apiName;return{errorType:"fileHandleNotFound",errorMessage:"apiName: "+m,errorStack:"",errorCode:""}}if((typeof e=="object"&&e!==null||typeof e=="function")&&e.message==="unexpectedAjsCommand"&&"apiName"in e){var p=e.apiName;return{errorType:"unexpectedAjsCommand",errorMessage:"apiName: "+p,errorStack:"",errorCode:""}}throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+e)})(e)}function f(e){if(e==null||typeof e!="object"||e instanceof o("WACustomError").TimeoutError||!("level"in e)||!("message"in e)||e.level!=="error")return null;var t=e.message;return t==="ajsError"||t==="getContentDataFailed"||t==="ajsInitFailed"||t==="externalInitFailed"||t==="unknownCommand"||t==="getContentBufferFailed"||t==="fileHandleNotFound"||t==="unexpectedAjsCommand"?e:null}function g(e){return e==null||typeof e!="object"?null:e instanceof Error||"stack"in e&&"message"in e?e:null}function h(e,t,n){return y.apply(this,arguments)}function y(){return y=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){if(e instanceof o("WACustomError").TimeoutError){var r;new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.ERROR,webtpErrorType:"timeout",webtpErrorMessage:e.message,webtpErrorStack:(r=e.stack)!=null?r:"",webtpSessionId:t,webtpFileSize:n}).commit();return}var a=f(e);if(a!=null){var i,l=_(a);new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.ERROR,webtpErrorType:l.errorType,webtpErrorMessage:l.errorMessage,webtpErrorStack:l.errorStack,webtpErrorCode:l.errorCode,webtpTelemetryData:(i=l.telemetryData)!=null?i:"",webtpSessionId:t,webtpFileSize:n}).commit();return}var s=g(e);if(s!=null){var u;new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.ERROR,webtpErrorType:"error",webtpErrorMessage:s.message,webtpErrorStack:(u=s.stack)!=null?u:"",webtpSessionId:t,webtpFileSize:n}).commit();return}new(o("WAWebWebcWebtpPdfViewerWamEvent")).WebcWebtpPdfViewerWamEvent({webtpEvent:o("WAWebWamEnumWebtpEventType").WEBTP_EVENT_TYPE.ERROR,webtpErrorType:"other",webtpErrorMessage:String(e),webtpSessionId:t,webtpFileSize:n}).commit()}),y.apply(this,arguments)}l.logDocumentOpenEvent=e,l.logDocumentCloseEvent=u,l.logDownloadDocumentClickEvent=d,l.logAppPerfDataEvent=m,l.logAppTelemetryDataEvent=p,l.convertTelemetryErrorEventToLogEvent=_,l.asTelemetryError=f,l.asError=g,l.logRenderErrorEvent=h}),98); __d("WAWebMediaPanelHeader.react",["fbt","WAWebCellFrame.react","WAWebChatGetters","WAWebClock","WAWebDebugGatingUtils","WAWebDetailImage.react","WAWebDropdown.react","WAWebDropdownItemSeparator.react","WAWebEmojiText.react","WAWebEnvironment","WAWebFbtCommon","WAWebFlex.react","WAWebFrontendMsgGetters","WAWebIcCloseIcon.react","WAWebMediaIncrementalZoom","WAWebMediaPanelHeader.styles","WAWebMediaPanelHeaderButtons.react","WAWebMediaPanelHeaderTestIds","WAWebMediaTypes","WAWebMediaViewerFlow.react","WAWebMenuBar.react","WAWebMessageAssociation.flow","WAWebMessageMeta.react","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgGetters","WAWebMsgReply","WAWebMsgViewCount","WAWebNewsletterGatingUtils","WAWebPdfViewerEventEmitter","WAWebReactionUserJourneyLogger","WAWebReactionsPanel.react","WAWebReactionsUtils","WAWebReportNewsletterPostSpamButton.react","WAWebSearchTheWebButton.react","WAWebSearchTheWebCommonUtils","WAWebSearchTheWebEventLogger","WAWebSendForAdminReviewButton.react","WAWebSendReactionMsgAction","WAWebSendReactionsTray.react","WAWebSendReactionsTrayContainer.react","WAWebTPLoggingUtils","WAWebTPPdfViewerGatingUtils","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebWamEnumReactionUserJourneyEntryPoint","WAWebWamEnumStwEntryPoint","WAWebWamEnumStwInteraction","WDSIconIcMoreVert.react","WDSIconWdsIcViewOnce.react","WDSMenuBarItem.react","cr:12529","cr:7565","cr:7572","isStringNullOrEmpty","react","stylex","useWAWebListener","useWAWebModelValues","useWAWebMsgValues","useWAWebStableCallback"],(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.useContext,f=d.useRef,g=d.useState;function h(e){var t,a=e.msg,i=e.msgIndexInAlbum,l=e.onClose,s=e.onHightlightCloseEnd,c=e.onViewOnceInfoClick,d=e.showBorderBottom,h=d===void 0?!1:d,y=e.theme,C=y===void 0?"default":y,v=f(null),S=o("useWAWebMsgValues").useMsgValues(e.msg.id,[o("WAWebMsgGetters").getId,o("WAWebMsgGetters").getStar,o("WAWebMsgGetters").getType,o("WAWebMsgGetters").getIsGif,o("WAWebMsgGetters").getIsViewOnce,o("WAWebMsgGetters").getSender,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getT,o("WAWebMsgGetters").getIsSentByMe,o("WAWebMsgGetters").getIsStickerMsg,o("WAWebMsgGetters").getBroadcastId,o("WAWebMsgGetters").getIsKept,o("WAWebMsgGetters").getMessageSecret,o("WAWebMsgGetters").getIsCarouselCard,o("WAWebMsgGetters").getCaption]),L=S[0],E=S[1],k=S[2],I=S[3],T=S[4],D=S[5],x=S[6],$=S[7],P=S[8],N=S[9],M=S[10],w=S[11],A=S[12],F=S[13],O=S[14],B=o("WAWebMsgViewCount").useWAWebLocalizedViewCount(a.id),W=o("WAWebFrontendMsgGetters").getChat(a),q=o("useWAWebModelValues").useModelValues(e.mediaData,["size","filehash","mediaStage","renderableUrl","filename","mimetype"]),U=g(null),V=U[0],H=U[1],G=g(null),z=G[0],j=G[1],K=f(null),Q=f(!1),X=function(){H(null),Q.current||o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.trayClose()},Y=function(){j(null),o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.trayClose(),Q.current=!1},J=r("useWAWebStableCallback")(function(e){if(o("WAWebReactionsUtils").canReactToMessage(e)){var t=function(n){o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSelect(n),o("WAWebSendReactionMsgAction").sendReactionToMsg(e,n).catch(function(e){}),Y()};j({dirY:o("WAWebDropdown.react").DirY.BOTTOM,dirX:o("WAWebDropdown.react").DirX.CENTER,type:o("WAWebDropdown.react").MenuType.ReactionPicker,menu:m.jsx(r("WAWebReactionsPanel.react"),{msgId:e.id.toString(),onSelection:t}),flipOnRTL:!0,anchor:K.current})}}),Z=function(){if(o("WAWebReactionsUtils").canReactToMessage(a)){var e=function(t){Q.current=t===o("WAWebSendReactionsTray.react").MORE_REACTIONS,t!==o("WAWebSendReactionsTray.react").MORE_REACTIONS?(o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSelect(t),o("WAWebSendReactionMsgAction").sendReactionToMsg(a,t).catch(function(e){})):self.setTimeout(function(){J(a)},150),X()},t={dirY:o("WAWebDropdown.react").DirY.BOTTOM,dirX:o("WAWebDropdown.react").DirX.CENTER,type:o("WAWebDropdown.react").MenuType.ReactionSendTray,menu:m.jsx(o("WAWebSendReactionsTrayContainer.react").SendReactionsTrayContainer,{msg:a,selectedCallback:e,userJourneyEntryPoint:o("WAWebWamEnumReactionUserJourneyEntryPoint").REACTION_USER_JOURNEY_ENTRY_POINT.MEDIA_VIEWER_REACTION_CTA}),flipOnRTL:!1,anchor:K.current};H(t)}};o("useWAWebListener").useListener(v.current,"animationend",function(){s()});var ee=a.displayName({showShortName:!0,withPushName:!0}),te=function(){return T||!o("WAWebMsgActionCapability").canDownloadMsg(a)?!1:o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)&&q.mediaStage===o("WAWebMediaTypes").MediaDataStage.INIT?!0:!!q.renderableUrl||q.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED},ne=function(){return m.jsx(o("WAWebIcCloseIcon.react").IcCloseIcon,{xstyle:e.isHighlightClose?r("WAWebMediaPanelHeader.styles").highlightClose:{},containerRef:v})},re;V?re=m.jsx(o("WAWebUimUie.react").UIE,{displayName:"MsgReaction",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:X,children:m.jsx(r("WAWebUimUieMenu.react"),{contextMenu:V})}):z&&(re=m.jsx(o("WAWebUimUie.react").UIE,{displayName:"MsgReactionPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:Y,children:m.jsx(r("WAWebUimUieMenu.react"),{contextMenu:z})}));var oe=o("WAWebNewsletterGatingUtils").isNewsletterViewCountEnabled(W==null||(t=W.newsletterMetadata)==null?void 0:t.membershipType)&&B!=null?m.jsxs(o("WAWebFlex.react").FlexRow,{className:(u||(u=r("stylex")))(r("WAWebMediaPanelHeader.styles").viewCount),children:[o("WAWebClock").Clock.relativeDateAndTimeStr($),m.jsx(o("WAWebMessageMeta.react").MetaBullet,{}),m.jsx("span",{children:B})]}):m.jsx(m.Fragment,{children:o("WAWebClock").Clock.relativeDateAndTimeStr($)});o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)&&!r("isStringNullOrEmpty")(O)&&O!==q.filename&&(oe=m.jsxs(o("WAWebFlex.react").FlexRow,{children:[m.jsx("span",{children:o("WAWebClock").Clock.relativeDateAndTimeStr($)}),m.jsx(o("WAWebMessageMeta.react").MetaBullet,{}),m.jsx(o("WAWebEmojiText.react").EmojiText,{className:(u||(u=r("stylex")))(r("WAWebMediaPanelHeader.styles").filename),ellipsify:!0,text:O,titlify:!0,title:O})]}));var ae=o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)?m.jsxs(o("WAWebFlex.react").FlexRow,{children:[m.jsx(o("WAWebEmojiText.react").EmojiText,{className:(u||(u=r("stylex")))(r("WAWebMediaPanelHeader.styles").author),ellipsify:!0,text:ee}),m.jsx("div",{className:(u||(u=r("stylex")))(r("WAWebMediaPanelHeader.styles").dot),children:"\xB7"}),m.jsx(o("WAWebEmojiText.react").EmojiText,{className:(u||(u=r("stylex")))(r("WAWebMediaPanelHeader.styles").filename),ellipsify:!0,text:q.filename})]}):m.jsx(o("WAWebEmojiText.react").EmojiText,{ellipsify:!0,text:ee}),ie=p(function(){o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)&&o("WAWebTPLoggingUtils").logDownloadDocumentClickEvent("media_viewer_header",q.filehash,q.size)},[q.mimetype,q.filehash,q.size]),le=_(o("WAWebMediaViewerFlow.react").MediaViewerFlowZoomContext),se=_(o("WAWebMediaIncrementalZoom").MediaIncrementalZoomCtx).isEnabled,ue=!se&≤return m.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(r("WAWebMediaPanelHeader.styles").mediaPanelHeader,ue&&r("WAWebMediaPanelHeader.styles").mediaPanelHeaderHidden,h&&r("WAWebMediaPanelHeader.styles").mediaPanelHeaderBorderBottom),{children:[m.jsx("div",babelHelpers.extends({},u.props(r("WAWebMediaPanelHeader.styles").info),{children:m.jsx(r("WAWebCellFrame.react"),{idle:!0,image:m.jsx(o("WAWebDetailImage.react").DetailImage,{id:D,size:40}),primary:ae,secondary:oe,theme:"media"})})),m.jsx("div",babelHelpers.extends({},u.props(r("WAWebMediaPanelHeader.styles").mediaPanelTools),{children:m.jsxs(o("WAWebMenuBar.react").MenuBar,{theme:"strong",gap:"single",children:[n("cr:12529")&&o("WAWebTPPdfViewerGatingUtils").isWebTP3PSharingEnabled()&&o("WAWebTPPdfViewerGatingUtils").isWebTPPdfEditorEnabledForMimeType(q.mimetype)&&m.jsx(n("cr:12529"),{msg:a,mediaData:q,isDisabled:q.mediaStage!==o("WAWebMediaTypes").MediaDataStage.RESOLVED||e.hasRendered!==!0}),n("cr:7572")&&o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)&&m.jsx(n("cr:7572"),{isDisabled:q.mediaStage!==o("WAWebMediaTypes").MediaDataStage.RESOLVED||e.hasRendered!==!0,onSearchClick:R}),m.jsx(b,{isMediaDownloadable:te,msg:a,msgIndexInAlbum:i,onClose:l,onViewOnceInfoClick:c,openReactionTray:Z,sendReactionButtonRef:K,theme:C,onDownloadClick:ie}),m.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:ne,title:r("WAWebFbtCommon")("Close"),onClick:e.onClose})]},"media-panel-header")})),re]}))}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.isMediaDownloadable,n=e.msg,r=e.onClose,a=e.openReactionTray,i=e.sendReactionButtonRef,l=e.theme,s=l===void 0?"default":l;return m.jsxs(m.Fragment,{children:[o("WAWebMsgReply").canReplyMsg(n)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").ReplyButton,{msg:n,onClose:r,theme:s}):null,o("WAWebMsgActionCapability").canStarMsg(n)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").StarButton,{msg:n}):null,n.canShowKeepOrUnkeepOption()?m.jsx(o("WAWebMediaPanelHeaderButtons.react").KeepInChatButton,{msg:n}):null,o("WAWebMsgActionCapability").canPinMsg(n)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").PinButton,{msg:n}):null,o("WAWebReactionsUtils").canReactToMessage(n)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").SendReactionButton,{msg:n,openReactionTray:a,sendReactionButtonRef:i}):null,m.jsx(o("WAWebMediaPanelHeaderButtons.react").DeleteButton,{msg:n,onClose:r}),o("WAWebMsgActionCapability").canForwardMsg(n)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").ForwardButton,{msg:n}):null,m.jsx(v,{isMediaDownloadable:t,isAlbumMedia:!0,msg:n,onClose:r})]})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=e.isMediaDownloadable,a=e.msg,i=e.onClose,l=e.onDownloadClick,s=e.openReactionTray,u=e.sendReactionButtonRef,c=e.theme,d=c===void 0?"default":c;return m.jsxs(m.Fragment,{children:[!o("WAWebMsgGetters").getIsStickerMsg(a)&&!o("WAWebMsgGetters").getIsCarouselCard(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").GoToButton,{msg:a,type:o("WAWebMediaPanelHeaderButtons.react").ButtonType.MenuBar,onClose:i}):null,(o("WAWebMsgGetters").getIsStickerMsg(a)||o("WAWebMsgGetters").getIsMedia(a))&&!o("WAWebMsgGetters").getIsCarouselCard(a)&&!o("WAWebMsgGetters").getIsNewsletterMsg(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").ReplyButton,{msg:a,onClose:i,theme:d}):null,o("WAWebMsgActionCapability").canStarMsg(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").StarButton,{msg:a}):null,o("WAWebMsgActionCapability").canPinMsg(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").PinButton,{msg:a}):null,a.canShowKeepOrUnkeepOption()?m.jsx(o("WAWebMediaPanelHeaderButtons.react").KeepInChatButton,{msg:a}):null,o("WAWebMsgGetters").getIsStickerMsg(a)&&o("WAWebMediaPanelHeaderButtons.react").canDeleteMsg(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").DeleteButton,{msg:a,onClose:i}):null,o("WAWebReactionsUtils").canReactToMessage(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").SendReactionButton,{msg:a,openReactionTray:s,sendReactionButtonRef:u}):null,o("WAWebMsgActionCapability").canForwardMsg(a)?m.jsx(o("WAWebMediaPanelHeaderButtons.react").ForwardButton,{msg:a}):null,o("WAWebMsgGetters").getIsStickerMsg(a)?null:m.jsx(o("WAWebMediaPanelHeaderButtons.react").DownloadButton,{isMediaDownloadable:t,msg:a,type:o("WAWebMediaPanelHeaderButtons.react").ButtonType.MenuBar,onDownloadClick:l}),!o("WAWebMsgGetters").getIsStickerMsg(a)&&r("WAWebEnvironment").isWindows&&n("cr:7565")!=null&&t()&&!o("WAWebMediaPanelHeaderButtons.react").isShareSheetEnabled()?m.jsx(o("WAWebMediaPanelHeaderButtons.react").OpenWithAnotherAppButton,{msg:a}):null,o("WAWebMsgActionCapability").canReportMsg(a)?m.jsx(v,{isMediaDownloadable:t,isAlbumMedia:!1,msg:a,onClose:i}):null]})}C.displayName=C.name+" [from "+i.id+"]";function b(e){var t=e.isMediaDownloadable,n=e.msg,r=e.msgIndexInAlbum,a=e.onClose,i=e.onDownloadClick,l=e.onViewOnceInfoClick,s=e.openReactionTray,u=e.sendReactionButtonRef,c=e.theme,d=c===void 0?"default":c,p=function(){a(),d==="media_hub"&&o("WAWebModalManager").ModalManager.close()},f=_(o("WAWebMediaIncrementalZoom").MediaIncrementalZoomCtx),g=[];if(f.isEnabled){var h;g.push(m.jsx((h=o("WAWebMediaIncrementalZoom")).ZoomButton,{direction:h.ZoomDirection.OUT},"zoom-out"),m.jsx(h.ZoomButton,{direction:h.ZoomDirection.IN},"zoom-in"))}return n.isViewOnce?g.push(m.jsx(S,{isMediaDownloadable:t,msg:n,onClose:a,onViewOnceInfoClick:l},"view-once")):r>=0&&n.associationType===o("WAWebMessageAssociation.flow").MessageAssociationType.MEDIA_ALBUM?g.push(m.jsx(y,{isMediaDownloadable:t,msg:n,onClose:a,openReactionTray:s,sendReactionButtonRef:u},"album")):g.push(m.jsx(C,{isMediaDownloadable:t,msg:n,onClose:p,openReactionTray:s,sendReactionButtonRef:u,theme:d,onDownloadClick:i},"non-album")),g}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.isAlbumMedia,n=e.isMediaDownloadable,a=e.msg,i=e.onClose,l=o("WAWebSearchTheWebCommonUtils").getSupportedSearchOptions(a),u;l.get(o("WAWebSearchTheWebCommonUtils").SearchType.IMAGE)!=null&&(u=o("WAWebSearchTheWebCommonUtils").getSTWFormat(l));var c=[];n()&&o("WAWebMediaPanelHeaderButtons.react").isShareSheetEnabled()&&c.push.apply(c,o("WAWebMediaPanelHeaderButtons.react").getDropdownMenuItemsForWindowsShareSheet(a));var d=o("WAWebFrontendMsgGetters").getChat(a);(o("WAWebMsgReply").canPrivateReply(a)||o("WAWebMsgReply").canPrivateReplyInRestrictedGrp(a))&&c.push(m.jsx(o("WAWebMediaPanelHeaderButtons.react").PrivateReplyButton,{msg:a},"private_reply")),t&&(o("WAWebMsgGetters").getIsSentByMe(a)&&c.push(m.jsx(o("WAWebMediaPanelHeaderButtons.react").MsgInfoButton,{msg:a,onClose:i},"dropdownMsgInfo")),c.push(m.jsx(o("WAWebMediaPanelHeaderButtons.react").GoToButton,{msg:a,type:o("WAWebMediaPanelHeaderButtons.react").ButtonType.Dropdown,onClose:i},"dropdownGoToMsg"),m.jsx(o("WAWebMediaPanelHeaderButtons.react").DownloadButton,{isMediaDownloadable:n,msg:a,type:o("WAWebMediaPanelHeaderButtons.react").ButtonType.Dropdown},"dropdownDownload"))),u!=null&&c.push(m.jsx(r("WAWebSearchTheWebButton.react"),{messageType:a.getWamMessageType(),msg:a,entryPoint:o("WAWebWamEnumStwEntryPoint").STW_ENTRY_POINT.MEDIA_VIEWER,stwFormat:u},"search_the_web"));var p=!o("WAWebChatGetters").getIsNewsletter(d)&&(a.isViewOnce||o("WAWebMsgActionCapability").canReportMsg(a)),_=o("WAWebChatGetters").getIsNewsletter(d)&&o("WAWebMsgActionCapability").canReportMsg(a);return _?c.push(m.jsx(r("WAWebReportNewsletterPostSpamButton.react"),{msg:a},"reportSpam")):p&&c.push(m.jsx(o("WAWebMediaPanelHeaderButtons.react").ReportSpamButton,{msg:a},"reportSpam")),o("WAWebMsgActionCapability").canReportToAdmin(a)&&c.push(m.jsx(r("WAWebSendForAdminReviewButton.react"),{msg:a},"report_to_admin")),o("WAWebDebugGatingUtils").msgDebugMenuItemsEnabled()&&(c.push(m.jsx(r("WAWebDropdownItemSeparator.react"),{})),c.push(m.jsx(o("WAWebMediaPanelHeaderButtons.react").CopyMsgIdButton,{msg:a}))),m.jsx(r("WDSMenuBarItem.react"),{testid:void 0,icon:r("WDSIconIcMoreVert.react"),title:s._(/*BTDS*/"Men\u00fa"),dropdownMenu:{menu:c,type:o("WAWebDropdown.react").MenuType.DropdownMenu,flipOnRTL:!0,dirX:o("WAWebDropdown.react").DirX.LEFT},onOpen:function(){u!=null&&o("WAWebSearchTheWebEventLogger").logSTWEvent({stwEntryPoint:o("WAWebWamEnumStwEntryPoint").STW_ENTRY_POINT.MEDIA_VIEWER,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.ENTRY_POINT_SURFACED,stwFormat:u,messageType:a.getWamMessageType()})}})}v.displayName=v.name+" [from "+i.id+"]";function S(e){var t=e.isMediaDownloadable,n=e.msg,a=e.onClose,i=e.onViewOnceInfoClick;return m.jsxs(m.Fragment,{children:[m.jsx(o("WAWebMenuBar.react").MenuBarItem,{icon:m.jsx(r("WDSIconWdsIcViewOnce.react"),{iconXstyle:r("WAWebMediaPanelHeader.styles").voIcon}),title:s._(/*BTDS*/"Info. sobre la visualizaci\u00f3n \u00fanica"),onClick:i}),m.jsx(v,{isMediaDownloadable:t,isAlbumMedia:!1,msg:n,onClose:a})]})}S.displayName=S.name+" [from "+i.id+"]";function R(){o("WAWebPdfViewerEventEmitter").pdfViewerEventEmitter.trigger("search:show",[])}l.default=h}),226); __d("WAWebMediaSticker.react",["Promise","WAWebFirstPartyStickerInfo.react","WAWebFlex.react","WAWebImg.react","WAWebLottieSticker.react","WAWebMediaUrlProvider","WAWebMediaViewerStyles","WAWebMediaZoomable.react","WAWebNewsletterCollection","WAWebNewsletterMembershipUtil","WAWebNullFunc","WAWebStickerDetailsStickerPackInfo.react","WAWebStickerLikeMsgPlaceholder.react","WAWebStickerModel","WAWebStickerUtils","WAWebWamEnumWebcRmrReasonCode","react","stylex","useMergeRefs","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c,d,m=d||(d=r("react")),p=(c||(c=o("react"))).useRef,_=376,f={container:{width:"xh8yej3",height:"x5yr21d",$$css:!0}};function g(t){var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.msg,c=o("useWAWebModelValues").useModelValues(i.mediaData,["encFilehash","directPath","filehash","mediaKey","mediaKeyTimestamp","mediaStage","mimetype","fullWidth","fullHeight","isFirstParty","isAvatar","stickerPackId","stickerPackName","stickerPackPublisher","extractedLottieSticker","accessibilityLabel"]),d=p(null),_=r("useMergeRefs")(a,d),g=function(t){var e;(e=d.current)==null||e.onClick(t)},y=function(){return l?l.downloadMedia({downloadEvenIfExpensive:!1,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.MEDIA_VIEWER,isUserInitiated:!1}):(s||(s=n("Promise"))).resolve()},C=r("WAWebNewsletterCollection").getActive(),b=o("WAWebNewsletterMembershipUtil").iAmAdminOrOwner(C==null?void 0:C.newsletterMetadata),v=c.isFirstParty===!0?m.jsx(r("WAWebFirstPartyStickerInfo.react"),{stickerPackId:c.stickerPackId,onStickerPackView:i.onStickerPackView,stickerPackViewDelay:i.stickerPackViewDelay,showViewPackButton:C!=null?c.isAvatar!==!0&&b:c.isAvatar!==!0,sticker:new(o("WAWebStickerModel")).StickerModel({id:c.filehash,mimetype:c.mimetype,width:c.fullWidth,height:c.fullHeight,filehash:c.filehash,encFilehash:c.encFilehash,directPath:c.directPath,mediaKey:c.mediaKey,mediaKeyTimestamp:c.mediaKeyTimestamp})}):m.jsx(o("WAWebStickerDetailsStickerPackInfo.react").StickerDetailsStickerPackInfo,{name:c.stickerPackName,publisher:c.stickerPackPublisher,theme:o("WAWebStickerDetailsStickerPackInfo.react").Theme.MediaViewer,sticker:new(o("WAWebStickerModel")).StickerModel({id:c.filehash,mimetype:c.mimetype,width:c.fullWidth,height:c.fullHeight,filehash:c.filehash,encFilehash:c.encFilehash,directPath:c.directPath,mediaKey:c.mediaKey,mediaKeyTimestamp:c.mediaKeyTimestamp})}),S=m.jsx(r("WAWebMediaUrlProvider"),{mediaData:c,placeholderRenderer:h,downloadMedia:y,children:function(t){return m.jsx(r("WAWebImg.react"),{className:(u||(u=r("stylex")))(r("WAWebMediaViewerStyles").content),onClick:g,src:t,onLoad:i.onLoad})}});return o("WAWebStickerUtils").getStickerFileType(c.mimetype)===o("WAWebStickerUtils").StickerFileType.LOTTIE&&(S=m.jsx(r("WAWebLottieSticker.react"),{className:"",mediaData:c,startAnimation:!0,onClick:g,placeholderRenderer:o("WAWebNullFunc").returnNull,downloadMedia:y})),m.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",xstyle:f.container,children:[m.jsx("div",{className:"xh8yej3 x5yr21d xlnrm6 xjkwb7i x1iymm2a xupqr0c","data-testid":void 0,children:m.jsx(r("WAWebMediaZoomable.react"),{ref:_,width:c.fullWidth,height:c.fullHeight,onZoomIn:i.onImgZoomIn,msg:l,children:S})}),v]})}g.displayName=g.name+" [from "+i.id+"]";function h(){return m.jsx(r("WAWebStickerLikeMsgPlaceholder.react"),{size:_})}h.displayName=h.name+" [from "+i.id+"]",l.default=g}),98); __d("WAWebMediaViewerCaption.react",["WAWebFormatConfiguration","WAWebMsgLinks","WAWebMsgPhoneNumbers"],(function(t,n,r,o,a,i,l){function e(e){var t=e.id,n=e.msg;return o("WAWebFormatConfiguration").Conversation({mentions:n.mentionMap(),groupMentions:n.groupMentionMap(),phoneNumbers:o("WAWebMsgPhoneNumbers").getPhoneNumbersFromMsg(n),links:o("WAWebMsgLinks").getLinksFromMsg(n),trusted:!0,fromMe:t.fromMe,fromChatWid:t.remote,parseLists:!0,parseQuotes:!0,parseInlineCode:!0})}l.getCaptionFormatters=e}),98); __d("WAWebMediaViewerMediaVideo.react",["fbt","WAWebAddOnBubbleType","WAWebAddOnBubblesContainer.react","WAWebAnnotation.react","WAWebBlurredImage.react","WAWebEnvironment","WAWebGetDisplayType","WAWebMediaTypes","WAWebMediaViewerStyles","WAWebMsgGetters","WAWebNoop","WAWebObjectFit.react","WAWebPipConst","WAWebPipFloatingVideoPlayer.react","WAWebPipMsgVideoPlayer.react","WAWebReactionsUtils","WAWebStopEvent","WAWebVideo.react","WAWebVideoUtils","WAWebWamEnumWebcRmrReasonCode","isNonZeroNumber","react","stylex","useWAWebModelValues"],(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.useImperativeHandle,g=m.useMemo,h=m.useRef,y=m.useState;function C(t){var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.autoPlay,u=i.msg,d=i.onClose,m=i.onLoad,C=i.onLoadedData,v=i.startTime,S=v===void 0?0:v,R=o("useWAWebModelValues").useModelValues(i.mediaData,["mediaStage","fullWidth","fullHeight","isGif","isViewOnce","preview","renderableUrl","streamable"]),L=y(!1),E=L[0],k=L[1],I=y(!0),T=I[0],D=I[1],x=h(),$=g(function(){return(R.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED||o("WAWebVideoUtils").isMsgStreamable(u))&&o("isNonZeroNumber").isNonZeroNumber(R.fullWidth)&&o("isNonZeroNumber").isNonZeroNumber(R.fullHeight)?b(R):{width:0,height:0}},[R,u]);_(function(){if(!o("WAWebVideoUtils").isMsgStreamable(u))return u.downloadMedia({downloadEvenIfExpensive:!0,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.MEDIA_VIEWER,isUserInitiated:!0}),function(){u.mediaObject&&u.cancelDownload()}},[]);var P=function(t){k(t)};f(a,function(){return{getContainerElement:function(){return x.current},closingMedia:function(){D(!1)}}});var N=R.isGif,M=R.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED||o("WAWebVideoUtils").isMsgStreamable(u);M=M||u!=null&&u.isForcingRMR();var w=null,A=o("WAWebGetDisplayType").getDisplayType(u),F=o("WAWebAddOnBubbleType").AddOnBubbleType.MEDIA_VIEWER;if(u&&o("WAWebReactionsUtils").shouldShowReactionBubble(u,F)&&(w=p.jsx(r("WAWebAddOnBubblesContainer.react"),{isOutgoingMsg:o("WAWebMsgGetters").getIsSentByMe(u),displayType:A,bubbleType:F,parentIds:[u.id.toString()],displayReactionBubble:T})),M){var O=r("WAWebEnvironment").isWindows===!0?s._(/*BTDS*/"La reproducci\u00f3n de video no es compatible con este dispositivo."):s._(/*BTDS*/"El navegador no es compatible con la reproducci\u00f3n de videos."),B;!E&&u!=null&&u.interactiveAnnotations&&u.interactiveAnnotations.length>0&&(B=p.jsx(r("WAWebAnnotation.react"),{annotations:u.interactiveAnnotations}));var W;return N?W=p.jsxs("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(r("WAWebMediaViewerStyles").content),{ref:x,"data-testid":void 0,children:[p.jsx(r("WAWebVideo.react"),{src:R.renderableUrl,onClick:o("WAWebStopEvent").stopPropagation,autoPlay:!0,loop:!0,onLoadedData:C,children:O}),B]})):W=p.jsx("div",babelHelpers.extends({ref:x},(c||(c=r("stylex"))).props(r("WAWebMediaViewerStyles").content),{onClick:o("WAWebStopEvent").stopPropagation,"data-testid":void 0,children:p.jsx(o("WAWebPipMsgVideoPlayer.react").WrappedMsgVideoPlayer,{msg:u,mediaData:R,startTime:S,onClose:d,onError:r("WAWebNoop"),onFullscreenToggle:P,autoPlay:l,type:o("WAWebPipConst").PlayerType.MEDIA_VIEWER,overlays:B,noPip:u==null?void 0:u.isViewOnce,onLoadedData:C})})),p.jsxs(r("WAWebObjectFit.react"),{type:"scaleDown",position:"relative",objectPosition:"relative",size:$,onObjectLoad:m,children:[W,w]})}return p.jsxs(r("WAWebObjectFit.react"),{type:"scaleDown",position:"relative",objectPosition:"relative",size:{width:R.fullWidth,height:R.fullHeight},children:[p.jsx(r("WAWebBlurredImage.react"),{altText:(n=u.caption)!=null?n:"",mediaData:R}),w]})}C.displayName=C.name+" [from "+i.id+"]";function b(e){if(e.isGif){var t=330;return e.fullWidth>=t?{width:e.fullWidth,height:e.fullHeight}:{width:t,height:e.fullHeight*t/e.fullWidth}}return e.fullWidth>=o("WAWebPipFloatingVideoPlayer.react").MIN_WIDTH?{width:e.fullWidth,height:e.fullHeight}:{width:o("WAWebPipFloatingVideoPlayer.react").MIN_WIDTH,height:e.fullHeight}}l.default=C}),226); __d("WAWebMediaViewerShortcuts.react",["fbt","WALogger","WAWebEnvironment","WAWebFileSaver","WAWebStateUtils","WAWebToast.react","WAWebToastManager","asyncToGeneratorRuntime","cr:7565","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useEffect,f=d.useMemo;function g(t){var a=p(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){n("cr:7565")&&n("cr:7565").copyMediaFile(o("WAWebStateUtils").unproxy(t)).then(function(e){o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Se copi\u00f3 la imagen: {fileName}",[s._param("fileName",e)])}))}).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Error while copying image: ",""])),t)})}),[t]),i=f(function(){return{s:function(){o("WAWebFileSaver").FileSaver.initDownload(o("WAWebStateUtils").unproxy(t))},c:function(){a()}}},[a,t]),l=p(function(e){if(e.ctrlKey){var t=e.key,n=i[t];n!=null&&(e.preventDefault(),n(e))}},[i]);_(function(){var e=r("WAWebEnvironment").isWindows;if(e)return window.addEventListener("keydown",l),function(){window.removeEventListener("keydown",l)}},[l,t])}l.useMediaViewerShortcuts=g}),226); __d("WAWebWdsIllViewOncePhotoIcon.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-ill-view-once-photo";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=120,R=180;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 180 120",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",id:"Layer_1",x:"0",y:"0",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("style",{children:".st0{fill:#25d366;stroke:#111b21;stroke-width:1.4412;stroke-linecap:round;stroke-miterlimit:10}.st2,.st4{fill:#e6ffda;stroke:#111b21;stroke-width:1.5}.st4{fill:#fcf5eb;stroke-miterlimit:10}.st6{fill:#0a0a0a}"}),c.jsx("path",{className:"st0",d:"M82 1.3H33.2c-8.7 0-15.8 7.1-15.8 15.8V103c0 8.7 7.1 15.8 15.8 15.8h48.9c8.7 0 15.8-7.1 15.8-15.8V17.2C97.8 8.4 90.7 1.3 82 1.3z"}),c.jsx("path",{className:"st0",d:"M97.8 95.7V17.1c0-8.6-7-15.6-15.6-15.6H40.3c-8.6 0-15.6 7-15.6 15.6v78.7c0 8.7 5 15.8 15.8 15.8h41.6c8.3 0 15.7-7.1 15.7-15.9q0 0 0 0z"}),c.jsx("path",{className:"st0",d:"M61.2 103c5 0 9-2.2 9-4.8s-4-4.8-9-4.8-9 2.2-9 4.8 4 4.8 9 4.8z"}),c.jsx("path",{d:"M55.6 14.4H67",fill:"none",stroke:"#111b21",strokeWidth:1.441,strokeLinecap:"round",strokeMiterlimit:10}),c.jsx("path",{className:"st2",d:"M133.8 86.3H73.3c-3.5 0-6.1-.8-7.7-2.5-1.6-1.6-2.6-4.1-2.6-7.5V33.6c0-3.5.9-6 2.6-7.6 1.6-1.6 4.1-2.5 7.7-2.5h60.5c3.6 0 6.1.9 7.7 2.5s2.5 4.1 2.5 7.6v42.7c0 3.5-.9 6-2.5 7.5-1.7 1.7-4.3 2.5-7.7 2.5z"}),c.jsx("path",{d:"M143.6 75.6 121.7 55c-1.6-1.4-3.6-2.3-5.5-2.3-2.1 0-3.8.7-5.5 2.3L93.9 69.9l-6.8-6.2c-1.5-1.4-3.3-2.1-5-2.1-1.6 0-3.2.6-4.7 2.1L63.3 76.3",fill:"none",stroke:"#111b21",strokeWidth:1.5}),c.jsx("path",{className:"st2",d:"M96.6 47.1c0 4.1-3.4 7.5-7.4 7.5-4.1 0-7.5-3.4-7.5-7.5s3.4-7.5 7.5-7.5c4 0 7.4 3.3 7.4 7.5z"}),c.jsx("path",{className:"st4",d:"M162.6 76c0 11.3-9.1 20.4-20.4 20.4s-20.4-9.1-20.4-20.4 9.1-20.4 20.4-20.4 20.4 9.1 20.4 20.4z"}),c.jsx("path",{d:"M141.8 59.2c-8.6.5-15.5 6.9-16.5 14.5-1.2 9 6.1 18.3 16.5 19.1",fill:"none",stroke:"#111b21",strokeWidth:1.5,strokeLinecap:"round",strokeMiterlimit:10}),c.jsx("path",{className:"st4",d:"M143.8 84c.7 0 1.3-.6 1.3-1.3V70c0-1.3-1.2-2.4-2.6-2.1l-3.4.8c-.9.2-1.5 1-1.5 2.1 0 1.3 1.2 2.3 2.5 2.1l1-.2v10.1c0 .7.6 1.3 1.3 1.3z"}),c.jsx("circle",{className:"st6",cx:149.8,cy:61.6,r:1.5}),c.jsx("circle",{className:"st6",cx:155.9,cy:67.9,r:1.5}),c.jsx("circle",{className:"st6",cx:158.2,cy:76.3,r:1.5}),c.jsx("circle",{className:"st6",cx:155.9,cy:84.8,r:1.5}),c.jsx("circle",{className:"st6",cx:150.1,cy:90.6,r:1.5})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsIllViewOncePhotoIcon=m}),98); __d("WAWebViewOnceNux.react",["fbt","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFlexItem.react","WAWebText.react","WAWebWdsIllViewOncePhotoIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={graphic:{marginBottom:"xod5an3",paddingTop:"x1h678fw",paddingInlineEnd:"xcldk2z",paddingBottom:"xv6tirj",paddingInlineStart:"x1phvje8",$$css:!0}};function d(e){var t=e.onOkClick;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:t,cancelText:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),onCancel:m,children:u.jsxs(o("WAWebFlex.react").FlexColumn,{children:[u.jsx(r("WAWebFlexItem.react"),{xstyle:c.graphic,align:"center",children:u.jsx(o("WAWebWdsIllViewOncePhotoIcon.react").WdsIllViewOncePhotoIcon,{width:195})}),u.jsx(o("WAWebText.react").WAWebTextLarge,{children:e.isPhoto?s._(/*BTDS*/"Esta foto est\u00e1 configurada para verse una sola vez"):s._(/*BTDS*/"Este video est\u00e1 configurado para verse una sola vez")}),u.jsx(o("WAWebText.react").WAWebTextMuted,{children:e.isPhoto?s._(/*BTDS*/"Para brindarte m\u00e1s privacidad, esta foto desaparecer\u00e1 despu\u00e9s de que la cierres."):s._(/*BTDS*/"Para brindarte m\u00e1s privacidad, este video desaparecer\u00e1 despu\u00e9s de que lo cierres.")})]})})}d.displayName=d.name+" [from "+i.id+"]";function m(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getViewOnceFaqUrl())}l.default=d}),226); __d("WAWebMediaViewerModal.react",["cx","fbt","WALogger","WATypeUtils","WAWebAppTracker","WAWebClassnames","WAWebEmojiText.react","WAWebFocusTracer","WAWebFrontendMsgGetters","WAWebGroupMetadataContext","WAWebIncrementalZoomUtils","WAWebKeyboardHotKeys.react","WAWebMarkPlayedMsgAction","WAWebMediaAudio.react","WAWebMediaData","WAWebMediaImage.react","WAWebMediaIncrementalZoom","WAWebMediaPanelHeader.react","WAWebMediaStage.react","WAWebMediaSticker.react","WAWebMediaTypes","WAWebMediaViewerCaption.react","WAWebMediaViewerConstants","WAWebMediaViewerFlow.react","WAWebMediaViewerMediaVideo.react","WAWebMediaViewerModalStyle","WAWebMediaViewerShortcuts.react","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgGetters","WAWebNux","WAWebResizeObserver.react","WAWebTPPdfViewerGatingUtils","WAWebTimeSpentLoggingNavigation","WAWebUISpacing","WAWebUimUie.react","WAWebVelocityAnimate","WAWebViewOnceNux.react","WDSButton.react","WDSIconIcChevronLeft.react","WDSIconIcChevronRight.react","WDSTooltip.react","cr:23046","cr:27506","react","stylex","useWAWebModelValues","useWAWebMsgValues","useWAWebNux","useWAWebThrottledCallback"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m,p,_,f=_||(_=o("react")),g=m||(m=r("react")),h=f.useCallback,y=f.useContext,C=f.useEffect,b=f.useId,v=f.useMemo,S=f.useRef,R=f.useState;function L(e){e==null||e.stopPropagation()}function E(t){var a,i,l=t.isAnimatingThumbs,s=t.msg,m=t.onBack,_=t.onExitAnimation,f=t.onImageLoad,b=t.onImgZoomIn,L=t.shouldShowAllMedia,E=t.shouldShowNumberText,D=o("useWAWebMsgValues").useMsgValues(t.msg.id,[(i=o("WAWebMsgGetters")).getId,i.getStar,o("WAWebFrontendMsgGetters").getIsUnsentMedia,i.getIsViewOnce,i.getIsStickerMsg,i.getHasThumbList,i.getCaption,i.getInteractiveAnnotations,i.getType,i.getMessageSecret]),x=D[0],$=D[1],P=D[2],N=D[3],M=D[4],w=D[5],A=D[6],F=D[7],O=D[8],B=D[9],W=o("WAWebFrontendMsgGetters").getChat(s),q=o("useWAWebModelValues").useModelValues(t.mediaData,["mediaStage","type","isGif","mimetype","filename"]),U=y(o("WAWebMediaIncrementalZoom").MediaIncrementalZoomCtx),V=U.hasOverflownThumbnailSection,H=y(o("WAWebMediaViewerFlow.react").MediaViewerFlowZoomContext)||V,G=S(null),z=S(null),j=S(null),K=S(null),Q=S(null),X=S(!1),Y=S(!1),J=S(!1),Z=r("useWAWebNux")(o("WAWebNux").NUX.EPHEMERAL_VIEW_ONCE_RECEIVER),ee=Z[0],te=Z[1],ne=N&&ee,re=t.getZoomNode,oe=v(function(){return q.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED&&re?re(x):null},[q.mediaStage,re,x]),ae=R(!1),ie=ae[0],le=ae[1],se=U.isEnabled,ue=R(!1),ce=ue[0],de=ue[1],me=[r("WAWebMediaData").TYPE.IMAGE,r("WAWebMediaData").TYPE.STICKER].includes(q.type),pe=R(me),_e=pe[0],fe=pe[1],ge=R(!t.isAnimatingThumbs&&!_e),he=ge[0],ye=ge[1],Ce=R(!1),be=Ce[0],ve=Ce[1],Se=R(!1),Re=Se[0],Le=Se[1],Ee=N||!o("WAWebMsgActionCapability").canWamoSubMsgBeSharedByUser(s,W),ke=S(null);o("WAWebIncrementalZoomUtils").usePreventDefaultZoom(ke);var Ie=function(){var e=g.jsx(r("WAWebViewOnceNux.react"),{isPhoto:q.type===r("WAWebMediaData").TYPE.IMAGE,onOkClick:function(){te(),o("WAWebModalManager").ModalManager.close()}});o("WAWebModalManager").ModalManager.open(e)},Te=r("useWAWebThrottledCallback")(function(e,t){if(!ce){var n=G.current;if(n){var a=n.getInsideContainer();if(!(!a||!(a instanceof HTMLElement))){var i=n.getOutsideContainer();if(!(!i||!(i instanceof HTMLElement))){var l=n.getTranslatePosition(i,e,t),s=l.translateX,u=l.translateY;r("WAWebVelocityAnimate")(a,"stop"),r("WAWebVelocityAnimate")(a,{translateX:s,translateY:u,scale:o("WAWebMediaViewerConstants").ZOOM_IN_FACTOR},{duration:0})}}}}});C(function(){return o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["MediaViewerModal: Opened"]))),ne&&Ie(),r("WAWebFocusTracer").focus(K.current),function(){o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["MediaViewerModal: Closed"]))),T(),Te.cancel()}},[]),C(function(){I(q.type)},[q.type]);var De=function(){Ie()},xe=function(t,n){var e,a=n.getBoundingClientRect(),i=t.getBoundingClientRect(),l=i.top-a.top,s=i.left-a.left,u=t.clientWidth/n.clientWidth,c=(n.clientHeight-t.clientHeight)/2,d=(n.clientWidth-t.clientWidth)/2;l-=c,s-=d,r("WAWebVelocityAnimate")(n,{opacity:[1,0],translateX:[0,s],translateY:[0,l],scale:[1,u]},{duration:o("WAWebMediaViewerConstants").ANIMATION_DURATION,easing:[.1,.82,.25,1]}).then(function(){return fe(!1)});var m=(e=j.current)==null?void 0:e.getElement();m&&r("WAWebVelocityAnimate")(m,{opacity:[1,0]},{duration:o("WAWebMediaViewerConstants").ANIMATION_DURATION})},$e=function(){N&&o("WAWebMarkPlayedMsgAction").canMarkPlayed(s)&&o("WAWebMarkPlayedMsgAction").markPlayed(s)},Pe=function(t){$e(),f&&f();var e=oe,n=t.target;if(!e||!n||!(n instanceof HTMLElement)||J.current||se){fe(!1);return}J.current=!0,xe(e,n)},Ne=function(){var e;if(!X.current){X.current=!0,o("WATypeUtils").isFunction(_)&&_();var n=t.getZoomNode&&t.getZoomNode(x);if(!n)return m();var a;if(me&&G.current){var i;a=G.current.getInsideContainer(),(i=G.current)==null||i.closingMediaZoomable()}else if(q.isGif&&z.current){var l;a=z.current.getContainerElement(),(l=z.current)==null||l.closingMedia()}else Q.current&&(a=Q.current);if(!a)return m();var s=a,u=a.getBoundingClientRect(),c=n.getBoundingClientRect(),d=c.top-u.top,p=c.left-u.left,f=n.clientWidth/s.clientWidth,g=(s.clientHeight-n.clientHeight)/2,h=(s.clientWidth-n.clientWidth)/2;d-=g,p-=h,r("WAWebVelocityAnimate")(a,{translateX:[p,0],translateY:[d,0],scale:[f,1]},{duration:o("WAWebMediaViewerConstants").CLOSE_ANIMATION_DURATION,easing:[.1,.82,.25,1]}).then(function(){m()});var y=(e=j.current)==null?void 0:e.getElement();y&&r("WAWebVelocityAnimate")(y,{opacity:[0,1]},{duration:o("WAWebMediaViewerConstants").CLOSE_ANIMATION_DURATION,easing:[.1,.82,.25,1]})}},Me=function(t){var e=G.current;t&&e&&(Y.current=e.getHeightOverflow()>0||e.getWidthOverflow()>0),le(t),b(t)},we=function(t){Te.cancel();var e=G.current;e&&ie&&e.onClick(t)},Ae=function(t){se||Te(t.pageX,t.pageY)},Fe=function(t){var e,n=(e=G.current)==null?void 0:e.getInsideContainer(),r=!!(n!=null&&n.contains(document.activeElement));if(!(l||_e||!r)){Te.cancel();var o=G.current;o!=null&&o.onKeyboardZoom(t)}},Oe=function(){ve(!0)},Be=function(){ve(!1)},We=function(){de(!0)},qe=function(){de(!1)};C(function(){!he&&!l&&!_e&&ye(!0)},[l,he,_e]),o("WAWebTimeSpentLoggingNavigation").useTsNavigation({surface:"media-viewer"});var Ue=null,Ve=t.msgIndexInAlbum>=0&&t.albumSize>=0;function He(){return[]}if(A||Ve){var Ge=function(){var e=A==null&&ze!=null?ze:A,t=[{testid:"media-caption",text:e}];return E&&A!=null&&ze!=null&&t.push({testid:"media-number-caption",text:ze}),t},ze;Ve&&(ze=u._(/*BTDS*/"{number} de {totalNumber}",[u._param("number",t.msgIndexInAlbum+1),u._param("totalNumber",t.albumSize)]));var je=o("WAWebMediaViewerCaption.react").getCaptionFormatters({msg:s,id:x}),Ke=q.type===r("WAWebMediaData").TYPE.IMAGE&&!N,Qe=!he&&(q.isGif||Ke)||U.isZoomedIn,Xe={className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("_alhf",(p||(p=r("stylex")))(r("WAWebMediaViewerModalStyle").mediaCaption,Qe&&r("WAWebMediaViewerModalStyle").mediaCaptionHidden)),formatters:je};Ue=g.jsx(g.Fragment,{children:(o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)?He():Ge()).map(function(e,t){return g.jsx(o("WAWebEmojiText.react").EmojiText,babelHelpers.extends({},e,Xe,{ref:function(t){j.current=t}}),t)})})}var Ye=babelHelpers.extends({},(p||(p=r("stylex"))).props(r("WAWebMediaViewerModalStyle").captionWrapper,H&&r("WAWebMediaViewerModalStyle").captionWrapperZoomedIn));Ue=U.isEnabled?g.jsx(r("WAWebResizeObserver.react"),babelHelpers.extends({component:"p",onResize:function(t){U.setCaptionHeight(t.height)}},Ye,{children:Ue})):g.jsx("p",babelHelpers.extends({},Ye,{children:Ue}));var Je,Ze=h(function(){Le(!0)},[Le]);switch(q.type){case r("WAWebMediaData").TYPE.IMAGE:Je=g.jsx(r("WAWebMediaImage.react"),{msg:s,mediaData:q,onLoad:Pe,onImgZoomIn:Me,onAnnotationTooltipDisplay:We,onAnnotationTooltipDismiss:qe,preventDownload:Ee,ref:G},x.toString());break;case r("WAWebMediaData").TYPE.STICKER:Je=g.jsx(r("WAWebMediaSticker.react"),{msg:s,mediaData:q,onLoad:Pe,onImgZoomIn:Me,onStickerPackView:Ne,stickerPackViewDelay:o("WAWebMediaViewerConstants").CLOSE_ANIMATION_DURATION,ref:G},x.toString());break;case r("WAWebMediaData").TYPE.VIDEO:Je=g.jsx(r("WAWebMediaViewerMediaVideo.react"),{autoPlay:!ne,msg:s,mediaData:q,onLoadedData:q.isGif?Pe:$e,startTime:t.startTime,onClose:Ne,ref:z},x.toString());break;case r("WAWebMediaData").TYPE.AUDIO:Je=g.jsx(r("WAWebMediaAudio.react"),{mediaData:q,msg:s},x.toString());break;case r("WAWebMediaData").TYPE.DOCUMENT:n("cr:27506")&&o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)&&(Je=g.jsx(n("cr:27506"),{onLoad:Pe,msg:s,mediaData:q,containerRef:Q,onRender:Ze,onClose:Ne},x.toString()));break;default:o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["type: ",""])),q.type).sendLogs("MediaViewerModal: unexpected media type")}var et=p(r("WAWebMediaViewerModalStyle").media,!!Ue&&r("WAWebMediaViewerModalStyle").mediaWithCaption),tt=(a=n("cr:23046")==null?void 0:n("cr:23046").isWindowsHybridEnabled())!=null?a:!1,nt=He().length===0&&o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype),rt=o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype),ot=o("WAWebClassnames").classnamesConvertMeToStylexPlease("overlay",p((_e||l)&&r("WAWebMediaViewerModalStyle").mediaViewerAnimate,ie&&r("WAWebMediaViewerModalStyle").cursorZoomOut,r("WAWebMediaViewerModalStyle").mediaViewer,!w&&o("WAWebUISpacing").uiPadding.bottom40,tt&&r("WAWebMediaViewerModalStyle").mediaViewerHybrid,nt&&o("WAWebUISpacing").uiPadding.bottom0)),at=ie&&Y.current?Ae:null,it=ie?we:null,lt=ie?null:Ne;return lt!=null&&N&&(lt=Oe),o("WAWebMediaViewerShortcuts.react").useMediaViewerShortcuts(s),g.jsx(o("WAWebUimUie.react").UIE,{displayName:"MediaViewer",escapable:!0,requestDismiss:function(t,n){var e;if(!U.isEnabled){Ne();return}var r=n instanceof KeyboardEvent&&n.key==="Escape";if(!r||U.currentZoomLevel===1){Ne();return}(e=U.getHandler())==null||e.performZoom(1)},children:g.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:{space:Fe,enter:Fe},ref:K,children:g.jsxs("div",{className:ot,"data-animate-media-viewer":!0,"data-testid":void 0,onClick:it,onMouseMove:at,children:[g.jsx(r("WAWebMediaPanelHeader.react"),{isHighlightClose:be,msg:s,mediaData:q,onClose:Ne,onHightlightCloseEnd:Be,onViewOnceInfoClick:De,msgIndexInAlbum:t.msgIndexInAlbum,theme:L===!0?"media_hub":void 0,hasRendered:Re,showBorderBottom:o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(q.mimetype)}),g.jsx("div",babelHelpers.extends({ref:ke},p.props([r("WAWebMediaViewerModalStyle").mediaContent,o("WAWebUISpacing").uiPadding.top10,o("WAWebUISpacing").uiPadding.bottom15],M&&r("WAWebMediaViewerModalStyle").mediaContentSticker,nt&&o("WAWebUISpacing").uiPadding.bottom0,rt&&o("WAWebUISpacing").uiPadding.top0),{onClick:lt,children:g.jsx(k,{hasNavigationButtons:w,onNext:t.onNext,onPrev:t.onPrev,imgZoomed:ie,children:g.jsxs("div",{className:et,children:[g.jsx(r("WAWebMediaStage.react"),{msg:s,mediaData:q}),Je,g.jsx(r("WAWebGroupMetadataContext").Provider,{value:W.groupMetadata,children:Ue})]})})}))]})})})}E.displayName=E.name+" [from "+i.id+"]";function k(e){var t=e.children,n=e.hasNavigationButtons,a=e.imgZoomed,i=e.onNext,l=e.onPrev,s=y(o("WAWebMediaIncrementalZoom").MediaIncrementalZoomCtx).isZoomedIn,c=b(),d=b();return g.jsxs(g.Fragment,{children:[n&&g.jsx("div",babelHelpers.extends({},(p||(p=r("stylex"))).props(r("WAWebMediaViewerModalStyle").mediaNavBtn,r("WAWebMediaViewerModalStyle").mediaNavBtnPrev,s&&r("WAWebMediaViewerModalStyle").mediaNavBtnHidden,r("WAWebMediaViewerModalStyle").mediaNavBtnPrevIncrementalZoom),{children:g.jsx("div",{onClick:l?null:L,children:g.jsx(r("WDSTooltip.react"),{id:c,label:u._(/*BTDS*/"Anterior"),children:g.jsx(r("WDSButton.react"),{Icon:r("WDSIconIcChevronLeft.react"),variant:"tonal",type:"media",size:"medium",directional:!0,onPress:l!=null?l:void 0,disabled:!l||a,testid:void 0,"aria-describedby":c,"aria-label":u._(/*BTDS*/"Anterior")})})})})),t,n&&g.jsx("div",babelHelpers.extends({},(p||(p=r("stylex"))).props(r("WAWebMediaViewerModalStyle").mediaNavBtn,r("WAWebMediaViewerModalStyle").mediaNavBtnNext,s&&r("WAWebMediaViewerModalStyle").mediaNavBtnHidden,r("WAWebMediaViewerModalStyle").mediaNavBtnNextIncrementalZoom),{children:g.jsx("div",{onClick:i?null:L,children:g.jsx(r("WDSTooltip.react"),{id:d,label:u._(/*BTDS*/"Siguiente"),children:g.jsx(r("WDSButton.react"),{Icon:r("WDSIconIcChevronRight.react"),variant:"tonal",type:"media",size:"medium",directional:!0,onPress:i!=null?i:void 0,disabled:!i||a,testid:void 0,"aria-describedby":d,"aria-label":u._(/*BTDS*/"Siguiente")})})})}))]})}k.displayName=k.name+" [from "+i.id+"]";function I(e){var t;(t=o("WAWebAppTracker")).AppTracker.start(t.AppTrackerType.MediaOpen),t.AppTracker.stop(t.AppTrackerType.MediaOpenImage),t.AppTracker.stop(t.AppTrackerType.MediaOpenVideo),e===r("WAWebMediaData").TYPE.IMAGE?o("WAWebAppTracker").AppTracker.start(o("WAWebAppTracker").AppTrackerType.MediaOpenImage):e===r("WAWebMediaData").TYPE.VIDEO&&o("WAWebAppTracker").AppTracker.start(o("WAWebAppTracker").AppTrackerType.MediaOpenVideo)}function T(){var e;(e=o("WAWebAppTracker")).AppTracker.stop(e.AppTrackerType.MediaOpen),e.AppTracker.stop(e.AppTrackerType.MediaOpenImage),e.AppTracker.stop(e.AppTrackerType.MediaOpenVideo)}l.default=E}),226); __d("WAWebThumbList.react",["fbt","WALogger","WAMapsShallowEqual","WAWebAllMediaCollection","WAWebFocusTracer","WAWebMediaIncrementalZoom","WAWebMediaThumb.react","WAWebMediaViewerFlow.react","WAWebMsgGetters","WAWebPREGatingUtils","WAWebSpinner.react","WAWebUISpacing","react","stylex","useWAWebPrevious","useWAWebThrottledCallback"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m=d||(d=o("react")),p=u||(u=r("react")),_=m.useCallback,f=m.useContext,g=m.useEffect,h=m.useImperativeHandle,y=m.useLayoutEffect,C=m.useRef,b=m.useState,v=o("WAWebPREGatingUtils").isPREMessageSendFollowupEnabled()?p.memo(r("WAWebMediaThumb.react")):r("WAWebMediaThumb.react"),S={viewerThumbs:{display:"x78zum5",width:"xh8yej3",overflowX:"x14aock7",$$css:!0},mediaThumb:{position:"x1n2onr6",boxSizing:"x9f619",display:"x78zum5",flex:"x3psx0u",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"x9whnou",minWidth:"xa06r8k",maxWidth:"xr6zewm",height:"xuzvuw4",$$css:!0}};function R(t){var n=t.activeMsg,a=t.highlightedMsgIds,i=t.mediaMsgs,l=t.msgIdToPreferPreview,s=t.onSelectThumb,u=t.onSetActiveThumb,d=t.ref,m=C({}),f=function(){var e=n.id.toString(),t=m.current[e];t&&r("WAWebFocusTracer").focus(t)};h(d,function(){return{focusOnActive:f}});var g=a!=null&&a.size>0&&a.has(n.id.toString()),y=[],b=_(function(e,t){m.current[t]=e},[]),v=i instanceof o("WAWebAllMediaCollection").WAWebAllMediaCollection?i.getMsgsAround(n,50):i;v.forEach(function(t){if(t.mediaData==null){var r=n;o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["MediaViewerFlow: attempted to render a msg without mediaData: ",""])),JSON.stringify({type:t.type,isMedia:o("WAWebMsgGetters").getIsMedia(t),startMsgType:r.type,startMsgIsMedia:o("WAWebMsgGetters").getIsMedia(r)})).verbose();return}var i=g&&a&&!a.has(t.id.toString())?"viewerFlowTransparent":"viewerFlow";y.push(p.jsx(L,{theme:i,active:t===n,msg:t,onClick:s,setThumbRef:b,onSetActiveThumb:u,preferPreview:!!l.get(t.id.toString()),showTooltip:o("WAWebMsgGetters").getIsGroupMsg(t),tabIndex:t===n?0:-1},"media-"+t.id.id))});var R=(c||(c=r("stylex")))(S.mediaThumb,o("WAWebUISpacing").uiMargin.end8);return y.push(p.jsx("div",{className:R,children:i.queryMediaAfter!=null?p.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24}):null},"spinner-right")),y.unshift(p.jsx("div",{className:R,children:i.queryMediaBefore!=null?p.jsx(o("WAWebSpinner.react").Spinner,{stroke:6,size:24}):null},"spinner-left")),y.push(p.jsx("div",{className:"x1mkiy5m"},"padding-right")),y.unshift(p.jsx("div",{className:"x1mkiy5m"},"padding-left")),p.jsx(p.Fragment,{children:y})}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e.active,n=e.msg,r=e.onClick,o=e.onSetActiveThumb,a=e.preferPreview,i=e.setThumbRef,l=e.showTooltip,s=e.tabIndex,u=e.theme,c=_(function(){r(n)},[n,r]),d=_(function(e){i(e,n.id.toString()),t===!0&&o(e)},[t,n.id,o,i]);return p.jsx(v,{theme:u,active:t,msg:n,containerRef:d,onClick:c,preferPreview:a,showTooltip:l,tabIndex:s})}L.displayName=L.name+" [from "+i.id+"]";var E=R;function k(e){var t=f(o("WAWebMediaViewerFlow.react").MediaViewerFlowZoomContext),n=e.activeMsg,a=e.mediaMsgs,i=e.moveDownAnimation,l=e.moveUpAnimation,u=e.onScroll;T({moveDownAnimation:i,moveUpAnimation:l});var d=C({}),m=C(null),_=C(null),h=r("useWAWebPrevious")(n.id),y=function(){var e;(e=m.current)==null||e.focusOnActive()};g(function(){var e;(e=_.current)!=null&&e.contains(document.activeElement)&&!n.id.equals(h)&&y()},[n,h]);var v=function(t){var e=d.current[t];if(!e)return!1;var n=e.getBoundingClientRect(),r=(n.left+n.right)/2,o=r>-1*window.innerWidth&&r<2*window.innerWidth;return!o},R=function(){var e=new Map;return a.forEach(function(t){var n=t.id.toString();e.set(n,v(n))}),e},L=b(R),k=L[0],I=L[1],D=r("useWAWebThrottledCallback")(function(){var e=R();r("WAMapsShallowEqual")(k,e)||I(e)},100),x=function(t){D(),u(t)},$=t;return p.jsx("div",babelHelpers.extends({},{0:{className:"xsm26vf x10l6tqk x1ey2m1c xoxg7ud x9f619 x78zum5 xdt5ytf x6s0dn4 x1nhvcw1 xh8yej3 xpyat2d x6ikm8r x10wlt62 x13fuv20 x178xt8z xx42vgk xg01cxk xqu7myx"},1:{className:"xsm26vf x10l6tqk x1ey2m1c xoxg7ud x9f619 x78zum5 xdt5ytf x6s0dn4 x1nhvcw1 xh8yej3 xpyat2d x6ikm8r x10wlt62 x13fuv20 x178xt8z xx42vgk xqu7myx x1yn0zye xvdu4fi"}}[!!$<<0],{ref:e.setRefThumbsContainer,children:p.jsx("div",{ref:_,className:"xh8yej3",dir:"ltr",children:p.jsx("div",babelHelpers.extends({role:"list","aria-label":s._(/*BTDS*/"Lista de archivos multimedia"),onScroll:x},(c||(c=r("stylex"))).props(S.viewerThumbs,o("WAWebUISpacing").uiPadding.vert8),{ref:e.setRefThumbs,children:p.jsx(E,{ref:m,mediaMsgs:a,highlightedMsgIds:e.highlightedMsgIds,activeMsg:e.activeMsg,onSetActiveThumb:e.onSetActiveThumb,onSelectThumb:e.onSelectThumb,msgIdToPreferPreview:k})}))})}))}k.displayName=k.name+" [from "+i.id+"]";var I=200;function T(e){var t=e.moveDownAnimation,n=e.moveUpAnimation,a=f(o("WAWebMediaIncrementalZoom").MediaIncrementalZoomCtx),i=a.hasOverflownThumbnailSection,l=r("useWAWebPrevious")(i),s=C(!1),u=C(!1),c=a.isEnabled,d=a.msgId,m=_(function(){n==null||n(),s.current=!1},[n]),p=_(function(){t==null||t(),s.current=!0},[t]),h=function(){return u.current=!1,window.setTimeout(function(){u.current=!0},I)};g(function(){var e=h();return function(){window.clearTimeout(e)}},[]),y(function(){u.current=!1;var e=h();return s.current&&m(),function(){window.clearTimeout(e)}},[d]),g(function(){!c||!u.current||i===l||(s.current=i,i?p():m())},[a.msgId,i,p,c,t,n,l,m])}l.default=k}),226); __d("WAWebMediaPdfDocumentError.react",["fbt","WAWebFlex.react","WAWebTPLoggingUtils","WDSButton.react","WDSText.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c={container:{height:"x5yr21d",width:"xh8yej3",$$css:!0},textContainer:{maxWidth:"x1j9u4d2",$$css:!0}};function d(e){var t=e.filehash,n=e.filename,a=e.filesize,i=e.onDownload,l=function(n){n.stopPropagation(),n.preventDefault(),o("WAWebTPLoggingUtils").logDownloadDocumentClickEvent("pdf_viewer_error_screen",t,a),i()};return u.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",justify:"center",gap:24,xstyle:c.container,children:[u.jsxs(o("WAWebFlex.react").FlexColumn,{align:"center",gap:8,xstyle:c.textContainer,children:[u.jsx(r("WDSText.react"),{type:"Headline2",colorName:"contentDefault",maxLines:2,textAlign:"center",children:s._(/*BTDS*/"Error al abrir \"{filename}\"",[s._param("filename",n)])}),u.jsx(r("WDSText.react"),{type:"Body2",colorName:"contentDeemphasized",textAlign:"center",children:s._(/*BTDS*/"No pudimos abrir este archivo. Puedes descargarlo para verlo.")})]}),u.jsx(r("WDSButton.react"),{variant:"filled",onPress:l,label:s._(/*BTDS*/"Descargar archivo")})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebMediaPdfDocumentIframe.react",["WAWebTPFrameUrlBuilder","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useMemo;function c(e){var t=e.iframeRef,n=u(function(){return o("WAWebTPFrameUrlBuilder").getWAWebTPPdfViewerUrl()},[]);return s.jsx("iframe",{credentialless:!1,ref:t,src:n,className:"xh8yej3 x5yr21d",sandbox:"allow-scripts allow-same-origin"})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMediaPdfDocumentThumbnail.react",["WAWebMediaOpaqueData","justknobx","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useEffect,c=r("justknobx")._("5240");function d(e){var t,n=e.mediaData,o=e.onLoad,a=(t=n.fullPreviewData)!=null?t:n.preview,i=a!=null&&a instanceof r("WAWebMediaOpaqueData")?a:null;return u(function(){var e,t=i;if(!(((e=t==null?void 0:t.size())!=null?e:0)