;/*FB_PKG_DELIM*/ __d("CometAIBaseTheme.stylex",[],(function(t,n,r,o,a,i,l){"use strict";var e={composerBarFontSize:"12px",composerParagraphFontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',composerParagraphFontSize:"16px",composerParagraphFontWeight:400,composerParagraphLineHeight:"20px",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',gradientTextFontSize:"16px",pressableOptionSubtitleFontSize:"14px",pressableOptionTitleFontSize:"18px"},s={fontSize:15,lineGap:9},u={bubbleTooltipBorderWidth:"0px",buttonCallBorderWidth:"0px",buttonCallPressedBorderWidth:"0px",buttonFileUploadBorderWidth:"0px",buttonFileUploadPressedBorderWidth:"0px",buttonMicrophoneBorderWidth:"0px",buttonMicrophonePressedBorderWidth:"0px",buttonPlayPauseBorderWidth:"1px",buttonPrimaryBorderWidth:"0px",buttonPrimaryPressedBorderWidth:"0px",buttonSecondaryBorderWidth:"1px",buttonSecondaryPressedBorderWidth:"1px",buttonSendBorderWidth:"0px",buttonSendPressedBorderWidth:"0px",buttonSettingsToggleBorderWidth:"0px",buttonSpeakerBorderWidth:"0px",buttonSpeakerPressedBorderWidth:"0px",buttonStopBorderWidth:"0px",buttonStopPressedBorderWidth:"0px",pressableOptionBorderStyle:"solid",pressableOptionBorderWidth:"1px"},c={"--bubbleContentUserBackgroundColor":null,"--bubbleContentUserColor":null,"--buttonSendBackgroundColor":null,aiMessageBackground:"#F0F0F0",dividerColor:"#E2E5E9",bubbleContentBackgroundColor:"rgba(0, 0, 0, 0.06)",bubbleContentColor:"#000000",bubbleTooltipBackground:"#323436",bubbleTooltipTextColor:"#FFFFFF",bubbleTypingBackgroundColor:"rgba(0, 0, 0, 0.06)",buttonCallBackgroundColor:"#080809",buttonCallBorderColor:"transparent",buttonCallDisabledBackgroundColor:"#cdcfd1",buttonCallHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonCallPressedBorderColor:"transparent",buttonFileUploadBackgroundColor:"transparent",buttonFileUploadBorderColor:"transparent",buttonFileUploadColor:"#080809",buttonFileUploadDisabledBackgroundColor:"transparent",buttonFileUploadHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonFileUploadPressedBorderColor:"transparent",buttonMicrophoneBackgroundColor:"transparent",buttonMicrophoneBorderColor:"transparent",buttonMicrophoneColor:"#080809",buttonMicrophoneDisabledBackgroundColor:"transparent",buttonMicrophoneHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonMicrophonePressedBorderColor:"transparent",buttonPlayPauseBackgroundColor:"rgba(21, 33, 39, 0.2)",buttonPlayPauseBorderColor:"#445664",buttonPlayPauseColor:"#FFFFFF",buttonPrimaryBackgroundColor:"#0866FF",buttonPrimaryBorderColor:"transparent",buttonPrimaryColor:"#FFFFFF",buttonPrimaryDisabledBackgroundColor:"#cdcfd1",buttonPrimaryHoveredBackgroundColor:"#0759F2",buttonPrimaryPressedBorderColor:"transparent",buttonSecondaryBackgroundColor:"transparent",buttonSecondaryBorderColor:"#E2E5E9",buttonSecondaryColor:"#080809",buttonSecondaryDisabledBackgroundColor:"#E2E5E9",buttonSecondaryHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonSecondaryPressedBorderColor:"#E2E5E9",buttonSendBorderColor:"transparent",buttonSendColor:"#FFFFFF",buttonSendDisabledBackgroundColor:"#cdcfd1",buttonSendHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonSendPressedBorderColor:"transparent",buttonSettingsToggleBackgroundColor:"transparent",buttonSettingsToggleBorderColor:"transparent",buttonSpeakerBackgroundColor:"transparent",buttonSpeakerBorderColor:"transparent",buttonSpeakerColor:"#080809",buttonSpeakerDisabledBackgroundColor:"transparent",buttonSpeakerHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonSpeakerPressedBorderColor:"transparent",buttonStopBackgroundColor:"#FFE3DE",buttonStopBorderColor:"transparent",buttonStopDisabledBackgroundColor:"#FFE3DE",buttonStopHoveredBackgroundColor:"rgba(0, 0, 0, 0.05)",buttonStopPressedBorderColor:"transparent",citationBackgroundColor:"#F0F0F0",citationLinkListHoverBackgroundColor:"rgba(0, 0, 0, 0.05)",citationListLinkBorderRadius:"8px",citationListLinkPadding:"16px",composerParagraphColor:"#000000",composerPlaceholderColor:"#8A8D91",disabledIcon:"#B0B3B8",gradientTextBackgroundImage:"linear-gradient(90deg, grey, white, grey)",gradientTextTextColor:"transparent",humanMessageBackground:"#000000",inputBackground:"#FFFFFF",negative:"#F53947",placeholderText:"#8A8D91",playPauseButtonText:"#FFFFFF",pressableOptionBackgroundColor:"#FFFFFF",pressableOptionBackgroundColorActive:"rgba(0, 0, 0, 0.15)",pressableOptionBackgroundColorHover:"rgba(0, 0, 0, 0.05)",pressableOptionBackgroundColorUser:"var(--bubbleContentUserBackgroundColor)",pressableOptionBorderColor:"#F0F0F0",primaryButtonBackground:"#0866FF",primaryButtonText:"#FFFFFF",primaryIcon:"#000000",secondaryButtonBackground:"transparent",secondaryButtonStroke:"#CED0D4",secondaryButtonText:"#080809",secondaryIcon:"#65676B",sendButtonText:"#FFFFFF",spinnerStroke:"#000000",tableBorderColor:"#e1e4e8",tableHeaderBackgroundColor:"#f6f8fa",textPrimary:"#000000",textSecondary:"#65686C",videoControlsContainerGradient:"linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, .5))",videoProgressBackgroundColor:"#FFFFFF",videoProgressBarBackgroundColor:"#F1F4F766",videoTextPrimaryColor:"#FFFFFF",videoTextSecondaryColor:"#CCD3DB",voiceVisualizerBarBackgroundColor:"#F53947",waveDotBackgroundColor:"#000000",white:"#FFFFFF"},d={bubbleColumnGap:"12px",bubbleContentContainerRowGap:"2px",bubbleContentContainerWidth:"auto",bubbleContentPaddingBlock:"12px",bubbleContentPaddingInline:"16px",bubbleTooltipPadding:"12px",buttonCallAddOnEndPaddingInlineEnd:"0px",buttonCallAddOnStartPaddingInlineEnd:"0px",buttonCallAddOnStartPaddingInlineStart:"0px",buttonCallItemMarginInline:"5px",buttonCallPaddingInline:"4px",buttonFileUploadAddOnEndPaddingInlineEnd:"5px",buttonFileUploadAddOnStartPaddingInlineStart:"5px",buttonFileUploadItemMarginInline:"5px",buttonFileUploadPaddingInline:"10px",buttonLargeAddOnEndPaddingInlineEnd:"6px",buttonLargeAddOnStartPaddingInlineStart:"6px",buttonLargeItemMarginInline:"6px",buttonLargePaddingInline:"12px",buttonMediumAddOnEndPaddingInlineEnd:"5px",buttonMediumAddOnStartPaddingInlineStart:"5px",buttonMediumItemMarginInline:"5px",buttonMediumPaddingInline:"10px",buttonMicrophoneAddOnEndPaddingInlineEnd:"5px",buttonMicrophoneAddOnStartPaddingInlineStart:"5px",buttonMicrophoneItemMarginInline:"5px",buttonMicrophonePaddingInline:"10px",buttonPlayPauseMarginInline:"5px",buttonPlayPausePaddingInline:"10px",buttonPlayPausePaddingInlineEnd:"5px",buttonPlayPausePaddingInlineStart:"5px",buttonSendAddOnEndPaddingInlineEnd:"5px",buttonSendAddOnStartPaddingInlineStart:"5px",buttonSendItemMarginInline:"5px",buttonSendPaddingInline:"10px",buttonSettingsToggleMarginInline:"5px",buttonSettingsTogglePaddingInline:"10px",buttonSettingsTogglePaddingInlineEnd:"5px",buttonSettingsTogglePaddingInlineStart:"5px",buttonSmallAddOnEndPaddingInlineEnd:"4px",buttonSmallAddOnStartPaddingInlineStart:"4px",buttonSmallItemMarginInline:"4px",buttonSmallPaddingInline:"8px",buttonSpeakerAddOnEndPaddingInlineEnd:"5px",buttonSpeakerAddOnStartPaddingInlineStart:"5px",buttonSpeakerItemMarginInline:"5px",buttonSpeakerPaddingInline:"10px",buttonStopAddOnEndPaddingInlineEnd:"0px",buttonStopAddOnStartPaddingInlineEnd:"0px",buttonStopAddOnStartPaddingInlineStart:"0px",buttonStopGroupColumnGap:"4px",buttonStopItemMarginInline:"5px",buttonStopPaddingInline:"3px",composerBarPaddingBlock:"8px",composerBarPaddingInline:"8px",composerBarSpacing:"8px",composerContentEditablePaddingBlock:"0px",composerContentEditablePaddingInline:"0px",composerParagraphMargin:"0",gradientTextLineGap:"12px",gradientTextSpacing:"8px",pressableOptionContentSpacing:"12px",pressableOptionListAlignSelf:"auto",pressableOptionListSpacing:"12px",pressableOptionListWidth:"auto",pressableOptionMaxWidth:"none",pressableOptionMinWidth:"auto",pressableOptionPaddingBlock:"12px",pressableOptionPaddingInline:"16px",pressableOptionSpacing:"8px",tableCellPaddingBottom:"8px",tableCellPaddingInlineEnd:"12px",tableCellPaddingInlineStart:"12px",tableCellPaddingTop:"8px",tableHeaderPaddingBottom:"8px",tableHeaderPaddingInlineEnd:"12px",tableHeaderPaddingInlineStart:"12px",tableHeaderPaddingTop:"8px",textInputMultiPaddingScrollbar:"16px",textInputPaddingVertical:"12px",videoProgressBarMarginInline:"16px",voiceVisualizerColumnGap:"3px",waveDotSpacing:"8px"},m={bubbleTooltipBoxShadow:"0 2px 4px 0 rgba(0, 0, 0, 0.5)",pressableOptionBoxShadow:"none"},p={bubbleTooltipOpacity:0,buttonCallDisabledOpacity:1,buttonFileUploadDisabledOpacity:.4,buttonMicrophoneDisabledOpacity:.4,buttonPlayPauseOpacity:.2,buttonPrimaryDisabledOpacity:1,buttonSecondaryDisabledOpacity:.5,buttonSendDisabledOpacity:1,buttonSpeakerDisabledOpacity:.4,buttonStopDisabledOpacity:.4},_={bubbleAvatarSize:"32px",bubbleContentContainerMaxWidth:"95%",bubbleContentContainerUserMaxWidth:"75%",bubbleTooltipMaxWidth:"calc(min(334px, 100vw - 48px))",buttonCallHeight:"32px",buttonCallWidth:"32px",buttonFileUploadHeight:"32px",buttonFileUploadWidth:"32px",buttonLargeHeight:"40px",buttonMediumHeight:"36px",buttonMicrophoneHeight:"32px",buttonMicrophoneWidth:"32px",buttonPlayPauseHeight:"64px",buttonPlayPauseWidth:"64px",buttonSendHeight:"32px",buttonSendWidth:"32px",buttonSettingsToggleHeight:"36px",buttonSettingsToggleWidth:"36px",buttonSmallHeight:"28px",buttonSpeakerHeight:"32px",buttonSpeakerWidth:"32px",buttonStopHeight:"32px",buttonStopWidth:"32px",composerContainerMinHeight:"100%",gradientTextBackgroundSize:"400% auto",textInputMinHeight:"64px",videoControlsContainerHeight:"50px",videoPlayheadHeight:"8px",videoPlayheadWidth:"8px",videoProgressBarHeight:"4px",voiceButtonMinWidth:"72px",voiceVisualizerBarHeight:"12px",voiceVisualizerBarWidth:"3px",waveDotContainerHeight:"10px",waveDotSize:"4px"},f={bubbleContentBorderRadius:"12px",bubbleTooltipBorderRadius:"8px",buttonCallBorderRadius:"24px",buttonCallHoveredBorderRadius:"24px",buttonCallPressedBorderRadius:"24px",buttonFileUploadBorderRadius:"50%",buttonFileUploadHoveredBorderRadius:"50%",buttonFileUploadPressedBorderRadius:"50%",buttonLargeBorderRadius:"6px",buttonLargeHoveredBorderRadius:"6px",buttonLargePressedBorderRadius:"6px",buttonMediumBorderRadius:"5px",buttonMediumHoveredBorderRadius:"5px",buttonMediumPressedBorderRadius:"5px",buttonMicrophoneBorderRadius:"50%",buttonMicrophoneHoveredBorderRadius:"50%",buttonMicrophonePressedBorderRadius:"50%",buttonPlayPauseBorderRadius:"50%",buttonSendBorderRadius:"50%",buttonSendHoveredBorderRadius:"50%",buttonSendPressedBorderRadius:"50%",buttonSmallBorderRadius:"4px",buttonSmallHoveredBorderRadius:"4px",buttonSmallPressedBorderRadius:"4px",buttonSpeakerBorderRadius:"50%",buttonSpeakerHoveredBorderRadius:"50%",buttonSpeakerPressedBorderRadius:"50%",buttonStopBorderRadius:"24px",buttonStopHoveredBorderRadius:"24px",buttonStopPressedBorderRadius:"24px",inputCornerRadius:"8px",pressableOptionBorderRadius:"8px",tableContainerBorderRadius:"0",videoProgressBarBorderRadius:"2px",voiceVisualizerBarBorderRadius:"3px"},g="x19100ke-B",h="x16ddlwn-B",y="x1gpjdt6-B",C={fdsAnimationMoveIn:"cubic-bezier(0.08, 0.52, 0.52, 1)",fdsAnimationMoveOut:"cubic-bezier(0.08, 0.52, 0.52, 1)",fdsDurationExtraShortIn:"100ms",gradientTextAnimationDirection:"reverse",gradientTextAnimationDuration:"8s",gradientTextAnimationName:g,gradientTextAnimationTimingFunction:"linear",videoButtonTransition:"opacity 0.2s ease",voiceVisualizerBarTransition:"transform 50ms linear",waveDot1OpacityAnimationDelay:"0ms",waveDot1WaveAnimationDelay:"0s",waveDot2OpacityAnimationDelay:"200ms",waveDot2WaveAnimationDelay:"200ms",waveDot3OpacityAnimationDelay:"400ms",waveDot3WaveAnimationDelay:"400ms",waveDotOpacityAnimationDuration:"2s",waveDotOpacityAnimationName:y,waveDotOpacityAnimationTimingFunction:"linear",waveDotWaveAnimationDuration:"2s",waveDotWaveAnimationName:h,waveDotWaveAnimationTimingFunction:"linear"},b={gradientTextBackgroundPosition:"0%"},v=babelHelpers.extends({},u,d,m,p,e,c,C,f,_,b),S={bubbleTooltipBorderWidth:"var(--xlx7u6e)",buttonCallBorderWidth:"var(--xik8ccv)",buttonCallPressedBorderWidth:"var(--x1g8fdq7)",buttonFileUploadBorderWidth:"var(--xexklgv)",buttonFileUploadPressedBorderWidth:"var(--xc79r3t)",buttonMicrophoneBorderWidth:"var(--x1sb3civ)",buttonMicrophonePressedBorderWidth:"var(--x1dka7z)",buttonPlayPauseBorderWidth:"var(--x1k4myr1)",buttonPrimaryBorderWidth:"var(--x1bu8lrs)",buttonPrimaryPressedBorderWidth:"var(--x1fx80fs)",buttonSecondaryBorderWidth:"var(--x1qhsdun)",buttonSecondaryPressedBorderWidth:"var(--xdemnd9)",buttonSendBorderWidth:"var(--x1gepq4w)",buttonSendPressedBorderWidth:"var(--x1wp4dm2)",buttonSettingsToggleBorderWidth:"var(--xeuc15l)",buttonSpeakerBorderWidth:"var(--x8g8wmh)",buttonSpeakerPressedBorderWidth:"var(--x16si9m3)",buttonStopBorderWidth:"var(--xo3rck8)",buttonStopPressedBorderWidth:"var(--x8gv6bx)",pressableOptionBorderStyle:"var(--xfrk6k2)",pressableOptionBorderWidth:"var(--xbnnbcs)",bubbleColumnGap:"var(--x1iqrbwf)",bubbleContentContainerRowGap:"var(--x4bzwim)",bubbleContentContainerWidth:"var(--xk37jod)",bubbleContentPaddingBlock:"var(--xoir9yd)",bubbleContentPaddingInline:"var(--xgwz7a)",bubbleTooltipPadding:"var(--xwutvj3)",buttonCallAddOnEndPaddingInlineEnd:"var(--xa3t32q)",buttonCallAddOnStartPaddingInlineEnd:"var(--x17m3bg8)",buttonCallAddOnStartPaddingInlineStart:"var(--xovr52e)",buttonCallItemMarginInline:"var(--x16mvtsk)",buttonCallPaddingInline:"var(--x4yl131)",buttonFileUploadAddOnEndPaddingInlineEnd:"var(--xs2xjav)",buttonFileUploadAddOnStartPaddingInlineStart:"var(--xbxt6u0)",buttonFileUploadItemMarginInline:"var(--x6cgvui)",buttonFileUploadPaddingInline:"var(--x1151t8p)",buttonLargeAddOnEndPaddingInlineEnd:"var(--x1lst64k)",buttonLargeAddOnStartPaddingInlineStart:"var(--x3j9qmu)",buttonLargeItemMarginInline:"var(--xmo9kjt)",buttonLargePaddingInline:"var(--x1s825o0)",buttonMediumAddOnEndPaddingInlineEnd:"var(--xyeoegy)",buttonMediumAddOnStartPaddingInlineStart:"var(--xez4x4z)",buttonMediumItemMarginInline:"var(--x1pbyom4)",buttonMediumPaddingInline:"var(--x1h23lpg)",buttonMicrophoneAddOnEndPaddingInlineEnd:"var(--x178rz4h)",buttonMicrophoneAddOnStartPaddingInlineStart:"var(--x19jd6gk)",buttonMicrophoneItemMarginInline:"var(--x1m0kmm)",buttonMicrophonePaddingInline:"var(--x18og1a8)",buttonPlayPauseMarginInline:"var(--x198yf9l)",buttonPlayPausePaddingInline:"var(--x17s2s01)",buttonPlayPausePaddingInlineEnd:"var(--x8scjvk)",buttonPlayPausePaddingInlineStart:"var(--xkd1r8e)",buttonSendAddOnEndPaddingInlineEnd:"var(--x1napzm8)",buttonSendAddOnStartPaddingInlineStart:"var(--x6jkwj7)",buttonSendItemMarginInline:"var(--x1et33sf)",buttonSendPaddingInline:"var(--x15843vv)",buttonSettingsToggleMarginInline:"var(--x1apez3n)",buttonSettingsTogglePaddingInline:"var(--x1prtngd)",buttonSettingsTogglePaddingInlineEnd:"var(--xa6vsrr)",buttonSettingsTogglePaddingInlineStart:"var(--x17re1hs)",buttonSmallAddOnEndPaddingInlineEnd:"var(--x1ftodw5)",buttonSmallAddOnStartPaddingInlineStart:"var(--x155matd)",buttonSmallItemMarginInline:"var(--x1yfdafw)",buttonSmallPaddingInline:"var(--x1it9t5o)",buttonSpeakerAddOnEndPaddingInlineEnd:"var(--x1602v8z)",buttonSpeakerAddOnStartPaddingInlineStart:"var(--xqfjaf7)",buttonSpeakerItemMarginInline:"var(--x1n945xb)",buttonSpeakerPaddingInline:"var(--x9huxp1)",buttonStopAddOnEndPaddingInlineEnd:"var(--x287wji)",buttonStopAddOnStartPaddingInlineEnd:"var(--xyowug9)",buttonStopAddOnStartPaddingInlineStart:"var(--x1u0655h)",buttonStopGroupColumnGap:"var(--xjvkmi1)",buttonStopItemMarginInline:"var(--x1hmaw5b)",buttonStopPaddingInline:"var(--xjen6ej)",composerBarPaddingBlock:"var(--x19q6y20)",composerBarPaddingInline:"var(--xv29y53)",composerBarSpacing:"var(--x1tkfw0i)",composerContentEditablePaddingBlock:"var(--x1f9f2th)",composerContentEditablePaddingInline:"var(--x1bom0sp)",composerParagraphMargin:"var(--xs0bd1e)",gradientTextLineGap:"var(--x7z3nr7)",gradientTextSpacing:"var(--x3ytj5f)",pressableOptionContentSpacing:"var(--x6ixmsi)",pressableOptionListAlignSelf:"var(--x10brjbm)",pressableOptionListSpacing:"var(--x18kqi07)",pressableOptionListWidth:"var(--x12pvdnb)",pressableOptionMaxWidth:"var(--x19rz69o)",pressableOptionMinWidth:"var(--xbx14lq)",pressableOptionPaddingBlock:"var(--x10y4ran)",pressableOptionPaddingInline:"var(--xnrljl1)",pressableOptionSpacing:"var(--xju61ic)",tableCellPaddingBottom:"var(--xg3eg28)",tableCellPaddingInlineEnd:"var(--x1hcq818)",tableCellPaddingInlineStart:"var(--x1hvovgm)",tableCellPaddingTop:"var(--xiessm1)",tableHeaderPaddingBottom:"var(--xh89adf)",tableHeaderPaddingInlineEnd:"var(--x1pkp4r4)",tableHeaderPaddingInlineStart:"var(--x6pwzom)",tableHeaderPaddingTop:"var(--x15nmaec)",textInputMultiPaddingScrollbar:"var(--x79phgq)",textInputPaddingVertical:"var(--xn98y3a)",videoProgressBarMarginInline:"var(--xn9bwek)",voiceVisualizerColumnGap:"var(--x1lzl6ls)",waveDotSpacing:"var(--x1nkglug)",bubbleTooltipBoxShadow:"var(--x189z1lz)",pressableOptionBoxShadow:"var(--x1o6ias2)",bubbleTooltipOpacity:"var(--x3nbg8q)",buttonCallDisabledOpacity:"var(--x19gqeph)",buttonFileUploadDisabledOpacity:"var(--xjl0f5w)",buttonMicrophoneDisabledOpacity:"var(--x11tx24z)",buttonPlayPauseOpacity:"var(--x1bt26c2)",buttonPrimaryDisabledOpacity:"var(--x8jlfy6)",buttonSecondaryDisabledOpacity:"var(--x132c4bx)",buttonSendDisabledOpacity:"var(--xnzvq2j)",buttonSpeakerDisabledOpacity:"var(--x1mhjrx2)",buttonStopDisabledOpacity:"var(--x1ad7l02)",composerBarFontSize:"var(--xqpeelq)",composerParagraphFontFamily:"var(--x1rl2gpv)",composerParagraphFontSize:"var(--x1oyn4z3)",composerParagraphFontWeight:"var(--xpoq6yp)",composerParagraphLineHeight:"var(--x1a730wv)",fontFamily:"var(--x1xbp41d)",gradientTextFontSize:"var(--x4cz878)",pressableOptionSubtitleFontSize:"var(--x1d6k8u6)",pressableOptionTitleFontSize:"var(--xiqovf7)","--bubbleContentUserBackgroundColor":"var(--bubbleContentUserBackgroundColor)","--bubbleContentUserColor":"var(--bubbleContentUserColor)","--buttonSendBackgroundColor":"var(--buttonSendBackgroundColor)",aiMessageBackground:"var(--x1ev4bvd)",dividerColor:"var(--xd9u4s4)",bubbleContentBackgroundColor:"var(--xer23z7)",bubbleContentColor:"var(--x1bxvvwh)",bubbleTooltipBackground:"var(--xiw6jcg)",bubbleTooltipTextColor:"var(--xlq2kmo)",bubbleTypingBackgroundColor:"var(--xx6r3m5)",buttonCallBackgroundColor:"var(--x1wb1v04)",buttonCallBorderColor:"var(--xo864yi)",buttonCallDisabledBackgroundColor:"var(--x1wabinx)",buttonCallHoveredBackgroundColor:"var(--x13t7dcq)",buttonCallPressedBorderColor:"var(--xfsprpa)",buttonFileUploadBackgroundColor:"var(--x1aumypx)",buttonFileUploadBorderColor:"var(--x97wcsu)",buttonFileUploadColor:"var(--xl9ojqf)",buttonFileUploadDisabledBackgroundColor:"var(--xacx6cu)",buttonFileUploadHoveredBackgroundColor:"var(--x1upcoxv)",buttonFileUploadPressedBorderColor:"var(--x1y02xta)",buttonMicrophoneBackgroundColor:"var(--x2v0w26)",buttonMicrophoneBorderColor:"var(--xbakyew)",buttonMicrophoneColor:"var(--xftuvfa)",buttonMicrophoneDisabledBackgroundColor:"var(--x126rt5m)",buttonMicrophoneHoveredBackgroundColor:"var(--x1iz8wdo)",buttonMicrophonePressedBorderColor:"var(--xdg47pa)",buttonPlayPauseBackgroundColor:"var(--xdstih4)",buttonPlayPauseBorderColor:"var(--x17h09wl)",buttonPlayPauseColor:"var(--xmqvuy9)",buttonPrimaryBackgroundColor:"var(--xdvz3pk)",buttonPrimaryBorderColor:"var(--x1lgju46)",buttonPrimaryColor:"var(--x1evxk78)",buttonPrimaryDisabledBackgroundColor:"var(--x1pwsir7)",buttonPrimaryHoveredBackgroundColor:"var(--x6r21d0)",buttonPrimaryPressedBorderColor:"var(--x1f8qg8u)",buttonSecondaryBackgroundColor:"var(--xlucz4u)",buttonSecondaryBorderColor:"var(--xe31vrr)",buttonSecondaryColor:"var(--xsl46bp)",buttonSecondaryDisabledBackgroundColor:"var(--x1r17ggk)",buttonSecondaryHoveredBackgroundColor:"var(--xeq63j5)",buttonSecondaryPressedBorderColor:"var(--xqu9v5)",buttonSendBorderColor:"var(--x154p3i6)",buttonSendColor:"var(--x1xj48ei)",buttonSendDisabledBackgroundColor:"var(--xqx1b3w)",buttonSendHoveredBackgroundColor:"var(--x1clyshj)",buttonSendPressedBorderColor:"var(--x1f8hdz3)",buttonSettingsToggleBackgroundColor:"var(--xz27ylr)",buttonSettingsToggleBorderColor:"var(--x1f1vpbm)",buttonSpeakerBackgroundColor:"var(--xw6x4cz)",buttonSpeakerBorderColor:"var(--x1t42zyj)",buttonSpeakerColor:"var(--x19fognk)",buttonSpeakerDisabledBackgroundColor:"var(--x1nycba7)",buttonSpeakerHoveredBackgroundColor:"var(--x11nuaxw)",buttonSpeakerPressedBorderColor:"var(--xt2duer)",buttonStopBackgroundColor:"var(--xkg1yw)",buttonStopBorderColor:"var(--x17xti0e)",buttonStopDisabledBackgroundColor:"var(--x198b9t9)",buttonStopHoveredBackgroundColor:"var(--xcv04am)",buttonStopPressedBorderColor:"var(--x32uek6)",citationBackgroundColor:"var(--x16oxp5a)",citationLinkListHoverBackgroundColor:"var(--xzsxl4p)",citationListLinkBorderRadius:"var(--x9yfhik)",citationListLinkPadding:"var(--x14ofxiu)",composerParagraphColor:"var(--x1kpccw5)",composerPlaceholderColor:"var(--xe5i04x)",disabledIcon:"var(--xiv1y0m)",gradientTextBackgroundImage:"var(--x1b39yh6)",gradientTextTextColor:"var(--xq6rgv9)",humanMessageBackground:"var(--x1rhfrof)",inputBackground:"var(--x12qb30c)",negative:"var(--xqt9fth)",placeholderText:"var(--xzdavdm)",playPauseButtonText:"var(--x1p42rpq)",pressableOptionBackgroundColor:"var(--x1fowau0)",pressableOptionBackgroundColorActive:"var(--x4cdsqv)",pressableOptionBackgroundColorHover:"var(--x18tv962)",pressableOptionBackgroundColorUser:"var(--x1mxho3s)",pressableOptionBorderColor:"var(--x1drzc3)",primaryButtonBackground:"var(--x215qz1)",primaryButtonText:"var(--x5lf19y)",primaryIcon:"var(--x125vgxg)",secondaryButtonBackground:"var(--xw4mkmd)",secondaryButtonStroke:"var(--x15j2dhm)",secondaryButtonText:"var(--x1h50e4l)",secondaryIcon:"var(--x11psvdz)",sendButtonText:"var(--x149dqt)",spinnerStroke:"var(--xbdfujg)",tableBorderColor:"var(--x1s39hm7)",tableHeaderBackgroundColor:"var(--x1p8ippb)",textPrimary:"var(--x15bmxmr)",textSecondary:"var(--xkvygis)",videoControlsContainerGradient:"var(--xwxij5g)",videoProgressBackgroundColor:"var(--xyaxlxh)",videoProgressBarBackgroundColor:"var(--xepydxb)",videoTextPrimaryColor:"var(--x1196mbi)",videoTextSecondaryColor:"var(--x1dxmqov)",voiceVisualizerBarBackgroundColor:"var(--xadhof8)",waveDotBackgroundColor:"var(--x1a4bunx)",white:"var(--x1ihezxe)",fdsAnimationMoveIn:"var(--xx5vayt)",fdsAnimationMoveOut:"var(--x6a00ex)",fdsDurationExtraShortIn:"var(--xvv23fx)",gradientTextAnimationDirection:"var(--x1pfwwdm)",gradientTextAnimationDuration:"var(--x1osw725)",gradientTextAnimationName:"var(--xakqpoz)",gradientTextAnimationTimingFunction:"var(--x1clm63l)",videoButtonTransition:"var(--x117ptrb)",voiceVisualizerBarTransition:"var(--xcqs4f3)",waveDot1OpacityAnimationDelay:"var(--xg3aput)",waveDot1WaveAnimationDelay:"var(--x19wb9r)",waveDot2OpacityAnimationDelay:"var(--xo7axmw)",waveDot2WaveAnimationDelay:"var(--xtkxyfg)",waveDot3OpacityAnimationDelay:"var(--xm2qnaw)",waveDot3WaveAnimationDelay:"var(--x1hcjaay)",waveDotOpacityAnimationDuration:"var(--x10e0ozs)",waveDotOpacityAnimationName:"var(--x11zsdp1)",waveDotOpacityAnimationTimingFunction:"var(--x6slekt)",waveDotWaveAnimationDuration:"var(--xmypfwe)",waveDotWaveAnimationName:"var(--x61we9e)",waveDotWaveAnimationTimingFunction:"var(--xekrhsr)",bubbleContentBorderRadius:"var(--xwbpd4y)",bubbleTooltipBorderRadius:"var(--x1e5o1xa)",buttonCallBorderRadius:"var(--x10124fl)",buttonCallHoveredBorderRadius:"var(--x1d8jg19)",buttonCallPressedBorderRadius:"var(--x19huaox)",buttonFileUploadBorderRadius:"var(--xl8uc24)",buttonFileUploadHoveredBorderRadius:"var(--x139ry6a)",buttonFileUploadPressedBorderRadius:"var(--xiyfnn2)",buttonLargeBorderRadius:"var(--x1ttpv1t)",buttonLargeHoveredBorderRadius:"var(--x1wtafy2)",buttonLargePressedBorderRadius:"var(--x82vd9a)",buttonMediumBorderRadius:"var(--xjnrlz3)",buttonMediumHoveredBorderRadius:"var(--x16xtl57)",buttonMediumPressedBorderRadius:"var(--x18ttt0t)",buttonMicrophoneBorderRadius:"var(--x1tixki8)",buttonMicrophoneHoveredBorderRadius:"var(--x1ciwlvv)",buttonMicrophonePressedBorderRadius:"var(--xiyjxiy)",buttonPlayPauseBorderRadius:"var(--xlxghfy)",buttonSendBorderRadius:"var(--x1ruj3lq)",buttonSendHoveredBorderRadius:"var(--x1epajyq)",buttonSendPressedBorderRadius:"var(--xu3wp72)",buttonSmallBorderRadius:"var(--x16dxbju)",buttonSmallHoveredBorderRadius:"var(--x168tnhs)",buttonSmallPressedBorderRadius:"var(--xgtnwqa)",buttonSpeakerBorderRadius:"var(--x6ulrhq)",buttonSpeakerHoveredBorderRadius:"var(--x1j99h4o)",buttonSpeakerPressedBorderRadius:"var(--xlcg5hk)",buttonStopBorderRadius:"var(--x1cqce2t)",buttonStopHoveredBorderRadius:"var(--xz5hhjv)",buttonStopPressedBorderRadius:"var(--xjziy7d)",inputCornerRadius:"var(--xkjoe7p)",pressableOptionBorderRadius:"var(--xo0722j)",tableContainerBorderRadius:"var(--xpenkto)",videoProgressBarBorderRadius:"var(--x1ba17e0)",voiceVisualizerBarBorderRadius:"var(--x4utseb)",bubbleAvatarSize:"var(--x13w4mq5)",bubbleContentContainerMaxWidth:"var(--x1uzztpd)",bubbleContentContainerUserMaxWidth:"var(--x1tc54p7)",bubbleTooltipMaxWidth:"var(--x1rqbjtg)",buttonCallHeight:"var(--x1wk4hzn)",buttonCallWidth:"var(--xy5yvoz)",buttonFileUploadHeight:"var(--x18uyjkh)",buttonFileUploadWidth:"var(--xxqa0dq)",buttonLargeHeight:"var(--x3e6wff)",buttonMediumHeight:"var(--xkca2vv)",buttonMicrophoneHeight:"var(--x82mkzn)",buttonMicrophoneWidth:"var(--x1r0jlc1)",buttonPlayPauseHeight:"var(--x19dpyk1)",buttonPlayPauseWidth:"var(--x4ach5t)",buttonSendHeight:"var(--x1axk1tg)",buttonSendWidth:"var(--xr0fzoy)",buttonSettingsToggleHeight:"var(--xwkvfc1)",buttonSettingsToggleWidth:"var(--x1kdnp2l)",buttonSmallHeight:"var(--xafjmui)",buttonSpeakerHeight:"var(--xh7z1na)",buttonSpeakerWidth:"var(--xios89i)",buttonStopHeight:"var(--x15etoab)",buttonStopWidth:"var(--x5muypq)",composerContainerMinHeight:"var(--xrxntdb)",gradientTextBackgroundSize:"var(--x5suos6)",textInputMinHeight:"var(--xzbtx9w)",videoControlsContainerHeight:"var(--xzubya6)",videoPlayheadHeight:"var(--x1m69m10)",videoPlayheadWidth:"var(--xik0f35)",videoProgressBarHeight:"var(--xalic96)",voiceButtonMinWidth:"var(--x1pap48z)",voiceVisualizerBarHeight:"var(--xdt1ml)",voiceVisualizerBarWidth:"var(--x5yrerl)",waveDotContainerHeight:"var(--x1s60eyr)",waveDotSize:"var(--x4jee19)",gradientTextBackgroundPosition:"var(--xuvcqbj)",__varGroupHash__:"x73z65k"},R={x73z65k:"xph554m x73z65k",$$css:!0},L={x73z65k:"x96cir1 x73z65k",$$css:!0},E={x73z65k:"x13qka3v x73z65k",$$css:!0},k={x73z65k:"x9x137x x73z65k",$$css:!0},I={x73z65k:"x1n36s15 x73z65k",$$css:!0};l.dynamicTypography=s,l.baseTokens=v,l.baseThemeVars=S,l.defaultTheme=R,l.darkTheme=L,l.blueTheme=E,l.greenTheme=k,l.purpleTheme=I}),98); __d("WAPttWaveformGenerateHeightJitterValues",[],(function(t,n,r,o,a,i){function e(e,t){if(e==null||t==null)return[0];for(var n=t/4,r=e/n,o=[],a=-n;a<0;a++)o.push(r*a);for(var i=0;i0&&!o("WAWebFrontendMsgGetters").getAsRevoked(t)}l.showForwarded=e}),98); __d("WAWebAdAttributionUtils",["WAWebBizGatingUtils","WAWebMsgSelectors"],(function(t,n,r,o,a,i,l){var e=function(t){if(o("WAWebMsgSelectors").showForwarded(t))return!1;var e=t.ctwaContext;return e==null||e.alwaysShowAdAttribution!==!0?!1:o("WAWebBizGatingUtils").isAdsAttributionEnabled()===!0};l.shouldShowAdAttribution=e}),98); __d("WAWebAddOnBubble.react",["WAWebFlex.react","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c="x1hi9wfw-B",d=4,m={container:{height:"xxk0z11",paddingTop:"xexx8yu",paddingInlineEnd:"x11lfxj5",paddingBottom:"x18d9i69",paddingInlineStart:"x135b78x",borderStartStartRadius:"xal68kn",borderStartEndRadius:"x51dqfy",borderEndEndRadius:"x1w4cqa3",borderEndStartRadius:"x1byqp33",backgroundColor:"x1ew7x2d",boxShadow:"x13ywik6",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"xbkwr4y",borderInlineEndColor:"x1auh1ge",borderBottomColor:"xidn4s3",borderInlineStartColor:"xbhob4t",$$css:!0},animateBubble:{height:"xxk0z11",paddingTop:"xexx8yu",paddingInlineEnd:"x11lfxj5",paddingBottom:"x18d9i69",paddingInlineStart:"x135b78x",minWidth:"x1oslful","::before_position":"x1hmns74","::before_height":"x1pvzrro","::before_width":"x2dvv58","::before_paddingTop":"xs1dniq","::before_paddingInlineEnd":"x1cl9t3a","::before_paddingBottom":"x1lxin4w","::before_paddingInlineStart":"x6wpxx5","::before_borderStartStartRadius":"x1j2whxr","::before_borderStartEndRadius":"xhcccd","::before_borderEndEndRadius":"xhhq72g","::before_borderEndStartRadius":"x12d4ooo","::before_zIndex":"xy5mcqj","::before_backgroundColor":"xtvi8b7","::before_boxShadow":"x1mx14dr","::before_borderTopWidth":"xm4vf9w","::before_borderInlineEndWidth":"x1ggjbpq","::before_borderBottomWidth":"xu20p9z","::before_borderInlineStartWidth":"x1t6kmxa","::before_borderTopStyle":"xnvurfn","::before_borderInlineEndStyle":"x1v3rft4","::before_borderBottomStyle":"x1opv7go","::before_borderInlineStartStyle":"x1rovbrg","::before_borderTopColor":"x1lmjgym","::before_borderInlineEndColor":"xja1mrt","::before_borderBottomColor":"xvm9rvp","::before_borderInlineStartColor":"xffdoiq","::before_content":"x1cpjm7i","::before_animationName":"x1ipgcw3","::before_animationDuration":"x1putdlz","::before_animationTimingFunction":"x1d2b9es","::before_animationFillMode":"x4vjblf","::before_backfaceVisibility":"x1k6obt4","::before_willChange":"x1qys349",$$css:!0}};function p(e){var t=e.children,n=e.onAnimationEnd,a=e.shouldAnimateBubble;return u.jsx(o("WAWebFlex.react").FlexRow,{className:(s||(s=r("stylex")))([a?m.animateBubble:m.container,o("WAWebUISpacing").uiMargin.horiz2]),ref:function(t){n&&(t==null||t.addEventListener("animationend",n))},align:"center",justify:"center",children:t})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebMessageAnimatedEmoji.react",["WAWebLottieWrapper.react","WAWebMessageStickerLikeBubbleContainer.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={bubble:{zIndex:"x157c1n",$$css:!0},placeholderContainer:{position:"x10l6tqk",width:"xm4d0b7",height:"x1fmsig4",$$css:!0}},c={svgContainer:{width:"xwrzu5u",height:"xfltuzg",pointerEvents:"x47corl",position:"x10l6tqk",zIndex:"xyw6214",$$css:!0},wrapper:{position:"x1n2onr6",display:"x78zum5",justifyContent:"xl56j7k",alignItems:"x6s0dn4",$$css:!0},lottieAnimatedEmojiContainer:{width:"xm4d0b7",height:"x1fmsig4",$$css:!0}};function d(e){var t,n=e.asset,a=e.msg,i=s.jsx(r("WAWebLottieWrapper.react"),{data:n,lottieWrapperXStyle:[(t=o("WAWebUISpacing")).uiPadding.top20,t.uiMargin.bottom14,t.uiMargin.start15,t.uiMargin.end18,c.lottieAnimatedEmojiContainer],lottieSVGContainerXStyle:c.svgContainer,lottieSVGContainerWrapperXStyle:c.wrapper,placeholderContainerXStyle:u.placeholderContainer,maxLoopCount:1});return s.jsx(r("WAWebMessageStickerLikeBubbleContainer.react"),{displayAuthor:e.displayAuthor,msg:a,quotedMsg:e.quotedMsg,position:e.position,displayType:e.displayType,onDetailsPaneClosed:e.onDetailsPaneClosed,msgContent:i,ref:e.stickerLikeBubbleContainerRef,bubbleStyle:u.bubble})}d.displayName=d.name+" [from "+i.id+"]";var m=d;l.default=m}),98); __d("WAWebMessageStaticSingleEmoji.react",["WAWebCopyPasteSelectable.react","WAWebEmoji","WAWebMessageLargeEmoji.react","WAWebMessageStickerLikeBubbleContainer.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=o("WAWebEmoji").EmojiUtil.getHeartEmojis().some(function(t){return o("WAWebEmoji").EmojiUtil.normalizeEmoji(t)===o("WAWebEmoji").EmojiUtil.normalizeEmoji(e.emoji)}),a=s.jsx(o("WAWebCopyPasteSelectable.react").SelectableDiv,{selectable:!0,className:"x1n2onr6 x1omtkq1 x78zum5 xl56j7k x1yrsyyn xdj266r x1emmycd x1u7kmwd xx6jrq6 x1ed109x",children:s.jsx(o("WAWebMessageLargeEmoji.react").LargeEmoji,{animation:n,size:o("WAWebMessageLargeEmoji.react").SIZE.XLARGE_60,emoji:e.emoji,selectable:!0})});return s.jsx(r("WAWebMessageStickerLikeBubbleContainer.react"),{displayAuthor:e.displayAuthor,msg:t,quotedMsg:e.quotedMsg,position:e.position,displayType:e.displayType,onDetailsPaneClosed:e.onDetailsPaneClosed,msgContent:a,ref:e.stickerLikeBubbleContainerRef})}u.displayName=u.name+" [from "+i.id+"]";var c=u;l.default=c}),98); __d("WAWebCommentModalActions",["WAWebEventEmitter"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){return e.apply(this,arguments)||this}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.scrollReplyModalToBottom=function(){this.trigger("scroll_reply_modal_to_bottom")},t})(r("WAWebEventEmitter")),s=new e;l.CommentModalActions=s}),98); __d("WAWebMicFilledIcon.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="mic-filled";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M12 14a2.9 2.9 0 0 1-2.125-.875A2.9 2.9 0 0 1 9 11V5q0-1.25.875-2.125A2.9 2.9 0 0 1 12 2q1.25 0 2.125.875T15 5v6q0 1.25-.875 2.125A2.9 2.9 0 0 1 12 14m0 7a1 1 0 0 1-1-1v-2.075q-2.6-.35-4.3-2.325-1.37-1.59-1.636-3.603C4.992 11.45 5.448 11 6 11s.988.452 1.09.995q.274 1.443 1.373 2.543Q9.926 16 12 16q2.075 0 3.537-1.463 1.099-1.098 1.373-2.543c.102-.542.538-.994 1.09-.994s1.008.45.936.997Q18.669 14.01 17.3 15.6q-1.7 1.975-4.3 2.325V20a1 1 0 0 1-1 1",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MicFilledIcon=m}),98); __d("WAWebMicOutlinedIcon.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="mic-outlined";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),children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M12 14C11.1667 14 10.4583 13.7083 9.875 13.125C9.29167 12.5417 9 11.8333 9 11V5C9 4.16667 9.29167 3.45833 9.875 2.875C10.4583 2.29167 11.1667 2 12 2C12.8333 2 13.5417 2.29167 14.125 2.875C14.7083 3.45833 15 4.16667 15 5V11C15 11.8333 14.7083 12.5417 14.125 13.125C13.5417 13.7083 12.8333 14 12 14ZM12 21C11.4477 21 11 20.5523 11 20V17.925C9.26667 17.6917 7.83333 16.9167 6.7 15.6C5.78727 14.5396 5.24207 13.3387 5.06441 11.9973C4.9919 11.4498 5.44772 11 6 11C6.55228 11 6.98782 11.4518 7.0905 11.9945C7.27271 12.9574 7.73004 13.805 8.4625 14.5375C9.4375 15.5125 10.6167 16 12 16C13.3833 16 14.5625 15.5125 15.5375 14.5375C16.27 13.805 16.7273 12.9574 16.9095 11.9945C17.0122 11.4518 17.4477 11 18 11C18.5523 11 19.0081 11.4498 18.9356 11.9973C18.7579 13.3387 18.2127 14.5396 17.3 15.6C16.1667 16.9167 14.7333 17.6917 13 17.925V20C13 20.5523 12.5523 21 12 21ZM12 12C12.2833 12 12.5208 11.9042 12.7125 11.7125C12.9042 11.5208 13 11.2833 13 11V5C13 4.71667 12.9042 4.47917 12.7125 4.2875C12.5208 4.09583 12.2833 4 12 4C11.7167 4 11.4792 4.09583 11.2875 4.2875C11.0958 4.47917 11 4.71667 11 5V11C11 11.2833 11.0958 11.5208 11.2875 11.7125C11.4792 11.9042 11.7167 12 12 12Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MicOutlinedIcon=m}),98); __d("WAWebPttStartRecordingButton.react",["fbt","WAWebMicFilledIcon.react","WAWebMicOutlinedIcon.react","WAWebTabOrder","WDSButton.react","WDSFocusStateStyles","WDSMenuBarItem.react","react","stylex","useWAWebABPropConfigValue","useWAWebFocusState"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useState;function p(e){var t=e.disabled,n=e.onConfirm,a=m(!1),i=a[0],l=a[1],c=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_tooltip"),p=r("useWAWebFocusState")(),_=p[0],f=p[1],g=function(t){t.button===0&&n()},h=function(t){n()},y=function(){},C=function(t){n()},b=function(){},v=s._(/*BTDS*/"Mensaje de voz"),S=[f&&o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocusPersistent],R=c?d.jsx("button",{onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)},onMouseDown:g,onTouchStart:C,onTouchEnd:b,"aria-label":v,children:d.jsx(r("WDSMenuBarItem.react"),{icon:i?o("WAWebMicFilledIcon.react").MicFilledIcon:o("WAWebMicOutlinedIcon.react").MicOutlinedIcon,title:v,onClick:n,tabOrder:o("WAWebTabOrder").TAB_ORDER.PTT_BUTTON,testid:void 0,disabled:t!=null?t:!1,buttonSize:"medium",buttonVariant:i?"filled":"borderless",buttonType:"default"})}):d.jsx(r("WDSButton.react"),{ref:_,Icon:i?o("WAWebMicFilledIcon.react").MicFilledIcon:o("WAWebMicOutlinedIcon.react").MicOutlinedIcon,size:"medium",type:"default",variant:i?"filled":"borderless",disabled:t!=null?t:!1,onPress:g,onPressIn:h,onPressOut:y,onHoverIn:function(){return l(!0)},onHoverOut:function(){return l(!1)},"aria-label":v,testid:void 0,directional:!0});return d.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(S),{children:R}))}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebSendAiIcon.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="send-ai";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M16.1101 16.8C16.1543 16.6945 16.2286 16.6045 16.3238 16.5411C16.419 16.4778 16.5308 16.444 16.6451 16.444C16.7595 16.444 16.8713 16.4778 16.9665 16.5411C17.0616 16.6045 17.136 16.6945 17.1801 16.8L17.9501 18.59C18.0101 18.73 18.1201 18.84 18.2501 18.89L20.0401 19.66C20.5101 19.86 20.5101 20.52 20.0401 20.72L18.2501 21.49C18.1828 21.5177 18.1216 21.5584 18.0701 21.6099C18.0186 21.6614 17.9778 21.7226 17.9501 21.79L17.1701 23.61C17.1256 23.713 17.0521 23.8008 16.9586 23.8628C16.8651 23.9248 16.7556 23.9584 16.6434 23.9595C16.5312 23.9605 16.4211 23.929 16.3265 23.8688C16.2318 23.8085 16.1567 23.7221 16.1101 23.62L15.2701 21.77C15.212 21.6412 15.1089 21.5381 14.9801 21.48L13.2401 20.72C13.1376 20.6744 13.0505 20.6001 12.9894 20.506C12.9283 20.412 12.8957 20.3022 12.8957 20.19C12.8957 20.0778 12.9283 19.968 12.9894 19.874C13.0505 19.7799 13.1376 19.7056 13.2401 19.66L15.0501 18.89C15.1175 18.8623 15.1787 18.8216 15.2302 18.7701C15.2817 18.7186 15.3225 18.6574 15.3501 18.59L16.1201 16.8H16.1101ZM19.7701 16.99C20.1255 16.99 20.4664 16.8488 20.7177 16.5975C20.969 16.3462 21.1101 16.0054 21.1101 15.65C21.1101 15.2946 20.969 14.9538 20.7177 14.7025C20.4664 14.4512 20.1255 14.31 19.7701 14.31C19.4148 14.31 19.0739 14.4512 18.8226 14.7025C18.5713 14.9538 18.4301 15.2946 18.4301 15.65C18.4301 16.0054 18.5713 16.3462 18.8226 16.5975C19.0739 16.8488 19.4148 16.99 19.7701 16.99Z",fill:"currentColor"}),c.jsx("path",{d:"M19.6901 12.49L4.29015 18.99C4.13684 19.0553 3.96963 19.0813 3.80372 19.0656C3.63781 19.0499 3.47846 18.993 3.34015 18.9C3.19635 18.8136 3.0786 18.6899 2.99938 18.542C2.92016 18.3941 2.88242 18.2276 2.89015 18.06V5.06C2.89015 4.69 3.04015 4.41 3.34015 4.22C3.64015 4.03 3.96015 4 4.29015 4.13L19.6901 10.63C20.1101 10.81 20.3101 11.12 20.3101 11.56C20.3101 12 20.1001 12.3 19.6901 12.49ZM4.89015 16.56L16.7401 11.56L4.89015 6.56V10.06L10.8901 11.56L4.89015 13.06V16.56Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SendAiIcon=m}),98); __d("WAWebComposeBoxSendButton.react",["fbt","WAGetUserMedia","WAWebPttStartRecordingButton.react","WAWebSendAiFilledIcon.react","WAWebSendAiIcon.react","WAWebTabOrder","WAWebUISpacing","WAWebWdsIcSendFilledIcon.react","WDSButton.react","WDSFocusStateStyles","WDSMenuBarItem.react","react","stylex","useWAWebABPropConfigValue","useWAWebFocusState"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={childPaddingRefresh:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",alignSelf:"xpvyfi4",$$css:!0},sendButtonContainerRefresh:{flexShrink:"x2lah0s",flexGrow:"x1c4vz4f",minWidth:"x1fns5xo",minHeight:"x1ba4aug",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",color:"x1pse0pq",$$css:!0},sendButtonBgEnabled:{backgroundColor:"xfn3atn",cursor:"x1ypdohk",":hover_backgroundColor":"x1m2oepg",$$css:!0},sendButtonBgDisabled:{color:"x18cpw0e",cursor:"x1h6gzvc",$$css:!0}};function m(e){var t=e.hasText,n=e.iconWidth,a=e.onClickSend,i=e.onStartRecording,l=e.recordingSession,u=e.supportsPtt,d=!!(o("WAGetUserMedia").getUserMedia&&window.AudioContext),m=!t&&d&&u;if(m)return c.jsx(r("WAWebPttStartRecordingButton.react"),{disabled:l!=null,onConfirm:i});var p=n==null||n?20:void 0;return c.jsx("button",{"data-testid":void 0,"data-tab":o("WAWebTabOrder").TAB_ORDER.SEND_BUTTON,"aria-label":s._(/*BTDS*/"Enviar"),className:"x1c4vz4f x2lah0s xdl72j9 xhslqc4 x1iy03kw x1lfpgzf",onClick:a,disabled:!t,children:c.jsx(o("WAWebWdsIcSendFilledIcon.react").WdsIcSendFilledIcon,{directional:!0,width:p})})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.buttonVariant,n=t===void 0?"filled":t,a=e.hasTextState,i=e.isMessageToBot,l=e.onClickSend,m=e.onStartRecording,p=e.recordingSession,_=e.supportsPtt,f=!!(o("WAGetUserMedia").getUserMedia&&window.AudioContext),g=!a&&f&&_,h=r("useWAWebFocusState")(),y=h[0],C=h[1],b=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_tooltip"),v=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_button"),S=!a,R=c.jsx(o("WAWebWdsIcSendFilledIcon.react").WdsIcSendFilledIcon,{directional:!0});i&&(R=S?c.jsx(o("WAWebSendAiIcon.react").SendAiIcon,{directional:!0,width:24}):c.jsx(o("WAWebSendAiFilledIcon.react").SendAiFilledIcon,{directional:!0,width:24}));var L=s._(/*BTDS*/"Enviar"),E=[d.childPaddingRefresh,d.sendButtonContainerRefresh,o("WAWebUISpacing").uiMargin.start5,C&&o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocusPersistent];if(g||E.push(S?d.sendButtonBgDisabled:d.sendButtonBgEnabled),g)return c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(E),{children:c.jsx(r("WAWebPttStartRecordingButton.react"),{disabled:p!=null,onConfirm:m})}));if(v){var k=o("WAWebWdsIcSendFilledIcon.react").WdsIcSendFilledIcon;i&&(k=S?o("WAWebSendAiIcon.react").SendAiIcon:o("WAWebSendAiFilledIcon.react").SendAiFilledIcon);var I=b?c.jsx(r("WDSMenuBarItem.react"),{icon:k,title:L,onClick:l,tabOrder:o("WAWebTabOrder").TAB_ORDER.SEND_BUTTON,testid:void 0,disabled:S,buttonSize:"medium",buttonVariant:n,buttonType:"default"}):c.jsx(r("WDSButton.react"),{ref:y,Icon:k,size:"medium",directional:!0,type:"default",variant:n,disabled:S,testid:void 0,onPress:l,"aria-label":s._(/*BTDS*/"Enviar")});return c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(E),{children:I}))}var T=c.jsx("button",{ref:y,"data-testid":void 0,"data-tab":o("WAWebTabOrder").TAB_ORDER.SEND_BUTTON,"aria-label":L,className:"x1c4vz4f x2lah0s xdl72j9 x1heor9g xmper1u x100vrsf x1vqgdyp x78zum5 xl56j7k x6s0dn4",onClick:l,disabled:S,children:R});return c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(E),{children:T}))}p.displayName=p.name+" [from "+i.id+"]",l.SendButton=m,l.SendButtonRefresh=p}),226); __d("WAWebCommentComposeBox.react",["fbt","WAWebChatPreferenceCollection","WAWebCommentModalActions","WAWebComposeBoxSendButton.react","WAWebEmojiPickerPlugin","WAWebMessageEditComposer.react","WAWebNoop","WAWebRichTextInput.react","WAWebSendCommentMessageAction","WAWebUISpacing","react","stylex","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useState,p={inputContainer:{boxSizing:"x9f619",flex:"x12lumcd",width:"x1qrby5j",minHeight:"xisnujt",fontSize:"x6prxxf",fontWeight:"x1fcty0u",lineHeight:"x1fc57z9",backgroundColor:"xk7ee7b",borderTopColor:"x1716072",borderInlineEndColor:"x1ygal6x",borderBottomColor:"x89wmna",borderInlineStartColor:"x1rbbhm9",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",outline:"x1a2a7pz",willChange:"x13w7htt",display:"x78zum5",$$css:!0},blockCompose:{position:"x1n2onr6",zIndex:"xhtitgo",boxSizing:"x9f619",display:"x78zum5",flexDirection:"x1q0g3np",alignItems:"xuk3077",width:"xh8yej3",minHeight:"x122xwht",backgroundColor:"xhjsbib",$$css:!0},sendButtonContainer:{width:"x100vrsf",minWidth:"x1fns5xo",$$css:!0},childPadding:{boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",minHeight:"x1wiwyrm",$$css:!0},emojiButton:{color:"xhslqc4",cursor:"x1ypdohk",alignSelf:"xqcrz7y",$$css:!0}};function _(e){var t=e.parent,n=m(!1),a=n[0],i=n[1],l=m(),c=l[0],_=l[1],f=function(t){var e=t.trim();i(e.length>0)},g=function(t,n){c==null||c.replaceSelection(t,n)},h=o("useWAWebModelValues").useModelValues(r("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend"]),y=function(){if(c!=null){var e=c.getTextContent();if(e!=null){var n=e.trim();n.length>0&&(o("WAWebSendCommentMessageAction").sendCommentMessage(t,n).finally(function(){o("WAWebCommentModalActions").CommentModalActions.scrollReplyModalToBottom()}),c.setTextContent(""),i(!1))}}},C=null;return d.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(p.blockCompose,o("WAWebUISpacing").uiPadding.vert5,o("WAWebUISpacing").uiPadding.horiz15),{children:d.jsxs("div",{className:"x78zum5 x1isitws xuk3077",children:[C,d.jsxs("div",babelHelpers.extends({},u.props(p.inputContainer,o("WAWebUISpacing").uiPadding.vert9,o("WAWebUISpacing").uiPadding.horiz12,o("WAWebUISpacing").uiMargin.vert5,o("WAWebUISpacing").uiMargin.horiz8),{children:[d.jsx(r("WAWebRichTextInput.react"),{ref:_,placeholder:s._(/*BTDS*/"A\u00f1ade una respuesta"),onChange:function(t){f(t.parsableText)},spellCheck:h.spellcheck,transformTextEmoji:h.transformTextEmoji,onEnter:h.enterIsSend?y:r("WAWebNoop"),bulletPointsEnabled:!0,numberedListEnabled:!0,inlineCodeEnabled:!0,blockQuoteEnabled:!0,phoneNumbersEnabled:!0,multiline:!0,textFormatEnabled:!0,floatingToolbarEnabled:!0,children:d.jsx(r("WAWebEmojiPickerPlugin"),{})}),d.jsx(o("WAWebMessageEditComposer.react").EmojiButton,{xstyle:[p.emojiButton,o("WAWebUISpacing").uiMargin.start8],onEmoji:g})]})),a?d.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(p.sendButtonContainer,p.childPadding,o("WAWebUISpacing").uiPadding.vert5,o("WAWebUISpacing").uiPadding.horiz0),{children:d.jsx(o("WAWebComposeBoxSendButton.react").SendButton,{supportsPtt:!1,onClickSend:y,hasText:a,recordingSession:null,onStartRecording:r("WAWebNoop")})})):null]})}))}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebMsgPhoneNumbers",["WAUnicodeUtils","WAWebFrontendMsgGetters","WAWebHelpersFindPhoneNumbers","WAWebMsgGetters","WAWebMsgLinks","WAWebMsgType","WAWebStateUtils"],(function(t,n,r,o,a,i,l){function e(e){var t=e.content,n=e.cachedValue,a=e.currentIndex,i=a===void 0?0:a,l=e.endIndex,s=l===void 0?1/0:l;if(i>=s)return[n,s];var u=o("WAUnicodeUtils").firstNCodepoints(t,s),c=r("WAWebHelpersFindPhoneNumbers")(u);if(o("WAUnicodeUtils").numCodepoints(t)>s&&c.length>0){var d=c[c.length-1],m=o("WAUnicodeUtils").numCodepoints(u.slice(0,d.index)),p=m+o("WAUnicodeUtils").numCodepoints(d.phone);p===s&&(c=r("WAWebHelpersFindPhoneNumbers")(t))}return[c,s]}function s(t,n){var r=o("WAWebStateUtils").unproxy(t),a=n!=null?n:o("WAWebMsgGetters").getInitialPageSize(r)+1,i=o("WAWebFrontendMsgGetters").getText(r);if(i==null||r.phoneNumbersIndexParsed===1/0)return r.getRawPhoneNumbers();var l=e({content:i,cachedValue:r.getRawPhoneNumbers(),currentIndex:r.phoneNumbersIndexParsed,endIndex:a}),s=l[0],u=l[1];return r.phoneNumbersIndexParsed=u,r.setRawPhoneNumbers(s),s}function u(t,n){if(t.getRawHeaderPhoneNumbers().length>0)return t.getRawHeaderPhoneNumbers();var r=e({content:n,cachedValue:t.getRawHeaderPhoneNumbers()}),o=r[0];return t.setRawHeaderPhoneNumbers(o),o}function c(e){var t,n=o("WAWebStateUtils").unproxy(e);if(o("WAWebMsgLinks").shouldDisplayHeaderLinks(n,!0)){var r;return u(n,((r=n.list)==null?void 0:r.title)||"")}else{if(o("WAWebMsgLinks").shouldDisplayHeaderLinks(n,!1))return u(n,n.title);if(n.type===o("WAWebMsgType").MSG_TYPE.INTERACTIVE&&((t=n.interactiveHeader)==null?void 0:t.title)!=null)return u(n,n.interactiveHeader.title)}return[]}function d(t){var n,r=o("WAWebStateUtils").unproxy(t);if(!o("WAWebMsgGetters").getSupportsMessageFooterLinks(r)||r.footer==null)return[];if(r.getRawFooterPhoneNumbers().length>0)return r.getRawFooterPhoneNumbers();var a=e({content:(n=r.footer)!=null?n:"",cachedValue:r.getRawFooterPhoneNumbers()}),i=a[0];return r.setRawFooterPhoneNumbers(i),i}l.getPhoneNumbersFromMsgImpl=e,l.getPhoneNumbersFromMsg=s,l.getHeaderPhoneNumbersFromMsg=c,l.getFooterPhoneNumbersFromMsg=d}),98); __d("WAWebCommentFrontendUtils",["WAWebChatCollection","WAWebContactCollection","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebMsgLinks","WAWebMsgPhoneNumbers","WAWebUserPrefsMeUser"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){var n=e.body;if(n==null)return e.links;var r=o("WAWebMsgLinks").getLinksFromMsgImpl({content:n,sender:e.author,cachedValue:e.links,currentIndex:e.linksIndexParsed,endIndex:t}),a=r[0],i=r[1];return e.linksIndexParsed=i,e.links=a,a}function s(e,t){var n=e.body;if(n==null)return e.phoneNumbers;var r=o("WAWebMsgPhoneNumbers").getPhoneNumbersFromMsgImpl({content:n,cachedValue:e.phoneNumbers,currentIndex:e.phoneNumbersIndexParsed,endIndex:t}),a=r[0],i=r[1];return e.phoneNumbersIndexParsed=i,e.phoneNumbers=a,a}function u(e){if(o("WAWebUserPrefsMeUser").isMeAccount(e.author))return!0;var t=o("WAWebContactCollection").ContactCollection.get(e.author);if(t!=null&&o("WAWebFrontendContactGetters").getIsMyContact(t))return!0;var n=o("WAWebChatCollection").ChatCollection.get(e.parentMsgKey.remote);return n!=null?n.isTrusted()&&n.notSpam:!1}function c(e){return e.length>1&&o("WAWebFrontendMsgGetters").getAsAlbumAsset(e[0])!=null}l.getLinksFromComment=e,l.getPhoneNumbersFromComment=s,l.isTrustedComment=u,l.isAlbumMessageContainer=c}),98); __d("WAWebCiphertextIcon.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="ciphertext";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,2.5c-5.2,0-9.5,4.3-9.5,9.5s4.3,9.5,9.5,9.5s9.5-4.3,9.5-9.5S17.2,2.5,12,2.5z M16,16l-4.9-3V7.2h1.4v4.9l4.3,2.6C16.8,14.8,16,16,16,16z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.CiphertextIcon=m}),98); __d("WAWebPlaceholder",["fbt","WAWebCiphertextIcon.react","WAWebFaqUrl","WAWebUnknownIcon.react","WDSIconWdsIcViewOnce.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=r("react"));function c(e,t){t===void 0&&(t=null);var n,a,i;return e==="fanout"?(n=s._(/*BTDS*/"Esperando el mensaje. Revisa tu tel\u00e9fono."),a=o("WAWebFaqUrl").getFanoutPlaceholderFaqUrl(),i=u.jsx(o("WAWebCiphertextIcon.react").CiphertextIcon,{})):e==="bot_unavailable_fanout"||e==="hosted_unavailable_fanout"?(n=s._(/*BTDS*/"No se puede mostrar este mensaje aqu\u00ed. Para verlo, abre WhatsApp en tu tel\u00e9fono."),i=u.jsx(o("WAWebUnknownIcon.react").UnknownIcon,{})):e==="view_once_unavailable_fanout"?(t===!0?n=s._(/*BTDS*/"Enviaste un mensaje de visualizaci\u00f3n \u00fanica desde otro dispositivo."):(n=s._(/*BTDS*/"Recibiste un mensaje de visualizaci\u00f3n \u00fanica. Para mayor privacidad, solo puedes abrirlo en tu tel\u00e9fono."),a=o("WAWebFaqUrl").getViewOnceScreenshotProtectionUrl()),i=u.jsx(r("WDSIconWdsIcViewOnce.react"),{})):(n=s._(/*BTDS*/"Esperando el mensaje. Esto puede demorar un poco."),a=o("WAWebFaqUrl").getCiphertextFaqUrl(),i=u.jsx(o("WAWebCiphertextIcon.react").CiphertextIcon,{})),{placeholderMsg:n,placeholderIcon:i,externalLink:a}}l.getPlaceholderDetails=c}),226); __d("WAWebCiphertext.react",["fbt","WAWebExternalLink.react","WAWebPlaceholder","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d={icon:{flex:"x1okw0bk",color:"x1cmudvs",marginInlineStart:"xe9ewy2",$$css:!0}},m=function(t){o("WAWebExternalLink.react").openExternalLink(t)};function p(t){var n=t.subtype,a=o("WAWebPlaceholder").getPlaceholderDetails(n),i=a.externalLink,l=a.placeholderIcon,u=a.placeholderMsg,p=c.jsx("span",{className:"x187aw1n",role:"button",onClick:function(){m(i!=null?i:"")},children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")});return c.jsxs("div",{className:"xhslqc4 x78zum5 x1q0g3np x6s0dn4 x6ikm8r x10wlt62 x1wl59ut x1k4tb9n x1vvkbs",children:[l!=null?c.jsx("div",babelHelpers.extends({},(e||(e=r("stylex"))).props([d.icon,o("WAWebUISpacing").uiMargin.end5]),{children:l})):null,u,"\xA0",p]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebCommentAuthor.react",["WAWebChatParticipantColor","WAWebName.react","WAWebQuotedMessageUserJourneyLogger","react","stylex","useWAWebDefaultProfileColors","useWAWebGroupColors"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react"));function c(e){var t,n=e.chat,a=e.contact,i=o("WAWebChatParticipantColor").getAssignedColor(n,a.id,"WAWebCommentAuthor-"+((t=o("WAWebQuotedMessageUserJourneyLogger").getChatType(n.id))!=null?t:"")),l=o("useWAWebGroupColors").useGroupsColorStyle(i,"color"),c=o("useWAWebDefaultProfileColors").useDefaultProfileColors(a.id),d=c.foreground;return u.jsx("span",babelHelpers.extends({},(s||(s=r("stylex"))).props(d!=null?d:l),{children:u.jsx(o("WAWebName.react").Name,{contact:a,elevatedPushNamesEnabled:!0,titlify:!0,ellipsify:!0,you:!0,showNotifyName:!0})}))}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebCommentBody.react",["WAWebCommentFrontendUtils","WAWebEmojiText.react","WAWebExpandableText.react","WAWebFlexItem.react","WAWebFormatConfiguration","WAWebMsgGetters","WAWebStateUtils","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=e||(e=r("react")),c={container:{maxWidth:"x1j9u4d2",$$css:!0}};function d(e){var t=e.comment;return u.jsx(r("WAWebFlexItem.react"),{className:(s||(s=r("stylex")))([c.container]),children:u.jsx(o("WAWebExpandableText.react").ExpandableText,{text:t.body,textLimit:o("WAWebMsgGetters").INITIAL_PAGE_SIZE,children:function(n){var e=n.textLimit,r=o("WAWebFormatConfiguration").Conversation({trusted:o("WAWebCommentFrontendUtils").isTrustedComment(t),links:o("WAWebCommentFrontendUtils").getLinksFromComment(o("WAWebStateUtils").unproxy(t),o("WAWebMsgGetters").INITIAL_PAGE_SIZE),phoneNumbers:o("WAWebCommentFrontendUtils").getPhoneNumbersFromComment(o("WAWebStateUtils").unproxy(t),o("WAWebMsgGetters").INITIAL_PAGE_SIZE),selectable:!0,parseInlineCode:!0,parseQuotes:!0,parseLists:!0});return u.jsx(o("WAWebEmojiText.react").EmojiText,{text:t.body,textLimit:e,formatters:r,selectable:!0,multiline:!0})}})})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebWamEnumUiRevokeActionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({MESSAGE_SELECTED:0,TRASH_CAN_SELECTED:1,ADMIN_DELETE_FOR_EVERYONE:2,SENDER_DELETE_FOR_EVERYONE:3,ADMIN_AND_SENDER_DELETE_FOR_EVERYONE:4,DELETE_FOR_EVERYONE_SELECTED:5});i.UI_REVOKE_ACTION_TYPE=e}),66); __d("WAWebUiRevokeActionWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumUiRevokeActionType"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({UiRevokeAction:[3298,{messageAction:[1,o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE],uiRevokeActionDuration:[2,o("WAWebWamCodegenUtils").TYPES.INTEGER],uiRevokeActionSessionId:[3,o("WAWebWamCodegenUtils").TYPES.STRING]},[1,1,1],"regular"]},{UiRevokeAction:[]});l.UiRevokeActionWamEvent=e}),98); __d("WAWebRevokeMetricUtils",["WARandomHex","WAWebUiRevokeActionWamEvent","WAWebWamEnumUiRevokeActionType"],(function(t,n,r,o,a,i,l){var e=(function(){function e(){}var t=e.prototype;return t.$4=function(t){var e=Date.now(),n=this.$2!=null?e-this.$2:0;new(o("WAWebUiRevokeActionWamEvent")).UiRevokeActionWamEvent({messageAction:t,uiRevokeActionDuration:n,uiRevokeActionSessionId:this.$1}).commit(),this.$2=e},t.startSession=function(){this.$1=o("WARandomHex").randomHex(16),this.$2=null,this.$3=0},t.endSession=function(){this.startSession()},t.messageSelected=function(){this.$3>0||(this.$4(o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE.MESSAGE_SELECTED),this.$3=1)},t.trashCanSelected=function(){this.$3>1||(this.$4(o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE.TRASH_CAN_SELECTED),this.$3=2)},t.adminRevoke=function(){this.$4(o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE.ADMIN_DELETE_FOR_EVERYONE)},t.senderRevoke=function(){this.$4(o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE.SENDER_DELETE_FOR_EVERYONE),this.endSession()},t.adminAndSenderRevoke=function(){this.$4(o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE.ADMIN_AND_SENDER_DELETE_FOR_EVERYONE)},t.revokeConfirmed=function(){this.$4(o("WAWebWamEnumUiRevokeActionType").UI_REVOKE_ACTION_TYPE.DELETE_FOR_EVERYONE_SELECTED),this.endSession()},e})(),s=new e;l.UiRevokeActionHelper=s}),98); __d("WAWebFailedMessageEditResendModal.react",["fbt","WAWebConfirmPopup.react","WAWebFlex.react","WAWebModalManager","WAWebMsgActionCapability","WAWebSendMessageEditAction","WAWebText_DONOTUSE.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.failedEditedMsg,n=e.ref,r=o("WAWebMsgActionCapability").canEditText(t),a=s._(/*BTDS*/"Reintentar"),i=s._(/*BTDS*/"Cancelar"),l=s._(/*BTDS*/"No se envi\u00f3 tu mensaje editado. Por favor, vuelve a intentarlo."),c=function(){return o("WAWebModalManager").ModalManager.close(),o("WAWebSendMessageEditAction").resendLatestEdit(t)};return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{ref:n,okText:a,onOK:c,cancelText:i,onCancel:d,children:u.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:[o("WAWebUISpacing").uiMargin.top16,o("WAWebUISpacing").uiMargin.bottom32],children:l})})})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.close()}l.default=c}),226); __d("WAWebFailedMessageModal.react",["fbt","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.resend,n=e.text,r=function(){return o("WAWebModalManager").ModalManager.close()};return t==null?u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:d,children:n}):u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:function(){t(),o("WAWebModalManager").ModalManager.close()},okText:s._(/*BTDS*/"Volver a intentarlo"),cancelText:s._(/*BTDS*/"Cancelar"),onCancel:r,children:n})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.close()}l.default=c}),226); __d("WAWebWamEnumPollActionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({OPEN_CREATE_MODAL:1,CREATE_POLL:2,VIEW_RESULTS_MODAL:4,REMOVE_VOTE:5,VOTE:6,CHANGE_VOTE:7});i.POLL_ACTION_TYPE=e}),66); __d("WAWebPollsActionsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumClientGroupSizeBucket","WAWebWamEnumMessageChatType","WAWebWamEnumPollActionType","WAWebWamEnumTypeOfGroupEnum"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({PollsActions:[3676,{chatType:[8,o("WAWebWamEnumMessageChatType").MESSAGE_CHAT_TYPE],groupSizeBucket:[1,o("WAWebWamEnumClientGroupSizeBucket").CLIENT_GROUP_SIZE_BUCKET],isAGroup:[6,e.TYPES.BOOLEAN],isAdmin:[2,e.TYPES.BOOLEAN],pollAction:[3,o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE],pollCreationDs:[4,e.TYPES.INTEGER],pollOptionsCount:[5,e.TYPES.INTEGER],typeOfGroup:[7,o("WAWebWamEnumTypeOfGroupEnum").TYPE_OF_GROUP_ENUM]},[1,1,1],"regular"]},{PollsActions:[]});l.PollsActionsWamEvent=s}),98); __d("WAWebPollsActionsMetricUtils",["WAWeb-moment","WAWebChatGetters","WAWebGetMessageChatTypeFromWid","WAWebPollsActionsWamEvent","WAWebWamEnumPollActionType","WAWebWamNumberToClientGroupSizeBucket"],(function(t,n,r,o,a,i,l){function e(e){var t=u(e,o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.OPEN_CREATE_MODAL);t.commit()}function s(e){var t=e.action,n=e.chat,r=e.creationDateInSeconds,o=e.pollOptionsCount,a=u(n,t);a.pollCreationDs=c(r),a.pollOptionsCount=o,a.commit()}function u(e,t){var n=new(o("WAWebPollsActionsWamEvent")).PollsActionsWamEvent({pollAction:t});return o("WAWebChatGetters").getIsGroup(e)&&(n.groupSizeBucket=r("WAWebWamNumberToClientGroupSizeBucket")(e.getParticipantCount()),n.isAdmin=e.iAmAdmin()),n.chatType=o("WAWebGetMessageChatTypeFromWid").getMessageChatTypeFromWid(e.id),n}function c(e){var t=r("WAWeb-moment").utc(e*1e3);return t.startOf("day"),t.unix()}l.commitPollOpenCreationModal=e,l.commitPollsActionsMetric=s}),98); __d("WAWebNewsletterSendVoteMsgAction",["WAAckLevel","WALogger","WATimeUtils","WAWebCRUDOperationsNewsletterMyVotes","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgKey","WAWebMsgModel","WAWebMsgType","WAWebNewsletterBridgeApi","WAWebNewsletterPollVotesModelCollection","WAWebNewsletterSendMessageJob","WAWebNewsletterUpdateMsgsRecordsJob","WAWebNewsletterValidationUtils","WAWebPollOptionHashUtils","WAWebPollsActionsMetricUtils","WAWebPollsCreateOptionLocalIdMap","WAWebSchemaMessage","WAWebSendMsgResultAction","WAWebUserPrefsMeUser","WAWebViewMode.flow","WAWebWamEnumPollActionType","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s;function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n=(t=o("WAWebMsgCollection").MsgCollection.get(e.id))==null?void 0:t.safe();if(n==null)return o("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED;var r=e.myVote;return n.type!==o("WAWebMsgType").MSG_TYPE.POLL_CREATION?o("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED:d(n,r,e.msgKey)}),c.apply(this,arguments)}function d(e,t,n){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,r){var a=o("WAWebFrontendMsgGetters").getChat(t.unsafe()),i=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toJid()),l=yield o("WAWebPollsCreateOptionLocalIdMap").createOptionLocalIdMap(t.pollOptions),u=Array.from(n,function(e){return new Uint8Array(l.getHashForLocalId(e))}),c=t.unsafe(),d=c.serverId;if(d==null)return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter-polls] Message missing serverId"]))),o("WAWebSendMsgResultAction").SendMsgResult.ERROR_CANCELLED;var m=c.id,_=o("WATimeUtils").castToMillisTime(o("WATimeUtils").unixTimeMs()),g=yield p({to:a.id,selectedOptionLocalIds:n,parentMsgKey:m,timestampMs:_,from:o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),msgKey:r}),h=new(o("WAWebMsgModel")).Msg(g),y=yield o("WAWebCRUDOperationsNewsletterMyVotes").getMyVote(a.id.toJid(),d),C=o("WAWebNewsletterPollVotesModelCollection").updateOrCreatePollVote({msgKey:g.id,parentMsgKey:m,selectedOptionLocalIds:n,timestamp:_});yield o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateChatPreviewFromVote({voteMsgObj:{ack:g.ack,senderTimestampMs:g.senderTimestampMs,sender:o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),read:!0,msgKey:g.id,parentMsgKey:m,selectedOptionLocalIds:g.selectedOptionLocalIds,t:g.t},parentMsgKey:m});try{yield o("WAWebNewsletterUpdateMsgsRecordsJob").addNewsletterMsgsRecords([g]),(y==null?void 0:y.msgKey)!=null&&(yield o("WAWebSchemaMessage").getMessageTable().remove(y.msgKey)),yield o("WAWebCRUDOperationsNewsletterMyVotes").createOrUpdateMyVote({chatJid:a.id.toJid(),msgServerId:d,serverTimestampMs:_,votes:u.map(o("WAWebPollOptionHashUtils").bufferToHex),msgKey:h.id.toString()});var b=yield o("WAWebNewsletterSendMessageJob").sendNewsletterMessageJob({type:"pollVote",newsletterJid:i,msg:h,parentMsgServerId:d,votes:u});switch(o("WAWebPollsActionsMetricUtils").commitPollsActionsMetric({action:f(n,y),chat:o("WAWebFrontendMsgGetters").getChat(t.unsafe()),creationDateInSeconds:t.t,pollOptionsCount:t.pollOptions.length}),b.success){case!0:return C.ack=o("WAAckLevel").ACK.SENT,h.updateAck(o("WAAckLevel").ACK.SENT),yield o("WAWebCRUDOperationsNewsletterMyVotes").updateMyVote({chatJid:a.id.toJid(),msgServerId:d,ack:o("WAAckLevel").ACK.SENT,t:b.ack.t}),o("WAWebSendMsgResultAction").SendMsgResult.OK;case!1:return C.isSendFailure=!0,C.ack=o("WAAckLevel").ACK.FAILED,h.updateAck(o("WAAckLevel").ACK.FAILED),yield o("WAWebCRUDOperationsNewsletterMyVotes").updateMyVote({chatJid:a.id.toJid(),msgServerId:d,ack:o("WAAckLevel").ACK.FAILED,t:b.ack.t}),o("WAWebSendMsgResultAction").SendMsgResult.ERROR_NETWORK}}catch(e){throw h.updateAck(o("WAAckLevel").ACK.FAILED),C.isSendFailure=!0,yield o("WAWebCRUDOperationsNewsletterMyVotes").updateMyVote({chatJid:a.id.toJid(),msgServerId:d,ack:o("WAAckLevel").ACK.FAILED}),o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[newsletter-polls] Failed to send poll vote"]))).tags("newsletter").sendLogs("newsletter-polls-failed-to-send-vote"),e}}),m.apply(this,arguments)}function p(e){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.from,n=e.msgKey,a=e.parentMsgKey,i=e.selectedOptionLocalIds,l=e.timestampMs,s=e.to;return{from:t,type:o("WAWebMsgType").MSG_TYPE.POLL_UPDATE,kind:o("WAWebMsgType").MsgKind.PollVoteDecrypted,subtype:"poll_vote",viewMode:o("WAWebViewMode.flow").ViewModeType.VISIBLE,id:n!=null?n:new(r("WAWebMsgKey"))({from:t,id:yield r("WAWebMsgKey").newId(),to:s}),t:Math.floor(l/1e3),pollUpdateParentKey:a,selectedOptionLocalIds:Array.from(i),senderTimestampMs:l,ack:o("WAAckLevel").ACK.CLOCK,to:s,read:!0}}),_.apply(this,arguments)}function f(e,t){return e.size===0?o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.REMOVE_VOTE:t==null?o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.VOTE:o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.CHANGE_VOTE}l.resendVote=u,l.sendVote=d}),98); __d("WAWebPollsCreatePollUpdateVoteMsg",["WANullthrows","WAWebAck","WAWebMsgGetters","WAWebMsgKeyUtils","WAWebMsgType","WAWebPollsProtobufConversion","WAWebPollsVoteEncryption","WAWebReferentialMsgKey","WAWebViewMode.flow","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n,a=self.crypto.getRandomValues(new Uint8Array(12)),i=yield o("WAWebPollsVoteEncryption").encryptVote({encodedProtobuf:yield o("WAWebPollsProtobufConversion").protobufFromVote(e,t.pollOptions),isOneOnOne:o("WAWebMsgGetters").getRemote(t).isUser(),iv:a,messageSecret:r("WANullthrows")(t.messageSecret,"Poll creation missing message secret"),pollCreationOriginalSender:o("WAWebMsgGetters").getOriginalSender(t.unsafe()),stanzaId:t.id.id,voteSender:e.sender}),l=i.encPayload,s=o("WAWebMsgKeyUtils").msgKeyToTargetInfo(e.msgKey,o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon),u=s.author,c=s.to;return{id:e.msgKey,type:o("WAWebMsgType").MSG_TYPE.POLL_UPDATE,kind:o("WAWebMsgType").MsgKind.PollVoteEncrypted,subtype:"poll_vote",addonEncrypted:!0,t:Math.floor(e.senderTimestampMs/1e3),from:e.sender,to:c,author:u,viewMode:o("WAWebViewMode.flow").ViewModeType.VISIBLE,isNewMsg:!0,local:!0,ack:(n=e.ack)!=null?n:o("WAWebAck").ACK.CLOCK,pollUpdateParentKey:o("WAWebReferentialMsgKey").getReferentialMsgKey(t),encPollVote:{encPayload:l,encIv:a.buffer},senderTimestampMs:e.senderTimestampMs}}),s.apply(this,arguments)}l.createPollUpdateVoteMsg=e}),98); __d("WAWebPollsSendVoteMsgAction",["WALogger","WATimeUtils","WAWebAck","WAWebAddOnParseWebMsgInfo","WAWebAddonSendMsgData","WAWebFrontendMsgGetters","WAWebFrontendPollVoteGetters","WAWebLidMigrationUtils","WAWebMsgGetters","WAWebMsgKey","WAWebMsgKeyUtils","WAWebMsgType","WAWebNewsletterGatingUtils","WAWebNewsletterPollVotesModel","WAWebNewsletterSendVoteMsgAction","WAWebPollsActionsMetricUtils","WAWebPollsCreatePollUpdateVoteMsg","WAWebPollsPollVoteCollection","WAWebReferentialMsgKey","WAWebSendAddonMsgChatAction","WAWebSendMsgResultAction","WAWebViewMode.flow","WAWebWamEnumPollActionType","WAWebWid","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){var e;function s(e,t){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){if(r("WAWebWid").isNewsletter(t.id.remote)){if(!o("WAWebNewsletterGatingUtils").isNewsletterPollsReceivingEnabled()){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Newsletter polls are not supported yet"])));return}yield o("WAWebNewsletterSendVoteMsgAction").sendVote(t,n);return}yield _(t,n)}),u.apply(this,arguments)}function c(e){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(e instanceof o("WAWebNewsletterPollVotesModel").NewsletterPollVotes){yield o("WAWebNewsletterSendVoteMsgAction").resendVote(e);return}yield _(o("WAWebFrontendPollVoteGetters").getParentMsg(e),new Set(e.selectedOptionLocalIds),e.msgKey)}),d.apply(this,arguments)}function m(e,t,n){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var r=babelHelpers.extends({},t,{senderTimestampMs:o("WAWebAddOnParseWebMsgInfo").getIncreasingLatestSenderTimestampMs(n==null?void 0:n.senderTimestampMs)});return o("WAWebPollsCreatePollUpdateVoteMsg").createPollUpdateVoteMsg(r,e)}),p.apply(this,arguments)}function _(e,t,n){return f.apply(this,arguments)}function f(){return f=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var a=o("WAWebFrontendMsgGetters").getChat(e.unsafe()),i=o("WAWebLidMigrationUtils").getMeUserLidOrJidForChat(a,o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon),l=e.id.remote,s=n!=null?n:new(r("WAWebMsgKey"))({fromMe:!0,remote:l,id:yield r("WAWebMsgKey").newId(),participant:o("WAWebMsgGetters").getIsGroupMsg(e.unsafe())?i:void 0}),u=o("WAWebReferentialMsgKey").getReferentialMsgKey(e),c=o("WATimeUtils").unixTimeMs(),d={msgKey:s,parentMsgKey:u,selectedOptionLocalIds:Array.from(t),senderTimestampMs:c,t:Math.floor(c/1e3),sender:i,ack:o("WAWebAck").ACK.CLOCK,read:!0},p=o("WAWebPollsPollVoteCollection").PollVoteCollection.getForParentAddressingModeInsensitive([u])[0].getVoteFromSenderAddressingModeInsensitive(i),_,f=babelHelpers.extends({id:s},o("WAWebMsgKeyUtils").msgKeyToTargetInfo(s,o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon),{kind:o("WAWebMsgType").MsgKind.PollVoteDecrypted,type:o("WAWebMsgType").MSG_TYPE.POLL_UPDATE,pollUpdateParentKey:o("WAWebReferentialMsgKey").getReferentialMsgKey(e),selectedOptionLocalIds:Array.from(t),senderTimestampMs:o("WAWebAddOnParseWebMsgInfo").getIncreasingLatestSenderTimestampMs(p==null?void 0:p.senderTimestampMs),t:Math.floor(c/1e3),ack:o("WAWebAck").ACK.CLOCK,read:!0,viewMode:o("WAWebViewMode.flow").ViewModeType.VISIBLE});o("WAWebAddonSendMsgData").isOptimisticAddonSendSupported(f)?_=f:_=yield m(e,d,p);var g=yield o("WAWebSendAddonMsgChatAction").addAndSendAddonToChat(_);if(g.messageSendResult!==o("WAWebSendMsgResultAction").SendMsgResult.OK)throw r("err")("Vote send error");var h;t.size>0?h=p?o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.CHANGE_VOTE:o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.VOTE:h=o("WAWebWamEnumPollActionType").POLL_ACTION_TYPE.REMOVE_VOTE,o("WAWebPollsActionsMetricUtils").commitPollsActionsMetric({action:h,chat:o("WAWebFrontendMsgGetters").getChat(e.unsafe()),creationDateInSeconds:e.t,pollOptionsCount:e.pollOptions.length})}),f.apply(this,arguments)}l.sendVote=s,l.resendVote=c}),98); __d("WAWebCreateEventResponseMsgData",["WATimeUtils","WAWebAck","WAWebAddOnParseWebMsgInfo","WAWebEventResponseCollection","WAWebLidMigrationUtils","WAWebMsgKeyUtils","WAWebMsgType","WAWebReferentialMsgKey","WAWebViewMode.flow","WAWebWid"],(function(t,n,r,o,a,i,l){function e(e){var t,n=e.eventCreationMsg,a=e.responseMsgKey,i=e.responseType,l=e.sender,s=o("WAWebReferentialMsgKey").getReferentialMsgKey(n),u=o("WATimeUtils").unixTimeMs(),c=(t=o("WAWebEventResponseCollection").EventResponseCollection.byParent(s).findFirst(function(e){var t=e.sender;return r("WAWebWid").equals.apply(r("WAWebWid"),o("WAWebLidMigrationUtils").toCommonAddressingMode(t,l))}))==null?void 0:t.senderTimestampMs;return babelHelpers.extends({id:a},o("WAWebMsgKeyUtils").msgKeyToTargetInfo(a,o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon),{parentMsgKey:s,ack:o("WAWebAck").ACK.CLOCK,t:Math.floor(u/1e3),eventResponse:i,senderTimestampMs:o("WAWebAddOnParseWebMsgInfo").getIncreasingLatestSenderTimestampMs(c),read:!0,type:o("WAWebMsgType").MSG_TYPE.EVENT_RESPONSE,kind:o("WAWebMsgType").MsgKind.EventResponseDecrypted,viewMode:o("WAWebViewMode.flow").ViewModeType.VISIBLE})}l.createEventResponseMsgData=e}),98); __d("WAWebSendEventResponseMsgAction",["WANullthrows","WAWebAddonSendMsgData","WAWebCreateEncryptedEventResponseMsgData","WAWebCreateEventResponseMsgData","WAWebFrontendMsgGetters","WAWebLidMigrationUtils","WAWebMsgCollection","WAWebMsgKey","WAWebMsgKeyUtils","WAWebSendAddonMsgChatAction","WAWebSendMsgResultAction","asyncToGeneratorRuntime","err"],(function(t,n,r,o,a,i,l){function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=r("WANullthrows")(o("WAWebMsgCollection").MsgCollection.get(e.parentMsgKey)),n=r("WANullthrows")(o("WAWebFrontendMsgGetters").getAsEventCreation(t)),a=o("WAWebLidMigrationUtils").getMeUserLidOrJidForChat(o("WAWebFrontendMsgGetters").getChat(n.unsafe()),o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon);yield d({responseType:e.eventResponse,responseMsgKey:e.id,eventCreationMsg:n,sender:a})}),s.apply(this,arguments)}function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n=o("WAWebLidMigrationUtils").getMeUserLidOrJidForChat(o("WAWebFrontendMsgGetters").getChat(t.unsafe()),o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon),a=new(r("WAWebMsgKey"))({fromMe:!0,remote:t.id.remote,id:yield r("WAWebMsgKey").newId(),participant:n});yield d({responseType:e,responseMsgKey:a,eventCreationMsg:t,sender:n})}),c.apply(this,arguments)}function d(e){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=o("WAWebCreateEventResponseMsgData").createEventResponseMsgData(e),n;if(o("WAWebAddonSendMsgData").isOptimisticAddonSendSupported(t))n=yield o("WAWebSendAddonMsgChatAction").addAndSendAddonToChat(t);else{var a=yield o("WAWebCreateEncryptedEventResponseMsgData").createEncryptedEventResponseMsgData(t,e.eventCreationMsg);n=yield o("WAWebSendAddonMsgChatAction").addAndSendAddonToChat(a)}if(n.messageSendResult!==o("WAWebSendMsgResultAction").SendMsgResult.OK)throw r("err")("Failed to send event response")}),m.apply(this,arguments)}l.resendEventResponseMsg=e,l.sendEventResponseMsg=u}),98); __d("useWAWebEventResponsesToResend",["WAWebEventResponseCollection","useWAWebAggregatedView"],(function(t,n,r,o,a,i,l){function e(e){var t=o("useWAWebAggregatedView").useAggregatedView(o("WAWebEventResponseCollection").EventResponseCollection.byIsFailedByMe,!0);return t.filter(function(t){var n=t.parentMsgKey;return e.some(function(e){return e.equals(n)})})}l.default=e}),98); __d("useWAWebPinsToResend",["WAWebPinInChatCollection","compactMap","useWAWebAggregatedView"],(function(t,n,r,o,a,i,l){function e(e){var t=o("useWAWebAggregatedView").useAggregatedView(o("WAWebPinInChatCollection").PinInChatCollection.byIsFailedByMe,!0),n=r("compactMap")(e,function(e){return t.get(o("WAWebPinInChatCollection").getPinInChatId(e))});return n}l.default=e}),98); __d("useWAWebPollVoteValues",["WAWebPollsPollVoteCollection","useWAWebCollectionValues"],(function(t,n,r,o,a,i,l){function e(e,t){return o("useWAWebCollectionValues").useCollectionValues(o("WAWebPollsPollVoteCollection").PollVoteCollection,e,t)}function s(e,t){return o("useWAWebCollectionValues").useOptionalCollectionValues(o("WAWebPollsPollVoteCollection").PollVoteCollection,e,t)}l.usePollVoteValues=e,l.useOptionalPollVoteValues=s}),98); __d("WAWebPollsUseMyVote",["WAWebNewsletterPollVotesModel","WAWebNewsletterPollVotesModelCollection","WAWebPollVoteGetters","WAWebPollsPollVoteCollection","WAWebPollsPollVoteModel","WAWebUserPrefsMeUser","WAWebWid","useWAWebEventTargetValue","useWAWebModelValues","useWAWebPollVoteValues"],(function(t,n,r,o,a,i,l){function e(e){var t,n,a,i=e.includeUnvote,l=e.pollCreationMsg,u=(t=o("useWAWebModelValues").useOptionalModelValues(l,["id"]))==null?void 0:t.id,c=s(u),d=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),m=r("useWAWebEventTargetValue")(c,"add remove reset",function(){if(c instanceof o("WAWebPollsPollVoteCollection").GroupedPollVoteCollection)return c.getVoteFromSenderAddressingModeInsensitive(d);if(u!=null)return c==null?void 0:c.get(u)}),p=m instanceof o("WAWebPollsPollVoteModel").PollVote?m:null,_=m instanceof o("WAWebNewsletterPollVotesModel").NewsletterPollVotes?m:null,f=(n=o("useWAWebModelValues").useOptionalModelValues(_,["isUnvote"]))==null?void 0:n.isUnvote,g=(a=o("useWAWebPollVoteValues").useOptionalPollVoteValues(p==null?void 0:p.id,[o("WAWebPollVoteGetters").getIsUnvote]))==null?void 0:a[0],h=f!=null?f:g;return m==null||h===!0&&!i?null:m}function s(e){if(e==null)return null;var t=r("WAWebWid").isNewsletter(e==null?void 0:e.remote);return t?o("WAWebNewsletterPollVotesModelCollection").NewsletterPollVotesModelCollection:o("WAWebPollsPollVoteCollection").PollVoteCollection.getForParentAddressingModeInsensitive([e])[0]}l.useMyVote=e}),98); __d("useWAWebNewsletterPollVotesValues",["WAWebNewsletterPollVotesModelCollection","useWAWebCollectionValues"],(function(t,n,r,o,a,i,l){function e(e,t){return o("useWAWebCollectionValues").useOptionalCollectionValues(o("WAWebNewsletterPollVotesModelCollection").NewsletterPollVotesModelCollection,e,t)}l.useOptionalNewsletterPollVotesValues=e}),98); __d("useWAWebPollVotesToResend",["WAWebFrontendMsgGetters","WAWebFrontendNewsletterPollVotesGetters","WAWebFrontendPollVoteGetters","WAWebNewsletterPollVotesModel","WAWebPollsPollVoteModel","WAWebPollsUseMyVote","useWAWebNewsletterPollVotesValues","useWAWebPollVoteValues"],(function(t,n,r,o,a,i,l){function e(e){var t,n,r,a=e!=null?o("WAWebFrontendMsgGetters").getAsPollCreation(e):null,i=o("WAWebPollsUseMyVote").useMyVote({pollCreationMsg:a,includeUnvote:!0}),l=i instanceof o("WAWebPollsPollVoteModel").PollVote?i:null,s=i instanceof o("WAWebNewsletterPollVotesModel").NewsletterPollVotes?i:null,u=(t=o("useWAWebNewsletterPollVotesValues").useOptionalNewsletterPollVotesValues(s==null?void 0:s.id,[o("WAWebFrontendNewsletterPollVotesGetters").getIsFailed]))==null?void 0:t[0],c=(n=o("useWAWebPollVoteValues").useOptionalPollVoteValues(l==null?void 0:l.id,[o("WAWebFrontendPollVoteGetters").getIsFailed]))==null?void 0:n[0],d=(r=u!=null?u:c)!=null?r:!1,m=d&&i!=null?[i]:[];return m}l.default=e}),98); __d("useWAWebStableArrayModelState",["react","useStable"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=s.useCallback,c=s.useRef,d=s.useState,m=function(t){return t.id.toString()};function p(){var e=r("useStable")(function(){return[]}),t=d(),n=t[0],o=t[1],a=c(new Map),i=u(function(e){var t=e.reduce(function(e,t){return e+m(t)},""),n=a.current.get(t);n==null?(a.current.set(t,e),o(e)):o(n)},[]),l=n!=null?n:e;return[l,i]}l.default=p}),98); __d("useWAWebReactions",["Promise","WALogger","WAWebPREGatingUtils","WAWebReactionsCollection","WAWebReactionsUtils","asyncToGeneratorRuntime","react","useWAWebListener","useWAWebPrevious","useWAWebStableArrayModelState","useWAWebStableCallback","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=c.useCallback,m=c.useEffect,p=c.useRef,_=c.useState;function f(t,a,i){var l=o("WAWebPREGatingUtils").isPREMessageSendFollowupEnabled(),u=_([]),c=u[0],f=u[1],g=r("useWAWebStableArrayModelState")(),h=g[0],y=g[1],C=l?h:c,b=_([]),v=b[0],S=b[1],R=_(0),L=R[0],E=R[1],k=r("useWAWebStableCallback")(a),I=r("useWAWebUnmountSignal")(),T=p(!0),D=r("useWAWebPrevious")(i),x=d(function(e){var t=o("WAWebReactionsUtils").getReactionEmojisAndSum(e);S(t.reactionArrayEmojis),E(t.numberOfSenderReactions)},[]),$=t==null?void 0:t.join("-");return m(function(){function r(e){l?y(e):f(e)}n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(t){var a=[],i=t.map(function(t){return o("WAWebReactionsCollection").ReactionsCollection.find(t).then(function(e){e!=null&&a.push(e)}).catch(function(t){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Could not get reactions for message: ",""])),t)})});if(yield(s||(s=n("Promise"))).all(i),!I.aborted){r(a);var l=D==null&&!a.some(function(e){return e.reactions.length>0});D!==!1&&!l&&(x(a),k(a))}}})()},[$,x,i]),o("useWAWebListener").useListeners(C.map(function(e){var t=e.reactions;return{source:t,eventOrEvents:"add reset change:senders",callback:function(){T.current=!1,x(C),k(C)}}})),o("useWAWebListener").useListeners(C.map(function(e){var t=e.reactions;return{source:t,eventOrEvents:"remove",callback:function(){x(C),i===void 0&&k(C)}}})),{reactionArrayEmojis:v,numberOfSenderReactions:L,reactionsModels:C,isFirstData:T.current}}l.default=f}),98); __d("useWAWebReactionsByMe",["WAWebEmoji","compactMap","react","useWAWebReactions"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(e){var t=s([]),n=t[0],a=t[1],i=function(t){var e=t.filter(function(e){return e.reactionByMe!=null}),n=r("compactMap")(e,function(e){if(e.reactionByMe!=null){var t=e.reactionByMe,n=t.reactionText,r=t.senderUserJid,a=o("WAWebEmoji").EmojiUtil.getEmojiAggregate(n),i=e.getReactionSenderModel(a,r);return i}});a(n)};return r("useWAWebReactions")(e.map(function(e){return e.toString()}),i),n}l.default=u}),98); __d("WAWebMsgSendFailIcon.react",["fbt","WALogger","WANullthrows","WAWebDeleteRevokeMsgFlow.react","WAWebFailIcon.react","WAWebFailedMessageEditResendModal.react","WAWebFailedMessageModal.react","WAWebFbtIntlList","WAWebFrontendMsgGetters","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgGetters","WAWebPinMsgConstants","WAWebPollVoteGetters","WAWebPollsPollVoteModel","WAWebPollsSendVoteMsgAction","WAWebReactionsMsgAction","WAWebReactionsUtils","WAWebSendCommentMessageAction","WAWebSendEventResponseMsgAction","WAWebSendMsgResultAction","WAWebSendPinMessageAction","WAWebStateUtils","err","react","useWAWebEventResponsesToResend","useWAWebEventTargetValue","useWAWebMsgValues","useWAWebPinsToResend","useWAWebPollVotesToResend","useWAWebReactionsByMe"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_=p||(p=r("react"));function f(t){var n=t.displayType,a=t.msgs,i=t.showForAddOns,l=t.showForMessages,c=r("WANullthrows")(a[0]),d=o("useWAWebMsgValues").useMsgValues(c.id,[o("WAWebMsgGetters").getIsSentByMe]),m=d[0],p=o("WAWebFrontendMsgGetters").getChat(c.unsafe()),f=l?a:[],y=r("useWAWebEventTargetValue")(f,"change:ack change:isSendFailure",function(){return f.filter(function(e){return o("WAWebMsgGetters").getIsFailed(e)})}),C=f[0]!=null&&o("WAWebMsgGetters").getIsEdited(f[0]),b=i?a:[],v=b.map(function(e){return e.id}),S=r("useWAWebReactionsByMe")(v),R=r("useWAWebEventTargetValue")(S,"change:isFailed",function(){return S.filter(function(e){return e.isFailed})}),L=b[0],E=r("useWAWebPollVotesToResend")(L.unsafe()),k=r("useWAWebPinsToResend")(v),I=r("useWAWebEventResponsesToResend")(v);if(y.length===0&&R.length===0&&E.length===0&&k.length===0&&I.length===0)return null;var T=function(){C&&R.length===0?(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["MsgSendFailIcon:handleClick: edit send failure"]))),g(c,p)):(o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["MsgSendFailIcon:handleClick: generic send failure"]))),h({messagesToResend:y,reactionsToResend:R,votesToResend:E,pinsToResend:k,eventResponsesToResend:I,commentsToResend:[]}))},D=s._(/*BTDS*/"Se produjo un error. Haz clic para obtener m\u00e1s informaci\u00f3n.");return _.jsx(r("WAWebFailIcon.react"),{displayType:n,tooltip:D,ariaLabel:D,fromMe:m,onClick:T,isGroupChatProfilePictureDisplayed:!0})}f.displayName=f.name+" [from "+i.id+"]";function g(e,t){var n=o("WAWebMsgActionCapability").canEditText(e.unsafe()),a=n?_.jsx(r("WAWebFailedMessageEditResendModal.react"),{failedEditedMsg:e.unsafe()}):_.jsx(r("WAWebDeleteRevokeMsgFlow.react"),{chat:t,msgList:[e.unsafe()].map(o("WAWebStateUtils").unproxy)});o("WAWebModalManager").ModalManager.open(a)}function h(e){var t=y(e);o("WAWebModalManager").ModalManager.open(_.jsx(r("WAWebFailedMessageModal.react"),{text:t,resend:function(){C(e)}}))}function y(e){var t=e.commentsToResend,n=e.eventResponsesToResend,a=e.messagesToResend,i=e.pinsToResend,l=e.reactionsToResend,u=e.votesToResend,c=l.length+u.length+i.length+n.length,d=a.length+c;if(a.length>0&&d===a.length)return s._(/*BTDS*/"No se envi\u00f3 tu mensaje.");if(a.length>0)return s._(/*BTDS*/"No se enviaron tu mensaje ni tus acciones sobre este mensaje.");if(l.length===c){var m=r("WAWebFbtIntlList")(l.map(function(e){return e.reactionText}),r("WAWebFbtIntlList").CONJUNCTIONS.NONE,r("WAWebFbtIntlList").DELIMITERS.COMMA);return l.length>2?s._(/*BTDS*/"_j{\"*\":\"No se enviaron {count} reacciones\",\"_1\":\"No se envi\\u00f3 1 reacci\\u00f3n\"}",[s._plural(l.length,"count")]):s._(/*BTDS*/"_j{\"*\":\"No se enviaron tus reacciones {reactions}\",\"_1\":\"No se envi\\u00f3 la reacci\\u00f3n {reactions}\"}",[s._plural(l.length),s._param("reactions",m)])}if(u.length===c){var p=u[0],_=p instanceof o("WAWebPollsPollVoteModel").PollVote?o("WAWebPollVoteGetters").getIsUnvote(p):p.isUnvote;return _?s._(/*BTDS*/"No se envi\u00f3 tu cambio de voto."):s._(/*BTDS*/"No se envi\u00f3 tu voto.")}if(i.length===c){var f=i[0];return f.pinType===o("WAWebPinMsgConstants").PIN_STATE.PIN?s._(/*BTDS*/"No se pudo fijar el mensaje."):s._(/*BTDS*/"No se pudo desfijar el mensaje.")}if(n.length===c)return s._(/*BTDS*/"No se envi\u00f3 tu respuesta.");if(t.length===c)return s._(/*BTDS*/"No se envi\u00f3 tu comentario.");if(c>0)return s._(/*BTDS*/"No se enviaron tus acciones sobre este mensaje.");throw r("err")("Unhandled case: "+a.length+" messages, "+l.length+" reactions, "+u.length+" votes, "+d+" total.")}function C(e){var t=e.commentsToResend,n=e.eventResponsesToResend,r=e.messagesToResend,a=e.pinsToResend,i=e.reactionsToResend,l=e.votesToResend;o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["FailedMessageModal:resend: resend failed messages and add-ons, "," messages, "," reactions, "," votes, "," pins, "," event responses, "," comments"])),r.length,i.length,l.length,a.length,n.length,t.length);for(var s of r)s.resend().then(function(e){e===o("WAWebSendMsgResultAction").SendMsgResult.ERROR_UNKNOWN&&o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["FailedMessageModal:resend: failure with SendMsgResult.ERROR_UNKNOWN"]))).tags("messaging")}).catch(function(e){o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["FailedMessageModal:resend: resend failure ",""])),e).tags("messaging")});i.forEach(function(e){var t=o("WAWebReactionsUtils").reactionSenderToReactionUpdate(e);o("WAWebReactionsMsgAction").resendUpdateFailedPropsForSentReactionsDBAndModel(t)}),l.forEach(o("WAWebPollsSendVoteMsgAction").resendVote),a.forEach(o("WAWebSendPinMessageAction").resendPinInChatMsg),n.forEach(o("WAWebSendEventResponseMsgAction").resendEventResponseMsg),t.forEach(o("WAWebSendCommentMessageAction").resendComment)}l.MsgSendFailIcon=f,l.showResendDialog=h}),226); __d("WAWebCommentSendFailIcon.react",["fbt","WAWebDisplayType","WAWebFailIcon.react","WAWebMsgSendFailIcon.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.comment,n=s._(/*BTDS*/"Se produjo un error. Haz clic para obtener m\u00e1s informaci\u00f3n."),a=function(){o("WAWebMsgSendFailIcon.react").showResendDialog({messagesToResend:[],reactionsToResend:[],votesToResend:[],pinsToResend:[],eventResponsesToResend:[],commentsToResend:[t]})};return t.isFailed?u.jsx(r("WAWebFailIcon.react"),{displayType:o("WAWebDisplayType").DISPLAY_TYPE.COMMENT,tooltip:n,ariaLabel:n,fromMe:t.id.fromMe,onClick:a,isGroupChatProfilePictureDisplayed:!0}):null}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebCommentTimestamp.react",["WAWebClock","WAWebText.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.t,n=o("WAWebClock").Clock.timestampStr(t);return s.jsx(o("WAWebText.react").WAWebTextMuted,{children:s.jsx(o("WAWebText.react").WAWebTextSmall,{children:n})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebCommentToCommentMsgData",["WAWebMsgKeyUtils","WAWebMsgType","WAWebViewMode.flow"],(function(t,n,r,o,a,i,l){function e(e){var t;return babelHelpers.extends({id:e.id},o("WAWebMsgKeyUtils").msgKeyToTargetInfo(e.id,o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon),{type:o("WAWebMsgType").MSG_TYPE.COMMENT,kind:o("WAWebMsgType").MsgKind.CommentDecrypted,viewMode:o("WAWebViewMode.flow").ViewModeType.VISIBLE,parentMsgKey:e.parentMsgKey,body:e.body,t:e.t,read:e.read,ack:(t=e.ack)!=null?t:void 0,messageSecret:e.messageSecret})}l.commentToCommentMsgData=e}),98); __d("WAWebDebugGatingUtils",["WAWebABProps","WAWebEnvironment","gkx"],(function(t,n,r,o,a,i,l){function e(){return r("WAWebEnvironment").isWindows&&o("WAWebABProps").getABPropConfigValue("is_meta_employee_or_internal_tester")||!r("gkx")("26258")}l.msgDebugMenuItemsEnabled=e}),98); __d("WAWebGroupChatProfilePicture.react",["fbt","WAWebChatCollection","WAWebChatGroupUtils","WAWebChatParticipantColor","WAWebCmd","WAWebDetailImage.react","WAWebElevatedPushNamesFlag","WAWebFindChatAction","WAWebMessageUiUtils","WAWebQuotedMessageUserJourneyLogger","WAWebStylexVars.stylex","WDSVars.stylex","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={height:"x16ye13r",position:"x10l6tqk",insetInlineStart:"x1wnpwf8",left:"",right:"",zIndex:"x1vjfegm",$$css:!0},m={groupProfilePictureSticky:function(t){return[d,{"--x-height":(function(e){return typeof e=="number"?e+"px":e!=null?e:void 0})(t.lastMessageHasReaction?"calc(100% - "+o("WAWebStylexVars.stylex").reactionBubbleVariables.height+" - "+o("WDSVars.stylex").WDSVars.spacingSinglePlus+")":"calc(100% - "+o("WDSVars.stylex").WDSVars.spacingSinglePlus+")")}]}};function p(e){var t,n=e.chatWid,r=e.disableClick,a=r===void 0?!1:r,i=e.lastMessageHasReaction,l=i===void 0?!1:i,u=e.sticky,d=u===void 0?!1:u,m=e.usePicInBubbleLayout,p=m===void 0?!1:m,f=e.userContact,g=o("WAWebChatCollection").ChatCollection.get(n),h=g?o("WAWebChatParticipantColor").getAssignedColor(g,f.id,"WAWebGroupChatProfilePicture-"+((t=o("WAWebQuotedMessageUserJourneyLogger").getChatType(g.id))!=null?t:"")):1,y=function(t){var e=o("WAWebChatGroupUtils").getOneToOneContactFromGroupContact(f.id,"handle_click_group_chat_profile_picture");e!=null&&o("WAWebFindChatAction").findOrCreateLatestChat(e,"groupChatProfilePicture").then(function(e){var t=e.chat;t!=null&&o("WAWebCmd").Cmd.chatInfoDrawer(t,g!=null?{sourceGroupChatOrNewsletter:g}:void 0)})},C=o("WAWebElevatedPushNamesFlag").elevatedPushNamesEnabled(g),b=o("WAWebMessageUiUtils").getAuthorName(f.id,f,C),v=s._(/*BTDS*/"Abrir los detalles del chat para {author-name}",[s._param("author-name",b)]);return c.jsx(_,{lastMessageHasReaction:l,sticky:d,children:c.jsx(o("WAWebDetailImage.react").DetailImage,{testId:"group-chat-profile-picture",id:f.id,size:o("WAWebDetailImage.react").DetailImageSize.None,theme:p?"group_profile_picture_in_bubble":"group_profile_picture",loadAnimation:!1,onClick:a?null:y,authorColor:h,tabIndex:0,ariaLabel:v,groupProfilePictureSticky:d})})}p.displayName=p.name+" [from "+i.id+"]";function _(e){var t=e.children,n=e.lastMessageHasReaction,o=e.sticky;return o?c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(m.groupProfilePictureSticky({lastMessageHasReaction:n})),{children:t})):t}_.displayName=_.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebImageIcon.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="image";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=42,R=42;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 42 42",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:"M42 4.66667V37.3333C42 39.9 39.9 42 37.3333 42H4.66667C2.1 42 0 39.9 0 37.3333V4.66667C0 2.1 2.1 0 4.66667 0H37.3333C39.9 0 42 2.1 42 4.66667ZM18.6667 31.5233L13.7667 25.62C13.2767 25.0367 12.39 25.06 11.9467 25.6667L6.13667 33.1333C5.53 33.9033 6.06667 35.0233 7.04667 35.0233H35.0233C35.98 35.0233 36.54 33.9267 35.9567 33.1567L27.7667 22.2367C27.3 21.6067 26.3667 21.6067 25.9 22.2133L18.6667 31.5233Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ImageIcon=m}),98); __d("WAWebMediaThumbnail.react",["WAWebClassnames","WAWebMediaOpaqueData","WAWebMsgType","compactMap","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l){var e=["msg","thumbnailPlaceholder","thumbnailRef"],s,u,c=u||(u=r("react")),d=(s||(s=o("react"))).useEffect;function m(t){var n=t.msg,r=t.thumbnailPlaceholder,a=t.thumbnailRef,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=o("useWAWebModelValues").useModelValues(n,["mediaData","type"]),s=l.mediaData,u=l.type;if(s==null){var d=r!=null?c.jsx(_,{className:i.containerClassName,children:c.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("x10l6tqk",i.childClassName),children:r})}):null;return d}return c.jsx(p,babelHelpers.extends({mediaData:s,thumbnailPlaceholder:r,type:u,thumbnailRef:a},i))}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.childClassName,n=e.containerClassName,a=e.mediaData,i=e.thumbnailPlaceholder,l=e.thumbnailRef,s=e.type,u=o("useWAWebModelValues").useModelValues(a,["preview","fullPreviewData"]),d=u.fullPreviewData,m=u.preview,p=[];if(m!=null&&p.push({opaque:m,key:"preview"}),d!=null&&p.push({opaque:d,key:"fullPreviewData"}),p.length===0){var g=i!=null?c.jsx(_,{className:n,type:s,children:c.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("x10l6tqk",t),children:i})}):null;return g}return c.jsx(_,{className:n,children:r("compactMap")(p,function(e,n){var o=e.key,a=e.opaque;return a instanceof r("WAWebMediaOpaqueData")?c.jsx(f,{className:t,opaque:a,type:s,ref:n===0?l:void 0},o):null})})}p.displayName=p.name+" [from "+i.id+"]";function _(e){var t=e.children,n=e.className,r=e.type;return c.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease(r===o("WAWebMsgType").MSG_TYPE.STICKER_PACK?"x1n2onr6 x78zum5 xl56j7k x6s0dn4":"x1n2onr6",n),children:t})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.className,n=e.opaque,r=e.ref,a=e.type;return d(function(){if(n!=null)return n.retain(),function(){n.autorelease()}},[n]),c.jsx("div",{ref:r,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("x10l6tqk",t,a===o("WAWebMsgType").MSG_TYPE.STICKER_PACK?"x5yr21d xh8yej3 x18d0r48":null),style:n?{backgroundImage:'url("'+n.url()+'")'}:null})}f.displayName=f.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebVideoPlaceholderIcon.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="video-placeholder";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=28,R=46;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 46 28",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M0.632234 3.05765C0 4.25556 0 5.82371 0 8.96V19.04C0 22.1763 0 23.7444 0.632234 24.9423C1.18836 25.9961 2.07575 26.8527 3.16722 27.3896C4.40804 28 6.03238 28 9.28106 28H23.5894C26.838 28 28.4624 28 29.7032 27.3896C30.7947 26.8527 31.682 25.9961 32.2382 24.9423C32.8704 23.7444 32.8704 22.1763 32.8704 19.04V8.96C32.8704 5.82371 32.8704 4.25556 32.2382 3.05765C31.682 2.00395 30.7947 1.14725 29.7032 0.610364C28.4624 0 26.838 0 23.5894 0H9.28106C6.03238 0 4.40804 0 3.16722 0.610364C2.07575 1.14725 1.18836 2.00395 0.632234 3.05765Z",fill:"currentColor"}),c.jsx("path",{d:"M36.7051 8.4197C36.3068 8.77319 36.0801 9.27163 36.0801 9.79396V18.206C36.0801 18.7284 36.3068 19.2268 36.7051 19.5803L41.899 24.1895C43.1385 25.2895 45.1411 24.4407 45.1411 22.8153V5.18474C45.1411 3.55931 43.1385 2.71047 41.899 3.81048L36.7051 8.4197Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.VideoPlaceholderIcon=m}),98); __d("WAWebReactionCellDetailThumb.react",["fbt","WAWebChatMessageSearch","WAWebCmd","WAWebDetailImage.react","WAWebFrontendMsgGetters","WAWebImageIcon.react","WAWebKeyboardHotKeys.react","WAWebMediaThumbnail.react","WAWebMediaUrlProvider","WAWebMsgCollection","WAWebMsgType","WAWebReactionEmoji.react","WAWebToast.react","WAWebToastManager","WAWebUnstyledButton.react","WAWebVideoPlaceholderIcon.react","WAWebWamEnumWebcRmrReasonCode","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={placeholderIcon:{width:"xh8yej3",height:"x5yr21d",$$css:!0}};function d(e){var t=e.reactionText;return u.jsx("div",{className:"x10l6tqk xtzk6r2 xqwxbl3 xmix8c7 x1xp8n7a",children:u.jsx(o("WAWebReactionEmoji.react").ReactionEmoji,{scale:"reactionCellDetailThumb",size:"small",reaction:t})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.profileImageId,n=e.reactionText,r=e.size,a=r===void 0?"small":r;return u.jsxs("div",babelHelpers.extends({},{0:{className:"x1n2onr6 xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh"},2:{className:"x1n2onr6 xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh x1td3qas x10w6t97"},1:{className:"x1n2onr6 xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh x10h3iyq x5kalc8"},3:{className:"x1n2onr6 xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh x10h3iyq x5kalc8"}}[(a==="small")<<1|(a==="medium")<<0],{children:[u.jsx(o("WAWebDetailImage.react").DetailImage,{id:t,size:a==="small"?32:42,shape:o("WAWebDetailImage.react").DetailImageShape.Circle,theme:"reaction_details"}),u.jsx(d,{reactionText:n})]}))}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.msg,n=e.onCloseDetailsPane,a=e.reactionText,i=e.showReactionText,l=i===void 0?!0:i,m=function(r){var e;r.stopPropagation(),r.preventDefault();var a=t.id,i=o("WAWebFrontendMsgGetters").getChat(t),l=o("WAWebMsgCollection").MsgCollection.get(a),c=o("WAWebChatMessageSearch").getSearchContext(i,(e=l==null?void 0:l.id)!=null?e:a,t==null?void 0:t.unsafe());c&&(c.slideToMsg=!0),n(),o("WAWebCmd").Cmd.openChatAt({chat:i,msgContext:c,onSuccess:{mediaMsgToOpenInMediaViewer:o("WAWebMsgCollection").MsgCollection.get(t.id)}}),!l&&o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo encontrar el mensaje")}))},p={enter:function(t){m(t)},space:function(t){m(t)}},f=t.type===o("WAWebMsgType").MSG_TYPE.IMAGE?u.jsx(o("WAWebImageIcon.react").ImageIcon,{iconXstyle:c.placeholderIcon}):u.jsx(o("WAWebVideoPlaceholderIcon.react").VideoPlaceholderIcon,{iconXstyle:c.placeholderIcon}),g=u.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d",children:f},"default"),h=t.type===o("WAWebMsgType").MSG_TYPE.IMAGE?u.jsx(r("WAWebMediaUrlProvider"),{mediaData:t.mediaData,placeholderRenderer:function(){return g},downloadMedia:function(){return t.downloadMedia({downloadEvenIfExpensive:!1,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.OTHER,isUserInitiated:!1})},renderProgressively:!1,children:_}):u.jsx(r("WAWebMediaThumbnail.react"),{msg:t,thumbnailPlaceholder:g,childClassName:"xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh x1td3qas x10w6t97 x6ikm8r x10wlt62 xiy17q3 x1xsqp64 x18d0r48"}),y=s._(/*BTDS*/"Haz clic para abrir el archivo multimedia.");return u.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:p,children:u.jsx(r("WAWebUnstyledButton.react"),{onClick:m,"aria-label":y,children:u.jsxs("div",{className:"x1n2onr6 xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh x1td3qas x10w6t97",onClickCapture:m,children:[h,l&&u.jsx(d,{reactionText:a})]})})})}p.displayName=p.name+" [from "+i.id+"]";function _(e){return u.jsx("div",{className:"xr9w4p7 x7f0h72 x1nug9m2 x18qtlnh x1td3qas x10w6t97 x6ikm8r x10wlt62 xiy17q3 x1xsqp64 x18d0r48",style:{backgroundImage:"url("+e+")"}})}_.displayName=_.name+" [from "+i.id+"]",l.ReactionCellProfileImageThumb=m,l.ReactionCellDetailThumb=p}),226); __d("WAWebReportPopupBase.react",["fbt","WAWebBlocklistUtils","WAWebCheckBox.react","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebText.react","WAWebText_DONOTUSE.react","WAWebUISpacing","react","stylex","useWAWebToggle"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react"));function d(e,t){return e===void 0&&(e=!1),e?s._(/*BTDS*/"Bloquear IA"):s._(/*BTDS*/"Bloquear a {contact}",[s._param("contact",t)])}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.isBizBot3p,n=e.isBusiness,r=e.isCommunityAnnouncementGroup,a=e.isGroup;return t?s._(/*BTDS*/"Esta IA no podr\u00e1 llamarte ni enviarte mensajes."):n?s._(/*BTDS*/"Esta empresa no podr\u00e1 llamarte ni enviarte mensajes."):a&&!r&&o("WAWebBlocklistUtils").isRBIForGroupsEnabled()?s._(/*BTDS*/"Esta persona no podr\u00e1 enviarte mensajes ni llamarte. Sin embargo, seguir\u00e1n viendo los mensajes que ustedes env\u00eden en los grupos que comparten."):s._(/*BTDS*/"Esta persona no podr\u00e1 llamarte ni enviarte mensajes.")}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.additionalActionLabelText,n=e.additionalActionSubText,a=e.hasAdditionalAction,i=e.onCancel,l=e.onSendReport,d=e.onSendReportAndAdditionalAction,m=e.reportSubText,p=e.type,_=r("useWAWebToggle")(!1),f=_[0],g=_[1],h=function(){f?d():l()},y=s._(/*BTDS*/"Reporta a WhatsApp");return c.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:h,okText:r("WAWebFbtCommon")("Report"),okButtonType:"solid-warning",onCancel:i!=null?i:function(){return o("WAWebModalManager").ModalManager.close()},title:y,type:p,children:[c.jsx(o("WAWebText.react").WAWebTextMuted,{children:m}),a&&c.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:o("WAWebUISpacing").uiMargin.top20,children:[c.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:[o("WAWebUISpacing").uiMargin.horiz6,o("WAWebUISpacing").uiPadding.top2],children:c.jsx(o("WAWebCheckBox.react").CheckBox,{onChange:g,checked:f,id:"additional-action-checkbox",testid:void 0})}),c.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:o("WAWebUISpacing").uiMargin.start12,children:[c.jsx(o("WAWebText_DONOTUSE.react").TextLabel,{htmlFor:"additional-action-checkbox",weight:"medium",testid:void 0,children:t}),c.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:o("WAWebUISpacing").uiMargin.top6,testid:void 0,children:n})]}),c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiMargin.vert12)))]})]})}p.displayName=p.name+" [from "+i.id+"]",l.getBlockLabelText=d,l.getBlockSubText=m,l.ReportPopupBase=p}),226); __d("useWAWebContactFormattedUsernameOrPhoneByChat",["WAWebChatCommunityUtils","WAWebFrontendContactGetters","WAWebLidMigrationUtils","useWAWebContactValues","useWAWebEventTargetValue","useWAWebIAmCommunityAdmin"],(function(t,n,r,o,a,i,l){function e(e,t){var n,a,i=t.id,l=o("useWAWebContactValues").useContactValues(t.id,[o("WAWebFrontendContactGetters").getFormattedUsernameOrPhone,o("WAWebFrontendContactGetters").getMaskedPhoneLid]),s=l[0],u=l[1],c=e==null||(n=e.groupMetadata)==null||(n=n.getParentGroupChat())==null?void 0:n.groupMetadata,d=r("useWAWebIAmCommunityAdmin")(c),m=(a=o("WAWebLidMigrationUtils").toPn(i))!=null?a:i,p=r("useWAWebEventTargetValue")(c==null?void 0:c.participants,["bulk_add","bulk_remove"],function(){var e;return m.isUser()&&!!(!(c==null||(e=c.participants)==null)&&e.userIsAdmin(m))});return o("WAWebChatCommunityUtils").shouldMaskPhoneNumberForChat(e,t,{iAmCommunityAdmin:d,isSenderAdmin:p})?{formattedUsernameOrPhone:u,isPhoneNumberForceMasked:!0}:{formattedUsernameOrPhone:s,isPhoneNumberForceMasked:null}}l.default=e}),98); __d("WAWebReportMsgPopup.react",["fbt","WAWebAusOSAReportModalLoadable","WAWebBlockBusinessPopup.react","WAWebBlocklistUtils","WAWebChatGetters","WAWebChatGroupUtils","WAWebComplianceUtil","WAWebEmojiText.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFbtCommon","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebGroupHistoryUtils","WAWebModalManager","WAWebMsgCollection","WAWebMsgGetters","WAWebName.react","WAWebReportGatingUtils","WAWebReportPopupBase.react","WAWebSendSpamChatAction","WAWebUseBusinessProfile.react","asyncToGeneratorRuntime","react","useWAWebContactFormattedUsernameOrPhoneByChat","useWAWebContactValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t,a=e.msg,i=e.spamFlow,l=o("WAWebFrontendMsgGetters").getChat(a),c=(t=o("WAWebUseBusinessProfile.react").useBusinessProfile(l.contact.id,["isBizBot3p"]))!=null?t:{},m=c.isBizBot3p,p=m===void 0?!1:m,_=d(a),f=o("useWAWebContactValues").useContactValues(_.id,[o("WAWebFrontendContactGetters").getIsContactBlocked]),g=f[0],h=r("useWAWebContactFormattedUsernameOrPhoneByChat")(l,_),y=h.formattedUsernameOrPhone,C=h.isPhoneNumberForceMasked,b=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WAWebSendSpamChatAction").sendMessageReport(a,i).then(function(e){o("WAWebModalManager").ModalManager.close(),e!=null&&o("WAWebReportGatingUtils").isAusOSAReportingEnabled()&&o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebAusOSAReportModalLoadable").AusOSAReportModalLoadable,{reportId:e,contactFormId:o("WAWebComplianceUtil").WA_CF_RES_OSA_ID,contactFormIdentifier:o("WAWebComplianceUtil").WA_CF_RES_OSA}))})});return function(){return e.apply(this,arguments)}})(),v=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(p||l.contact.isBusiness){var e;yield o("WAWebSendSpamChatAction").sendMessageReport(a,i).then(function(t){t!=null&&o("WAWebReportGatingUtils").isAusOSAReportingEnabled()&&(e=t)}),o("WAWebModalManager").ModalManager.close();var t=o("WAWebBlocklistUtils").getBlockEntryPointFromSpamFlow(i);o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebBlockBusinessPopup.react"),{chat:l,blockEntryPoint:t,reportId:e,withReport:!1}));return}o("WAWebSendSpamChatAction").sendMessageReportBlock(a,i)});return function(){return e.apply(this,arguments)}})(),S=u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getBlockingReportingFaqUrl(),testid:void 0,children:r("WAWebFbtCommon")("Learn more")}),R=C===!0?u.jsx(o("WAWebEmojiText.react").EmojiText,{text:y,direction:"auto",inlineblock:!0}):u.jsx(o("WAWebName.react").Name,{contact:_}),L=function(){return p?s._(/*BTDS*/"Se reenviar\u00e1 este mensaje a WhatsApp. Esta IA no sabr\u00e1 que la reportaste o bloqueaste. {link to learn more}",[s._param("link to learn more",S)]):l.contact.isBusiness?s._(/*BTDS*/"Se reenviar\u00e1 este mensaje a WhatsApp. Esta empresa no sabr\u00e1 que la reportaste o bloqueaste. {link to learn more}",[s._param("link to learn more",S)]):o("WAWebChatGetters").getIsGroup(l)&&o("WAWebGroupHistoryUtils").shouldReportGroupHistoryBundleSender(a)?s._(/*BTDS*/"{name of the group history bundle sender} te envi\u00f3 este mensaje como parte del historial de mensajes. El mensaje se reenviar\u00e1 a WhatsApp. No se notificar\u00e1 a ning\u00fan participante del grupo sobre esto. {link to learn more}",[s._param("name of the group history bundle sender",R),s._param("link to learn more",S)]):o("WAWebChatGetters").getIsGroup(l)&&!o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(l)&&o("WAWebBlocklistUtils").isRBIForGroupsEnabled()?s._(/*BTDS*/"Se reenviar\u00e1 este mensaje a WhatsApp. No se notificar\u00e1 a nadie de este grupo. {link to learn more}",[s._param("link to learn more",S)]):s._(/*BTDS*/"Se reenviar\u00e1 este mensaje a WhatsApp. Esta persona no sabr\u00e1 que la reportaste o bloqueaste. {link to learn more}",[s._param("link to learn more",S)])};return u.jsx(o("WAWebReportPopupBase.react").ReportPopupBase,{hasAdditionalAction:!g,reportSubText:L(),additionalActionLabelText:o("WAWebReportPopupBase.react").getBlockLabelText(p,R),additionalActionSubText:o("WAWebReportPopupBase.react").getBlockSubText({isBizBot3p:p,isBusiness:l.contact.isBusiness,isGroup:o("WAWebChatGetters").getIsGroup(l),isCommunityAnnouncementGroup:o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(l)}),onSendReport:b,onSendReportAndAdditionalAction:v})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=o("WAWebMsgGetters").getGroupHistoryBundleMessageKey(e);if(o("WAWebGroupHistoryUtils").shouldReportGroupHistoryBundleSender(e)&&t!=null){var n=o("WAWebMsgCollection").MsgCollection.get(t);if(n)return o("WAWebFrontendMsgGetters").getSenderObj(n)}return o("WAWebFrontendMsgGetters").getSenderObj(e)}l.default=c}),226); __d("WAWebCommentRow.react",["fbt","WANullthrows","WAWebBox.react","WAWebChatCollection","WAWebChatGroupUtils","WAWebCiphertext.react","WAWebCommentAuthor.react","WAWebCommentBody.react","WAWebCommentSendFailIcon.react","WAWebCommentTimestamp.react","WAWebCommentToCommentMsgData","WAWebContactCollection","WAWebCopyToClipboard","WAWebDebugGatingUtils","WAWebDeleteRefreshedIcon.react","WAWebDeleteRevokeMsgFlow.react","WAWebDevOnlyBadge.react","WAWebDownContextIcon.react","WAWebDropdownItem.react","WAWebDropdownItemSeparator.react","WAWebFbtCommon","WAWebFlex.react","WAWebFlexItem.react","WAWebFormatRevokedMsg","WAWebGroupChatProfilePicture.react","WAWebModalManager","WAWebMsgCollection","WAWebMsgKeyUtils","WAWebMsgModel","WAWebMsgType","WAWebProcessBaseMsgInfo","WAWebReactionCellDetailThumb.react","WAWebRecalledIcon.react","WAWebReportMsgPopup.react","WAWebSpamConstants","WAWebSvgComponentBase","WAWebThumbsDownRefreshedIcon.react","WAWebUISpacing","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebUnstyledButton.react","WAWebWidFactory","react","useHoverState","useWAWebEventTargetValue","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useRef,p=c.useState,_={icon:{display:"x1rg5ohu",color:"x181wc8j",minWidth:"xnei2rj",marginInlineStart:"xe9ewy2",$$css:!0},placeholder:{fontStyle:"x1k4tb9n",color:"xhslqc4",$$css:!0},row:{position:"x1n2onr6",overflowWrap:"x1mzt3pk",$$css:!0},context:{position:"x10l6tqk",insetInlineEnd:"xdg88n9",left:null,right:null,$$css:!0},thumbnail:{position:"x10l6tqk",insetInlineEnd:"x1g9hn12",left:null,right:null,$$css:!0}};function f(e){var t=e.comment,n=e.isAlbumMsg,a=r("useHoverState")(),i=a.isHovered,l=a.onMouseEnter,u=a.onMouseLeave,c=o("useWAWebModelValues").useModelValues(t,["id","author","parentMsgKey","body","t","id","ack","read","subtype","revokeSender","links","linksIndexParsed","phoneNumbers","phoneNumbersIndexParsed","protocolMessageKey","isFailed","type","messageSecret"]),f=o("WAWebMsgCollection").MsgCollection.get(c.parentMsgKey),g=p(!1),h=g[0],y=g[1],C=m(null),b=r("WANullthrows")(o("WAWebChatCollection").ChatCollection.get(c.parentMsgKey.remote)),v=c.author;if(c.protocolMessageKey!=null){var S=o("WAWebMsgKeyUtils").msgKeyToTargetInfo(c.protocolMessageKey,o("WAWebMsgKeyUtils").TranslateMsgKeyType.Addon);S.author!=null&&(v=o("WAWebWidFactory").asUserWidOrThrow(S.author))}var R=r("WANullthrows")(o("WAWebContactCollection").ContactCollection.get(v)),L;if(h){var E=function(){var e=o("WAWebCommentToCommentMsgData").commentToCommentMsgData(c),t=new(o("WAWebMsgModel")).Msg(babelHelpers.extends({},o("WAWebProcessBaseMsgInfo").msgDataToBaseMsgInfo(e),{type:o("WAWebMsgType").MSG_TYPE.CHAT,body:c.body}));o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebReportMsgPopup.react"),{spamFlow:o("WAWebSpamConstants").SpamFlow.CommentActions,msg:t}))},k=function(){o("WAWebModalManager").ModalManager.open(d.jsx(r("WAWebDeleteRevokeMsgFlow.react"),{chat:b,msgList:[],commentList:[o("WAWebCommentToCommentMsgData").commentToCommentMsgData(c)]}))},I=[d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:k,icon:d.jsx(o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,{}),theme:o("WAWebDropdownItem.react").DropdownItemThemeType.Negative,children:s._(/*BTDS*/"Eliminar")},"delete")];c.id.fromMe||I.push(d.jsx(o("WAWebDropdownItem.react").DropdownItem,{testid:void 0,action:E,icon:d.jsx(o("WAWebThumbsDownRefreshedIcon.react").ThumbsDownRefreshedIcon,{}),children:s._(/*BTDS*/"Reportar")},"mi-report")),o("WAWebDebugGatingUtils").msgDebugMenuItemsEnabled()&&(I.push(d.jsx(r("WAWebDropdownItemSeparator.react"),{})),I.push(d.jsx(o("WAWebDropdownItem.react").DropdownItem,{addSpacing:!0,testid:void 0,action:function(){o("WAWebCopyToClipboard").copyTextToClipboard(c.id.toString())},children:d.jsx(o("WAWebDevOnlyBadge.react").DevOnlyBadge,{label:"Copy Msg ID"})},"copy-id")));var T={menu:I,anchor:C.current};L=d.jsx(o("WAWebUimUie.react").UIE,{displayName:"CommentContextMenu",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:function(){return y(!1)},children:d.jsx(r("WAWebUimUieMenu.react"),{contextMenu:T})})}var D=r("useWAWebEventTargetValue")(o("WAWebContactCollection").ContactCollection,["add","remove","change:name"],function(){return o("WAWebFormatRevokedMsg").formatRevokedComment(c)}),x=d.jsxs(o("WAWebFlex.react").FlexRow,{children:[d.jsx(r("WAWebFlexItem.react"),{xstyle:[_.icon,o("WAWebUISpacing").uiMargin.end5],children:d.jsx(o("WAWebRecalledIcon.react").RecalledIcon,{})}),d.jsx(r("WAWebFlexItem.react"),{xstyle:[_.placeholder,o("WAWebUISpacing").uiMargin.top2,o("WAWebUISpacing").uiMargin.bottom2],children:D})]}),$=function(){return c.subtype==="admin"||c.subtype==="sender"?x:c.body!=null?d.jsx(r("WAWebCommentBody.react"),{comment:c}):d.jsx(r("WAWebCiphertext.react"),{subtype:c.subtype!=null?c.subtype:""})};return d.jsxs(r("WAWebBox.react"),{flex:!0,xstyle:[o("WAWebUISpacing").uiMargin.bottom12,_.row],onMouseEnter:l,onMouseLeave:u,testid:void 0,children:[d.jsx(r("WAWebFlexItem.react"),{xstyle:[o("WAWebUISpacing").uiMargin.end12,o("WAWebUISpacing").uiMargin.top2],children:d.jsx(r("WAWebGroupChatProfilePicture.react"),{userContact:R,chatWid:b.id,usePicInBubbleLayout:!0,disableClick:!0})}),d.jsx(o("WAWebFlex.react").FlexRow,{children:d.jsxs(o("WAWebFlex.react").FlexColumn,{className:"x1h4wwuj",grow:1,children:[d.jsxs(o("WAWebFlex.react").FlexRow,{children:[d.jsx(r("WAWebFlexItem.react"),{xstyle:o("WAWebUISpacing").uiMargin.end8,children:d.jsx(r("WAWebCommentAuthor.react"),{chat:b,contact:R})}),d.jsx(r("WAWebFlexItem.react"),{children:d.jsx(r("WAWebCommentTimestamp.react"),{t:c.t})})]}),$()]})}),d.jsx(r("WAWebCommentSendFailIcon.react"),{comment:c}),d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:_.thumbnail,children:f&&n&&d.jsx(o("WAWebReactionCellDetailThumb.react").ReactionCellDetailThumb,{msg:f,onCloseDetailsPane:o("WAWebModalManager").closeModalManager,reactionText:"",showReactionText:!1})}),o("WAWebChatGroupUtils").isDeactivatedCommunityAnnouncementGroup(b)?null:d.jsx(r("WAWebFlexItem.react"),{xstyle:[o("WAWebUISpacing").uiMargin.start12,o("WAWebUISpacing").uiMargin.end3,o("WAWebUISpacing").uiMargin.top2,_.context],children:i||L!=null?d.jsxs(r("WAWebUnstyledButton.react"),{"aria-label":r("WAWebFbtCommon")("Context menu"),ref:C,onClick:function(){return y(!0)},children:[d.jsx(o("WAWebDownContextIcon.react").DownContextIcon,{DEPRECATED_color:o("WAWebSvgComponentBase").DEPRECATED_SvgColorProp.SECONDARY}),L]}):null})]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebKeyboardListHotKeys.react",["WALogger","WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebUim","WAWebUimUie.react","WAWebUseIsKeyboardUser","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useEffect,p=c.useRef,_="focusable-list-item";function f(t){var a=t["aria-label"],i=t.children,l=t.className,s=t.dataTab,u=t.getPriorityFocusItem,c=t.handlers,f=t.onBeforeEnd,y=t.role,C=t.tabIndex,b=C===void 0?0:C,v=r("WAWebUseIsKeyboardUser")(),S=v.isKeyboardUser,R=p(null),L=p(null),E=p(null),k=p(!1),I=p(!1),T=p(!1),D=function(){return R.current?Array.from(R.current.getElementsByClassName(_)):[]},x=function(t){var e=u==null?void 0:u();e&&e===t&&(T.current=!0),r("WAWebFocusTracer").focus(t,{preventScroll:!1})},$=function(n){var t=D();if(t.length!==0){var r;if(E.current){var a=t.indexOf(E.current);a!==-1&&(a+n<0?r=t[0]:r=t[a+n])}r||(r=t[t.length-1]);var i=r;g(i)||(o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Focusable list items should have `tabIndex` attribute (that makes it programmatically focusable), but this element did not have it:"],["Focusable list items should have \\`tabIndex\\` attribute (that makes it programmatically focusable), but this element did not have it:"]))),h(i)),x(i)}},P=function(){var e=D();return e.length>0?e[e.length-1]:null},N=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){f&&(yield f());var e=P(),t=u==null?void 0:u();t&&!T.current?x(t):e&&x(e)});return function(){return e.apply(this,arguments)}})(),M=function(t){t.preventDefault(),$(-1)},w=function(t){t.preventDefault(),$(1)},A=function(t){t.preventDefault(),N()},F=function(){$(0)},O=function(n){n.setAttribute("tabIndex","0"),t.removeTabIndexFocusInside===!0&&n.addEventListener("focusin",function(e){e.target!==n&&n.setAttribute("tabIndex","-1")}),E.current&&E.current!==n&&E.current.setAttribute("tabIndex","-1"),E.current=n},B=function(t){var e=t.target;if(R.current===e){var n;if(S){var r=u==null?void 0:u();!I.current&&r?x(r):F()}(n=L.current)==null||n.activate()}else e instanceof HTMLElement&&e.classList.contains(_)&&O(e);k.current=!0,I.current=!0},W=function(t){k.current=!1},q=function(){R.current&&!R.current.contains(document.activeElement)&&r("WAWebFocusTracer").focus(R.current)};m(function(){T.current=!1,k.current&&E.current&&R.current&&!R.current.contains(E.current)&&r("WAWebFocusTracer").focus(R.current)},void 0);var U=babelHelpers.extends({},c,{up:M,down:w,end:A,"command+down":A});return d.jsx(o("WAWebUimUie.react").UIE,{displayName:"ListHotKeys",ref:L,uimState:o("WAWebUim").UIMState.PASSIVE,requestFocus:S?null:q,children:d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{tabIndex:b,handlers:U,className:l,"data-tab":s,onFocus:B,onBlur:W,ref:R,role:y,"aria-label":a,children:i})})}f.displayName=f.name+" [from "+i.id+"]";function g(e){return e.hasAttribute("tabIndex")}function h(e){e.setAttribute("tabIndex","-1")}l.LIST_FOCUSABLE_ITEM_CLASS_NAME=_,l.ListHotKeys=f}),98); __d("WAWebWrapperSystemBubble.react",["cx","WAWebClassnames","WAWebKeyboardListHotKeys.react","react","stylex"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d=u||(u=r("react")),m={msg:{display:"x78zum5",flexDirection:"xdt5ytf",paddingInlineEnd:"x141l45o",paddingInlineStart:"x1h3r9g6",userSelect:"x1hx0egp",$$css:!0},msgSystem:{display:"x78zum5",flexDirection:"x1q0g3np",justifyContent:"xl56j7k",$$css:!0},sticky:{paddingTop:"xexx8yu",paddingInlineEnd:"xyri2b",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",$$css:!0},center:{height:"x5yr21d",alignItems:"x6s0dn4",$$css:!0},msgBottomPadding:{paddingBottom:"xscbp6u",$$css:!0},groupHistoryBackground:{position:"x1n2onr6","::before_content":"x1cpjm7i","::before_position":"x1hmns74","::before_top":"x1y3wzot","::before_bottom":"xhq5o37","::before_insetInlineStart":"xfbisj7","::before_left":null,"::before_right":null,"::before_transform":"xnyzbwf","::before_width":"xkeh78v","::before_backgroundColor":"x12lcmce","::before_zIndex":"xy5mcqj",$$css:!0}};function p(t){var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=null;return i.theme==="center"?l=m.center:i.theme==="sticky"&&(l=m.sticky),d.jsx("div",{"data-testid":void 0,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((n={},n[o("WAWebKeyboardListHotKeys.react").LIST_FOCUSABLE_ITEM_CLASS_NAME]=i.isFocusable,n),(c||(c=r("stylex")))(m.msg,m.msgSystem,m.msgBottomPadding,l,i.groupHistoryBackground===!0&&m.groupHistoryBackground,i.xstyle)),tabIndex:-1,ref:a,children:d.jsx("div",babelHelpers.extends({className:o("WAWebClassnames").classnamesConvertMeToStylexPlease("_amk4")},{0:{className:"x1n2onr6 x9f619 x1rg5ohu x1okw0bk x193iq5w x1tiyuxx x1nbhmlj x1iw51ew xde1mab xhslqc4 x2b8uid x1k43qru xrxyp3c xv0oops x1isl5vh xn8zj9a x148chh3"},2:{className:"x1n2onr6 x9f619 x1rg5ohu x1okw0bk x193iq5w x1tiyuxx x1nbhmlj x1iw51ew xde1mab xhslqc4 x2b8uid x1k43qru xrxyp3c xv0oops x1isl5vh xn8zj9a x148chh3 xlshs6z"},1:{className:"x1n2onr6 x9f619 x1rg5ohu x1okw0bk x193iq5w xhslqc4 x2b8uid x1k43qru xrxyp3c xv0oops x1isl5vh xn8zj9a x148chh3 x889kno x2vl965 x1a8lsjc xe2zdcy"},3:{className:"x1n2onr6 x9f619 x1rg5ohu x1okw0bk x193iq5w xhslqc4 x2b8uid x1k43qru xrxyp3c xv0oops x1isl5vh xn8zj9a x148chh3 xlshs6z x889kno x2vl965 x1a8lsjc xe2zdcy"}}[(i.hidden===!0)<<1|(i.theme==="center")<<0],{children:i.children}))})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebMessageDateMarker.react",["WALogger","WAWeb-moment","WAWebClock","WAWebCmd","WAWebWrapperSystemBubble.react","WDSText.react","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u=["ref"],c,d,m=d||(d=o("react")),p=c||(c=r("react")),_=m.useImperativeHandle,f=m.useMemo,g=m.useRef,h=m.useState;function y(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,u),i=a.isFocusable,l=a.isGroupHistoryMessage,c=a.timestamp;function d(){try{return o("WAWebClock").Clock.relativeDateStr(c)}catch(t){return o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Clock.relativeDateStr(",")"])),c),o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["Clock.relativeDateStr failed: ",""])),t).sendLogs("relative-date-str-error",{sampling:.001}),""}}var m=h(d()),y=m[0],C=m[1],b=g(null),v=h(!1),S=v[0],R=v[1],L=f(function(){return c>=r("WAWeb-moment")().startOf("day").subtract(7,"day").unix()},[c]);function E(){C(d())}o("useWAWebListener").useListener(L?o("WAWebCmd").Cmd:null,"midnight",E);var k=function(){return c},I=function(){S&&R(!1)},T=function(){S||R(!0)},D=function(){return b.current};return _(n,function(){return{getTimestamp:k,show:I,hide:T,getElement:D}}),S?null:p.jsx(r("WAWebWrapperSystemBubble.react"),{ref:b,hidden:S,isFocusable:i,groupHistoryBackground:l===!0,children:p.jsx(r("WDSText.react"),{type:"Body3Emphasized",colorName:"contentDeemphasized",dir:"auto",children:y.toString()})})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),98); __d("WAWebMessageListDayOfMsg",["WAWeb-moment","WAWebClock"],(function(t,n,r,o,a,i,l){function e(e){var t=e.startOfDaySkew;return t!==void 0&&t>o("WAWebClock").Clock.skew-30&&t0?m.jsxs("div",{className:"x3d5gib x14aock7 x1rife3k",ref:d,children:[g(c,a.length)?m.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:[o("WAWebUISpacing").uiPadding.vert16,o("WAWebUISpacing").uiPadding.horiz24,f.pillContainer],children:m.jsx(r("WAWebFlexItem.react"),{xstyle:[o("WAWebUISpacing").uiPadding.vert6,o("WAWebUISpacing").uiPadding.horiz10,f.pill],children:y})}):null,m.jsx(o("WAWebFlex.react").FlexColumn,{className:(u||(u=r("stylex")))(o("WAWebUISpacing").uiPadding.vert8,o("WAWebUISpacing").uiPadding.horiz16,f.content),align:"stretch",children:m.jsx(r("WAWebCommentList.react"),{comments:a,isAlbumMsg:o("WAWebCommentFrontendUtils").isAlbumMessageContainer(t)})})]}):m.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(f.emptyState,o("WAWebUISpacing").uiPadding.horiz24),{children:[m.jsx("div",{className:"x2b8uid x1w7chpp x1jchvi3 xk50ysn",children:s._(/*BTDS*/"Todav\u00eda no hay respuestas")}),m.jsx("div",{className:"x2b8uid xhslqc4 x1f6kntn xo1l8bm",children:s._(/*BTDS*/"Comparte lo que piensas")})]})),!o("WAWebChatGroupUtils").isDeactivatedCommunityAnnouncementGroup(i)&&!o("WAWebChatGroupUtils").isSuspendedCommunityAnnouncementGroup(i)&&t!=null&&t.length===1?m.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:[f.footer,o("WAWebUISpacing").uiPadding.top8],children:m.jsx(r("WAWebCommentComposeBox.react"),{parent:n})}):null]})})})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebAddOnBubblesContainerConditions",["WAWebAddOnBubbleType","WAWebDisplayType","WAWebMsgActionCapability","WAWebMsgKey","WAWebNewsletterGatingUtils","useWAWebCommentMessages"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=o("useWAWebCommentMessages").useHydrateAndAggregateComments([r("WAWebMsgKey").from(e[0])]);return t.length>0}function s(e,t){return e===0||!t}function u(e,t,n){return t===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER&&n!==o("WAWebAddOnBubbleType").AddOnBubbleType.MEDIA_VIEWER&&e!=null&&o("WAWebMsgActionCapability").canForwardMsg(e)&&o("WAWebNewsletterGatingUtils").isNewsletterQuickForwardingEnabled()}l.useHasCommentsBubble=e,l.hasHiddenSenderReactions=s,l.getHasForwardBubble=u}),98); __d("WAWebReplyRefreshedIcon.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="reply-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M6.8249 12L9.7249 14.9C9.9249 15.1 10.0207 15.3334 10.0124 15.6C10.0041 15.8667 9.8999 16.1 9.6999 16.3C9.4999 16.4834 9.26657 16.5792 8.9999 16.5875C8.73324 16.5959 8.4999 16.5 8.2999 16.3L3.6999 11.7C3.4999 11.5 3.3999 11.2667 3.3999 11C3.3999 10.7334 3.4999 10.5 3.6999 10.3L8.2999 5.70005C8.48324 5.51672 8.7124 5.42505 8.9874 5.42505C9.2624 5.42505 9.4999 5.51672 9.6999 5.70005C9.8999 5.90005 9.9999 6.13755 9.9999 6.41255C9.9999 6.68755 9.8999 6.92505 9.6999 7.12505L6.8249 10H15.9999C17.3832 10 18.5624 10.4875 19.5374 11.4625C20.5124 12.4375 20.9999 13.6167 20.9999 15V18C20.9999 18.2834 20.9041 18.5209 20.7124 18.7125C20.5207 18.9042 20.2832 19 19.9999 19C19.7166 19 19.4791 18.9042 19.2874 18.7125C19.0957 18.5209 18.9999 18.2834 18.9999 18V15C18.9999 14.1667 18.7082 13.4584 18.1249 12.875C17.5416 12.2917 16.8332 12 15.9999 12H6.8249Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ReplyRefreshedIcon=m}),98); __d("WAWebCommentsBubbleContainer.react",["fbt","WAWebAddOnBubble.react","WAWebAddOnBubblesContainerConditions","WAWebCmd","WAWebCommentFrontendUtils","WAWebCommentsModal.react","WAWebFlexBox.react","WAWebModalManager","WAWebMsgCollection","WAWebReplyRefreshedIcon.react","WAWebStateUtils","WAWebUISpacing","react","useWAWebCommentReplyCount"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={container:{fontSize:"x1f6kntn",color:"xhslqc4",$$css:!0}};function d(e){var t=[];for(var n of e){var r=o("WAWebMsgCollection").MsgCollection.get(n);r!=null&&t.push(r)}return t}function m(e){var t=e.msgIds,n=o("WAWebAddOnBubblesContainerConditions").useHasCommentsBubble(t),a=d(t),i=o("useWAWebCommentReplyCount").useWAWebCommentReplyCount(a);if(!n)return null;var l=function(){var e=[];for(var n of t){var a=o("WAWebMsgCollection").MsgCollection.get(n);a&&e.push(a)}o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebCommentsModal.react"),{parentMsgs:e}))},m=function(){return o("WAWebCommentFrontendUtils").isAlbumMessageContainer(a)?o("WAWebCmd").Cmd.openMediaViewerForAlbumMedia(o("WAWebStateUtils").unproxy(a[0])):l()},p=u.jsx(o("WAWebReplyRefreshedIcon.react").ReplyRefreshedIcon,{width:20,height:20,displayInline:!0,directional:!0});return u.jsx("button",{onClick:m,children:u.jsx(r("WAWebAddOnBubble.react"),{children:u.jsxs(o("WAWebFlexBox.react").FlexRow,{xstyle:[c.container,o("WAWebUISpacing").uiPadding.start1,o("WAWebUISpacing").uiPadding.end3],align:"center",columnGap:2,justify:"center",children:[p,s._(/*BTDS*/"_j{\"*\":\"{count} respuestas\",\"_1\":\"1 respuesta\"}",[s._plural(i,"count")])]})})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebKeepWarningIcon.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="keep-warning";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=60,R=60;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 60 60",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M42.5 7.5H17.5C14.75 7.5 12.525 9.75 12.525 12.5L12.5 52.5L30 45L47.5 52.5V12.5C47.5 9.75 45.25 7.5 42.5 7.5Z",fill:"white"}),c.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.0211 12.501C28.2835 12.501 26.875 13.9095 26.875 15.647V26.8549C26.875 28.5924 28.2835 30.001 30.0211 30.001C31.7586 30.001 33.1671 28.5924 33.1671 26.8549V15.647C33.1671 13.9095 31.7586 12.501 30.0211 12.501ZM33.125 35.001H26.875V41.251H33.125V35.001Z",fill:"#00A884"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.KeepWarningIcon=m}),98); __d("WAWebKeepInChatWarningCannotKeepSenderSuperpower",["fbt","WAWebConfirmPopup.react","WAWebEphemeralKeepInChatWamUtils","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebKeepWarningIcon.react","WAWebModal.react","WAWebModalManager","WAWebProtobufsE2E.pb","WAWebWamEnumKicErrorCodeType","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect,m={icon:{textAlign:"x2b8uid",marginTop:"x98l61r",marginInlineEnd:"xviac27",marginBottom:"x1ua1l7f",marginInlineStart:"xlese2p",$$css:!0}},p=function(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getEphemeralFaqUrl()),o("WAWebModalManager").ModalManager.close()},_=function(){o("WAWebModalManager").ModalManager.close()};function f(e){var t=e.message;d(function(){var e=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(t,o("WAWebProtobufsE2E.pb").KeepType.KEEP_FOR_ALL);e.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.SENDER_DISABLED}),e.commit()},[]);var n=c.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",className:"xjkh2o x2b8uid",children:c.jsx(o("WAWebKeepWarningIcon.react").KeepWarningIcon,{xstyle:m.icon})}),r=c.jsx("div",{className:"xk50ysn x1603h9y x1u7k74 xcytdqz",children:s._(/*BTDS*/"No se puede conservar el mensaje")});return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:_,onCancel:p,cancelText:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),type:o("WAWebModal.react").ModalTheme.Flex,children:c.jsxs("div",{className:"x9f619 x1l2rt3b",children:[n,c.jsxs("div",{className:"x1sgpng xpwdb9g x10tge7n xefazk8",children:[r,s._(/*BTDS*/"Nadie puede volver a conservar este mensaje en el chat porque su autor dej\u00f3 de hacerlo.")]})]})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebKeepInChatWarningKeepExpiredModal",["fbt","WAWebConfirmPopup.react","WAWebEphemeralKeepInChatWamUtils","WAWebModalManager","WAWebProtobufsE2E.pb","WAWebWamEnumKicErrorCodeType","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect,m=function(){o("WAWebModalManager").ModalManager.close()};function p(e){var t=e.expiredMessage;return d(function(){var e=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(t,o("WAWebProtobufsE2E.pb").KeepType.KEEP_FOR_ALL);e.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.MESSAGE_EXPIRED}),e.commit()},[]),c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onCancel:m,children:s._(/*BTDS*/"No se puede conservar este mensaje porque ya venci\u00f3 su duraci\u00f3n.")})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebKeepInChatWarningKeepOfflineModal",["fbt","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c=function(){o("WAWebModalManager").ModalManager.closeSupportOrModal()};function d(){return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,onOK:c,children:s._(/*BTDS*/"No puedes actualizar un mensaje mientras est\u00e9s sin conexi\u00f3n a Internet. Revisa tu conexi\u00f3n y vuelve a intentarlo.")})}d.displayName=d.name+" [from "+i.id+"]",l.WarningKeepOfflineModal=d}),226); __d("WAWebKeepInChatWarningKicExitedModal",["fbt","WAWebConfirmPopup.react","WAWebEphemeralKeepInChatWamUtils","WAWebExternalLink.react","WAWebFaqUrl","WAWebModalManager","WAWebProtobufsE2E.pb","WAWebWamEnumKicErrorCodeType","react","vulture"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect;function m(e){var t=e.content,n=e.onClose,r=function(){o("WAWebExternalLink.react").openExternalLink(o("WAWebFaqUrl").getEphemeralFaqUrl()),n!=null&&n(),o("WAWebModalManager").ModalManager.closeSupportOrModal()},a=function(){n!=null&&n(),o("WAWebModalManager").ModalManager.closeSupportOrModal()};return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:a,cancelText:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),onCancel:r,children:t})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.action,n=e.message,a=e.onClose;r("vulture")("Y0_emdLQ_q0SF2riG9YUwwm06aY="),d(function(){var e=t==="keep"?o("WAWebProtobufsE2E.pb").KeepType.KEEP_FOR_ALL:o("WAWebProtobufsE2E.pb").KeepType.UNDO_KEEP_FOR_ALL,r=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(n,e);r.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.NOT_PART_OF_THE_GROUP}),r.commit()},[]);var i=null;return t==="keep"?i=s._(/*BTDS*/"No puedes conservar este mensaje porque abandonaste el chat."):i=s._(/*BTDS*/"No puedes dejar de conservar este mensaje porque abandonaste el chat."),c.jsx(m,{content:i,onClose:a})}p.displayName=p.name+" [from "+i.id+"]";function _(e){var t=e.action,n=e.message,r=e.onClose;d(function(){var e=t==="keep"?o("WAWebProtobufsE2E.pb").KeepType.KEEP_FOR_ALL:o("WAWebProtobufsE2E.pb").KeepType.UNDO_KEEP_FOR_ALL,r=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(n,e);r.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.MESSAGE_FROM_EX_MEMBER}),r.commit()},[]);var a=null;return t==="keep"?a=s._(/*BTDS*/"No se puede conservar este mensaje porque su autor abandon\u00f3 el chat."):a=s._(/*BTDS*/"No se puede dejar de conservar este mensaje porque su autor abandon\u00f3 el chat."),c.jsx(m,{content:a,onClose:r})}_.displayName=_.name+" [from "+i.id+"]",l.WarningKICMeUserExitedModal=p,l.WarningKICSenderExitedModal=_}),226); __d("WAWebKeepInChatWarningUnkeepExpiredModal",["fbt","WAWebConfirmPopup.react","WAWebEphemeralKeepInChatWamUtils","WAWebModalManager","WAWebProtobufsE2E.pb","WAWebWamEnumKicErrorCodeType","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect;function m(e){var t=e.expiredMessage,n=e.onCancel,r=e.onConfirm,a=function(){r(),o("WAWebModalManager").ModalManager.closeSupportOrModal()},i=function(){n(),o("WAWebModalManager").ModalManager.closeSupportOrModal()},l=c.jsx("div",{className:"x1603h9y x1u7k74 x14ug900",children:s._(/*BTDS*/"Este mensaje desaparecer\u00e1 del chat")});return d(function(){var e=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(t,o("WAWebProtobufsE2E.pb").KeepType.UNDO_KEEP_FOR_ALL);e.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.MESSAGE_EXPIRED}),e.commit()},[]),c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:l,onOK:a,onCancel:i,okText:s._(/*BTDS*/"OK"),okButtonType:"secondary",children:c.jsx("div",{className:"x1jchvi3 x1xet1wb x14ug900",children:s._(/*BTDS*/"Este mensaje desaparecer\u00e1 del chat porque ya venci\u00f3 su duraci\u00f3n.")})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebKeepInChatWarningUnkeepLimitExpiredModal",["fbt","WAWebConfirmPopup.react","WAWebEphemeralKeepInChatWamUtils","WAWebModalManager","WAWebProtobufsE2E.pb","WAWebWamEnumKicErrorCodeType","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useEffect;function m(e){var t=e.expiredMessage,n=e.onConfirm,r=e.onDeleteForMe;d(function(){var e=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(t,o("WAWebProtobufsE2E.pb").KeepType.UNDO_KEEP_FOR_ALL);e.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.KEPT_BEYOND_EXPIRY}),e.commit()},[]);var a=function(){n==null||n(),o("WAWebModalManager").ModalManager.closeSupportOrModal()},i=function(){r(),o("WAWebModalManager").ModalManager.closeSupportOrModal()};return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:a,onCancel:i,cancelText:s._(/*BTDS*/"Eliminar para m\u00ed"),children:s._(/*BTDS*/"No se puede quitar este mensaje del chat porque ya venci\u00f3 su duraci\u00f3n.")})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebKeepInChatWarningUnkeepOwnMsgModal",["fbt","WAWebConfirmPopup.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.onCancel,n=e.onConfirm,r=function(){n(),o("WAWebModalManager").ModalManager.closeSupportOrModal()},a=function(){t==null||t(),o("WAWebModalManager").ModalManager.closeSupportOrModal()};return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:r,onCancel:a,children:s._(/*BTDS*/"Este es tu mensaje. Si decides dejar de conservarlo, nadie m\u00e1s podr\u00e1 volver a hacerlo.")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebKeepInChatActions",["$InternalEnum","Promise","WACustomError","WALogger","WAWebChatGetters","WAWebCmd","WAWebEphemeralKeepInChatWamUtils","WAWebFrontendMsgGetters","WAWebKeepInChatMsgAction","WAWebKeepInChatWarningCannotKeepSenderSuperpower","WAWebKeepInChatWarningKeepExpiredModal","WAWebKeepInChatWarningKeepOfflineModal","WAWebKeepInChatWarningKicExitedModal","WAWebKeepInChatWarningUnkeepExpiredModal","WAWebKeepInChatWarningUnkeepLimitExpiredModal","WAWebKeepInChatWarningUnkeepOwnMsgModal","WAWebKicNux.react","WAWebModalManager","WAWebMsgGetters","WAWebMsgModelPropUtils","WAWebNetworkStatus","WAWebProtobufsE2E.pb","WAWebWamEnumKicErrorCodeType","WAWebWamEnumTriggerType","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s,u,c,d=c||(c=r("react")),m=n("$InternalEnum")({EXPIRED:"msg_is_expired",CANCELLED:"user_cancelled_operation",EMPTY:"no_applicable_messages",EXITED_SENDER:"exited_sender",EXITED_ME_USER:"exited_me_user",SENDER_SUPERPOWER:"sender_superpower"}),p=(function(e){function t(t){var n;return n=e.call(this,t)||this,n.name="KeepProcessError",n.reason=t,n}return babelHelpers.inheritsLoose(t,e),t})(o("WACustomError").CustomError);function _(e,t,n){return y([e],t,n)}function f(e,t,n){return S([e],t,n)}function g(e,t,n){return h.apply(this,arguments)}function h(){return h=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,a){var i=a===!0?function(e){return o("WAWebModalManager").ModalManager.openSupportModal(e)}:function(e){return o("WAWebModalManager").ModalManager.open(e)},l=e.find(function(e){return o("WAWebChatGetters").getIsGroup(o("WAWebFrontendMsgGetters").getChat(e))&&!o("WAWebMsgModelPropUtils").iAmGroupParticipant(e)});if(l!=null)return i(d.jsx(o("WAWebKeepInChatWarningKicExitedModal").WarningKICMeUserExitedModal,{action:"keep",message:l})),(u||(u=n("Promise"))).reject(new p(m.EXITED_ME_USER));var s=yield L(e);if(s!=null)return i(d.jsx(o("WAWebKeepInChatWarningKicExitedModal").WarningKICSenderExitedModal,{action:"keep",message:s})),(u||(u=n("Promise"))).reject(new p(m.EXITED_SENDER));var c=e.find(function(e){return e.isExpired()});if(c)return i(d.jsx(r("WAWebKeepInChatWarningKeepExpiredModal"),{expiredMessage:c})),(u||(u=n("Promise"))).reject(new p(m.EXPIRED));var _=e.map(function(e){return e.keepIsLockedForMeSenderSuperpower()}),f=_.some(function(e){return e});if(f){var g=_.findIndex(function(e){return e});return i(d.jsx(r("WAWebKeepInChatWarningCannotKeepSenderSuperpower"),{message:e[g]})),(u||(u=n("Promise"))).reject(new p(m.SENDER_SUPERPOWER))}yield(u||(u=n("Promise"))).all(e.map(function(e){return o("WAWebKeepInChatMsgAction").keepMessage(e,t)}))}),h.apply(this,arguments)}function y(e,t,n){return C.apply(this,arguments)}function C(){return C=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var a=o("WAWebFrontendMsgGetters").getChat(e[0]),i=n===!0?function(e){return o("WAWebModalManager").ModalManager.openSupportModal(e)}:function(e){return o("WAWebModalManager").ModalManager.open(e)};if(o("WAWebKicNux.react").shouldShowKicNux(a)&&(yield o("WAWebKicNux.react").openKicNux(a,o("WAWebWamEnumTriggerType").TRIGGER_TYPE.KEEP_MESSAGE_FIRST_TIME)),!r("WAWebNetworkStatus").online)return k(e[0],o("WAWebProtobufsE2E.pb").KeepType.KEEP_FOR_ALL),i(d.jsx(o("WAWebKeepInChatWarningKeepOfflineModal").WarningKeepOfflineModal,{}));var l=e.filter(function(e){return!o("WAWebMsgGetters").getIsKept(e)&&e.canShowKeepOption()});if(!l.length)throw new p(m.EMPTY);yield g(l,t,n)}),C.apply(this,arguments)}function b(e,t,n){return v.apply(this,arguments)}function v(){return v=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,r){yield(u||(u=n("Promise"))).all(e.map(function(e){return o("WAWebKeepInChatMsgAction").undoKeepMessage(e,t,r)}))}),v.apply(this,arguments)}function S(e,t,n){return R.apply(this,arguments)}function R(){return R=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,a,i){var l=o("WAWebFrontendMsgGetters").getChat(t[0]),c=i===!0?function(e){return o("WAWebModalManager").ModalManager.openSupportModal(e)}:function(e){return o("WAWebModalManager").ModalManager.open(e)};if(o("WAWebKicNux.react").shouldShowKicNux(l)&&(yield o("WAWebKicNux.react").openKicNux(l,o("WAWebWamEnumTriggerType").TRIGGER_TYPE.KEEP_MESSAGE_FIRST_TIME)),!r("WAWebNetworkStatus").online)return k(t[0],o("WAWebProtobufsE2E.pb").KeepType.UNDO_KEEP_FOR_ALL),c(d.jsx(o("WAWebKeepInChatWarningKeepOfflineModal").WarningKeepOfflineModal,{}));var _=t.find(function(e){return e.isExpired()}),f=t.some(function(e){return o("WAWebMsgGetters").getIsSentByMe(e)}),g=t.some(function(e){return e.isPastUnkeepExpirationLimit()}),h=t.find(function(e){return o("WAWebChatGetters").getIsGroup(o("WAWebFrontendMsgGetters").getChat(e))&&!o("WAWebMsgModelPropUtils").iAmGroupParticipant(e)}),y=yield L(t);return new(u||(u=n("Promise")))(function(n,i){var l=function(){n(b(t,{deleteExpired:!0},a))},u=function(){var n=t[0];if(!n){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Attempting to DFM an empty array of messages"]))).sendLogs("unkeep-DFM-empty-array");return}var r=t.every(function(e){return o("WAWebFrontendMsgGetters").getChat(e)===o("WAWebFrontendMsgGetters").getChat(n)});if(!r){o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["Attempting to DFM an array of messages with mismatched chats"]))).sendLogs("unkeep-DFM-chat-mismatch");return}o("WAWebCmd").Cmd.sendDeleteMsgs(o("WAWebFrontendMsgGetters").getChat(n),{type:"message",list:t},!1,null,null)};if(h!=null)c(d.jsx(o("WAWebKeepInChatWarningKicExitedModal").WarningKICMeUserExitedModal,{action:"unkeep",onClose:function(){return i(new p(m.EXITED_ME_USER))},message:h}));else if(y!=null)c(d.jsx(o("WAWebKeepInChatWarningKicExitedModal").WarningKICSenderExitedModal,{action:"unkeep",onClose:function(){return i(new p(m.EXITED_SENDER))},message:y}));else if(_)c(g?d.jsx(r("WAWebKeepInChatWarningUnkeepLimitExpiredModal"),{onDeleteForMe:u,expiredMessage:_}):d.jsx(r("WAWebKeepInChatWarningUnkeepExpiredModal"),{onConfirm:l,onCancel:function(){return i(new p(m.CANCELLED))},expiredMessage:_}));else if(f)c(d.jsx(r("WAWebKeepInChatWarningUnkeepOwnMsgModal"),{onConfirm:l,onCancel:function(){return i(new p(m.CANCELLED))}}));else return l()})}),R.apply(this,arguments)}function L(e){return E.apply(this,arguments)}function E(){return E=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=yield(u||(u=n("Promise"))).all(e.map((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(!o("WAWebChatGetters").getIsGroup(o("WAWebFrontendMsgGetters").getChat(e)))return null;var t=yield e.senderIsGroupParticipant();return t?null:e});return function(t){return e.apply(this,arguments)}})()));return t.find(function(e){return e!=null})}),E.apply(this,arguments)}function k(e,t){var n=o("WAWebEphemeralKeepInChatWamUtils").getBaseErrorLog(e,t);n.set({kicErrorCode:o("WAWebWamEnumKicErrorCodeType").KIC_ERROR_CODE_TYPE.OFFLINE}),n.commit()}l.KeepProcessErrorReason=m,l.KeepProcessError=p,l.runKeepInChatUX=_,l.runUndoKeepInChatUX=f,l.runBulkKeepInChatUX=y,l.runBulkUndoKeepInChatUX=S}),98); __d("WAWebWamEnumMessageContextMenuActionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({OPEN:1,CLICK:2,COMPLETE:3,CANCEL:4});i.MESSAGE_CONTEXT_MENU_ACTION_TYPE=e}),66); __d("WAWebWamEnumMessageContextMenuOptionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({UNKNOWN:1,OVERFLOW:2,FORWARD:3,DELETE:4,REPLY:5,REPLY_PRIVATELY:6,STAR_OR_UNSTAR:7,COPY:8,REPORT:9,MESSAGE_CONTACT:10,MESSAGE_INFO:11,EDIT:12,FORWARD_SELECT_MESSAGES:13,DELETE_SELECT_MESSAGES:14,SELECT:15,ADD_TO_CALENDAR:16});i.MESSAGE_CONTEXT_MENU_OPTION_TYPE=e}),66); __d("WAWebMessageContextMenuActionsWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumMessageContextMenuActionType","WAWebWamEnumMessageContextMenuOptionType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({MessageContextMenuActions:[3694,{isAGroup:[1,e.TYPES.BOOLEAN],isMultiAction:[2,e.TYPES.BOOLEAN],isOriginalSender:[3,e.TYPES.BOOLEAN],messageContextMenuAction:[4,o("WAWebWamEnumMessageContextMenuActionType").MESSAGE_CONTEXT_MENU_ACTION_TYPE],messageContextMenuOption:[5,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE]},[1,1,1],"regular"]},{MessageContextMenuActions:[]});l.MessageContextMenuActionsWamEvent=s}),98); __d("WAWebMultiSelectUtils",["WAWebChatGetters","WAWebFrontendMsgGetters","WAWebMessageContextMenuActionsWamEvent","WAWebWamEnumMessageContextMenuActionType"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){e.length!==0&&new(o("WAWebMessageContextMenuActionsWamEvent")).MessageContextMenuActionsWamEvent({isAGroup:o("WAWebChatGetters").getIsGroup(o("WAWebFrontendMsgGetters").getChat(e[0])),isMultiAction:e.length>1,messageContextMenuAction:o("WAWebWamEnumMessageContextMenuActionType").MESSAGE_CONTEXT_MENU_ACTION_TYPE.CLICK,messageContextMenuOption:t}).commit()}l.logMessageActionClickMetric=e}),98); __d("WAWebReplyToMsgChatAction",["WANullthrows","WATimeUtils","WAWebBizGatingUtils","WAWebChatEntryPoint","WAWebChatGroupUtils","WAWebChatThreadLogging","WAWebCmd","WAWebComposeBoxActions","WAWebFindChatAction","WAWebFrontendMsgGetters","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=r("WANullthrows")(e.author),n=o("WAWebChatGroupUtils").getOneToOneContactFromGroupContact(t,"private_reply");if(n!=null){var a=yield o("WAWebFindChatAction").findOrCreateLatestChat(n,"privateReplyToMsg"),i=a.chat,l=yield o("WAWebCmd").Cmd.openChatBottom({chat:i,chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.PrivateReply});l&&(o("WAWebBizGatingUtils").btmThreadsLoggingEnabled()&&o("WAWebComposeBoxActions").ComposeBoxActions.addMsgSendingLogAttributes(i,{handleMultiple:function(){o("WAWebChatThreadLogging").handleActivitiesForChatThreadLogging([{activityType:"groupPrivateReplies",ts:o("WATimeUtils").unixTime(),chatId:i.id}])}}),i.composeQuotedMsg=e,o("WAWebFrontendMsgGetters").getChat(e)&&(i.composeQuotedMsgRemoteJid=o("WAWebFrontendMsgGetters").getChat(e).id))}}),s.apply(this,arguments)}l.default=e}),98); __d("WAWebMediaHubMessageActionHandlers",["fbt","Promise","WALogger","WAWebActionToast.react","WAWebChatMessageSearch","WAWebCmd","WAWebComposeBoxActions","WAWebEnvironment","WAWebFileSaver","WAWebFrontendMsgGetters","WAWebKeepInChatActions","WAWebMessageHandlers","WAWebModalManager","WAWebMultiSelectUtils","WAWebReplyToMsgChatAction","WAWebStateUtils","WAWebToast.react","WAWebToastManager","WAWebWamEnumKicEntryPointType","WAWebWamEnumMessageContextMenuOptionType","WAWebWamEnumWebcRmrReasonCode","asyncToGeneratorRuntime","cr:7565","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m,p,_,f,g,h,y,C,b,v=b||(b=o("react"));function S(e){return R.apply(this,arguments)}function R(){return R=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] downloadMessages "," msg(s)"])),e.length),e.length!==0)if(r("WAWebEnvironment").isWindows&&n("cr:7565")!=null){o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] Windows bulk save "," msg(s)"])),e.length);try{yield n("cr:7565").selectFolderAndSaveFiles(e),o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] Windows bulk save done "," msg(s)"])),e.length)}catch(t){o("WALogger").ERROR(p||(p=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] Windows bulk save failed ",": ",""])),e.length,String(t)),o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] fallback\u2192FileSaver "," msg(s)"])),e.length),o("WAWebFileSaver").FileSaver.initDownload(e)}}else{var t=n("cr:7565")!=null?"yes":"no";o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] FileSaver "," msg(s) win="," helpers=",""])),e.length,r("WAWebEnvironment").isWindows,t),o("WAWebFileSaver").FileSaver.initDownload(e)}}),R.apply(this,arguments)}function L(e){var t=o("WAWebFrontendMsgGetters").getChat(e);o("WAWebCmd").Cmd.openChatAt({chat:t,msgContext:o("WAWebChatMessageSearch").getSearchContext(t,e.id)}).then(function(t){t&&(o("WAWebModalManager").ModalManager.close(),o("WAWebComposeBoxActions").ComposeBoxActions.focus(o("WAWebFrontendMsgGetters").getChat(e)))})}function E(t,r,a){var i=t.filter(function(e){return e.mediaData});if(i.length){var l=i.filter(function(e){return!e.mediaData.isDownloadable()}),c=function(t){o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"Descargando {number_of_messages} elementos\\u2026\",\"_1\":\"Descargando 1 elemento\\u2026\"}",[s._plural(t,"number_of_messages")])}))};a==="media_hub"&&c(t.length),l.length>0?(a!=="media_hub"&&o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Descargando...")})),(C||(C=n("Promise"))).all(l.map(function(e){return e.downloadMedia({downloadEvenIfExpensive:!0,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.MULTI_SELECT_DOWNLOAD,isUserInitiated:!0})})).then(function(){var t=i.filter(function(e){return e.mediaData.isDownloadable()});i.length>t.length&&o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"No se pudieron descargar {count} archivos porque ya no est\\u00e1n en tu tel\\u00e9fono.\",\"4\":\"No se pudo descargar {count} archivo porque ya no est\\u00e1 en tu tel\\u00e9fono.\",\"_1\":\"No se pudo descargar 1 archivo porque ya no est\\u00e1 en tu tel\\u00e9fono.\"}",[s._plural(i.length-t.length,"count")])})),t.length&&S(t).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] download failed: ",""])),String(t))})})):S(i).catch(function(e){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] download failed: ",""])),String(e))}),r==null||r(),o("WAWebMultiSelectUtils").logMessageActionClickMetric(i,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.UNKNOWN)}}function k(e){var t=o("WAWebStateUtils").unproxy(e),n=o("WAWebFrontendMsgGetters").getChat(t);o("WAWebCmd").Cmd.sendUnstarMsgs(n,[t]),o("WAWebMultiSelectUtils").logMessageActionClickMetric([e],o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.STAR_OR_UNSTAR)}function I(e){return T.apply(this,arguments)}function T(){return T=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){try{yield o("WAWebKeepInChatActions").runKeepInChatUX(o("WAWebStateUtils").unproxy(e),o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.ALL_MEDIA,!0),o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"Se conservaron {number_of_messages} elementos.\",\"_1\":\"Se conserv\\u00f3 1 elemento\"}",[s._plural(1,"number_of_messages")])}))}catch(e){var t;o("WALogger").LOG(g||(g=babelHelpers.taggedTemplateLiteralLoose(["Keep operation not complete. Reason: ",""])),(t=e.reason)!=null?t:"unknown")}}),T.apply(this,arguments)}function D(e){return x.apply(this,arguments)}function x(){return x=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){try{yield o("WAWebKeepInChatActions").runUndoKeepInChatUX(o("WAWebStateUtils").unproxy(e),o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.ALL_MEDIA,!0),o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"_j{\"*\":\"Se dejaron de conservar {number_of_messages} elementos.\",\"_1\":\"Se dej\\u00f3 de conservar 1 elemento.\"}",[s._plural(1,"number_of_messages")])}))}catch(e){var t;o("WALogger").LOG(h||(h=babelHelpers.taggedTemplateLiteralLoose(["UndoKeep operation not complete. Reason: ",""])),(t=e.reason)!=null?t:"unknown")}}),x.apply(this,arguments)}function $(e){var t=o("WAWebStateUtils").unproxy(e),n=o("WAWebFrontendMsgGetters").getChat(t);o("WAWebCmd").Cmd.sendStarMsgs(n,[t]),o("WAWebMultiSelectUtils").logMessageActionClickMetric([e],o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.STAR_OR_UNSTAR)}function P(e,t){o("WAWebMessageHandlers").handleOpenForwardFlow({multiSelect:!1,msg:o("WAWebStateUtils").unproxy(e),handleSelectClick:t,handleBack:function(){o("WAWebModalManager").ModalManager.closeSupportModal()},openAsSupportModal:!0,onForward:function(){var e=s._(/*BTDS*/"_j{\"*\":\"Se reenviaron {number_of_messages} elementos.\",\"_1\":\"Se reenvi\\u00f3 1 elemento.\"}",[s._plural(1,"number_of_messages")]);o("WAWebToastManager").ToastManager.open(v.jsx(o("WAWebToast.react").Toast,{id:o("WAWebActionToast.react").genId(),msg:e,duration:4e3}))}})}function N(e){return M.apply(this,arguments)}function M(){return M=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=o("WAWebFrontendMsgGetters").getChat(e),n=yield o("WAWebCmd").Cmd.openChatBottom({chat:t});if(!n){o("WALogger").ERROR(y||(y=babelHelpers.taggedTemplateLiteralLoose(["[MediaHub] reply failed"])));return}t.set("composeQuotedMsg",e),o("WAWebModalManager").ModalManager.close(),o("WAWebComposeBoxActions").ComposeBoxActions.focus(o("WAWebFrontendMsgGetters").getChat(e))}),M.apply(this,arguments)}function w(e){return A.apply(this,arguments)}function A(){return A=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){yield r("WAWebReplyToMsgChatAction")(e),o("WAWebModalManager").ModalManager.close(),o("WAWebComposeBoxActions").ComposeBoxActions.focus(o("WAWebFrontendMsgGetters").getChat(e))}),A.apply(this,arguments)}l.goToMessageFromModal=L,l.handleMessageDownloadClick=E,l.handleMessageUnstarClick=k,l.handleKeepClick=I,l.handleUndoKeepClick=D,l.handleMessageStarClick=$,l.handleForwardClick=P,l.replyToMessageFromModal=N,l.replyPrivatelyToMessageFromModal=w}),226); __d("WAWebBizCtwaContextThumbImage.react",["WAWebBizGatingUtils","WAWebClassnames","WAWebLinkRefreshedIcon.react","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).useState,d={noThumbIcon:{color:"xqa0p2g",$$css:!0}},m=function(t){return(t==null?void 0:t.thumbnail)!=null?"data:image/jpeg;base64,"+t.thumbnail:""},p=function(t){if(t){if(t.thumbnailUrl!=null)return t.thumbnailUrl}else return"";return m(t)};function _(e){var t=e.className,n=e.context,r=c(!1),a=r[0],i=r[1],l=(n==null?void 0:n.isSuspiciousLink)===!0||(n==null?void 0:n.thumbnailUrl)==null&&(n==null?void 0:n.thumbnail)==null,s=function(){return i(!0)},_=o("WAWebClassnames").classnamesConvertMeToStylexPlease({0:"x1c4vz4f x2lah0s xdl72j9 x1hcvz70 x1v6ow93 xkzwgj6 x1e2x2q",1:"x1c4vz4f x2lah0s xdl72j9 x1hcvz70 x1v6ow93 xkzwgj6 x1e2x2q x14tgpju"}[!!(a||(n==null?void 0:n.thumbnailUrl)==null)<<0],t),f=a?m(n):p(n);if(l||!f){var g={0:"x1n2onr6 x78zum5 x1c4vz4f x2lah0s xdl72j9 x6s0dn4 xl56j7k x1hcvz70 xkzwgj6 x1280gxy x1ypdohk",1:"x1n2onr6 x78zum5 x1c4vz4f x2lah0s xdl72j9 x6s0dn4 xl56j7k xkzwgj6 x1280gxy x1ypdohk xh8yej3"}[!!o("WAWebBizGatingUtils").isAdsAttributionEnabled()<<0];return u.jsx("div",{className:g,children:u.jsx(o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,{xstyle:d.noThumbIcon})})}return u.jsx("img",{onError:s,alt:"",className:_,src:f})}_.displayName=_.name+" [from "+i.id+"]",l.generateThumbSrcFromData=m,l.getInitialThumbSource=p,l.CtwaContextThumbImage=_}),98); __d("WAWebBizCtwaContextImagePreview.react",["cx","WAWebBizCtwaContextThumbImage.react","WAWebClassnames","WAWebEmojiText.react","WAWebExternalLink.react","WAWebLinkify","WAWebModalManager","WAWebSuspiciousLinkPopup.react","WAWebURLUtils","punycode","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t,n=e.compose,a=e.context,i=e.isSentByMe,l=e.sourceUrl,s=function(){if(!n){if(a==null||a.sourceUrl==null||a.sourceUrl==="")return;if(a.isSuspiciousLink===!0){var e=o("WAWebLinkify").findLink(a.sourceUrl);e&&o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebSuspiciousLinkPopup.react"),{link:e}))}else o("WAWebExternalLink.react").openExternalLink(a.sourceUrl)}},c=(a==null?void 0:a.description)!=null&&a.isSuspiciousLink!==!0&&u.jsx("div",{className:"_ah8m",children:u.jsx(o("WAWebEmojiText.react").EmojiText,{text:a.description,titlify:!0})}),d=l;if(a&&a.sourceUrl!=null&&(d=a.sourceUrl,a.isSuspiciousLink!==!0&&(a.title!=null&&a.title!==""||a.thumbnailUrl!=null&&a.thumbnailUrl!==""||a.thumbnail!=null&&a.thumbnail!==""))){d=r("WAWebURLUtils").hostname(d);try{d=r("punycode").toUnicode(d)}catch(e){}}var m=d!=null&&d!==""?u.jsx("div",{className:"_ah8n",children:u.jsx(o("WAWebEmojiText.react").EmojiText,{text:d})}):null,p=(a==null?void 0:a.isSuspiciousLink)===!0?null:a==null?void 0:a.title,_=o("WAWebClassnames").classnamesConvertMeToStylexPlease((t={},t._ah8b=n,t._ah89=!n&&!i,t._ah8a=i===!0,t._ah88=!0,t));return u.jsxs("div",{className:_,onClick:s,children:[u.jsx(o("WAWebBizCtwaContextThumbImage.react").CtwaContextThumbImage,{context:a,className:"_ah8k"}),u.jsxs("div",{className:"_ah8o",children:[u.jsx("div",{className:"_ah8l",title:p,children:u.jsx(o("WAWebEmojiText.react").EmojiText,{text:p})}),c,m]})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebLogoFacebookRoundIcon.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="logo-facebook-round";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M24 12C24 5.37188 18.6281 0 12 0C5.37188 0 0 5.37188 0 12C0 18.6281 5.37188 24 12 24C12.0703 24 12.1406 24 12.2109 23.9953V14.6578H9.63281V11.6531H12.2109V9.44062C12.2109 6.87656 13.7766 5.47969 16.0641 5.47969C17.1609 5.47969 18.1031 5.55938 18.375 5.59688V8.27813H16.8C15.5578 8.27813 15.3141 8.86875 15.3141 9.73594V11.6484H18.2906L17.9016 14.6531H15.3141V23.5359C20.3297 22.0969 24 17.4797 24 12Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.LogoFacebookRoundIcon=m}),98); __d("WAWebBizCtwaContextPreviewIcon.react",["WAWebBizGatingUtils","WAWebLogoFacebookIcon.react","WAWebLogoFacebookRoundIcon.react","WAWebLogoInstagramIcon.react","WAWebPipConst","react"],(function(t,n,r,o,a,i,l){var e=["hostname"],s,u=s||(s=r("react")),c={iconColor:{color:"x1f7m26b",$$css:!0}};function d(t){var n=t.hostname,r=babelHelpers.objectWithoutPropertiesLoose(t,e);return n===o("WAWebPipConst").HOSTNAME.INSTAGRAM?u.jsx(o("WAWebLogoInstagramIcon.react").LogoInstagramIcon,babelHelpers.extends({},r)):o("WAWebBizGatingUtils").isAdsAttributionEnabled()?u.jsx(o("WAWebLogoFacebookRoundIcon.react").LogoFacebookRoundIcon,babelHelpers.extends({iconXstyle:c.iconColor},r)):u.jsx(o("WAWebLogoFacebookIcon.react").LogoFacebookIcon,babelHelpers.extends({},r))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebBizCtwaContextSourceButton.react",["WAWebBizCtwaContextPreviewIcon.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={icon:{position:"x10l6tqk",bottom:"xqo3gd",insetInlineEnd:"x11dcrhx",left:null,right:null,$$css:!0}};function c(e){var t=e.hostname,n=e.onClick;return s.jsx("div",{className:"x10l6tqk x1vjfegm x1dmp6jm x1peatla x1ey2m1c xtijo5x x1tmnsyt x1ypdohk",onClick:n,children:s.jsx(r("WAWebBizCtwaContextPreviewIcon.react"),{hostname:t,xstyle:u.icon})})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebBizCtwaContextLargeImagePreview.react",["cx","WAWebBizCtwaContextSourceButton.react","WAWebBizCtwaContextThumbImage.react","WAWebClassnames","WAWebEmojiText.react","WAWebExternalLink.react","WAWebLinkify","WAWebModalManager","WAWebMsgGetters","WAWebSettingsFBT","WAWebStopEvent","WAWebSuspiciousLinkPopup.react","WAWebURLUtils","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useRef;function m(e){var t=e.context,n=e.msg,a=t.sourceApp==="whatsapp",i=d(null),l=t.isSuspiciousLink===!0||t.thumbnailUrl==null&&t.thumbnail==null,s=function(n){if(o("WAWebStopEvent").stopEvent(n),t.isSuspiciousLink===!0&&t.sourceUrl!=null){var e=o("WAWebLinkify").findLink(t.sourceUrl);e&&o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebSuspiciousLinkPopup.react"),{link:e}))}else t.sourceUrl!=null&&t.sourceUrl!==""&&o("WAWebExternalLink.react").openExternalLink(t.sourceUrl)},u=t.sourceUrl!=null?r("WAWebURLUtils").withoutWww(r("WAWebURLUtils").hostname(t.sourceUrl)):null,m=c.jsx("div",{className:"x4p5aij x1pg5gke xhslqc4",children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:u})}),p={0:"x9f619 x78zum5 xdt5ytf xl56j7k xh8yej3 x6h9qgo x1yrsyyn x2vl965 x10b6aqq xe2zdcy x6ikm8r x10wlt62 x17fgdl5",1:"x9f619 x78zum5 xdt5ytf xl56j7k xh8yej3 x6h9qgo x1yrsyyn x2vl965 x10b6aqq xe2zdcy x6ikm8r x10wlt62 x17fgdl5 x193iq5w"}[(t.thumbnail!=null)<<0],_=t.description!=null&&t.isSuspiciousLink!==!0?c.jsx("div",{className:"x1c4vz4f x7f0hsc xdl72j9 x6ikm8r x10wlt62 x1pg5gke xhslqc4",title:t.description,children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:t.description})}):null,f=c.jsx("div",{className:"x1c4vz4f xo1l8bm x1pg5gke x1k4tb9n xhslqc4",title:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewDescription(),children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewDescription()})}),g=t.title!=null&&t.isSuspiciousLink!==!0?c.jsx("div",{className:"x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 x14ug900 xlyipyv x1h7i4cw x1ua5tub",title:t.title,children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:t.title})}):null,h=c.jsx("div",{className:"x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 x14ug900 xlyipyv x1h7i4cw x1ua5tub xk50ysn",title:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewTitle(),children:c.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewTitle()})}),y=o("WAWebClassnames").classnamesConvertMeToStylexPlease({0:"xvijh9v x1mpyi22 x1ty9z65 xm2jcoa x6ikm8r x10wlt62 x1wl59ut x1fc57z9 xaejkm2 x1uuy6ko x1gfim23 xqfj769 x1bu39yj",1:"xvijh9v x1mpyi22 x1ty9z65 xm2jcoa x6ikm8r x10wlt62 x1wl59ut x1fc57z9 xaejkm2 x1uuy6ko x1gfim23 xqfj769 x1k6n2fr"}[!!o("WAWebMsgGetters").getIsSentByMe(n)<<0],"_ah-7");return c.jsxs("div",{className:y,children:[c.jsx("div",babelHelpers.extends({ref:i,className:"x78zum5 x6s0dn4 xl56j7k xh8yej3 x6aax8c x6ikm8r x10wlt62"},!a&&{onClick:s},{children:c.jsxs("div",babelHelpers.extends({},{0:{className:"x78zum5 x6s0dn4 x1n2onr6 x6ikm8r x10wlt62"},1:{className:"x78zum5 x6s0dn4 x1n2onr6 x6ikm8r x10wlt62 xh8yej3"}}[!!l<<0],{children:[t.isSuspiciousLink!==!0&&u!=null&&!a&&c.jsx(r("WAWebBizCtwaContextSourceButton.react"),{hostname:u,onClick:s}),c.jsx(o("WAWebBizCtwaContextThumbImage.react").CtwaContextThumbImage,{context:t,className:"x1n2onr6 xjibb99 xapaqfs x1h1h5sg xmi39wt xl1xv1r"+(a?"":" x1ypdohk")})]}))})),t.sourceUrl!=null&&!a&&c.jsxs(o("WAWebExternalLink.react").ExternalLink,{className:p,href:t.sourceUrl,children:[g,_,m]}),a&&c.jsxs("div",{className:p,children:[h,f]})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebMediaCancelIcon.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="media-cancel";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=44,R=44;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 44 44",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 44 44",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M29.377,16.099l-1.475-1.475L22,20.525l-5.901-5.901l-1.476,1.475L20.525,22l-5.901,5.901l1.476,1.475 l5.9-5.901l5.901,5.901l1.475-1.475L23.475,22L29.377,16.099z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MediaCancelIcon=m}),98); __d("WAWebMediaGifIcon.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="media-gif";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",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M17.9,9 L17.9,11 L18.2,11 C19.3,11 20.3,11 21.4,11 C21.6,11 21.9,11.1 22,11.2 C22.3,11.4 22.4,11.8 22.3,12.2 C22.2,12.6 21.9,12.8 21.5,12.8 C20.4,12.8 19.3,12.8 18.2,12.8 L17.9,12.8 L17.9,13.1 C17.9,13.9 17.9,14.7 17.9,15.5 C17.9,16.3 17.1,16.7 16.5,16.4 C16.2,16.2 16,15.9 16,15.5 C16,14.8 16,14.2 16,13.5 C16,11.8 16,10.1 16,8.4 C16,7.7 16.4,7.3 17.1,7.3 C18.7,7.3 20.3,7.3 22,7.3 C22.5,7.3 22.9,7.6 23,8 C23.1,8.6 22.7,9 22.1,9 C20.8,9 19.5,9 18.3,9 L17.9,9 Z M7.7,12.8 C7.2,12.8 6.7,12.8 6.3,12.8 C6.1,12.8 5.9,12.7 5.8,12.7 C5.5,12.5 5.4,12.2 5.5,11.8 C5.6,11.5 5.9,11.2 6.2,11.2 C7.1,11.2 7.9,11.2 8.8,11.2 C9.2,11.2 9.6,11.6 9.6,12.1 C9.6,12.9 9.6,13.7 9.6,14.6 C9.6,15.1 9.3,15.4 8.9,15.7 C7.8,16.3 6.7,16.7 5.4,16.6 C3.6,16.5 2.1,15.7 1.4,13.9 C0.2,11.3 1.5,8 4.7,7.3 C6.1,7 7.5,7.2 8.8,8 C9.2,8.2 9.3,8.6 9.2,9 C9.1,9.4 8.9,9.6 8.5,9.7 C8.2,9.8 7.9,9.7 7.7,9.5 C7.2,9.2 6.7,9 6.2,8.9 C4.7,8.7 3.3,9.8 3.1,11.3 C3,11.9 3.1,12.5 3.3,13.1 C3.8,14.3 5,15 6.3,14.8 C6.8,14.7 7.3,14.6 7.7,14.3 C7.8,14.2 7.9,14.1 7.9,14 C7.7,13.6 7.7,13.2 7.7,12.8 Z M13.6,11.8 C13.6,13 13.6,14.2 13.6,15.4 C13.6,16.1 13.1,16.5 12.4,16.4 C12,16.3 11.7,16 11.7,15.6 C11.7,15.5 11.7,15.4 11.7,15.3 C11.7,13 11.7,10.6 11.7,8.3 C11.7,8.1 11.7,7.9 11.8,7.7 C12,7.3 12.4,7.1 12.9,7.2 C13.3,7.3 13.6,7.7 13.6,8.1 C13.6,9.4 13.6,10.6 13.6,11.8 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MediaGifIcon=m}),98); __d("WAWebMediaPlayIcon.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="media-play";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=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",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M19.5,10.9 L6.5,3.4 C5.2,2.7 4.1,3.3 4.1,4.8 L4.1,19.8 C4.1,21.3 5.2,21.9 6.5,21.2 L19.5,13.7 C20.8,12.8 20.8,11.6 19.5,10.9 Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MediaPlayIcon=m}),98); __d("WAWebMediaUploadIcon.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="media-upload";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",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M5,10.1023258 L9.3,10.1023258 L9.3,16.6023258 C9.3,17.1023258 9.7,17.5023258 10.2,17.5023258 L14.5,17.5023258 C15,17.5023258 15.4,17.1023258 15.4,16.6023258 L15.4,10.1023258 L19.7,10.1023258 C20.5,10.1023258 20.7,9.60232575 20.2,9.00232575 L13.3,1.80232575 C12.6,0.902325754 12,1.10232575 11.3,1.80232575 L4.6,9.00232575 C4,9.60232575 4.2,10.1023258 5,10.1023258 Z M20.1,20.0023258 L4.5,20.0023258 C4.2,20.0023258 4,20.2023258 4,20.5023258 L4,21.5023258 C4,21.8023258 4.2,22.0023258 4.5,22.0023258 L20.1,22.0023258 C20.4,22.0023258 20.6,21.8023258 20.6,21.5023258 L20.6,20.5023258 C20.6,20.3023258 20.4,20.0023258 20.1,20.0023258 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MediaUploadIcon=m}),98); __d("WAWebMediaStateControls.react",["WAWebClickable.react","WAWebL10nFilesize","WAWebMediaCancelIcon.react","WAWebMediaGifIcon.react","WAWebMediaPlayIcon.react","WAWebMediaUploadIcon.react","WAWebSpinner.react","WDSIconIcDownload.react","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.useImperativeHandle,m=u.useRef,p={iconMeta:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",marginInlineEnd:"xf6vk7d",$$css:!0},play:{marginInlineStart:"xwklpps",$$css:!0}};function _(e){var t=e.cancelable,n=e.ref,r=!!t,a=m();return d(n,function(){return{getElement:function(){return a.current}}}),c.jsx("div",{ref:a,className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h","data-testid":void 0,children:c.jsxs("div",babelHelpers.extends({},{0:{className:"x1rg5ohu x10wjd1d x1n2onr6 x1pju0fl"},1:{className:"x1rg5ohu x10wjd1d x1n2onr6 x1pju0fl x1ypdohk"}}[!!r<<0],{children:[c.jsx("div",{className:"x1o0tod x10l6tqk x13vifvy",children:c.jsx(o("WAWebSpinner.react").Spinner,{size:50,stroke:3,color:"white"})}),r?c.jsx("div",{className:"x1jeu2jp x1ktv7sr x142x0oa xv7zg05 x12dgle5 x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x12k1wp2 x1k847yn x1j67448 xzkvk7n x1c9tyrk xeusxvb x1pahc9y x1ertn4p x14obwa1 xn3w4p2 xccywas x7phf20 x7r5mf7 x10l6tqk x1pdr0v7 x187nhsf xy01wc4 x12sjv16 x9femuk x1jjcuvn xnvurfn x1v3rft4 x1opv7go x1rovbrg x180ha0m x147fd2z xlogyij xq2yz4j xn4w8fp x17issv1 xxslzl9 xwjlxly x10tli2e xf8oath xdz3mh0 x1hmns74 x1r60q8r x1y59no3",children:c.jsx(o("WAWebMediaCancelIcon.react").MediaCancelIcon,{})}):null]}))})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.filesize,n=t===void 0?0:t,a=e.onClick,i=e.ref,l=e.tabIndex,s=l===void 0?0:l,u=m();return d(i,function(){return{getElement:function(){return u.current}}}),n>0?c.jsx("div",{ref:u,className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h","data-testid":void 0,children:c.jsxs("button",{tabIndex:s,className:"x6s0dn4 x191g5wg x1rsuxf0 xcgujcq x1igtfuo x13up0n2 x17t9dm2 x3nfvp2 x1nxh6w3 x10wjd1d xexx8yu x1x5flf6 x18d9i69 xbmws1g x1n2onr6 x16dsc37 x1ypdohk",onClick:a,children:[c.jsx(r("WDSIconIcDownload.react"),{xstyle:p.iconMeta}),c.jsx("span",{children:o("WAWebL10nFilesize").getL10nFilesize(n)})]})}):c.jsx("div",{ref:u,className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h","data-testid":void 0,children:c.jsx("button",{tabIndex:s,className:"x6s0dn4 x191g5wg x1c9tyrk xeusxvb x1pahc9y x1ertn4p x17t9dm2 x78zum5 x10wjd1d xl56j7k x1n2onr6 x1pju0fl x1ypdohk",onClick:a,children:c.jsx(r("WDSIconIcDownload.react"),{})})})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.filesize,n=t===void 0?0:t,r=e.ref,a=m();return d(r,function(){return{getElement:function(){return a.current}}}),n>0?c.jsx("div",{ref:a,className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h","data-testid":void 0,children:c.jsxs("button",{className:"x6s0dn4 x191g5wg x1rsuxf0 xcgujcq x1igtfuo x13up0n2 x17t9dm2 x3nfvp2 x1nxh6w3 x10wjd1d xexx8yu x1x5flf6 x18d9i69 xbmws1g x1n2onr6 x16dsc37 x1ypdohk",children:[c.jsx(o("WAWebMediaUploadIcon.react").MediaUploadIcon,{xstyle:p.iconMeta}),c.jsx("span",{children:o("WAWebL10nFilesize").getL10nFilesize(n)})]})}):c.jsx("div",{ref:a,className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h","data-testid":void 0,children:c.jsx("div",{className:"x6s0dn4 x191g5wg x1c9tyrk xeusxvb x1pahc9y x1ertn4p x17t9dm2 x78zum5 x10wjd1d xl56j7k x1n2onr6 x1pju0fl",children:c.jsx(o("WAWebMediaUploadIcon.react").MediaUploadIcon,{})})})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.ref,n=m();return d(t,function(){return{getElement:function(){return n.current}}}),c.jsx("div",{ref:n,className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h",children:c.jsx("div",{className:"x6s0dn4 x191g5wg x1c9tyrk xeusxvb x1pahc9y x1ertn4p x17t9dm2 x78zum5 x10wjd1d xl56j7k x1n2onr6 x1pju0fl",children:c.jsx(o("WAWebMediaPlayIcon.react").MediaPlayIcon,{xstyle:p.play})})})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.onClick;return c.jsx(o("WAWebClickable.react").Clickable,{className:"x6s0dn4 x17t9dm2 x78zum5 x5yr21d xl56j7k x1o0tod x10l6tqk x13vifvy xh8yej3 x11uqc5h",onClick:t,dataTestId:"media-state-gif-icon",children:c.jsx("div",{className:"x6s0dn4 x191g5wg x1c9tyrk xeusxvb x1pahc9y x1ertn4p x17t9dm2 x78zum5 x10wjd1d xl56j7k x1n2onr6 x1pju0fl",children:c.jsx(o("WAWebMediaGifIcon.react").MediaGifIcon,{})})})}y.displayName=y.name+" [from "+i.id+"]",l.Pending=_,l.Download=f,l.Upload=g,l.Play=h,l.GifIcon=y}),98); __d("WAWebPipOverlay.react",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.children,n=e.icon,r=n?s.jsx("div",{className:"x17t9dm2 xyorhqc x1rdy4ex",children:n}):null;return s.jsxs("div",{className:"x6s0dn4 xjpg5jv x1ey2m1c x9f619 x78zum5 xdt5ytf xl56j7k x1o0tod x1xpjyb3 xyo0t3i xk85y76 xb0esv5 x10l6tqk xtijo5x x13vifvy xeut3pp",children:[r,s.jsx("div",{className:"x1riek7e xt0e3qv x1c4vz4f x2lah0s xdl72j9 x1nxh6w3 x1iikomf x1u7k74 x2b8uid x1kkjihi",children:t})]})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebVideoPipLargeIcon.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="video-pip-large";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=28,R=37;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 37 28",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M33.8354224,11.9998779 L22.16,11.9998779 C20.96768,11.9998779 20,11.0321979 20,9.83987797 L20,3.15999996 C20,1.96767998 20.96768,1 22.16,1 L33.8354224,1 C35.0277424,1 35.9954224,1.96767998 35.9954224,3.15999996 L35.9954224,9.83987797 C35.9954224,11.0321979 35.0277424,11.9998779 33.8354224,11.9998779 Z",fill:"currentColor"}),c.jsx("path",{d:"M17.5694596,5 L17.5694596,7 L4.15999996,7 C3.51933499,7 3,7.51951438 2.99999977,8.15932623 L3.01055908,23.8326453 C3.01055908,24.4731309 3.52989407,24.9926453 4.17055904,24.9926453 L27.850046,24.9926453 C28.4900723,24.9926453 29.0100192,24.4726895 29.0100198,23.8337553 L28.9994607,14.320724 L30.9994595,14.3185041 L31.0100192,23.8326453 C31.0100192,25.5772513 29.5946495,26.9926453 27.850046,26.9926453 L4.17055904,26.9926453 C2.42516991,26.9926453 1.01055908,25.5775458 1.01055931,23.833319 L1,8.15999996 C1,6.41509947 2.41461083,5 4.15999996,5 L17.5694596,5 Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.VideoPipLargeIcon=m}),98); __d("WAWebBizCtwaContextVideoPreview.react",["cx","fbt","WAWebBizCtwaContextSourceButton.react","WAWebBizCtwaContextThumbImage.react","WAWebClassnames","WAWebEmojiText.react","WAWebExternalLink.react","WAWebMediaStateControls.react","WAWebMsgGetters","WAWebMsgKey","WAWebMsgModel","WAWebMsgType","WAWebPipController","WAWebPipOverlay.react","WAWebSettingsFBT","WAWebURLUtils","WAWebVideoPipLargeIcon.react","react","stylex","useWAWebListener"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m=d||(d=o("react")),p=e||(e=r("react")),_=m.useMemo,f=m.useRef,g=m.useState,h={preview:{marginTop:"xvijh9v",marginInlineEnd:"x1mpyi22",marginBottom:"x1ty9z65",marginInlineStart:"xm2jcoa",overflowX:"x6ikm8r",overflowY:"x10wlt62",fontSize:"x1wl59ut",lineHeight:"x1fc57z9",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769",$$css:!0},bubbleIn:{backgroundColor:"x1bu39yj",$$css:!0},bubbleOut:{backgroundColor:"x1k6n2fr",$$css:!0}},y={PREVIEW:"PREVIEW",FLOATER:"FLOATER"};function C(e){var t=e.context,n=t.sourceApp==="whatsapp",a=_(function(){if(e.msg.type===o("WAWebMsgType").MSG_TYPE.VIDEO){var t=e.msg.toJSON(),n=new(r("WAWebMsgKey"))({fromMe:e.msg.id.fromMe,remote:e.msg.id.remote,id:r("WAWebMsgKey").newId_DEPRECATED()});return t.id=n,new(o("WAWebMsgModel")).Msg(t)}return e.msg},[e.msg]),i=f(null),l=g(function(){return r("WAWebPipController").isOpened(a)?y.FLOATER:y.PREVIEW}),s=l[0],d=l[1],m=function(){d(y.FLOATER)},C=function(){s!==y.PREVIEW&&d(y.PREVIEW)};o("useWAWebListener").useListener(r("WAWebPipController"),a.id.toString()+"_pip_did_open",m),o("useWAWebListener").useListener(r("WAWebPipController"),a.id.toString()+"_pip_did_close",C);var b=function(n){n.preventDefault(),n.stopPropagation(),t.sourceUrl!=null&&t.sourceUrl!==""&&o("WAWebExternalLink.react").openExternalLink(t.sourceUrl)},v=e.context.sourceUrl!=null&&e.context.sourceUrl!==""?r("WAWebURLUtils").withoutWww(r("WAWebURLUtils").hostname(e.context.sourceUrl)):null,S=p.jsx("div",{className:"x4p5aij x1pg5gke xhslqc4",children:p.jsx(o("WAWebEmojiText.react").EmojiText,{text:v})}),R={0:"x9f619 x78zum5 xdt5ytf xl56j7k xh8yej3 x6h9qgo x1yrsyyn x2vl965 x10b6aqq xe2zdcy x6ikm8r x10wlt62 x17fgdl5",1:"x9f619 x78zum5 xdt5ytf xl56j7k xh8yej3 x6h9qgo x1yrsyyn x2vl965 x10b6aqq xe2zdcy x6ikm8r x10wlt62 x17fgdl5 x193iq5w"}[(e.context.thumbnail!=null)<<0],L=t.description!=null&&t.isSuspiciousLink!==!0?p.jsx("div",{className:"x1c4vz4f x7f0hsc xdl72j9 x6ikm8r x10wlt62 x1pg5gke xhslqc4",title:e.context.description,children:p.jsx(o("WAWebEmojiText.react").EmojiText,{text:e.context.description})}):null,E=p.jsx("div",{className:"x1c4vz4f xo1l8bm x1pg5gke x1k4tb9n xhslqc4",title:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewDescription(),children:p.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewDescription()})}),k=t.title!=null&&t.isSuspiciousLink!==!0?p.jsx("div",{className:"x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 x14ug900 xlyipyv x1h7i4cw x1ua5tub",title:t.title,children:p.jsx(o("WAWebEmojiText.react").EmojiText,{text:t.title})}):null,I=p.jsx("div",{className:"x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 x14ug900 xlyipyv x1h7i4cw x1ua5tub xk50ysn",title:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewTitle(),children:p.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebSettingsFBT").wamoNonAGMMessagePreviewTitle()})}),T=o("WAWebClassnames").classnamesConvertMeToStylexPlease((c||(c=r("stylex")))(h.preview,o("WAWebMsgGetters").getIsSentByMe(a)&&h.bubbleOut||h.bubbleIn),"_ah-7"),D=s===y.PREVIEW&&!n?p.jsx("div",{className:"x10l6tqk x13vifvy x1o0tod x1ja2u2z xh8yej3 x5yr21d x1ypdohk",children:p.jsx(o("WAWebMediaStateControls.react").Play,{})}):null,x=s===y.FLOATER?p.jsx(r("WAWebPipOverlay.react"),{icon:p.jsx(o("WAWebVideoPipLargeIcon.react").VideoPipLargeIcon,{}),children:u._(/*BTDS*/"Este video se est\u00e1 reproduciendo en modo imagen en imagen.")}):null;return p.jsxs("div",{className:T,children:[p.jsxs("div",babelHelpers.extends({ref:i,className:"x1n2onr6 x78zum5 x6s0dn4 xl56j7k xh8yej3 x6aax8c x6ikm8r x10wlt62"},!n&&{onClick:b},{children:[v!=null&&!n?p.jsx(r("WAWebBizCtwaContextSourceButton.react"),{hostname:v,onClick:b}):null,p.jsx(o("WAWebBizCtwaContextThumbImage.react").CtwaContextThumbImage,{context:t,className:"x1n2onr6 xjibb99 x1ur3nm9 xmi39wt x1h1h5sg x1ypdohk x14tgpju x15622t4 xl1xv1r"}),D,x]})),!n&&(t.sourceUrl==null||t.sourceUrl===""?p.jsxs("div",{children:[k,L,S]}):p.jsxs(o("WAWebExternalLink.react").ExternalLink,{className:R,href:t.sourceUrl,children:[k,L,S]})),n&&p.jsxs("div",{className:R,children:[I,E]})]})}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226); __d("WAWebBizCtwaThumbnailImage.react",["WAWebBizCtwaAGMUtils","WAWebBizCtwaContextThumbImage.react","WAWebCtwaAGMUtils","WAWebCtwaLogger","WAWebEmojiText.react","WAWebFlex.react","WAWebWarningIcon.react","WAWebWarningOutlineIcon.react","isStringNullOrEmpty","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=s,d=c.useCallback,m=c.useState,p={image:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",width:"xh8yej3",$$css:!0},errorContainer:{height:"x5yr21d",backgroundColor:"x6egj2d",cursor:"x1ypdohk",$$css:!0},errorIcon:{color:"x1iglcvg",$$css:!0},imageBlur:{filter:"x14tgpju",$$css:!0},errorInThumbnail:{backgroundColor:"xu10ooz",$$css:!0},errorIconInThumbnailBubbleOut:{color:"xvhpnrs",$$css:!0},errorIconInThumbnailBubbleIn:{color:"x1pse0pq",$$css:!0}};function _(t){var n=t.alt,a=t.businessWid,i=t.context,l=t.fromMe,s=t.isThumbnail,c=s===void 0?!1:s,_=t.xstyle,f=m(!1),g=f[0],h=f[1],y;c&&(y=g?o("WAWebBizCtwaContextThumbImage.react").generateThumbSrcFromData(i):o("WAWebBizCtwaContextThumbImage.react").getInitialThumbSource(i));var C=c?y:i==null?void 0:i.originalImageUrl,b=d(function(){i!=null&&o("WAWebCtwaLogger").logAGMOperation({operationType:o("WAWebCtwaLogger").AGM_OPERATION_TYPE.agm_bottom_sheet_image_error,fromBusiness:l,agmPayload:o("WAWebCtwaAGMUtils").extractAGMPayload(i),businessWid:a,adId:i==null?void 0:i.sourceId}),h(!0)},[a,i,l]);if(g||r("isStringNullOrEmpty")(C)){var v=o("WAWebBizCtwaAGMUtils").getAdImgError(),S=l?p.errorIconInThumbnailBubbleOut:p.errorIconInThumbnailBubbleIn;return u.jsx(o("WAWebFlex.react").FlexColumn,{grow:1,shrink:0,basis:"auto",align:"center",justify:"center",gap:8,xstyle:[p.errorContainer,c&&p.errorInThumbnail,_],children:c?u.jsx(o("WAWebWarningIcon.react").WarningIcon,{xstyle:S}):u.jsxs(u.Fragment,{children:[u.jsx(o("WAWebWarningOutlineIcon.react").WarningOutlineIcon,{xstyle:p.errorIcon}),u.jsx("div",{className:"x1iglcvg x1f6kntn x1fc57z9 xf4yft",title:v,children:u.jsx(o("WAWebEmojiText.react").EmojiText,{text:v})})]})})}return u.jsx("img",babelHelpers.extends({onError:b,alt:n!=null?n:""},(e||(e=r("stylex"))).props(p.image,(i==null?void 0:i.thumbnailUrl)==null&&p.imageBlur,_),{src:C}))}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),98); __d("WAWebBizOpenStatusModal",["WAWebButton.react","WAWebFbtCommon","WAWebModal.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){var e=s.jsx(o("WAWebButton.react").Button,{testid:void 0,type:"primary",onClick:function(){return o("WAWebModalManager").ModalManager.close()},children:r("WAWebFbtCommon")("OK")},0);o("WAWebModalManager").ModalManager.open(s.jsx(o("WAWebModal.react").Modal,{actions:[e],children:"This is not supported on WhatsApp Web. Open WhatsApp on your phone to view more details."}))}l.default=u}),98); __d("WAWebBizCtwaPreview.react",["WAWebBizCtwaAGMUtils","WAWebBizCtwaThumbnailImage.react","WAWebBizGatingUtils","WAWebBizOpenStatusModal","WAWebClassnames","WAWebCmd","WAWebCtwaAGMUtils","WAWebCtwaLogger","WAWebEmojiText.react","WAWebKeyboardConstants","WAWebMsgGetters","WAWebStateUtils","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useCallback,c={thumbnail:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",width:"x1useyqa",height:"xsdox4t",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769",objectFit:"xl1xv1r",$$css:!0}};function d(e){var t,n=e.context,a=e.msg,i=(t=n.sourceApp)!=null?t:o("WAWebBizCtwaAGMUtils").getHostnameLabel(n),l=i!=null?s.jsx("div",{className:"x104kibb x1c4vz4f xs83m0k xdl72j9 xw6vvto x6ikm8r x10wlt62 x14ug900 xlyipyv x1h7i4cw x1ua5tub x1s688f x6prxxf x1fc57z9 x1w2d6ul","data-testid":void 0,children:s.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebBizCtwaAGMUtils").getAdSourceLabel(i)})}):null,d=o("WAWebMsgGetters").getIsSentByMe(a),p="x9f619 x78zum5 xdt5ytf xl56j7k xh8yej3 x6h9qgo x6ikm8r x10wlt62 x17fgdl5",_=s.jsx("div",{className:"x1c4vz4f x7f0hsc xdl72j9 x6ikm8r x10wlt62 x1nxh6w3 xhslqc4 xd4r4e8",title:n.description,children:s.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebBizCtwaAGMUtils").getCtwaDetailsLabel()})}),f=o("WAWebClassnames").classnamesConvertMeToStylexPlease({0:"xvijh9v x1mpyi22 x1ty9z65 xm2jcoa x6ikm8r x10wlt62 x1wl59ut x1fc57z9 xaejkm2 x1uuy6ko x1gfim23 xqfj769 x1ypdohk x6egj2d",1:"xvijh9v x1mpyi22 x1ty9z65 xm2jcoa x6ikm8r x10wlt62 x1wl59ut x1fc57z9 xaejkm2 x1uuy6ko x1gfim23 xqfj769 x1ypdohk x4wrhlh"}[!!d<<0]),g=u(function(){n.sourceApp===o("WAWebCtwaAGMUtils").AGM_SOURCE_APP.WHATSAPP&&o("WAWebBizGatingUtils").getWamoAgmEnabled()?r("WAWebBizOpenStatusModal")():m(n,a)},[n,a]);return s.jsx("div",{className:f,onClick:g,"data-testid":void 0,role:"button",tabIndex:0,onKeyPress:function(t){(t.key===o("WAWebKeyboardConstants").KEYBOARD_EVENT_KEY_VALUE.ENTER||t.key===o("WAWebKeyboardConstants").KEYBOARD_EVENT_KEY_VALUE.SPACE)&&g()},children:s.jsxs("div",{className:"x78zum5 x1qjc9v5 x1nhvcw1 xh8yej3 x6ikm8r x10wlt62 x889kno x2vl965 x1a8lsjc xe2zdcy x1q0g3np xlrrn2g",children:[s.jsx(r("WAWebBizCtwaThumbnailImage.react"),{context:n,businessWid:a.from,fromMe:o("WAWebMsgGetters").getIsSentByMe(a),xstyle:c.thumbnail,isThumbnail:!0}),n.sourceUrl!=null?s.jsxs("div",{className:p,children:[l,_]}):null]})})}d.displayName=d.name+" [from "+i.id+"]";function m(e,t){var n=o("WAWebCtwaAGMUtils").extractAGMPayload(e),r=o("WAWebMsgGetters").getIsSentByMe(t),a=function(){o("WAWebCtwaLogger").logAGMOperation({operationType:o("WAWebCtwaLogger").AGM_OPERATION_TYPE.agm_bottom_sheet_closed,fromBusiness:r,agmPayload:n,businessWid:t.from,adId:e.sourceId})},i=function(){o("WAWebCtwaLogger").logAGMOperation({operationType:o("WAWebCtwaLogger").AGM_OPERATION_TYPE.agm_bottom_sheet_shown,fromBusiness:r,agmPayload:n,businessWid:t.from,adId:e.sourceId})};o("WAWebCtwaLogger").logAGMOperation({operationType:o("WAWebCtwaLogger").AGM_OPERATION_TYPE.agm_view_details_clicked,fromBusiness:r,agmPayload:n,businessWid:t.from,adId:e.sourceId}),o("WAWebCmd").Cmd.ctwaAdPreviewDrawer(o("WAWebStateUtils").unproxy(t),a,i)}l.default=d}),98); __d("WAWebBizSuspiciousLabel.react",["fbt","WAWebAlertIcon.react","WAWebDisplayType","WAWebMsgLinks","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={icon:{color:"x17t9dm2",$$css:!0},container:{display:"x1rg5ohu",height:"xhvdbge",marginInlineStart:"xw01apr",backgroundColor:"x1936wsd",borderStartStartRadius:"xbrszos",borderStartEndRadius:"xea3l6g",borderEndEndRadius:"x18isctg",borderEndStartRadius:"x2q3nzr",$$css:!0}};function m(e){var t,n=e.displayType,r=e.link,a=e.msg;if(!(!a&&!r)){var i;if((a==null||(t=a.ctwaContext)==null?void 0:t.isSuspiciousLink)===!0)i=s._(/*BTDS*/"Enlace sospechoso");else if(r){var l;(l=r.suspiciousCharacters)!=null&&l.size&&(i=s._(/*BTDS*/"Enlace sospechoso"))}else if(a){var u=o("WAWebMsgLinks").getSuspiciousLinks(a).length;if(u){var c=o("WAWebMsgLinks").getLinksFromMsg(a).length;c===1||n===o("WAWebDisplayType").DISPLAY_TYPE.GALLERY?i=s._(/*BTDS*/"Enlace sospechoso"):i=s._(/*BTDS*/"_j{\"*\":\"{count} enlaces sospechosos\",\"4\":\"{count} enlace sospechoso\",\"_1\":\"1 enlace sospechoso\"}",[s._plural(u,"count")])}}return i}}function p(e){var t,n=m(e);return n==null?null:c.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(d.container,o("WAWebUISpacing").uiPadding.horiz8,o("WAWebUISpacing").uiMargin.end6,o("WAWebUISpacing").uiMargin.bottom2,((t=e.msg)==null?void 0:t.ctwaContext)!=null&&o("WAWebUISpacing").uiMargin.bottom3,e.link&&o("WAWebUISpacing").uiMargin.top3,e.link&&o("WAWebUISpacing").uiMargin.bottom5),{children:[c.jsx(o("WAWebAlertIcon.react").AlertIcon,{displayInline:!0,xstyle:[d.icon,o("WAWebUISpacing").uiMargin.top4,o("WAWebUISpacing").uiMargin.end4]}),c.jsx("span",{className:"x1n2onr6 x1c7jfne x190qgfh x1fcty0u x17t9dm2 xtvhhri",children:n})]}))}p.displayName=p.name+" [from "+i.id+"]",l.getSuspiciousLabel=m,l.SuspiciousLabel=p}),226); __d("WAWebChatMsgIcon.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="chat-msg";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=29,R=28;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 28 29",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:"M3.56494 8.6945C3.56494 7.22174 4.75885 6.02783 6.23161 6.02783H26.2658C27.0701 6.02783 27.5453 6.92903 27.091 7.59269L24.4353 11.4723V21.2501C24.4353 22.7228 23.2414 23.9167 21.7686 23.9167H6.23161C4.75885 23.9167 3.56494 22.7228 3.56494 21.2501V8.6945ZM7.2916 12.4723C7.2916 11.92 7.73932 11.4723 8.2916 11.4723H19.7083C20.2606 11.4723 20.7083 11.92 20.7083 12.4723V12.8056C20.7083 13.3579 20.2606 13.8056 19.7083 13.8056H8.2916C7.73932 13.8056 7.2916 13.3579 7.2916 12.8056V12.4723ZM8.2916 16.139C7.73932 16.139 7.2916 16.5867 7.2916 17.139V17.4723C7.2916 18.0246 7.73932 18.4723 8.2916 18.4723H14.4907C15.043 18.4723 15.4907 18.0246 15.4907 17.4723V17.139C15.4907 16.5867 15.043 16.139 14.4907 16.139H8.2916Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ChatMsgIcon=m}),98); __d("WAWebMessageTopIndicatorText.react",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.children;return s.jsx("span",{className:"x1n2onr6 x1qiirwl xdj266r x1p8j9ns xat24cr x7phf20 x13a8xbf x1k4tb9n xhslqc4",children:t})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMessageViaAdIndicator.react",["fbt","WAWebAdAttributionUtils","WAWebChatMsgIcon.react","WAWebClassnames","WAWebMessageTopIndicatorText.react","WAWebStateUtils","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={icon:{display:"x1rg5ohu",color:"xhslqc4",$$css:!0},container:{height:"xhvdbge",lineHeight:"x17fgdl5",$$css:!0}};function m(e){var t=e.className,n=e.xstyle,a=o("WAWebStateUtils").unproxy(e.msg);if(!o("WAWebAdAttributionUtils").shouldShowAdAttribution(a))return null;var i={x:3,y:2,width:25,height:25};return c.jsxs("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((u||(u=r("stylex")))(d.container,o("WAWebUISpacing").uiMargin.vert4,o("WAWebUISpacing").uiMargin.end4,o("WAWebUISpacing").uiMargin.start8,n),t),children:[c.jsx(o("WAWebChatMsgIcon.react").ChatMsgIcon,{xstyle:d.icon,height:16,width:16,viewBox:i}),c.jsx(r("WAWebMessageTopIndicatorText.react"),{children:s._(/*BTDS*/"Mensaje a trav\u00e9s de un anuncio")})]})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebBizCtwaContext.react",["WAWebBizCtwaAGMUtils","WAWebBizCtwaContextImagePreview.react","WAWebBizCtwaContextLargeImagePreview.react","WAWebBizCtwaContextVideoPreview.react","WAWebBizCtwaPreview.react","WAWebBizGatingUtils","WAWebBizSuspiciousLabel.react","WAWebCtwaAGMUtils","WAWebMessageViaAdIndicator.react","WAWebMsgGetters","WAWebMsgType","WAWebProtobufsE2E.pb","WAWebStateUtils","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.ctwaContext;if(n==null||n.sourceUrl==null||n.mediaType===o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.NONE||n.adContextPreviewDismissed===!0&&o("WAWebBizGatingUtils").isHideAdContextIfSoftDismissed())return null;var a=o("WAWebCtwaAGMUtils").isWamoAGMIntegrationEnabled(n.sourceApp)&&n.automatedGreetingMessageShown===!0;return a?t.type===o("WAWebMsgType").MSG_TYPE.AUTOMATED_GREETING_MESSAGE&&(n.mediaType===o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.VIDEO||n.mediaType===o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.IMAGE)?s.jsx(r("WAWebBizCtwaPreview.react"),{context:n,msg:t}):null:n.mediaType===o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.VIDEO?s.jsx(r("WAWebBizCtwaContextVideoPreview.react"),{msg:t,context:n}):n.mediaType===o("WAWebProtobufsE2E.pb").ContextInfo$ExternalAdReplyInfo$MediaType.IMAGE?o("WAWebBizGatingUtils").isAdsAttributionEnabled()?s.jsx(r("WAWebBizCtwaContextLargeImagePreview.react"),{context:n,msg:t}):s.jsx(r("WAWebBizCtwaContextImagePreview.react"),{context:n,isSentByMe:o("WAWebMsgGetters").getIsSentByMe(t),compose:!1}):null}u.displayName=u.name+" [from "+i.id+"]";function c(e){var t,n,a=e.msg,i=e.wrapperClass,l=o("WAWebStateUtils").unproxy(a),c=l.ctwaContext;if(c==null)return null;var d=c.isSuspiciousLink===!0?s.jsx(o("WAWebBizSuspiciousLabel.react").SuspiciousLabel,{msg:l}):null,m=c.alwaysShowAdAttribution===!0?s.jsx(r("WAWebMessageViaAdIndicator.react"),{msg:l}):null;return s.jsxs("div",{className:l.type!==o("WAWebMsgType").MSG_TYPE.AUTOMATED_GREETING_MESSAGE||o("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessage((t=l.ctwaContext)==null?void 0:t.sourceApp,l.type,(n=l.ctwaContext)==null?void 0:n.automatedGreetingMessageShown)?i:"",children:[d,m,s.jsx(u,{msg:l})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMessageAuthor.react",["cx","fbt","WALogger","WANullthrows","WAWebChatCollection","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatParticipantColor","WAWebClassnames","WAWebCmd","WAWebConnModel","WAWebContactGetters","WAWebDisplayType","WAWebElevatedPushNamesFlag","WAWebEmojiText.react","WAWebFindChatAction","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebGroupChatProfilePicture.react","WAWebLidMigrationUtils","WAWebMemberLabelRenderer.react","WAWebMemberLabelsFrontendUtils","WAWebMessageUiUtils","WAWebMiscGatingUtils","WAWebMsgGetters","WAWebMsgType","WAWebPsaVerifiedBlueIcon.react","WAWebPsaVerifiedIcon.react","WAWebQuotedMessageUserJourneyLogger","WAWebSimpleSignalPNToFBIDMigration","WAWebUISpacing","WAWebWid","fbs","isStringNullOrEmpty","react","stylex","useWAWebContactFormattedUsernameOrPhoneByChat","useWAWebContactValues","useWAWebDefaultProfileColors","useWAWebGroupColors","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m=c||(c=r("react"));function p(e,t,n,r){if(o("WAWebMsgGetters").getIsBotFutureproofPlaceholder(r))return u._(/*BTDS*/"Meta AI").toString();if(t)return e+" \xB7 "+u._(/*BTDS*/"Estados").toString();if(n){var a=o("WAWebChatCollection").ChatCollection.get(n),i=a?a.formattedTitle:u._(/*BTDS*/"Grupo").toString();return i?e+" \xB7 "+i:e}return e}var _={picInBubble:{position:"x1n2onr6",$$css:!0},authorElevatedPushNames:{display:"x78zum5",$$css:!0},authorLabel:{lineHeight:"x1fc57z9",$$css:!0},label:{color:"x1bvqhpb",lineHeight:"x1d3mw78",fontWeight:"x1fcty0u",$$css:!0},groupHistoryMessage:{filter:"x1olsc1v",$$css:!0}};function f(t){var n,a,i,l,s=t.albumId,c=t.chat,f=t.disableClick,g=t.displayType,h=t.msg,y=t.quotedRemoteJid,C=t.showMemberLabel,b=C===void 0?!0:C,v=t.stopClickPropagation,S=v===void 0?!1:v,R=o("useWAWebMsgValues").useMsgValues(t.msg.id,[o("WAWebMsgGetters").getSender,o("WAWebMsgGetters").getType,o("WAWebMsgGetters").getIsLive,o("WAWebMsgGetters").getIsStatus,o("WAWebMsgGetters").getId,o("WAWebMsgGetters").getQuotedMsg,o("WAWebFrontendMsgGetters").getShouldDisplaySelf,o("WAWebMsgGetters").getGroupHistoryBundleMessageKey]),L=R[0],E=R[1],k=R[2],I=R[3],T=R[4],D=R[5],x=R[6],$=R[7],P=L==null?L:(n=o("WAWebSimpleSignalPNToFBIDMigration").getDeprecatedPnChatForFbidInvoke(L))!=null?n:L,N=o("WAWebFrontendMsgGetters").getMaybeChat(t.msg.unsafe()),M=(a=o("WAWebSimpleSignalPNToFBIDMigration").getDeprecatedPnChatForFbidInvoke(t.contact.id))!=null?a:t.contact.id,w=o("useWAWebContactValues").useContactValues(M,[o("WAWebContactGetters").getId,o("WAWebFrontendContactGetters").getFormattedName,o("WAWebContactGetters").getIsSupportAccount,o("WAWebContactGetters").getName,o("WAWebContactGetters").getNotifyName,o("WAWebContactGetters").getPushname,o("WAWebContactGetters").getVerifiedLevel,o("WAWebContactGetters").getVerifiedName]),A=w[0],F=w[1],O=w[2],B=w[3],W=w[4],q=w[5],U=w[6],V=w[7],H=r("useWAWebContactFormattedUsernameOrPhoneByChat")(N,t.contact),G=H.formattedUsernameOrPhone,z=H.isPhoneNumberForceMasked,j=!!f||z===!0,K=o("WAWebElevatedPushNamesFlag").elevatedPushNamesEnabled(N),Q=g===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT||g===o("WAWebDisplayType").DISPLAY_TYPE.BOT_INVOKE_RESPONSE,X=function(t){var e=P;e!=null&&(N!=null&&o("WAWebChatGetters").getIsGroup(N)&&(e=o("WAWebChatGroupUtils").getOneToOneContactFromGroupContact(e,"message_author_handle_click")),e!=null&&(S&&t.stopPropagation(),o("WAWebFindChatAction").findOrCreateLatestChat(e,"messageAuthor").then(function(e){var t=e.chat,n=N!=null&&(o("WAWebChatGetters").getIsGroup(N)||o("WAWebChatGetters").getIsNewsletter(N))?N:void 0;o("WAWebCmd").Cmd.chatInfoDrawer(t,{sourceGroupChatOrNewsletter:n})})))},Y=c||N;Y||o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Assertion failed!"]))).sendLogs("author-with-no-chat");var J=Y&&P?o("WAWebChatParticipantColor").getAssignedColor(Y,P,"WAWebMessageAuthor-"+((i=o("WAWebQuotedMessageUserJourneyLogger").getChatType(Y.id))!=null?i:"")):1,Z=j||o("WAWebMsgGetters").getIsBotFutureproofPlaceholder(h)?null:X,ee=b&&o("WAWebMemberLabelsFrontendUtils").shouldShowMemberLabelForMsg(h)?m.jsx(r("WAWebMemberLabelRenderer.react"),{memberLabelArgs:{from:"message",message:h},onClick:X}):null,te=o("useWAWebDefaultProfileColors").useDefaultProfileColors(P),ne=te.foreground,re=o("useWAWebGroupColors").useGroupsColorStyle(J,"color"),oe=o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ahxj",(l={},l._ahxz=Z,l),(d||(d=r("stylex")))(K&&_.authorElevatedPushNames,(E===o("WAWebMsgType").MSG_TYPE.POLL_CREATION||E===o("WAWebMsgType").MSG_TYPE.POLL_RESULT_SNAPSHOT||E===o("WAWebMsgType").MSG_TYPE.EVENT_CREATION)&&o("WAWebUISpacing").uiPadding.start4,Q&&_.picInBubble,ne!=null?ne:re,$!=null&&_.groupHistoryMessage)),ae;if(x)ae=m.jsx(o("WAWebEmojiText.react").EmojiText,{text:p(r("fbs")._(/*BTDS*/"T\u00fa").toString(),I,y,h)});else if(B||o("WAWebMsgGetters").getIsGroupStatus(h)||V&&U!==0||O){var ie=o("WAWebLidMigrationUtils").getShouldShowLidDebugUI(A),le=B!=null?B:V;o("WAWebMsgGetters").getIsGroupStatus(h)&&(le=q),le=ie?le+" [LID]":le,ae=[m.jsx(o("WAWebEmojiText.react").EmojiText,{text:p(O?F:le,I,y,h),className:"_ahxt",testid:void 0,onClick:Z},"author")]}else if(r("WAWebWid").isPSA(A)){var se=o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ahxt","_al63"),ue=o("WAWebConnModel").Conn.isSMB?"WhatsApp Business":"WhatsApp";ae=[m.jsx(o("WAWebEmojiText.react").EmojiText,{text:p(ue,I,y,h),className:se,testid:void 0,onClick:Z},"author"),m.jsx("div",{className:"_ahx-",children:o("WAWebMiscGatingUtils").isBlueEnabled()?m.jsx(o("WAWebPsaVerifiedBlueIcon.react").PsaVerifiedBlueIcon,{}):m.jsx(o("WAWebPsaVerifiedIcon.react").PsaVerifiedIcon,{})},"authorCheckMark")]}else if(K){if(ae=[],!I){var ce=r("isStringNullOrEmpty")(s)?T.toString()+"-push-name":s+"-push-name",de=W!=null?W:q;ae=[m.jsx(o("WAWebEmojiText.react").EmojiText,{className:"_ahxy",testid:void 0,onClick:Z,direction:"auto",ellipsify:!0,text:de,ariaLabel:o("WAWebMessageUiUtils").getAriaLabelForMaybeName(de)},ce)]}var me=A!=null&&A.isLid()?G:p(G,I,y,h),pe=m.jsx("span",{className:"_ahx_",testid:void 0,role:Z?"button":null,onClick:Z,children:me},T.toString()+"-number");ae.push(pe)}else{var _e=A!=null&&A.isLid()?G:p(G,I,y,h);ae=[m.jsx("span",{className:"_ahxu",role:Z?"button":null,testid:void 0,onClick:Z,children:_e},T.toString()+"-number")];var fe=ae;if(!I){var ge=r("isStringNullOrEmpty")(s)?T.toString()+"-push-name":s+"-push-name",he;r("isStringNullOrEmpty")(W)?he=q:he=W,fe.push(m.jsx(o("WAWebEmojiText.react").EmojiText,{className:"_ahxv",testid:void 0,onClick:Z,direction:"auto",ellipsify:!0,text:he},ge))}}if(Q){var ye,Ce,be=g===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT&&P!=null&&!!(!(Y==null||(ye=Y.groupMetadata)==null||(ye=ye.participants)==null||(ye=ye.get(P))==null)&&ye.isAdmin);return be&&(Ce=u._(/*BTDS*/"Admin. de la comunidad")),m.jsxs("div",{className:oe,role:t.role||"",children:[m.jsx("div",babelHelpers.extends({},(d||(d=r("stylex"))).props(o("WAWebUISpacing").uiMargin.end9,be&&o("WAWebUISpacing").uiMargin.vert6),{children:m.jsx(r("WAWebGroupChatProfilePicture.react"),{userContact:t.contact,chatWid:r("WANullthrows")(Y).id,disableClick:j,usePicInBubbleLayout:!0})})),m.jsxs("div",{className:"x78zum5 xdt5ytf x1cy8zhl xl56j7k x6ikm8r x10wlt62",children:[m.jsx("div",babelHelpers.extends({},d.props(_.authorLabel,K&&_.authorElevatedPushNames,o("WAWebUISpacing").uiMargin.top4,o("WAWebUISpacing").uiMargin.bottom2),{children:ae})),Ce&&m.jsx("div",babelHelpers.extends({},(d||(d=r("stylex"))).props(_.label,o("WAWebUISpacing").uiMargin.top2,o("WAWebUISpacing").uiMargin.bottom4),{children:Ce})),ee]})]})}return m.jsxs(m.Fragment,{children:[m.jsx("div",{className:oe,role:t.role||"",children:ae}),m.jsx("div",{children:ee})]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebForwardRefreshedIcon.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="forward-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M19.175 11L15.3 7.12505C15.1 6.92505 15 6.68755 15 6.41255C15 6.13755 15.1 5.90005 15.3 5.70005C15.5 5.51672 15.7375 5.42505 16.0125 5.42505C16.2875 5.42505 16.5167 5.51672 16.7 5.70005L21.3 10.3C21.4 10.4 21.4708 10.5084 21.5125 10.625C21.5542 10.7417 21.575 10.8667 21.575 11C21.575 11.1334 21.5542 11.2584 21.5125 11.375C21.4708 11.4917 21.4 11.6 21.3 11.7L16.7 16.3C16.5 16.5 16.2667 16.5959 16 16.5875C15.7333 16.5792 15.5 16.4834 15.3 16.3C15.1 16.1 14.9958 15.8667 14.9875 15.6C14.9792 15.3334 15.075 15.1 15.275 14.9L19.175 11ZM13.175 12H7C6.16667 12 5.45833 12.2917 4.875 12.875C4.29167 13.4584 4 14.1667 4 15V18C4 18.2834 3.90417 18.5209 3.7125 18.7125C3.52083 18.9042 3.28333 19 3 19C2.71667 19 2.47917 18.9042 2.2875 18.7125C2.09583 18.5209 2 18.2834 2 18V15C2 13.6167 2.4875 12.4375 3.4625 11.4625C4.4375 10.4875 5.61667 10 7 10H13.175L10.3 7.12505C10.1 6.92505 10 6.68755 10 6.41255C10 6.13755 10.1 5.90005 10.3 5.70005C10.5 5.51672 10.7375 5.42505 11.0125 5.42505C11.2875 5.42505 11.5167 5.51672 11.7 5.70005L16.3 10.3C16.4 10.4 16.4708 10.5084 16.5125 10.625C16.5542 10.7417 16.575 10.8667 16.575 11C16.575 11.1334 16.5542 11.2584 16.5125 11.375C16.4708 11.4917 16.4 11.6 16.3 11.7L11.7 16.3C11.5 16.5 11.2667 16.5959 11 16.5875C10.7333 16.5792 10.5 16.4834 10.3 16.3C10.1 16.1 9.99583 15.8667 9.9875 15.6C9.97917 15.3334 10.075 15.1 10.275 14.9L13.175 12Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ForwardRefreshedIcon=m}),98); __d("WAWebForwardUtils",["fbt","WAWebActionToast.react","WAWebMsgGetters","WAWebMsgType","WAWebToast.react","WAWebToastManager","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){return o("WAWebMsgGetters").getIsFrequentlyForwarded(e)?s._(/*BTDS*/"Reenviado muchas veces"):o("WAWebMsgGetters").getType(e)===o("WAWebMsgType").MSG_TYPE.RICH_RESPONSE?s._(/*BTDS*/"Reenviado desde Meta AI"):s._(/*BTDS*/"Reenviado")}function d(e){var t=s._(/*BTDS*/"_j{\"*\":\"Se reenviaron {number_of_messages} elementos.\",\"_1\":\"Se reenvi\\u00f3 1 elemento.\"}",[s._plural(e,"number_of_messages")]);o("WAWebToastManager").ToastManager.open(u.jsx(o("WAWebToast.react").Toast,{id:o("WAWebActionToast.react").genId(),msg:t,duration:4e3}))}l.getForwardedIndicatorText=c,l.showForwardedToast=d}),226); __d("WAWebShowForwardedNewsletterMessageIndicator",["WAWebNewsletterGatingUtils"],(function(t,n,r,o,a,i,l){"use strict";var e=new Set(["sticker","revoked"]),s=new Set(["revoked"]);function u(t,n,r){var a=t!=null&&o("WAWebNewsletterGatingUtils").isStickerForwardedAttributionEnabled()?s:e;return t!=null&&t.newsletterId!=null&&!a.has(n)&&r()}l.showForwardedNewsletterMessageIndicator=u}),98); __d("useWAWebForwardedNewsletterMessageClickHandler",["WAJids","WAWebChatEntryPoint","WAWebNewsletterApiParse","WAWebNewsletterExecApiCmd","WAWebNewsletterOpenAtAction","WAWebShowForwardedNewsletterMessageIndicator","WAWebWamEnumTsSurface"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){var n=e.forwardedNewsletterMessageInfo,r=e.type;if(!o("WAWebShowForwardedNewsletterMessageIndicator").showForwardedNewsletterMessageIndicator(n,r,t))return null;var a=n.newsletterId,i=n.serverMessageId;if(a==null)return null;var l=function(){a===e.id.remote&&i!=null?o("WAWebNewsletterOpenAtAction").openNewsletterAt({newsletterJid:o("WAJids").toNewsletterJid(a.toJid()),serverId:i}):o("WAWebNewsletterExecApiCmd").execNewsletterApiCmd({identifier:a.toString(),identifierType:o("WAWebNewsletterApiParse").NewsletterIdentifierType.Id,type:"view",chatEntryPoint:o("WAWebChatEntryPoint").ChatEntryPoint.ForwardedNewsletterMessage,discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD,serverId:i})};return l}l.useForwardedNewsletterMessageClickHandler=e}),98); __d("WAWebForwardedNewsletterMessageInfoHeader.react",["fbt","WAWebBoolFunc","WAWebText.react","WAWebUISpacing","react","stylex","useWAWebForwardedNewsletterMessageClickHandler"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react"));function d(e){var t,n=e.msg,a=o("useWAWebForwardedNewsletterMessageClickHandler").useForwardedNewsletterMessageClickHandler(n,o("WAWebBoolFunc").returnTrue);if(a==null)return null;var i=(t=n.forwardedNewsletterMessageInfo)==null?void 0:t.newsletterName,l=i!=null?i:s._(/*BTDS*/"Ver canal");return c.jsx("div",babelHelpers.extends({"data-testid":void 0},(u||(u=r("stylex"))).props(o("WAWebUISpacing").uiPadding.vert3),{children:c.jsx(o("WAWebText.react").WAWebClickableText,{onClick:a,children:c.jsx(o("WAWebText.react").WAWebTextSmall,{weight:"semibold",color:"link",children:l})})}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebSTWGatingUtils",["WAWebABProps"],(function(t,n,r,o,a,i,l){"use strict";function e(){return o("WAWebABProps").getABPropConfigValue("search_the_web_dialog_redesign")}function s(){return o("WAWebABProps").getABPropConfigValue("search_the_web_text_search")}function u(){return o("WAWebABProps").getABPropConfigValue("search_the_web_url_offer")}function c(){return o("WAWebABProps").getABPropConfigValue("search_the_web_image_search")}function d(){return o("WAWebABProps").getABPropConfigValue("search_the_web_design_experiment_v1")}l.isSearchTheWebEnabled=e,l.isSearchTheWebTextSearchEnabled=s,l.isSearchTheWebURLSearchEnabled=u,l.isSearchTheWebImageSearchEnabled=c,l.isSearchTheWebDesignExperimentV1Enabled=d}),98); __d("WAWebGoogleLensIcon.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="google-lens";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M18.0088 20C19.1133 20 20.0088 19.1046 20.0088 18C20.0088 16.8954 19.1133 16 18.0088 16C16.9042 16 16.0088 16.8954 16.0088 18C16.0088 19.1046 16.9042 20 18.0088 20Z",fill:"currentColor"}),c.jsx("path",{d:"M12.0087 16C13.6656 16 15.0087 14.6569 15.0087 13C15.0087 11.3431 13.6656 10 12.0087 10C10.3519 10 9.00875 11.3431 9.00875 13C9.00875 14.6569 10.3519 16 12.0087 16Z",fill:"currentColor"}),c.jsx("path",{d:"M3 16.9C3 19.1637 4.83625 21 7.1 21H10.9988C11.5517 21 12 20.5517 12 19.9988C12 19.4468 11.5532 18.9989 11.0013 18.9975L6.9875 18.9875C5.8875 18.9875 5 17.9638 5 16.75V15.5C5 14.9477 4.55228 14.5 4 14.5C3.44772 14.5 3 14.9477 3 15.5V16.9Z",fill:"currentColor"}),c.jsx("path",{d:"M9.7 3.4C9.88885 3.14819 10.1852 3 10.5 3H13.5C13.8148 3 14.1111 3.14819 14.3 3.4L15.2 4.6C15.3889 4.85181 15.6852 5 16 5H16.9C19.1637 5 21 6.83625 21 9.1V12C21 12.5523 20.5523 13 20 13C19.4477 13 19 12.5523 19 12V9.25C19 8.03625 18.1 7 17 7H7C5.9 7 5 8.03625 5 9.25V10.5C5 11.0523 4.55228 11.5 4 11.5C3.44772 11.5 3 11.0523 3 10.5V9.1C3 6.83625 4.83625 5 7.1 5H8C8.31476 5 8.61115 4.85181 8.8 4.6L9.7 3.4Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.GoogleLensIcon=m}),98); __d("WAWebHfmTextSearchCompleteWamEvent",["WAWebWamCodegenUtils"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({HfmTextSearchComplete:[2186,{},[1,1,1],"regular"]},{HfmTextSearchComplete:[]});l.HfmTextSearchCompleteWamEvent=e}),98); __d("WAWebWamEnumImageSearchFailedErrorType",[],(function(t,n,r,o,a,i){var e=Object.freeze({NON_200_RESPONSE:0,NON_302_RESPONSE:1,NULL_RESPONSE_BODY:2,DECODE_OR_PARSE_ERROR:3,NO_REDIRECT_URL:4,INVALID_URL:5,CONSENT_FORM_IN_URL:6,NETWORK_ERROR:7,UNKNOWN_ERROR:8});i.IMAGE_SEARCH_FAILED_ERROR_TYPE=e}),66); __d("WAWebSTWImage",["$InternalEnum","WALogger","WAWebMiscErrors","WAWebPonyfillsFetch","WAWebWamEnumImageSearchFailedErrorType","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=n("$InternalEnum").Mirrored(["NO_INTERNET_CONNECTION","NON_200_RESPONSE","NULL_RESPONSE_BODY","DECODE_OR_PARSE_ERROR","NO_REDIRECT_URL","CONSENT_FORM_IN_URL"]);function d(e){if(e instanceof o("WAWebMiscErrors").GoogleLensApiError)switch(e.error){case c.NO_INTERNET_CONNECTION:return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.NETWORK_ERROR;case c.NON_200_RESPONSE:return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.NON_200_RESPONSE;case c.NULL_RESPONSE_BODY:return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.NULL_RESPONSE_BODY;case c.DECODE_OR_PARSE_ERROR:return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.DECODE_OR_PARSE_ERROR;case c.NO_REDIRECT_URL:return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.NO_REDIRECT_URL;case c.CONSENT_FORM_IN_URL:return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.CONSENT_FORM_IN_URL}return o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE.UNKNOWN_ERROR}function m(e){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n=new Headers,a=new FormData;a.append("encoded_image",t,"imageForSearch.jpeg");try{var i,l={method:"POST",body:a,headers:n},d;try{d=yield r("WAWebPonyfillsFetch")("https://lens.google.com/upload?"+new URLSearchParams({rjr:"1",ep:"wil",ctx:"wa1"}).toString(),l)}catch(t){throw o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Google Lens API fetch error"]))).tags("STW"),new(o("WAWebMiscErrors")).GoogleLensApiError(c.NON_200_RESPONSE)}if(!d.ok)throw o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["Google Lens API returned non successful response"]))).tags("STW"),new(o("WAWebMiscErrors")).GoogleLensApiError(c.NON_200_RESPONSE);var m=new TextDecoder,p=yield(i=d.body)==null?void 0:i.getReader().read();if((p==null?void 0:p.value)==null)throw o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["No search url returned while running image seach on web"]))).tags("STW"),new(o("WAWebMiscErrors")).GoogleLensApiError(c.NULL_RESPONSE_BODY);var _=m.decode(p==null?void 0:p.value),f=JSON.parse(_.slice(5));return f.redirect_url}catch(e){throw e instanceof o("WAWebMiscErrors").GoogleLensApiError?e:new(o("WAWebMiscErrors")).GoogleLensApiError(c.DECODE_OR_PARSE_ERROR)}}),p.apply(this,arguments)}l.LensApiErrorType=c,l.getImageSearchWamErrorType=d,l.getImageSearchUrl=m}),98); __d("WAWebSTWText",["WAUnicodeUtils","WAWebURLUtils"],(function(t,n,r,o,a,i,l){"use strict";var e="https://www.google.com/gasearch",s=2e3;function u(t){var n=o("WAUnicodeUtils").firstNEncodedBytes(t,s),a="wa1",i=r("WAWebURLUtils").build(e,{ctx:a,q:n});return i}function c(t){var n=o("WAUnicodeUtils").firstNEncodedBytes(t,s),a="wa1",i="1",l=r("WAWebURLUtils").build(e,{ctx:a,gsas:i,q:n,tbm:"ilp"});return l}l.createTextSearchLink=u,l.createUrlSearchLink=c}),98); __d("WAWebSearchTextIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="search-text";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M3 19C2.71667 19 2.47917 18.9042 2.2875 18.7125C2.09583 18.5208 2 18.2833 2 18C2 17.7167 2.09583 17.4792 2.2875 17.2875C2.47917 17.0958 2.71667 17 3 17H11C11.2833 17 11.5208 17.0958 11.7125 17.2875C11.9042 17.4792 12 17.7167 12 18C12 18.2833 11.9042 18.5208 11.7125 18.7125C11.5208 18.9042 11.2833 19 11 19H3ZM3 14C2.71667 14 2.47917 13.9042 2.2875 13.7125C2.09583 13.5208 2 13.2833 2 13C2 12.7167 2.09583 12.4792 2.2875 12.2875C2.47917 12.0958 2.71667 12 3 12H6C6.28333 12 6.52083 12.0958 6.7125 12.2875C6.90417 12.4792 7 12.7167 7 13C7 13.2833 6.90417 13.5208 6.7125 13.7125C6.52083 13.9042 6.28333 14 6 14H3ZM3 9C2.71667 9 2.47917 8.90417 2.2875 8.7125C2.09583 8.52083 2 8.28333 2 8C2 7.71667 2.09583 7.47917 2.2875 7.2875C2.47917 7.09583 2.71667 7 3 7H6C6.28333 7 6.52083 7.09583 6.7125 7.2875C6.90417 7.47917 7 7.71667 7 8C7 8.28333 6.90417 8.52083 6.7125 8.7125C6.52083 8.90417 6.28333 9 6 9H3ZM14 16C12.6167 16 11.4375 15.5125 10.4625 14.5375C9.4875 13.5625 9 12.3833 9 11C9 9.61667 9.4875 8.4375 10.4625 7.4625C11.4375 6.4875 12.6167 6 14 6C15.3833 6 16.5625 6.4875 17.5375 7.4625C18.5125 8.4375 19 9.61667 19 11C19 11.4833 18.9292 11.9625 18.7875 12.4375C18.6458 12.9125 18.4333 13.35 18.15 13.75L21.3 16.9C21.4833 17.0833 21.575 17.3167 21.575 17.6C21.575 17.8833 21.4833 18.1167 21.3 18.3C21.1167 18.4833 20.8833 18.575 20.6 18.575C20.3167 18.575 20.0833 18.4833 19.9 18.3L16.75 15.15C16.35 15.4333 15.9125 15.6458 15.4375 15.7875C14.9625 15.9292 14.4833 16 14 16ZM14 14C14.8333 14 15.5417 13.7083 16.125 13.125C16.7083 12.5417 17 11.8333 17 11C17 10.1667 16.7083 9.45833 16.125 8.875C15.5417 8.29167 14.8333 8 14 8C13.1667 8 12.4583 8.29167 11.875 8.875C11.2917 9.45833 11 10.1667 11 11C11 11.8333 11.2917 12.5417 11.875 13.125C12.4583 13.7083 13.1667 14 14 14Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SearchTextIcon=m}),98); __d("WAWebWamEnumStwEntryPoint",[],(function(t,n,r,o,a,i){var e=Object.freeze({HIGHLY_FORWARDED_MESSAGE:0,URL_LONG_PRESS:1,MEDIA_VIEWER:2,CONTEXT_MENU:3});i.STW_ENTRY_POINT=e}),66); __d("WAWebWamEnumStwFormat",[],(function(t,n,r,o,a,i){var e=Object.freeze({SINGLE_LINK:0,SINGLE_IMAGE:1,SINGLE_TEXT:2,MULTIPLE_LINK_IMAGE:3,MULTIPLE_LINK_TEXT:4,MULTIPLE_IMAGE_TEXT:5,MULTIPLE_LINK_IMAGE_TEXT:6});i.STW_FORMAT=e}),66); __d("WAWebWamEnumStwInteraction",[],(function(t,n,r,o,a,i){var e=Object.freeze({ENTRY_POINT_SURFACED:0,ENTRY_POINT_CLICKED:1,LINK_SEARCH_CLICKED:2,IMAGE_SEARCH_CLICKED:3,TEXT_SEARCH_CLICKED:4,SEARCH_CLICKED:5,STW_DISMISSED:6,LEARN_MORE_CLICKED:7,LINK_OPEN_CLICKED:8,LINK_COPY_CLICKED:9,LINK_ADD_TO_READING_LIST:10,IMAGE_SEARCH_REDIRECT:11,IMAGE_SEARCH_FAILED:12});i.STW_INTERACTION=e}),66); __d("WAWebSearchTheWebFunnelWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumImageSearchFailedErrorType","WAWebWamEnumMessageType","WAWebWamEnumStwEntryPoint","WAWebWamEnumStwFormat","WAWebWamEnumStwInteraction"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({SearchTheWebFunnel:[5702,{imageSearchFailedErrorType:[5,o("WAWebWamEnumImageSearchFailedErrorType").IMAGE_SEARCH_FAILED_ERROR_TYPE],messageType:[1,o("WAWebWamEnumMessageType").MESSAGE_TYPE],stwEntryPoint:[2,o("WAWebWamEnumStwEntryPoint").STW_ENTRY_POINT],stwFormat:[3,o("WAWebWamEnumStwFormat").STW_FORMAT],stwInteraction:[4,o("WAWebWamEnumStwInteraction").STW_INTERACTION]},[1,1,1],"regular"]},{SearchTheWebFunnel:[]});l.SearchTheWebFunnelWamEvent=e}),98); __d("WAWebSearchTheWebEventLogger",["WAWebSTWGatingUtils","WAWebSearchTheWebFunnelWamEvent"],(function(t,n,r,o,a,i,l){"use strict";function e(e){if(o("WAWebSTWGatingUtils").isSearchTheWebEnabled()){var t=e.messageType,n=e.stwEntryPoint,r=e.stwFormat,a=e.stwInteraction,i=e.stwLensApiErrorType;new(o("WAWebSearchTheWebFunnelWamEvent")).SearchTheWebFunnelWamEvent({stwEntryPoint:n,stwFormat:r,stwInteraction:a,imageSearchFailedErrorType:i,messageType:t}).commit()}}l.logSTWEvent=e}),98); __d("WAWebSearchTheWebCommonUtils",["fbt","$InternalEnum","WALogger","WAWebCellV2.react","WAWebExternalLink.react","WAWebFaqUrl","WAWebFlex.react","WAWebFrontendMsgGetters","WAWebGoogleLensIcon.react","WAWebHfmTextSearchCompleteWamEvent","WAWebInfoIcon.react","WAWebMediaInMemoryBlobCache","WAWebMiscErrors","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgLinks","WAWebMsgType","WAWebNetworkStatus","WAWebSTWGatingUtils","WAWebSTWImage","WAWebSTWText","WAWebSearchTextIcon.react","WAWebSearchTheWebEventLogger","WAWebSpinner.react","WAWebText.react","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebWamEnumStwFormat","WAWebWamEnumStwInteraction","asyncToGeneratorRuntime","getErrorSafe","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=r("react")),m=(u||(u=o("react"))).useState,p=n("$InternalEnum").Mirrored(["TEXT","URL","IMAGE"]),_=24,f=24;function g(){return s._(/*BTDS*/"Revisa la conexi\u00f3n a Internet y vuelve a intentarlo.")}g.displayName=g.name+" [from "+i.id+"]";function h(){return s._(/*BTDS*/"Se produjo un error. Vuelve a intentarlo.")}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=o("WAWebToast.react").genId();o("WAWebToastManager").ToastManager.open(d.jsx(o("WAWebToast.react").Toast,{msg:e,id:t}))}function C(t){if(!o("WAWebSTWGatingUtils").isSearchTheWebEnabled())return new Map;var a=o("WAWebFrontendMsgGetters").getText(t),i=o("WAWebMsgLinks").getLinksFromMsg(t),l=new Map;if(i.length>0&&o("WAWebSTWGatingUtils").isSearchTheWebURLSearchEnabled()){var s=i[0].href;l.set(p.URL,{handleSearchAction:function(t){o("WAWebSearchTheWebEventLogger").logSTWEvent(t),o("WAWebExternalLink.react").openExternalLink(o("WAWebSTWText").createUrlSearchLink(s))}})}if(t.type===o("WAWebMsgType").MSG_TYPE.IMAGE&&o("WAWebMsgActionCapability").canWamoSubMsgBeSharedByUser(t.unsafe(),o("WAWebFrontendMsgGetters").getChat(t))&&o("WAWebSTWGatingUtils").isSearchTheWebImageSearchEnabled()){var u,c=(u=t.mediaObject)==null?void 0:u.filehash;if(c!=null&&o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.has(c)){var d=o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(c);d!=null&&l.set(p.IMAGE,{handleSearchAction:function(a){o("WAWebSearchTheWebEventLogger").logSTWEvent(a);function t(e){return i.apply(this,arguments)}function i(){return i=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){try{if(!r("WAWebNetworkStatus").online)throw y(g()),new(o("WAWebMiscErrors")).GoogleLensApiError(o("WAWebSTWImage").LensApiErrorType.NO_INTERNET_CONNECTION);var n=yield o("WAWebSTWImage").getImageSearchUrl(t);if(n==null)throw new(o("WAWebMiscErrors")).GoogleLensApiError(o("WAWebSTWImage").LensApiErrorType.NO_REDIRECT_URL);if(n.includes("consent"))throw new(o("WAWebMiscErrors")).GoogleLensApiError(o("WAWebSTWImage").LensApiErrorType.CONSENT_FORM_IN_URL);a.stwInteraction=o("WAWebWamEnumStwInteraction").STW_INTERACTION.IMAGE_SEARCH_REDIRECT,o("WAWebSearchTheWebEventLogger").logSTWEvent(a),o("WAWebExternalLink.react").openExternalLink(n)}catch(t){a.stwInteraction=o("WAWebWamEnumStwInteraction").STW_INTERACTION.IMAGE_SEARCH_FAILED,a.stwLensApiErrorType=o("WAWebSTWImage").getImageSearchWamErrorType(r("getErrorSafe")(t)),o("WAWebSearchTheWebEventLogger").logSTWEvent(a),y(h()),o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Error while running image seach on web"]))).tags("STW")}}),i.apply(this,arguments)}return t(d)}})}}return a!=null&&o("WAWebSTWGatingUtils").isSearchTheWebTextSearchEnabled()&&b(a,i)&&l.set(p.TEXT,{handleSearchAction:function(t){o("WAWebSearchTheWebEventLogger").logSTWEvent(t),o("WAWebExternalLink.react").openExternalLink(o("WAWebSTWText").createTextSearchLink(a))}}),l}function b(e,t){if(t.length===0)return!0;var n=e;return t.forEach(function(t){var r=t.href;n=e.replace(r,"")}),n.trim()!==""}function v(){return s._(/*BTDS*/"Obt\u00e9n m\u00e1s informaci\u00f3n sobre este mensaje.")}v.displayName=v.name+" [from "+i.id+"]";function S(){return s._(/*BTDS*/"Buscar en la web")}S.displayName=S.name+" [from "+i.id+"]";function R(){return s._(/*BTDS*/"Buscar en la web")}R.displayName=R.name+" [from "+i.id+"]";function L(){return s._(/*BTDS*/"Buscar")}L.displayName=L.name+" [from "+i.id+"]";function E(e,t,n,r){var a=function(){o("WAWebSearchTheWebEventLogger").logSTWEvent({stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.LEARN_MORE_CLICKED,stwEntryPoint:t,stwFormat:n,messageType:r})};return e?s._(/*BTDS*/"La b\u00fasqueda de m\u00e1s informaci\u00f3n subir\u00e1 solo esta actualizaci\u00f3n a Google. {=m2}",[s._implicitParam("=m2",d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getSearchTheWebFaqUrl(),onClick:a,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))]):s._(/*BTDS*/"La b\u00fasqueda de m\u00e1s informaci\u00f3n subir\u00e1 solo este mensaje a Google. {=m2}",[s._implicitParam("=m2",d.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebFaqUrl").getSearchTheWebFaqUrl(),onClick:a,children:s._(/*BTDS*/"M\u00e1s informaci\u00f3n")}))])}function k(){return s._(/*BTDS*/"Este mensaje no se compartir\u00e1 con WhatsApp.")}k.displayName=k.name+" [from "+i.id+"]";function I(e){switch(e){case p.TEXT:return d.jsx(o("WAWebSearchTextIcon.react").SearchTextIcon,{height:_,width:f});case p.IMAGE:return d.jsx(o("WAWebGoogleLensIcon.react").GoogleLensIcon,{height:_,width:f});case p.URL:return d.jsx(o("WAWebInfoIcon.react").InfoIcon,{height:_,width:f})}}I.displayName=I.name+" [from "+i.id+"]";function T(e){switch(e){case p.TEXT:return s._(/*BTDS*/"Buscar texto");case p.IMAGE:return s._(/*BTDS*/"Buscar imagen");case p.URL:return o("WAWebSTWGatingUtils").isSearchTheWebDesignExperimentV1Enabled()?s._(/*BTDS*/"Buscar informaci\u00f3n del enlace"):s._(/*BTDS*/"M\u00e1s info. del enlace")}}function D(e){var t=e.onSearchClick,a=e.searchType,i=m(!1),l=i[0],s=i[1];return d.jsx(o("WAWebFlex.react").FlexItem,{testid:void 0,paddingTop:8,paddingBottom:8,children:d.jsx(r("WAWebCellV2.react"),{detailLeft:I(a),containerXStyle:[o("WAWebUISpacing").uiPadding.end4,o("WAWebUISpacing").uiPadding.vert4],primaryRightXStyle:[o("WAWebUISpacing").uiPadding.end4,o("WAWebUISpacing").uiPadding.vert4],disabled:l,onClick:n("asyncToGeneratorRuntime").asyncToGenerator(function*(){r("WAWebNetworkStatus").online?(s(!0),yield t(),s(!1),new(o("WAWebHfmTextSearchCompleteWamEvent")).HfmTextSearchCompleteWamEvent().commit(),o("WAWebModalManager").ModalManager.close()):y(g())}),primary:d.jsx(o("WAWebText.react").WAWebTextSectionTitle,{color:"primary",paddingStart:12,children:T(a)}),alignDetailRight:"start",primaryRight:l?d.jsx(o("WAWebSpinner.react").Spinner,{size:20,color:"accent"}):null})})}D.displayName=D.name+" [from "+i.id+"]";function x(e){var t=Array.from(e.keys());if(t.length===1){var n=t[0];switch(n){case p.TEXT:return o("WAWebWamEnumStwFormat").STW_FORMAT.SINGLE_TEXT;case p.URL:return o("WAWebWamEnumStwFormat").STW_FORMAT.SINGLE_LINK;case p.IMAGE:return o("WAWebWamEnumStwFormat").STW_FORMAT.SINGLE_IMAGE}}else if(t.length===2){if(t.includes(p.URL)&&t.includes(p.TEXT))return o("WAWebWamEnumStwFormat").STW_FORMAT.MULTIPLE_LINK_TEXT;if(t.includes(p.URL)&&t.includes(p.IMAGE))return o("WAWebWamEnumStwFormat").STW_FORMAT.MULTIPLE_LINK_IMAGE;if(t.includes(p.TEXT)&&t.includes(p.IMAGE))return o("WAWebWamEnumStwFormat").STW_FORMAT.MULTIPLE_IMAGE_TEXT}return o("WAWebWamEnumStwFormat").STW_FORMAT.MULTIPLE_LINK_IMAGE_TEXT}l.SearchType=p,l.getNoInternetToastMsg=g,l.showSearchFailureToast=y,l.getSupportedSearchOptions=C,l.getHFMHeaderText=v,l.getHFMHeaderCTAText=S,l.getModalTitleText=R,l.getModalSearchActionText=L,l.getModalHeaderText=E,l.getModalHeaderSubtext=k,l.SearchModalRow=D,l.getSTWFormat=x}),226); __d("WAWebWdsPictoWebsearchIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="wds-picto-websearch";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=88,R=132;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:"#E6FFDA",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M57.6 78.6a34.6 34.6 0 1 0 0-69.2 34.6 34.6 0 0 0 0 69.2Z"}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M72.23 75.36c9.05-4.22 9.84-21.68 1.76-39S52.03 8.42 42.98 12.64c-9.05 4.22-9.84 21.68-1.76 39s21.96 27.94 31 23.72Z"}),c.jsx("path",{fill:"#E6FFDA",d:"m35.16 69.7 56.32-26.74ZM23.21 41.25l26.6-12.38 27.15-12.65"}),c.jsx("path",{stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m35.16 69.7 56.32-26.74m-68.27-1.7 26.6-12.39 27.15-12.65"}),c.jsx("path",{fill:"#E6FFDA",stroke:"#111B21",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M48.1 66.8a3.52 3.52 0 1 0 0-7.04 3.52 3.52 0 0 0 0 7.03Zm16.84-41.38a3.52 3.52 0 1 0 0-7.04 3.52 3.52 0 0 0 0 7.04Z"}),c.jsx("path",{fill:"#25D366",stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M108.66 78.53 96.52 66.39l3.68-3.69 12.14 12.14c.47.48.72 1.08.72 1.85s-.25 1.37-.72 1.84-1.07.72-1.84.72a2.5 2.5 0 0 1-1.85-.72Z"}),c.jsx("path",{fill:"#25D366",fillRule:"evenodd",d:"M106.13 51.56a20.56 20.56 0 1 1-41.13.02 20.56 20.56 0 0 1 41.13-.02ZM85.5 67a15.5 15.5 0 1 0 0-31 15.5 15.5 0 0 0 0 31Z",clipRule:"evenodd"}),c.jsx("path",{fill:"#111B21",d:"M85.56 72.12v-.75h-.75v.75h.75Zm0 0v.76h.75v-.75h-.75Zm0 .75a21.31 21.31 0 0 0 21.32-21.31h-1.5a19.81 19.81 0 0 1-19.82 19.81v1.5Zm.75-.74h-1.5 1.5ZM64.25 51.56a21.31 21.31 0 0 0 21.31 21.32v-1.5a19.81 19.81 0 0 1-19.81-19.82h-1.5Zm21.31-21.31a21.32 21.32 0 0 0-21.31 21.31h1.5a19.82 19.82 0 0 1 19.81-19.81v-1.5Zm21.32 21.3a21.3 21.3 0 0 0-21.32-21.3v1.5a19.81 19.81 0 0 1 19.82 19.8h1.5Zm-6.63-.05c0 8.15-6.6 14.75-14.75 14.75v1.5c8.97 0 16.25-7.28 16.25-16.25h-1.5ZM85.5 36.75c8.15 0 14.75 6.6 14.75 14.75h1.5c0-8.97-7.27-16.25-16.25-16.25v1.5ZM70.75 51.5c0-8.15 6.6-14.75 14.75-14.75v-1.5A16.25 16.25 0 0 0 69.25 51.5h1.5ZM85.5 66.25c-8.15 0-14.75-6.6-14.75-14.75h-1.5c0 8.97 7.28 16.25 16.25 16.25v-1.5Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsPictoWebsearchIcon=m}),98); __d("WAWebMultiSearchModal.react",["WAWebConfirmPopup.react","WAWebFbtCommon","WAWebFlex.react","WAWebModalManager","WAWebSTWGatingUtils","WAWebSearchTheWebCommonUtils","WAWebSearchTheWebEventLogger","WAWebText.react","WAWebUISpacing","WAWebWamEnumStwInteraction","WAWebWdsPictoWebsearchIcon.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t,n=e.entryPoint,a=e.isNewsletter,i=e.messageType,l=e.searchOptions,u=e.stwFormat,c=l.get((t=o("WAWebSearchTheWebCommonUtils")).SearchType.TEXT),d=l.get(t.SearchType.IMAGE),m=l.get(t.SearchType.URL),p=t.getModalHeaderText(a,n,u,i),_=t.getModalHeaderSubtext(),f=function(){o("WAWebSearchTheWebEventLogger").logSTWEvent({stwEntryPoint:n,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.STW_DISMISSED,stwFormat:u,messageType:i}),o("WAWebModalManager").ModalManager.close()},g=[];return m!=null&&g.push(s.jsx(o("WAWebSearchTheWebCommonUtils").SearchModalRow,{onSearchClick:function(){m.handleSearchAction({stwEntryPoint:n,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.LINK_SEARCH_CLICKED,stwFormat:u,messageType:i})},searchType:o("WAWebSearchTheWebCommonUtils").SearchType.URL},"stw-url-search")),d!=null&&g.push(s.jsx(o("WAWebSearchTheWebCommonUtils").SearchModalRow,{onSearchClick:function(){d.handleSearchAction({stwEntryPoint:n,stwFormat:u,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.IMAGE_SEARCH_CLICKED,messageType:i})},searchType:o("WAWebSearchTheWebCommonUtils").SearchType.IMAGE},"stw-image-search")),c!=null&&g.push(s.jsx(o("WAWebSearchTheWebCommonUtils").SearchModalRow,{onSearchClick:function(){c.handleSearchAction({stwEntryPoint:n,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.TEXT_SEARCH_CLICKED,stwFormat:u,messageType:i})},searchType:o("WAWebSearchTheWebCommonUtils").SearchType.TEXT},"stw-text-search")),o("WAWebSTWGatingUtils").isSearchTheWebDesignExperimentV1Enabled()?s.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{cancelText:r("WAWebFbtCommon")("Cancel"),onCancel:f,children:[s.jsxs(o("WAWebFlex.react").FlexColumn,{justify:"center",align:"center",children:[s.jsx(o("WAWebWdsPictoWebsearchIcon.react").WdsPictoWebsearchIcon,{height:80,width:120}),s.jsx(o("WAWebText.react").WAWebTextLarge,{xstyle:o("WAWebUISpacing").uiMargin.top16,children:o("WAWebSearchTheWebCommonUtils").getModalTitleText()}),s.jsx(o("WAWebText.react").WAWebTextTitle,{textAlign:"center",xstyle:o("WAWebUISpacing").uiMargin.top16,children:p}),_!=null&&s.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:[o("WAWebUISpacing").uiMargin.top12,o("WAWebUISpacing").uiMargin.bottom20],children:_})]}),g]}):s.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{title:o("WAWebSearchTheWebCommonUtils").getModalTitleText(),cancelText:r("WAWebFbtCommon")("Cancel"),cancelButtonType:"secondary",onCancel:f,children:[s.jsx(o("WAWebText.react").WAWebTextTitle,{paddingBottom:8,children:p}),!a&&s.jsx(o("WAWebText.react").WAWebTextMuted,{children:_}),g]})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebSearchTheWebModal.react",["WAWebChatGetters","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebFlex.react","WAWebFrontendMsgGetters","WAWebHfmTextSearchCompleteWamEvent","WAWebModalManager","WAWebMultiSearchModal.react","WAWebNetworkStatus","WAWebSTWGatingUtils","WAWebSearchTheWebCommonUtils","WAWebSearchTheWebEventLogger","WAWebText.react","WAWebUISpacing","WAWebWamEnumStwInteraction","WAWebWdsPictoWebsearchIcon.react","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=e.useState;function c(e){var t=e.headerSubText,n=e.headerText,a=e.isSearching,i=e.onCancel,l=e.onOk;return o("WAWebSTWGatingUtils").isSearchTheWebDesignExperimentV1Enabled()?s.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{cancelText:r("WAWebFbtCommon")("Cancel"),onCancel:i,okText:o("WAWebSearchTheWebCommonUtils").getModalSearchActionText(),okSpinner:a,okDisabled:a,onOK:l,children:s.jsxs(o("WAWebFlex.react").FlexColumn,{justify:"center",align:"center",children:[s.jsx(o("WAWebWdsPictoWebsearchIcon.react").WdsPictoWebsearchIcon,{height:80,width:120}),s.jsx(o("WAWebText.react").WAWebTextLarge,{xstyle:o("WAWebUISpacing").uiMargin.top16,children:o("WAWebSearchTheWebCommonUtils").getModalTitleText()}),s.jsx(o("WAWebText.react").WAWebTextTitle,{textAlign:"center",xstyle:o("WAWebUISpacing").uiMargin.top16,children:n}),t!=null&&s.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:o("WAWebUISpacing").uiMargin.top12,children:t})]})}):s.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{title:o("WAWebSearchTheWebCommonUtils").getModalTitleText(),cancelText:r("WAWebFbtCommon")("Cancel"),onCancel:i,okText:o("WAWebSearchTheWebCommonUtils").getModalSearchActionText(),okSpinner:a,okDisabled:a,onOK:l,children:[n,t!=null&&s.jsx(o("WAWebText.react").WAWebTextMuted,{children:t})]})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.entryPoint,a=e.message,i=e.stwFormat,l=u(!1),d=l[0],m=l[1],p=o("WAWebSearchTheWebCommonUtils").getSupportedSearchOptions(a);if(p.size<1)return null;var _=function(){o("WAWebSearchTheWebEventLogger").logSTWEvent({stwEntryPoint:t,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.STW_DISMISSED,stwFormat:i,messageType:a.getWamMessageType()}),o("WAWebModalManager").ModalManager.close()},f=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!r("WAWebNetworkStatus").online)o("WAWebSearchTheWebCommonUtils").showSearchFailureToast(o("WAWebSearchTheWebCommonUtils").getNoInternetToastMsg());else{var e;m(!0),yield(e=p.values().next().value)==null?void 0:e.handleSearchAction({stwEntryPoint:t,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.SEARCH_CLICKED,stwFormat:i,messageType:a.getWamMessageType()}),m(!1),new(o("WAWebHfmTextSearchCompleteWamEvent")).HfmTextSearchCompleteWamEvent().commit(),o("WAWebModalManager").ModalManager.close()}});return function(){return e.apply(this,arguments)}})(),g=o("WAWebFrontendMsgGetters").getChat(a),h=o("WAWebSearchTheWebCommonUtils").getModalHeaderText(o("WAWebChatGetters").getIsNewsletter(g),t,i,a.getWamMessageType()),y=o("WAWebChatGetters").getIsNewsletter(g)?null:o("WAWebSearchTheWebCommonUtils").getModalHeaderSubtext(),C=s.jsx(c,{onCancel:_,onOk:f,isSearching:d,headerText:h,headerSubText:y}),b=s.jsx(r("WAWebMultiSearchModal.react"),{searchOptions:p,entryPoint:t,stwFormat:i,isNewsletter:o("WAWebChatGetters").getIsNewsletter(g),messageType:a.getWamMessageType()});return p.size===1?C:b}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebWebSearchPopup.react",["fbt","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFbtCommon","WAWebHfmTextSearchCompleteWamEvent","WAWebModalManager","WAWebNetworkStatus","WAWebSTWGatingUtils","WAWebSTWText","WAWebSearchTheWebModal.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.entryPoint,n=e.message,a=e.stwFormat;if(o("WAWebSTWGatingUtils").isSearchTheWebEnabled()&&t!=null&&a!=null)return u.jsx(r("WAWebSearchTheWebModal.react"),{message:n,entryPoint:t,stwFormat:a});var i=function(){var e,t=(e=n.body)!=null?e:"";o("WAWebExternalLink.react").openExternalLink(o("WAWebSTWText").createTextSearchLink(t)),new(o("WAWebHfmTextSearchCompleteWamEvent")).HfmTextSearchCompleteWamEvent().commit(),o("WAWebModalManager").ModalManager.close()},l=function(){o("WAWebModalManager").ModalManager.close()},c=s._(/*BTDS*/"Cancelar");return r("WAWebNetworkStatus").online?u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{cancelText:c,onCancel:l,okText:s._(/*BTDS*/"Buscar en Internet"),onOK:i,children:s._(/*BTDS*/"\u00bfTe gustar\u00eda buscar esto en Internet? Se subir\u00e1 el mensaje a Google para realizar la b\u00fasqueda.")}):u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{okText:r("WAWebFbtCommon")("OK"),onOK:l,children:s._(/*BTDS*/"No se pudo buscar en Internet. Revisa la conexi\u00f3n a Internet de tu computadora y vuelve a intentarlo.")})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("useWAWebSearchTheWebLogHFMSurfaced",["WAWebSearchTheWebEventLogger","useVisibility"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=e.messageType,n=e.stwEntryPoint,a=e.stwFormat,i=e.stwInteraction,l=r("useVisibility")({onVisible:function(){return o("WAWebSearchTheWebEventLogger").logSTWEvent({stwEntryPoint:n,stwInteraction:i,stwFormat:a,messageType:t})}}),s=l[0];return s}l.useWAWebSearchTheWebLogHFMSurfaced=e}),98); __d("WAWebMessageForwardedIndicatorSearchTheWeb.react",["WAWebCopyPasteSelectable.react","WAWebModalManager","WAWebMsgGetters","WAWebSTWGatingUtils","WAWebSearchTheWebCommonUtils","WAWebSearchTheWebEventLogger","WAWebText.react","WAWebWamEnumStwEntryPoint","WAWebWamEnumStwInteraction","WAWebWebSearchPopup.react","react","useWAWebMsgValues","useWAWebSearchTheWebLogHFMSurfaced"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={learnMore:{cursor:"x1ypdohk",color:"x1v5yvga",$$css:!0},bold:{fontWeight:"x117nqv4",$$css:!0},stw:{display:"x1lliihq",$$css:!0}};function c(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebMsgGetters").getIsFrequentlyForwarded]),a=n[0],i=o("WAWebSearchTheWebCommonUtils").getSupportedSearchOptions(t),l=o("WAWebSearchTheWebCommonUtils").getSTWFormat(i),c=o("useWAWebSearchTheWebLogHFMSurfaced").useWAWebSearchTheWebLogHFMSurfaced({stwEntryPoint:o("WAWebWamEnumStwEntryPoint").STW_ENTRY_POINT.HIGHLY_FORWARDED_MESSAGE,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.ENTRY_POINT_SURFACED,stwFormat:l,messageType:t.getWamMessageType()});if(!a||i.size===0)return null;var d=function(){o("WAWebSearchTheWebEventLogger").logSTWEvent({stwEntryPoint:o("WAWebWamEnumStwEntryPoint").STW_ENTRY_POINT.HIGHLY_FORWARDED_MESSAGE,stwInteraction:o("WAWebWamEnumStwInteraction").STW_INTERACTION.ENTRY_POINT_CLICKED,stwFormat:l,messageType:t.getWamMessageType()}),o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebWebSearchPopup.react"),{message:t,stwFormat:l,entryPoint:o("WAWebWamEnumStwEntryPoint").STW_ENTRY_POINT.HIGHLY_FORWARDED_MESSAGE}))};return s.jsxs(o("WAWebText.react").WAWebTextSmall,{weight:"normal",color:"secondary",xstyle:u.stw,ref:c,children:[o("WAWebSearchTheWebCommonUtils").getHFMHeaderText()," ",s.jsx(o("WAWebCopyPasteSelectable.react").SelectableLink,{xstyle:[u.learnMore,o("WAWebSTWGatingUtils").isSearchTheWebDesignExperimentV1Enabled()&&u.bold],selectable:!0,onClick:d,children:o("WAWebSearchTheWebCommonUtils").getHFMHeaderCTAText()})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMessageForwardedIndicator.react",["WAWebClassnames","WAWebForwardRefreshedIcon.react","WAWebForwardUtils","WAWebForwardedNewsletterMessageInfoHeader.react","WAWebMessageForwardedIndicatorSearchTheWeb.react","WAWebMessageTopIndicatorText.react","WAWebMsgGetters","WAWebMsgSelectors","react","stylex","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={icon:{display:"x1rg5ohu",verticalAlign:"x16dsc37",color:"xhslqc4",$$css:!0},container:{marginInlineStart:"xe9ewy2",$$css:!0}};function d(e){var t,n=e.className,a=e.msg,i=e.xstyle;o("useWAWebMsgValues").useMsgValues(e.msg.id,[(t=o("WAWebMsgGetters")).getIsFrequentlyForwarded,t.getIsForwarded,t.getForwardingScore,t.getNumTimesForwarded,t.getType]);var l=o("WAWebMsgSelectors").showForwarded(a);if(!l)return null;var d=u.jsx(o("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{width:16,height:16,xstyle:c.icon});return u.jsxs("div",{"data-testid":void 0,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((s||(s=r("stylex")))(c.container,i),n),children:[d,u.jsx(r("WAWebMessageTopIndicatorText.react"),{children:o("WAWebForwardUtils").getForwardedIndicatorText(a)}),u.jsx(r("WAWebMessageForwardedIndicatorSearchTheWeb.react"),{msg:a}),u.jsx(r("WAWebForwardedNewsletterMessageInfoHeader.react"),{msg:e.msg})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMessagePaidPartnershipDisclaimerText.react",["fbt","WAWebMsgGetters","WAWebNewsletterGatingUtils","WAWebText.react","WAWebUISpacing","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={text:{display:"x1lliihq",$$css:!0}};function d(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebMsgGetters").getHasPaidPartnershipLabel]),r=n[0];if(r!==!0||!o("WAWebNewsletterGatingUtils").isChannelDSA26ReceiverEnabled())return null;var a=o("WAWebMsgGetters").getLinkPreview(t)!=null,i=t.type==="ptt";return u.jsx(o("WAWebText.react").WAWebTextSmall,{weight:"normal",color:"secondary",testid:void 0,xstyle:[c.text,o("WAWebUISpacing").uiMargin.vert2,a&&o("WAWebUISpacing").uiMargin.bottom2,i&&o("WAWebUISpacing").uiMargin.bottom4,i&&o("WAWebUISpacing").uiPadding.start4],children:s._(/*BTDS*/"Colaboraci\u00f3n pagada")})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebMessagePosition",[],(function(t,n,r,o,a,i){var e={FRONT:"FRONT",MID:"MID",END:"END",SINGLE:"SINGLE"},l={ABOVE:"above",VISIBLE:"visible",BELOW:"below"};i.MsgPosition=e,i.MSG_VISIBILITY=l}),66); __d("WAWebNewsletterSendViewReceiptJob",["WABatcher","WAJobOrchestratorTypes","WASmaxReceiptPublishViewRPC","WAStanzaUtils","WAWap","WAWebNewsletterDBUtils","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e=new Map,s=3e3;function u(e,t){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,r){var a,i=(a=e.get(t))!=null?a:o("WABatcher").createSimpleBatcher({delayMs:s},(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){return yield d(t,e),e});return function(t){return e.apply(this,arguments)}})());e.set(t,i),yield i.accept(r)}),c.apply(this,arguments)}function d(e,t){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("sendNewsletterViewReceipt",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield o("WASmaxReceiptPublishViewRPC").sendPublishViewRPC({receiptTo:e,receiptId:o("WAStanzaUtils").toStanzaId(o("WAWap").generateId()),itemArgs:t.map(function(e){var t=e.itemServerId;return{itemServerId:t}})}),yield o("WAWebNewsletterDBUtils").updateMsgViewReceipt(t.map(function(e){return e.itemId}))}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.LOW}).waitUntilCompleted()}),m.apply(this,arguments)}l.sendViewReceiptJob=u}),98); __d("WAWebNewsletterSendViewReceiptAction",["WALogger","WAMemoizeConcurrent","WAWebFrontendMsgGetters","WAWebMsgCollection","WAWebMsgGetters","WAWebNewsletterBridgeApi","WAWebNewsletterGatingUtils","WAWebNewsletterSendViewReceiptJob","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s=r("WAMemoizeConcurrent")(function(e){var t=e.id;return t.toString()},function(e){return u(e.id)});function u(e){return c.apply(this,arguments)}function c(){return c=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){if(o("WAWebNewsletterGatingUtils").isNewsletterViewCountSendEnabled()){var n=o("WAWebMsgCollection").MsgCollection.get(t);if(n!=null&&o("WAWebMsgGetters").getIsNewsletterMsg(n)&&!n.viewed){var r=n.serverId;if(r!=null){var a=o("WAWebFrontendMsgGetters").getChat(n);try{var i=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(a.id.toString());yield o("WAWebNewsletterSendViewReceiptJob").sendViewReceiptJob(i,{itemServerId:r,itemId:t.toString()}),yield o("WAWebNewsletterBridgeApi").NewsletterBridgeApi.updateMsgsViewed({ids:[t]})}catch(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[sendViewReceipt] Error sending view receipt"]))).tags("newsletter")}}}}}),c.apply(this,arguments)}l.sendViewReceipt=s}),98); __d("useWAWebSendViewCount",["WAWebABProps","WAWebDisplayType","WAWebMediaTypes","WAWebMsgGetters","WAWebNewsletterSendViewReceiptAction","react","useWAWebIntersection","useWAWebModelValues","useWAWebMsgValues","useWAWebTimeout","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useCallback,c=s.useEffect;function d(){}function m(e){var t=e.caption,n=e.isGif,r=e.isIntersecting,a=e.mediaStage,i=e.mediaType,l=e.viewed;return!r||l?!1:i==null||t!=null?!0:i===o("WAWebMediaTypes").OUTWARD_TYPES.IMAGE||i===o("WAWebMediaTypes").OUTWARD_TYPES.STICKER||n===!0||i===o("WAWebMediaTypes").OUTWARD_TYPES.PTV?a===o("WAWebMediaTypes").MediaDataStage.RESOLVED:!1}function p(e,t){var n=t.displayType,a=o("useWAWebMsgValues").useMsgValues(e,[o("WAWebMsgGetters").getViewed,o("WAWebMsgGetters").getIsNewsletterMsg,o("WAWebMsgGetters").getCaption]),i=a[0],l=a[1],s=a[2],u=o("useWAWebModelValues").useOptionalModelValues(t==null?void 0:t.mediaData,["mediaStage","type","isGif"]),d=u!=null?u:{},p=d.isGif,_=d.mediaStage,f=d.type,g=!!(t!=null&&t.isIntersecting),h=r("useWAWebIntersection")({root:null,threshold:.99}),y=h[0],C=h[1].isIntersecting,b=r("useWAWebUnmountSignal")(),v=o("useWAWebTimeout").useTimeout(function(){o("WAWebNewsletterSendViewReceiptAction").sendViewReceipt({id:e,signal:new AbortController().signal})},o("WAWebABProps").getABPropConfigValue("channel_views_duration_milliseconds")),S=v[0],R=v[1];return c(function(){!l||n!==o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER||(m({isIntersecting:C||g,viewed:i,caption:s,mediaStage:_,mediaType:f,isGif:p})?S():R())},[C,g,S,R,i,s,_,p,f,l,n]),c(function(){b.aborted&&R()},[b.aborted,R]),l&&(t==null?void 0:t.isIntersecting)==null&&n===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER?y:null}function _(e,t){var n=r("useWAWebUnmountSignal")(),a=o("useWAWebMsgValues").useMsgValues(e,[o("WAWebMsgGetters").getViewed,o("WAWebMsgGetters").getIsNewsletterMsg]),i=a[0],l=a[1],s=o("useWAWebModelValues").useModelValues(t.mediaData,["duration"]),c=s.duration,m=Math.min(o("WAWebABProps").getABPropConfigValue("channel_playable_message_views_duration_milliseconds"),parseInt(c,10)*1e3),p=u(function(t){!i&&t*1e3>=m&&o("WAWebNewsletterSendViewReceiptAction").sendViewReceipt({id:e,signal:n})},[e,n,m,i]);return l?p:d}l.useSendViewCount=p,l.usePlaybackSendViewCount=_}),98); __d("WAWebMessageStickerLikeBubbleContainer.react",["cx","WAWebAddOnBubbleRenderUtils","WAWebAddOnBubbleType","WAWebAddOnBubblesContainer.react","WAWebBizCtwaContext.react","WAWebClassnames","WAWebDisplayType","WAWebFlex.react","WAWebFrontendMsgGetters","WAWebMessageAuthor.react","WAWebMessageForwardedIndicator.react","WAWebMessageMeta.react","WAWebMessagePaidPartnershipDisclaimerText.react","WAWebMessagePosition","WAWebMsgCollection","WAWebMsgGetters","WAWebMsgSelectors","WAWebNewsletterGatingUtils","WAWebStopEvent","WAWebUISpacing","react","stylex","useWAWebMsgValues","useWAWebSendViewCount"],(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.useImperativeHandle,f=m.useRef,g={groupHistoryMessage:{backgroundColor:"x1fast2d",$$css:!0}};function h(t){var n,a,i,l=t.ref,s=babelHelpers.objectWithoutPropertiesLoose(t,e),u=f(null),d=f(null),m=s.displayType,h=s.isGroupedSticker,y=h===void 0?!1:h,C=s.msg,b=s.msgContent,v=o("useWAWebMsgValues").useMsgValues(s.msg.id,[o("WAWebMsgGetters").getId,o("WAWebMsgGetters").getIsSentByMe,o("WAWebMsgGetters").getIsGroupMsg,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getHasReaction,o("WAWebFrontendMsgGetters").getIsTransparentMsg,o("WAWebFrontendMsgGetters").getIsTransparentMsgEmoji,o("WAWebMsgGetters").getGroupHistoryBundleMessageKey]),S=v[0],R=v[1],L=v[2],E=v[3],k=v[4],I=v[5],T=v[6],D=v[7];_(l,function(){return{getAnchorRef:function(){return u},getMetaRef:function(){return d}}});var x=o("useWAWebSendViewCount").useSendViewCount(C.id,{mediaData:s.mediaData,displayType:s.displayType}),$=o("WAWebDisplayType").isWideDisplay(m),P=o("WAWebMsgSelectors").showForwarded(C)&&o("WAWebMsgGetters").getHasOriginatedFromNewsletter(C)&&!T,N=P&&o("WAWebNewsletterGatingUtils").isStickerForwardedAttributionEnabled()?p.jsx(r("WAWebMessageForwardedIndicator.react"),{msg:C.unsafe()}):null,M=p.jsx(r("WAWebMessagePaidPartnershipDisclaimerText.react"),{msg:C}),w=P?void 0:"center",A=P?"end":void 0,F=s.displayAuthor?p.jsx("div",{ref:u,className:"_am2m",children:p.jsx(r("WAWebMessageAuthor.react"),{msg:C,contact:E,displayType:m})}):null,O=s.displayCtwaContext===!0?p.jsx(r("WAWebBizCtwaContext.react"),{msg:C.unsafe(),wrapperClass:"_am2n"}):null,B=o("WAWebClassnames").classnamesConvertMeToStylexPlease(P&&"x9f619 x1racca4 xahult9",(n={},n._am2o=!P,n["_aof-"]=!$,n)),W=s.quotedMsg?p.jsx("div",{className:B,children:s.quotedMsg}):null,q=o("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a._am2p=s.displayAuthor,a._am2q=!$&&(s.position===o("WAWebMessagePosition").MsgPosition.FRONT||s.position===o("WAWebMessagePosition").MsgPosition.SINGLE),a._am2r=I,a._am2s=!P,a._amee=$&&!y,a)),U=o("WAWebClassnames").classnamesConvertMeToStylexPlease((i={},i._am2u=!0,i._amef=$,i._aoyn=$,i._ar8h=T,i)),V=o("WAWebMsgCollection").MsgCollection.get(S),H=null;I&&(m===o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION||$)&&V!=null&&(H=p.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(o("WAWebUISpacing").uiMargin.startAuto),{children:p.jsx(r("WAWebAddOnBubblesContainer.react"),{isOutgoingMsg:R,displayType:m,bubbleType:o("WAWebAddOnBubbleType").AddOnBubbleType.STICKER_LIKE_MSG,parentIds:[V.id.toString()],onDetailsPaneClosed:s.onDetailsPaneClosed,hasReaction:k})})));var G=p.jsx(o("WAWebMessageMeta.react").MetaWrapper,{isSentByMe:R,isTransparent:I,displayType:m,ref:d,xstyle:D!=null&&g.groupHistoryMessage,children:p.jsx(o("WAWebMessageMeta.react").Meta,{msg:C})});return p.jsxs("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease(q,(c||(c=r("stylex")))(s.bubbleStyle),(P||!I)&&"x9f619 x12w63v0 x1nzty39 x16ovd2e x1n2onr6 x1vjfegm"),onClick:o("WAWebStopEvent").stopPropagation,ref:x,children:[F,N,M,W,O,p.jsx("div",{className:U,children:b}),I&&o("WAWebAddOnBubbleRenderUtils").isAddOnBubbleCentered(m)?p.jsxs(o("WAWebFlex.react").FlexRow,{alignSelf:A,justifySelf:w,columnGap:2,children:[H,G]}):p.jsxs(o("WAWebFlex.react").FlexColumn,{children:[G,H]})]})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),98); __d("WAWebCopyUtils",["WAWebAllMsgTypeCollectionUtils","WAWebBizCtwaAGMUtils","WAWebCopyPasteClipboard","WAWebCopyToClipboard","WAWebFrontendMsgGetters","WAWebInteractiveMessagesNativeFlowName","WAWebMediaInMemoryBlobCache","WAWebMsgActionCapability","WAWebMsgType","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e){var t,n;return o("WAWebMsgActionCapability").canWamoSubMsgBeSharedByUser(e,o("WAWebFrontendMsgGetters").getChat(e))?!!(e.type===o("WAWebMsgType").MSG_TYPE.CHAT||o("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessage((t=e.ctwaContext)==null?void 0:t.sourceApp,e.type,(n=e.ctwaContext)==null?void 0:n.automatedGreetingMessageShown)||e.type===o("WAWebMsgType").MSG_TYPE.IMAGE&&!e.mediaData.isViewOnce&&o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(e.filehash)!=null&&o("WAWebCopyToClipboard").supportsCopyImageToClipboard()||e.type===o("WAWebMsgType").MSG_TYPE.INTERACTIVE&&(e==null?void 0:e.nativeFlowName)===r("WAWebInteractiveMessagesNativeFlowName").CTA_FLOW):!1}function s(){var e=window.getSelection();return(e==null?void 0:e.toString())!==""}function u(e){e.body!=null&&o("WAWebCopyToClipboard").copyTextToClipboard(e.body)}function c(e){var t=o("WAWebMediaInMemoryBlobCache").InMemoryMediaBlobCache.get(e.filehash);t!=null&&o("WAWebCopyToClipboard").copyImageToClipboard(t)}function d(e){var t,n=[];((t=e.interactiveHeader)==null?void 0:t.title)!=null&&n.push(e.interactiveHeader.title),e.caption!=null&&n.push(e.caption),e.footer!=null&&n.push(e.footer);var r=n.join("\n");o("WAWebCopyToClipboard").copyTextToClipboard(r)}function m(e){var t,n;(e.type===o("WAWebMsgType").MSG_TYPE.CHAT||o("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessage((t=e.ctwaContext)==null?void 0:t.sourceApp,e.type,(n=e.ctwaContext)==null?void 0:n.automatedGreetingMessageShown))&&u(e),e.type===o("WAWebMsgType").MSG_TYPE.INTERACTIVE&&(e==null?void 0:e.nativeFlowName)===r("WAWebInteractiveMessagesNativeFlowName").CTA_FLOW&&d(e),e.type===o("WAWebMsgType").MSG_TYPE.IMAGE&&c(e)}function p(e){return _.apply(this,arguments)}function _(){return _=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){if(e.length===0)return null;var t=e.filter(function(e){return e.body!=null}).sort(o("WAWebAllMsgTypeCollectionUtils").sortMsgsByInputComparator("asc"));if(t.length===0)return null;var n=t.map(function(e){return e.body}).join("\n");return yield o("WAWebCopyToClipboard").copyTextToClipboard(n),t.length}),_.apply(this,arguments)}function f(e){var t=window.getSelection();if(t!=null){var n=o("WAWebCopyPasteClipboard").Clipboard.fromSelection(e,t);o("WAWebCopyToClipboard").copyTextToClipboard(n.toPlainString())}}l.canCopyMessage=e,l.canCopySelection=s,l.copyMessageToClipboard=m,l.copyMessagesToClipboard=p,l.copySelection=f}),98); __d("WAWebWamEnumForwardActionUserJourneyAction",[],(function(t,n,r,o,a,i){var e=Object.freeze({CONTEXT_MENU_SHOWN_WITH_FORWARD:1,CONTEXT_MENU_SHOWN_WITHOUT_FORWARD:2,FORWARD_TAPPED_IN_CONTEXT_MENU:3,FAST_FORWARD_BUTTON_TAPPED:4,MESSAGE_FORWARD_SELECT:5,MESSAGE_FORWARD_UNSELECT:6,SHARE_BUTTON_TAPPED_IN_FORWARD_TOOLBAR:7,CANCEL_IN_FORWARD_TOOLBAR:8,CONTEXT_MENU_DISMISSED:9,FORWARD_BUTTON_TAPPED_IN_FORWARD_TOOLBAR:10,FORWARD_TOOLBAR_DISMISSED:11,SELECT_TAPPED_IN_CONTEXT_MENU:12,SELECT_TAPPED_IN_MORE_MENU:13});i.FORWARD_ACTION_USER_JOURNEY_ACTION=e}),66); __d("WAWebForwardActionUserJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumForwardActionUserJourneyAction","WAWebWamEnumMediaType","WAWebWamEnumMessageType","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({ForwardActionUserJourney:[6506,{appSessionId:[1,e.TYPES.STRING],forwardActionUserJourneyAction:[2,o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION],forwardUserJourneyFunnelId:[11,e.TYPES.STRING],messageIsFromMe:[3,e.TYPES.BOOLEAN],messageMediaType:[4,o("WAWebWamEnumMediaType").MEDIA_TYPE],messageType:[5,o("WAWebWamEnumMessageType").MESSAGE_TYPE],uiSurface:[6,o("WAWebWamEnumTsSurface").TS_SURFACE],unifiedSessionId:[9,e.TYPES.STRING],userJourneyChatType:[7,o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE],userJourneyEventMs:[12,e.TYPES.INTEGER],userJourneyFunnelId:[8,e.TYPES.STRING]},[1,1,1],"regular"]},{ForwardActionUserJourney:[]});l.ForwardActionUserJourneyWamEvent=s}),98); __d("WAWebForwardActionUserJourneyLogger",["WALogger","WAWebABProps","WAWebForwardActionUserJourneyWamEvent","WAWebPonyfillsCryptoRandomUUID","WAWebShareContentUserJourneyLogger","WAWebUnifiedSession","WAWebWamEnumForwardActionUserJourneyAction","WAWebWamEnumShareContentUserJourneyEntryPoint","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=(function(){function t(e){e===void 0&&(e=r("WAWebPonyfillsCryptoRandomUUID")()),this.loggingEnabled=!1,this.loggingEnabled=o("WAWebABProps").getABPropConfigValue("forwarded_message_user_journey_logging_enabled"),this.$1=e}var n=t.prototype;return n.contextMenuShownWithForward=function(t,n){this.$9({chatId:t,message:n,uiSurface:p(t),action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CONTEXT_MENU_SHOWN_WITH_FORWARD})},n.contextMenuShownWithoutForward=function(t,n){this.$9({chatId:t,message:n,uiSurface:p(t),action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CONTEXT_MENU_SHOWN_WITHOUT_FORWARD})},n.forwardTappedInContextMenu=function(){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FORWARD_TAPPED_IN_CONTEXT_MENU})},n.fastForwardButtonTapped=function(t,n){this.$9({chatId:t,message:n,selectedMessages:[n],uiSurface:p(t),action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FAST_FORWARD_BUTTON_TAPPED})},n.messageForwardSelect=function(t){this.$9({action:t?o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.MESSAGE_FORWARD_SELECT:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.MESSAGE_FORWARD_UNSELECT})},n.cancelInForwardToolbar=function(){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CANCEL_IN_FORWARD_TOOLBAR})},n.contextMenuDismissed=function(){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CONTEXT_MENU_DISMISSED})},n.forwardButtonTappedInForwardToolbar=function(t){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FORWARD_BUTTON_TAPPED_IN_FORWARD_TOOLBAR,selectedMessages:t})},n.forwardToolbarDismissed=function(){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FORWARD_TOOLBAR_DISMISSED})},n.selectTappedInContextMenu=function(){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.SELECT_TAPPED_IN_CONTEXT_MENU,uiSurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD})},n.selectTappedInMoreMenu=function(){this.$9({action:o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.SELECT_TAPPED_IN_MORE_MENU,uiSurface:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD})},n.$9=function(n){if(this.loggingEnabled){var t=o("WAWebUnifiedSession").UnifiedSessionManager.getSessionId();if(t==null){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[uj] [forward] Unified session ID is null"])));return}if(c(n.action)&&this.$2==null){this.$2=r("WAWebPonyfillsCryptoRandomUUID")(),this.$5=r("WAWebPonyfillsCryptoRandomUUID")(),n.chatId!=null&&(this.$3=m(n.chatId)),this.$4=n.uiSurface;var a=n.message;a!=null&&a.id!=null&&(this.$6=a.id.fromMe,this.$7=a.getWamMediaType(),this.$8=a.getWamMessageType())}var i=this.$2;if(i!=null){var l=new(o("WAWebForwardActionUserJourneyWamEvent")).ForwardActionUserJourneyWamEvent;l.appSessionId=this.$1,l.unifiedSessionId=t,l.userJourneyFunnelId=i,this.$4!=null&&(l.uiSurface=this.$4),this.$3!=null&&(l.userJourneyChatType=this.$3),l.forwardActionUserJourneyAction=n.action,this.$5!=null&&(l.forwardUserJourneyFunnelId=this.$5),this.$6!=null&&(l.messageIsFromMe=this.$6),this.$7!=null&&(l.messageMediaType=this.$7),this.$8!=null&&(l.messageType=this.$8),l.commit(),this.$10(n.action,n.selectedMessages),d(n.action)&&(this.$2=null,this.$3=null,this.$4=null,this.$5=null,this.$6=null,this.$7=null,this.$8=null)}}},n.$10=function(t,n){var e=t===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FAST_FORWARD_BUTTON_TAPPED,r=t===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FORWARD_BUTTON_TAPPED_IN_FORWARD_TOOLBAR;if(!(n==null||n.length===0)&&(e||r)){this.$5==null&&o("WALogger").WARN(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[uj] [forward] Shared forward user journey funnel ID is null"])));var a;r?a=o("WAWebWamEnumShareContentUserJourneyEntryPoint").SHARE_CONTENT_USER_JOURNEY_ENTRY_POINT.TOOLBAR:a=o("WAWebWamEnumShareContentUserJourneyEntryPoint").SHARE_CONTENT_USER_JOURNEY_ENTRY_POINT.FASTFORWARD,o("WAWebShareContentUserJourneyLogger").ShareContentUserJourneyLogger.funnelStart(this.$4,this.$5,a,n)}},t})();function c(e){return e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CONTEXT_MENU_SHOWN_WITH_FORWARD||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CONTEXT_MENU_SHOWN_WITHOUT_FORWARD||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FAST_FORWARD_BUTTON_TAPPED||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.SELECT_TAPPED_IN_CONTEXT_MENU||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.SELECT_TAPPED_IN_MORE_MENU}function d(e){return e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CANCEL_IN_FORWARD_TOOLBAR||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.CONTEXT_MENU_DISMISSED||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FAST_FORWARD_BUTTON_TAPPED||e===o("WAWebWamEnumForwardActionUserJourneyAction").FORWARD_ACTION_USER_JOURNEY_ACTION.FORWARD_TOOLBAR_DISMISSED}function m(e){return e.isUser()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.INDIVIDUAL:e.isGroup()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.GROUP:e.isNewsletter()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.CHANNEL:null}function p(e){return e.isGroup()?o("WAWebWamEnumTsSurface").TS_SURFACE.GROUP_CHAT:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD}var _=new u;l.ForwardActionUserJourneyLogger=_}),98); __d("WAWebMultiSelectCount.react",["fbt","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d={multiCount:{flex:"x98rzlu",fontSize:"x7yx35o",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",$$css:!0},mediaGalleryThemeMultiCount:{color:"x1wmqtwo",$$css:!0}};function m(t){var n=t.selectedMsgsCount,a=t.theme;return c.jsx("span",babelHelpers.extends({"aria-live":"polite"},(e||(e=r("stylex"))).props([d.multiCount,o("WAWebUISpacing").uiMargin.end10,a==="mediaGallery"&&d.mediaGalleryThemeMultiCount]),{children:s._(/*BTDS*/"_j{\"*\":\"{count} seleccionados\",\"4\":\"{count} seleccionado\",\"_1\":\"1 seleccionado\"}",[s._plural(n,"count")])}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebIconButton.react",["WAWebClickable.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l){"use strict";var e=["icon","ref"],s,u=s||(s=o("react")),c={button:{borderStartStartRadius:"xr4gsrn",borderStartEndRadius:"xa83c8o",borderEndEndRadius:"x3oym20",borderEndStartRadius:"x1i84rja",height:"x1vqgdyp",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",flex:"x1okw0bk",cursor:"x1ypdohk",":hover_backgroundColor":"x17gydlx",$$css:!0},buttonNotClickable:{cursor:"x1h6gzvc",$$css:!0},row:{display:"x78zum5",flexDirection:"x1q0g3np",alignItems:"x6s0dn4",justifyContent:"xl56j7k",$$css:!0}};function d(t){var n=t.icon,r=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e);return u.jsxs(o("WAWebClickable.react").Clickable,babelHelpers.extends({},a,{xstyle:[c.button,c.row,n!=null&&o("WAWebUISpacing").uiPadding.start10,n!=null&&o("WAWebUISpacing").uiPadding.end2,a.xstyle,a.onClick==null&&c.buttonNotClickable],ref:r,children:[n,a.children]}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMultiSelectDelete.react",["fbt","WAWebBizCtwaAGMUtils","WAWebDeleteRefreshedIcon.react","WAWebDeleteRevokeMsgFlow.react","WAWebFrontendMsgGetters","WAWebIconButton.react","WAWebL10nFilesize","WAWebModalManager","WAWebMsgActionCapability","WAWebMsgGetters","WAWebMultiSelectUtils","WAWebRevokeMetricUtils","WAWebStateUtils","WAWebSvgButton.react","WAWebTabOrder","WAWebText.react","WAWebUISpacing","WAWebWamEnumMessageContextMenuOptionType","WDSIconIcDelete.react","WDSMenuBarItem.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c={btnMargin:{marginInlineEnd:"xqf2s3x",$$css:!0},mediaHubIcon:{color:"xqnyt8g",width:"x1849jeq",":disabled_color":"x9g49ws",$$css:!0},capitalised:{textTransform:"xn80e1m",$$css:!0},deleteHover:{":hover_backgroundColor":"x1dulx1b",$$css:!0}};function d(e){"use no forget";var t,n=e.dataTab,a=n===void 0?o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR:n,i=e.onCancel,l=e.onDeleteModalOpen,d=e.selectedMessages,m=e.theme,p=e.toastPosition,_=(t=d==null?void 0:d.getSelected())!=null?t:[],f=_.reduce(function(e,t){var n;return e+((n=t.mediaData)==null?void 0:n.size)},0),g=_.every(function(e){var t,n;return(!o("WAWebMsgGetters").getIsNewsletterMsg(e)||o("WAWebMsgActionCapability").canRevokeNewsletterMsg(e))&&!o("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessage((t=e.ctwaContext)==null?void 0:t.sourceApp,e.type,(n=e.ctwaContext)==null?void 0:n.automatedGreetingMessageShown)}),h=_.length,y=function(){var e=_.map(function(e){return o("WAWebFrontendMsgGetters").getChat(e)}),t=e.some(Boolean);t&&(o("WAWebModalManager").ModalManager.openSupportModal(u.jsx(r("WAWebDeleteRevokeMsgFlow.react"),{chats:e,msgList:_.map(o("WAWebStateUtils").unproxy),toastPosition:p,onEnd:i,theme:m})),o("WAWebRevokeMetricUtils").UiRevokeActionHelper.trashCanSelected(),l==null||l()),o("WAWebMultiSelectUtils").logMessageActionClickMetric(_,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.DELETE)},C=!h||!g,b=u.jsx(r("WDSMenuBarItem.react"),{icon:r("WDSIconIcDelete.react"),testid:void 0,tabOrder:a,disabled:C,title:s._(/*BTDS*/"_j{\"*\":\"Eliminar\"}",[s._plural(h)]),onClick:y,marginInlineXstyle:c.btnMargin}),v=u.jsx(r("WAWebSvgButton.react"),{Icon:o("WAWebDeleteRefreshedIcon.react").DeleteRefreshedIcon,testid:void 0,dataTab:a,width:m==="mediaHub"?24:void 0,xstyle:c.mediaHubIcon,disabled:C,title:s._(/*BTDS*/"_j{\"*\":\"Eliminar\"}",[s._plural(h)]),onClick:y});return m==="mediaHub"?u.jsx(r("WAWebIconButton.react"),{onClick:C?null:y,icon:v,xstyle:!C&&c.deleteHover,children:u.jsx(o("WAWebText.react").WAWebTextTitleRefreshed,{weight:"semibold",xstyle:[c.capitalised,o("WAWebUISpacing").uiPadding.end12],color:C?"wdsContentDisabled":"wdsSecondaryNegativeEmphasized",children:f>0?o("WAWebL10nFilesize").getL10nFilesize(f):null})}):b}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WDSIconIcForward.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-forward";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:"M19.175 11L15.3 7.12499C15.1 6.92499 15 6.68749 15 6.41249C15 6.13749 15.1 5.89999 15.3 5.69999C15.5 5.51665 15.7375 5.42499 16.0125 5.42499C16.2875 5.42499 16.5167 5.51665 16.7 5.69999L21.3 10.3C21.4 10.4 21.4708 10.5083 21.5125 10.625C21.5542 10.7417 21.575 10.8667 21.575 11C21.575 11.1333 21.5542 11.2583 21.5125 11.375C21.4708 11.4917 21.4 11.6 21.3 11.7L16.7 16.3C16.5 16.5 16.2667 16.5958 16 16.5875C15.7333 16.5792 15.5 16.4833 15.3 16.3C15.1 16.1 14.9958 15.8667 14.9875 15.6C14.9792 15.3333 15.075 15.1 15.275 14.9L19.175 11ZM13.175 12H7C6.16667 12 5.45833 12.2917 4.875 12.875C4.29167 13.4583 4 14.1667 4 15V18C4 18.2833 3.90417 18.5208 3.7125 18.7125C3.52083 18.9042 3.28333 19 3 19C2.71667 19 2.47917 18.9042 2.2875 18.7125C2.09583 18.5208 2 18.2833 2 18V15C2 13.6167 2.4875 12.4375 3.4625 11.4625C4.4375 10.4875 5.61667 9.99999 7 9.99999H13.175L10.3 7.12499C10.1 6.92499 10 6.68749 10 6.41249C10 6.13749 10.1 5.89999 10.3 5.69999C10.5 5.51665 10.7375 5.42499 11.0125 5.42499C11.2875 5.42499 11.5167 5.51665 11.7 5.69999L16.3 10.3C16.4 10.4 16.4708 10.5083 16.5125 10.625C16.5542 10.7417 16.575 10.8667 16.575 11C16.575 11.1333 16.5542 11.2583 16.5125 11.375C16.4708 11.4917 16.4 11.6 16.3 11.7L11.7 16.3C11.5 16.5 11.2667 16.5958 11 16.5875C10.7333 16.5792 10.5 16.4833 10.3 16.3C10.1 16.1 9.99583 15.8667 9.9875 15.6C9.97917 15.3333 10.075 15.1 10.275 14.9L13.175 12Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebMultiSelectForward.react",["fbt","WAArrayUtils","WAWebChatGroupUtils","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebForwardMessageModalLoadable","WAWebForwardUtils","WAWebFrontendMsgGetters","WAWebMiscGatingUtils","WAWebModalManager","WAWebMsgActionCapability","WAWebMultiSelectUtils","WAWebTabOrder","WAWebWamEnumMessageContextMenuOptionType","WDSIconIcForward.react","WDSMenuBarItem.react","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c={btnMargin:{marginInlineEnd:"xqf2s3x",$$css:!0}};function d(e){var t=e.noSortOnForward,n=e.onBack,a=e.onCancel,i=e.onForwardModalOpen,l=e.selectedMessages,d=e.theme,m=l.getSelected(),p=m.length,_=m.every(function(e){return o("WAWebMsgActionCapability").canForwardMsg(e)}),f=!p||!_,g=o("WAArrayUtils").groupBy(m,function(e){return o("WAWebFrontendMsgGetters").getChat(e)}),h=g.keys(),y=h.some(function(e){return o("WAWebChatGroupUtils").isSuspendedGroup(e)}),C=y&&o("WAWebMiscGatingUtils").isGroupSuspendV2Enabled(),b=d==="mediaHub"?function(e,t){return o("WAWebModalManager").ModalManager.openSupportModal(e,t)}:function(){return o("WAWebModalManager").ModalManager.open.apply(o("WAWebModalManager").ModalManager,arguments)},v=d==="mediaHub"?function(){return o("WAWebModalManager").ModalManager.closeSupportModal()}:function(){return o("WAWebModalManager").ModalManager.close()},S=function(){var e=l.getSelected(),c=h.some(Boolean);!t&&c&&(e=[],g.forEach(function(t,n){e=e.concat(n.sortMsgs(t))}));var d=e.length,m=function(){o("WAWebForwardUtils").showForwardedToast(d),a()},p=e.filter(function(e){return o("WAWebMsgActionCapability").canForwardMsg(e)});if(p.length){var _=function(t){return s._(/*BTDS*/"_j{\"*\":\"Seleccionaste {chats-number} chats para reenviar a\",\"_1\":\"Seleccionaste 1 chat para reenviar a\"}",[s._plural(t.length,"chats-number")])};if(d!==p.length){var f=function(){b(u.jsx(o("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:p,onForward:m,onClose:v,onBack:n,getAnnouncementSummary:_}),{transition:"modal-flow"})};b(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"No se pueden reenviar todos los mensajes."),onOK:f,okText:s._(/*BTDS*/"Reenviar"),onCancel:v,cancelText:s._(/*BTDS*/"Cancelar"),children:s._(/*BTDS*/"No se pueden reenviar algunos mensajes. \u00bfDeseas reenviar el resto de los mensajes?")}))}else b(u.jsx(o("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:e,onForward:m,onClose:v,onBack:n,getAnnouncementSummary:_}),{transition:"modal-flow"})}else b(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"No se puede reenviar"),onOK:v,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(d)])}));o("WAWebMultiSelectUtils").logMessageActionClickMetric(e,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.FORWARD),i==null||i()},R;return f&&d==="mediaHub"?R="borderless":!f&&d==="mediaHub"&&(R="filled"),C?null:u.jsx(r("WDSMenuBarItem.react"),{disabled:f,testid:void 0,buttonVariant:R,icon:r("WDSIconIcForward.react"),tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,onClick:S,title:s._(/*BTDS*/"_j{\"*\":\"Reenviar mensajes\",\"_1\":\"Reenviar\"}",[s._plural(p)]),marginInlineXstyle:c.btnMargin})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebStarRefreshedIcon.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="star-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:"M12.0001 5.5563L10.4474 9.20853C10.2737 9.61713 9.88857 9.89642 9.44622 9.9346L5.45091 10.2794L8.46629 12.8783C8.80433 13.1697 8.95276 13.6246 8.85162 14.0593L7.95108 17.9296L11.3829 15.8715C11.7628 15.6437 12.2373 15.6437 12.6172 15.8715L16.049 17.9296L15.1485 14.0593C15.0474 13.6246 15.1958 13.1697 15.5338 12.8783L18.5492 10.2794L14.5539 9.9346C14.1115 9.89642 13.7264 9.61713 13.5527 9.20853L12.0001 5.5563ZM10.8957 3.04204C11.3098 2.06802 12.6903 2.06802 13.1044 3.04204L15.2051 7.98336L20.6131 8.45006C21.6713 8.54138 22.0979 9.86115 21.2933 10.5546L17.2061 14.0773L18.4246 19.3142C18.6647 20.3462 17.5473 21.1602 16.6387 20.6153L12.0001 17.8335L7.36144 20.6153C6.4528 21.1602 5.33537 20.3462 5.57548 19.3142L6.79399 14.0773L2.70679 10.5546C1.90226 9.86116 2.32885 8.54138 3.38705 8.45006L8.79502 7.98336L10.8957 3.04204Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.StarRefreshedIcon=m}),98); __d("WAWebUnstarRefreshedIcon.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="unstar-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:"M6.74533 8.16L2.8072 4.22188C2.41668 3.83135 2.41668 3.19819 2.8072 2.80766C3.19773 2.41714 3.83089 2.41714 4.22142 2.80766L21.192 19.7782C21.5825 20.1688 21.5825 20.8019 21.192 21.1924C20.8015 21.583 20.1683 21.583 19.7778 21.1924L18.431 19.8457C18.2675 20.5959 17.383 21.0615 16.6387 20.6151L12.0001 17.8332L7.36144 20.6151C6.4528 21.16 5.33537 20.3459 5.57548 19.314L6.79399 14.0771L2.70679 10.5543C1.90226 9.86091 2.32885 8.54113 3.38705 8.44981L6.74533 8.16ZM15.9078 17.3225L16.049 17.9294L12.6172 15.8713C12.2373 15.6434 11.7628 15.6434 11.3829 15.8713L7.95108 17.9294L8.85162 14.059C8.95276 13.6243 8.80433 13.1695 8.46628 12.8781L5.45091 10.2791L8.59329 10.008L15.9078 17.3225Z",fill:"currentColor"}),c.jsx("path",{d:"M13.5527 9.20828C13.5881 9.29156 13.6323 9.36947 13.684 9.44106L13.9546 9.71174C14.1275 9.83653 14.3336 9.91534 14.5539 9.93435L18.5492 10.2791L16.3863 12.1434L17.8044 13.5615L21.2933 10.5543C22.0979 9.86091 21.6713 8.54113 20.6131 8.44981L15.2051 7.98312L13.1044 3.04179C12.6903 2.06777 11.3098 2.06778 10.8957 3.04179L9.81852 5.5756L11.3435 7.10054L12.0001 5.55606L13.5527 9.20828Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.UnstarRefreshedIcon=m}),98); __d("WAWebMultiSelectStar.react",["fbt","WAArrayUtils","WAWebCmd","WAWebFrontendMsgGetters","WAWebMsgActionCapability","WAWebMultiSelectUtils","WAWebStarRefreshedIcon.react","WAWebTabOrder","WAWebUnstarRefreshedIcon.react","WAWebWamEnumMessageContextMenuOptionType","WDSMenuBarItem.react","react","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c={btnMargin:{marginInlineEnd:"xqf2s3x",$$css:!0}};function d(e){"use no forget";var t=e.onCancel,n=e.onStar,a=e.selectedMessages,i=e.theme,l=e.toastPosition,d=a.getSelected(),m=d.length,p=d.every(function(e){return e.star}),_=d.every(function(e){return o("WAWebMsgActionCapability").canStarMsg(e)}),f=o("WAArrayUtils").groupBy(d,function(e){return o("WAWebFrontendMsgGetters").getChat(e)}),g=o("useWAWebForceUpdate").useForceUpdateDONOTUSE();o("useWAWebListener").useListeners(d.map(function(e){return{source:e,eventOrEvents:"change:star",callback:g}}));var h=function(){f.forEach(function(e,t){o("WAWebCmd").Cmd.sendUnstarMsgs(t,e,null,l)}),t(),o("WAWebMultiSelectUtils").logMessageActionClickMetric(d,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.STAR_OR_UNSTAR),n==null||n()},y=function(){f.forEach(function(e,t){o("WAWebCmd").Cmd.sendStarMsgs(t,e,null,l)}),t(),o("WAWebMultiSelectUtils").logMessageActionClickMetric(d,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.STAR_OR_UNSTAR),n==null||n()},C,b,v;m&&p?(C=h,b=o("WAWebUnstarRefreshedIcon.react").UnstarRefreshedIcon,v=s._(/*BTDS*/"_j{\"*\":\"No destacar mensajes\",\"_1\":\"No destacar mensaje\"}",[s._plural(m)])):(C=y,b=o("WAWebStarRefreshedIcon.react").StarRefreshedIcon,v=s._(/*BTDS*/"_j{\"*\":\"Destacar\"}",[s._plural(m)]));var S=!m||!_,R=u.jsx(r("WDSMenuBarItem.react"),{icon:b,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,disabled:S,title:v,onClick:C,marginInlineXstyle:c.btnMargin});return i==="mediaHub"?u.jsx(r("WDSMenuBarItem.react"),{icon:b,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,disabled:S,title:v,onClick:C,marginInlineXstyle:c.btnMargin}):R}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226); __d("WAWebNewsletterMsgLinkUtils",["fbt","WALogger","WAWebCopyToClipboard","WAWebFrontendMsgGetters","WAWebToast.react","WAWebToastManager","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=function(n){var t=o("WAWebFrontendMsgGetters").getChat(n);if(!(t.newsletterMetadata==null||n.serverId==null)){var r=t.newsletterMetadata.inviteCode,a="https://whatsapp.com/channel/"+r+"/"+n.serverId;o("WAWebCopyToClipboard").copyTextToClipboard(a).then(function(e){e?o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Se copi\u00f3 el enlace al portapapeles.")})):o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo copiar al portapapeles.")}))}).catch(function(){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter msg link] failed to copy link to clipboard"])))})}};l.handleNewsletterMessageLinkCopyClick=d}),226); __d("WDSIconIcContentCopy.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-content-copy";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:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V7C3 6.71667 3.09583 6.47917 3.2875 6.2875C3.47917 6.09583 3.71667 6 4 6C4.28333 6 4.52083 6.09583 4.7125 6.2875C4.90417 6.47917 5 6.71667 5 7V20H15C15.2833 20 15.5208 20.0958 15.7125 20.2875C15.9042 20.4792 16 20.7167 16 21C16 21.2833 15.9042 21.5208 15.7125 21.7125C15.5208 21.9042 15.2833 22 15 22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WDSIconIcLink.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-link";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:"M7 17C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H10C10.2833 7 10.5208 7.09583 10.7125 7.2875C10.9042 7.47917 11 7.71667 11 8C11 8.28333 10.9042 8.52083 10.7125 8.7125C10.5208 8.90417 10.2833 9 10 9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H10C10.2833 15 10.5208 15.0958 10.7125 15.2875C10.9042 15.4792 11 15.7167 11 16C11 16.2833 10.9042 16.5208 10.7125 16.7125C10.5208 16.9042 10.2833 17 10 17H7ZM9 13C8.71667 13 8.47917 12.9042 8.2875 12.7125C8.09583 12.5208 8 12.2833 8 12C8 11.7167 8.09583 11.4792 8.2875 11.2875C8.47917 11.0958 8.71667 11 9 11H15C15.2833 11 15.5208 11.0958 15.7125 11.2875C15.9042 11.4792 16 11.7167 16 12C16 12.2833 15.9042 12.5208 15.7125 12.7125C15.5208 12.9042 15.2833 13 15 13H9ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H14Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebMultiSelectBar.react",["fbt","$InternalEnum","WAWebChatEphemerality","WAWebCopyUtils","WAWebEnvironment","WAWebForwardActionUserJourneyLogger","WAWebMsgActionCapability","WAWebMsgCollection","WAWebMultiSelectCount.react","WAWebMultiSelectDelete.react","WAWebMultiSelectDownload.react","WAWebMultiSelectForward.react","WAWebMultiSelectKeep.react","WAWebMultiSelectStar.react","WAWebNewsletterMsgLinkUtils","WAWebTabOrder","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WDSIconIcClose.react","WDSIconIcContentCopy.react","WDSIconIcLink.react","WDSMenuBarItem.react","asyncToGeneratorRuntime","react","stylex","useMergeRefs","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c,d,m=d||(d=r("react")),p=(u||(u=o("react"))).useRef,_={multiControls:{position:"x10l6tqk",bottom:"x1ey2m1c",insetInlineStart:"x1o0tod",zIndex:"xfo81ep",boxSizing:"x9f619",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",width:"xh8yej3",height:"x12659sl",backgroundColor:"x1od0jb8",$$css:!0},mediaGalleryTheme:{top:"x13vifvy",height:"x7j6532",backgroundColor:"x1280gxy",$$css:!0},btnMargin:{marginInlineEnd:"xqf2s3x",$$css:!0}},f=n("$InternalEnum")({CONVERSATION_PANEL:"conversation_panel",MEDIA:"media",DOCS:"docs",LINKS:"links",PRODUCTS:"products"}),g=n("$InternalEnum")({DEFAULT:"default",DELETE:"delete",FORWARD:"forward"});function h(t){"use no forget";var a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=i.selectedMessages,u=i.chat,d=i.toastPosition,f=i.onCancel,h=i.noSortOnForward,y=i.downloadButton,C=y===void 0?!0:y,b=i.entryPoint,v=i.mode,S=v===void 0?g.DEFAULT:v,R=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),L=p(null),E=r("useMergeRefs")(a,L),k=function(){var e=l.getSelected();o("WAWebNewsletterMsgLinkUtils").handleNewsletterMessageLinkCopyClick(e[0])},I=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield o("WAWebCopyUtils").copyMessagesToClipboard(T);if(e!=null&&e>0){var t=s._(/*BTDS*/"_j{\"*\":\"Se copiaron {number_of_reactions} mensajes en el portapapeles.\",\"_1\":\"Se copi\\u00f3 1 mensaje en el portapapeles.\"}",[s._plural(e,"number_of_reactions")]);o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:t})),f()}else o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se pudo copiar en el portapapeles.")}))});return function(){return e.apply(this,arguments)}})();o("useWAWebListener").useListeners(l.getSelected().map(function(e){return{source:e,eventOrEvents:"change:star",callback:R}})),o("useWAWebListener").useListener(l,"all",R),o("useWAWebListener").useListener(o("WAWebMsgCollection").MsgCollection,"change:star change:kicState",function(e){l.isSelected(e)&&R()});var T=i.selectedMessages.getSelected(),D=T.length,x=D===1&&o("WAWebMsgActionCapability").canCopyNewsletterMessageLink(T[0]),$=x?m.jsx(r("WDSMenuBarItem.react"),{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,icon:r("WDSIconIcLink.react"),onClick:k,title:s._(/*BTDS*/"Copiar enlace"),marginInlineXstyle:_.btnMargin}):null,P=r("WAWebEnvironment").isWindows?m.jsx(r("WDSMenuBarItem.react"),{tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,icon:r("WDSIconIcContentCopy.react"),disabled:T.length===0||!T.every(function(e){return o("WAWebCopyUtils").canCopyMessage(e)}),title:s._(/*BTDS*/"Copiar"),onClick:I,marginInlineXstyle:_.btnMargin}):null,N=m.jsx(r("WAWebMultiSelectForward.react"),{noSortOnForward:h,onCancel:f,selectedMessages:l,onForwardModalOpen:function(){o("WAWebForwardActionUserJourneyLogger").ForwardActionUserJourneyLogger.forwardButtonTappedInForwardToolbar(l.getSelected())}}),M=m.jsx(r("WAWebMultiSelectDelete.react"),{onCancel:f,selectedMessages:l,toastPosition:d}),w=D>0,A=w,F=!1,O=!1,B=!1;T.forEach(function(e){e.canShowKeepOrUnkeepOption()?F=!0:(O=!0,A=!1,e.keepIsLockedForMe()&&(B=!0))});var W,q,U=(F||B)&&O;if(!U){var V=A||!D&&o("WAWebChatEphemerality").isEphemeralSettingOn(u);V?q=m.jsx(r("WAWebMultiSelectKeep.react"),{selectedMessages:l,onCancel:f,entryPoint:b}):W=m.jsx(r("WAWebMultiSelectStar.react"),{selectedMessages:l,onCancel:f,toastPosition:d})}var H=m.jsx(r("WAWebMultiSelectDownload.react"),{downloadButton:C,onCancel:f,selectedMessages:l,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR}),G=i.theme==="mediaGallery",z=[];switch(S){case g.DELETE:z.push(M);break;case g.FORWARD:z.push(N);break;case g.DEFAULT:z.push($,P,W,q,M,N,H);break}var j=S===g.DELETE?s._(/*BTDS*/"Cancelar eliminaci\u00f3n"):S===g.FORWARD?s._(/*BTDS*/"Cancelar reenv\u00edo"):S===g.DEFAULT?s._(/*BTDS*/"Cancelar selecci\u00f3n"):(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+S)})(),K=m.jsx(r("WDSMenuBarItem.react"),{title:j,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,icon:r("WDSIconIcClose.react"),testid:void 0,onClick:i.onCancel,marginInlineXstyle:_.btnMargin});return m.jsxs("div",babelHelpers.extends({ref:E},(c||(c=r("stylex"))).props(G&&_.mediaGalleryTheme,_.multiControls,o("WAWebUISpacing").uiPadding.start15,o("WAWebUISpacing").uiPadding.end16),{children:[K,m.jsx(r("WAWebMultiSelectCount.react"),{selectedMsgsCount:D,theme:i.theme}),z]}))}h.displayName=h.name+" [from "+i.id+"]",l.MultiSelectBarEntryPoint=f,l.MultiSelectMode=g,l.MultiSelectBar=h}),226); __d("WAWebMultiSelectDownload.react",["fbt","WAWebChatGroupUtils","WAWebEnvironment","WAWebFrontendMsgGetters","WAWebMediaHubMessageActionHandlers","WAWebMiscGatingUtils","WAWebModernizr","WAWebMsgActionCapability","WAWebTabOrder","WDSIconIcDownload.react","WDSMenuBarItem.react","react","useWAWebListener"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e.useState,d={btnMargin:{marginInlineEnd:"xqf2s3x",$$css:!0}};function m(e){var t,n=e.downloadButton,a=e.isMediaHub,i=a===void 0?!1:a,l=e.onCancel,m=e.onDownload,p=e.selectedMessages,_=e.tabOrder,f=_===void 0?o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR:_,g=c((t=p==null?void 0:p.getSelected())!=null?t:[]),h=g[0],y=g[1],C=h.every(function(e){return o("WAWebMsgActionCapability").canDownloadMsg(e,i)&&e.mediaData}),b=h.map(function(e){return o("WAWebFrontendMsgGetters").getChat(e)}),v=b.some(function(e){return o("WAWebChatGroupUtils").isSuspendedGroup(e)}),S=v&&o("WAWebMiscGatingUtils").isGroupSuspendV2Enabled(),R=h.length;o("useWAWebListener").useListener(p,"all",function(){var e;y((e=p==null?void 0:p.getSelected())!=null?e:[])});var L=o("WAWebModernizr").getModernizr().adownload&&n&&!S;if(!L)return null;var E=r("WAWebEnvironment").isWindows?s._(/*BTDS*/"Guardar como\u2026"):s._(/*BTDS*/"Descargar"),k=!R||!C;return u.jsx(r("WDSMenuBarItem.react"),{icon:r("WDSIconIcDownload.react"),tabOrder:f,disabled:k,title:E,onClick:function(){o("WAWebMediaHubMessageActionHandlers").handleMessageDownloadClick(h,l,i?"media_hub":void 0),m==null||m()},marginInlineXstyle:d.btnMargin})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebKeepRefreshedIcon.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="keep-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M12 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.KeepRefreshedIcon=m}),98); __d("WAWebUnkeepRefreshedIcon.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="unkeep-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"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.UnkeepRefreshedIcon=m}),98); __d("WAWebMultiSelectKeep.react",["fbt","WALogger","WAWebKeepInChatActions","WAWebKeepInChatIcon.react","WAWebKeepRefreshedIcon.react","WAWebMsgGetters","WAWebMultiSelectBar.react","WAWebMultiSelectUtils","WAWebTabOrder","WAWebUnkeepRefreshedIcon.react","WAWebWamEnumKicEntryPointType","WAWebWamEnumMessageContextMenuOptionType","WDSMenuBarItem.react","asyncToGeneratorRuntime","getErrorSafe","react","useWAWebForceUpdate","useWAWebListener"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react"));function m(e){if(e==null)return o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.ALL_MEDIA;switch(e){case o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.CONVERSATION_PANEL:return o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.CHAT;case o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.MEDIA:return o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.MEDIA;case o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.DOCS:return o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.DOCS;case o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.LINKS:case o("WAWebMultiSelectBar.react").MultiSelectBarEntryPoint.PRODUCTS:return o("WAWebWamEnumKicEntryPointType").KIC_ENTRY_POINT_TYPE.LINKS}}var p={btnMargin:{marginInlineEnd:"xqf2s3x",$$css:!0}};function _(t){"use no forget";var a=t.entryPoint,i=t.onCancel,l=t.onKeep,c=t.onUnkeep,_=t.selectedMessages,f=t.theme,g=_.getSelected(),h=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),y=g.length,C=g.every(function(e){return o("WAWebMsgGetters").getIsKept(e)}),b=g.every(function(e){return e.canShowKeepOrUnkeepOption()}),v=(function(){var t=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=_.getSelected();try{yield o("WAWebKeepInChatActions").runBulkUndoKeepInChatUX(t,m(a),f==="mediaHub"),i(),c==null||c()}catch(t){var n;o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Bulk unkeep operation not complete. Reason: ",""])),(n=r("getErrorSafe")(t).message)!=null?n:"unknown")}o("WAWebMultiSelectUtils").logMessageActionClickMetric(t,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.UNKNOWN)});return function(){return t.apply(this,arguments)}})(),S=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=_.getSelected();try{yield o("WAWebKeepInChatActions").runBulkKeepInChatUX(e,m(a),f==="mediaHub"),i(),l==null||l()}catch(e){var t;o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["Bulk keep operation not complete. Reason: ",""])),(t=r("getErrorSafe")(e).message)!=null?t:"unknown")}o("WAWebMultiSelectUtils").logMessageActionClickMetric(e,o("WAWebWamEnumMessageContextMenuOptionType").MESSAGE_CONTEXT_MENU_OPTION_TYPE.UNKNOWN)});return function(){return e.apply(this,arguments)}})(),R,L,E;return y&&C?(R=o("WAWebUnkeepRefreshedIcon.react").UnkeepRefreshedIcon,L=s._(/*BTDS*/"Dejar de conservar"),E=v):(R=o("WAWebKeepInChatIcon.react").KeepInChatIcon,R=o("WAWebKeepRefreshedIcon.react").KeepRefreshedIcon,L=s._(/*BTDS*/"Conservar"),E=S),o("useWAWebListener").useListeners(g.map(function(e){return{source:e,eventOrEvents:"change:kicState",callback:h}})),d.jsx(r("WDSMenuBarItem.react"),{icon:R,tabOrder:o("WAWebTabOrder").TAB_ORDER.CHAT_SELECT_BAR,disabled:!y||!b,title:L,onClick:E,marginInlineXstyle:p.btnMargin})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebComposeBoxUtils",["fbt","WALogger","WAWebChatGetMessage","WAWebChatGetters","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebImageUtils","WAWebMediaConstants","WAWebMessageEditFlow.react","WAWebMiscErrors","WAWebModalManager","WAWebMsgActionCapability","WAWebPonyfillsFetch","WAWebQuestions.flow","WAWebStopEvent","WAWebToast.react","WAWebToastManager","WAWebURLUtils","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react"));function d(e){var t={mediaKey:e.data.mediaKey,mediaKeyTimestamp:e.data.mediaKeyTimestamp,thumbnailDirectPath:e.data.thumbnailDirectPath,thumbnailSha256:e.data.thumbnailSha256,thumbnailEncSha256:e.data.thumbnailEncSha256};return babelHelpers.extends({},e,{data:babelHelpers.extends({},e.data,t)})}function m(t,a,i,l){return r("WAWebPonyfillsFetch")(t,{headers:{Accept:"video/mp4"}}).then(function(t){if(!t.ok)throw o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["failed loading gif (status: ",")"])),t.status),new(o("WAWebMiscErrors")).MediaFileFailedLoad;return t.blob()}).then((function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=yield o("WAWebImageUtils").generateVideoThumbsAndDuration({file:e,maxDimensions:[o("WAWebMediaConstants").IMG_THUMB_MAX_EDGE],debugHint:"handleGif"}),n=t.thumbs,s=n[0],u=t.duration;return{file:e,filename:a,mimetype:e.type,isGif:!0,gifAttribution:i,fullPreview:window.URL.createObjectURL(e),fullPreviewSize:{width:s.fullWidth,height:s.fullHeight},preview:r("WAWebURLUtils").parseDataURL(s.url).data,duration:u,accessibilityLabel:l}});return function(t){return e.apply(this,arguments)}})())}function p(){o("WAWebModalManager").ModalManager.open(c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"Mensaje demasiado largo"),onOK:function(){o("WAWebModalManager").ModalManager.close()},okText:r("WAWebFbtCommon")("OK"),children:s._(/*BTDS*/"El mensaje que quieres pegar es demasiado largo. Intenta acortarlo o enviarlo en varias partes.")}))}function _(e,t){var n=o("WAWebChatGetMessage").getLastSentMsg(e);n&&o("WAWebMsgActionCapability").canEnterEditingFlow(n)?(o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebMessageEditFlow.react"),{msg:n})),o("WAWebStopEvent").stopEvent(t)):o("WAWebToastManager").ToastManager.open(c.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"No se puede editar el mensaje.")}))}function f(e){var t=e.chat,n=e.isEditingCaption,r=e.questionType;return n===!0?s._(/*BTDS*/"Escribe un comentario"):o("WAWebChatGetters").getIsNewsletter(t)?r===o("WAWebQuestions.flow").QuestionType.Question?s._(/*BTDS*/"Haz preguntas a tus seguidores"):r===o("WAWebQuestions.flow").QuestionType.Response?s._(/*BTDS*/"Responde a {channel-name}",[s._param("channel-name",t.name)]):r===o("WAWebQuestions.flow").QuestionType.Reply?s._(/*BTDS*/"Responde en {channel-name}",[s._param("channel-name",t.name)]):s._(/*BTDS*/"Escribe una actualizaci\u00f3n"):s._(/*BTDS*/"Escribe un mensaje")}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=o("WAWebChatGetters").getIsGroup(e);return t?s._(/*BTDS*/"Escribe al grupo {chatName}.",[s._param("chatName",e.formattedTitle)]):s._(/*BTDS*/"Escribe a {chatName}.",[s._param("chatName",e.formattedTitle)])}l.getCachedPreview=d,l.fetchGif=m,l.handleMaxPasteExceeded=p,l.editLastMessage=_,l.getComposeBoxPlaceholderText=f,l.getComposeBoxAriaLabelText=g}),226); __d("WAWebGetDisplayType",["WAWebBotGroupGatingUtils","WAWebChatGetters","WAWebChatGroupUtils","WAWebDisplayType","WAWebFrontendMsgGetters","WAWebMsgGetters","WAWebMsgType","WAWebNewsletterGatingUtils"],(function(t,n,r,o,a,i,l){function e(e){if(e==null||o("WAWebBotGroupGatingUtils").isOpenGroupBotParticipantAddEnabled()&&e.botGroupParticipant!=null)return o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION;if(o("WAWebMsgGetters").getIsStatus(e))return o("WAWebDisplayType").DISPLAY_TYPE.STATUS;var t=o("WAWebFrontendMsgGetters").getChat(e),n=o("WAWebMsgGetters").getIsMetaBotInvokeResponse(e),r=t!=null&&o("WAWebChatGroupUtils").isCommunityAnnouncementGroup(t),a=o("WAWebNewsletterGatingUtils").isNewsletterEnabled()&&t!=null&&o("WAWebChatGetters").getIsNewsletter(t),i=e.type===o("WAWebMsgType").MSG_TYPE.MESSAGE_HISTORY_BUNDLE;return n===!0?o("WAWebDisplayType").DISPLAY_TYPE.BOT_INVOKE_RESPONSE:i===!0?o("WAWebDisplayType").DISPLAY_TYPE.MESSAGE_HISTORY_BUNDLE:r===!0?o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT:a===!0?o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER:o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION}l.getDisplayType=e}),98); __d("WAWebMessageHandlers",["fbt","WAWebBotFrontendUtils","WAWebBotGating","WAWebChatCollection","WAWebCmd","WAWebCommentsModal.react","WAWebComposeBoxActions","WAWebConfirmPopup.react","WAWebDisplayType","WAWebFbtCommon","WAWebForwardMessageModalLoadable","WAWebFrontendChatGetters","WAWebFrontendMsgGetters","WAWebGetDisplayType","WAWebModalManager","WAWebMsgGetters","WAWebMsgType","WAWebMultiSelectBar.react","WAWebQuotedMessageUserJourneyLogger","WAWebRichTextInputConst","WAWebSimpleSignalPNToFBIDMigration","WAWebStateUtils","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=r("react")),c=function(t){var e=t.handleBack,n=t.handleClose,a=t.handleSelectClick,i=t.msg,l=t.multiSelect,c=t.onForward,d=t.openAsSupportModal,m=d===void 0?!1:d,p,_=o("WAWebFrontendMsgGetters").getIsUnsentMedia(i),f=o("WAWebFrontendMsgGetters").getAsRevoked(i),g=o("WAWebMsgGetters").getType(i),h=o("WAWebGetDisplayType").getDisplayType(i.unsafe()),y=o("WAWebDisplayType").isConversationDisplay(h);if(g===o("WAWebMsgType").MSG_TYPE.CIPHERTEXT)p=s._(/*BTDS*/"Espera a que el mensaje se entregue antes de reenviarlo.");else if(f)p=s._(/*BTDS*/"No se pueden reenviar mensajes cancelados.");else if(_)p=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)]);else{if(l&&y){a&&a(o("WAWebMultiSelectBar.react").MultiSelectMode.FORWARD);return}if(m){o("WAWebModalManager").ModalManager.openSupportModal(u.jsx(o("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:[o("WAWebStateUtils").unproxy(i)],onBack:e,onClose:function(){o("WAWebModalManager").ModalManager.closeSupportModal(),n==null||n()},onForward:c}),{transition:"modal-flow"});return}o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebForwardMessageModalLoadable").ForwardMessageModalLoadable,{msgs:[o("WAWebStateUtils").unproxy(i)],onBack:e,onClose:function(){o("WAWebModalManager").ModalManager.close(),n==null||n()},onForward:c}),{transition:"modal-flow"});return}o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"No se puede reenviar"),onOK:function(){return o("WAWebModalManager").ModalManager.close()},okText:r("WAWebFbtCommon")("OK"),children:p}))};function d(e,t,n){if(o("WAWebFrontendChatGetters").getIsCAG(e))o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebCommentsModal.react"),{parentMsgs:[t]}));else{var a,i,l=o("WAWebStateUtils").unproxy(t),s=t.senderObj;if(e.composeQuotedMsg=l,o("WAWebMsgGetters").getIsMetaBotResponse(l)&&e.canInvokeBot()&&((a=(i=e.getComposeContents())==null?void 0:i.text)!=null?a:"")===""){var c,d=(c=o("WAWebSimpleSignalPNToFBIDMigration").getDeprecatedPnChatForFbidInvoke(s.id))!=null?c:s.id,m=""+o("WAWebRichTextInputConst").ZWS+d.toString()+o("WAWebRichTextInputConst").ZWS+" ";o("WAWebComposeBoxActions").ComposeBoxActions.paste(e,m)}e===o("WAWebChatCollection").ChatCollection.getActive()?o("WAWebComposeBoxActions").ComposeBoxActions.focus(e):o("WAWebCmd").Cmd.openChatBottom({chat:e}),o("WAWebQuotedMessageUserJourneyLogger").QuotedMessageUserJourneyLogger.quotedMessageAdded(e.id,n,t)}}function m(e){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){e.shouldHideQuotedMsgAuthor=!0;var t=o("WAWebStateUtils").unproxy(e),n=yield o("WAWebBotFrontendUtils").getMetaAiChat();n.composeQuotedMsg=t,o("WAWebBotGating").isAiChatThreadsEnabled()?o("WAWebBotFrontendUtils").runMetaAiFlow(n,{type:"AskMetaAi"}):yield o("WAWebCmd").Cmd.openChatBottom({chat:n})}),p.apply(this,arguments)}l.handleOpenForwardFlow=c,l.handleMessageReply=d,l.handleAskMetaAi=m}),226); __d("WAWebLinkPreviewUtils",["WABase64","WALogger","WAWebDownloadManager","WAWebStartMediaDownloadQpl","WAWebWamEnumDownloadOriginType","WAWebWid","asyncToGeneratorRuntime","getErrorSafe"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e){return e==null?o("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.CHAT_PERSONAL:r("WAWebWid").isNewsletter(e)?o("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.CHANNEL:r("WAWebWid").isGroup(e)?o("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.CHAT_GROUP:r("WAWebWid").isBroadcast(e)?o("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.BROADCAST:o("WAWebWamEnumDownloadOriginType").DOWNLOAD_ORIGIN_TYPE.CHAT_PERSONAL}function d(e){var t=e.linkDetails,n=e.linkThumbnail,r=e.paymentLinkDetails,o=e.url,a=n!=null?n:{thumbnail:void 0};return{url:o,data:babelHelpers.extends({matchedText:o},t,a,r)}}function m(e){return p.apply(this,arguments)}function p(){return p=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){var n=t.chatWid,a=t.encryptionParams,i=t.hqThumbnailParams,l=t.mediaType,d=t.thumbnail,m=i!=null?i:{},p=m.directPath,_=m.thumbHash,f={thumbnail:d};if(_==null||p==null||p==="")return o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["link preview: malformed HQ preview"]))),f;o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["link preview: found HQ preview"])));var g=o("WAWebStartMediaDownloadQpl").startMediaDownloadQpl({entryPoint:"LinkPreviewDownload"});try{var h=a!=null?a:{encFilehash:null},y=yield o("WAWebDownloadManager").downloadManager.downloadAndMaybeDecrypt(babelHelpers.extends({directPath:p,filehash:_,type:l,signal:new AbortController().signal,userDownloadAttemptCount:0,chatWid:n,downloadQpl:g,downloadOrigin:c(n)},h)),C=o("WABase64").encodeB64(y),b=m.thumbHeight,v=m.thumbWidth;return g.endSuccess(),{thumbnail:d,thumbnailDirectPath:p,thumbnailSha256:_,thumbnailHQ:C,thumbnailHeight:C!=null?b:void 0,thumbnailWidth:C!=null?v:void 0,thumbnailEncSha256:h.encFilehash,mediaKeyTimestamp:h.mediaKeyTimestamp,mediaKey:h.mediaKey}}catch(e){return g.endFailWithError("download_failed",r("getErrorSafe")(e).message),o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose([" Failed to download HQ link preview ",""])),e),f}}),p.apply(this,arguments)}l.genLinkPreview=d,l.getThumbnailDetails=m}),98); __d("WAWebLinkPreviewGroupUtils",["fbt","WAWebChatCollection","WAWebCommunityGatingUtils","WAWebCommunityGeneralChatImage.react","WAWebGroupMetadataCollection","WAWebGroupType","WAWebLinkPreviewUtils","WAWebMediaDataUtils","WAWebProtobufsE2E.pb","asyncToGeneratorRuntime","bx"],(function(t,n,r,o,a,i,l,s){var e=r("bx").getURL(r("bx")("9583")),u=100,c=s._(/*BTDS*/"Invitaci\u00f3n al chat en grupo").toString();function d(e,t){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){var a,i;if(n==null)return null;var l,s,c;try{var d,m=r("WAWebGroupMetadataCollection").filter(function(e){return e.inviteCode===n});if(m==null||m.length<1)return null;l=m[0],c=o("WAWebChatCollection").ChatCollection.get(l.id),s=(d=c)==null||(d=d.contact)==null||(d=d.profilePicThumb)==null?void 0:d.img}catch(e){return null}var _=.75;(s==null||s==="")&&(l.groupType===o("WAWebGroupType").GroupType.LINKED_GENERAL_GROUP&&o("WAWebCommunityGatingUtils").communityGeneralChatUIEnabled()?s=o("WAWebCommunityGeneralChatImage.react").GeneralChatPlaceholderFullUrl:s=e,_=1);var f=[{width:u,height:u,imageFormat:"image/jpeg",imageFormatOptions:_}],g=yield o("WAWebMediaDataUtils").getResizedThumbData(s,f),h=g!=null&&g.length>0?g[0]:void 0,y=(a=l.getParentGroupChat())==null?void 0:a.formattedTitle,C;l.groupType===o("WAWebGroupType").GroupType.LINKED_SUBGROUP?C=y:C=p(l.groupType,y);var b=o("WAWebLinkPreviewUtils").genLinkPreview({url:t,linkDetails:{title:(i=c)==null?void 0:i.formattedTitle,description:C,richPreviewType:o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,doNotPlayInline:!0,inviteGrpType:l.groupType,isLoading:!1},linkThumbnail:{thumbnail:h==null?void 0:h.dataUrl,thumbnailHeight:h==null?void 0:h.height,thumbnailWidth:h==null?void 0:h.width}});return b}),m.apply(this,arguments)}function p(e,t){return e===o("WAWebGroupType").GroupType.COMMUNITY?s._(/*BTDS*/"Invitaci\u00f3n a la comunidad").toString():e===o("WAWebGroupType").GroupType.LINKED_SUBGROUP&&t!=null?s._(/*BTDS*/"Grupo en \"{community}\"",[s._param("community",t)]).toString():e===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP?s._(/*BTDS*/"Avisos").toString():c}l.GROUP_INVITE_DEFAULT_DESCRIPTION=c,l.getGroupInviteLinkPreview=d,l.getInviteLinkDescription=p}),226); __d("WAWebMediaLinkPreviewDescription.react",["WAWebEmojiText.react","WAWebL10N","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=e||(e=r("react")),c={description:{color:"xaweak3",flexGrow:"x1c4vz4f",flexShrink:"x7f0hsc",flexBasis:"xdl72j9",fontSize:"x1pg5gke",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",$$css:!0},statusDescription:{color:"xa2ctma",fontSize:"x1f6kntn",$$css:!0},oneLineClamp:{maxHeight:"xu2okd2",WebkitBoxOrient:"x1ua5tub",display:"x104kibb",WebkitLineClamp:"xh0615m",$$css:!0},twoLinesClamp:{maxHeight:"xa14qb",WebkitBoxOrient:"x1ua5tub",display:"x104kibb",$$css:!0},composeDescription:{maxWidth:"x17fpy1y",lineHeight:"x1n6pog2",fontSize:"x1f6kntn",$$css:!0},tenLinesClamp:{WebkitBoxOrient:"x1ua5tub",WebkitLineClamp:"x1but23e",display:"x104kibb",$$css:!0},fullPreviewNotHighQualityLayoutDescription:{overflowX:"x1plvlek",overflowY:"xryxfnj",$$css:!0}},d=280;function m(e){var t=e.isCompose,n=e.isComposeHQPreview,r=e.isFullPreview,o=e.isHighQualityLayout;return t?n?c.twoLinesClamp:c.oneLineClamp:r?o?c.tenLinesClamp:c.fullPreviewNotHighQualityLayoutDescription:c.twoLinesClamp}function p(e){var t=e.breakWord,n=e.children,a=e.isCompose,i=e.isComposeHQPreview,l=e.isFullPreview,p=e.isHighQualityLayout,_=e.isStatus,f=e.testid,g=e.useTextLimit;if(n==null)return null;var h=r("WAWebL10N").isRTL()?"rtl":"ltr",y=typeof n=="string"?h:void 0,C=g?d:void 0;return u.jsx("div",babelHelpers.extends({"data-testid":void 0},(s||(s=r("stylex"))).props([c.description,_&&c.statusDescription,a&&[c.composeDescription,o("WAWebUISpacing").uiMargin.bottom1],m({isCompose:a,isComposeHQPreview:i,isFullPreview:l,isHighQualityLayout:p})]),{children:typeof n=="string"?u.jsx(o("WAWebEmojiText.react").EmojiText,babelHelpers.extends({text:n,textLimit:C,titlify:!0,direction:y,multiline:!0},t===!0&&{breakWord:!0})):n}))}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("WAWebMediaLinkPreviewImageLayout.react",["WAWebDisplayType","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c=90,d=240,m=330,p=480,_=.25,f=1,g=1,h=1.4,y={thumbnailContainer:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},highQualityLayoutThumbnailContainer:{width:"xh8yej3",$$css:!0},blurred:{filter:"x14tgpju",$$css:!0}};function C(e,t,n){n===void 0&&(n=!1);var r=n?[f,_]:[h,g],o=r[0],a=r[1];return Math.min(Math.max(e/t,a),o)}function b(e,t,n){return n?m:e===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT||e===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER?p:t?m:d}function v(e){var t=e.children,n=e.displayType,r=e.galleryView,o=e.height,a=e.isComposerHightQualityLayout,i=e.isHighQualityLayout,l=e.isStatus,s=e.thumbnailJpegDirectPath,c=e.thumbnailJpegHQ,d=e.width;if((s!=null&&s!==""||c!=null&&c!=="")&&o!=null&&d!=null&&!r){var m=i||a?S:R;return u.jsx(m,{height:o,width:d,displayType:n,isCompose:a,hasHqThumbnail:c!=null,children:t})}return l&&i?u.jsx("div",{className:"x78zum5 xs83m0k x6ikm8r x10wlt62 xmqja0k xh8yej3",children:t}):t}v.displayName=v.name+" [from "+i.id+"]";function S(t){var n=t.children,o=t.displayType,a=t.hasHqThumbnail,i=t.height,l=t.isCompose,s=t.width,c=C(i,s,!0),d=c<1,m=b(o,d,l),p={height:m*c};return u.jsx("div",{"data-testid":void 0,className:(e||(e=r("stylex")))([y.thumbnailContainer,!l&&y.highQualityLayoutThumbnailContainer,!a&&y.blurred]),style:p,children:n})}S.displayName=S.name+" [from "+i.id+"]";function R(t){var n=t.children,o=t.displayType,a=t.hasHqThumbnail,i=t.height,l=t.isCompose,s=t.width,d=o,m=C(i,s),p=c,_={width:p/m,minWidth:p/m};return u.jsx("div",{"data-testid":void 0,className:(e||(e=r("stylex")))([y.thumbnailContainer,!a&&y.blurred]),style:_,children:n})}R.displayName=R.name+" [from "+i.id+"]",l.default=v}),98); __d("WAWebMediaLinkPreviewImage.react",["WAWebDisplayType","WAWebLinkRefreshedIcon.react","WAWebMediaGatingUtils","WAWebMediaLinkPreviewImageLayout.react","react","stylex"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u=s||(s=o("react")),c="102px",d={fullPreviewNotHighQualityLayoutMediaWithoutDescription:{marginBottom:"xyorhqc",$$css:!0},media:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",$$css:!0},mediaLQ:{height:"xkzwgj6",width:"x1hcvz70",objectFit:"xl1xv1r",$$css:!0},composeMediaHQ:{maxHeight:"x1vke2v8",$$css:!0},composeMedia:{minHeight:"x1t8mtvt",height:"xk1v102",minWidth:"x17csl3h",width:"x1mpcz0v",$$css:!0},botPluginLinkMedia:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",height:"x1s09uj0",width:"xduvqi9",objectFit:"xl1xv1r",$$css:!0},supportCitationsLinkMedia:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",marginTop:"xvijh9v",marginInlineEnd:"x1mpyi22",marginBottom:"x1ty9z65",marginInlineStart:"xm2jcoa",objectFit:"xl1xv1r",$$css:!0},statusMedia:{height:"xwc1p85",width:"xpmtt7c",$$css:!0},highQualityLayoutMedia:{width:"xh8yej3",height:"x5yr21d",$$css:!0},fullPreviewNotHighQualityLayoutMedia:{marginTop:"x1anpbxc",marginInlineEnd:"x1sa5p1d",marginBottom:"xat24cr",marginInlineStart:"x1hm9lzh",borderStartStartRadius:"xrxyp3c",borderStartEndRadius:"xv0oops",borderEndEndRadius:"x1isl5vh",borderEndStartRadius:"xn8zj9a",float:"x1faq86j",height:"xx6r9nl",width:"x155sd6h",$$css:!0},isInviteMedia:{borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",flexBasis:"xdl72j9",marginTop:"x1xmf6yo",marginInlineEnd:"x14z9mp",marginBottom:"x1e56ztr",marginInlineStart:"x1hm9lzh",height:"x112a4uq",width:"x15jighw",$$css:!0},noThumbIcon:{color:"xqa0p2g",$$css:!0}};function m(t){var n=t.displayType,a=t.isCompose,i=t.isFullPreview,l=t.isHighQualityLayout,s=t.isInvite,c=t.isStatus,m=t.theme,p=t.thumbnail,_=t.thumbnailJpeg,f=t.thumbnailJpegDirectPath,g=t.thumbnailJpegHeight,h=t.thumbnailJpegHQ,y=t.thumbnailJpegWidth,C=t.withoutDescription,b=a&&h!=null&&y!=null&&y>240&&o("WAWebMediaGatingUtils").shouldUseLargeHQPreviewInComposer(),v=m==="bot_plugin_link",S=m==="support_citations_link",R=(e||(e=r("stylex")))([v&&d.botPluginLinkMedia,S&&d.supportCitationsLinkMedia,!v&&d.media,!v&&!S&&(b?d.composeMediaHQ:d.mediaLQ),c&&d.statusMedia,l&&d.highQualityLayoutMedia,i&&!l&&d.fullPreviewNotHighQualityLayoutMedia,i&&!l&&C&&d.fullPreviewNotHighQualityLayoutMediaWithoutDescription,s&&d.isInviteMedia,a&&!b&&d.composeMedia]),L=n===o("WAWebDisplayType").DISPLAY_TYPE.GALLERY;if(p!=null&&p!=="")return u.jsx("div",{"data-testid":void 0,className:R,children:p});if(_!=null&&_!==""||h!=null&&h!==""){var E=h!=null&&h!==""&&!L?h:_;if(E!=null)return u.jsx(r("WAWebMediaLinkPreviewImageLayout.react"),{thumbnailJpegDirectPath:f,thumbnailJpegHQ:h,height:g,width:y,galleryView:L,isStatus:c,isComposerHightQualityLayout:b,displayType:n,isHighQualityLayout:l,children:u.jsx("img",{"data-testid":void 0,alt:"",className:R,src:"data:image/jpeg;base64,"+E})})}return L?u.jsx("div",{"data-testid":void 0,className:"x1n2onr6 x78zum5 x1c4vz4f x2lah0s xdl72j9 x6s0dn4 xl56j7k x1hcvz70 xkzwgj6 x6ikm8r x10wlt62 x1280gxy",children:u.jsx(o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,{xstyle:d.noThumbIcon,width:32,height:32})}):null}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebMediaLinkPreviewTitle.react",["WAWebEmojiText.react","react"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=40;function c(e){var t=e.isBotPluginLink,n=e.isCompose,r=e.isStatus,a=e.title,i=e.titleDir,l=e.titleDirMismatch;return s.jsx("div",babelHelpers.extends({},{0:{className:"x1ua5tub x1h7i4cw xaweak3 x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f"},4:{className:"x1ua5tub x1h7i4cw x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f xj9wvw2 x1jchvi3"},2:{className:"x1ua5tub x1h7i4cw xaweak3 x104kibb x1c4vz4f xs83m0k xdl72j9 x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f x6prxxf xl6ok4j xjpr12u"},6:{className:"x1ua5tub x1h7i4cw x104kibb x1c4vz4f xs83m0k xdl72j9 x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f xj9wvw2 x6prxxf xl6ok4j xjpr12u"},1:{className:"x1ua5tub x1h7i4cw xaweak3 x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f x19phtnz"},5:{className:"x1ua5tub x1h7i4cw x104kibb x1c4vz4f xs83m0k xdl72j9 xjpr12u x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f xj9wvw2 x1jchvi3 x19phtnz"},3:{className:"x1ua5tub x1h7i4cw xaweak3 x104kibb x1c4vz4f xs83m0k xdl72j9 x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f x6prxxf xl6ok4j xjpr12u x19phtnz"},7:{className:"x1ua5tub x1h7i4cw x104kibb x1c4vz4f xs83m0k xdl72j9 x6ikm8r x10wlt62 xlyipyv x1yc453h x1s688f xj9wvw2 x6prxxf xl6ok4j xjpr12u x19phtnz"}}[!!r<<2|!!n<<1|!!t<<0],{title:a,children:s.jsx(o("WAWebEmojiText.react").EmojiText,{text:a,textLimit:t?u:1/0,ellipsify:!0,breakWord:!0,direction:i,dirMismatch:l,testid:void 0,multiline:!0})}))}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMediaLinkPreview.react",["cx","fbt","WABidi","WAWebABProps","WAWebClassnames","WAWebDisplayType","WAWebEmojiText.react","WAWebGroupType","WAWebKeepInChatIcon.react","WAWebL10N","WAWebLinkPreviewGroupUtils","WAWebLinkRefreshedIcon.react","WAWebMediaGatingUtils","WAWebMediaLinkPreviewDescription.react","WAWebMediaLinkPreviewImage.react","WAWebMediaLinkPreviewTitle.react","WAWebNewsletterApiParse","WAWebNewsletterGatingUtils","WAWebStarIcon.react","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s,u){var e,c,d=e||(e=r("react")),m=20,p="x1qak2s4-B",_="102px",f={preview:{alignItems:"x6s0dn4",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769",color:"x14ug900",cursor:"x1ypdohk",display:"x78zum5",flexDirection:"x1q0g3np",fontSize:"x1wl59ut",lineHeight:"x1n6pog2",overflowX:"x6ikm8r",overflowY:"x10wlt62",transition:"xnhwuio",$$css:!0},noBorderRadius:{borderStartStartRadius:"x1bczwif",borderStartEndRadius:"x17un8ov",borderEndEndRadius:"x1e7945m",borderEndStartRadius:"x11o6v7j",$$css:!0},compose:{backgroundColor:"xjbqb8w",cursor:"x1sqbtui",marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",maxWidth:"x1x1rfll",width:"xh8yej3",$$css:!0},composeWithSQMediaPreview:{height:"xk1v102",maxHeight:"x1adh1z8",$$css:!0},composeWithHQMediaPreview:{maxHeight:"xaayvut",$$css:!0},bubbleIn:{backgroundColor:"x1bu39yj",$$css:!0},boubbleOut:{backgroundColor:"x1bu39yj",$$css:!0},fullPreview:{display:"x1lliihq",$$css:!0},extended:{borderEndEndRadius:"x1e7945m",borderEndStartRadius:"x11o6v7j",$$css:!0},highQualityLayout:{flexDirection:"xdt5ytf",$$css:!0},horizontalLayout:{flexDirection:"x1q0g3np",$$css:!0},status:{backgroundColor:"x1p8t8ri",width:"xh8yej3",$$css:!0},body:{boxSizing:"x9f619",display:"x78zum5",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",flexBasis:"xdl72j9",flexDirection:"xdt5ytf",justifyContent:"xl56j7k",lineHeight:"x17fgdl5",maxHeight:"x1q2aixq",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1yrsyyn",paddingInlineEnd:"x2vl965",paddingBottom:"x10b6aqq",paddingInlineStart:"xe2zdcy",width:"xh8yej3",$$css:!0},statusBody:{paddingTop:"xz9dl7a",paddingInlineEnd:"xpdmqnj",paddingBottom:"xsag5q8",paddingInlineStart:"x1g0dm76",maxHeight:"xi3n7jm",flexShrink:"x2lah0s",$$css:!0},fullPreviewBody:{maxHeight:"xjuq1rv",$$css:!0},fullPreviewNotHighQualityLayoutBody:{display:"x1lliihq",overflowX:"x1plvlek",overflowY:"xryxfnj",$$css:!0},notComposeBody:{alignSelf:"x1y8v6su",$$css:!0},composeBody:{alignSelf:"xamitd3",boxSizing:"x9f619",paddingTop:"x1y1aw1k",paddingInlineEnd:"xpdmqnj",paddingBottom:"xdvlbce",paddingInlineStart:"x1iwz3mf",$$css:!0},composeBodyLQ:{maxHeight:"x1adh1z8",$$css:!0},composeBodyHQ:{maxHeight:"xaayvut",$$css:!0},statusImageShrink:{display:"x78zum5",flexShrink:"xs83m0k",overflowX:"x6ikm8r",overflowY:"x10wlt62",maxHeight:"xmqja0k",width:"xh8yej3",$$css:!0},icon:{color:"x17t9dm2",pointerEvents:"x47corl",filter:"x1tqxd1j",$$css:!0},placeholderImage:{color:"xy8hc96",$$css:!0}};function g(e){return e!=null&&e!==""?o("WABidi").dir(e):void 0}function h(e){var t=e==="rtl";return t!==r("WAWebL10N").isRTL()}var y=240,C=/^(www.)?twitter.com$/i,b=/^(www.)?x.com$/i,v=[C,b];function S(e){return e==null||e===""?!1:v.some(function(t){return t.test(e)})}function R(e){var t=e.children,n=e.displayType,r=e.kept,a=e.star;if(n!==o("WAWebDisplayType").DISPLAY_TYPE.GALLERY)return t;var i=[];return a===!0&&i.push([o("WAWebStarIcon.react").StarIcon,16,15]),r===!0&&i.push([o("WAWebKeepInChatIcon.react").KeepInChatIcon,15.64,14.67]),d.jsxs("div",{"data-testid":void 0,className:"x1n2onr6 x78zum5 x1c4vz4f x2lah0s xdl72j9 x6s0dn4 xl56j7k x6ikm8r x10wlt62 x1280gxy",children:[t,i.length>0&&d.jsx("div",{className:"x78zum5 x10l6tqk xmnqija xy1j3rs",children:i.map(function(e){var t=e[0],n=e[1],r=e[2];return d.jsx(t,{xstyle:f.icon,width:n,height:r},t.name)})})]})}R.displayName=R.name+" [from "+i.id+"]";function L(e){var t=e.botPluginReferenceIndex,n=e.botReelPluginThumbnailData,a=e.compose,i=a===void 0?!1:a,l=e.containerXstyle,s=e.description,m=e.displayType,p=e.horizontalLayout,_=p===void 0?!1:p,C=e.inviteGrpType,b=e.isInvite,v=e.isLoading,L=e.isSentByMe,E=e.kept,k=e.matchedText,I=e.onClick,T=e.star,D=e.theme,x=e.thumbnail,$=e.thumbnailJpeg,P=e.thumbnailJpegDirectPath,N=e.thumbnailJpegHeight,M=e.thumbnailJpegHQ,w=e.thumbnailJpegWidth,A=e.title,F=D==="bot_plugin_link",O=m===o("WAWebDisplayType").DISPLAY_TYPE.GALLERY,B=(D==="high-quality"||D==="high-quality-extended")&&!O,W=!i&&!O&&S(k),q;if(o("WAWebNewsletterApiParse").isNewsletterInviteCode(k))o("WAWebNewsletterGatingUtils").isNewsletterEnabled()?o("WAWebABProps").getABPropConfigValue("channels_invite_link_preview_improvement_enabled")?q=s:q=u._(/*BTDS*/"Enlace de invitaci\u00f3n del canal"):q=null;else if(C!=null){var U;C===o("WAWebGroupType").GroupType.LINKED_SUBGROUP&&typeof s=="string"&&(U=s),q=o("WAWebLinkPreviewGroupUtils").getInviteLinkDescription(C,U)}else q=s;var V=g(A),H=h(V),G=m===o("WAWebDisplayType").DISPLAY_TYPE.STATUS,z=D==="support_citations_link",j=k!=null&&k!==""?d.jsx("div",babelHelpers.extends({"data-testid":void 0},{0:{className:"xhslqc4 x1c4vz4f x2lah0s xdl72j9 x1pg5gke x4p5aij"},4:{className:"x1c4vz4f x2lah0s xdl72j9 x4p5aij xa2ctma x1f6kntn"},2:{className:"x1c4vz4f x2lah0s xdl72j9 x4p5aij xhslqc4 x1f6kntn"},6:{className:"x1c4vz4f x2lah0s xdl72j9 x4p5aij xhslqc4 x1f6kntn"},1:{className:"xhslqc4 x1c4vz4f x2lah0s xdl72j9 x1pg5gke x4p5aij xuxw1ft x6ikm8r x10wlt62 xlyipyv"},5:{className:"x1c4vz4f x2lah0s xdl72j9 x4p5aij xa2ctma x1f6kntn xuxw1ft x6ikm8r x10wlt62 xlyipyv"},3:{className:"x1c4vz4f x2lah0s xdl72j9 x4p5aij xhslqc4 x1f6kntn xuxw1ft x6ikm8r x10wlt62 xlyipyv"},7:{className:"x1c4vz4f x2lah0s xdl72j9 x4p5aij xhslqc4 x1f6kntn xuxw1ft x6ikm8r x10wlt62 xlyipyv"}}[!!G<<2|!!i<<1|!!z<<0],{children:d.jsx(o("WAWebEmojiText.react").EmojiText,{text:k,direction:V,dirMismatch:H})})):null,K=i&&M!=null&&w!=null&&w>y&&o("WAWebMediaGatingUtils").shouldUseLargeHQPreviewInComposer(),Q=o("WAWebClassnames").classnamesConvertMeToStylexPlease("_ahwq",(c||(c=r("stylex")))([f.preview,i&&f.noBorderRadius,i&&f.compose,i&&(M!=null&&K?f.composeWithHQMediaPreview:f.composeWithSQMediaPreview),L===!0?f.boubbleOut:f.bubbleIn,G&&f.status,G&&B&&f.statusImageShrink,D==="extended"&&f.extended,B&&f.highQualityLayout,W&&!B&&f.fullPreview,_&&f.horizontalLayout,l])),X=v,Y=X?d.jsx(o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,{xstyle:[o("WAWebUISpacing").uiPadding.all24,f.placeholderImage],width:32,height:32}):d.jsx(r("WAWebMediaLinkPreviewImage.react"),{thumbnail:x,thumbnailJpeg:$,thumbnailJpegHQ:M,thumbnailJpegDirectPath:P,thumbnailJpegHeight:N,thumbnailJpegWidth:w,isHighQualityLayout:B,displayType:m,isStatus:G,isFullPreview:W,theme:D,withoutDescription:q==null,isInvite:m!==o("WAWebDisplayType").DISPLAY_TYPE.GALLERY?!!b:!1,isCompose:i}),J=d.jsx(r("WAWebMediaLinkPreviewDescription.react"),{useTextLimit:W&&!B,isStatus:G,isFullPreview:W,isHighQualityLayout:B,isComposeHQPreview:K,isCompose:i,testid:void 0,children:q}),Z=A!=null&&F&&t!=null?t+". "+A:A;return d.jsxs("div",{"data-testid":void 0,className:Q,style:i?{":empty":{display:"none"}}:void 0,onClick:I,children:[d.jsx(R,{star:T,kept:E,displayType:m,children:Y}),d.jsxs("div",babelHelpers.extends({},c.props(f.body,G&&f.statusBody,W&&f.fullPreviewBody,W&&!B&&f.fullPreviewNotHighQualityLayoutBody,i?f.composeBody:f.notComposeBody,i&&(K?f.composeBodyHQ:f.composeBodyLQ)),{children:[!X&&d.jsx(r("WAWebMediaLinkPreviewTitle.react"),{isBotPluginLink:F,isCompose:i,isStatus:G,title:Z,titleDir:V,titleDirMismatch:H}),!F&&!X&&J,j]})),X&&d.jsx("div",{className:"xm0bted x1ptvdk8 xvjg3zp x1esw782 xa4qsjk x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d x47corl"})]})}L.displayName=L.name+" [from "+i.id+"]",l.default=L}),226); __d("WAWebBizCatalogPreviewContainer.react",["WAWebExternalLink.react","WAWebMediaLinkPreview.react","WAWebMsgGetters","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t,n=e.msg,a=o("useWAWebMsgValues").useMsgValues(n.id,[(t=o("WAWebMsgGetters")).getThumbnail,t.getTitle,t.getDescription,t.getMatchedText,t.getIsSentByMe,t.getStar,t.getIsKept]),i=a[0],l=a[1],u=a[2],c=a[3],d=a[4],m=a[5],p=a[6],_=function(){var e=c;o("WAWebExternalLink.react").openExternalLink(e)};return s.jsx(r("WAWebMediaLinkPreview.react"),{title:l,description:u,thumbnailJpeg:i,onClick:_,isSentByMe:d,star:m,kept:p,isLoading:!1})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebFormatHeaderFooter",["WAWebFormatConfiguration"],(function(t,n,r,o,a,i,l){function e(e,t){return{formatters:o("WAWebFormatConfiguration").HeaderAndFooter({links:e,selectable:!0,trusted:t}),selectable:!0}}l.enableHeaderAndFooterFormatting=e}),98); __d("WAWebSpacerText.react",["WAWebABPropsSaga","WAWebClassnames","WAWebClock","WAWebFrontendMsgGetters","WAWebLidMigrationUtils","WAWebMessageMeta.react","WAWebMsgGetters","WAWebMsgType","WAWebMsgViewCount","WAWebNewsletterGatingUtils","WAWebPinMsgGatingUtils","WAWebQuotedMsgUtils","WAWebTextSizeUtils","WAWebThreadMsgUtils","WAWebThreadsGating","WAWebUISpacing","react","stylex","useWAWebIsPinnedMsg","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={spacerContainer:{fontSize:"x1ncwhqj",display:"x3nfvp2",verticalAlign:"xxymvpz",visibility:"xlshs6z",height:"xqtp20y",paddingTop:"xexx8yu",paddingInlineEnd:"x1uc92m",paddingBottom:"x18d9i69",paddingInlineStart:"x181vq82",$$css:!0},spacer:{flexGrow:"x1c4vz4f",flexShrink:"x2lah0s",$$css:!0}};function d(e){var t,n,a=e.className,i=e.isFollowUpReply,l=e.msg,d=e.xstyle,m=o("useWAWebMsgValues").useMsgValues(l.id,[(n=o("WAWebMsgGetters")).getId,n.getBroadcast,n.getIsSentByMe,n.getStar,n.getType,n.getIsKept,n.getIsEdited,n.getIsBizBot1pResponse,n.getT,n.getIsCAPISupport]),p=m[0],_=m[1],f=m[2],g=m[3],h=m[4],y=m[5],C=m[6],b=m[7],v=m[8],S=m[9],R=o("WAWebMsgViewCount").useWAWebLocalizedViewCount(l.id),L=r("useWAWebIsPinnedMsg")(p),E=o("WAWebTextSizeUtils").getWAWebTextSizeStyles().metaTextStyles,k=o("WAWebLidMigrationUtils").getShouldShowLidDebugUIForMsg(l),I=[],T=h===o("WAWebMsgType").MSG_TYPE.REVOKED,D=o("WAWebFrontendMsgGetters").getChat(l);R!=null&&o("WAWebNewsletterGatingUtils").isNewsletterViewCountEnabled(D==null||(t=D.newsletterMetadata)==null?void 0:t.membershipType)&&I.push(u.jsxs("span",babelHelpers.extends({},(s||(s=r("stylex"))).props([c.spacer,o("WAWebUISpacing").uiMargin.end12]),{children:[R,u.jsx(o("WAWebMessageMeta.react").MetaBullet,{})]}),"viewCount")),g&&!T&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x1xp8n7a"},"star")),y&&!T&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x1xp8n7a"},"kic")),L&&o("WAWebPinMsgGatingUtils").isPinnedMessagesM1ReceiverEnabled()&&!T&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x1xp8n7a"},"pin"));var x=o("WAWebThreadMsgUtils").getMsgViewAllRepliesThread(l);i===!0&&x!=null&&o("WAWebQuotedMsgUtils").getMessagesCountByThreadId(x)>=2&&o("WAWebThreadsGating").isFollowUpReplyEnabled()&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x1xp8n7a"},"followUpReply")),_&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x1xp8n7a"},"broadcast")),C&&!T&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s xk50ysn x2fvf9 xwklpps",children:o("WAWebMessageMeta.react").getEditedLabel()},"edited"));var $=o("WAWebMessageMeta.react").useBizBot1pLabel(l.safe());return $!=null&&(I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s xk50ysn x2fvf9 xwklpps",children:$},"bit-bot-label")),I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x6jxa94"},"biz-bot-icon"))),$==null&&S&&b&&o("WAWebABPropsSaga").getIsSagaV1Enabled()&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s x1849jeq"},"saga-message-marker")),(k||f)&&!T&&I.push(u.jsx("span",babelHelpers.extends({},{0:{className:"x1c4vz4f x2lah0s xn6xy2s"},1:{className:"x1c4vz4f x2lah0s xs2mk4o"}}[!!k<<0]),k?"lid-debug-ui":"checkmark")),k&&T&&I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s xs2mk4o"},"lid-debug-ui")),I.push(u.jsx("span",{className:"x1c4vz4f x2lah0s",children:v!=null?o("WAWebClock").Clock.timestampStr(v):null},"timestamp")),u.jsxs("span",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease(a,(s||(s=r("stylex")))(d)),children:[e.children,I.length>0&&u.jsx("span",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.spacerContainer,E),{"aria-hidden":!0,children:I}))]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMessageSpacerText.react",["cx","WAWebABProps","WAWebClassnames","WAWebCurrentUser","WAWebMsgGetters","WAWebSpacerText.react","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t,n=e.children,a=e.className,i=e["data-id"],l=e.isFollowUpReply,s=e.msg,c=e.overflowVisible,d=e.spacer,m=e.theme,p=o("useWAWebMsgValues").useMsgValues(s.id,[o("WAWebMsgGetters").getIsFromTemplate]),_=p[0],f=d!=null?d:!0,g;return o("WAWebCurrentUser").isEmployee()&&o("WAWebABProps").getABPropConfigValue("wa_web_debug_color_code_retry_messages")&&(g={backgroundColor:s.backgroundColor!=null&&typeof s.backgroundColor=="number"&&"#"+s.backgroundColor.toString(16)}),u.jsxs("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease(a,(t={},t._akbu=!0,t._akbw=m==="placeholder",t._akbv=_,t._aut5=m==="unifiedResponse",t),c===!0?null:"x6ikm8r x10wlt62"),style:g,children:[n,f&&u.jsx(r("WAWebSpacerText.react"),{msg:s,isFollowUpReply:l})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebBizTemplateMessageFooter.react",["WAWebEmojiText.react","WAWebFormatHeaderFooter","WAWebL10N","WAWebMessageSpacerText.react","WAWebMsgLinks","WAWebMsgType","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.dir,n=e.footer,a=e.isShown,i=e.msg,l=e.rtl,u=e.trusted,c=e.type,d=l!==r("WAWebL10N").isRTL();if(a&&n!=null){var m=i.isDynamicReplyButtonsMsg?o("WAWebFormatHeaderFooter").enableHeaderAndFooterFormatting(o("WAWebMsgLinks").getFooterLinks(i),u===!0):{},p=m.formatters,_=m.selectable;return s.jsx(r("WAWebMessageSpacerText.react"),{className:{0:"x9f619 x1yrsyyn xyri2b x1120s5i x1c1uobl x1nxh6w3 xuy8w9f xhslqc4",2:"x9f619 x1nxh6w3 xuy8w9f xhslqc4 x4p5aij x11lfxj5 x10b6aqq x25sj25",1:"x9f619 x1yrsyyn xyri2b x1c1uobl x1nxh6w3 xuy8w9f xhslqc4 x1i2zvha",3:"x9f619 x1nxh6w3 xuy8w9f xhslqc4 x4p5aij x11lfxj5 x25sj25 x1i2zvha"}[(c!==o("WAWebMsgType").MSG_TYPE.CHAT)<<1|!!d<<0],spacer:!l,msg:i,children:s.jsx(o("WAWebEmojiText.react").EmojiText,{text:n,direction:t,dirMismatch:d,selectable:_,formatters:p})})}return null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebReelPluginVideoIcon.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="reel-plugin-video";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=22,R=22;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 22 22",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M15.105 5.27L11.945 0H7.445H7.185C6.845 0.005 6.52 0.02 6.22 0.04L9.005 5.265H15.105V5.27ZM4.545 0.315C3.53 0.58 2.605 1.11 1.865 1.85C0.94 2.775 0.34 3.975 0.155 5.27H7.185L4.545 0.315ZM21.84 5.27C21.66 3.985 21.065 2.79 20.15 1.865C18.805 0.565 17.31 0 14.555 0H13.815L16.975 5.27H21.84ZM22 7.25C22 7.12 21.995 7.125 21.99 7H0.00999999L0.005 7.06C-4.65661e-09 7.185 0 7.315 0 7.445V14.56V14.77C0.03 17.39 0.595 18.84 1.85 20.14C3.195 21.435 4.69 22 7.445 22H14.555H14.765C17.385 21.97 18.835 21.405 20.135 20.155C21.435 18.81 22 17.315 22 14.56V7.445V7.25ZM14.59 14.675L9.455 17.675L9.4 17.705C9 17.9 8.52 17.73 8.33 17.33C8.275 17.22 8.25 17.1 8.25 16.98V10.98V10.915C8.285 10.475 8.67 10.145 9.115 10.18C9.235 10.19 9.35 10.225 9.455 10.285L14.59 13.285L14.65 13.325C15.01 13.58 15.095 14.085 14.835 14.445C14.775 14.54 14.69 14.615 14.59 14.675Z",fill:"white"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.ReelPluginVideoIcon=m}),98); __d("WAWebBotReelsPluginLinkPreview.react",["WABidi","WAWebBaseShimmerComponents.react","WAWebEmojiText.react","WAWebReelPluginVideoIcon.react","WDSHoverStateStyles","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={reelPluginPreview:{borderStartStartRadius:"xlr9sxt",borderStartEndRadius:"xvvg52n",borderEndEndRadius:"xwd4zgb",borderEndStartRadius:"xq8v1ta",overflowX:"x6ikm8r",overflowY:"x10wlt62",height:"xe7z42g",position:"x1n2onr6",cursor:"x1ypdohk",borderTopWidth:"xt8cgyo",borderInlineEndWidth:"x128c8uf",borderBottomWidth:"x1co6499",borderInlineStartWidth:"xc5fred",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"xnj1f2r",borderInlineEndColor:"x2uibgs",borderBottomColor:"xkveyfu",borderInlineStartColor:"x12llq9",$$css:!0}};function d(e){return e!=null&&e!==""?o("WABidi").dir(e):void 0}function m(e){var t=e.botReelPluginThumbnailUrl,n=e.reelProfilePictureUrl,a=e.title,i=d(a);return t==null?u.jsx("div",{className:"xlr9sxt xvvg52n xwd4zgb xq8v1ta x6ikm8r x10wlt62 xe7z42g x1n2onr6 x1ypdohk xt8cgyo x128c8uf x1co6499 xc5fred x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu xnj1f2r x2uibgs xkveyfu x12llq9",children:u.jsx(o("WAWebBaseShimmerComponents.react").RectangleShimmer,{height:300,width:170})}):u.jsxs("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.reelPluginPreview,o("WDSHoverStateStyles").WDSHoverStateStyles.genericHover),{onClick:e.handleClick,children:[u.jsx("img",{"data-testid":void 0,alt:"",src:"data:image/jpeg;base64,"+t,className:"xh8yej3 x5yr21d xl1xv1r"}),u.jsx("div",{className:"x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c x18k6ek x47corl x1ja2u2z xbyyjgo"}),u.jsxs("div",babelHelpers.extends({},{0:{className:"x10l6tqk xfr5jun xrotz4w x1awj2ng x1s688f x7yx35o x78zum5 x6s0dn4 x1vjfegm"},1:{className:"x10l6tqk xfr5jun xrotz4w x1awj2ng x1s688f x7yx35o x6s0dn4 x1vjfegm x1lliihq"}}[(n==null)<<0],{children:[n!=null&&u.jsx("img",{"data-testid":void 0,alt:"",src:"data:image/jpeg;base64,"+n,className:"xvy4d1p xxk0z11 x1c9tyrk xeusxvb x1pahc9y x1ertn4p xqf2s3x"}),u.jsx(o("WAWebEmojiText.react").EmojiText,{text:a,ellipsify:!0,breakWord:!0,direction:i,testid:void 0,multiline:!0})]})),u.jsx("div",{className:"x10l6tqk xqo3gd xrotz4w x1vjfegm",children:u.jsx(o("WAWebReelPluginVideoIcon.react").ReelPluginVideoIcon,{})})]}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebPaymentLinkOrderDetailsHeader.react",["fbt","PaymentLink","WABidi","WAWebFlex.react","WAWebL10N","WAWebLinkRefreshedIcon.react","WAWebMediaLinkPreviewDescription.react","WAWebMediaLinkPreviewTitle.react","WAWebThemeContext","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d={header:{boxSizing:"x9f619",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769",width:"xh8yej3",$$css:!0},bubbleIn:{backgroundColor:"x6egj2d",$$css:!0},bubbleOut:{backgroundColor:"x1k6n2fr",$$css:!0},hr:{width:"xh8yej3",borderTopWidth:"x178xt8z",borderTopStyle:"xlya59e",borderTopColor:"x1exxf4d",$$css:!0},total:{width:"xh8yej3",$$css:!0},icon:{paddingTop:"x1gxa6cn",paddingInlineEnd:"x1uc92m",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",$$css:!0},media:{width:"x1useyqa",height:"xsdox4t",backgroundPosition:"x1xsqp64",objectFit:"xl1xv1r",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",$$css:!0},paywithIcon:{borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",width:"x17z2i9w",height:"x17rw0jw",$$css:!0}};function m(t){var n=t.description,a=t.isSentByMe,i=t.matchedText,l=t.onClick,u=t.thumbnail,m=t.thumbnailJpeg,h=t.thumbnailJpegHQ,y=t.title;return c.jsx("div",{role:"button",onClick:l,onKeyPress:l,tabIndex:0,"data-testid":void 0,children:c.jsxs(o("WAWebFlex.react").FlexColumn,{testid:void 0,xstyle:[d.header,o("WAWebUISpacing").uiPadding.top6,o("WAWebUISpacing").uiPadding.bottom8,o("WAWebUISpacing").uiPadding.horiz8,a?d.bubbleOut:d.bubbleIn],children:[c.jsx("div",babelHelpers.extends({},(e||(e=r("stylex"))).props(d.hr,o("WAWebUISpacing").uiMargin.top4,o("WAWebUISpacing").uiMargin.bottom8))),c.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:d.total,testid:void 0,children:[_(u,m,h),c.jsxs(o("WAWebFlex.react").FlexColumn,{justify:"start",align:"start",testid:void 0,children:[f(y),g(n)]})]}),c.jsx("div",babelHelpers.extends({},e.props(d.hr,o("WAWebUISpacing").uiMargin.vert8))),c.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:d.total,align:"center",justify:"all",testid:void 0,children:[c.jsx(o("WAWebFlex.react").FlexColumn,{justify:"start",align:"center",testid:void 0,children:f(s._(/*BTDS*/"Pagar con").toString())}),c.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:d.icon,justify:"end",align:"center",testid:void 0,children:c.jsx("div",{className:"xugmkjn x1q71z5y x1d3wcft x7oa2jg x13fuv20 x18b5jzi x1q0q8m5 x1t7ytsu x178xt8z x1lun4ml xso031l xpilrb4 xbrszos xea3l6g x18isctg x2q3nzr x1849jeq xxk0z11 x6s0dn4 xxymvpz xw6alqk",children:p(i)})})]})]})})}m.displayName=m.name+" [from "+i.id+"]";function p(t){var n=o("PaymentLink").getPSP(t),a=o("PaymentLink").getPSPIconPath(n,o("WAWebThemeContext").isDarkTheme());return a==null?c.jsx(o("WAWebLinkRefreshedIcon.react").LinkRefreshedIcon,{iconXstyle:[d.paywithIcon,o("WAWebUISpacing").uiMargin.top1,o("WAWebUISpacing").uiMargin.start4]}):c.jsx("img",babelHelpers.extends({"data-testid":void 0,alt:"payment link"},(e||(e=r("stylex"))).props(d.paywithIcon,o("WAWebUISpacing").uiMargin.top1,o("WAWebUISpacing").uiMargin.start4),{src:a}))}p.displayName=p.name+" [from "+i.id+"]";function _(t,n,a){if(t!=null&&t!=="")return c.jsx("div",babelHelpers.extends({},(e||(e=r("stylex"))).props(d.media,o("WAWebUISpacing").uiMargin.end8),{children:t}));if(n!=null&&n!==""||a!=null&&a!==""){var i=a!=null&&a!==""?a:n;if(i!=null){var l={width:48,height:48};return c.jsx("div",babelHelpers.extends({"data-testid":void 0,style:l},(e||(e=r("stylex"))).props(o("WAWebUISpacing").uiMargin.end8),{children:c.jsx("img",{"data-testid":void 0,alt:"",className:"x1useyqa xsdox4t x1xsqp64 xl1xv1r xyi3aci xwf5gio x1p453bz x1suzm8a",src:"data:image/jpeg;base64,"+i})}))}}return null}function f(e){var t=h(e),n=y(t);return c.jsx("div",{className:"x1f6kntn",children:c.jsx(r("WAWebMediaLinkPreviewTitle.react"),{isBotPluginLink:!1,isCompose:!1,isStatus:!1,title:e,titleDir:t,titleDirMismatch:n})})}f.displayName=f.name+" [from "+i.id+"]";function g(e){return c.jsx("div",{className:"x1pg5gke xhslqc4",children:c.jsx(r("WAWebMediaLinkPreviewDescription.react"),{useTextLimit:!0,isStatus:!1,isFullPreview:!1,isHighQualityLayout:!1,isComposeHQPreview:!1,isCompose:!1,testid:void 0,breakWord:!0,children:e})})}g.displayName=g.name+" [from "+i.id+"]";function h(e){return e!=null&&e!==""?o("WABidi").dir(e):void 0}function y(e){var t=e==="rtl";return t!==r("WAWebL10N").isRTL()}l.default=m}),226); __d("WAWebMediaLinkPreviewContainer.react",["PaymentLinkWithCTAFeature","WAWebBotReelsPluginLinkPreview.react","WAWebCmd","WAWebDisplayType","WAWebExternalLink.react","WAWebFrontendMsgGetters","WAWebLinkify","WAWebLongLinkPop.react","WAWebMediaDataUtils","WAWebMediaDownloadMmsThumbnail","WAWebMediaLinkPreview.react","WAWebMediaLinkPreviewUtils","WAWebModalManager","WAWebMsgGetters","WAWebMsgLinks","WAWebPaymentLinkOrderDetailsHeader.react","WAWebProtobufsAICommon.pb","WAWebStatusContext","WAWebStatusLinkFormatMutator","WAWebSuspiciousLinkPopup.react","WAWebURLUtils","WAWebWamEnumUrlStatusClicked","asyncToGeneratorRuntime","punycode","react","useWAWebMsgValues","useWAWebPrevious"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.memo,m=u.useContext,p=u.useEffect,_=u.useState;function f(e){var t=e.displayType,a=e.horizontalLayout,i=a===void 0?!1:a,l=e.isInvite,s=e.msg,u=e.onClick,d=e.reelItem,f=e.theme,h=m(o("WAWebStatusContext").StatusContext),y=h.statusItemViewEventRef,C=_(null),b=C[0],v=C[1],S=_(null),R=S[0],L=S[1],E=o("useWAWebMsgValues").useMsgValues(s.id,[o("WAWebMsgGetters").getT,o("WAWebMsgGetters").getThumbnail,o("WAWebMsgGetters").getThumbnailHQ,o("WAWebMsgGetters").getThumbnailDirectPath,o("WAWebMsgGetters").getThumbnailHeight,o("WAWebMsgGetters").getThumbnailWidth,o("WAWebMsgGetters").getTitle,o("WAWebMsgGetters").getDescription,o("WAWebMsgGetters").getMatchedText,o("WAWebMsgGetters").getIsSentByMe,o("WAWebMsgGetters").getStar,o("WAWebFrontendMsgGetters").getAsUrl,o("WAWebMsgGetters").getInviteGrpType,o("WAWebMsgGetters").getIsKept,o("WAWebMsgGetters").getMediaKey,o("WAWebMsgGetters").getBotReelPluginThumbnailCdnUrl,o("WAWebMsgGetters").getPaymentLinkMetadata]),k=E[0],I=E[1],T=E[2],D=E[3],x=E[4],$=E[5],P=E[6],N=E[7],M=E[8],w=E[9],A=E[10],F=E[11],O=E[12],B=E[13],W=E[14],q=E[15],U=E[16],V=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=[{width:48,height:48,imageFormat:"image/jpeg",imageFormatOptions:1}],n=yield o("WAWebMediaDataUtils").getResizedThumbData(e,t),r=n[0];L(r==null?void 0:r.dataUrl)});return function(n){return e.apply(this,arguments)}})(),H=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=[{width:170,height:300,imageFormat:"image/jpeg",imageFormatOptions:1}],n=yield o("WAWebMediaDataUtils").getResizedThumbData(e,t),r=n[0];v(r==null?void 0:r.dataUrl)});return function(n){return e.apply(this,arguments)}})(),G=r("useWAWebPrevious")(D);p(function(){var e=F;e!=null&&(!e.thumbnailHQ||G!==D)&&!o("WAWebMediaLinkPreviewUtils").hqLinkPreviewExpired(k)&&r("WAWebMediaDownloadMmsThumbnail")({chat:o("WAWebFrontendMsgGetters").getMaybeChat(s),msg:e,isPreload:!1}),q!=null&&H(q),d!=null&&(H(d.thumbnailUrl),V(d.profileIconUrl))},[F,W,k,s,D,G,q,d]);var z=null;l||(z=g(M));var j=o("WAWebMsgLinks").getLinksFromMsg(s),K=j.map(function(e){return g(e.url)}).filter(Boolean);if(d==null&&z!=null&&!K.some(function(e){return e===z}))return c.jsx("div",{});var Q=o("WAWebMsgLinks").getSuspiciousLinks(s).filter(function(e){var t=e.url;return s.matchedText===t}),X,Y,J,Z,ee,te,ne;if(Q.length?ne=function(){var e=Q[0];o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebSuspiciousLinkPopup.react"),{link:e}))}:(ne=function(){var e,n=(e=d==null?void 0:d.videoUrl)!=null?e:M,a=y==null?void 0:y.current;if(a&&a.urlStatusClicked===o("WAWebWamEnumUrlStatusClicked").URL_STATUS_CLICKED.NO_CLICK&&(a.urlStatusClicked=o("WAWebWamEnumUrlStatusClicked").URL_STATUS_CLICKED.ONE_CLICK),t===o("WAWebDisplayType").DISPLAY_TYPE.STATUS){var i=o("WAWebLinkify").findLink(n);if(i!=null){var l=o("WAWebStatusLinkFormatMutator").cleanUrl(i),s=l[0],m=l[1],p=o("WAWebStatusLinkFormatMutator").redactUrl(s,m);if(p!==s+m){o("WAWebModalManager").ModalManager.open(c.jsx(r("WAWebLongLinkPop.react"),{link:i,statusItemViewEventRef:y})),o("WAWebCmd").Cmd.openLongLinkModal();return}}}o("WAWebExternalLink.react").openExternalLink(n),u&&u()},X=N,Y=I,o("WAWebMediaLinkPreviewUtils").hqLinkPreviewExpired(k)||(J=T,Z=D,ee=x,te=$)),t===o("WAWebDisplayType").DISPLAY_TYPE.BOT_REELS_PLUGIN){var re;return c.jsx(r("WAWebBotReelsPluginLinkPreview.react"),{title:(re=d==null?void 0:d.title)!=null?re:P,handleClick:ne,onClick:ne,botReelPluginThumbnailUrl:b,reelProfilePictureUrl:R})}return o("PaymentLinkWithCTAFeature").shouldShowPaymentLinkOrderHeader(U)?c.jsx(r("WAWebPaymentLinkOrderDetailsHeader.react"),{description:X,title:P,isSentByMe:w,thumbnailJpeg:Y,thumbnailJpegHQ:J,onClick:ne,matchedText:M}):c.jsx(r("WAWebMediaLinkPreview.react"),{description:X,displayType:t,isInvite:l,inviteGrpType:l===!0?O:null,onClick:ne,isSentByMe:w,thumbnailJpeg:Y,thumbnailJpegHQ:J,thumbnailJpegDirectPath:Z,thumbnailJpegHeight:ee,thumbnailJpegWidth:te,title:P,star:A,kept:B,theme:f,matchedText:z!=null?z:M,botPluginReferenceIndex:s.botPluginType===o("WAWebProtobufsAICommon.pb").BotPluginMetadata$PluginType.SEARCH?s.botPluginReferenceIndex:null,isLoading:!1,horizontalLayout:i})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=null;try{t=r("WAWebURLUtils").hostname(e),t=r("punycode").toUnicode(t)}catch(e){}return t}var h=d(f);l.getHostnameForUrl=g,l.LinkPreviewContainer=h}),98); __d("WAWebMessageBubbleActions.react",["$InternalEnum","WAWebClassnames","WAWebFlex.react","WAWebKeyboardListHotKeys.react","WAWebMiscGatingUtils","WAWebUISpacing","WAWebUseIsKeyboardUser","WDSFocusStateStyles","react","stylex","useWAWebStaticButtonA11y"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=r("react")),d=(e||(e=o("react"))).useState,m=n("$InternalEnum").Mirrored(["NO_DIVIDER","POLL_SENDER","POLL_RECEIVER","EVENT_CREATION","FORWARDED_NEWSLETTER","ALBUM","STICKER_PACK","MEDIA_DOCUMENT"]),p={noDividerContainer:{borderTopStyle:"x1ejq31n",$$css:!0},noDividerItem:{marginTop:"xdj266r",$$css:!0},icon:{marginTop:"xdj266r",marginInlineEnd:"xf6vk7d",marginBottom:"xat24cr",marginInlineStart:"xpcyujq",$$css:!0},container:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",marginInlineStart:"xsocnq2",marginInlineEnd:"xytepxb",$$css:!0},containerPolls:{marginInlineStart:"xm2xy8z",marginInlineEnd:"x1fl596a",$$css:!0},containerAlbum:{marginInlineStart:"xy0t4y3",marginInlineEnd:"xzpsbe2",$$css:!0},actionsBtn:{display:"x78zum5",flexGrow:"x1iyjqo2",alignItems:"x6s0dn4",justifyContent:"xl56j7k",paddingTop:"x1yrsyyn",overflowX:"x6ikm8r",overflowY:"x10wlt62",fontSize:"x1f6kntn",lineHeight:"x1fc57z9",color:"xo1mcw5",textAlign:"x2b8uid",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",width:"xh8yej3",paddingBottom:"xa0aww2",$$css:!0},disabledActionsBtn:{color:"xhslqc4",cursor:"xt0e3qv",$$css:!0},pollDisabledActionsBtnReceiver:{color:"xchv7qt",$$css:!0},pollDisabledActionsBtnSender:{color:"x2kn7w9",$$css:!0},notLastActionBtn:{paddingBottom:"x1a8lsjc",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"x120ee7l",$$css:!0},pollActionsContainer:{marginTop:"x1xmf6yo",$$css:!0},pollActionsItem:{paddingTop:"x1yrsyyn",paddingBottom:"x10b6aqq",$$css:!0},stickerPackContainer:{borderTopWidth:"x178xt8z",borderTopStyle:"x13fuv20",borderTopColor:"xx42vgk",$$css:!0},channelActionsItem:{paddingBottom:"xwib8y2",$$css:!0},mediaDocumentContainer:{marginInlineStart:"xy0t4y3",marginInlineEnd:"xzpsbe2",marginTop:"xav9cv8",$$css:!0}};function _(e){var t=e.direction,n=e.theme,r;e.placeholder===!0?r=c.jsx("div",{className:"x78zum5 x1iyjqo2 x6s0dn4 xl56j7k x1yrsyyn x6ikm8r x10wlt62 x1f6kntn x1fc57z9 xo1mcw5 x2b8uid xlyipyv xuxw1ft xh8yej3 xa0aww2",children:"\u200B"}):r=e.items.map(function(t,n){return c.createElement(f,babelHelpers.extends({},e,{index:n,key:n}))});var a=n===m.POLL_RECEIVER||n===m.POLL_SENDER,i=n===m.EVENT_CREATION;return c.jsx(o("WAWebFlex.react").FlexContainer,{direction:e.direction||"horizontal",xstyle:[n===m.STICKER_PACK?[p.stickerPackContainer,o("WAWebUISpacing").uiPadding.bottom4]:p.container,i?[o("WAWebUISpacing").uiMargin.start0,o("WAWebUISpacing").uiMargin.end0,o("WAWebUISpacing").uiMargin.top5]:o("WAWebUISpacing").uiMargin.top10,a&&p.pollActionsContainer,n===m.NO_DIVIDER&&t!=="vertical"&&p.noDividerContainer,a&&p.containerPolls,n===m.FORWARDED_NEWSLETTER&&[o("WAWebUISpacing").uiMargin.horiz0,o("WAWebUISpacing").uiMargin.top3],n===m.ALBUM&&p.containerAlbum,n===m.MEDIA_DOCUMENT&&p.mediaDocumentContainer],align:"center",justify:"evenly",children:r})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t,n=e.direction,a=e.index,i=e.items,l=e.theme,u=i[a],_=r("WAWebUseIsKeyboardUser")(),f=_.isKeyboardUser,h=d(!1),y=h[0],C=h[1],b=r("useWAWebStaticButtonA11y")(u.disabled===!0?void 0:u.onClick,{disabled:u.disabled}),v=b[0],S=b[1],R="";u.disabled!==!0&&!o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()&&(R=o("WAWebKeyboardListHotKeys.react").LIST_FOCUSABLE_ITEM_CLASS_NAME);var L=function(t){C(!0)},E=function(t){C(!1)},k=l===m.POLL_RECEIVER||l===m.POLL_SENDER,I=u.Icon;return c.jsx("button",babelHelpers.extends({ref:v,"data-testid":void 0,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((s||(s=r("stylex")))(p.actionsBtn,k&&p.pollActionsItem,l===m.FORWARDED_NEWSLETTER&&p.channelActionsItem,u.disabled===!0&&g(l),n==="vertical"&&a0&&(window.clearTimeout(a.current),r(n),a.current=window.setTimeout(function(){r(null)},5e3))};return o("WAWebCmd").Cmd.on("set_msg_highlight_terms",t),function(){window.clearTimeout(a.current),o("WAWebCmd").Cmd.off("set_msg_highlight_terms",t)}},[e]),n}l.default=m}),98); __d("WAWebMessageTextBody.react",["cx","WAWebBizCtwaAGMUtils","WAWebDisplayType","WAWebEmoji","WAWebEmojiText.react","WAWebExpandableText.react","WAWebFormatConfiguration","WAWebFrontendMsgGetters","WAWebL10N","WAWebMessageMultiEmoji.react","WAWebMsgGetters","WAWebMsgLinks","WAWebMsgPhoneNumbers","WDSFontTokenStyles","react","useWAWebMessageHighlightTerms"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t,n,a=e.botCommands,i=e.botMsgTextToRender,l=e.displayType,s=e.handleLinkClick,c=e.msg,d=e.trusted,m=r("useWAWebMessageHighlightTerms")(c.id),p=o("WAWebEmoji").EmojiUtil.matchLargeEmojiPattern(c.body);if(p){var _=p.length===1&&o("WAWebEmoji").EmojiUtil.getHeartEmojis().some(function(e){return o("WAWebEmoji").EmojiUtil.normalizeEmoji(e)===o("WAWebEmoji").EmojiUtil.normalizeEmoji(p[0])});return u.jsx(r("WAWebMessageMultiEmoji.react"),{animation:_,emojis:p})}var f=!0,g=!o("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessage((t=c.ctwaContext)==null?void 0:t.sourceApp,c.type,(n=c.ctwaContext)==null?void 0:n.automatedGreetingMessageShown)&&i!=null&&o("WAWebMsgGetters").getIsMetaBotResponse(c)?i:c.body;return u.jsx(o("WAWebExpandableText.react").ExpandableText,{text:g,textLimit:o("WAWebMsgGetters").getInitialPageSize(c),children:function(t){var e=t.textLimit,n=o("WAWebFormatConfiguration").Conversation({mentions:c.mentionMap(),groupMentions:c.groupMentionMap(),hasMentionAll:o("WAWebMsgGetters").getHasMentionAll(c.unsafe()),links:o("WAWebMsgLinks").getLinksFromMsg(c.unsafe(),e),phoneNumbers:o("WAWebMsgPhoneNumbers").getPhoneNumbersFromMsg(c.unsafe(),e),selectable:f,trusted:d===!0,fromMe:c.id.fromMe,fromChatWid:c.id.remote,commands:l===o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION?a:null,parseLists:!0,parseQuotes:!0,parseInlineCode:!0,onLinkClick:s,terms:m!=null?m:null});return u.jsx(o("WAWebEmojiText.react").EmojiText,{text:g,lastBotEditBodyLength:c.lastBotEditBodyLength,className:l===o("WAWebDisplayType").DISPLAY_TYPE.GALLERY?"_ahy4":"",xstyle:o("WDSFontTokenStyles").WDSFontTokenStyles.Body2,dirMismatch:o("WAWebFrontendMsgGetters").getRtl(c)!==r("WAWebL10N").isRTL(),direction:o("WAWebFrontendMsgGetters").getDir(c),inferLinesDirection:!0,formatters:n,selectable:f,textLimit:e})}})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMessageListAlbums",["WAWebMsgGetters","WAWebMsgType","WAWebWid"],(function(t,n,r,o,a,i,l){var e=4,s=102,u=168,c=240,d=3,m=600,p=[o("WAWebMsgType").MSG_TYPE.CALL_LOG];function _(e,t){var n,a;return(o("WAWebMsgGetters").getIsGroupMsg(e)?r("WAWebWid").equals(e.author,t.author):r("WAWebWid").equals(e.from,t.from))&&e.isForwarded===t.isForwarded&&((n=e.forwardedNewsletterMessageInfo)==null?void 0:n.newsletterId)===((a=t.forwardedNewsletterMessageInfo)==null?void 0:a.newsletterId)&&t.t-e.t<=m}var f=function(t){return!p.includes(t.type)&&o("WAWebMsgGetters").getIsNotification(t)};function g(e,t){return f(e)||f(t)?!1:e.forwardedNewsletterMessageInfo!=null?t.forwardedNewsletterMessageInfo==null?!1:e.forwardedNewsletterMessageInfo.newsletterId===t.forwardedNewsletterMessageInfo.newsletterId:o("WAWebMsgGetters").getIsGroupMsg(e)?r("WAWebWid").equals(e.author,t.author)&&o("WAWebMsgGetters").getIsSentByMe(e)===o("WAWebMsgGetters").getIsSentByMe(t):r("WAWebWid").equals(e.from,t.from)}l.ALBUM_MIN_SIZE=e,l.ALBUM_MAX_SIZE=s,l.ALBUM_MAX_HEIGHT=u,l.ALBUM_ANNOUNCEMENT_MAX_HEIGHT=c,l.ALBUM_PADDING=d,l.canBeGroupedAsAlbum=_,l.canBeGroupedWithNext=g}),98); __d("WAWebTypesMedia",["$InternalEnum"],(function(t,n,r,o,a,i){var e=n("$InternalEnum").Mirrored(["Album","AlbumV2","PhotoPoll"]);i.DisplayTheme=e}),66); __d("WAWebMessageCropping",["WAWebDisplayType","WAWebMessageListAlbums","WAWebMsgType","WAWebTypesMedia"],(function(t,n,r,o,a,i,l){var e,s=330,u=246,c=330,d=240,m=463,p=463,_=getComputedStyle(document.documentElement),f=_.getPropertyValue("--width-msg-bubble-with-media").trim(),g=parseInt(f,10),h={bubbleWidth:g,bubbleHeight:146};function y(e,t,n){var r=n/2,a=n/2;switch(t){case 1:r=n-o("WAWebMessageListAlbums").ALBUM_PADDING,a=n+o("WAWebMessageListAlbums").ALBUM_PADDING;break;case 2:e===0?a-=o("WAWebMessageListAlbums").ALBUM_PADDING:a+=o("WAWebMessageListAlbums").ALBUM_PADDING,r=n-o("WAWebMessageListAlbums").ALBUM_PADDING;break;case 3:e===0&&(r=n-o("WAWebMessageListAlbums").ALBUM_PADDING),e===1&&(r-=o("WAWebMessageListAlbums").ALBUM_PADDING);break;default:(e===0||e===2)&&(r-=o("WAWebMessageListAlbums").ALBUM_PADDING);break}return{width:r-o("WAWebMessageListAlbums").ALBUM_PADDING,height:a}}var C={width:s,portraitWidth:s,minAspectRatio:1,maxAspectRatio:2.4},b={width:m,portraitWidth:m,minAspectRatio:1,maxAspectRatio:2.4},v=babelHelpers.extends({},C,{portraitWidth:240,minAspectRatio:.71,maxAspectRatio:4}),S=babelHelpers.extends({},v,{width:480,portraitWidth:480}),R=new Set([o("WAWebMsgType").MSG_TYPE.IMAGE,o("WAWebMsgType").MSG_TYPE.VIDEO]),L=new Set([(e=o("WAWebDisplayType")).DISPLAY_TYPE.CONVERSATION,e.DISPLAY_TYPE.MSG_INFO,e.DISPLAY_TYPE.STARRED_MSGS,e.DISPLAY_TYPE.ANNOUNCEMENT,e.DISPLAY_TYPE.NEWSLETTER,e.DISPLAY_TYPE.CHANNEL_ALERTS_MSGS]);function E(e,t,n,r,a,i,l,s,u,c){if(n)return h;var d=r<1,p=u&&d?1:r,_=k(e,l,s,c),f,g;if(s===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW)return{bubbleWidth:c!=null?c:56,bubbleHeight:c!=null?c:56};if(l===o("WAWebTypesMedia").DisplayTheme.Album||l===o("WAWebTypesMedia").DisplayTheme.AlbumV2){var C=s===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT||s===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER?o("WAWebMessageListAlbums").ALBUM_ANNOUNCEMENT_MAX_HEIGHT:o("WAWebMessageListAlbums").ALBUM_MAX_HEIGHT,b=y(a,i,C*2),v=b.height,S=b.width;f=S,g=v}else{var R=p<1?_.portraitWidth:_.width;f=l===o("WAWebTypesMedia").DisplayTheme.PhotoPoll?m:R,g=I(_,p,e,t,s,f,l)}return{bubbleWidth:f,bubbleHeight:g}}function k(e,t,n,r){var a;return x(e,t,n)?n===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT||n===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER||n===o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS?a=S:a=v:t===o("WAWebTypesMedia").DisplayTheme.PhotoPoll?a=b:a=C,babelHelpers.extends({},a,{width:r!=null&&r<=a.width?r:a.width})}function I(e,t,n,r,a,i,l){var s=1.91,u;return r&&t<=s&&(u=T(s,e,n)),u=T(t,e,n,l),(a===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER||a===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT)&&u>i?i:u}function T(e,t,n,r){if(e==null)return r===o("WAWebTypesMedia").DisplayTheme.PhotoPoll?p:n===o("WAWebMsgType").MSG_TYPE.VIDEO?d:c;var a;return en/r?{height:"100%"}:{width:"100%"}}function x(e,t,n){return R.has(e)&&L.has(n)&&t!==o("WAWebTypesMedia").DisplayTheme.Album&&t!==o("WAWebTypesMedia").DisplayTheme.AlbumV2||e===o("WAWebMsgType").MSG_TYPE.PRODUCT&&n===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT}l.DEFAULT_WIDTH=s,l.IMAGINE_UR_WIDTH=u,l.DEFAULT_HEIGHT_PICTURE=c,l.DEFAULT_HEIGHT_VIDEO=d,l.CAROUSEL_MEDIA_DIMS=h,l.getBubbleDimension=E,l.getImgStyle=D,l.canUseCustomCropping=x}),98); __d("WAWebMessageDisclaimerText.react",["WAWebFlex.react","WAWebInfoIcon.react","WAWebMsgGetters","WAWebUISpacing","isStringNullOrEmpty","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={container:{color:"xhslqc4",paddingBottom:"xxbrewl",$$css:!0},icon:{display:"x3nfvp2",alignItems:"x6s0dn4",$$css:!0}};function c(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebMsgGetters").getBotMessageDisclaimerText]),a=n[0];return r("isStringNullOrEmpty")(a)?null:s.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",columnGap:8,xstyle:[u.container,o("WAWebUISpacing").uiPadding.top8],children:[s.jsx(o("WAWebInfoIcon.react").InfoIcon,{width:16,height:16,xstyle:u.icon}),s.jsx("span",{className:"x1n2onr6 x1f6kntn x1k4tb9n",children:a})]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebMessageTextBubble.react",["WAWebBizCtwaAGMUtils","WAWebBotGating","WAWebCommonMsgUtils","WAWebDisplayType","WAWebElevatedPushNamesFlag","WAWebEnvironment","WAWebFrontendMsgGetters","WAWebGroupType","WAWebL10N","WAWebMessageAuthor.react","WAWebMessageBubbleTypingIndicator.react","WAWebMessageCropping","WAWebMessageDisclaimerText.react","WAWebMessageForwardedIndicator.react","WAWebMessageMeta.react","WAWebMessagePaidPartnershipDisclaimerText.react","WAWebMsgGetters","WAWebMsgSelectors","WAWebMsgType","WAWebUISpacing","WAWebUnifiedResponseUtils","react","stylex","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={bubble:{boxSizing:"x9f619",userSelect:"x1hx0egp",$$css:!0},portrait:{maxWidth:"xjqp5cu",$$css:!0},landscape:{maxWidth:"x3vyiyz",$$css:!0},announcement:{width:"x1yuel0x",$$css:!0},fixedWidth:{width:"x1o095ql",maxWidth:"x193iq5w",$$css:!0},meta:{position:"x1n2onr6",zIndex:"x1n327nk",float:"x18mqm2i",marginTop:"xhsvlbd",marginInlineEnd:"x14z9mp",marginBottom:"xz62fqu",marginInlineStart:"x1wbi8v6",$$css:!0},metaForImagineUR:{bottom:"xrb244j",insetInlineEnd:"xxx7yvo",left:null,right:null,$$css:!0},metaForRTLMsg:{float:"xtrg13t",$$css:!0},isPSA:{paddingBottom:"xcmr1wf",$$css:!0},elevatedPushNames:{paddingTop:"x1yrsyyn",paddingInlineEnd:"xf159sx",paddingBottom:"xwib8y2",paddingInlineStart:"x7coems",$$css:!0},pollCreation:{paddingTop:"x1yrsyyn",paddingInlineEnd:"xctv8m",paddingBottom:"x18d9i69",paddingInlineStart:"xbm2j3o",$$css:!0},regular:{paddingTop:"x1yrsyyn",paddingInlineEnd:"xizg8k",paddingInlineStart:"xu9hqtb",paddingBottom:"xwib8y2",$$css:!0},imagineUR:{paddingTop:"xyqdw3p",paddingInlineEnd:"x1im30kd",paddingBottom:"xg8j3zb",paddingInlineStart:"x1djpfga",$$css:!0},metaAi:{float:"xyen2ro",marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",$$css:!0},forwardedIndicator:{paddingTop:"x1yrsyyn",paddingInlineEnd:"x1bjonze",paddingBottom:"x18d9i69",paddingInlineStart:"x7coems",$$css:!0}};function d(e){var t,n,a,i,l,d,m,p=e.isFollowUpReply,_=e.msg,f=o("useWAWebMsgValues").useMsgValues(e.msg.id,[(m=o("WAWebMsgGetters")).getIsGroupMsg,m.getIsPSA,m.getIsSentByMe,o("WAWebFrontendMsgGetters").getSenderObj,m.getType,m.getActiveBotMsgStreamingInProgress,m.getUnifiedResponse]),g=f[0],h=f[1],y=f[2],C=f[3],b=f[4],v=f[5],S=f[6],R=r("WAWebL10N").isRTL(),L=o("WAWebFrontendMsgGetters").getChat(_.unsafe()),E=o("WAWebElevatedPushNamesFlag").elevatedPushNamesEnabled(L),k=o("WAWebDisplayType").isWideDisplay(e.displayType),I=o("WAWebUnifiedResponseUtils").isImagineResponse(S),T;I?T=c.imagineUR:b===o("WAWebMsgType").MSG_TYPE.POLL_CREATION||b===o("WAWebMsgType").MSG_TYPE.POLL_RESULT_SNAPSHOT?T=c.pollCreation:b===o("WAWebMsgType").MSG_TYPE.EVENT_CREATION?T=[o("WAWebUISpacing").uiPadding.horiz3,o("WAWebUISpacing").uiPadding.top3,o("WAWebUISpacing").uiPadding.bottom8]:b===o("WAWebMsgType").MSG_TYPE.STICKER_PACK?T=o("WAWebUISpacing").uiPadding.all0:E?T=c.elevatedPushNames:T=c.regular;var D=(s||(s=r("stylex")))(c.bubble,o("WAWebMsgGetters").getIsPSA(_)&&c.isPSA,e.theme==="portrait"&&!k&&c.portrait,e.theme==="landscape"&&!k&&c.landscape,k&&c.announcement,e.useFixedWidth===!0&&!I&&c.fixedWidth,T,e.xstyle),x=I?{width:o("WAWebMessageCropping").IMAGINE_UR_WIDTH,maxWidth:"100%"}:void 0,$=e.displayAuthor?u.jsx(r("WAWebMessageAuthor.react"),{role:e.authorRole,msg:_,contact:C,displayType:e.displayType,disableClick:((t=_.author)==null?void 0:t.isLid())&&((n=L.groupMetadata)==null?void 0:n.groupType)===o("WAWebGroupType").GroupType.LINKED_ANNOUNCEMENT_GROUP}):null,P=o("WAWebMsgSelectors").showForwarded(_)?u.jsx(r("WAWebMessageForwardedIndicator.react"),{msg:_.unsafe(),xstyle:_.type===o("WAWebMsgType").MSG_TYPE.STICKER_PACK&&c.forwardedIndicator}):null,N=u.jsx(r("WAWebMessagePaidPartnershipDisclaimerText.react"),{msg:_}),M=u.jsx(r("WAWebMessageDisclaimerText.react"),{msg:_}),w=null;return o("WAWebBizCtwaAGMUtils").isAutomatedGreetingMessage((a=_.ctwaContext)==null?void 0:a.sourceApp,_.type,(i=_.ctwaContext)==null?void 0:i.automatedGreetingMessageShown)?w=null:v===!0&&(b===o("WAWebMsgType").MSG_TYPE.CHAT||o("WAWebCommonMsgUtils").isSomewhatParsedRichResponseMsg(_.unsafe()))?w=u.jsx(r("WAWebMessageBubbleTypingIndicator.react"),{isBotMsgStreaming:!0}):e.displayType!==o("WAWebDisplayType").DISPLAY_TYPE.GALLERY&&e.hideMeta!==!0&&(w=u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.meta,o("WAWebMsgGetters").getIsPSA(_)&&o("WAWebUISpacing").uiMargin.top4,R&&c.metaForRTLMsg,o("WAWebBotGating").showBotSearchPlugin(_.unsafe())&&c.metaAi,I&&c.metaForImagineUR),{children:u.jsx(o("WAWebMessageMeta.react").Meta,{msg:_,displayType:e.displayType,isFollowUpReply:p})}))),u.jsxs("div",babelHelpers.extends({},r("WAWebEnvironment").isWindows&&{onDragStart:function(t){return t.preventDefault(),!1}},{"aria-label":(l=e.ariaLabel)!=null?l:void 0,className:D,style:x,"data-testid":void 0,children:[$,P,M,N,e.children,w]}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebLaunchIcon.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="launch";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=18,R=19;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 19 18",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M14,5.41421356 L9.70710678,9.70710678 C9.31658249,10.0976311 8.68341751,10.0976311 8.29289322,9.70710678 C7.90236893,9.31658249 7.90236893,8.68341751 8.29289322,8.29289322 L12.5857864,4 L10,4 C9.44771525,4 9,3.55228475 9,3 C9,2.44771525 9.44771525,2 10,2 L14,2 C15.1045695,2 16,2.8954305 16,4 L16,8 C16,8.55228475 15.5522847,9 15,9 C14.4477153,9 14,8.55228475 14,8 L14,5.41421356 Z M14,12 C14,11.4477153 14.4477153,11 15,11 C15.5522847,11 16,11.4477153 16,12 L16,13 C16,14.6568542 14.6568542,16 13,16 L5,16 C3.34314575,16 2,14.6568542 2,13 L2,5 C2,3.34314575 3.34314575,2 5,2 L6,2 C6.55228475,2 7,2.44771525 7,3 C7,3.55228475 6.55228475,4 6,4 L5,4 C4.44771525,4 4,4.44771525 4,5 L4,13 C4,13.5522847 4.44771525,14 5,14 L13,14 C13.5522847,14 14,13.5522847 14,13 L14,12 Z",fill:"currentColor",fillRule:"nonzero"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.LaunchIcon=m}),98); __d("WAWebPaymentLinkComponents.react",["fbt","PaymentLinkWamLogger","PaymentLinkWithCTAFeature","WALogger","WAWebExternalLink.react","WAWebLaunchIcon.react","WAWebMessageBubbleActions.react","WAWebMsgGetters","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=r("react"));function d(){return s._(/*BTDS*/"Abrir link de pago")}d.displayName=d.name+" [from "+i.id+"]";function m(t,n,r){var a=t.matchedText;o("WAWebExternalLink.react").openExternalLink(a),o("PaymentLinkWamLogger").shouldLogReceiverEvent(t)&&o("PaymentLinkWamLogger").genLogClickEvent({interaction_component:n,msg:t},r).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["error logging payment link message click: ",""])),t)})}function p(e){var t,n=e.msg,r=e.psp;if(o("PaymentLinkWithCTAFeature").isKillSwitchEnabled())return null;var a=o("WAWebMsgGetters").getPaymentLinkMetadata(n);if((a==null||(t=a.button)==null?void 0:t.displayText)==null)return null;var i=function(t){var e=n.matchedText;o("WAWebExternalLink.react").openExternalLink(e),m(n,o("PaymentLinkWamLogger").ClickInteractionComponent.LINK_CTA,r)};return c.jsx(o("WAWebMessageBubbleActions.react").BubbleActions,{items:[{label:d(),title:d(),onClick:i,disabled:!1,testid:"payment-link-cta",Icon:o("WAWebLaunchIcon.react").LaunchIcon}]})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebIcShieldLockIcon.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-shield-lock";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:"M10 16h4c.28 0 .52-.1.71-.29.2-.19.29-.43.29-.71v-3c0-.28-.1-.52-.29-.71A.97.97 0 0 0 14 11v-1c0-.55-.2-1.02-.59-1.41-.39-.4-.86-.59-1.41-.59-.55 0-1.02.2-1.41.59-.4.39-.59.86-.59 1.41v1c-.28 0-.52.1-.71.29-.2.19-.29.43-.29.71v3c0 .28.1.52.29.71.19.2.43.29.71.29Zm1-5v-1c0-.28.1-.52.29-.71.19-.2.43-.29.71-.29.28 0 .52.1.71.29.2.19.29.43.29.71v1h-2Zm1 10.9a1.98 1.98 0 0 1-.63-.1A10.11 10.11 0 0 1 6 17.64c-1.33-2.03-2-4.2-2-6.54V6.38c0-.42.12-.8.36-1.13.24-.33.56-.57.94-.72l6-2.25a2.07 2.07 0 0 1 1.4 0l6 2.25c.38.15.7.39.94.72.24.33.36.7.36 1.13v4.72c0 2.33-.67 4.51-2 6.54a10.11 10.11 0 0 1-5.68 4.23c-.1.02-.2.03-.32.03Zm0-2a8.14 8.14 0 0 0 4.3-3.3 9.5 9.5 0 0 0 1.7-5.5V6.38l-6-2.25-6 2.25v4.72a9.5 9.5 0 0 0 1.7 5.5 8.14 8.14 0 0 0 4.3 3.3Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.IcShieldLockIcon=m}),98); __d("WAWebPaymentLinkTrustSignalFooter.react",["fbt","WAWebEmojiText.react","WAWebIcShieldLockIcon.react","WAWebL10N","WAWebMessageSpacerText.react","WAWebMsgGetters","WAWebMsgType","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c={icon:{display:"x1rg5ohu",color:"x1bvqhpb",verticalAlign:"xxymvpz",$$css:!0},footerText:{color:"xhslqc4",fontSize:"x1pg5gke",lineHeight:"x1d3mw78",verticalAlign:"xxymvpz",$$css:!0}};function d(e){var t=e.dir,n=e.msg,a=e.rtl,i=e.type,l=m(n);if(l==null)return null;var d=a!==r("WAWebL10N").isRTL(),p=s._(/*BTDS*/"Vendedor verificado por {Payment service provider name}",[s._param("Payment service provider name",l)]);return u.jsxs(r("WAWebMessageSpacerText.react"),{className:{0:"x1tiyuxx xyri2b x18d9i69 x1c1uobl xxk0z11",2:"xxk0z11 x4p5aij x11lfxj5 x10b6aqq x25sj25",1:"x1tiyuxx xyri2b x1c1uobl xxk0z11 x1i2zvha",3:"xxk0z11 x4p5aij x11lfxj5 x25sj25 x1i2zvha"}[(i!==o("WAWebMsgType").MSG_TYPE.CHAT)<<1|!!d<<0],spacer:!a,msg:n,children:[u.jsx(o("WAWebIcShieldLockIcon.react").IcShieldLockIcon,{xstyle:c.icon}),u.jsx(o("WAWebEmojiText.react").EmojiText,{xstyle:c.footerText,text:p,direction:t,dirMismatch:d,testid:void 0})]})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=o("WAWebMsgGetters").getPaymentLinkPreviewMetaTags(e);return t==null?void 0:t.providerName}l.default=d}),226); __d("WAWebUseBotCommands",["WAWebBotGating","WAWebBotProfileGetters","WAWebMsgGetters","WAWebUseBotProfileValues","WAWebUseBusinessProfile.react","WAWebUserPrefsMeUser","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=s(e),n=u(e);return t||n}function s(e){var t;o("WAWebMsgGetters").getIsGroupMsg(e)||(t=o("WAWebUserPrefsMeUser").isMeAccount(e.from)?e.to:e.from);var n=o("WAWebUseBusinessProfile.react").useBusinessProfile(t,["commands"]);return n==null?void 0:n.commands}function u(e){var t;e.id.remote.isBot()?t=e.id.remote:t=e.invokedBotWid;var n=o("useWAWebMsgValues").useMsgValues(e.id,[o("WAWebMsgGetters").getIsBotQuery]),r=n[0],a=o("WAWebUseBotProfileValues").useOptionalBotProfileValues(t,[o("WAWebBotProfileGetters").getCommands]),i=a[0];return!o("WAWebBotGating").isMetaBotCommandsEnabled()||!r?null:i}l.useBotCommands=e}),98); __d("WAWebUseBotMessageWithAnimation",["WAWebBotTypes","WAWebCmd","WAWebMsgGetters","isStringNullOrEmpty","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,m=50,p=100,_=5,f=1;function g(e){var t=c([]),n=d(0),a=n[0],i=n[1],l=o("WAWebMsgGetters").getIsMetaBotResponse(e)&&e.activeBotMsgStreamingInProgress===!0,s=e.body;l&&(s=e.lastBotEditBodyLength!=null?e.body.slice(0,e.lastBotEditBodyLength):e.body);var g=d(s),h=g[0],y=g[1],C=c(0);return u(function(){var n;if(l){var s=e.body.slice((n=e.lastBotEditBodyLength)!=null?n:0).trim().split(" ");if(e.lastBotEditBodyLength!=null&&C.current!==e.lastBotEditBodyLength&&(C.current=e.lastBotEditBodyLength,t.current=t.current.concat(s).filter(function(e){return!r("isStringNullOrEmpty")(e)&&e!==" "})),e.lastBotEditBodyLength!=null&&a0,Ne=o("useWAWebMsgValues").useMsgValues(h.id,[o("WAWebFrontendMsgGetters").getHasTemplateButtons]),Me=Ne[0],we=L!=null||!!Me||!!h.isDynamicReplyButtonsMsg||o("WAWebMsgGetters").getIsBotPluginCarouselMsg(h)||o("WAWebMsgGetters").getIsBotSearchResponse(h),Ae;if(o("WAWebMsgGetters").getIsBotSearchResponse(h)?Ae=p.jsx("div",{className:"_aoq3",children:p.jsx(o("WAWebMessageMeta.react").Meta,{msg:h,isFollowUpReply:f})}):we&&(Ae=p.jsx("div",{className:"x10l6tqk xtijo5x x48lskh",children:p.jsx(o("WAWebMessageMeta.react").Meta,{msg:h,isFollowUpReply:f})})),w&&Ce&&D&&N!=null&&o("WAWebAnimatedEmojiGatingUtils").isAnimatedEmojiEnabled())return p.jsx(r("WAWebMessageAnimatedEmoji.react"),{msg:h,asset:N,quotedMsg:C,displayAuthor:s,displayType:m,stickerLikeBubbleContainerRef:b,position:y});var Fe=!(o("WAWebMsgGetters").getForwardedNewsletterMessageInfo(h)!=null&&o("WAWebNewsletterGatingUtils").isNewsletterForwardBottomButtonEnabled());if(Ce&&$!=null&&o("WAWebAnimatedEmojiGatingUtils").isStaticSingleEmojiUIEnabled())return p.jsx(r("WAWebMessageStaticSingleEmoji.react"),{emoji:$,msg:h,quotedMsg:C,displayAuthor:s,displayType:m,stickerLikeBubbleContainerRef:b,position:y});var Oe=p.jsx(r("WAWebMessageTextBubble.react"),{msg:h,displayType:m,displayAuthor:s,hideMeta:we,theme:E,xstyle:k&&E==="portrait"&&_.horizontalLinkPreviewLayout,useFixedWidth:h.isDynamicReplyButtonsMsg,isFollowUpReply:f,children:p.jsxs(r("WAWebMessageBubbleHiddenText.react"),{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((t={},t._ahy1=s,t._ahy2=$e,t._ahy3=Pe,t)),contact:h.senderObj,msg:h.unsafe(),children:[xe,!h.ctwaContext&&p.jsx(o("WAWebBizSuspiciousLabel.react").SuspiciousLabel,{msg:h.unsafe(),displayType:m}),R,p.jsxs(r("WAWebMessageSpacerText.react"),{msg:h.unsafe(),isFollowUpReply:f,spacer:h.isFromTemplate||h.isDynamicReplyButtonsMsg?De&&!h.footer:De,"data-id":h.id,children:[Le,Re,Ee,Ae]}),Fe&&L]})});return p.jsx("div",{ref:A,children:Oe})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebConnectedPillButtons.react",["WAWebCheckmarkIcon.react","WAWebFlex.react","WAWebUISpacing","WAWebUnstyledButton.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={isSelected:{color:"xk4n5i7",$$css:!0},singlePill:{minWidth:"xm5golx",height:"x1vqgdyp",borderTopColor:"xx42vgk",borderInlineEndColor:"xbogo7e",borderBottomColor:"x120ee7l",borderInlineStartColor:"x1vb5itz",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",fontSize:"x1f6kntn",whiteSpace:"xuxw1ft",$$css:!0},isSelectedBackground:{backgroundColor:"x1abdmlv",$$css:!0},middle:{marginInlineEnd:"xjn30re",$$css:!0},first:{borderStartStartRadius:"x12ol6y4",borderStartEndRadius:"x1ga7v0g",borderEndEndRadius:"x16uus16",borderEndStartRadius:"x709u02",$$css:!0},last:{borderStartStartRadius:"x15mokao",borderStartEndRadius:"x180vkcf",borderEndEndRadius:"x1khw62d",borderEndStartRadius:"xbiv7yw",$$css:!0}},c=18;function d(e){var t=e.isSelected,n=e.onClick,a=e.testid,i=e.title,l=e.xstyle;return s.jsx(r("WAWebUnstyledButton.react"),{xstyle:[u.singlePill,l,t&&u.isSelectedBackground],testid:void 0,onClick:n,children:s.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",xstyle:o("WAWebUISpacing").uiMargin.horiz6,children:[t&&s.jsx(o("WAWebCheckmarkIcon.react").CheckmarkIcon,{width:c,height:c,xstyle:[o("WAWebUISpacing").uiMargin.end7,u.isSelected]}),s.jsx("span",babelHelpers.extends({},{0:{},1:{className:"xk4n5i7"}}[!!t<<0],{children:i}))]})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.currentlySelected,n=e.onChange,r=e.pills;return r.length<2?s.jsx(s.Fragment,{}):s.jsx(o("WAWebFlex.react").FlexRow,{children:r.map(function(e,o){return s.jsx(d,{onClick:function(){return n(e.id)},isSelected:e.id===t,title:e.title,testid:void 0,xstyle:[o===0&&u.first,o!==r.length-1&&u.middle,o===r.length-1&&u.last]},"connected-pill-button-"+e.id.toString())})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebNewsletterContactsReactionList.react",["fbt","WAWebABProps","WAWebApiContact","WAWebBizGatingUtils","WAWebCellFrame.react","WAWebCmd","WAWebCommonNewsletterStrings","WAWebEmptyState.react","WAWebFindChatAction","WAWebFlatList.react","WAWebFlex.react","WAWebName.react","WAWebReactionCellDetailThumb.react","WAWebText.react","WAWebUISpacing","WAWebWidFactory","asyncToGeneratorRuntime","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=e||(e=r("react")),d={reactionCellImage:{width:"x1guw455",height:"xdd8jsf",$$css:!0},textBox:{boxSizing:"x9f619",width:"xh8yej3",$$css:!0},footer:{borderTopColor:"xx42vgk",borderTopStyle:"x13fuv20",borderTopWidth:"x178xt8z",$$css:!0},alignTextCenter:{textAlign:"x2b8uid",$$css:!0}},m=52,p=o("WAWebABProps").getABPropConfigValue("wa_web_reactions_2"),_=o("WAWebFlatList.react").FlatListFactory();function f(e){var t=e.contact,a=e.onCloseDetailsPane,i=e.reaction,l=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=o("WAWebWidFactory").asUserWidOrThrow(t.id),n=e.isLid()?o("WAWebApiContact").getPhoneNumber(e):null;if(n!=null){var r=yield o("WAWebFindChatAction").findOrCreateLatestChat(n,"reactionDetailsPane"),i=r.chat;o("WAWebCmd").Cmd.chatInfoDrawer(i),a()}});return function(){return e.apply(this,arguments)}})();return c.jsx(r("WAWebCellFrame.react"),{primary:c.jsx(o("WAWebName.react").Name,{contact:t,titlify:!0,ellipsify:!0,showLabelIcon:o("WAWebBizGatingUtils").canDisplayLabel()}),image:c.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"start",xstyle:p?[d.reactionCellImage,o("WAWebUISpacing").uiPadding.start2,o("WAWebUISpacing").uiPadding.end12]:[d.reactionCellImage,o("WAWebUISpacing").uiPadding.start16,o("WAWebUISpacing").uiPadding.end16],children:c.jsx(o("WAWebReactionCellDetailThumb.react").ReactionCellProfileImageThumb,{profileImageId:t.id,reactionText:i})}),theme:"newsletter-reaction-by-contact",customImage:!0,onClick:l})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.flatListController,n=e.isOffline,a=e.onCloseDetailsPane,i=e.reactionList,l=e.reactionSendersServerError,g=e.retryFetchingReactionSenders,h=e.setReactionSendersServerError,y=i.map(function(e){var t=e.contact,n=e.reaction;return{itemKey:t.id.toJid(),contentKey:t.id.toJid(),contact:t,reaction:n,height:m}}),C=c.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props([d.footer,o("WAWebUISpacing").uiPadding.all16]),{children:c.jsx(o("WAWebText.react").WAWebTextSmall,{color:"secondary",children:o("WAWebCommonNewsletterStrings").getIndividualReactionsFromContactsText()})})),b=c.jsx("div",babelHelpers.extends({},u.props([d.textBox,d.alignTextCenter,o("WAWebUISpacing").uiPadding.top16,o("WAWebUISpacing").uiPadding.bottom32,o("WAWebUISpacing").uiPadding.horiz32]),{children:c.jsx(o("WAWebText.react").WAWebTextMuted,{color:"secondary",children:o("WAWebCommonNewsletterStrings").getNoContactsHaveReactedYetText()})}));return n?c.jsx(o("WAWebEmptyState.react").EmptyErrorStateWithButton,{text:o("WAWebCommonNewsletterStrings").getNoInternetConnectionText(),onClick:g,center:!0,xstyle:o("WAWebUISpacing").uiPadding.vert40}):l?c.jsx(o("WAWebEmptyState.react").EmptyErrorStateWithButton,{text:s._(/*BTDS*/"No se pudieron cargar las reacciones. Por favor, vuelve a intentarlo m\u00e1s tarde."),onClick:function(){h(!1),g()},center:!0,xstyle:o("WAWebUISpacing").uiPadding.vert40}):c.jsxs(c.Fragment,{children:[i.length>0?c.jsx(_,{data:y,direction:"vertical",renderItem:function(t){return c.jsx(f,{contact:t.contact,reaction:t.reaction,onCloseDetailsPane:a})},flatListController:t,containerXstyles:p?[o("WAWebUISpacing").uiPadding.bottom8,o("WAWebUISpacing").uiPadding.top8]:[o("WAWebUISpacing").uiPadding.bottom16]}):b,C]})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226); __d("WAWebFacePile.react",["WAWebChatCollection","WAWebChatParticipantColor","WAWebDetailImage.react","WAWebFlex.react","WAWebProfileImage.react","WAWebQuotedMessageUserJourneyLogger","WAWebWid","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={hiddenBehind:{marginInlineStart:"x2459kn",$$css:!0},border:{borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",$$css:!0},defaultBorderColor:{borderTopColor:null,borderInlineEndColor:null,borderBottomColor:null,borderInlineStartColor:null,$$css:!0},defaultBorderWidth:{borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",$$css:!0},urlImage:{borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",$$css:!0}},c=24;function d(e){var t,n=e.borderColor,a=e.borderWidth,i=e.chatWid,l=e.faceSize,c=e.idOrUrl,d=e.isFirst,m=e.theme,p=e.zIndex,_=i?o("WAWebChatCollection").ChatCollection.get(i):null,f=_&&c instanceof r("WAWebWid")?o("WAWebChatParticipantColor").getAssignedColor(_,c,"WAWebFacePile-"+((t=o("WAWebQuotedMessageUserJourneyLogger").getChatType(_.id))!=null?t:"")):1;return s.jsx("div",{style:{zIndex:p},children:c instanceof r("WAWebWid")?s.jsx(o("WAWebDetailImage.react").DetailImage,babelHelpers.extends({id:c,size:l,xstyle:[!d&&u.hiddenBehind,u.border,n!=null?n:u.defaultBorderColor,a!=null?a:u.defaultBorderWidth],authorColor:f,theme:m},m==="typing_indicator"?{loadAnimation:!1}:{})):s.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[!d&&u.hiddenBehind,u.border,n!=null?n:u.defaultBorderColor,u.urlImage],children:s.jsx(r("WAWebProfileImage.react"),{thumb:c,size:l})})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.borderColor,n=e.borderWidth,r=e.chatWid,a=e.faceSize,i=e.idsOrUrls,l=e.keyName,u=e.theme,m=e.xstyle;return s.jsx(o("WAWebFlex.react").FlexRow,{justify:"end",xstyle:m,children:i.map(function(e,o){return s.jsx(d,{idOrUrl:e,isFirst:o===0,zIndex:i.length-o,borderColor:t,faceSize:a!=null?a:c,chatWid:r,theme:u,borderWidth:n},e.toString()+"-"+o+"-"+(l!=null?l:""))})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebNewsletterReactionDetailsPaneItem.react",["fbt","WAWebCellFrame.react","WAWebFacePile.react","WAWebFlex.react","WAWebFocusTracer","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebMsgActionCapability","WAWebMsgCollection","WAWebMsgGetters","WAWebNewsletterGatingUtils","WAWebReactionCellDetailThumb.react","WAWebReactionEmoji.react","WAWebReactionsBEUtils","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["ref"],u,c,d,m=d||(d=o("react")),p=u||(u=r("react")),_=m.useCallback,f=m.useImperativeHandle,g=m.useRef,h={myReactedEmoji:{backgroundColor:"x4wrhlh",borderStartStartRadius:"x1c9tyrk",borderStartEndRadius:"xeusxvb",borderEndEndRadius:"x1pahc9y",borderEndStartRadius:"x1ertn4p",$$css:!0},facePile:{borderTopColor:"x19bsprb",borderInlineEndColor:"x2cy9dh",borderBottomColor:"x1eeqclz",borderInlineStartColor:"x1mx0rqa",$$css:!0}};function y(t){var n=t.ref,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=a.count,l=a.emoji,u=a.facePileImages,d=a.firstMsg,m=a.multipleMsgs,y=a.offlineOrServerError,C=a.onClick,b=a.onCloseDetailsPane,v=a.parentMsgKey,S=v!=null,R=v!=null?o("WAWebMsgCollection").MsgCollection.get(v):null,L=o("WAWebMsgGetters").getIsMedia(d)&&m,E=o("WAWebMsgActionCapability").isNewsletterMsgOnServer(d)&&(S||!L&&o("WAWebNewsletterGatingUtils").isNewsletterQuickReactionsEnabled()),k=g(null),I=function(){r("WAWebFocusTracer").focus(k.current)};f(n,function(){return{focus:I}});var T=_(function(e){e.preventDefault();var t=S?o("WAWebReactionsBEUtils").REVOKED_REACTION_TEXT:l;C(v!=null?v:d.id,t)},[C,l,d.id,S,v]),D={enter:T,space:T},x=p.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(o("WAWebUISpacing").uiPadding.all5,S&&h.myReactedEmoji),{children:p.jsx(o("WAWebReactionEmoji.react").ReactionEmoji,{scale:"list",size:"large",reaction:l})})),$=S?p.jsxs("span",{children:[m?null:p.jsxs(p.Fragment,{children:[r("WAWebL10N").n(i)," "]}),s._(/*BTDS*/"(Reaccionaste)")]}):r("WAWebL10N").n(i),P=S&&E?s._(/*BTDS*/"Haz clic para quitarla."):null,N=u.length>0&&!y?p.jsx(r("WAWebFacePile.react"),{idsOrUrls:u,borderColor:h.facePile,xstyle:o("WAWebUISpacing").uiMargin.end8}):null,M=L&&R!=null?p.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(o("WAWebUISpacing").uiMargin.end16,o("WAWebUISpacing").uiMargin.top4),{children:p.jsx(o("WAWebReactionCellDetailThumb.react").ReactionCellDetailThumb,{msg:R,onCloseDetailsPane:b,reactionText:l,showReactionText:!1})})):null;return p.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{role:S?"button":"listitem",ref:k,handlers:D,children:p.jsx(o("WAWebFlex.react").FlexRow,{align:"center",children:p.jsx(o("WAWebFlex.react").FlexItem,{grow:2,children:p.jsx(r("WAWebCellFrame.react"),{onClick:E?T:null,image:x,primary:$,secondary:P,detail:M!=null?M:N,theme:S?"newsletter-reaction-by-me":"newsletter-reaction-by-others",focusable:!0})})})})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebNewsletterReactionFrontendUtils",["WAWebContactCollection","WAWebEmoji","WAWebFrontendContactGetters","WAWebProfilePicThumbCollection","WAWebReactionsModels","WAWebUserPrefsMeUser","compactMap"],(function(t,n,r,o,a,i,l){function e(e){if(e.length===0)return{reactions:[],count:0};var t=e.map(c);return s(t)}function s(e){var t=0,n=new Map;for(var r of e){var o=r.count,a=r.reactions;t+=o;for(var i of a.entries()){var l=i[0],s=i[1],u=s[0],c=s[1],d=n.get(l);d!=null?(d.count+=c,d.reaction=babelHelpers.extends({},d.reaction,{reactionSenders:d.reaction.reactionSenders.concat(u.reactionSenders)}),n.set(l,d)):n.set(l,{reaction:u,count:c})}}var m=Array.from(n.values()).sort(function(e,t){var n=e.count,r=e.reaction,o=t.count,a=t.reaction;return r.reactionByMe!=null?-1:a.reactionByMe!=null?1:o-n}).map(function(e){var t=e.count,n=e.reaction;return[n,t]});return{count:t,reactions:m}}function u(e){var t=new Map;for(var n of e.entries()){var r,a=n[0],i=n[1],l=o("WAWebEmoji").EmojiUtil.getEmojiAggregate(a),s=o("WAWebEmoji").EmojiUtil.getNormalizedOrTofu(a),u=(r=t.get(l))!=null?r:{count:0,reactions:new Map};u.reactions.set(s,i),u.count+=i,t.set(l,u)}return t}function c(e){var t=new Map,n=e.myReaction,r=e.myReactionMsgKey,a=new Map(e.reactionCountMap);n!=null&&n!==""&&!a.has(n)&&a.set(n,1);var i=0,l=u(a);for(var s of l.entries()){var c,d=s[0],m=s[1];i+=m.count,t.set(d,[{reactionAggregate:d,reactionSenders:_(d,e),reactionByMe:n!=null&&r!=null&&d===o("WAWebEmoji").EmojiUtil.getEmojiAggregate(n)?{msgKey:r.toString(),orphan:0,parentMsgKey:e.id.toString(),reactionText:o("WAWebEmoji").EmojiUtil.getNormalizedOrTofu(n),senderUserJid:o("WAWebUserPrefsMeUser").getMePnUserOrThrow().toJid(),timestamp:(c=e.myReactionTs)!=null?c:0}:null},m.count])}return{reactions:t,count:i}}function d(e){var t=new Map;return e.reactions.map(function(e){var n,r=e.reactionCode,a=e.senderList,i=o("WAWebEmoji").EmojiUtil.getEmojiAggregate(r),l=(n=t.get(i))!=null?n:[];t.set(i,l.concat(a))}),t}function m(e){var t=d(e),n=new Map;for(var a of t.entries()){var i=a[0],l=a[1],s=l.sort(function(e,t){var n=(e==null?void 0:e.id)!=null?o("WAWebContactCollection").ContactCollection.get(e.id):null,r=(t==null?void 0:t.id)!=null?o("WAWebContactCollection").ContactCollection.get(t.id):null,a=(n==null?void 0:n.type)==="in",i=(r==null?void 0:r.type)==="in";if(a&&n&&r&&i){var l=o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.get(n.id)!=null,s=o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.get(r.id)!=null;return l===s?0:l?-1:1}else if(!a&&!i)return 0;return a?-1:1}).slice(0,5),u=r("compactMap")(s,function(e){return(e==null?void 0:e.id)!=null?e.id:e==null?void 0:e.profileUrl});n.set(i,u)}return n}function p(e){var t=[];return e.reactions.map(function(e){var n=e.reactionCode,r=e.senderList;r.map(function(e){if((e==null?void 0:e.id)!=null){var r=o("WAWebContactCollection").ContactCollection.get(e.id);(r==null?void 0:r.type)==="in"&&t.push({reaction:n,contact:r})}})}),t.sort(function(e,t){var n=o("WAWebFrontendContactGetters").getFormattedUser(e.contact),r=o("WAWebFrontendContactGetters").getFormattedUser(t.contact);return n.localeCompare(r)})}function _(e,t){var n=t.myReaction,r=n!=null&&e===o("WAWebEmoji").EmojiUtil.getEmojiAggregate(n);return[new(o("WAWebReactionsModels")).ReactionsSenders({id:t.id,reactionText:r?n:e,senderUserJid:r?o("WAWebUserPrefsMeUser").getMePnUserOrThrow().toJid():t.id.remote.toJid(),timestamp:t.reactionCountMapTs})]}l.aggregateAndSortReactions=e,l.getReactionSendersForFacePile=m,l.getContactReactionSenders=p}),98); __d("WAWebNewsletterMessageReactionSenderListQueryJob",["WAWebMexFetchNewsletterMessageReactionSenderListJob","WAWebNewsletterRpcUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){var r=(function(){var r=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebMexFetchNewsletterMessageReactionSenderListJob").mexFetchNewsletterMessageReactionSenderList(e,t)});return function(){return r.apply(this,arguments)}})();return o("WAWebNewsletterRpcUtils").runWithBackoff(r)}l.getNewsletterMessageReactionSenderList=e}),98); __d("WAWebNewsletterMessageReactionSenderListJob",["WAJobOrchestratorTypes","WAWebNewsletterMessageReactionSenderListQueryJob","WAWebOrchestratorNonPersistedJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return o("WAWebOrchestratorNonPersistedJob").createNonPersistedJob("getNewsletterMessageReactionSenderList",n("asyncToGeneratorRuntime").asyncToGenerator(function*(){return o("WAWebNewsletterMessageReactionSenderListQueryJob").getNewsletterMessageReactionSenderList(e,t)}),{priority:o("WAJobOrchestratorTypes").JOB_PRIORITY.UI_ACTION}).waitUntilCompleted()}l.getNewsletterMessageReactionSenderList=e}),98); __d("WAWebNewsletterMessageReactionSenderListAction",["WALogger","WAWebChatGetters","WAWebNewsletterMessageReactionSenderListJob","WAWebNewsletterValidationUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s,u;function c(e,t){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){if(!o("WAWebChatGetters").getIsNewsletter(t)){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterMessageReactionSenderListAction] non-newsletter chat"]))).tags("newsletter").sendLogs("get-message-reaction-senders-of-non-newsletter");return}var r=n.serverId;if(r==null){var a=n.id.toString();o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterSubscribersAction] no server ID, msg=",""])),a).tags("newsletter").sendLogs("get-message-reaction-senders-no-message-server-id");return}try{var i=o("WAWebNewsletterValidationUtils").toNewsletterJidOrThrow(t.id.toJid());return yield o("WAWebNewsletterMessageReactionSenderListJob").getNewsletterMessageReactionSenderList(i,String(r))}catch(e){var l=n.id.toString(),c=t.id.toJid();o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[getNewsletterMessageReactionSenderListAction] failed msg="," newsletter=",""])),l,c).tags("newsletter").sendLogs("get-message-reaction-senders-failed");return}}),d.apply(this,arguments)}l.getNewsletterMessageReactionSenderListAction=c}),98); __d("useWAWebNewsletterReactionSenderList",["WALogger","WAWebNetworkStatus","WAWebNewsletterGatingUtils","WAWebNewsletterMessageReactionSenderListAction","WAWebNewsletterReactionFrontendUtils","asyncToGeneratorRuntime","react","useWAWebEventTargetValue"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=u.useCallback,d=u.useEffect,m=u.useState;function p(t,a,i){var l=m(!0),s=l[0],u=l[1],p=m(!1),_=p[0],f=p[1],g=m([]),h=g[0],y=g[1],C=m(new Map),b=C[0],v=C[1],S=r("useWAWebEventTargetValue")(r("WAWebNetworkStatus"),"change:online",function(){return!r("WAWebNetworkStatus").online}),R=c(function(){n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(!(!o("WAWebNewsletterGatingUtils").isNewsletterReactionSenderListEnabled(t,i)||S||_)){var n=yield o("WAWebNewsletterMessageReactionSenderListAction").getNewsletterMessageReactionSenderListAction(t,a);if(n==null){f(!0),o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[useNewsletterReactionSenderList] Failed to get reaction senders for message "," from newsletter ",""])),a.id,t.id).sendLogs("newsletter-hook-failed-to-get-reaction-senders");return}y(o("WAWebNewsletterReactionFrontendUtils").getContactReactionSenders(n)),v(o("WAWebNewsletterReactionFrontendUtils").getReactionSendersForFacePile(n))}})().finally(function(){u(!1)})},[t,a,i,S,_]);return d(function(){return R()},[]),[b,h,s,_,S,f,R]}l.useNewsletterReactionSenderList=p}),98); __d("WAWebNewsletterReactionDetailsPane.react",["fbt","WAWebConnectedPillButtons.react","WAWebEmoji","WAWebFlatList.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebKeyboardHotKeys.react","WAWebNewsletterContactsReactionList.react","WAWebNewsletterGatingUtils","WAWebNewsletterReactionDetailsPaneItem.react","WAWebNewsletterReactionFrontendUtils","WAWebSpinner.react","WAWebText.react","WAWebUISpacing","WAWebUserPrefsMeUser","clamp","react","sumBy","useLazyRef","useWAWebEventTargetValue","useWAWebNewsletterReactionSenderList"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.createRef,p=c.useEffect,_=c.useRef,f=c.useState,g={fullWidth:{width:"xh8yej3",$$css:!0},header:{width:"xh8yej3",boxSizing:"x9f619",$$css:!0}},h=o("WAWebFlatList.react").FlatListFactory(),y=53,C=48;function b(e){var t=e.chat,n=e.firstMsg,a=e.handleEmojiClick,i=e.multipleMsgs,l=e.onCloseDetailsPane,u=e.reactionModels,c=f(0),y=c[0],C=c[1],b=_(new Map),R=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),L=f("all"),E=L[0],k=L[1],I=o("useWAWebNewsletterReactionSenderList").useNewsletterReactionSenderList(t,n,i),T=I[0],D=I[1],x=I[2],$=I[3],P=I[4],N=I[5],M=I[6],w=o("WAWebUserPrefsMeUser").getMePnUserOrThrow(),A=r("useWAWebEventTargetValue")(u,["change:myReaction","change:reactionCountMapTs","remove"],function(){return o("WAWebNewsletterReactionFrontendUtils").aggregateAndSortReactions(u).reactions.map(function(e){var t=e[0],n=e[1];return{emoji:t.reactionAggregate,count:n,myReactions:t.reactionSenders.filter(function(e){return e.senderUserJid===w.toJid()})}})}),F=S(A,i,T),O=function(t){var e=F[t];if(e){var n,r=e.itemKey,o=b.current.get(r);o==null||(n=o.current)==null||n.focus()}};p(function(){O(0)},[]);var B=function(t){return r("clamp")(t,0,F.length-1)},W=function(t){t.preventDefault();var e=B(y-1);C(e),O(e)},q=function(t){var e=B(y+1);t.preventDefault(),C(e),O(e)},U={up:W,down:q},V,H;switch(E){case"all":H=d.jsx(v,{count:r("sumBy")(A,function(e){return e.count}),chat:t,multipleMsgs:i}),V=d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{role:"list",tabIndex:null,handlers:U,children:d.jsx(h,{data:F,direction:"vertical",renderItem:function(t){var e=m();return b.current.set(t.itemKey,e),d.jsx(r("WAWebNewsletterReactionDetailsPaneItem.react"),babelHelpers.extends({ref:e},t,{firstMsg:n,multipleMsgs:i,onClick:a,offlineOrServerError:P||$,onCloseDetailsPane:l}))},flatListController:R.current})});break;case"contacts":H=!P&&!$&&!x?d.jsx(v,{count:D.length,chat:t,multipleMsgs:i}):null,V=x?d.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",xstyle:o("WAWebUISpacing").uiMargin.top40,children:d.jsx(o("WAWebSpinner.react").Spinner,{color:"accent",size:24})}):d.jsx(r("WAWebNewsletterContactsReactionList.react"),{reactionList:D,flatListController:R.current,reactionSendersServerError:$,setReactionSendersServerError:N,retryFetchingReactionSenders:M,isOffline:P,onCloseDetailsPane:l});break}var G=[{id:"all",title:s._(/*BTDS*/"Todas")},{id:"contacts",title:s._(/*BTDS*/"Contactos")}];return d.jsxs(o("WAWebFlex.react").FlexColumn,{testid:void 0,children:[o("WAWebNewsletterGatingUtils").isNewsletterReactionSenderListEnabled(t,i)&&d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[o("WAWebUISpacing").uiMargin.bottom4,o("WAWebUISpacing").uiMargin.top28,g.fullWidth],justify:"center",children:d.jsx(r("WAWebConnectedPillButtons.react"),{pills:G,onChange:function(t){(t==="all"||t==="contacts")&&k(t)},currentlySelected:E})}),H,d.jsx(r("WAWebFlatListContainer.react"),{className:"xh8yej3 xuyqlj2 x1lumt5c xw2csxc x1odjw0f",flatListControllers:[R.current],children:V})]})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.chat,n=e.count,r=e.multipleMsgs,a=s._(/*BTDS*/"_j{\"*\":\"{reactions} reacciones\",\"4\":\"{reactions} reacci\\u00f3n\",\"_1\":\"1 reacci\\u00f3n\"}",[s._plural(n,"reactions",n)]);return d.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:o("WAWebNewsletterGatingUtils").isNewsletterReactionSenderListEnabled(t,r)?"start":"center",xstyle:[o("WAWebUISpacing").uiPadding.top20,o("WAWebUISpacing").uiPadding.bottom8,o("WAWebUISpacing").uiPadding.horiz16,g.header],testid:void 0,children:o("WAWebNewsletterGatingUtils").isNewsletterReactionSenderListEnabled(t,r)?d.jsx(o("WAWebText.react").WAWebTextTitle,{weight:"semibold",children:a}):d.jsx(o("WAWebText.react").WAWebTextLarge,{children:a})})}v.displayName=v.name+" [from "+i.id+"]";function S(e,t,n){var r=[];return e.forEach(function(e){var a=o("WAWebEmoji").EmojiUtil.getNormalizedOrTofu(e.emoji),i=e.count;if(e.myReactions.length>0)e.myReactions.forEach(function(a){var l;r.push({emoji:o("WAWebEmoji").EmojiUtil.getNormalizedOrTofu(a.reactionText),count:t?1:i,parentMsgKey:a.id,itemKey:a.id.toString(),height:y,facePileImages:(l=n.get(e.emoji))!=null?l:[]})}),t&&r.push({emoji:a,count:i,itemKey:e.emoji,height:y,facePileImages:[]});else{var l;r.push({emoji:a,count:i,itemKey:e.emoji,height:C,facePileImages:(l=n.get(e.emoji))!=null?l:[]})}}),r.sort(function(e,t){return e.parentMsgKey!=null&&t.parentMsgKey!=null?0:e.parentMsgKey!=null?-1:t.parentMsgKey!=null?1:t.count-e.count})}l.default=b}),226); __d("WDSChipColorConfig.stylex",[],(function(t,n,r,o,a,i,l){"use strict";var e={pressable:{borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"xnj1f2r",borderInlineEndColor:"x2uibgs",borderBottomColor:"xkveyfu",borderInlineStartColor:"x12llq9",borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",position:"x1n2onr6",cursor:"x1ypdohk","::after_content":"x1s928wv","::after_position":"x1j6awrg","::after_top":"x1m1drc7","::after_left":"x17cx49","::after_right":"xnbfe2x","::after_insetInlineStart":null,"::after_insetInlineEnd":null,"::after_bottom":"x1xrz1ek","::after_borderStartStartRadius":"x77mdso","::after_borderStartEndRadius":"x1fidlvn","::after_borderEndEndRadius":"x1nys2zw","::after_borderEndStartRadius":"x14gt54a","::after_pointerEvents":"x2q1x1w","::after_opacity":"xmf22ne",$$css:!0},pressableDisabled:{opacity:"x1lxidc1",backgroundColor:"xjbqb8w",color:"xhslqc4",cursor:"x1h6gzvc",$$css:!0},pressableHovered:{$$css:!0},pressablePressed:{$$css:!0}},s={pressable:{backgroundColor:"xjbqb8w",color:"xhslqc4",$$css:!0},pressableDisabled:{$$css:!0},pressableHovered:{"::after_backgroundColor":"x1sftees","::after_opacity":"x1rw2j67",$$css:!0},pressablePressed:{"::after_backgroundColor":"x1sftees","::after_opacity":"x1rw2j67",$$css:!0}},u={pressable:{backgroundColor:"x1abdmlv",color:"xk4n5i7",$$css:!0},pressableDisabled:{$$css:!0},pressableHovered:{"::after_backgroundColor":"x1hlseku","::after_opacity":"xymmlu0",$$css:!0},pressablePressed:{"::after_backgroundColor":"x1hlseku","::after_opacity":"xymmlu0",$$css:!0}},c={pressable:{backgroundColor:"xjbqb8w",color:"x14ug900",$$css:!0},pressableDisabled:{$$css:!0},pressableHovered:{"::after_backgroundColor":"x1sftees","::after_opacity":"x1rw2j67",$$css:!0},pressablePressed:{"::after_backgroundColor":"x1sftees","::after_opacity":"x1rw2j67",$$css:!0}};l.WDSChipSharedColorStyles=e,l.WDSChipUnselectedColorStyles=s,l.WDSChipSelectedColorStyles=u,l.WDSChipNeutralColorStyles=c}),98); __d("WDSChipDefaultConfig.stylex",[],(function(t,n,r,o,a,i,l){"use strict";var e={content:{height:"x10w6t97",width:"x14qfxbe",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},s={content:{height:"x10w6t97",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"xde1mab",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},u={content:{height:"x10w6t97",paddingInlineStart:"x12w63v0",paddingInlineEnd:"x1nzty39",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},c={content:{height:"x10w6t97",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"x1uc92m",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},d={content:{height:"x10w6t97",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"x1nzty39",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},m={content:{height:"x10w6t97",paddingInlineStart:"x12w63v0",paddingInlineEnd:"x1uc92m",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},p={content:{height:"x10w6t97",paddingInlineStart:"x12w63v0",paddingInlineEnd:"x1nzty39",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}};l.WDSChipDefaultWithIconOnlyStyles=e,l.WDSChipDefaultWithNoAddOnStyles=s,l.WDSChipDefaultWithStartIconAddOnOnlyStyles=u,l.WDSChipDefaultWithEndIconAddOnOnlyStyles=c,l.WDSChipDefaultWithEndNumberAddOnOnlyStyles=d,l.WDSChipDefaultWithStartIconAndEndIconAddOnsStyles=m,l.WDSChipDefaultWithStartIconAndEndNumberAddOnsStyles=p}),98); __d("WDSChipDefaultIOSConfig.stylex",[],(function(t,n,r,o,a,i,l){"use strict";var e={content:{height:"x1gnnpzl",width:"x1691je0",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},s={content:{height:"x10w6t97",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"xde1mab",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},u={content:{height:"x10w6t97",paddingInlineStart:"x12w63v0",paddingInlineEnd:"xde1mab",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},c={content:{height:"x10w6t97",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"x1nzty39",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},d={content:{height:"x10w6t97",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"xde1mab",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},m={content:{height:"x10w6t97",paddingInlineStart:"x12w63v0",paddingInlineEnd:"x1nzty39",$$css:!0},item:{paddingInlineEnd:"x1uc92m",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}};l.WDSChipDefaultIOSWithIconOnlyStyles=e,l.WDSChipDefaultIOSWithNoAddOnStyles=s,l.WDSChipDefaultIOSWithStartIconAddOnOnlyStyles=u,l.WDSChipDefaultIOSWithEndIconAddOnOnlyStyles=c,l.WDSChipDefaultIOSWithEndNumberAddOnOnlyStyles=d,l.WDSChipDefaultIOSWithStartIconAndEndAddOnsStyles=m}),98); __d("WDSChipLargeConfig.stylex",[],(function(t,n,r,o,a,i,l){"use strict";var e={content:{height:"x1vqgdyp",width:"x10h3iyq",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},s={content:{height:"x1vqgdyp",paddingInlineStart:"xdx6fka",paddingInlineEnd:"xvtqlqk",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},u={content:{height:"x1vqgdyp",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"x2vl965",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},c={content:{height:"x1vqgdyp",paddingInlineStart:"xdx6fka",paddingInlineEnd:"x1icxu4v",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},d={content:{height:"x1vqgdyp",paddingInlineStart:"xdx6fka",paddingInlineEnd:"x2vl965",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},m={content:{height:"x1vqgdyp",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"x1icxu4v",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},p={content:{height:"x1vqgdyp",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"x2vl965",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}};l.WDSChipLargeWithIconOnlyStyles=e,l.WDSChipLargeWithNoAddOnStyles=s,l.WDSChipLargeWithStartIconAddOnOnlyStyles=u,l.WDSChipLargeWithEndIconAddOnOnlyStyles=c,l.WDSChipLargeWithEndNumberAddOnOnlyStyles=d,l.WDSChipLargeWithStartIconAndEndIconAddOnsStyles=m,l.WDSChipLargeWithStartIconAndEndNumberAddOnsStyles=p}),98); __d("WDSChipLargeIOSConfig.stylex",[],(function(t,n,r,o,a,i,l){"use strict";var e={content:{height:"x1vqgdyp",width:"x10h3iyq",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},s={content:{height:"x1vqgdyp",paddingInlineStart:"xdx6fka",paddingInlineEnd:"xvtqlqk",$$css:!0},item:{$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},u={content:{height:"x1vqgdyp",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"xvtqlqk",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},c={content:{height:"x1vqgdyp",paddingInlineStart:"xdx6fka",paddingInlineEnd:"xde1mab",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},d={content:{height:"x1vqgdyp",paddingInlineStart:"xdx6fka",paddingInlineEnd:"xvtqlqk",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}},m={content:{height:"x1vqgdyp",paddingInlineStart:"x1iw51ew",paddingInlineEnd:"xde1mab",$$css:!0},item:{paddingInlineEnd:"x1icxu4v",$$css:!0},pressed:{$$css:!0},addOnEnd:{$$css:!0},addOnStart:{$$css:!0}};l.WDSChipLargeIOSWithIconOnlyStyles=e,l.WDSChipLargeIOSWithNoAddOnStyles=s,l.WDSChipLargeIOSWithStartIconAddOnOnlyStyles=u,l.WDSChipLargeIOSWithEndIconAddOnOnlyStyles=c,l.WDSChipLargeIOSWithEndNumberAddOnOnlyStyles=d,l.WDSChipLargeIOSWithStartIconAndEndAddOnsStyles=m}),98); __d("WDSChipConfig",["WDSChipColorConfig.stylex","WDSChipDefaultConfig.stylex","WDSChipDefaultIOSConfig.stylex","WDSChipLargeConfig.stylex","WDSChipLargeIOSConfig.stylex","WDSFocusStateStyles"],(function(t,n,r,o,a,i,l){"use strict";function e(e,t){var n;return t?n=o("WDSChipColorConfig.stylex").WDSChipNeutralColorStyles:e?n=o("WDSChipColorConfig.stylex").WDSChipSelectedColorStyles:n=o("WDSChipColorConfig.stylex").WDSChipUnselectedColorStyles,{xstyleConfig:{pressable:[o("WDSChipColorConfig.stylex").WDSChipSharedColorStyles.pressable,n.pressable,o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus],pressableDisabled:[o("WDSChipColorConfig.stylex").WDSChipSharedColorStyles.pressableDisabled,n.pressableDisabled],pressableHovered:[o("WDSChipColorConfig.stylex").WDSChipSharedColorStyles.pressableHovered,n.pressableHovered],pressablePressed:[o("WDSChipColorConfig.stylex").WDSChipSharedColorStyles.pressablePressed,n.pressablePressed]}}}var s={content:{minWidth:"xgqtt45",boxSizing:"x9f619",borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",$$css:!0},item:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",zIndex:"x1vjfegm",$$css:!0},addOnEnd:{display:"x78zum5",alignItems:"x6s0dn4",flexShrink:"x2lah0s",$$css:!0},addOnStart:{display:"x78zum5",alignItems:"x6s0dn4",$$css:!0}};function u(e,t,n,r,a){var i={};return e==="default"?a?i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithIconOnlyStyles:r?t?i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithStartIconAndEndNumberAddOnsStyles:i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithEndNumberAddOnOnlyStyles:t&&n?i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithStartIconAndEndIconAddOnsStyles:t?i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithStartIconAddOnOnlyStyles:n?i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithEndIconAddOnOnlyStyles:i=o("WDSChipDefaultConfig.stylex").WDSChipDefaultWithNoAddOnStyles:a?i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithIconOnlyStyles:r?t?i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithStartIconAndEndNumberAddOnsStyles:i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithEndNumberAddOnOnlyStyles:t&&n?i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithStartIconAndEndIconAddOnsStyles:t?i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithStartIconAddOnOnlyStyles:n?i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithEndIconAddOnOnlyStyles:i=o("WDSChipLargeConfig.stylex").WDSChipLargeWithNoAddOnStyles,{content:[s.content,i.content],item:[s.item,i.item],pressed:[],addOnEnd:[s.addOnEnd,i.addOnEnd],addOnStart:[s.addOnStart,i.addOnStart]}}function c(e,t,n,r,a){var i={};return e==="default"?a?i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithIconOnlyStyles:r?t?i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithStartIconAndEndAddOnsStyles:i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithEndNumberAddOnOnlyStyles:t&&n?i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithStartIconAndEndAddOnsStyles:t?i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithStartIconAddOnOnlyStyles:n?i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithEndIconAddOnOnlyStyles:i=o("WDSChipDefaultIOSConfig.stylex").WDSChipDefaultIOSWithNoAddOnStyles:a?i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithIconOnlyStyles:r?t?i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithStartIconAndEndAddOnsStyles:i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithEndNumberAddOnOnlyStyles:t&&n?i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithStartIconAndEndAddOnsStyles:t?i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithStartIconAddOnOnlyStyles:n?i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithEndIconAddOnOnlyStyles:i=o("WDSChipLargeIOSConfig.stylex").WDSChipLargeIOSWithNoAddOnStyles,{content:[s.content,i.content],item:[s.item,i.item],pressed:[],addOnEnd:[s.addOnEnd,i.addOnEnd],addOnStart:[s.addOnStart,i.addOnStart]}}function d(e,t,n,r,o,a){return a===void 0&&(a="macWeb"),a==="iOS"?c(e,t,n,r,o):u(e,t,n,r,o)}var m={icon20:{height:"x1qx5ct2",width:"xw4jnvo",$$css:!0},icon18:{height:"xmix8c7",width:"x1xp8n7a",$$css:!0}};function p(e){e===void 0&&(e="macWeb");var t=e==="iOS";return t?[18,m.icon18]:[20,m.icon20]}function _(e,t,n){return n?"contentDeemphasized":t?"contentDefault":e?"accentEmphasized":"contentDeemphasized"}l.getButtonColorStyles=e,l.getButtonSizeStyles=d,l.getChipIconSizeAndStyle=p,l.getButtonFontColor=_}),98); __d("intlSummarizeNumber",["FbtNumberType","IntlCompactDecimalNumberFormatConfig","IntlVariations","intlNumUtils"],(function(t,n,r,o,a,i,l){var e=3,s=14,u={ROUND:"ROUND",TRUNCATE:"TRUNCATE",NONE:"NONE"},c={SHORT:"SHORT",LONG:"LONG",NONE:"NONE"},d={ALWAYS_SHOW:"ALWAYS_SHOW",HIDE_IF_ZERO:"HIDE_IF_ZERO"};function m(e,t){for(var n=t,r=e,o=n!=null?n:0;o>0;o--)r%1===0&&n!=null&&n--,r*=10;return n}function p(t,n,o,a,i){var l;o===void 0&&(o=c.SHORT),a===void 0&&(a=u.ROUND),i===void 0&&(i=d.ALWAYS_SHOW);var p=r("IntlCompactDecimalNumberFormatConfig")[o===c.SHORT?"short_patterns":"long_patterns"],f=t===0?0:Math.floor(Math.log10(Math.abs(t)));f>s&&(f=s);var g=a===u.NONE?[t,n,!1]:_(t,f,n,a,p),h=g[0],y=g[1],C=g[2];if(C&&a===u.ROUND){f+=1;var b=_(t,f,n,a,p);h=b[0],y=b[1],C=b[2]}var v=r("FbtNumberType").getVariation(h)||r("IntlVariations").NUMBER_OTHER,S=f.toString(),R=p==null||(l=p[S])==null?void 0:l[v.toString()];if(f2?1:0);var g=o===u.TRUNCATE?r("intlNumUtils").truncateLongNumber(p.toString(),f):p.toFixed(f),h=parseFloat(g)*(e<0?-1:1);return[h,h%1===0&&!_?0:f,g.length>d+(f>0?f+1:0)+(p>=0?0:1)&&t=b||(y(t),(e=f.current[t])==null||e.focus())},S={left:function(){h!==-1&&v(h-1)},right:function(){h!==-1&&v(h+1)},home:function(){h!==-1&&v(0)},end:function(){h!==-1&&v(b-1)}},R=t!=null?s._(/*BTDS*/"Todas las reacciones a mensajes, incluida la opci\u00f3n de a\u00f1adir una nueva"):s._(/*BTDS*/"Todas las reacciones de mensajes");return d.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:S,role:"toolbar","aria-label":R,children:d.jsxs(o("WAWebFlex.react").FlexRow,{columnGap:8,rowGap:8,shrink:0,xstyle:[_.pillsContainer,C],children:[t,c.map(function(e,t){var n=e.count,a=e.emoji,i=e.hasMyReaction,c=t===0,m=s._(/*BTDS*/"{reaction}, {count} reacciones, {position} de {total}",[s._param("reaction",a),s._param("count",n),s._param("position",t+1),s._param("total",b)]);return d.jsx(r("WDSChip.react"),{label:m,isDisabled:l==="read-only",isSelected:i,onPress:function(){return u(a,i)},focusable:h===-1?c:h===t,"aria-pressed":i,testid:void 0,smbLabelsContent:d.jsx(o("WAWebReactionEmoji.react").ReactionEmoji,{reaction:a}),endNumber:n,onFocus:function(){return y(t)},onBlur:function(){return y(-1)},ref:function(n){f.current[t]=n}},a)})]})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226); __d("WAWebWamEnumReactionUserJourneyAction",[],(function(t,n,r,o,a,i){var e=Object.freeze({TRAY_OPEN:1,SEARCH_OPEN:2,REACTION_SELECT:3,REACTION_UNSELECT:4,REACTION_SEARCH:5,SEARCH_CLOSE:6,TRAY_CLOSE:7,REACTION_DETAILS:8,SELECT_PROFILE:9,DETAILS_DISMISS:10,SELECT_ALBUM_THUMBNAIL:11,SELECT_TAB_IN_REACTION_DETAILS:12});i.REACTION_USER_JOURNEY_ACTION=e}),66); __d("WAWebWamEnumReactionUserJourneyEntryPoint",[],(function(t,n,r,o,a,i){var e=Object.freeze({MESSAGE_HOLD:1,MESSAGE_DOUBLE_TAP:2,MEDIA_VIEWER_REACTION_CTA:3,EXISTING_REACTION_CTA:4,MACOS_MESSAGE_REACTION_BUTTON:5,MACOS_MESSAGE_MENU_ITEM_REACTION:6,MACOS_LAST_MESSAGE_REACT_SHORTCUT:7,VOICE_CHAT_REACTION_BUTTON:8,VOICE_CHAT_MINI_PLAYER_HOLD:9,MESSAGE_REACTION_BUTTON:10,MESSAGE_MENU_ITEM_REACTION:11});i.REACTION_USER_JOURNEY_ENTRY_POINT=e}),66); __d("WAWebReactionUserJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumMediaType","WAWebWamEnumMessageType","WAWebWamEnumReactionUserJourneyAction","WAWebWamEnumReactionUserJourneyEntryPoint","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({ReactionUserJourney:[5752,{appSessionId:[1,e.TYPES.STRING],messageHasOwnReaction:[2,e.TYPES.BOOLEAN],messageHasReaction:[3,e.TYPES.BOOLEAN],messageMediaType:[10,o("WAWebWamEnumMediaType").MEDIA_TYPE],messageType:[4,o("WAWebWamEnumMessageType").MESSAGE_TYPE],reactionUserJourneyAction:[5,o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION],reactionUserJourneyEntryPoint:[6,o("WAWebWamEnumReactionUserJourneyEntryPoint").REACTION_USER_JOURNEY_ENTRY_POINT],uiSurface:[7,o("WAWebWamEnumTsSurface").TS_SURFACE],unifiedSessionId:[12,e.TYPES.STRING],userJourneyChatType:[8,o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE],userJourneyEventMs:[11,e.TYPES.INTEGER],userJourneyFunnelId:[9,e.TYPES.STRING]},[1,1,1],"regular"]},{ReactionUserJourney:[]});l.ReactionUserJourneyWamEvent=s}),98); __d("WAWebReactionUserJourneyLogger",["WALogger","WATimeUtils","WAWebABProps","WAWebPonyfillsCryptoRandomUUID","WAWebReactionUserJourneyWamEvent","WAWebReactionsCollection","WAWebUnifiedSession","WAWebWamEnumReactionUserJourneyAction","WAWebWamEnumTsSurface","WAWebWamEnumUserJourneyChatType"],(function(t,n,r,o,a,i,l){"use strict";var e,s=(function(){function t(e){e===void 0&&(e=r("WAWebPonyfillsCryptoRandomUUID")()),this.loggingEnabled=!1,this.loggingEnabled=o("WAWebABProps").getABPropConfigValue("reaction_user_journey_logging_enabled"),this.$1=e}var n=t.prototype;return n.trayOpen=function(t,n,r){this.$10({chatId:t,message:n,entryPoint:r,uiSurface:m(t),action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.TRAY_OPEN})},n.searchOpen=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.SEARCH_OPEN})},n.reactionSelect=function(t){this.$10({action:t.length===0?o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_UNSELECT:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_SELECT})},n.reactionUnselect=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_UNSELECT})},n.reactionSearch=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_SEARCH})},n.trayClose=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.TRAY_CLOSE})},n.reactionDetails=function(t,n,r){this.$10({chatId:t,message:n,entryPoint:r,uiSurface:m(t),action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_DETAILS})},n.selectProfile=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.SELECT_PROFILE})},n.detailsDismiss=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.DETAILS_DISMISS})},n.selectAlbumThumbnail=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.SELECT_ALBUM_THUMBNAIL})},n.selectTabInReactionDetails=function(){this.$10({action:o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.SELECT_TAB_IN_REACTION_DETAILS})},n.$10=function(n){if(this.loggingEnabled){var t=o("WAWebUnifiedSession").UnifiedSessionManager.getSessionId();if(t==null){o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[uj] [reaction] Unified session ID is null"])));return}if(u(n.action)&&this.$2==null){this.$2=r("WAWebPonyfillsCryptoRandomUUID")(),n.chatId!=null&&(this.$3=d(n.chatId)),this.$4=n.uiSurface,this.$5=n.entryPoint;var a=n.message;if(a!=null&&a.id!=null){var i,l=o("WAWebReactionsCollection").ReactionsCollection.get(a.id);this.$7=(l==null?void 0:l.reactionByMe)!=null,this.$6=((i=l==null?void 0:l.reactions.length)!=null?i:0)>0,this.$8=a.getWamMediaType(),this.$9=a.getWamMessageType()}}var s=this.$2;if(s!=null){var m=new(o("WAWebReactionUserJourneyWamEvent")).ReactionUserJourneyWamEvent;m.appSessionId=this.$1,m.unifiedSessionId=t,m.userJourneyFunnelId=s,this.$4!=null&&(m.uiSurface=this.$4),this.$3!=null&&(m.userJourneyChatType=this.$3),m.userJourneyEventMs=o("WATimeUtils").unixTimeMs(),m.reactionUserJourneyAction=n.action,this.$5!=null&&(m.reactionUserJourneyEntryPoint=this.$5),this.$7!=null&&(m.messageHasReaction=this.$7),this.$6!=null&&(m.messageHasOwnReaction=this.$6),this.$8!=null&&(m.messageMediaType=this.$8),this.$9!=null&&(m.messageType=this.$9),m.commit(),c(n.action)&&(this.$2=null,this.$3=null,this.$4=null,this.$5=null,this.$7=null,this.$6=null,this.$8=null,this.$9=null)}}},t})();function u(e){return e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.TRAY_OPEN||e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_DETAILS}function c(e){return e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.TRAY_CLOSE||e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_UNSELECT||e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.REACTION_SELECT||e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.DETAILS_DISMISS||e===o("WAWebWamEnumReactionUserJourneyAction").REACTION_USER_JOURNEY_ACTION.SELECT_PROFILE}function d(e){return e.isUser()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.INDIVIDUAL:e.isGroup()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.GROUP:e.isNewsletter()?o("WAWebWamEnumUserJourneyChatType").USER_JOURNEY_CHAT_TYPE.CHANNEL:null}function m(e){return e.isGroup()?o("WAWebWamEnumTsSurface").TS_SURFACE.GROUP_CHAT:o("WAWebWamEnumTsSurface").TS_SURFACE.CHAT_THREAD}var p=new s;l.ReactionUserJourneyLogger=p}),98); __d("useWAWebSelectedReactions",["useWAWebReactions"],(function(t,n,r,o,a,i,l){var e=function(){};function s(t){var n=r("useWAWebReactions")([t],e),o=n.reactionsModels;if(o[0]){var a;return(a=o[0].reactionByMe)==null?void 0:a.reactionText}return null}l.default=s}),98); __d("WAWebReactionsPanel.react",["WAWebCmd","WAWebDropdown.react","WAWebEmojiPanel.react","WAWebPanelsDisplayLocation","WAWebReactionUserJourneyLogger","WAWebReactionsBEUtils","WAWebReactionsSelectionContext","react","useWAWebSelectedReactions"],(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;function p(e){var t=e.msgId,n=e.onSelection,a=r("useWAWebSelectedReactions")(t),i=m(!1);d(function(){return function(){o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.trayClose()}},[]);var l=function(t){var e=t;t===a&&(e=o("WAWebReactionsBEUtils").REVOKED_REACTION_TEXT),n(e),o("WAWebCmd").Cmd.closeContextMenu()};return c.jsx(r("WAWebReactionsSelectionContext").Provider,{value:a,children:c.jsx(r("WAWebEmojiPanel.react"),{onEmoji:l,displayLocation:o("WAWebPanelsDisplayLocation").DisplayLocation.Reactions,width:o("WAWebDropdown.react").REACTIONS_PANEL_WIDTH,onChange:function(){i.current||(o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSearch(),i.current=!0)}})})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),98); __d("useWAWebReactionEmojiPicker",["WAWebDropdown.react","WAWebReactionsPanel.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msgId,n=e.onCloseDetailsPane,a=e.onCloseEmojiPicker,i=e.onEmojiSelected,l=e.onOpenEmojiPicker,u=function(u,c){n==null||n(),self.setTimeout(function(){var e,n=function(t){i(t),a==null||a()};l==null||l({menu:s.jsx(r("WAWebReactionsPanel.react"),{msgId:t,onSelection:n}),dirY:o("WAWebDropdown.react").DirY.BOTTOM,type:o("WAWebDropdown.react").MenuType.ReactionPicker,anchor:(e=c.current)!=null?e:u.currentTarget})},150)};return u}l.default=u}),98); __d("useWAWebReactionPillOrder",["react"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useState;function u(e){var t=s(function(){return e.map(function(e){return e.emoji})}),n=t[0],r=t[1],o=function(t){var e=new Map;for(var o of t)e.set(o.emoji,o);var a=[],i=[];for(var l of n){var s=e.get(l);s!=null?(a.push(s),e.delete(l)):a.push({emoji:l,count:0,hasMyReaction:!1})}for(var u of e.values())a.push(u),i.push(u.emoji);return i.length>0&&r(function(e){return[].concat(e,i)}),a};return o}l.default=u}),98); __d("WAWebNewsletterReactionDetailsPaneV2.react",["fbt","WALogger","WAWebAddReactionPill.react","WAWebConnectedPillButtons.react","WAWebFlatListContainer.react","WAWebFlatListController","WAWebFlex.react","WAWebKeyboardRotateFocusModal.react","WAWebKeyboardTabUtils","WAWebNewsletterContactsReactionList.react","WAWebNewsletterGatingUtils","WAWebNewsletterReactionFrontendUtils","WAWebNewsletterSendReactionAction","WAWebReactionDetailsPaneTitle.react","WAWebReactionPillsContainer.react","WAWebReactionUserJourneyLogger","WAWebReactionsBEUtils","WAWebReactionsUtils","WAWebSpinner.react","WAWebUISpacing","WAWebUserPrefsMeUser","react","sumBy","useLazyRef","useWAWebEventTargetValue","useWAWebFocusOnMount","useWAWebNewsletterReactionSenderList","useWAWebReactionEmojiPicker","useWAWebReactionPillOrder"],(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.useRef,f=m.useState,g={fullWidth:{width:"xh8yej3",$$css:!0},focusTrapContainer:{position:"x1n2onr6",$$css:!0}};function h(e){var t=o("WAWebUserPrefsMeUser").getMePnUserOrThrow().toJid(),n=o("WAWebNewsletterReactionFrontendUtils").aggregateAndSortReactions(e).reactions,r=n.map(function(e){var n=e[0],r=e[1];return{emoji:n.reactionAggregate,count:r,myReactions:n.reactionSenders.filter(function(e){return e.senderUserJid===t})}}),a=r.map(function(e){var t=e.count,n=e.emoji,r=e.myReactions;return{emoji:n,count:t,hasMyReaction:r.length>0}});return{reactions:r,aggregates:a}}function y(t){var n=t.chat,a=t.firstMsg,i=t.multipleMsgs,l=t.onCloseDetailsPane,c=t.onCloseEmojiPicker,d=t.onOpenEmojiPicker,m=t.reactionModels,y=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),C=f("all"),b=C[0],v=C[1],S=_(null),R=o("WAWebReactionsUtils").canReactToMessage(a),L=o("useWAWebNewsletterReactionSenderList").useNewsletterReactionSenderList(n,a,i),E=L[0],k=L[1],I=L[2],T=L[3],D=L[4],x=L[5],$=L[6],P=h(m),N=P.aggregates,M=P.reactions,w=f(M),A=w[0],F=w[1],O=f(N),B=O[0],W=O[1],q=r("useWAWebFocusOnMount")(),U=r("useWAWebReactionPillOrder")(B),V=function(){var e=h(m),t=e.aggregates,n=e.reactions,r=U(t);F(n),W(r)};r("useWAWebEventTargetValue")(m,["change:myReaction","change:reactionCountMapTs","remove"],V);var H=function(n,r){r?o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionUnselect():o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSelect(n);var t=a.id,i=r?o("WAWebReactionsBEUtils").REVOKED_REACTION_TEXT:n;o("WAWebNewsletterSendReactionAction").sendNewsletterReaction(t,i).catch(function(t){return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Failed to react"])))})},G=r("useWAWebReactionEmojiPicker")({msgId:a.id.toString(),onEmojiSelected:function(t){o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionSelect(t);var e=a.id;o("WAWebNewsletterSendReactionAction").sendNewsletterReaction(e,t).catch(function(e){return o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["Failed to react"])))})},onCloseDetailsPane:l,onOpenEmojiPicker:d,onCloseEmojiPicker:c}),z=p.jsxs(p.Fragment,{children:[p.jsx(r("WAWebReactionPillsContainer.react"),{addReactionPill:R&&o("WAWebNewsletterGatingUtils").shouldShowAllReactionsForNewsletter(n)?p.jsx(r("WAWebAddReactionPill.react"),{onClick:function(t){return G(t,S)},ref:S}):null,display:"grid",mode:R?"interactive":"read-only",onPillClick:H,reactionAggregates:B}),p.jsx("div",{className:"x3x0x6p xjm9jq1 xh8yej3"})]}),j=b==="contacts"?p.jsx(r("WAWebFlatListContainer.react"),{className:"xh8yej3 xuyqlj2 x1lumt5c xw2csxc x1odjw0f",flatListControllers:[y.current],children:I?p.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",xstyle:o("WAWebUISpacing").uiMargin.top40,children:p.jsx(o("WAWebSpinner.react").Spinner,{color:"accent",size:24})}):p.jsx(r("WAWebNewsletterContactsReactionList.react"),{reactionList:k,flatListController:y.current,reactionSendersServerError:T,setReactionSendersServerError:x,retryFetchingReactionSenders:$,isOffline:D,onCloseDetailsPane:l})}):null,K=b==="all"?r("sumBy")(A,function(e){return e.count}):k.length,Q=b==="all"?p.jsx(r("WAWebReactionDetailsPaneTitle.react"),{count:K}):b==="contacts"?!D&&!T&&!I?p.jsx(r("WAWebReactionDetailsPaneTitle.react"),{count:K}):null:(function(){throw Error("Match: No case succesfully matched. Make exhaustive or add a wildcard case using '_'. Argument: "+b)})(),X=[{id:"all",title:s._(/*BTDS*/"Todas")},{id:"contacts",title:s._(/*BTDS*/"Contactos")}];return p.jsx(r("WAWebKeyboardRotateFocusModal.react"),{focusType:{type:o("WAWebKeyboardTabUtils").FocusType.TABBABLE},ref:q,xstyle:g.focusTrapContainer,children:p.jsxs(o("WAWebFlex.react").FlexColumn,{testid:void 0,children:[o("WAWebNewsletterGatingUtils").isNewsletterReactionSenderListEnabled(n,i)&&p.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[o("WAWebUISpacing").uiMargin.bottom4,o("WAWebUISpacing").uiMargin.top28,g.fullWidth],justify:"center",children:p.jsx(r("WAWebConnectedPillButtons.react"),{pills:X,onChange:function(t){(t==="all"||t==="contacts")&&v(t)},currentlySelected:b})}),Q,z,j]})})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebReactionEmojiAnimated",["WAWebReactionEmoji.react","WAWebVelocityAnimate","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=70,_="xhfnc4l-B";function f(e){var t=e.reaction,n=e.removeAnimation,a=e.shouldAnimate,i=m(null);return d(function(){(n==null?void 0:n.shouldRemoveAnimation)===!0&&i.current!=null&&r("WAWebVelocityAnimate")(i.current,{scale:[0,1]},{duration:p,easing:[.83,0,.17,1]}).then(function(){n.animationFinished()})},[n]),c.jsx("div",babelHelpers.extends({ref:i},{0:{},1:{className:"xpxtiw3 x2mfxb x933yfc x10e4vud xlp1x4z x14wcmtf"}}[!!(a&&(n==null?void 0:n.shouldRemoveAnimation)!==!0)<<0],{children:c.jsx(o("WAWebReactionEmoji.react").ReactionEmoji,{reaction:t,scale:"bubble"})}))}f.displayName=f.name+" [from "+i.id+"]",l.ANIMATION_REMOVE_LENGTH=p,l.ReactionEmojiAnimated=f}),98); __d("WAWebUseRollerCounter",["react","useWAWebDebouncedCallback"],(function(t,n,r,o,a,i,l){var e,s=e||(e=o("react")),u=s.useRef,c=s.useState,d=50;function m(e,t){var n=c(t),o=n[0],a=n[1],i=c(null),l=i[0],s=i[1],m=u(null);m.current==null&&(m.current=e);var p=r("useWAWebDebouncedCallback")(function(){m.current!=null&&m.current!==t&&(a(t),s(m.current)),m.current=null},d);return t!=null&&p(),{currentValueProp:o,previousValueProp:l}}l.useRollerCounter=m}),98); __d("WAWebRollerCounter.react",["WAWebFlex.react","WAWebFlexItem.react","WAWebL10N","WAWebUseRollerCounter","lodash","react","stylex","useWAWebPrevious"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.memo,p=c.useEffect,_=c.useRef,f="xwqjvqw-B",g="xtjl24w-B",h="xuttrn-B",y="x8xa006-B",C={rollerContainer:{height:"xlup9mm",overflowX:"x6ikm8r",overflowY:"x10wlt62",marginInlineStart:"x1wbi8v6",marginInlineEnd:"x1p8j9ns",$$css:!0},counterContainer:{minHeight:"x1hshjfz",height:"xlup9mm",alignItems:"x6s0dn4",display:"x78zum5",$$css:!0},rollerAnimation:{animationDuration:"x4afe7t",animationTimingFunction:"x933yfc",animationFillMode:"x10e4vud",backfaceVisibility:"xlp1x4z",$$css:!0},animateFirstUp:{animationName:"x1ra8wus",$$css:!0},animateSecondUp:{animationName:"x1wkmh82",$$css:!0},animateFirstDown:{animationName:"x8so7cb",position:"x1n2onr6",top:"x9gwk0z",$$css:!0},animateSecondDown:{position:"x1n2onr6",animationName:"x1849bfk",top:"x13vifvy",$$css:!0}};function b(e){var t=e.counter,n=e.rollerCounterOptions,a=e.shouldAnimate,i="999+",l=r("useWAWebPrevious")(t),u=o("WAWebUseRollerCounter").useRollerCounter(l,t),c=u.currentValueProp!=null?u.currentValueProp:0,m=r("WAWebL10N").d(c),p=[];if(c===1&&n!=null&&n.showOneToTwoAnimation)return null;var _=0;if(u.previousValueProp!=null&&(_=t-u.previousValueProp),u.previousValueProp!=null&&u.previousValueProp!==c&&a&&_!==0){var f=u.previousValueProp>999?i:u.previousValueProp;f=u.previousValueProp!=null?r("WAWebL10N").d(u.previousValueProp):f;var g=f,h=m,y=C.animateFirstUp,b=C.animateSecondUp;_<0&&(g=m,h=f,y=C.animateFirstDown,b=C.animateSecondDown),u.previousValueProp===1&&c===2&&n!=null&&n.showOneToTwoAnimation&&(g=" ");var S=d.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props([C.counterContainer,C.rollerAnimation,y]),{children:d.jsx("span",{className:"x1f6kntn x2b8uid xhslqc4",children:r("WAWebL10N").n(g)})}),String(g)),R=d.jsx(v,{animationStyle:b,direction:_,value:h},String(h));p.push(S,R)}else{var L=d.jsx("div",{className:"x1hshjfz xlup9mm x6s0dn4 x78zum5",children:d.jsx("span",{className:"x1f6kntn x2b8uid xhslqc4",children:r("WAWebL10N").n(m)})},String(m));p.push(L)}return d.jsx(r("WAWebFlexItem.react"),{align:"center",shrink:0,children:d.jsx(o("WAWebFlex.react").FlexColumn,{xstyle:C.rollerContainer,children:p})})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=e.animationStyle,n=e.direction,o=e.value,a=_(null);return p(function(){var e=a.current;if(e!=null){var t=function(){e.style.display=n<0?"none":"flex"};return e.addEventListener("animationend",t),function(){e.removeEventListener("animationend",t)}}},[n]),d.jsx("div",babelHelpers.extends({ref:a},(s||(s=r("stylex"))).props([C.counterContainer,C.rollerAnimation,t]),{children:d.jsx("span",{className:"x1f6kntn x2b8uid xhslqc4",children:r("WAWebL10N").n(o)})}))}v.displayName=v.name+" [from "+i.id+"]";function S(e,t){return r("lodash").isEqual(e,t)}var R=m(b,S);l.default=R}),98); __d("WAWebReactionsBubble.react",["WAWebAddOnBubble.react","WAWebFlexItem.react","WAWebReactionEmojiAnimated","WAWebReactionsUtils","WAWebRollerCounter.react","lodash","react","useWAWebDebouncedCallback","useWAWebPrevious","useWAWebTimeout","useWAWebUnmountSignal"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.memo,m=u.useEffect,p=u.useRef,_=u.useState,f=100,g={reactionItem:{marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",textAlign:"x2b8uid",fontSize:"x1jchvi3",lineHeight:"x1fc57z9",$$css:!0}};function h(e,t){var n=r("lodash").differenceBy(t||[],e||[],function(e){return e.reactionAggregate}),o=r("lodash").differenceBy(e||[],t||[],function(e){return e.reactionAggregate});return{added:n,removed:o}}function y(e){var t={timestamp:0,reactionAgg:""};return e.forEach(function(e){e.reactionSenders.forEach(function(n){t.timestampa:!1;T.current=null,!r("lodash").isEqual(o,k)&&t===!1&&I(o);var c=[];if(!r("lodash").isEqual(n,C)&&t===!1&&!u){var d=y(l.current);n.forEach(function(e){e.reactionAggregate===d.reactionAgg&&c.push(e)})}u||l.current.forEach(function(e){var n,r=(n=i.current)==null?void 0:n.find(function(t){return t.reactionAggregate===e.reactionAggregate});t===!1&&e.reactionByMe&&r==null&&(c=[e])}),o.length===0?R(l.current):$(),b(c),i.current=null,s.current=!1}},f);r("lodash").isEqual(u,n)||N(),m(function(){t===!0&&R(n)},[]);var M=S.map(function(e){var t=k.includes(e),n=t?{shouldRemoveAnimation:t,animationFinished:function(){P(),R(l.current)}}:null,a=o("WAWebReactionsUtils").getReactionForDisplay(e),i=C.includes(e);return c.jsx(r("WAWebFlexItem.react"),{xstyle:g.reactionItem,testid:void 0,children:c.jsx(o("WAWebReactionEmojiAnimated").ReactionEmojiAnimated,{reaction:a,shouldAnimate:i,removeAnimation:n})},a)}),w=c.jsx(r("WAWebRollerCounter.react"),{counter:a,shouldAnimate:t===!1,rollerCounterOptions:{showAggregateMax:!0,showOneToTwoAnimation:!0}}),A=h(i.current,l.current),F=A.added,O=t===!1&&s.current&&(F.length>0||D.current);D.current=O;var B=function(){D.current=!1};return c.jsxs(r("WAWebAddOnBubble.react"),{shouldAnimateBubble:O,onAnimationEnd:B,children:[M,w]})}C.displayName=C.name+" [from "+i.id+"]";function b(e,t){return r("lodash").isEqual(e,t)}var v=d(C,b);l.default=v}),98); __d("WAWebReactionsBubbleWrapper.react",["WAWebAddOnBubblesContainerConditions","WAWebClassnames","WAWebKeyboardHotKeys.react","WAWebKeyboardListHotKeys.react","WAWebMiscGatingUtils","WAWebReactionsBubble.react","WAWebReactionsUtils","WAWebUimUie.react","WAWebUimUieMenu.react","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={reactionBubbleContainer:{height:"xo0jvv6",$$css:!0}};function d(e){var t=e.closeDetailsPane,n=e.detailsPane,a=e.handlers,i=e.hasReaction,l=e.isFirstData,d=e.numberOfSenderReactions,p=e.openDetailsPane,_=e.reactionArrayEmojis,f=e.reactionBubbleVisible,g=o("WAWebAddOnBubblesContainerConditions").hasHiddenSenderReactions(d,f),h=o("WAWebReactionsUtils").reactionBubbleAriaLabelString(d,_),y=n&&u.jsx(o("WAWebUimUie.react").UIE,{displayName:"DetailsPane",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:t,children:u.jsx(r("WAWebUimUieMenu.react"),{contextMenu:n})}),C=null;if(g)i&&(C=u.jsx("div",{className:"xo0jvv6"}));else{var b;C=u.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{"data-testid":void 0,onClick:p,onDoubleClick:m,handlers:a,component:"button","aria-haspopup":!0,tabIndex:o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled()?0:null,"aria-label":h,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((b={},b[o("WAWebKeyboardListHotKeys.react").LIST_FOCUSABLE_ITEM_CLASS_NAME]=!o("WAWebMiscGatingUtils").messageListA11yRedesignEnabled(),b),(s||(s=r("stylex")))([c.reactionBubbleContainer])),children:u.jsx(r("WAWebReactionsBubble.react"),{reactions:_,reactionsAggregateCount:d,isFirstData:l})})}return u.jsxs(u.Fragment,{children:[C,y]})}d.displayName=d.name+" [from "+i.id+"]";function m(e){e.preventDefault(),e.stopPropagation()}l.default=d}),98); __d("useWAWebNewsletterReactions",["Promise","WALogger","WAWebNewsletterReactionCollection","asyncToGeneratorRuntime","react","useWAWebListener"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=c.useEffect,m=c.useState;function p(e){var t=m([]),r=t[0],a=t[1],i=m(!1),l=i[0],u=i[1];return o("useWAWebListener").useListener(o("WAWebNewsletterReactionCollection").NewsletterMessageReactionsCollection,"add change remove reset",function(){u(!l)}),d(function(){n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var t=yield(s||(s=n("Promise"))).all(e.map(function(e){return o("WAWebNewsletterReactionCollection").NewsletterMessageReactionsCollection.find(e.toString()).catch(function(){return null})}));a(t.filter(Boolean))})().catch(function(e){})},[l]),r}l.default=p}),98); __d("WAWebNewsletterReactionsBubbleContainer.react",["WALogger","WAWebAddOnBubbleType","WAWebDropdown.react","WAWebFrontendMsgGetters","WAWebNewsletterReactionDetailsPane.react","WAWebNewsletterReactionDetailsPaneV2.react","WAWebNewsletterReactionFrontendUtils","WAWebNewsletterSendReactionAction","WAWebReactionUserJourneyLogger","WAWebReactionsBEUtils","WAWebReactionsBubbleWrapper.react","WAWebReactionsUtils","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebWamEnumReactionUserJourneyEntryPoint","react","useWAWebABPropConfigValue","useWAWebEventTargetValue","useWAWebNewsletterReactions"],(function(t,n,r,o,a,i,l){var e,s,u,c=u||(u=o("react")),d=s||(s=r("react")),m=c.useCallback,p=c.useEffect,_=c.useState;function f(t){var n=t.msgs,a=t.onDetailsPaneClosed,i=t.reactionBubbleType,l=t.reactionBubbleVisible,s=n.map(function(e){return e.id}),u=_(),c=u[0],f=u[1],g=_(),h=g[0],y=g[1],C=r("useWAWebNewsletterReactions")(s),b=o("useWAWebABPropConfigValue").useABPropConfigValue("wa_web_reactions_2"),v=s.join("-");p(function(){i!==o("WAWebAddOnBubbleType").AddOnBubbleType.MEDIA_VIEWER&&o("WAWebReactionsUtils").lastMessageReactionChange(n.map(function(e){return e.id.toString()}))},[v,i]);var S=r("useWAWebEventTargetValue")(C,["change:myReaction","change:reactionCountMapTs","remove"],function(){return o("WAWebNewsletterReactionFrontendUtils").aggregateAndSortReactions(C)}),R=S.count,L=S.reactions,E=function(){f(null),o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.detailsDismiss()},k=m(function(t,n){n===o("WAWebReactionsBEUtils").REVOKED_REACTION_TEXT&&E(),o("WAWebNewsletterSendReactionAction").sendNewsletterReaction(t,n).catch(function(t){return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Failed to react"])))})},[]),I=function(){y(null)},T=function(t){t.preventDefault(),t.stopPropagation();var e=o("WAWebFrontendMsgGetters").getChat(n[0]),a=b?d.jsx(r("WAWebNewsletterReactionDetailsPaneV2.react"),{multipleMsgs:n.length>1,reactionModels:C,chat:e,firstMsg:n[0],onCloseDetailsPane:E,onOpenEmojiPicker:y,onCloseEmojiPicker:I}):d.jsx(r("WAWebNewsletterReactionDetailsPane.react"),{handleEmojiClick:k,multipleMsgs:n.length>1,reactionModels:C,chat:e,firstMsg:n[0],onCloseDetailsPane:E});n[0]!=null&&e!=null&&o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionDetails(e.id,n[0],o("WAWebWamEnumReactionUserJourneyEntryPoint").REACTION_USER_JOURNEY_ENTRY_POINT.EXISTING_REACTION_CTA),f({menu:a,dirY:o("WAWebDropdown.react").DirY.BOTTOM,dirX:o("WAWebDropdown.react").DirX.RIGHT,anchor:t.target,flipOnRtl:!0,type:o("WAWebDropdown.react").MenuType.ReactionDetailsPane})},D={enter:T,space:T};return d.jsxs(d.Fragment,{children:[d.jsx(r("WAWebReactionsBubbleWrapper.react"),{closeDetailsPane:E,detailsPane:c,handlers:D,hasReaction:L.length>0,isFirstData:!0,numberOfSenderReactions:R,openDetailsPane:T,reactionArrayEmojis:L.map(function(e){var t=e[0];return t}).slice(0,o("WAWebReactionsUtils").getMaxReactionsInBubble()),reactionBubbleVisible:!!l}),h&&d.jsx(o("WAWebUimUie.react").UIE,{displayName:"ReactionEmojiPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:I,children:d.jsx(r("WAWebUimUieMenu.react"),{contextMenu:h})})]})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),98); __d("WAWebPnhCagDailyUtils",["$InternalEnum","WAWebDailyAggregatedStatsCollection"],(function(t,n,r,o,a,i,l){var e=n("$InternalEnum").Mirrored(["PNH_INDICATOR_CLICKS_CHAT","PNH_INDICATOR_CLICKS_INFO_SCREEN","REACTION_DELETE_COUNT","REACTION_OPEN_TRAY_COUNT"]);function s(t,n){var r=o("WAWebDailyAggregatedStatsCollection").DailyAggregatedStatsCollection.gaddForToday(),a=r.pnhCagActions[t.toString()];switch(a==null&&(a={pnhIndicatorClicksChat:0,pnhIndicatorClicksInfoScreen:0,reactionDeleteCount:0,reactionOpenTrayCount:0},r.pnhCagActions[t.toString()]=a),n){case e.PNH_INDICATOR_CLICKS_CHAT:a.pnhIndicatorClicksChat++;break;case e.PNH_INDICATOR_CLICKS_INFO_SCREEN:a.pnhIndicatorClicksInfoScreen++;break;case e.REACTION_DELETE_COUNT:a.reactionDeleteCount++;break;case e.REACTION_OPEN_TRAY_COUNT:a.reactionOpenTrayCount++;break}}l.PnhCagDailyMetricsType=e,l.incrementPnhDailyCount=s}),98); __d("WAWebAutoCarouselMenuTabMarker.react",["react","useWAWebPrevious"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c=(e||(e=o("react"))).memo,d="0.3s",m=null;function p(e){var t=e.animate,n=e.offsetPx,o=e.selectedTabIndex,a=e.width,i=r("useWAWebPrevious")(o),l,s,c;return i===-1&&o!==i?c=!1:c=!!t,o!==-1?(s="translateX("+n+"px)",l="2px"):i!==-1&&o===-1&&(l="0px"),u.jsx("div",{className:{0:"x10l6tqk x1ey2m1c xu96u03 xnj6ddq x1hc1fzr xua3uq3 x1d8287x",2:"x10l6tqk x1ey2m1c xu96u03 xnj6ddq x1hc1fzr x1humd01 x1d8287x",1:"x10l6tqk x1ey2m1c xu96u03 xnj6ddq x1hc1fzr x12lomcl x1d8287x",3:"x10l6tqk x1ey2m1c xu96u03 xnj6ddq x1hc1fzr x12lomcl x1d8287x"}[!!(!c&&t)<<1|!!c<<0],style:{width:a,transform:s,height:l}})}p.displayName=p.name+" [from "+i.id+"]";var _=c(p);l.default=_}),98); __d("WAWebAutoCarouselMenuMenu.react",["$InternalEnum","WALogger","WAWebAutoCarouselMenuTabMarker.react","WAWebChevronCustomIcons","WAWebChevronIcon.react","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebPanelsMenuContainer.react","WAWebPanelsMenuTab.react","WAWebResizeObserver.react","WAWebUnstyledButton.react","WAWebUseIsKeyboardUser","clamp","react"],(function(t,n,r,o,a,i,l){var e,s=["ref"],u,c,d=c||(c=o("react")),m=u||(u=r("react")),p=d.useCallback,_=d.useEffect,f=d.useImperativeHandle,g=d.useLayoutEffect,h=d.useRef,y=d.useState,C=n("$InternalEnum").Mirrored(["Left","Right"]),b={button:{position:"x10l6tqk",zIndex:"x1vjfegm",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",height:"x5yr21d",backgroundColor:"xgcd1z6",$$css:!0},buttonIcon:{color:"xhslqc4",$$css:!0},floatRight:{top:"x13vifvy",right:"x3m8u43",insetInlineStart:null,insetInlineEnd:null,$$css:!0},floatLeft:{top:"x13vifvy",left:"xu96u03",insetInlineStart:null,insetInlineEnd:null,$$css:!0}},v=3,S=function(t,n,o,a){if(!t||!n)return!1;var e=t.getBoundingClientRect(),i=n.getBoundingClientRect(),l=(o==null?void 0:o.clientWidth)||0,s=(a==null?void 0:a.clientWidth)||0;return i.right>e.right-(r("WAWebL10N").isRTL()?s:l)||i.leftq?U(q):H<0&&U(0)}},[H,q,U]),g(function(){var e,t=function(t){return t?r("WAWebL10N").isRTL()?l-t.offsetLeft-t.clientWidth:t.offsetLeft:0},n=function(n,r){return n?t(n)+n.clientWidth-r:0},o=G.current[H],a=G.current[d],i=G.current[G.current.length-1],s=t(a),u=n(i,s);N((o==null?void 0:o.clientWidth)||0),A((o==null?void 0:o.offsetLeft)||0),I(s),x(u<=l),(e=z.current[H])==null||e.focus()},[H,d,l,q]);var X=function(t,n){U&&U(t,n)},Y=function(){D||L(r("clamp")(d+v,0,q))},J=function(){d!==0&&L(r("clamp")(d-v,0,q))},Z=function(t){var e=t.width;u(e)},ee=p(function(){var e;(e=z.current[H])==null||e.focus()},[H]),te=r("WAWebL10N").isRTL()?[b.floatRight,b.floatLeft]:[b.floatLeft,b.floatRight],ne=te[0],re=te[1],oe=r("WAWebL10N").isRTL()?[C.Right,C.Left]:[C.Left,C.Right],ae=oe[0],ie=oe[1],le=m.jsx(R,{xstyle:[W,ne],direction:ae,onClick:J,onRef:function(t){Q.current=t}}),se=m.jsx(R,{xstyle:[W,re],direction:ie,onClick:Y,onRef:function(t){K.current=t}}),ue=(r("WAWebL10N").isRTL()?1:-1)*k,ce="translateX("+ue+"px)",de=function(t){var e=r("WAWebL10N").isRTL()?-1:1,n=r("clamp")(H+e,0,q-1),o=z.current[n];S(j.current,o,K.current,Q.current)&&(r("WAWebL10N").isRTL()?J():Y()),X(n,t),t.preventDefault()},me=function(t){var e=r("WAWebL10N").isRTL()?1:-1,n=r("clamp")(H+e,0,q-1),o=z.current[n];S(j.current,o,K.current,Q.current)&&(r("WAWebL10N").isRTL()?Y():J()),X(n,t),t.preventDefault()},pe=function(){var e;return((e=j.current)==null?void 0:e.contains(document.activeElement))||!1};f(n,function(){return{focus:ee,hasFocus:pe}});var _e={left:me,right:de};return m.jsx(o("WAWebPanelsMenuContainer.react").MenuContainer,{theme:a.theme,children:m.jsxs(r("WAWebResizeObserver.react"),{className:"x5yr21d xh8yej3 xgcd1z6",onResize:Z,children:[!F&&le,m.jsx("div",{ref:j,className:"x6ikm8r x10wlt62 xuxw1ft",children:m.jsxs(o("WAWebKeyboardHotKeys.react").HotKeys,{className:"x11xpdln x1d8287x xwji4o3",style:{transform:ce},role:"tablist",handlers:_e,tabIndex:null,children:[Array.from({length:q},function(e,t){var n=H===t;return m.jsx("div",{className:"x1rg5ohu x13fj5qh x1xegmmw",ref:(function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})(function(e){G.current[t]=e}),children:m.jsx(o("WAWebPanelsMenuTab.react").MenuTab,{role:"tab",onRef:function(n){z.current[t]=n},onClick:X,sectionId:t,selected:n,showFocusIndicator:B,theme:o("WAWebPanelsMenuTab.react").THEMES.NONE,children:V(t)},t)},t)}),m.jsx(r("WAWebAutoCarouselMenuTabMarker.react"),{selectedTabIndex:H,width:P,offsetPx:w,animate:!0})]})}),!D&&se]})})}L.displayName=L.name+" [from "+i.id+"]",l.default=L}),98); __d("WAWebReactionDetailsListItem.react",["fbt","WALogger","WAWebBusinessProfileTypes","WAWebCellFrame.react","WAWebChatContactUtils","WAWebChatGetters","WAWebChatGroupUtils","WAWebChatParticipantColor","WAWebCmd","WAWebContactCollection","WAWebContactGetters","WAWebDetailImage.react","WAWebElevatedPushNamesFlag","WAWebEmojiText.react","WAWebFindChatAction","WAWebFlex.react","WAWebFlexItem.react","WAWebFocusTracer","WAWebFrontendChatGetters","WAWebFrontendContactGetters","WAWebFrontendMsgGetters","WAWebKeyboardHotKeys.react","WAWebKeyboardRotateFocusArrows.react","WAWebMsgGetters","WAWebNoop","WAWebReactionCellDetailThumb.react","WAWebReactionEmoji.react","WAWebReactionUserJourneyLogger","WAWebReactionsBEUtils","WAWebReactionsUtils","WAWebSendReactionMsgAction","WAWebUnstyledButton.react","isStringNullOrEmpty","react","stylex","useWAWebABPropConfigValue","useWAWebChatValues","useWAWebContactFormattedUsernameOrPhoneByChat","useWAWebContactValues","useWAWebModelValues","useWAWebUIM"],(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.useImperativeHandle,f=m.useRef,g=m.useState,h={tilded:{"::before_content":"xxayilr",$$css:!0},reactionAndMediaThumbContainer:{paddingTop:"x16ovd2e",paddingInlineEnd:"x1nzty39",paddingBottom:"x12xbjc7",paddingInlineStart:"x12w63v0",marginInlineEnd:"xf6vk7d",$$css:!0}};function y(t){var n=t.isAggregated,a=n===void 0?!1:n,i=t.onCloseDetailsPane,l=t.onItemBlur,u=t.onItemFocus,d=t.parentMsg,m=t.reaction,y=t.ref,C=f(null),b=g(!1),v=b[0],S=b[1],R=function(){r("WAWebFocusTracer").focus(C.current),S(!0)},L=m.reactionText,E=m.senderObj,k=o("WAWebFrontendMsgGetters").getChat(d),I=o("useWAWebChatValues").useChatValues(k.id,[o("WAWebFrontendChatGetters").getGroupMetadata,o("WAWebChatGetters").getIsGroup]),T=I[0],D=I[1],x=!o("WAWebReactionsUtils").isReactionsEnabledInCAG(k),$=o("useWAWebABPropConfigValue").useABPropConfigValue("wa_web_reactions_2");_(y,function(){return{focus:R}});var P=o("useWAWebModelValues").useModelValues(E,["id","phoneNumber"]),N=E;if(P.id.isLid()&&P.phoneNumber){var M=o("WAWebContactCollection").ContactCollection.get(P.phoneNumber);M&&(N=M)}var w=o("useWAWebContactValues").useContactValues(N.id,[o("WAWebContactGetters").getId,o("WAWebContactGetters").getIsMe,o("WAWebContactGetters").getName,o("WAWebFrontendContactGetters").getFormattedName,o("WAWebContactGetters").getNotifyName,o("WAWebFrontendContactGetters").getIsNonVerified,o("WAWebContactGetters").getIsBusiness,o("WAWebContactGetters").getVerifiedLevel]),A=w[0],F=w[1],O=w[2],B=w[3],W=w[4],q=w[5],U=w[6],V=w[7],H=o("WAWebChatParticipantColor").getAssignedColor(k,N.id),G=r("useWAWebContactFormattedUsernameOrPhoneByChat")(k,E),z=G.formattedUsernameOrPhone,j=r("useWAWebUIM")(),K=function(t){t.preventDefault(),t.stopPropagation(),F&&(o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionUnselect(),o("WAWebSendReactionMsgAction").sendReactionToMsg(d,o("WAWebReactionsBEUtils").REVOKED_REACTION_TEXT).then($?r("WAWebNoop"):i).catch(function(e){j&&j.requestDismiss()}))},Q=o("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(k),X=z!=null&&!q,Y;o("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(N)&&(Q||X)?Y=z:Y=W!=null?"~"+W:null;var J=null;!O&&!r("isStringNullOrEmpty")(W)&&(J=p.jsx(o("WAWebEmojiText.react").EmojiText,{className:(c||(c=r("stylex")))(!Q&&!h.tilded),direction:"auto",text:Y}));var Z=o("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(N)&&Q?o("WAWebChatContactUtils").getAccessibleNotifyName(W).toString():B,ee=o("WAWebReactionsUtils").reactionBubbleAriaLabelOneReaction(Z,L);F&&(ee=ee.toString()+" "+s._(/*BTDS*/"Haz clic para quitarla").toString());var te=a&&o("WAWebMsgGetters").getIsMedia(d),ne=te?p.jsx(r("WAWebFlexItem.react"),{xstyle:h.reactionAndMediaThumbContainer,testid:void 0,children:p.jsx(o("WAWebReactionCellDetailThumb.react").ReactionCellDetailThumb,{msg:d,reactionText:L,onCloseDetailsPane:i})}):null,re=x?function(t){if(t.preventDefault(),t.stopPropagation(),!F){i();var n=A;d.from.isGroup()&&(n=o("WAWebChatGroupUtils").getOneToOneContactFromGroupContact(A,"info_panel")),n!=null&&o("WAWebFindChatAction").findOrCreateLatestChat(n,"reactionDetailsPane").then(function(e){var t=e.chat;o("WAWebCmd").Cmd.chatInfoDrawer(t),o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.selectProfile()}).catch(function(){return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[reactions details] failed to find or create latest chat"]))).sendLogs("reactions-failed-to-find-or-create-latest-chat")})}}:null,oe;o("WAWebElevatedPushNamesFlag").pushNameCanBeUsed(N)&&(Q||X&&(!U||V===o("WAWebBusinessProfileTypes").VERIFIED_LEVEL.HIGH))?oe=o("WAWebChatContactUtils").getFormattedNotifyName(W):oe=B;var ae=F?B:p.jsx(r("WAWebUnstyledButton.react"),{disabled:!x,onClick:re,title:s._(/*BTDS*/"Info. del contacto"),"aria-label":s._(/*BTDS*/"Haz clic para abrir los detalles del perfil."),children:p.jsx(o("WAWebEmojiText.react").EmojiText,{direction:"auto",text:oe})}),ie=p.jsx(r("WAWebUnstyledButton.react"),{onClick:K,children:s._(/*BTDS*/"Haz clic para quitarla")}),le=function(){S(!1),l==null||l()},se=function(){F&&S(!0),u==null||u()},ue={enter:K,space:K};return p.jsx(r("WAWebKeyboardRotateFocusArrows.react"),{children:p.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{role:F?"button":"listitem","aria-label":ee,handlers:F?ue:{},ref:C,onBlur:le,onFocus:se,children:p.jsx(o("WAWebFlex.react").FlexRow,{align:"center",children:p.jsx(r("WAWebFlexItem.react"),{grow:2,children:p.jsx(r("WAWebCellFrame.react"),{idle:F?!1:!v,testid:void 0,image:p.jsx(o("WAWebDetailImage.react").DetailImage,{onClick:re,id:A,size:40,loadAnimation:!1,theme:"reaction_details",authorColor:H}),primary:ae,onClick:K,secondary:F?ie:J,detail:te?ne:p.jsx(o("WAWebReactionEmoji.react").ReactionEmoji,{scale:"list",size:"large",reaction:L}),theme:F?"reaction-by-me":"reaction-by-others",active:v})})})})})}y.displayName=y.name+" [from "+i.id+"]",l.default=y}),226); __d("WAWebReactionDetailsList.react",["WAWebFlatList.react","WAWebFlatListContainer.react","WAWebKeyboardHotKeys.react","WAWebMsgCollection","WAWebReactionDetailsListItem.react","clamp","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=o("react")),c=e||(e=r("react")),d=u.createRef,m=u.useEffect,p=u.useImperativeHandle,_=u.useRef,f=u.useState,g=o("WAWebFlatList.react").FlatListFactory();function h(e){var t=e.flatListController,n=e.isAggregated,a=e.onCloseDetailsPane,i=e.ref,l=e.senders,s=_(new Map),u=_(null),h=f(0),y=h[0],C=h[1],b=function(t){var e=l[t];if(e){var n,r=e.id.toString(),o=s.current.get(r);o==null||(n=o.current)==null||n.focus()}},v=function(t){return r("clamp")(t,0,l.length-1)},S=function(){b(v(y))},R=function(){var e;return((e=u.current)==null?void 0:e.contains(document.activeElement))||!1};p(i,function(){return{focus:S,hasFocus:R}}),m(function(){C(0)},[l]);var L=function(t){t.preventDefault();var e=v(y-1);C(e),b(e)},E=function(t){var e=v(y+1);t.preventDefault(),C(e),b(e)},k={up:L,down:E};return c.jsx(r("WAWebFlatListContainer.react"),{ref:u,className:"xh8yej3 x11oegk2 x1lumt5c xw2csxc x1odjw0f x12xbjc7 x16ovd2e",flatListControllers:[t],children:c.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{role:"list",tabIndex:null,handlers:k,children:c.jsx(g,{flatListController:t,direction:"vertical",defaultItemHeight:52,data:l.map(function(e,t){return{itemKey:e.id.toString(),sender:e,index:t}}),renderItem:function(t){var e=d();s.current.set(t.itemKey,e);var i=o("WAWebMsgCollection").MsgCollection.get(t.sender.parentMsgKey);return i?c.jsx(r("WAWebReactionDetailsListItem.react"),{ref:e,parentMsg:i,reaction:t.sender,isAggregated:n,onCloseDetailsPane:a,onItemFocus:function(){return C(t.index)}},t.itemKey):null},forceConsistentRenderCount:!1})})})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),98); __d("WAWebReactionDetailsPane.react",["fbt","WAWebAutoCarouselMenuMenu.react","WAWebEmojiText.react","WAWebFlatListController","WAWebFlex.react","WAWebFlexItem.react","WAWebKeyboardHotKeys.react","WAWebL10N","WAWebNoop","WAWebPanelsMenuContainer.react","WAWebReactionDetailsList.react","WAWebReactionEmoji.react","WAWebReactionUserJourneyLogger","WAWebReactionsUtils","WAWebUseIsKeyboardUser","WAWebUserPrefsMeUser","lodash","react","stylex","useLazyRef","useWAWebReactions"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=o("react")),m=e||(e=r("react")),p=d.useEffect,_=d.useRef,f=d.useState,g={emojiCount:{marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",display:"x1rg5ohu",height:"xt7dq6l",fontSize:"x6prxxf",lineHeight:"x1fc57z9",$$css:!0},emoji:{color:"x14ug900",marginInlineEnd:"x1p8j9ns",imageRendering:"x1k0y4fr",$$css:!0},buttonStyle:{width:"x187nhsf",$$css:!0},willChange:{willChange:"x1so62im",$$css:!0}},h="_all_",y=function(t,n){var e;if((e=t.current)!=null&&e.hasFocus()){var r;(r=n.current)==null||r.focus()}else{var o;(o=t.current)==null||o.focus()}},C=function(t,n){t===void 0&&(t=[]);var e=r("lodash").intersectionWith(t,n,function(e,t){return e.isEqual(t)}),o=r("lodash").differenceWith(n,t,function(e,t){return e.isEqual(t)});return e.concat.apply(e,o)};function b(e){var t=e.tab,n=t.emoji,a=t.reactions;return m.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:m.jsxs(r("WAWebFlexItem.react"),{xstyle:g.willChange,children:[n===h?m.jsx("div",{className:"xdj266r xat24cr x1lziwak x1rg5ohu xt7dq6l x6prxxf x1fc57z9 x14ug900 xbelrpt",children:m.jsx(o("WAWebEmojiText.react").EmojiText,{text:s._(/*BTDS*/"_j{\"*\":\"Total\"}",[s._plural(a.length)])})}):m.jsx("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(g.emojiCount,g.emoji,o("WAWebReactionEmoji.react").tabScale),{children:m.jsx(o("WAWebReactionEmoji.react").ReactionEmoji,{reaction:n})})),m.jsx("div",{"data-testid":void 0,className:"xdj266r xat24cr x1lziwak x1rg5ohu xt7dq6l x6prxxf x1fc57z9 xhslqc4 xmpx0yj",children:r("WAWebL10N").n(a.length)})]})})}b.displayName=b.name+" [from "+i.id+"]";function v(e){var t=f(0),n=t[0],a=t[1],i=f(0),l=i[0],s=i[1],u=r("useLazyRef")(function(){return new(r("WAWebFlatListController"))}),c=_(null),d=_(null),v=_(null),S=r("WAWebUseIsKeyboardUser")(),R=S.isKeyboardUser;p(function(){var e,t;s((e=(t=v.current)==null?void 0:t.clientHeight)!=null?e:0)},[]);var L=function(t,n){var e,a,i=o("WAWebReactionsUtils").getReactionAggregates(t),l=[],s=[],u=[],c=function(t,n){var e=t.reactionSenders;if(e.length){var r=C(n,e);r.forEach(function(e){o("WAWebUserPrefsMeUser").isSerializedWidMe(e.senderUserJid)?s.push(e):l.push(e)}),u.push({emoji:o("WAWebReactionsUtils").getReactionForDisplay(t),reactions:r})}};n==null||n.forEach(function(e){var t=r("lodash").remove(i,function(t){return t.reactionAggregate===e.emoji})[0];t&&c(t,e.reactions)}),i.forEach(function(e){c(e)});var d=C((e=n==null||(a=n[0])==null?void 0:a.reactions)!=null?e:[],l);return d.unshift.apply(d,s),d.length&&u.unshift({emoji:h,reactions:d}),u},E=f(L(e.reactionsModels)),k=E[0],I=E[1],T=function(t){var e,r=R&&!!((e=c.current)!=null&&e.hasFocus()),o=L(t,k);if(o.length0&&t.every(function(e){return e.id.remote.isNewsletter()})?t:null}function _(e){var t=e.msgIds,n=e.onDetailsPaneClosed,a=e.reactionBubbleType,i=t.map(function(e){return o("WAWebMsgCollection").MsgCollection.get(e)}),l=p(i);if(l!=null)return o("WAWebNewsletterGatingUtils").isNewsletterReactionEnabled()?c.jsx(r("WAWebNewsletterReactionsBubbleContainer.react"),{reactionBubbleVisible:!0,msgs:l,onDetailsPaneClosed:n,reactionBubbleType:a}):null;if(t.length===1){var s=i[0];if(s!=null&&!o("WAWebReactionsBEUtils").canHaveReactions(s))return null}return c.jsx(f,babelHelpers.extends({},e))}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.displayType,n=e.hasReaction,a=e.isOutgoingMsg,i=e.msgIds,l=e.onDetailsPaneClosed,s=e.reactionBubbleType,u=e.reactionBubbleVisible,d=u===void 0?!0:u,p=m(),_=p[0],f=p[1],g=m(),h=g[0],y=g[1],C=o("WAWebMarkAddOnsAsReadAction").useMarkAddOnsAsRead(),b=o("useWAWebABPropConfigValue").useABPropConfigValue("wa_web_reactions_2"),v=function(t){var e=r("lodash").flatten(t.map(function(e){return e.unreadSenders()}));C({addOnType:o("WAWebMessageAddOnType").MessageAddOnType.Reaction,addOns:e.map(function(e){return{msgKey:r("WAWebMsgKey").from(e.msgKey),sender:e.senderUserJid}})}),s!==o("WAWebAddOnBubbleType").AddOnBubbleType.MEDIA_VIEWER&&o("WAWebReactionsUtils").lastMessageReactionChange(i)},S=r("useWAWebReactions")(i,v,n),R=S.isFirstData,L=S.numberOfSenderReactions,E=S.reactionArrayEmojis,k=S.reactionsModels,I=function(){l==null||l(),f(null),o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.detailsDismiss()},T=function(){y(null)},D=function(){return b?c.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"DetailsPane",children:c.jsx(r("WAWebReactionDetailsPaneV2.react"),{onCloseDetailsPane:I,onOpenEmojiPicker:y,onCloseEmojiPicker:T,msgIds:i,reactionsModels:k,isAggregated:i.length>1})}):c.jsx(o("WAWebErrorBoundary.react").ErrorBoundary,{name:"DetailsPane",children:c.jsx(r("WAWebReactionDetailsPane.react"),{onCloseDetailsPane:I,onEmpty:I,msgIds:i,reactionsModels:k,isAggregated:i.length>1})})},x=function(n){var e;n.preventDefault(),n.stopPropagation();var r=D(),l=o("WAWebMsgCollection").MsgCollection.get(i[0]),s=l!=null?o("WAWebFrontendMsgGetters").getChat(l):null;if(s!=null&&(e=s.groupMetadata)!=null&&e.isCag){var u,c=(u=s.groupMetadata)==null?void 0:u.parentGroup;c&&o("WAWebPnhCagDailyUtils").incrementPnhDailyCount(c,o("WAWebPnhCagDailyUtils").PnhCagDailyMetricsType.REACTION_OPEN_TRAY_COUNT)}l!=null&&s!=null&&o("WAWebReactionUserJourneyLogger").ReactionUserJourneyLogger.reactionDetails(s.id,l,o("WAWebWamEnumReactionUserJourneyEntryPoint").REACTION_USER_JOURNEY_ENTRY_POINT.EXISTING_REACTION_CTA),f({menu:r,dirY:o("WAWebDropdown.react").DirY.BOTTOM,dirX:a&&!o("WAWebDisplayType").isWideDisplay(t)?o("WAWebDropdown.react").DirX.LEFT:o("WAWebDropdown.react").DirX.RIGHT,type:o("WAWebDropdown.react").MenuType.ReactionDetailsPane,anchor:n.target,flipOnRtl:!0})},$={enter:x,space:x};return c.jsxs(c.Fragment,{children:[c.jsx(r("WAWebReactionsBubbleWrapper.react"),{handlers:$,isFirstData:R,openDetailsPane:x,detailsPane:_,closeDetailsPane:I,hasReaction:!!n,numberOfSenderReactions:L,reactionBubbleVisible:d,reactionArrayEmojis:E}),h&&c.jsx(o("WAWebUimUie.react").UIE,{displayName:"ReactionEmojiPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:T,children:c.jsx(r("WAWebUimUieMenu.react"),{contextMenu:h})})]})}f.displayName=f.name+" [from "+i.id+"]";function g(e,t){return r("lodash").isEqual(e,t)}var h=d(_,g);l.ReactionBubbleContainer=h}),98); __d("WAWebAddOnBubblesContainer.react",["WAWebAddOnBubble.react","WAWebAddOnBubbleRenderUtils","WAWebAddOnBubbleType","WAWebAddOnBubblesContainerConditions","WAWebCommentsBubbleContainer.react","WAWebDisplayType","WAWebForwardRefreshedIcon.react","WAWebFrontendMsgGetters","WAWebMessageHandlers","WAWebMsgCollection","WAWebNewsletterGatingUtils","WAWebReactionsBubbleContainer.react","WAWebRollerCounter.react","WAWebUnstyledButton.react","asyncToGeneratorRuntime","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={container:{display:"x78zum5",bottom:"xbfrwjf",zIndex:"x8k05lb",width:"xeq5yr9",$$css:!0},positionRelative:{position:"x1n2onr6",$$css:!0},startAlign:{insetInlineStart:"xrr41r3",left:null,right:null,alignSelf:"xqcrz7y",$$css:!0},endAlign:{insetInlineEnd:"x1f889gz",left:null,right:null,alignSelf:"xpvyfi4",$$css:!0},startAlignMediaViewer:{position:"x10l6tqk",insetInlineStart:"xaoy8p5",insetInlineEnd:"xvihmje",left:null,right:null,bottom:"x130t2gz",$$css:!0},endAlignMediaViewer:{position:"x10l6tqk",insetInlineStart:"x1tvzbhf",insetInlineEnd:"xz03a8w",left:null,right:null,bottom:"x130t2gz",$$css:!0},sticker:{insetInlineStart:"x1tvzbhf",insetInlineEnd:"xz03a8w",left:null,right:null,$$css:!0},image:{bottom:"x1wa3icf",$$css:!0},wideSticker:{insetInlineStart:"xrr41r3",insetInlineEnd:"xvihmje",left:null,right:null,$$css:!0},svgColorRefreshed:{color:"xhslqc4",$$css:!0},button:{paddingInlineStart:"x181vq82",$$css:!0}};function d(e){var t=e.bubbleType,n=e.canHaveComments,a=e.displayType,i=e.isOutgoingMsg,l=e.parentIds,d=o("WAWebDisplayType").isWideDisplay(a),p=i&&!d,_=!p,f=null,g=null,h=null,y=o("WAWebMsgCollection").MsgCollection.get(l[0]);return(l==null?void 0:l.length)===1&&(h=u.jsx(m,{parentMsg:y,displayType:a,bubbleType:t})),n!==!1&&l!=null&&l.length>0&&(f=u.jsx(r("WAWebCommentsBubbleContainer.react"),{msgIds:l})),l!=null&&l.length>0&&(g=u.jsx(o("WAWebReactionsBubbleContainer.react").ReactionBubbleContainer,{msgIds:l,isOutgoingMsg:i,displayType:a,reactionBubbleType:t,hasReaction:e.hasReaction,onDetailsPaneClosed:e.onDetailsPaneClosed,reactionBubbleVisible:e.displayReactionBubble})),u.jsxs("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.container,(!o("WAWebAddOnBubbleRenderUtils").isAddOnBubbleCentered(a)||t!==o("WAWebAddOnBubbleType").AddOnBubbleType.STICKER_LIKE_MSG)&&c.positionRelative,_&&c.startAlign,p&&c.endAlign,t===o("WAWebAddOnBubbleType").AddOnBubbleType.STICKER_LIKE_MSG&&c.sticker,t===o("WAWebAddOnBubbleType").AddOnBubbleType.STICKER_LIKE_MSG&&d&&c.wideSticker,t===o("WAWebAddOnBubbleType").AddOnBubbleType.IMAGE_MSG&&c.image,t===o("WAWebAddOnBubbleType").AddOnBubbleType.MEDIA_VIEWER&&_&&c.startAlignMediaViewer,t===o("WAWebAddOnBubbleType").AddOnBubbleType.MEDIA_VIEWER&&p&&c.endAlignMediaViewer),{"data-testid":void 0,children:[g,f,h]}))}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t,a=e.bubbleType,i=e.displayType,l=e.parentMsg;if(!o("WAWebAddOnBubblesContainerConditions").getHasForwardBubble(l,i,a))return null;var s=u.jsx(o("WAWebForwardRefreshedIcon.react").ForwardRefreshedIcon,{xstyle:c.svgColorRefreshed,height:20}),d=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){l!=null&&o("WAWebMessageHandlers").handleOpenForwardFlow({msg:l,multiSelect:!1})});return function(){return e.apply(this,arguments)}})(),m=(t=l==null?void 0:l.forwardsCount)!=null?t:0,p=m>0&&o("WAWebNewsletterGatingUtils").shouldShowNewsletterForwardCounterBubble(o("WAWebFrontendMsgGetters").getChat(l))?u.jsx(r("WAWebRollerCounter.react"),{counter:m,shouldAnimate:!1,rollerCounterOptions:{showAggregateMax:!0,showOneToTwoAnimation:!1}}):null;return u.jsxs(r("WAWebAddOnBubble.react"),{children:[u.jsx(r("WAWebUnstyledButton.react"),{xstyle:c.button,onClick:d,children:s}),p]})}m.displayName=m.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMessageEditFlow.react",["$InternalEnum","WAWebChatMessageSearch","WAWebCmd","WAWebFrontendMsgGetters","WAWebMessageEditModal.react","WAWebSendMessageEditAction","react","useWAWebFlow"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=n("$InternalEnum").Mirrored(["Edit"]);function c(e){var t=e.msg,n=o("WAWebFrontendMsgGetters").getChat(t.unsafe()),a=o("useWAWebFlow").useFlow(u.Edit),i=a[0],l=a[1];if(l.step==null)return null;var c=function(){o("WAWebCmd").Cmd.openChatAt({chat:n,msgContext:o("WAWebChatMessageSearch").getSearchContext(n,t.unsafe().id)}),l.end()},d;switch(l.step){case u.Edit:{var m=function(n,r){o("WAWebSendMessageEditAction").sendMessageEdit(t.unsafe(),n,r),c()};d=s.jsx(r("WAWebMessageEditModal.react"),{msg:t,onConfirm:m,onCancel:function(){return l.end()}});break}}return s.jsx(i,{flow:l,children:d})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebBizLinkPreviewCatalogUtils",["WAWebCatalogCollection","WAWebContactCollection","WAWebCurrencyUtils","WAWebFrontendContactGetters","WAWebGetOrQueryUsyncInfoContactAction","WAWebLinkPreviewUtils","WAWebMediaDataUtils","WAWebProtobufsE2E.pb","WAWebUserPrefsMeUser","WAWebWid","WAWebWidFactory","asyncToGeneratorRuntime","fbs"],(function(t,n,r,o,a,i,l){var e=100;function s(e,t,n){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n,a){var i,l,s,u;if(!r("WAWebWid").isWid(n))return null;var c=o("WAWebWidFactory").createWid(n),d;try{d=yield o("WAWebCatalogCollection").CatalogCollection.find(c)}catch(e){return null}var m=a!=null?d.productCollection.get(a):d.productCollection.getProductModels().find(function(e){return e.reviewStatus==="APPROVED"&&!e.isHidden});if(m==null||m.reviewStatus!=="APPROVED"||m.isHidden)return null;var p=m.getPreviewImage(),_;if(p){var f=[{width:e,height:e,imageFormat:"image/jpeg",imageFormatOptions:.75}],g=yield o("WAWebMediaDataUtils").getResizedThumbData(p.mediaUrl,f);_=g[0]}var h;if((i=o("WAWebUserPrefsMeUser").getMaybeMePnUser())!=null&&i.equals(c)){var y=o("WAWebContactCollection").ContactCollection.get(c);if(y==null)return null;h=o("WAWebFrontendContactGetters").getDisplayName(y)}else{var C,b=yield o("WAWebGetOrQueryUsyncInfoContactAction").getOrQueryUsyncInfo(c);h=(C=b.bizInfo)==null?void 0:C.verifiedName.name}var v,S;a!=null?(v=r("fbs")._(/*BTDS*/"{productName} de {catalogOwnerName} en WhatsApp.",[r("fbs")._param("productName",m.name),r("fbs")._param("catalogOwnerName",h)]).toString(),m.description!=null&&m.priceAmount1000!=null&&m.currency!=null?S=m.description+" \xB7 "+o("WAWebCurrencyUtils").formatAmount1000(m.currency,m.priceAmount1000):m.description!=null?S=m.description:m.priceAmount1000!=null&&m.currency!=null&&(S=o("WAWebCurrencyUtils").formatAmount1000(m.currency,m.priceAmount1000))):(v=r("fbs")._(/*BTDS*/"Ver el cat\u00e1logo de {catalogOwnerName} en WhatsApp",[r("fbs")._param("catalogOwnerName",h)]).toString(),S=r("fbs")._(/*BTDS*/"M\u00e1s informaci\u00f3n sobre sus productos y servicios").toString());var R=o("WAWebLinkPreviewUtils").genLinkPreview({url:t,linkDetails:{title:v,description:S,richPreviewType:o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,doNotPlayInline:!0,isLoading:!1},linkThumbnail:{thumbnail:(l=_)==null?void 0:l.dataUrl,thumbnailHeight:(s=_)==null?void 0:s.height,thumbnailWidth:(u=_)==null?void 0:u.width}});return R}),u.apply(this,arguments)}l.getProductOrCatalogLinkPreview=s}),226); __d("WAWebMexFetchNewsletterIsDomainPreviewableJobQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"url_domains"}],t=[{alias:null,args:[{fields:[{kind:"Variable",name:"url_domains",variableName:"url_domains"}],kind:"ObjectValue",name:"input"}],concreteType:"XWA2NewsletterMessageIntegrityResponse",kind:"LinkedField",name:"xwa2_newsletter_message_integrity",plural:!1,selections:[{alias:null,args:null,concreteType:"XWA2NewsletterMessageIntegrityPreviewURLResponse",kind:"LinkedField",name:"url_previews",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"url_domain",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_previewable",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebMexFetchNewsletterIsDomainPreviewableJobQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexFetchNewsletterIsDomainPreviewableJobQuery",selections:t},params:{id:"9849510985088294",metadata:{},name:"WAWebMexFetchNewsletterIsDomainPreviewableJobQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebMexFetchNewsletterIsDomainPreviewableJob",["WALogger","WAWebMexClient","WAWebMexFetchNewsletterIsDomainPreviewableJobQuery.graphql","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s,u=e!==void 0?e:e=n("WAWebMexFetchNewsletterIsDomainPreviewableJobQuery.graphql");function c(e){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n,r={url_domains:e},a=yield o("WAWebMexClient").fetchQuery(u,r);o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER] fetched domains previewable status ",""])),JSON.stringify(e)).tags("GQL","MEX");var i=(t=(n=a.xwa2_newsletter_message_integrity)==null?void 0:n.url_previews)!=null?t:[],l=new Map(i.map(function(e){var t=e.is_previewable,n=e.url_domain;return[n,t===!0]}));return l}),d.apply(this,arguments)}l.mexFetchNewsletterIsDomainPreviewable=c}),98); __d("WAWebNewsletterIsDomainPreviewableAction",["WALogger","WAWebMexFetchNewsletterIsDomainPreviewableJob","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e;function s(e){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t){try{var n,r=yield o("WAWebMexFetchNewsletterIsDomainPreviewableJob").mexFetchNewsletterIsDomainPreviewable([t]);return(n=r==null?void 0:r.get(t))!=null?n:!1}catch(t){return o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletters] isDomainPreviewableAction failed"]))).tags("newsletter").sendLogs("newsletter-is-domain-previewable-action"),!1}}),u.apply(this,arguments)}l.isDomainPreviewableAction=s}),98); __d("WAWebCheckIfDomainIsPreviewable",["WAWebChatGetters","WAWebNewsletterGatingUtils","WAWebNewsletterIsDomainPreviewableAction","WAWebStateUtils","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){function e(e,t){return s.apply(this,arguments)}function s(){return s=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n=t!=null?o("WAWebChatGetters").getIsNewsletter(o("WAWebStateUtils").unproxy(t)):!1;if(!n||!o("WAWebNewsletterGatingUtils").isNewsletterHideNewsUrlPreviewEnabled())return!0;var r=yield o("WAWebNewsletterIsDomainPreviewableAction").isDomainPreviewableAction(e);return r}),s.apply(this,arguments)}l.checkIfDomainIsPreviewable=e}),98); __d("WAWebGenMinimalLinkPreviewChatAction",["WALogger","WAWebLinkPreviewUtils","WAWebUserPrefsGeneral"],(function(t,n,r,o,a,i,l){var e;function s(t,n,r,a){if(r===void 0&&(r=!1),a===void 0&&(a=null),!t||!t.url)return null;var i=o("WAWebUserPrefsGeneral").getUserPrivacySettings(),l=i.disableLinkPreviews;return l===!0?(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["genMinimalLinkPreview: disabled due to user settings"]))),null):o("WAWebLinkPreviewUtils").genLinkPreview({url:t.url,linkDetails:{title:t.domain,description:t.url,richPreviewType:n,doNotPlayInline:!0,isLoading:r},paymentLinkDetails:a})}l.genMinimalLinkPreview=s}),98); __d("WAWebLinkPreviewCache",[],(function(t,n,r,o,a,i){var e=new Map;function l(){return e}function s(){e.clear()}var u=new Map;function c(){return u}function d(){u.clear()}i.getPreviewCache=l,i.clearPreviewCache=s,i.getNewsletterPreviewCache=c,i.clearNewsletterPreviewCache=d}),66); __d("WAWebMexFetchPlaintextLinkPreviewJobQuery.graphql",[],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"input",variableName:"input"}],concreteType:"XWA2NewsletterLinkPreviewResponse",kind:"LinkedField",name:"xwa2_newsletter_link_preview",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"description",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"direct_path",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"hash",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"preview_type",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"thumb_data",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"WAWebMexFetchPlaintextLinkPreviewJobQuery",selections:t,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"WAWebMexFetchPlaintextLinkPreviewJobQuery",selections:t},params:{id:"9101130456653613",metadata:{},name:"WAWebMexFetchPlaintextLinkPreviewJobQuery",operationKind:"query",text:null}}})();a.exports=e}),null); __d("WAWebMexFetchPlaintextLinkPreviewJob",["WALogger","WAWebMexClient","WAWebMexFetchPlaintextLinkPreviewJobQuery.graphql","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e,s,u=e!==void 0?e:e=n("WAWebMexFetchPlaintextLinkPreviewJobQuery.graphql");function c(e){return d.apply(this,arguments)}function d(){return d=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t,n,r,a;try{new URL(e)}catch(t){return o("WALogger").ERROR(s||(s=babelHelpers.taggedTemplateLiteralLoose(["[MEX][NEWSLETTER] "," is not a valid url"])),e),null}var i={input:{url:e}},l=yield o("WAWebMexClient").fetchQuery(u,i),c=l.xwa2_newsletter_link_preview,d=(c==null?void 0:c.direct_path)!=null&&(c==null?void 0:c.hash)!=null?{directPath:c.direct_path,thumbHash:c.hash,thumbHeight:(t=c.height)!=null?t:0,thumbWidth:(n=c.width)!=null?n:0}:void 0;return{url:e,title:(r=c==null?void 0:c.title)!=null?r:void 0,description:(a=c==null?void 0:c.description)!=null?a:void 0,hqThumbnail:d,thumbData:c==null?void 0:c.thumb_data}}),d.apply(this,arguments)}l.mexFetchPlaintextLinkPreview=c}),98); __d("WAWebNewsletterFetchLinkPreviewAction",["WALogger","WAWebGenMinimalLinkPreviewChatAction","WAWebLinkPreviewCache","WAWebLinkPreviewUtils","WAWebMexFetchPlaintextLinkPreviewJob","WAWebMmsMediaTypes","WAWebProtobufsE2E.pb","asyncToGeneratorRuntime"],(function(t,n,r,o,a,i,l){var e;function s(e,t){return u.apply(this,arguments)}function u(){return u=n("asyncToGeneratorRuntime").asyncToGenerator(function*(t,n){try{var r=o("WAWebLinkPreviewCache").getNewsletterPreviewCache(),a=yield o("WAWebMexFetchPlaintextLinkPreviewJob").mexFetchPlaintextLinkPreview(t.url);if(a==null)return o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(t,o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE);var i=yield o("WAWebLinkPreviewUtils").getThumbnailDetails({chatWid:n==null?void 0:n.id,mediaType:o("WAWebMmsMediaTypes").MEDIA_TYPES.NEWSLETTER_THUMBNAIL_LINK,thumbnail:a.thumbData,hqThumbnailParams:a.hqThumbnail}),l=o("WAWebLinkPreviewUtils").genLinkPreview({url:t.url,linkDetails:{title:a==null?void 0:a.title,description:a==null?void 0:a.description,richPreviewType:o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,doNotPlayInline:!0,isLoading:!1},linkThumbnail:i});return i.thumbnailHQ!=null&&r.set(t.url,l),l}catch(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[newsletter] while trying to fetch newsletter link preview ",""])),t)}}),u.apply(this,arguments)}l.fetchPlaintextLinkPreviewAction=s}),98); __d("WAWebWamEnumWebcDisplayStatusType",[],(function(t,n,r,o,a,i){var e=Object.freeze({SHOWED_PREVIEW_TO_USER:1,PREVIEW_TIMEOUT:2,PREVIEW_MALFORMED:3,PREVIEW_NOT_FOUND:4,PREVIEW_GENERAL_ERROR:5,PREVIEW_DECRYPTION_ERROR:6});i.WEBC_DISPLAY_STATUS_TYPE=e}),66); __d("WAWebWebcLinkPreviewDisplayWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumWebcDisplayStatusType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({WebcLinkPreviewDisplay:[3864,{didFallbackNonHq:[2,e.TYPES.BOOLEAN],didRequestHq:[3,e.TYPES.BOOLEAN],didRespondHqPreview:[4,e.TYPES.BOOLEAN],webcDisplayStatus:[1,o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE]},[1,1,1],"regular"]},{WebcLinkPreviewDisplay:[]});l.WebcLinkPreviewDisplayWamEvent=s}),98); __d("WAWebLinkPreviewChatAction",["WABase64","WACustomError","WALogger","WALongInt","WAPromiseTimeout","WAWebABProps","WAWebApi","WAWebApiParse","WAWebBizLinkPreviewCatalogUtils","WAWebChatGetters","WAWebCheckIfDomainIsPreviewable","WAWebGenMinimalLinkPreviewChatAction","WAWebLinkPreviewCache","WAWebLinkPreviewGroupUtils","WAWebLinkPreviewUtils","WAWebMmsMediaTypes","WAWebMsgKey","WAWebNewsletterFetchLinkPreviewAction","WAWebNonMessageDataRequestHandlerGenLinkPreview","WAWebPrimaryFeaturesModel","WAWebProtobufsE2E.pb","WAWebProtobufsMmsRetry.pb","WAWebSendNonMessageDataRequest","WAWebStateUtils","WAWebUserPrefsGeneral","WAWebWamEnumWebcDisplayStatusType","WAWebWebcLinkPreviewDisplayWamEvent","asyncToGeneratorRuntime","cr:17219","gkx"],(function(t,n,r,o,a,i,l){var e,s,u,c,d,m,p,_,f,g,h,y,C,b,v,S,R=(e=n("cr:17219"))==null?void 0:e.getWindowsBridge();function L(e,t){return E.apply(this,arguments)}function E(){return E=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t){var n,a=o("WAWebUserPrefsGeneral").getUserPrivacySettings(),i=a.disableLinkPreviews;if(i===!0)return o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["link preview: disabled due to user settings"]))),null;var l=yield o("WAWebCheckIfDomainIsPreviewable").checkIfDomainIsPreviewable(e.domain,t);if(!l)return null;var s=t!=null?o("WAWebChatGetters").getIsNewsletter(o("WAWebStateUtils").unproxy(t)):!1;o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["link preview: start flow"])));var C=s?o("WAWebLinkPreviewCache").getNewsletterPreviewCache():o("WAWebLinkPreviewCache").getPreviewCache();if(C.has(e.url))return o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["link preview: in cache"]))),C.get(e.url);if(s)return o("WAWebNewsletterFetchLinkPreviewAction").fetchPlaintextLinkPreviewAction(e,t);var b,v=o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE,S=null,L=o("WAWebApiParse").parseAPICmd(e.url);if(L.resultType===o("WAWebApi").APICmd.CATALOG)b=yield o("WAWebBizLinkPreviewCatalogUtils").getProductOrCatalogLinkPreview(e.url,L.data.catalogOwnerJid);else if(L.resultType===o("WAWebApi").APICmd.PRODUCT)b=yield o("WAWebBizLinkPreviewCatalogUtils").getProductOrCatalogLinkPreview(e.url,L.data.businessOwnerJid,L.data.productId);else if(L.resultType===o("WAWebApi").APICmd.GROUP_INVITE){var E=yield o("WAWebLinkPreviewGroupUtils").getGroupInviteLinkPreview(e.url,L.data.code);E&&(b=E)}else L.resultType===o("WAWebApi").APICmd.PAYMENT_LINK&&L.data.shouldDetectInComposer?(v=o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.PAYMENT_LINKS,S=L.data.psp):L.resultType;if(b)return C.set(e.url,b),b;if((n=e.suspiciousCharacters)!=null&&n.size)return null;if((R==null?void 0:R.linksPreview)!=null&&S==null){var D=yield R.linksPreview.getPreviewAsync(e.url);if(D!=null){var $,P=($=D.thumbnail)!=null?$:"",N={thumbnail:P};if(b=o("WAWebLinkPreviewUtils").genLinkPreview({url:e.url,linkThumbnail:N,linkDetails:{title:D.title,description:D.description,richPreviewType:k(D.previewType,L),doNotPlayInline:!1,isLoading:!1}}),b!=null)return b}}if(!o("WAWebABProps").getABPropConfigValue("web_link_preview_sync_enabled")||!o("WAWebPrimaryFeaturesModel").PrimaryFeatures.linkPreview)return o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["link preview: opted out of primary preview. primary flag: ",". abprop: ",""])),o("WAWebPrimaryFeaturesModel").PrimaryFeatures.linkPreview,o("WAWebABProps").getABPropConfigValue("web_link_preview_sync_enabled")),r("gkx")("26258")||o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["link preview not enabled debug"]))).sendLogs("intern debug link preview not enabled"),o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(e,v,!1,{psp:S});var M=yield r("WAWebMsgKey").newId(),w=o("WAWebNonMessageDataRequestHandlerGenLinkPreview").registerLinkPreviewHandlerHook(M);o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["link preview: request from primary"])));var A=o("WAWebABProps").getABPropConfigValue("high_quality_link_preview_enabled")&&o("WAWebPrimaryFeaturesModel").PrimaryFeatures.hqLinkPreview;yield o("WAWebSendNonMessageDataRequest").sendPeerDataOperationRequest(o("WAWebProtobufsE2E.pb").Message$PeerDataOperationRequestType.GENERATE_LINK_PREVIEW,{urls:[e.url],includeHqThumbnail:A},{msgId:M});try{var F,O;o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["link preview: wait for primary"])));var B=yield o("WAPromiseTimeout").promiseTimeout(w.promise,o("WAWebABProps").getABPropConfigValue("link_preview_wait_time")*1e3);o("WALogger").LOG(g||(g=babelHelpers.taggedTemplateLiteralLoose(["link preview: got primary response or timeout"]))),(B==null||(F=B.linkPreviewResponse)==null?void 0:F.url)!=null&&(B==null||(O=B.linkPreviewResponse)==null?void 0:O.url)!==e.url&&o("WALogger").ERROR(h||(h=babelHelpers.taggedTemplateLiteralLoose(["link preview: response url is different than expected url"])));var W=B==null?void 0:B.linkPreviewResponse;if(W){if((B==null?void 0:B.mediaUploadResult)!=null&&(B==null?void 0:B.mediaUploadResult)!==o("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.SUCCESS)return I(B==null?void 0:B.mediaUploadResult,A),o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(e,v,!1,{psp:S,previewMetadata:W.previewMetadata})}else{x(o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE.PREVIEW_MALFORMED,A);var q=o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(e,v,!1,{psp:S});return(B==null?void 0:B.mediaUploadResult)===o("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.NOT_FOUND&&q!=null&&C.set(e.url,q),q}var U=L.resultType===o("WAWebApi").APICmd.GROUP_INVITE?o("WAWebLinkPreviewGroupUtils").GROUP_INVITE_DEFAULT_DESCRIPTION:W.description,V=yield T({previewFromPrimary:W,chat:t,includeHqThumbnail:A});return b=o("WAWebLinkPreviewUtils").genLinkPreview({url:e.url,linkDetails:{title:W.title,description:U,richPreviewType:k(W.previewType,L),doNotPlayInline:!1,isLoading:!1},linkThumbnail:V,paymentLinkDetails:{psp:S,previewMetadata:W.previewMetadata}}),C.set(e.url,b),b}catch(t){if(t instanceof o("WACustomError").TimeoutError)return o("WALogger").LOG(y||(y=babelHelpers.taggedTemplateLiteralLoose(["link preview: timeout during link generation"]))),x(o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE.PREVIEW_TIMEOUT,A),o("WAWebGenMinimalLinkPreviewChatAction").genMinimalLinkPreview(e,v,!1,{psp:S})}}),E.apply(this,arguments)}function k(e,t){return e==="video"?o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.VIDEO:t.resultType===o("WAWebApi").APICmd.PAYMENT_LINK&&t.data.shouldDetectInComposer?o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.PAYMENT_LINKS:o("WAWebProtobufsE2E.pb").Message$ExtendedTextMessage$PreviewType.NONE}function I(e,t){switch(e){case o("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.DECRYPTION_ERROR:x(o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE.PREVIEW_DECRYPTION_ERROR,t);break;case o("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.NOT_FOUND:x(o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE.PREVIEW_NOT_FOUND,t);break;case o("WAWebProtobufsMmsRetry.pb").MediaRetryNotification$ResultType.GENERAL_ERROR:x(o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE.PREVIEW_GENERAL_ERROR,t);break;default:break}}function T(e){return D.apply(this,arguments)}function D(){return D=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e){var t=e.chat,n=e.includeHqThumbnail,r=e.previewFromPrimary,a=r.thumbData?o("WABase64").encodeB64(r.thumbData):"",i={thumbnail:a},l=r.hqThumbnail,s=l?!1:void 0,u,c;if(n&&l!=null)try{var d=l.directPath,m=l.encThumbHash,p=l.mediaKey,_=l.mediaKeyTimestampMs,f=l.thumbHash;d!=null&&m!=null&&f!=null&&p!=null&&_!=null?(o("WALogger").LOG(C||(C=babelHelpers.taggedTemplateLiteralLoose(["link preview: found HQ preview"]))),u=o("WALongInt").numberOrThrowIfTooLarge(_),c=o("WABase64").encodeB64(p),i=yield o("WAWebLinkPreviewUtils").getThumbnailDetails({chatWid:t==null?void 0:t.id,mediaType:o("WAWebMmsMediaTypes").MEDIA_TYPES.THUMBNAIL_LINK,thumbnail:a,hqThumbnailParams:l,encryptionParams:{encFilehash:m,mediaKeyTimestamp:u,mediaKey:c}}),s=i.thumbnailHQ==null):(o("WALogger").LOG(b||(b=babelHelpers.taggedTemplateLiteralLoose(["link preview: malformed HQ preview"]))),s=!0)}catch(e){o("WALogger").ERROR(v||(v=babelHelpers.taggedTemplateLiteralLoose(["link preview: could not download HQ preview. details: ",""])),e),s=!0}else o("WALogger").LOG(S||(S=babelHelpers.taggedTemplateLiteralLoose(["link preview: did not find HQ preview"])));return x(o("WAWebWamEnumWebcDisplayStatusType").WEBC_DISPLAY_STATUS_TYPE.SHOWED_PREVIEW_TO_USER,n,l!=null,s),i}),D.apply(this,arguments)}function x(e,t,n,r){o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["link preview: status ",""])),e),new(o("WAWebWebcLinkPreviewDisplayWamEvent")).WebcLinkPreviewDisplayWamEvent({webcDisplayStatus:e,didRequestHq:t,didRespondHqPreview:!!n,didFallbackNonHq:!!r}).commit()}l.getLinkPreview=L}),98); __d("useWAWebLinkPreview",["WAAbortError","WALogger","WAPromiseRaceAbort","WAWebCodeFormatMutator","WAWebCryptoRandomMediaKey","WAWebLinkPreviewChatAction","WAWebLinkify","WAWebMediaConstants","WAWebMediaGetUploadOriginForChat","WAWebMediaOpaqueData","WAWebMediaUploadMmsThumbnail","WAWebMmsMediaTypes","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s,u,c,d,m=d||(d=o("react")),p=m.useEffect,_=m.useState,f=function(t){var e=o("WAWebCodeFormatMutator").removeCodeBlocks(t),n=o("WAWebLinkify").findLinks(e,!0)[0];if(n)return n};function g(e,t,n){return h.apply(this,arguments)}function h(){return h=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){if(e.thumbnailDirectPath!=null)return o("WALogger").LOG(s||(s=babelHelpers.taggedTemplateLiteralLoose(["link preview: use cached mms details (useLinkPreview)"]))),{mediaKey:e.mediaKey,mediaKeyTimestamp:e.mediaKeyTimestamp,thumbnailDirectPath:e.thumbnailDirectPath,thumbnailSha256:e.thumbnailSha256,thumbnailEncSha256:e.thumbnailEncSha256};o("WALogger").LOG(u||(u=babelHelpers.taggedTemplateLiteralLoose(["link preview: upload to mms"])));try{if(e.thumbnailHQ==null)return null;var a=yield r("WAPromiseRaceAbort")(r("WAWebMediaOpaqueData").createFromBase64Jpeg(e.thumbnailHQ),t),i=yield r("WAWebMediaUploadMmsThumbnail")({thumbnail:a,mediaType:o("WAWebMmsMediaTypes").MEDIA_TYPES.THUMBNAIL_LINK,mediaKeyInfo:r("WAWebCryptoRandomMediaKey")(),uploadOrigin:r("WAWebMediaGetUploadOriginForChat")(n),forwardedFromWeb:!1,signal:t,timeout:o("WAWebMediaConstants").MMS_THUMBNAIL_UPLOAD_TIMEOUT,isViewOnce:!1}),l=i.mediaEntry;return l?{mediaKey:l.mediaKey,mediaKeyTimestamp:l.mediaKeyTimestamp,thumbnailDirectPath:l.directPath,thumbnailSha256:i.filehash,thumbnailEncSha256:l.encFilehash}:void 0}catch(e){if(e.name===o("WAAbortError").ABORT_ERROR)return;o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["useLinkPreview.uploadHQPreview: error"])))}}),h.apply(this,arguments)}function y(t,a){var i=_(null),l=i[0],s=i[1],u=function(){s(null)};return p(function(){if(u(),!!t){var i=new AbortController,l=i.signal;return n("asyncToGeneratorRuntime").asyncToGenerator(function*(){try{var n=yield r("WAPromiseRaceAbort")(o("WAWebLinkPreviewChatAction").getLinkPreview(t,a),l),i=n==null?void 0:n.data;if(!i||(s(i),!i.thumbnailHQ))return;var u=yield g(i,l,a);if(!u)return;s(babelHelpers.extends({},i,u))}catch(t){if(t.name===o("WAAbortError").ABORT_ERROR)return;o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["useLinkPreview: error"])))}})(),function(){i.signal.aborted||i.abort()}}},[t==null?void 0:t.url,a]),{linkPreview:l,clearLinkPreview:u}}l.findFirstWebLink=f,l.useLinkPreview=y}),98); __d("WAWebMessageEditLinkPreviewPanel.react",["WAWebFlex.react","WAWebMediaLinkPreview.react","WAWebUimUie.react","WAWebXIcon.react","react","useLazyRef","useWAWebDebouncedCallback","useWAWebLinkPreview","useWAWebStaticButtonA11y"],(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.useImperativeHandle,p=u.useRef,_=u.useState,f=83,g=16,h=f+g,y={container:{paddingTop:"xyamay9",paddingInlineEnd:"x64bnmy",paddingBottom:"x18d9i69",paddingInlineStart:"x13jy36j",backgroundColor:"x1280gxy",$$css:!0},linkPreview:{flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",$$css:!0}};function C(e){var t=e.linkPreview,n=e.onOmit,a=e.ref,i=p(),l=r("useWAWebStaticButtonA11y")(n),s=l[0],u=l[1];m(a,function(){return{getElement:function(){return i.current}}});var d=t.description,_=t.inviteGrpType,f=t.matchedText,g=t.thumbnail,h=t.title;return c.jsxs(o("WAWebFlex.react").FlexRow,{ref:i,xstyle:y.container,align:"center",children:[c.jsx(r("WAWebMediaLinkPreview.react"),{title:h,matchedText:f,description:d,thumbnailJpeg:g,inviteGrpType:_,containerXstyle:y.linkPreview,compose:!0,isLoading:!1}),c.jsx("div",babelHelpers.extends({ref:s,className:"x78zum5 x6s0dn4 xl56j7k x1guw455 x16wdlz0 xefazk8 x2lah0s"},u,{children:c.jsx(o("WAWebXIcon.react").XIcon,{})}))]})}C.displayName=C.name+" [from "+i.id+"]";var b="x1pf78ng-B",v="x15cgrjh-B";function S(e){var t,n,a,i=e.chat,l=e.initialLinkPreview,s=e.onChange,u=e.text,m=r("useLazyRef")(function(){return o("useWAWebLinkPreview").findFirstWebLink(u)}),p=r("useLazyRef")(function(){var e;return l?null:(e=m.current)==null?void 0:e.href}),f=_(m.current),g=f[0],h=f[1],y=o("useWAWebLinkPreview").useLinkPreview(g,i),b=y.linkPreview,v=((t=m.current)==null?void 0:t.href)!==(g==null?void 0:g.href),S=_(),R=S[0],L=S[1],E=((n=m.current)==null?void 0:n.href)===(g==null?void 0:g.href)&&l?l:b;p.current===((a=E)==null?void 0:a.matchedText)&&(E=null),E&&E!==R&&L(E);var k=r("useWAWebDebouncedCallback")(function(e){var t=o("useWAWebLinkPreview").findFirstWebLink(e);(t==null?void 0:t.href)!==p.current&&(p.current=null,h(t))},200);d(function(){k(u)},[u,k]),d(function(){s(E)},[v,E,s]);var I=function(){p.current=g==null?void 0:g.href,h(null)},T=!!E,D=!g||g.url!==(R==null?void 0:R.matchedText),x=function(){L(null)};return c.jsx("div",{className:"x10l6tqk x1o0tod xtijo5x x13vifvy",children:c.jsx("div",babelHelpers.extends({},{0:{className:"xw8ag78 x10e4vud"},2:{className:"xw8ag78 x10e4vud x1rteybo"},1:{className:"xw8ag78 x10e4vud x1im1gyf"},3:{className:"xw8ag78 x10e4vud x1im1gyf"}}[!!T<<1|!!D<<0],{onAnimationEnd:D?x:null,children:R&&c.jsx(o("WAWebUimUie.react").UIE,{displayName:"ComposeBoxLinkPreview",escapable:!0,requestDismiss:I,children:c.jsx(C,{linkPreview:R,onOmit:I})})}))})}S.displayName=S.name+" [from "+i.id+"]",l.default=S}),98); __d("WAWebMessageEditComposer.react",["fbt","WAWebChatPreferenceCollection","WAWebCheckmarkMediumIcon.react","WAWebComposeBoxUtils","WAWebConstantsDeprecated","WAWebDropdown.react","WAWebElevatedPushNamesFlag","WAWebEmojiPanel.react","WAWebEmojiPickerPlugin","WAWebFlex.react","WAWebFlexItem.react","WAWebFrontendMsgGetters","WAWebMentionPickerPlugin","WAWebMessageEditLinkPreviewPanel.react","WAWebMessageEditUtils","WAWebMsgGetters","WAWebRichTextInput.react","WAWebRichTextInputConst","WAWebRound.react","WAWebUimUie.react","WAWebUimUieMenu.react","WAWebWebIcCheckIcon.react","WDSButton.react","WDSFocusStateStyles","WDSIconIcMood.react","escapeRegex","react","stylex","useWAWebABPropConfigValue","useWAWebModelValues","useWAWebMsgValues","useWAWebStaticButtonA11y"],(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={composer:{position:"x1n2onr6",backgroundColor:"x1280gxy",$$css:!0},composerRefreshed:{alignItems:"xuk3077",borderTopWidth:"x972fbf",borderInlineEndWidth:"x10w94by",borderBottomWidth:"xlxy82",borderInlineStartWidth:"x14e42zd",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopColor:"xlze6vy",borderInlineEndColor:"x47fsot",borderBottomColor:"x1rrvw3c",borderInlineStartColor:"x18djku1",$$css:!0},inputContainer:{paddingTop:"x96k8nx",paddingInlineEnd:"xpdmqnj",paddingBottom:"xdvlbce",paddingInlineStart:"x1g0dm76",borderStartStartRadius:"xyi3aci",borderStartEndRadius:"xwf5gio",borderEndEndRadius:"x1p453bz",borderEndStartRadius:"x1suzm8a",backgroundColor:"xk7ee7b",borderTopColor:"x1716072",borderInlineEndColor:"x1ygal6x",borderBottomColor:"x89wmna",borderInlineStartColor:"x1rbbhm9",marginInlineEnd:"xpwdb9g",flexGrow:"x1iyjqo2",$$css:!0},inputContainerRefreshed:{marginInlineEnd:"x14z9mp",paddingTop:"x889kno",paddingInlineEnd:"xyri2b",paddingBottom:"x1a8lsjc",paddingInlineStart:"x1c1uobl",backgroundColor:"x1280gxy",$$css:!0},input:{flexGrow:"x1iyjqo2",$$css:!0},emojiButton:{marginInlineStart:"x13fj5qh",color:"xhslqc4",cursor:"x1ypdohk",alignSelf:"xqcrz7y",$$css:!0},emojiButtonRefreshed:{marginTop:"x1380le5",marginInlineEnd:"xqf2s3x",marginBottom:"xefnzgg",marginInlineStart:"x150mmf0",alignSelf:"xpvyfi4",borderStartStartRadius:"xt8t1vi",borderStartEndRadius:"x1xc408v",borderEndEndRadius:"x129tdwq",borderEndStartRadius:"x15urzxu",$$css:!0},sendButtonRefreshed:{color:"x1pse0pq",backgroundColor:"xfn3atn",$$css:!0}},_=8;function f(e){var t=e.onEmoji,n=e.onFocusNext,a=e.onFocusPrev,i=e.xstyle,l=m(null),c=l[0],p=l[1],_=function(i){i.preventDefault(),i.stopPropagation();var e=d.jsx(r("WAWebEmojiPanel.react"),{onEmoji:t,onFocusNext:n,onFocusPrev:a});p({menu:e,dirY:o("WAWebDropdown.react").DirY.TOP,type:o("WAWebDropdown.react").MenuType.EmojiPicker,anchor:i.target})},f=function(){p(null)},g=r("useWAWebStaticButtonA11y")(_),h=g[0],y=g[1],C=d.jsx("div",babelHelpers.extends({ref:h,className:(u||(u=r("stylex")))(i),title:s._(/*BTDS*/"Abrir panel de emojis")},y,{children:d.jsx(r("WDSIconIcMood.react"),{})})),b=null;return c&&(b=d.jsx(o("WAWebUimUie.react").UIE,{displayName:"EmojiPicker",escapable:!0,popable:!0,dismissOnWindowResize:!0,requestDismiss:f,children:d.jsx(r("WAWebUimUieMenu.react"),{contextMenu:c})})),d.jsxs(d.Fragment,{children:[C,b]})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.disabled,n=e.onClick,a=o("useWAWebABPropConfigValue").useABPropConfigValue("wds_web_button");return a?d.jsx(r("WDSButton.react"),{testid:void 0,onPress:n,Icon:o("WAWebWebIcCheckIcon.react").WebIcCheckIcon,disabled:t,variant:"filled",size:"medium","aria-label":s._(/*BTDS*/"Enviar mensaje editado")}):d.jsx(r("WAWebFlexItem.react"),{grow:0,shrink:0,children:d.jsx("div",{children:d.jsx(o("WAWebRound.react").Round,{testid:void 0,medium:!0,disabled:t,onClick:n,xstyle:p.sendButtonRefreshed,label:s._(/*BTDS*/"Enviar mensaje editado"),title:s._(/*BTDS*/"Enviar mensaje editado"),children:d.jsx(o("WAWebCheckmarkMediumIcon.react").CheckmarkMediumIcon,{})})})})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t,n=e.disableConfirmButton,a=e.initialLinkPreview,i=e.msg,l=e.onConfirm,s=e.onInputChange,u=e.onLinkPreviewChange,c=o("useWAWebMsgValues").useMsgValues(i.id,[o("WAWebFrontendMsgGetters").getText,o("WAWebMsgGetters").getCaption]),h=c[0],C=c[1],b=o("WAWebFrontendMsgGetters").getChat(i.unsafe()),v=m((t=h!=null?h:C)!=null?t:""),S=v[0],R=v[1],L=m(),E=L[0],k=L[1],I=o("useWAWebModelValues").useModelValues(r("WAWebChatPreferenceCollection").getDefault(),["spellcheck","transformTextEmoji","enterIsSend"]),T=function(t){E&&(E.focus(),E.replaceSelection(t))},D=function(){E&&E.focus()},x=function(t){R(t.text),s(t)},$=null,P,N=o("WAWebMessageEditUtils").getMsgEditType(i.type);N===o("WAWebMessageEditUtils").MsgEditType.TextEdit&&(P=d.jsx(r("WAWebMessageEditLinkPreviewPanel.react"),{chat:b,text:S,onChange:u,initialLinkPreview:a}));var M=o("WAWebComposeBoxUtils").getComposeBoxPlaceholderText({chat:b,isEditingCaption:N===o("WAWebMessageEditUtils").MsgEditType.CaptionEdit}),w=d.jsxs(r("WAWebRichTextInput.react"),{testid:void 0,ref:k,initialText:y(i),groupMetadata:b.groupMetadata,xstyle:p.input,onChange:x,onEnter:l,placeholder:M,title:M,maxLength:r("WAWebConstantsDeprecated").MAX_TXT_MSG_SIZE,maxVisibleLines:_,multiline:!0,textFormatEnabled:!0,focusOnMount:!0,bulletPointsEnabled:!0,numberedListEnabled:!0,inlineCodeEnabled:!0,blockQuoteEnabled:!0,internLinksEnabled:!0,phoneNumbersEnabled:!0,linksEnabled:!0,textFormatShortcutsEnabled:!0,floatingToolbarEnabled:!0,spellCheck:I.spellcheck,transformTextEmoji:I.transformTextEmoji,enterIsNewLine:!I.enterIsSend,children:[d.jsx(r("WAWebEmojiPickerPlugin"),{}),d.jsx(r("WAWebMentionPickerPlugin"),{chat:b,elevatedPushNamesEnabled:o("WAWebElevatedPushNamesFlag").elevatedPushNamesM2Enabled(b),source:"message_edit"})]}),A=d.jsx(f,{xstyle:[p.emojiButton,p.emojiButtonRefreshed,o("WDSFocusStateStyles").WDSFocusStateStyles.genericFocus],onEmoji:T,onFocusNext:D,onFocusPrev:D}),F=d.jsx(g,{onClick:l,disabled:n});return d.jsxs("div",{className:"x1n2onr6 x1c4vz4f x2lah0s",children:[P,$,d.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",alignSelf:"stretch",justify:"center",columnGap:8,margin:[0,20,20,20],padding:[2,0,8,0],xstyle:[p.composer,p.composerRefreshed],children:[d.jsx(o("WAWebFlex.react").FlexRow,{xstyle:[p.inputContainer,p.inputContainerRefreshed],children:w}),A,F]})]})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t,n,a=(t=(n=o("WAWebFrontendMsgGetters").getText(e))!=null?n:o("WAWebMsgGetters").getCaption(e))!=null?t:"",i=e.mentionMap(),l=e.groupMentionMap();if(i){var s=new RegExp(Object.keys(i).map(function(e){return r("escapeRegex")(e)}).join("|"),"g");a=a.replace(s,function(e){var t=i[e].id.toString();return""+o("WAWebRichTextInputConst").ZWS+t+o("WAWebRichTextInputConst").ZWS})}if(l){var u=new RegExp(Object.keys(l).map(function(e){return r("escapeRegex")(e)}).join("|"),"g");a=a.replace(u,function(e){return""+o("WAWebRichTextInputConst").ZWS+e.slice(1)+o("WAWebRichTextInputConst").ZWS})}return a}l.EmojiButton=f,l.MessageEditComposer=h}),226); __d("WAWebComposeBoxHasUnsavedChangesInEditModal",[],(function(t,n,r,o,a,i){var e=!1;function l(){return e}function s(t){e=t}i.hasUnsavedChangesInEditModal=l,i.setHasUnsavedChangesInEditModal=s}),66); __d("WAWebMessageEditActionsModal.react",["WAWebConfirmPopup.react","WAWebFlex.react","WAWebText_DONOTUSE.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.ref,n=e.cancelText,r=n===void 0?null:n,a=e.modalText,i=e.okText,l=e.onCancel,u=l===void 0?null:l,c=e.onOk,d=e.titleText,m=d===void 0?null:d,p=e.type;return s.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{ref:t,type:p,title:m,okText:i,onOK:c,cancelText:r,onCancel:u,children:s.jsx(o("WAWebFlex.react").FlexRow,{align:"center",justify:"center",children:s.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{xstyle:[!m&&o("WAWebUISpacing").uiMargin.top16,o("WAWebUISpacing").uiMargin.bottom32],children:a})})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMessageEditModal.react",["fbt","PaymentLink","WAWebComposeBoxHasUnsavedChangesInEditModal","WAWebDrawer.react","WAWebDrawerBody.react","WAWebDrawerHeader.react","WAWebFlexItem.react","WAWebFrontendMsgGetters","WAWebMessageEditActionsModal.react","WAWebMessageEditComposer.react","WAWebMessageEditMsgPreview.react","WAWebMessageEditUtils","WAWebModal.react","WAWebModalManager","WAWebMsgGetters","cr:6009","react","useWAWebListener","useWAWebStableCallback"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useMemo,p=c.useRef,_=c.useState,f={previewContainer:{overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x1n2onr6",zIndex:"x1ja2u2z",minHeight:"x2lwn1j",maxHeight:"xchkpuk",$$css:!0},drawer:{position:"x1n2onr6",$$css:!0}};function g(e){var t,a=e.ref,i=e.msg,l=e.onCancel,u=e.onConfirm,c=_((t=o("WAWebFrontendMsgGetters").getText(i))!=null?t:""),g=c[0],C=c[1],b=m(function(){return y(i)},[i]),v=_(b),S=v[0],R=v[1],L=p({}),E=h(g,b,S),k=_(!1),I=k[0],T=k[1],D=_(!1),x=D[0],$=D[1];o("WAWebComposeBoxHasUnsavedChangesInEditModal").setHasUnsavedChangesInEditModal(E),o("useWAWebListener").useListener(o("WAWebModalManager").ModalManager,["close_modal"],function(){o("WAWebComposeBoxHasUnsavedChangesInEditModal").setHasUnsavedChangesInEditModal(!1)});var P=function(t){var e,n;C(t.text),$(t.text.trim().length===0),L.current.mentionedJidList=(e=t.data.mentionedJidList)!=null?e:[],L.current.groupMentions=(n=t.data.groupMentions)!=null?n:[]},N=r("useWAWebStableCallback")(function(e){L.current.linkPreview=e,R(e)}),M=function(){if(g.trim().length!==0){if(!E){o("WAWebModalManager").ModalManager.close();return}if(n("cr:6009")!=null&&n("cr:6009").messageEditRestrictionEnabled()&&!o("WAWebMessageEditUtils").isParentWithinEditProcessingWindow({parentTsInSeconds:i.t,msgKey:i.id})){T(!0),$(!0);return}u(g,babelHelpers.extends({},L.current))}},w=function(){E||o("WAWebModalManager").ModalManager.close()},A=I?d.jsx(r("WAWebMessageEditActionsModal.react"),{type:o("WAWebModal.react").ModalTheme.MessageActionsModal,titleText:s._(/*BTDS*/"Se cumpli\u00f3 el l\u00edmite de tiempo"),okText:s._(/*BTDS*/"OK"),onOk:function(){T(!1)},modalText:s._(/*BTDS*/"Tienes 15 minutos para iniciar y finalizar la edici\u00f3n de un mensaje.")}):null;return d.jsxs(d.Fragment,{children:[d.jsx(o("WAWebModal.react").Modal,{type:o("WAWebModal.react").ModalTheme.MessageEdit,ref:a,onOverlayClick:w,children:d.jsxs(r("WAWebDrawer.react"),{testid:void 0,xstyle:f.drawer,children:[d.jsx(o("WAWebDrawerHeader.react").DrawerHeader,{title:o("WAWebMsgGetters").getIsNewsletterMsg(i)?s._(/*BTDS*/"Edita la actualizaci\u00f3n"):s._(/*BTDS*/"Edita el mensaje"),type:o("WAWebDrawerHeader.react").DRAWER_HEADER_TYPE.POPUP,onCancel:l}),d.jsxs(r("WAWebDrawerBody.react"),{className:"x78zum5 xdt5ytf x1iyjqo2 xs83m0k x2lwn1j xeuugli",children:[d.jsx(r("WAWebFlexItem.react"),{grow:0,shrink:1,basis:"content",xstyle:f.previewContainer,children:d.jsx(r("WAWebMessageEditMsgPreview.react"),{msg:i,linkPreviewVisible:!!S})}),d.jsx(o("WAWebMessageEditComposer.react").MessageEditComposer,{msg:i,initialLinkPreview:b,onInputChange:P,onLinkPreviewChange:N,onConfirm:M,disableConfirmButton:x})]})]},"edit-message-modal")}),A]})}g.displayName=g.name+" [from "+i.id+"]";function h(e,t,n){var r=e.trim(),o=p(r),a=r.length>0&&(r!==o.current||(n==null?void 0:n.matchedText)!==(t==null?void 0:t.matchedText));return a}function y(e){var t=o("WAWebFrontendMsgGetters").getAsUrl(e.unsafe());if(!t)return null;var n=null;return o("PaymentLink").shouldDetectInComposer()&&(n=o("PaymentLink").getPSP(t.matchedText)),{title:t.title,description:t.description,matchedText:t.matchedText,richPreviewType:t.richPreviewType,thumbnail:t.thumbnail,thumbnailHQ:t.thumbnailHQ,doNotPlayInline:!!t.doNotPlayInline,inviteGrpType:t.inviteGrpType,mediaKey:t.mediaKey,mediaKeyTimestamp:t.mediaKeyTimestamp,thumbnailDirectPath:t.thumbnailDirectPath,thumbnailSha256:t.thumbnailSha256,thumbnailEncSha256:t.thumbnailEncSha256,thumbnailHeight:t.thumbnailHeight,thumbnailWidth:t.thumbnailWidth,psp:n,isLoading:!1}}l.default=g}),226); __d("WAWebAudioCancelNoborderIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="audio-cancel-noborder";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=34,R=34;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 34 34",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 34 34",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M22.5,12.6l-1.1-1.1L17,15.9l-4.4-4.4l-1.1,1.1l4.4,4.4l-4.4,4.4l1.1,1.1l4.4-4.4 l4.4,4.4l1.1-1.1L18.1,17L22.5,12.6z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.AudioCancelNoborderIcon=m}),98); __d("WAWebAudioDownloadIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="audio-download";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=34,R=34;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 34 34",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 34 34",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M17,2c8.3,0,15,6.7,15,15s-6.7,15-15,15S2,25.3,2,17S8.7,2,17,2 M17,1C8.2,1,1,8.2,1,17 s7.2,16,16,16s16-7.2,16-16S25.8,1,17,1L17,1z"}),c.jsx("path",{fill:"currentColor",d:"M22.4,17.5h-3.2v-6.8c0-0.4-0.3-0.7-0.7-0.7h-3.2c-0.4,0-0.7,0.3-0.7,0.7v6.8h-3.2 c-0.6,0-0.8,0.4-0.4,0.8l5,5.3c0.5,0.7,1,0.5,1.5,0l5-5.3C23.2,17.8,23,17.5,22.4,17.5z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.AudioDownloadIcon=m}),98); __d("WAWebAudioUploadIcon.react",["WAWebSvgComponentBase","react","stylex"],(function(t,n,r,o,a,i,l){var e=["height","iconXstyle","name","viewBox","width"],s,u,c=s||(s=r("react")),d="audio-upload";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=34,R=34;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 34 34",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 34 34",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M17,2c8.3,0,15,6.7,15,15s-6.7,15-15,15S2,25.3,2,17S8.7,2,17,2 M17,1C8.2,1,1,8.2,1,17 s7.2,16,16,16s16-7.2,16-16S25.8,1,17,1L17,1z"}),c.jsx("path",{fill:"currentColor",d:"M22,22.5H12c-0.3,0-0.5,0.2-0.5,0.5v0.5c0,0.3,0.2,0.5,0.5,0.5h10c0.3,0,0.5-0.2,0.5-0.5 V23C22.5,22.7,22.3,22.5,22,22.5z M15,16v4.3c0,0.3,0.3,0.6,0.6,0.6h2.8c0.3,0,0.6-0.3,0.6-0.6V16h2.8c0.5,0,0.7-0.3,0.3-0.7 l-4.5-4.8c-0.5-0.6-0.9-0.5-1.3,0l-4.5,4.8c-0.4,0.4-0.2,0.7,0.3,0.7H15z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.AudioUploadIcon=m}),98); __d("WAWebDocStateControls.react",["WAWebAudioCancelNoborderIcon.react","WAWebAudioDownloadIcon.react","WAWebAudioUploadIcon.react","WAWebNoop","WAWebSpinner.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.children,n=e.onClick,r=n?{onClick:n}:{};return s.jsx("div",babelHelpers.extends({className:"x1n2onr6 x78zum5 x1okw0bk x6s0dn4 xl56j7k x1691je0 x90ne7k x1sj5et5"},r,{children:t}))}u.displayName=u.name+" [from "+i.id+"]";function c(e){var t=e.onClick;return s.jsx(u,{onClick:t||r("WAWebNoop"),children:s.jsx(o("WAWebAudioDownloadIcon.react").AudioDownloadIcon,{})})}c.displayName=c.name+" [from "+i.id+"]";var d={color:"progress"};function m(e){var t=e.canCancel,n=t===void 0?!1:t,r=e.outgoingMsg,a=e.value,i=a==null?{outgoingMsg:r}:d;return s.jsxs(u,{children:[s.jsx("div",{className:"x10l6tqk xnfr1j xt9097p",children:s.jsx(o("WAWebSpinner.react").Spinner,babelHelpers.extends({stroke:3,size:32,value:a},i))}),n?s.jsx(o("WAWebAudioCancelNoborderIcon.react").AudioCancelNoborderIcon,{}):null]})}m.displayName=m.name+" [from "+i.id+"]";function p(){return s.jsx(u,{children:s.jsx(o("WAWebAudioUploadIcon.react").AudioUploadIcon,{})})}p.displayName=p.name+" [from "+i.id+"]",l.Download=c,l.Pending=m,l.Upload=p}),98); __d("WAWebMediaMissingModal.react",["fbt","WALogger","WAWebConfirmPopup.react","WAWebFbtCommon","WAWebMmsMediaTypes","WAWebModalManager","WAWebMsgGetters","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=function(t){try{return o("WAWebMmsMediaTypes").getMsgMediaType(t)}catch(e){return null}};function m(t){var n=t.msg,a=o("useWAWebMsgValues").useMsgValues(n.id,[o("WAWebMsgGetters").getType,o("WAWebMsgGetters").getIsVcardOverMmsDocument]),i=a[0],l=a[1],u=d(n),m,_;switch(u){case o("WAWebMmsMediaTypes").MEDIA_TYPES.VIDEO:m=s._(/*BTDS*/"Video no disponible"),_=s._(/*BTDS*/"No se puede reproducir este video porque ya no est\u00e1 en tu tel\u00e9fono.");break;case o("WAWebMmsMediaTypes").MEDIA_TYPES.GIF:m=s._(/*BTDS*/"GIF no disponible"),_=s._(/*BTDS*/"No se puede ver este GIF porque ya no est\u00e1 en tu tel\u00e9fono.");break;case o("WAWebMmsMediaTypes").MEDIA_TYPES.AUDIO:m=s._(/*BTDS*/"Mensaje de voz no disponible"),_=s._(/*BTDS*/"No se puede reproducir este mensaje de voz porque ya no est\u00e1 en tu tel\u00e9fono.");break;case o("WAWebMmsMediaTypes").MEDIA_TYPES.IMAGE:m=s._(/*BTDS*/"Foto no disponible"),_=s._(/*BTDS*/"No se puede ver esta foto porque ya no est\u00e1 en tu tel\u00e9fono.");break;case o("WAWebMmsMediaTypes").MEDIA_TYPES.DOCUMENT:if(l){m=s._(/*BTDS*/"Contacto no disponible"),_=s._(/*BTDS*/"No se puede ver este contacto porque ya no est\u00e1 en tu tel\u00e9fono.");break}m=s._(/*BTDS*/"Documento no disponible"),_=s._(/*BTDS*/"No se puede descargar este documento porque ya no est\u00e1 en tu tel\u00e9fono.");break;case o("WAWebMmsMediaTypes").MEDIA_TYPES.STICKER:m=s._(/*BTDS*/"Sticker no disponible"),_=s._(/*BTDS*/"No se puede descargar este sticker porque ya no est\u00e1 en tu tel\u00e9fono.");break;default:m=s._(/*BTDS*/"Mensaje multimedia no disponible"),o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["type: ",""])),u).sendLogs("MediaMissingModal: unexpected message type")}return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:m,onOK:p,okText:r("WAWebFbtCommon")("OK"),children:_})}m.displayName=m.name+" [from "+i.id+"]";function p(){o("WAWebModalManager").ModalManager.close()}l.default=m}),226); __d("WAWebMediaNotReadableModal.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(){return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"No se puede enviar un archivo cambiado"),onOK:d,okText:r("WAWebFbtCommon")("OK"),children:s._(/*BTDS*/"Se cambi\u00f3 este documento desde que intentaste enviarlo. Por favor, vuelve a intentarlo.")})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.close()}l.default=c}),226); __d("WAWebShowMediaNotReadableModal",["WAWebMediaNotReadableModal.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){e&&(e.stopPropagation(),e.preventDefault())}function c(e){u(e),o("WAWebModalManager").ModalManager.open(s.jsx(r("WAWebMediaNotReadableModal.react"),{}))}l.default=c}),98); __d("WAWebMediaDocumentUtils",["fbt","WALogger","WAWebABProps","WAWebCmd","WAWebConfirmPopup.react","WAWebDocStateControls.react","WAWebEnvironment","WAWebFbtCommon","WAWebFileSaver","WAWebFilenameManager","WAWebMediaMissingModal.react","WAWebMediaStore","WAWebMediaTypes","WAWebModalManager","WAWebModernizr","WAWebMsgGetters","WAWebNoop","WAWebSafariLimited","WAWebShowMediaNotReadableModal","WAWebStateUtils","WAWebTPPdfViewerGatingUtils","WAWebToast.react","WAWebToastManager","WAWebWamEnumWebcRmrReasonCode","asyncToGeneratorRuntime","cr:11804","cr:7565","react","useWAWebListener","useWAWebModelValues","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m,p,_,f,g,h,y,C,b,v,S,R,L,E,k,I,T,D,x,$=x||(x=o("react")),P=D||(D=r("react")),N=$.useCallback,M=$.useEffect,w=$.useState,A=100*1024*1024;function F(e){var t=o("WAWebFilenameManager").getDefaultName(e);o("WAWebToastManager").ToastManager.open(P.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Se descarg\u00f3 \"{name}\".",[s._param("name",t)])}))}function O(e){var t=o("WAWebFilenameManager").getDefaultName(e);o("WAWebToastManager").ToastManager.open(P.jsx(o("WAWebToast.react").Toast,{msg:s._(/*BTDS*/"Abriendo \"{name}\"\u2026",[s._param("name",t)])}))}function B(e){e&&(e.stopPropagation(),e.preventDefault())}function W(t){var n=w(null),r=n[0],a=n[1],i=o("useWAWebModelValues").useOptionalModelValues(t.mediaData,["mediaStage","filehash"]),l=N(function(){i==null||i.filehash==null||i.mediaStage!==o("WAWebMediaTypes").MediaDataStage.INIT||(o("WAWebABProps").getABPropConfigValue("web_mem_memoize_concurrent_lru_media_store_access_enabled")?o("WAWebMediaStore").LruMediaStore.has(i.filehash).then(function(e){return a(e)}).catch(function(t){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[useIsFileInCacheState] Failed to get file from cache: ",""])),t)}):o("WAWebMediaStore").LruMediaStore.get(i.filehash).then(function(e){return a(e!=null)}).catch(function(e){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[useIsFileInCacheState] Failed to get file from cache: ",""])),e)}))},[i,a]);return o("useWAWebListener").useListener(t.mediaData,"change:filehash change:mediaStage",function(){l()}),M(function(){l()},[l]),r}function q(e){var t=w(null),r=t[0],a=t[1],i=o("useWAWebModelValues").useOptionalModelValues(e.mediaData,["filehash"]),l=N(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){if(n("cr:7565")==null){a(null);return}if(i==null){a(null);return}if(i.filehash==null){a(null);return}o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[useIsFileSavedOnFileSystem] checking fs "," hash=",""])),e.id.toString(),i.filehash);try{var t=yield n("cr:7565").isMediaFileSaved(e);a(t)}catch(t){o("WALogger").ERROR(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[useIsFileSavedOnFileSystem] fs check error ",": ",""])),e.id.toString(),t),a(null)}}),[i,e]);return o("useWAWebListener").useListener(e.mediaData,"change:filehash",function(){l()}),o("useWAWebListener").useListener(e.mediaData,"mediaFileSavingStarted mediaFileSavedOnFileSystem",function(){o("WALogger").LOG(m||(m=babelHelpers.taggedTemplateLiteralLoose(["[useIsFileSavedOnFileSystem] file saved event ",""])),e.id.toString()),a(!0)}),M(function(){l()},[l,e.id]),r}function U(e,t){t===void 0&&(t={});var a=W(e),i=q(e),l=o("useWAWebMsgValues").useMsgValues(e.id,[o("WAWebMsgGetters").getIsVcardOverMmsDocument,o("WAWebMsgGetters").getIsSentByMe,o("WAWebMsgGetters").getIsFailed]),u=l[0],c=l[1],d=l[2],m=o("useWAWebModelValues").useModelValues(e.mediaData,["mediaStage","filename","size","filehash","loadedSize","mimetype"]),D=o("WAWebFilenameManager").getDefaultName(e),x=function(n){B(n),o("WAWebModalManager").ModalManager.open(P.jsx(r("WAWebMediaMissingModal.react"),{msg:e.unsafe()}))},$=function(n){B(n),e.cancelDownload()},N=function(n){B(n),e.cancelUpload()},M=function(n){B(n),e.resumeUpload()},w=function(n){B(n),e.resumeRemoteUpload()},U=(function(){var l=n("asyncToGeneratorRuntime").asyncToGenerator(function*(l){if(o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] start "," stage="," size=",""])),e.id.toString(),m.mediaStage,m.size||"unknown"),B(l),!o("WAWebModernizr").getModernizr().adownload){o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] no adownload, Safari popup ",""])),e.id.toString()),o("WAWebModalManager").ModalManager.open(P.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:o("WAWebModalManager").closeModalManager,okText:r("WAWebFbtCommon")("OK"),children:P.jsx(o("WAWebSafariLimited").SafariLimitedText,{})}));return}if(n("cr:7565")!=null&&i===!0)o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] file in fs ",""])),e.id.toString());else{o("WALogger").LOG(g||(g=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] downloading "," expensive=",""])),e.id.toString(),m.size<=A);try{o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(m.mimetype)&&(n("cr:11804")==null||n("cr:11804").maybePreloadWebTPIframeForPDFs(void 0,{source:"pdfPreviewClick",force:!0})),yield e.downloadMedia({downloadEvenIfExpensive:m.size<=A,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.MSG_CLICK,isUserInitiated:!0}),o("WALogger").LOG(h||(h=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Media download completed for msg ",""])),e.id.toString())}catch(t){o("WALogger").ERROR(y||(y=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Failed to download media for msg ",": ",""])),e.id.toString(),t)}}switch(o("WALogger").LOG(C||(C=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Processing mediaStage "," for msg ",""])),m.mediaStage,e.id.toString()),m.mediaStage){case o("WAWebMediaTypes").MediaDataStage.RESOLVED:case o("WAWebMediaTypes").MediaDataStage.ERROR_UNSUPPORTED:if(u!==!0){var s=o("WAWebStateUtils").unproxy(e.unsafe()),c=n("cr:7565")!=null&&(i===!0||a===!0);o("WALogger").LOG(b||(b=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] file check "," canOpen=",""])),e.id.toString(),c),n("cr:7565")&&c===!0?(o("WALogger").LOG(v||(v=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Opening existing file for msg ",""])),e.id.toString()),O(s),yield n("cr:7565").openMediaFile(s)):n("cr:7565")&&c===!1?(o("WALogger").LOG(S||(S=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] saving to Windows fs ",""])),e.id.toString()),F(s),yield n("cr:7565").saveMediaFile(s)):n("cr:11804")&&o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(m.mimetype)?o("WAWebCmd").Cmd.mediaViewerModal({msg:o("WAWebStateUtils").unproxy(e.unsafe()),getZoomNode:t.getZoomNode,shouldShowAllMedia:!1}):(o("WALogger").LOG(R||(R=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Using FileSaver to download for msg ",""])),e.id.toString()),F(s),yield o("WAWebFileSaver").FileSaver.downloadAsync(s))}break;case o("WAWebMediaTypes").MediaDataStage.NEED_POKE:case o("WAWebMediaTypes").MediaDataStage.ERROR_MISSING:o("WALogger").LOG(L||(L=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Media missing, showing modal for msg ",""])),e.id.toString()),x();break;case o("WAWebMediaTypes").MediaDataStage.INIT:if(u!==!0&&n("cr:7565")!=null&&i===!0){var d=o("WAWebStateUtils").unproxy(e.unsafe());o("WALogger").LOG(E||(E=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Opening existing file for msg ",""])),e.id.toString()),O(d),yield n("cr:7565").openMediaFile(d)}else o("WALogger").LOG(k||(k=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] INIT state, awaiting download ",""])),e.id.toString());break;default:}o("WALogger").LOG(I||(I=babelHelpers.taggedTemplateLiteralLoose(["[downloadMediaAsync] Completed processing for msg ",""])),e.id.toString())});return function(t){return l.apply(this,arguments)}})(),V=function(n){U(n).catch(function(t){o("WALogger").ERROR(T||(T=babelHelpers.taggedTemplateLiteralLoose(["[downloadMedia] Failed to download media for msg ",": ",""])),e.id.toString(),t)})},H=null,G={onClick:r("WAWebNoop")},z=i===!0||m.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED||m.mediaStage===o("WAWebMediaTypes").MediaDataStage.INIT&&a===!0,j=function(){return z&&r("WAWebEnvironment").isWindows?s._(/*BTDS*/"Abrir \"{name}\"",[s._param("name",D)]):o("WAWebTPPdfViewerGatingUtils").isWebTPPdfViewerEnabledForMimeType(m.mimetype)?s._(/*BTDS*/"Ver \"{name}\"",[s._param("name",D)]):s._(/*BTDS*/"Descargar \"{name}\"",[s._param("name",D)])};switch(m.mediaStage){case o("WAWebMediaTypes").MediaDataStage.RESOLVED:case o("WAWebMediaTypes").MediaDataStage.ERROR_UNSUPPORTED:case o("WAWebMediaTypes").MediaDataStage.NEED_POKE:case o("WAWebMediaTypes").MediaDataStage.INIT:G.onClick=V,G.title=j(),H=!z&&!r("WAWebEnvironment").isWindows?P.jsx(o("WAWebDocStateControls.react").Download,{}):null;break;case o("WAWebMediaTypes").MediaDataStage.UPLOADING:case o("WAWebMediaTypes").MediaDataStage.FETCHING:H=P.jsx(o("WAWebDocStateControls.react").Pending,{outgoingMsg:c,canCancel:!0,value:m.loadedSize!=null&&m.size!=null&&m.size>0?Math.ceil(m.loadedSize/m.size*100):void 0}),G.onClick=m.mediaStage===o("WAWebMediaTypes").MediaDataStage.FETCHING?$:N;break;case o("WAWebMediaTypes").MediaDataStage.NEED_UPLOAD:H=P.jsx(o("WAWebDocStateControls.react").Upload,{}),G.onClick=M;break;case o("WAWebMediaTypes").MediaDataStage.REMOTE_NEED_UPLOAD:H=P.jsx(o("WAWebDocStateControls.react").Upload,{}),G.onClick=w;break;case o("WAWebMediaTypes").MediaDataStage.ERROR_TOO_LARGE:break;case o("WAWebMediaTypes").MediaDataStage.ERROR_FILE_NOT_READABLE:G.onClick=r("WAWebShowMediaNotReadableModal");break;case o("WAWebMediaTypes").MediaDataStage.ERROR_MISSING:G.onClick=x;break;case o("WAWebMediaTypes").MediaDataStage.SENDING:H=d?null:P.jsx(o("WAWebDocStateControls.react").Pending,{outgoingMsg:c});break;default:H=P.jsx(o("WAWebDocStateControls.react").Pending,{outgoingMsg:c})}return[G,H]}l.displayDownloadingToast=F,l.displayFileOpeningToast=O,l.useIsFileInCacheState=W,l.useIsFileSavedOnFileSystem=q,l.useDownloadMediaState=U}),226); __d("WAWebMediaDocumentBubbleActions.react",["fbt","WALogger","WAWebEnvironment","WAWebFileSaver","WAWebMediaDocumentUtils","WAWebMediaTypes","WAWebMessageBubbleActions.react","WAWebNoop","WAWebStateUtils","cr:7565","react","useWAWebModelValues"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p,_,f,g,h,y,C,b,v,S,R,L,E,k,I,T=I||(I=r("react"));function D(t){var a=t.msg,i=o("WAWebMediaDocumentUtils").useIsFileInCacheState(a.unsafe()),l=o("WAWebMediaDocumentUtils").useIsFileSavedOnFileSystem(a.unsafe()),I=o("useWAWebModelValues").useModelValues(a.mediaData,["mediaStage","filehash","filename"]),D=function(){if(o("WALogger").LOG(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] handleOpenButtonClick triggered for msg: ",", filename: ",""])),a.id.toString(),I.filename||"null"),n("cr:7565")==null){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] WindowsMediaFilesHelpers is null for handleOpenButtonClick, msg: ",""])),a.id.toString());return}var t=o("WAWebStateUtils").unproxy(a).unsafe();o("WALogger").LOG(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Displaying file opening toast and initiating file open for msg: ",""])),a.id.toString()),o("WAWebMediaDocumentUtils").displayFileOpeningToast(t),n("cr:7565").openMediaFile(t).then(function(){o("WALogger").LOG(d||(d=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Successfully opened media file for msg: ",""])),a.id.toString())}).catch(function(e){o("WALogger").ERROR(m||(m=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Failed to open media file for msg ",": ",""])),a.id.toString(),String(e))})},x=function(){o("WALogger").LOG(p||(p=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] handleSaveAsButtonClick triggered for msg: ",", filename: ",""])),a.id.toString(),I.filename||"null");try{o("WALogger").LOG(_||(_=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Initiating FileSaver download for msg: ",""])),a.id.toString()),o("WAWebFileSaver").FileSaver.initDownload(o("WAWebStateUtils").unproxy(a).unsafe()),o("WALogger").LOG(f||(f=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Successfully initiated save as for msg: ",""])),a.id.toString())}catch(e){o("WALogger").ERROR(g||(g=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Failed to initiate save as for msg ",": ",""])),a.id.toString(),String(e))}},$=function(){if(o("WALogger").LOG(h||(h=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] handleDownloadButtonClick triggered for msg: ",", filename: ",""])),a.id.toString(),I.filename||"null"),n("cr:7565")==null){o("WALogger").ERROR(y||(y=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] WindowsMediaFilesHelpers is null for handleDownloadButtonClick, msg: ",""])),a.id.toString());return}var e=o("WAWebStateUtils").unproxy(a).unsafe();o("WALogger").LOG(C||(C=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Displaying downloading toast and initiating file save for msg: ",""])),a.id.toString()),o("WAWebMediaDocumentUtils").displayDownloadingToast(e),n("cr:7565").saveMediaFile(e).then(function(){o("WALogger").LOG(b||(b=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Successfully downloaded/saved media file for msg: ",""])),a.id.toString())}).catch(function(e){o("WALogger").ERROR(v||(v=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Failed to download/save media file for msg ",": ",""])),a.id.toString(),String(e))})},P=function(){return r("WAWebEnvironment").isWindows?l===!0||I.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED||I.mediaStage===o("WAWebMediaTypes").MediaDataStage.INIT&&i===!0?(o("WALogger").LOG(S||(S=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Returning Open/Save As actions for msg: "," (file resolved or cached)"])),a.id.toString()),[{label:s._(/*BTDS*/"Abrir"),onClick:D},{label:s._(/*BTDS*/"Guardar como\u2026"),onClick:x}]):I.mediaStage===o("WAWebMediaTypes").MediaDataStage.DECRYPTING||I.mediaStage===o("WAWebMediaTypes").MediaDataStage.FETCHING?(o("WALogger").LOG(R||(R=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Returning Downloading action for msg: "," (stage: ",")"])),a.id.toString(),I.mediaStage),[{label:s._(/*BTDS*/"Descargando\u2026"),onClick:r("WAWebNoop"),disabled:!0}]):I.mediaStage===o("WAWebMediaTypes").MediaDataStage.SENDING||I.mediaStage===o("WAWebMediaTypes").MediaDataStage.UPLOADING?(o("WALogger").LOG(L||(L=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Returning Uploading action for msg: "," (stage: ",")"])),a.id.toString(),I.mediaStage),[{label:s._(/*BTDS*/"Cargando\u2026"),onClick:r("WAWebNoop"),disabled:!0}]):(o("WALogger").LOG(E||(E=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Returning Download action for msg: "," (default case, stage: ",")"])),a.id.toString(),I.mediaStage),[{label:s._(/*BTDS*/"Descargar"),onClick:$}]):[]};if(!r("WAWebEnvironment").isWindows||n("cr:7565")==null)return null;var N=P();return o("WALogger").LOG(k||(k=babelHelpers.taggedTemplateLiteralLoose(["[WAWebMediaDocumentBubbleActions] Rendering BubbleActions component for msg: "," with "," action(s)"])),a.id.toString(),N.length),T.jsx(o("WAWebMessageBubbleActions.react").BubbleActions,{items:N,theme:o("WAWebMessageBubbleActions.react").BubbleActionsTheme.MEDIA_DOCUMENT})}D.displayName=D.name+" [from "+i.id+"]",l.default=D}),226); __d("useWAWebTimeLeftMs",["react","useLazyRef","useWAWebThrottledCallback"],(function(t,n,r,o,a,i,l){var e,s=(e||(e=o("react"))).useRef,u=.01;function c(e,t,n){n===void 0&&(n=1e3);var o=r("useLazyRef")(function(){return Date.now()}),a=s(0),i=s(0),l=r("useWAWebThrottledCallback")(function(){if(o.current==null||a.current==null||t==null||e==null)return null;var n=Date.now(),r=e-a.current,l=n-o.current;if(a.current=e,o.current=n,l===0)return null;var s=t-e,c=r/l;return i.current=i.current===0?c:c*u+i.current*(1-u),s/i.current},n,{trailing:!1,leading:!0});return l()}l.useTimeLeftMs=c}),98); __d("WAWebMediaTimeLeftEta.react",["fbt","WAWebClock","react","stylex","useWAWebTimeLeftMs"],(function(t,n,r,o,a,i,l,s){var e,u,c,d=c||(c=r("react")),m=(e||(e=o("react"))).useRef,p=10*1e3;function _(e){var t=e.children,n=e.loadedSize,a=e.sampling,i=a===void 0?1:a,l=e.size,c=e.xstyle,_=m(!1),f=m(0),g=o("useWAWebTimeLeftMs").useTimeLeftMs(n,l);return!_.current&&++f.current>=i&&g!=null&&g>=p&&(_.current=!0),_.current===!1||l==null||n==null||n>=l||g==null||g===0?null:d.jsxs(d.Fragment,{children:[d.jsx("span",babelHelpers.extends({"data-testid":void 0},(u||(u=r("stylex"))).props(c),{children:s._(/*BTDS*/"{progress} \u0025 ({eta})",[s._param("progress",d.jsx("span",{className:"x1rg5ohu",children:Math.floor(n/l*100)})),s._param("eta",o("WAWebClock").Clock.timeLeftStr(Math.ceil(g/1e3)))])})),t]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebMessageDeeperContainer.react",["react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={posBottom:{borderStartStartRadius:"x1bczwif",borderStartEndRadius:"x17un8ov",$$css:!0},posTop:{borderEndStartRadius:"x11o6v7j",borderEndEndRadius:"x1e7945m",$$css:!0},wrapper:{borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769",cursor:"x1ypdohk",overflowX:"x6ikm8r",overflowY:"x10wlt62",textDecoration:"x1hl2dhg",width:"xh8yej3",$$css:!0},wrapperIn:{backgroundColor:"x1bu39yj",$$css:!0},wrapperOut:{backgroundColor:"x1bu39yj",$$css:!0}};function d(e){var t=e.children,n=e.outgoingMsg,o=e.position,a=e.xstyle;return u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.wrapper,o==="bottom"&&c.posBottom,o==="top"&&c.posTop,!n&&c.wrapperIn,n&&c.wrapperOut,a),{children:t}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMsgVideoIcon.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="msg-video";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=14,R=16;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 16 14",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),version:"1.1",x:"0px",y:"0px",enableBackground:"new 0 0 16 14",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{fill:"currentColor",d:"M14.987,2.668l-3.48,3.091v-2.27c0-0.657-0.532-1.189-1.189-1.189H1.689C1.032,2.3,0.5,2.832,0.5,3.489 v7.138c0,0.657,0.532,1.189,1.189,1.189h8.629c0.657,0,1.189-0.532,1.189-1.189V8.328l3.48,3.09 C14.987,11.418,14.987,2.668,14.987,2.668z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MsgVideoIcon=m}),98); __d("WAWebMediaDocumentPreview",["fbt","WAWebABProps","WAWebClassnames","WAWebClickable.react","WAWebDisplayType","WAWebDocumentFileIcon","WAWebEmojiText.react","WAWebFlex.react","WAWebFlexItem.react","WAWebFrontendMsgGetters","WAWebL10N","WAWebL10nFilesize","WAWebMediaDocumentUtils","WAWebMediaDownloadMmsThumbnail","WAWebMediaMessageGetValidatedProperties","WAWebMediaThumbnail.react","WAWebMediaTimeLeftEta.react","WAWebMessageDeeperContainer.react","WAWebMessageMeta.react","WAWebMessageUiUtils","WAWebMsgGetters","WAWebMsgModelPropUtils","WAWebMsgVideoIcon.react","WAWebStateUtils","WAWebUISpacing","react","useWAWebDocumentMediaType","useWAWebModelValues","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useRef,_={textContainerPadding:{paddingInlineEnd:"xl3akx1",$$css:!0},container:{boxSizing:"x9f619",display:"x78zum5",flexDirection:"xdt5ytf",alignItems:"x1qjc9v5",width:"xh8yej3",overflowX:"x6ikm8r",overflowY:"x10wlt62",color:"x1heor9g",textAlign:"x16tdsg8",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",$$css:!0},fixedTextHeight:{height:"xdiz9cm",$$css:!0},text:{position:"x1n2onr6",top:"x1qiirwl",marginTop:"xdj266r",marginBottom:"xat24cr",marginInlineEnd:"x1sa5p1d",marginInlineStart:"x1hm9lzh",$$css:!0},textRTL:{textAlign:"x1hr2gdg",$$css:!0},deepContainerContent:{paddingTop:"x1d0ri9u",paddingInlineEnd:"xl3akx1",paddingBottom:"x1ug4tga",paddingInlineStart:"x11ahuha",position:"x1n2onr6",$$css:!0},metaValue:{display:"x1rg5ohu",overflowX:"x6ikm8r",overflowY:"x10wlt62",textOverflow:"xlyipyv",whiteSpace:"xuxw1ft",":last-child_display":"xwcf1sq",$$css:!0},deepContainer:{cursor:"xmper1u",$$css:!0},mediaThumbVideoIcon:{position:"x10l6tqk",bottom:"xy1j3rs",insetInlineStart:"xrr41r3",left:null,right:null,color:"x17t9dm2",$$css:!0}};function f(){return d.jsx("span",{className:"x1rg5ohu x6ikm8r x10wlt62 xlyipyv xuxw1ft xwcf1sq xdj266r x7g7pl8 xat24cr x1wbi8v6",children:"\u2022"})}f.displayName=f.name+" [from "+i.id+"]";function g(e){var t=e.size;if(t==null||t<=0)return null;var n=o("WAWebL10nFilesize").getL10nFilesize(t);return d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"x1rg5ohu x6ikm8r x10wlt62 xlyipyv xuxw1ft xwcf1sq",title:n,children:n}),d.jsx(f,{})]})}g.displayName=g.name+" [from "+i.id+"]";function h(e){var t=e.count;if(t==null||t<=0)return null;var n=s._(/*BTDS*/"_j{\"*\":\"{count} p\\u00e1ginas\",\"4\":\"{count} p\\u00e1gina\",\"_1\":\"1 p\\u00e1gina\"}",[s._plural(t,"count")]);return d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"x1rg5ohu x6ikm8r x10wlt62 xlyipyv xuxw1ft xwcf1sq",title:n,children:n}),d.jsx(f,{})]})}h.displayName=h.name+" [from "+i.id+"]";function y(e){var t=e.ext;if(t==null)return null;var n=t.toUpperCase();return d.jsxs(d.Fragment,{children:[d.jsx("span",{"data-meta-key":"type","data-testid":void 0,className:"x1rg5ohu x6ikm8r x10wlt62 xlyipyv xuxw1ft xwcf1sq",title:n,children:n}),d.jsx(f,{})]})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t,n,a,i=e.displayType,l=e.msg,u=e.showMessageMeta,c=u===void 0?!1:u,C=o("WAWebMsgModelPropUtils").isTrusted(l.unsafe()),b=p(null),v=o("useWAWebMsgValues").useMsgValues(l.id,[o("WAWebMsgGetters").getAck,o("WAWebMsgGetters").getCaption,o("WAWebFrontendMsgGetters").getDir,o("WAWebMsgGetters").getIsFromTemplate,o("WAWebMsgGetters").getIsSentByMe,o("WAWebFrontendMsgGetters").getRtl,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getSubtype,o("WAWebMsgGetters").getType,o("WAWebFrontendMsgGetters").getMediaData,o("WAWebMsgGetters").getIsDynamicReplyButtonsMsg]),S=v[0],R=v[1],L=v[2],E=v[3],k=v[4],I=v[5],T=v[6],D=v[7],x=v[8],$=v[9],P=v[10],N=o("useWAWebModelValues").useModelValues(l.mediaData,["mediaStage","filename","pageCount","size","mimetype","preview","fullPreviewData","loadedSize","filehash"]),M=r("useWAWebDocumentMediaType")({mimetype:N.mimetype,filename:N.filename}),w=!!((E||P)&&R),A=w?null:d.jsxs("div",{className:"xx3o462 x1ncwhqj xyqdw3p xyri2b xg8j3zb x1c1uobl x152skdk x1bvqhpb xt1z7ec x1yp9nv9 x186kree x1y04bub x1duis28",children:[o("WAWebMessageUiUtils").ETA_SUPPORTED_STATES.has(N.mediaStage)?d.jsx(r("WAWebMediaTimeLeftEta.react"),{size:N.size,loadedSize:N.loadedSize,sampling:3,xstyle:_.metaValue,children:d.jsx(f,{})}):d.jsxs(d.Fragment,{children:[d.jsx(h,{count:N.pageCount}),d.jsx(y,{ext:M.ext})]}),d.jsx(g,{size:N.size})]});m(function(){N.fullPreviewData||!o("WAWebABProps").getABPropConfigValue("download_document_thumb_mms_enabled")||r("WAWebMediaDownloadMmsThumbnail")({msg:o("WAWebStateUtils").unproxy(l),isPreload:!1,chat:o("WAWebFrontendMsgGetters").getChat(l.unsafe())})},[]);var F=o("WAWebClassnames").classnamesConvertMeToStylexPlease("xiy17q3 x1tbiz1a x1gnnpzl x23j0i4",!o("WAWebABProps").getABPropConfigValue("wa_web_file_iconography_refreshed")&&M.icon),O=N.filename||s._(/*BTDS*/"Sin t\u00edtulo"),B=o("WAWebMediaDocumentUtils").useDownloadMediaState(l.unsafe(),{getZoomNode:function(){return b.current}}),W=B[0],q=B[1],U=babelHelpers.extends({},W);i===o("WAWebDisplayType").DISPLAY_TYPE.EDITING&&(U.onClick=null);var V=((t=N.preview)!=null?t:N.fullPreviewData)!=null,H=M.mime!=null&&o("WAWebMediaMessageGetValidatedProperties").isMediaMimeType(M.mime),G=o("WAWebABProps").getABPropConfigValue("enable_new_media_as_document_chat_message_layout"),z=d.jsx("div",{className:"x6ikm8r x10wlt62 xlyipyv x1yn0g08 x104kibb x1h7i4cw x1ua5tub",children:d.jsx(o("WAWebEmojiText.react").EmojiText,{text:O,dirMismatch:I!==r("WAWebL10N").isRTL(),direction:"auto",breakWord:!0})}),j=G&&H&&C&&V,K=c&&d.jsx("div",{className:"x10l6tqk xxx7yvo xbfrwjf",children:d.jsx(o("WAWebMessageMeta.react").Meta,{msg:l})}),Q=d.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:[_.deepContainerContent,o("WAWebUISpacing").uiPadding.all0],children:[d.jsx(r("WAWebFlexItem.react"),{shrink:0,grow:0,children:d.jsxs("div",{className:"x1n2onr6",children:[d.jsx(r("WAWebMediaThumbnail.react"),{msg:l.unsafe(),containerClassName:"xcbkimw x1n2onr6 xjzcg3w",childClassName:"x1agz8ms xiy17q3 x18d0r48 x5yr21d x10l6tqk xh8yej3"}),l.mimetype&&o("WAWebMediaMessageGetValidatedProperties").isVideoMimeType(l.mimetype)&&d.jsx(o("WAWebMsgVideoIcon.react").MsgVideoIcon,{xstyle:_.mediaThumbVideoIcon,height:12,width:14})]})}),d.jsxs(o("WAWebFlex.react").FlexRow,{align:"start",xstyle:[_.textContainerPadding,o("WAWebUISpacing").uiPadding.vert13],grow:1,children:[d.jsxs(o("WAWebFlex.react").FlexColumn,{grow:1,justify:"center",xstyle:[_.text,r("WAWebL10N").isRTL()&&_.textRTL,o("WAWebUISpacing").uiMargin.horiz10,_.fixedTextHeight],children:[d.jsx(r("WAWebFlexItem.react"),{children:z}),d.jsx(r("WAWebFlexItem.react"),{children:A})]}),d.jsx(r("WAWebFlexItem.react"),{grow:0,shrink:0,children:q})]})]}),X=d.jsxs(o("WAWebFlex.react").FlexRow,{xstyle:_.deepContainerContent,align:"start",children:[d.jsx(r("WAWebFlexItem.react"),{shrink:0,children:d.jsx("div",{className:F,children:o("WAWebABProps").getABPropConfigValue("wa_web_file_iconography_refreshed")&&d.jsx(r("WAWebDocumentFileIcon"),{width:26,mimeType:(n=M.mime)!=null?n:"",ext:(a=M.ext)!=null?a:""})})}),d.jsxs(r("WAWebFlexItem.react"),{xstyle:[_.text,r("WAWebL10N").isRTL()&&_.textRTL],grow:1,children:[z,A]}),d.jsx(r("WAWebFlexItem.react"),{grow:0,shrink:0,children:q}),K]});return d.jsxs(o("WAWebClickable.react").Clickable,babelHelpers.extends({xstyle:_.container,dataTestId:"document-thumb"},U,{children:[C&&!j?d.jsx(r("WAWebMediaThumbnail.react"),{msg:l.unsafe(),containerClassName:"xpyat2d x1n2onr6 xh8yej3",childClassName:"x1agz8ms xiy17q3 x18d0r48 x5yr21d x10l6tqk xh8yej3",thumbnailRef:b}):null,d.jsx(r("WAWebMessageDeeperContainer.react"),{xstyle:_.deepContainer,outgoingMsg:k,position:V?"bottom":void 0,children:j?Q:X})]}))}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226); __d("WAWebMessageCaption.react",["WAWebBizSuspiciousLabel.react","WAWebEmojiText.react","WAWebExpandableText.react","WAWebFormatConfiguration","WAWebFrontendMsgGetters","WAWebL10N","WAWebMessageSpacerText.react","WAWebMsgGetters","WAWebMsgLinks","WAWebMsgPhoneNumbers","react","useWAWebMessageHighlightTerms","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t,n=e.highlightText,a=e.msg,i=e.overflowVisible,l=e.shouldFormatLinks,u=e.spacer,c=e.testId,d=e.trusted,m=r("useWAWebMessageHighlightTerms")(a.id),p=o("useWAWebMsgValues").useMsgValues(e.msg.id,[(t=o("WAWebMsgGetters")).getT,t.getId,o("WAWebFrontendMsgGetters").getDir,o("WAWebFrontendMsgGetters").getRtl,o("WAWebFrontendMsgGetters").getText,t.getInitialPageSize,t.getFooter,t.getCtwaContext]),_=p[0],f=p[1],g=p[2],h=p[3],y=p[4],C=p[5],b=p[6],v=p[7],S=!0;if(y==null||y==="")return null;var R=!!(g&&h!==r("WAWebL10N").isRTL());return s.jsxs(s.Fragment,{children:[!v&&s.jsx(o("WAWebBizSuspiciousLabel.react").SuspiciousLabel,{msg:a}),s.jsx(r("WAWebMessageSpacerText.react"),{overflowVisible:i,msg:a,"data-id":f,spacer:u,children:s.jsx(o("WAWebExpandableText.react").ExpandableText,{text:y,textLimit:C,children:function(t){var e=t.textLimit,r=n!=null?n.toLowerCase().split(" "):m,i=o("WAWebFormatConfiguration").Conversation({mentions:a.mentionMap(),groupMentions:a.groupMentionMap(),hasMentionAll:o("WAWebMsgGetters").getHasMentionAll(a),links:l===!1?void 0:o("WAWebMsgLinks").getLinksFromMsg(a,e),phoneNumbers:o("WAWebMsgPhoneNumbers").getPhoneNumbersFromMsg(a),selectable:S,trusted:d===!0,fromMe:f.fromMe,fromChatWid:f.remote,parseLists:!0,parseQuotes:!0,parseInlineCode:!0,terms:r!=null?r:null});return s.jsx(o("WAWebEmojiText.react").EmojiText,{testid:void 0,direction:g,dirMismatch:R,formatters:i,inferLinesDirection:!0,selectable:S,text:y,textLimit:e})}})})]})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMessageContentBox.react",["WAWebBizTemplateMessageFooter.react","WAWebDisplayType","WAWebFrontendMsgGetters","WAWebMessageAuthor.react","WAWebMessageCaption.react","WAWebMessageForwardedIndicator.react","WAWebMessageMeta.react","WAWebMsgGetters","WAWebMsgSelectors","WAWebUISpacing","react","stylex","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={author:{paddingTop:"x1u9i22x",$$css:!0},caption:{boxSizing:"x9f619",maxWidth:"x1d8l2j3",$$css:!0},forwardedIndicator:{paddingTop:"x1u9i22x",$$css:!0}};function d(e){var t=e.children,n=e.displayType,a=e.hideCaption,i=a===void 0?!1:a,l=e.hideMeta,d=l===void 0?!1:l,m=e.msg,p=e.quotedMsg,_=e.showAuthor,f=_===void 0?!1:_,g=e.trusted,h=o("useWAWebMsgValues").useMsgValues(m.id,[o("WAWebMsgGetters").getCaption,o("WAWebFrontendMsgGetters").getDir,o("WAWebMsgGetters").getFooter,o("WAWebMsgGetters").getIsFromTemplate,o("WAWebFrontendMsgGetters").getRtl,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getSupportsMessageFooter,o("WAWebMsgGetters").getType]),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=f,I=!i&&!!y,T=o("WAWebMsgSelectors").showForwarded(m);return u.jsxs(u.Fragment,{children:[k?u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.author,o("WAWebUISpacing").uiPadding.horiz6,o("WAWebUISpacing").uiPadding.bottom5,T&&o("WAWebUISpacing").uiPadding.bottom0),{children:u.jsx(r("WAWebMessageAuthor.react"),{msg:m,contact:R,displayType:n})})):null,T?u.jsx(r("WAWebMessageForwardedIndicator.react"),{msg:m.unsafe(),className:(s||(s=r("stylex")))(c.forwardedIndicator,o("WAWebUISpacing").uiPadding.end0,o("WAWebUISpacing").uiPadding.bottom3,o("WAWebUISpacing").uiPadding.start6,k&&o("WAWebUISpacing").uiPadding.top0)}):null,p!=null?u.jsx("div",{className:"xidp8sz",children:p}):null,t,I?u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.caption,o("WAWebUISpacing").uiPadding.top7,o("WAWebUISpacing").uiPadding.end4,o("WAWebUISpacing").uiPadding.bottom5,o("WAWebUISpacing").uiPadding.start6),{children:u.jsx(r("WAWebMessageCaption.react"),{msg:m.unsafe(),trusted:g,spacer:!b})})):null,L?u.jsx(r("WAWebBizTemplateMessageFooter.react"),{dir:C,footer:b,isShown:L,msg:m.unsafe(),rtl:S,type:E,trusted:g}):null,!d&&u.jsx("div",babelHelpers.extends({},{0:{className:"x10l6tqk x1d37e2g x7308am"},1:{className:"x10l6tqk x1d37e2g xy1j3rs"}}[!!I<<0],{children:u.jsx(o("WAWebMessageMeta.react").Meta,{msg:m,displayType:n,theme:n===o("WAWebDisplayType").DISPLAY_TYPE.GALLERY?"date":void 0})}))]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebMediaDocument.react",["WAWebBizCtwaContext.react","WAWebDisplayType","WAWebEnvironment","WAWebFrontendMsgGetters","WAWebL10N","WAWebMediaDocumentBubbleActions.react","WAWebMediaDocumentPreview","WAWebMessageCaption.react","WAWebMessageContentBox.react","WAWebMessageMeta.react","WAWebMsgGetters","react","stylex","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={bubble:{boxSizing:"x9f619",width:"x1o095ql",paddingTop:"x1u9i22x",paddingInlineEnd:"x1gn2fwh",paddingBottom:"x1gwem2t",paddingInlineStart:"x4c6wsc",$$css:!0},isAnnouncement:{width:"x1yuel0x",$$css:!0},bubbleExtraPadding:{paddingBottom:"x1yt8dio",$$css:!0},isGallery:{width:"x14atkfc","@media (max-width:880px)_insetInlineEnd":"xt1z7ec","@media (max-width:880px)_left":null,"@media (max-width:880px)_right":null,"@media (max-width:880px)_overflowX":"x1yp9nv9","@media (max-width:880px)_overflowY":"x186kree","@media (max-width:880px)_textOverflow":"x1y04bub","@media (max-width:880px)_whiteSpace":"x1duis28",$$css:!0},isPreview:{maxWidth:"x193iq5w",$$css:!0},templateBubble:{position:"x1n2onr6",$$css:!0}},d=new Map([[o("WAWebDisplayType").DISPLAY_TYPE.MSG_INFO,c.isPreview],[o("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS,c.isGallery],[o("WAWebDisplayType").DISPLAY_TYPE.GALLERY,c.isGallery],[o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT,c.isAnnouncement],[o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER,c.isAnnouncement]]);function m(e){var t,n,a=e.displayAuthor,i=e.displayType,l=e.msg,m=e.quotedMsg,p=e.trusted,_=o("useWAWebMsgValues").useMsgValues(e.msg.id,[(t=o("WAWebMsgGetters")).getAck,t.getCaption,(n=o("WAWebFrontendMsgGetters")).getDir,t.getId,t.getIsFromTemplate,t.getIsFailed,t.getIsSentByMe,n.getRtl,n.getSenderObj,t.getIsGroupMsg,t.getBody,t.getSupportsMessageFooter,t.getFooter,n.getText,t.getFilename,t.getIsCaptionByUser,t.getInitialPageSize]),f=_[0],g=_[1],h=_[2],y=_[3],C=_[4],b=_[5],v=_[6],S=_[7],R=_[8],L=_[9],E=_[10],k=_[11],I=_[12],T=_[13],D=_[14],x=_[15],$=_[16],P=o("useWAWebMsgValues").useMsgValues(e.msg.id,[t.getSubtype,t.getType,t.getIsVcardOverMmsDocument,n.getMediaData,t.getIsDynamicReplyButtonsMsg]),N=P[0],M=P[1],w=P[2],A=P[3],F=P[4],O=r("WAWebL10N").isRTL(),B=r("WAWebEnvironment").isWindows?u.jsx("div",babelHelpers.extends({},{0:{className:"x1n2onr6 x1n327nk x18mqm2i xhsvlbd x14z9mp xz62fqu x1wbi8v6"},1:{className:"x1n2onr6 x1n327nk xhsvlbd x14z9mp xz62fqu x1wbi8v6 xtrg13t"}}[!!O<<0],{children:u.jsx(o("WAWebMessageMeta.react").Meta,{msg:l,displayType:e.displayType})})):null,W=x?u.jsxs("div",babelHelpers.extends({},{0:{className:"x9f619 x1d8l2j3 x1yrsyyn x11lfxj5 xs9asl8 x25sj25"},1:{className:"x9f619 x1yrsyyn x11lfxj5 xs9asl8 x25sj25 xno0opx"}}[!!o("WAWebDisplayType").isWideDisplay(i)<<0],{children:[u.jsx(r("WAWebMessageCaption.react"),{msg:l.unsafe(),trusted:p,spacer:!I,testId:"document-caption"}),B]})):null,q=u.jsxs(r("WAWebMessageContentBox.react"),{displayType:i,msg:l,quotedMsg:m,showAuthor:a,hideCaption:W!=null||!(C||F),hideMeta:r("WAWebEnvironment").isWindows,trusted:p,children:[u.jsx(r("WAWebBizCtwaContext.react"),{msg:l.unsafe(),wrapperClass:"xdj266r x14z9mp xahult9 x1lziwak"}),u.jsx(r("WAWebMediaDocumentPreview"),{msg:l,displayType:i,showMessageMeta:r("WAWebEnvironment").isWindows&&W==null}),W,u.jsx(r("WAWebMediaDocumentBubbleActions.react"),{msg:l})]}),U=!!((C||F)&&g);return u.jsx("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.bubble,!W&&!r("WAWebEnvironment").isWindows&&c.bubbleExtraPadding,U&&c.templateBubble,d.get(i)),{children:q}))}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),98); __d("WAWebWdsIcHdFilledIcon.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-ic-hd-filled";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",{fill:"currentColor",d:"M14.25 13.5v-3h1c.69 0 1.25.56 1.25 1.25v.5c0 .69-.56 1.25-1.25 1.25h-1Z"}),c.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 20c-.55 0-1.02-.2-1.41-.59-.4-.39-.59-.86-.59-1.41V6c0-.55.2-1.02.59-1.41C2.98 4.19 3.45 4 4 4h16c.55 0 1.02.2 1.41.59.4.39.59.86.59 1.41v12c0 .55-.2 1.02-.59 1.41-.39.4-.86.59-1.41.59H4Zm3.5-7h2v1.25a.73.73 0 0 0 .75.75.73.73 0 0 0 .75-.75v-4.5a.73.73 0 0 0-.75-.75.73.73 0 0 0-.75.75v1.75h-2V9.75A.73.73 0 0 0 6.75 9a.73.73 0 0 0-.75.75v4.5a.73.73 0 0 0 .75.75.73.73 0 0 0 .75-.75V13Zm6.25-4a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1h1.5A2.75 2.75 0 0 0 18 12.25v-.5A2.75 2.75 0 0 0 15.25 9h-1.5Z",clipRule:"evenodd"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsIcHdFilledIcon=m}),98); __d("WAWebHDMediaIconWrapper.react",["WAWebHDMediaUtils","WAWebMediaGatingUtils","WAWebMediaTypes","WAWebMsgVideoIcon.react","WAWebWdsIcHdFilledIcon.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u={icon:{color:"xlikyye",width:"xw4jnvo",height:"x1qx5ct2",opacity:"x1iy03kw",$$css:!0}};function c(e){var t=e.height,n=e.type,r=e.width,a=e.xstyle;switch(n){case o("WAWebMediaTypes").OUTWARD_TYPES.IMAGE:{if(o("WAWebHDMediaUtils").isHdPhoto(t,r)&&o("WAWebMediaGatingUtils").isReceiveHQPhotoEnabled())return s.jsx(o("WAWebWdsIcHdFilledIcon.react").WdsIcHdFilledIcon,{xstyle:a,iconXstyle:u.icon});break}case o("WAWebMediaTypes").OUTWARD_TYPES.VIDEO:return o("WAWebHDMediaUtils").isHdVideo(t,r)?s.jsx(o("WAWebWdsIcHdFilledIcon.react").WdsIcHdFilledIcon,{xstyle:a,iconXstyle:u.icon}):s.jsx(o("WAWebMsgVideoIcon.react").MsgVideoIcon,{})}return null}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),98); __d("WAWebWamEnumPaidMessagingUserInteractionsActionTarget",[],(function(t,n,r,o,a,i){var e=Object.freeze({NONE:0,HEADER:1,CTA_COPY_CODE:2,CTA_URL:3,QUICK_REPLY:4,CTA_CALL:5,CTA_REMINDER:6,SEE_ALL:7,THUMBNAIL:8,VIEW_PRODUCT:9,URL:10,CTA_APP:11,IMAGE_HEADER_URL:12,FULLSCREEN_IMAGE_CTA_URL:13,FULLSCREEN_VIDEO_CTA_URL:14,TEXT_HEADER_URL:15,FULLSCREEN_ALBUM_CTA_URL:16,WATCH_AND_BROWSE_VIDEO:17});i.PAID_MESSAGING_USER_INTERACTIONS_ACTION_TARGET=e}),66); __d("WAWebWamEnumPaidMessagingUserInteractionsActionType",[],(function(t,n,r,o,a,i){var e=Object.freeze({VIEW:0,CLICK:1,READ:2,FORWARD:3,MEDIA_PLAYBACK:4,SHOW_MORE_CLICKED:5,CAROUSEL_SCROLLED:6});i.PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE=e}),66); __d("WAWebWamEnumPaidMessagingUserInteractionsComponentType",[],(function(t,n,r,o,a,i){var e=Object.freeze({NONE:0,HEADER:1,BUTTON:2,BODY:3,FOOTER:4});i.PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE=e}),66); __d("WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType",[],(function(t,n,r,o,a,i){var e=Object.freeze({TEXT:0,IMAGE:1,VIDEO:2,LOCATION:3,DOCUMENT:4,GIF:5});i.PAID_MESSAGING_USER_INTERACTIONS_HEADER_MEDIA_TYPE=e}),66); __d("WAWebWamEnumPaidMessagingUserInteractionsHostStorage",[],(function(t,n,r,o,a,i){var e=Object.freeze({NONE:0,ON_PREMISE:1,FACEBOOK:2});i.PAID_MESSAGING_USER_INTERACTIONS_HOST_STORAGE=e}),66); __d("WAWebWamEnumPaidMessagingUserInteractionsMarketingFormat",[],(function(t,n,r,o,a,i){var e=Object.freeze({CAROUSEL:0,MPM:1,CUSTOM:2,ALBUM:3});i.PAID_MESSAGING_USER_INTERACTIONS_MARKETING_FORMAT=e}),66); __d("WAWebWamEnumTapTargetType",[],(function(t,n,r,o,a,i){var e=Object.freeze({FULL:0,WITHOUT_TITLE:1,WITHOUT_THUMBNAIL:2,WITHOUT_TITLE_AND_THUMBNAIL:3});i.TAP_TARGET_TYPE=e}),66); __d("WAWebPaidMessagingUserInteractionsLoggerWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumPaidMessagingUserInteractionsActionTarget","WAWebWamEnumPaidMessagingUserInteractionsActionType","WAWebWamEnumPaidMessagingUserInteractionsComponentType","WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType","WAWebWamEnumPaidMessagingUserInteractionsHostStorage","WAWebWamEnumPaidMessagingUserInteractionsMarketingFormat","WAWebWamEnumTapTargetType"],(function(t,n,r,o,a,i,l){var e,s=(e=o("WAWebWamCodegenUtils")).defineEvents({PaidMessagingUserInteractionsLogger:[4740,{pmxActionTarget:[1,o("WAWebWamEnumPaidMessagingUserInteractionsActionTarget").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TARGET],pmxActionType:[2,o("WAWebWamEnumPaidMessagingUserInteractionsActionType").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE],pmxCarouselCardIndex:[14,e.TYPES.INTEGER],pmxComponentType:[3,o("WAWebWamEnumPaidMessagingUserInteractionsComponentType").PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE],pmxHashedMessageId:[13,e.TYPES.STRING],pmxHashedMessageKey:[11,e.TYPES.INTEGER],pmxHeaderMediaType:[4,o("WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType").PAID_MESSAGING_USER_INTERACTIONS_HEADER_MEDIA_TYPE],pmxHostStorage:[8,o("WAWebWamEnumPaidMessagingUserInteractionsHostStorage").PAID_MESSAGING_USER_INTERACTIONS_HOST_STORAGE],pmxMarketingFormat:[5,o("WAWebWamEnumPaidMessagingUserInteractionsMarketingFormat").PAID_MESSAGING_USER_INTERACTIONS_MARKETING_FORMAT],pmxMessageDeliveredTs:[10,e.TYPES.INTEGER],pmxMessageStanzaAcceptedTs:[12,e.TYPES.INTEGER],pmxQueryParams:[6,e.TYPES.STRING],pmxSenderCountryCode:[9,e.TYPES.STRING],pmxTapTargetType:[15,o("WAWebWamEnumTapTargetType").TAP_TARGET_TYPE],pmxTextTruncationLimit:[16,e.TYPES.INTEGER],templateId:[7,e.TYPES.STRING]},[1,1,1],"private",113760892]},{PaidMessagingUserInteractionsLogger:[]});l.PaidMessagingUserInteractionsLoggerWamEvent=s}),98); __d("WAWebInteractiveMessageCarouselLogEvents",["WALogger","WAWebInteractiveMessageHeaderMediaType","WAWebMsgCollection","WAWebPaidMessagingUserInteractionsLoggerWamEvent","WAWebWamEnumPaidMessagingUserInteractionsActionTarget","WAWebWamEnumPaidMessagingUserInteractionsActionType","WAWebWamEnumPaidMessagingUserInteractionsComponentType","WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType","WAWebWamEnumPaidMessagingUserInteractionsMarketingFormat"],(function(t,n,r,o,a,i,l){var e,s,u,c,d;function m(e,t){v(e,t)&&new(o("WAWebPaidMessagingUserInteractionsLoggerWamEvent")).PaidMessagingUserInteractionsLoggerWamEvent(babelHelpers.extends({},h(e,{duration_ms:t}),{pmxActionType:o("WAWebWamEnumPaidMessagingUserInteractionsActionType").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE.VIEW,pmxComponentType:o("WAWebWamEnumPaidMessagingUserInteractionsComponentType").PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE.NONE})).commit()}function p(e,t){if(v(e,t)){var n=y(e,{duration_ms:t});n!=null&&new(o("WAWebPaidMessagingUserInteractionsLoggerWamEvent")).PaidMessagingUserInteractionsLoggerWamEvent(babelHelpers.extends({},n,{pmxActionType:o("WAWebWamEnumPaidMessagingUserInteractionsActionType").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE.VIEW,pmxComponentType:o("WAWebWamEnumPaidMessagingUserInteractionsComponentType").PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE.NONE})).commit()}}function _(e){new(o("WAWebPaidMessagingUserInteractionsLoggerWamEvent")).PaidMessagingUserInteractionsLoggerWamEvent(babelHelpers.extends({pmxComponentType:o("WAWebWamEnumPaidMessagingUserInteractionsComponentType").PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE.HEADER,pmxActionTarget:o("WAWebWamEnumPaidMessagingUserInteractionsActionTarget").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TARGET.THUMBNAIL,pmxActionType:o("WAWebWamEnumPaidMessagingUserInteractionsActionType").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE.CLICK},y(e))).commit()}function f(e){new(o("WAWebPaidMessagingUserInteractionsLoggerWamEvent")).PaidMessagingUserInteractionsLoggerWamEvent(babelHelpers.extends({pmxComponentType:o("WAWebWamEnumPaidMessagingUserInteractionsComponentType").PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE.HEADER,pmxActionTarget:o("WAWebWamEnumPaidMessagingUserInteractionsActionTarget").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TARGET.HEADER,pmxActionType:o("WAWebWamEnumPaidMessagingUserInteractionsActionType").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE.CLICK},y(e))).commit()}function g(e,t,n){new(o("WAWebPaidMessagingUserInteractionsLoggerWamEvent")).PaidMessagingUserInteractionsLoggerWamEvent(babelHelpers.extends({pmxComponentType:o("WAWebWamEnumPaidMessagingUserInteractionsComponentType").PAID_MESSAGING_USER_INTERACTIONS_COMPONENT_TYPE.BUTTON,pmxActionTarget:t,pmxActionType:o("WAWebWamEnumPaidMessagingUserInteractionsActionType").PAID_MESSAGING_USER_INTERACTIONS_ACTION_TYPE.CLICK},y(e,{button_index:n}))).commit()}function h(t,n){var r,a=t.carouselCards;if(a==null)return o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["buildBasicLoggingArgsFromCarouselMsg: carouselMsg.carouselCards is null."]))),null;var i=a.head();if(i==null)return o("WALogger").WARN(s||(s=babelHelpers.taggedTemplateLiteralLoose(["buildBasicLoggingArgsFromCarouselMsg: carouselCards.head() returned nothing."]))),null;var l=C(i);return l==null?null:{pmxMarketingFormat:o("WAWebWamEnumPaidMessagingUserInteractionsMarketingFormat").PAID_MESSAGING_USER_INTERACTIONS_MARKETING_FORMAT.CAROUSEL,pmxHeaderMediaType:l,pmxQueryParams:JSON.stringify(babelHelpers.extends({},n,{num_cards:a.length})),templateId:(r=t.templateId)!=null?r:""}}function y(e,t){var n=e.parentMsgId;if(n==null)return o("WALogger").WARN(u||(u=babelHelpers.taggedTemplateLiteralLoose(["buildBasicLoggingArgsFromCarouselCard: carouselCard.parentMsgId is null."]))),null;var r=o("WAWebMsgCollection").MsgCollection.get(n.toString());if(r==null)return null;var a=r.carouselCards;if(a==null)return o("WALogger").WARN(c||(c=babelHelpers.taggedTemplateLiteralLoose(["buildBasicLoggingArgsFromCarouselCard: carouselMsg.carouselCards is null."]))),null;var i=a.slice();return h(r,babelHelpers.extends({},t,{card_index:i.findIndex(function(t){return t.id.toString()===e.id.toString()})}))}function C(e){var t,n=(t=e.interactiveHeader)==null?void 0:t.mediaType;if(n==null)return o("WALogger").WARN(d||(d=babelHelpers.taggedTemplateLiteralLoose(["getHeaderFromCarouselCard: msg.interactiveHeader?.mediaType is null."]))),null;switch(n){case o("WAWebInteractiveMessageHeaderMediaType").InteractiveMessageHeaderMediaType.IMAGE:return o("WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType").PAID_MESSAGING_USER_INTERACTIONS_HEADER_MEDIA_TYPE.IMAGE;case o("WAWebInteractiveMessageHeaderMediaType").InteractiveMessageHeaderMediaType.VIDEO:return o("WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType").PAID_MESSAGING_USER_INTERACTIONS_HEADER_MEDIA_TYPE.VIDEO;case o("WAWebInteractiveMessageHeaderMediaType").InteractiveMessageHeaderMediaType.DOCUMENT:return o("WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType").PAID_MESSAGING_USER_INTERACTIONS_HEADER_MEDIA_TYPE.DOCUMENT;case o("WAWebInteractiveMessageHeaderMediaType").InteractiveMessageHeaderMediaType.PRODUCT:return o("WAWebWamEnumPaidMessagingUserInteractionsHeaderMediaType").PAID_MESSAGING_USER_INTERACTIONS_HEADER_MEDIA_TYPE.IMAGE}}var b={};function v(e,t){var n=e.id.toString();return b[n]!=null&&b[n]>t?!1:(b[n]=t,!0)}l.logViewCarousel=m,l.logViewCarouselCard=p,l.logCarouselCardClickToDownload=_,l.logCarouselCardClickToView=f,l.logCarouselCardClickCTA=g}),98); __d("WAWebMediaUnsupportedModal.react",["fbt","WAWebConfirmPopup.react","WAWebFileSaver","WAWebModalManager","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("WAWebModalManager").ModalManager.close(),o("WAWebFileSaver").FileSaver.initDownload(t)};return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onCancel:d,onOK:n,okText:s._(/*BTDS*/"Descargar"),cancelText:s._(/*BTDS*/"Cancelar"),title:s._(/*BTDS*/"\u00bfDescargar archivo no compatible?"),children:s._(/*BTDS*/"Este archivo no se puede abrir en WhatsApp Web. \u00bfDeseas realizar la descarga y abrir el archivo con otra aplicaci\u00f3n en tu computadora?")})}c.displayName=c.name+" [from "+i.id+"]";function d(){o("WAWebModalManager").ModalManager.close()}l.default=c}),226); __d("WAWebMessageThumbShadeBottom.react",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){return s.jsx("div",{className:"x10l6tqk x1ey2m1c x1o0tod xhtitgo xh8yej3 x1949l9f x1q46arx"})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMessageThumbShadeTop.react",["react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(){return s.jsx("div",{className:"x10l6tqk x13vifvy x1o0tod xhtitgo xh8yej3 x1949l9f xtf4lto x47corl"})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMusicAttributionLoadable.react",["JSResourceForInteraction","WAWebLazyLoadLoading.react","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebMusicStatusAttribution.react").__setRef("WAWebMusicAttributionLoadable.react").load();return e.MusicAttribution}),"MusicStatusAttribution"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLazyLoadLoading.react"),{error:!!t.error})}});l.MusicAttributionLoadable=c}),98); __d("WAWebMusicAttributionModalLoadable.react",["JSResourceForInteraction","WAWebLazyLoadLoading.react","WAWebLazyLoadedRetriable","WAWebLoadable","asyncToGeneratorRuntime","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=r("WAWebLazyLoadedRetriable")(n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e=yield r("JSResourceForInteraction")("WAWebMusicStatusAttribution.react").__setRef("WAWebMusicAttributionModalLoadable.react").load();return e.showMusicStatusAttributionModal}),"MusicStatusAttributionModal"),c=r("WAWebLoadable")({loader:u,loading:function(t){return s.jsx(r("WAWebLazyLoadLoading.react"),{error:!!t.error})}});function d(e,t,n){return m.apply(this,arguments)}function m(){return m=n("asyncToGeneratorRuntime").asyncToGenerator(function*(e,t,n){var r=yield u();return r(e,t,n)}),m.apply(this,arguments)}l.MusicAttributionModalLoadable=c,l.showMusicStatusAttributionModalLoadable=d}),98); __d("WAWebMusicNewsletterAttribution.react",["WAWebClickable.react","WAWebMsgGetters","WAWebMusicAttributionLoadable.react","WAWebMusicAttributionModalLoadable.react","WAWebMusicGatingUtils","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react"));function u(e){var t=e.mediaController,n=e.msg,r=e.playing,a=e.xstyle,i=o("useWAWebMsgValues").useMsgValues(n.id,[o("WAWebMsgGetters").getIsNewsletterMsg,o("WAWebMsgGetters").getFirstMusicAnnotation]),l=i[0],u=i[1],c=l&&u!=null,d=o("useWAWebMsgValues").useMsgValues(n.id,[o("WAWebMsgGetters").getFirstMusicAnnotationEmbeddedContent]),m=d[0];if(!c||m==null||!o("WAWebMusicGatingUtils").isStatusMusicReceiverEnabledForNewsletter())return null;var p=function(r){r.preventDefault(),r.stopPropagation(),o("WAWebMusicAttributionModalLoadable.react").showMusicStatusAttributionModalLoadable(m,n.unsafe(),t)};return s.jsx(o("WAWebClickable.react").Clickable,{onClick:p,children:s.jsx(o("WAWebMusicAttributionLoadable.react").MusicAttributionLoadable,{xstyle:a,msg:n.unsafe(),musicMetadata:m,playing:r})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebVideoPipIcon.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="video-pip";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",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("defs",{children:c.jsxs("filter",{x:"-39.5%",y:"-46.4%",width:"173.7%",height:"200.0%",filterUnits:"objectBoundingBox",id:"video-pip-filter-1",children:[c.jsx("feOffset",{dx:0,dy:1,in:"SourceAlpha",result:"shadowOffsetOuter1"}),c.jsx("feGaussianBlur",{stdDeviation:1,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),c.jsx("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0",type:"matrix",in:"shadowBlurOuter1",result:"shadowMatrixOuter1"}),c.jsxs("feMerge",{children:[c.jsx("feMergeNode",{in:"shadowMatrixOuter1"}),c.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),c.jsx("g",{stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd",children:c.jsxs("g",{filter:"url(#video-pip-filter-1)",transform:"translate(3.000000, 4.000000)",fill:"#FFFFFF",children:[c.jsx("path",{d:"M11.3499993,5.99999964 L17.349999,5.99999964 C18.0123989,5.99999964 18.5499989,5.46239967 18.5499989,4.79999971 L18.5499989,1.19999993 C18.5499989,0.537599968 18.0123989,0 17.349999,0 L11.3499993,0 C10.6875994,0 10.1499994,0.537599968 10.1499994,1.19999993 L10.1499994,4.79999971 C10.1499994,5.46239967 10.6875994,5.99999964 11.3499993,5.99999964"}),c.jsx("path",{d:"M8.64999941,1.87499984 L8.64999941,3.37499984 L1.20029993,3.37499984 C0.951778708,3.37499984 0.7503,3.57654815 0.7503,3.82499977 L0.7503,12.4249992 C0.7503,12.6734508 0.951778708,12.8749991 1.20029993,12.8749991 L14.6002991,12.8749991 C14.8484855,12.8749991 15.050299,12.6731856 15.050299,12.4249992 L15.050299,7.17479957 L16.550299,7.17479957 L16.550299,12.4249992 C16.550299,13.5016127 15.6769126,14.3749991 14.6002991,14.3749991 L1.20029993,14.3749991 C0.123235593,14.3749991 -0.7497,13.501762 -0.7497,12.4249992 L-0.7497,3.82499977 C-0.7497,2.74823697 0.123235593,1.87499984 1.20029993,1.87499984 L8.64999941,1.87499984 Z",fillRule:"nonzero"})]})})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.VideoPipIcon=m}),98); __d("WAWebPipButton.react",["fbt","WAWebVideoPipIcon.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={PLAYER:"PLAYER",PREVIEW:"PREVIEW"};function d(e){var t=e.onClick,n=e.ref,r=e.theme;return u.jsx("button",babelHelpers.extends({ref:n},{0:{className:"x10l6tqk x11uqc5h x1ypdohk"},2:{className:"x10l6tqk x11uqc5h x1ypdohk xfr5jun x12em2mw"},1:{className:"x10l6tqk x11uqc5h x1ypdohk x1atx4j1 x5tdj20"},3:{className:"x10l6tqk x11uqc5h x1ypdohk x12em2mw x1atx4j1 x5tdj20"}}[(r===c.PLAYER)<<1|(r===c.PREVIEW)<<0],{onClick:t,"aria-label":s._(/*BTDS*/"Modo imagen en imagen"),children:u.jsx(o("WAWebVideoPipIcon.react").VideoPipIcon,{})}))}d.displayName=d.name+" [from "+i.id+"]",l.PIP_BUTTON_THEME=c,l.PiPButton=d}),226); __d("WAWebVideoPreview.react",["fbt","WALogger","WAUnicodeUtils","WAWebABProps","WAWebClickable.react","WAWebClock","WAWebCmd","WAWebDisplayType","WAWebFrontendMsgGetters","WAWebHDMediaIconWrapper.react","WAWebHDMediaUtils","WAWebInteractiveMessageCarouselLogEvents","WAWebMedia","WAWebMediaConstants","WAWebMediaMissingModal.react","WAWebMediaOpaqueData","WAWebMediaStateControls.react","WAWebMediaTypes","WAWebMediaUnsupportedModal.react","WAWebMessageCropping","WAWebMessageThumbShadeBottom.react","WAWebMessageThumbShadeTop.react","WAWebMiscGatingUtils","WAWebModalManager","WAWebMsgGetters","WAWebMusicNewsletterAttribution.react","WAWebPipButton.react","WAWebPipController","WAWebPipOverlay.react","WAWebShowMediaNotReadableModal","WAWebStateUtils","WAWebTypesMedia","WAWebURLUtils","WAWebVideo.react","WAWebVideoPipLargeIcon.react","WAWebWamChatPSALogger","WAWebWamEnumWebcRmrReasonCode","isStringNullOrEmpty","react","stylex","useWAWebListener","useWAWebModelValues","useWAWebMsgValues"],(function(t,n,r,o,a,i,l,s){var e,u=["ref"],c,d,m,p=m||(m=o("react")),_=c||(c=r("react")),f=p.useEffect,g=p.useImperativeHandle,h=p.useRef,y=p.useState,C="xekv6nw-B",b={thumb:{position:"x1n2onr6",display:"x78zum5",alignItems:"x6s0dn4",justifyContent:"xl56j7k",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",backgroundColor:"xkgd8lh",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769","::before_position":"x1hmns74","::before_top":"x1y3wzot","::before_insetInlineStart":"x1682cnc","::before_zIndex":"xvi4grz","::before_width":"x1rmj1tg","::before_height":"xszcg87","::before_content":"x1cpjm7i","::before_opacity":"x56jcce",$$css:!0},inAlbum:{height:"x19hm5wc",paddingTop:"xexx8yu",paddingInlineEnd:"xyri2b",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",$$css:!0},cursorPointer:{cursor:"x1ypdohk",$$css:!0},musicAttribution:{zIndex:"x11uqc5h",position:"x10l6tqk",top:"xfr5jun",insetInlineStart:"xrr41r3",insetInlineEnd:"x1f889gz",left:null,right:null,$$css:!0},musicAttributionHover:{insetInlineStart:"x9pwknu",insetInlineEnd:"xeer0ze",left:null,right:null,transition:"x1xgqf3o",$$css:!0},thumbChannelAlerts:{maxHeight:"xuyqlj2",$$css:!0},overlay:{position:"x1n2onr6",maxWidth:"xjmpccy",marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak","::before_position":"x1hmns74","::before_zIndex":"x6m1997","::before_width":"x1rmj1tg","::before_height":"xszcg87","::before_content":"x1cpjm7i","::before_background":"x7wzjsu","::before_borderStartStartRadius":"x1nf3qbo","::before_borderStartEndRadius":"x1k12aft","::before_borderEndEndRadius":"xptwhb6","::before_borderEndStartRadius":"x10ad0jm",$$css:!0},ctwaThumbWidth:{width:"xg80ozm",$$css:!0}},v={PREVIEW:"PREVIEW",FLOATER:"FLOATER"};function S(t){var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,u),l=i.albumMsgs,c=i.currentAlbumMessageIndex,m=c===void 0?0:c,p=i.displayType,C=i.hasOverlay,S=C===void 0?!1:C,L=i.maxWidth,E=i.msg,k=i.theme,I=o("useWAWebMsgValues").useMsgValues(i.msg.id,[o("WAWebMsgGetters").getAck,o("WAWebMsgGetters").getCaption,o("WAWebFrontendMsgGetters").getDir,o("WAWebMsgGetters").getFooter,o("WAWebMsgGetters").getIsCarouselCard,o("WAWebMsgGetters").getGifAttribution,o("WAWebMsgGetters").getId,o("WAWebMsgGetters").getIsGroupMsg,o("WAWebMsgGetters").getIsPSA,o("WAWebMsgGetters").getIsSentByMe,o("WAWebFrontendMsgGetters").getIsUnsentMedia,o("WAWebFrontendMsgGetters").getRtl,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getType,o("WAWebMsgGetters").getIsFailed,o("WAWebMsgGetters").getCtwaContext,o("WAWebMsgGetters").getSupportsMessageFooter,o("WAWebFrontendMsgGetters").getText]),T=I[0],D=I[1],x=I[2],$=I[3],P=I[4],N=I[5],M=I[6],w=I[7],A=I[8],F=I[9],O=I[10],B=I[11],W=I[12],q=I[13],U=I[14],V=I[15],H=I[16],G=I[17],z=o("useWAWebMsgValues").useMsgValues(i.msg.id,[o("WAWebMsgGetters").getCampaignId]),j=z[0],K=o("useWAWebMsgValues").useMsgValues(i.msg.id,[o("WAWebMsgGetters").getIsNewsletterMsg,o("WAWebMsgGetters").getFirstMusicAnnotation]),Q=K[0],X=K[1],Y=Q&&X!=null;o("useWAWebModelValues").useModelValues(i.mediaData,["aspectRatio","preview","fullPreviewData","duration","mediaStage","fullWidth","fullHeight","size"]);var J=h(null),Z=h(null),ee=i.mediaData,te=k===o("WAWebTypesMedia").DisplayTheme.Album||k===o("WAWebTypesMedia").DisplayTheme.AlbumV2,ne=y(function(){return r("WAWebPipController").isOpened(o("WAWebStateUtils").unproxy(E.unsafe()))?v.FLOATER:v.PREVIEW}),re=ne[0],oe=ne[1],ae=A&&o("WAWebABProps").getABPropConfigValue("enable_chat_psa_auto_play_videos"),ie=function(t){var e=Z.current;ee.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED&&re!==v.FLOATER&&e&&(t&&t.stopPropagation(),e.play())},le=function(t){var e=Z.current;ee.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED&&e&&(t&&t.stopPropagation(),e.pauseAndReset())};f(function(){o("WAWebMiscGatingUtils").isHighQualityVideoThumbnailsEnabled()&&o("WAWebMedia").downloadVideoThumbnail({msg:o("WAWebStateUtils").unproxy(E),chat:o("WAWebFrontendMsgGetters").getChat(E.unsafe())}),ae&&E.downloadMedia({downloadEvenIfExpensive:!1,rmrReason:o("WAWebWamEnumWebcRmrReasonCode").WEBC_RMR_REASON_CODE.MSG_RENDER,isUserInitiated:!1})},[]);var se=function(){o("WAWebModalManager").ModalManager.open(_.jsx(r("WAWebMediaMissingModal.react"),{msg:E.unsafe()}))},ue=function(){E.forceDownloadMediaEvenIfExpensive(),R("clickToDownload",o("WAWebStateUtils").unproxy(E.unsafe()))},ce=function(){E.cancelDownload()},de=function(){E.cancelUpload()},me=function(){E.resumeUpload()},pe=function(){E.resumeRemoteUpload()},_e=function(t){t&&t.stopPropagation(),o("WAWebModalManager").ModalManager.open(_.jsx(r("WAWebMediaUnsupportedModal.react"),{msg:o("WAWebStateUtils").unproxy(E.unsafe())}))},fe=function(t){if(t&&t.stopPropagation(),A&&o("WAWebWamChatPSALogger").logChatPSAMediaPlay(E.getWamMediaType(),j,M.id),R("clickToDownload",o("WAWebStateUtils").unproxy(E.unsafe())),te){var e=i.zoomMsg||E,n=new Set((l||[]).map(function(e){return e.id.toString()}));o("WAWebCmd").Cmd.mediaViewerModal({msg:o("WAWebStateUtils").unproxy(e.unsafe()),highlightedMsgIds:n})}else o("WAWebCmd").Cmd.mediaViewerModal({msg:o("WAWebStateUtils").unproxy(E.unsafe())})},ge=function(t){t&&t.stopPropagation(),ae&&le();var e=J.current?J.current.getBoundingClientRect():null;r("WAWebPipController").openPiP(o("WAWebStateUtils").unproxy(E.unsafe()),0,e)},he=function(){re!==v.PREVIEW&&oe(v.PREVIEW)},ye=function(){re!==v.FLOATER&&oe(v.FLOATER)};g(a,function(){return{play:fe}}),o("useWAWebListener").useListener(r("WAWebPipController"),M.toString()+"_pip_did_open",ye),o("useWAWebListener").useListener(r("WAWebPipController"),M.toString()+"_pip_did_close",he);var Ce=null,be=null,ve=ee.mediaStage;switch(ve){case o("WAWebMediaTypes").MediaDataStage.RESOLVED:ae?(ie(),be=fe):(Ce=_.jsx(o("WAWebMediaStateControls.react").Play,{}),be=fe);break;case o("WAWebMediaTypes").MediaDataStage.INIT:case o("WAWebMediaTypes").MediaDataStage.EXISTS:Ce=_.jsx(o("WAWebMediaStateControls.react").Play,{}),be=fe;break;case o("WAWebMediaTypes").MediaDataStage.NEED_POKE:Ce=_.jsx(o("WAWebMediaStateControls.react").Download,{filesize:ee.size}),be=ue;break;case o("WAWebMediaTypes").MediaDataStage.UPLOADING:case o("WAWebMediaTypes").MediaDataStage.FINALIZING:Ce=_.jsx(o("WAWebMediaStateControls.react").Pending,{cancelable:!0}),be=de;break;case o("WAWebMediaTypes").MediaDataStage.FETCHING:Ce=_.jsx(o("WAWebMediaStateControls.react").Pending,{cancelable:!0}),be=ce;break;case o("WAWebMediaTypes").MediaDataStage.NEED_UPLOAD:Ce=_.jsx(o("WAWebMediaStateControls.react").Upload,{filesize:ee.size}),be=me;break;case o("WAWebMediaTypes").MediaDataStage.REMOTE_NEED_UPLOAD:Ce=_.jsx(o("WAWebMediaStateControls.react").Upload,{filesize:ee.size}),be=pe;break;case o("WAWebMediaTypes").MediaDataStage.ERROR_MISSING:be=se;break;case o("WAWebMediaTypes").MediaDataStage.ERROR_UNSUPPORTED:O||(Ce=_.jsx(o("WAWebMediaStateControls.react").Download,{filesize:ee.size}),be=_e);break;case o("WAWebMediaTypes").MediaDataStage.SENDING:U||(Ce=_.jsx(o("WAWebMediaStateControls.react").Pending,{}));break;case o("WAWebMediaTypes").MediaDataStage.ERROR_FILE_NOT_READABLE:o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["Videos should be copied in memory when selected"]))).sendLogs("media-image-not-readable-error"),be=r("WAWebShowMediaNotReadableModal");break;case o("WAWebMediaTypes").MediaDataStage.DECRYPTING:case o("WAWebMediaTypes").MediaDataStage.ERROR_TOO_LARGE:case o("WAWebMediaTypes").MediaDataStage.PREPARING:case o("WAWebMediaTypes").MediaDataStage.PROGRESSIVE_READY:case o("WAWebMediaTypes").MediaDataStage.REMOTE_UPLOADING:case o("WAWebMediaTypes").MediaDataStage.REUPLOADING:Ce=_.jsx(o("WAWebMediaStateControls.react").Pending,{});break}p===o("WAWebDisplayType").DISPLAY_TYPE.EDITING&&(be=null);var Se=parseInt(ee.duration,10)?o("WAWebClock").Clock.durationStr(ee.duration):null,Re=r("isStringNullOrEmpty")(Se)?null:_.jsxs("span",{className:"x78zum5 x6s0dn4 x10l6tqk xy1j3rs xrr41r3 x11uqc5h xx3o462 x1ncwhqj x152skdk x1dxgm4b",children:[_.jsx("div",babelHelpers.extends({},{0:{className:"x1rg5ohu x1p8j9ns x17t9dm2 x16dsc37"},1:{className:"x1rg5ohu x1p8j9ns x17t9dm2 x16dsc37 x4h0osi"}}[!!o("WAWebHDMediaUtils").isHdVideo(ee.fullHeight,ee.fullWidth)<<0],{children:_.jsx(r("WAWebHDMediaIconWrapper.react"),{height:ee.fullHeight,width:ee.fullWidth,type:ee.type})})),_.jsx("span",{children:Se})]}),Le=o("WAUnicodeUtils").numCodepoints(G!=null?G:"")>o("WAWebMediaConstants").MAX_PORTRAIT_MEDIA_CAPTION_LENGTH,Ee=o("WAWebMessageCropping").getBubbleDimension(q,!1,P,ee.aspectRatio,m,(n=l==null?void 0:l.length)!=null?n:0,k,p,Le,L),ke=Ee.bubbleHeight,Ie=Ee.bubbleWidth,Te=babelHelpers.extends({width:Ie,height:ke},k===o("WAWebTypesMedia").DisplayTheme.AlbumV2&&{transition:"height 0.3s ease-in-out, width 0.3s ease-in-out"}),De=ee.fullHeight||ke,xe=ee.fullWidth||Ie,$e=o("WAWebMessageCropping").getImgStyle(xe,De,Ie,ke),Pe=function(t){return t instanceof r("WAWebMediaOpaqueData")?babelHelpers.extends({backgroundImage:r("WAWebURLUtils").thumbAsBackgroundImage(t.url()).backgroundImage},$e):void 0},Ne=Pe(ee.preview),Me=Pe(ee.fullPreviewData),we=ee.aspectRatio>=1?{width:"auto",height:ke}:{width:Ie,height:"auto"},Ae=ee.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED&&ae?_.jsx("div",{className:"x1n2onr6 x78zum5 x1okw0bk x6s0dn4 xl56j7k xh8yej3 x5yr21d",children:_.jsx(r("WAWebVideo.react"),{ref:Z,src:ee.renderableUrl,style:we,onEnded:ie,onLoadedMetadata:ie,autoPlay:!0,muted:!0})}):_.jsxs(_.Fragment,{children:[Ne?_.jsx("div",{className:"x10l6tqk x1hhq9f1 x1ezo4zr x1vjfegm x1okw0bk xh8yej3 x5yr21d x121ad3m x1y2vyrr x1qp9xe7 xeykx7r xztyhrg x18d0r48 x14tgpju",style:Ne}):null,Me?_.jsx("div",{className:"x10l6tqk x1hhq9f1 x1ezo4zr x1vjfegm x1okw0bk xh8yej3 x5yr21d x121ad3m x1y2vyrr x1qp9xe7 xeykx7r xztyhrg x18d0r48 x127lhb5 x4afe7t xa3vuyk x10e4vud",style:Me}):null]}),Fe;switch(ee.mediaStage){case o("WAWebMediaTypes").MediaDataStage.INIT:case o("WAWebMediaTypes").MediaDataStage.RESOLVED:Fe=_.jsx("div",babelHelpers.extends({},{0:{className:"x1rozsjd xg01cxk x23gdha"},1:{className:"x1rozsjd x23gdha x1hc1fzr"}}[(i.hover===!0)<<0],{children:_.jsx(o("WAWebPipButton.react").PiPButton,{onClick:ge,theme:o("WAWebPipButton.react").PIP_BUTTON_THEME.PREVIEW})}));break;default:Fe=null}var Oe=_.jsx(r("WAWebMessageThumbShadeBottom.react"),{}),Be=Y?_.jsx(r("WAWebMessageThumbShadeTop.react"),{}):null;p===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW&&(be=null,Fe=null,Ce=null,Oe=null);var We;switch(re){case v.PREVIEW:We=_.jsxs(_.Fragment,{children:[Fe,Ce]});break;case v.FLOATER:We=_.jsx(r("WAWebPipOverlay.react"),{icon:_.jsx(o("WAWebVideoPipLargeIcon.react").VideoPipLargeIcon,{}),children:s._(/*BTDS*/"Este video se est\u00e1 reproduciendo en modo imagen en imagen.")});break}return _.jsxs(o("WAWebClickable.react").Clickable,{ref:J,dataTestId:"video-content",className:(d||(d=r("stylex")))(b.thumb,te&&b.inAlbum,re===v.PREVIEW&&p!==o("WAWebDisplayType").DISPLAY_TYPE.EDITING&&b.cursorPointer,S===!0&&b.overlay,V!=null&&b.ctwaThumbWidth,p===o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS&&b.thumbChannelAlerts),onClick:be,inlineStyle:Te,children:[S||k===o("WAWebTypesMedia").DisplayTheme.AlbumV2||p===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW?null:We,Ae,Oe,Be,S||p===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW?null:Re,_.jsx(r("WAWebMusicNewsletterAttribution.react"),{playing:!1,msg:E.unsafe(),xstyle:i.hover===!0?[b.musicAttribution,b.musicAttributionHover]:b.musicAttribution})]})}S.displayName=S.name+" [from "+i.id+"]";function R(e,t){if(t.isCarouselCard)switch(e){case"clickToDownload":o("WAWebInteractiveMessageCarouselLogEvents").logCarouselCardClickToDownload(t);return;case"clickToView":o("WAWebInteractiveMessageCarouselLogEvents").logCarouselCardClickToView(t)}}l.default=S}),226); __d("WAWebMediaVideo.react",["WAUnicodeUtils","WAWebBizCtwaContext.react","WAWebBizTemplateMessageFooter.react","WAWebDisplayType","WAWebFrontendMsgGetters","WAWebMediaConstants","WAWebMessageAuthor.react","WAWebMessageBubbleHiddenText.react","WAWebMessageCaption.react","WAWebMessageCropping","WAWebMessageForwardedIndicator.react","WAWebMessageMeta.react","WAWebMessagePaidPartnershipDisclaimerText.react","WAWebMsgGetters","WAWebMsgSelectors","WAWebStopEvent","WAWebTypesMedia","WAWebVideoPreview.react","react","stylex","useWAWebModelValues","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e=["ref"],s,u,c,d=c||(c=o("react")),m=s||(s=r("react")),p=d.useImperativeHandle,_=d.useRef,f={bubble:{boxSizing:"x9f619",maxWidth:"xlkrthq",position:"x1n2onr6",zIndex:"x1vjfegm",$$css:!0},bubbleAnnouncement:{maxWidth:"xmewjk2",$$css:!0},bubbleChannelAlerts:{maxWidth:"xmewjk2",$$css:!0},portrait:{maxWidth:"xf58f5l",$$css:!0},ctwaContainerWidth:{maxWidth:"x1mvkqlo",$$css:!0},forwardedIndicator:{paddingTop:"xyqdw3p",paddingInlineEnd:"xyri2b",paddingBottom:"xg8j3zb",paddingInlineStart:"x25sj25",$$css:!0},hasAuthorForwardedIndicator:{paddingTop:"xexx8yu",$$css:!0},nonAlbumBubble:{paddingTop:"xyqdw3p",paddingInlineEnd:"x1im30kd",paddingBottom:"xg8j3zb",paddingInlineStart:"x1djpfga",$$css:!0}};function g(t){var n,a,i=t.ref,l=babelHelpers.objectWithoutPropertiesLoose(t,e),s=l.currentAlbumMessageIndex,c=s===void 0?0:s,d=l.displayAuthor,g=l.displayType,h=l.msg,y=l.overlayContent,C=l.theme,b=_(null),v=function(t){var e;t.preventDefault(),(e=b.current)==null||e.play(t)};p(i,function(){return{handleKeyActivation:v}});var S=o("useWAWebMsgValues").useMsgValues(l.msg.id,[o("WAWebMsgGetters").getAck,o("WAWebMsgGetters").getCaption,o("WAWebFrontendMsgGetters").getDir,o("WAWebMsgGetters").getFooter,o("WAWebMsgGetters").getId,o("WAWebMsgGetters").getIsCarouselCard,o("WAWebMsgGetters").getIsGroupMsg,o("WAWebMsgGetters").getIsPSA,o("WAWebMsgGetters").getIsSentByMe,o("WAWebFrontendMsgGetters").getIsUnsentMedia,o("WAWebFrontendMsgGetters").getRtl,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getType,o("WAWebMsgGetters").getIsFailed,o("WAWebMsgGetters").getCtwaContext,o("WAWebMsgGetters").getSupportsMessageFooter,o("WAWebFrontendMsgGetters").getText]),R=S[0],L=S[1],E=S[2],k=S[3],I=S[4],T=S[5],D=S[6],x=S[7],$=S[8],P=S[9],N=S[10],M=S[11],w=S[12],A=S[13],F=S[14],O=S[15],B=S[16],W=o("useWAWebModelValues").useModelValues(l.msg.mediaData,["aspectRatio"]),q=o("WAUnicodeUtils").numCodepoints(B!=null?B:"")>o("WAWebMediaConstants").MAX_PORTRAIT_MEDIA_CAPTION_LENGTH,U=o("WAWebMessageCropping").getBubbleDimension(w,!1,T,W.aspectRatio,c,(n=(a=l.albumMsgs)==null?void 0:a.length)!=null?n:0,C,g,q),V=U.bubbleHeight,H=U.bubbleWidth,G=Ht/n?(a=a*n/i,i=n):(i=i*t/a,a=t),i>K&&(i=K),{bubbleWidth:t,bubbleHeight:n,contentWidth:a,contentHeight:i}},me=function(t){if(d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW)return{bubbleWidth:t,bubbleHeight:t,contentWidth:t,contentHeight:t};var e=F.aspectRatio||F.fullWidth/F.fullHeight,n,r,a=Q*1.2;e>=1?t=v&&rt&&(n=t));var i=n,l=r;return i/l>n/r?(i=i*r/l,l=r):(l=l*n/i,i=n),{bubbleWidth:n,bubbleHeight:r,contentWidth:i,contentHeight:l}},pe=function(){var e;return(e=O.current)==null?void 0:e.underlyingVideo()},_e=function(){return q.current};f(c,function(){return{getImgNode:pe,handleKeyActivation:ce,pause:Y,getPlayCount:_e}});var fe=r("useWAWebIntersection")({root:null,threshold:.99}),ge=fe[0],he=fe[1].isIntersecting;o("useWAWebSendViewCount").useSendViewCount(E.id,{mediaData:A,isIntersecting:he,displayType:d.displayType}),_(function(){self.setTimeout(function(){z.aborted||j.autoplayAnimatedImages===!0&&F.mediaStage===o("WAWebMediaTypes").MediaDataStage.RESOLVED&&he&&te()},100)},[F.mediaStage,he]);var ye=F.preview instanceof r("WAWebMediaOpaqueData")?F.preview.url():void 0,Ce=null,be=de();d.maxWidth!=null&&d.maxWidth=1?{width:"auto",height:Re}:{width:Le,height:"auto"};Ce=p.jsx("div",{className:"_ahn7",children:p.jsx(r("WAWebVideo.react"),{ref:O,src:F.renderableUrl,style:ke,onEnded:J,onLoadedMetadata:function(){B.current=!0,j.autoplayAnimatedImages===!0&&W.current&&te()},muted:!0,children:Ee})})}var Ie=ye?p.jsx("div",{className:"_ahn8",style:{backgroundImage:"url("+ye+")"}}):null,Te=D?p.jsx("div",{className:"_ahn5",style:{maxWidth:o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS?"100%":Se},children:p.jsx(r("WAWebMessageCaption.react"),{msg:E.unsafe(),trusted:d.trusted,testId:"gif-caption"})}):null,De=Te?null:p.jsx(r("WAWebMessageThumbShadeBottom.react"),{}),xe=o("WAWebMsgSelectors").showForwarded(E)&&d.displayType!==o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW,$e=o("WAWebDisplayType").isWideDisplay(d.displayType),Pe=o("WAWebClassnames").classnamesConvertMeToStylexPlease((n={},n["_ahm-"]=!r("isStringNullOrEmpty")(D),n._ahn2=d.displayAuthor,n._ahn0=xe,n._ahn6=$,n._ahn9=d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS||d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.GALLERY,n._ahna=d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.MSG_INFO,n._ak_x=$e,n._ahmx=!0,n._anjj=d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS,n)),Ne=d.displayAuthor?p.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a._ahm_=!0,a._ak_y=d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT||d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER,a)),children:p.jsx(r("WAWebMessageAuthor.react"),{msg:E,contact:w,displayType:d.displayType})}):null,Me=xe?p.jsx(r("WAWebMessageForwardedIndicator.react"),{msg:E.unsafe(),className:"_ahn1"}):null,we=p.jsx(r("WAWebMessagePaidPartnershipDisclaimerText.react"),{msg:E}),Ae;switch(M){case o("WAWebProtobufsE2E.pb").Message$VideoMessage$Attribution.GIPHY:Ae=p.jsx("div",{className:"_ahmy",children:p.jsx(o("WAWebGiphyIcon.react").GiphyIcon,{})});break;case o("WAWebProtobufsE2E.pb").Message$VideoMessage$Attribution.TENOR:Ae=p.jsx("div",{className:"_ahmy",children:p.jsx(o("WAWebTenorIcon.react").TenorIcon,{})});break;default:Ae=null}var Fe=d.quotedMsg?p.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((i={},i._ahn3=!0,i._al0h=d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT||d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER,i)),children:d.quotedMsg}):null,Oe=d.hideMeta===!0?null:p.jsx("div",{className:"_ahmz",children:p.jsx(o("WAWebMessageMeta.react").Meta,{msg:E,displayType:d.displayType})}),Be=p.jsx(r("WAWebMessageGifState.react"),{mediaStage:F.mediaStage,mediaDataFileSize:F.size,isFailed:x,shouldPlay:le(),onClick:ue}),We={width:Le,height:Re};if(d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER_PREVIEW){var qe;Ce=null,Te=null,De=null,Ae=null,Be=null,We.minHeight=(qe=d.maxWidth)!=null?qe:56}var Ue=o("WAWebClassnames").classnamesConvertMeToStylexPlease((l={},l._ahn4=!0,l._anjk=d.displayType===o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS,l)),Ve=p.jsxs(p.Fragment,{children:[Ne,Me,we,Fe,p.jsx(r("WAWebBizCtwaContext.react"),{msg:E.unsafe(),wrapperClass:"_ahnb"}),p.jsxs(o("WAWebClickable.react").Clickable,{ref:ge,dataTestId:"image-thumb-gif",className:Ue,onClick:ue,ariaLabel:u._(/*BTDS*/"Reproducir GIF"),inlineStyle:We,children:[Be,Ie,Ce,De,Ae]}),Te,Oe]});if(Te)return p.jsx(r("WAWebMessageBubbleHiddenText.react"),{contact:w,msg:E.unsafe(),className:Pe,onClick:o("WAWebStopEvent").stopPropagation,style:{width:o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS?"100%":Se},children:Ve});var He=Se+b*2;return p.jsx("div",{className:Pe,onClick:o("WAWebStopEvent").stopPropagation,style:{width:o("WAWebDisplayType").DISPLAY_TYPE.CHANNEL_ALERTS_MSGS?"100%":He},children:Ve})}E.displayName=E.name+" [from "+i.id+"]";var k=E;l.WrappedGif=k}),226); __d("WAWebMessagePicture.react",["fbt","WALogger","WAUnicodeUtils","WAWebBizCtwaContext.react","WAWebBizTemplateMessageFooter.react","WAWebClassnames","WAWebClickable.react","WAWebCmd","WAWebDisplayType","WAWebElevatedPushNamesFlag","WAWebEnvironment","WAWebFrontendMsgGetters","WAWebHDMediaIconWrapper.react","WAWebInteractiveMessageCarouselLogEvents","WAWebMediaConstants","WAWebMediaMissingModal.react","WAWebMediaOpaqueData","WAWebMediaStateControls.react","WAWebMediaTypes","WAWebMediaUrlProvider","WAWebMessageAuthor.react","WAWebMessageBubbleHiddenText.react","WAWebMessageCaption.react","WAWebMessageCropping","WAWebMessageForwardedIndicator.react","WAWebMessageMeta.react","WAWebMessagePaidPartnershipDisclaimerText.react","WAWebMessageThumbShadeBottom.react","WAWebModalManager","WAWebMsgGetters","WAWebMsgSelectors","WAWebMsgType","WAWebShowMediaNotReadableModal","WAWebStateUtils","WAWebStopEvent","WAWebTypesMedia","WAWebUISpacing","WAWebVelocityTransitionGroup","WAWebWamChatPSALogger","isStringNullOrEmpty","react","stylex","useWAWebModelValues","useWAWebMsgDownloadMedia","useWAWebMsgValues","useWAWebSendViewCount"],(function(t,n,r,o,a,i,l,s){var e,u,c,d,m,p=["ref"],_,f,g,h=g||(g=o("react")),y=_||(_=r("react")),C=h.useImperativeHandle,b=h.useRef,v=[o("WAWebTypesMedia").DisplayTheme.AlbumV2,o("WAWebTypesMedia").DisplayTheme.PhotoPoll],S="xekv6nw-B",R={bubble:{boxSizing:"x9f619",maxWidth:"xlkrthq",paddingTop:"xyqdw3p",paddingInlineEnd:"x1im30kd",paddingBottom:"xg8j3zb",paddingInlineStart:"x1djpfga",position:"x1n2onr6",zIndex:"x1vjfegm",$$css:!0},bubbleMaxWidthPhotoPoll:{maxWidth:"x193iq5w",$$css:!0},bubbleAlbum:{paddingTop:"xexx8yu",paddingInlineEnd:"xyri2b",paddingBottom:"x18d9i69",paddingInlineStart:"x1c1uobl",$$css:!0},bubblePortrait:{maxWidth:"xf58f5l",$$css:!0},bubbleAnnouncement:{maxWidth:"xmewjk2",$$css:!0},bubbleChannelAlerts:{maxWidth:"x193iq5w",$$css:!0},author:{paddingBottom:"xs9asl8",paddingInlineStart:"x25sj25",paddingTop:"xyqdw3p",$$css:!0},authorElevatedPushNames:{paddingInlineEnd:"x11lfxj5",$$css:!0},forwardedIndicator:{paddingTop:"xyqdw3p",paddingInlineEnd:"xyri2b",paddingBottom:"xg8j3zb",paddingInlineStart:"x25sj25",$$css:!0},forwardedIndicatorHasAuthor:{paddingTop:"xexx8yu",$$css:!0},overlay:{marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",maxWidth:"xjmpccy",position:"x1n2onr6","::before_background":"x1xuolcj","::before_borderStartStartRadius":"x1nf3qbo","::before_borderStartEndRadius":"x1k12aft","::before_borderEndEndRadius":"xptwhb6","::before_borderEndStartRadius":"x10ad0jm","::before_content":"x10tli2e","::before_height":"xszcg87","::before_position":"x1hmns74","::before_width":"x1rmj1tg","::before_zIndex":"x1r18s1r",$$css:!0},overlayAnnouncement:{maxWidth:"x1idnn2",$$css:!0},quote:{boxSizing:"x9f619",maxWidth:"x1d8l2j3",$$css:!0},quotePortrait:{maxWidth:"x16cfgq2",$$css:!0},quoteAnnouncement:{maxWidth:"xno0opx",$$css:!0},thumb:{alignItems:"x6s0dn4",borderStartStartRadius:"xaejkm2",borderStartEndRadius:"x1uuy6ko",borderEndEndRadius:"x1gfim23",borderEndStartRadius:"xqfj769",display:"x78zum5",justifyContent:"xl56j7k",maxWidth:"x193iq5w",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0},thumbAlbum:{maxHeight:"x1ry4eqa",maxWidth:"xlkrthq",minHeight:"x6ttaax",position:"x1n2onr6",$$css:!0},thumbAlbumAnnouncement:{maxHeight:"xsjqhse",maxWidth:"xmewjk2",minHeight:"x1cnsw78",$$css:!0},thumbGallery:{maxHeight:"x1983irj",$$css:!0},thumbChannelAlerts:{maxHeight:"xuyqlj2",$$css:!0},hdIcon:{position:"x10l6tqk",bottom:"x1c7jfne",insetInlineStart:"x1ty65gk",left:null,right:null,zIndex:"xk3oba8",$$css:!0}};function L(e){var t=e.animateIn,n=t===void 0?!1:t,r=e.bubbleHeight,a=e.bubbleWidth,i=e.caption,l=e.disableContextMenu,s=l===void 0?!1:l,u=e.draggable,c=e.imgRef,d=e.isPreview,m=d===void 0?!1:d,p=e.mediaData,_=e.src,f=e.useDynamicSizing,g=p.fullHeight,h=p.fullWidth,C=g||r,b=h||a,v={0:"x15kfjtz x1c4vz4f x2lah0s xdl72j9",2:"x15kfjtz x1c4vz4f x2lah0s xdl72j9 x14tgpju",1:"x15kfjtz x1c4vz4f x2lah0s xdl72j9 x127lhb5 x4afe7t xa3vuyk x10e4vud",3:"x15kfjtz x1c4vz4f x2lah0s xdl72j9 x14tgpju x127lhb5 x4afe7t xa3vuyk x10e4vud"}[!!m<<1|!!n<<0],S=f?{width:"100%",height:"100%",objectFit:"cover"}:o("WAWebMessageCropping").getImgStyle(b,C,a,r),R=function(t){s&&t.preventDefault()};return y.jsx("img",{alt:i,src:_,className:v,style:S,ref:c,draggable:u,onContextMenu:R})}L.displayName=L.name+" [from "+i.id+"]";function E(e){var t=e.bubbleHeight,n=e.bubbleWidth,o=e.caption,a=e.disableContextMenu,i=a===void 0?!1:a,l=e.draggable,s=e.imgRef,u=e.mediaData,c=e.useDynamicSizing;return y.jsx(L,{imgRef:s,mediaData:u,caption:o,bubbleWidth:n,bubbleHeight:t,isPreview:!0,src:u.preview instanceof r("WAWebMediaOpaqueData")?u.preview.url():null,useDynamicSizing:c,disableContextMenu:i,draggable:l})}E.displayName=E.name+" [from "+i.id+"]";function k(t){var n,a=t.ref,i=babelHelpers.objectWithoutPropertiesLoose(t,p),l=i.albumMsgs,d=i.captionComponent,m=i.contentContainerClassName,_=i.currentAlbumMessageIndex,g=_===void 0?0:_,h=i.displayAuthor,S=i.displayType,k=i.hideMeta,I=i.isMsgVisible,T=i.maxWidth,P=i.msg,N=i.onThumbClick,M=i.overlayContent,w=i.preventDownload,A=w===void 0?!1:w,F=i.theme,O=i.thumbClassName,B=i.zoomMsg,W=b(null),q=o("useWAWebMsgValues").useMsgValues(i.msg.id,[o("WAWebMsgGetters").getAck,o("WAWebMsgGetters").getCaption,o("WAWebFrontendMsgGetters").getDir,o("WAWebMsgGetters").getFooter,o("WAWebMsgGetters").getIsFromTemplate,o("WAWebMsgGetters").getIsCarouselCard,o("WAWebMsgGetters").getId,o("WAWebMsgGetters").getIsFailed,o("WAWebMsgGetters").getIsGroupMsg,o("WAWebMsgGetters").getIsPSA,o("WAWebMsgGetters").getIsSentByMe,o("WAWebFrontendMsgGetters").getRtl,o("WAWebFrontendMsgGetters").getSenderObj,o("WAWebMsgGetters").getType,o("WAWebMsgGetters").getSupportsMessageFooter,o("WAWebFrontendMsgGetters").getText]),U=q[0],V=q[1],H=q[2],G=q[3],z=q[4],j=q[5],K=q[6],Q=q[7],X=q[8],Y=q[9],J=q[10],Z=q[11],ee=q[12],te=q[13],ne=q[14],re=q[15],oe=o("WAWebFrontendMsgGetters").getChat(P.unsafe()),ae=o("useWAWebModelValues").useModelValues(i.mediaData,["aspectRatio","preview","mediaStage","fullWidth","fullHeight","size","progressiveStage","type"]),ie=o("useWAWebSendViewCount").useSendViewCount(P.id,{mediaData:ae,displayType:i.displayType}),le=o("useWAWebMsgDownloadMedia").useMsgDownloadMedia(P),se=function(){o("WAWebModalManager").ModalManager.open(y.jsx(r("WAWebMediaMissingModal.react"),{msg:P.unsafe()}))},ue=function(t){if(!I)return null;var e=I(t);if(typeof e=="boolean"||e==null)return null;var n=e.getImgNode,r=e.getImgNodeByMsgKey,o=e.isCardVisible;return n!=null?n():r!=null&&o!=null&&o(t)?r(t):null},ce=function(){P.forceDownloadMediaEvenIfExpensive().catch(function(){o("WALogger").ERROR(e||(e=babelHelpers.taggedTemplateLiteralLoose(["[message-picture] failed to force download media"]))).sendLogs("failed-to-force-download-media")}),$("clickToDownload",o("WAWebStateUtils").unproxy(P.unsafe()))},de=function(){P.cancelDownload()},me=function(){P.cancelUpload()},pe=function(){P.resumeUpload().catch(function(){o("WALogger").ERROR(u||(u=babelHelpers.taggedTemplateLiteralLoose(["[message-picture] failed to resume upload"]))).sendLogs("failed-to-resume-upload")})},_e=function(){P.resumeRemoteUpload().catch(function(){o("WALogger").ERROR(c||(c=babelHelpers.taggedTemplateLiteralLoose(["[message-picture] failed to resume remote upload"]))).sendLogs("failed-to-resume-remote-upload")})},fe=function(){return te===o("WAWebMsgType").MSG_TYPE.IMAGE&&!r("isStringNullOrEmpty")(V)?V:void 0},ge=function(){return W.current};C(a,function(){return{getImgNode:ge}});var he=new Set([o("WAWebTypesMedia").DisplayTheme.Album,o("WAWebTypesMedia").DisplayTheme.AlbumV2,o("WAWebTypesMedia").DisplayTheme.PhotoPoll]),ye=function(t){if(t&&t.stopPropagation(),Y&&o("WAWebWamChatPSALogger").logChatPSAMediaPlay(P.getWamMediaType(),P.campaignId,K.id),$("clickToView",o("WAWebStateUtils").unproxy(P.unsafe())),F!=null&&he.has(F)){var e=new Set((l||[]).map(function(e){return e.id.toString()}));o("WAWebCmd").Cmd.mediaViewerModal({msg:o("WAWebStateUtils").unproxy((B||P).unsafe()),getZoomNode:ue,highlightedMsgIds:e,shouldShowNumberText:F===o("WAWebTypesMedia").DisplayTheme.PhotoPoll})}else o("WAWebCmd").Cmd.mediaViewerModal({msg:o("WAWebStateUtils").unproxy(P.unsafe()),getZoomNode:ue})},Ce=o("WAUnicodeUtils").numCodepoints(re!=null?re:"")>o("WAWebMediaConstants").MAX_PORTRAIT_MEDIA_CAPTION_LENGTH,be=o("WAWebMessageCropping").getBubbleDimension(te,z,j,ae.aspectRatio,g,(n=l==null?void 0:l.length)!=null?n:0,F,S,Ce,T),ve=be.bubbleHeight,Se=be.bubbleWidth,Re=babelHelpers.extends({width:Se,height:ve},F===o("WAWebTypesMedia").DisplayTheme.AlbumV2&&{transition:"height 0.3s ease-in-out, width 0.3s ease-in-out"}),Le=fe(),Ee=!r("isStringNullOrEmpty")(Le)||d!=null?null:y.jsx(r("WAWebMessageThumbShadeBottom.react"),{}),ke=Se0)return a;if(n!=null)return n}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.fallbackPreview,n=e.mediaData,a=o("useWAWebModelValues").useModelValues(n,["filehash","fullPreviewData","mediaStage","preview","type"]);return c(a.type)?s.jsx(r("WAWebMediaUrlProvider"),{mediaData:a,placeholderRenderer:function(){return s.jsx(m,{mediaData:a,fallbackPreview:t})},renderProgressively:!0,children:function(t){return s.jsx(d,{url:t,type:a.type})}},a.filehash):s.jsx(m,{mediaData:a})}p.displayName=p.name+" [from "+i.id+"]",l.isMediaTypeWithImage=c,l.MediaMsgPreview=p}),98); __d("WAWebInteractiveQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","WAWebQuotedMsgQuotedMedia.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.interactiveHeader||{},r=n.mediaType,a=n.thumbnail;return r==null?null:s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:t.mediaData,fallbackPreview:a!=null&&s.jsx(o("WAWebQuotedMsgQuotedMedia.react").Base64BackgroundImage,{source:a})})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebListQuotedMsgThumbnailIcon",["WAWebMediaUtils","WAWebMsgGetters","WAWebQuotedMsgQuotedMedia.react","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=o("useWAWebMsgValues").useMsgValues(t.id,[o("WAWebMsgGetters").getProductListHeaderImage]),r=n[0];return r?s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebQuotedMsgQuotedMedia.react").Base64BackgroundImage,{source:o("WAWebMediaUtils").convertToBase64(r)})}):null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebLocationQuotedMsgThumbnailIcon",["WAWebQuotedMsgQuotedMedia.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.body;return n==null||n===""?null:s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebQuotedMsgQuotedMedia.react").Base64BackgroundImage,{source:n})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebOrderQuotedMsgThumbnailIcon",["WAWebQuotedMsgQuotedMedia.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg;return t.thumbnail?s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebQuotedMsgQuotedMedia.react").Base64BackgroundImage,{source:t.thumbnail})}):null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebQuotedMsgQuotedMedia.react",["cx","WAWebClassnames","WAWebMessagePluginQuotedMsgThumbnailIcon","WAWebMsgCollection","WAWebMsgType","react"],(function(t,n,r,o,a,i,l,s){var e=["msg","rootMsg"],u,c=u||(u=r("react"));function d(e){var t=e.source;return c.jsx("div",{"data-testid":void 0,style:{backgroundImage:"url(data:image/jpeg;base64,"+t+")"},className:"xh8yej3 x5yr21d x1xsqp64 x18d0r48"})}d.displayName=d.name+" [from "+i.id+"]";function m(t){var n=t.msg,r=t.rootMsg,a=babelHelpers.objectWithoutPropertiesLoose(t,e),i=t.msg;if(r!=null&&r.selectedCarouselCardIndex!=null&&n.carouselCards!=null){var l=n.carouselCards.at(r.selectedCarouselCardIndex);l!=null&&(i=l.unsafe())}return o("WAWebMsgCollection").MsgCollection.get(i.id)==null?null:c.jsx(p,babelHelpers.extends({msg:i},a))}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t,n,r=e.msg,a=e.theme;if(r.isViewOnce)return null;var i=o("WAWebMessagePluginQuotedMsgThumbnailIcon").quotedMsgThumbailIconComponent(r),l=o("WAWebClassnames").classnamesConvertMeToStylexPlease((t={},t._agto=a==="composeBox",t._ar58=a==="status",t._agtq=r.type===o("WAWebMsgType").MSG_TYPE.PAYMENT,t._agtm=!0,t._amii=r.type===o("WAWebMsgType").MSG_TYPE.PTV,t));return i?c.jsx("div",{className:l,children:c.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((n={},n._agtn=!0,n)),children:c.jsx(i,{msg:r,theme:a})})}):null}p.displayName=p.name+" [from "+i.id+"]",l.Base64BackgroundImage=d,l.QuotedMediaUnsafe=m}),98); __d("WAWebMessagePluginQuotedMsgThumbnailIcon",["WAWebMessagePluginQuotedMsgThumbnailIconRegistry","WAWebPluginCreateRegistryLookup"],(function(t,n,r,o,a,i,l){var e=o("WAWebPluginCreateRegistryLookup").createMsgTypeRegistryLookup(r("WAWebMessagePluginQuotedMsgThumbnailIconRegistry"));function s(t){var n=e(t.type,t.subtype);return n==null?void 0:n.quotedMsgThumbnailIcon}l.quotedMsgThumbailIconComponent=s}),98); __d("WAWebDocumentQuotedMsgThumbnailIcon.react",["WAWebMediaMsgPreview.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.mediaData,r=n.fullPreviewData,a=n.preview,i=a!=null||r!=null;return i?s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:t.mediaData})}):null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebImageQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){return s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:e.msg.mediaData})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMultiVcardQuotedMsgThumbnailIcon",["WAWebDetailImage.react","WAWebProfileImage.react","WAWebQuotedMsgUtils","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){return s.jsx("div",{className:"xk1v102",children:s.jsx(r("WAWebProfileImage.react"),{size:o("WAWebQuotedMsgUtils").getImageSize(e.theme),shape:o("WAWebDetailImage.react").DetailImageShape.Square,quoted:!0})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebNativeFlowQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","WAWebProtobufsE2E.pb","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg;if(t.headerType!==o("WAWebProtobufsE2E.pb").Message$ButtonsMessage$HeaderType.IMAGE)return null;var n=t.mediaData;return n.preview==null&&n.fullPreviewData==null?null:s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:n})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebPaymentAmount.react",["WAWebCurrencyUtils","WAWebUISpacing","react","stylex"],(function(t,n,r,o,a,i,l){var e,s,u=e||(e=r("react")),c={amount:{display:"x78zum5",alignItems:"x1cy8zhl",lineHeight:"xggjnk3",$$css:!0},amountCurrency:{fontSize:"x1aueamr",$$css:!0},isQuotedAmountCurrency:{fontSize:"x1f6kntn",fontWeight:"xk50ysn",$$css:!0},amountInteger:{marginTop:"xifccgj",fontSize:"x8cw2a4",fontWeight:"x1iikomf",$$css:!0},isQuotedAmountInteger:{marginTop:"x1y332i5",fontSize:"x1aueamr",fontWeight:"x1fcty0u",$$css:!0}};function d(e){var t=e.amount1000,n=e.currency,a=e.isQuoted,i=o("WAWebCurrencyUtils").formatAmount1000ToParts(n,t);return u.jsxs("div",babelHelpers.extends({},(s||(s=r("stylex"))).props(c.amount,o("WAWebUISpacing").uiMargin.top4),{children:[u.jsx("span",babelHelpers.extends({},s.props(c.amountCurrency,a===!0&&c.isQuotedAmountCurrency,a===!0?o("WAWebUISpacing").uiMargin.end1:o("WAWebUISpacing").uiMargin.end3),{children:i.symbol})),u.jsx("span",babelHelpers.extends({},s.props(c.amountInteger,a===!0&&c.isQuotedAmountInteger,a===!0?o("WAWebUISpacing").uiMargin.end0:o("WAWebUISpacing").uiMargin.end2),{children:i.integer})),u.jsx("span",babelHelpers.extends({},{0:{className:"x1aueamr"},1:{className:"x1f6kntn xk50ysn"}}[(a===!0)<<0],{children:i.decimal}))]}))}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebPaymentBackground.react",["cx","WAWebClassnames","react","stylex"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react"));function d(t){var n,a,i=t.thumbXstyle!=null?(e||(e=r("stylex"))).props(t.thumbXstyle):{};return c.jsx("div",{className:o("WAWebClassnames").classnamesConvertMeToStylexPlease((n={},n._ajyf=t.isQuoted,n._ajyg=t.isQuotedInComposeBox,n._ajye=!0,n)),children:c.jsx("div",babelHelpers.extends({},i,{"data-testid":void 0,className:o("WAWebClassnames").classnamesConvertMeToStylexPlease({"bg-payments":!t.isQuoted},(a={},a._ajyh=!0,a._ajyi=!0,a)),children:c.jsx("div",{className:"x1vjfegm",children:t.children})}))})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98); __d("WAWebPaymentQuotedMsgThumbnailIcon",["WAWebPaymentAmount.react","WAWebPaymentBackground.react","isNonZeroNumber","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=e.theme;return!o("isNonZeroNumber").isNonZeroNumber(t.paymentAmount1000)||!t.paymentCurrency?null:s.jsx("div",{className:"xk1v102",children:s.jsx(r("WAWebPaymentBackground.react"),{isQuoted:!0,isQuotedInComposeBox:n==="composeBox",children:s.jsx(r("WAWebPaymentAmount.react"),{currency:t.paymentCurrency,amount1000:t.paymentAmount1000,isQuoted:!0})})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebProductQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){return s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:e.msg.mediaData})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebPtvQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.mediaData,r=n.fullPreviewData,a=n.preview,i=a!=null||r!=null;return i?s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:t.mediaData})}):null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebStickerPackQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.mediaData,r=n.fullPreviewData,a=n.preview,i=a!=null||r!=null;return i?s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:t.mediaData})}):null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebVcardQuotedMsgThumbnailIcon",["WAWebDetailImage.react","WAWebMsgGetters","WAWebProfileImage.react","WAWebProfilePicThumbCollection","WAWebQuotedMsgUtils","WAWebVcardParsingUtils","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=e.theme;return s.jsx("div",{className:"xk1v102",children:s.jsx(r("WAWebProfileImage.react"),{wid:o("WAWebProfilePicThumbCollection").ProfilePicThumbCollection.getThumbnailWidFromVcard(o("WAWebMsgGetters").getVcard(t)),thumb:o("WAWebVcardParsingUtils").vcardThumbnail(o("WAWebMsgGetters").getVcard(t)),quoted:!0,shape:o("WAWebDetailImage.react").DetailImageShape.Square,size:o("WAWebQuotedMsgUtils").getImageSize(n)})})}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebVideoQuotedMsgThumbnailIcon",["WAWebMediaMsgPreview.react","react"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react"));function u(e){var t=e.msg,n=t.mediaData,r=n.fullPreviewData,a=n.preview,i=a!=null||r!=null;return i?s.jsx("div",{className:"xk1v102",children:s.jsx(o("WAWebMediaMsgPreview.react").MediaMsgPreview,{mediaData:t.mediaData})}):null}u.displayName=u.name+" [from "+i.id+"]",l.default=u}),98); __d("WAWebMessagePluginQuotedMsgThumbnailIconRegistry",["WAWebChatQuotedMsgThumbnailIcon.react","WAWebDocumentQuotedMsgThumbnailIcon.react","WAWebImageQuotedMsgThumbnailIcon","WAWebInteractiveQuotedMsgThumbnailIcon","WAWebListQuotedMsgThumbnailIcon","WAWebLocationQuotedMsgThumbnailIcon","WAWebMultiVcardQuotedMsgThumbnailIcon","WAWebNativeFlowQuotedMsgThumbnailIcon","WAWebOrderQuotedMsgThumbnailIcon","WAWebPaymentQuotedMsgThumbnailIcon","WAWebProductQuotedMsgThumbnailIcon","WAWebPtvQuotedMsgThumbnailIcon","WAWebStickerPackQuotedMsgThumbnailIcon","WAWebVcardQuotedMsgThumbnailIcon","WAWebVideoQuotedMsgThumbnailIcon"],(function(t,n,r,o,a,i,l){var e,s=[{type:"album",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"audio",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"biz_content_placeholder",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"buttons_response",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"chat",subtype:"url",quotedMsgThumbnailIcon:r("WAWebChatQuotedMsgThumbnailIcon.react")},{type:"chat",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"ciphertext",subtype:"bot_unavailable_fanout",quotedMsgThumbnailIcon:null},{type:"ciphertext",subtype:"fanout",quotedMsgThumbnailIcon:null},{type:"ciphertext",subtype:"hosted_unavailable_fanout",quotedMsgThumbnailIcon:null},{type:"ciphertext",subtype:"view_once_unavailable_fanout",quotedMsgThumbnailIcon:null},{type:"ciphertext",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"comment",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"debug_placeholder",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"document",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebDocumentQuotedMsgThumbnailIcon.react")},{type:"event_creation",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"event_edit_encrypted",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"event_response",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"group-history",subtype:"message_history_bundle",quotedMsgThumbnailIcon:null},{type:"groups_v4_invite",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"hsm",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"image",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebImageQuotedMsgThumbnailIcon")},{type:"interactive",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebInteractiveQuotedMsgThumbnailIcon")},{type:"interactive_response",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"keep_in_chat",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"list",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebListQuotedMsgThumbnailIcon")},{type:"list_response",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"loading_media",subtype:"loading_image",quotedMsgThumbnailIcon:null},{type:"loading_media",subtype:"loading_video",quotedMsgThumbnailIcon:null},{type:"location",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebLocationQuotedMsgThumbnailIcon")},{type:"message_edit_encrypted",subtype:"message_edit",quotedMsgThumbnailIcon:null},{type:"message_history_notice",subtype:"message_history_notice",quotedMsgThumbnailIcon:null},{type:"multi_vcard",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebMultiVcardQuotedMsgThumbnailIcon")},{type:"native_flow",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebNativeFlowQuotedMsgThumbnailIcon")},{type:"newsletter_admin_invite",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"newsletter_follower_invite",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"newsletter_question_response",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"notification_template",subtype:"contact_info_card",quotedMsgThumbnailIcon:null},{type:"order",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebOrderQuotedMsgThumbnailIcon")},{type:"payment",subtype:"ciphertext",quotedMsgThumbnailIcon:e=r("WAWebPaymentQuotedMsgThumbnailIcon")},{type:"payment",subtype:"futureproof",quotedMsgThumbnailIcon:e},{type:"payment",subtype:"invite",quotedMsgThumbnailIcon:e},{type:"payment",subtype:"request",quotedMsgThumbnailIcon:e},{type:"payment",subtype:"send",quotedMsgThumbnailIcon:e},{type:"pin_message",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"pinned_message",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"poll_creation",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"poll_result_snapshot",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"poll_update",subtype:"poll_vote",quotedMsgThumbnailIcon:null},{type:"product",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebProductQuotedMsgThumbnailIcon")},{type:"protocol",subtype:"admin_revoke",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"bot_feedback",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"bot_memu_onboarding",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"bot_request_welcome",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"ephemeral_setting",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"ephemeral_sync_response",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"event_edit_decrypted",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"history_sync_notification",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"limit_sharing_system_message",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"member_label",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"message_edit",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"message_edit_decrypted",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"sender_revoke",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"share_phone_number",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"status_group_mention_message",quotedMsgThumbnailIcon:null},{type:"protocol",subtype:"status_mention_message",quotedMsgThumbnailIcon:null},{type:"ptt",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"ptv",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebPtvQuotedMsgThumbnailIcon")},{type:"reaction",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"reaction_enc",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"request_phone_number",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"revoked",subtype:"admin",quotedMsgThumbnailIcon:null},{type:"revoked",subtype:"sender",quotedMsgThumbnailIcon:null},{type:"rich_response",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"status_notification",subtype:"status_notification_message",quotedMsgThumbnailIcon:null},{type:"sticker",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"sticker-pack",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebStickerPackQuotedMsgThumbnailIcon")},{type:"template_button_reply",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"unknown",subtype:"payment_action_request_declined",quotedMsgThumbnailIcon:null},{type:"unknown",subtype:"payment_transaction_request_cancelled",quotedMsgThumbnailIcon:null},{type:"unknown",subtype:"phone",quotedMsgThumbnailIcon:null},{type:"unknown",subtype:"phone_only_feature",quotedMsgThumbnailIcon:null},{type:"unknown",subtype:void 0,quotedMsgThumbnailIcon:null},{type:"vcard",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebVcardQuotedMsgThumbnailIcon")},{type:"video",subtype:void 0,quotedMsgThumbnailIcon:r("WAWebVideoQuotedMsgThumbnailIcon")}];l.default=s}),98); __d("WAWebQuotedMsgWrapper.react",["cx","fbt","WAWebClassnames","WAWebKeyboardIsKeyActivation","react","stylex"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e,c,d=c||(c=o("react")),m=c.useState,p={quotedMsg:{position:"x1n2onr6",display:"x78zum5",overflowX:"x6ikm8r",overflowY:"x10wlt62",backgroundColor:"x16p640f",borderStartStartRadius:"xp43t2z",borderStartEndRadius:"x5j5mwf",borderEndEndRadius:"xptal55",borderEndStartRadius:"xjodkme",$$css:!0},quotedMsgRefresh:{backgroundColor:"x1bu39yj",$$css:!0},noBorderRadius:{borderStartStartRadius:null,borderStartEndRadius:null,borderEndEndRadius:null,borderEndStartRadius:null,$$css:!0}};function _(t){var n,a=t.authorBackgroundStyle,i=t.children,l=t.clickable,s=t.handleClick,c=t.rootMsg,_=t.theme,f=m(!1),g=f[0],h=f[1],y=!g&&!!c,C=l?"button":null,b=function(t){y&&h(!0)},v=function(t){g&&h(!1)},S=function(t){r("WAWebKeyboardIsKeyActivation")(t)&&l&&s()},R=o("WAWebClassnames").classnamesConvertMeToStylexPlease((n={},n._aju5=_==="composeBox",n._aju6=g,n._aju3=!0,n)),L=o("WAWebClassnames").classnamesConvertMeToStylexPlease((e||(e=r("stylex")))(a),"_aju7"),E=[p.quotedMsg,p.quotedMsgRefresh,_==="composeBox"&&p.noBorderRadius],k=u._(/*BTDS*/"Mensaje citado");return d.jsx("div",{"data-testid":void 0,className:"xh8yej3",onMouseOver:l?b:null,onMouseEnter:l?b:null,onMouseLeave:l?v:null,children:d.jsxs("div",{className:R+" "+e(E),role:C,"aria-label":k,tabIndex:l?0:null,onKeyDown:S,onClick:l?s:null,children:[d.jsx("span",{className:L}),i]})})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226); __d("WAWebQuotedMsg.react",["cx","fbt","WAFilteredCatch","WANullthrows","WAWebBackendErrors","WAWebBotGating","WAWebBotUtils","WAWebCatalogCollection","WAWebChatCollection","WAWebChatMessageSearch","WAWebChatParticipantColor","WAWebClassnames","WAWebCmd","WAWebContactCollection","WAWebContactUtils","WAWebDisplayType","WAWebDrawerManager","WAWebElevatedPushNamesFlag","WAWebFrontendMsgGetters","WAWebLidStatusMigrationKeyUtils","WAWebLidStatusMigrationUtils","WAWebMessageAuthor.react","WAWebModalManager","WAWebMsgCollection","WAWebMsgGetters","WAWebNewsletterQuotedMsgUtils","WAWebProductCatalogContext","WAWebProductCatalogLogEvents","WAWebProductCatalogSession","WAWebProductDetailsFlowLoadable","WAWebQuotedMessageUserJourneyLogger","WAWebQuotedMsgContent.react","WAWebQuotedMsgQuotedMedia.react","WAWebQuotedMsgWrapper.react","WAWebStateUtils","WAWebStatusCollection","WAWebStatusQuotedFlowLoadable","WAWebThreadMsgUtils","WAWebToast.react","WAWebToastManager","WAWebUISpacing","WAWebUtilsLogQplEvents","WAWebWamEnumCatalogEntryPoint","WAWebWamEnumStatusRowSection","WAWebWidFactory","asyncToGeneratorRuntime","isStringNullOrEmpty","react","stylex","useLazyRef","useWAWebDefaultProfileColors","useWAWebGroupColors","useWAWebMsgValues","useWAWebUIM"],(function(t,n,r,o,a,i,l,s,u){var e,c,d,m=d||(d=r("react")),p=(e||(e=o("react"))).useEffect,_={msgBody:{display:"x78zum5",flexGrow:"x1iyjqo2",alignItems:"x6s0dn4",minHeight:"xruhr43",maxHeight:"xh8rlot",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function f(e){var t,a,i,l=e.chat,s=e.composeQuotedMsgRemoteJid,d=e.displayType,f=e.isMsgVisible,h=e.msg,y=e.onClick,C=e.rootMsg,b=e.shouldHideQuotedMsgAuthor,v=e.t,S=r("useWAWebUIM")(),R=o("useWAWebMsgValues").useMsgValues(h.id,[o("WAWebFrontendMsgGetters").getSenderForReplyMsg,o("WAWebMsgGetters").getIsGroupStatus]),L=R[0],E=R[1],k=r("useLazyRef")(function(){return new(o("WAWebProductCatalogSession")).ProductCatalogSession}),I=o("WAWebChatCollection").ChatCollection.get(h.author),T=o("WAWebContactCollection").ContactCollection.get(h.author),D=L,x=l;E&&(x=I!=null?I:l,D=T!=null?T:L);var $=o("WAWebElevatedPushNamesFlag").elevatedPushNamesEnabled(x);p(function(){var e=o("WAWebFrontendMsgGetters").getAsProductInquiry(h.unsafe());if(e!=null){var t=e.businessOwnerJid,n=r("isStringNullOrEmpty")(t)?null:o("WAWebWidFactory").createWid(t);n&&(v!=null&&(e.t=v),o("WAWebCatalogCollection").CatalogCollection.addMsgAsProduct(o("WAWebStateUtils").unproxy(e.unsafe())))}},[]);var P=function(t){var e=t.businessOwnerJid,n=r("isStringNullOrEmpty")(e)?null:o("WAWebWidFactory").createWid(e);if(n){var a=o("WAWebCatalogCollection").CatalogCollection.get(n);if(a){var i=t.productId!=null?a.productCollection.get(t.productId):null,l=t.productId!=null?a.msgProductCollection.get(t.productId):null;if(!(i==null&&l==null)){var s=l;if(i!=null&&v!=null&&i.t>=v&&(s=i,l!=null&&a.productCollection.remove(l)),s!=null){var u=o("WAWebProductCatalogContext").buildProductCatalogContext(k.current,o("WAWebContactUtils").getMaybeBizPlatformForLogging(t.businessOwnerJid),o("WAWebWamEnumCatalogEntryPoint").CATALOG_ENTRY_POINT.CATALOG_ENTRY_POINT_MESSAGE);return o("WAWebProductCatalogLogEvents").logProductInquiryClick({product:o("WAWebStateUtils").unproxy(s),catalogContext:u}),o("WAWebUtilsLogQplEvents").qplStartProductView("Message"),o("WAWebDrawerManager").DrawerManager.openDrawerRight(m.jsx(o("WAWebProductDetailsFlowLoadable").ProductDetailsFlowLoadable,{product:s,chat:o("WAWebFrontendMsgGetters").getChat(t.unsafe()),refreshCarousel:!0}),{transition:"slide-left",uim:S,newDrawerContext:u})}}}}},N=(function(){var e=n("asyncToGeneratorRuntime").asyncToGenerator(function*(){var e;if(y==null||y(),o("WAWebMsgGetters").getIsStatus(h)){if(!C||!C.isQuotedMsgAvailable)o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:u._(/*BTDS*/"No se encontr\u00f3 la actualizaci\u00f3n de estado")}));else{var t=o("WAWebMsgGetters").getSender(h);t!=null&&o("WAWebStatusCollection").StatusCollection.find(o("WAWebLidStatusMigrationUtils").matWidConvert(t)).then(function(e){var t=function(){C&&(C.unsafe().isQuotedMsgAvailable=!1)};o("WAWebModalManager").ModalManager.openMedia(m.jsx(o("WAWebStatusQuotedFlowLoadable").StatusQuotedFlowLoadable,{status:e,msgKey:o("WAWebLidStatusMigrationKeyUtils").matKeyConvert(h.id),onMsgNotFound:t,onClose:function(){return o("WAWebModalManager").ModalManager.closeMedia()},rowSection:o("WAWebWamEnumStatusRowSection").STATUS_ROW_SECTION.QUOTED_MESSAGE_IN_CHAT}),{transition:"quoted-status-modal"})})}return}var n=o("WAWebFrontendMsgGetters").getAsProductInquiry(h.unsafe());if(n!=null)return P(n);if(C&&!C.isQuotedMsgAvailable){o("WAWebToastManager").ToastManager.open(m.jsx(o("WAWebToast.react").Toast,{msg:u._(/*BTDS*/"No se pudo encontrar el mensaje")}));return}var a=o("WAWebFrontendMsgGetters").getChat(h.unsafe()),i=yield o("WAWebNewsletterQuotedMsgUtils").getMsgDetailsForSearch(h),l=i.msgInStore,s=i.quotedMsgKey,c=o("WAWebChatMessageSearch").getSearchContext(a,(e=l==null?void 0:l.id)!=null?e:s,C==null?void 0:C.unsafe());c&&(c.slideToMsg=!0);var d=C!=null&&C.selectedCarouselCardIndex!=null;d&&(c.highlightMsg=!1);var p;a.id.isBot()&&o("WAWebBotGating").isAiChatThreadsEnabled()&&(p=o("WAWebThreadMsgUtils").getMsgAiThread(h.unsafe()));var _=C!=null?o("WAWebFrontendMsgGetters").getChat(C.unsafe()):null;_!=null&&o("WAWebBotUtils").isMetaAiBot(_.id)&&p==null&&o("WAWebBotGating").isAiChatThreadsEnabled()&&o("WAWebDrawerManager").DrawerManager.closeDrawerLeft(),o("WAWebCmd").Cmd.openChatAt({chat:a,msgContext:c,onSuccess:{mediaMsgToOpenInMediaViewer:o("WAWebMsgCollection").MsgCollection.get(s),onScrollToQuotedCarouselCard:d?g(s,r("WANullthrows")(C==null?void 0:C.selectedCarouselCardIndex),f):void 0},threadId:p!=null?p:void 0}),!l&&c.collection.loadAroundPromise.catch(o("WAFilteredCatch").filteredCatch(o("WAWebBackendErrors").E404,function(){var e=C==null?void 0:C.unsafe(),t=e!=null?o("WAWebFrontendMsgGetters").getChat(e):null;e==null||t==null||o("WAWebCmd").Cmd.openChatAt({chat:t,msgContext:o("WAWebChatMessageSearch").getSearchContext(t,e.id),threadId:p!=null?p:void 0})}))});return function(){return e.apply(this,arguments)}})(),M=d!=null&&[o("WAWebDisplayType").DISPLAY_TYPE.CONVERSATION,o("WAWebDisplayType").DISPLAY_TYPE.ANNOUNCEMENT,o("WAWebDisplayType").DISPLAY_TYPE.NEWSLETTER,o("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS].includes(d),w=s||(C==null?void 0:C.quotedRemoteJid),A=b===!0||o("WAWebBotUtils").isMetaAiBot(l.id)&&!(o("WAWebBotUtils").isMetaAiBot(h.from)||o("WAWebBotUtils").isMetaAiBot(h.to)),F=A===!0?null:m.jsx(r("WAWebMessageAuthor.react"),{msg:h,contact:D!=null?D:L,chat:x,quotedRemoteJid:w,disableClick:!0,showMemberLabel:!1}),O=o("WAWebClassnames").classnamesConvertMeToStylexPlease((t={},t._aju9=$,t._aju8=!0,t)),B=[_.msgBody,o("WAWebUISpacing").uiPadding.top4,o("WAWebUISpacing").uiPadding.end12,o("WAWebUISpacing").uiPadding.bottom8,o("WAWebUISpacing").uiPadding.start8],W=o("WAWebClassnames").classnamesConvertMeToStylexPlease((a={},a._aju9=$,a._ajua=!0,a)),q=m.jsxs("div",{className:W,children:[F,m.jsx(r("WAWebQuotedMsgContent.react"),{msg:h,rootMsg:C,theme:e.theme})]}),U=d===o("WAWebDisplayType").DISPLAY_TYPE.STARRED_MSGS?"starred":e.theme,V=o("WAWebMsgGetters").getSender(h),H=o("WAWebChatParticipantColor").getAssignedColor(x,V,"WAWebQuotedMsg-"+((i=o("WAWebQuotedMessageUserJourneyLogger").getChatType(l.id))!=null?i:"")),G=o("useWAWebGroupColors").useGroupsColorStyle(H,"background"),z=o("useWAWebDefaultProfileColors").useDefaultProfileColors(V),j=z.accent;return m.jsxs(r("WAWebQuotedMsgWrapper.react"),{authorBackgroundStyle:j!=null?j:G,theme:e.theme,handleClick:N,clickable:M,rootMsg:C,children:[m.jsx("div",{className:O+" "+(c||(c=r("stylex")))(B),dir:M?null:o("WAWebFrontendMsgGetters").getDir(h),children:q}),m.jsx(o("WAWebQuotedMsgQuotedMedia.react").QuotedMediaUnsafe,{rootMsg:C!=null?C.unsafe():null,msg:h.unsafe(),theme:U})]})}f.displayName=f.name+" [from "+i.id+"]";function g(e,t,n){if(n!=null){var r=n(e);if(!(r==null||typeof r!="object"||r.scrollToCard==null)){var o=r.scrollToCard;o(t)}}}l.default=f}),226); __d("WAWebMessageEditMsgPreview.react",["WAWebChatPreferenceCollection","WAWebDisplayType","WAWebFlex.react","WAWebFlexItem.react","WAWebFrontendMsgGetters","WAWebMediaDocument.react","WAWebMediaVideo.react","WAWebMessageGif.react","WAWebMessagePicture.react","WAWebMessageText.react","WAWebMsgGetters","WAWebMsgModelPropUtils","WAWebMsgPreview.react","WAWebMsgType","WAWebQuotedMsg.react","WAWebQuotedMsgModelUtils","WAWebUISpacing","WAWebWrapperDisplayTypeContext","react","useWAWebMsgValues"],(function(t,n,r,o,a,i,l){var e,s=e||(e=r("react")),u=100,c=70,d=c-u/2,m="x7xn9x5-B",p="xjqn293-B",_={wrapper:{backgroundColor:"x1g5lz36",borderStartStartRadius:"xp43t2z",borderStartEndRadius:"x5j5mwf",borderEndEndRadius:"xptal55",borderEndStartRadius:"xjodkme",maxWidth:"x1gfrnbc",minWidth:"xt7fyls",zIndex:"x1ja2u2z",position:"x1n2onr6",$$css:!0},previewContainer:{maxHeight:"x7ab17h",$$css:!0},previewBody:{animationDuration:"xw8ag78",animationFillMode:"x10e4vud",animationTimingFunction:null,$$css:!0},pushUp:{animationName:"x1uej8s0",paddingTop:"x1yfp7c2",paddingBottom:"xo5ses6",marginBottom:"xat24cr",$$css:!0},pushDown:{animationName:"x131uzpj",paddingTop:"x1cnzs8",paddingBottom:"xx6bls6",marginBottom:"xiv7p99",$$css:!0}};function f(e){var t=e.linkPreviewVisible,n=e.msg,a=o("useWAWebMsgValues").useMsgValues(n.id,[o("WAWebMsgGetters").getT,o("WAWebFrontendMsgGetters").getSenderObj]),i=a[0],l=a[1],u=o("WAWebFrontendMsgGetters").getChat(n.unsafe()),c=n.safe(),d=o("WAWebQuotedMsgModelUtils").getQuotedMsgObj(n.unsafe()),m;d&&(m=s.jsx(r("WAWebQuotedMsg.react"),{msg:d,rootMsg:c,displayType:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,theme:"editing",chat:u,t:i},d.id.toString()));var p;switch(c.type){case o("WAWebMsgType").MSG_TYPE.CHAT:p=s.jsx(r("WAWebMessageText.react"),{msg:c,contact:l,displayType:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,quotedMsg:m,trusted:o("WAWebMsgModelPropUtils").isTrusted(c.unsafe()),displayAuthor:!1});break;case o("WAWebMsgType").MSG_TYPE.IMAGE:p=s.jsx(o("WAWebMessagePicture.react").ImageMessage,{msg:c,displayType:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,quotedMsg:m,trusted:o("WAWebMsgModelPropUtils").isTrusted(c.unsafe()),displayAuthor:!1,mediaData:c.mediaData});break;case o("WAWebMsgType").MSG_TYPE.VIDEO:c.isGif===!0?p=s.jsx(o("WAWebMessageGif.react").WrappedGif,{msg:c,displayType:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,quotedMsg:m,trusted:o("WAWebMsgModelPropUtils").isTrusted(c.unsafe()),displayAuthor:!1,mediaData:c.mediaData}):p=s.jsx(r("WAWebMediaVideo.react"),{msg:c,displayType:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,quotedMsg:m,trusted:o("WAWebMsgModelPropUtils").isTrusted(c.unsafe()),displayAuthor:!1});break;case o("WAWebMsgType").MSG_TYPE.DOCUMENT:p=s.jsx(r("WAWebMediaDocument.react"),{msg:c,displayType:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,quotedMsg:m,trusted:o("WAWebMsgModelPropUtils").isTrusted(c.unsafe()),displayAuthor:!1});break}return p?s.jsx(r("WAWebMsgPreview.react"),{chatPreference:r("WAWebChatPreferenceCollection").assertGet("defaultPreference"),containerXstyle:_.previewContainer,bodyXstyle:[_.previewBody,o("WAWebUISpacing").uiPadding.horiz28,t&&_.pushUp,!t&&_.pushDown],children:s.jsx(o("WAWebFlex.react").FlexRow,{justify:"center",align:"center",children:s.jsx(r("WAWebFlexItem.react"),{xstyle:_.wrapper,grow:0,children:s.jsx("div",{"data-nohandle":!0,testid:void 0,children:s.jsx(r("WAWebWrapperDisplayTypeContext").Provider,{value:o("WAWebDisplayType").DISPLAY_TYPE.EDITING,children:p})})})})}):null}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),98); __d("WAWebMapUtils",["WAWebAssetLoaderDpiChangeDispatch","WAWebL10N","WAWebURLUtils"],(function(t,n,r,o,a,i,l){var e=17,s=15,u="https://maps.googleapis.com/maps/api/staticmap",c="https://maps.google.com/maps/search",d="https://maps.google.com/maps",m="style=element:geometry%7Ccolor:0x212121&style=element:labels.icon%7Cvisibility:off&style=element:labels.text.fill%7Ccolor:0x757575&style=element:labels.text.stroke%7Ccolor:0x212121&style=feature:administrative%7Celement:geometry%7Ccolor:0x757575&style=feature:administrative.country%7Celement:labels.text.fill%7Ccolor:0x9e9e9e&style=feature:administrative.land_parcel%7Cvisibility:off&style=feature:administrative.locality%7Celement:labels.text.fill%7Ccolor:0xbdbdbd&style=feature:poi%7Celement:labels.text.fill%7Ccolor:0x757575&style=feature:poi.park%7Celement:geometry%7Ccolor:0x181818&style=feature:poi.park%7Celement:labels.text.fill%7Ccolor:0x616161&style=feature:poi.park%7Celement:labels.text.stroke%7Ccolor:0x1b1b1b&style=feature:road%7Celement:geometry.fill%7Ccolor:0x2c2c2c&style=feature:road%7Celement:labels.text.fill%7Ccolor:0x8a8a8a&style=feature:road.arterial%7Celement:geometry%7Ccolor:0x373737&style=feature:road.highway%7Celement:geometry%7Ccolor:0x3c3c3c&style=feature:road.highway.controlled_access%7Celement:geometry%7Ccolor:0x4e4e4e&style=feature:road.local%7Celement:labels.text.fill%7Ccolor:0x616161&style=feature:transit%7Celement:labels.text.fill%7Ccolor:0x757575&style=feature:water%7Celement:geometry%7Ccolor:0x000000&style=feature:water%7Celement:labels.text.fill%7Ccolor:0x3d3d3d",p=50;function _(t,n,o){var a=r("WAWebL10N").getNormalizedLocale();return o?c+"/"+encodeURIComponent(o)+"/@"+t+","+n+","+e+"z?hl="+a:r("WAWebURLUtils").build(d,{q:t+","+n,z:e,hl:a})}function f(e){var t=e.height,n=e.isDarkTheme,o=e.lat,a=e.lng,i=e.showMarker,l=e.width,u=t+p,c=r("WAWebAssetLoaderDpiChangeDispatch").currentRes===r("WAWebAssetLoaderDpiChangeDispatch").RES.HIGH?2:1,d=r("WAWebL10N").getNormalizedLocale(),m=o+", "+a,_="color:red|"+m,f=l+"x"+u,h=r("WAWebURLUtils").GSM_NAME;return g(babelHelpers.extends({zoom:s.toString(),size:f,scale:c.toString(),language:d,client:h},i?{markers:_}:{center:m}),n)}function g(e,t){var n=r("WAWebURLUtils").build(u,e);return t?n+"&"+m:n}l.getMapUrl=_,l.getMapImgSrcUrl=f}),98); __d("WAWebAnnotation.react",["fbt","$InternalEnum","WANullthrows","WAWebClickableLink.react","WAWebCmd","WAWebDropdown.react","WAWebExternalLink.react","WAWebMapUtils","WAWebNewsletterApiParse","WAWebNewsletterExecApiCmd","WAWebNewsletterGatingUtils","WAWebParseForwardedNewsletterMessageInfo","WAWebResizeObserver.react","WAWebUimUie.react","WAWebUimUieTooltip.react","WAWebWamEnumTsSurface","react","useWAWebDebouncedCallback","useWAWebForceUpdate"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=o("react")),d=e||(e=r("react")),m=c.useEffect,p=c.useRef,_=c.useState,f=n("$InternalEnum").Mirrored(["Location","NewsletterLink","Unknown"]);function g(e){return e.location!=null?f.Location:e.newsletter!=null?f.NewsletterLink:f.Unknown}function h(e){var t=e.polygonVertices,n=t[0],r=t[2];if(n==null||n.x==null||n.y==null||r==null||r.x==null||r.y==null)return!1;var a=g(e);switch(a){case f.Location:{var i=e.location;return(i==null?void 0:i.degreesLatitude)!=null&&(i==null?void 0:i.degreesLongitude)!=null}case f.NewsletterLink:{var l=e.newsletter;return o("WAWebNewsletterGatingUtils").isNewsletterLinksOnStatusConsumptionEnabled()&&(l==null?void 0:l.newsletterJid)!=null}case f.Unknown:return!1}}function y(e){var t,n=e.polygonVertices,o=n[0],a=n[2];return(t=r("WANullthrows"))(o.x)+":"+t(o.y)+":"+t(a.x)+":"+t(a.y)}function C(e,t){if(e==null)return null;var n=e.parentNode;if(!(n!=null&&n instanceof HTMLElement))return null;var o=t.polygonVertices,a=o[0],i=o[1],l=o[2];if(r("WANullthrows")(a.x)===r("WANullthrows")(i.x)||r("WANullthrows")(i.y)===r("WANullthrows")(l.y)){var s=t.polygonVertices;a=s[1],i=s[2],l=s[3]}var u=r("WANullthrows")(a.x),c=r("WANullthrows")(a.y),d=r("WANullthrows")(i.x),m=r("WANullthrows")(i.y),p=r("WANullthrows")(l.y),_=u*n.offsetWidth,f=c*n.offsetHeight,g=n.offsetWidth*(u-d),h=n.offsetHeight*(c-m),y=u>d?Math.PI:0,C=g?Math.atan(h/g)+y:0,b=C*180/Math.PI,v=Math.abs(g/Math.cos(C)),S=Math.abs(n.offsetHeight*(p-m)/Math.cos(C)),R="rotate("+b+"deg)";return{left:Math.round(_),top:Math.round(f),width:Math.round(v),height:Math.round(S),transform:R,transformOrigin:"top left"}}function b(e){var t,n,r,o,a=g(e);switch(a){case f.Location:return(t=(n=e.location)==null?void 0:n.name)!=null?t:s._(/*BTDS*/"Ubicaci\u00f3n desconocida");case f.NewsletterLink:return(r=(o=e.newsletter)==null?void 0:o.newsletterName)!=null?r:s._(/*BTDS*/"Canal desconocido");case f.Unknown:return s._(/*BTDS*/"Enlace desconocido")}}function v(e){"use no forget";var t=e.annotation,n=o("useWAWebForceUpdate").useForceUpdateDONOTUSE(),r=p(null);return m(function(){n()},[]),d.jsx("div",{ref:r,className:"x10l6tqk xupqr0c",style:C(r.current,t),onClick:function(r){return e.onClick(r,t)},onKeyDown:function(r){return e.onKeyDown(r,t)},role:"button","aria-label":b(t),tabIndex:0})}v.displayName=v.name+" [from "+i.id+"]";function S(e){var t=g(e);switch(t){case f.Location:return s._(/*BTDS*/"Ver ubicaci\u00f3n");case f.NewsletterLink:return s._(/*BTDS*/"Ver canal");case f.Unknown:return s._(/*BTDS*/"Enlace desconocido")}}function R(e){var t=e.location,n=o("WAWebMapUtils").getMapUrl(r("WANullthrows")(t.degreesLatitude),r("WANullthrows")(t.degreesLongitude));o("WAWebExternalLink.react").openExternalLink(n)}function L(e){var t=e.newsletter;if(t!=null){var n=o("WAWebParseForwardedNewsletterMessageInfo").parseForwardedNewsletterMessageInfo(t),r=n.newsletterId,a=n.serverMessageId;r!=null&&(o("WAWebCmd").Cmd.closeStatusViewer(),o("WAWebNewsletterExecApiCmd").execNewsletterApiCmd({identifier:r.toString(),identifierType:o("WAWebNewsletterApiParse").NewsletterIdentifierType.Id,type:"view",chatEntryPoint:o("WAWebParseForwardedNewsletterMessageInfo").getChatEntryPointFromNewsletterLinkAnnotation(e),discoverySurface:o("WAWebWamEnumTsSurface").TS_SURFACE.STATUS_VIEW,serverId:a}))}}function E(e){var t=g(e);switch(t){case f.Location:R(e);break;case f.NewsletterLink:L(e);break;case f.Unknown:break}}function k(e){var t=e.annotation,n=e.onClick,o=S(t),a=function(){E(t),n()};return d.jsx(r("WAWebClickableLink.react"),{className:"x1lliihq x1tiyuxx xyri2b x1nbhmlj x1c1uobl x18ihxl1",onClick:a,children:o})}k.displayName=k.name+" [from "+i.id+"]";function I(e){var t=e.onTooltipDismiss,n=e.onTooltipDisplay,a=Array.from(e.annotations).reverse(),i=_(null),l=i[0],s=i[1],u=function(){s(null),t&&t()},c=function(t,r,a){if(!(r==null&&a==null)){var e=d.jsx(k,{annotation:t,onClick:u}),i={menu:e,type:o("WAWebDropdown.react").MenuType.Tooltip,dirX:o("WAWebDropdown.react").DirX.RIGHT,dirY:o("WAWebDropdown.react").DirY.TOP};r!=null?i=babelHelpers.extends({},i,{event:r,autoFocus:!1,offsetX:0,offsetY:0}):i=babelHelpers.extends({},i,{anchor:a,autoFocus:!0}),s(i),n&&n()}},m=function(t,n,r){t.shouldSkipConfirmation===!0?E(t):c(t,n,r)},p=function(t,n){t.stopPropagation(),m(n,t)},f=function(t,n){(t.key===" "||t.key==="Enter")&&(t.preventDefault(),m(n,null,t.target))},g=r("useWAWebDebouncedCallback")(function(){u()},100);if(!a.length)return null;var C=l&&d.jsx(o("WAWebUimUie.react").UIE,{displayName:"InteractiveAnnotationTooltip",popable:!0,escapable:!0,dismissOnWindowResize:!0,requestDismiss:u,requestRecentFocusOnUnmount:!1,children:d.jsx(r("WAWebUimUieTooltip.react"),{tooltip:l})});return d.jsxs(d.Fragment,{children:[a.map(function(e){return h(e)&&d.jsx(v,{annotation:e,onClick:function(n){return p(n,e)},onKeyDown:function(n){return f(n,e)}},y(e))}),C,d.jsx(r("WAWebResizeObserver.react"),{onResize:g})]})}I.displayName=I.name+" [from "+i.id+"]",l.default=I}),226); __d("WAWebWamEnumAutomaticEventsTargetComponentEnum",[],(function(t,n,r,o,a,i){var e=Object.freeze({SYSTEM_MESSAGE:0,LEARN_MORE:1,NUX_SCREEN:2,NUX_SCREEN_OK:3,NUX_SCREEN_META_BUSINESS_SUITE:4,AE_ONBOARDING_NUX_SCREEN:5,AE_ONBOARDING_NUX_TURN_ON:6,AE_ONBOARDING_NUX_NOT_NOW:7,AE_ONBOARDING_NUX_META_TERMS_FOR_AUTOMATIC_EVENTS:8,AE_ONBOARDING_NUX_PRIVACY_POLICY:9,AE_ONBOARDING_NUX_LEARN_MORE:10,AE_ONBOARDING_START:11,AE_ONBOARDING_FINISH:12,AE_OFFBOARDING_NUX_SCREEN:13,AE_OFFBOARDING_NUX_TURN_OFF:14,AE_OFFBOARDING_NUX_NOT_NOW:15,AE_OFFBOARDING_CONFIRMATION_DIALOG:16,AE_OFFBOARDING_CONFIRMATION_DIALOG_TURN_OFF:17,AE_OFFBOARDING_CONFIRMATION_DIALOG_NOT_NOW:18,AE_OFFBOARDING_START:19,AE_OFFBOARDING_FINISH:20,AE_ONBOARDING_BLOCKED_FOR_MULTI1P:21,LIST_SETTINGS_AE_ROW_OFFBOARDED:22,LIST_SETTINGS_AE_ROW_ONBOARDED:23,LIST_SETTINGS_AE_ROW_OFFBOARDING:24,LIST_SETTINGS_AE_ROW_ONBOARDING:25,LIST_SETTINGS_AE_ROW_OFFBOARDED_CLICK:26,LIST_SETTINGS_AE_ROW_ONBOARDED_CLICK:27});i.AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM=e}),66); __d("WAWebAutomaticEventsUserJourneyWamEvent",["WAWebWamCodegenUtils","WAWebWamEnumAutomaticEventsTargetComponentEnum","WAWebWamEnumSmbUserActionTypeEnum","WAWebWamEnumSurfaceType"],(function(t,n,r,o,a,i,l){var e=o("WAWebWamCodegenUtils").defineEvents({AutomaticEventsUserJourney:[6636,{automaticEventsTargetComponent:[1,o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM],extraAttributes:[4,o("WAWebWamCodegenUtils").TYPES.STRING],smbUserActionType:[2,o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM],surface:[3,o("WAWebWamEnumSurfaceType").SURFACE_TYPE]},[1,1,1],"regular"]},{AutomaticEventsUserJourney:[]});l.AutomaticEventsUserJourneyWamEvent=e}),98); __d("WAWebBoltIcon.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="bolt";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M10.55 18.2L15.725 12H11.725L12.45 6.32503L7.82497 13H11.3L10.55 18.2ZM8.99997 15H5.89997C5.49997 15 5.20414 14.8209 5.01247 14.4625C4.8208 14.1042 4.84164 13.7584 5.07497 13.425L12.55 2.67503C12.7166 2.44169 12.9333 2.27919 13.2 2.18753C13.4666 2.09586 13.7416 2.10003 14.025 2.20003C14.3083 2.30003 14.5166 2.47503 14.65 2.72503C14.7833 2.97503 14.8333 3.24169 14.8 3.52503L14 10H17.875C18.3083 10 18.6125 10.1917 18.7875 10.575C18.9625 10.9584 18.9083 11.3167 18.625 11.65L10.4 21.5C10.2166 21.7167 9.99164 21.8584 9.72497 21.925C9.4583 21.9917 9.19997 21.9667 8.94997 21.85C8.69997 21.7334 8.50414 21.5542 8.36247 21.3125C8.2208 21.0709 8.16664 20.8084 8.19997 20.525L8.99997 15Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.BoltIcon=m}),98); __d("WAWebCameraOutlineRefreshedIcon.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="camera-outline-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M12 17.5C13.25 17.5 14.3125 17.0625 15.1875 16.1875C16.0625 15.3125 16.5 14.25 16.5 13C16.5 11.75 16.0625 10.6875 15.1875 9.8125C14.3125 8.9375 13.25 8.5 12 8.5C10.75 8.5 9.6875 8.9375 8.8125 9.8125C7.9375 10.6875 7.5 11.75 7.5 13C7.5 14.25 7.9375 15.3125 8.8125 16.1875C9.6875 17.0625 10.75 17.5 12 17.5ZM12 15.5C11.3 15.5 10.7083 15.2583 10.225 14.775C9.74167 14.2917 9.5 13.7 9.5 13C9.5 12.3 9.74167 11.7083 10.225 11.225C10.7083 10.7417 11.3 10.5 12 10.5C12.7 10.5 13.2917 10.7417 13.775 11.225C14.2583 11.7083 14.5 12.3 14.5 13C14.5 13.7 14.2583 14.2917 13.775 14.775C13.2917 15.2583 12.7 15.5 12 15.5ZM4 21C3.45 21 2.97917 20.8042 2.5875 20.4125C2.19583 20.0208 2 19.55 2 19V7C2 6.45 2.19583 5.97917 2.5875 5.5875C2.97917 5.19583 3.45 5 4 5H7.15L8.4 3.65C8.58333 3.45 8.80417 3.29167 9.0625 3.175C9.32083 3.05833 9.59167 3 9.875 3H14.125C14.4083 3 14.6792 3.05833 14.9375 3.175C15.1958 3.29167 15.4167 3.45 15.6 3.65L16.85 5H20C20.55 5 21.0208 5.19583 21.4125 5.5875C21.8042 5.97917 22 6.45 22 7V19C22 19.55 21.8042 20.0208 21.4125 20.4125C21.0208 20.8042 20.55 21 20 21H4ZM4 19H20V7H15.95L14.125 5H9.875L8.05 7H4V19Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.CameraOutlineRefreshedIcon=m}),98); __d("WAWebCancelablePopup.react",["fbt","WAWebButton.react","WAWebKeyboardHotKeys.react","WAWebModal.react","WAWebNoop","react","vulture"],(function(t,n,r,o,a,i,l,s){var e,u,c=u||(u=r("react")),d=(e||(e=o("react"))).Children;function m(e){var t;r("vulture")("tUTYcONim6H06fht9ntd57FbxwQ=");function n(t){t.stopPropagation(),t.preventDefault(),e.onCancel&&e.onCancel()}var a=d.count(e.actions)>0,i=(t=e.cancelButtonType)!=null?t:a?"secondary":"primary",l=e.onCancel?c.jsx(o("WAWebButton.react").Button,{testid:void 0,type:i,onClick:n,children:s._(/*BTDS*/"Cancelar")}):null,u={escape:e.onCancel?n:r("WAWebNoop")},m=e.actions!=null||l!=null?c.jsxs(c.Fragment,{children:[e.actions,l]}):null;return c.jsx(o("WAWebKeyboardHotKeys.react").HotKeys,{handlers:u,children:c.jsx(o("WAWebModal.react").Modal,{actions:m,controlsStyle:e.controlsStyle,children:e.children,cover:e.cover,onDragChange:e.onDragChange,onDrop:e.onDrop,type:e.type,title:e.title})})}m.displayName=m.name+" [from "+i.id+"]",l.default=m}),226); __d("WAWebCoexSystemMessageModalContent.react",["fbt","WAWebClickableLink.react","WAWebCmd","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFbtCommon","WAWebModal.react","WAWebModalManager","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.faqUrl,n=e.lid,a=e.onClose,i=e.onVerificationClick,l=e.shouldHideVerificationButton,c=l===void 0?!1:l,d=e.text,m=e.textLast,p=e.wid,_=function(){o("WAWebModalManager").ModalManager.close("none"),self.setTimeout(function(){return o("WAWebExternalLink.react").openExternalLink(t)},10)},f=u.jsx(r("WAWebClickableLink.react"),{onClick:function(){if(i!=null){i();return}o("WAWebCmd").Cmd.verificationDrawer({wid:p,lid:n})},children:s._(/*BTDS*/"Verificar cifrado")}),g={text:s._(/*BTDS*/"M\u00e1s informaci\u00f3n"),onClick:_};return u.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,onOK:a!=null?a:o("WAWebModalManager").closeModalManager,buttonsDirection:"horizontal",okText:r("WAWebFbtCommon")("OK"),type:o("WAWebModal.react").ModalTheme.Multiline,extraButtonProps:g,children:[d,"\xA0",c?null:f,u.jsx("br",{}),u.jsx("br",{}),m!=null&&m,"\xA0"]})}c.displayName=c.name+" [from "+i.id+"]",l.default=c}),226); __d("WAWebCommunityAdminSelfDemotePopup.react",["fbt","WAWebCmd","WAWebCommunityTransferOwnershipFlowLoadable.react","WAWebConfirmPopup.react","WAWebDrawerManager","WAWebKeyboardTabUtils","react"],(function(t,n,r,o,a,i,l,s){var e=["ref"],u,c=u||(u=r("react"));function d(e){var t=e.onCancel,n=e.onDemote,r=e.ref,a=s._(/*BTDS*/"\u00bfDeseas dejar de ser admin. de la comunidad?"),i=s._(/*BTDS*/"No podr\u00e1s enviar avisos, administrar la comunidad ni usar otras herramientas para administradores.");return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{ref:r,title:a,onOK:n,onCancel:t,children:c.jsx("div",{className:"x1jchvi3 x1xet1wb",children:i})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.handleDismissModal,n=e.parentGroupChat,r=e.ref;if(n!=null){var a=function(){o("WAWebDrawerManager").DrawerManager.openDrawerRight(c.jsx(o("WAWebCommunityTransferOwnershipFlowLoadable.react").CommunityTransferOwnershipFlowLoadable,{parentGroupChat:n,onEnd:function(){return o("WAWebCmd").Cmd.openCommunityTabbedInfo(n.id)}}),{transition:"flow-transition-drawer-push",focusType:o("WAWebKeyboardTabUtils").FocusType.TABBABLE}),t()};return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{testid:void 0,ref:r,onOK:a,okText:s._(/*BTDS*/"Asignar nuevo propietario"),onCancel:t,children:c.jsx("div",{className:"x1jchvi3 x1xet1wb",children:s._(/*BTDS*/"Como propietario, tendr\u00e1s que asignar un nuevo propietario para dejar de ser administrador.")})})}return c.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{ref:r,onOK:t,children:c.jsx("div",{className:"x1jchvi3 x1xet1wb",children:s._(/*BTDS*/"No puedes dejar de ser admin. de la comunidad porque t\u00fa la creaste.")})})}m.displayName=m.name+" [from "+i.id+"]";function p(t){var n=t.ref,r=babelHelpers.objectWithoutPropertiesLoose(t,e),o=r.isCommunitySuperAdmin,a=o===void 0?!1:o,i=r.onCancel,l=r.onDemote,s=r.onFailure,u=r.parentGroupChat;return a?c.jsx(m,{ref:n,handleDismissModal:s,parentGroupChat:u}):c.jsx(d,{ref:n,onDemote:l,onCancel:i})}p.displayName=p.name+" [from "+i.id+"]",l.default=p}),226); __d("WAWebCommunityPromoteDemotePopups.react",["fbt","WAWebConfirmPopup.react","WAWebEmojiText.react","WAWebFrontendContactGetters","WAWebModalManager","WAWebText_DONOTUSE.react","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react"));function c(e){var t=e.parentGroupAdminsLimit,n=e.onOk,r=n===void 0?o("WAWebModalManager").closeModalManager:n;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"Se alcanz\u00f3 el l\u00edmite de admin. para la comunidad"),onOK:r,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:s._(/*BTDS*/"_j{\"*\":\"Alcanzaste el m\\u00e1ximo de {adminsNumber} admin. para esta comunidad.\",\"_1\":\"Alcanzaste el m\\u00e1ximo de 1 admin. para esta comunidad.\"}",[s._plural(t,"adminsNumber")])})})}c.displayName=c.name+" [from "+i.id+"]";function d(e){var t=e.contact,n=e.onParticipantPromote,r=e.onCancel,a=r===void 0?o("WAWebModalManager").closeModalManager:r,i=t?s._(/*BTDS*/"Para administrar el grupo de avisos, {contact_name} debe ser admin. de la comunidad. Si designas a esta persona como admin., podr\u00e1 enviar avisos, administrar grupos, editar la informaci\u00f3n de la comunidad y usar otras herramientas para administradores.",[s._param("contact_name",u.jsx(o("WAWebEmojiText.react").EmojiText,{text:o("WAWebFrontendContactGetters").getFormattedName(t)}))]):s._(/*BTDS*/"Quienes administran la comunidad pueden enviar avisos, administrar grupos, editar la informaci\u00f3n de la comunidad y usar otras herramientas para administradores.");return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas designar a esta persona como admin.?"),onOK:n,onCancel:a,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:i})})}d.displayName=d.name+" [from "+i.id+"]";function m(e){var t=e.onParticipantPromote,n=e.onCancel,r=n===void 0?o("WAWebModalManager").closeModalManager:n;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:t,okText:s._(/*BTDS*/"Volver a intentarlo"),onCancel:r,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:s._(/*BTDS*/"Ocurri\u00f3 un error mientras design\u00e1bamos a este miembro como admin. de la comunidad. Por favor, vuelve a intentarlo.")})})}m.displayName=m.name+" [from "+i.id+"]";function p(e){var t=e.onOk,n=t===void 0?o("WAWebModalManager").closeModalManager:t;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{onOK:n,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:s._(/*BTDS*/"Este miembro no puede ser admin. de la comunidad porque no forma parte de su grupo de avisos. Cuando se una al grupo, podr\u00e1s designarlo como admin. de la comunidad.")})})}p.displayName=p.name+" [from "+i.id+"]";function _(e){var t=e.onParticipantDemote,n=e.onCancel,r=n===void 0?o("WAWebModalManager").closeModalManager:n,a=e.isMe,i=a===void 0?!1:a;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{okText:s._(/*BTDS*/"Volver a intentarlo"),onOK:t,onCancel:r,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:i?s._(/*BTDS*/"Se produjo un error mientras se te descartaba como admin. de la comunidad. Por favor, vuelve a intentarlo."):s._(/*BTDS*/"Ocurri\u00f3 un error mientras descart\u00e1bamos a este miembro como admin. de la comunidad. Por favor, vuelve a intentarlo.")})})}_.displayName=_.name+" [from "+i.id+"]";function f(e){var t=e.onParticipantDemote,n=e.onCancel,r=n===void 0?o("WAWebModalManager").closeModalManager:n;return u.jsx(o("WAWebConfirmPopup.react").ConfirmPopup,{title:s._(/*BTDS*/"\u00bfDeseas descartar a esta persona como admin. de la comunidad?"),onOK:t,onCancel:r,children:u.jsx(o("WAWebText_DONOTUSE.react").TextParagraph,{size:"16",children:s._(/*BTDS*/"Esta persona no podr\u00e1 enviar avisos, administrar la comunidad ni usar otras herramientas para administradores.")})})}f.displayName=f.name+" [from "+i.id+"]",l.CommunityAdminLimitPopup=c,l.CommunityAdminPromotePopup=d,l.CommunityAdminPromoteErrorPopup=m,l.CommunityAdminPromoteInvalidParticipantErrorPopup=p,l.CommunityAdminDemoteErrorPopup=_,l.CommunityAdminDemotePopup=f}),226); __d("WAWebWdsIllDetectedOutcomesAutomatedLabelsIcon.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-detected-outcomes-automated-labels";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=88,R=88;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p,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:"#E6FFDA",stroke:"#111B21",strokeWidth:1.5,d:"M15.5156 9.5464h44.6875c1.0239 0 1.997.1999 2.9258.6006l.3955.1836c.9158.4579 1.685 1.065 2.3135 1.8242l.2607.3349.0049.0069 18.2842 24.3789c.9814 1.2881 1.4717 2.753 1.4717 4.4209 0 1.5636-.4306 2.9485-1.293 4.1767l-.1787.2442-18.2842 24.3789-.0049.0068c-.5887.8029-1.3171 1.4534-2.1914 1.9541l-.3828.2051c-1.0469.5235-2.1513.7842-3.3213.7842H15.5156c-1.9067 0-3.5398-.6287-4.9326-1.9033l-.2754-.2637c-1.4516-1.4516-2.167-3.1741-2.167-5.208v-48.75c0-1.9067.6287-3.5399 1.9033-4.9326l.2637-.2754c1.4516-1.4516 3.1741-2.167 5.208-2.167Z"}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.5,d:"M59.6563 19.6665c2.7638 2.6333 3.328 7.3232 1.6625 13.034-1.6535 5.6699-5.4575 12.1275-11.0471 17.9945-5.5895 5.8669-11.8555 9.979-17.4388 11.9051-5.6233 1.9398-10.3352 1.6032-13.0991-1.0298-2.764-2.6332-3.3279-7.3233-1.6626-13.034 1.6536-5.6699 5.4569-12.1283 11.0464-17.9952 5.5896-5.867 11.8562-9.9784 17.4395-11.9044 5.6236-1.9399 10.3353-1.6035 13.0992 1.0298Z"}),c.jsx("path",{stroke:"#111B21",strokeWidth:1.5,d:"M19.7328 19.6655c-2.7637 2.6333-3.3279 7.3232-1.6625 13.034 1.6536 5.6699 5.4576 12.1276 11.0471 17.9945 5.5896 5.867 11.8556 9.9791 17.4388 11.9051 5.6234 1.9398 10.3352 1.6033 13.0992-1.0298 2.7639-2.6332 3.3279-7.3233 1.6625-13.034-1.6535-5.6699-5.4568-12.1282-11.0464-17.9952-5.5895-5.867-11.8562-9.9783-17.4395-11.9044-5.6235-1.9398-10.3352-1.6035-13.0992 1.0298Z"}),c.jsx("circle",{cx:39.6948,cy:40.6177,r:5.75,stroke:"#111B21",strokeWidth:1.5}),c.jsx("path",{fill:"#FCF5EB",stroke:"#111B21",strokeWidth:1.5,d:"M12.4612 60.8257h18.0342c6.2386 0 11.2957 5.0573 11.2959 11.2959 0 6.2387-5.0572 11.2968-11.2959 11.2969H12.4612c-6.2386-.0002-11.296-5.0583-11.296-11.2969.0003-6.2385 5.0575-11.2957 11.296-11.2959Z"}),c.jsx("path",{fill:"#25D366",stroke:"#111B21",strokeMiterlimit:10,strokeWidth:1.5,d:"M29.2484 79.0698c3.8391 0 6.95-3.111 6.95-6.9501 0-3.8391-3.1131-6.9478-6.95-6.9478s-6.9501 3.1109-6.9501 6.95 3.111 6.9501 6.9501 6.9501v-.0022Z"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.WdsIllDetectedOutcomesAutomatedLabelsIcon=m}),98); __d("WAWebDOIntroPopup.react",["fbt","WAWebAutomaticEventsUserJourneyWamEvent","WAWebBoltIcon.react","WAWebClickableLink.react","WAWebConfirmPopup.react","WAWebExternalLink.react","WAWebFbtCommon","WAWebFlex.react","WAWebLabelOutlineIcon.react","WAWebModalManager","WAWebSettingsOutlineIcon.react","WAWebText.react","WAWebUISpacing","WAWebWamEnumAutomaticEventsTargetComponentEnum","WAWebWamEnumSmbUserActionTypeEnum","WAWebWdsIllDetectedOutcomesAutomatedLabelsIcon.react","react","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["content"],u,c,d=c||(c=o("react")),m=c,p=m.useEffect,_=m.useRef,f={header:{fontSize:"x1603h9y",fontWeight:"xk50ysn",lineHeight:"x37zpob",$$css:!0},buttonGroupStyle:{justifyContent:"x1lvf691",paddingBottom:"xs9asl8",$$css:!0},icon:{color:"xhslqc4",$$css:!0}},g="https://business.facebook.com";function h(e){var t=function(n){n.preventDefault(),new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:e.surfaceType,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.NUX_SCREEN_META_BUSINESS_SUITE}).commit(),self.setTimeout(function(){return o("WAWebExternalLink.react").openExternalLink(g)},10)},n=[{Icon:o("WAWebBoltIcon.react").BoltIcon,title:s._(/*BTDS*/"Las etiquetas autom\u00e1ticas pueden ayudarte a ahorrar tiempo y a trabajar de forma m\u00e1s eficiente."),key:"auto-labels-can-help-you-save-time-and-work-more-efficiently"},{Icon:o("WAWebLabelOutlineIcon.react").LabelOutlineIcon,title:s._(/*BTDS*/"Meta a\u00f1ade etiquetas cuando se presenta un nuevo pedido o cliente potencial en un chat."),key:"labels-are-added-new-order-or-lead"},{Icon:o("WAWebSettingsOutlineIcon.react").SettingsOutlineIcon,title:s._(/*BTDS*/"Puedes cambiar los ajustes de etiquetado en {=m2}.",[s._implicitParam("=m2",d.jsx(r("WAWebClickableLink.react"),{href:g,onClick:t,children:s._(/*BTDS*/"Meta Business Suite")}))]),key:"change-your-labeling-settings-in-mbs"}];return d.jsx(y,babelHelpers.extends({content:n},e))}h.displayName=h.name+" [from "+i.id+"]";function y(t){var n,a=t.content,i=babelHelpers.objectWithoutPropertiesLoose(t,e),l=_();p(function(){var e;(e=l.current)==null||e.focus(),new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:i.surfaceType,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.VIEW,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.NUX_SCREEN}).commit()},[i.surfaceType]);var u=function(){new(o("WAWebAutomaticEventsUserJourneyWamEvent")).AutomaticEventsUserJourneyWamEvent({surface:i.surfaceType,smbUserActionType:o("WAWebWamEnumSmbUserActionTypeEnum").SMB_USER_ACTION_TYPE_ENUM.CLICK,automaticEventsTargetComponent:o("WAWebWamEnumAutomaticEventsTargetComponentEnum").AUTOMATIC_EVENTS_TARGET_COMPONENT_ENUM.NUX_SCREEN_OK}).commit(),o("WAWebModalManager").ModalManager.close(),i.onContinue==null||i.onContinue()};return d.jsxs(o("WAWebConfirmPopup.react").ConfirmPopup,{okText:r("WAWebFbtCommon")("OK"),onOK:u,ref:l,buttonGroupStyle:f.buttonGroupStyle,children:[d.jsx((n=o("WAWebFlex.react")).FlexRow,{align:"center",justify:"center",children:d.jsx(n.FlexItem,{xstyle:[o("WAWebUISpacing").uiMargin.top10,o("WAWebUISpacing").uiPadding.horiz10],children:d.jsx(o("WAWebWdsIllDetectedOutcomesAutomatedLabelsIcon.react").WdsIllDetectedOutcomesAutomatedLabelsIcon,{width:90,height:90})})}),d.jsx(n.FlexRow,{align:"center",justify:"center",children:d.jsx(n.FlexItem,{xstyle:[f.header,o("WAWebUISpacing").uiPadding.vert18],children:s._(/*BTDS*/"Algunos chats se etiquetan autom\u00e1ticamente")})}),d.jsx(n.FlexColumn,{children:a.map(function(e){var t=e.Icon,n=e.description,r=e.key,o=e.title;return d.jsx(C,{Icon:t,title:o,description:n},r)})})]})}y.displayName=y.name+" [from "+i.id+"]";function C(e){var t=e.Icon,n=e.description,a=e.title;return d.jsxs(o("WAWebFlex.react").FlexRow,{align:"center",className:(u||(u=r("stylex")))([o("WAWebUISpacing").uiMargin.top20]),children:[d.jsx(o("WAWebFlex.react").FlexItem,{shrink:0,className:u(o("WAWebUISpacing").uiMargin.horiz25),children:d.jsx(t,{width:24,iconXstyle:f.icon})}),d.jsxs(o("WAWebFlex.react").FlexItem,{children:[d.jsx(o("WAWebText.react").WAWebTextTitle,{xstyle:o("WAWebUISpacing").uiMargin.end24,color:"wdsContentDeemphasized",children:a}),n!=null&&d.jsx(o("WAWebText.react").WAWebTextSmall,{children:n})]})]})}C.displayName=C.name+" [from "+i.id+"]",l.default=h}),226); __d("WAWebPrinaUtils",["WALogger","WAWebABPropsSupportGroup","WAWebChatGetters","WAWebChatGroupUtils","WAWebE2EInfoModal.react","WAWebE2EInfoModalV2.react","WAWebFaqUrl","WAWebGroupMetadataCollection","WAWebL10N","WAWebLimitSharingGatingUtils","WAWebMiscGatingUtils","WAWebModalManager","WAWebPrivacyModeSystemMsg","WAWebStateUtils","WAWebURLUtils","WAWebWamEnumPrivacyHighlightSurfaceEnum","WAWebWid","react"],(function(t,n,r,o,a,i,l){var e,s,u=s||(s=r("react")),c="https://www.whatsapp.com/security/";function d(){return r("WAWebURLUtils").build(c,{lg:r("WAWebL10N").getNormalizedLocale()})}function m(t){if(r("WAWebWid").isGroup(t))return o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.GOLDEN_BOX_GROUP;if(r("WAWebWid").isBroadcast(t))return o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.GOLDEN_BOX_BROADCAST;if(r("WAWebWid").isUser(t))return o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.GOLDEN_BOX_CONTACT;o("WALogger").WARN(e||(e=babelHelpers.taggedTemplateLiteralLoose(["getHighlightSurfaceForGoldenBox Invalid ChatId"]))).verbose().sendLogs("get-highlight-surface-invalid-chat-id")}function p(e){if(o("WAWebMiscGatingUtils").isPrivacyNarrativeV1Enabled()&&_(o("WAWebStateUtils").unproxy(e))){var t=o("WAWebFaqUrl").getE2EFaqUrl();o("WAWebModalManager").ModalManager.open(u.jsx(o("WAWebE2EInfoModalV2.react").E2eInfoModalV2,{highlightSurface:o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.INFO_SCREEN_GROUP,url:t}));return}o("WAWebModalManager").ModalManager.open(u.jsx(r("WAWebE2EInfoModal.react"),{highlightSurface:o("WAWebWamEnumPrivacyHighlightSurfaceEnum").PRIVACY_HIGHLIGHT_SURFACE_ENUM.INFO_SCREEN_GROUP,chatId:e.id,e2eSubtype:"info_encrypted"}))}function _(e){if(e==null||o("WAWebChatGroupUtils").isSupportGroup(e)||r("WAWebABPropsSupportGroup")(e.id.user))return!1;if(o("WAWebLimitSharingGatingUtils").isRenderUpdatedDisclosureGatingEnabled())return o("WAWebChatGetters").getIsUser(e)?!e.contact.isEnterprise:o("WAWebChatGetters").getIsGroup(e);if(o("WAWebChatGetters").getIsUser(e))return!e.contact.isBusiness&&!e.contact.isEnterprise;if(o("WAWebChatGetters").getIsGroup(e)){var t=r("WAWebGroupMetadataCollection").get(e.id);if(t){var n=t.participants.toArray();return!n.some(function(e){return e.contact.isBusiness})}}return!1}function f(e){return e==null||o("WAWebChatGroupUtils").isSupportGroup(e)||r("WAWebABPropsSupportGroup")(e.id.user)?!1:o("WAWebChatGetters").getIsUser(e)?e.contact.isEnterprise&&o("WAWebPrivacyModeSystemMsg").getReducedPrivacyMode(e.contact.privacyMode)===o("WAWebPrivacyModeSystemMsg").ReducedPrivacyMode.E2EE?!0:!e.contact.isEnterprise:!!(o("WAWebChatGetters").getIsGroup(e)||o("WAWebChatGetters").getIsBroadcast(e))}l.securityUrl=d,l.getHighlightSurfaceForGoldenBox=m,l.showEncryptionInfoPopup=p,l.shouldShowNewE2eInfoModal=_,l.chatContainsGoldenBox=f}),98); __d("WAWebMediaRefreshedIcon.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="media-refreshed";function m(t){var n=t.height,a=t.iconXstyle,i=t.name,l=t.viewBox,s=t.width,m=babelHelpers.objectWithoutPropertiesLoose(t,e),p;if(l){var _=l.height,f=_===void 0?0:_,g=l.width,h=g===void 0?0:g,y=l.x,C=y===void 0?0:y,b=l.y,v=b===void 0?0:b;p=[C,v,h,f].join(" ")}var S=24,R=24;return(n!=null||s!=null)&&(S=n,R=s),c.jsx(o("WAWebSvgComponentBase").BaseSvgSpan,babelHelpers.extends({name:i!=null?i:d},m,{children:c.jsxs("svg",{viewBox:p!=null?p:"0 0 24 24",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"M13.25 12.5L12.1 11C12 10.8667 11.8667 10.8 11.7 10.8C11.5333 10.8 11.4 10.8667 11.3 11L9.625 13.2C9.49167 13.3667 9.47083 13.5417 9.5625 13.725C9.65417 13.9083 9.80833 14 10.025 14H17.975C18.1917 14 18.3458 13.9083 18.4375 13.725C18.5292 13.5417 18.5083 13.3667 18.375 13.2L15.95 10.025C15.85 9.89167 15.7167 9.825 15.55 9.825C15.3833 9.825 15.25 9.89167 15.15 10.025L13.25 12.5ZM8 18C7.45 18 6.97917 17.8042 6.5875 17.4125C6.19583 17.0208 6 16.55 6 16V4C6 3.45 6.19583 2.97917 6.5875 2.5875C6.97917 2.19583 7.45 2 8 2H20C20.55 2 21.0208 2.19583 21.4125 2.5875C21.8042 2.97917 22 3.45 22 4V16C22 16.55 21.8042 17.0208 21.4125 17.4125C21.0208 17.8042 20.55 18 20 18H8ZM8 16H20V4H8V16ZM4 22C3.45 22 2.97917 21.8042 2.5875 21.4125C2.19583 21.0208 2 20.55 2 20V7C2 6.71667 2.09583 6.47917 2.2875 6.2875C2.47917 6.09583 2.71667 6 3 6C3.28333 6 3.52083 6.09583 3.7125 6.2875C3.90417 6.47917 4 6.71667 4 7V20H17C17.2833 20 17.5208 20.0958 17.7125 20.2875C17.9042 20.4792 18 20.7167 18 21C18 21.2833 17.9042 21.5208 17.7125 21.7125C17.5208 21.9042 17.2833 22 17 22H4Z",fill:"currentColor"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.MediaRefreshedIcon=m}),98); __d("WAWebSecurityMessageLockIllustrationIcon.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="security-message-lock-illustration";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=89,R=167;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 167 89",height:S,width:R,preserveAspectRatio:"xMidYMid meet",className:(u||(u=r("stylex")))(a),fill:"none",children:[c.jsx("title",{children:i!=null?i:d}),c.jsx("path",{d:"m14.113 27.67.12.185V73.58c0 7.63 6.163 13.81 13.76 13.81h74.361c7.596 0 13.759-6.18 13.759-13.81V15.336c0-7.63-6.163-13.811-13.759-13.811H5.826c-3.718 0-5.965 4.14-3.933 7.278z",fill:"#E6FFDA",stroke:"#0A0A0A",strokeWidth:1.5}),c.jsx("path",{d:"M34.302 34.106h63.007M34.296 54.514h45.652",stroke:"#0A0A0A",strokeWidth:1.5,strokeLinecap:"round"}),c.jsx("path",{d:"M163.254 33.24c-.779-.792-1.643-1.397-2.592-1.786-.935-.403-1.955-.59-3.06-.59h-3.995V22.74c0-1.7-.199-3.298-.553-4.84 0-.072 0-.144-.028-.216-.057-.216-.128-.432-.184-.648-.043-.13-.071-.274-.114-.403-.17-.547-.354-1.08-.566-1.613-.043-.101-.085-.187-.128-.288-.184-.447-.397-.879-.609-1.311-.071-.13-.128-.26-.198-.389a18 18 0 0 0-.893-1.484l-.127-.172c-.298-.432-.61-.85-.935-1.268-.1-.13-.199-.245-.298-.36-.382-.46-.779-.922-1.218-1.354q-2.933-2.982-6.46-4.45c-.879-.375-1.8-.649-2.749-.88a20.4 20.4 0 0 0-9.86 0c-.935.231-1.87.505-2.748.88q-3.528 1.49-6.46 4.45c-.439.447-.836.893-1.219 1.354-.099.115-.198.245-.297.36-.326.418-.652.835-.935 1.268l-.128.172c-.325.49-.609.98-.892 1.484-.071.13-.142.26-.198.389-.227.432-.425.864-.61 1.31-.042.101-.085.188-.127.289a22 22 0 0 0-.567 1.613c-.042.13-.071.26-.113.403-.057.216-.128.432-.184.648-.014.072 0 .144-.029.216a21.6 21.6 0 0 0-.552 4.84v8.124h-3.995a7.9 7.9 0 0 0-3.06.59c-.935.39-1.799.994-2.578 1.786-1.559 1.585-2.352 3.5-2.352 5.747V79.62c0 2.233.779 4.148 2.352 5.747.779.792 1.643 1.397 2.578 1.786.935.39 1.955.59 3.06.59h47.969a7.9 7.9 0 0 0 3.06-.59c.935-.403 1.799-.994 2.592-1.786 1.559-1.584 2.352-3.5 2.352-5.747V38.987c0-2.232-.779-4.148-2.352-5.747m-41.622-2.39v-8.124c0-1.181.156-2.29.425-3.342.113-.432.255-.85.411-1.268 0-.028.014-.043.028-.072.17-.432.383-.85.609-1.267l.213-.346c.184-.302.383-.59.581-.878l.255-.346c.297-.375.609-.749.963-1.095.439-.446.893-.835 1.374-1.195a11.4 11.4 0 0 1 4.718-2.146 13 13 0 0 1 2.408-.216c.836 0 1.629.072 2.409.216 1.728.33 3.3 1.051 4.717 2.146.468.36.935.749 1.374 1.195.354.36.666.72.964 1.095l.255.346c.212.288.411.576.581.878l.212.346c.227.418.439.835.609 1.267 0 .03.014.044.029.072.155.418.297.836.41 1.268a12.7 12.7 0 0 1 .425 3.342v8.123h-23.984z",fill:"#25D366",stroke:"#0A0A0A",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.jsx("path",{d:"M134.153 64.394a5.099 5.099 0 1 0 0-10.198 5.099 5.099 0 0 0 0 10.198",fill:"#25D366",stroke:"#0A0A0A",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]})}))}m.displayName=m.name+" [from "+i.id+"]",l.SecurityMessageLockIllustrationIcon=m}),98); __d("WAWebPrivacyNarrativeE2ESummary.react",["fbt","WAWebCallRefreshedIcon.react","WAWebChatRefreshedIcon.react","WAWebExternalLink.react","WAWebFlex.react","WAWebLimitSharingGatingUtils","WAWebLocationRefreshedOutlineIcon.react","WAWebMediaRefreshedIcon.react","WAWebPrinaUtils","WAWebSecurityMessageLockIllustrationIcon.react","WAWebStatusRefreshedIcon.react","WAWebText.react","WAWebUISpacing","react"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=r("react")),c={textAlignStart:{textAlign:"x1yc453h",$$css:!0},iconContainer:{paddingTop:"xyamay9",paddingInlineEnd:"xyri2b",paddingBottom:"xq1608w",paddingInlineStart:"x1c1uobl",$$css:!0},horizontalPadding:{paddingTop:"xexx8yu",paddingInlineEnd:"x1xnnf8n",paddingBottom:"x18d9i69",paddingInlineStart:"x106a9eq",$$css:!0},title:{paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",marginTop:"xdj266r",marginInlineEnd:"x14z9mp",marginBottom:"xat24cr",marginInlineStart:"x1lziwak",$$css:!0},listItem:{height:"xsdox4t",$$css:!0},minHeight:{minHeight:"xgujvf1",$$css:!0}};function d(e){var t=e.id,n={xstyle:o("WAWebUISpacing").uiPadding.all8,width:24,height:24};switch(t){case"text":return u.jsx(o("WAWebChatRefreshedIcon.react").ChatRefreshedIcon,babelHelpers.extends({},n));case"calls":return u.jsx(o("WAWebCallRefreshedIcon.react").CallRefreshedIcon,babelHelpers.extends({},n));case"media":return u.jsx(o("WAWebMediaRefreshedIcon.react").MediaRefreshedIcon,babelHelpers.extends({},n));case"location":return u.jsx(o("WAWebLocationRefreshedOutlineIcon.react").LocationRefreshedOutlineIcon,babelHelpers.extends({},n));case"status":return u.jsx(o("WAWebStatusRefreshedIcon.react").StatusRefreshedIcon,babelHelpers.extends({},n))}}d.displayName=d.name+" [from "+i.id+"]";var m=(function(){return"wdsContentDefault"})();function p(){return u.jsx(o("WAWebSecurityMessageLockIllustrationIcon.react").SecurityMessageLockIllustrationIcon,{})}p.displayName=p.name+" [from "+i.id+"]";function _(e){var t=e.icon,n=e.isMessageYourselfChat,r=n===void 0?!1:n,a=e.subTitle,i=e.textAlignment,l=e.title,p=e.xstyle,_=[{id:"text",icon:u.jsx(d,{id:"text"}),text:s._(/*BTDS*/"Mensajes de texto y de voz")},r?null:{id:"calls",icon:u.jsx(d,{id:"calls"}),text:s._(/*BTDS*/"Llamadas y videollamadas")},{id:"media",icon:u.jsx(d,{id:"media"}),text:s._(/*BTDS*/"Fotos, videos y documentos")},{id:"location",icon:u.jsx(d,{id:"location"}),text:s._(/*BTDS*/"Ubicaciones compartidas")},r?null:{id:"status",icon:u.jsx(d,{id:"status"}),text:s._(/*BTDS*/"Actualizaciones de estado")}].filter(Boolean);return u.jsxs(o("WAWebFlex.react").FlexColumn,{xstyle:p,justify:"center",align:"stretch",children:[u.jsx(o("WAWebFlex.react").FlexItem,{align:"center",xstyle:c.iconContainer,children:u.jsx("div",{className:"xqy66fx x1pic42t xr1496l x1onr9mi",children:t})}),u.jsx(o("WAWebText.react").WAWebTextLarge,{xstyle:[i,[c.horizontalPadding,c.title]],margin:[16,0],weight:"medium",as:"h1",children:l}),u.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:[i,[c.horizontalPadding,o("WAWebUISpacing").uiMargin.bottom0]],marginBottom:8,color:"wdsContentDefault",children:a}),u.jsx("ul",{className:"xyamay9 xf159sx x1l90r2v xmzvs34",children:_.map(function(e){return u.jsxs(o("WAWebFlex.react").FlexRow,{as:"li",margin:0,padding:[0,16,0,12],align:"center",xstyle:c.listItem,children:[e.icon,u.jsx(o("WAWebText.react").WAWebTextMuted,{color:m,children:e.text})]},e.id)})})]})}_.displayName=_.name+" [from "+i.id+"]";function f(){var e=s._(/*BTDS*/"Tus llamadas y chats son privados"),t=o("WAWebLimitSharingGatingUtils").isRenderUpdatedDisclosureGatingEnabled()?s._(/*BTDS*/"El cifrado de extremo a extremo conserva los mensajes personales y las llamadas entre t\u00fa y las personas con quienes decidas compartirlos. Nadie fuera del chat, ni siquiera WhatsApp, puede leerlos, escucharlos ni compartirlos. Esto incluye lo siguiente:"):s._(/*BTDS*/"El cifrado de extremo a extremo permite que tus mensajes y llamadas personales sean solo para ti y las personas con quienes decidas compartirlos, ni siquiera WhatsApp puede leerlos o escucharlos. Este cifrado se aplica a lo siguiente:"),n=s._(/*BTDS*/"M\u00e1s informaci\u00f3n");return u.jsxs(u.Fragment,{children:[u.jsx(_,{icon:u.jsx(p,{}),textAlignment:c.textAlignStart,title:e,subTitle:t}),u.jsx(o("WAWebText.react").WAWebTextMuted,{xstyle:[c.horizontalPadding,c.minHeight],children:u.jsx(o("WAWebExternalLink.react").ExternalLink,{href:o("WAWebPrinaUtils").securityUrl(),children:n})})]})}f.displayName=f.name+" [from "+i.id+"]",l.E2eSummary=_,l.E2eSummarySecurityDrawer=f}),226); __d("WAWebPrivacyHighlightDailyUtils",["WAWebDailyAggregatedStats","WAWebDailyAggregatedStatsCollection","WAWebWamEnumPrivacyHighlightSurfaceEnum"],(function(t,n,r,o,a,i,l){var e=1e3;function s(t,n){var r=o("WAWebDailyAggregatedStatsCollection").DailyAggregatedStatsCollection.gaddForToday(),a=Date.now();if(!(a-r.prinaLastEvent0?0:Math.floor(-$/i),T=$+I*i,D=E}else if(b===y.VOICE_STATUS){var P=c/m,N=P*e.samples.length,M=N+R;k=e.samples.slice(N,M),I=0,T=0,D=E}else{k=L(e.samples,f(E));var w=g(E),A=w[0],F=w[1];T=A-o/2-a,I=0;var O=A-o/2,B=E-F+o/2;D=O+x*(B-O)}var W=n.getContext("2d");W.lineCap="round",W.setTransform(v,0,0,v,0,0),W.clearRect(0,0,E,h);for(var q=I;q=n+o?t.barColorPlayed:t.barColorUnplayed;a<=o?(e.fillStyle=s,e.beginPath(),e.arc(n+o/2,r+a/2,l,0,2*Math.PI),e.fill()):(e.strokeStyle=s,e.lineWidth=l*2,e.beginPath(),e.moveTo(n+o/2,r+l),e.lineTo(n+o/2,r+a-l),e.stroke()),i>n&&i