-----
DEVHorizonMHSDownloadButtonImplementation.react",["fbt","DEVHorizonStudioEditorMacSignupModal.entrypoint","DEVHorizonWorldsConstants","DMCLoggingConstants","DMCPixelLogger","MCDSButton.react","MCDSDefaultLoadingDialog.react","MCDSEntryPointModalTrigger.react","UserAgent","react","translatedServerString"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=s._(/*BTDS*/"Meta Horizon Studio");function d(e){var t=r("translatedServerString")(e.label);return r("UserAgent").isPlatform("Windows")?u.jsx(r("MCDSButton.react"),{label:t,linkProps:{url:o("DEVHorizonWorldsConstants").MHS_DOWNLOAD_URL},type:"primary",onClick:function(){return o("DMCPixelLogger").logPixelEvents(o("DMCLoggingConstants").DMC_LOGGING_CONSTANTS.START_CREATING)}}):u.jsx(r("MCDSEntryPointModalTrigger.react"),{entryPoint:r("DEVHorizonStudioEditorMacSignupModal.entrypoint"),options:{fallback:r("MCDSDefaultLoadingDialog.react")},otherProps:{editorTitle:c,downloadUrl:o("DEVHorizonWorldsConstants").MHS_DOWNLOAD_URL,loggingMetadata:"mhs-download-tier-2",emailSource:5},preloadParams:{},children:function(n){var e=n.onHoverInPrerenderer,a=n.onTrigger;return u.jsx(r("MCDSButton.react"),{label:t,loggingMetadata:{metadata:"mhs-download-tier-1"},type:"primary",onClick:function(){o("DMCPixelLogger").logPixelEvents(o("DMCLoggingConstants").DMC_LOGGING_CONSTANTS.START_CREATING),a()},onHoverIn:e})}})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226);
-----
StoriesOptionMenuExperimentalEntryPointTrigger.react",["fbt","FDSEntryPointPopoverTrigger.react","FDSIcon.react","QE2Logger","StoriesDots3HorizontalFilled24IconSVG.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseCardOptionMenuExperimental.entrypoint","StoriesViewerMenuButton.react","emptyFunction","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=o("react-compiler-runtime").c(20),n=e.cardID,a=e.setPause,i;t[0]!==a?(i=function(t){a(!0,o("StoriesPauseReasons").CONFIRMATION_DIALOG)},t[0]=a,t[1]=i):i=t[1];var l=i,c;t[2]!==a?(c=function(){a(!1,o("StoriesPauseReasons").CONFIRMATION_DIALOG)},t[2]=a,t[3]=c):c=t[3];var d=c,m;t[4]!==a?(m=function(t){a(t,o("StoriesPauseReasons").MENU),t&&o("QE2Logger").logExposureForUser("frx_entry_point_name_change")},t[4]=a,t[5]=m):m=t[5];var p=m,_;t[6]===Symbol.for("react.memo_cache_sentinel")?(_=s._(/*BTDS*/"More Options"),t[6]=_):_=t[6];var f=_,g;t[7]===Symbol.for("react.memo_cache_sentinel")?(g=u.jsx(r("FDSIcon.react"),{color:"white",icon:r("StoriesDots3HorizontalFilled24IconSVG.react"),size:24}),t[7]=g):g=t[7];var h=g,y;t[8]===Symbol.for("react.memo_cache_sentinel")?(y=o("StoriesLoggerSession").getOpenViewerSource(),t[8]=y):y=t[8];var C=y,b=C===r("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,v;t[9]!==n?(v={isArchive:b,storyID:n},t[9]=n,t[10]=v):v=t[10];var S;t[11]!==d||t[12]!==l||t[13]!==a?(S={onClose:r("emptyFunction"),onHideOptionConfirmationDialog:d,onShowOptionConfirmationDialog:l,setPause:a},t[11]=d,t[12]=l,t[13]=a,t[14]=S):S=t[14];var R;t[15]===Symbol.for("react.memo_cache_sentinel")?(R=function(t,n,o,a,i,l){return u.jsx(r("StoriesViewerMenuButton.react"),{icon:h,label:s._(/*BTDS*/"Menu"),onClick:n,ref:t,testid:void 0,tooltipLabel:f})},t[15]=R):R=t[15];var L;return t[16]!==p||t[17]!==v||t[18]!==S?(L=u.jsx(r("FDSEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:v,onVisibilityChange:p,otherProps:S,popoverEntryPoint:r("StoriesSuspenseCardOptionMenuExperimental.entrypoint"),popoverType:"menu",position:"below",preloadTrigger:"button_aggressive",tracePolicy:"comet.stories.menu",children:R}),t[16]=p,t[17]=v,t[18]=S,t[19]=L):L=t[19],L}l.default=c}),226);
-----
MDCAIGlassesMixAndMatchNonRxCustomizationCardSelector.react",["fbt","MCDSDefaultLoadingDialog.react","MCDSPicture.react","MCDSPictureSourceSrc.react","MCDSPressable.react","MCDSText.react","MCDSVerticalStack.react","MDCAIGlassesMixAndMatchBuyFlowContext","MDCAIGlassesMixAndMatchBuyFlowDialog.entrypoint","MDCAppStoreImpressionLoggingConstants","MDCErrorBoundary.react","QPLUserFlow","mcdsMargin","qpl","react","requireDeferred","useDollyInteractionTracing","useDollyMarketingSelectedNonRxProduct.react","useMCDSVisibility","useMDCAIGlassesMixAndMatchDataFetcher.react","useMDCCommonLoggingParams","useMDCStoreEntryPointModal"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=r("requireDeferred")("DollyMnmClickEvent.log").__setRef("MDCAIGlassesMixAndMatchNonRxCustomizationCardSelector.react"),d=r("requireDeferred")("DollyMnmEntryViewEvent.log").__setRef("MDCAIGlassesMixAndMatchNonRxCustomizationCardSelector.react"),m={selectorItemContainer:{height:"x5yr21d",width:"xh8yej3",overflowX:"x6ikm8r",overflowY:"x10wlt62",borderStartStartRadius:"xbjudin",borderStartEndRadius:"xnlwouz",borderEndEndRadius:"xpp8er5",borderEndStartRadius:"xs9wviy",display:"x78zum5",$$css:!0}},p=r("qpl")._(452593389,"65"),_="/images/dolly/mix_and_match/mix_and_match_non_rx_card_selector_logo.svg";function f(){var e,t=o("useDollyInteractionTracing").useDollyInteractionTracing({qplEvent:r("qpl")._(452593389,"65"),tracePolicy:"dolly.store.mix_and_match_non_rx_modal.initial_load"}),n=t.startInteraction,a=t.wrapForInteractionTracing,i=r("useDollyMarketingSelectedNonRxProduct.react")(),l=r("useMDCCommonLoggingParams")(),p=r("useMDCAIGlassesMixAndMatchDataFetcher.react")(i),f=p.initialOfferIDs,g=(e=p.initialFrameOfferID)!=null?e:"",h=[],y=r("useMDCStoreEntryPointModal")(r("MDCAIGlassesMixAndMatchBuyFlowDialog.entrypoint"),{offer_ids:f,frame_offer_id:g,selected_lens_option_ids:h},{},{fallback:r("MCDSDefaultLoadingDialog.react")}),C=y.modal,b=y.onHoverInPrerenderer,v=y.onHoverOutPrerenderer,S=y.showModal,R=function(){c.onReadyImmediately(function(e){var t;return e.DollyMnmClickEvent.log(babelHelpers.extends({},l,{category:"glasses",english_text:"mix and match non-prescription glasses",type:"text",placement:"buy_box.product_selector",sku:(t=i.sku)!=null?t:"",shop_category:"NON_RX_GLASSES_MIX_AND_MATCH"}))})},L=function(){d.onReadyImmediately(function(e){var t,n;return e.DollyMnmEntryViewEvent.log(babelHelpers.extends({},l,{category:"glasses",english_text:"mix and match non-prescription glasses",type:"text",product_id:(t=i.id)!=null?t:"",placement:"buy_box.product_selector",sku:(n=i.sku)!=null?n:"",shop_category:"NON_RX_GLASSES_MIX_AND_MATCH"}))})},E=r("useMCDSVisibility")({onVisible:function(){L()},threshold:o("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD}),k=E[0],I=u.jsx("div",{className:"x5kalc8 x10h3iyq",children:u.jsx(r("MCDSPicture.react"),{alt:"",variant:"src",children:u.jsx(r("MCDSPictureSourceSrc.react"),{src:_})})});return u.jsxs(r("MDCAIGlassesMixAndMatchBuyFlowContext").Provider,{value:p,children:[a(u.jsx(r("MDCErrorBoundary.react"),{description:"Mix and match non-Rx modal initial load error",module:"MDCAIGlassesPDPBuyBoxMixAndMatchNonRxCustomizationCardSelector",children:C})),u.jsx(r("MCDSPressable.react"),{"data-testid":void 0,ref:k,xstyle:m.selectorItemContainer,onClick:function(){n(),S(),R()},onHoverIn:b,onHoverOut:v,children:u.jsxs(r("MCDSVerticalStack.react"),{alignItems:"center",gap:4,xstyle:r("mcdsMargin").top12,children:[I,u.jsx(r("MCDSText.react"),{textAlign:"center",type:"mcds-label-emphasized",children:s._(/*BTDS*/"Customise")})]})})]})}f.displayName=f.name+" [from "+i.id+"]";function g(){return u.jsx(r("MDCErrorBoundary.react"),{description:"Mix and match non-Rx entrypoint error",fallback:function(){return null},module:"MDCAIGlassesMixAndMatchNonRxCustomizationCardSelector",onError:function(t,n){r("QPLUserFlow").endFailure(p,n,{debugInfo:t.stack,annotations:{string:{error_message:t.message}}})},children:u.jsx(f,{})})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226);
-----
AudienceManagerBlankStateComponent.react",["fbt","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsInterfacesLogger","AdsManagerEmptyStateInfo.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","CreateCustomAudiences.react","CreateLookAlikeAudiences.react","CreateSavedAudience.react","GeoBaseText.react","GeoLink.react","GeoNextAMUtils","Link.react","URI","geoMargin","react","react-compiler-runtime","stylex"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c,p=m.useEffect,_=m.useRef,f=o("GeoNextAMUtils").isGeoNextEnabled();function g(t){var n=o("react-compiler-runtime").c(12),a=_(!1),l,c;n[0]===Symbol.for("react.memo_cache_sentinel")?(l=function(){a.current||(a.current=!0)},c=[],n[0]=l,n[1]=c):(l=n[0],c=n[1]),p(l,c);var m,g,h,y,C;if(n[2]===Symbol.for("react.memo_cache_sentinel")){var b=function(){o("AudienceManagerFunnelLogger").appendAction(o("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.LEARN_MORE_BUTTON_CLICK),(e||(e=r("URI"))).goURIOnNewWindow(new e("/help/459892990722543"))};y=function(){var e=s._(/*BTDS*/"Create and save audiences to reach the people who matter to your business."),t=s._(/*BTDS*/"About audiences"),n=f?d.jsx(r("GeoLink.react"),{target:"_blank",onClick:b,children:t}):d.jsx(r("Link.react"),{className:"mls",target:"_blank",onClick:b,children:t});return f?d.jsxs(r("GeoBaseText.react"),{color:"placeholder",size:"value",children:[e," ",n]}):d.jsxs("div",babelHelpers.extends({},(u||(u=r("stylex"))).props(r("geoMargin").bottom16),{children:[e,n]}))},g=function(){o("AudienceManagerFunnelLogger").appendAction(o("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_LOOKALIKE_AUDIENCE_CLICK),r("AdsInterfacesLogger").log({eventName:o("AudienceManagerLoggingEvents").AM_LAL_NUX_CREATE_AUDIENCE},r("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),r("AdsAMViewShowLookalikeDialogAction").dispatch({audienceId:null},{line:"113",module:"AudienceManagerBlankStateComponent.react.js",moduleID:i.id})},m=function(){o("AudienceManagerFunnelLogger").appendAction(o("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_CUSTOM_AUDIENCE_CLICK_IN_NUX_VIEW),r("AdsInterfacesLogger").log({eventName:o("AudienceManagerLoggingEvents").AM_CA_NUX_CREATE_AUDIENCE},r("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),r("AdsAMViewShowCreateCaDialogAction").dispatch({disableMACAAsLookalikeSource:!1},{line:"128",module:"AudienceManagerBlankStateComponent.react.js",moduleID:i.id})},h=function(){o("AudienceManagerFunnelLogger").appendAction(o("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_SAVED_AUDIENCE_CLICK_IN_NUX_VIEW),r("AdsInterfacesLogger").log({eventName:o("AudienceManagerLoggingEvents").AM_NUX_CREATE_SAVED_AUDIENCE_CLICKED},r("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),r("AdsAMViewShowSavedAudienceCreateDialogAction").dispatch({},{line:"144",module:"AudienceManagerBlankStateComponent.react.js",moduleID:i.id})},C=s._(/*BTDS*/"Reach the people who matter to you"),n[2]=m,n[3]=g,n[4]=h,n[5]=y,n[6]=C}else m=n[2],g=n[3],h=n[4],y=n[5],C=n[6];var v=C,S;n[7]===Symbol.for("react.memo_cache_sentinel")?(S=(u||(u=r("stylex"))).props(r("geoMargin").top16),n[7]=S):S=n[7];var R;n[8]===Symbol.for("react.memo_cache_sentinel")?(R=y(),n[8]=R):R=n[8];var L;return n[9]!==t.aymtGlobalBanner||n[10]!==t.canWrite?(L=d.jsx("div",babelHelpers.extends({},S,{children:d.jsxs(r("AdsManagerEmptyStateInfo.react"),{message:v,children:[R,d.jsx(r("CreateCustomAudiences.react"),{aymtGlobalBannerData:t.aymtGlobalBanner,canWrite:t.canWrite,onClick:m}),d.jsx(r("CreateLookAlikeAudiences.react"),{aymtGlobalBannerData:t.aymtGlobalBanner,canWrite:t.canWrite,onClick:g}),d.jsx(r("CreateSavedAudience.react"),{aymtGlobalBannerData:t.aymtGlobalBanner,canWrite:t.canWrite,onClick:h})]})})),n[9]=t.aymtGlobalBanner,n[10]=t.canWrite,n[11]=L):L=n[11],L}l.default=g}),226);
-----
MDCAIGlassesMixAndMatchBuyFlowFrameSizeAndFitCustomization.react",["fbt","DollyMarketingCMSIDs","MCDSCardSelector.react","MCDSCardSelectorItem.react","MCDSFlexbox.react","MCDSHeading.react","MCDSHorizontalStack.react","MCDSLink.react","MCDSText.react","MCDSVerticalStack.react","MDCAIGlassesCMSContentFlyout.entrypoint","MDCAIGlassesMixAndMatchContext","MDCAIGlassesPDPHeightAnimatableContent.react","MDCAppStoreImpressionLoggingConstants","MDCStoreFrameFitSelector.react","MDCStoreFrameSizeSelector.react","isEmpty","justknobx","mcdsHide","react","requireDeferred","stylex","useMCDSEntryPointFlyOut","useMCDSVisibility","useMDCAIGlassesMixAndMatchContentValuesForFrameCustomizationStep.react","useMDCCommonLoggingParams"],(function(t,n,r,o,a,i,l,s){"use strict";var e=["url"],u,c,d,m=d||(d=o("react")),p=d,_=p.useCallback,f=p.useContext,g=p.useMemo,h=r("requireDeferred")("DollyLearnMoreClickEvent.log").__setRef("MDCAIGlassesMixAndMatchBuyFlowFrameSizeAndFitCustomization.react"),y=r("requireDeferred")("DollyMnmFlyoutViewEvent.log").__setRef("MDCAIGlassesMixAndMatchBuyFlowFrameSizeAndFitCustomization.react"),C={textSelectorLabelWrapper:{marginLeft:"xcmxlu1",marginRight:"xoth75v",marginInlineStart:null,marginInlineEnd:null,marginTop:"x1anpbxc",marginBottom:"xyorhqc",$$css:!0}};function b(){var t=f(r("MDCAIGlassesMixAndMatchContext")),n=t.currentProductOnPDP,a=t.selectedFrame,i=t.step,l=t.updateSelectedProductForFrameSize,d=t.updateSelectedProductForNoseBridgeFit,p=t.validFrameSizesForSelectedColor,b=t.validNoseBridgeFitsForSelectedColor,v=r("useMDCCommonLoggingParams")(),S=v.url,R=babelHelpers.objectWithoutPropertiesLoose(v,e),L=r("useMDCAIGlassesMixAndMatchContentValuesForFrameCustomizationStep.react")(),E=L.cardSelectorValues,k=function(){var e={FrameColor:E.map(function(e){return e.frameColor}),FrameSize:p,Fit:b};y.onReadyImmediately(function(t){var r,o;return t.DollyMnmFlyoutViewEvent.log(babelHelpers.extends({},R,{buy_flow_step:i,category:"glasses",shop_category:"HYPERNOVA_NON_RX_GLASSES",product_id:(r=n==null?void 0:n.id)!=null?r:"",sku:(o=n==null?void 0:n.sku)!=null?o:"",option_ids:[],options_viewed:JSON.stringify(e),placement:"mix_and_match.modal",url:S!=null?S:""}))})},I=r("useMCDSVisibility")({onVisible:function(){k()},threshold:o("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD}),T=I[0],D=r("useMCDSEntryPointFlyOut")(r("MDCAIGlassesCMSContentFlyout.entrypoint"),{refID:o("DollyMarketingCMSIDs").RBM_SIZE_GUIDE_CMS_ID,url:S},{title:m.jsx(r("MCDSHeading.react"),{type:"mcds_title_large_emphasized",children:s._(/*BTDS*/"Size guide")}),modalDataTestID:"supernova-pdp-size-guide-modal",ariaLabel:s._(/*BTDS*/"Size guide modal")},{hasMaxWidth:!0,density:"dense"}),x=D.modal,$=D.onHoverInPrerenderer,P=D.onHoverOutPrerenderer,N=D.showModal,M=r("useMCDSEntryPointFlyOut")(r("MDCAIGlassesCMSContentFlyout.entrypoint"),{refID:o("DollyMarketingCMSIDs").RBM_FIT_GUIDE_CMS_ID,url:S},{title:m.jsx(r("MCDSHeading.react"),{type:"mcds_title_large_emphasized",children:s._(/*BTDS*/"Fit guide")}),modalDataTestID:"supernova-pdp-fit-guide-modal",ariaLabel:s._(/*BTDS*/"Fit guide modal")},{hasMaxWidth:!0,density:"dense"}),w=M.modal,A=M.onHoverInPrerenderer,F=M.onHoverOutPrerenderer,O=M.showModal,B=a==null?void 0:a.frameNoseBridgeFit,W=a==null?void 0:a.frameSize,q=_(function(e){h.onReadyImmediately(function(t){t.DollyLearnMoreClickEvent.logImmediately(babelHelpers.extends({english_text:e,type:"text",destination_url:S,placement:"buy_box",url:S},R))})},[R,S]),U=r("justknobx")._("3961"),V=g(function(){return p.map(function(e){return{value:e,label:e}})},[p]),H=g(function(){return b.map(function(e){return{value:e,label:e}})},[b]),G=_(function(e){l(e)},[l]),z=_(function(e){d(e)},[d]);if(U)return m.jsxs(r("MCDSVerticalStack.react"),{gap:12,ref:(u||(u=r("isEmpty")))(E)?void 0:T,children:[m.jsx(r("MCDSText.react"),{type:"mcds-large-body",children:H.length>0?s._(/*BTDS*/"Size & fit"):s._(/*BTDS*/"Size")}),m.jsx(r("MDCStoreFrameSizeSelector.react"),{selectedValue:W,sizes:V,onChange:G}),m.jsx(r("MDCStoreFrameFitSelector.react"),{fits:H,selectedValue:B,onChange:z})]});var j=m.jsxs(r("MCDSVerticalStack.react"),{gap:12,ref:(u||(u=r("isEmpty")))(E)?void 0:T,children:[m.jsx(r("MCDSText.react"),{type:"mcds-large-body",children:s._(/*BTDS*/"Size & fit")}),m.jsxs(r("MCDSHorizontalStack.react"),{alignItems:"center",gap:16,justifyContent:{mobile:"space-between",tablet:"flex-start",desktop:"space-between"},children:[m.jsx(r("MCDSCardSelector.react"),{"data-testid":void 0,isSingleSelect:!0,itemsPerRow:2,label:s._(/*BTDS*/"Size"),layout:"flex_wrap",shouldShowDefaultBorder:!0,values:W!=null?[W]:[],onChange:function(t){t[0]!=null&&l(t[0])},children:p.map(function(e){return m.jsx(r("MCDSCardSelectorItem.react"),{value:e,children:m.jsx(r("MCDSFlexbox.react"),{alignItems:"center",justifyContent:"center",xstyle:C.textSelectorLabelWrapper,children:m.jsx(r("MCDSText.react"),{type:"mcds-label",children:e})})},e)})}),m.jsx(r("MCDSLink.react"),{onClick:function(){q("Size guide"),N()},onHoverIn:$,onHoverOut:P,children:m.jsx(r("MCDSText.react"),{color:"link",type:"mcds-label-emphasized",children:s._(/*BTDS*/"Size guide")})})]}),m.jsxs(r("MCDSHorizontalStack.react"),{alignItems:"center",gap:16,justifyContent:{mobile:"space-between",tablet:"flex-start",desktop:"space-between"},children:[m.jsx(r("MCDSCardSelector.react"),{"data-testid":void 0,isSingleSelect:!0,itemsPerRow:2,label:s._(/*BTDS*/"Fit"),layout:"flex_wrap",shouldShowDefaultBorder:!0,values:B!=null?[B]:[],onChange:function(t){t[0]!=null&&d(t[0])},children:b.map(function(e){return m.jsx(r("MCDSCardSelectorItem.react"),{value:e,children:m.jsx(r("MCDSFlexbox.react"),{alignItems:"center",justifyContent:"center",xstyle:C.textSelectorLabelWrapper,children:m.jsx(r("MCDSText.react"),{type:"mcds-label",children:e})})},e)})}),m.jsx(r("MCDSLink.react"),{onClick:function(){q("Fit guide"),O()},onHoverIn:A,onHoverOut:F,children:m.jsx(r("MCDSText.react"),{color:"link",type:"mcds-label-emphasized",children:s._(/*BTDS*/"Fit guide")})})]})]});return m.jsxs(m.Fragment,{children:[m.jsx("div",babelHelpers.extends({},(c||(c=r("stylex"))).props(r("mcdsHide").onMobile,r("mcdsHide").onDesktop),{children:j})),m.jsx("div",babelHelpers.extends({},c.props(r("mcdsHide").onTablet),{"data-testid":void 0,children:m.jsx(r("MDCAIGlassesPDPHeightAnimatableContent.react"),{children:j})})),x,w]})}b.displayName=b.name+" [from "+i.id+"]",l.default=b}),226);
-----
MDCAIGlassesMixAndMatchBuyFlowLensTypeConfiguratorContainer.react",["fbt","MDCAIGlassesMixAndMatchBuyFlowCardSelector.react","MDCAIGlassesMixAndMatchContext","MDCAppStoreImpressionLoggingConstants","isEmpty","react","requireDeferred","useMCDSVisibility","useMDCAIGlassesMixAndMatchContentValuesForLensTypeCustomizationStep.react","useMDCCommonLoggingParams"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useContext,p=d.useEffect,_=r("requireDeferred")("DollyMnmFlyoutViewEvent.log").__setRef("MDCAIGlassesMixAndMatchBuyFlowLensTypeConfiguratorContainer.react");function f(){var t=m(r("MDCAIGlassesMixAndMatchContext")),n=t.currentProductOnPDP,a=t.lensTypeToDefaultLensColorMap,i=t.selectedCardValueAtStep,l=t.setUserSelectedOptionForStep,u=t.step,d=t.updateLensInfoSelectionForStep,f=r("useMDCCommonLoggingParams")(),g=r("useMDCAIGlassesMixAndMatchContentValuesForLensTypeCustomizationStep.react")(),h=g.cardSelectorValues,y=function(){_.onReadyImmediately(function(e){var t,r;return e.DollyMnmFlyoutViewEvent.log(babelHelpers.extends({},f,{buy_flow_step:u,category:"glasses",shop_category:"HYPERNOVA_NON_RX_GLASSES",product_id:(t=n==null?void 0:n.id)!=null?t:"",sku:(r=n==null?void 0:n.sku)!=null?r:"",option_ids:[],options_viewed:JSON.stringify({LensType:h.map(function(e){return e.label})}),placement:"mix_and_match.modal"}))})},C=r("useMCDSVisibility")({onVisible:function(){y()},threshold:o("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD}),b=C[0];return p(function(){d(h)},[h,d]),c.jsx("div",{ref:h!=null&&!(e||(e=r("isEmpty")))(h)?b:void 0,children:c.jsx(r("MDCAIGlassesMixAndMatchBuyFlowCardSelector.react"),{cardSelectorValues:h,label:s._(/*BTDS*/"Lens customisation"),values:i(h),onChange:function(n){if(!(e||(e=r("isEmpty")))(n)){var t=n[0];l==null||l(u,t);var o=a.get(t);o!=null&&(l==null||l("lens_color_selection",o))}}})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226);
-----
MDCAIGlassesMixAndMatchBuyFlowLensColorConfiguratorContainer.react",["fbt","DollyMarketingTransD2DInfoModal.entrypoint","DollyMarketingTransGenSInfoModal.entrypoint","MCDSCardSelector.react","MCDSCardSelectorItem.react","MCDSDefaultLoadingDialog.react","MCDSEntryPointModalTrigger.react","MCDSFlexbox.react","MCDSHorizontalStack.react","MCDSIcon.react","MCDSIconICircleOutline.svg.react","MCDSImage.react","MCDSPressable.react","MCDSText.react","MCDSVerticalStack.react","MDCAIGlassesMixAndMatchBuyFlowLensColorSwatch.react","MDCAIGlassesMixAndMatchContext","MDCAIGlassesMixAndMatchPricing","MDCAppStoreImpressionLoggingConstants","bx","isEmpty","mcdsPadding","react","requireDeferred","useMCDSVisibility","useMDCAIGlassesMixAndMatchContentValuesForLensColorCustomizationStep.react","useMDCCommonLoggingParams"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useContext,_=d.useEffect,f=r("requireDeferred")("DollyMnmFlyoutViewEvent.log").__setRef("MDCAIGlassesMixAndMatchBuyFlowLensColorConfiguratorContainer.react"),g=r("bx").getURL(r("bx")("32018")),h={cardSelectorItem:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xxljpkc",maxWidth:"x1cl0utw",$$css:!0},cardSelectorItemContent:{height:"xa0zjtf",width:"xh8yej3",display:"x78zum5",flexDirection:"xdt5ytf",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},priceLabel:{alignItems:"x6s0dn4",justifyContent:"xl56j7k",backgroundColor:"x1bgx8a2",height:"x10w6t97",$$css:!0},polarizedLogo:{height:"xlup9mm",width:"x1kky2od",$$css:!0},strikethroughPrice:{textDecoration:"xmqliwb",$$css:!0}};function y(e){var t=e.cardContentProps,n=o("MDCAIGlassesMixAndMatchPricing").isMixAndMatchOptionOfferAmountFree(t.offerAmount),a=o("MDCAIGlassesMixAndMatchPricing").isOnSale(t.price,t.salePrice),i=c.jsxs(c.Fragment,{children:[a&&c.jsxs(r("MCDSText.react"),{type:"mcds-micro-text",children:[t.salePrice," "]}),c.jsx(r("MCDSText.react"),{color:a?"secondary":"primary",type:"mcds-micro-text",xstyle:a&&h.strikethroughPrice,children:t.price})]});return c.jsx(r("MCDSCardSelectorItem.react"),{value:t.value,xstyle:h.cardSelectorItem,children:c.jsxs(r("MCDSFlexbox.react"),{direction:"column",xstyle:h.cardSelectorItemContent,children:[c.jsxs(r("MCDSVerticalStack.react"),{alignItems:"center",gap:8,grow:1,xstyle:[r("mcdsPadding").horiz8,r("mcdsPadding").vert16],children:[c.jsx(r("MDCAIGlassesMixAndMatchBuyFlowLensColorSwatch.react"),{hexCodes:t.hexCodes,isPolarized:(t==null?void 0:t.isPolarized)===!0,shouldShowPolarizedLogo:!1,transitionGlassType:t.transitionGlassType}),c.jsx(r("MCDSText.react"),{display:"block",textAlign:"center",type:"mcds-micro-text",children:t.label})]}),c.jsxs(r("MCDSVerticalStack.react"),{gap:8,shrink:0,children:[t.isPolarized===!0&&c.jsxs(r("MCDSHorizontalStack.react"),{gap:4,justifyContent:"center",children:[c.jsx(r("MCDSImage.react"),{alt:s._(/*BTDS*/"Meta glasses"),display:"block",src:g,variant:"src",xstyle:h.polarizedLogo}),c.jsx(r("MCDSText.react"),{display:"block",type:"mcds-micro-text",children:s._(/*BTDS*/"Polarised")})]}),c.jsx(r("MCDSFlexbox.react"),{xstyle:h.priceLabel,children:c.jsx(r("MCDSText.react"),{display:"block",type:"mcds-micro-text",children:n?s._(/*BTDS*/"Included"):i})})]})]})})}y.displayName=y.name+" [from "+i.id+"]";function C(){var t=p(r("MDCAIGlassesMixAndMatchContext")),n=t.currentProductOnPDP,a=t.selectedCardValueAtStep,i=t.setUserSelectedOptionForStep,l=t.step,u=t.updateLensInfoSelectionForStep,d=r("useMDCCommonLoggingParams")(),g=o("useMDCAIGlassesMixAndMatchContentValuesForLensColorCustomizationStep.react").useMDCAIGlassesMixAndMatchContentValuesForLensColorCustomizationStep(),h=g.cardSelectorValues,C=function(){f.onReadyImmediately(function(e){var t,r;return e.DollyMnmFlyoutViewEvent.log(babelHelpers.extends({},d,{buy_flow_step:l,category:"glasses",shop_category:"HYPERNOVA_NON_RX_GLASSES",product_id:(t=n==null?void 0:n.id)!=null?t:"",sku:(r=n==null?void 0:n.sku)!=null?r:"",option_ids:[],options_viewed:JSON.stringify({LensColor:h.map(function(e){return e.label})}),placement:"mix_and_match.modal"}))})},b=r("useMCDSVisibility")({onVisible:function(){C()},threshold:o("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD}),v=b[0],S=h==null?void 0:h.filter(function(e){return e.transitionGlassType==="TRANS_D2D"}),R=h==null?void 0:h.filter(function(e){return e.transitionGlassType==="TGNS"}),L=h==null?void 0:h.filter(function(e){return e.transitionGlassType==null});_(function(){u(h)},[h,u]);var E=m(function(t){return c.jsx(r("MCDSCardSelector.react"),{areItemsSameHeight:!1,gap:8,isSingleSelect:!0,label:s._(/*BTDS*/"Lens customisation"),layout:"flex_wrap",values:a(h),onChange:function(n){(e||(e=r("isEmpty")))(n)||i==null||i(l,n[0])},children:t.map(function(e,t){return c.jsx(y,{cardContentProps:e},t)})})},[h,a,i,l]);return c.jsxs(r("MCDSVerticalStack.react"),{gap:32,ref:h!=null&&!(e||(e=r("isEmpty")))(h)?v:void 0,children:[!(e||(e=r("isEmpty")))(L)&&E(L),!(e||(e=r("isEmpty")))(R)&&c.jsxs(r("MCDSVerticalStack.react"),{gap:12,children:[c.jsxs(r("MCDSHorizontalStack.react"),{alignItems:"center",gap:4,xstyle:r("mcdsPadding").top12,children:[c.jsx(r("MCDSText.react"),{color:"secondary",type:"mcds-small-body",children:s._(/*BTDS*/"Transitionsu00ae Gen Su2122")}),c.jsx(r("MCDSEntryPointModalTrigger.react"),{entryPoint:r("DollyMarketingTransGenSInfoModal.entrypoint"),options:{fallback:r("MCDSDefaultLoadingDialog.react")},otherProps:{},preloadParams:{},children:function(t){var e=t.onHoverInPrerenderer,n=t.onHoverOutPrerenderer,o=t.onTrigger;return c.jsx(r("MCDSPressable.react"),{"aria-label":s._(/*BTDS*/"Info"),onClick:o,onHoverIn:e,onHoverOut:n,children:c.jsx(r("MCDSIcon.react"),{color:"secondary",icon:r("MCDSIconICircleOutline.svg.react"),size:16})})}})]}),E(R)]}),!(e||(e=r("isEmpty")))(S)&&c.jsxs(r("MCDSVerticalStack.react"),{gap:12,children:[c.jsxs(r("MCDSHorizontalStack.react"),{alignItems:"center",gap:4,xstyle:r("mcdsPadding").top12,children:[c.jsx(r("MCDSText.react"),{color:"secondary",type:"mcds-small-body",children:s._(/*BTDS*/"Transitionsu00ae Special Edition")}),c.jsx(r("MCDSEntryPointModalTrigger.react"),{entryPoint:r("DollyMarketingTransD2DInfoModal.entrypoint"),options:{fallback:r("MCDSDefaultLoadingDialog.react")},otherProps:{},preloadParams:{},children:function(t){var e=t.onHoverInPrerenderer,n=t.onHoverOutPrerenderer,o=t.onTrigger;return c.jsx(r("MCDSPressable.react"),{"aria-label":s._(/*BTDS*/"Info"),onClick:o,onHoverIn:e,onHoverOut:n,children:c.jsx(r("MCDSIcon.react"),{color:"secondary",icon:r("MCDSIconICircleOutline.svg.react"),size:16})})}})]}),E(S)]})]})}C.displayName=C.name+" [from "+i.id+"]",l.default=C}),226);
-----
MDCAIGlassesPDPBuyBoxMixAndMatchNonRxCustomization.react",["fbt","MCDSDefaultLoadingDialog.react","MCDSFlexbox.react","MCDSHorizontalStack.react","MCDSIcon.react","MCDSIconCaretRightOutline.svg.react","MCDSPicture.react","MCDSPictureSourceSrc.react","MCDSPressable.react","MCDSText.react","MDCAIGlassesMixAndMatchBuyFlowContext","MDCAIGlassesMixAndMatchBuyFlowDialog.entrypoint","MDCAppStoreImpressionLoggingConstants","MDCErrorBoundary.react","QPLUserFlow","mcdsPadding","qpl","react","requireDeferred","useDollyInteractionTracing","useDollyMarketingSelectedNonRxProduct.react","useMCDSVisibility","useMDCAIGlassesMixAndMatchDataFetcher.react","useMDCCommonLoggingParams","useMDCStoreEntryPointModal"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=r("requireDeferred")("DollyMnmClickEvent.log").__setRef("MDCAIGlassesPDPBuyBoxMixAndMatchNonRxCustomization.react"),d=r("requireDeferred")("DollyMnmEntryViewEvent.log").__setRef("MDCAIGlassesPDPBuyBoxMixAndMatchNonRxCustomization.react"),m={wrapper:{borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderStartStartRadius:"xbjudin",borderStartEndRadius:"xnlwouz",borderEndEndRadius:"xpp8er5",borderEndStartRadius:"xs9wviy",borderTopColor:"x79b4n4",borderInlineEndColor:"x15p7v3w",borderBottomColor:"x1or4hh0",borderInlineStartColor:"xhr6100",":hover_borderTopColor":"xwnobx9",":hover_borderInlineEndColor":"xss7bp0",":hover_borderBottomColor":"xm1z6dw",":hover_borderInlineStartColor":"x165v2hr",$$css:!0}},p=r("qpl")._(452593389,"65"),_="/images/dolly/mix_and_match/mix_and_match_non_rx_logo.svg";function f(){var e,t=o("useDollyInteractionTracing").useDollyInteractionTracing({qplEvent:r("qpl")._(452593389,"65"),tracePolicy:"dolly.store.mix_and_match_non_rx_modal.initial_load"}),n=t.startInteraction,a=t.wrapForInteractionTracing,i=r("useDollyMarketingSelectedNonRxProduct.react")(),l=r("useMDCCommonLoggingParams")(),p=r("useMDCAIGlassesMixAndMatchDataFetcher.react")(i),f=p.initialOfferIDs,g=(e=p.initialFrameOfferID)!=null?e:"",h=[],y=r("useMDCStoreEntryPointModal")(r("MDCAIGlassesMixAndMatchBuyFlowDialog.entrypoint"),{offer_ids:f,frame_offer_id:g,selected_lens_option_ids:h},{},{fallback:r("MCDSDefaultLoadingDialog.react")}),C=y.modal,b=y.onHoverInPrerenderer,v=y.onHoverOutPrerenderer,S=y.showModal,R=function(){c.onReadyImmediately(function(e){var t;return e.DollyMnmClickEvent.log(babelHelpers.extends({},l,{category:"glasses",english_text:"mix and match prescription glasses",type:"text",placement:"buy_box",sku:(t=i.sku)!=null?t:"",shop_category:"HYPERNOVA_NON_RX_GLASSES"}))})},L=function(){d.onReadyImmediately(function(e){var t,n;return e.DollyMnmEntryViewEvent.log(babelHelpers.extends({},l,{category:"glasses",english_text:"mix and match non-prescription glasses",type:"text",product_id:(t=i.id)!=null?t:"",placement:"buy_box",sku:(n=i.sku)!=null?n:"",shop_category:"HYPERNOVA_NON_RX_GLASSES"}))})},E=r("useMCDSVisibility")({onVisible:function(){L()},threshold:o("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD}),k=E[0],I=u.jsx(r("MCDSPicture.react"),{alt:"",variant:"src",children:u.jsx(r("MCDSPictureSourceSrc.react"),{src:_})});return u.jsxs(r("MDCAIGlassesMixAndMatchBuyFlowContext").Provider,{value:p,children:[a(u.jsx(r("MDCErrorBoundary.react"),{description:"Mix and match non-Rx modal initial load error",module:"MDCAIGlassesPDPBuyBoxMixAndMatchNonRxCustomization",children:C})),u.jsx(r("MCDSPressable.react"),{"data-testid":void 0,ref:k,onClick:function(){n(),S(),R()},onHoverIn:b,onHoverOut:v,children:u.jsxs(r("MCDSHorizontalStack.react"),{alignItems:"center",gap:24,justifyContent:"flex-start",xstyle:[m.wrapper,r("mcdsPadding").horiz12],children:[u.jsxs("div",{className:"x78zum5 x6s0dn4 xl56j7k xmixu3c xy75621",children:[I,u.jsx(r("MCDSText.react"),{type:"mcds-label-emphasized",children:s._(/*BTDS*/"Without prescription")})]}),u.jsx(r("MCDSFlexbox.react"),{grow:1,justifyContent:"flex-end",children:u.jsx(r("MCDSIcon.react"),{color:"secondary",icon:r("MCDSIconCaretRightOutline.svg.react"),size:16})})]})})]})}f.displayName=f.name+" [from "+i.id+"]";function g(){return u.jsx(r("MDCErrorBoundary.react"),{description:"Mix and match non-Rx entrypoint error",fallback:function(){return null},module:"MDCAIGlassesPDPBuyBoxMixAndMatchNonRxCustomization",onError:function(t,n){r("QPLUserFlow").endFailure(p,n,{debugInfo:t.stack,annotations:{string:{error_message:t.message}}})},children:u.jsx(f,{})})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226);
-----
useTriggerEmailOptInPromoCodeValidation",["AtomicToastManagerHooks","CommerceEmailOptInPromoValidationFbt","CommerceValidateEmailOfferPromoCodeMutation","RelayHooks","SFLRelayHelpers","SFLUtilityMethods","SellerInsightsLoggingConstants","clearTimeout","react","react-compiler-runtime","setTimeout","useTriggerEmailOptInPromoCodeValidationCheckoutURLValidationQuery.graphql","useTriggerEmailOptInPromoCodeValidationPromoCodeValidationQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=j||d("react");var k=e.useEffect,l=e.useState,m=d("SellerInsightsLoggingConstants").MILLISECONDS_IN_SECOND*30,n=h!==void 0?h:h=b("useTriggerEmailOptInPromoCodeValidationCheckoutURLValidationQuery.graphql"),o=i!==void 0?i:i=b("useTriggerEmailOptInPromoCodeValidationPromoCodeValidationQuery.graphql"),p=function(a){return(a==null?void 0:a.fetch__XFBCommercePromoCodeValidationResult)==null?"VALIDATION_RESULT_INCONCLUSIVE":a.fetch__XFBCommercePromoCodeValidationResult.llm_validation_results},q=function(a){var b;a=(a=a==null||(b=a.fetch__XFBCommerceCheckoutURLValidationResult)==null?void 0:b.llm_validation_result.results.filter(function(a){a=a.is_healthy;return!a}).map(function(a){a=a.check;return a}))!=null?a:[];var c=a.some(function(a){return a==="HTTP_OK_RESPONSE"||a==="PAGE_IS_CHECKOUT_OR_CART"});if(c)return["INVALID_BASE_CHECKOUT_URL",a];c=a.some(function(a){return a==="PROMOTION_CODE_TEXT_MATCHES_EXPECTED"});return c?["URL_PROMO_CODE_PARAM_NOT_ACCEPTED",a]:["VALIDATION_RESULT_INCONCLUSIVE",null]},r=function(a,b,c,e,f,g,h){var i=a==null?void 0:a.fetch__XFBCommerceCheckoutURLValidationResult,j=b==null?void 0:b.fetch__XFBCommercePromoCodeValidationResult;b=p(b);a=q(a);var k=a[0];a=a[1];if(b==="CODE_VERIFIED_VALID"&&k==="VALIDATION_RESULT_INCONCLUSIVE")f(b),g(j==null?void 0:j.promo_url),c();else if(k==="INVALID_BASE_CHECKOUT_URL")f(k),g(i==null?void 0:i.full_url),c();else if(b==="CODE_VERIFIED_INVALID_FROM_URL_CRAWLING")f(b),g(j==null?void 0:j.promo_url),c();else if(k==="URL_PROMO_CODE_PARAM_NOT_ACCEPTED")f(k),g(i==null?void 0:i.full_url),h(a!=null?a:[]),c();else{f("VALIDATION_RESULT_INCONCLUSIVE");g((b=j==null?void 0:j.promo_url)!=null?b:i==null?void 0:i.full_url);e({status:"error",title:d("CommerceEmailOptInPromoValidationFbt").SOMETHING_WENT_WRONG_TOAST_TITLE});c()}};function a(a,b,e,f,g){var h,i=d("react-compiler-runtime").c(25),j=d("AtomicToastManagerHooks").useAtomicToastManagerActions(),p=j.addToast;j=l(null);var q=j[0],s=j[1];j=l(null);var t=j[0],u=j[1];j=l(!1);var v=j[0],w=j[1];j=d("RelayHooks").useLazyLoadQuery(n,{shouldSkipValidation:q==null,validationRequestID:q},{fetchPolicy:"store-and-network"});var x=d("RelayHooks").useLazyLoadQuery(o,{shouldSkipValidation:t==null,validationRequestID:t},{fetchPolicy:"store-and-network"}),y=x==null?void 0:x.fetch__XFBCommercePromoCodeValidationResult,z=j==null?void 0:j.fetch__XFBCommerceCheckoutURLValidationResult,A=(y==null?void 0:y.validation_status)==="FAILED"||v&&t==null,B=(y==null?void 0:y.validation_status)==="ANALYSIS_COMPLETED";v=(z==null?void 0:z.is_scheduled_successfully)===!1||v&&q==null;h=((h=z==null?void 0:z.llm_validation_result.results.length)!=null?h:0)>0;var C;i[0]===Symbol["for"]("react.memo_cache_sentinel")?(C=function(){s(null),u(null),w(!1)},i[0]=C):C=i[0];var D=C;if(t!==null||q!==null){e((C=y==null?void 0:y.promo_url)!=null?C:z==null?void 0:z.full_url)}(A||B)&&(v||h)&&r(j,x,D,p,b,e,f);y=d("SFLRelayHelpers").useSFLMutation(d("CommerceValidateEmailOfferPromoCodeMutation").VALIDATE_EMAIL_OFFER_PROMO_CODE_MUTATION);var E=y[0];C=y[1];z=t!==null;A=q!==null;var F=z||A;B=C||F;i[1]!==p||i[2]!==b?(v=function(){D(),b("VALIDATION_RESULT_INCONCLUSIVE"),p({status:"error",title:d("CommerceEmailOptInPromoValidationFbt").SOMETHING_WENT_WRONG_TOAST_TITLE})},i[1]=p,i[2]=b,i[3]=v):v=i[3];i[4]===Symbol["for"]("react.memo_cache_sentinel")?(h={action:"saoff_promotions_email_offer_validation"},i[4]=h):h=i[4];j="Timeout while waiting for crawling data. "+("Checkout URL crawl "+(q!=null?q:"is null")+". ")+("Promo validation crawl "+(t!=null?t:"is null")+".");i[5]!==j?(x={error_description:j},i[5]=j,i[6]=x):x=i[6];var G=d("SFLUtilityMethods").useSflAwareLambda(v,h,null,x);i[7]!==F||i[8]!==G?(f=function(){if(F){var a=c("setTimeout")(G,m);return function(){return c("clearTimeout")(a)}}},i[7]=F,i[8]=G,i[9]=f):f=i[9];i[10]!==p||i[11]!==F||i[12]!==G||i[13]!==b?(y=[p,F,G,b],i[10]=p,i[11]=F,i[12]=G,i[13]=b,i[14]=y):y=i[14];k(f,y);i[15]!==p||i[16]!==a||i[17]!==E||i[18]!==e||i[19]!==g||i[20]!==b?(z=function(c){b("CRAWLING_MUTATION_IN_PROGRESS"),E({onCompleted:function(a){var d;e((d=a.xfb_validate_email_offer_promo_code)==null?void 0:d.preview_checkout_url_with_promo_code);b("CRAWLING_VERIFICATION_IN_PROGRESS");s((d=a.xfb_validate_email_offer_promo_code)==null||(d=d.checkout_url_validation_result)==null?void 0:d.id);u((d=a.xfb_validate_email_offer_promo_code)==null||(d=d.promo_code_validation_result)==null?void 0:d.id);g(c);w(!0)},onError:function(){p({status:"error",title:d("CommerceEmailOptInPromoValidationFbt").SOMETHING_WENT_WRONG_TOAST_TITLE}),w(!1),g(c),b("NO_EXISTING_VALIDATION_DATA")},variables:{cms_id:a,promo_code:c}})},i[15]=p,i[16]=a,i[17]=E,i[18]=e,i[19]=g,i[20]=b,i[21]=z):z=i[21];A=z;i[22]!==B||i[23]!==A?(C={isValidationInFlight:B,validatePromoCode:A,validationResult:null},i[22]=B,i[23]=A,i[24]=C):C=i[24];return C}g["default"]=a}),98);
-----
StoriesSuspenseCardOptionMenuEntryPointTrigger.react",["fbt","CometRelay","FDSEntryPointPopoverTrigger.react","FDSIcon.react","QE2Logger","StoriesDots3HorizontalFilled24IconSVG.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseCardOptionMenuEntryPointTrigger_card.graphql","StoriesSuspenseCardOptionMenuExperimental.entrypoint","StoriesViewerMenuButton.react","emptyFunction","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react"));function d(t){var a=o("react-compiler-runtime").c(19),i=t.card,l=t.setPause,u=o("CometRelay").useFragment(e!==void 0?e:e=n("StoriesSuspenseCardOptionMenuEntryPointTrigger_card.graphql"),i),d;a[0]!==l?(d=function(t){l(!0,o("StoriesPauseReasons").CONFIRMATION_DIALOG)},a[0]=l,a[1]=d):d=a[1];var m=d,p;a[2]!==l?(p=function(){l(!1,o("StoriesPauseReasons").CONFIRMATION_DIALOG)},a[2]=l,a[3]=p):p=a[3];var _=p,f;a[4]!==l?(f=function(t){l(t,o("StoriesPauseReasons").MENU),t&&o("QE2Logger").logExposureForUser("frx_entry_point_name_change")},a[4]=l,a[5]=f):f=a[5];var g=f,h;a[6]===Symbol.for("react.memo_cache_sentinel")?(h=s._(/*BTDS*/"More Options"),a[6]=h):h=a[6];var y=h,C;a[7]===Symbol.for("react.memo_cache_sentinel")?(C=c.jsx(r("FDSIcon.react"),{color:"white",icon:r("StoriesDots3HorizontalFilled24IconSVG.react"),size:24}),a[7]=C):C=a[7];var b=C,v=u==null?void 0:u.id;if(v==null)return null;var S=o("StoriesLoggerSession").getOpenViewerSource(),R=S===r("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,L;a[8]!==v?(L={isArchive:R,storyID:v},a[8]=v,a[9]=L):L=a[9];var E;a[10]!==_||a[11]!==m||a[12]!==l?(E={onClose:r("emptyFunction"),onHideOptionConfirmationDialog:_,onShowOptionConfirmationDialog:m,setPause:l},a[10]=_,a[11]=m,a[12]=l,a[13]=E):E=a[13];var k;a[14]===Symbol.for("react.memo_cache_sentinel")?(k=function(t,n,o,a,i,l){return c.jsx(r("StoriesViewerMenuButton.react"),{icon:b,label:s._(/*BTDS*/"Menu"),onClick:n,ref:t,testid:void 0,tooltipLabel:y})},a[14]=k):k=a[14];var I;return a[15]!==g||a[16]!==L||a[17]!==E?(I=c.jsx(r("FDSEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:L,onVisibilityChange:g,otherProps:E,popoverEntryPoint:r("StoriesSuspenseCardOptionMenuExperimental.entrypoint"),popoverType:"menu",position:"below",preloadTrigger:"button_aggressive",tracePolicy:"comet.stories.menu",children:k}),a[15]=g,a[16]=L,a[17]=E,a[18]=I):I=a[18],I}l.default=d}),226);
-----
AdsUEditorCampaignCRMDataFieldLoggingConstants",[],(function(t,n,r,o,a,i){"use strict";var e="SELECT_DATASET",l="CLICK_CREATE_DATASET_CTA",s="FINISH_CREATE_DATASET",u="CLOSE_CREATE_DATASET_MODAL",c="CLICK_SET_UP_CRM_IN_EVENTS_MANAGER_CTA";i.SELECT_DATASET=e,i.CLICK_CREATE_DATASET_CTA=l,i.FINISH_CREATE_DATASET=s,i.CLOSE_CREATE_DATASET_MODAL=u,i.CLICK_SET_UP_CRM_IN_EVENTS_MANAGER_CTA=c}),66);
-----
LWICometManagementIntegrityBannerV2.react",["AdIntegrityValidationBannerSection.react","AdIntegrityValidationLoggingConstants","LWICometLoggingConstants","LWICometManagementIntegrityBannerV2Query.graphql","RelayHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e,f,g;a=a.queryRef;a=d("RelayHooks").usePreloadedQuery(h!==void 0?h:h=b("LWICometManagementIntegrityBannerV2Query.graphql"),a);var i=a==null||(e=a.lwi)==null||(e=e.existing_boosted_component)==null||(e=e.spec)==null||(e=e.ad_account)==null?void 0:e.legacy_account_id,k=a==null||(f=a.lwi)==null||(f=f.existing_boosted_component)==null||(f=f.campaign_group)==null||(f=f.all_campaign_group_adgroups)==null||(f=f.edges[0])==null||(f=f.node)==null?void 0:f.integrity_validation;a=a==null||(g=a.lwi)==null||(g=g.existing_boosted_component)==null||(g=g.spec)==null||(g=g.adgroup_spec)==null?void 0:g[0];a=a==null?void 0:a.adgroup_id;return i!=null&&a!=null&&k!=null?j.jsx(c("AdIntegrityValidationBannerSection.react"),{actionProps:{textManualReviewRequested:!1},adCreationStage:d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.POSTCREATE,appID:d("LWICometLoggingConstants").APP_ID,callsite:"LWI_WWW",legacyAccountID:i,selectedAdgroupID:a,validation:k}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ShopGlassesBuyBoxRxCustomization.react",["fbt","CometRouteParams","DollyMarketingRxAvailabilityContext","DollyMarketingRxBuyFlowDialog.entrypoint","DollyStoreSiteTypeContext","MCDSDefaultLoadingDialog.react","MCDSHorizontalStack.react","MCDSIcon.react","MCDSIconPlusFilled.svg.react","MCDSIconPrescriptionRxOutline.svg.react","MCDSLink.react","MCDSText.react","MCDSVerticalStack.react","MDCAIGlassesPDPRxOOSBadge.react","MDCAIGlassesRxBuyFlowContext","MDCAppStoreImpressionLoggingConstants","MDCErrorBoundary.react","Placeholder.react","ProductStateUtils","QPLUserFlow","SHOPCategory","getJSEnumSafe","gkx","mcdsMargin","mcdsPadding","mdcCheckoutExperiments","qpl","react","requireDeferred","useDollyInteractionTracing","useDollyMarketingSelectedNonRxProduct.react","useMCDSVisibility","useMDCAIGlassesPDPRxDataFetcher.react","useMDCCommonLoggingParams","useMDCStoreEntryPointModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useMemo,m=c("requireDeferred")("DollyRxClickEvent.log").__setRef("ShopGlassesBuyBoxRxCustomization.react"),n=c("requireDeferred")("DollyRxEntryViewEvent.log").__setRef("ShopGlassesBuyBoxRxCustomization.react"),o=c("gkx")("16829"),p={wrapper:{borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderStartStartRadius:"xbjudin",borderStartEndRadius:"xnlwouz",borderEndEndRadius:"xpp8er5",borderEndStartRadius:"xs9wviy",borderTopColor:"x79b4n4",borderInlineEndColor:"x15p7v3w",borderBottomColor:"x1or4hh0",borderInlineStartColor:"xhr6100",":hover_borderTopColor":"xwnobx9",":hover_borderInlineEndColor":"xss7bp0",":hover_borderBottomColor":"xm1z6dw",":hover_borderInlineStartColor":"x165v2hr",$$css:!0},icon:{color:"xjukama",$$css:!0}},q=c("qpl")._(452594239,"2911");function r(a){a=a.xstyle;var b=d("useDollyInteractionTracing").useDollyInteractionTracing({qplEvent:c("qpl")._(452606512,"194"),tracePolicy:"dolly.store.rx_modal.initial_load"}),e=b.startInteraction;b=b.wrapForInteractionTracing;var g=c("useMDCAIGlassesPDPRxDataFetcher.react")(),i=c("useMDCCommonLoggingParams")(),q=d("DollyMarketingRxAvailabilityContext").useDollyMarketingRxAvailabilityContext(),r=q.setIsRxAvailable,s=d("CometRouteParams").useRouteParams(),t=c("useDollyMarketingSelectedNonRxProduct.react")();q=d("DollyStoreSiteTypeContext").useSiteTypeContext();q=q.siteType;q=c("useMDCStoreEntryPointModal")(c("DollyMarketingRxBuyFlowDialog.entrypoint"),{siteType:q},{},{fallback:c("MCDSDefaultLoadingDialog.react")});var u=q.modal,v=q.onHoverInPrerenderer,w=q.onHoverOutPrerenderer,x=q.showModal,y=l(function(){var a;return{sku:(a=g.frameSKU)!=null?a:"",product_id:(a=g.frameProductID)!=null?a:"",placement:"buy_box",category:"glasses",english_text:"customize prescription lens",type:"text",non_rx_sku:(a=t.sku)!=null?a:""}},[g.frameSKU,g.frameProductID,t.sku]);q=c("getJSEnumSafe")(c("SHOPCategory"),g.frameShopCategory);q!=null&&(y=babelHelpers["extends"]({},y,{shop_category:q}));q=c("useMCDSVisibility")({onVisible:function(){var a;n.onReadyImmediately(function(a){return a.DollyRxEntryViewEvent.log(babelHelpers["extends"]({},i,y))});d("ProductStateUtils").logRxProductState(g.frameProductInventoryStatus,s,i.referrer,(a=g.frameSKU)!=null?a:"",(a=t.sku)!=null?a:"",i.url,(a=c("getJSEnumSafe")(c("SHOPCategory"),g.frameShopCategory))!=null?a:"SUPERNOVA_RX_FRAME")},threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});q=q[0];var z=g.frameProductInventoryStatus,A=z==="available";k(function(){r(A)},[A,r]);if(!A)return j.jsx("div",{ref:q,children:o?j.jsx(c("MDCAIGlassesPDPRxOOSBadge.react"),{}):null});var B=function(){m.onReadyImmediately(function(a){return a.DollyRxClickEvent.log(babelHelpers["extends"]({},i,y))})};return j.jsxs(c("MDCAIGlassesRxBuyFlowContext").Provider,{value:g,children:[b(j.jsx(c("MDCErrorBoundary.react"),{description:"Rx modal initial load error",module:"ShopGlassesBuyBoxRxCustomization",children:u})),j.jsx(c("MCDSLink.react"),{"data-testid":void 0,ref:q,role:"button",xstyle:[a,p.wrapper,c("mcdsPadding").all20],onClick:function(){e(),x(),B()},onHoverIn:v,onHoverOut:w,children:j.jsxs(c("MCDSHorizontalStack.react"),{alignItems:"center",justifyContent:"space-between",children:[j.jsxs(c("MCDSHorizontalStack.react"),{alignItems:"center",gap:12,children:[j.jsx(c("MCDSIcon.react"),{icon:c("MCDSIconPrescriptionRxOutline.svg.react"),size:32,xstyle:p.icon}),j.jsxs(c("MCDSVerticalStack.react"),{gap:2,children:[j.jsx(c("MCDSText.react"),{type:"mcds-small-body-emphasized",children:h._(/*BTDS*/"Add prescription")}),j.jsx(c("MCDSText.react"),{color:"secondary",type:"mcds-micro-text",children:d("mdcCheckoutExperiments").getShouldEnableSIKAPayments()?h._(/*BTDS*/"FSA/HSA eligible"):h._(/*BTDS*/"Customise your lenses")})]})]}),j.jsxs(c("MCDSHorizontalStack.react"),{alignItems:"center",gap:2,xstyle:c("mcdsMargin").end4,children:[j.jsx(c("MCDSIcon.react"),{color:"secondary",icon:c("MCDSIconPlusFilled.svg.react"),isInline:!0,size:16}),j.jsx(c("MCDSText.react"),{color:"secondary",type:"mcds-label",children:h._(/*BTDS*/"Add")})]})]})})]})}r.displayName=r.name+" [from "+f.id+"]";function a(){var a=c("useDollyMarketingSelectedNonRxProduct.react")();a=Boolean(a==null?void 0:a.id);return!a?null:j.jsx(c("MDCErrorBoundary.react"),{description:"Rx entrypoint error in Oakley buy box",fallback:function(){return null},module:"ShopGlassesBuyBoxRxCustomization",onError:function(a,b){c("QPLUserFlow").endFailure(q,b,{debugInfo:a.stack,annotations:{string:{error_message:a.message}}})},children:j.jsx(c("Placeholder.react"),{children:j.jsx(r,{})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitSettingsInstagramReauthConfirmPopover.react",["BizKitSettingsInstagramAccountReauthButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","GeoPopover.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(12),e=a.assetID,f=a.assetName,g=a.businessID,h=a.children;a=a.onReauthSuccess;var j;b[0]!==e||b[1]!==g||b[2]!==a?(j=i.jsx(d("BizKitSettingsInstagramAccountReauthButton.react").BizKitSettingsInstagramAccountReauthConfirmPopoverButton,{businessID:g,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_CONFIRM_POPOVER,instagramAccountID:e,onReauthSuccess:a}),b[0]=e,b[1]=g,b[2]=a,b[3]=j):j=b[3];e=j;b[4]!==f?(g=d("BizKitSettingsInstagramStrings").getIGReauthConfirmPopoverDescription(f),b[4]=f,b[5]=g):g=b[5];a=g;b[6]!==a?(j=[a],b[6]=a,b[7]=j):j=b[7];b[8]!==e||b[9]!==h||b[10]!==j?(f=i.jsx(c("GeoPopover.react"),{action:e,content:j,heading:d("BizKitSettingsInstagramStrings").IG_REAUTH_CONFIRM_POPOVER_HEADER,isSticky:!0,children:h}),b[8]=e,b[9]=h,b[10]=j,b[11]=f):f=b[11];return f}g["default"]=a}),98);
-----
StoriesFeedbackLexicalEditor.react",["fbt","CometComponentWithKeyCommands.react","CometPressable.react","FDSIcon.react","Lexical","StoriesFeedbackEditorForLexical.react","StoriesFeedbackEditorStateContext","StoriesFeedbackEmojiPopoverTrigger.react","StoriesLoggerContext","StoriesLoggingConstants","StoriesSendFilled20IconSVG.react","clearTimeout","cometAddEmojiToComposerForLexical","cometComposerLexicalCreateEditor","react","setTimeout","useGlobalEventListener","useStoriesFeedbackKeyboardCommandsConfig"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useContext,m=b.useEffect,n=b.useRef,o=b.useState,p=20,q={input:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xh8yej3",$$css:!0},inputWOComments:{height:"x17rw0jw",$$css:!0},sendButton:{marginInlineStart:"xdwrcjd",$$css:!0}};function a(a){var b=a.cardID,e=a.feedbackParentRef;a.hidden;var f=a.isCoversationStarter,g=a.onBlur,i=a.onFocus,r=a.onSend;a.ownerName;var s=a.placeholder;a=o(!1);var t=a[0],u=a[1];a=o(!1);var v=a[0],w=a[1];a=o(!0);var x=a[0],y=a[1];a=l(c("StoriesFeedbackEditorStateContext"));var z=a.contextualReplyRef,A=a.contextualReplyShown,B=a.contextualReplyTapped,C=a.inputFocused,D=a.mostRecentTappedID,E=a.setContextualReplyTapped,F=a.setMostRecentTappedID;a=l(c("StoriesLoggerContext"));var G=a.logger,H=n(null),I=n(!1),J=n(null);a=o(function(){return c("cometComposerLexicalCreateEditor")()});var K=a[0];a=k(function(a){c("cometAddEmojiToComposerForLexical")(a,K,p)},[K]);var L=k(function(){return K.getEditorState().read(function(){var a=d("Lexical").$getRoot();return a.getTextContent().trim()})},[K]);m(function(){E(!1),w(!1),F(null)},[b,E,w,F]);m(function(){return K.registerUpdateListener(function(){y(L()==="")})},[K,L]);c("useGlobalEventListener")("keydown",function(a){var b=J.current;if(b&&a.target instanceof Node&&!b.contains(a.target))return;b=String.fromCharCode(a.keyCode);b.match(/\w/)&&(K.focus(),B&&w(!0))});var M=k(function(a){a===void 0&&(a=!0);if(I.current)return;c("clearTimeout")(H.current);H.current=c("setTimeout")(function(){u(!1),g(),a&&K.blur()})},[K,g]),N=k(function(a){a===void 0&&(a=!0),c("clearTimeout")(H.current),a&&(f===!0&&L().length===0&&K.update(function(){var a=d("Lexical").$getRoot();a.clear();a.append(d("Lexical").$createTextNode(s));a.selectEnd()}),K.focus(),u(!0),i())},[K,u,i,f,L,s]);c("useGlobalEventListener")("click",k(function(a){var b;a=a.target;if(!t)return;if(a===e||a instanceof Node&&e!=null&&(b=e.current)!=null&&b.contains(a))return;M()},[e,t,M]));b=k(function(){var a=K.getEditorState().read(function(){var a=d("Lexical").$getRoot();return a.getTextContent().trim()});if(a==="")return;r(a);A&&G.replySentWhenSmartReplyShownLog(v,D,B,c("StoriesLoggingConstants").STORY_REPLY_TYPE.TEXT_SUGGESTION);K.update(function(){d("Lexical").$getRoot().clear()});c("setTimeout")(function(){M()},0)},[K,A,B,v,M,G,D,r]);var O=c("useStoriesFeedbackKeyboardCommandsConfig")({onEnter:b,onEscape:M}),P=k(function(a){J.current=a},[]);return j.jsxs("div",babelHelpers["extends"]({className:"x6s0dn4 x78zum5 x1q0g3np xh8yej3"},{onBlurCapture:function(a){if(z.current!=null&&z.current.contains(a.relatedTarget))return;M(a.target===J.current)},onFocusCapture:function(a){N(a.target===J.current)},children:[j.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:O,xstyle:[q.input,q.inputWOComments],children:j.jsx(c("StoriesFeedbackEditorForLexical.react"),{props:{contentEditableRef:P,editor:K,placeholder:s}})}),j.jsxs("div",babelHelpers["extends"]({},{0:{className:"x6s0dn4 x78zum5 x1my54xf"},1:{className:"x6s0dn4 x78zum5 x1my54xf x1qvwoe0 xjm9jq1 x6ikm8r x10wlt62 x10l6tqk xuxw1ft x1i1rx1s"}}[!!(!t&&!C)<<0],{children:[j.jsx(c("StoriesFeedbackEmojiPopoverTrigger.react"),{props:{onEmojiSelect:a,onVisibilityChange:function(a){I.current=a}}}),j.jsx(c("CometPressable.react"),{"aria-label":h._(/*BTDS*/""),disabled:x,hideHoverOverlay:!0,onPress:b,testid:void 0,xstyle:q.sendButton,children:j.jsx(c("FDSIcon.react"),{color:x?"disabled":"white",icon:c("StoriesSendFilled20IconSVG.react"),size:20})})]}))]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAIGlassesSocialContextFacepile.react",["MCDSHorizontalDivider.react","MDCAppStoreImpressionLoggingConstants","QE2Logger","SecureMessageListener","justknobx","mcdsFlexJustifyContentStyles","mcdsMargin","qex","react","stylex","useMCDSVisibility"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useEffect,m=b.useState;function a(){var a=m(c("justknobx")._("3132")||c("qex")._("3515")||!1),b=a[0],e=a[1];a=k(function(a){if(a.source.location.href!=="https://www.facebook.com/plugins/wearables_social_context"||!b)return;e(a.data!==null)},[]);var f=k(function(){b&&d("QE2Logger").logExposureForUser("mdc_wearables_social_context_facepile")},[]);n(["facebook.com"],a);a=c("useMCDSVisibility")({onVisible:f,threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});f=a[0];return b?j.jsxs("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(c("mcdsMargin").top16,c("mcdsFlexJustifyContentStyles")("center")),{ref:f,children:[j.jsx(c("MCDSHorizontalDivider.react"),{xstyle:c("mcdsMargin").vert16}),j.jsx("iframe",{frameBorder:"",height:"40",sandbox:"allow-scripts",scrolling:"no",src:"https://www.facebook.com/plugins/wearables_social_context",style:{marginTop:"8px"},width:"100%"})]})):null}a.displayName=a.name+" [from "+f.id+"]";function n(a,b){l(function(){var d=new(c("SecureMessageListener"))(window).setSupportedOrigins(a).setEventHandler(b);d.beginListening();return function(){d.stopListening()}},[a,b])}g["default"]=a}),98);
-----
DMCLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={START_CREATING:"start-creating",JOIN_NOW_TO_START_EARNING:"join-now-to-start-earning",DOWNLOAD_WINDOWS_BINARY_ANYWAY:"download-windows-binary-anyway",EMAIL_SIGNUP_FOR_MAC:"email-signup-for-mac",PAGE_VIEW:"page-view",APPLY_TODAY:"apply-today",START_PROGRAM_SUBMIT:"start-program-submit"};f.DMC_LOGGING_CONSTANTS=a}),66);
-----
AdsTargetingAudienceUtilsV2",["AdsInterfacesLogger","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerUIConstants","UnifiedAudiencesManagerAudienceDetailPaneAction"],(function(a,b,c,d,e,f,g){"use strict";function a(a){c("UnifiedAudiencesManagerAudienceDetailPaneAction").dispatch({audienceID:a,isPaneOpen:!0},{line:"23",module:"AdsTargetingAudienceUtilsV2.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DETAIL_PANE_CLICK,{audience_id:a});c("AdsInterfacesLogger").log({eventName:"am_details_audience_view",data:(a={},a.signals_ui_event_data={audience_type:d("AudienceManagerUIConstants").AUDIENCE_TYPE.CUSTOM_AUDIENCE},a)})}g.onClickViewCA=a}),98);
-----
ShopPDPUtils.react",["CometRouteParams","MDCAppStoreImpressionLoggingConstants","ProductStateUtils","ShopProductContext","react","requireDeferred","useMCDSVisibility","useMDCCommonLoggingParams","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g){"use strict";var h;f=h||d("react");var i=f.useCallback,j=f.useContext,k=c("requireDeferred")("DollyListScrollEvent.log").__setRef("ShopPDPUtils.react"),l=["quest-2-charge-cable"];f=["rbm-charging-case","quest-1m-charging-cable"];function a(a,b){if(l.includes(a)){b=b.find(function(b){return b.productKey===a});if((b==null?void 0:b.inventory)==="out_of_stock")return"quest-1m-charging-cable"}return a}function b(){var a=d("CometRouteParams").useRouteParams(),b=c("useMDCUrlAndReferrer")(),e=b.referrer,f=b.url;b=j(c("ShopProductContext"));var g=b.products;b=function(){d("ProductStateUtils").buildAndFireProductStateLogger(g,a,e,f)};b=c("useMCDSVisibility")({onVisible:b,threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});b=b[0];return b}function e(){var a=c("useMDCCommonLoggingParams")(),b=a.module_order,d=babelHelpers.objectWithoutPropertiesLoose(a,["module_order"]);a=i(function(a){k.onReadyImmediately(function(c){return c.DollyListScrollEvent.log(babelHelpers["extends"]({},d,{module_order:Number((c=b)!=null?c:0),action:"click",direction:"next",placement:"buy_box",type:"horizontal_list",asset_url:a}))})},[d,b]);return a}var m=["Wayfarer","Headliner","Skyler"];g.fallback_skus=l;g.rbmAccessories=f;g.getFallbackProductIfUnavailable=a;g.useShopBuyBoxVisibilityRef=b;g.useShopBuyBoxSelectorLogging=e;g.RBMProductKeys=m}),98);
-----
MDCAIGlassesPDPBuyBoxRxCustomization.react",["fbt","CometRouteParams","DollyMarketingRBMPDPRxUnavailableMessaging.react","DollyMarketingRxAvailabilityContext","DollyMarketingRxBuyFlowDialog.entrypoint","MCDSDefaultLoadingDialog.react","MCDSFlexbox.react","MCDSGlimmer.react","MCDSHorizontalStack.react","MCDSIcon.react","MCDSIconPlusFilled.svg.react","MCDSIconPrescriptionRxOutline.svg.react","MCDSPressable.react","MCDSText.react","MCDSVerticalStack.react","MDCAIGlassesProductContext","MDCAIGlassesRxBuyFlowContext","MDCAppStoreImpressionLoggingConstants","MDCErrorBoundary.react","Placeholder.react","ProductStateUtils","QPLUserFlow","SHOPCategory","getJSEnumSafe","mcdsMargin","mcdsPadding","qpl","react","requireDeferred","useDollyMarketingSelectedNonRxProduct.react","useMCDSVisibility","useMDCAIGlassesPDPRxDataFetcher.react","useMDCCommonLoggingParams","useMDCStoreEntryPointModal"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useContext,l=c("requireDeferred")("DollyRxClickEvent.log").__setRef("MDCAIGlassesPDPBuyBoxRxCustomization.react"),m={wrapper:{borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",borderTopColor:"x79b4n4",borderEndColor:"x1lprzx0",borderBottomColor:"x1or4hh0",borderStartColor:"x5pxerh",":hover_borderTopColor":"xwnobx9",":hover_borderEndColor":"x1rvbcyl",":hover_borderBottomColor":"xm1z6dw",":hover_borderStartColor":"xclfq87",$$css:!0},icon:{color:"xjukama",$$css:!0},textGlimmer:{height:"x1v9usgg",width:"x13ie5k6",$$css:!0},atcGlimmer:{height:"x1qx5ct2",width:"x1useyqa",$$css:!0},iconGlimmer:{height:"x5kalc8",width:"x10h3iyq",$$css:!0},prescriptionLensBox:{boxSizing:"x9f619",minHeight:"x1ujl9rh",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",borderTopColor:"x79b4n4",borderEndColor:"x1lprzx0",borderBottomColor:"x1or4hh0",borderStartColor:"x5pxerh",":hover_borderTopColor":"xwnobx9",":hover_borderEndColor":"x1rvbcyl",":hover_borderBottomColor":"xm1z6dw",":hover_borderStartColor":"xclfq87",display:"x78zum5",alignItems:"x6s0dn4",paddingTop:"xyamay9",paddingEnd:"x1pi30zi",paddingBottom:"x1l90r2v",paddingStart:"x1swvt13",$$css:!0},unavailable:{borderTopStartRadius:"xfh8nwu",borderTopEndRadius:"xoqspk4",borderBottomEndRadius:"x12v9rci",borderBottomStartRadius:"x138vmkv",$$css:!0}},n=c("qpl")._(452594239,"2911");function o(){var a;return j.jsx(c("MCDSPressable.react"),{isDisabled:!0,children:j.jsxs(c("MCDSFlexbox.react"),{justifyContent:"space-between",xstyle:m.prescriptionLensBox,children:[j.jsxs(c("MCDSHorizontalStack.react"),{gap:12,children:[j.jsx(a=c("MCDSGlimmer.react"),{xstyle:m.iconGlimmer}),j.jsxs(c("MCDSVerticalStack.react"),{gap:4,justifyContent:"center",children:[j.jsx(a,{xstyle:m.textGlimmer}),j.jsx(a,{xstyle:m.textGlimmer})]})]}),j.jsx(a,{xstyle:m.atcGlimmer})]})})}o.displayName=o.name+" [from "+f.id+"]";function p(a){a=a.nonRxProductInventory;var b=c("useMDCAIGlassesPDPRxDataFetcher.react")(),e=d("DollyMarketingRxAvailabilityContext").useDollyMarketingRxAvailabilityContext();e=e.setIsRxAvailable;var g=c("useMDCCommonLoggingParams")(),i=d("CometRouteParams").useRouteParams(),k=c("useDollyMarketingSelectedNonRxProduct.react")(),n=c("useMDCStoreEntryPointModal")(c("DollyMarketingRxBuyFlowDialog.entrypoint"),{},{},{fallback:c("MCDSDefaultLoadingDialog.react")}),o=n.modal,p=n.onHoverInPrerenderer,q=n.onHoverOutPrerenderer,r=n.showModal,s=function(){l.onReadyImmediately(function(a){return a.DollyRxClickEvent.log(babelHelpers["extends"]({},g,{category:"glasses",english_text:"customize prescription lens",type:"text",product_id:(a=b.frameProductID)!=null?a:"",placement:"buy_box",non_rx_sku:(a=k.sku)!=null?a:"",sku:(a=b.frameSKU)!=null?a:"",shop_category:(a=c("getJSEnumSafe")(c("SHOPCategory"),b.frameShopCategory))!=null?a:"SUPERNOVA_RX_FRAME"}))})};n=c("useMCDSVisibility")({onVisible:function(){var a;return d("ProductStateUtils").logRxProductState(b.frameProductInventoryStatus,i,g.referrer,(a=b.frameSKU)!=null?a:"",(a=k.sku)!=null?a:"",g.url,(a=c("getJSEnumSafe")(c("SHOPCategory"),b.frameShopCategory))!=null?a:"SUPERNOVA_RX_FRAME")},threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});n=n[0];var t=b.frameProductInventoryStatus;if(t!=="available"){e(!1);return t==null||t==="unavailable"||t==="out_of_stock"?j.jsx("div",{ref:n}):j.jsx("div",{ref:n,children:j.jsx(c("DollyMarketingRBMPDPRxUnavailableMessaging.react"),{nonRxProductInventory:a,xstyle:m.unavailable})})}e(!0);return j.jsxs(c("MDCAIGlassesRxBuyFlowContext").Provider,{value:b,children:[o,j.jsx(c("MCDSPressable.react"),{ref:n,onClick:function(){r(),s()},onHoverIn:p,onHoverOut:q,children:j.jsxs(c("MCDSHorizontalStack.react"),{alignItems:"center",justifyContent:"space-between",xstyle:[m.wrapper,c("mcdsPadding").all20],children:[j.jsxs(c("MCDSHorizontalStack.react"),{alignItems:"center",gap:12,children:[j.jsx(c("MCDSIcon.react"),{icon:c("MCDSIconPrescriptionRxOutline.svg.react"),size:32,xstyle:m.icon}),j.jsxs(c("MCDSVerticalStack.react"),{gap:2,children:[j.jsx(c("MCDSText.react"),{type:"mcds-small-body-emphasized",children:h._(/*BTDS*/"u6dfbu52a0u5ea6u6570")}),j.jsx(c("MCDSText.react"),{color:"secondary",type:"mcds-micro-text",children:h._(/*BTDS*/"u5b9au5236u4f60u7684u955cu7247")})]})]}),j.jsxs(c("MCDSHorizontalStack.react"),{alignItems:"center",gap:2,xstyle:c("mcdsMargin").end4,children:[j.jsx(c("MCDSIcon.react"),{color:"secondary",icon:c("MCDSIconPlusFilled.svg.react"),isInline:!0,size:16}),j.jsx(c("MCDSText.react"),{color:"secondary",type:"mcds-label",children:h._(/*BTDS*/"u6dfbu52a0")})]})]})})]})}p.displayName=p.name+" [from "+f.id+"]";function a(){var a=k(c("MDCAIGlassesProductContext"));a=a.rxWrapForInteractionTracing;var b=c("useDollyMarketingSelectedNonRxProduct.react")(),d=b.inventory;b=Boolean(b==null?void 0:b.id);return!b?null:j.jsx(c("MDCErrorBoundary.react"),{description:"Rx entrypoint error",fallback:function(){return null},module:"MDCAIGlassesPDPBuyBoxRxCustomization",onError:function(a,b){c("QPLUserFlow").endFailure(n,b,{debugInfo:a.stack,annotations:{string:{error_message:a.message}}})},children:a(j.jsx(c("Placeholder.react"),{fallback:j.jsx(o,{}),children:j.jsx(p,{nonRxProductInventory:d})}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
FBReelsEmptyFeedbackInstagramComments.react",["fbt","ix","CometLink.react","CometRelay","FBReelsEmptyFeedbackInstagramComments_comments.graphql","FBReelsLoggingConstants","FDSButton.react","FDSCard.react","FDSText.react","FDSUnit.react","FDSUnitHeader.react","fbicon","react","react-compiler-runtime","useReelsLogger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m="https://www.facebook.com/help/386221115984344/?helpref=uf_share";function a(a){var e,f=d("react-compiler-runtime").c(17);a=a.comments;var g=d("CometRelay").useFragment(j!==void 0?j:j=b("FBReelsEmptyFeedbackInstagramComments_comments.graphql"),a);a=c("useReelsLogger")();var k=a.feedbackInstagramDeeplinkClickedLog;a=g==null?void 0:(a=g.story)==null?void 0:(a=a.ig_media)==null?void 0:a.permalink;if(a==null)return null;if(f[0]!==(g==null?void 0:(e=g.story)==null?void 0:(e=e.feedback)==null?void 0:e.share_fbid)||f[1]!==(g==null?void 0:(e=g.story)==null?void 0:e.tracking)||f[2]!==k){var n;e=function(){var a;k({destination:c("FBReelsLoggingConstants").INSTAGRAM_DEEPLINK_DESTINATION.VIEWER,entry:"Comet",media_id:(a=g==null?void 0:(a=g.story)==null?void 0:(a=a.feedback)==null?void 0:a.share_fbid)!=null?a:"",tracking:(a=g==null?void 0:(a=g.story)==null?void 0:a.tracking)!=null?a:""})};f[0]=g==null?void 0:(n=g.story)==null?void 0:(n=n.feedback)==null?void 0:n.share_fbid;f[1]=g==null?void 0:(n=g.story)==null?void 0:n.tracking;f[2]=k;f[3]=e}else e=f[3];n=e;f[4]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"xw7yly9 xktsk01 x1yztbdb x1d52u69"},f[4]=e):e=f[4];var o;f[5]===Symbol["for"]("react.memo_cache_sentinel")?(o={className:"xyamay9 x1pi30zi x1l90r2v x1swvt13"},f[5]=o):o=f[5];var p;f[6]===Symbol["for"]("react.memo_cache_sentinel")?(p=l.jsx(c("FDSUnitHeader.react"),{headline:h._(/*BTDS*/""),level:3,paddingHorizontal:0,paddingTop:0}),f[6]=p):p=f[6];var q;f[7]===Symbol["for"]("react.memo_cache_sentinel")?(q=h._(/*BTDS*/""),f[7]=q):q=f[7];f[8]===Symbol["for"]("react.memo_cache_sentinel")?(p=l.jsx(c("FDSUnit.react"),{header:p,spacing:12,type:"transparent",children:l.jsxs(c("FDSText.react"),{type:"body3",children:[q," ",l.jsx(c("CometLink.react"),{href:m,target:"_blank",children:h._(/*BTDS*/"")})]})}),f[8]=p):p=f[8];var r;f[9]===Symbol["for"]("react.memo_cache_sentinel")?(q=d("fbicon")._(i("547774"),16),r=h._(/*BTDS*/""),f[9]=q,f[10]=r):(q=f[9],r=f[10]);var s;f[11]!==a?(s={target:"_blank",url:a},f[11]=a,f[12]=s):s=f[12];f[13]!==n||f[14]!==q||f[15]!==s?(a=l.jsx("div",babelHelpers["extends"]({},e,{children:l.jsx(c("FDSCard.react"),{background:"light-wash",children:l.jsxs("div",babelHelpers["extends"]({},o,{children:[p,l.jsx(c("FDSButton.react"),{icon:q,label:r,linkProps:s,onPress:n})]}))})})),f[13]=n,f[14]=q,f[15]=s,f[16]=a):a=f[16];return a}g["default"]=a}),226);
-----
useFBUnifiedVideoScrollLogging",["CometRelay","FBUnifiedVideoLoggingConstants","FBUnifiedVideoViewerSessionIDContext","react","requireDeferred","useFBUnifiedVideoProcessRoute","useFBUnifiedVideoScrollLogging_reel.graphql","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=c("requireDeferred")("SfvChainingNavigationScrollFalcoEvent").__setRef("useFBUnifiedVideoScrollLogging");function a(a,e,f){e=d("CometRelay").useFragment(h!==void 0?h:h=b("useFBUnifiedVideoScrollLogging_reel.graphql"),e);var g=k(c("FBUnifiedVideoViewerSessionIDContext")),i=g.viewerSessionID;g=c("useFBUnifiedVideoProcessRoute")();var n=g.rootVideoID,o=c("usePrevious")(a),p=c("usePrevious")(e),q=c("usePrevious")(f),r=j(function(){if(p==null)return;var b=a!=null&&o!=null&&a>o?"DOWN":"UP";m.onReady(function(a){return a.log(function(){var a;return{client_page_position:String(o),creator_id:(p==null?void 0:(a=p.attachments)==null?void 0:(a=a[0])==null?void 0:(a=a.media)==null?void 0:(a=a.owner)==null?void 0:a.id)||"",parent_video_id:n,playable_duration_in_ms:String((p==null?void 0:(a=p.attachments)==null?void 0:(a=a[0])==null?void 0:(a=a.media)==null?void 0:a.playable_duration_in_ms)||0),scroll_direction:b,source_surface:c("FBUnifiedVideoLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[(a=(a=q)!=null?a:p==null?void 0:p.tracking)!=null?a:""],video_id:(p==null?void 0:(a=p.attachments)==null?void 0:(a=a[0])==null?void 0:(a=a.media)==null?void 0:a.id)||"",viewer_session_id:i}})})},[a,o,p,q,n,i]);l(function(){var b=o!=null,c=a!==o;if(!b||!c)return;r()},[a,o,r])}g["default"]=a}),98);
-----
useFBUnifiedVideoVDDImpressionLogging",["CometImpressionLoggingUtil","CometRelay","FBLogger","FBUnifiedVideoConstants","FBUnifiedVideoLoggingConstants","FBUnifiedVideoViewerSessionIDContext","cr:15970","react","requireDeferred","useFBUnifiedVideoProcessRoute","useMinifiedProductAttribution","useVPVDImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");var i=e.useCallback,j=e.useContext,k=c("requireDeferred")("SfvChainingVpvdFalcoEvent").__setRef("useFBUnifiedVideoVDDImpressionLogging");function a(a){var e=a.index,f=a.playableDuration,g=a.tracking,h=a.videoID,l=a.videoOwnerID;a=c("useFBUnifiedVideoProcessRoute")();var m=a.rootVideoID,n=a.source;a=j(c("FBUnifiedVideoViewerSessionIDContext"));var o=a.viewerSessionID,p=c("useMinifiedProductAttribution")(),q=d("CometRelay").useRelayEnvironment();a=i(function(a){var i=a.visibleDuration;if(h==null){c("FBLogger")("fb_reels_web").mustfix("Reels deep dive viewer tried to log a VPVd with no video ID");return}k.onReady(function(a){return a.log(function(){var a;return{client_page_position:String(e),creator_id:l||"",duration:String(i),nav_attribution_id_v2:p,parent_video_id:m,playable_duration_in_ms:String((a=f)!=null?a:0),player_origin:c("FBUnifiedVideoLoggingConstants").PLAYER_ORIGIN.NEWS_FEED,player_suborigin:c("FBUnifiedVideoLoggingConstants").SOURCE_SURFACE.VIEWER,referral_source:d("FBUnifiedVideoConstants").SOURCE_TO_REFERRAL_SOURCE[n],source_surface:c("FBUnifiedVideoLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[g||""],video_id:h,viewer_session_id:o}})});b("cr:15970")(q,h)},[p,q,e,f,m,n,g,h,l,o]);var r=function(){e!=null&&d("CometImpressionLoggingUtil").logPostImpressionForReel(p,e,g)};return c("useVPVDImpression")({onVPVDEnd:a,onVPVDStart:r})}g["default"]=a}),98);
-----
FBUnifiedVideoMediaTransitionContainer.react",["CometLoggedOutFBUpsellsInfraContext.react","CometPlaceholder.react","CometRelay","CometRouteRenderType","CometTahoeSidepaneDialogContextProvider.react","CometTheme.react","CometTrackingCodeProvider.react","ConstUriUtils","FBReelsFeedUnitStatusContext","FBUnifiedVideoConstants","FBUnifiedVideoFeedbackBar.react","FBUnifiedVideoFeedbackBarPlaceholder.react","FBUnifiedVideoFeedbackRightRailGlimmer.react","FBUnifiedVideoFeedbackRightRailWithCommentPreloading.react","FBUnifiedVideoFullScreenContext","FBUnifiedVideoHideReelContext","FBUnifiedVideoLoadingView.react","FBUnifiedVideoLoggingConstants","FBUnifiedVideoMediaTransitionContainer_initial_reels.graphql","FBUnifiedVideoMediaTransitionContainer_video.graphql","FBUnifiedVideoNavigationButtons.react","FBUnifiedVideoNodeIndexContextProvider.react","FBUnifiedVideoResizeIcon.react","FBUnifiedVideoVDDContentContainer.react","FBUnifiedVideoViewerKeyboardInteractionsOverlay.react","FDSPageLayoutWithComplementaryContent.react","HiddenSubtreeContext","InteractivePluginContextProvider.react","ReelIFUTrackingContext","ReelsInteractivePluginManagerDeferred.react","WebPixelRatio","XCometFBReelControllerRouteBuilder","persistentQueryParams","react","stylex","useCometPreloader","useCometWindowSize","useCurrentDisplayMode","useFBUnifiedVideoLogger","useFBUnifiedVideoProcessRoute","useFBUnifiedVideoScrollLogging","useFBUnifiedVideoViewerBaseDimensions","useOnBeforeUnload"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useMemo,q=e.useState,r=12,s={feedbackBarContainerVertical:function(a,b,c){return[{alignItems:a==null?null:"x1ntm0d2",boxSizing:"x9f619",display:"x78zum5",height:b==null?null:"x1f5funs",paddingBottom:c==null?null:"x18061mc",$$css:!0},{"--alignItems":a!=null?a:void 0,"--height":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(b),"--paddingBottom":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(c)}]},fullScreenInPushView:{height:"x1dr59a3",width:"x1wqljz4",$$css:!0},fullScreenNotInPushView:{height:"xtp0wl1",width:"x7w7710",$$css:!0},height:function(a){return[{height:a==null?null:"x1f5funs",$$css:!0},{"--height":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(a)}]},verticalSwipeContainer:function(a,b){return[{height:a==null?null:"x1f5funs",position:"xixxii4",top:b==null?null:"x1g9fk1a",$$css:!0},{"--height":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(a),"--top":function(a){return typeof a==="number"?a+"px":a!=null?a:void 0}(b)}]},verticalSwipeInnerContainer:function(a){return[{display:"x78zum5",flexDirection:"xdt5ytf",left:"xu96u03",position:"x1n2onr6",right:"x3m8u43",start:null,end:null,transform:"translateY("+a+"px)"==null?null:"x1uosm7l",transition:"x2sfjvx",$$css:!0},{"--transform":"translateY("+a+"px)"!=null?"translateY("+a+"px)":void 0}]}},t=null;try{t=function(){var a={};return{getUrlWithPersistentParams:function(b){if(Object.keys(a).length===0)return b;var c=d("ConstUriUtils").getUri(b);if(c==null)return b;c=c.addQueryParams(new Map(Object.entries(a)));return c==null?b:c.toString()},setPersistentParams:function(b){var d=b.getQueryParams();a={};c("persistentQueryParams").forEach(function(b){if(b==="sk")return;if(d.has(b)){var c=d.get(b);a[b]=c}})}}}();e=d("ConstUriUtils").getUri(window.location.href);e&&t.setPersistentParams(e)}catch(a){t=null}function a(a){var e=a.initialReelsRef,f=a.isGuidedBoostInComposer;a.isMuted;var g=a.isNextButtonHidden;a.isPaused;var k=a.nodesRef,u=a.onPressTryBoost;a.onVideoLoaded;a.setPause;var v=a.tryBoostURI,w=d("CometRelay").useFragment(h!==void 0?h:h=b("FBUnifiedVideoMediaTransitionContainer_initial_reels.graphql"),e),x=d("CometRelay").useFragment(i!==void 0?i:i=b("FBUnifiedVideoMediaTransitionContainer_video.graphql"),k);a=n(c("FBUnifiedVideoNodeIndexContextProvider.react"));var y=a.index;k=n(c("FBUnifiedVideoHideReelContext"));var z=k.hiddenReels;a=q(!1);var A=a[0],B=a[1];k=n(c("HiddenSubtreeContext"));var C=k.hidden;a=n(c("ReelIFUTrackingContext"));k=a.tracking;d("CometRelay").useSubscribeToInvalidationState([w==null?void 0:w.id].filter(Boolean),function(){B(!0)});a=c("useFBUnifiedVideoProcessRoute")();var D=a.rootVideoClickTrackingLinkshimCb,E=a.rootVideoEncryptedClickTracking,F=a.rootVideoEncryptedTrackingKey,G=a.rootVideoTrackingKey,H=p(function(){var a,b=[];w!=null&&w.id!=null&&!A&&z!=null&&!z.has(w.id)&&b.push(w);((a=x)!=null?a:[]).forEach(function(a){var c;a!=null&&Object.keys(a).length!==0&&a.id!=null&&z!=null&&!z.has(a.id)&&((c=a.attachments)==null?void 0:(c=c[0])==null?void 0:(c=c.media)==null?void 0:c.id)!=null&&b.push(a)});a=b.filter(Boolean);return a},[w,A,z,x]);a=n(c("FBReelsFeedUnitStatusContext"));if(a){a=a();var I=H.map(function(a){var b=a.id;return{key:b!=null?String(b):"",sponsored:!!a.sponsored_data}});a.fbReelsFeedUnitRegistry=I}a={click_tracking_linkshim_cb:(a=D)!=null?a:"",encrypted_click_tracking:(I=E)!=null?I:"",encrypted_tracking:(D=F)!=null?D:""};E=p(function(){return w!=null&&w.id!=null&&y===0&&A&&z!=null&&!z.has(w.id)?{tracking:G}:{tracking:null}},[z,y,w,A,G]);var J=((I=H[y])==null?void 0:(F=I.attachments)==null?void 0:(D=F[0])==null?void 0:(I=D.media)==null?void 0:I.self_view_boost)!=null;F=n(c("FBUnifiedVideoFullScreenContext"));var K=F.isFullScreen,L=F.setFullScreen;D=d("CometRelay").useQueryLoader(d("FBUnifiedVideoFeedbackRightRailWithCommentPreloading.react").FBUnifiedVideoFeedbackRightRailWithCommentPreloadingQuery);I=D[0];var M=D[1],aa=m(function(){var a;a=(a=H[y])==null?void 0:(a=a.attachments)==null?void 0:(a=a[0])==null?void 0:(a=a.media)==null?void 0:a.id;var b=d("WebPixelRatio").get();M({feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",focusCommentID:null,initial_node_id:(a=a)!=null?a:"",renderLocation:"fb_shorts_profile_video_deep_dive",scale:b})},[y,M,H]);F=c("useCometPreloader")("button",void 0,function(){aa()});var ba=F.onHighIntentPreloader,N=F.onHoverInPreloader,O=F.onHoverOutPreloader,P=F.onPressInPreloader;o(function(){ba(K===!1)},[y,H]);o(function(){J===!0&&L(!K)},[K,J,L]);var Q=d("CometRouteRenderType").useIsPushView();D=c("useCurrentDisplayMode")();var R=c("useCometWindowSize")(),S=babelHelpers["extends"]({},c("useFBUnifiedVideoViewerBaseDimensions")()),T=p(function(){return R.innerHeight-(Q&&R.innerWidth>d("FBUnifiedVideoConstants").VIEWER_WIDTH_THRESHOLD?0:d("FBUnifiedVideoConstants").APP_HEADER_HEIGHT)-r*2},[Q,R.innerHeight,R.innerWidth]),U=p(function(){return R.innerHeight-(Q&&R.innerWidth>d("FBUnifiedVideoConstants").VIEWER_WIDTH_THRESHOLD?0:d("FBUnifiedVideoConstants").APP_HEADER_HEIGHT)},[Q,R.innerHeight,R.innerWidth]),V=p(function(){return(R.innerHeight-S.height-d("FBUnifiedVideoConstants").APP_HEADER_HEIGHT)/2+60},[S.height,R.innerHeight]);F=c("useFBUnifiedVideoLogger")();var ca=F.exitViewerLog,W=(F=H[y])==null?void 0:(F=F.attachments)==null?void 0:(F=F[0])==null?void 0:(F=F.media)==null?void 0:F.id,da=(F=H[y-1])==null?void 0:(F=F.attachments)==null?void 0:(F=F[0])==null?void 0:(F=F.media)==null?void 0:F.id;F=(F=H[y])==null?void 0:(F=F.attachments)==null?void 0:(F=F[0])==null?void 0:F.media;c("useFBUnifiedVideoScrollLogging")(y,H[y],k);c("useOnBeforeUnload")(function(){var a;ca(y,c("FBUnifiedVideoLoggingConstants").CLOSE_REELS_GESTURE.UNKNOWN,[(a=(a=H[y])==null?void 0:a.tracking)!=null?a:""],(a=(a=W)!=null?a:da)!=null?a:"")});var X=m(function(a){if(a==null||f)return;window.history.replaceState(window.history.state,"",t!=null?t.getUrlWithPersistentParams(a):a)},[f]),Y=m(function(){if(e==null)X(c("XCometFBReelControllerRouteBuilder").buildURL({}));else{var a;X((a=H[0])==null?void 0:(a=a.attachments)==null?void 0:(a=a[0])==null?void 0:(a=a.media)==null?void 0:a.shareable_url)}},[X,e,H]);o(function(){if(C)return;if(y===0)Y();else{var a;a=(a=H[y])==null?void 0:(a=a.attachments)==null?void 0:(a=a[0])==null?void 0:(a=a.media)==null?void 0:a.shareable_url;a!=null?X(a):Y()}},[y,H,C,e,Y,X]);k=n(c("CometLoggedOutFBUpsellsInfraContext.react"));var Z=k.increaseNavigationsCount;o(function(){y!==0&&Z()},[Z,y]);k=p(function(){var a;return l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(s.verticalSwipeContainer(U,Q&&R.innerWidth>d("FBUnifiedVideoConstants").VIEWER_WIDTH_THRESHOLD?0:d("FBUnifiedVideoConstants").APP_HEADER_HEIGHT)),{children:l.jsx("div",babelHelpers["extends"]({},j.props(s.verticalSwipeInnerContainer(-1*y*U)),{children:((a=H)!=null?a:[]).map(function(a,b){var e;e=a==null?void 0:(e=a.attachments)==null?void 0:(e=e[0])==null?void 0:(e=e.media)==null?void 0:e.id;if(e!=null)return l.createElement("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props(s.height(U)),{className:"x1cy8zhl x9f619 x78zum5 x1q0g3np xl56j7k x6ikm8r x10wlt62 xsag5q8 xz9dl7a",key:"FBUnifiedVideoMediaContainerID_"+b}),l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("FBUnifiedVideoLoadingView.react"),{}),children:l.jsx(c("FBUnifiedVideoVDDContentContainer.react"),{index:y,mediaContainerMinHeight:T,onPressTryBoost:u,reelRef:a,tryBoostURI:v,videoIndex:b})}),l.jsx("div",babelHelpers["extends"]({},j.props(s.feedbackBarContainerVertical(!K&&R.innerWidth<=d("FBUnifiedVideoConstants").VIEWER_WIDTH_THRESHOLD?"center":"flex-end",T,!K&&R.innerWidth<=d("FBUnifiedVideoConstants").VIEWER_WIDTH_THRESHOLD&&V>0?V:12)),{children:y===b||y===b+1||y===b-1?l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("FBUnifiedVideoFeedbackBarPlaceholder.react"),{}),children:l.jsx(c("FBUnifiedVideoFeedbackBar.react"),{feedbackData:a,onHoverIn:N,onHoverOut:O,onPressIn:P},"feedbackbar_"+b)}):l.jsx(c("FBUnifiedVideoFeedbackBarPlaceholder.react"),{})})))})}))}))},[U,V,y,K,Q,T,H,N,O,P,u,v,R.innerWidth]);if(H==null)return null;var $=Q?s.fullScreenInPushView:s.fullScreenNotInPushView;F=l.jsx(c("InteractivePluginContextProvider.react"),{videoID:W,children:l.jsxs(d("CometTahoeSidepaneDialogContextProvider.react").CometTahoeSidepaneDialogContextProvider,{children:[l.jsx(c("CometPlaceholder.react"),{fallback:null,children:F!=null&&l.jsx(c("ReelsInteractivePluginManagerDeferred.react"),{video:F})}),l.jsx("div",babelHelpers["extends"]({},(j||(j=c("stylex"))).props($),{children:l.jsx(c("CometTheme.react"),{theme:D,xstyle:$,children:l.jsxs(c("FDSPageLayoutWithComplementaryContent.react"),{hideContainerBackground:!0,isRightRailFixed:!0,rightRail:K?null:l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("FBUnifiedVideoFeedbackRightRailGlimmer.react"),{}),children:I?l.jsx(d("FBUnifiedVideoFeedbackRightRailWithCommentPreloading.react").FBUnifiedVideoFeedbackRightRailWithCommentPreloading,{rightRailQuery:I,selfViewBoost:J}):l.jsx(c("FBUnifiedVideoFeedbackRightRailGlimmer.react"),{})}),children:[l.jsx(c("CometTheme.react"),{style:{minHeight:d("FBUnifiedVideoConstants").MIN_VIEWER_HEIGHT},theme:D,children:l.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 x78zum5 xdt5ytf x1dr59a3 x17qophe xl56j7k x10l6tqk x1rohswg x13vifvy xh8yej3"},{children:l.jsx(c("FBUnifiedVideoNavigationButtons.react"),{isNextButtonHidden:g,validContentSize:H.length,children:k})}))}),K?null:l.jsx("div",babelHelpers["extends"]({className:"x92rtbv x10l6tqk xomnu4r"},{children:l.jsx(c("FBUnifiedVideoResizeIcon.react"),{})}))]})})}))]})});return l.jsx(c("FBUnifiedVideoViewerKeyboardInteractionsOverlay.react"),{validContentSize:H.length,children:l.jsx(c("CometTrackingCodeProvider.react"),{trackingCode:a,children:l.jsx(c("ReelIFUTrackingContext").Provider,{value:E,children:F})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MDCAIGlassesPDPBuyBox.react",["CometRouteParams","DollyStoreBuyOnMDCValueProp.react","MCDSVerticalStack.react","MDCAIGlassesPDPBuyBoxCTA.react","MDCAIGlassesPDPBuyBoxCustomization.react","MDCAIGlassesPDPBuyBoxHeader.react","MDCAIGlassesPDPBuyBoxStickyCTA.react","MDCAIGlassesProductContext","MDCAppStoreImpressionLoggingConstants","ProductStateUtils","mcdsHide","mcdsMargin","mcdsPadding","react","stylex","useMCDSVisibility","useMDCUrlAndReferrer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext,l={wrapper:{boxSizing:"x9f619","@media (min-width: 1025px)_borderTopStartRadius":"x11h4pd3","@media (min-width: 1025px)_borderTopEndRadius":"x134d19q","@media (min-width: 1025px)_borderBottomEndRadius":"xcfyll7","@media (min-width: 1025px)_borderBottomStartRadius":"x65yayk","@media (min-width: 1025px)_borderTopWidth":"xskiz5k","@media (min-width: 1025px)_borderEndWidth":"xp7exnq","@media (min-width: 1025px)_borderBottomWidth":"xfbkj3e","@media (min-width: 1025px)_borderStartWidth":"x1k6anmg","@media (min-width: 1025px)_borderTopColor":"xyo5czu","@media (min-width: 1025px)_borderEndColor":"xtii0hh","@media (min-width: 1025px)_borderBottomColor":"x1p7uviz","@media (min-width: 1025px)_borderStartColor":"x157gr4q","@media (min-width: 1025px)_borderTopStyle":"xsmhqmm","@media (min-width: 1025px)_borderEndStyle":"x1b2fn4g","@media (min-width: 1025px)_borderBottomStyle":"x8gwuu5","@media (min-width: 1025px)_borderStartStyle":"xfpsc9b",$$css:!0}};function a(a){var b=a["data-testid"];b=a.isCondensed;b=b===void 0?!1:b;a=a.xstyle;var e=k(c("MDCAIGlassesProductContext")),f=e.isAvailableInCurrentCountry,g=e.products,i=d("CometRouteParams").useRouteParams();e=c("useMDCUrlAndReferrer")();var m=e.referrer,n=e.url;e=function(){d("ProductStateUtils").buildAndFireProductStateLogger(g,i,m,n)};e=c("useMCDSVisibility")({onVisible:e,threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});e=e[0];return j.jsxs(c("MCDSVerticalStack.react"),{"data-testid":void 0,gap:0,ref:e,xstyle:[a,l.wrapper,c("mcdsPadding").responsive({horiz:{desktop:20,mobile:0},vert:{desktop:24,mobile:0}})],children:[j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(c("mcdsHide").onMobile,c("mcdsHide").onTablet),{children:j.jsx(c("MDCAIGlassesPDPBuyBoxHeader.react"),{})})),f&&j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(c("mcdsMargin").responsive({top:{mobile:0,desktop:8}})),{children:j.jsx(c("MDCAIGlassesPDPBuyBoxCustomization.react"),{isBuyBoxCondensed:b})})),j.jsx("div",babelHelpers["extends"]({},h.props(c("mcdsMargin").top24,c("mcdsHide").onMobile,c("mcdsHide").onTablet),{children:j.jsx(c("MDCAIGlassesPDPBuyBoxCTA.react"),{})})),j.jsx("div",babelHelpers["extends"]({},h.props(c("mcdsHide").onDesktop),{children:j.jsx(c("MDCAIGlassesPDPBuyBoxStickyCTA.react"),{})})),f&&j.jsx("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props(c("mcdsMargin").top16,c("mcdsHide").onTablet),{children:j.jsx(c("DollyStoreBuyOnMDCValueProp.react"),{benefitIconToLabelSpacing:8,interBenefitSpacing:24})}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBUnifiedVideoFeedbackInstagramComments.react",["fbt","ix","CometLink.react","CometRelay","FBUnifiedVideoFeedbackInstagramComments_comments.graphql","FBUnifiedVideoLoggingConstants","FDSButton.react","FDSCard.react","FDSText.react","FDSUnit.react","FDSUnitHeader.react","fbicon","react","react-compiler-runtime","useReelsLogger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m="https://www.facebook.com/help/386221115984344/?helpref=uf_share";function a(a){var e,f=d("react-compiler-runtime").c(17);a=a.comments;var g=d("CometRelay").useFragment(j!==void 0?j:j=b("FBUnifiedVideoFeedbackInstagramComments_comments.graphql"),a);a=c("useReelsLogger")();var k=a.feedbackInstagramDeeplinkClickedLog;a=g==null?void 0:(a=g.story)==null?void 0:(a=a.ig_media)==null?void 0:a.permalink;if(a==null)return null;if(f[0]!==(g==null?void 0:(e=g.story)==null?void 0:(e=e.feedback)==null?void 0:e.share_fbid)||f[1]!==(g==null?void 0:(e=g.story)==null?void 0:e.tracking)||f[2]!==k){var n;e=function(){var a;k({destination:c("FBUnifiedVideoLoggingConstants").INSTAGRAM_DEEPLINK_DESTINATION.VIEWER,entry:"Comet",media_id:(a=g==null?void 0:(a=g.story)==null?void 0:(a=a.feedback)==null?void 0:a.share_fbid)!=null?a:"",tracking:(a=g==null?void 0:(a=g.story)==null?void 0:a.tracking)!=null?a:""})};f[0]=g==null?void 0:(n=g.story)==null?void 0:(n=n.feedback)==null?void 0:n.share_fbid;f[1]=g==null?void 0:(n=g.story)==null?void 0:n.tracking;f[2]=k;f[3]=e}else e=f[3];n=e;f[4]===Symbol["for"]("react.memo_cache_sentinel")?(e={className:"xw7yly9 xktsk01 x1yztbdb x1d52u69"},f[4]=e):e=f[4];var o;f[5]===Symbol["for"]("react.memo_cache_sentinel")?(o={className:"xyamay9 x1pi30zi x1l90r2v x1swvt13"},f[5]=o):o=f[5];var p;f[6]===Symbol["for"]("react.memo_cache_sentinel")?(p=l.jsx(c("FDSUnitHeader.react"),{headline:h._(/*BTDS*/""),level:3,paddingHorizontal:0,paddingTop:0}),f[6]=p):p=f[6];var q;f[7]===Symbol["for"]("react.memo_cache_sentinel")?(q=h._(/*BTDS*/""),f[7]=q):q=f[7];f[8]===Symbol["for"]("react.memo_cache_sentinel")?(p=l.jsx(c("FDSUnit.react"),{header:p,spacing:12,type:"transparent",children:l.jsxs(c("FDSText.react"),{type:"body3",children:[q," ",l.jsx(c("CometLink.react"),{href:m,target:"_blank",children:h._(/*BTDS*/"")})]})}),f[8]=p):p=f[8];var r;f[9]===Symbol["for"]("react.memo_cache_sentinel")?(q=d("fbicon")._(i("547774"),16),r=h._(/*BTDS*/""),f[9]=q,f[10]=r):(q=f[9],r=f[10]);var s;f[11]!==a?(s={target:"_blank",url:a},f[11]=a,f[12]=s):s=f[12];f[13]!==n||f[14]!==q||f[15]!==s?(a=l.jsx("div",babelHelpers["extends"]({},e,{children:l.jsx(c("FDSCard.react"),{background:"light-wash",children:l.jsxs("div",babelHelpers["extends"]({},o,{children:[p,l.jsx(c("FDSButton.react"),{icon:q,label:r,linkProps:s,onPress:n})]}))})})),f[13]=n,f[14]=q,f[15]=s,f[16]=a):a=f[16];return a}g["default"]=a}),226);
-----
FBUnifiedVideoLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_TYPE:{PAUSE_REEL:"pause_reel"},CLOSE_REELS_GESTURE:{BACK_BUTTON_EXIT:"back_button_exit",CLOSE_BUTTON_EXIT:"close_button_exit",KEYBOARD_EXIT:"keyboard_exit",UNKNOWN:"unknown"},INSTAGRAM_DEEPLINK_DESTINATION:{VIEWER:"viewer"},OPEN_SOURCE:{BOOKMARK:"bookmark",IFU:"ifu",IFU_END_CARD:"ifu_end_card",IFU_SEE_MORE:"ifu_see_more",NOTIFICATION:"notification",PERMALINK:"permalink",TOFU:"reels_tofu",UNKNOWN:"unknown"},OPEN_SOURCE_FOR_FALCO:{BOOKMARK:"bookmark",COMET_IN_FEED_UNIT:"comet_in_feed_unit",COMET_URL:"comet_url"},PLAYER_ORIGIN:{NEWS_FEED:"newsfeed"},SOURCE_SURFACE:{VIEWER:"fb_shorts_viewer"}};b=a;f["default"]=b}),66);
-----
FBUnifiedVideoViewerPlaceholder.react",["fbt","CometFullViewerCloseButtonForPermalink.react","CometRouteRenderType","CometRow.react","CometRowItem.react","FBUnifiedVideoFeedbackBarPlaceholder.react","FBUnifiedVideoGating","FBUnifiedVideoLoggingConstants","FBUnifiedVideoNavigationButtonsPlaceholder.react","FDSText.react","ReelsVideoLoadingView.react","react","stylex","useFBUnifiedVideoProcessRoute","useOnBeforeUnload","useReelsLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useMemo,m={feedbackBarContainer:{alignItems:"xuk3077",display:"x78zum5",height:"x5yr21d",marginBottom:"x1hq5gj4",marginEnd:"xt1id46",$$css:!0},feedbackBarContainerVertical:{alignItems:"xpqajaz",display:"x78zum5",height:"x5yr21d",$$css:!0},headerPushViewVertical:{"@media (max-width: 1190px)_display":"xo91rtc",$$css:!0},headerVertical:{"@media (max-width: 880px)_display":"xxfrrm4",$$css:!0},titleStylePermalink:{start:"xfylb8w",position:"xixxii4",top:"xvt0np",$$css:!0},titleStylePushView:{start:"x1heu26e",position:"xixxii4",top:"xmhk92p",$$css:!0}};function a(){var a=d("CometRouteRenderType").useIsPushView(),b=c("useReelsLogger")(),e=b.exitViewerLog;b=c("useFBUnifiedVideoProcessRoute")();var f=b.trackingString,g=b.videoID;b=l(function(){return d("FBUnifiedVideoGating").shouldUseVerticalSwipe()},[]);var j=d("FBUnifiedVideoGating").enableVideoTabBranding();c("useOnBeforeUnload")(function(){e(0,c("FBUnifiedVideoLoggingConstants").CLOSE_REELS_GESTURE.UNKNOWN,[f],g)});return k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"xal61yo x5yr21d x10l6tqk xh8yej3"}),k.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 x1ey2m1c x78zum5 xds687c x17qophe xl56j7k x6ikm8r x10wlt62 x10l6tqk x13vifvy"},{children:k.jsx("div",babelHelpers["extends"]({className:"x6s0dn4 x78zum5 x5yr21d xl56j7k xh8yej3"},{children:k.jsxs(c("FBUnifiedVideoNavigationButtonsPlaceholder.react"),{children:[k.jsx("div",{children:k.jsx(c("ReelsVideoLoadingView.react"),{reason:"Placeholder"})}),k.jsx("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(!b&&m.feedbackBarContainer,b&&m.feedbackBarContainerVertical),{children:k.jsx(c("FBUnifiedVideoFeedbackBarPlaceholder.react"),{})}))]})}))})),k.jsx("div",babelHelpers["extends"]({},i.props(a?m.titleStylePushView:m.titleStylePermalink,a&&b&&m.headerPushViewVertical,!a&&b&&m.headerVertical),{children:k.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:0,paddingTop:0,spacing:0,verticalAlign:top,children:[!a&&k.jsx(c("CometRowItem.react"),{children:k.jsx(c("CometFullViewerCloseButtonForPermalink.react"),{})}),k.jsx(c("CometRowItem.react"),{children:k.jsx(c("FDSText.react"),{color:"primaryOnMedia",type:"headlineEmphasized1",children:j?h._(/*BTDS*/""):h._(/*BTDS*/"")})})]})}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StoriesCardSingleAuthorHeader.react",["fbt","CometColumn.react","CometColumnItem.react","CometPressable.react","CometRelay","CometRow.react","CometRowItem.react","FDSRelativeTimestamp.react","FDSText.react","JSResourceForInteraction","StoriesCardHeaderOwnerInfo.react","StoriesCardHeaderOwnerPicture.react","StoriesCardSingleAuthorHeader_attribution.graphql","StoriesCardSingleAuthorHeader_bucket.graphql","StoriesCardSingleAuthorHeader_card.graphql","StoriesCardSingleAuthorHeader_owner.graphql","StoriesCardWatchLiveVideoCTA.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesMultipleAttributionComponent.react","StoriesPauseReasons","StoriesSuspensePauseContext","formatDate","react","react-compiler-runtime","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react"));e=m;e.useCallback;var o=e.useContext,p=e.useRef,q=c("JSResourceForInteraction")("StoriesCardHeaderSCMEPopup.react").__setRef("StoriesCardSingleAuthorHeader.react");function a(a){var e,f,g,m=d("react-compiler-runtime").c(70),r=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesCardSingleAuthorHeader_owner.graphql"),a.owner),s=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesCardSingleAuthorHeader_bucket.graphql"),a.bucket),t=d("CometRelay").useFragment(k!==void 0?k:k=b("StoriesCardSingleAuthorHeader_attribution.graphql"),a.cardInfo),u=d("CometRelay").useFragment(l!==void 0?l:l=b("StoriesCardSingleAuthorHeader_card.graphql"),a.story);if(m[0]!==r){var v;v=(v=r)!=null?v:{};m[0]=r;m[1]=v}else v=m[1];v=v;var w=v.name;v=v.url;var x=r==null?void 0:(e=r.profile_picture)==null?void 0:e.uri;e=a.creationTime;var y=u==null?void 0:(f=u.profile_location_transparency_subtitle_text_with_entities)==null?void 0:f.text,z=u==null?void 0:(f=u.location_transparency_info)==null?void 0:f.helpcenter_id;f=s==null?void 0:s.audience_mode;var A=p(null),B=c("useCometLazyDialog")(q),C=B[0];B=o(c("StoriesSuspensePauseContext"));var D=B.isPaused,E=B.setPause;m[2]!==y||m[3]!==z||m[4]!==w||m[5]!==x||m[6]!==E||m[7]!==C?(B=function(){var a=function(){E(!1,d("StoriesPauseReasons").SCME_DIALOG)};E(!0,d("StoriesPauseReasons").SCME_DIALOG);C({SCMELabel:y,helpcenterID:z,name:w,profilePicUri:x,unPause:a})},m[2]=y,m[3]=z,m[4]=w,m[5]=x,m[6]=E,m[7]=C,m[8]=B):B=m[8];B=B;if(r==null)return null;var F;m[9]!==t||m[10]!==u||m[11]!==D?(F=u!=null&&n.jsx(c("StoriesMultipleAttributionComponent.react"),{cardData:u,cardInfoData:t,isPaused:D,storyId:u.id}),m[9]=t,m[10]=u,m[11]=D,m[12]=F):F=m[12];u=F;D=null;if(e!=null)if(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE){F=e*1e3;var G;m[13]!==F?(G=c("formatDate")(new Date(F),"M j",{utc:!0}),m[13]=F,m[14]=G):G=m[14];D=G}else{F=e*1e3;m[15]!==F?(G=new Date(F),m[15]=F,m[16]=G):G=m[16];m[17]!==G?(F=n.jsx(c("FDSRelativeTimestamp.react"),{date:G,format:"minimized"}),m[17]=G,m[18]=F):F=m[18];D=F}m[19]!==y||m[20]!==B?(G=y!=null&&n.jsx("div",babelHelpers["extends"]({className:"x1cy8zhl x78zum5 x1ye3gou x10lvyaf"},{children:n.jsx("div",babelHelpers["extends"]({className:"x14hiurz x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1lliihq x1xmf6yo x1iorvi4 x1sxyh0 xjkvuk6 xurb0ha"},{children:n.jsx(c("CometPressable.react"),{display:"block",label:y,onPress:B,overlayDisabled:!0,ref:A,children:n.jsx("div",babelHelpers["extends"]({className:"x1p6odiv x1nxh6w3 xk50ysn xo5v014"},{children:y}))})}))})),m[19]=y,m[20]=B,m[21]=G):G=m[21];F=G;B=(A=s==null?void 0:s.is_bucket_live)!=null?A:!1;s=(t==null?void 0:(G=t.story_video_thumbnail)==null?void 0:G.broadcast_status)==="VOD_READY";G=(t==null?void 0:(A=t.story_video_thumbnail)==null?void 0:A.broadcast_status)==="LIVE";A=G||s;s=t==null?void 0:(s=t.story_video_thumbnail)==null?void 0:s.url;g=!(t==null?void 0:(g=t.story_video_thumbnail)==null?void 0:g.owner_has_professional_features);var H;m[22]!==G?(H=G?h._(/*BTDS*/"__JHASH__Idf4IRr570U__JHASH__"):h._(/*BTDS*/"__JHASH__iu3rjsyH1Qy__JHASH__"),m[22]=G,m[23]=H):H=m[23];H=H;var I;m[24]!==t||m[25]!==f||m[26]!==e||m[27]!==A||m[28]!==r||m[29]!==a.onOwnerClick?(I=n.jsx(c("CometColumnItem.react"),{children:n.jsx(c("StoriesCardHeaderOwnerInfo.react"),{attribution:t,audienceMode:f,creationTime:e,isVideoBroadcast:A,onOwnerClick:a.onOwnerClick,owner:r})}),m[24]=t,m[25]=f,m[26]=e,m[27]=A,m[28]=r,m[29]=a.onOwnerClick,m[30]=I):I=m[30];m[31]!==u?(t=u!=null&&n.jsx("div",babelHelpers["extends"]({className:"x17z8epw x1ye3gou x1iorvi4 x3zf81a x18f6uos"},{children:u})),m[31]=u,m[32]=t):t=m[32];m[33]!==t?(f=n.jsx(c("CometColumnItem.react"),{children:t}),m[33]=t,m[34]=f):f=m[34];m[35]!==D||m[36]!==A||m[37]!==H?(e=A&&n.jsx("div",babelHelpers["extends"]({className:"x17z8epw x3zf81a x1mh8g0r x1ye3gou x889kno"},{children:n.jsxs(c("FDSText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"body3",children:[H,n.jsx("span",babelHelpers["extends"]({className:"xdj266r xw3qccf xat24cr xsgj6o6"},{children:"u2022"})),D]})})),m[35]=D,m[36]=A,m[37]=H,m[38]=e):e=m[38];m[39]!==e?(r=n.jsx(c("CometColumnItem.react"),{children:e}),m[39]=e,m[40]=r):r=m[40];m[41]!==I||m[42]!==f||m[43]!==r?(u=n.jsxs(c("CometColumn.react"),{children:[I,f,r]}),m[41]=I,m[42]=f,m[43]=r,m[44]=u):u=m[44];t=u;m[45]===Symbol["for"]("react.memo_cache_sentinel")?(D={className:"x6s0dn4 x78zum5 xoie2o3 x10l6tqk x12eol54 x3qmvb3"},m[45]=D):D=m[45];m[46]!==B||m[47]!==w||m[48]!==x||m[49]!==v||m[50]!==a.onOwnerClick?(H=n.jsx(c("CometRowItem.react"),{children:n.jsx(c("StoriesCardHeaderOwnerPicture.react"),{isBucketLiveStreaming:B,name:w,onOwnerClick:a.onOwnerClick,profilePicUri:x,profileUrl:v})}),m[46]=B,m[47]=w,m[48]=x,m[49]=v,m[50]=a.onOwnerClick,m[51]=H):H=m[51];m[52]!==t?(e=n.jsx(c("CometRowItem.react"),{children:t}),m[52]=t,m[53]=e):e=m[53];m[54]!==F?(I=n.jsx(c("CometRowItem.react"),{children:F}),m[54]=F,m[55]=I):I=m[55];m[56]!==H||m[57]!==e||m[58]!==I?(f=n.jsx(c("CometColumnItem.react"),{children:n.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:0,paddingVertical:0,spacing:4,spacingHorizontal:0,verticalAlign:"center",children:[H,e,I]})}),m[56]=H,m[57]=e,m[58]=I,m[59]=f):f=m[59];m[60]!==G||m[61]!==g||m[62]!==A||m[63]!==s?(r=A&&s!=null&&g&&n.jsx(c("StoriesCardWatchLiveVideoCTA.react"),{isLive:G,url:s}),m[60]=G,m[61]=g,m[62]=A,m[63]=s,m[64]=r):r=m[64];m[65]!==r?(u=n.jsx(c("CometColumnItem.react"),{children:n.jsx("div",{children:r})}),m[65]=r,m[66]=u):u=m[66];m[67]!==f||m[68]!==u?(B=n.jsx("div",babelHelpers["extends"]({},D,{"data-testid":void 0,children:n.jsxs(c("CometColumn.react"),{spacing:16,children:[f,u]})})),m[67]=f,m[68]=u,m[69]=B):B=m[69];return B}g["default"]=a}),226);
-----
LegalMatterEventLoggerUtil",["LegalMatterEventTypedLogger","LegalMatterHealthFalcoEvent","LegalMatterLoggingConstants","LegalMatterMetricsFalcoEvent","ReactRouterDOM","isNullish"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f){new(c("LegalMatterEventTypedLogger"))().setEventName(b).setExceptionTrace(a==null?void 0:a.stack).setExceptionMessage(a==null?void 0:a.message).setExceptionType(a==null?void 0:a.name).setExtra(d).setMatterID(e).setPartnerID(f).log()}function b(a){var b=a[a.length-1]==="/"?a.substring(0,a.length-1):a;a=d("LegalMatterLoggingConstants").LegalMatterPathPageMapping.filter(function(a,e){return!c("isNullish")(d("ReactRouterDOM").matchPath(b,{path:e,exact:!0}))}).first();return c("isNullish")(a)?d("LegalMatterLoggingConstants").LegalMatterPathPageMapping.filter(function(a,c){return b.startsWith(c)}).max(function(a,b){return b.length}):a}function e(a,b,d,e){b===void 0&&(b="UNKNOWN_PAGE"),new(c("LegalMatterEventTypedLogger"))().setEventName(a).setExtra(e).setPartnerID(d).setPage(b).log(),c("LegalMatterMetricsFalcoEvent").log(function(){return{event_name:a,page:b,extra:e}})}function f(a,b,d,e){b===void 0&&(b="UNKNOWN_PAGE"),c("LegalMatterHealthFalcoEvent").log(function(){return{event_name:a,extra:e,latency:String(Date.now()-d),page:b}})}g.log=a;g.getPageByURI=b;g.logUserEvent=e;g.logHealthMetric=f}),98);
-----
LegalMatterLoggingConstants",["LegalMatterAppConfig","immutable"],(function(a,b,c,d,e,f,g){"use strict";b=c("immutable").Map([["ROOT_MATTERS",(a=d("LegalMatterAppConfig")).MATTERS_PATH],["ROOT_NARRATIVES",a.NARRATIVES_PATH],["ROOT_FINANCIAL_IMPACT",a.FINANCE_PATH],["ROOT_KEY_DATES",a.KEY_DATES_PATH],["ROOT_EDISCOVERY",a.EDISCOVERY_PATH],["ROOT_INVESTIGATIVE_REQUESTS",a.INVESTIGATIVE_REQUESTS_PATH],["MATTER_DETAIL_OVERVIEW_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.overview.value],["MATTER_DETAIL_MEMBERS_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.members.value],["MATTER_DETAIL_KEY_DATES_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.keyDates.value],["MATTER_DETAIL_NARRATIVE_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.narrative.value],["MATTER_DETAIL_PARTIES_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.parties.value],["MATTER_DETAIL_DOCUMENTS_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.documents.value],["MATTER_DETAIL_EDISCOVERY_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.ediscovery.value],["MATTER_DETAIL_INVESTIGATIVE_REQUESTS_TAB",a.MATTER_DETAIL_BASEPATH+"/"+a.MATTER_DETAIL_ROUTES.investigativeRequests.value],["ADMIN_FX_RATES",a.ADMIN_PATH+"/"+a.ADMIN_ROUTES.fx_rates.value],["ADMIN_OUTSIDE_COUNSEL",a.ADMIN_PATH+"/"+a.ADMIN_ROUTES.outside_counsel.value],["ADMIN_PARTIES",a.ADMIN_PATH+"/"+a.ADMIN_ROUTES.parties.value],["ADMIN_SYSTEM_ADMIN",a.ADMIN_PATH+"/"+a.ADMIN_ROUTES.sysadmin.value],["ADMIN_TEAM",a.ADMIN_PATH+"/"+a.ADMIN_ROUTES.teams.value]]);e=b.flip();g.LegalMatterPagePathMapping=b;g.LegalMatterPathPageMapping=e}),98);
-----
MDCAppStoreV2SendGiftRecipientTypeaheadResult.react",["CometRelay","MCDSBaseTypeaheadItem.react","MDCAppStoreImpressionLoggingConstants","MDCAppStoreOculusImpressionsEventsLogging","MDCAppStoreV2SendGiftForm.react","MDCAppStoreV2SendGiftFormRecipient.react","react","useMCDSVisibility"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.entry,e=a.query;a=b.getAuxiliaryData();var f=d("MDCAppStoreOculusImpressionsEventsLogging").useMDCAppStoreOculusImpressionsLogging(),g=c("useMCDSVisibility")({onVisible:function(){f({content_id:b.getUniqueID(),component:"SendGiftRecipientTypeaheadResult",duration:0,surface:"STORE",subsurface:"PDP",search_query:e},"oculus_impressions_tile_vpved")},threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});g=g[0];a=d("CometRelay").useFragment(d("MDCAppStoreV2SendGiftForm.react").RECIPIENT_FRAGMENT,a.userRef);return i.jsx(c("MCDSBaseTypeaheadItem.react"),{"data-testid":void 0,ref:g,children:i.jsx(c("MDCAppStoreV2SendGiftFormRecipient.react"),{recipientRef:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
WSSZenonInitializationProvider.react",["CometHeroHoldTrigger.react","Decoil","WSSAtoms","WSSHooks","WSSLoggerHooks","WSSZenonInitializationContext","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelTypes","ZenonLoggingConstants","ZenonLoggingHooks","ZenonRequestedMediaType","ZenonSignalingIDType","ZenonToggleScreenSharingButtonUtil","asyncToGeneratorRuntime","cr:1567219","emptyFunction","gkx","isEmpty","promiseDone","react","useAsyncEffect","usePrevious","useZenonDebugValue","useZenonEmptyScreenTrack"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,aa=e.useContext,l=e.useEffect,ba=e.useMemo,m=e.useRef,n=e.useState;function a(a){var e=a.callTrigger,f=a.children,g=a.initializeVideo,i=a.initialSyncStates,o=a.joinAsSecondary,p=a.peerID,q=a.roomID,r=a.serverInfoData,s=a.signalingID,t=a.usersToRing,u=c("gkx")("25093");a=c("useZenonEmptyScreenTrack")();var v=a[0],w=a[1];a=d("ZenonActorHooks").useZenonActor();var x=a[0],y=d("ZenonAppFeaturesHooks").useDataChannelLabels(),ca=d("Decoil").useSetDecoilState(d("WSSAtoms").joinStateAtom);a=n("unknown");var z=a[0],A=a[1];a=n({state:"unknown",type:"audio"});var B=a[0],C=a[1];a=aa(c("ZenonCallsContext"));var D=a.callSDK,E=a.currentCallInstanceSDK,F=a.setCurrentCallInstanceSDK,G=a.setE2eeModel;a=n([]);var H=a[0],I=a[1];a=n(null);var J=a[0],da=a[1];a=n(null);var K=a[0],ea=a[1],L=d("ZenonLoggingHooks").useErrorLogging();a=d("ZenonLoggingHooks").useTimerLogging("GetUserMediaRequestTimer","CallStart_GetUserMediaRequest");var M=a[0],N=a[1],O=d("ZenonLoggingHooks").useSetCallTrigger();O((a=e)!=null?a:"");a=d("ZenonLoggingHooks").useTimerLogging("StartCall","CallStart_StartCall");var P=a[0],Q=a[1],R=d("ZenonLoggingHooks").useSetIsCaller();l(function(){R(!0)},[R]);a=d("ZenonLoggingHooks").useTimerLogging("InCallStartFlowTimer","CallStart_InCallStartFlowTimer");var S=a[0],T=a[1],U=c("ZenonCallsHooks").useCallState(),V=c("usePrevious")(U);a=d("WSSHooks").useEndCallShareOnScreenTrackEnded();var fa=d("WSSHooks").useEndCallWhenUserCanceledScreenSharing(),W=c("ZenonToggleScreenSharingButtonUtil").useGetScreenTrack(a),X=c("ZenonToggleScreenSharingButtonUtil").useStopScreenShare(),Y=m(!0);l(function(){u&&V!==d("ZenonCallsModelTypes").ZenonCallState.Connected&&U===d("ZenonCallsModelTypes").ZenonCallState.Connected&&Y.current&&(Y.current=!1,X(),w())},[U,u,V,X,w]);l(function(){S(),P()},[S,P]);l(function(){var a;E==null?void 0:E.initLogging({callTrigger:(a=e)!=null?a:"",initializeVideo:g,isE2eeMandated:!1,peerID:p,roomID:q,serverInfoData:r,signalingID:s==null?null:String(s)})},[D,e,E,g,p,q,r,s]);l(function(){var a=D.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(da(a.mwRingRequest),ea(a.mwThriftRingRequest),A("ready")):a.messageType==="parentWindowConnectionTimeout"?A("timeout"):A("unknown"),Q()});return function(){a.remove()}},[D,Q]);c("useAsyncEffect")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){M();try{if(u){var a=v();a!=null&&I([a])}else{a=[yield W()];I(a)}C({state:"fulfilled",type:"audio"})}catch(a){C({error:a,state:"rejected",type:"audio"}),L({checkpoint:"WSSZenonInitializationProvider_join_getScreenTrack_error",error:a,errorDomain:"WSSZenonInitializationProvider"}),a instanceof c("ZenonToggleScreenSharingButtonUtil").MacScreenRecordingPermissionError&&(L({checkpoint:"WSSZenonInitializationProvider_join_getScreenTrack_mac_os_permission_error",error:a,errorDomain:"WSSZenonInitializationProvider"}),ca("MACOS_PERMISSION_ERROR")),a instanceof c("ZenonToggleScreenSharingButtonUtil").UserCancelledError&&fa()}finally{N()}}),[]);var Z=k(function(){c("promiseDone")(E.join({callMedia:c("ZenonRequestedMediaType").Video,callTrigger:e,dataChannels:new Set(y),initialSyncStates:i==null?null:new Map(i),isSecondaryJoinRole:o,localMedia:H,mwRingRequest:J,mwThriftRingRequest:K,peerID:p,roomID:q,serverInfoData:r,setE2eeModel:G,signalingID:s!=null?String(s):null,usersToRing:t.filter(function(a){return x!==a})}))},[E,e,y,i,o,H,J,K,p,q,r,G,s,t,x]);l(function(){z==="ready"&&!(h||(h=c("isEmpty")))(H)&&(A("joined"),Z(),T())},[T,Z,H,z]);var $=k(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){C({state:"unknown",type:"audio"});M();try{var a=[];if(u){var b=v();b!=null&&a.push(b)}else a.push(yield W());I(a);C({state:"fulfilled",type:"audio"});O(d("ZenonLoggingConstants").ZenonCallTrigger.WORKPLACE_WSS);b=String(d("ZenonSignalingIDType").generateZenonSignalingID());c("promiseDone")(D.createCall().join({callMedia:c("ZenonRequestedMediaType").Video,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.WORKPLACE_WSS,dataChannels:new Set(y),localMedia:a,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:p,roomID:q,setE2eeModel:G,signalingID:b,usersToRing:t.filter(function(a){return x!==a})}),function(a){return F(a)})}catch(a){L({checkpoint:"WSSZenonInitializationProvider_rejoin_getScreenTrack_error",error:a,errorDomain:"WSSZenonInitializationProvider"}),C({error:a,state:"rejected",type:"audio"})}finally{N()}}),[M,u,O,D,y,p,q,G,t,v,W,x,F,L,N]),ga=m(c("emptyFunction"));ga.current=function(){H.forEach(function(a){a.webrtcTrack.stop()})};l(function(){return function(){w(),ga.current()}},[w]);a=ba(function(){return{joinCall:Z,rejoinCall:$,signalingStatus:z,userMediaRequestStatus:B}},[z,Z,B,$]);c("useZenonDebugValue")("WSSZenonInitializationProvider",a);l(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);d("WSSLoggerHooks").useWSSLogScreenSharing();return j.jsxs(c("WSSZenonInitializationContext").Provider,{value:a,children:[j.jsx(c("CometHeroHoldTrigger.react"),{description:"getUserMedia",hold:B.state==="unknown"||B.state==="pending"}),j.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:U===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),f]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useMDCAppStoreV2SectionShelfLogging",["MDCAppStoreImpressionLoggingConstants","MDCAppStoreOculusImpressionEventsLoggingHooks","react","useDDSVisibility","useMDCAppStoreLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=500;function a(a,b){var e;b===void 0&&(b={threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD,duration:j,content_type:"MDCAppStoreSectionShelf",content_id:""});var f=(e=b.threshold)!=null?e:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD,g=b.content_id;e=(e=b.duration)!=null?e:j;b=(b=b.content_type)!=null?b:"MDCAppStoreSectionShelf";var h=e<0?0:e,k=d("MDCAppStoreOculusImpressionEventsLoggingHooks").useImpressionLogging(b);e=c("useDDSVisibility")({threshold:f});b=e[0];var l=e[1],m=a.index,n=a.sectionID,o=a.sectionShelfID,p=c("useMDCAppStoreLogging")("info");i(function(){l&&(k("oculus_impressions_shelf_vpved",{content_id:g!==""?g:o}),p("Skyline",{duration_in_ms:h,item_id:o,item_position:m,page:"store_section",pixel_in_percentage:Math.round(f*100),section_id:n,type:"oculus_skyline_viewport_visible_event"}))},[l,f,m,n,h,k,g,p,o]);i(function(){var a=Date.now();p("Skyline",{item_position:m,page:"store_section",section_id:n,type:"oculus_skyline_rendered_impression"});return function(){p("Skyline",{duration_in_ms:Date.now()-a,item_position:m,page:"store_section",section_id:n,type:"oculus_skyline_rendered_impression_duration"})}},[m,p,n]);return b}g["default"]=a}),98);
-----
AdsEventsManagerConsolidatedDataSetEventOverviewContainer.react",["fbt","AdsEventsManagerAppEventsSDKBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetDataSourceBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetEventBreakdownExportDataModalContainer.react","AdsEventsManagerConsolidatedDataSetEventOverviewTabNameLabels","AdsEventsManagerConsolidatedDataSetEventsDeviceBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetEventsDomainBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetEventsUrlBreakdownTableContainer.react","AdsEventsManagerEventOverviewErrorCard.react","AdsEventsManagerPixelEventBreakdownTypeEnum","AdsEventsManagerPixelEventOverviewLoggingConstants","AdsEventsManagerPixelEventSetupQualityOverview.react","AdsFluxHooks","AdsInterfacesRouter","AdsLoadObjectUtils","GeoButton.react","GeoHeading.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","GeoToolbar.react","GeoToolbarFill.react","LoadingMarkerArea.react","S2SOverviewSectionLoggingHelper","SignalsHomeExportEventDataOpenModalAction","SignalsLoadingSpinner.react","SignalsLoggingBoundary.react","adsCreateStructuredSelector","adsEventsManagerCAPIAdditionalConversionsReportedSelector","adsEventsManagerDataSourceIDSelectorEnforced","adsEventsManagerPixelDateRangeSelector","adsEventsManagerPixelEventTimelineChartDataSelector","adsEventsManagerWithMMEventTimelineChartDataSelector","err","geoMargin","gkx","isTruthy","react","signalsLoadObjectComponent","signalsLoggingUserInputWithValueContextListener","stylex","useDatasetGK"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useState,n=100;e=c("gkx")("3318");var o=c("adsCreateStructuredSelector")({additionalConversionsReportedChartDataLO:c("adsEventsManagerCAPIAdditionalConversionsReportedSelector"),datasetID:c("adsEventsManagerDataSourceIDSelectorEnforced"),eventChartDataLO:e?c("adsEventsManagerWithMMEventTimelineChartDataSelector"):c("adsEventsManagerPixelEventTimelineChartDataSelector")("EVENT_TIMELINE_WITH_RECEIVED_ONLY"),selectedDateRange:c("adsEventsManagerPixelDateRangeSelector")},f.id+".overviewSelector");function p(a){switch(a){case"DATA_SOURCE":return h._("u8fd9u4e2au8868u683cu663eu793au4e86u6839u636eu4f60u7528u6765u96c6u6210u548cu5206u4eabu6570u636eu7684u6bcfu6b3eu5de5u5177uff0cFacebook u6536u5230u548cu5904u7406u8fd9u4e2au4e8bu4ef6u7684u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"URLS":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9au7f51u5740u63a5u6536u6b64u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"DOMAINS":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9au57dfu540du63a5u6536u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"DEVICES":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9au8bbeu5907u7c7bu578bu63a5u6536u6b64u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"SDKS":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9a SDK u7248u672cu63a5u6536u6b64u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu53efu80fdu9700u8981u6700u957f 20 u5206u949fu624du4f1au66f4u65b0u3002");default:throw c("err")("Invalid category selection")}}function q(a){var b=a.selectedCategory,d=a.selectedDateRange,e=a.eventName;a=a.datasetID;switch(b){case"DATA_SOURCE":return k.jsx(c("AdsEventsManagerConsolidatedDataSetDataSourceBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"URLS":return k.jsx(c("AdsEventsManagerConsolidatedDataSetEventsUrlBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"DOMAINS":return k.jsx(c("AdsEventsManagerConsolidatedDataSetEventsDomainBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"DEVICES":return k.jsx(c("AdsEventsManagerConsolidatedDataSetEventsDeviceBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"SDKS":return k.jsx(c("AdsEventsManagerAppEventsSDKBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d})}throw c("err")("Invalid category selection")}q.displayName=q.name+" [from "+f.id+"]";function a(a){a=a.logger;var b=c("AdsInterfacesRouter").get().getSemanticParams();b=b.eventName;var e=d("AdsFluxHooks").useAdsSelector(o,b),f=e.additionalConversionsReportedChartDataLO,g=e.eventChartDataLO,h=e.datasetID;e=e.selectedDateRange;f=d("AdsLoadObjectUtils").all([f,g]);return k.jsx(r,{datasetID:h,eventName:b,logger:a,object:f,selectedDateRange:e})}a.displayName=a.name+" [from "+f.id+"]";function b(a){var b=a.value,e=a.selectedDateRange,g=a.logger,j=a.eventName,o=a.datasetID;b[0];a=b[1].eventSources;a=a.includes("SERVER_ONLY");var r=c("useDatasetGK")(o,["spex_growth_event_overview_tab_browser_events"],!a);r=r.result;r=c("isTruthy")(r==null?void 0:r.spex_growth_event_overview_tab_browser_events);var s=m("DATA_SOURCE"),t=s[0],u=s[1];s=l(function(a){u(a),g.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames.CATEGORY_TYPE_SELECTOR,stringValue:a}}).scope(d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewLoggingActions.CLICK_CATEGORY_TYPE_SELECTOR).logSelect()},[u,g]);var v=l(function(){g.scope(d("S2SOverviewSectionLoggingHelper").ACTIONS.OPEN_EXPORT_BREAKDOWN_MODAL).logClick(),c("SignalsHomeExportEventDataOpenModalAction").dispatch({eventName:j,pixelID:o},{line:"309",module:"AdsEventsManagerConsolidatedDataSetEventOverviewContainer.react.js",moduleID:f.id})},[j,g,o]);s=k.jsx("div",{className:"x13ie5k6",children:k.jsx(c("GeoSelector.react"),{"data-testid":void 0,isLabelHidden:!0,label:h._("breakdown_type"),value:t,onChange:s,children:Object.keys(c("AdsEventsManagerPixelEventBreakdownTypeEnum")).map(function(a){return k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:c("AdsEventsManagerConsolidatedDataSetEventOverviewTabNameLabels")[a],value:a},a)})})});v=k.jsx("div",{children:k.jsx(c("GeoButton.react"),{label:h._("u5bfcu51fau6570u636e"),minWidth:n,onClick:v})});return r||a?k.jsx(c("AdsEventsManagerPixelEventSetupQualityOverview.react"),{dataSourceID:o,dataTestId:"EVENT_DETAILS_EVENT_OVERVIEW_CONTAINER",eventName:j,selectedDateRange:e,value:b}):k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"x78zum5 xdt5ytf x1iyjqo2 x5yr21d x1gja9t xh8yej3","data-testid":void 0,children:[k.jsxs(c("GeoToolbar.react"),{children:[k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("GeoHeading.react"),{"data-testid":void 0,level:1,children:h._("{category}u4e8bu4ef6u52a8u6001",[h._param("category",c("AdsEventsManagerConsolidatedDataSetEventOverviewTabNameLabels")[t])])}),k.jsxs("div",{className:"x78zum5 x1qughib x14vqqas",children:[k.jsx("div",{className:"x1cxeki3",children:k.jsx(c("GeoText.react"),{children:p(t)})}),k.jsxs("div",{className:"x78zum5",children:[k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").end4),children:s}),v]})]})]}),k.jsx(c("GeoToolbarFill.react"),{})]}),k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top12),children:k.jsx(q,{datasetID:o,eventName:j,selectedCategory:t,selectedDateRange:e})})]}),k.jsx(c("AdsEventsManagerConsolidatedDataSetEventBreakdownExportDataModalContainer.react"),{selectedCategory:t})]})}b.displayName=b.name+" [from "+f.id+"]";var r=c("signalsLoadObjectComponent")("AdsEventsManagerPixelEventSetupQualityOverviewContainer",{Error:function(){return k.jsx(c("AdsEventsManagerEventOverviewErrorCard.react"),{})},Loaded:b,Loading:function(){return k.jsx(c("LoadingMarkerArea.react"),{name:f.id,children:k.jsx(c("SignalsLoadingSpinner.react"),{})})}});e=c("SignalsLoggingBoundary.react").loggerConsumingComponent(d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id}),function(a){return a.scope("AdsEventsManagerConsolidatedDataSetEventEventOverviewContainer")},{disableSessionCreation:!0});g["default"]=e}),226);
-----
AudienceManagerChrome.react",["cx","fbt","invariant","AdsAEExperimentUtils","AdsAMAccountAcceptedTosAddAction","AdsAMAmStartInitAction","AdsAMAudienceDeleteStartAction","AdsAMAudienceGraphAPI","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMCreateAudienceServerActions","AdsAMSharingAgreementAcceptedAction","AdsAMViewActions","AdsAMViewClearErrorsAction","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAMViewCloseRegularEditDialogAction","AdsAMViewCloseShareAudienceDialogAction","AdsAMViewCloseUserTOSDialogAction","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewStore","AdsAMViewToggleSpecialAdAudienceDialogAction","AdsAMViewUpdateFilterSetAction","AdsAdvantageAudienceSavedAudienceGKUtils","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsAudienceManagerGlobalNavigation.react","AdsAudienceManagerUnloadAction","AdsAudienceOverlapActions","AdsAudienceRuleBuilderSpecUtil","AdsAudienceSharingStore","AdsCollapseSideNavAction","AdsCommonAdvertisablePagesVideosStore","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsDataSourceTables","AdsErrorBoundary.react","AdsExpandSideNavAction","AdsFluxContainer","AdsGenericFilterSetUtil","AdsGeodesicAdoption","AdsInterfacesLogger","AdsManagerIGLoginUtils","AdsMoveAdAccountToBusinessViewStage","AdsNewIDs","AdsOsmipExperimentUtils","AdsPixelDialogStore","AdsPixelDialogTypes","AdsPixelTableSettingProvider","AdsSavedAudienceActions","AdsSavedAudienceLoggingEvents","AdsSideNavUIStateDataProvider","AdsStaticGuidanceCard.react","AdsTargetingAccountControlInfoSelector","AdsTargetingAudienceEditorGKSelectors","AdsTargetingAudienceShowCreateLalAudienceDialogDataAction","AdsTargetingBootloadDialog.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingIosSignalLossSelectors","AdsTargetingOffsiteSignalsConsolidationUtils","AssetLibrarySearchStore.brands","AudienceDetailsPaneGeodesicContainer.react","AudienceManagerAudienceTable.react","AudienceManagerBulkDeleteDialog.react","AudienceManagerBulkDeleteSTSDialog.react","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerDeleteDialog.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerHeader.react","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerLookalikeDialogGKSelectors","AudienceManagerOptOutDialog.react","AudienceManagerPlacement","AudienceManagerStages","AudienceManagerToolsBar.react","AudienceManagerTransactionDialog.react","AudienceManagerUIConstants","AudienceManagerUnsubscribeStepperModal.react","AudienceSharingHideAgreementDataAction","BUICard.react","BUISection.react","BUIText.react","BootloadedComponent.react","BrandingUtils","CometPlaceholder.react","CustomAudienceTosUtils","CustomAudienceUtils","FlexLayout.react","GeoAppShell.react","GeoCard.react","GeoFlexbox.react","GeoNextAMUtils","GeoSection.react","GeoSpinner.react","GeoToast.react","JSResource","MarketingMessagesAudienceEditSubscriberListUpdateFalcoEvent","PartnerIntegrationDialogLoggingScopesAction","SUIBusinessThemeContainer.react","ShareAudienceConstants","URI","UnifiedAudiencesManagerAudienceDetailPaneAction","XAdsAccountQualityControllerRouteBuilder","adsCreateSelector","adsMessageMarketingWABASelector","adsSignalSourceContainersSelector","cr:9922","geoMargin","immutable","isSubscriberListAudience","joinClasses","lazyLoadComponent","performanceNow","react","stylex","useGeoTheme","vulture"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l,m,n,o=n||(n=d("react"));a=n.PureComponent;var p=d("GeoNextAMUtils").isGeoNextEnabled(),q=c("AdsPixelTableSettingProvider").toFluxStore(),r=c("lazyLoadComponent")(c("JSResource")("AdsOsmipProactivePromptWithAnchor.react").__setRef("AudienceManagerChrome.react")),s=(e=b("cr:9922"))!=null?e:c("adsCreateSelector")([],function(){return null},{name:f.id}),t=42,u=720,v=112,w=c("AdsSideNavUIStateDataProvider").toFluxStore();h=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
-----
SellerInsightsTaggedContentContainer.react",["CommerceManagerContext","CommerceManagerHooks","GeoPageCard.react","GeoSection.react","SellerInsightsAttributionSortingDirection","SellerInsightsAttributionSortingKey","SellerInsightsCutoffDateBanner","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsSearchParamsUtils","SellerInsightsTaggedContentBanners.react","SellerInsightsTaggedContentContainerQuery.graphql","SellerInsightsTaggedContentContext","SellerInsightsTaggedContentFilterUtils","SellerInsightsTaggedContentHeader.react","SellerInsightsTaggedContentLoggingUtils","SellerInsightsTaggedContentSubtabContainer.react","SellerInsightsTaggedContentTabEnum","geoMargin","getGraphQLEnumSafe","immutable","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useState,m=h!==void 0?h:h=b("SellerInsightsTaggedContentContainerQuery.graphql");function n(){var a,b,e;d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");var f=k(c("CommerceManagerContext"));f=f.cmsID;var g=d("SellerInsightsTaggedContentLoggingUtils").useLogger(),h=l(d("SellerInsightsTaggedContentFilterUtils").DEFAULT_TAGGED_CONTENT_FILTERS),i=h[0];h=h[1];var n=l(d("immutable").List([])),o=n[0];n=n[1];var p=l(!1),q=p[0];p=p[1];f=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(f=f)!=null?f:"0"});f=f.account;a=(a=f==null?void 0:(a=f.features)==null?void 0:a.isTaggedContentExtendedMetricsEnabled)!=null?a:!1;b=(b=f==null?void 0:(b=f.sellerAttributionInsights)==null?void 0:b.min_effective_date)!=null?b:0;e=(e=f==null?void 0:(e=f.sellerAttributionInsights)==null?void 0:e.attributed_media_formats_cutoff_date)!=null?e:0;f=(f=f==null?void 0:(f=f.sellerAttributionInsights)==null?void 0:f.metadata_breakdown_cutoff_date)!=null?f:0;var r=l(null),s=r[0];r=r[1];var t=l(!1),u=t[0];t=t[1];var v=d("SellerInsightsSearchParamsUtils").useSortKeySearchParam("CONTENT_VIEW",function(a){return a},function(a){return c("getGraphQLEnumSafe")(c("SellerInsightsAttributionSortingKey"),a)}),w=v[0];v=v[1];var x=d("SellerInsightsSearchParamsUtils").useSortDirectionSearchParam("DESCENDING",function(a){return a},function(a){return c("getGraphQLEnumSafe")(c("SellerInsightsAttributionSortingDirection"),a)}),y=x[0];x=x[1];var z=d("SellerInsightsSearchParamsUtils").useSubsectionSearchParam(c("SellerInsightsTaggedContentTabEnum").Review,function(a){return a},function(a){return c("SellerInsightsTaggedContentTabEnum").cast(a)}),A=z[0];z=z[1];g.logMarkerPointsStart(A,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS);return j.jsx(c("SellerInsightsTaggedContentContext").Provider,{value:{enhancementsCutoffDate:e,filters:i,forceFilterEmptyState:u,isReviewTableFromTopK:q,isTaggedContentExtendedMetricsEnabled:a,localFilters:o,selectedItem:s,setFilters:h,setForceFilterEmptyState:t,setIsReviewTableFromTopK:p,setLocalFilters:n,setSelectedItem:r,setSortingDirection:x,setSortingKey:v,setSubtab:z,sortAndSearchCutoffDate:f,sortingDirection:y,sortingKey:w,subtab:A,wave3CutoffDate:b},children:j.jsxs(c("GeoSection.react"),{children:[j.jsx(c("SellerInsightsCutoffDateBanner"),{cutoffDate:b,xstyle:c("geoMargin").bottom16}),j.jsx(d("SellerInsightsTaggedContentBanners.react").SellerInsightsTaggedContentBanners,{}),j.jsx(c("SellerInsightsTaggedContentHeader.react"),{}),j.jsx(c("SellerInsightsTaggedContentSubtabContainer.react"),{})]})})}n.displayName=n.name+" [from "+f.id+"]";function a(){return j.jsx(c("GeoPageCard.react"),{columns:12,"data-testid":void 0,children:j.jsx(n,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsEntryPointsContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoCard.react","GeoPageCard.react","GeoSection.react","SellerInsightsContext","SellerInsightsCutoffDateBanner","SellerInsightsEntryPointsBarChart.react","SellerInsightsEntryPointsBarChartGlimmer.react","SellerInsightsEntryPointsContainerQuery.graphql","SellerInsightsEntryPointsContext.react","SellerInsightsEntryPointsLoggingUtils","SellerInsightsEntryPointsTable.react","SellerInsightsEntryPointsTableGlimmer.react","SellerInsightsExitTabActionEnum","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsLoggingWrapper","SellerInsightsQPLLoggingHooks","SellerInsightsSearchParamsUtils","XFBCommerceInsightsSortingDirection.facebook","XFBCommerceInsightsSortingKey.facebook","react","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsEntryPointsContainerQuery.graphql"),n=["SESSIONS","VISITORS","NEW_VISITORS","RETURNING_VISITORS","SESSIONS_PER_VISITOR","BOUNCE_RATE"],o=["VISITORS","NEW_VISITORS","RETURNING_VISITORS","SESSIONS"];function p(){var a=k(c("CommerceManagerContext")),b=a.cmsID;a=k(c("SellerInsightsContext"));var e=a.channels,f=a.igChannelIDs,g=a.fbChannelIDs;function h(){if(document.visibilityState==="visible")d("SellerInsightsLoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsLoggingUtils").handleActiveTabEventSuccess("entry_points",(a=b)!=null?a:"0",e,f,g,c("SellerInsightsExitTabActionEnum").TAB_CHANGE)}}l(function(){d("SellerInsightsLoggingUtils").handleActiveTabEventStart();document.addEventListener("visibilitychange",h);return function(){document.removeEventListener("visibilitychange",h)}});var i=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerCallback(d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);return function(a){a=Array.from(a.entries()).every(function(a){a=a[1];return a});a&&(d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,"entry_points"),d("SellerInsightsLoggingUtils").scenarioSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,{}));i(!a);a||d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})}}function q(){return j.jsx(c("GeoCard.react"),{children:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoBaseSpacingLayout.react"),{align:null,context:"container",direction:"vertical",relation:"section",children:[j.jsx(c("SellerInsightsEntryPointsBarChartGlimmer.react"),{}),j.jsx(c("SellerInsightsEntryPointsTableGlimmer.react"),{metrics:n})]})})})}q.displayName=q.name+" [from "+f.id+"]";function r(){var a=k(c("CommerceManagerContext"));a=a.cmsID;var b=k(c("SellerInsightsEntryPointsContext.react")),e=b.entryPointSortingDirection;b=b.entryPointSortingKey;var f=k(c("SellerInsightsContext")),g=f.channels;f=f.dateRange;f=f.getDateInterval();var h=f.start;f=f.end;a=d("CommerceManagerHooks").useCommerceManagerQuery(m,{channels:g,cmsIDs:[(g=a)!=null?g:"0"],endDate:f.toISOString(),metrics:n,metricsWithTotal:o,sortingDirection:e,sortingKey:b,startDate:h.toISOString()});g=p();return j.jsx(d("SellerInsightsLoggingWrapper").SellerInsightsLoggingWrapper,{components:d("SellerInsightsEntryPointsLoggingUtils").ENTRY_POINTS_COMPONENTS_TO_LOG,onAllComponentsLoaded:g,children:j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoBaseSpacingLayout.react"),{align:null,context:"container",direction:"vertical",relation:"section",children:[j.jsx(c("SellerInsightsCutoffDateBanner"),{cutoffDate:0}),j.jsx(c("SellerInsightsEntryPointsBarChart.react"),{topSources:a}),j.jsx(c("SellerInsightsEntryPointsTable.react"),{fragmentRef:a,metrics:n,metricsWithTotals:o})]})})})}r.displayName=r.name+" [from "+f.id+"]";function s(){d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,"entry_points");return j.jsx(c("GeoCard.react"),{children:j.jsx(r,{})})}s.displayName=s.name+" [from "+f.id+"]";function a(){d("SellerInsightsQPLLoggingHooks").useLoggingForContainer("entry_points");var a=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense(),b=d("SellerInsightsSearchParamsUtils").useSortKeySearchParam("SESSIONS",function(a){return a},function(a){return c("XFBCommerceInsightsSortingKey.facebook").cast(a)}),e=b[0];b=b[1];var f=d("SellerInsightsSearchParamsUtils").useSortDirectionSearchParam("DESCENDING",function(a){return a},function(a){return c("XFBCommerceInsightsSortingDirection.facebook").cast(a)}),g=f[0];f=f[1];return j.jsx(c("GeoPageCard.react"),{columns:12,"data-testid":void 0,children:j.jsx(c("SellerInsightsEntryPointsContext.react").Provider,{value:{entryPointSortingDirection:g,entryPointSortingKey:e,setEntryPointSortingDirection:f,setEntryPointSortingKey:b},children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(q,{}),oncall:"commerce_platform_insights",onHandleError:function(b,c){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,{ErrorMessage:b.message,ErrorName:b.name}),a(b)},children:j.jsx(s,{})})})})}a.displayName=a.name+" [from "+f.id+"]";e=d("withSellerFunnelLogging").withSellerFunnelLogging(a,{step:"insights_awareness"});g["default"]=e}),98);
-----
SellerInsightsPerfContainer.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoHeading.react","GeoPageCard.react","GeoSection.react","GeoSpinner.react","GeoTab.react","GeoTabGroup.react","GeoToolbar.react","Locale","RelayHooks","SellerInsightsCardHeader.react","SellerInsightsConstants","SellerInsightsContext","SellerInsightsCutoffDateBanner","SellerInsightsEmptyContainer.react","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsFunnelContainer.react","SellerInsightsFunnelContainerGlimmer.react","SellerInsightsGranularityUtils","SellerInsightsGraphGranularitySelector.react","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsPerfContainerQuery.graphql","SellerInsightsPerfContainerUnifiedQuery.graphql","SellerInsightsPerfContainer_ChanneledTimeline.graphql","SellerInsightsPerfContainer_PrevTimeline.graphql","SellerInsightsPerfContext","SellerInsightsPerfExportButton.react","SellerInsightsPerfMetricGrid.react","SellerInsightsPerfSessionBehaviorContainer.react","SellerInsightsPerfTabEnum","SellerInsightsPerfUtils","SellerInsightsPerfUtils.react","SellerInsightsQPLLoggingHooks","SellerInsightsSearchParamsUtils","SellerInsightsSegmentationSelector.react","SellerInsightsShopSelector.react","SellerInsightsUnifiedGraphQLUtils","SellerInsightsWhatsNew","SellerInsightsWhatsNewFeatures","filterNulls","geoMargin","qpl","react","useEffectOnce","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useCallback,o=e.useContext,p=e.useEffect,q=e.useMemo,r=e.useState,s=h!==void 0?h:h=b("SellerInsightsPerfContainerQuery.graphql"),t=i!==void 0?i:i=b("SellerInsightsPerfContainerUnifiedQuery.graphql"),u=j!==void 0?j:j=b("SellerInsightsPerfContainer_PrevTimeline.graphql"),v=k!==void 0?k:k=b("SellerInsightsPerfContainer_ChanneledTimeline.graphql"),w={error:{alignItems:"x6s0dn4",boxSizing:"x9f619",justifyContent:"xl56j7k",$$css:!0}};function x(a){switch(a){case c("SellerInsightsPerfTabEnum").Behavior:return d("SellerInsightsFbts").PERF_BEHAVIOR_SUBTAB_LABEL;case c("SellerInsightsPerfTabEnum").Sales:return d("SellerInsightsFbts").PERF_SALES_SUBTAB_LABEL;case c("SellerInsightsPerfTabEnum").Traffic:return d("SellerInsightsFbts").PERF_TRAFFIC_SUBTAB_LABEL;case c("SellerInsightsPerfTabEnum").Funnel:return d("SellerInsightsFbts").PERF_FUNNEL_SUBTAB_LABEL}}function y(a){switch(a){case c("SellerInsightsPerfTabEnum").Behavior:return"insights_performance_behavior";case c("SellerInsightsPerfTabEnum").Sales:return"insights_performance_sales";case c("SellerInsightsPerfTabEnum").Traffic:return"insights_performance_traffic";case c("SellerInsightsPerfTabEnum").Funnel:return"insights_performance_funnel"}}function z(a){var b=a.tab,e=a.granularity;a=a.metricConfigs;var f=a.every(function(a){return a.value!=null&&a.currentValue===0});return m.jsx(d("withSellerFunnelLogging").SellerFunnelLogging,{step:y(b),children:f?m.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.ACCOUNT_OVERVIEW_EMPTY_STATE}):m.jsx(c("SellerInsightsPerfMetricGrid.react"),{granularity:e,metricConfigs:a,tab:b})})}z.displayName=z.name+" [from "+f.id+"]";function A(a){var b,e=a.currency,f=a.granularity;a=a.tab;var g=o(c("CommerceManagerContext"));g=g.cmsID;var h=o(c("SellerInsightsContext")),i=h.channels;h=h.dateRange;var j=o(c("SellerInsightsPerfContext")),k=j.shopID;j=j.selectedAudienceSegmentFilter;k=Number(k===""?0:k);var l=h.getDateInterval(),n=l.start;l=l.end;b=(b=h.getCompareDateInterval())!=null?b:h.getPrevDateInterval();h=b.start;b=b.end;var p=o(c("CommerceManagerComponentGatingContext")),q=p.checkoutStyle;p.paymentProvider;p=d("SellerInsightsPerfUtils").getMetrics(q,a,null,k!==0);q=p.filter(function(a){return d("SellerInsightsPerfUtils").toCommerceInsightsMetric(a)!=null});p=c("filterNulls")(q.map(function(a){return d("SellerInsightsPerfUtils").toCommerceInsightsMetric(a)}));var r=i.length>1;r=!r||k!==0;var s=!r&&k===0;p=d("Locale").isRTL()?[].concat(p).reverse():p;g=d("CommerceManagerHooks").useCommerceManagerQuery(t,{accountID:(g=g)!=null?g:"0",audienceSegmentFilter:j,channels:i,endDate:l.toISOString(),granularity:d("SellerInsightsUnifiedGraphQLUtils").getCommerceInsightsBreakdownFromGranularity(f),includePerChannelTimeline:s,includePoPTimeline:r,metrics:p,prevEndDate:b.toISOString(),prevStartDate:h.toISOString(),shopID:k,startDate:n.toISOString()});var w=d("SellerInsightsUnifiedGraphQLUtils").useUnifiedTimelineValues(g,{includeCurrentValue:!0,includeDataPoints:!0,includePreviousValue:!0});j=d("RelayHooks").useFragment(u,r?g:null);i=d("RelayHooks").useFragment(v,s?g:null);var x=d("SellerInsightsUnifiedGraphQLUtils").useEffectiveDateForMetrics(g),y=d("SellerInsightsUnifiedGraphQLUtils").useMetricsChartData(j==null?void 0:j.prevTimeline),A=d("SellerInsightsUnifiedGraphQLUtils").useMetricsChartData(i==null?void 0:i.fbTimeline),B=d("SellerInsightsUnifiedGraphQLUtils").useMetricsChartData(i==null?void 0:i.igTimeline);l=g==null||w.metricsChartData==null||w.currentValues==null;d("SellerInsightsPerfUtils.react").useLogScenarioEnd(l,a);p=c("filterNulls")(q.map(function(a){return d("SellerInsightsPerfUtils").getMetricConfigForTimelineValues(w,y,A,B,a,e,d("SellerInsightsPerfUtils").getEffectiveDateFromLegacyMetric(a,x))}));return m.jsx(z,{granularity:f,metricConfigs:p,tab:a})}A.displayName=A.name+" [from "+f.id+"]";function B(){return m.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error,xstyle:w.error})}B.displayName=B.name+" [from "+f.id+"]";function a(){var a,b,e,f=o(c("CommerceManagerContext")),g=f.cmsID;f=o(c("SellerInsightsContext"));var h=f.channels,i=f.igChannelIDs,j=f.fbChannelIDs,k=f.igChannelCount,l=f.fbChannelCount,t=f.dateRange;f=f.shops;var u=t.getTimeInterval().getStartDateTime(),v=t.getDefaultGranularity(),w=d("SellerInsightsWhatsNew").useWhatsNew(),y=n(function(a){a!=null&&w(d("SellerInsightsWhatsNewFeatures").SellerInsightsFeature.FunnelTab,{current:a})},[w]),z=d("SellerInsightsGranularityUtils").GranularitySelectorOption.Default,C=r(z),D=C[0],E=C[1];C=d("SellerInsightsSearchParamsUtils").useAudienceSegmentationSearchParam(null);var F=C[0],G=C[1];C=o(c("CommerceManagerComponentGatingContext"));var H=C.checkoutStyle;C.paymentProvider;C=d("CommerceManagerHooks").useCommerceManagerQuery(s,{cmsID:(C=g)!=null?C:"0"});C=C.account;var I=q(function(){var a;switch(H){case"CONTACT_MERCHANT":case"OFFSITE":case"OFFSITE_IAB_CHECKOUT":a=[c("SellerInsightsPerfTabEnum").Funnel,c("SellerInsightsPerfTabEnum").Behavior,c("SellerInsightsPerfTabEnum").Traffic];break;case"ONSITE":a=[c("SellerInsightsPerfTabEnum").Funnel,c("SellerInsightsPerfTabEnum").Sales,c("SellerInsightsPerfTabEnum").Behavior,c("SellerInsightsPerfTabEnum").Traffic];break;default:H,a=[]}return a},[H]);a=(a=I[0])!=null?a:c("SellerInsightsPerfTabEnum").Behavior;a=d("SellerInsightsSearchParamsUtils").useSubsectionSearchParam(a,function(a){return a},function(a){return c("SellerInsightsPerfTabEnum").cast(a)});var J=a[0],K=a[1],L=(a=I.find(function(a){return a===J}))!=null?a:I[0];d("SellerInsightsQPLLoggingHooks").useLoggingForContainer("perf");c("useEffectOnce")(function(){L!=null&&L!==J&&K(L)});a=n(function(a){var b;d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7086483,"270"),{AccountID:(b=g)!=null?b:0,Channels:h.join(" and "),FBChannelIDs:j,Granularity:a,IGChannelIDs:i,PreviousGranularity:D,Section:"perf",Tab:L});E(a)},[h,g,j,D,i,L]);b=(b=C==null?void 0:(b=C.seller_product_insights)==null?void 0:b.shop_selector_lifetime)!=null?b:0;var M=u.getUnixTimestampSeconds()0&&l>0;k=L===c("SellerInsightsPerfTabEnum").Sales&&(!a||h.length>1)&&f.length>1;l=k?m.jsx(c("SellerInsightsShopSelector.react"),{isDisabled:M}):null;d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,L);a=H==="ONSITE"&&!N?m.jsx(c("SellerInsightsCutoffDateBanner"),{cutoffDate:Q,headerTextOverride:d("SellerInsightsFbts").AUDIENCE_SEGMENTATION_CUTOFF_BANNER_HEADER,skipCutoffDateRestraint:!0,textOverride:d("SellerInsightsFbts").AUDIENCE_SEGMENTATION_CUTOFF_BANNER_DESCRIPTION(Q),xstyle:c("geoMargin").bottom16}):null;f=k&&M?m.jsx(c("SellerInsightsCutoffDateBanner"),{cutoffDate:b,headerTextOverride:d("SellerInsightsFbts").SHOP_SELECTOR_CUTOFF_BANNER_HEADER,skipCutoffDateRestraint:!0,textOverride:d("SellerInsightsFbts").SHOP_SELECTOR_CUTOFF_BANNER_DESCRIPTION(b),xstyle:c("geoMargin").bottom16}):null;N=t!=null?t:L===c("SellerInsightsPerfTabEnum").Funnel?m.jsx(c("SellerInsightsFunnelContainer.react"),{}):m.jsx(A,{currency:C==null?void 0:C.currency,granularity:d("SellerInsightsGranularityUtils").getGranularityFromSelectorValue(z,v),tab:L});return m.jsx(c("SellerInsightsPerfContext").Provider,{value:{highIntentShopperEffectiveDate:e,onShopChange:P,perfTab:J,selectedAudienceSegmentFilter:F,setPerfTab:K,shopID:O},children:m.jsx(c("GeoPageCard.react"),{columns:12,"data-testid":void 0,header:m.jsx(d("withSellerFunnelLogging").SellerFunnelLogging,{step:"insights_performance_context_selection",children:m.jsxs(c("SellerInsightsCardHeader.react"),{xstyle:c("geoMargin").bottom16,children:[a,f,m.jsxs("div",{className:"x78zum5 x1qughib",children:[m.jsx(c("GeoTabGroup.react"),{value:L,onChange:K,children:I.map(function(a){return a===c("SellerInsightsPerfTabEnum").Funnel&&L===c("SellerInsightsPerfTabEnum").Funnel?m.jsx(c("GeoTab.react"),{containerRef:y,label:x(a),value:a},a):m.jsx(c("GeoTab.react"),{label:x(a),value:a},a)})}),m.jsxs(c("GeoToolbar.react"),{children:[l,S,T,L!==c("SellerInsightsPerfTabEnum").Funnel?m.jsx(c("SellerInsightsPerfExportButton.react"),{metrics:d("SellerInsightsPerfUtils").getMetrics(H,null,I)}):null]})]})]})}),children:m.jsx(c("CommerceManagerSuspense.react"),{errorComponent:B,loadingComponent:L===c("SellerInsightsPerfTabEnum").Funnel?m.jsx(c("SellerInsightsFunnelContainerGlimmer.react"),{}):m.jsx(c("GeoSpinner.react"),{center:!0}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})},children:m.jsxs(c("GeoSection.react"),{children:[R?m.jsxs(m.Fragment,{children:[m.jsx(c("SellerInsightsPerfSessionBehaviorContainer.react"),{granularity:d("SellerInsightsGranularityUtils").getGranularityFromSelectorValue(D,v)}),m.jsx(c("GeoHeading.react"),{level:2,xstyle:c("geoMargin").top16,children:d("SellerInsightsFbts").PERF_ALL_ACTIONS_LABEL})]}):null,N]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsPerfLineChart.next.react",["fbt","CommerceManagerContext","GeoChartApproximation","GeoChartAxis.react","GeoChartLegend.react","GeoChartSeriesDefaultTooltip.react","GeoFlexbox.react","GeoLineChart.react","GeoPrivateChartPaletteContext","LocalDate","LocalDateTime","SellerInsightsChartUtils","SellerInsightsChartUtils.next","SellerInsightsContext","SellerInsightsDateConstants","SellerInsightsDateUtils","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricUtils","SellerInsightsPerfContext","SellerInsightsPerfLineChartHeader.react","SellerInsightsPerfUtils.react","intlList","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useContext;function l(a,b){return(a=a==null?void 0:a.map(function(a){var c=a.amount;a=a.time;return{amount:a>=b?(c=c)!=null?c:null:null,time:a}}))!=null?a:[]}function m(a){return(a=a==null?void 0:a.map(function(a){return[a.time,(a=a.amount)!=null?a:null]}))!=null?a:[]}function n(a,b,e,f){var g=[d("SellerInsightsFbts").DATE_AXIS_LABEL,""];if(b===d("SellerInsightsPerfUtils.react").PerfChartType.ChannelComparison){b=a.chartData;var i=a.fbChartData,j=a.igChartData,k=a.effectiveDate;b=[{labels:g,name:c("intlList")([h._("Facebook"),h._("Instagram")],"AND"),value:m(l(b,k))},{labels:g,name:h._("Facebook"),value:m(l(i,k))},{labels:g,name:h._("Instagram"),value:m(l(j,k))}]}else if(f){i=a.chartData;j=a.effectiveDate;b=[{labels:g,name:a.title,value:m(l(i,j))}]}else{k=a.chartData;f=a.prevChartData;i=l(f,a.effectiveDate);j=l(k,a.effectiveDate);var n=p(e);k=(f=i==null?void 0:i.map(function(a){return d("SellerInsightsChartUtils").shiftChartDataTime(a,n)}))!=null?f:[];a=[].concat(j);i=k;j.length>k.length?i=o(a,k):k.length>j.length&&(a=o(k,a));b=[{labels:g,name:d("SellerInsightsDateUtils").formatCompareDateRange(e),value:m(i)},{labels:g,name:d("SellerInsightsDateUtils").formatDateRange(e),value:m(a)}]}return b}function o(a,b){var c=b;for(b=b.length;b
-----
SellerInsightsFunnelContainer.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoHStack.react","GeoHeading.react","GeoText.react","GeoVStack.react","SellerInsightsConstants","SellerInsightsContext","SellerInsightsEmptyContainer.react","SellerInsightsEntryPointsTableUtils","SellerInsightsFbts","SellerInsightsFunnelBarChart.react","SellerInsightsFunnelCardGlimmer.react","SellerInsightsFunnelContainerQuery.graphql","SellerInsightsFunnelUtils","SellerInsightsHighCheckoutsLowPurchasesUpsellCard.react","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsPerfContext","SellerInsightsPerfTabEnum","SellerInsightsPerfUtils.react","SellerInsightsTaggedContentCard.react","SellerInsightsTopProductsByAddsToCartCardUpsellCard.react","SellerInsightsTopProductsCard.react","SellerInsightsTopSellingProductsCard.react","SellerInsightsTopSellingProductsUpsellCard.react","SellerInsightsTopSourcesCard.react","SellerInsightsVisitorsByDayCard.react","qpl","react","useCommerceManagerRouter","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=h!==void 0?h:h=b("SellerInsightsFunnelContainerQuery.graphql"),n={disclaimer:{marginBottom:"x1e56ztr",$$css:!0},funnel:{height:"xu3xrit",marginBottom:"x1e56ztr",$$css:!0},funnelCard:{flexBasis:"x1xq6q5s",flexGrow:"x1iyjqo2",height:"x1g4ss9u",$$css:!0},shortFunnel:{width:"xinu3np",$$css:!0}};function o(a){return(a=a==null?void 0:(a=a.insights_metrics)==null?void 0:a.metric_funnel_dropoff_results.map(function(a){return a.count==null||a.metric==null?null:{count:a.count,dropoffRate:a.dropoff_rate,metric:a.metric,retentionRate:a.retention_rate}}).filter(Boolean))!=null?a:[]}var p="Checkout Upgrade Upsell";function q(a){var b=a.upgradeToOnsiteURI;a=l(c("CommerceManagerContext"));var e=a.cmsID;a=l(c("SellerInsightsContext"));var f=a.fbChannelIDs,g=a.igChannelIDs,h=a.channels,i=c("useCommerceManagerRouter")();a=k(function(){var a;d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7087539,"650"),{AccountID:(a=e)!=null?a:0,Channels:h.join(" and "),FBChannelIDs:f,FunnelCardType:p,IGChannelIDs:g,URI:(a=b)!=null?a:""});i.navigateInNewWindow(b)},[h,e,i,f,g,b]);return j.jsxs(c("GeoHStack.react"),{context:"container",relation:"unrelated",children:[j.jsx(c("SellerInsightsTopProductsByAddsToCartCardUpsellCard.react"),{xstyle:n.funnelCard}),j.jsx(c("SellerInsightsHighCheckoutsLowPurchasesUpsellCard.react"),{overlay:d("SellerInsightsFunnelUtils").UpsellCardOverlay.CTA,xstyle:n.funnelCard,onCTAClick:a}),j.jsx(c("SellerInsightsTopSellingProductsUpsellCard.react"),{xstyle:n.funnelCard})]})}q.displayName=q.name+" [from "+f.id+"]";function a(){var a,b=l(c("CommerceManagerContext"));b=b.cmsID;var e=l(c("SellerInsightsContext")),f=e.channels,g=e.dateRange,h=e.attributionCheckoutStyle;e=e.attributionContentType;var i=l(c("CommerceManagerComponentGatingContext"));i=i.checkoutStyle;var k=l(c("SellerInsightsPerfContext"));k=k.selectedAudienceSegmentFilter;g=g.getDateInterval();var p=g.start;g=g.end;var r=(a=d("SellerInsightsFunnelUtils")).getMetrics(i),s=["SESSION"],t=a.getProductCardRequestParams(a.FunnelCardType.HighCheckouts),u=t.sortDirection,v=t.sortKey;t=t.filteringForGraphQL;var w=a.getProductCardRequestParams(a.FunnelCardType.ProductsByAddsToCart),x=w.sortDirection;w=w.sortKey;a=a.getProductCardRequestParams(a.FunnelCardType.ProductsBySales);var y=a.sortDirection;a=a.sortKey;var z=["SESSION"];e=d("CommerceManagerHooks").useCommerceManagerQuery(m,{attributionCheckoutStyle:h,attributionContentType:e,attributionFilters:{content_channels:f},attributionMetrics:["VISITOR"],attributionSortingDirection:"DESCENDING",attributionSortingKey:"VISITOR",audienceSegmentFilter:k,channels:f,cmsID:(h=b)!=null?h:"",endDate:g.toISOString(),excludeUncategorized:!0,first:d("SellerInsightsFunnelUtils").PRODUCT_GROUP_COUNT,funnelMetrics:r,granularity:"DAY",highCheckoutsLowPurchasesFilteringData:t,highCheckoutsLowPurchasesSortingDirection:u,highCheckoutsLowPurchasesSortingKey:v,startDate:p.toISOString(),timelineMetrics:s,topAddedToCartProductInsightSortingDirection:x,topAddedToCartProductInsightSortingKey:w,topSellingProductInsightSortingDirection:y,topSellingProductInsightSortingKey:a,topSourcesCount:d("SellerInsightsEntryPointsTableUtils").TOP_SOURCES_COUNT,topSourcesMetric:d("SellerInsightsEntryPointsTableUtils").TOP_SOURCES_METRIC,topSourcesPerfMetric:z});f=e==null?void 0:e.account;d("SellerInsightsPerfUtils.react").useLogScenarioEnd(f==null,c("SellerInsightsPerfTabEnum").Funnel,d("SellerInsightsLoggingConstants").ERROR_NULL_RELAY_RESPONSE);b=o(f==null?void 0:f.funnelGraphData);h=b.every(function(a){return a.count===0});if(h)return j.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.NO_FUNNEL_INSIGHTS});g=i==="ONSITE"?j.jsx(c("GeoHStack.react"),{context:"container",relation:"unrelated",children:j.jsxs(c("CommerceManagerSuspense.react"),{loadingComponent:j.jsx(j.Fragment,{children:Array.from({length:3}).map(function(a,b){return j.jsx(c("SellerInsightsFunnelCardGlimmer.react"),{index:1,xstyle:n.funnelCard},b)})}),oncall:"commerce_platform_insights",children:[j.jsx(c("SellerInsightsTopProductsCard.react"),{primaryMetric:"ADD_TO_CART",rawData:f==null?void 0:f.topAddedToCartProducts,xstyle:n.funnelCard}),j.jsx(c("SellerInsightsTopProductsCard.react"),{primaryMetric:"TOTAL_ORDERS",rawData:f==null?void 0:f.highCheckoutsLowPurchases,secondaryMetric:"CHECKOUTS_INITIATED",xstyle:n.funnelCard}),j.jsx(c("SellerInsightsTopSellingProductsCard.react"),{fragmentRef:f,xstyle:n.funnelCard})]})}):null;r=g==null&&(f==null?void 0:f.upgradeToOnsiteURI)!=null?j.jsx(q,{upgradeToOnsiteURI:f==null?void 0:f.upgradeToOnsiteURI}):null;t=j.jsx(c("GeoHStack.react"),{context:"container",relation:"unrelated",children:j.jsxs(c("CommerceManagerSuspense.react"),{loadingComponent:j.jsx(j.Fragment,{children:Array.from({length:3}).map(function(a,b){return j.jsx(c("SellerInsightsFunnelCardGlimmer.react"),{index:2,xstyle:n.funnelCard},b)})}),oncall:"commerce_platform_insights",children:[j.jsx(c("SellerInsightsTaggedContentCard.react"),{fragmentKey:f,xstyle:n.funnelCard}),j.jsx(c("SellerInsightsTopSourcesCard.react"),{rawData:f,xstyle:n.funnelCard}),j.jsx(c("SellerInsightsVisitorsByDayCard.react"),{rawData:f==null?void 0:f.averageVisitorsByDay,xstyle:n.funnelCard})]})});return j.jsxs(j.Fragment,{children:[j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoText.react"),{xstyle:n.disclaimer,children:d("SellerInsightsFbts").FUNNEL_DISCLAIMER}),j.jsx(c("SellerInsightsFunnelBarChart.react"),{data:b,isNormalized:!0,xstyle:[n.funnel,i!=="ONSITE"&&n.shortFunnel]})]}),j.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",children:[j.jsx(c("GeoHeading.react"),{level:3,children:d("SellerInsightsFbts").FUNNEL_CARD_SECTION_HEADER}),g,k==null?j.jsxs(j.Fragment,{children:[t,r]}):null]})]})}a.displayName=a.name+" [from "+f.id+"]";e=d("withSellerFunnelLogging").withSellerFunnelLogging(a,{step:"insights_performance_funnel"});g["default"]=e}),98);
-----
SellerInsightsTopSellingProductsCard.react",["CommerceManagerContext","GeoBaseText.react","GeoDataText.react","GeoFlexbox.react","GeoHStack.react","GeoSpinner.react","GeoVStack.react","RelayHooks","SFLUtilityMethods","SellerInsightsContext","SellerInsightsFbts","SellerInsightsFunnelCard.react","SellerInsightsFunnelProductCardItem.react","SellerInsightsFunnelUtils","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsNumberUtils","SellerInsightsPerfContext","SellerInsightsPerfTabEnum","SellerInsightsPerfUtils.react","SellerInsightsProductGroupUtils","SellerInsightsProductSortDirectionSelector.react","SellerInsightsTopSellingProductsCard_insights.graphql","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useState,o=e.useTransition,p={cardBody:{height:"x5yr21d",$$css:!0}},q=h!==void 0?h:h=b("SellerInsightsTopSellingProductsCard_insights.graphql");function r(a){return{productGroups:(a=a==null?void 0:(a=a.seller_product_insights)==null?void 0:(a=a.product_group_insights)==null?void 0:(a=a.query)==null?void 0:(a=a.edges)==null?void 0:a.map(function(a){var b,c,e,f,g;b=a==null?void 0:(b=a.node)==null?void 0:(b=b.data)==null?void 0:(b=b.product_items[0])==null?void 0:(b=b.current)==null?void 0:(b=b.product)==null?void 0:(b=b.main_image)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri;c=a==null?void 0:(c=a.node)==null?void 0:(c=c.data)==null?void 0:(c=c.product_items)==null?void 0:c.map(function(a){a=a==null?void 0:(a=a.current)==null?void 0:(a=a.product)==null?void 0:a.listing_price;return{amount:a==null?void 0:a.amount,formattedAmount:a==null?void 0:a.formatted_amount}});a=a==null?void 0:(a=a.node)==null?void 0:(a=a.data)==null?void 0:a.current;e={format:"COUNT",name:d("SellerInsightsMetricDefinitions").getPerformanceMetricName("TOTAL_ORDERS"),value:(e=a==null?void 0:a.purchase_count)!=null?e:0};f={format:"COUNT",name:d("SellerInsightsMetricDefinitions").getPerformanceMetricName("CHECKOUTS_INITIATED"),value:(f=a==null?void 0:a.checkouts_initiated_count)!=null?f:0};return(a==null?void 0:(g=a.product_group)==null?void 0:g.name)==null?null:{imageURI:b,name:a==null?void 0:(g=a.product_group)==null?void 0:g.name,priceRange:d("SellerInsightsProductGroupUtils").getPriceRange((b=c)!=null?b:[]),primaryMetric:e,secondaryMetric:f}}).filter(Boolean))!=null?a:[]}}function s(a){a=a.productGroups;a=a.reduce(function(a,b){return a+b.primaryMetric.value},0);var b=d("SellerInsightsMetricDefinitions").getPerformanceMetricName("TOTAL_ORDERS");return j.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[j.jsx(c("GeoDataText.react"),{children:d("SellerInsightsNumberUtils").formatCount(a)}),j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:b})]})}s.displayName=s.name+" [from "+f.id+"]";function a(a){var b=a.fragmentRef;a=a.xstyle;var e=d("SellerInsightsFunnelUtils").getProductCardRequestParams(d("SellerInsightsFunnelUtils").FunnelCardType.ProductsBySales),f=e.sortDirection,g=e.sortKey;e=n(f);var h=e[0],i=e[1];f=l(c("CommerceManagerContext"));var t=f.cmsID;e=l(c("SellerInsightsPerfContext"));var u=e.selectedAudienceSegmentFilter;f=l(c("SellerInsightsContext"));var v=f.channels;e=f.dateRange;var w=f.fbChannelIDs,x=f.igChannelIDs;f=e.getDateInterval();var y=f.start,z=f.end;f=d("RelayHooks").useRefetchableFragment(q,b);b=f[0];var A=f[1];f=r(b);var B=o(),C=B[0],D=B[1];B=h==="DESCENDING"?d("SellerInsightsFbts").TOP_SELLING_PRODUCTS_CARD_HEADER:d("SellerInsightsFbts").LOWEST_SELLING_PRODUCTS_CARD_HEADER;d("SellerInsightsLoggingUtils").scenarioAnnotate(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{IsUsingSaberFullProductQuery:!0});var E=k(function(a){var b;d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7086957,"623"),{AccountID:(b=t)!=null?b:0,AudienceSegment:u?u:null,Channels:v.join(" and "),FBChannelIDs:w,IGChannelIDs:x,IsUsingSaberFullProductQuery:!0,PreviousSortDirection:h,Section:"perf",SortDirection:a});i(a);D(function(){var b;A({channels:v,endDate:z.toISOString(),first:d("SellerInsightsFunnelUtils").PRODUCT_GROUP_COUNT,id:(b=t)!=null?b:"",productInsightSortingDirection:a,productInsightSortingKey:g,startDate:y.toISOString()})})},[t,u,v,w,x,h,A,z,g,y]);m(function(){i("DESCENDING")},[v,e,u]);e=d("SFLUtilityMethods").useSflAwareLambda(E,{action:"select_product_sort_direction"},c("SellerInsightsProductSortDirectionSelector.react"));E=f.productGroups.map(function(a,b){return j.jsx(c("SellerInsightsFunnelProductCardItem.react"),{productGroup:a},b)});b=(b==null?void 0:(b=b.seller_product_insights)==null?void 0:b.product_group_insights)==null;d("SellerInsightsPerfUtils.react").useLogScenarioEnd(b,c("SellerInsightsPerfTabEnum").Funnel,d("SellerInsightsLoggingConstants").ERROR_NULL_RELAY_RESPONSE);b=d("SellerInsightsFunnelUtils").isProductGroupsDataEmpty(f.productGroups);var F=b?d("SellerInsightsFbts").VIEW_CATALOG_CTA_LABEL:d("SellerInsightsFbts").SEE_DETAILS_CTA_LABEL,G=b?"top_selling_products_card_view_catalog":"top_selling_products_card_see_details";return j.jsx(c("GeoFlexbox.react"),{xstyle:a,children:C?j.jsx(c("GeoSpinner.react"),{center:!0}):j.jsx(c("SellerInsightsFunnelCard.react"),{footerText:F,funnelCardType:d("SellerInsightsFunnelUtils").FunnelCardType.ProductsBySales,sflAction:G,sortDirection:h,title:B,xstyle:a,onSortDirectionChange:e,children:b?null:j.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",xstyle:p.cardBody,children:[j.jsx(s,{productGroups:f.productGroups}),E]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsTopSellingProductsUpsellCard.react",["GeoBaseText.react","GeoDataText.react","GeoFlexbox.react","GeoHStack.react","GeoVStack.react","SellerInsightsFbts","SellerInsightsFunnelCard.react","SellerInsightsFunnelProductCardItem.react","SellerInsightsFunnelUpsellCardOverlay.react","SellerInsightsFunnelUtils","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsNumberUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo,k=[{primaryMetricValue:675,productImageURI:"/images/commerce_platform/commerce_insights/example_product_images/product-image-2-b4b-1x.png",productName:d("SellerInsightsFbts").FUNNEL_CARD_EXAMPLE_PRODUCT_1,secondaryMetricValue:5678},{primaryMetricValue:456,productImageURI:"/images/commerce_platform/commerce_insights/example_product_images/product-image-1-b4b-1x.png",productName:d("SellerInsightsFbts").FUNNEL_CARD_EXAMPLE_PRODUCT_2,secondaryMetricValue:3456},{primaryMetricValue:103,productImageURI:"/images/commerce_platform/commerce_insights/example_product_images/product-image-5-b4b-1x.png",productName:d("SellerInsightsFbts").FUNNEL_CARD_EXAMPLE_PRODUCT_3,secondaryMetricValue:987}];function l(){return j(function(){return{productGroups:k.map(function(a){return{imageURI:a.productImageURI,name:String(a.productName),priceRange:null,primaryMetric:{format:"COUNT",name:d("SellerInsightsMetricDefinitions").getPerformanceMetricName("TOTAL_ORDERS"),value:a.primaryMetricValue},secondaryMetric:{format:"COUNT",name:d("SellerInsightsMetricDefinitions").getPerformanceMetricName("CHECKOUTS_INITIATED"),value:a.secondaryMetricValue}}})}},[])}function m(a){a=a.productGroups;a=a.reduce(function(a,b){return a+b.primaryMetric.value},0);var b=d("SellerInsightsMetricDefinitions").getPerformanceMetricName("TOTAL_ORDERS");return i.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[i.jsx(c("GeoDataText.react"),{children:d("SellerInsightsNumberUtils").formatCount(a)}),i.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:b})]})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.onCTAClick,e=a.overlay;e=e===void 0?d("SellerInsightsFunnelUtils").UpsellCardOverlay.Default:e;a=a.xstyle;var f=l();d("SellerInsightsLoggingUtils").scenarioAnnotate(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{IsUsingSaberFullProductQuery:!0});return i.jsxs(c("GeoFlexbox.react"),{xstyle:[n.root,a],children:[e!=null?i.jsx(c("SellerInsightsFunnelUpsellCardOverlay.react"),{hasCTA:e===d("SellerInsightsFunnelUtils").UpsellCardOverlay.CTA,onCTAClick:b}):null,i.jsx(c("SellerInsightsFunnelCard.react"),{footerText:d("SellerInsightsFbts").SEE_DETAILS_CTA_LABEL,funnelCardType:d("SellerInsightsFunnelUtils").FunnelCardType.ProductsBySales,title:d("SellerInsightsFbts").TOP_SELLING_PRODUCTS_CARD_HEADER,xstyle:[n.card,e!=null&&n.blur],children:i.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",xstyle:n.cardBody,children:[i.jsx(m,{productGroups:f.productGroups}),f.productGroups.map(function(a,b){return i.jsx(c("SellerInsightsFunnelProductCardItem.react"),{productGroup:a},b)})]})})]})}a.displayName=a.name+" [from "+f.id+"]";var n={blur:{filter:"xhe8x8x",$$css:!0},card:{width:"xh8yej3",$$css:!0},cardBody:{height:"x5yr21d",$$css:!0},root:{position:"x1n2onr6",$$css:!0}};g["default"]=a}),98);
-----
SellerInsightsTopProductsCard.react",["RelayHooks","SellerInsightsHighCheckoutsLowPurchasesCard.react","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsProductGroupUtils","SellerInsightsTopProductsByAddsToCartCard.react","SellerInsightsTopProductsCard_insights.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("SellerInsightsTopProductsCard_insights.graphql");function l(a,b){switch(a){case"CHECKOUTS_INITIATED":return(a=b==null?void 0:b.checkouts_initiated_count)!=null?a:0;case"ADD_TO_CART":return(a=b==null?void 0:b.add_to_cart_count)!=null?a:0;case"TOTAL_ORDERS":return(a=b==null?void 0:b.purchase_count)!=null?a:0;default:return 0}}function m(a,b,c){var e=[],f=[];a==null?void 0:(a=a.product_group_insights)==null?void 0:(a=a.query)==null?void 0:(a=a.edges)==null?void 0:a.forEach(function(a){var g,h,i;g=a==null?void 0:(g=a.node)==null?void 0:(g=g.data)==null?void 0:(g=g.product_items[0])==null?void 0:(g=g.current)==null?void 0:(g=g.product)==null?void 0:(g=g.main_image)==null?void 0:(g=g.image)==null?void 0:g.downloadable_uri;var j=a==null?void 0:(h=a.node)==null?void 0:(h=h.data)==null?void 0:h.current,k=[];a==null?void 0:(h=a.node)==null?void 0:(a=h.data)==null?void 0:(h=a.product_items)==null?void 0:h.forEach(function(a){var b;a=a==null?void 0:(a=a.current)==null?void 0:a.product;var c=a==null?void 0:a.listing_price;if((j==null?void 0:(b=j.product_group)==null?void 0:b.id)!=null&&(a==null?void 0:a.id)!=null){f.push({groupID:j.product_group.id,id:a.id,imageUri:a==null?void 0:(b=a.main_image)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri,name:a==null?void 0:a.name,sku:null})}k.push({amount:c==null?void 0:c.amount,formattedAmount:c==null?void 0:c.formatted_amount})});a={format:"COUNT",name:d("SellerInsightsMetricDefinitions").getPerformanceMetricName(b),value:l(b,j)};h=null;c!=null&&(h={format:"COUNT",name:d("SellerInsightsMetricDefinitions").getPerformanceMetricName(c),value:l(c,j)});if((j==null?void 0:(i=j.product_group)==null?void 0:i.name)!=null){e.push({imageURI:g,name:j==null?void 0:(i=j.product_group)==null?void 0:i.name,priceRange:d("SellerInsightsProductGroupUtils").getPriceRange(k),primaryMetric:a,secondaryMetric:h})}});return{productGroups:e,selectedProducts:f}}function a(a){var b=a.primaryMetric,e=a.rawData,f=a.secondaryMetric;a=a.xstyle;e=d("RelayHooks").useFragment(k,e);f=m(e,b,(e=f)!=null?e:null);d("SellerInsightsLoggingUtils").scenarioAnnotate(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{IsUsingSaberFullProductQuery:!0});return b==="TOTAL_ORDERS"?j.jsx(c("SellerInsightsHighCheckoutsLowPurchasesCard.react"),{productGroupData:f,xstyle:a}):j.jsx(c("SellerInsightsTopProductsByAddsToCartCard.react"),{productGroupData:f,xstyle:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsProductsTableNew.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","GeoFlexbox.react","InteractionTracing","MemoizedComponent","RelayHooks","SellerInsightsCatalogContext.react","SellerInsightsConstants","SellerInsightsContext","SellerInsightsEmptyContainer.react","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsProductSelectedGroupContainer.react","SellerInsightsProductsContext","SellerInsightsProductsTableNew_table.graphql","SellerInsightsProductsTableUtils","SellerInsightsTable.react","SellerInsightsTableUtils","SellerInsightsUnifiedGraphQLConnectionUtils","qpl","react","useAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useState,o={root:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xkisesf",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}},p=h!==void 0?h:h=b("SellerInsightsProductsTableNew_table.graphql");function q(a,b,c,e){var f,g,h;f=a==null?void 0:(f=a.metadata)==null?void 0:(f=f.product_variant_metadata)==null?void 0:f.product_variant;g=(g=a==null?void 0:(g=a.bucket)==null?void 0:g[0])!=null?g:"";return a==null?null:{category:(h=f==null?void 0:f.category)!=null?h:"",collections:{topItems:[],totalCount:0},currentMetrics:d("SellerInsightsProductsTableUtils").getFormattedMetrics(a.metricsData,b,e),groupID:c,id:g,imageURL:f==null?void 0:(h=f.main_image)==null?void 0:(c=h.image)==null?void 0:c.downloadable_uri,name:(h=f==null?void 0:f.name)!=null?h:g,previousMetrics:d("SellerInsightsProductsTableUtils").getFormattedMetricsForPrev(a.metricsData,b,e),type:"item"}}function r(a,b,c){var e,f,g;e=a==null?void 0:(e=a.metadata)==null?void 0:(e=e.product_group_metadata_new)==null?void 0:e.product_group;var h=(f=e==null?void 0:e.id)!=null?f:a==null?void 0:(f=a.bucket)==null?void 0:f[0];if(a==null||h==null)return null;f=a==null?void 0:(f=a.metadata)==null?void 0:(f=f.product_group_metadata_new)==null?void 0:f.product_variants_breakdowns;g=((g=f)!=null?g:[]).map(function(a){return a==null?void 0:a.metadata}).filter(Boolean);return g.length===0?null:{category:(g=e==null?void 0:(g=e.representative_item)==null?void 0:g.category)!=null?g:"",collections:{topItems:[],totalCount:0},currentMetrics:d("SellerInsightsProductsTableUtils").getFormattedMetrics(a.metricsData,b,c),id:h,imageURL:e==null?void 0:(g=e.representative_item)==null?void 0:(g=g.main_image)==null?void 0:(g=g.image)==null?void 0:g.downloadable_uri,isPartialResult:(a==null?void 0:(g=a.metadata)==null?void 0:(g=g.product_group_metadata_new)==null?void 0:g.is_partial_result)===!0,name:(g=e==null?void 0:e.name)!=null?g:h,previousMetrics:d("SellerInsightsProductsTableUtils").getFormattedMetricsForPrev(a.metricsData,b,c),productTallyVariantIDs:(a=a==null?void 0:(e=a.metadata)==null?void 0:(g=e.product_group_metadata_new)==null?void 0:g.product_variant_tally_ids)!=null?a:[],type:"group",variants:((e=f)!=null?e:[]).map(function(a){return q(a,b,h,c)}).filter(Boolean)}}function s(a,b,c){return a.map(function(a){return r(a,b,c)}).filter(Boolean)}function t(a,b){return a.map(function(a){var c=[a];return(b==null?void 0:b.has(a.id))?c.concat(a.variants):c}).flat()}function a(a){var b,e,f=a.account,g=a.setInteractionID;a=a.sortableState;f=d("RelayHooks").usePaginationFragment(p,f);var h=f.data,i=f.loadNext,q=f.isLoadingNext;f=f.hasNext;b=h==null?void 0:(b=h.table)==null?void 0:(b=b.connection)==null?void 0:(b=b.edges)==null?void 0:b.map(function(a){a=a.node;return{metadata:a==null?void 0:a.metadata}});e=d("SellerInsightsUnifiedGraphQLConnectionUtils").useBreakdownsOrNullOnErrorForConnection(h==null?void 0:(e=h.table)==null?void 0:e.connection,b);b=d("SellerInsightsUnifiedGraphQLConnectionUtils").useConnectionCounts(h==null?void 0:(b=h.table)==null?void 0:b.connection);var r=l(c("SellerInsightsContext")),u=r.channels,v=r.igChannelIDs,w=r.fbChannelIDs,x=r.pageIDs;r=l(c("CommerceManagerComponentGatingContext"));r=r.checkoutStyle;var y=l(c("SellerInsightsProductsContext")),z=y.productInsightSortingKey;y=l(c("SellerInsightsCatalogContext.react"));var A=y.shouldDisableSorting,B=y.setShouldDisableSorting,C=y.selectedSegmentationFilter;y=l(c("CommerceManagerContext"));var D=y.cmsID;y=c("useAutoSizer")();var E=y.width;y=y.ref;var F=n(new Set()),G=F[0];F=F[1];var H=n(null),I=H[0],J=H[1],K=d("SellerInsightsProductsTableUtils").useLogger();d("SellerInsightsLoggingUtils").scenarioAnnotate(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{IsUsingSaberFullProductQuery:!0});var L=k(function(){J(null)},[J]),M=k(function(){var a;L();K.logDetailViewClose((a=I==null?void 0:I.id)!=null?a:"",(a=I==null?void 0:I.name)!=null?a:"")},[K,L,I==null?void 0:I.id,I==null?void 0:I.name]);d("SellerInsightsProductsTableUtils").useLogDataLoaded(e!=null);var N=s((H=e==null?void 0:e.breakdowns)!=null?H:[],r,(H=(e=h.node)==null?void 0:e.currency)!=null?H:"USD");m(function(){if(N.length>0){var a=N.findIndex(function(a){return(a=a.isPartialResult)!=null?a:!1})!==-1;B(a)}},[N,B]);r=t(N,G);var O=(h=b==null?void 0:b.current)!=null?h:0,P=(e=b==null?void 0:b.total)!=null?e:0,Q=f?Math.min(d("SellerInsightsConstants").PAGE_SIZE_FOR_NEW_PRODUCT_TABLE,P-O):0;H=function(a){var b,e=c("qpl")._(7085174,"624"),f={AccountID:(b=D)!=null?b:"0",AudienceSegment:C!=null?C:null,Channel:u.join(" and "),FBChannelIDs:w,IGChannelIDs:v,IsUsingSaberFullProductQuery:!0,NewPage:O+"-"+(O+Q),PageIDs:x,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,SortKey:z,Total:P.toString()};d("SellerInsightsLoggingUtils").scenarioStart(e,f);b=c("InteractionTracing").startInteraction({interactionClass:"contingent",qplEvent:c("qpl")._(7088136,"396"),tracePolicy:"seller_insights_product_table_pagination",traceType:"INTERACTION"},function(a){var b;a.addAnnotation("AccountID",(b=D)!=null?b:"0");a.addAnnotation("Channel",u.join("and"));a.addAnnotationStringArray("FBChannelIDs",w);a.addAnnotationStringArray("IGChannelIDs",v);a.addAnnotationStringArray("PageIDs",x);a.addAnnotation("NewPage",O+"-"+(O+Q));a.addAnnotation("SortKey",z);a.addAnnotation("Section",d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS);a.addAnnotation("Total",P.toString());a.addAnnotationBoolean("IsUsingSaberFullProductQuery",!0)});g(b);i(a,{onComplete:function(a){a==null?d("SellerInsightsLoggingUtils").scenarioSuccess([e],f):d("SellerInsightsLoggingUtils").scenarioFail([e],babelHelpers["extends"]({Error:a.message},f))}})};h=d("SellerInsightsProductsTableUtils").useColumnsConfig(babelHelpers["extends"]({},a,{cmsID:D,expandedGroupIDs:G,setExpandedGroupIDs:F,shouldDisableSorting:A}));var R=h.map(function(a){return a.width});b=n(d("SellerInsightsTableUtils").calculateColumnWidth(0,R,E));e=b[0];var S=b[1];m(function(){S(d("SellerInsightsTableUtils").calculateColumnWidth(0,R,E))},[E,R]);a=d("MemoizedComponent").useMemo(function(){return{activeItemID:I==null?void 0:I.id,getItemID:function(a){return a.type==="group"?a.id:a.groupID},getLabel:function(a){a=a.isActive;return a?d("SellerInsightsFbts").PRODUCT_TABLE_DEACTIVATE_ROW_LABEL:d("SellerInsightsFbts").PRODUCT_TABLE_ACTIVATE_ROW_LABEL},onActivate:function(b){var a=b.type==="group"?b:N.find(function(a){return a.id===b.groupID});a!=null&&(J(a),K.logDetailViewLoadStart(a.id,a.name))},onDeactivate:M}},[K,M,N,I==null?void 0:I.id]);return P===0||O===0&&Q===0?j.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.NO_PRODUCT_INSIGHTS}):j.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",containerRef:y,direction:"column",xstyle:o.root,children:[I!=null?j.jsx("div",{className:"x12peec7 x168nmei x13lgxp2 x30kzoy xo71vjh x1ey2m1c xy8qs99 xds687c xw2csxc x1odjw0f x10l6tqk x13vifvy x1vjfegm",style:{left:e},children:j.jsx(c("SellerInsightsProductSelectedGroupContainer.react"),{productVariantsIDsFromTally:I.productTallyVariantIDs,selectedProductGroup:I,onCloseButtonClick:M})}):null,j.jsx(c("GeoFlexbox.react"),{grow:1,children:j.jsx(c("SellerInsightsTable.react"),{columns:h,data:r,"data-testid":void 0,label:d("SellerInsightsFbts").PRODUCT_TABLE_LABEL,loggingAnnotations:{"Chart Name":"Products Table",Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},pagination:{hasNext:f,isLoadingNext:q,loadNext:H,pageSize:Q},rowActivation:a,scrollable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsProductsNewContainer.react",["CUIErrorCard.react","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","SellerInsightsCatalogContext.react","SellerInsightsConstants","SellerInsightsContext","SellerInsightsEmptyContainer.react","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsPerfUtils.react","SellerInsightsProductsContext","SellerInsightsProductsNewContainerUnifiedQuery.graphql","SellerInsightsProductsTableGlimmer.react","SellerInsightsProductsTableNew.react","SellerInsightsProductsTableUtils","SellerInsightsSearchParamsUtils","SellerInsightsTableUtils","geoMargin","qpl","react","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsProductsNewContainerUnifiedQuery.graphql");function n(a,b,e,f){return a==null?j.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.NO_PRODUCT_INSIGHTS}):d("SellerInsightsPerfUtils.react").getPotentialNullStateForAudienceSegment(b,f,e)}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b,e=a.setInteractionID;a=a.sortableState;var f=k(c("SellerInsightsCatalogContext.react")),g=f.selectedSegmentationFilter;f=f.highIntentShopperAudienceSegmentEffectiveDate;var h=k(c("CommerceManagerContext"));h=h.cmsID;var i=k(c("SellerInsightsContext")),o=i.channels;i=i.dateRange;var p=k(c("SellerInsightsProductsContext")),q=p.productInsightSortingDirection;p=p.productInsightSortingKey;var r=k(c("SellerInsightsCatalogContext.react"));r=r.shouldDisableSorting;var s=k(c("CommerceManagerComponentGatingContext"));s=s.checkoutStyle;var t=i.getDateInterval(),u=t.start;t=t.end;var v=i.getIsCompareDatePresent();b=(b=i.getCompareDateInterval())!=null?b:i.getPrevDateInterval();var w=b.start;b=b.end;var x=d("SellerInsightsProductsTableUtils").useLogger();d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products");var y=d("SellerInsightsSearchParamsUtils").getSearchFiltersFromParams(location.search),z=y.metric;z={category:y.category,collection:y.collection,metrics:z!=null?[babelHelpers["extends"]({},z)]:[],name:y.name,promotion:y.promotion,variant:y.variant};var A=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(y=h)!=null?y:"0",audienceSegmentFilter:g,channels:o,commerceInsightsMetrics:d("SellerInsightsProductsTableUtils").getMetricsForCheckoutStyle(s),endDate:t.toISOString(),prevEndDate:v?b.toISOString():null,prevStartDate:v?w.toISOString():null,productFilteringData:z,productInsightSortingDirection:d("SellerInsightsProductsTableUtils").getUnifiedAPISortingDirection(q),productInsightSortingKey:d("SellerInsightsProductsTableUtils").getUnifiedAPISortingKey(p),startDate:u.toISOString()});d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(A==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);l(function(){A==null&&x.logLoadNoData()});h=n(A,g,i,f);y=r?j.jsx(c("GeoGuidanceCard.react"),{header:j.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("SellerInsightsFbts").PRODUCT_GROUP_TABLE_LIMITED_DATA_BANNER_HEADER}),layout:"horizontal",status:"warning",xstyle:c("geoMargin").all16,children:j.jsx(c("GeoGuidanceCardContent.react"),{children:d("SellerInsightsFbts").PRODUCT_GROUP_TABLE_LIMITED_DATA_BANNER})}):null;return(o=h)!=null?o:j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"stretch",context:"container",direction:"vertical",relation:"unrelated",children:[y,j.jsx(c("SellerInsightsProductsTableNew.react"),{account:A,setInteractionID:e,sortableState:a})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){a=a.setInteractionID;d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");var b=c("useReactRouter").useRouter();b=b.history;var e=d("SellerInsightsProductsTableUtils").useLogger();d("SellerInsightsProductsTableUtils").useLogDataLoading(b);b=k(c("SellerInsightsProductsContext"));var f=b.productInsightSortingKey,g=b.productInsightSortingDirection,h=b.onProductInsightSortingDirection;b=b.onProductInsightSortingKey;g=d("SellerInsightsTableUtils").useSortableState({ascendingDirection:"ASCENDING",currentDirection:g,currentKey:f,descendingDirection:"DESCENDING",onDirectionChange:h,onKeyChange:b});var i=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();return j.jsx("div",{className:"x5yr21d",children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(c("SellerInsightsProductsTableGlimmer.react"),{sortableState:g}),oncall:"commerce_platform_insights",onHandleError:function(a){e.logLoadError(a),i(a)},children:j.jsx(o,{setInteractionID:a,sortableState:g})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsProductGroupTrendContainer.react",["invariant","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","Grid.react","SellerInsightsCatalogContext.react","SellerInsightsChartUtils.next","SellerInsightsContext","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsMetricCard.react","SellerInsightsProductGroupTrendContainerQuery.graphql","SellerInsightsProductGroupTrendContainerUnifiedQuery.graphql","SellerInsightsProductsMetricsUtils","SellerInsightsProductsTableUtils","err","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k,n=m.useContext,o=m.useEffect,p=["PDP_VIEWS","OUTBOUND_CLICKS"],q=["PDP_VIEWS","MESSAGE_TO_BUY"],r=["SALES","UNITS_SOLD","PDP_VIEWS","ADD_TO_CART"],s=["PDP_VIEWS","CLICK_TO_OFFSITE"],t=["PDP_VIEWS","MESSAGE_TO_BUY"],u=["SALES","UNITS_SOLD","PDP_VIEWS","ADD_TO_CART"],v=2,w=132,x=i!==void 0?i:i=b("SellerInsightsProductGroupTrendContainerQuery.graphql"),y=j!==void 0?j:j=b("SellerInsightsProductGroupTrendContainerUnifiedQuery.graphql");function z(a){switch(a){case"OFFSITE":return p;case"CONTACT_MERCHANT":return q;case"ONSITE":return r;default:throw c("err")("Checkout Style not supported")}}function A(a){switch(a){case"OFFSITE":return s;case"CONTACT_MERCHANT":return t;case"ONSITE":return u;default:throw c("err")("Checkout Style not supported")}}function B(a){var b=a.data,e=a.metrics,f=a.metricValue,g=b.account,h=d("SellerInsightsProductsTableUtils").useLogger();d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(g==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);o(function(){g!=null?h.logDetailViewLoadSuccess():h.logDetailViewLoadNoData()});return g==null?null:l.jsx(c("Grid.react"),{alignh:"center",cols:v,fixed:!0,spacing:"x1y1aw1k x1sxyh0 xwib8y2 xurb0ha",children:e.map(function(a,b){return l.jsx(D,{account:g,metric:a,metricValue:f},b)})})}B.displayName=B.name+" [from "+f.id+"]";function C(a){var b=a.data,e=a.metrics,f=a.metricsLegacy,g=a.metricValue,h=b.trends;a=b.fetch__CommerceMerchantSettings;var i=d("SellerInsightsProductsTableUtils").useLogger();d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler((h==null?void 0:h.breakdowns)==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);o(function(){(h==null?void 0:h.breakdowns)!=null&&h.breakdowns.data.length!==0?i.logDetailViewLoadSuccess():i.logDetailViewLoadNoData()});if((h==null?void 0:h.breakdowns)==null||h.breakdowns.data.length===0||(h==null?void 0:h.extra)==null||(a==null?void 0:a.currency)==null)return null;var j=h.breakdowns.data,k=h.extra.metric_effective_dates,m=a.currency;return l.jsx(c("Grid.react"),{alignh:"center",cols:v,fixed:!0,spacing:"x1y1aw1k x1sxyh0 xwib8y2 xurb0ha",children:e.map(function(a,b){return l.jsx(E,{breakdowns:j,currency:m,effectiveDates:k,metric:a,metricLegacy:f[b],metricValue:g},b)})})}C.displayName=C.name+" [from "+f.id+"]";function D(a){var b=a.account,e=a.metric;a=a.metricValue;b=d("SellerInsightsProductsMetricsUtils").getMetricConfigLegacy(b,a,e);return l.jsx(c("SellerInsightsMetricCard.react"),{chartColor:d("SellerInsightsChartUtils.next").getCatalogChartColor(e),chartData:b.chartData,chartHeight:w,chartValueFormatter:b.chartValueFormatter,compact:!0,currency:b.currency,currentValue:b.currentValue,effectiveDate:b.effectiveDate,infoText:b.infoText,isEstimated:b.isEstimated,isNegativeGood:b.isNegativeGood,isReviewed:b.isReviewed,metricFormat:b.renderType,prevValue:b.prevValue,title:b.title,unavailableDates:b.unavailableDates,value:b.value})}D.displayName=D.name+" [from "+f.id+"]";function E(a){var b=a.breakdowns,e=a.currency,f=a.effectiveDates,g=a.metric,h=a.metricLegacy;a=a.metricValue;b=d("SellerInsightsProductsMetricsUtils").getMetricConfigForTimeline(b,f,e,a,g,h);return l.jsx(c("SellerInsightsMetricCard.react"),{chartColor:d("SellerInsightsChartUtils.next").getCatalogChartColor(h),chartData:b.chartData,chartHeight:w,chartValueFormatter:b.chartValueFormatter,compact:!0,currency:b.currency,currentValue:b.currentValue,effectiveDate:b.effectiveDate,infoText:b.infoText,isEstimated:b.isEstimated,isNegativeGood:b.isNegativeGood,isReviewed:b.isReviewed,metricFormat:b.renderType,prevValue:b.prevValue,title:b.title,unavailableDates:b.unavailableDates,value:b.value})}E.displayName=E.name+" [from "+f.id+"]";function a(a){var b=a.metricValue;a=a.productIDs;var e=n(c("CommerceManagerContext"));e=e.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;var f=n(c("SellerInsightsCatalogContext.react"));f=f.selectedSegmentationFilter;var g=n(c("SellerInsightsContext")),h=g.channels;g=g.dateRange;g=g.getDateInterval();var i=g.start;g=g.end;var j=n(c("CommerceManagerComponentGatingContext"));j=j.checkoutStyle;j=z(j);e=d("CommerceManagerHooks").useCommerceManagerQuery(x,{accountID:e,audienceSegmentFilter:f,channels:h,endDate:g.toISOString(),metrics:j,productIDs:a,startDate:i.toISOString()});return l.jsx(B,{data:e,metricValue:b,metrics:j})}a.displayName=a.name+" [from "+f.id+"]";function e(a){var b=a.metricValue,e=a.productGroupId;a=a.productVariantIDs;var f=n(c("CommerceManagerContext"));f=f.cmsID;f!=null||h(0,43619);var g=n(c("SellerInsightsCatalogContext.react"));g=g.selectedSegmentationFilter;var i=n(c("SellerInsightsContext")),j=i.channels;i=i.dateRange;i=i.getDateInterval();var k=i.start;i=i.end;var m=n(c("CommerceManagerComponentGatingContext"));m=m.checkoutStyle;var o=A(m);m=z(m);f=d("CommerceManagerHooks").useCommerceManagerQuery(y,{accountID:f,audienceSegmentFilter:g,channels:j,endDate:i.toISOString(),metrics:o,productGroupIDs:[e],productVariantIDs:a,startDate:k.toISOString()});return l.jsx(C,{data:f,metricValue:b,metrics:o,metricsLegacy:m})}e.displayName=e.name+" [from "+f.id+"]";g.SellerInsightsProductGroupTrendContainerLegacy=a;g.SellerInsightsProductGroupTrendContainer=e}),98);
-----
SellerInsightsProductSelectedGroupContainer.react",["CUIErrorCard.react","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoSpinner.react","SellerInsightsLoggingConstants","SellerInsightsProductGroupDetailsContainer.react","SellerInsightsProductGroupTrendContainer.react","SellerInsightsProductsTableUtils","react","useGeoTheme"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){var b,c=a.get("SALES"),d=(c==null?void 0:c.value)!=null?String(c.value):null;c=(c=c==null?void 0:c.formattedValue)!=null?c:null;return{addToCartCount:(b=a.get("ADD_TO_CART"))==null?void 0:b.value,checkoutsInitiatedCount:(b=a.get("CHECKOUTS_INITIATED"))==null?void 0:b.value,messageToBuyCount:(b=a.get("MESSAGE_TO_BUY"))==null?void 0:b.value,outboundClickCount:(b=a.get("OUTBOUND_CLICKS"))==null?void 0:b.value,pdpViewsCount:(b=a.get("PDP_VIEWS"))==null?void 0:b.value,savesCount:(b=a.get("ADD_TO_WISHLIST"))==null?void 0:b.value,totalSales:{amount:d,formattedAmount:c},totalUnitsSold:(b=a.get("UNITS_SOLD"))==null?void 0:b.value}}function k(a){return{current:j(a.currentMetrics),previous:j(a.previousMetrics)}}function a(a){var b=a.onCloseButtonClick,e=a.productVariantsIDsFromTally;a=a.selectedProductGroup;var f=d("SellerInsightsProductsTableUtils").useLogger(),g=c("useGeoTheme")();g=g.selectSpacing;f=f.logDetailViewHover(a.id,a.name,d("SellerInsightsLoggingConstants").DELAY_FOR_PRODUCT_GROUP_DETAILS_IN_MS);return i.jsx("div",{onMouseEnter:f,onMouseLeave:f.reset,children:i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"stretch",context:"container",direction:"vertical",relation:"unrelated",xstyle:g({bounds:"internal",context:"container",relation:"page"}),children:[i.jsx(c("SellerInsightsProductGroupDetailsContainer.react"),{productGroup:a,onCloseButtonClick:b}),i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("GeoSpinner.react"),{center:!0}),oncall:"commerce_platform_insights",children:i.jsx(d("SellerInsightsProductGroupTrendContainer.react").SellerInsightsProductGroupTrendContainer,{metricValue:k(a),productGroupId:a.id,productVariantIDs:e})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsCollectionsTable.react",["CommerceManagerContext","GeoFlexbox.react","RelayHooks","SellerInsightsCatalogContext.react","SellerInsightsCollectionDetail.react","SellerInsightsCollectionMetric","SellerInsightsCollectionsContext","SellerInsightsCollectionsMetricsContext","SellerInsightsCollectionsTableUtils","SellerInsightsCollectionsTable_account.graphql","SellerInsightsConstants","SellerInsightsContext","SellerInsightsDateConstants","SellerInsightsEmptyContainer.react","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsTable.react","SellerInsightsTableUtils","objectValues","qpl","react","useAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useMemo,o=e.useState,p=h!==void 0?h:h=b("SellerInsightsCollectionsTable_account.graphql"),q={root:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}};function r(a){a=a==null?void 0:(a=a.product_set_usages)==null?void 0:a.nodes;if(a==null)return null;for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;d=(d=d.catalog_manager_display_data)==null?void 0:(d=d.usage_specific_display_data)==null?void 0:(d=d.collection)==null?void 0:d.cover_image_url;if(d!=null)return d}}function s(a){a=a==null?void 0:(a=a.dynamic_items_v2)==null?void 0:a.nodes;return a!=null?a.map(function(a){return{imageURL:a==null?void 0:(a=a.dynamic_item_main_image)==null?void 0:(a=a.image)==null?void 0:a.downloadable_uri}}):[]}function t(a){return a!=null?Object.fromEntries(a.map(function(a){var b=a.metric;a=a.value;b=c("SellerInsightsCollectionMetric").cast(b);return b!=null?[b,a]:null}).filter(Boolean)):{}}function u(a){return a.map(function(a){var b,c;b=a==null?void 0:(b=a.node)==null?void 0:b.product_set;var d=b==null?void 0:b.id;return d==null?null:{coverImageURL:r(b),currentMetrics:t(a==null?void 0:(c=a.node)==null?void 0:c.current_metrics),id:d,name:b==null?void 0:b.name,previousMetrics:t(a==null?void 0:(c=a.node)==null?void 0:c.previous_metrics),productCount:b==null?void 0:b.dynamic_items_count,topProducts:s(b)}}).filter(Boolean)}function v(){var a=l(c("SellerInsightsContext"));a=a.dateRange;var b=l(c("SellerInsightsCollectionsMetricsContext"));b=b.metricConfigs;a=a.getDateInterval().end.toInstant(d("SellerInsightsDateConstants").DEFAULT_TIMEZONE);b=Math.min.apply(Math,c("objectValues")(b).map(function(a){return a.effectiveDate}));return j.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.NO_COLLECTION_INSIGHTS,overrideLabel:a<=b?d("SellerInsightsFbts").NO_COLLECTION_INSIGHTS_BEFORE_EFFECTIVE_DATE(b):null})}v.displayName=v.name+" [from "+f.id+"]";function w(a,b){if(a!=null)return j.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.NO_INSIGHTS_FOR_AUDIENCE_SEGMENT});return b.length===0?j.jsx(v,{}):null}w.displayName=w.name+" [from "+f.id+"]";function a(a){var b,e=a.account;a=a.sortableState;var f=c("useAutoSizer")(),g=f.width;f=f.ref;e=d("RelayHooks").usePaginationFragment(p,e);var h=e.data,i=e.loadNext,r=e.isLoadingNext;e=e.hasNext;var s=o(null),t=s[0],v=s[1];s=l(c("SellerInsightsContext"));var x=s.channels,y=s.igChannelIDs,z=s.fbChannelIDs,A=s.pageIDs;s=l(c("SellerInsightsCollectionsContext"));var B=s.collectionsSortingKey;s=l(c("SellerInsightsCatalogContext.react"));s=s.selectedSegmentationFilter;var C=l(c("CommerceManagerContext")),D=C.cmsID,E=d("SellerInsightsCollectionsTableUtils").useLogger(),F=function(){v(null)},G=k(function(){F(),E.logDetailViewClose(t)},[E,t]);d("SellerInsightsCollectionsTableUtils").useLogDataLoaded(h!=null);C=d("SellerInsightsCollectionsTableUtils").useColumnsConfig(babelHelpers["extends"]({},a));var H=C.map(function(a){return a.width});a=o(d("SellerInsightsTableUtils").calculateColumnWidth(0,H,g));var I=a[0],J=a[1];m(function(){J(d("SellerInsightsTableUtils").calculateColumnWidth(0,H,g))},[g,H]);a=u((h==null?void 0:(a=h.seller_collection_insights)==null?void 0:(a=a.collections)==null?void 0:a.edges)||[]);b=n(function(){var a;return{activeItemID:t==null?void 0:(a=t.product_set)==null?void 0:a.id,getItemID:function(a){return a.id},getLabel:function(a){a=a.isActive;return a?d("SellerInsightsFbts").COLLECTION_TABLE_DEACTIVATE_ROW_LABEL:d("SellerInsightsFbts").COLLECTION_TABLE_ACTIVATE_ROW_LABEL},onActivate:function(a){var b;b=h==null?void 0:(b=h.seller_collection_insights)==null?void 0:(b=b.collections)==null?void 0:(b=b.edges)==null?void 0:b.filter(function(b){return((b=b.node)==null?void 0:(b=b.product_set)==null?void 0:b.id)===a.id})[0];v(b==null?void 0:b.node);E.logDetailViewLoadStart(b==null?void 0:b.node)},onDeactivate:G}},[h==null?void 0:(b=h.seller_collection_insights)==null?void 0:(b=b.collections)==null?void 0:b.edges,E,G,t==null?void 0:(b=t.product_set)==null?void 0:b.id]);s=w(s,a);if(s!=null)return s;var K=a.length,L=(s=h==null?void 0:(s=h.seller_collection_insights)==null?void 0:(s=s.collections)==null?void 0:s.count)!=null?s:0,M=e?Math.min(d("SellerInsightsCollectionsTableUtils").PAGE_SIZE,L-K):0;s=function(a){var b,e=c("qpl")._(7085174,"624"),f={AccountID:(b=D)!=null?b:"0",Channel:x.join(" and "),FBChannelIDs:z,IGChannelIDs:y,NewPage:K+"-"+(K+M),PageIDs:A,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,SortKey:B,Total:L.toString()};d("SellerInsightsLoggingUtils").scenarioStart(e,f);i(a,{onComplete:function(a){a==null?d("SellerInsightsLoggingUtils").scenarioSuccess([e],f):d("SellerInsightsLoggingUtils").scenarioFail([e],babelHelpers["extends"]({Error:a.message},f))}})};return j.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",containerRef:f,direction:"column",xstyle:q.root,children:[t!=null?j.jsx("div",{className:"x12peec7 x168nmei x13lgxp2 x30kzoy xo71vjh x1ey2m1c xy8qs99 xds687c xw2csxc x1odjw0f x10l6tqk x13vifvy xhtitgo",style:{left:I},children:j.jsx(c("SellerInsightsCollectionDetail.react"),{dataPoint:t,onClose:G})}):null,j.jsx(c("GeoFlexbox.react"),{grow:1,children:j.jsx(c("SellerInsightsTable.react"),{columns:C,data:a,"data-testid":void 0,label:d("SellerInsightsFbts").COLLECTION_TABLE_LABEL,loggingAnnotations:{"Chart Name":"Collections Table",Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS},pagination:{hasNext:e,isLoadingNext:r,loadNext:s,pageSize:M},rowActivation:b,scrollable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsCollectionsContainer.react",["CUIErrorCard.react","CommerceManagerHooks","CommerceManagerSuspense.react","SellerInsightsCollectionsContainerQuery.graphql","SellerInsightsCollectionsContext","SellerInsightsCollectionsMetricsContext","SellerInsightsCollectionsMetricsUtils","SellerInsightsCollectionsSortingDirection","SellerInsightsCollectionsSortingKey","SellerInsightsCollectionsTable.react","SellerInsightsCollectionsTableGlimmer.react","SellerInsightsCollectionsTableUtils","SellerInsightsContext","SellerInsightsCutoffDateBanner","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsSearchParamsUtils","SellerInsightsTableUtils","geoMargin","qpl","react","useEffectOnce","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsCollectionsContainerQuery.graphql");function n(a,b){var c=Object.fromEntries(a.map(function(a){return[a,0]}));(b=b.account)==null?void 0:(b=b.seller_collection_insights)==null?void 0:(b=b.metrics_lifetime)==null?void 0:b.forEach(function(a){var b=d("SellerInsightsCollectionsMetricsUtils").coerceMetricFromGraphQLEnum(a==null?void 0:a.metric);if(b!=null){c[b]=(b=a==null?void 0:a.effective_date)!=null?b:0}});return Object.fromEntries(a.map(function(a){return[a,d("SellerInsightsCollectionsMetricsUtils").getMetricConfig(a,{effectiveDate:c[a]})]}))}function o(a){var b,e=a.setBanner;a=a.sortableState;var f=d("SellerInsightsCollectionsMetricsUtils").useQueryVariables();d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,"collections");f=d("CommerceManagerHooks").useCommerceManagerQuery(m,f);var g=k(c("SellerInsightsContext"));g=g.dateRange;var h=(b=f==null?void 0:(b=f.account)==null?void 0:(b=b.seller_collection_insights)==null?void 0:b.min_effective_date)!=null?b:0,i=g.getTimeInterval().getStartDateTime().getUnixTimestampSeconds()
SellerInsightsProductsTableGlimmer.react",["GeoFlexbox.react","SellerInsightsLoggingConstants","SellerInsightsProductsTableUtils","SellerInsightsTable.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.sortableState;a=d("SellerInsightsProductsTableUtils").useColumnsConfig(a);return i.jsx(c("GeoFlexbox.react"),{alignItems:"stretch",direction:"column",xstyle:j.root,children:i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("SellerInsightsTable.react"),{columns:a,data:[],loggingAnnotations:{"Chart Name":"Products Table",Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},pagination:{hasNext:!1,isLoadingNext:!0,loadNext:null,pageSize:10},scrollable:!0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsCollectionsTableGlimmer.react",["GeoFlexbox.react","SellerInsightsCollectionsTableUtils","SellerInsightsLoggingConstants","SellerInsightsTable.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.sortableState;a=d("SellerInsightsCollectionsTableUtils").useColumnsConfig(a);return i.jsx(c("GeoFlexbox.react"),{alignItems:"stretch",direction:"column",xstyle:j.root,children:i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("SellerInsightsTable.react"),{columns:a,data:[],loggingAnnotations:{"Chart Name":"Collections Table",Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS},pagination:{hasNext:!1,isLoadingNext:!0,loadNext:null,pageSize:d("SellerInsightsCollectionsTableUtils").PAGE_SIZE},scrollable:!0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsCollectionsTableUtils",["ix","CommerceManagerContext","GeoBaseSpacingLayout.react","GeoFlexbox.react","GeoGlimmer.react","GeoIcon.react","GeoMediaItem.react","GeoTableContentCell.react","GeoTableContentGlimmer.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","Image.react","SellerInsightsCollectionsTableQPLLogger","SellerInsightsContext","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsMetricDefinitions","SellerInsightsMetricInfoTooltip.react","SellerInsightsMetricWithPopTooltip.react","SellerInsightsPlaceholder.react","fbicon","react","useGeoTableSortableColumn_DEPRECATED"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useMemo,o=96,p=64,q=32,r=1,s=1.25;e=10;var t={placeholderText:{marginStart:"x1i64zmx",marginLeft:null,marginRight:null,marginEnd:"x1emribx",$$css:!0}};function u(a){var b=a.coverImageURL;a.currentMetrics;a.id;var e=a.name;a.previousMetrics;var f=a.productCount;a.topProducts;return j.jsx(c("GeoTableContentCell.react"),{description:d("SellerInsightsFbts").NUMBER_OF_VARIANTS((a=f)!=null?a:0),media:j.jsx(c("GeoMediaItem.react"),{fit:b!=null?"cover":"none",media:b!=null?j.jsx(c("Image.react"),{src:b}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),ratio:"landscape",size:p}),title:(f=e)!=null?f:""})}u.displayName=u.name+" [from "+f.id+"]";function v(a){a=a.index;return j.jsxs(c("GeoBaseSpacingLayout.react"),{children:[j.jsx(c("GeoFlexbox.react"),{shrink:0,children:j.jsx(c("GeoGlimmer.react"),{height:p,index:a,width:o})}),j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[j.jsx(c("GeoTableContentGlimmer.react"),{index:a}),j.jsx(c("GeoTableContentGlimmer.react"),{index:a,width:"50%"})]})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){a.coverImageURL;a.currentMetrics;a.id;a.name;a.previousMetrics;var b=a.productCount;a=a.topProducts;return j.jsxs(c("GeoBaseSpacingLayout.react"),{children:[a.map(function(a,b){a=a.imageURL;return j.jsx(c("GeoMediaItem.react"),{fit:a!=null?"cover":"none",media:a!=null?j.jsx(c("Image.react"),{src:a}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),ratio:"square",size:q},b)}),b!=null&&b>3?j.jsx(c("SellerInsightsPlaceholder.react"),{height:q,width:q,children:j.jsx(c("GeoText.react"),{xstyle:t.placeholderText,children:d("SellerInsightsFbts").EXTRA_ITEMS_COUNT(b-3)})}):null]})}w.displayName=w.name+" [from "+f.id+"]";function x(a){var b=a.currentValue;a=a.previousValue;var d=l(c("SellerInsightsContext"));d=d.dateRange;return j.jsx(c("SellerInsightsMetricWithPopTooltip.react"),{curValue:b,dateRange:d,formattedAmount:null,prevValue:a})}x.displayName=x.name+" [from "+f.id+"]";function y(a,b){var e=d("SellerInsightsMetricDefinitions").getCollectionMetricDefinition(a);return{cell:function(b){b=b.item;return j.jsx(x,{currentValue:b.currentMetrics[a],previousValue:b.previousMetrics[a]})},features:{sortable:b},header:{label:e.title,tooltip:j.jsx(c("SellerInsightsMetricInfoTooltip.react"),{isEstimated:(b=e.isEstimated)!=null?b:!1,isReviewed:(b=e.isReviewed)!=null?b:!1,text:e.tooltip,title:e.title})},key:a,width:d("GeoTableWidth").proportional(r)}}function a(a){var b=a.sort,e=a.setSort,f=a.onPageReset;a=k(function(a){e(a),f==null?void 0:f()},[f,e]);var g=c("useGeoTableSortableColumn_DEPRECATED")({allowUnsortedState:!1,setSort:a,sort:b});return n(function(){return[{cell:function(a){a=a.item;return j.jsx(c("GeoTableRowAction.react"),{children:j.jsx(u,babelHelpers["extends"]({},a))})},header:d("SellerInsightsFbts").COLLECTION_NAME_LABEL,key:"collection_name",loadingCell:function(a){a=a.loadingIndex;return j.jsx(v,{index:a})},width:d("GeoTableWidth").proportional(s)},{cell:function(a){a=a.item;return j.jsx(w,babelHelpers["extends"]({},a))},header:d("SellerInsightsFbts").PRODUCT_VARIANTS_LABEL,key:"product_variants",width:d("GeoTableWidth").proportional(r)},y("VIEWS",g.singleKey("VIEWS",{defaultDirection:"descending"})),y("UNIQUE_VISITORS",g.singleKey("UNIQUE_VISITORS",{defaultDirection:"descending"}))]},[g])}function z(){var a=l(c("CommerceManagerContext")),b=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=l(c("SellerInsightsContext"));var d=a.igChannelIDs,e=a.fbChannelIDs,f=a.channels,g=a.pageIDs;return n(function(){return new(c("SellerInsightsCollectionsTableQPLLogger"))({accountID:b,channels:f,fbChannelIDs:e,igChannelIDs:d,pageIDs:g})},[b,f,e,d,g])}function b(a){var b=z(),c=k(function(){document.visibilityState==="visible"?b.logActiveTabLoadStart():document.visibilityState==="hidden"&&b.logActiveTabLoadSuccess()},[b]);d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(!a,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);m(function(){a?(b.logLoadSuccess(),b.logActiveTabLoadStart(),document.addEventListener("visibilitychange",c)):b.logLoadNoData();return function(){return document.removeEventListener("visibilitychange",c)}})}g.PAGE_SIZE=e;g.useColumnsConfig=a;g.useLogger=z;g.useLogDataLoaded=b}),98);
-----
SellerInsightsCollectionsTableQPLLogger",["SellerInsightsExitTabActionEnum","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs}var b=a.prototype;b.logLoadStart=function(a){d("SellerInsightsLoggingUtils").setCurrentSection(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsLoggingUtils").scenarioForContainerLoading(this.accountID,this.channels,a,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,this.igChannelIDs,this.fbChannelIDs,this.pageIDs)};b.logNavigateAway=function(a){d("SellerInsightsLoggingUtils").logNavigateAway(this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsLoggingUtils").scenarioAbandon(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON)};b.logLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,"collections"),d("SellerInsightsLoggingUtils").scenarioSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenarios=function(){d("SellerInsightsLoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731"),c("qpl")._(7092951,"142")])};b.logDetailViewLoadStart=function(a){this.abandonRunningDetailViewScenarios();if(a!=null){var b;d("SellerInsightsLoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),{AccountID:this.accountID,CollectionID:(b=a==null?void 0:(b=a.product_set)==null?void 0:b.id)!=null?b:"",CollectionName:(a=a==null?void 0:(b=a.product_set)==null?void 0:b.name)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS})}};b.logDetailViewLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadError=function(a){d("SellerInsightsLoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:a.message,ErrorName:a.name})};b.logDetailViewClose=function(a){var b;this.abandonRunningDetailViewScenarios();d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7090129,"1302"),{AccountID:this.accountID,CollectionID:(b=a==null?void 0:(b=a.product_set)==null?void 0:b.id)!=null?b:"",CollectionName:(a=a==null?void 0:(b=a.product_set)==null?void 0:b.name)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS})};b.logActiveTabLoadStart=function(){d("SellerInsightsLoggingUtils").handleActiveTabEventStart()};b.logActiveTabLoadSuccess=function(){d("SellerInsightsLoggingUtils").handleActiveTabEventSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,c("SellerInsightsExitTabActionEnum").TAB_CHANGE)};return a}();g["default"]=a}),98);
-----
SellerInsightsCollectionDetailProductsTable.react",["RelayHooks","SellerInsightsCollectionDetailProductsTableUtils","SellerInsightsCollectionDetailProductsTable_productSet.graphql","SellerInsightsLoggingConstants","SellerInsightsTable.react","intlList","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo,l=h!==void 0?h:h=b("SellerInsightsCollectionDetailProductsTable_productSet.graphql");function m(a){a=a==null?void 0:(a=a.productItems)==null?void 0:a.edges;return a!=null?a.map(function(a){a=a==null?void 0:a.node;var b=a==null?void 0:a.id,d=a==null?void 0:a.variant_values;return b!=null?{category:a==null?void 0:a.category,id:b,imageURL:a==null?void 0:(b=a.main_image)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri,name:a==null?void 0:a.name,price:a==null?void 0:(b=a.listing_price)==null?void 0:b.formatted_amount,retailerID:a==null?void 0:a.retailer_id,type:"cell",variantValues:d!=null?c("intlList")(d.filter(Boolean),"NONE"):null}:null}).filter(Boolean):[]}var n=10;function a(a){var b;a=a.productSet;a=d("RelayHooks").usePaginationFragment(l,a);var e=a.data,f=a.loadNext,g=a.hasNext,h=a.isLoadingNext;a=e!=null?m(e):[];var i=a.length,o=(b=e==null?void 0:(b=e.productItems)==null?void 0:b.count)!=null?b:i,p=Math.min(n,o-i),q=d("SellerInsightsCollectionDetailProductsTableUtils").useLogger();b=k(function(){return{hasNext:g,isLoadingNext:h,loadNext:function(){q.logLoadStart({itemsToLoadCount:p,loadedItemsCount:i,pageSize:n,totalItemsCount:o}),f(p,{onComplete:function(a){a==null?q.logLoadSuccess():q.logLoadFail(a)}})},pageSize:p}},[g,h,p,f,i,q,o]);if(e==null)return null;e=d("SellerInsightsCollectionDetailProductsTableUtils").getColumnsConfig();return j.jsx(c("SellerInsightsTable.react"),{columns:e,data:a,loggingAnnotations:{"Chart Name":"Collection Product Variants Table",Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS},pagination:b,scrollable:!1})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsCollectionDetailTableQPLLogger",["SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=c("qpl")._(7092951,"142");a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs,this.sortKey=a.sortKey}var b=a.prototype;b.logLoadStart=function(a){var b=a.itemsToLoadCount,c=a.loadedItemsCount,e=a.pageSize;a=a.totalItemsCount;d("SellerInsightsLoggingUtils").scenarioRestart(h,{AccountID:this.accountID,Channel:this.channels.join(" and "),FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,NewPage:c+"-"+(c+b-1),PageIDs:this.pageIDs,PreviousPage:Math.max(c-e,0)+"-"+(c-1),Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,SortKey:this.sortKey,Total:String(a)})};b.logLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess([h],{})};b.logLoadFail=function(a){d("SellerInsightsLoggingUtils").scenarioFail([h],a!=null?{ErrorMessage:a.message,ErrorName:a.name}:{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})};return a}();g["default"]=a}),98);
-----
SellerInsightsProductFilter.react",["ix","AdsFBIconDownsized.react","AdsTypeaheadFilter.react","CommerceManagerComponentGatingContext","CommerceManagerContext","SFLUtilityMethods","SellerInsightsContext","SellerInsightsFbts","SellerInsightsFilterConfig","SellerInsightsHeroInteractionRoot","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsProductFilterUtils","SellerInsightsSearchParamsUtils","asyncToGeneratorRuntime","enumObjectKeys","immutable","qpl","react","useCommerceManagerRouter"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));a=i;var k=a.useCallback,l=a.useContext,m=a.useState;function n(a,b,c){d("SellerInsightsSearchParamsUtils").handleProductFilterChange({accountID:a,commerceManagerRouter:c,filters:b})}function o(a){return!a.find(function(a){a=(a=a.value)==null?void 0:a.value;return a instanceof c("immutable").OrderedSet&&a.size===0})}function p(a,b,e,f,g,h){var i=c("enumObjectKeys")(b).filter(function(a){return a==="metric"?b[a]!=null:b[a].length>0});if(i.length!==0||d("SellerInsightsProductFilterUtils").doSearchFiltersExist(location.search)){a={AccountID:a,Channel:e.join(", "),FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,SearchFieldUsed:i.map(String).sort(),Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS};d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7087889,"6962"),a);c("SellerInsightsHeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7082561,"1266"),"seller_insights_table_filter",a)}}function q(a){var e,f=a.filters;a=a.onChange;var g=l(c("SellerInsightsContext")),i=g.channels,s=g.igChannelIDs,t=g.fbChannelIDs,u=g.pageIDs;g=l(c("CommerceManagerComponentGatingContext"));g=g.checkoutStyle;var v=(e=l(c("CommerceManagerContext")).cmsID)!=null?e:"0",w=c("useCommerceManagerRouter")();e=m(d("SellerInsightsProductFilterUtils").useInitialFilters());var x=e[0],y=e[1];e=d("SellerInsightsProductFilterUtils").useProductMetricsSearchConfig();g=g==="ONSITE"?d("SellerInsightsProductFilterUtils").mergeFilterConfigs(d("SellerInsightsFilterConfig").PRODUCTS_CONFIG_WITH_PROMOTIONS,e):d("SellerInsightsFilterConfig").PRODUCTS_CONFIG_WITH_PROMOTIONS;var z=d("SFLUtilityMethods").useSflAwareLambda(k(function(a){a=d("SellerInsightsProductFilterUtils").makeHomogenousFilters(d("SellerInsightsProductFilterUtils").reduceMetricFilters(a));var b=d("SellerInsightsProductFilterUtils").parseFilters(a);o(a)&&p(v,b,i,s,t,u);n(v,b,w);y(a)},[i,v,w,t,s,u]),{action:"filter_products"},q);return j.jsx("div",{className:"x1iyjqo2 x1y332i5 x1jyxor1",children:j.jsx(c("AdsTypeaheadFilter.react"),{config:g,filters:(e=f)!=null?e:x,icon:j.jsx(r,{asset:h("407188"),onClick:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield z(x)})}),placeholder:d("SellerInsightsFbts").PRODUCT_SEARCH_PLACEHOLDER,style:{borderRadius:"6px"},onChange:(g=a)!=null?g:z})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var d=a.asset,e=a.onClick;return j.jsx("div",{className:"x1ypdohk x78zum5 xl56j7k x12nagc",children:j.jsx(c("AdsFBIconDownsized.react"),{src:d,onClick:b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield e})})})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=q}),98);
-----
AdsEventsManagerPixelEventOverviewLoggingConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["CATEGORY_TYPE_SELECTOR"]);c=b("$InternalEnum").Mirrored(["CLICK_CATEGORY_TYPE_SELECTOR"]);f.AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames=a;f.AdsEventsManagerPixelEventOverivewLoggingActions=c}),66);
-----
AdsEventsManagerPixelEventBreakdownTypeSelector.react",["fbt","AdsEventsManagerPixelEventBreakdownTypeEnum","AdsEventsManagerPixelEventOverviewLoggingConstants","AdsEventsManagerPixelEventOverviewTabNameLabels","GeoSelector.react","GeoSelectorItem.react","SignalsLoggingBoundary.react","react","signalsLoggingUserInputWithValueContextListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback;function a(a){var b=a.logger,e=a.selectedCategory,f=a.setSelectedCategory;a=k(function(a){f(a),b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames.CATEGORY_TYPE_SELECTOR,stringValue:a}}).scope(d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewLoggingActions.CLICK_CATEGORY_TYPE_SELECTOR).logSelect()},[b,f]);return j.jsx("div",{className:"x13ie5k6",children:j.jsx(c("GeoSelector.react"),{"data-testid":void 0,isLabelHidden:!0,label:h._("Show breakdown by {selected activity type}",[h._param("selected activity type",c("AdsEventsManagerPixelEventOverviewTabNameLabels")[e])]),value:e,onChange:a,children:Object.keys(c("AdsEventsManagerPixelEventBreakdownTypeEnum")).map(function(a){return j.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:c("AdsEventsManagerPixelEventOverviewTabNameLabels")[a],value:a},a)})})})}a.displayName=a.name+" [from "+f.id+"]";b=c("SignalsLoggingBoundary.react").loggerConsumingComponent(a);g["default"]=b}),226);
-----
AudienceManagerBlankState.react",["fbt","AdsCreateSavedAudienceTargetingDialogContainerWrapper.react","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsInterfacesLogger","AdsManagerEmptyStateInfo.react","AdsTargetingPotentialReachConstant","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerTieredLookalikeDialog.react","CometPlaceholder.react","GeoBaseText.react","GeoButton.react","GeoHeading.react","GeoLink.react","GeoNextAMUtils","GeoText.react","JSResource","Link.react","URI","geoMargin","gkx","immutable","isFalsey","lazyLoadComponent","react","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useRef,n=c("lazyLoadComponent")(c("JSResource")("AYMTAMGlobalBannerPopover.react").__setRef("AudienceManagerBlankState.react")),o=d("GeoNextAMUtils").isGeoNextEnabled();a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
AudienceManagerToolsBar.react",["fbt","invariant","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMConnectConfig","AdsAMViewShowBulkDeleteDialogAction","AdsAMViewShowBulkShareAudienceDialogAction","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowOptOutDialogAction","AdsAMViewShowPixelDialogAction","AdsAMViewShowRegularEditDialogAction","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAMViewShowWcaDialogAction","AdsAMViewStore","AdsAudienceDataSourceUtils","AdsCreateAudienceActionSelector.react","AdsFluxHooks","AdsInterfacesLogger","AdsPixelDialogTypes","AdsPixelViewActions","AdsTargetingAudienceActions","AdsTargetingAudienceEditorGKSelectors","AudienceManagerActionSelector.react","AudienceManagerColumnSelector.react","AudienceManagerDeleteAudiencesButton.react","AudienceManagerEditAudiencesButton.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerPlacement","AudienceManagerShareAudiencesButton.react","AudienceManagerUIConstants","BUIButton.react","DialogActions.brands","GeoToolbar.react","GeoToolbarFill.react","JSResource","ads-cluster-constants","adsAccountGK","adsCreateSelector","cr:9922","gkx","ifRequired","isSubscriberListAudience","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=(e=b("cr:9922"))!=null?e:c("adsCreateSelector")([],function(){return null},{name:f.id});function a(a){var b,e,g="basecode",j=d("AudienceManagerUIConstants").BULK_ACTION_TYPE,m=(b=d("AdsFluxHooks")).useAdsSelector(l);function n(b){var e=b.value;b=b.checked;a.controller.updateColumnShown(e,b);e=c("AdsAMViewStore").getColumnsShown();a.controller.saveColumnsShownSettings(e);d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.COLUMN_CUSTOMIZE,{column:function(a,b){return b.value},checked:function(a,b){return b.checked}});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_COLUMN_CUSTOMIZE},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function o(){return k.jsx(c("AudienceManagerColumnSelector.react"),{columnsShown:c("AdsAMViewStore").getColumnsShown(),onSelectorChange:n},"column_selector")}o.displayName=o.name+" [from "+f.id+"]";function p(){var b=h._("Opt Users Out");return k.jsx(c("BUIButton.react"),{label:b,onClick:a.handleOptOutUserButtonClicked},"opt_out_user_button")}p.displayName=p.name+" [from "+f.id+"]";function q(){return c("gkx")("21199")}function r(){d("DialogActions.brands").openDialog({isAsync:!0,dialogWidth:600,dialogResource:c("JSResource")("AddTagsDialogController.brands").__setRef("AudienceManagerToolsBar.react"),dialogProps:{selectedObjectIDs:a.selectedAudienceIDs,onCancelAddTags:d("DialogActions.brands").closeDialog}}),c("ifRequired")("AssetLibraryLogger.brands",function(b){b.logUserAction(b.EVENT_NAME.ADD_TAG_TO_OBJECT_BUTTON_CLICK,{selectedAssets:a.selectedAudienceIDs})})}function s(b){switch(b){case j.DELETE:c("AdsAMViewShowBulkDeleteDialogAction").dispatch({},{line:"180",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DELETE_CLICK);c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_BULK_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case j.CREATE_AD:d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_AD_CLICK);var e=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});a.controller.bulkCreateAd(e);break;case j.AUDIENCES_OVERLAP:a.handleAudienceOverlapButtonClicked();break;case j.SHARE:c("AdsAMViewShowBulkShareAudienceDialogAction").dispatch({audienceIDs:a.selectedAudienceIDs},{line:"201",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARE_CLICK);c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_SHARE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"add_tags":r();break;default:i(0,12342,b)}}function t(b){switch(b){case"audiences_overlap":a.handleAudienceOverlapButtonClicked();break;case"add_tags":r();break;default:i(0,12342,b)}}function u(b){var e,h=c("AdsAMAudienceStore").getState(a.selectedAudienceIDs[0]);switch(b){case"edit":((e=h.data_source)==null?void 0:e.sub_type)===c("AdsAudienceDataSourceUtils").SUBTYPES.WEB_PIXEL_HITS&&!d("AdsAMAudienceUtils").isSubscriberSegmentAudience(h==null?void 0:h.subtype)?c("AdsAMViewShowWcaDialogAction").dispatch({audienceId:h.id},{line:"245",module:"AudienceManagerToolsBar.react.js",moduleID:f.id}):c("AdsAMViewShowRegularEditDialogAction").dispatch({audienceId:h.id},{line:"249",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.EDIT_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_EDIT_CLICKED,data:(e={},e.targeting_ui_event_data=JSON.stringify(d("AudienceManagerLoggingUtils").getAudienceTypeForLog(h)),e)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"delete":c("AdsAMViewShowDeleteAudienceDialogAction").dispatch({audienceId:h.id},{line:"270",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DELETE_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"pixel":c("AdsAMViewShowPixelDialogAction").dispatch({audienceId:h.id},{line:"286",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AdsPixelViewActions").dialogTypeChange(c("AdsPixelDialogTypes").INTEGRATIONS_CMS,{integrationName:g});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.VIEW_PIXEL_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_VIEW_PIXEL_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"share":c("AdsAMViewShowShareAudienceDialogAction").dispatch({audienceId:h.id},{line:"306",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARE_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_SHARE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"lookalike":d("AdsTargetingAudienceActions").showCreateLookalikeAudienceDialog({id:h.id,name:h.name,sourceType:d("ads-cluster-constants").LOOKALIKE_SOURCE_TYPE.CUSTOM_AUDIENCE});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_LOOKALIKE_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_CREATE_LAL_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"optout":c("AdsAMViewShowOptOutDialogAction").dispatch({audienceId:h.id},{line:"343",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});break;case"audiences_overlap":a.handleAudienceOverlapButtonClicked();break;case"add_tags":r();break;default:i(0,3600,b)}}function v(b){var e,g=c("AdsAMAudienceStore").getState(a.selectedAudienceIDs[0]);switch(b){case"edit":d("AdsAMAudienceUtils").isSavedAudience(g)?c("AdsAMViewShowSavedAudienceEditDialogAction").dispatch({audienceId:g.id},{line:"366",module:"AudienceManagerToolsBar.react.js",moduleID:f.id}):c("AdsAMViewShowSavedTargetSpecDialogAction").dispatch({audienceId:g.id},{line:"370",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_EDIT_CLICKED,data:(e={},e.targeting_ui_event_data=JSON.stringify(d("AudienceManagerLoggingUtils").getAudienceTypeForLog(g)),e)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"delete":c("AdsAMViewShowBulkDeleteDialogAction").dispatch({},{line:"387",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"audiences_overlap":a.handleAudienceOverlapButtonClicked();break;case"add_tags":r();break;default:i(0,3600,b)}}function w(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerEditAudiencesButton.react"),{accountID:a.accountID,businessID:a.businessID,isAudienceCreationBlockedWithoutBM:q(),selectedAudiences:b,onBulkAction:s,onCAAction:u,onMultipleOverlapAction:t,onSTGAction:v},"edit_audience")}w.displayName=w.name+" [from "+f.id+"]";function x(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerDeleteAudiencesButton.react"),{accountID:a.accountID,selectedAudiences:b,onBulkAction:s,onCAAction:u,onMultipleOverlapAction:t,onSTGAction:v},"delete_audience")}x.displayName=x.name+" [from "+f.id+"]";function y(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerShareAudiencesButton.react"),{accountID:a.accountID,businessID:a.businessID,selectedAudiences:b,onBulkAction:s,onCAAction:u,onMultipleOverlapAction:t,onSTGAction:v},"share_audience")}y.displayName=y.name+" [from "+f.id+"]";function z(){return a.placement===c("AudienceManagerPlacement").POWER_EDITOR?h._("Create Ad Set"):h._("Create ad")}z.displayName=z.name+" [from "+f.id+"]";var A=b.useAdsSelector((e=d("AdsTargetingAudienceEditorGKSelectors")).messageMarketingAMGKBetaSelector),B=b.useAdsSelector(e.messageMarketingAMGKLiquiditySelector),C=b.useAdsSelector(e.subscriberDeletionAMGKSelector),D=b.useAdsSelector(e.subscriberDownloadGKSelector);function E(){var b=c("AdsAMAudienceStore").getAllAudiences(),e=b.filter(function(a){return d("isSubscriberListAudience").isSubscriberListAudience(a.subtype)});b=b.length===e.length;e=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});var f=c("AdsAMAudienceStore").getAccount();f=c("adsAccountGK")._(f,"2jJcF2Tn9");return k.jsx("div",{children:k.jsx(c("AudienceManagerActionSelector.react"),{accountID:a.accountID,businessID:a.businessID,canEditLabels:a.placement===c("AudienceManagerPlacement").BIZ_ASSET_LIBRARY,canSeeManageSubscribers:A||B,canSeePlatformWCAUI:!0,canUseOptOut:f,controller:a.controller,createAdlabel:z(),hasHitAudienceUpdateLimit:!1,isAudienceCreationBlockedWithoutBM:q(),isSubscriberDeleteEnabled:C,isSubscriberPoolExperienceEnabled:D,isViewingSubscribersOnly:b,nextAudienceUpdateAvailableTime:"",selectedAudiences:e,onAdCreate:a.onAdCreate,onBulkAction:s,onCAAction:u,onManageSubscribersClick:a.onManageSubscribersClick,onMultipleOverlapAction:t,onSTGAction:v})},"action_selector")}E.displayName=E.name+" [from "+f.id+"]";function F(){return k.jsx(c("AdsCreateAudienceActionSelector.react"),{aymtGlobalBannerTip:m,disabled:!a.canWrite&&!c("AdsAMConnectConfig").create_draft_audiences||a.isDisabledAdAccount,use:"primary",useSavedAudience:!0,onAction:a.onCreateAudienceClicked},"inline_create_button")}F.displayName=F.name+" [from "+f.id+"]";b=a.placement===c("AudienceManagerPlacement").BIZ_ASSET_LIBRARY;e=o();o=[];var G=c("gkx")("21206");G&&o.push(p());o.push(w());o.push(y());o.push(x());o.push(E());G=[e];(a.placement===c("AudienceManagerPlacement").NEW_ADS_MANAGER||b)&&a.hasContent&&o.unshift(F());return k.jsxs(c("GeoToolbar.react"),{children:[k.jsx(c("GeoToolbar.react"),{children:o}),k.jsx(c("GeoToolbarFill.react"),{}),k.jsx(c("GeoToolbar.react"),{children:G})]})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a);g["default"]=b}),226);
-----
AudienceManagerAudienceTable.react",["cx","AdsAMViewStore","AdsAudienceManagerFilterBarConstants","AdsAudienceManagerFilterBarUtils","AdsFluxHooks","AdsInterfacesLogger","AdsUnifiedAudienceManagerFilterBar.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerSearchBar.react","AudienceManagerSelectableTable.react","BUIDetailPaneActions.brands","FlexLayout.react","ScrollableArea.react","UnifiedAudiencesManagerAudienceDetailPaneConstants","adsCreateSelector","cr:9922","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=(e=b("cr:9922"))!=null?e:c("adsCreateSelector")([],function(){return null},{name:f.id});function a(a){var b=j.createRef(),e=d("AdsFluxHooks").useAdsSelector(k),g=284,h=14,i=300,l=56,m=47,n=d("AdsFluxHooks").useAdsSelector(c("AdsAMViewStore").getState),o=n.nameFilter,p=n.filterSet;function q(){a.controller.filterCAAndSTS(a.constructFilter()),d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SEARCH_COMPLETE,{search_string:o}),c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_FILTER_NAME_SEARCH},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function r(){return!!p}function s(a){c("AdsAMViewStore").setNameFilter(a?a.trim():a)}function t(d){c("AdsAMViewStore").setNameFilter(""),d&&a.controller.filterCAAndSTS(a.constructFilter()),b.current&&b.current.clearInput()}function u(b){d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.FILTER_PRESET_CHANGED,b||""),a.handleFilterSetChanged(b),c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_FILTER_LEFT_PRESET_CHANGED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),c("BUIDetailPaneActions.brands").close()}function v(a,b){a=d("AdsAudienceManagerFilterBarUtils").getAddedFilterSets(a,b);if(a.length===0)return;a.every(function(a){return c("AdsInterfacesLogger").log({eventName:d("AdsAudienceManagerFilterBarConstants").AdsAMFilterBarLogEvents[a.key]},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)})}function w(a,b){if(b.length===0&&a.length===0){u(null);return}var c=p;if(c==null)c=d("AdsAudienceManagerFilterBarUtils").mergeFilterSets(a);else{var e=[];b.forEach(function(a){e.push(a.filterSet)});c=d("AdsAudienceManagerFilterBarUtils").combineFilterSets(c,a);c=d("AdsAudienceManagerFilterBarUtils").excludeFilterSets(c,d("AdsAudienceManagerFilterBarUtils").getAddedFilterSets(a,e))}v(d("AdsAudienceManagerFilterBarUtils").getSelectedFilterSets(b,p),a);u(c)}var x=a.replaceDfca;function y(){return j.jsx(c("AdsUnifiedAudienceManagerFilterBar.react"),{filterSet:p,highlightAllAudiencesByDefault:!o,isFromDFCAReplaceUpsell:x,onClear:t,onSelect:w})}y.displayName=y.name+" [from "+f.id+"]";function z(a,b){b?d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SELECT_AUDIENCE,{audienceID:a}):d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.UNSELECT_AUDIENCE,{audienceID:a})}function A(){d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.LOAD_MORE_BY_SCROLLING),(c("AdsAMViewStore").getCustomAudienceAfterCursor()||c("AdsAMViewStore").getSavedTargetSpecAfterCursor()||a.controller.shouldFetchMore())&&a.controller.fetchMoreCAAndSTS(a.constructFilter(),c("AdsAMViewStore").getCustomAudienceAfterCursor(),c("AdsAMViewStore").getSavedTargetSpecAfterCursor())}function B(){var b=a.width-h*4-g,c=a.leftNavUIState.isCollapsed?l:i,e=a.clickedAudienceID!=null?d("UnifiedAudiencesManagerAudienceDetailPaneConstants").AUDIENCE_DETAILS_PANE_WIDTH:0;return b-c-e}n=a.getTableHeight();r()&&(n-=m);r={account_id:a.accountID};m=c("gkx")("21204");return j.jsx("div",{className:"_5dg_","data-testid":void 0,children:j.jsxs(c("FlexLayout.react"),{direction:"horizontal",children:[j.jsx("div",{className:"_83bi",style:{height:n},children:j.jsxs(c("ScrollableArea.react"),{maxHeight:a.height,children:[j.jsx(c("AudienceManagerSearchBar.react"),{ref:b,onKeywordsChanged:s,onKeywordsComplete:q},"search_bar"),y()]})}),j.jsx("div",{children:j.jsx(c("AudienceManagerSelectableTable.react"),{account:r,aymtGlobalChannelTip:e,businessID:a.businessID,canWrite:a.canWrite,dao:a.primedDao,height:n,isDisabledAccount:a.isDisabledAdAccount,isFromDFCAReplaceUpsell:x,isInAudienceRuleSummaryGK:m,offsiteConsolidatedContainers:a.offsiteConsolidatedContainers,placement:a.placement,selectedAudienceIDs:a.selectedAudienceIDs,useSavedAudience:!0,width:B(),onCheckboxSelect:z,onCreateAudienceClicked:a.onCreateAudienceClicked,onLastRowReached:A})})]})})}a.displayName=a.name+" [from "+f.id+"]";h=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=h}),98);
-----
AudienceManagerActionSelector.react",["fbt","ix","AdsAMAudienceUtils","AdsAudienceDataSourceUtils","AdsAudienceShoppingUtils","AdsBusinessManagerRequirementsConstants","AdsCustomAudienceType","AdsInterfacesLogger","AsyncRequest","AudienceDetailsPaneGeodesicUtils","AudienceManagerActionButtonConstants","AudienceManagerBulkActionUtils","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerSubscriberDownloadButton.react","AudienceManagerSubscriberDownloadUnsubscribeButton.react","AudienceManagerSubscriberListStrings","CustomAudienceUtils","GeoDropdownMenu.react","GeoMenuGroup.react","GeoMenuItem.react","GeoMenuSeparator.react","TargetingEUPrivacyDirectiveConstants","XCheckUserHasMMWABAPermissionControllerRouteBuilder","emptyFunction","fbicon","keyMirror","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=c("keyMirror")({SINGLE_SAVED_TARGET_GROUP:null,SINGLE_CUSTOM_AUDIENCE:null,MULTIPLE_SAVED_TARGET_GROUP:null,MULTIPLE_CUSTOM_AUDIENCE:null,MULTIPLE_MIXED:null,NONE:null});a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
AudienceManagerColumnHeaderRenderers",["AdsAMAudienceActions","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerUIConstants","FixedDataTableSortableHeader.react","GeoNextAMUtils","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=d("GeoNextAMUtils").isGeoNextEnabled(),l={labelButton:{textAlign:"x2b8uid",$$css:!0},labelGeo:{paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",height:"xg7h5cd",$$css:!0},labelNonGeo:{color:"x7ts22v",fontFamily:"x1ttago6",paddingTop:"xexx8yu",paddingEnd:"xn6708d",paddingBottom:"x18d9i69",paddingStart:"x1ye3gou",$$css:!0},labelNumber:{textAlign:"xp4054r",$$css:!0},labelStandard:{textAlign:"x1yc453h",$$css:!0}};function m(a){a=a&&a.headerAlign;return!a?null:(h||(h=c("stylex")))(a===d("AudienceManagerUIConstants").ALIGN.CENTER&&l.labelButton,a===d("AudienceManagerUIConstants").ALIGN.LEFT&&l.labelStandard,a===d("AudienceManagerUIConstants").ALIGN.RIGHT&&l.labelNumber,k&&c("geoMargin").horiz8,k&&l.labelGeo,!k&&l.labelNonGeo)}function a(a,b,c){return a!=null?j.jsx("div",{className:m(c),children:a}):null}a.displayName=a.name+" [from "+f.id+"]";function b(a,b,e){var f=e.currentSortState.sortKey===e.sortKey;b=f?e.currentSortState.sortOrder:null;var g=function(){d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SORT_HEADER_CLICK,{column:e.sortKey});var a=f&&e.currentSortState.sortOrder===d("AudienceManagerUIConstants").SORT_ORDER.ASC?d("AudienceManagerUIConstants").SORT_ORDER.DESC:d("AudienceManagerUIConstants").SORT_ORDER.ASC;d("AdsAMAudienceActions").sortAudience(a,e.sortKey,e.compareFunction)},h=m(e);return j.jsx(c("FixedDataTableSortableHeader.react"),{className:h||"",sorting:b,onClick:g,children:a})}b.displayName=b.name+" [from "+f.id+"]";g.renderHeader=a;g.renderSortableHeader=b}),98);
-----
AudienceDetailsPaneGeodesicContainer.react",["AdsAMAudienceUtils","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsCommonCustomAudienceUtils","AdsInterfacesLogger","AudienceDetailsPaneGeodesicHeader.react","AudienceDetailsPaneGeodesicTabGroupSection.react","AudienceDetailsPaneGeodesicUtils","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","FluxContainer","GeoCard.react","GeoNextAMUtils","GeoSpinner.react","MarketingMessagesAudienceEditSubscriberListClickFalcoEvent","UnifiedAudiencesManagerAudienceDetailPaneConstants","adsCreateStoreSelector","geoMargin","isSubscriberListAudience","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=d("GeoNextAMUtils").isGeoNextEnabled(),l=48,m=c("adsCreateStoreSelector")([c("AdsAudienceDetailStore")],function(){var a;return{audience:(a=c("AdsAudienceDetailStore")).getAudience(),lookalikes:a.getAudienceLookalikeNames(),isLoadingLookalikeContent:a.getIsLoadingAudienceLookalikeNames(),isPaneOpen:a.getIsUnifiedAudiencesManagerAudienceDetailPaneOpen()}},{name:f.id+".adsAudienceDetailStoreSelector"});a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
AudienceManagerAudienceNameColumnCellRenderer",["cx","AdsAMAudienceUtils","AdsInterfacesLogger","AdsPixelAndAudienceContextUtils","AudienceManagerAudienceNameContextualHelpDialog.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerPlacement","AudienceManagerUIConstants","BUILink.react","BUISimplePopover.react","GeoBaseText.react","UnifiedAudiencesManagerAudienceDetailPaneAction","clearTimeout","react","setTimeout"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=70,l=80,m=null;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var g=arguments.length,h=new Array(g),i=0;i
-----
SellerInsightsAdvancedTrendChartCard.react",["CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoButton.react","GeoFlexbox.react","GeoGlimmer.react","GeoPageCard.react","GeoSection.react","SellerInsightsAdvancedTrendChart.react","SellerInsightsAdvancedTrendChartCardQuery.graphql","SellerInsightsContext","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsMetricUtils","SellerInsightsTrendChartDetailDialog.react","SellerInsightsTrendChartDetailUtils","SellerInsightsWhatsNew","SellerInsightsWhatsNewFeatures","XCommerceManagerPerformanceController","react","useBoolean","useCommerceManagerRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=36,n=h!==void 0?h:h=b("SellerInsightsAdvancedTrendChartCardQuery.graphql");function o(a){var b=a.fullWidth;b=b===void 0?!1:b;a=a.metric;var e=l(c("CommerceManagerContext")),f=e.cmsID,g=c("useCommerceManagerRouter")(),h,i;switch(a){case"UNIQUE_VISITOR_COUNT":h=d("SellerInsightsFbts").VIEW_REPORT_AUDIENCE;i="audience";break;default:i="perf",h=d("SellerInsightsFbts").ALL_CONVERSION_TRENDS_LABEL}e=k(function(){var a=new URLSearchParams(location.search);a=c("XCommerceManagerPerformanceController").getURIBuilder().setFBID("account_id",f).setEnum("subtab",i).setParams(Object.fromEntries(a)).getURI();g.navigate(a.toString())},[f,i,g]);return j.jsx(c("GeoButton.react"),{grow:b?"fill":"auto",label:h,onClick:e})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.metric;a=a.showNUX;var e=a===void 0?!1:a;a=c("useBoolean")(!1);var f=a.value,g=a.setTrue;a=a.setFalse;var h=d("SellerInsightsMetricDefinitions").getPerformanceMetricName(b),i=d("SellerInsightsWhatsNew").useWhatsNew(),l=k(function(a){a!=null&&e&&i(d("SellerInsightsWhatsNewFeatures").SellerInsightsFeature.OverviewCTD,{current:a})},[i,e]);return j.jsxs(j.Fragment,{children:[j.jsx(c("GeoButton.react"),{containerRef:l,"data-testid":void 0,label:d("SellerInsightsFbts").METRIC_DETAIL_LABEL(h),variant:"primary",onClick:g}),j.jsx(c("SellerInsightsTrendChartDetailDialog.react"),{isShown:f,metric:b,onHide:a})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.effectiveDate,d=a.metric;a=a.showNUX;a=a===void 0?!1:a;var e=l(c("SellerInsightsContext"));e=e.dateRange;e=e.getDateInterval().end;e=b!=null&&e.isAfter(b);return e?j.jsxs(c("GeoFlexbox.react"),{justifyContent:"end",wrap:"wrap",xstyle:u.actions,children:[j.jsx(o,{metric:d}),j.jsx(p,{metric:d,showNUX:a})]}):j.jsx(c("GeoFlexbox.react"),{xstyle:u.actions,children:j.jsx(o,{fullWidth:!0,metric:d})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b,e=a.metric;a=a.showNUX;var f=l(c("CommerceManagerContext"));f=f.cmsID;var g=l(c("SellerInsightsContext")),h=g.channels;g=g.dateRange;var i=g.getDateInterval(),k=i.start;i=i.end;b=(b=g.getCompareDateInterval())!=null?b:g.getPrevDateInterval();g=b.start;b=b.end;f=d("CommerceManagerHooks").useCommerceManagerQuery(n,{channels:h,cmsID:(h=f)!=null?h:"0",endDate:i.toISOString(),metric:e,metrics:[e],prevEndDate:b.toISOString(),prevStartDate:g.toISOString(),startDate:k.toISOString()});h=d("SellerInsightsMetricUtils").useMetricResultFragment(f.node);i=d("SellerInsightsTrendChartDetailUtils").useEffectiveDate(f.node);if(h==null)return j.jsxs(j.Fragment,{children:[j.jsx(c("SellerInsightsAdvancedTrendChart.react"),{metric:e,state:d("SellerInsightsTrendChartDetailUtils").ContentState.Error}),j.jsx(q,{effectiveDate:i,metric:e})]});b=d("SellerInsightsMetricUtils").getMetricConfig(h,e);return b.currentValue===0?j.jsxs(j.Fragment,{children:[j.jsx(c("SellerInsightsAdvancedTrendChart.react"),{metric:e,state:d("SellerInsightsTrendChartDetailUtils").ContentState.Empty}),j.jsx(q,{effectiveDate:i,metric:e})]}):j.jsxs(j.Fragment,{children:[j.jsx(c("SellerInsightsAdvancedTrendChart.react"),{data:b,metric:e}),j.jsx(q,{effectiveDate:i,metric:e,showNUX:a})]})}r.displayName=r.name+" [from "+f.id+"]";function s(a){a=a.metric;return j.jsxs(j.Fragment,{children:[j.jsx(c("SellerInsightsAdvancedTrendChart.react"),{metric:a,state:d("SellerInsightsTrendChartDetailUtils").ContentState.Error}),j.jsx(q,{metric:a})]})}s.displayName=s.name+" [from "+f.id+"]";function t(a){a=a.metric;return j.jsxs(j.Fragment,{children:[j.jsx(c("SellerInsightsAdvancedTrendChart.react"),{metric:a,state:d("SellerInsightsTrendChartDetailUtils").ContentState.Loading}),j.jsx(c("GeoFlexbox.react"),{xstyle:u.actions,children:j.jsx(c("GeoGlimmer.react"),{height:m,index:2,width:"100%"})})]})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var b=a.columns,e=a.metric;a=a.showNUX;a=a===void 0?!1:a;var f=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense({Component:"ctd"});return j.jsx(c("GeoPageCard.react"),{columns:b,children:j.jsx(c("GeoSection.react"),{children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:function(a){return j.jsx(s,{metric:e})},loadingComponent:j.jsx(t,{metric:e}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ctd",ErrorMessage:a.message,ErrorName:a.name}),f(a)},children:j.jsx(r,{metric:e,showNUX:a})})})})}a.displayName=a.name+" [from "+f.id+"]";var u={actions:{rowGap:"x3pnbk8",columnGap:"xfex06f",marginTop:"xw7yly9",$$css:!0}};g["default"]=a}),98);
-----
SellerInsightsAccountOverviewContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerSuspense.react","GeoPageGroup.react","GeoSpinner.react","SellerInsightsAccountOverviewNewVersionContainer.react","SellerInsightsContext","SellerInsightsExitTabActionEnum","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsQPLLoggingHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useEffect;function a(){d("SellerInsightsQPLLoggingHooks").useLoggingForContainer("overview");var a=j(c("CommerceManagerContext")),b=a.cmsID;a=j(c("SellerInsightsContext"));var e=a.channels,f=a.igChannelIDs,g=a.fbChannelIDs;function h(){if(document.visibilityState==="visible")d("SellerInsightsLoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsLoggingUtils").handleActiveTabEventSuccess("overview",(a=b)!=null?a:"0",e,f,g,c("SellerInsightsExitTabActionEnum").TAB_CHANGE)}}k(function(){document.addEventListener("visibilitychange",h);return function(){document.removeEventListener("visibilitychange",h)}});var l=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();return i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("GeoSpinner.react"),{center:!0}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name}),l(a)},children:i.jsx(c("GeoPageGroup.react"),{columns:12,"data-testid":void 0,density:"sparse",children:i.jsx(c("SellerInsightsAccountOverviewNewVersionContainer.react"),{})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewProductRow.react",["ix","CommerceManagerComponentGatingContext","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoMediaItem.react","Image.react","RelayHooks","SellerInsightsAccountOverviewProductRow_account.graphql","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsNumberUtils","SellerInsightsQPLLoggingHooks","err","fbicon","geoMargin","qpl","react","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o={elementWrapper:{borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},grid:{display:"xrvj5dj",gridAutoFlow:"x1mt1orb",rowGap:"x3pnbk8",columnGap:"xfex06f",$$css:!0}},p=i!==void 0?i:i=b("SellerInsightsAccountOverviewProductRow_account.graphql");function q(a,b){switch(b){case"ONSITE":return a==="SALES"?"PDP_VIEWS":"SALES";case"OFFSITE":return a==="OUTBOUND_CLICKS"?"PDP_VIEWS":"OUTBOUND_CLICKS";case"CONTACT_MERCHANT":return a==="MESSAGE_TO_BUY"?"PDP_VIEWS":"MESSAGE_TO_BUY";default:throw c("err")("the current checkout style "+((a=b)!=null?a:"")+" is not supported!")}}function r(a){switch(a){case"SALES":return d("SellerInsightsMetricDefinitions").getPerformanceMetricName("SALES",!0);case"PDP_VIEWS":return d("SellerInsightsMetricDefinitions").getPerformanceMetricName("PDP_VIEWS");case"ADD_TO_WISHLIST":return d("SellerInsightsMetricDefinitions").getPerformanceMetricName("ADD_TO_WISHLIST");case"OUTBOUND_CLICKS":return d("SellerInsightsMetricDefinitions").getPerformanceMetricName("OUTBOUND_CLICKS");case"MESSAGE_TO_BUY":return d("SellerInsightsMetricDefinitions").getPerformanceMetricName("MESSAGE_TO_BUY");default:throw c("err")("the current metric "+a+" is not supported!")}}function s(a,b){var e;switch(b){case"SALES":return a==null?void 0:(e=a.totalSales)==null?void 0:e.formattedAmount;case"PDP_VIEWS":return(a==null?void 0:a.pdpViewsCount)!=null?d("SellerInsightsNumberUtils").formatCount(a==null?void 0:a.pdpViewsCount):null;case"ADD_TO_WISHLIST":return(a==null?void 0:a.addToWishListCount)!=null?d("SellerInsightsNumberUtils").formatCount(a==null?void 0:a.addToWishListCount):null;case"OUTBOUND_CLICKS":return(a==null?void 0:a.outboundClickCount)!=null?d("SellerInsightsNumberUtils").formatCount(a==null?void 0:a.outboundClickCount):null;case"MESSAGE_TO_BUY":return(a==null?void 0:a.messageToBuyCount)!=null?d("SellerInsightsNumberUtils").formatCount(a==null?void 0:a.messageToBuyCount):null;default:throw c("err")("the current metric "+b+" is not supported!")}}function t(a){var b=a.currentData;a=a.sortMetric;var d=m(c("CommerceManagerComponentGatingContext"));d=d.checkoutStyle;a=a;d=q(a,d);var e=r(a);a=s(b,a);var f=r(d);b=s(b,d);return l.jsxs(l.Fragment,{children:[l.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[l.jsx(d=c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:e}),l.jsx(d,{color:"value",display:"truncate",size:"header4",weight:"normal",children:a})]}),l.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[l.jsx(d,{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:f}),l.jsx(d,{color:"value",display:"truncate",size:"header4",weight:"normal",children:b})]})]})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b=a.currentData,e=a.imageURL,f=a.index,g=a.sortMetric;a=a.title;var i=c("useGeoTheme")(),k=i.selectBorderColor;i=i.selectBorderRadius;f=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredProductIndex:f,HoveredProductName:(f=a)!=null?f:d("SellerInsightsFbts").PRODUCT_GROUP_NO_TITLE_AVAILABLE.toString(),SortMetric:g},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return l.jsx("div",{className:(j||(j=c("stylex")))(i({context:"content"}),k({color:"element"}),o.elementWrapper),onMouseEnter:f,onMouseLeave:f.reset,children:l.jsxs(c("GeoHStack.react"),{children:[l.jsx(c("GeoMediaItem.react"),{fit:"cover",media:e!=null?l.jsx(c("Image.react"),{src:e}):l.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("481805"),16)}),ratio:"square",size:64}),l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(c("GeoHeading.react"),{display:"truncate",level:4,xstyle:c("geoMargin").bottom4,children:(i=a)!=null?i:d("SellerInsightsFbts").PRODUCT_GROUP_NO_TITLE_AVAILABLE}),l.jsx(t,{currentData:b,sortMetric:g})]})]})})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.data,e=a.sortMetric,f=b==null?void 0:(a=b.sellerProductInsights)==null?void 0:(b=a.productGroupInsights)==null?void 0:(a=b.query)==null?void 0:a.nodes;b=r(e);d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(f==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"product_row_view"});n(function(){f==null&&d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"product_row_view",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})});if(f==null)return l.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error});return f.length===0?l.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").NoData}):l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",size:"value",children:d("SellerInsightsFbts").OVERVIEW_PRODUCT_ORDER_BY_METRIC(b)}),l.jsx("div",{className:(j||(j=c("stylex")))(o.grid,c("geoMargin").bottom16,c("geoMargin").top4),children:f.map(function(a,b){var c,d,f;c=a==null?void 0:(c=a.data)==null?void 0:c.current;d=a==null?void 0:(d=a.data)==null?void 0:d.product_items;a=a==null?void 0:(a=a.data)==null?void 0:(a=a.current)==null?void 0:a.product_group;d=d==null?void 0:d[0];f=(f=d==null?void 0:(f=d.current)==null?void 0:(f=f.product)==null?void 0:(f=f.main_image)==null?void 0:(f=f.image)==null?void 0:f.downloadable_uri)!=null?f:a==null?void 0:(f=a.representative_item)==null?void 0:(f=f.main_image)==null?void 0:(f=f.image)==null?void 0:f.downloadable_uri;d=(d=d==null?void 0:(d=d.current)==null?void 0:(d=d.product)==null?void 0:d.name)!=null?d:a==null?void 0:a.name;return l.jsx(u,{currentData:c,imageURL:f,index:b,sortMetric:e,title:d},b)})})]})}v.displayName=v.name+" [from "+f.id+"]";function a(a){var b=a.account;a=a.sortMetric;b=d("RelayHooks").useFragment(p,b);return l.jsx(v,{data:b,sortMetric:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewNewPerfCard.react",["RelayHooks","SellerInsightsAccountOverviewNewPerfCard_metricData.graphql","SellerInsightsAccountOverviewPerfCardGrid.react","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect,l=h!==void 0?h:h=b("SellerInsightsAccountOverviewNewPerfCard_metricData.graphql");function a(a){var b,e=d("RelayHooks").useFragment(l,a.metricsData);a=a.metrics.map(function(a){return d("SellerInsightsMetricUtils").getMetricConfig(e,a)});d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler((e==null?void 0:(b=e.accountInsights)==null?void 0:b.insightsMetricsTimeline)==null||(e==null?void 0:(b=e.accountInsights)==null?void 0:b.insightsMetrics)==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"perf_card"});k(function(){var a;((e==null?void 0:(a=e.accountInsights)==null?void 0:a.insightsMetricsTimeline)==null||(e==null?void 0:(a=e.accountInsights)==null?void 0:a.insightsMetrics)==null)&&d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"perf_card",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})});return(e==null?void 0:(b=e.accountInsights)==null?void 0:b.insightsMetricsTimeline)==null||(e==null?void 0:(b=e.accountInsights)==null?void 0:b.insightsMetrics)==null?j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error}):j.jsx(c("SellerInsightsAccountOverviewPerfCardGrid.react"),{metricConfigs:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewProductGrid.react",["CommerceManagerComponentGatingContext","SellerInsightsAccountOverviewProductRowContainer.react","SellerInsightsLoggingConstants","SellerInsightsNewOverviewComponentWithIGEnum","SellerInsightsNewOverviewComponentWithoutIGEnum","SellerInsightsNewOverviewVistorsComponentEnum","SellerInsightsOverviewLoggingUtils","err","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useEffect,l=[];function m(a){switch(a){case"ONSITE":return["PDP_VIEWS","ADD_TO_WISHLIST","SALES"];case"OFFSITE":return["PDP_VIEWS","ADD_TO_WISHLIST"];case"CONTACT_MERCHANT":return["PDP_VIEWS","ADD_TO_WISHLIST"];default:throw c("err")("Checkout style "+((a=a)!=null?a:"")+" is not supported!")}}function n(a){a.forEach(function(a,b){l[b]=!1})}function o(a,b){l[a]=!0;a=!0;l.forEach(function(b){b||(a=!1)});a&&(d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllVisitorComponentsLoadedInOverview(c("SellerInsightsNewOverviewVistorsComponentEnum").PRODUCT,[c("qpl")._(7085498,"15910")]),b?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").PRODUCT,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithoutIGEnum").PRODUCT,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS))}function a(){var a=j(c("CommerceManagerComponentGatingContext"));a=a.checkoutStyle;var b=m(a);k(function(){n(b)},[]);return i.jsx("div",{className:"x1e56ztr",children:b.map(function(a,b){return i.jsx(c("SellerInsightsAccountOverviewProductRowContainer.react"),{metric:a,rowIndex:b,onRowSuccessfullyLoaded:o},a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewNewIGReports.react",["CommerceManagerContext","CommerceManagerHooks","GeoSection.react","ScrollableArea.react","SellerInsightsAccountOverviewNewIGReportsQuery.graphql","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsNewOverviewComponentWithIGEnum","SellerInsightsOverviewLoggingUtils","ShopSettingsReportRow.react","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsAccountOverviewNewIGReportsQuery.graphql");function n(a){d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7088956,"7608")],{},a)}function o(a,b){var e;d("SellerInsightsLoggingUtils").scenarioFail([c("qpl")._(7088956,"7608")],{ErrorMessage:(e=(e=a.errorMsg)==null?void 0:e.toString())!=null?e:"",ErrorName:(e=a.errorCode)!=null?e:""},b)}function a(){var a=k(c("SellerInsightsContext")),b=a.channels,e=a.fbChannelIDs,f=a.igChannelIDs,g=a.pageIDs;a=k(c("CommerceManagerContext"));var h=a.cmsID;d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsNewOverviewComponentWithIGEnum").IG_EXPORT);a=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(a=h)!=null?a:"0"});var i=a.account;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler((i==null?void 0:i.insightReports)==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ig_report"});l(function(){(i==null?void 0:i.insightReports)==null?d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ig_report",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS}):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").IG_EXPORT,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return(i==null?void 0:i.insightReports)==null?j.jsx(c("GeoSection.react"),{children:j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error})}):j.jsx(c("ScrollableArea.react"),{fade:!1,maxHeight:200,children:i==null?void 0:(a=i.insightReports)==null?void 0:a.map(function(a,i){return j.jsx(c("ShopSettingsReportRow.react"),{inProgressText:d("SellerInsightsFbts").REPORT_SUBTEXT_IN_PROGRESS,report:a,onDownloadError:o,onDownloadStart:function(a,i){var j;d("SellerInsightsLoggingUtils").scenarioStart(c("qpl")._(7088956,"7608"),{AccountID:(j=h)!=null?j:"0",Channel:b.join(" and "),FBChannelIDs:e,IGChannelIDs:f,PageIDs:g,ReportID:(j=a)!=null?j:"",Section:"overview"},i)},onDownloadSuccess:n},i)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewPerfCardGrid.react",["GeoFlexbox.react","GeoSection.react","SellerInsightsChartUtils.next","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsLoggingConstants","SellerInsightsMetricCard.react","SellerInsightsQPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={container:{flexGrow:"x1iyjqo2",height:"xw1mjr9",marginEnd:"x19f6ikt",marginLeft:null,marginRight:null,$$css:!0},errorCardContainer:{height:"x1mzar3b",$$css:!0}};function k(a){a=a.metricConfig;var b=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredMetrics:a.title.toString()},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return i.jsx("div",{className:"x9f619 x78zum5 x1iyjqo2 xktsk01 x1f1nlb9",onMouseEnter:b,onMouseLeave:b.reset,children:i.jsx(c("SellerInsightsMetricCard.react"),{chartColor:d("SellerInsightsChartUtils.next").getOverviewChartColor(a.metric),chartData:a.chartData,chartValueFormatter:a.chartValueFormatter,compact:!0,currency:a.currency,currentValue:a.currentValue,effectiveDate:a.effectiveDate,infoText:a.infoText,isEstimated:a.isEstimated,isNegativeGood:a.isNegativeGood,isReviewed:a.isReviewed,metricFormat:a.renderType,metricName:a.metric,prevValue:a.prevValue,title:a.title,unavailableDates:a.unavailableDates,value:a.value})})}k.displayName=k.name+" [from "+f.id+"]";function a(a){a=a.metricConfigs;return a.every(function(a){return a.currentValue===0})?i.jsx(c("GeoSection.react"),{children:i.jsx("div",{"data-testid":void 0,children:i.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").NoData,xstyle:j.errorCardContainer})})}):i.jsx(c("GeoFlexbox.react"),{xstyle:j.container,children:a.map(function(a,b){return i.jsx(k,{metricConfig:a},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountNewOverviewAudienceCard.react",["CommerceManagerContext","CommerceManagerHooks","GeoHStack.react","GeoSection.react","SellerInsightsAccountNewOverviewAudienceCardQuery.graphql","SellerInsightsAccountOverviewAgeGenderBreakdownChart.react","SellerInsightsAccountOverviewContext","SellerInsightsAccountOverviewGenderDountChart.react","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsNewOverviewComponentWithIGEnum","SellerInsightsNewOverviewComponentWithoutIGEnum","SellerInsightsNewOverviewVistorsComponentEnum","SellerInsightsOverviewLoggingUtils","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsAccountNewOverviewAudienceCardQuery.graphql");function a(){var a=k(c("CommerceManagerContext"));a=a.cmsID;var b=k(c("SellerInsightsContext")),e=b.channels;b=b.dateRange;var f=k(c("SellerInsightsAccountOverviewContext"));f=f.followerFilterValue;b=b.getDateInterval();var g=b.start;b=b.end;d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsNewOverviewComponentWithIGEnum").AUDIENCE);a=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(a=a)!=null?a:"0",channels:e,endDate:b.toISOString(),followerFilter:f,startDate:g.toISOString()});var h=a.account,i=h==null?void 0:(b=h.sellerAudienceInsights)==null?void 0:(f=b.metricInsights)==null?void 0:f.breakdowns;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler((h==null?void 0:(g=h.sellerAudienceInsights)==null?void 0:(a=g.metricInsights)==null?void 0:a.isRedacted)!==!0&&i==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"audience"});l(function(){var a;(h==null?void 0:(a=h.sellerAudienceInsights)==null?void 0:(a=a.metricInsights)==null?void 0:a.isRedacted)===!0?(d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllVisitorComponentsLoadedInOverview(c("SellerInsightsNewOverviewVistorsComponentEnum").AUDIENCE,[c("qpl")._(7085498,"15910")],void 0,{EmptyCardReason:d("SellerInsightsLoggingConstants").NOT_ENOUGH_DATA}),e.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").AUDIENCE,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{EmptyCardReason:d("SellerInsightsLoggingConstants").NOT_ENOUGH_DATA}):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithoutIGEnum").AUDIENCE,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{EmptyCardReason:d("SellerInsightsLoggingConstants").NOT_ENOUGH_DATA})):i==null?d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"audience",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS}):(d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllVisitorComponentsLoadedInOverview(c("SellerInsightsNewOverviewVistorsComponentEnum").AUDIENCE,[c("qpl")._(7085498,"15910")]),e.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").AUDIENCE,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithoutIGEnum").AUDIENCE,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS))});if((h==null?void 0:(b=h.sellerAudienceInsights)==null?void 0:(f=b.metricInsights)==null?void 0:f.isRedacted)===!0)return j.jsx(c("GeoSection.react"),{children:j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").NotEnoughData})});if(i==null)return j.jsx(c("GeoSection.react"),{children:j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error})});g=i.gender;return j.jsx(c("GeoSection.react"),{children:j.jsxs(c("GeoHStack.react"),{alignItems:"start",children:[j.jsx(c("SellerInsightsAccountOverviewGenderDountChart.react"),{data:g}),j.jsx(c("SellerInsightsAccountOverviewAgeGenderBreakdownChart.react"),{account:i})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewGenderDountChart.react",["GeoBaseSpacingLayout.react","GeoChartBaseLegend.react","GeoChartPalette","GeoChartTooltip.react","GeoDonutChart.react","GeoFlexbox.react","GeoHeading.react","GeoPrivateChartPaletteContext","SellerInsightsAudienceGenderValue","SellerInsightsAudiencePieChart.next.react","SellerInsightsAudienceUtils","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsQPLLoggingHooks","filterNulls","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useMemo,l={chart:{height:"x127qqk8",width:"xqyf9gi",$$css:!0}};function m(a){a=a.chartData;var b=j(c("GeoPrivateChartPaletteContext")),d=b.getColor;return i.jsx(c("GeoFlexbox.react"),{justifyContent:"start",children:i.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",grow:"auto",relation:"related",wrap:!0,children:a.map(function(a,b){var e=a.name;a=a.value;b=d(b);return i.jsx(c("GeoChartBaseLegend.react"),{color:b,"data-testid":void 0,description:a.toString()+"%",label:e,variant:"bar"},e)})})})}m.displayName=m.name+" [from "+f.id+"]";function a(a){var b=a.data,e=Array.from(c("SellerInsightsAudienceGenderValue").members()).sort(function(a,b){return d("SellerInsightsAudienceUtils").compareGenders(a,b)});a=k(function(){return c("filterNulls")(e.map(function(a){var e,f=b.find(function(b){b=c("SellerInsightsAudienceGenderValue").cast(b.name);return b===a});return f==null?null:{key:(e=f.name)!=null?e:"",name:d("SellerInsightsAudienceUtils").getGenderFbt(a),value:(e=f.value)!=null?e:0}}))},[b,e]);var f=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredAudienceChart:"Dount chart"},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return i.jsxs("div",{children:[i.jsx(c("GeoHeading.react"),{level:4,children:d("SellerInsightsFbts").GENDER_BREAKDOWN_SECTION_TITLE}),i.jsx("div",{className:"x16hk5td x1xmf6yo",onMouseEnter:f,onMouseLeave:f.reset,children:i.jsx(c("GeoDonutChart.react"),{data:a,header:i.jsx(m,{chartData:a}),isLabelHidden:!0,label:"",palette:c("GeoChartPalette").Leading1,tooltipRenderer:function(a){var b=a.name;a=a.percentage;return i.jsx(c("GeoChartTooltip.react"),{content:i.jsx(d("SellerInsightsAudiencePieChart.next.react").ChartTooltipContent,{name:b,percentage:a})})},xstyle:l.chart})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewNewPerfContainer.react",["GeoCardHeader.react","SellerInsightsAccountOverviewNewPerfCardContainer.react","SellerInsightsAccountOverviewUniversalContainer.react","SellerInsightsFbts","SellerInsightsLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.metrics;return i.jsx(c("SellerInsightsAccountOverviewUniversalContainer.react"),{cardHeader:i.jsx(c("GeoCardHeader.react"),{heading:d("SellerInsightsFbts").NEW_OVERVIEW_PERFORMANCE_CARD_HEADER}),"data-testid":void 0,destSubtab:"perf",isGeoCardComponent:!0,linkLabel:d("SellerInsightsFbts").VIEW_REPORT_PERF,logEventNames:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,sflAction:"view_performance_report",children:i.jsx(c("SellerInsightsAccountOverviewNewPerfCardContainer.react"),{metrics:a})})}a.displayName=a.name+" [from "+f.id+"]";g.SellerInsightsAccountOverviewNewPerfContainer=a}),98);
-----
SellerInsightsAccountOverviewAudienceContainer.react",["SellerInsightsAccountNewOverviewAudienceCard.react","SellerInsightsAccountOverviewUniversalContainer.react","SellerInsightsFbts","SellerInsightsLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsx(c("SellerInsightsAccountOverviewUniversalContainer.react"),{"data-testid":void 0,destSubtab:"audience",isGeoCardComponent:!1,linkLabel:d("SellerInsightsFbts").VIEW_REPORT_AUDIENCE,logEventNames:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,sflAction:"view_audience_report",children:i.jsx(c("SellerInsightsAccountNewOverviewAudienceCard.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewProductRowContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsAccountOverviewContext","SellerInsightsAccountOverviewProductRow.react","SellerInsightsAccountOverviewProductRowContainerQuery.graphql","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsNewOverviewComponentWithIGEnum","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsAccountOverviewProductRowContainerQuery.graphql");function a(a){var b,e=a.rowIndex,f=a.onRowSuccessfullyLoaded,g=a.metric,h=k(c("CommerceManagerContext"));h=h.cmsID;var i=k(c("SellerInsightsContext")),n=i.channels;i=i.dateRange;var o=k(c("SellerInsightsAccountOverviewContext"));o=o.followerFilterValue;var p=i.getDateInterval(),q=p.start;p=p.end;b=(b=i.getCompareDateInterval())!=null?b:i.getPrevDateInterval();i=b.start;b=b.end;var r={category:[],collection:[],name:[],promotion:[],variant:[]};d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsNewOverviewComponentWithIGEnum").PRODUCT);d("SellerInsightsLoggingUtils").scenarioAnnotate(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{IsUsingSaberFullProductQuery:!0});h=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(h=h)!=null?h:"0",channels:n,endDate:p.toISOString(),followerFilter:o,prevEndDate:b.toISOString(),prevStartDate:i.toISOString(),productFilteringData:r,productInsightSortingDirection:"DESCENDING",productInsightSortingKey:a.metric,startDate:q.toISOString()});var s=h.account;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(s==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"product_row"});l(function(){s==null?d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"product_row",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS}):f(e,n.includes("INSTAGRAM"))});return s==null?j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error}):j.jsx(c("SellerInsightsAccountOverviewProductRow.react"),{account:s,sortMetric:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewTopProductContainer.react",["GeoTextPairing.react","SellerInsightsAccountOverviewContext","SellerInsightsAccountOverviewProductGrid.react","SellerInsightsAccountOverviewUniversalContainer.react","SellerInsightsActionabilityTipContainer.react","SellerInsightsFbts","SellerInsightsLoggingConstants","geoMargin","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(){var a=k();return i.jsx(c("SellerInsightsAccountOverviewUniversalContainer.react"),{"data-testid":void 0,destSubtab:"products",header:i.jsx(c("GeoTextPairing.react"),{description:void 0,heading:a,overflowWrap:"break-word",size:"header3",xstyle:c("geoMargin").bottom12}),isGeoCardComponent:!1,linkLabel:d("SellerInsightsFbts").VIEW_REPORT_PRODUCT,logEventNames:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,recommendationCard:i.jsx(c("SellerInsightsActionabilityTipContainer.react"),{tipLocation:"OVERVIEW_PRODUCTS"}),sflAction:"view_product_report",children:i.jsx(c("SellerInsightsAccountOverviewProductGrid.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";function k(){var a=j(c("SellerInsightsAccountOverviewContext"));a=a.followerFilterValue;switch(a){case"FOLLOWER":return d("SellerInsightsFbts").ENGAGED_PRODUCT_FOLLOWERS;case"NON_FOLLOWER":return d("SellerInsightsFbts").ENGAGED_PRODUCT_NON_FOLLOWERS;case"ALL":return d("SellerInsightsFbts").ENGAGED_PRODUCT_ALL;default:return d("SellerInsightsFbts").ENGAGED_PRODUCT_THEY}}g["default"]=a}),98);
-----
SellerInsightsAccountOverviewNewPerfCardContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsAccountOverviewNewPerfCard.react","SellerInsightsAccountOverviewNewPerfCardContainerQuery.graphql","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsNewOverviewComponentWithIGEnum","SellerInsightsNewOverviewComponentWithoutIGEnum","SellerInsightsOverviewLoggingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsAccountOverviewNewPerfCardContainerQuery.graphql");function a(a){var b;a=a.metrics;a=a;var e=k(c("CommerceManagerContext"));e=e.cmsID;var f=k(c("SellerInsightsContext")),g=f.channels;f=f.dateRange;var h=f.getDateInterval(),i=h.start;h=h.end;b=(b=f.getCompareDateInterval())!=null?b:f.getPrevDateInterval();f=b.start;b=b.end;d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsNewOverviewComponentWithIGEnum").PERF);e=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(e=e)!=null?e:"0",channels:g,endDate:h.toISOString(),metrics:a,prevEndDate:b.toISOString(),prevStartDate:f.toISOString(),startDate:i.toISOString()});var n=e.account;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(n==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"perf"});l(function(){n==null?d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"perf",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS}):g.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").PERF,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithoutIGEnum").PERF,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return!n?j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error}):j.jsx(c("SellerInsightsAccountOverviewNewPerfCard.react"),{metrics:a,metricsData:n})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewTopTaggedProductGrid.react",["ix","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoMediaItem.react","GeoSection.react","GeoTooltip.react","Image.react","RelayHooks","SellerInsightsAccountOverviewTopTaggedProductGrid_account.graphql","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsQPLLoggingHooks","SellerInsightsTaggedContentUtils","SellerInsightsV2MetricNames","err","fbicon","geoMargin","qpl","react","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o={elementWrapper:{borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}},p=i!==void 0?i:i=b("SellerInsightsAccountOverviewTopTaggedProductGrid_account.graphql");function q(a){a=a.topTaggedContent;var b=a.content_type;a=a==null?void 0:(a=a.content)==null?void 0:a.date;return l.jsx(c("GeoBaseSpacingLayout.react"),{align:"center",xstyle:c("geoMargin").bottom8,children:l.jsx(c("GeoBaseText.react"),{color:"heading",display:"truncate",isDisabled:!0,size:"accent",children:d("SellerInsightsFbts").OVERVIEW_TAGGED_PRODUCT_SOURCE_AND_DATE(b,a)})})}q.displayName=q.name+" [from "+f.id+"]";function r(a){switch(a){case"ONSITE":return"PURCHASE";case"OFFSITE":return"PDP_CLICK_TO_WEBSITE";default:throw c("err")("the checkout style: "+a+" is not supported!")}}function s(a,b){a=l.jsx(c("GeoBaseText.react"),{color:"value",size:"header4",weight:"normal",children:a});return b!=null?l.jsx(c("GeoTooltip.react"),{content:b,children:a}):a}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,e=a.attributionCheckoutStyle,f=a.sortingMetric;a=a.topTaggedContent;var g=m(c("SellerInsightsContext"));g=g.dateRange;g=d("SellerInsightsTaggedContentUtils").useTCDataRenderer(null,g.getDateInterval().start);a=a==null?void 0:a.metric_data;e=r(e);var h=a==null?void 0:a.find(function(a){return(a==null?void 0:a.metric)===f});b=(b=c("SellerInsightsV2MetricNames").ATTRIBUTION_INSIGHTS[(b=h==null?void 0:h.metric)!=null?b:""])!=null?b:h==null?void 0:h.metric;var i=f!==e?e:"CONTENT_VIEW";e=a==null?void 0:a.find(function(a){return(a==null?void 0:a.metric)===i});a=(a=c("SellerInsightsV2MetricNames").ATTRIBUTION_INSIGHTS[(a=e==null?void 0:e.metric)!=null?a:""])!=null?a:e==null?void 0:e.metric;a=l.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[l.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:a}),g(i,e==null?void 0:e.format,e==null?void 0:e.value,s)]});return l.jsxs(l.Fragment,{children:[l.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[l.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:b}),g(f,h==null?void 0:h.format,h==null?void 0:h.value,s)]}),a]})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b,e=a.index,f=a.sortingMetric;a=a.topTaggedContent;var g=c("useGeoTheme")(),i=g.selectBorderColor;g=g.selectBorderRadius;var k=m(c("SellerInsightsContext"));k=k.attributionCheckoutStyle;b=a==null?void 0:(b=a.content)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri;e=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredTaggedProductIndex:e},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return l.jsx("div",{className:(j||(j=c("stylex")))(g({context:"content"}),i({color:"element"}),o.elementWrapper),onMouseEnter:e,onMouseLeave:e.reset,children:l.jsxs(c("GeoHStack.react"),{children:[l.jsx(c("GeoMediaItem.react"),{fit:"cover",media:b!=null?l.jsx(c("Image.react"),{src:b}):l.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("481805"),16)}),ratio:"square",size:96}),l.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[l.jsx(c("GeoHeading.react"),{display:"truncate",level:4,xstyle:c("geoMargin").vert4,children:(i=a==null?void 0:(g=a.content)==null?void 0:g.title)!=null?i:d("SellerInsightsFbts").PRODUCT_TAGGED_CONTENT_NO_DETAILS_AVAILBLE}),l.jsx(q,{topTaggedContent:a}),l.jsx(t,{attributionCheckoutStyle:k,sortingMetric:f,topTaggedContent:a})]})]})})}u.displayName=u.name+" [from "+f.id+"]";function a(a){var b=a.account,e=a.sortingMetric;a=d("RelayHooks").useFragment(p,b);b=a.sellerAttributionInsights;var f=b==null?void 0:(a=b.metricInsights)==null?void 0:a.topTaggedContent;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(f==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ptc_card"});n(function(){f==null&&d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ptc_card",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})});if(f==null)return l.jsx(c("GeoSection.react"),{children:l.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error})});return f.length===0?l.jsx(c("GeoSection.react"),{children:l.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").NoData})}):l.jsx("div",{className:"xrvj5dj x1mt1orb x3pnbk8 xfex06f",children:f.map(function(a,b){return l.jsx(u,{index:b,sortingMetric:e,topTaggedContent:a},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewAgeGenderBreakdownChart.react",["GeoHeading.react","RelayHooks","SellerInsightsAccountOverviewAgeGenderBreakdownChart_MetricResult.graphql","SellerInsightsAudienceAgeBucket","SellerInsightsAudienceUtils","SellerInsightsAudienceVerticalChart.next.react","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsQPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=h!==void 0?h:h=b("SellerInsightsAccountOverviewAgeGenderBreakdownChart_MetricResult.graphql"),l=280;function m(a){a=a.breakdowns;var b=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredAudienceChart:"Bar breakdown chart"},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return!a||a.length===0?j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error}):j.jsxs("div",{className:"xrvj5dj x3pnbk8 xfex06f x1q1w665 x1t7mnj6",onMouseEnter:b,onMouseLeave:b.reset,children:[j.jsx(c("GeoHeading.react"),{level:4,children:d("SellerInsightsFbts").AGE_DISTRIBUTION_TITLE}),j.jsx(c("SellerInsightsAudienceVerticalChart.next.react"),{breakdowns:a,excludeBuckets:[c("SellerInsightsAudienceAgeBucket").AGES_UNDER_13],height:l,hideLegend:!1})]})}m.displayName=m.name+" [from "+f.id+"]";function a(a){a=a.account;a=d("RelayHooks").useFragment(k,a);a=d("SellerInsightsAudienceUtils").getAgeGenderBreakdowns(a==null?void 0:a.age_gender);return j.jsx(m,{breakdowns:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewNewIGCreateReportDialog.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsAccountOverviewNewIGCreateReportDialogQuery.graphql","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","ShopInsightsExportReportDialogContainer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsAccountOverviewNewIGCreateReportDialogQuery.graphql");function a(a){var b=a.logger;a=a.onHide;var e=k(c("CommerceManagerContext"));e=e.cmsID;e=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(e=e)!=null?e:"0"});var f=e.account;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(f==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ig_create_report"});l(function(){f==null&&d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ig_create_report",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})});return f==null?j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error}):j.jsx(c("ShopInsightsExportReportDialogContainer.react"),{logger:b,settings:f,sflCancelAction:"hide_create_ig_insights_report_modal",sflCreateAction:"create_ig_insights_report",onHide:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountNewOverviewVisitorsBannerAndTiles.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsAccountNewOverviewVisitorsBannerAndTilesQuery.graphql","SellerInsightsAccountNewOverviewVisitorsTypeSelectionTiles.react","SellerInsightsConstants","SellerInsightsContext","SellerInsightsCutoffDateBanner","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsNewOverviewComponentWithIGEnum","Timezone","geoMargin","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext,l=h!==void 0?h:h=b("SellerInsightsAccountNewOverviewVisitorsBannerAndTilesQuery.graphql");function a(){var a,b=k(c("CommerceManagerContext"));b=b.cmsID;var e=k(c("SellerInsightsContext"));e=e.dateRange;var f=e.getDateInterval();f=f.start;a=(a=e.getCompareDateInterval())!=null?a:e.getPrevDateInterval();e=a.start;a=f.toTimestampInMilliseconds(d("Timezone").UTC)/d("SellerInsightsConstants").MILLISECONDS_IN_A_SECOND;f=e.toTimestampInMilliseconds(d("Timezone").UTC)/d("SellerInsightsConstants").MILLISECONDS_IN_A_SECOND;d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsNewOverviewComponentWithIGEnum").VISITOR_TYPE);b=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(e=b)!=null?e:"0"});e=b.account;e=e==null?void 0:(b=e.sellerProductInsights)==null?void 0:b.follower_metrics_lifetime;if(e==null)return j.jsx(c("SellerInsightsAccountNewOverviewVisitorsTypeSelectionTiles.react"),{couldShowDelta:!1});return a
-----
SellerInsightsAccountOverviewTopTaggedProductContainer.react",["CommerceManagerContext","GeoCardHeader.react","GeoSelector.react","GeoSelectorItem.react","SellerInsightsAccountOverviewTopTaggedProductGridContainer.react","SellerInsightsAccountOverviewUniversalContainer.react","SellerInsightsActionabilityTipContainer.react","SellerInsightsContext","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsTaggedContentContext","SellerInsightsTaggedContentMetricsUtils","SellerInsightsTaggedContentTableUtils","geoMargin","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useContext,k=b.useEffect,l=b.useState;function m(a){var b=d("SellerInsightsTaggedContentMetricsUtils").useMetrics(!1),e=d("SellerInsightsMetricDefinitions").getAttributionMetricName(a.sortingMetric),f=j(c("CommerceManagerContext")),g=f.cmsID;f=j(c("SellerInsightsContext"));var h=f.channels,k=f.igChannelIDs,l=f.fbChannelIDs,m=f.pageIDs;f=function(b){var e;a.setSortingMetric(b);d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7083175,"7311"),{AccountID:(e=g)!=null?e:"0",Channel:h.join(" and "),FBChannelIDs:l,IGChannelIDs:k,NewMetric:b,PageIDs:m,PreviousMetric:a.sortingMetric,Section:"overview"})};return i.jsx(c("GeoCardHeader.react"),{action:i.jsx(c("GeoSelector.react"),{isLabelHidden:!0,label:e,value:a.sortingMetric,xstyle:c("geoMargin").top4,onChange:f,children:b.map(function(a,b){return i.jsx(c("GeoSelectorItem.react"),{label:d("SellerInsightsMetricDefinitions").getAttributionMetricName(a),value:a},b)})}),heading:d("SellerInsightsFbts").TOP_TAGGED_CONTENT_TITLE})}m.displayName=m.name+" [from "+f.id+"]";function a(){var a=j(c("SellerInsightsTaggedContentContext")),b=a.sortingKey,e=a.setSortingKey;a=l("CONTENT_VIEW");var f=a[0];a=a[1];k(function(){b!==f&&e(d("SellerInsightsTaggedContentTableUtils").getMetricColumnSortingKey(f))},[e,f,b]);return i.jsx(c("SellerInsightsAccountOverviewUniversalContainer.react"),{cardHeader:i.jsx(m,{setSortingMetric:a,sortingMetric:f}),"data-testid":void 0,destSubtab:"product_tagged_content",isGeoCardComponent:!0,linkLabel:d("SellerInsightsFbts").VIEW_REPORT_PTC,logEventNames:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,recommendationCard:i.jsx(c("SellerInsightsActionabilityTipContainer.react"),{tipLocation:"OVERVIEW_TAGGED_CONTENT"}),sflAction:"view_tagged_content_report",children:i.jsx(c("SellerInsightsAccountOverviewTopTaggedProductGridContainer.react"),{setSortingMetric:a,sortingMetric:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountNewOverviewVisitorsTypeSelectionCard.react",["SellerInsightsAccountNewOverviewVisitorsBannerAndTiles.react","SellerInsightsAccountOverviewUniversalContainer.react","SellerInsightsLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(){return i.jsx(c("SellerInsightsAccountOverviewUniversalContainer.react"),{"data-testid":void 0,destSubtab:"overview",isGeoCardComponent:!1,logEventNames:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,children:i.jsx(c("SellerInsightsAccountNewOverviewVisitorsBannerAndTiles.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountNewOverviewVisitorsTypeSelectionTiles.react",["CommerceManagerContext","CommerceManagerHooks","GeoDataVizThemeTypes","GeoMetricDelta.react","GeoPrivateSelectableMetricGroup_DEPRECATED.react","GeoPrivateSelectableMetricTile_DEPRECATED.react","GeoSection.react","SellerInsightsAccountNewOverviewVisitorsTypeSelectionTilesQuery.graphql","SellerInsightsAccountOverviewContext","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricDefinitions","SellerInsightsMetricInfoTooltip.react","SellerInsightsNewOverviewComponentWithIGEnum","SellerInsightsNewOverviewComponentWithoutIGEnum","SellerInsightsNumberUtils","SellerInsightsOverviewLoggingUtils","SellerInsightsQPLLoggingHooks","err","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=[],o=h!==void 0?h:h=b("SellerInsightsAccountNewOverviewVisitorsTypeSelectionTilesQuery.graphql");function p(a){a.forEach(function(a,b){n[b]=!1})}function q(a,b){n[a]=!0;a=!0;n.forEach(function(b){b||(a=!1)});a&&(b?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").VISITOR_TYPE,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithoutIGEnum").VISITOR_TYPE,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS))}function r(a){switch(a){case"NON_FOLLOWER":return d("SellerInsightsFbts").NON_FOLLOWER_VISITORS;case"FOLLOWER":return d("SellerInsightsFbts").FOLLOWER_VISITORS;case"ALL":return d("SellerInsightsMetricDefinitions").getPerformanceMetricName("UNIQUE_VISITOR_COUNT");default:throw c("err")("unsupported follower filter!")}}function s(a){var b,e=null,f=null,g=null;switch(a.filter){case"NON_FOLLOWER":e=d("SellerInsightsFbts").NON_FOLLOWER_VISITORS_DESCRIPTION;f=d("SellerInsightsFbts").NON_FOLLOWER_VISITORS;g=d("SellerInsightsFbts").FOLLOWER_COUNT_DISCLAIMER;break;case"FOLLOWER":e=d("SellerInsightsFbts").FOLLOWER_VISITORS_DESCRIPTION;f=d("SellerInsightsFbts").FOLLOWER_VISITORS;g=d("SellerInsightsFbts").FOLLOWER_COUNT_DISCLAIMER;break;case"ALL":a=d("SellerInsightsMetricDefinitions").getPerformanceMetricDefinition("UNIQUE_VISITOR_COUNT");e=(b=a.tooltip)!=null?b:"";f=a.title;break;default:throw c("err")("unsupported follower filter!")}return j.jsx(c("SellerInsightsMetricInfoTooltip.react"),{isEstimated:!0,isReviewed:!1,secondaryText:g,text:e,title:f})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,e=a.couldShowDelta,f=a.heading,g=a.rowIndex,h=a.toolTip;a=a.value;var i=l(c("CommerceManagerContext"));i=i.cmsID;var k=l(c("SellerInsightsContext")),n=k.channels;k=k.dateRange;var p=k.getDateInterval(),r=p.start;p=p.end;b=(b=k.getCompareDateInterval())!=null?b:k.getPrevDateInterval();k=b.start;b=b.end;var s=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredTileFilterType:a},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);i=d("CommerceManagerHooks").useCommerceManagerQuery(o,{accountID:(i=i)!=null?i:"0",channels:n,endDate:p.toISOString(),followerFilter:a,prevEndDate:b.toISOString(),prevStartDate:k.toISOString(),startDate:r.toISOString()});p=i.account;var t=p==null?void 0:(b=p.sellerAudienceInsights)==null?void 0:(k=b.metricInsights)==null?void 0:(r=k.metric_timeline)==null?void 0:r.currentValue,u=p==null?void 0:(i=p.sellerAudienceInsights)==null?void 0:(b=i.metricInsights)==null?void 0:(k=b.metric_timeline)==null?void 0:k.previousValue;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(t==null||u==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"visitor"});m(function(){(t==null||u==null)&&d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"visitor",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})});if(t==null||u==null)return j.jsx(c("GeoSection.react"),{children:j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error,hideSubtitle:!0})});q(g,n.includes("INSTAGRAM"));return j.jsx("div",{onMouseEnter:s,onMouseLeave:s.reset,children:j.jsx(c("GeoPrivateSelectableMetricTile_DEPRECATED.react"),{content:t,delta:e?j.jsx(c("GeoMetricDelta.react"),{value:((r=d("SellerInsightsNumberUtils").getDeltaRatio(u,t))!=null?r:0)*100}):void 0,heading:f,palette:d("GeoDataVizThemeTypes").GeoPaletteType.Leading1,tooltip:h,value:a})})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var b=a.couldShowDelta;a=l(c("SellerInsightsAccountOverviewContext"));var e=a.followerFilterValue,f=a.setSelectedFollowerFilterValue;a=l(c("SellerInsightsContext"));var g=a.channels,h=a.fbChannelIDs,i=a.igChannelIDs,m=a.pageIDs;a=l(c("CommerceManagerContext"));var n=a.cmsID;a=k(function(a){a=a.find(function(a){return a!==e});if(a!=null){var b;d("SellerInsightsLoggingUtils").scenarioStart(c("qpl")._(7085498,"15910"),{AccountID:(b=n)!=null?b:"0",Channel:g.join(" and "),FBChannelIDs:h,IGChannelIDs:i,NewFilterValue:a,PageIDs:m,PreviousFilterValue:e,Section:"overview"});f(a)}},[g,n,h,e,i,m,f]);var o=["NON_FOLLOWER","FOLLOWER","ALL"];p(o);return j.jsx(c("GeoPrivateSelectableMetricGroup_DEPRECATED.react"),{value:[e],onChange:a,children:o.map(function(a,c){return j.jsx(t,{couldShowDelta:b,heading:r(a),rowIndex:c,toolTip:j.jsx(s,{filter:a}),value:a},a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsAccountOverviewTopTaggedProductGridContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsAccountOverviewTopTaggedProductGrid.react","SellerInsightsAccountOverviewTopTaggedProductGridContainerQuery.graphql","SellerInsightsContext","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsNewOverviewComponentWithIGEnum","SellerInsightsNewOverviewComponentWithoutIGEnum","SellerInsightsOverviewLoggingUtils","SellerInsightsTaggedContentMetricsUtils","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsAccountOverviewTopTaggedProductGridContainerQuery.graphql");function a(a){a.setSortingMetric;a=a.sortingMetric;var b=k(c("CommerceManagerContext"));b=b.cmsID;var e=k(c("SellerInsightsContext")),f=e.attributionCheckoutStyle,g=e.dateRange,h=e.channels;e=e.attributionModel;g=g.getDateInterval();var i=g.start;g=g.end;var n=d("SellerInsightsTaggedContentMetricsUtils").useMetrics(!1);d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsNewOverviewComponentWithIGEnum").TAGGED_PRODUCT);b=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(b=b)!=null?b:"0",attributionMetrics:n,attributionModel:e,checkoutStyle:f,contentType:"ORGANIC",endDate:g.toString(),filters:{content_channels:h},sortingKey:a,startDate:i.toString()});var o=b.account;d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(o==null,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ptc"});l(function(){o!=null?d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7083175,"7311")],{}):d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ptc",ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})});l(function(){o==null?d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS}):h.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithIGEnum").TAGGED_PRODUCT,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsNewOverviewComponentWithoutIGEnum").TAGGED_PRODUCT,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return!o?j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error}):j.jsx(c("SellerInsightsAccountOverviewTopTaggedProductGrid.react"),{account:o,sortingMetric:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsTableUtils",["CommerceManagerContext","SellerInsightsContext","SellerInsightsHeroInteractionRoot","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsTableContext","emptyFunction","qpl","react","useGeoTableRowActivation","useGeoTableSortableState"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=i.useCallback,k=i.useContext,l=i.useMemo;function a(a,b,c){a=b[a];if(a.type==="pixel")return a.px;var d=0,e=0;for(var b=b,f=Array.isArray(b),g=0,b=f?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=b.length)break;h=b[g++]}else{g=b.next();if(g.done)break;h=g.value}h=h;d+=h.type==="pixel"?h.px:0;e+=h.type==="proportional"?h.value:0}h=c-d;g=a.value;c=(b=(f=a.options)==null?void 0:f.minWidth)!=null?b:g;d=g*h/e;return Math.max(d,c)}function b(a){var b=a.currentDirection,e=a.currentKey,f=a.onAfterSort,g=a.onDirectionChange,h=a.onKeyChange,i=a.ascendingDirection,l=a.descendingDirection;a=k(c("CommerceManagerContext"));var m=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=k(d("SellerInsightsTableContext").SellerInsightsTableContext);var n=a.loggingAnnotations;a=k(c("SellerInsightsContext"));var o=a.igChannelIDs,p=a.fbChannelIDs,q=a.pageIDs;a=c("useGeoTableSortableState")({direction:b===i?"ascending":"descending",sortKey:e});var r=a[0],s=a[1];a=j(function(a){s(a);if(a==null)return;var j=a.sortKey;a=a.direction;j!==e&&h(j);a!==b&&g(a==="ascending"?i:l);a=babelHelpers["extends"]({},n,{AccountID:m,FBChannelIDs:p,IGChannelIDs:o,PageIDs:q,SortDirection:a==="ascending"?d("SellerInsightsLoggingConstants").TABLE_SORTING_ASCENDING_DIRECTION:d("SellerInsightsLoggingConstants").TABLE_SORTING_DESCENDING_DIRECTION,SortMetric:String(j)});d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7081993,"554"),a);c("SellerInsightsHeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7084330,"1265"),"seller_insights_table_sort",a);f==null?void 0:f()},[m,i,b,e,l,p,o,n,f,g,h,q,s]);return{setSort:a,sort:r}}function e(a){var b=l(function(){if(a==null)return{activeItemIDs:new Set(),getIDForItem:c("emptyFunction").thatReturns(""),onActivate:c("emptyFunction")};var b=a.activeItemID,d=function(c){return String(a.getItemID(c))===String(b)};return{activeItemIDs:new Set(b!=null?[b]:[]),getIDForItem:function(b){b=b.item;return a.getItemID(b)},onActivate:function(b){b=b.item;return d(b)?a.onDeactivate():a.onActivate(b)},skip:function(b){b=b.item;return(a.skip==null?void 0:a.skip(b))===!0}}},[a]);b=c("useGeoTableRowActivation")(b);return a!=null?b:void 0}function m(a){return a.toString().includes(" ")}function f(a){return{label:a,nowrap:!m(a),overflowWrap:"normal"}}function n(a,b){return b.map(function(b){return babelHelpers["extends"]({},b,{key:a(b.key)})})}g.calculateColumnWidth=a;g.useSortableState=b;g.useRowActivation=e;g.getTableHeaderProperties=f;g.castColumnKeysToString=n}),98);
-----
SellerInsightsTable.react",["CommerceManagerContext","GeoTable.react","SellerInsightsContext","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsTableContext","SellerInsightsTableUtils","createGeoTableDataSource","qpl","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useMemo,m={scrollableContainer:{height:"x5yr21d",width:"xh8yej3",$$css:!0},scrollableTable:{height:"x5yr21d",overflowX:"xw2csxc",overflowY:"x1odjw0f",width:"xh8yej3",$$css:!0}};function a(a){var b=a.columns,e=a.data,f=a["data-testid"];f=a.label;var g=a.loggingAnnotations,i=a.pagination,n=a.rowActivation,o=a.scrollable;o=o===void 0?!0:o;var p=a.variant;a=a.xstyle;var q=k(c("SellerInsightsContext")),r=q.igChannelIDs,s=q.fbChannelIDs;q=q.pageIDs;var t=k(c("CommerceManagerContext"));t=t.cmsID;t=babelHelpers["extends"]({},g,{AccountID:(t=t)!=null?t:"0",FBChannelIDs:s,IGChannelIDs:r,PageIDs:q});s=d("SellerInsightsLoggingUtils").hoverScenario(c("qpl")._(7086630,"8553"),t,d("SellerInsightsLoggingConstants").DELAY_FOR_TABLE_HOVER_IN_MS);r=d("SellerInsightsTableUtils").useRowActivation(n);t=j.jsx(d("SellerInsightsTableContext").SellerInsightsTableContext.Provider,{value:{loggingAnnotations:g},children:j.jsx("div",{className:(h||(h=c("stylex")))(o&&m.scrollableContainer,a),onMouseEnter:s,onMouseLeave:s.reset,children:j.jsx(c("GeoTable.react"),{columns:b,"data-testid":void 0,dataSource:l(function(){return c("createGeoTableDataSource")(e,{getStableUniqueID:function(){return null}})},[e]),label:(q=f)!=null?q:d("SellerInsightsFbts").INSIGHTS_TABLE_LABEL,pagination:i,plugins:{activation:r},variant:p,xstyle:o&&m.scrollableTable})})});return t}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsProductsTableUtils",["ix","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseInlinePressable.react","GeoBaseSpacingLayout.react","GeoBaseTableCell.react","GeoBaseText.react","GeoFlexbox.react","GeoGlimmer.react","GeoIcon.react","GeoMediaItem.react","GeoTableContentCell.react","GeoTableContentGlimmer.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","GeoTooltip.react","Image.react","SellerInsightsContext","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsInternationalizationUtils","SellerInsightsLoggingConstants","SellerInsightsMetricDefinitions","SellerInsightsMetricInfoTooltip.react","SellerInsightsMetricWithPopTooltip.react","SellerInsightsNumberUtils","SellerInsightsPerfUtils","SellerInsightsPlaceholder.react","SellerInsightsProductMetricsUtils","SellerInsightsProductsTableQPLLogger","SellerInsightsProductsTableUtilsProductGroupCollectionValuesQuery.graphql","SellerInsightsProductsTableUtilsProductItemCollectionValuesQuery.graphql","SellerInsightsProductsTableUtilsVariantValuesQuery.graphql","SellerInsightsTableUtils","err","fbicon","filterNulls","intlList","react","toggleInSet","useEffectOnce","useGeoTableSortableColumn_DEPRECATED"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l,o=n.useCallback,p=n.useContext,q=n.useEffect,r=n.useMemo,s=i!==void 0?i:i=b("SellerInsightsProductsTableUtilsVariantValuesQuery.graphql"),t=j!==void 0?j:j=b("SellerInsightsProductsTableUtilsProductGroupCollectionValuesQuery.graphql"),u=k!==void 0?k:k=b("SellerInsightsProductsTableUtilsProductItemCollectionValuesQuery.graphql"),v=32,w=2,x=1,y=1.1,z=1.25,A=2,B=3,C=160,D=104,E={variantTextGlimmer:{marginTop:"x1gslohp",marginBottom:"x12nagc",$$css:!0}};function F(a){var b=a.expandedGroupIDs,e=a.setExpandedGroupIDs,f=a.name,g=a.imageURL,i=a.variants,j=a.id;a=(b==null?void 0:b.has(j))===!0;var k=a?d("SellerInsightsFbts").PRODUCT_TABLE_COLLAPSE_ROW_LABEL:d("SellerInsightsFbts").PRODUCT_TABLE_EXPAND_ROW_LABEL,l=V(),n=o(function(){b!=null&&e!=null&&(e(c("toggleInSet")(b,j)),l.logToggleProductGroupRow(b.has(j)))},[b,j,l,e]);return m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[m.jsx(c("GeoTooltip.react"),{content:k,children:m.jsx("div",{className:"x6s0dn4 x78zum5 x2lah0s x10w6t97 xl56j7k x1td3qas",children:m.jsx(c("GeoBaseInlinePressable.react"),{"aria-label":k,grow:"fill",variant:"flat",onPress:n,children:m.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k",children:m.jsx(c("GeoIcon.react"),{icon:a?d("fbicon")._(h("492446"),12):d("fbicon")._(h("492530"),12)})})})})}),m.jsx("div",{className:"x1iyjqo2 x6ikm8r x10wlt62",children:m.jsx(c("GeoTableContentCell.react"),{description:d("SellerInsightsFbts").NUMBER_OF_VARIANTS(i.length),media:m.jsx(c("GeoMediaItem.react"),{fit:g!=null?"cover":"none",media:g!=null?m.jsx(c("Image.react"),{src:g}):m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:v}),title:f})})]})}F.displayName=F.name+" [from "+f.id+"]";function G(a){a=a.index;return m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[m.jsx("div",{className:"x2lah0s x10w6t97 x1td3qas x6s0dn4 x78zum5 xl56j7k",children:m.jsx(c("Image.react"),{src:h("534949")})}),m.jsx(c("GeoFlexbox.react"),{shrink:0,children:m.jsx(c("GeoGlimmer.react"),{height:v,index:a,width:v})}),m.jsx(c("GeoTableContentGlimmer.react"),{index:a})]})}G.displayName=G.name+" [from "+f.id+"]";function H(a){a.category;a.collections;a.currentMetrics;a.groupID;var b=a.id,e=a.imageURL,f=a.name;a.previousMetrics;a.type;return m.jsx("div",{className:"x540dpk",children:m.jsx(c("GeoBaseTableCell.react"),{children:m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[m.jsx(c("GeoMediaItem.react"),{fit:e!=null?"cover":"none",media:e!=null?m.jsx(c("Image.react"),{src:e}):m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:v}),m.jsxs("div",{className:"xeuugli",children:[m.jsx(c("GeoText.react"),{display:"truncate",children:f}),m.jsx(I,{color:"heading",display:"truncate",id:b})]})]})})})}H.displayName=H.name+" [from "+f.id+"]";function I(a){var b=a.color,d=a.display;a=a.id;return m.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:m.jsx(K,{}),oncall:"commerce_platform_insights",children:m.jsx(J,{color:b,display:d,id:a})})}I.displayName=I.name+" [from "+f.id+"]";function J(a){var b=a.color,e=a.display;a=a.id;a=d("CommerceManagerHooks").useCommerceManagerQuery(s,{productID:a});a=a.product;a=(a=a==null?void 0:a.variant_values)!=null?a:[];return m.jsx(c("GeoBaseText.react"),{color:b,display:e,size:"valueDescription",children:c("intlList")(a,c("intlList").CONJUNCTIONS.NONE)})}J.displayName=J.name+" [from "+f.id+"]";function K(){return m.jsx(c("GeoGlimmer.react"),{height:8,width:64,xstyle:E.variantTextGlimmer})}K.displayName=K.name+" [from "+f.id+"]";function L(a){var b=a.cmsID;a=a.productGroupID;return m.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:m.jsx(K,{}),oncall:"commerce_platform_insights",children:m.jsx(M,{cmsID:b,productGroupID:a})})}L.displayName=L.name+" [from "+f.id+"]";function M(a){var b=a.cmsID;a=a.productGroupID;b=d("CommerceManagerHooks").useCommerceManagerQuery(t,{accountID:b,productGroupID:a});a=b.account;a=Y(a==null?void 0:(b=a.seller_product_insights)==null?void 0:b.product_group_collection_query);return m.jsx(P,{collections:a})}M.displayName=M.name+" [from "+f.id+"]";function N(a){a=a.productItemID;return m.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:m.jsx(K,{}),oncall:"commerce_platform_insights",children:m.jsx(O,{productItemID:a})})}N.displayName=N.name+" [from "+f.id+"]";function O(a){a=a.productItemID;a=d("CommerceManagerHooks").useCommerceManagerQuery(u,{productID:a});a=a.product;a=Y(a==null?void 0:a.product_item_collection_query);return m.jsx(P,{collections:a})}O.displayName=O.name+" [from "+f.id+"]";function P(a){a=a.collections;var b=a.totalCount,e=b<=w?b:w-1;b=b-e;return m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[a.topItems.slice(0,e).map(function(a,b){var e=a.imageURL;a=a.name;e=m.jsx(c("GeoMediaItem.react"),{fit:e!=null?"cover":"none",media:e!=null?m.jsx(c("Image.react"),{src:e}):m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:v},b);return a!=null?m.jsx(c("GeoTooltip.react"),{content:a,children:e},b):e}),b>0?m.jsx(c("SellerInsightsPlaceholder.react"),{height:v,width:v,children:m.jsx(c("GeoText.react"),{children:d("SellerInsightsFbts").EXTRA_ITEMS_COUNT(b)})}):null]})}P.displayName=P.name+" [from "+f.id+"]";function Q(a){var b=a.currentMetrics,d=a.metric;a=a.previousMetrics;var e=p(c("SellerInsightsContext"));e=e.dateRange;b=b.get(d);a=a.get(d);return m.jsx(c("SellerInsightsMetricWithPopTooltip.react"),{curValue:b==null?void 0:b.value,dateRange:e,formattedAmount:typeof (b==null?void 0:b.formattedValue)==="string"?b.formattedValue:null,prevValue:a==null?void 0:a.value})}Q.displayName=Q.name+" [from "+f.id+"]";function a(a){switch(a){case"ASCENDING":return"ASCENDING";case"DESCENDING":return"DESCENDING";default:throw c("err")("Sorting direction is not supported: %s",a)}}function e(a){switch(a){case"SALES":return"SALES";case"UNITS_SOLD":return"UNITS_SOLD";case"PDP_VIEWS":return"PDP_VIEWS";case"OUTBOUND_CLICKS":return"CLICK_TO_OFFSITE";case"ADD_TO_WISHLIST":return"ADD_TO_WISHLIST";case"ADD_TO_CART":return"ADD_TO_CART";case"CHECKOUT_INITIATED":return"CHECKOUTS_INITIATED";case"MESSAGE_TO_BUY":return"MESSAGE_TO_BUY";case"PURCHASE":return"PURCHASES";default:throw c("err")("Sorting key is not supported: %s",a)}}function R(a){switch(a){case"SALES":return"SALES";case"UNITS_SOLD":return"UNITS_SOLD";case"PDP_VIEWS":return"PDP_VIEWS";case"OUTBOUND_CLICKS":return"OUTBOUND_CLICKS";case"ADD_TO_WISHLIST":return"ADD_TO_WISHLIST";case"ADD_TO_CART":return"ADD_TO_CART";case"CHECKOUTS_INITIATED":return"CHECKOUT_INITIATED";case"MESSAGE_TO_BUY":return"MESSAGE_TO_BUY";case"TOTAL_ORDERS":return"PURCHASE";default:throw c("err")("Performance metric is not supported: %s",a)}}function S(a,b){if(a==="PDP_VIEWS")return b==="ONSITE"?y:z;if(a==="SALES"&&b==="ONSITE")return y;return a==="OUTBOUND_CLICKS"&&b!=="ONSITE"||a==="ADD_TO_WISHLIST"||a==="CHECKOUTS_INITIATED"||a==="MESSAGE_TO_BUY"?z:x}function T(a,b,e,f){var g=d("SellerInsightsMetricDefinitions").getPerformanceMetricDefinition(a,{isProductMetric:!0});b=S(a,b);return{cell:function(b){b=b.item;return m.jsx(Q,{currentMetrics:b.currentMetrics,metric:a,previousMetrics:b.previousMetrics})},features:f===!0?{}:{sortable:e.singleKey(R(a),{defaultDirection:"descending"})},header:babelHelpers["extends"]({},d("SellerInsightsTableUtils").getTableHeaderProperties(g.title),{tooltip:m.jsx(c("SellerInsightsMetricInfoTooltip.react"),{isEstimated:(f=g.isEstimated)!=null?f:!1,isReviewed:(e=g.isReviewed)!=null?e:!1,text:g.tooltip,title:g.title})}),key:a.toLowerCase(),width:d("GeoTableWidth").proportional(b)}}function U(a){var b=a.sort,e=a.setSort,f=a.onPageReset,g=a.expandedGroupIDs,h=a.setExpandedGroupIDs,i=a.shouldDisableSorting,j=a.cmsID;a=p(c("CommerceManagerComponentGatingContext"));var k=a.checkoutStyle,l=d("SellerInsightsProductMetricsUtils").useProductMetrics();a=o(function(a){e(a),f==null?void 0:f()},[f,e]);var n=c("useGeoTableSortableColumn_DEPRECATED")({allowUnsortedState:!1,setSort:a,sort:b});return r(function(){return c("filterNulls")([{cell:function(a){a=a.item;return m.jsx(c("GeoTableRowAction.react"),{children:a.type==="group"?m.jsx(F,babelHelpers["extends"]({},a,{expandedGroupIDs:g,setExpandedGroupIDs:h})):m.jsx(H,babelHelpers["extends"]({},a))})},header:d("SellerInsightsTableUtils").getTableHeaderProperties(d("SellerInsightsFbts").PRODUCT_HEADER),key:"product",loadingCell:function(a){a=a.loadingIndex;return m.jsx(G,{index:a})},width:d("GeoTableWidth").proportional(k==="ONSITE"?B:A,{minWidth:C})},{cell:function(a){var b;a=a.item;return a.type==="group"?m.jsx(L,{cmsID:(b=j)!=null?b:"0",productGroupID:a.id}):m.jsx(N,{productItemID:a.id})},header:d("SellerInsightsTableUtils").getTableHeaderProperties(d("SellerInsightsFbts").PRODUCT_COLLECTIONS_HEADER),key:"collections",width:d("GeoTableWidth").proportional(x,{minWidth:D})}].concat(l.map(function(a){return T(a,k,n,i)})))},[k,l,g,h,n,i,j])}function V(){var a=p(c("CommerceManagerContext")),b=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=p(c("SellerInsightsContext"));var d=a.igChannelIDs,e=a.fbChannelIDs,f=a.channels,g=a.pageIDs;return r(function(){return new(c("SellerInsightsProductsTableQPLLogger"))({accountID:b,channels:f,fbChannelIDs:e,igChannelIDs:d,pageIDs:g})},[b,f,e,d,g])}function W(a){var b=V();b.logLoadStart(a);c("useEffectOnce")(function(){return function(){return b.logNavigateAway(a)}})}function X(a){var b=V(),c=o(function(){document.visibilityState==="visible"?b.logActiveTabLoadStart():document.visibilityState==="hidden"&&b.logActiveTabLoadSuccess()},[b]);d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(!a,d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);q(function(){a?(b.logLoadSuccess(),b.logActiveTabLoadStart(),document.addEventListener("visibilitychange",c)):b.logLoadNoData();return function(){return document.removeEventListener("visibilitychange",c)}})}function Y(a){var b;return a==null?{topItems:[],totalCount:0}:{topItems:a.nodes.map(function(a){var b=a.id;return b==null?null:{id:b,imageURL:(b=a.product_set_usages)==null?void 0:(b=b.nodes[0])==null?void 0:(b=b.catalog_manager_display_data)==null?void 0:(b=b.usage_specific_display_data)==null?void 0:(b=b.collection)==null?void 0:b.cover_image_url,name:a.name}}).filter(Boolean),totalCount:(b=a.count)!=null?b:a.nodes.length}}function Z(a){switch(a){case"OFFSITE":return["PDP_VIEWS","CLICK_TO_OFFSITE"];case"CONTACT_MERCHANT":return["PDP_VIEWS","MESSAGE_TO_BUY"];case"ONSITE":return["SALES","UNITS_SOLD","PDP_VIEWS","CLICK_TO_OFFSITE","ADD_TO_WISHLIST","ADD_TO_CART","CHECKOUTS_INITIATED","PURCHASES"]}return[]}function $(a,b,c){switch(b){case"OFFSITE":return new Map([["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["OUTBOUND_CLICKS",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS")))!=null?b:0}]]);case"CONTACT_MERCHANT":return new Map([["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["MESSAGE_TO_BUY",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("MESSAGE_TO_BUY")))!=null?b:0}]]);case"ONSITE":return new Map([["SALES",{formattedValue:d("SellerInsightsNumberUtils").formatCurrency((b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("SALES")))!=null?b:0,c,d("SellerInsightsInternationalizationUtils").getUserConfig(c)),value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("SALES")))!=null?b:0}],["UNITS_SOLD",{value:(c=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("UNITS_SOLD")))!=null?c:0}],["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["OUTBOUND_CLICKS",{value:(c=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS")))!=null?c:0}],["ADD_TO_WISHLIST",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("ADD_TO_WISHLIST")))!=null?b:0}],["ADD_TO_CART",{value:(c=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("ADD_TO_CART")))!=null?c:0}],["CHECKOUTS_INITIATED",{value:(b=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("CHECKOUTS_INITIATED")))!=null?b:0}],["TOTAL_ORDERS",{value:(c=a.get(d("SellerInsightsPerfUtils").toCommerceInsightsMetric("TOTAL_ORDERS")))!=null?c:0}]]);default:return new Map()}}function aa(a,b,c){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.prevValue;a=a.metric;return[a,b]}));return $(a,b,c)}function ba(a,b,c){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.value;a=a.metric;return[a,b]}));return $(a,b,c)}g.variantValuesQuery=s;g.productGroupCollectionValuesQuery=t;g.productItemCollectionValuesQuery=u;g.TOP_COLLECTIONS=w;g.ProductItemNameCellVariantValuesLoader=I;g.ProductCollectionsCell=P;g.getUnifiedAPISortingDirection=a;g.getUnifiedAPISortingKey=e;g.getMetricColumnWidth=S;g.useColumnsConfig=U;g.useLogger=V;g.useLogDataLoading=W;g.useLogDataLoaded=X;g.getFormattedCollections=Y;g.getMetricsForCheckoutStyle=Z;g.getFormattedMetricsForPrev=aa;g.getFormattedMetrics=ba}),98);
-----
SellerInsightsChannelSelector.react",["fbt","ix","CommerceManagerContext","GeoSelector.react","GeoSelectorItem.react","Image.react","SFLUtilityMethods","SellerInsightsConstants","SellerInsightsContext","SellerInsightsFbts","SellerInsightsHeroInteractionRoot","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsQPLLoggingHooks","propsWithoutKey","qpl","react","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useContext;function m(a){var b=l(c("SellerInsightsContext")),e=b.channels,f=b.onChannelsChange,g=b.igChannelIDs,j=b.fbChannelIDs,n=b.pageIDs,o=b.igChannelCount,p=b.fbChannelCount;b=b.subtab;var q=d("SellerInsightsQPLLoggingHooks").useNameFromSectionAndSubSection(),r=l(c("CommerceManagerContext")),s=r.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;r=[];p>0&&r.push({key:"FACEBOOK",label:h._("Facebook"),media:k.jsx(c("Image.react"),{src:i("1528129")}),value:"FACEBOOK"});o>0&&r.push({key:"INSTAGRAM",label:h._("Instagram"),media:k.jsx(c("Image.react"),{src:i("1278792")}),value:"INSTAGRAM"});r.length>1&&r.unshift({key:"both",label:d("SellerInsightsFbts").FACEBOOK_AND_INSTAGRAM_FBT,value:null});p=r.length>1&&b==="product_tagged_content";o=function(a){var b;b=(b=a)!=null?b:d("SellerInsightsLoggingConstants").FACEBOOK_AND_INSTAGRAM;a=a==null?d("SellerInsightsConstants").DEFAULT_CHANNELS:[a];f(a);a={AccountID:s,FBChannelIDs:j,IGChannelIDs:g,NewChannel:b,PageIDs:n,PreviousChannel:e.join(", "),Section:q};d("SellerInsightsLoggingUtils").scenarioAbandon([c("qpl")._(7092490,"3429"),c("qpl")._(7085819,"6371"),c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]);d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7079940,"4268"),a);c("SellerInsightsHeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7081647,"427"),"commerce_insights_channel_change_at_"+q,a)};b=d("SFLUtilityMethods").useSflAwareLambda(o,{action:"select_channel"},m);o=e.length===2||p?null:e[0];return k.jsx(c("GeoSelector.react"),babelHelpers["extends"]({disabledMessage:d("SellerInsightsFbts").CHANNEL_SELECTOR_DISABLED_HOVER,isDisabled:p,isLabelHidden:!0,label:"hidden",value:o,onChange:b},a,{children:r.map(function(a){return k.createElement(c("GeoSelectorItem.react"),babelHelpers["extends"]({},c("propsWithoutKey")(a),{key:a.key}))})}))}m.displayName=m.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(m,{action:"select_channel"});g["default"]=a}),226);
-----
SellerInsightsProductsTableQPLLogger",["SellerInsightsExitTabActionEnum","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs}var b=a.prototype;b.logLoadStart=function(a){d("SellerInsightsLoggingUtils").setCurrentSection(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsLoggingUtils").scenarioForContainerLoading(this.accountID,this.channels,a,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.igChannelIDs,this.fbChannelIDs,this.pageIDs)};b.logNavigateAway=function(a){d("SellerInsightsLoggingUtils").logNavigateAway(this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsLoggingUtils").scenarioAbandon(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON)};b.logLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products"),d("SellerInsightsLoggingUtils").scenarioSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenario=function(){d("SellerInsightsLoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731")])};b.logDetailViewLoadStart=function(a,b){this.abandonRunningDetailViewScenario(),d("SellerInsightsLoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS})};b.logDetailViewLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadNoData=function(){d("SellerInsightsLoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})};b.logDetailViewClose=function(a,b){this.abandonRunningDetailViewScenario(),d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7086190,"1188"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS})};b.logToggleProductGroupRow=function(a){d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7079140,"3242"),{AccountID:this.accountID,Channel:this.channels.join(", "),FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,action:a?"collapse":"expand"})};b.logDetailViewHover=function(a,b,e){return d("SellerInsightsLoggingUtils").hoverScenario(c("qpl")._(7083693,"759"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},e)};b.logActiveTabLoadStart=function(){d("SellerInsightsLoggingUtils").handleActiveTabEventStart()};b.logActiveTabLoadSuccess=function(){d("SellerInsightsLoggingUtils").handleActiveTabEventSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,c("SellerInsightsExitTabActionEnum").TAB_CHANGE)};return a}();g["default"]=a}),98);
-----
SellerInsightsTaggedContentLoggingUtils",["$InternalEnum","CommerceManagerContext","SellerInsightsContext","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsTaggedContentContext","SellerInsightsTaggedContentTabEnum","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");var i=e.useContext,j=e.useMemo,k=b("$InternalEnum").Mirrored(["FILTER","TABLE","TOP_CONTENTS"]),l=b("$InternalEnum").Mirrored(["BAR_CHART","RANKING_CHART","TABLE","TOTALS"]),m=function(){function a(a){this.cmsID=a.cmsID;this.channels=a.channels;this.fbChannelIDs=a.fbChannelIDs;this.filters=a.filters;this.igChannelIDs=a.igChannelIDs;this.pageIDs=a.pageIDs;this.sortingKey=a.sortingKey;this.subtab=a.subtab;this.baseAnnotations={AccountID:(a=this.cmsID)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:"product_tagged_content"}}var b=a.prototype;b.logPageLoadStart=function(a,b,e,f){var g;d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7085174,"624"),babelHelpers["extends"]({},this.baseAnnotations,{AccountID:(g=this.cmsID)!=null?g:"0",Channel:this.channels.join(" and "),CurrentTab:this.subtab,Filters:this.sellerInsightsAttributionFiltersToString(this.filters),NewPage:a+"-"+(a+b-1),PreviousPage:Math.max(a-f,0)+"-"+(a-1),SortKey:this.sortingKey,Total:String(e)}))};b.logPageLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7085174,"624")],{})};b.logPageLoadError=function(a){d("SellerInsightsLoggingUtils").scenarioFail([c("qpl")._(7085174,"624")],{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenarios=function(){d("SellerInsightsLoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731")])};b.logDetailViewLoadStart=function(a){this.abandonRunningDetailViewScenarios();if(a!=null){var b;d("SellerInsightsLoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(b=a==null?void 0:(b=a.mediaContent)==null?void 0:b.id)!=null?b:"",MediaType:(b=a==null?void 0:a.meidaType)!=null?b:""}))}};b.logDetailViewLoadSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadError=function(a){d("SellerInsightsLoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:a.message,ErrorName:a.name})};b.logDetailViewClose=function(a){var b;this.abandonRunningDetailViewScenarios();d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7080944,"1669"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(b=a==null?void 0:(b=a.mediaContent)==null?void 0:b.id)!=null?b:"",MediaType:(b=a==null?void 0:a.meidaType)!=null?b:""}))};b.logTagsHover=function(a,b,e,f){if(f)return d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7093080,"4511"),babelHelpers["extends"]({},this.baseAnnotations,{InDetailView:e,TagName:a,TagType:b}))};b.logEmptyDetailView=function(){return d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7090073,"6401"),babelHelpers["extends"]({},this.baseAnnotations))};b.logDetailViewLoadVariantsStart=function(a,b){d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7093934,"6029"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(a=a)!=null?a:"",Total:(a=b)!=null?a:""}))};b.logDetailViewLoadVariantsSuccess=function(){d("SellerInsightsLoggingUtils").scenarioSuccess([c("qpl")._(7093934,"6029")],{})};b.logDetailViewLoadVariantsError=function(a){var b;d("SellerInsightsLoggingUtils").scenarioFail([c("qpl")._(7093934,"6029")],{ErrorMessage:(b=a==null?void 0:a.message)!=null?b:"",ErrorName:(b=a==null?void 0:a.name)!=null?b:""})};b.logFilterFocus=function(a,b){d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7082628,"6031"),babelHelpers["extends"]({},this.baseAnnotations,{Filters:this.filterArrayToStringArray(a),ParsedFilters:this.sellerInsightsAttributionFiltersToString(b)}))};b.logFilterChange=function(a,b,e,f){d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7082248,"6047"),babelHelpers["extends"]({},this.baseAnnotations,{ChangeType:e,Filters:this.filterArrayToStringArray(a),ForcedEmptyState:f,ParsedFilters:this.sellerInsightsAttributionFiltersToString(b)}))};b.getComponents=function(a){switch(a){case c("SellerInsightsTaggedContentTabEnum").Review:return Array.from(k.members()).map(function(a){return a});case c("SellerInsightsTaggedContentTabEnum").Compare:return Array.from(l.members()).map(function(a){return a})}};b.logSubtabChangeStart=function(a){d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(7082489,"80"),babelHelpers["extends"]({},this.baseAnnotations,{Subtab:a}))};b.logComponentsLoadingStart=function(a){d("SellerInsightsLoggingUtils").componentsRestart(this.getComponents(a))};b.logMarkerPointsStart=function(a,b){a=this.getComponents(a);a.forEach(function(a){return d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(b,a)})};b.logAggregationPivotChangeStart=function(a){d("SellerInsightsLoggingUtils").componentsRestart(this.getComponents(c("SellerInsightsTaggedContentTabEnum").Compare),c("qpl")._(7080207,"81"),babelHelpers["extends"]({},this.baseAnnotations,{AggregationPivot:a}))};b.logAggregationMetricChangeStart=function(a){d("SellerInsightsLoggingUtils").componentsRestart(this.getComponents(c("SellerInsightsTaggedContentTabEnum").Compare),c("qpl")._(7086136,"82"),babelHelpers["extends"]({},this.baseAnnotations,{AggregationMetric:a}))};b.logReviewTabMarkerPointsEnd=function(a){d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,a),d("SellerInsightsLoggingUtils").scenarioSuccessWithMarkerPoints(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{PTCSection:"Review"},Array.from(k.members()))};b.logCompareTabMarkerPointsEnd=function(a){d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,a),d("SellerInsightsLoggingUtils").scenarioSuccessWithMarkerPoints(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{PTCSection:"Compare"},Array.from(l.members()))};b.logComponentLoadingFailure=function(a){d("SellerInsightsLoggingUtils").componentFail(a,d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,this.baseAnnotations)};b.filterArrayToStringArray=function(a){return a.map(function(a){var b;b=(b=(b=a.value.toJS().value)==null?void 0:b.toString())!=null?b:"";return"field: "+a.field+", operator: "+a.operator+", value: "+b})};b.sellerInsightsAttributionFiltersToString=function(a){var b=[],c=Object.keys(a);for(var d=0;d
SellerInsightsActionabilityLogger",["CommerceManagerContext","SellerInsightsContext","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsQPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(a){var b=i(c("CommerceManagerContext"));b=b.cmsID;var e=i(c("SellerInsightsContext")),f=e.channels,g=e.igChannelIDs,h=e.fbChannelIDs;e=e.pageIDs;var k=d("SellerInsightsQPLLoggingHooks").useNameFromSectionAndSubSection();f=f.length===2?d("SellerInsightsLoggingConstants").FACEBOOK_AND_INSTAGRAM:f[0];return new j({channel:f,cmsID:(f=b)!=null?f:"0",ctaChannel:a.ctaChannel,fbChannelIDs:h,igChannelIDs:g,pageIDs:e,section:k,tipType:a.tipType,tipVariant:a.variant})}var j=function(){function a(a){var b;this.baseAnnotations={AccountID:(b=a.cmsID)!=null?b:"",Channel:a.channel,CtaChannel:(b=a.ctaChannel)!=null?b:"",FBChannelIDs:a.fbChannelIDs,IGChannelIDs:a.igChannelIDs,PageIDs:a.pageIDs,Section:a.section,TipType:a.tipType,TipVariant:(b=a.tipVariant)!=null?b:""}}var b=a.prototype;b.logView=function(){d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7090157,"1147"),this.baseAnnotations)};b.logCTA=function(a){d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7083002,"1224"),babelHelpers["extends"]({},this.baseAnnotations,{CtaType:a}))};b.logClose=function(){d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7089980,"1253"),this.baseAnnotations)};return a}();g.useActionabilityLogger=a}),98);
-----
SellerInsightsAudienceMetricsGroupContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoCheckboxInput.react","GeoFlexbox.react","GeoText.react","GeoTooltip.react","GeoVStack.react","SellerInsightsAudienceAgeGenderSection.react","SellerInsightsAudienceAgeGenderSectionGlimmer.react","SellerInsightsAudienceContext.react","SellerInsightsAudienceGenderSection.react","SellerInsightsAudienceGenderSectionGlimmer.react","SellerInsightsAudienceLoggingUtils","SellerInsightsAudienceMetricsGroupContainerUnifiedQuery.graphql","SellerInsightsAudienceTimelineSection.react","SellerInsightsAudienceTimelineSectionGlimmer.react","SellerInsightsAudienceTopMetricsSection.react","SellerInsightsAudienceTopMetricsSectionGlimmer.react","SellerInsightsAudienceUtils","SellerInsightsConstants","SellerInsightsContext","SellerInsightsEmptyContainer.react","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsExitTabActionEnum","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsLoggingWrapper","SellerInsightsQPLLoggingHooks","SellerInsightsUnifiedGraphQLUtils","err","geoMargin","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m="DAY",n={horizontalSection:{marginBottom:"x1iymm2a",$$css:!0}},o=h!==void 0?h:h=b("SellerInsightsAudienceMetricsGroupContainerUnifiedQuery.graphql");function p(){return j.jsx(c("SellerInsightsErrorCard.react"),{errorType:c("SellerInsightsErrorType").Error})}p.displayName=p.name+" [from "+f.id+"]";function q(a){switch(a){case"HOUR":return"HOUR";case"DAY":return"DAY";default:throw c("err")("Unsupported granularity option for commerce insights breakdown")}}function r(){var a=l(c("CommerceManagerContext")),b=a.cmsID,e=d("SellerInsightsQPLLoggingHooks").useNameFromSectionAndSubSection();a=l(c("SellerInsightsContext"));var f=a.igChannelIDs,g=a.fbChannelIDs,h=a.pageIDs,i=a.channels;a=l(c("SellerInsightsAudienceContext.react"));var j=a.shouldShowUnavailable,m=a.setShouldShowUnavailable;return k(function(a){var k;k={AccountID:(k=b)!=null?k:"0",Channels:i.join(" and "),FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,Section:e,ShowUnavailable:j?"true":"false"};d("SellerInsightsLoggingUtils").scenarioRestart(c("qpl")._(741087294,"2028"),k);m(a)},[i,b,g,f,h,e,m,j])}function s(a){var b=a.audienceMetric,e=a.redacted;a=a.unifiedMetricResult;var f=l(c("SellerInsightsAudienceContext.react"));f=f.shouldShowUnavailable;var g=r();f=j.jsx(c("GeoFlexbox.react"),{alignItems:"end",justifyContent:"end",children:j.jsxs(c("GeoFlexbox.react"),{alignContent:"center",alignItems:"center",children:[j.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,isLabelHidden:!0,label:"",value:f,onChange:g}),j.jsx(c("GeoText.react"),{xstyle:c("geoMargin").start8,children:d("SellerInsightsFbts").AUDIENCE_UNAVAILABLE_CHECKBOX_LABEL}),j.jsx(c("GeoTooltip.react"),{align:"end",content:d("SellerInsightsFbts").AUDIENCE_UNAVAILABLE_TOOLTIP_TEXT,"data-testid":void 0})]})});g=a==null;return e===!0?j.jsx(c("SellerInsightsEmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.AUDIENCE_EMPTY_STATE}):g?null:j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoFlexbox.react"),{xstyle:n.horizontalSection,children:a!=null?j.jsx(c("SellerInsightsAudienceTimelineSection.react"),{metric:b,unifiedTimeline:a}):p()}),j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[f,j.jsxs(c("GeoFlexbox.react"),{xstyle:n.horizontalSection,children:[a!=null?j.jsx(c("SellerInsightsAudienceGenderSection.react"),{unifiedMetricResult:a}):p(),a!=null?j.jsx(c("SellerInsightsAudienceAgeGenderSection.react"),{metric:d("SellerInsightsAudienceUtils").toCommerceInsightsMetric(b),unifiedMetricResult:a}):p()]})]}),j.jsx(c("GeoFlexbox.react"),{children:a!=null?j.jsx(c("SellerInsightsAudienceTopMetricsSection.react"),{metric:d("SellerInsightsAudienceUtils").toCommerceInsightsMetric(b),unifiedMetric:a}):p()})]})}s.displayName=s.name+" [from "+f.id+"]";function t(){return j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoFlexbox.react"),{xstyle:n.horizontalSection,children:j.jsx(c("SellerInsightsAudienceTimelineSectionGlimmer.react"),{index:0})}),j.jsxs(c("GeoFlexbox.react"),{xstyle:n.horizontalSection,children:[j.jsx(c("SellerInsightsAudienceGenderSectionGlimmer.react"),{index:1}),j.jsx(c("SellerInsightsAudienceAgeGenderSectionGlimmer.react"),{index:1})]}),j.jsx(c("SellerInsightsAudienceTopMetricsSectionGlimmer.react"),{index:2})]})}t.displayName=t.name+" [from "+f.id+"]";function u(a){var b;d("SellerInsightsLoggingUtils").scenarioMarkerPointStart(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,"audience");var e=l(c("CommerceManagerContext"));e=e.cmsID;var f=l(c("SellerInsightsAudienceContext.react"));f=f.shouldShowUnavailable;var g=l(c("SellerInsightsContext")),h=g.dateRange;g=g.channels;var i=h.getDateInterval(),k=i.start;i=i.end;b=(b=h.getCompareDateInterval())!=null?b:h.getPrevDateInterval();h=b.start;b=b.end;e=d("CommerceManagerHooks").useCommerceManagerQuery(o,{accountID:(e=e)!=null?e:"0",channels:g,commerceInsightsMetric:d("SellerInsightsAudienceUtils").toCommerceInsightsMetric(a.audienceMetric),endDate:i.toISOString(),filterOutUnavailable:!f,granularity:q(m),prevEndDate:b.toISOString(),prevStartDate:h.toISOString(),startDate:k.toISOString()});g=d("SellerInsightsUnifiedGraphQLUtils").useIsRedacted(e);return j.jsx(v,{audienceMetric:a.audienceMetric,redacted:g,unifiedMetricResult:e})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.audienceMetric,e=a.redacted;a=a.unifiedMetricResult;var f=l(c("CommerceManagerContext")),g=f.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;f=l(c("SellerInsightsContext"));var h=f.channels,i=f.igChannelIDs,k=f.fbChannelIDs;function m(){document.visibilityState==="visible"?d("SellerInsightsLoggingUtils").handleActiveTabEventStart():document.visibilityState==="hidden"&&d("SellerInsightsLoggingUtils").handleActiveTabEventSuccess("audience",g,h,i,k,c("SellerInsightsExitTabActionEnum").TAB_CHANGE)}var n=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerCallback(d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);f=function(a){a=Array.from(a.entries()).every(function(a){a=a[1];return!a});a=e===!0||!a;n(!a);a?(d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,"audience"),d("SellerInsightsLoggingUtils").scenarioSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{}),d("SellerInsightsLoggingUtils").handleActiveTabEventStart(),document.addEventListener("visibilitychange",m)):d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS});return function(){document.removeEventListener("visibilitychange",m)}};return j.jsx(d("SellerInsightsLoggingWrapper").SellerInsightsLoggingWrapper,{components:e===!0?[]:d("SellerInsightsAudienceLoggingUtils").AUDIENCE_COMPONENTS_TO_LOG,onAllComponentsLoaded:f,children:j.jsx(s,{audienceMetric:b,redacted:e,unifiedMetricResult:a})})}v.displayName=v.name+" [from "+f.id+"]";function a(a){d("SellerInsightsQPLLoggingHooks").useLoggingForContainer("audience");var b=d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();return j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(t,{}),oncall:"commerce_platform_insights",onHandleError:function(a,c){d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name}),b(a)},children:j.jsx(u,{audienceMetric:a.audienceMetric})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometBrowserAddonsWhatsAppSetup.react",["AdproObjectiveType","AdsLWIGoal","CometPlaceholder.react","CometTransientDialogProvider.react","LWICometCTAWhatsAppNumberInputEditorGlimmer.react","LWICometCTWALoggerContext","LWICometLoggingConstants","castToEnum","getJSEnumSafe","react","react-relay/relay-hooks/EntryPointContainer.react","useLWILoggerContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function a(a){var b=a.productFlow,e=a.setIsEditingWhatsAppNumber,f=a.setNewWhatsAppNumber,g=a.whatsappNumberInputEditorEntrypointRef,h=a.adAccountID,k=a.goal,l=a.objective;a=c("useLWILoggerContext")();var m=a.pageID,n=a.targetID;a=j(function(){return{ad_account_id:h,ads_lwi_goal:c("castToEnum")(k,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),l),page_id:m,post_id:n,product_flow:b,source_app_id:d("LWICometLoggingConstants").APP_ID}},[h,k,l,m,b,n]);return i.jsx(c("LWICometCTWALoggerContext").Provider,{value:a,children:i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("LWICometCTAWhatsAppNumberInputEditorGlimmer.react"),{}),children:g!=null?i.jsx(c("react-relay/relay-hooks/EntryPointContainer.react"),{entryPointReference:g,props:{afterSuccessfulVerification:function(a){f(a)},forceToHaveCancelButton:!1,instagramActorID:null,objective:l,onSuccess:function(){},onValueChange:function(a){},previouslyVerifiedNumber:null,productFlow:b,setIsEditing:e}}):null})})})}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,objective:a.objective}});g["default"]=b}),98);
-----
MediaEffectEditorFunnelLogger",["invariant","FunnelLogger","MediaEffectFunnelLoggingConstants","MediaEffectMetadataStore","MediaEffectMetadataViewStore","MediaEffectReactFrameEditorImageAssetRecord","mergeDeep"],(function(a,b,c,d,e,f,g){"use strict";var h=(a=b("MediaEffectFunnelLoggingConstants")).CREATION_FUNNEL_LOGGING_NAME,i=a.FUNNEL_LOGGING_EVENT,j=a.FUNNEL_LOGGING_PAYLOAD,k=a.FUNNEL_LOGGING_TAGS,l={_funnelStarted:!1,_bootstrapData:void 0,startFunnel:function(){b("FunnelLogger").startFunnel(h),l._funnelStarted=!0},startFunnelWithData:function(a){l._bootstrapData=a,l._funnelStarted?l._appendAction(i.DIALOG_LOADED):l.startFunnel()},endFunnel:function(){l._funnelStarted=!1,b("FunnelLogger").endFunnel(h)},logAddDynamicText:function(a){var b;l._appendAction(i.ADD_DYNAMIC_TEXT,(b={},b[j.TEXT]=a,b))},logAddText:function(){l._appendAction(i.ADD_TEXT,{})},logCancel:function(){l._appendAction(i.CANCEL)},logChangeCategory:function(){l._appendActionIfNew(i.CHANGE_CATEGORY)},logChangeEditorBackgroundColor:function(a){var b;l._appendAction(i.CHANGE_EDITOR_BACKGROUND_COLOR,(b={},b[j.COLOR]=a,b))},logChangeEditorBackgroundImage:function(a){var b,c=a&&a.match(/.*?/([^/]*.jpg)/);l._appendAction(i.CHANGE_EDITOR_BACKGROUND_IMAGE,(b={},b[j.IMAGE]=a?c?c[1]:"no image name found":"no image",b))},logChangeEndTime:function(){l._appendActionIfNew(i.CHANGE_END_TIME)},logChangeLocation:function(){l._appendActionIfNew(i.CHANGE_LOCATION)},logChangeName:function(){l._appendActionIfNew(i.CHANGE_NAME)},logPreviewAutoBackgroundRemoval:function(a){var b;l._appendAction(i.BACKGROUND_AUTO_REMOVAL_PREVIEW,(b={},b[j.ASSET_ID]=a,b))},logApplyAutoBackgroundRemoval:function(a){var b;l._appendAction(i.BACKGROUND_AUTO_REMOVAL_APPLIED,(b={},b[j.ASSET_ID]=a,b))},logAutoSnapping:function(a){var b;l._appendAction(i.ASSET_AUTO_SNAPPING,(b={},b[j.ASSET_AUTO_SNAPPING_TYPE]=a,b))},logChangeOwner:function(){l._appendActionIfNew(i.CHANGE_OWNER)},logChangeStartTime:function(){l._appendActionIfNew(i.CHANGE_START_TIME)},logChangeTag:function(){l._appendActionIfNew(i.CHANGE_TAG)},logChangeTextAlignment:function(a){var b;l._appendAction(i.CHANGE_TEXT_ALIGNMENT,(b={},b[j.ALIGNMENT]=a,b))},logChangeTextColor:function(a){var b;l._appendAction(i.CHANGE_TEXT_COLOR,(b={},b[j.COLOR]=a,b))},logChangeTextFont:function(a){var b;l._appendAction(i.CHANGE_TEXT_FONT,(b={},b[j.FONT]=a,b))},logChangeTextContent:function(a){var b;l._appendAction(i.CHANGE_TEXT_CONTENT,(b={},b[j.TEXT]=a,b))},logDeleteAsset:function(){l._appendAction(i.DELETE_ASSET)},logDuplicateAsset:function(){l._appendAction(i.DUPLICATE_ASSET)},logStep:function(a){var b;l._appendAction(i.UPDATE_STEP,(b={},b[j.STEP]=a,b))},logExplicitDropoff:function(a){var b;l._appendAction(i.EXPLICIT_DROPOFF,(b={},b[j.STEP]=a,b))},logSaveAsDraft:function(a,c,d){var e;a=a?k.SUCCESS:k.FAILURE;d=d?d.assets.toArray().map(function(a){var c=a instanceof b("MediaEffectReactFrameEditorImageAssetRecord");return{asset_type:c?"image":"text",is_processed:c?a.processApplied:!1,asset_id:c?a.stickerFBID:null,snappedType:c?a.autoSnappedType:null}}):[];l._appendAction(i.SAVE_AS_DRAFT,(e={},e[j.RESULT]=a,e[j.EFFECT_ID]=c,e[j.ASSETS]=d,e))},logPreviewOnCamera:function(){l._appendAction(i.PREVIEW_ON_CAMERA)},logSetScaleWithHeight:function(a){var b;l._appendAction(i.SET_SCALE_WITH_HEIGHT,(b={},b[j.SCALE_WITH_HEIGHT]=a,b))},logSetScaleWithWidth:function(a){var b;l._appendAction(i.SET_SCALE_WITH_WIDTH,(b={},b[j.SCALE_WITH_WIDTH]=a,b))},logSubmit:function(a,c,d){var e;a=a?k.SUCCESS:k.FAILURE;d=d?d.assets.toArray().map(function(a){var c=a instanceof b("MediaEffectReactFrameEditorImageAssetRecord");return{asset_type:c?"image":"text",is_processed:c?a.processApplied:!1,asset_id:c?a.stickerFBID:null,snappedType:c?a.autoSnappedType:null}}):[];l._appendAction(i.SUBMIT,(e={},e[j.RESULT]=a,e[j.EFFECT_ID]=c,e[j.ASSETS]=d,e))},logUploadFile:function(){l._appendAction(i.UPLOAD_FILE)},logUploadFinished:function(a){var b;a=a?k.SUCCESS:k.FAILURE;l._appendAction(i.UPLOAD_FINISHED,(b={},b[j.RESULT]=a,b))},logShownInlineNUX:function(){l._appendAction(i.SHOWN_INLINE_NUX)},logEnterCreationFlowFromInlineNUX:function(){l._appendAction(i.ENTER_CREATION_FLOW_FROM_INLINE_NUX)},logAssetInPlaceWarning:function(a){var b;l._appendAction(i.ASSET_INPLACE_WARNING,(b={},b[j.ASSET_INPLACE_WARNING_TYPE]=a,b))},logGalleryView:function(){l._appendAction(i.GALLERY_VIEW)},logGalleryMediaClick:function(){l._appendAction(i.GALLERY_MEDIA_CLICK)},_appendActionIfNew:function(a,c){if(!l._funnelStarted)return;c=b("mergeDeep")(c,l._getStandardPayload());b("FunnelLogger").appendActionWithPayloadIfNew(h,a,c)},_appendAction:function(a,c){if(!l._funnelStarted)return;c=b("mergeDeep")(c,l._getStandardPayload());b("FunnelLogger").appendActionWithPayload(h,a,c)},_getStandardPayload:function(){var a,c=b("MediaEffectMetadataStore").getState(),d=l._bootstrapData&&l._bootstrapData.metadataJSData?l._bootstrapData.metadataJSData.id:void 0;c=c.selectedOwnerID;a=(a={},a[j.NEW_EFFECT]=!d,a);if(d){var e;a=babelHelpers["extends"]({},a,(e={},e[j.EFFECT_ID]=d,e))}if(c){d=b("MediaEffectMetadataViewStore").getOwner(c);d||g(0,2281);a=babelHelpers["extends"]({},a,(e={},e[j.OWNER_FIRST_PARTY]=d.isFirstParty,e[j.OWNER_ID]=c,e[j.OWNER_TYPE]=d.type,e))}return a}};e.exports=l}),null);
-----
MediaEffectFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="CREATIVE_STUDIO_CREATION_FUNNEL";b={ADD_DYNAMIC_TEXT:"add_dynamic_text",ADD_TEXT:"add_text",ASSET_INPLACE_WARNING:"asset_inplace_warning",CANCEL:"cancel",CHANGE_CATEGORY:"change_category",CHANGE_EDITOR_BACKGROUND_COLOR:"change_editor_background_color",CHANGE_EDITOR_BACKGROUND_IMAGE:"change_editor_background_image",CHANGE_END_TIME:"change_end_time",CHANGE_LOCATION:"change_location",CHANGE_NAME:"change_name",CHANGE_OWNER:"change_owner",CHANGE_START_TIME:"change_start_time",CHANGE_TAG:"change_tag",CHANGE_TEXT_ALIGNMENT:"change_text_alignment",CHANGE_TEXT_COLOR:"change_text_color",CHANGE_TEXT_FONT:"change_text_font",CHANGE_TEXT_CONTENT:"change_text_content",DELETE_ASSET:"delete_asset",DUPLICATE_ASSET:"duplicate_asset",ENTER_CREATION_FLOW_FROM_INLINE_NUX:"enter_creation_flow_from_inline_nux",EXPLICIT_DROPOFF:"explicit_dropoff",GALLERY_VIEW:"gallery_view",GALLERY_MEDIA_CLICK:"gallery_media_click",PREVIEW_ON_CAMERA:"preview_on_camera",SAVE_AS_DRAFT:"save_as_draft",SET_SCALE_WITH_WIDTH:"set_scale_with_width",SET_SCALE_WITH_HEIGHT:"set_scale_with_height",SHOW_PREVIEW:"show_preview",SHOWN_INLINE_NUX:"shown_inline_nux",SUBMIT:"submit",UPDATE_STEP:"update_step",UPLOAD_FILE:"upload_file",UPLOAD_FINISHED:"upload_finished",DIALOG_LOADED:"dialog_loaded",BACKGROUND_AUTO_REMOVAL_PREVIEW:"background_auto_removal_preview",BACKGROUND_AUTO_REMOVAL_APPLIED:"background_auto_removal_applied",ASSET_AUTO_SNAPPING:"asset_auto_snapping"};c=999999;d={BROWSER_NAME:"browser_name",CREATION_FLOW_TYPE:"creation_flow_type",EFFECT_ID:"effect_id",FAILURE:"failure",FRAME_EDITOR_SHOWN:"frame_editor_shown",NEW_EFFECT:"new_effect",REF:"ref",SOURCE_ID:"source_id",SUCCESS:"success",DIALOG_TYPE:"dialog_type",IS_FIRST_TIME_SAVE_OR_SUBMIT:"is_first_time_save_or_submit"};e={ALIGNMENT:"alignment",ASSET_INPLACE_WARNING_TYPE:"asset_inplace_warning_type",COLOR:"color",IMAGE:"image",EFFECT_ID:"effect_id",FONT:"font",NEW_EFFECT:"new_effect",OWNER_FIRST_PARTY:"owner_first_party",OWNER_ID:"owner_id",OWNER_TYPE:"owner_type",RESULT:"result",SCALE_WITH_HEIGHT:"scale_with_height",SCALE_WITH_WIDTH:"scale_with_width",TEXT:"text",STEP:"step",ASSET_ID:"asset_id",ASSETS:"assets",ASSET_AUTO_SNAPPING_TYPE:"asset_auto_snapping_type"};f.CREATION_FUNNEL_LOGGING_NAME=a;f.FUNNEL_LOGGING_EVENT=b;f.FUNNEL_LOGGING_TIMEOUT=c;f.FUNNEL_LOGGING_TAGS=d;f.FUNNEL_LOGGING_PAYLOAD=e}),66);
-----
SellerInsightsAdvancedTrendChart.react",["GeoGlimmer.react","GeoVStack.react","SellerInsightsChartUtils.next","SellerInsightsErrorCard.react","SellerInsightsErrorType","SellerInsightsLoggingConstants","SellerInsightsMetricCard.react","SellerInsightsQPLLoggingHooks","SellerInsightsTrendChartDetailMetricName.react","SellerInsightsTrendChartDetailUtils","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=240,k=100,l=240,m=40,n=k-8;function o(a){var b=a.isRenderedOnHomePage;a=a.metric;return i.jsxs(c("GeoVStack.react"),{children:[b!==!0&&i.jsx(c("SellerInsightsTrendChartDetailMetricName.react"),{metric:a}),i.jsx(c("GeoGlimmer.react"),{height:m,index:0,width:l}),i.jsx(c("GeoGlimmer.react"),{height:n,index:1,width:"100%"})]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.type,d=a.metric;a=a.isRenderedOnHomePage;return i.jsxs(c("GeoVStack.react"),{children:[a!==!0&&i.jsx(c("SellerInsightsTrendChartDetailMetricName.react"),{metric:d}),i.jsx(c("SellerInsightsErrorCard.react"),{errorType:(d=b)!=null?d:c("SellerInsightsErrorType").Error,isRenderedOnHomePage:a,xstyle:r.error})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.children;a=a.metricName;a=d("SellerInsightsQPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredMetrics:a.toString()},d("SellerInsightsLoggingConstants").DELAY_FOR_CHART_HOVER_IN_MS);return i.jsx("div",{onMouseEnter:a,onMouseLeave:a.reset,children:b})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.data,e=a.isRenderedOnHomePage,f=a.metric;a=a.state;a=a===void 0?d("SellerInsightsTrendChartDetailUtils").ContentState.Ready:a;if(a===d("SellerInsightsTrendChartDetailUtils").ContentState.Loading)return i.jsx(o,{isRenderedOnHomePage:e,metric:f});if(a===d("SellerInsightsTrendChartDetailUtils").ContentState.Empty)return i.jsx(p,{isRenderedOnHomePage:e,metric:f,type:c("SellerInsightsErrorType").NoData});return a===d("SellerInsightsTrendChartDetailUtils").ContentState.Error||b==null?i.jsx(p,{isRenderedOnHomePage:e,metric:f}):i.jsx(q,{metricName:b.title,children:i.jsx(c("SellerInsightsMetricCard.react"),{chartColor:d("SellerInsightsChartUtils.next").getTrendChartColor(b.metric),chartData:b.chartData,chartHeight:e===!0?j:k,chartValueFormatter:b.chartValueFormatter,compact:!0,currency:b.currency,currentValue:b.currentValue,effectiveDate:b.effectiveDate,fbChartData:b.fbChartData,igChartData:b.igChartData,infoText:b.infoText,isEstimated:b.isEstimated,isNegativeGood:b.isNegativeGood,isRenderedOnHomePage:e,isReviewed:b.isReviewed,metricFormat:b.renderType,metricName:f,prevValue:b.prevValue,title:b.title,unavailableDates:b.unavailableDates,value:b.value})})}a.displayName=a.name+" [from "+f.id+"]";var r={error:{height:"xhjk10j",justifyContent:"xl56j7k",$$css:!0}};g["default"]=a}),98);
-----
SellerInsightsMetricInfoTooltip.react",["CommerceManagerContext","GeoBaseSpacingLayout.react","GeoPopover.react","GeoText.react","SellerInsightsContext","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsMetricEstimateDisclaimer.react","SellerInsightsQPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){var b=a.additionalMetrics,e=a.children,f=a.isEstimated,g=a.isReviewed,h=a.learnMoreContent,k=a.position,l=a.renderDelay,m=a.secondaryText,n=a.shouldBeReported,o=a.shouldHideEstimate;a.tab;var p=a.text;a=a.title;var q=[],r=j(c("CommerceManagerContext"));r=r.cmsID;var s=j(c("SellerInsightsContext")),t=s.channels,u=s.igChannelIDs,v=s.fbChannelIDs;s=s.pageIDs;var w=d("SellerInsightsQPLLoggingHooks").useNameFromSectionAndSubSection();t=t.length===2?d("SellerInsightsLoggingConstants").FACEBOOK_AND_INSTAGRAM:t[0];p!=null&&q.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:p},"metric-text"));m!=null&&q.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:m},"metric-secondary-text"));p=g!==!0;if(o!==!0&&(p||f)){m=i.jsx(c("SellerInsightsMetricEstimateDisclaimer.react"),{isEstimated:f,showInDev:p,title:a},"disclaimer-"+a.toString());q.push(m)}h!=null&&q.push(h);n===!0&&q.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:d("SellerInsightsFbts").ESTIMATED_AND_THIRD_PARTY},"metric-reported-text"));b!==null&&q.push(b);var x=d("SellerInsightsLoggingUtils").hoverScenario(c("qpl")._(7084665,"3938"),{AccountID:(g=r)!=null?g:"0",Channel:(o=t)!=null?o:d("SellerInsightsLoggingConstants").FACEBOOK_AND_INSTAGRAM,FBChannelIDs:v,IGChannelIDs:u,PageIDs:s,Section:w,ToolTipName:(f=a==null?void 0:a.toString())!=null?f:""},d("SellerInsightsLoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return i.jsx(c("GeoPopover.react"),{content:i.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",direction:"vertical",relation:"related",children:i.jsx("div",{onClick:function(a){return a.stopPropagation()},children:q})}),heading:a,isSticky:!1,position:k,renderDelay:l,onToggle:function(a){return a?x():x.reset()},children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsMetricEstimateDisclaimer.react",["CommerceManagerContext","GeoText.react","SellerExperienceHelpCenterLinks","SellerInsightsContext","SellerInsightsFbts","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsQPLLoggingHooks","URI","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext;function a(a){var b=a.isEstimated,e=a.showInDev,f=a.title;a=k(c("CommerceManagerContext"));var g=a.cmsID;a=k(c("SellerInsightsContext"));var i=a.channels,l=a.igChannelIDs,m=a.fbChannelIDs,n=a.pageIDs,o=d("SellerInsightsQPLLoggingHooks").useNameFromSectionAndSubSection(),p=i.length>1?d("SellerInsightsLoggingConstants").FACEBOOK_AND_INSTAGRAM:i[0];a=function(){var a;d("SellerInsightsLoggingUtils").atomicScenario(c("qpl")._(7084033,"3990"),{AccountID:(a=g)!=null?a:"0",Channel:p,Destination:new(h||(h=c("URI")))(d("SellerExperienceHelpCenterLinks").METRIC_DEVELOPMENT).toString(),FBChannelIDs:m,IGChannelIDs:l,PageIDs:n,Section:o,ToolTipName:f.toString()})};i=e?b?d("SellerInsightsFbts").IN_DEVELOPMENT_AND_ESTIMATED(a):d("SellerInsightsFbts").IN_DEVELOPMENT(a):d("SellerInsightsFbts").IS_ESTIMATED(a);return j.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:i},"in-development-text-"+f.toString())}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsPerfUtils.react",["$InternalEnum","CommerceManagerContext","LocalDate","SellerInsightsConstants","SellerInsightsContext","SellerInsightsDateConstants","SellerInsightsEmptyContainer.react","SellerInsightsExitTabActionEnum","SellerInsightsFbts","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h,k=j.useContext,l=j.useEffect,m=b("$InternalEnum").Mirrored(["ChannelComparison","SingleLine","TimeSeriesComparison"]);function a(a,b,e){var f=k(c("CommerceManagerContext")),g=f.cmsID;f=k(c("SellerInsightsContext"));var h=f.channels,i=f.igChannelIDs,j=f.fbChannelIDs;function m(){if(document.visibilityState==="visible")d("SellerInsightsLoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsLoggingUtils").handleActiveTabEventSuccess("perf",(a=g)!=null?a:"0",h,i,j,c("SellerInsightsExitTabActionEnum").TAB_CHANGE)}}var n=function(){d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,b),d("SellerInsightsLoggingUtils").scenarioSuccess(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{}),d("SellerInsightsLoggingUtils").handleActiveTabEventStart(),document.addEventListener("visibilitychange",m)},o=function(){var a;d("SellerInsightsLoggingUtils").scenarioFail(d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{ErrorMessage:(a=e)!=null?a:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS})};d("SellerInsightsHeroInteractionHooks").useHeroInteractionErrorHandler(a,(f=e)!=null?f:d("SellerInsightsLoggingConstants").ERROR_EMPTY_CHARTS);l(function(){a?o():n();return function(){document.removeEventListener("visibilitychange",m)}})}function e(a,b,e){var f=b.subtractDays(1);if(a===m.TimeSeriesComparison&&e==="DAY")return function(a){return null};else return function(a){var b=c("LocalDate").today(d("SellerInsightsDateConstants").DEFAULT_TIMEZONE);!isNaN(a)?b=c("LocalDate").fromInstant(Number(a),d("SellerInsightsDateConstants").DEFAULT_TIMEZONE):b=c("LocalDate").fromUTCDate(new Date(a));a=null;var g=!1;e==="WEEK"?(a=b.startOfWeek().addWeeks(1).subtractDays(1),g=b.getDayOfWeek()!==0):e==="MONTH"&&(a=b.startOfMonth().addMonths(1).subtractDays(1),g=b.getDayOfMonth()!==1);a!==null&&a.isAfter(f)&&(g=!0);return g?d("SellerInsightsFbts").PARTIAL_DATE_RANGE_DISCLAIMER:null}}function n(a,b,e){var f=b.subtractDays(1);if(a===m.TimeSeriesComparison&&e==="DAY")return function(a){return""};else return function(a){var b=c("LocalDate").today(d("SellerInsightsDateConstants").DEFAULT_TIMEZONE);!isNaN(a)?b=c("LocalDate").fromInstant(Number(a),d("SellerInsightsDateConstants").DEFAULT_TIMEZONE):b=c("LocalDate").fromUTCDate(new Date(a));a=null;e==="WEEK"?a=b.startOfWeek().addWeeks(1).subtractDays(1):e==="MONTH"&&(a=b.startOfMonth().addMonths(1).subtractDays(1));a!==null&&a.isAfter(f)&&(a=f);return a===null?b.format(d("SellerInsightsDateConstants").DATE_FORMAT):b.format(d("SellerInsightsDateConstants").DATE_FORMAT)+" - "+a.format(d("SellerInsightsDateConstants").DATE_FORMAT)}}function o(a,b,c){return a!=="RECENT_META_BUYERS"?null:p(b,c.getTimeInterval().getStartDateTime())}o.displayName=o.name+" [from "+f.id+"]";function p(a,b){return b.getUnixTimestampSeconds()>=a?null:i.jsx(c("SellerInsightsEmptyContainer.react"),{cutoffDate:a,hideBorder:!0,nullState:d("SellerInsightsConstants").NULL_STATES.NO_INSIGHTS_FOR_AUDIENCE_SEGMENT_BEFORE_CUTOFF})}p.displayName=p.name+" [from "+f.id+"]";g.PerfChartType=m;g.useLogScenarioEnd=a;g.getTooltipDisclaimerRenderer=e;g.getTooltipPrimaryValueRenderer=n;g.getPotentialNullStateForAudienceSegment=o}),98);
-----
SellerInsightsQPLLoggingHooks",["CommerceManagerContext","SellerInsightsContext","SellerInsightsHeroInteractionHooks","SellerInsightsLoggingConstants","SellerInsightsLoggingUtils","SellerInsightsPerfTabEnum","SellerInsightsSearchParamsUtils","qpl","react","useEffectOnce","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext,j=(e={},e.entry_points=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS_FOR_ABANDON,e.overview=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS_FOR_ABANDON,e.audience=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS_FOR_ABANDON,e.perf=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS_FOR_ABANDON,e.product_tagged_content=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS_FOR_ABANDON,e.collections=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON,e.products=d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON,e);function a(a){var b=i(c("SellerInsightsContext")),e=b.channels,f=b.igChannelIDs,g=b.fbChannelIDs,h=b.pageIDs;b=i(c("CommerceManagerContext"));var l=b.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;b=d("useReactRouter").useRouter();b=b.history;var m=k();d("SellerInsightsLoggingUtils").setCurrentSection(m,l,e,f,g,h);d("SellerInsightsLoggingUtils").scenarioForContainerLoading(l,e,b,m,f,g,h);d("SellerInsightsLoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");d("SellerInsightsHeroInteractionHooks").useHeroInteractionMarkerPointEnd(!0,"JS_loading");c("useEffectOnce")(function(){return function(){d("SellerInsightsLoggingUtils").logNavigateAway(l,e,f,g,h),d("SellerInsightsLoggingUtils").scenarioAbandon(j[a])}})}function k(){var a=i(c("SellerInsightsContext"));a=a.subtab;var b=d("SellerInsightsSearchParamsUtils").getSubsectionSearchParam(),e=c("SellerInsightsPerfTabEnum").Funnel;b=(b=b)!=null?b:e;switch(a){case"perf":return"perf_"+b;case"products":return d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS;case"collections":return d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS;default:return a}}function b(a,b,e){var f=i(c("CommerceManagerContext"));f=f.cmsID;var g=i(c("SellerInsightsContext")),h=g.channels,j=g.fbChannelIDs,k=g.igChannelIDs,l=g.pageIDs;g=g.subtab;return d("SellerInsightsLoggingUtils").hoverScenario(a,babelHelpers["extends"]({},b,{AccountID:(a=f)!=null?a:"0",Channel:h.join(" and "),FBChannelIDs:j,IGChannelIDs:k,PageIDs:l,Section:g}),e)}g.useLoggingForContainer=a;g.useNameFromSectionAndSubSection=k;g.useHoverScenario=b}),98);
-----
SellerInsightsQPLLogger",["CurrentLocale","QPLEvent","QuickPerformanceLogger","SellerInsightsConstants","SellerInsightsLoggingConstants","SellerInsightsQPLEventNameMap","SellerInsightsSearchParams","SignalsFBNuxDataManager","USID","err","qpl","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=new Set([7092490,7088916]),k=new Set([7085819,7092193]),l=new Set(),m=new Set(),n=new Set(),o={isLoggingDebugModeEnabled:!1},p=void 0,q="",r=void 0,s={};function t(a,b){a["delete"](b);b=a.toString();b!==""&&(b="?"+b);history.replaceState({},document.title,location.pathname+b)}function a(a){if(typeof a==="string"){a=new URLSearchParams(a);var b=a.get(c("SellerInsightsSearchParams").AYMT_TIP_NAME);b!=null&&p===void 0&&(t(a,c("SellerInsightsSearchParams").AYMT_TIP_NAME),p=b,q=b,c("setTimeout")(function(){p=""},d("SellerInsightsLoggingConstants").AYMT_TRACKING_EXPIRE_MS))}}function b(a){if(typeof a==="string"){a=new URLSearchParams(a);var b=a.get(c("SellerInsightsSearchParams").REF);b!=null&&r===void 0&&(t(a,c("SellerInsightsSearchParams").REF),r=b,c("setTimeout")(function(){r=""},d("SellerInsightsLoggingConstants").REFERRER_TRACKING_EXPIRE_MS))}}function e(){q=""}function f(){return q}function u(a,b,e,f){if(o.isLoggingDebugModeEnabled){var g=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));g=i.getMarkerId(a).toString()+"-"+((g=b)!=null?g:0);s[g]={}}(h||(h=c("QuickPerformanceLogger"))).markerStart(a,b);D(a,C(e,a,f),b)}function v(a,b,e,f){if(o.isLoggingDebugModeEnabled)var g=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,"client."+b+"_start",{instanceKey:e});D(a,f,e)}function w(a,b,e,f){if(o.isLoggingDebugModeEnabled)var g=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,"client."+b+"_end",{instanceKey:e});D(a,f,e)}function x(a,b){a=(h||(h=c("QuickPerformanceLogger"))).getMarker(a,b);return a==null?void 0:(b=a.points)==null?void 0:b.map(function(a){return a.name})}function y(a,b,e,f){f!=null&&D(a,f,e);b===3&&E(a,{URL:location.href},"URL",e);m.forEach(function(a){n.add(a)});(h||(h=c("QuickPerformanceLogger"))).markerEnd(a,b,e);a===c("qpl")._(741087294,"2028")&&b===2&&r===d("SellerInsightsConstants").COMMERCE_MANAGER_BANNER_REF&&d("SignalsFBNuxDataManager").logNuxView(d("SellerInsightsConstants").COMMERCE_INSIGHTS_BANNER_NAVIGATION_NUX_ID);if(o.isLoggingDebugModeEnabled){e=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((f=e)!=null?f:0);f=z(b);b=s[e];b.eventState=f;b=d("SellerInsightsQPLEventNameMap").getEventName(i.getMarkerId(a));delete s[e]}}function z(a){switch(a){case 2:return"Success!";case 3:return"Failed!";case 477:return"Abandoned!";default:throw c("err")("action type not supported!")}}function A(a,b){(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,b)}function B(a,b,e){var f;f=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((f=e)!=null?f:0);if(o.isLoggingDebugModeEnabled){var g=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));s[f]={}}(h||(h=c("QuickPerformanceLogger"))).markerStart(a,e);D(a,C(b),e);h.markerEnd(a,2,e);if(o.isLoggingDebugModeEnabled){g=s[f];b=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));delete s[f]}}function C(a,b,e){if(b!=null&&k.has((i||(i=d("QPLEvent"))).getMarkerId(b))){var f=!m.has(e);f&&m.add(e);return babelHelpers["extends"]({},a,c("USID").get().contextData(),{IsFirstTimeLoad:f,Locale:c("CurrentLocale").get()})}if(b!=null&&j.has((i||(i=d("QPLEvent"))).getMarkerId(b))){f=!l.has(e);f&&l.add(e);return babelHelpers["extends"]({},a,c("USID").get().contextData(),{IsFirstTimeLoad:f,Locale:c("CurrentLocale").get()})}return babelHelpers["extends"]({},a,c("USID").get().contextData(),{Locale:c("CurrentLocale").get()})}function D(a,b,c){var d=babelHelpers["extends"]({},b,{AYMTTipName:(b=p)!=null?b:"",Referrer:(b=r)!=null?b:""});Object.keys(d).map(function(b){Array.isArray(d[b])?F(a,d,b,c):E(a,d,b,c)})}function E(a,b,e,f){var g;g=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((g=f)!=null?g:0);if(o.isLoggingDebugModeEnabled){if(!(g in s))var j=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));j=(j=s[g])!=null?j:{};s[g]=j;j[e]=b[e]}g=b[e];if(Array.isArray(g)||g==null)return;switch(typeof g){case"string":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{string:(j={},j[e]=b[e],j)},{instanceKey:f});break;case"boolean":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{bool:(g={},g[e]=b[e],g)},{instanceKey:f});break;case"number":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{"double":(j={},j[e]=b[e],j)},{instanceKey:f});break;default:o.isLoggingDebugModeEnabled}}function F(a,b,e,f){var g;g=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((g=f)!=null?g:0);if(o.isLoggingDebugModeEnabled){if(!(g in s))var j=d("SellerInsightsQPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));j=(j=s[g])!=null?j:{};s[g]=j;j[e]=b[e]}g=b[e];if(!Array.isArray(g)||g.length===0)return;switch(typeof g[0]){case"string":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{string_array:(j={},j[e]=b[e],j)},{instanceKey:f});break;case"boolean":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{bool_array:(g={},g[e]=b[e],g)},{instanceKey:f});break;case"number":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{double_array:(j={},j[e]=b[e],j)},{instanceKey:f});break;default:o.isLoggingDebugModeEnabled}}g.isJSloaded=n;g.LoggingSettings=o;g.checkIsComingFromAYMT=a;g.checkReferrer=b;g.setTipNameForConversionLoggingToEmptyString=e;g.getTipNameForConversionLogging=f;g.sellerInsightsQPLStartEvent=u;g.sellerInsightsQPLMarkerPointStart=v;g.sellerInsightsQPLMarkerPointEnd=w;g.sellerInsightsGetMarkerPoints=x;g.sellerInsightsQPLEndEvent=y;g.sellerInsightsQPLAddPoint=A;g.sellerInsightsQPLAtomicEvent=B;g.sellerInsightsQPLAnnotateMarkerStrings=D}),98);
-----
SellerInsightsLoggingUtils",["$InternalEnum","CurrentUser","DateTime","QPLEvent","SellerInsightsExitTabActionEnum","SellerInsightsLoggingConstants","SellerInsightsOverviewComponentEnum","SellerInsightsQPLLogger","SellerInsightsTabUtils","Timezone","debounce","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useRef,k=b("$InternalEnum").Mirrored(["ABANDONED","FAILED","LOADED","LOADING"]),l={},m={},n={},o=new Map(),p=1e3,q=new Set(),r=null,s=d("Timezone").getEnvironmentTimezoneID(),t=null,u=null;function v(a){a=(i||(i=d("QPLEvent"))).getMarkerId(a);if(a in m)return m[a];m[a]=d("SellerInsightsLoggingConstants").INSTANCE_KEY_INITIAL;return m[a]}function w(a){return q.has(a)}function a(){q.clear()}function x(a,b,c){m[(i||(i=d("QPLEvent"))).getMarkerId(a)]==null&&y(a,b,void 0,c)}function y(a,b,c,e){if(c!=null)d("SellerInsightsQPLLogger").sellerInsightsQPLStartEvent(a,c,b,e);else{c=v(a);n[(i||(i=d("QPLEvent"))).getMarkerId(a)]!==k.LOADING&&(d("SellerInsightsQPLLogger").sellerInsightsQPLStartEvent(a,c,b,e),n[(i||(i=d("QPLEvent"))).getMarkerId(a)]=k.LOADING)}}function e(a,b,d,e,f,g,h){var i;if(((i=d.location.state)==null?void 0:i.prevTab)!=="performance"||d.action==="POP"){x(c("qpl")._(7092490,"3429"),{AccountID:a,Channel:b.join(" and "),CollectionID:(a=(i=d.location.state)==null?void 0:i.collectionID)!=null?a:"",FBChannelIDs:g,IGChannelIDs:f,IsFreshLoad:d.action==="POP",NavigationMethod:(i=(b=d.location.state)==null?void 0:b.navigationMethod)!=null?i:"",PageIDs:h,PreviousTab:(g=(a=d.location.state)==null?void 0:a.prevTab)!=null?g:"",Section:e},e)}}function f(a,b,e,f,g,h){q.add(a);if(r!==a){if(r!=null){var i;i=(i=t)==null?void 0:i.secondsUntil(c("DateTime").now(s));d("SellerInsightsQPLLogger").sellerInsightsQPLAtomicEvent(c("qpl")._(7084444,"2109"),{AccountID:b,Channel:e.join(" and "),DurationInSeconds:(i=i)!=null?i:0,FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,Section:(i=r)!=null?i:""});M((i=r)!=null?i:"",b,e,f,g,c("SellerInsightsExitTabActionEnum").NAV_AWAY);J(c("qpl")._(7088916,"5463"),{AccountID:b,Channel:e.join(" and "),FBChannelIDs:g,IGChannelIDs:f,NewSection:a,PageIDs:h,PreviousSection:r},void 0,a)}r=a;s=d("Timezone").getEnvironmentTimezoneID();t=c("DateTime").now(s)}}function z(a,b,e,f,g){var h;h=(h=location.pathname)==null?void 0:(h=h.match(//commerce/[d]+/(.*)/))==null?void 0:h[1].split("/");if(h==null||h[0]!=="performance"){d("SellerInsightsQPLLogger").sellerInsightsQPLAtomicEvent(c("qpl")._(7088932,"5548"),{AccountID:a,Channel:b.join(" and "),FBChannelIDs:f,IGChannelIDs:e,NextSubTab:h!=null?h[1]:"",NextTab:h!=null?h[0]:"",PageIDs:g,Section:(h=r)!=null?h:""});M((h=r)!=null?h:"",a,b,e,f,c("SellerInsightsExitTabActionEnum").NAV_AWAY);h=(h=t)==null?void 0:h.secondsUntil(c("DateTime").now(s));d("SellerInsightsQPLLogger").sellerInsightsQPLAtomicEvent(c("qpl")._(7084444,"2109"),{AccountID:a,Channel:b.join(" and "),DurationInSeconds:(a=h)!=null?a:0,FBChannelIDs:f,IGChannelIDs:e,PageIDs:g,Section:(b=r)!=null?b:""});r=null;t=null;H([c("qpl")._(7088916,"5463")]);delete m[(i||(i=d("QPLEvent"))).getMarkerId(c("qpl")._(7092490,"3429"))];delete n[i.getMarkerId(c("qpl")._(7092490,"3429"))]}}function A(a,b){for(var a=a,c=Array.isArray(a),e=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(c){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;var g=v(f);d("SellerInsightsQPLLogger").sellerInsightsQPLAnnotateMarkerStrings(f,b,g)}}function B(a,b,c){c===void 0&&(c={});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=v(g);if(n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING){var j=d("SellerInsightsQPLLogger").sellerInsightsGetMarkerPoints(g,h);j!=null&&(j.includes("client."+b+"_start")||d("SellerInsightsQPLLogger").sellerInsightsQPLMarkerPointStart(g,b,h,c))}}}function C(a,b,c){c===void 0&&(c={});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=v(g);n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING&&D(g,b,h,c)}}function D(a,b,c,e){e===void 0&&(e={});var f=d("SellerInsightsQPLLogger").sellerInsightsGetMarkerPoints(a,c);f!=null&&(!f.includes("client."+b+"_end")&&f.includes("client."+b+"_start")&&d("SellerInsightsQPLLogger").sellerInsightsQPLMarkerPointEnd(a,b,c,e))}function E(a,b,c){for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;if(c!=null)d("SellerInsightsQPLLogger").sellerInsightsQPLEndEvent(g,2,c,b);else if(n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING){var h=v(g);d("SellerInsightsQPLLogger").sellerInsightsQPLEndEvent(g,2,h,b);n[(i||(i=d("QPLEvent"))).getMarkerId(g)]=k.LOADED;m[i.getMarkerId(g)]+=1}}}function F(a,b,c,e,f){for(var g=a,h=Array.isArray(g),j=0,g=h?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(h){if(j>=g.length)break;l=g[j++]}else{j=g.next();if(j.done)break;l=j.value}var m=l;if(n[(i||(i=d("QPLEvent"))).getMarkerId(m)]===k.LOADING){l=function(){var g=v(m);g=d("SellerInsightsQPLLogger").sellerInsightsGetMarkerPoints(m,g);if(g==null)return"continue";var h=new Set(g);g=c.every(function(a){return h.has("client."+a+"_end")});g&&(E(a,b,e),f&&f())}();if(l==="continue")continue}}}function G(a,b,d){l[a]=!0;a=!0;var e=Array.from(c("SellerInsightsOverviewComponentEnum").members());e.forEach(function(b){l[b]||(a=!1)});a&&(E(b,{},d),L())}function H(a,b,e){for(var a=a,f=Array.isArray(a),g=0,a=f?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=a.length)break;h=a[g++]}else{g=a.next();if(g.done)break;h=g.value}h=h;if(e!=null)d("SellerInsightsQPLLogger").sellerInsightsQPLEndEvent(h,477,e,b);else{if(n[(i||(i=d("QPLEvent"))).getMarkerId(h)]===k.LOADING){var j=v(h);d("SellerInsightsQPLLogger").sellerInsightsQPLEndEvent(h,477,j,b)}if(h!==c("qpl")._(7092490,"3429")){j=(i||(i=d("QPLEvent"))).getMarkerId(h);delete m[j];delete n[j]}}}}function I(a,b,c){for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;if(c!=null)d("SellerInsightsQPLLogger").sellerInsightsQPLEndEvent(g,3,c,b);else if(n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING){var h=v(g);d("SellerInsightsQPLLogger").sellerInsightsQPLEndEvent(g,3,h,b);m[(i||(i=d("QPLEvent"))).getMarkerId(g)]+=1;n[i.getMarkerId(g)]=k.FAILED}}}function J(a,b,c,d){H([a],{},c),y(a,b,c,d)}function K(a,b){d("SellerInsightsQPLLogger").sellerInsightsQPLAtomicEvent(a,b)}function L(){u==null&&(u=Date.now(),J(c("qpl")._(7093594,"5724"),{}))}function M(a,b,d,e,f,g){var h=Date.now();h=(h-((h=u)!=null?h:0))/p;E([c("qpl")._(7093594,"5724")],{AccountID:b,Channels:d.join(" and "),DurationInSeconds:h,ExitTabAction:g,FBChannelIDs:f,IGChannelIDs:e,Section:a});u=null}function N(a,b,d){return c("debounce")(function(){K(a,b)},d)}function O(){var a,b=location.pathname;a=b==null?void 0:(a=b.match(//commerce/[d]+/(.*)/))==null?void 0:a[0].split("/")[2];b=b==null?void 0:(b=b.match(//commerce/[d]+/(.*)/))==null?void 0:b[1].split("/");if(b!=null&&b[0]==="performance"){b=P(b);d("SellerInsightsQPLLogger").LoggingSettings.isLoggingDebugModeEnabled=c("CurrentUser").isEmployee();y(c("qpl")._(7085819,"6371"),{AccountID:(a=a)!=null?a:"",IsFreshLoad:!0,PreviousTab:"",Section:b},void 0,b);B([c("qpl")._(7085819,"6371")],"JS_loading")}}function P(a){if(a[1]===d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_SECTION_PERF){var b=new URLSearchParams(location.search);b=b.get("perf_tab");return b!=null?d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_SECTION_PERF+"_"+b:d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_SECTION_PERF}if(a[1]===d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB_PRODUCTS)return d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS;return a[1]===d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB_COLLECTIONS?d("SellerInsightsLoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS:a[1]}function Q(a,b,e,f){b=d("SellerInsightsTabUtils").convertSideTabKeyIntoSectionKey(b,e);if(b!=null){J(c("qpl")._(7085819,"6371"),{AccountID:(e=a)!=null?e:"",IsFreshLoad:!1,PreviousTab:(a=f)!=null?a:"",Section:b},void 0,b);B([c("qpl")._(7085819,"6371")],"JS_loading")}else H([c("qpl")._(7092193,"5380"),c("qpl")._(7085819,"6371")])}function R(a,b,e,f){e=d("SellerInsightsTabUtils").convertSectionKeyIntoSideTabKey(b,e);b=d("SellerInsightsTabUtils").convertSectionKeyIntoSideTabKey(b,f);J(c("qpl")._(7092193,"5380"),{AccountID:(f=a)!=null?f:"",NewSection:(a=b)!=null?a:"",PreviousSection:(f=e)!=null?f:""},void 0,(a=b)!=null?a:"")}function S(a,b,e,f){e=d("SellerInsightsTabUtils").convertSectionKeyIntoSideTabKey(e,f);b=d("SellerInsightsTabUtils").convertSectionKeyIntoSideTabKey(b,f);if(!w(e)){J(c("qpl")._(7085819,"6371"),{AccountID:(f=a)!=null?f:"",IsFreshLoad:!1,PreviousTab:(f=b)!=null?f:"",Section:e},void 0,(f=e)!=null?f:"");B([c("qpl")._(7085819,"6371")],"JS_loading")}else{J(c("qpl")._(7092193,"5380"),{AccountID:(f=a)!=null?f:"",NewSection:(a=e)!=null?a:"",PreviousSection:(f=b)!=null?f:""},void 0,(a=e)!=null?a:"");B([c("qpl")._(7092193,"5380")],"JS_loading")}}function T(a,b,c,d){o.clear(),a.forEach(function(a){return o.set(a,k.LOADING)}),b!=null&&c!=null&&y(b,c,d)}function U(a,b,c,d){o.clear(),a.forEach(function(a){return o.set(a,k.LOADING)}),b!=null&&c!=null&&J(b,c,d)}function V(a,b,c,d){o.set(a,k.LOADED),Y(b,c,d)}function W(a,b,c,d){o.set(a,k.FAILED),Y(b,c,d)}function X(a,b,c,d){o.set(a,k.ABANDONED),Y(b,c,d)}function Y(a,b,c){var d=Array.from(o.values());d.every(function(a){return a===k.LOADED})?E(a,b,c):d.some(function(a){return a===k.FAILED})?I(a,b,c):d.some(function(a){return a===k.ABANDONED})&&H(a,b,c)}function Z(a,b,c){var d=j(b.length),e=j(!1),f=function(){d.current=b.length,e.current=!1},g=function(){return d.current=Math.max(0,d.current-1)};return function(){y(a,c);var h=function(){if(j){if(k>=i.length)return"break";l=i[k++]}else{k=i.next();if(k.done)return"break";l=k.value}var b=l,h=b.count,m=b.loadNext,n=b.pointName;B([a],n);m(h,{onComplete:function(b){g();C([a],n);e.current||(e.current=b!=null);if(d.current>0)return;f();e.current?I([a],c):E([a],c)}})};for(var i=b,j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l,m=h();if(m==="break")break}}}g.sectionIsVisited=w;g.cleanupVisitedSections=a;g.scenarioStartOnce=x;g.scenarioStart=y;g.scenarioForContainerLoading=e;g.setCurrentSection=f;g.logNavigateAway=z;g.scenarioAnnotate=A;g.scenarioMarkerPointStart=B;g.scenarioMarkerPointEnd=C;g.scenarioSuccess=E;g.scenarioSuccessWithMarkerPoints=F;g.scenarioSuccessIfAllComponentsLoadedInOverview=G;g.scenarioAbandon=H;g.scenarioFail=I;g.scenarioRestart=J;g.atomicScenario=K;g.handleActiveTabEventStart=L;g.handleActiveTabEventSuccess=M;g.hoverScenario=N;g.commerceInsightsPageLoadingV2Scenario=O;g.commerceInsightsTabClickScenario=Q;g.commerceInsightsSubsectionChange=R;g.commerceInsightsSectionChangeV2Scenario=S;g.componentsStart=T;g.componentsRestart=U;g.componentSuccess=V;g.componentFail=W;g.componentAbandon=X;g.useAggregatedLoadNextWithLogging=Z}),98);
-----
SellerInsightsLoggingConstants",["qpl"],(function(a,b,c,d,e,f,g){"use strict";var h;a=1e3;b=60*a;d=60*b;e=2e3;f=2e3;var i=2e3,j=2e3,k=2e3,l=d,m=d,n=1,o="Facebook And Instagram",p="error: empty charts",q="error: Top-level Relay query returned null",r="error: not enough data",s="not enough data",t="perf",u="products",v="collections",w={COLLECTIONS:"catalog_collections",PRODUCTS:"catalog_products"},x=[(h=c("qpl"))._(7092490,"3429"),h._(7085819,"6371"),h._(7079940,"4268"),h._(7083971,"1966")],y=[].concat(x,[h._(7081993,"554"),h._(7085174,"624"),h._(7083043,"3731"),h._(7087889,"6962"),h._(7083044,"547")]),z=[].concat(y.filter(function(a){return a!==c("qpl")._(7083043,"3731")&&a!==c("qpl")._(7085174,"624")}),[h._(7088916,"5463"),h._(7092193,"5380")]),A=[].concat(x,[h._(7081993,"554"),h._(7085174,"624"),h._(7083043,"3731"),h._(7092951,"142")]),B=[].concat(A.filter(function(a){return a!==c("qpl")._(7083043,"3731")&&a!==c("qpl")._(7092951,"142")&&a!==c("qpl")._(7085174,"624")}),[h._(7088916,"5463"),h._(7092193,"5380")]),C=[].concat(x,[h._(7081993,"554"),h._(7087889,"6962")]),D=[].concat(x,[h._(7081993,"554"),h._(7087889,"6962"),h._(7081379,"1729"),h._(7079214,"4458"),h._(7082489,"80"),h._(7086136,"82"),h._(7080207,"81"),h._(7082248,"6047"),h._(741087294,"2028")]),E=[].concat(C.filter(function(a){return a!==c("qpl")._(741087294,"2028")}),[h._(7088916,"5463"),h._(7092193,"5380")]),F=[].concat(D,[h._(7088916,"5463"),h._(7092193,"5380")]),G=[].concat(x,[h._(741087294,"2028"),h._(7083175,"7311"),h._(7085498,"15910")]),H=[].concat(G,[h._(7088916,"5463"),h._(7092193,"5380")]),I=[].concat(x,[h._(7093901,"6795"),h._(741087294,"2028")]),J=[].concat(I,[h._(7088916,"5463"),h._(7092193,"5380")]),K=[].concat(x,[h._(741087294,"2028"),h._(7081379,"1729"),h._(7086483,"270"),h._(7086957,"623"),h._(7083044,"547")]);h=[].concat(K,[h._(7088916,"5463"),h._(7092193,"5380")]);var L="ASCENDING",M="DESCENDING";g.MILLISECONDS_IN_SECOND=a;g.MILLISECONDS_IN_MINUTE=b;g.MILLISECONDS_IN_HOUR=d;g.DELAY_FOR_PRODUCT_GROUP_DETAILS_IN_MS=e;g.DELAY_FOR_CARD_HOVER_IN_MS=f;g.DELAY_FOR_TABLE_HOVER_IN_MS=i;g.DELAY_FOR_TOOLTIP_HOVER_IN_MS=j;g.DELAY_FOR_CHART_HOVER_IN_MS=k;g.AYMT_TRACKING_EXPIRE_MS=l;g.REFERRER_TRACKING_EXPIRE_MS=m;g.INSTANCE_KEY_INITIAL=n;g.FACEBOOK_AND_INSTAGRAM=o;g.ERROR_EMPTY_CHARTS=p;g.ERROR_NULL_RELAY_RESPONSE=q;g.ERROR_NOT_ENOUGH_DATA=r;g.NOT_ENOUGH_DATA=s;g.SELLER_INSIGHTS_SECTION_PERF=t;g.SELLER_INSIGHTS_CATALOG_SUBTAB_PRODUCTS=u;g.SELLER_INSIGHTS_CATALOG_SUBTAB_COLLECTIONS=v;g.SELLER_INSIGHTS_CATALOG_SUBTAB=w;g.SELLER_INSIGHTS_V2_COMMON_EVENTS=x;g.SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON=y;g.SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS=z;g.SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON=A;g.SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS=B;g.SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS_FOR_ABANDON=C;g.SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS_FOR_ABANDON=D;g.SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS=E;g.SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS=F;g.SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS_FOR_ABANDON=G;g.SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS=H;g.SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS_FOR_ABANDON=I;g.SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS=J;g.SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS_FOR_ABANDON=K;g.SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS=h;g.TABLE_SORTING_ASCENDING_DIRECTION=L;g.TABLE_SORTING_DESCENDING_DIRECTION=M}),98);
-----
OCCastingZenonMediaPlayer.react",["OCCastingHandshakeSessionIDContext.react","OCCastingLoggingConstants","OCCastingSignalingTransportTypeContext.react","OCCastingVRHeadsetWebcastingHeartBeatFalcoEventLogger","OCCastingZenonVideoToolbar.react","OCDSText.react","ZenonUIMedia","promiseDone","react","stylex","useOCCastingConnectedDurationTime.react","useOCCastingInterval.react","useOCCastingTimeToConnect.react","useOCCastingVRCameraPlatformEventLoggerWithContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useRef,n=b.useState;function a(a){var b=a.label,e=a.muted,f=a.stream;a=a.videoEnabled;var g=m(null),i=n(!1),p=i[0],q=i[1],r=k(c("OCCastingHandshakeSessionIDContext.react"));i=k(c("OCCastingSignalingTransportTypeContext.react"));var s=d("useOCCastingTimeToConnect.react").useOCCastingTimeToConnect(),t=s.getTimeToConnect,u=c("useOCCastingVRCameraPlatformEventLoggerWithContext")("casting_web_media_loaded"),v=c("useOCCastingVRCameraPlatformEventLoggerWithContext")(d("OCCastingLoggingConstants").OCCastingLoggingSubEventNames.CASTING_WEB_CONNECTED),w=c("useOCCastingVRCameraPlatformEventLoggerWithContext")(d("OCCastingLoggingConstants").OCCastingLoggingSubEventNames.CASTING_WEB_TIME_TO_CONNECT);s=d("useOCCastingConnectedDurationTime.react").useOCCastingConnectedDurationTime();var x=s.setConnectedDurationConnectedTime;s=d("useOCCastingInterval.react").useOCCastingInterval();var y=s.onStartInterval;l(function(){var a=g.current;if(a==null||f===void 0)return;a.onloadeddata=function(){u()};a.onplaying=function(){v(),w({metric_value:t()}),x(),y(function(){return c("OCCastingVRHeadsetWebcastingHeartBeatFalcoEventLogger")({event_session_id:r})})};c("promiseDone")(c("ZenonUIMedia").attachMediaStream(a,f).then(function(){return q(!0)}));return function(){var b;if(a===null||f===void 0)return;c("ZenonUIMedia").detachMediaStream(a);((b=window.document)==null?void 0:b.pictureInPictureElement)!=null&&window.document.exitPictureInPicture!=null&&window.document.exitPictureInPicture();q(!1)}},[t,y,v,w,u,r,x,i,f,g]);return j.jsxs("div",{className:"x1g3vhme x78zum5 x1n2onr6 xl56j7k x6s0dn4 xh8yej3 xt7dq6l x186iv6y",children:[j.jsx(c("OCCastingZenonVideoToolbar.react"),{hasVideo:p,videoElement:g.current,children:j.jsx("video",{autoPlay:!0,className:(h||(h=c("stylex")))(o.video,!a&&o.hidden),muted:e,playsInline:!0,ref:g})}),!a&&j.jsx(c("OCDSText.react"),{type:"body1",children:"Video off"}),b!==void 0&&j.jsxs("span",{className:"x10l6tqk x13vifvy xu96u03 xpequ6v x123j3cw x1mpkggp xs9asl8 x1t2a60a",children:[" ",j.jsx(c("OCDSText.react"),{color:"white",type:"body2",children:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";var o={video:{width:"xh8yej3",height:"xt7dq6l",aspectRatio:"x186iv6y",$$css:!0},hidden:{display:"x1s85apg",$$css:!0}};g["default"]=a}),98);
-----
OCCastingZenonStateMachine.react",["OCCastingCallContext.react","OCCastingDevLog","OCCastingHandshakeSessionIDContext.react","OCCastingIsDocumentVisibleContext","OCCastingLoggingConstants","OCCastingMediaPlaceholder.react","OCCastingMessage.react","OCCastingSignalingTransportTypeContext.react","OCCastingThemeContext","OCCastingVRCameraPlatformErrorLogger","OCCastingZenonContextProvider.react","OCCastingZenonHooks.react","OCCastingZenonMediaContainer.react","OculusMqttChannel","Promise","Run","ZenonCallsModelTypes","ZenonPeerID","ZenonRequestedMediaType","asyncToGeneratorRuntime","clearTimeout","justknobx","promiseDone","react","setTimeout","stylex","useOCCastingConnectedDurationTime.react","useOCCastingInterval.react","useOCCastingVRCameraPlatformEventLoggerWithContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useMemo,p=e.useState;function a(a){var e=a.callIdentifier,f=a.callRingingDispatch,g=a.connectionMethod,j=g===void 0?"link_id":g;g=a.isEnterprise;a.isSecondaryUser;var r=a.onCallStarted,s=a.onCleanup,t=a.onStreamLoaded;a=a.setShowingMessage;var u=m(c("OCCastingHandshakeSessionIDContext.react")),v=m(c("OCCastingSignalingTransportTypeContext.react")),w=m(c("OCCastingIsDocumentVisibleContext")),x=d("OCCastingCallContext.react").useOCCastingCallInstance(),y=p("Init"),z=y[0],A=y[1];y=p(null);var B=y[0],C=y[1],D=c("OCCastingZenonHooks.react").useCurrentUserId(),E=c("OCCastingZenonHooks.react").useCurrentCall(),F=c("OCCastingZenonHooks.react").useCallState();y=c("OCCastingZenonHooks.react").useCallState();var G=c("OCCastingZenonHooks.react").useInCallParticipants(),H=m(c("OCCastingThemeContext")),I=c("useOCCastingVRCameraPlatformEventLoggerWithContext")("casting_web_call_created"),J=c("useOCCastingVRCameraPlatformEventLoggerWithContext")(d("OCCastingLoggingConstants").OCCastingLoggingSubEventNames.CASTING_WEB_CONNECTING),K=c("useOCCastingVRCameraPlatformEventLoggerWithContext")(d("OCCastingLoggingConstants").OCCastingLoggingSubEventNames.ZENON_CALL_STATE_UPDATED),L=c("useOCCastingVRCameraPlatformEventLoggerWithContext")("casting_web_hmd_joined"),M=c("useOCCastingVRCameraPlatformEventLoggerWithContext")(d("OCCastingLoggingConstants").OCCastingLoggingSubEventNames.CASTING_WEB_DISCONNECTED),N=c("useOCCastingVRCameraPlatformEventLoggerWithContext")(d("OCCastingLoggingConstants").OCCastingLoggingSubEventNames.CASTING_WEB_CONNECTED_DURATION),O=d("useOCCastingConnectedDurationTime.react").useOCCastingConnectedDurationTime(),P=O.getConnectedDuration,Q=O.resetConnectedDurationConnectedTime;O=d("useOCCastingInterval.react").useOCCastingInterval();var R=O.onStopInterval;O=m(d("OCCastingZenonContextProvider.react").OCCastingZenonContext);var S=O.callSDK,T=O.currentCallInstance,U=O.setCurrentCallInstance,V=d("OculusMqttChannel").getOculusMqttChannelInstanceDoNotCreate();O=o(function(){return G.filter(function(a){return a.id!==D&&a.state===d("ZenonCallsModelTypes").ZenonCallParticipantState.Connected}).length>0},[G,D]);n(function(){K({message:JSON.stringify({call_state:F,server_info_data:E==null?void 0:E.collisionContext.serverInfoData})})},[F,K,E==null?void 0:E.collisionContext.serverInfoData]);var W=l(function(a,d){if(z==="Disconnected")return;A("Disconnected");N({metric_value:P()});Q();R();var e=JSON.stringify({casting_end_call_reason:a,details:d,call_state:E==null?void 0:E.callState,mqtt_state:V==null?void 0:V.getConnectionState()});switch(a){case"all_participants_left_call":case"browser_closed":case"document_hidden_timeout":M({message:e});break;case"zenon_ended_call":if((d==null?void 0:d.end_call_reason)==null){c("OCCastingVRCameraPlatformErrorLogger")({error_message:e,session_id:u,signaling_transport_type:v});break}switch(d==null?void 0:d.end_call_reason){case"HangupCall":M({message:e});break;case"ConnectionDropped":default:c("OCCastingVRCameraPlatformErrorLogger")({error_message:e,session_id:u,signaling_transport_type:v})}break;case"init_connecting_timed_out":default:c("OCCastingVRCameraPlatformErrorLogger")({error_message:e,session_id:u,signaling_transport_type:v});break}d=c("justknobx")._("2054")&&a==="init_connecting_timed_out"&&V!==null&&(V==null?void 0:V.getConnectionState())!=="Connected";e=s(d?"error":null);if(a!=="zenon_ended_call"){a=(d=T==null?void 0:T.endCall("HangupCall",a))!=null?d:(i||(i=b("Promise"))).resolve();c("promiseDone")(a)}c("promiseDone")(e)},[z,N,P,Q,R,E==null?void 0:E.callState,V,s,M,u,v,T]);n(function(){if(F!==d("ZenonCallsModelTypes").ZenonCallState.Terminated&&F!==d("ZenonCallsModelTypes").ZenonCallState.Terminating)return;var a={end_call_reason:E==null?void 0:E.endCallReason,end_call_details:E==null?void 0:E.endCallDetails};W("zenon_ended_call",a)},[W,F,E]);n(function(){var a=d("Run").onBeforeUnload(function(){W("browser_closed")});return function(){a.remove()}},[W]);n(function(){var a=E==null?void 0:E.collisionContext.serverInfoData;if(z!=="Connected"||a===null)return;L({message:"Connected to call with serverInfoData="+((a=a)!=null?a:"")+" and callIdentifier="+e})},[E==null?void 0:E.collisionContext.serverInfoData,z,e,u,v,L]);var X=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){var f=new RegExp("^[0-9]+$");f=f.test(e)?{rtcDoorID:e}:{linkUrl:e};f={callMedia:c("ZenonRequestedMediaType").Audiovideo,peerID:d("ZenonPeerID").ZenonMWPeerID,usersToRing:[],localMedia:[],roomID:null,joiningContext:f};yield a.initSignaling(d("ZenonPeerID").ZenonMWPeerID);return a.createCall().join(f).then(function(a){I({message:"Call created for callIdentifier "+e}),b(a),x.setCallInstance(a)},function(a){c("OCCastingVRCameraPlatformErrorLogger")({error:a,error_message:"Cannot create call",session_id:u,signaling_transport_type:v}),A("Error")})});return function(b,c){return a.apply(this,arguments)}}(),[e,I,u,v]);O&&B!==null&&(c("clearTimeout")(B),C(null));O&&z==="Connecting"&&(A("Connected"),c("clearTimeout")(B),C(null));if(!O&&z==="Connected"&&B===null){O=c("setTimeout")(function(){return W("all_participants_left_call")},c("justknobx")._("509"));C(O)}n(function(){if(z!=="Init")return;if(S==null||U==null){c("OCCastingVRCameraPlatformErrorLogger")({error_message:"Cannot begin Init phase callSDK is null",session_id:u,signaling_transport_type:v});A("Error");return}if(B==null){var a=c("setTimeout")(function(){return W("init_connecting_timed_out")},c("justknobx")._("1285"));C(a)}if("link_id"===j){A("Connecting");J({message:"Connecting with callIdentifier "+e});c("promiseDone")(X(S,U),function(){return c("promiseDone")(r())});return}f!=null&&(A("Connecting"),J({message:"Connecting with call ringing"}),f(function(){return c("OCCastingDevLog")("callRingingDispatch on connect")},function(){return c("OCCastingDevLog")("callRingingDispatch on rejected")}))},[f,S,W,B,e,r,J,u,U,v,X,z,j]);n(function(){if(z==="Connected"&&w===!1){var a=c("setTimeout")(function(){return W("document_hidden_timeout")},c("justknobx")._("1955"));return function(){c("clearTimeout")(a)}}},[W,w,z]);switch(z){case"Disconnected":return k.jsx(d("OCCastingMessage.react").OCCastingMessage,{isEnterprise:g,setShowingMessage:a,type:d("OCCastingMessage.react").MessageType.CastingEnded});case"ConnectTimeout":return k.jsx(d("OCCastingMessage.react").OCCastingMessage,{isEnterprise:g,setShowingMessage:a,type:d("OCCastingMessage.react").MessageType.ConnectTimeout});case"Error":return k.jsx(d("OCCastingMessage.react").OCCastingMessage,{isEnterprise:g,setShowingMessage:a,type:d("OCCastingMessage.react").MessageType.Error});default:}a&&a(!1);t&&t();O="link_id"===j&&z!=="Connected";a="call_ringing"===j&&y!==d("ZenonCallsModelTypes").ZenonCallState.Connected;return O||a?k.jsx(c("OCCastingMediaPlaceholder.react"),{showSpinner:!0}):k.jsx("section",{className:"x6ikm8r x10wlt62 x1lliihq x1n2onr6 x2b8uid xdj266r xkrivgy xat24cr x1gryazu xp48rlq xyyi3m9",children:k.jsx("div",{className:(h||(h=c("stylex")))(g&&q.enterpriseContainerMobile,q.videoContainer,H.noChrome&&q.videoContainerNoChrome),children:k.jsx("div",{className:"x1r1mewj xh8yej3 x5yr21d x1hftqpr xl1xv1r",children:k.jsx(c("OCCastingZenonMediaContainer.react"),{})})})})}a.displayName=a.name+" [from "+f.id+"]";var q={videoContainerNoChrome:{height:"x1dr59a3",width:"xn9wirt",position:"xixxii4",top:"x13vifvy",start:"x17qophe",left:null,right:null,marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",zIndex:"x1vjfegm",$$css:!0},videoContainer:{width:"x8fmnwm",height:"x1np647f",marginTop:"xdj266r",marginEnd:"xkrivgy",marginBottom:"xat24cr",marginStart:"x1gryazu",$$css:!0},enterpriseContainerMobile:{"@media (max-width: 1200px)_height":"x1pdxtey","@media (max-width: 1200px)_width":"xgdfvxv","@media (max-width: 1200px)_position":"x1tet1hj","@media (max-width: 1200px)_top":"xclp5tl","@media (max-width: 1200px)_start":"x18oepwg","@media (max-width: 1200px)_left":null,"@media (max-width: 1200px)_right":null,"@media (max-width: 1200px)_marginTop":"x1vihec2","@media (max-width: 1200px)_marginEnd":"x1uwduwm","@media (max-width: 1200px)_marginBottom":"x1p148fz","@media (max-width: 1200px)_marginStart":"x1mfondu","@media (max-width: 1200px)_zIndex":"x1sa8c5x",$$css:!0}};g["default"]=a}),98);
-----
OCCastingViewer.react",["OCCastingDataChannelProtocol","OCCastingHandshakeSessionIDContext.react","OCCastingLoggingConstants","OCCastingMessage.react","OCCastingSignalingTransportTypeContext.react","OCCastingThemeContext","OCCastingVRCameraPlatformErrorLogger","OCCastingVideoToolbar.react","OCPeerConnectionHelper","OCRTCConfigContext","OCWebRTCHandshakeAnswer","OCWebRTCLogger","RelayHooks","Run","UserAgent","asyncToGeneratorRuntime","justknobx","promiseDone","react","stylex","useOCCastingConnectedDurationTime.react","useOCCastingTimeToConnect.react","useOCCastingVRCameraPlatformEventLoggerWithContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useRef,o=e.useState;function a(a){var e,f=a.handshake,g=a.isEnterprise,i=a.onDisconnected,q=a.onStreamLoaded,r=a.relayImpl;a=a.setShowingMessage;var s=l(c("OCCastingHandshakeSessionIDContext.react")),t=l(c("OCCastingSignalingTransportTypeContext.react")),u=n(null),v=n(null),w=d("RelayHooks").useRelayEnvironment(),x=o(""),y=x[0],z=x[1];x=o("new");var A=x[0],B=x[1];x=o(!1);var C=x[0],D=x[1];x=o(!1);var E=x[0],F=x[1];x=o(!1);var G=x[0],H=x[1];x=o(!1);var I=x[0],J=x[1],K=n(G),L=(x=c("useOCCastingVRCameraPlatformEventLoggerWithContext"))("casting_web_status"),M=x((e=d("OCCastingLoggingConstants")).OCCastingLoggingSubEventNames.CASTING_WEB_CONNECTING),aa=x("casting.microphone.initial_mute_status"),N=x("casting_stream_start"),ba=x("casting.microphone.system_mute"),ca=x("casting_web_media_loaded"),da=x("casting_web_webrtc_connected"),O=x(e.OCCastingLoggingSubEventNames.CASTING_WEB_CONNECTED),P=x(e.OCCastingLoggingSubEventNames.CASTING_WEB_DISCONNECTED),Q=x(e.OCCastingLoggingSubEventNames.CASTING_WEB_CONNECTED_DURATION),R=x(e.OCCastingLoggingSubEventNames.CASTING_WEB_TIME_TO_CONNECT),ea=x("casting.widescreen.toggle"),fa=x("casting_web_peer_connection_state_update"),S=x("casting_web_browser_closed_while_not_connected");e=d("useOCCastingConnectedDurationTime.react").useOCCastingConnectedDurationTime();var T=e.getConnectedDuration,U=e.resetConnectedDurationConnectedTime,V=e.setConnectedDurationConnectedTime,W=k(function(a){L({message:a}),z(a)},[L]),X=l(c("OCRTCConfigContext"));x=l(c("OCCastingThemeContext"));var Y=n(null);e=d("useOCCastingTimeToConnect.react").useOCCastingTimeToConnect();var Z=e.getTimeToConnect,$={recordedChunks:[],recorder:null,start:function(a,b){d("OCWebRTCLogger").log("Starting to record"),$.recordedChunks=[],$.recorder=new window.MediaRecorder(a.srcObject,{mimeType:"video/webm; codecs=vp9"}),$.recorder.ondataavailable=function(a){a.data.size>0&&$.recordedChunks.push(a.data)},$.recorder.onstop=function(){var a=new Blob($.recordedChunks,{type:"video/webm"});b(URL.createObjectURL(a))},$.recorder.start()},stop:function(){$.recorder&&$.recorder.state==="recording"&&$.recorder.stop()}};m(function(){var a=d("Run").onBeforeUnload(function(){var a;(a=Y.current)==null?void 0:a.send(JSON.stringify({id:d("OCCastingDataChannelProtocol").STOP_CASTING}));A==="connected"?P():S();Q({metric_value:T()});U();c("promiseDone")(r.deleteHandshakeMutation(f.id,w))});return function(){a.remove()}},[r,w,f.id,P,A,S,T,U,Q]);m(function(){W("Connecting");M();var a=d("OCPeerConnectionHelper").getPeerConnection(X,!f.enableDataChannel),e=function(b){W(b),a.close(),c("promiseDone")(r.deleteHandshakeMutation(f.id,w),function(a){c("promiseDone")(i())},function(a){c("promiseDone")(i())})};a.ondatachannel=function(a){Y.current=a.channel;(a=Y.current)==null?void 0:a.addEventListener("message",d("OCCastingDataChannelProtocol").parseMessage(function(a){if(a.id!=null)switch(a.id){case d("OCCastingDataChannelProtocol").SYSTEM_MIC_MUTE_STATUS_CHANGED:var b,c;b=(b=a.payload)==null?void 0:b.casting_to_web_with_mic_mc;c=(c=a.payload)==null?void 0:c.hmd_system_mic_muted;b!=null&&c!=null?(H(b),K.current=b,F(c),aa({message:JSON.stringify({hmdMicMuted:c})})):c!=null&&K.current&&(F(c),ba({message:JSON.stringify({hmdMicMuted:c})}));break;default:return}else I&&(a==null?void 0:a.allow_screen_recording)===!1&&(J(!1),$.stop());a.type===d("OCCastingDataChannelProtocol").DATA_CHANNEL_MESSAGE_TYPE_STOP_CASTING&&a.error===0&&(P(),Q({metric_value:T()}),U(),e("Disconnected"))}));Y.current!=null&&(Y.current.onopen=function(){var a;(a=Y.current)==null?void 0:a.send(JSON.stringify({id:d("OCCastingDataChannelProtocol").HELLO}))})};d("OCWebRTCLogger").logPeerConnection(a);var g=window.setTimeout(function(){c("OCCastingVRCameraPlatformErrorLogger")({error_message:"casting_browser_error_connect_timeout",session_id:s,signaling_transport_type:t}),W("ConnectTimeout")},3e4);a.ontrack=function(b){if(u!==null&&u.current){var d;d=(d=RTCRtpReceiver.getCapabilities("video"))==null?void 0:d.codecs;d=d==null?void 0:d.filter(function(a){return a.mimeType==="video/H264"});if(d){var e=a.getTransceivers().find(function(a){return a.mid==="video"});e==null?void 0:e.setCodecPreferences(d)}u.current.srcObject=b.streams[0];u.current.onplaying=function(){window.clearTimeout(g);if(c("justknobx")._("953")){z("Playing");return}N();W("Playing");O();R({metric_value:Z()});V()};u.current.onloadeddata=function(){ca(),q&&q()}}};a.onconnectionstatechange=function(){B(a.connectionState);fa({message:a.connectionState});switch(a.connectionState){case"disconnected":case"failed":case"closed":Q({metric_value:T()});U();break;case"connected":case"connecting":case"new":default:break}switch(a.connectionState){case"connected":da();break;case"disconnected":c("OCCastingVRCameraPlatformErrorLogger")({error_message:"casting_browser_error_peer_connection_disconnected_unexpectedly",session_id:s,signaling_transport_type:t});e("Error");break;case"failed":(y==="Connecting"||y==="Playing")&&(c("OCCastingVRCameraPlatformErrorLogger")({error_message:"casting_browser_error_peer_connection_failed",session_id:s,signaling_transport_type:t}),W("Error"));break;case"connecting":case"new":case"closed":default:break}};c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){d("OCWebRTCLogger").log("Setting Offer Locally",f);yield a.setRemoteDescription({type:"offer",sdp:f.offer});var b=(yield a.createAnswer());yield a.setLocalDescription(b);b=(yield d("OCPeerConnectionHelper").getSdp(a));d("OCWebRTCLogger").log("Saving Answer",{answerWithSdp:b});yield d("OCWebRTCHandshakeAnswer").saveAnswer(f.id,b,w,r);d("OCWebRTCLogger").log("Waiting for Connection")})(),null,function(a){c("OCCastingVRCameraPlatformErrorLogger")({error_message:"casting_browser_error_peer_connection_failed",session_id:s,signaling_transport_type:t,error:a}),W("Error")})},[w,X,f.id,f.offer,r,W]);m(function(){if(!c("justknobx")._("953")||y!=="Playing")return;N();O();R({metric_value:Z()});V()},[Z,O,R,N,V,y]);function ga(a){D(a),ea({message:JSON.stringify({isWidescreen:a})})}switch(y){case"Disconnected":return j.jsx(d("OCCastingMessage.react").OCCastingMessage,{isEnterprise:g,setShowingMessage:a,type:d("OCCastingMessage.react").MessageType.CastingEnded});case"ConnectTimeout":return j.jsx(d("OCCastingMessage.react").OCCastingMessage,{isEnterprise:g,setShowingMessage:a,type:d("OCCastingMessage.react").MessageType.ConnectTimeout});case"Error":return j.jsx(d("OCCastingMessage.react").OCCastingMessage,{isEnterprise:g,setShowingMessage:a,type:d("OCCastingMessage.react").MessageType.Error});default:}a&&a(!1);return j.jsx("section",{className:"x6ikm8r x10wlt62 x1lliihq x1n2onr6 x2b8uid xdj266r xkrivgy xat24cr x1gryazu xp48rlq xyyi3m9",children:j.jsx("div",{className:"x1lliihq x1n2onr6 x14atkfc",children:j.jsxs("div",{className:(h||(h=c("stylex")))(g&&p.enterpriseContainerMobile,p.videoContainer,x.noChrome&&p.videoContainerNoChrome),ref:v,children:[j.jsx("video",{autoPlay:!0,className:h([p.video,p.disableDefaultToolbar,C&&p.widescreenVideo]),controls:c("UserAgent").isPlatform("iOS"),id:"casting-video",inline:!0,playsInline:!0,ref:u,onPause:function(){var a;(a=u.current)==null?void 0:a.play()}}),v.current!=null&&u.current!=null?j.jsx(c("OCCastingVideoToolbar.react"),{dataChannel:Y.current,handshakeId:f.id,isMicMCPassed:G,isMicSystemMuted:E,isWidescreen:C,video:u.current,videoContainer:v.current,onSetWidescreen:ga}):null]})})})}a.displayName=a.name+" [from "+f.id+"]";var p={videoContainerNoChrome:{height:"x1dr59a3",width:"xn9wirt",position:"xixxii4",top:"x13vifvy",start:"x17qophe",left:null,right:null,marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",zIndex:"x1vjfegm",$$css:!0},videoContainer:{width:"x8fmnwm",height:"x1np647f",marginTop:"xdj266r",marginEnd:"xkrivgy",marginBottom:"xat24cr",marginStart:"x1gryazu",$$css:!0},enterpriseContainerMobile:{"@media (max-width: 1200px)_height":"x1pdxtey","@media (max-width: 1200px)_width":"xgdfvxv","@media (max-width: 1200px)_position":"x1tet1hj","@media (max-width: 1200px)_top":"xclp5tl","@media (max-width: 1200px)_start":"x18oepwg","@media (max-width: 1200px)_left":null,"@media (max-width: 1200px)_right":null,"@media (max-width: 1200px)_marginTop":"x1vihec2","@media (max-width: 1200px)_marginEnd":"x1uwduwm","@media (max-width: 1200px)_marginBottom":"x1p148fz","@media (max-width: 1200px)_marginStart":"x1mfondu","@media (max-width: 1200px)_zIndex":"x1sa8c5x",$$css:!0},video:{backgroundColor:"x1r1mewj",width:"xh8yej3",height:"x5yr21d",$$css:!0},widescreenVideo:{objectFit:"xl1xv1r",$$css:!0},disableDefaultToolbar:{"::-webkit-media-controls_display":"x1hftqpr",$$css:!0}};g["default"]=a}),98);
-----
OCCastingLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={CASTING_WEB_CONNECTED_DURATION:"casting_web_connected_duration",CASTING_WEB_CONNECTED:"casting_web_connected",CASTING_WEB_CONNECTING:"casting_web_connecting",CASTING_WEB_DISCONNECTED:"casting_web_disconnected",CASTING_WEB_TIME_TO_CONNECT:"casting_web_time_to_connect",ZENON_CALL_STATE_UPDATED:"zenon_call_state_updated"};f.OCCastingLoggingSubEventNames=a}),66);
-----
useFBReelsVDDImpressionLogging",["CometImpressionLoggingUtil","CometRelay","FBLogger","FBReelsLoggingConstants","FBReelsViewerSessionIDContext","cr:3879","react","requireDeferred","useFBReelsProcessRoute","useMinifiedProductAttribution","useVPVDImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");e.useCallback;var i=e.useContext,j=e.c,k=c("requireDeferred")("SfvChainingVpvdFalcoEvent").__setRef("useFBReelsVDDImpressionLogging");function a(a){var e=j(17),f=a.index,g=a.playableDuration,h=a.tracking,l=a.videoID,m=a.videoOwnerID;a=c("useFBReelsProcessRoute")();var n=a.rootVideoID;a=i(c("FBReelsViewerSessionIDContext"));var o=a.viewerSessionID,p=c("useMinifiedProductAttribution")(),q=d("CometRelay").useRelayEnvironment();e[0]!==l||e[1]!==f||e[2]!==m||e[3]!==p||e[4]!==n||e[5]!==g||e[6]!==h||e[7]!==o||e[8]!==q?(a=function(a){var d=a.visibleDuration;if(l==null){c("FBLogger")("fb_reels_web").mustfix("Reels deep dive viewer tried to log a VPVd with no video ID");return}k.onReady(function(a){return a.log(function(){var a;return{client_page_position:String(f),creator_id:m||"",duration:String(d),nav_attribution_id_v2:p,parent_video_id:n,playable_duration_in_ms:String((a=g)!=null?a:0),player_origin:c("FBReelsLoggingConstants").PLAYER_ORIGIN.NEWS_FEED,player_suborigin:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,source_surface:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[h||""],video_id:l,viewer_session_id:o}})});b("cr:3879")(q,l)},e[0]=l,e[1]=f,e[2]=m,e[3]=p,e[4]=n,e[5]=g,e[6]=h,e[7]=o,e[8]=q,e[9]=a):a=e[9];a=a;var r;e[10]!==f||e[11]!==p||e[12]!==h?(r=function(){f!=null&&d("CometImpressionLoggingUtil").logPostImpressionForReel(p,f,h)},e[10]=f,e[11]=p,e[12]=h,e[13]=r):r=e[13];r=r;var s;e[14]!==a||e[15]!==r?(s={onVPVDEnd:a,onVPVDStart:r},e[14]=a,e[15]=r,e[16]=s):s=e[16];return c("useVPVDImpression")(s)}g["default"]=a}),98);
-----
AdsLWICoBAdPreviewIframe.react",["CometFeedStoryGlimmer.react","LWICometLoggingConstants","LegacyHidden","XAdPreviewController","areEqual","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));b=j;var l=b.useEffect,m=b.useMemo,n=b.useRef,o=b.useState,p={feedStoryGlimmer:{marginBottom:"xh3wvx0",width:"xh8yej3",$$css:!0},rightColumn:{display:"x78zum5",justifyContent:"xl56j7k",width:"x1cvmir6",$$css:!0},root:{display:"x78zum5",justifyContent:"xl56j7k",width:"xy9ov0e",$$css:!0}};function a(a){var b=a.adAccountID,e=a.adFormat,f=a.creativeSpecForPreview;a=a.rightColumn;a=a===void 0?!1:a;var g=o(!0),i=g[0],j=g[1];g=o(null);var q=g[0],r=g[1];g=o(null);var s=g[0],t=g[1],u=n(null),v=function(){var a=u.current;a!=null&&(r(a.contentWindow.document.body.scrollHeight),t(a.contentWindow.document.body.scrollWidth))};g=m(function(){var a,g=c("XAdPreviewController").getURIBuilder().setFBID("ad_account_id",b).setEnum("ad_preview_format",e).setFBID("app_id",d("LWICometLoggingConstants").APP_ID).setString("creative_spec",f).getURI().toString();return k.jsx("iframe",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee x6ikm8r x10wlt62",height:Math.max((a=q)!=null?a:0,142),onLoad:function(){j(!1),u.current!=null&&(u.current.contentWindow.addEventListener("resize",v),v())},ref:u,src:g,width:Math.max((a=s)!=null?a:380,320)},g)},[b,e,f,q,s]);l(function(){j(!0)},[b,e,f]);return k.jsxs("div",{className:(h||(h=c("stylex")))(a?p.rightColumn:p.root),children:[i&&k.jsx("div",{className:(h||(h=c("stylex")))(a&&p.feedStoryGlimmer),children:k.jsx(c("CometFeedStoryGlimmer.react"),{})}),k.jsx(c("LegacyHidden"),{mode:i?"hidden":"visible",children:g})]})}a.displayName=a.name+" [from "+f.id+"]";e=k.memo(a,i||(i=c("areEqual")));g["default"]=e}),98);
-----
PartnerIntegrationPixelDialogWrapper.react",["PartnerIntegrationDialogContainer.react","PartnerIntegrationStepsFilterAction","PrereqsLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));a=h.PureComponent;b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.componentDidMount=function(){c("PartnerIntegrationStepsFilterAction").dispatch({stepsFilter:[1]},{line:"32",module:"PartnerIntegrationPixelDialogWrapper.react.js",moduleID:f.id})};e.componentWillUnmount=function(){c("PartnerIntegrationStepsFilterAction").dispatch({stepsFilter:null},{line:"38",module:"PartnerIntegrationPixelDialogWrapper.react.js",moduleID:f.id})};e.render=function(){return this.props.loggingLocation===d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE?i.jsx(c("PartnerIntegrationDialogContainer.react"),{scopes:["AM_L2_INLINE_CREATION"],onDialogEvent:this.props.onDialogEvent}):i.jsx(c("PartnerIntegrationDialogContainer.react"),{onDialogEvent:this.props.onDialogEvent})};return b}(a);g["default"]=b}),98);
-----
LWICometWhatsAppCreativeSection.react",["fbt","AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","LWICometAdgroupUtils","LWICometCTASection.react","LWICometCTWALoggerContext","LWICometCreativeBodyTextEditor.react","LWICometCreativeCarouselEditor.react","LWICometCreativeFormatSelector.react","LWICometCreativeHeadlineEditor.react","LWICometCreativeImageEditor.react","LWICometLoggingConstants","LWICometOptionalLoggingDataContext","LWICometSection.react","LWICometVideoThumbnailPicker.react","LWICometWhatsAppCreativeCatalogPreview.react","LWICometWhatsAppCreativeSection_catalog.graphql","LWICometWhatsAppCreativeSection_lwi.graphql","LWICometWhatsAppMentionedInCreativWarning.react","LWICometWhatsAppPromoteCatalogToggle.react","castToEnum","getJSEnumSafe","lwiCometCreativeReducer","lwiCometWhatsAppCatalogCreativeReducer","qex","react","unrecoverableViolation","useLWICometImpressionLogger","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useContext,n=e.useEffect,o=e.useMemo,p=e.useRef,q=e.useState,r=[];function a(a){var e=a.additionalButtons;e=e===void 0?r:e;var f=a.aux,g=a.boostedComponentInput,k=a.brandedTemplateSection,s=a.ctaLinkHelperText,t=a.enableCarousel;t=t===void 0?!1:t;var u=a.hideLinkEditor;u=u===void 0?!1:u;var v=a.lwiRef,w=a.overrideLabels,x=a.showCTA;x=x===void 0?!1:x;var y=a.showHeadline;y=y===void 0?!0:y;a.showPhoneNumberInput;var z=a.whatsAppCatalogFragmentKey,A=a.adAccountID,B=a.assetFeedSpecPlus,C=a.clientPreviewImageURL,D=a.goal,E=a.objective,F=a.objectStorySpec,G=c("useLWIReducers")([c("lwiCometCreativeReducer"),c("lwiCometWhatsAppCatalogCreativeReducer")]);if(F==null)throw c("unrecoverableViolation")("objectStorySpec cannot be null","pages_lwi");a=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometWhatsAppCreativeSection_catalog.graphql"),z);z=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometWhatsAppCreativeSection_lwi.graphql"),v);v=a.connected_whatsapp_business_name;var H=a.whatsapp_catalog_products,I=o(function(){if((g==null?void 0:g.client_spec_override)==null)return null;try{var a=atob(g.client_spec_override);a=JSON.parse(a);if(typeof a!=="object"||a==null)return null;a=a.whatsapp_catalog_product_ids;return!Array.isArray(a)||a.length===0?null:a.map(function(a){return a.toString()})}catch(a){return null}},[g]),J=H.map(function(a){var b,c;if(I!=null&&!I.includes(a.id))return null;b=a==null?void 0:(b=a.image)==null?void 0:(b=b.image)==null?void 0:b.uri;if(a.id==null||a.name==null||b==null)return null;var d="";if(((c=a.price)==null?void 0:c.amount)!=="0.00"){d=(c=a.price)==null?void 0:c.formatted_amount}return{formattedPrice:d,id:a.id,image:b,name:a.name}}).filter(Boolean),K=q(new Set(J.map(function(a){return a.id}).slice(0,10))),L=K[0];K=K[1];var M=o(function(){return d("LWICometAdgroupUtils").getCreativeDataFromSpec(B,F,C)},[B,C,F]),N=c("useLWILoggerContext")(),O=m(c("LWICometOptionalLoggingDataContext")),P=N.mergeOptionalLoggingData,Q=N.pageID,R=o(function(){return{ad_account_id:null,ads_lwi_goal:c("castToEnum")(D,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),E),page_id:Q,post_id:null,product_flow:null,source_app_id:String(d("LWICometLoggingConstants").APP_ID)}},[D,E,Q]);N=q((N=c("qex")._("1399"))!=null?N:!1);var S=N[0],T=N[1],U=p(M),V=p(B);n(function(){c("qex")._("1399")===!0&&G({catalogItems:J.filter(function(a){return L.has(a.id)}),type:"whatsapp_catalog_creative_reducer.update_catalog"})},[]);N=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},R,{event:S?"whatsapp_catalog_toggle_off":"whatsapp_catalog_toggle_on",event_info:Array.from(L).join(",")})),S?B!=null?G({assetFeedSpec:V.current,type:"whatsapp_catalog_creative_reducer.use_standard_asset_feed_creative"}):G({creative:U.current,type:"whatsapp_catalog_creative_reducer.use_standard_creative"}):(U.current=M,V.current=B,G({catalogItems:J.filter(function(a){return L.has(a.id)}),type:"whatsapp_catalog_creative_reducer.update_catalog"})),T(!S)};n(function(){var a=S?Array.from(L):null,b=O==null?void 0:O.whatsappCatalogProductIDs;if(a==null&&b==null)return;if(a!=null&&b!=null&&a.length===b.length&&a.every(function(a){return b.includes(a)}))return;P({whatsappCatalogProductIDs:a})},[O==null?void 0:O.whatsappCatalogProductIDs,S,L,P]);A=c("useLWICometImpressionLogger")("creative_section_impression",A);var W=function(a){G({imageUrl:a,type:"creative_reducer.update_thumbnail"})},X=q(!1),Y=X[0],Z=X[1];X=function(a){Z((a=(a==null?void 0:a.includes(h._("__JHASH__d47iGbNAHK-__JHASH__").toString()))||(a==null?void 0:a.toLowerCase().includes("whatsapp")))!=null?a:!1)};var $=p(M.bodyText);return l.jsxs(c("LWICometSection.react"),{fallback:l.jsx("div",{}),header:{aux:f,level:3,subtitle:h._("__JHASH__-O4ek9gbfth__JHASH__"),title:h._("__JHASH__Yb3t7a6mxaG__JHASH__")},onImpression:A,specElement:"CREATIVE",children:[Y?l.jsx("div",{className:"x1d52u69 xktsk01",children:l.jsx(c("LWICometWhatsAppMentionedInCreativWarning.react"),{})}):null,(f=k)!=null?f:null,l.jsx(c("LWICometCreativeFormatSelector.react"),{}),l.jsx(c("LWICometCreativeBodyTextEditor.react"),{initialBodyText:$.current,label:w==null?void 0:w.bodyTextLabel}),H!=null&&H.length>0?l.jsx(c("LWICometWhatsAppPromoteCatalogToggle.react"),{isToggleOn:S,onToggle:N,pageRef:a}):null,S?l.jsx(c("LWICometCTWALoggerContext").Provider,{value:R,children:l.jsx(c("LWICometWhatsAppCreativeCatalogPreview.react"),{businessName:(A=v)!=null?A:"",catalogProducts:J,selectedProducts:L,setSelectedProducts:K})}):l.jsx(l.Fragment,{children:t===!0?l.jsxs(l.Fragment,{children:[l.jsx(c("LWICometCreativeCarouselEditor.react"),{assetFeedSpecPlus:B,lwiRef:z,onHeadlineValueChange:X,overrideLabels:w==null?void 0:w.carouselEditorLabels}),(B==null?void 0:B.carousel_cards)==null&&M.media!=null&&M.media.videoID!=null?l.jsx(c("LWICometVideoThumbnailPicker.react"),{onSelect:W,selectedThumbnailUrl:M.media.imageUrl,videoID:M.media.videoID}):null]}):l.jsxs(l.Fragment,{children:[l.jsx(c("LWICometCreativeImageEditor.react"),{additionalButtons:e,currentMedia:M.media}),M.media!=null&&M.media.videoID!=null?l.jsx(c("LWICometVideoThumbnailPicker.react"),{onSelect:W,selectedThumbnailUrl:M.media.imageUrl,videoID:M.media.videoID}):null,y?l.jsx(c("LWICometCreativeHeadlineEditor.react"),{initialHeadline:(k=(Y=U.current)==null?void 0:Y.headline)!=null?k:M.headline,onValueChange:X}):null]})}),x&&g!=null?l.jsx(c("LWICometCTASection.react"),{boostedComponentInput:g,ctaLinkHelperText:s,hideLinkEditor:u}):null]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,clientPreviewImageURL:a.adgroupSpecs[a.selectedAdgroupID].clientPreviewImageURL,goal:a.goal,objective:a.objective,objectStorySpec:(a=a.adgroupSpecs[a.selectedAdgroupID].creative)==null?void 0:a.object_story_spec}});g["default"]=e}),226);
-----
StoriesTileGridSuggestedStories.react",["fbt","BaseDivider.react","CometRelay","FDSTextPairing.react","StoriesActorContext","StoriesConstants","StoriesLoggingConstants","StoriesTileGridBucketsSection.react","StoriesTileGridDisplayedSectionsContext","StoriesTileGridSectionFooter.react","StoriesTileGridSectionHeaderLinkPropsContext","StoriesTileGridSectionShouldRenderContext","StoriesTileGridSectionTypes","StoriesTileGridSuggestedStories_LWRAnimations.graphql","StoriesTileGridSuggestedStories_user.graphql","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;e.useCallback;var m=e.useContext,n=e.useEffect,o=e.c;function a(a){var e=o(34),f=a.animations,g=a.traySessionID;a=a.user;var k;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(k=i!==void 0?i:i=b("StoriesTileGridSuggestedStories_user.graphql"),e[0]=k):k=e[0];k=d("CometRelay").usePaginationFragment(k,a);a=k.data;var s=k.hasNext,t=k.isLoadingNext,u=k.loadNext,v=k.refetch;e[1]===Symbol["for"]("react.memo_cache_sentinel")?(k=j!==void 0?j:j=b("StoriesTileGridSuggestedStories_LWRAnimations.graphql"),e[1]=k):k=e[1];k=d("CometRelay").useFragment(k,f);var w=d("StoriesConstants").TILE_GRID.ITEMS_PER_ROW;f=m(c("StoriesTileGridSectionHeaderLinkPropsContext"));var x=f.setLinkProps;f=m(c("StoriesTileGridSectionShouldRenderContext"));f=f.setShouldRender;var y=m(c("StoriesTileGridDisplayedSectionsContext"));y=y.setSectionDisplayed;var z=m(c("StoriesActorContext")),A=z.actorID;if(e[2]!==a){z=(a==null?void 0:(z=a.suggested_stories_buckets)==null?void 0:z.edges)||[];e[2]=a;e[3]=z}else z=e[3];a=z;if(e[4]!==a){var B;z=a.map(r)||[];z=z.reduce(q,[]);B=(B=z.find(p))!=null?B:z[0];e[4]=a;e[5]=B;e[6]=z}else B=e[5],z=e[6];a=B;var C=a==null?void 0:a.id;e[7]!==C||e[8]!==x||e[9]!==g?(B=function(){if(C==null)return;x({bucket_id:C,source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,tray_session_id:g,view_single:!1})},a=[C,g,x],e[7]=C,e[8]=x,e[9]=g,e[10]=B,e[11]=a):(B=e[10],a=e[11]);n(B,a);e[12]!==v||e[13]!==A?(B=function(a){var b;v({id:(b=A)!=null?b:""},{fetchPolicy:"store-and-network",onComplete:a})},e[12]=v,e[13]=A,e[14]=B):B=e[14];a=B;B=z.length>0;f(B);y(d("StoriesTileGridSectionTypes").SUGGESTED_STORIES,B);if(z.length===0)return null;e[15]===Symbol["for"]("react.memo_cache_sentinel")?(f=l.jsx(c("BaseDivider.react"),{}),y="x8g2yf8",e[15]=f,e[16]=y):(f=e[15],y=e[16]);e[17]===Symbol["for"]("react.memo_cache_sentinel")?(B=h._("__JHASH__fI-j0vl6YVc__JHASH__"),e[17]=B):B=e[17];e[18]===Symbol["for"]("react.memo_cache_sentinel")?(f=l.jsxs("div",{children:[f,l.jsx("div",{className:y,children:l.jsx(c("FDSTextPairing.react"),{body:B,bodyColor:"secondary",headline:h._("__JHASH__h1sgLl0EI-p__JHASH__"),headlineColor:"primary",level:2,textAlign:"center"})})]}),e[18]=f):f=e[18];y=f;e[19]!==k||e[20]!==z||e[21]!==a||e[22]!==g?(B=l.jsx(c("StoriesTileGridBucketsSection.react"),{animations:k,buckets:z,refetch:a,storiesTrayType:"SUGGESTED_STORIES",traySessionID:g}),e[19]=k,e[20]=z,e[21]=a,e[22]=g,e[23]=B):B=e[23];f=z.length<4&&!s?y:null;e[24]!==u?(k=function(){u(w)},e[24]=u,e[25]=k):k=e[25];e[26]!==s||e[27]!==t||e[28]!==k?(a=l.jsx(c("StoriesTileGridSectionFooter.react"),{hasNext:s,isLoadingNext:t,onLoadMore:k,showSeeMoreButton:!1}),e[26]=s,e[27]=t,e[28]=k,e[29]=a):a=e[29];e[30]!==B||e[31]!==f||e[32]!==a?(z=l.jsxs("div",{children:[B,f,a]}),e[30]=B,e[31]=f,e[32]=a,e[33]=z):z=e[33];return z}function p(a){return!a.is_bucket_seen_by_viewer}function q(a,b){return b!=null?[].concat(a,[b]):a}function r(a){return a==null?void 0:a.node}g["default"]=a}),226);
-----
FBStoriesViewer2",["csx","cx","Arbiter","CSS","DOM","DOMQuery","FBLogger","FBStoriesTrayReloadXHPTray","PageTransitions","ReactDOM_DEPRECATED","StoriesArchiveCardStoreForBlue","StoriesCometPlaceholder.react","StoriesLoggingConstants","StoriesTrayLoggerSessionProvider","StoriesViewer2URI","URI","UserAgent","deferredLoadComponent","react","requireDeferred"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m=c("deferredLoadComponent")(c("requireDeferred")("StoriesViewerSuspenseRoot.react").__setRef("FBStoriesViewer2")),n=c("deferredLoadComponent")(c("requireDeferred")("StoriesViewerSingleBucketRoot.react").__setRef("FBStoriesViewer2")),o=c("deferredLoadComponent")(c("requireDeferred")("StoriesArchiveRoot.react").__setRef("FBStoriesViewer2")),p="fb_stories_theater",q=4;a=function(){a.getInstance=function(){this.$8||(a.$8=new a());return a.$8};a.open=function(b){a.getInstance().open(b)};function a(){var a=this;this.$5=null;this.$6=null;this.$7=!1;this.$12=function(b){if(d("StoriesViewer2URI").isValid(b))return!0;a.$9();a.$6&&a.$6.unsubscribe();var e=a.$5;if(e&&b.getQualifiedURI().toString()===e.getQualifiedURI().toString()){b.stripTrailingSlash().getPath()===""&&d("FBStoriesTrayReloadXHPTray").reloadTray();c("PageTransitions").transitionComplete();return!0}return!1};this.$1=!1;this.$3=d("DOMQuery").scry(document.body,"._li")[0]}var b=a.prototype;b.toggle=function(a,b){a?this.open(b):this.$9()};b.open=function(a){var b=this,e=a.bucketID,f=a.cardID;this.$1&&this.$9();var g=function e(f){if(d("StoriesViewer2URI").isValid(f)===!1){c("FBLogger")("fbstories").mustfix("Stories Viewer Transition Handler hit with non story viewer URL with uri: "+f.getPath());return!1}c("PageTransitions").removeHandler(e,q);b.$10(a);c("PageTransitions").transitionComplete();return!0};c("PageTransitions").registerHandler(g,q);this.$5=c("PageTransitions").getCurrentURI();this.$7=c("PageTransitions").isTransitioning();c("PageTransitions").go(d("StoriesViewer2URI").getURI(e,f))};b.closeArchiveDialogAndRefresh=function(){c("StoriesArchiveCardStoreForBlue").DeletedStoryList.size>0&&(c("StoriesArchiveCardStoreForBlue").DeletedStoryList.forEach(function(a){if(c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.has(a)){var b=c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.get(a);b&&(b.onDeleted(),c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap["delete"](a))}}),c("StoriesArchiveCardStoreForBlue").DeletedStoryList.clear()),c("StoriesArchiveCardStoreForBlue").SeenStoryList.size>0&&(c("StoriesArchiveCardStoreForBlue").SeenStoryList.forEach(function(a){if(c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.has(a)){a=c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.get(a);a&&a.onSeenStory()}}),c("StoriesArchiveCardStoreForBlue").SeenStoryList.clear()),this.$9()};b.navigateToEntryPoint=function(){this.$5&&d("StoriesViewer2URI").isValid(this.$5)&&(this.$5=new(j||(j=c("URI")))("/"),this.$7=!1),this.$5?c("PageTransitions").go(this.$5):(j||(j=c("URI"))).go("/")};b.$11=function(a){var b=a.bucketID,e=a.bucketListFetchPolicy,f=a.cardID,g=a.currentTime,h=a.openSource,i=a.traySessionID,j=a.viewerSessionID,k=a.tilePosition;a=a.trackingString;d("CSS").addClass(this.$3,"_72b0");document.body&&d("CSS").addClass(document.body,"_7d54");var q=c("DOM").create("div",{id:p});d("CSS").setClass(q,"_74r7");var r=c("DOM").create("div");c("DOM").appendContent(r,q);this.$4=r;this.$2=q;d("CSS").setClass(r,"_74r8");c("UserAgent").isBrowser("Edge")||d("CSS").addClass(r,"_7qac");c("DOM").appendContent(this.$3,r);r=null;if(h===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE)g!=null&&(r=l.jsx(o,{currentStoryTime:g,cardID:f||"",fadeIn:!0,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,traySessionID:i,viewerSessionID:j}));else{g=h===c("StoriesLoggingConstants").ACTION_SOURCE.FACEBOOK_CHAT_TAB||h===c("StoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM||h===c("StoriesLoggingConstants").ACTION_SOURCE.PAGE_PROFILE||h===c("StoriesLoggingConstants").ACTION_SOURCE.POST_HEADER||h===c("StoriesLoggingConstants").ACTION_SOURCE.TODAY_IN;if(g){r=l.jsx(n,{bucketID:b,cardID:f||"",fadeIn:!0,openSource:(g=h)!=null?g:c("StoriesLoggingConstants").ACTION_SOURCE.TRAY,traySessionID:i,tilePosition:k,viewerSessionID:j})}else{r=l.jsx(m,{bucketID:b,bucketListFetchPolicy:e,cardID:f||"",fadeIn:!0,openSource:(g=h)!=null?g:c("StoriesLoggingConstants").ACTION_SOURCE.TRAY,traySessionID:i,tilePosition:k,viewerSessionID:j})}}e=b==="";d("ReactDOM_DEPRECATED").render_DEPRECATED(l.jsx(l.Suspense,{fallback:l.jsx(c("StoriesCometPlaceholder.react"),{isNullState:e}),children:l.jsx(c("StoriesTrayLoggerSessionProvider"),{trackingStrings:new Map([[b,a]]),children:r})}),q)};b.openDialogMessenger=function(a){this.openDialog(a)};b.openDialog=function(a){c("Arbiter").inform("jewel/hide");if(this.$1)return;this.$1=!0;this.$11(a)};b.openDialogArchive=function(a){this.$10(a)};b.$10=function(a){var b=this;c("Arbiter").inform("jewel/hide");this.$1=!0;this.$6=c("Arbiter").subscribe("page_transition",function(a,c){a=c.uri;if(d("StoriesViewer2URI").isValid(a))return;if(!b.$1){b.$6&&b.$6.unsubscribe();return}b.$12(a)});this.$11(a);c("PageTransitions").registerHandler(this.$12)};b.$13=function(){this.$2!=null&&(d("ReactDOM_DEPRECATED").unmountComponentAtNode_DEPRECATED(this.$2),this.$2=null),d("CSS").removeClass(this.$3,"_72b0"),document.body&&d("CSS").removeClass(document.body,"_7d54"),this.$4!=null&&(c("DOM").remove(this.$4),this.$4=null)};b.closeDialogMessenger=function(){this.closeDialog()};b.closeDialog=function(){if(this.$1===!1)return;this.$13();this.$1=!1};b.$9=function(){if(this.$1===!1)return;c("PageTransitions").removeHandler(this.$12);this.$13();this.$1=!1};return a}();g["default"]=a}),98);
-----
MessengerStoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_SOURCE:{FACEBOOK_CHAT_TAB:"facebook_chat_tab",MESSENGER_DOT_COM:"messenger_dot_com"}};b=a;f["default"]=b}),66);
-----
WorkroomsInitializationProvider.react",["CometHeroHoldTrigger.react","ErrorMetadata","Recoil","WorkroomsInitializationProvider_provider.graphql","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonBackgroundBlurHooks","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelEmitter","ZenonCallsModelTypes","ZenonChatContext","ZenonInitializationContext","ZenonLocalAudioVideoHooks","ZenonLocalAudioVideoManager","ZenonLoggingConstants","ZenonLoggingHooks","ZenonMediaAccessState","ZenonMediaPermissionState","ZenonRequestedMediaType","ZenonSignalingIDType","ZenonThreadType","ZenonThreadTypeSelector","ZenonVideoProcessingUtils","asyncToGeneratorRuntime","cr:1567219","isEmpty","promiseDone","react","useZenonDebugValue"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useMemo,p=e.useRef,q=e.useState,r="ZenonInitializationProvider";h!==void 0?h:h=b("WorkroomsInitializationProvider_provider.graphql");function a(a){var e=a.appMessages,f=a.callTrigger,g=a.children,h=a.initialSyncStates,j=a.isSecondaryJoinRole,t=j===void 0?!1:j,u=a.joiningContext,v=a.parentRequestID,w=a.peerID,x=a.roomID,y=a.rtcActorID,z=a.serverInfoData,A=a.signalingID,B=a.usersToRing;j=c("ZenonLocalAudioVideoHooks").useLocalAudio();a=s();var C=(a==null?void 0:a.enabled)===!0&&(a==null?void 0:a.webrtcTrack.readyState)==="live",D=[j,a].filter(Boolean);j=d("Recoil").useSetRecoilState(d("ZenonMediaAccessState").ZenonRequestedMediaState);a=d("ZenonActorHooks").useZenonActor();var E=a[0],F=d("ZenonAppFeaturesHooks").useDataChannelLabels();a=q("unknown");var G=a[0],H=a[1];j(C?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio);a=m(c("ZenonCallsContext"));var I=a.callSDK,J=a.currentCallInstanceSDK,K=a.isE2eeMandated,L=a.setCurrentCallInstanceSDK,M=a.setE2eeModel;j=q(null);var N=j[0],O=j[1];a=q(null);var P=a[0],Q=a[1],R=d("ZenonLoggingHooks").useSetCallTrigger();R((j=f)!=null?j:"");var S=d("ZenonLoggingHooks").useSetIsCaller();n(function(){S(!0)},[S]);var T=c("ZenonCallsHooks").useCallState(),U=d("Recoil").useRecoilValue(c("ZenonThreadTypeSelector"));a=m(c("ZenonChatContext"));var V=a.setChatWindowVisible;n(function(){U!==c("ZenonThreadType").Other&&c("ErrorMetadata").addGlobalMetadata("RT_WEB","TYPE",String(U))},[U]);n(function(){var a=I.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(O(a.mwRingRequest),Q(a.mwThriftRingRequest),H("ready")):a.messageType==="parentWindowConnectionTimeout"?H("timeout"):H("unknown")});return function(){a.remove()}},[I]);var W=p(!0);n(function(){if(!W.current)return;W.current=!1;I.initSignaling(w,v,x,z)},[I,v,w,x,z]);n(function(){var a;J.initLogging({callTrigger:(a=f)!=null?a:"",initializeVideo:C,isE2eeMandated:K,peerID:w,roomID:x,serverInfoData:z,signalingID:A==null?null:String(A)})},[f,J,C,K,w,x,z,A]);var X=l(function(){c("promiseDone")(J.join({actorID:y,appMessages:e,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:f,dataChannels:new Set(F),initialSyncStates:h==null?null:new Map(h),isE2eeMandated:K,isSecondaryJoinRole:t,joiningContext:u,localMedia:D,mwRingRequest:N,mwThriftRingRequest:P,peerID:w,roomID:x,serverInfoData:z,setE2eeModel:M,signalingID:A!=null?String(A):null,usersToRing:B.filter(function(a){return E!==a})}))},[E,e,f,J,F,h,K,t,u,D,N,P,w,x,y,z,M,A,B]);n(function(){G==="ready"&&!(i||(i=c("isEmpty")))(D)&&(H("joined"),X())},[X,D,G]);var Y=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){c("promiseDone")(J.endCall("HangupCall","breaking out to new room"));R(d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM);var b=String(d("ZenonSignalingIDType").generateZenonSignalingID());a=(yield I.createCall().join({actorID:y,appMessages:e,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM,dataChannels:new Set(F),isE2eeMandated:K,localMedia:D,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:w,roomID:a,setE2eeModel:M,signalingID:b,usersToRing:B.filter(function(a){return E!==a})}));L(a)});return function(b){return a.apply(this,arguments)}}(),[E,e,I,J,F,K,D,w,y,R,L,M,B]);n(function(){d("ZenonCallsModelEmitter").CallsModelEmitterInstance.setCurrentClientCallID(J.getClientCallID_DEPRECATED())},[J]);var Z=l(function(a){var f=a.isAutoRejoin,g=a.rejoinPeerID;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=f===!0?d("ZenonLoggingConstants").ZenonCallTrigger.AUTO_REJOIN:d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON;R(a);var b=String(d("ZenonSignalingIDType").generateZenonSignalingID()),i=g!=null?[g]:B.filter(function(a){return E!==a});a=(yield I.createCall().join({appMessages:e,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:a,dataChannels:new Set(F),initialSyncStates:h==null?null:new Map(h),isE2eeMandated:K,joiningContext:babelHelpers["extends"]({},u,{serverInfoData:null}),localMedia:D,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:w,roomID:x,setE2eeModel:M,signalingID:b,usersToRing:i}));L(a);V(!1)});return function(){return a.apply(this,arguments)}}();return a()},[E,e,I,F,h,K,u,D,w,x,R,V,L,M,B]),$=p(!1);n(function(){T===d("ZenonCallsModelTypes").ZenonCallState.Connected&&!$.current&&($.current=!0)},[T]);n(function(){return function(){$.current&&c("ZenonLocalAudioVideoManager").stopAllTracks()}},[]);j=o(function(){return{joinCall:X,rejoinCall:Z,signalingStatus:G,swapCall:Y,userMediaRequestStatus:{state:c("ZenonMediaPermissionState").Fulfilled,type:C?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio}}},[C,X,Z,G,Y]);c("useZenonDebugValue")(r,j);n(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);return k.jsxs(c("ZenonInitializationContext").Provider,{value:j,children:[k.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:T===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),g]})}a.displayName=a.name+" [from "+f.id+"]";function s(){var a=c("ZenonLocalAudioVideoHooks").useLocalVideo(),b=d("ZenonBackgroundBlurHooks").useBlurredStream();return d("ZenonBackgroundBlurHooks").useIsBackgroundBlurActive()&&(a==null?void 0:a.enabled)===!0&&(a==null?void 0:a.webrtcTrack.readyState)==="live"&&(b==null?void 0:b.active)===!0?d("ZenonVideoProcessingUtils").convertProcessedStreamToTrack(b):a}g["default"]=a}),98);
-----
LWICometAdPreviewIframeCarouselWrapper.react",["fbt","ix","CometRelay","LWICometACOPreviewEndCard.react","LWICometACOUtils","LWICometAdPreviewIframe.react","LWICometAdPreviewIframeCarouselWrapperQuery.graphql","LWICometLoggingConstants","LWIOmniButton.react","LWIOmniText.react","Locale","areEqual","fbicon","react","stylex","useCurrentDisplayMode","vulture"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||(m=d("react"));e=m;var o=e.useEffect,p=e.useState,q=360,r=336,s={leftButtonNoWash:{position:"x10l6tqk",start:"x1o7vzpr",top:"xjbyncn",$$css:!0},leftButtonWash:{position:"x10l6tqk",start:"xb0d1k3",top:"xjbyncn",$$css:!0},postsContainerNoWash:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"x1cvmir6",$$css:!0},postsContainerWash:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"x121pien",$$css:!0},rightButtonNoWash:{position:"x10l6tqk",start:"xlxjkaf",top:"xjbyncn",$$css:!0},rightButtonWash:{position:"x10l6tqk",start:"x19rlkgl",top:"xjbyncn",$$css:!0}};function a(a){var e=a.adAccountID,f=a.creativeSpecForPreview,g=a.defaultAdFormat,l=a.defaultInstagramPreview,m=a.objective,u=a.publisherPlatforms,v=a.rightColumn,w=v===void 0?!1:v;v=a.rightWash;var x=v===void 0?!1:v;c("vulture")("2PocpABFOqC");a=u.includes("FACEBOOK");v=u.includes("INSTAGRAM");var y=["MOBILE_FEED_STANDARD"];u.length===0||a&&v?y=d("LWICometACOUtils").ADS_CREATIVE_OPTIMIZATION_INFO_ALLOWED_FORMATS:v&&(y=["INSTAGRAM_STORY","INSTAGRAM_STANDARD"]);a=d("CometRelay").useLazyLoadQuery(j!==void 0?j:j=b("LWICometAdPreviewIframeCarouselWrapperQuery.graphql"),{adAccountID:e,appID:d("LWICometLoggingConstants").APP_ID,creative:(u=f)!=null?u:"",formats:y});u=(v=a==null?void 0:a.ad_preview_aco_eligiblity_info)!=null?v:[];y=u.map(function(a){var b=a.ad_creative_optimization_option_value,c=a.ad_creative_optimization_type,d=a.format,e=a.ad_creative_optimization_rank;a=a.status;if(b==null||c==null||c===32||c===66||d==null||a==null||a==="INELIGIBLE")return null;else return{acoOptionValue:b,acoType:c,format:d,rank:e,status:a}}).filter(Boolean);a=y.length;v=a>1;u=p(0);var z=u[0],A=u[1];o(function(){A(0)},[f]);u=l?y:y.sort(t());l=a>0?u.map(function(a){return n.jsx(c("LWICometAdPreviewIframe.react"),{adAccountID:e,adCreativeOptimizationType:a.acoType,adCreativeOptimizationValue:a.acoOptionValue,adFormat:a.format,creativeSpecForPreview:f,objective:m,rightColumn:w,rightWash:x},a.acoType+a.acoOptionValue)}):[n.jsx(c("LWICometAdPreviewIframe.react"),{adAccountID:e,adFormat:g,creativeSpecForPreview:f,objective:m,rightColumn:w,rightWash:x},f)];var B=v?l.length+1:l.length;y=c("useCurrentDisplayMode")()==="dark";return n.jsxs("div",{className:"x1n2onr6",children:[n.jsx("div",{className:(k||(k=c("stylex")))(x?s.postsContainerWash:s.postsContainerNoWash),children:n.jsxs("div",{className:"x78zum5 x1unhpq9 x11xpdln x1qfuztq",style:{transform:"translateX("+(x?r-4:q)*z*(c("Locale").isRTL()?1:-1)+"px)",width:(x?r:q)*B},children:[l,v&&n.jsx(c("LWICometACOPreviewEndCard.react"),{onClickBackToBeginning:function(){return A(0)}})]})}),v&&z!==0&&n.jsx("div",{className:(k||(k=c("stylex")))(x?s.leftButtonWash:s.leftButtonNoWash),children:n.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("492485"),16),label:h._("__JHASH__fahAPNDpUN0__JHASH__"),labelIsHidden:!0,onPress:function(){return A(Math.max(z-1,0))},reduceEmphasis:!y,size:"large",type:"primary"})}),v&&z!==B-1&&n.jsx("div",{className:(k||(k=c("stylex")))(x?s.rightButtonWash:s.rightButtonNoWash),children:n.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("492533"),16),label:h._("__JHASH__vVNuK-7xkTl__JHASH__"),labelIsHidden:!0,onPress:function(){return A(Math.min(z+1,B-1))},reduceEmphasis:!y,size:"large",type:"primary"})}),v&&B>0&&z
StoriesLiveSticker.react",["fbt","CometPressable.react","CometRelay","FDSTooltip.react","StoriesLiveSticker_overlay.graphql","StoriesLoggerContext","StoriesLoggingConstants","react","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useEffect,n=e.useRef,o=e.c,p={linkBounds:{height:"x5yr21d",width:"xh8yej3",$$css:!0}};function a(a){var e=o(24);a=a.overlay;var f;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=i!==void 0?i:i=b("StoriesLiveSticker_overlay.graphql"),e[0]=f):f=e[0];f=d("CometRelay").useFragment(f,a);a=c("usePlayerOriginRouteTracePolicy")();var g=l(c("StoriesLoggerContext")),j=g.logger,q=n(!1),r;e[1]!==j?(g=function(){!q.current&&j!=null&&(q.current=!0,j.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_STICKER_IMPRESSION))},r=[j],e[1]=j,e[2]=g,e[3]=r):(g=e[2],r=e[3]);m(g,r);r=(f==null?void 0:(g=f.live_video)==null?void 0:g.broadcast_status)==="LIVE";e[4]!==r?(g=r?h._("__JHASH__wUalKm9pFfx__JHASH__"):h._("__JHASH__uUiFajnx9Ef__JHASH__"),e[4]=r,e[5]=g):g=e[5];g=g;var s;e[6]!==r?(s=r?h._("__JHASH__BNVtGOdrtca__JHASH__"):h._("__JHASH__Fuzj5x94VQ2__JHASH__"),e[6]=r,e[7]=s):s=e[7];r=s;var t;e[8]===Symbol["for"]("react.memo_cache_sentinel")?(s="xlxyqfn x10l6tqk x1dfx0jo xh8yej3",t="xpyat2d xszxewd xaci4zi x67bb7w x10l6tqk xtzzx4i xwa60dl x1exxlbk",e[8]=s,e[9]=t):(s=e[8],t=e[9]);var u;e[10]!==a?(u={initialTracePolicy:a,playerSubOrigin:"story_viewer_live_sticker"},e[10]=a,e[11]=u):u=e[11];f=f==null?void 0:(a=f.live_video)==null?void 0:a.url;e[12]!==u||e[13]!==f?(a={passthroughProps:u,url:f},e[12]=u,e[13]=f,e[14]=a):a=e[14];e[15]!==j?(u=function(){j.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_STICKER_TAP)},e[15]=j,e[16]=u):u=e[16];e[17]!==r||e[18]!==a||e[19]!==u?(f=k.jsx(c("CometPressable.react"),{"aria-label":r,linkProps:a,onPress:u,overlayDisabled:!0,xstyle:p.linkBounds}),e[17]=r,e[18]=a,e[19]=u,e[20]=f):f=e[20];e[21]!==g||e[22]!==f?(r=k.jsx("div",{className:s,children:k.jsx("div",{className:t,children:k.jsx(c("FDSTooltip.react"),{align:"middle",position:"above",tooltip:g,children:f})})}),e[21]=g,e[22]=f,e[23]=r):r=e[23];return r}g["default"]=a}),226);
-----
StoriesCometSuspenseSingleBucketRootWithEntryPoint.react",["StoriesCometSuspenseSingleBucketRootWrapper.react","StoriesLoggingConstants","StoriesTrayLoggerSessionProvider","StoriesViewerPersonalizationContextProvider.react","deferredLoadComponent","react","requireDeferredForDisplay","useStoriesSingleBucketProcessRoute"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("deferredLoadComponent")(c("requireDeferredForDisplay")("StoriesViewerSingleBucketWithEntryPoint.react").__setRef("StoriesCometSuspenseSingleBucketRootWithEntryPoint.react"));function a(a){var b=a.props;a=a.queries;b=c("useStoriesSingleBucketProcessRoute")(b.routeProps.bucket_id_from_card_id);var d=b.bucketID,e=b.cardID,f=b.source,g=b.trackingString,h=b.traySessionID;b=b.viewerSessionID;var k=f!==c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE;return i.jsx(c("StoriesCometSuspenseSingleBucketRootWrapper.react"),{bucketID:d,children:i.jsx(c("StoriesViewerPersonalizationContextProvider.react"),{enablePersonalization:k,children:i.jsx(c("StoriesTrayLoggerSessionProvider"),{trackingStrings:new Map([[d,g]]),children:i.jsx(j,{bucketID:d,cardID:e,openSource:f,queries:a,traySessionID:h,viewerSessionID:b})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometCTAWhatsappBizUpsellAdResultNotice.react",["fbt","AdproObjectiveType","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometCard.react","CometImage.react","CometRow.react","CometRowItem.react","JSResourceForInteraction","LWICometLoggingConstants","LWIOmniButton.react","LWIOmniTextPairing.react","emptyFunction","getJSEnumSafe","react","useCometLazyDialog","useLWILoggerContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useMemo,m=c("JSResourceForInteraction")("LWICometWhatsAppBusinessUpsellDialog.react").__setRef("LWICometCTAWhatsappBizUpsellAdResultNotice.react"),n=48,o={image:{borderTopStartRadius:"x1z11no5",borderTopEndRadius:"xjy5m1g",borderBottomEndRadius:"x1mnwbp6",borderBottomStartRadius:"x4pb5v6",$$css:!0},text:{flexShrink:"xs83m0k",$$css:!0}};function a(a){var b=a.objective,e=a.pageID,f=a.productFlow,g=a.whatsAppNumber,i=a.whatsAppNumberType;a=c("useLWILoggerContext")();var p=a.targetID,q=l(function(){return{objective:c("getJSEnumSafe")(c("AdproObjectiveType"),b),page_id:e,post_id:p,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:i}},[b,e,p,f,g,i]);k(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},q,{event:"whatsapp_business_app_usell_notice_shown"}))},[q]);a=c("useCometLazyDialog")(m);var r=a[0];a=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},q,{event:"whatsapp_business_app_usell_notice_clicked"})),r({pageID:e,productFlow:f,whatsAppNumber:g,whatsAppNumberType:i},c("emptyFunction"))};return j.jsx("div",{className:"x1yztbdb",children:j.jsxs(c("CometCard.react"),{background:"white",dropShadow:1,children:[j.jsxs(c("CometRow.react"),{paddingVertical:16,verticalAlign:"center",children:[j.jsx(c("CometRowItem.react"),{children:j.jsx(c("CometImage.react"),{height:n,src:"/images/pages/lwi/autoboost_icon.png",width:n,xstyle:o.image})}),j.jsx(c("CometRowItem.react"),{xstyle:o.text,children:j.jsx(c("LWIOmniTextPairing.react"),{body:h._("__JHASH__ZtUSZXKJkZN__JHASH__"),headline:h._("__JHASH__lDX-UiKY5hw__JHASH__"),level:3})})]}),j.jsx("div",{className:"x1yztbdb x1d52u69 xktsk01",children:j.jsx(c("LWIOmniButton.react"),{label:h._("__JHASH__Rba5wLskXWm__JHASH__"),onPress:a,reduceEmphasis:!0})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LWICometWhatsAppBusinessCouponDialog.react",["fbt","AdproObjectiveType","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometMultiStepDialogLegacy.react","CometTransientDialogProvider.react","LWICometConnectWALoggerContext","LWICometLoggingConstants","LWICometWhatsAppBusinessCouponDialogContent.react","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo;function a(a){var b=a.couponDialogInstructionHeaderText,e=a.goal,f=a.initialCountryCode,g=a.objective,i=a.onClose,m=a.pageID,n=a.productFlow,o=a.whatsAppNumber,p=a.whatsAppNumberType;a=l(function(){return{page_id:m,product_flow:n,source_app_id:String(d("LWICometConnectWALoggerContext").FBPAGES_APP_ID)}},[m,n]);var q=k(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({ads_lwi_goal:e,event:"whatsapp_business_app_download_dialog_close",objective:c("getJSEnumSafe")(c("AdproObjectiveType"),g),page_id:m,product_flow:n,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:o,whatsapp_number_type:p}),i()},[e,g,m,n,o,p,i]);return j.jsx("div",{children:j.jsx(d("LWICometConnectWALoggerContext").LWICometConnectWALoggerContext.Provider,{value:a,children:j.jsx(c("CometTransientDialogProvider.react"),{children:j.jsx(c("CometMultiStepDialogLegacy.react"),{onClose:q,size:"content",title:h._("__JHASH__ya7cSwZua8s__JHASH__"),withCloseButton:!0,children:function(a){return j.jsx(c("LWICometWhatsAppBusinessCouponDialogContent.react"),{couponDialogInstructionHeaderText:b,initialCountryCode:f,onClose:i,pageID:m,pushPage:a,whatsAppNumber:o})}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
FBStoriesArchiveLoggingHelper",["CurrentUser","DeleteMediaAttemptedFalcoEvent","FBStoriesLoggingConstants","OpenMediaFalcoEvent","OpenSeenSummaryFalcoEvent","StoriesLoggerSession","StoriesMediaStoreActionsTypedLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){c("DeleteMediaAttemptedFalcoEvent").log(function(){return{thread_id:a,media_id:b,story_owner:c("CurrentUser").getID(),source:d("FBStoriesLoggingConstants").SOURCES.ARCHIVE}})}function b(a,b){h(a,b,"select_media")}function e(a,b){h(a,b,"open_media_in_camera")}function h(a,b,d){new(c("StoriesMediaStoreActionsTypedLogger"))().setProductName("stories_archive").setEvent(d).setStoryCardFbid(a).setMediaFbid(b).setEventType("client").log()}function f(a,b){c("OpenSeenSummaryFalcoEvent").log(function(){return{thread_id:a,media_id:b,story_owner:c("CurrentUser").getID(),source:d("FBStoriesLoggingConstants").SOURCES.ARCHIVE,viewer_session_id:d("StoriesLoggerSession").getViewerSessionID()}})}function i(a,b){c("OpenMediaFalcoEvent").log(function(){return{thread_id:a,media_id:b,story_owner:c("CurrentUser").getID(),source:d("FBStoriesLoggingConstants").SOURCES.ARCHIVE,viewer_session_id:d("StoriesLoggerSession").getViewerSessionID()}})}g.deleteStoryCardLog=a;g.selectMediaLog=b;g.openMediaInComposerLog=e;g._archiveEventLog=h;g.openSeenSummaryLog=f;g.openMediaLog=i}),98);
-----
StoriesArchiveBucketContainer.react",["CometPlaceholder.react","CometRelay","StoriesArchiveBucketContainer_archiveCards.graphql","StoriesArchiveCardMarkAsSeen","StoriesBucketLoadingView.react","StoriesCardHeader.react","StoriesEnums","StoriesLoggingConstants","StoriesProgressBar.react","StoriesSuspenseBucket.react","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesSuspensePauseContext","react","useStoriesArchiveBucketChangeHandler","useStoriesSuspenseCards","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useState,n=h!==void 0?h:h=b("StoriesArchiveBucketContainer_archiveCards.graphql");function a(a){var b;a=a.archiveStoriesCards;var e=c("useStoriesViewerClose")();a=d("CometRelay").useFragment(n,a);var f=d("CometRelay").useRelayEnvironment(),g=m(null),h=g[0];g=g[1];var i=l(c("StoriesSuspensePauseContext"));i=i.isPaused;var o=l(c("StoriesSuspenseContuxActionsContext")),p=o.cardIndexChanged,q=o.performCardNavigation;o=l(c("StoriesSuspenseContuxContext"));var r=o.cardIndex,s=o.isLastCard;o=l(c("StoriesSuspenseBucketDataContext"));o=o.bucketData;var t=o.bucketID,u=o.isLastBucket;o=k(function(){s&&u?e(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT):q(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.AUTO_JUMP)},[u,s,q,e]);a=c("useStoriesSuspenseCards")(a,r);var v=a.getCardAtCurrentIndex;a=a.getCount;v=v();a=a();var w=v==null?void 0:v.id;b=v==null?void 0:(b=v.story_card_info)==null?void 0:b.original_bucket_owner;var x=k(function(){w!=null&&c("StoriesArchiveCardMarkAsSeen")(f,w)},[w,f]);c("useStoriesArchiveBucketChangeHandler")(t,r,p);return v==null?j.jsx("div",{className:"x78zum5 x5yr21d x1n2onr6 xh8yej3",children:j.jsx(c("StoriesBucketLoadingView.react"),{})},t):j.jsx("div",{className:"x78zum5 x5yr21d x1n2onr6 xh8yej3",children:j.jsxs(c("CometPlaceholder.react"),{fallback:j.jsx(c("StoriesCardHeader.react"),{card:v,owner:b}),children:[j.jsx(c("StoriesSuspenseBucket.react"),{card:v,isSelfStory:!0,onCardSeen:x,onProgressDone:o,onTimerSourceUpdate:g,owner:b}),j.jsx(c("StoriesProgressBar.react"),{cardCount:a,cardTimerSource:h,currentCardIndex:r,isPaused:i,onDone:o})]})},t)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesArchiveCometFixedListRoot.react",["CometErrorBoundary.react","CometPlaceholder.react","StoriesCometPlaceholder.react","StoriesLoggingConstants","StoriesRootError.react","deferredLoadComponent","react","requireDeferredForDisplay","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState,k=c("deferredLoadComponent")(c("requireDeferredForDisplay")("StoriesArchiveCometFixedList.react").__setRef("StoriesArchiveCometFixedListRoot.react"));function a(a){var b=a.props;a=a.queries;var d=j(function(){return c("uuidv4")()});d=d[0];return i.jsx("div",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("StoriesCometPlaceholder.react"),{leftRail:!1}),children:i.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return i.jsx(c("StoriesRootError.react"),{error:a})},children:i.jsx(k,{initialCardID:b.routeProps.initialCardID,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,queryReference:a.storiesArchiveContentPaneRootReference,traySessionID:null,viewerSessionID:d})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitSettingsInstagramOnboardingFlowLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={REAUTH_BANNER:"reauthentication_banner",REAUTH_POPOVER:"reauthentication_popover"};b={IGPCP_BANNER:"igpcp_banner",IGPCP_POPOVER:"igpcp_popover"};f.INSTAGRAM_REAUTH_ENTRY_POINT=a;f.IGPCP_ENTRY_POINT=b}),66);
-----
StoriesArchiveCometRoot.react",["CometErrorBoundary.react","CometPlaceholder.react","StoriesCometPlaceholder.react","StoriesLoggingConstants","StoriesRootError.react","deferredLoadComponent","react","requireDeferredForDisplay","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useState,k=b.c,l=c("deferredLoadComponent")(c("requireDeferredForDisplay")("StoriesArchive.react").__setRef("StoriesArchiveCometRoot.react"));function a(a){var b=k(6);a=a.routeProps;var d=a.cardID;a=a.currentStoryTime;var e=j(n);e=e[0];var f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f="x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",b[0]=f):f=b[0];var g;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g=i.jsx(c("StoriesCometPlaceholder.react"),{leftRail:!1}),b[1]=g):g=b[1];b[2]!==d||b[3]!==a||b[4]!==e?(f=i.jsx("div",{className:f,children:i.jsx(c("CometPlaceholder.react"),{fallback:g,children:i.jsx(c("CometErrorBoundary.react"),{fallback:m,children:i.jsx(l,{cardID:d,currentStoryTime:a,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,traySessionID:null,viewerSessionID:e})})})}),b[2]=d,b[3]=a,b[4]=e,b[5]=f):f=b[5];return f}function m(a){return i.jsx(c("StoriesRootError.react"),{error:a})}m.displayName=m.name+" [from "+f.id+"]";function n(){return c("uuidv4")()}g["default"]=a}),98);
-----
StoriesNavListHomeItem.react",["fbt","ix","StoriesLoggingConstants","StoriesTileGridSidePaneItem.react","XCometStoriesControllerRouteBuilder","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;b.useCallback;var l=b.useState,m=b.c;function a(){var a=m(10),b=l(!1),e=b[0],f=b[1];a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("XCometStoriesControllerRouteBuilder").buildURL({}),a[0]=b):b=a[0];b=b;if(a[1]===Symbol["for"]("react.memo_cache_sentinel")){var g={entryPoint:"enter_stories_home_from_viewer_left_nav",sourceSurface:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME};g={passthroughProps:g,url:b};a[1]=g}else g=a[1];b=g;a[2]===Symbol["for"]("react.memo_cache_sentinel")?(g=function(){return f(!0)},a[2]=g):g=a[2];g=g;var j=e?"blue":"gray",n;a[3]===Symbol["for"]("react.memo_cache_sentinel")?(n=d("fbicon")._(i("100554"),24),a[3]=n):n=a[3];a[4]!==j?(n={color:j,icon:n,size:60,type:"contained-icon"},a[4]=j,a[5]=n):n=a[5];a[6]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._("__JHASH__RjEqFnMJEiA__JHASH__"),a[6]=j):j=a[6];a[7]!==n||a[8]!==e?(b=k.jsx(c("StoriesTileGridSidePaneItem.react"),{addOnPrimary:n,linkProps:b,onPress:g,selected:e,text:j}),a[7]=n,a[8]=e,a[9]=b):b=a[9];return b}g["default"]=a}),226);
-----
StoriesTileGridAllStories.react",["fbt","BaseDivider.react","CometRelay","FDSTextPairing.react","StoriesActorContext","StoriesConstants","StoriesGating","StoriesHomeRootContext","StoriesLoggingConstants","StoriesTileGridAllStories_LWRAnimations.graphql","StoriesTileGridAllStories_user.graphql","StoriesTileGridBucketsSection.react","StoriesTileGridDisplayedSectionsContext","StoriesTileGridSectionFooter.react","StoriesTileGridSectionHeaderLinkPropsContext","StoriesTileGridSectionShouldRenderContext","StoriesTileGridSectionTypes","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useMemo;function a(a){var e,f=a.animations,g=a.traySessionID;a=a.user;a=d("CometRelay").usePaginationFragment(i!==void 0?i:i=b("StoriesTileGridAllStories_user.graphql"),a);var k=a.data,q=a.hasNext,r=a.isLoadingNext,s=a.loadNext,t=a.refetch;a=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesTileGridAllStories_LWRAnimations.graphql"),f);var u=d("StoriesConstants").TILE_GRID.ITEMS_PER_ROW;f=n(c("StoriesTileGridSectionHeaderLinkPropsContext"));var v=f.setLinkProps;f=n(c("StoriesTileGridSectionShouldRenderContext"));f=f.setShouldRender;var w=n(c("StoriesTileGridDisplayedSectionsContext"));w=w.setSectionDisplayed;var x=n(c("StoriesActorContext")),y=x.actorID;x=p(function(){var a;a=(k==null?void 0:(a=k.unified_stories_buckets)==null?void 0:a.edges)||[];a=a.map(function(a){return a==null?void 0:a.node})||[];return a.reduce(function(a,b){return b!=null?[].concat(a,[b]):a},[])},[k==null?void 0:(x=k.unified_stories_buckets)==null?void 0:x.edges]);e=(e=x.find(function(a){return!a.is_bucket_seen_by_viewer}))!=null?e:x[0];var z=e==null?void 0:e.id;e=n(c("StoriesHomeRootContext"));e=e.source;var A=e==="feed_tab";o(function(){if(z==null)return;v({bucket_id:z,source:A?c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,tray_session_id:g,view_single:!1})},[z,g,v,A]);e=m(function(a){var b;t({id:(b=y)!=null?b:""},{fetchPolicy:"store-and-network",onComplete:a})},[y,t]);var B=x.length>0;f(B);w(d("StoriesTileGridSectionTypes").ALL_STORIES,B);if(x.length===0)return null;f=l.jsxs("div",{children:[l.jsx(c("BaseDivider.react"),{}),l.jsx("div",{className:"x8g2yf8",children:l.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__fI-j0vl6YVc__JHASH__"),bodyColor:"secondary",headline:h._("__JHASH__h1sgLl0EI-p__JHASH__"),headlineColor:"primary",level:2,textAlign:"center"})})]});w=A?"FEED_TAB_STORIES_SURFACE":"TOP_OF_FEED_TRAY";return l.jsxs("div",{children:[l.jsx(c("StoriesTileGridBucketsSection.react"),{animations:a,buckets:x,refetch:e,storiesTrayType:w,traySessionID:g}),x.length<4&&!q&&!d("StoriesGating").shouldShowSuggestedStories()?f:null,l.jsx(c("StoriesTileGridSectionFooter.react"),{hasNext:q,isLoadingNext:r,onLoadMore:function(){s(u)},showSeeMoreButton:!1})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StoriesTileGridBucketsSection.react",["CometRelay","QuickPerformanceLogger","StoriesConstants","StoriesEnums","StoriesHomeRootContext","StoriesLoggingConstants","StoriesTileGridBucketsSection_LWRAnimations.graphql","StoriesTileGridBucketsSection_buckets.graphql","StoriesTileGridMuteFetchKeyContext","StoriesTrayTile.react","StoriesTrayTilePlaceholder.react","StoriesTrayTileSelf.react","qpl","react","useCometWindowSize","usePrevious","useStoriesBucketsIndexer","useStoriesIsUploading"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useMemo,q=e.useState,r=e.useTransition,s=916,t=360,u=32,v=888,w=540;function a(a){var e=a.animations,f=a.buckets,g=a.refetch,k=a.storiesTrayType,x=k===void 0?"TOP_OF_FEED_TRAY":k,y=a.traySessionID;k=r();var z=k[0],A=k[1],B=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesTileGridBucketsSection_buckets.graphql"),f),C=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTileGridBucketsSection_LWRAnimations.graphql"),e);a=q(!1);var D=a[0],E=a[1],F=m(function(){!D&&!z&&(E(!0),A(function(){g(function(){E(!1)})}))},[z,D,g]);k=c("useStoriesIsUploading")(F);o(function(){(j||(j=c("QuickPerformanceLogger"))).markerEnd(c("qpl")._(741087294,"2028"),2)},[]);f=n(c("StoriesHomeRootContext"));var G=f.source,H="xxm9e6e x1iyjqo2 x2lah0s x1yztbdb x1emribx x1i64zmx";e=n(c("StoriesTileGridMuteFetchKeyContext"));a=e.muteFetchKey;f=c("usePrevious")(a);var I=f!=null&&a!==f,J=(k||D||z)&&!I;o(function(){I&&F()},[I,F]);var K=c("useStoriesBucketsIndexer")(B),L=p(function(){var a;return(a=K)!=null?a:[]},[K]),M=c("useCometWindowSize")();e=p(function(){var a;a=((a=B)!=null?a:[]).filter(function(a,b){return a!=null&&((a=L[b])==null?void 0:a.shouldShow)===!0&&((a=L[b])==null?void 0:a.isEmpty)===!1});var b=L.filter(function(a){return(a==null?void 0:a.shouldShow)===!0&&(a==null?void 0:a.isEmpty)===!1});a=a.map(function(a,e){var f=l.createRef(),g=b[e];g=g==null?void 0:g.type;if(g===d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OWNED_SELF)return l.jsx("div",{className:H,ref:f,children:l.jsx(c("StoriesTrayTileSelf.react"),{bucketCount:d("StoriesConstants").NAV_PANE_TOTAL_COUNT,bucketNode:a,index:e,isUploading:J,source:G==="feed_tab"?c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,storiesTrayType:x,traySessionID:y},a.id)},a.id);else return l.jsx("div",{className:H,ref:f,children:l.jsx(c("StoriesTrayTile.react"),{animations:C,bucketCount:d("StoriesConstants").NAV_PANE_TOTAL_COUNT,bucketNode:a,hasReactionIcon:!0,index:e,source:G==="feed_tab"?c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,storiesTrayType:x,traySessionID:y})},a.id)});var e=M.innerWidth>s;e=e?t:0;e=M.innerWidth-e-u;e=Math.min(Math.max(e,w),v);var f=e/d("StoriesConstants").TILE_GRID.ITEMS_PER_ROW;e=Math.floor(e/f);while(a.length
StoriesTileGridSidePaneYourStoryAddItem.react",["fbt","StoriesLoggingConstants","StoriesPlusFilled20IconSVG.react","StoriesTileGridSidePaneItem.react","XCometStoriesCreateControllerRouteBuilder","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||(i=d("react"))).c,k=i;function a(){var a=j(5),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=c("XCometStoriesCreateControllerRouteBuilder").buildURL({}),a[0]=b):b=a[0];b=b;var d;a[1]===Symbol["for"]("react.memo_cache_sentinel")?(d={entryPoint:"add_to_story_left_nav",sourceSurface:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME},a[1]=d):d=a[1];d=d;var e;a[2]===Symbol["for"]("react.memo_cache_sentinel")?(e={color:"gray",icon:c("StoriesPlusFilled20IconSVG.react"),size:36,type:"contained-icon"},d={passthroughProps:d,url:b},a[2]=e,a[3]=d):(e=a[2],d=a[3]);a[4]===Symbol["for"]("react.memo_cache_sentinel")?(b=k.jsx(c("StoriesTileGridSidePaneItem.react"),{addOnPrimary:e,linkProps:d,selected:!1,text:h._("__JHASH__7ZgeChwhSWI__JHASH__")}),a[4]=b):b=a[4];return b}g["default"]=a}),226);
-----
StoriesTileGridSidePaneYourStoryViewItem.react",["fbt","CometRelay","StoriesConstants","StoriesEnums","StoriesHomeRootContext","StoriesLoggingConstants","StoriesNavListItemPog.react","StoriesPlusFilled24IconSVG.react","StoriesTileGridSidePaneItem.react","StoriesTileGridSidePaneYourStoryViewItem_bucket.graphql","StoriesTrayUtils","TetraIcon.react","UNTRANSLATED_STRING_FIXME","XCometStoriesCreateControllerRouteBuilder","react","useStoriesTrayTilePressable","uuidv4"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext;e.useMemo;var m=e.c;function a(a){var e=m(29),f=a.bucket,g=a.isUploading;a=a.isUserBucketEmpty;var j;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=i!==void 0?i:i=b("StoriesTileGridSidePaneYourStoryViewItem_bucket.graphql"),e[0]=j):j=e[0];j=d("CometRelay").useFragment(j,f);f=l(c("StoriesHomeRootContext"));f=f.source;f=f==="feed_tab"?c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME;j==null?void 0:j.first_story_to_show;j==null?void 0:j.id;if(a)a=void 0;else{var n;n=(n=j==null?void 0:j.id)!=null?n:"";var o=j==null?void 0:j.first_story_to_show,p;e[1]!==o||e[2]!==n||e[3]!==f?(p=d("StoriesTrayUtils").getBucketURL({bucketCount:d("StoriesConstants").NAV_PANE_TOTAL_COUNT,bucketID:n,cardID:o==null?void 0:o.id,source:f}),e[1]=o,e[2]=n,e[3]=f,e[4]=p):p=e[4];o=p;e[5]===Symbol["for"]("react.memo_cache_sentinel")?(n=c("uuidv4")(),e[5]=n):n=e[5];e[6]!==f?(p={bucketType:d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OWNED_SELF,source:f,traySessionID:n},e[6]=f,e[7]=p):p=e[7];n=p;e[8]!==n||e[9]!==o?(p={passthroughProps:n,url:o},e[8]=n,e[9]=o,e[10]=p):p=e[10];a=p}n=a;o=c("useStoriesTrayTilePressable")(j==null?void 0:j.first_story_to_show,c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME);p=o.onPress;a=o.onPressIn;e[11]!==f?(o={entryPoint:"add_to_story_left_nav",sourceSurface:f},e[11]=f,e[12]=o):o=e[12];e[13]===Symbol["for"]("react.memo_cache_sentinel")?(f=c("XCometStoriesCreateControllerRouteBuilder").buildURL({}),e[13]=f):f=e[13];e[14]!==o?(f={passthroughProps:o,url:f},e[14]=o,e[15]=f):f=e[15];o=f;e[16]!==j||e[17]!==g?(f={component:k.jsx(c("StoriesNavListItemPog.react"),{bucket:j,iconSize:36,isUploading:g}),type:"override"},e[16]=j,e[17]=g,e[18]=f):f=e[18];e[19]!==g||e[20]!==o?(j=g?null:{addOn:k.jsx(c("TetraIcon.react"),{"aria-label":c("UNTRANSLATED_STRING_FIXME")("Add to Your Story"),icon:c("StoriesPlusFilled24IconSVG.react"),linkProps:o,size:24}),type:"body"},e[19]=g,e[20]=o,e[21]=j):j=e[21];e[22]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._("__JHASH__iSNB8VgHVvm__JHASH__"),e[22]=g):g=e[22];e[23]!==f||e[24]!==j||e[25]!==n||e[26]!==p||e[27]!==a?(o=k.jsx(c("StoriesTileGridSidePaneItem.react"),{addOnPrimary:f,addOnSecondary:j,linkProps:n,onPress:p,onPressIn:a,selected:!1,text:g}),e[23]=f,e[24]=j,e[25]=n,e[26]=p,e[27]=a,e[28]=o):o=e[28];return o}g["default"]=a}),226);
-----
LWICometWhatsAppBusinessUpsellDialog.react",["fbt","AdproObjectiveType","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","FDSCardedDialogLegacy.react","LWICometLoggingConstants","LWICometWhatsAppBusinessUpsellDialogContent.react","getJSEnumSafe","react","vulture"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useCallback;function a(a){var b=a.goal,e=a.objective,f=a.onClose,g=a.onLinkSent,i=a.pageID,l=a.productFlow,m=a.showAlternativeUpsellContent,n=a.whatsAppNumber,o=a.whatsAppNumberType;c("vulture")("7Z9WUrEZCIM");a=k(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({ads_lwi_goal:b,event:"whatsapp_business_app_download_dialog_close",objective:c("getJSEnumSafe")(c("AdproObjectiveType"),e),page_id:i,product_flow:l,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:n,whatsapp_number_type:o}),f()},[b,e,f,i,l,n,o]);return j.jsx(c("FDSCardedDialogLegacy.react"),{onClose:a,title:m===!0?h._("__JHASH__DFNrPTjqpcl__JHASH__"):h._("__JHASH__07KnR3JO51E__JHASH__"),withCloseButton:!0,children:j.jsx(c("LWICometWhatsAppBusinessUpsellDialogContent.react"),{onClose:f,onLinkSent:g,pageID:i,productFlow:l,showAlternativeUpsellContent:m,whatsAppNumber:n,whatsAppNumberType:o})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MNCommerceLogMessageUtils",["cx","fbt","invariant","BanzaiLogger","CurrentUser","Link.react","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommercePromotionBlockDataManager","MNCommercePromotionManageBlockDialogContainer.react","MNCommerceReplyTypes","MNCommerceUnlinkDataManager","MNCommerceUnlinkDialogContainer.react","MercuryIDs","MessengerEnvironment","MessengerState.bs","gkx","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react");a=function(){function a(){}var b=a.prototype;b.isCommercePageAdminMessage=function(a){return!!(a&&a.log_message_data&&(a.log_message_data.replyType===c("MNCommerceReplyTypes").COMMERCE_LINK||a.log_message_data.replyType===c("MNCommerceReplyTypes").COMMERCE_UNLINK))};b.getCommercePageManage=function(a,b){var e=this,f=null;if(c("gkx")("25528")){var g=function(){var b=d("MercuryIDs").getUserIDFromParticipantID(a.author);e.openManageMessagesDialog(a,b);c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_opened",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.MANAGE})})};f=this.getManageLink(g,b)}else if(a.log_message_data.replyType===c("MNCommerceReplyTypes").COMMERCE_LINK){g=function(){var b=d("MercuryIDs").getUserIDFromParticipantID(a.author),e=d("MessengerState.bs").getThreadMetaNow(c("CurrentUser").getID(),a.thread_id);e||j(0,3713,a.thread_id);var f=null;e.participants.every(function(b){if(b!==a.author){f=d("MercuryIDs").getUserIDFromParticipantID(b);return!1}return!0});e=function(){d("MNCommerceDialogStateActions").hideDialog(),c("MNCommerceUnlinkDataManager").unlink(b,f)};d("MNCommerceDialogStateActions").showDialog(c("MNCommerceUnlinkDialogContainer.react"),{onTurnOffButtonClick:e});c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_opened",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.UNLINK})})};f=l.jsx(c("Link.react"),{className:(b?"":"_2w2m")+(b?" _1jvn":""),onClick:g,children:i._("__JHASH__gZNYldw7rqq__JHASH__")})}return l.jsxs("span",{children:[a.log_message_body," ",f]})};b.openManageMessagesDialog=function(a,b){a=function(a,b){return c("MNCommercePromotionBlockDataManager").block(a,b)};d("MNCommerceDialogStateActions").showDialog(c("MNCommercePromotionManageBlockDialogContainer.react"),{pageID:b,onConfirmButtonClick:a})};b.getManageLink=function(a,b){return l.jsx(c("Link.react"),{className:(b?"":"_2w2m")+(b?" _1jvn":""),onClick:a,children:i._("__JHASH__BUUKYR46skS__JHASH__")})};b.getThreadResurrectionManage=function(a){var b=this,d=a.other_user_fbid,e=function(){return b.openManageMessagesDialog(a,d)};e=this.getManageLink(e,c("MessengerEnvironment").messengerui);return l.jsxs("span",{children:[a.log_message_body," ",e]})};b.isThreadResurrectionXMAT=function(a){a=(a=a)!=null?(a=a.log_message_data)!=null?a.message_type:a:a;return a==="messenger_thread_resurrection_notice"};return a}();b=new a();g["default"]=b}),226);
-----
StoriesViewerSingleBucketRoot.react",["CometBlueBridge.react","CometErrorBoundary.react","StoriesLoggingConstants","StoriesRootError.react","StoriesViewerSingleBucket.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||(i=d("react"))).c,k=i,l={messengerWeb:{top:"x13vifvy",$$css:!0},root:{bottom:"x1ey2m1c",end:"xds687c",position:"xixxii4",start:"x17qophe",top:"x1si2f76",$$css:!0}};function a(a){var b=j(7),d=a.openSource===c("StoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM&&l.messengerWeb,e;b[0]!==d?(e=(h||(h=c("stylex")))(l.root,d),b[0]=d,b[1]=e):e=b[1];b[2]!==a?(d=k.jsx(c("StoriesViewerSingleBucket.react"),babelHelpers["extends"]({},a)),b[2]=a,b[3]=d):d=b[3];b[4]!==e||b[5]!==d?(a=k.jsx(c("CometErrorBoundary.react"),{fallback:m,children:k.jsx(c("CometBlueBridge.react"),{children:k.jsx("div",{className:e,children:d})})}),b[4]=e,b[5]=d,b[6]=a):a=b[6];return a}function m(a){return k.jsx(c("StoriesRootError.react"),{error:a})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PagesCometAdminTYSDStoriesTray.react",["CometRelay","FDSHScroll.react","PagesCometAdminTYSDStoriesTrayTileWrapper.react","PagesCometAdminTYSDStoriesTray_story_buckets.graphql","StoriesLoggingConstants","StoriesTrayTile.react","react","requireDeferred","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useState,l=e.c,m=c("requireDeferred")("logPagesCometAdminTYSDContentCardClick").__setRef("PagesCometAdminTYSDStoriesTray.react");function a(a){var e=l(18),f=a.accessibilityLabel,g=a.isOnBizKit,i=a.loggingParams,p=a.onPressIn;a=a.story_buckets$key;var q;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(q=h!==void 0?h:h=b("PagesCometAdminTYSDStoriesTray_story_buckets.graphql"),e[0]=q):q=e[0];q=d("CometRelay").useFragment(q,a);var r=d("CometRelay").useRelayEnvironment();a=k(o);var s=a[0];e[1]!==r?(a=function(a){a!=null&&m.onReady(function(b){return b(r,babelHelpers["extends"]({},a,{action:"navigate_to_story"}))})},e[1]=r,e[2]=a):a=e[2];var t=a;e[3]!==i||e[4]!==p||e[5]!==t||e[6]!==g||e[7]!==s?(a=function(a,b){var d=a.id!=null?babelHelpers["extends"]({},i,{entityID:a.id,position:b+1}):null,e=function(){p!=null&&p(a.id),t(d)};return j.jsx(c("PagesCometAdminTYSDStoriesTrayTileWrapper.react"),{loggingParams:d,children:j.jsx(c("StoriesTrayTile.react"),{bucketNode:a,index:b,isOnBizKit:g===!0,onPressIn:e,source:c("StoriesLoggingConstants").ACTION_SOURCE.THINGS_YOU_SHOULD_DO,traySessionID:s},a.id)},a.id)},e[3]=i,e[4]=p,e[5]=t,e[6]=g,e[7]=s,e[8]=a):a=e[8];var u=a;if(e[9]!==u||e[10]!==q||e[11]!==f||e[12]!==g){e[14]!==u?(a=function(a,b){return u(a,b)},e[14]=u,e[15]=a):a=e[15];a=q.map(a);var v;e[16]!==g?(v=g===!0?{type:"fixed",width:120}:{minWidth:120,type:"responsive"},e[16]=g,e[17]=v):v=e[17];v=j.jsx(d("FDSHScroll.react").Container,{accessibilityLabel:f,cardWidth:v,gap:8,peek:!0,peekPaddingStart:18,children:a.map(n)});e[9]=u;e[10]=q;e[11]=f;e[12]=g;e[13]=v}else v=e[13];return v}function n(a,b){return j.jsx(d("FDSHScroll.react").Child,{children:a},b)}n.displayName=n.name+" [from "+f.id+"]";function o(){return c("uuidv4")()}g["default"]=a}),98);
-----
StoriesCardHeaderOwnerInfo.react",["CometPressable.react","CometProfileVerificationBadge.react","CometRelativeTimestamp.react","CometRelay","CometRow.react","CometRowItem.react","FDSIcon.react","FDSTextWithBadge.react","FriendEditFilled12.svg.react","FriendListCometCloseFriendsBadge","FriendListCometCloseFriendsGating","FriendsFilled12.svg.react","GlobeAmericasFilled12.svg.react","JSResourceForInteraction","QuestionCircleFilled12.svg.react","SVGIcon","StoriesBehaviorHelpContext","StoriesCardHeaderOwnerInfo_attribution.graphql","StoriesCardHeaderOwnerInfo_owner.graphql","StoriesLoggerSession","StoriesLoggingConstants","StoriesPauseReasons","StoriesSubscribeCTA.react","StoriesSuspensePauseContext","TetraText.react","formatDate","gkx","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;e.useCallback;var l=e.useContext,m=e.c,n=h!==void 0?h:h=b("StoriesCardHeaderOwnerInfo_owner.graphql"),o=i!==void 0?i:i=b("StoriesCardHeaderOwnerInfo_attribution.graphql"),p={ownerInfoAlignment:{alignItems:"x1pha0wt",$$css:!0},ownerNamePressable:{maxWidth:"x193iq5w",$$css:!0},resetFlexBasis:{flexBasis:"xdl72j9",$$css:!0}},q=c("JSResourceForInteraction")("StoriesCardHeaderAudienceDialog.react").__setRef("StoriesCardHeaderOwnerInfo.react");function a(a){var b,e,f=m(53),g=a.attribution,h=a.audienceMode,i=a.creationTime,j=a.isVideoBroadcast,s=a.onOwnerClick;a=a.owner;a=d("CometRelay").useFragment(n,a);g=d("CometRelay").useFragment(o,g);var t=c("useCometLazyDialog")(q),u=t[0];t=r;if(f[0]!==a){var v;v=(v=a)!=null?v:{};f[0]=a;f[1]=v}else v=f[1];v=v;var w=v.gender,x=v.id,y=v.is_verified,z=v.name;v=v.url;var A=a==null?void 0:(b=a.profile_picture)==null?void 0:b.uri;b=a==null?void 0:(b=a.delegate_page)==null?void 0:b.id;e=(a==null?void 0:(e=a.delegate_page)==null?void 0:(e=e.woodhenge_creator_info)==null?void 0:(e=e.viewer_entrypoint_eligibility)==null?void 0:e.is_eligible)===!0;a=(a==null?void 0:(a=a.delegate_page)==null?void 0:(a=a.woodhenge_creator_info)==null?void 0:(a=a.viewer_active_subscription_entitlement)==null?void 0:a.subscription_entitlement_status)==="ACTIVE";var B=l(c("StoriesBehaviorHelpContext")),C;f[2]!==B?(C=B.getCloseFriendsListId(),f[2]=B,f[3]=C):C=f[3];B=C;C=l(c("StoriesSuspensePauseContext"));var D=C.setPause;f[4]!==D||f[5]!==u||f[6]!==h||f[7]!==w||f[8]!==z||f[9]!==A?(C=function(){var a=function(){D(!1,d("StoriesPauseReasons").AUDIENCE_DIALOG)};D(!0,d("StoriesPauseReasons").AUDIENCE_DIALOG);u({audienceMode:h,gender:w,name:z,profilePicUri:A,unPause:a})},f[4]=D,f[5]=u,f[6]=h,f[7]=w,f[8]=z,f[9]=A,f[10]=C):C=f[10];C=C;f[11]!==h||f[12]!==C?(t=h!=null&&k.jsx("div",{className:"x1rg5ohu xsgj6o6 x1n2onr6 x17wnkk5",children:k.jsx(c("CometPressable.react"),{label:h,onPress:C,children:t(h)})}),f[11]=h,f[12]=C,f[13]=t):t=f[13];C=t;t=null;if(i!=null)if(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE){var E=i*1e3,F;f[14]!==E?(F=c("formatDate")(new Date(E),"M j",{utc:!0}),f[14]=E,f[15]=F):F=f[15];t=F}else{E=i*1e3;f[16]!==E?(F=new Date(E),f[16]=E,f[17]=F):F=f[17];f[18]!==F?(i=k.jsx(c("CometRelativeTimestamp.react"),{date:F,format:"minimized"}),f[18]=F,f[19]=i):i=f[19];t=i}f[20]!==z||f[21]!==v||f[22]!==s?(E=z!=null&&k.jsx("div",{className:"x17z8epw x78zum5 x1q0g3np xdj266r x11i5rnm xat24cr x1mh8g0r x3zf81a xeaf4i8",children:k.jsx(c("CometPressable.react"),{display:"block",linkProps:{url:v},onPress:s,overlayDisabled:!0,xstyle:p.ownerNamePressable,children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink3",children:z})})}),f[20]=z,f[21]=v,f[22]=s,f[23]=E):E=f[23];F=E;f[24]!==g||f[25]!==z||f[26]!==B?(i=(g==null?void 0:g.story_audience_mode)==="CLOSE_FRIENDS"&&d("FriendListCometCloseFriendsGating").isStoriesConsumptionEnabled()===!0&&k.jsx("div",{className:"xsgj6o6",children:k.jsx(c("FriendListCometCloseFriendsBadge"),{closeFriendsListId:B,storyOwnerName:z!=null?z.slice(0,z.indexOf(" ")):"",viewAuthorCloseFriendStatus:g==null?void 0:g.viewer_author_close_friend_status})}),f[24]=g,f[25]=z,f[26]=B,f[27]=i):i=f[27];v=i;f[28]!==x||f[29]!==y?(s=x!=null&&y===!0&&k.jsx(c("CometProfileVerificationBadge.react"),{isInverted:!0,profileID:x}),f[28]=x,f[29]=y,f[30]=s):s=f[30];E=s;f[31]!==F?(g=k.jsx(c("CometRowItem.react"),{expanding:!0,xstyle:p.resetFlexBasis,children:F}),f[31]=F,f[32]=g):g=f[32];f[33]!==E?(B=E&&k.jsx(c("CometRowItem.react"),{children:k.jsx(c("FDSTextWithBadge.react"),{badgeAfter:E,children:" "})}),f[33]=E,f[34]=B):B=f[34];f[35]!==j||f[36]!==t?(i=!j&&k.jsx(c("CometRowItem.react"),{children:k.jsx("div",{className:"x17z8epw xsgj6o6 x3zf81a",children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"meta3",children:t})})}),f[35]=j,f[36]=t,f[37]=i):i=f[37];f[38]!==v?(x=k.jsx(c("CometRowItem.react"),{children:v}),f[38]=v,f[39]=x):x=f[39];f[40]!==C?(y=k.jsx(c("CometRowItem.react"),{children:C}),f[40]=C,f[41]=y):y=f[41];f[42]!==a||f[43]!==e||f[44]!==b?(s=c("gkx")("1638")&&!a&&e&&b!=null&&k.jsx(c("CometRowItem.react"),{expanding:!0,xstyle:p.resetFlexBasis,children:k.jsx(c("StoriesSubscribeCTA.react"),{pageID:b})}),f[42]=a,f[43]=e,f[44]=b,f[45]=s):s=f[45];f[46]!==g||f[47]!==B||f[48]!==i||f[49]!==x||f[50]!==y||f[51]!==s?(F=k.jsxs(c("CometRow.react"),{align:"start",paddingVertical:0,spacingHorizontal:0,xstyle:p.ownerInfoAlignment,children:[g,B,i,x,y,s]}),f[46]=g,f[47]=B,f[48]=i,f[49]=x,f[50]=y,f[51]=s,f[52]=F):F=f[52];return F}function r(a){var b=d("SVGIcon").svgIcon(c("QuestionCircleFilled12.svg.react"));bb2:switch(a){case"CUSTOM":b=d("SVGIcon").svgIcon(c("FriendEditFilled12.svg.react"));break bb2;case"FRIENDS":b=d("SVGIcon").svgIcon(c("FriendsFilled12.svg.react"));break bb2;case"PUBLIC":b=d("SVGIcon").svgIcon(c("GlobeAmericasFilled12.svg.react"))}return k.jsx(c("FDSIcon.react"),{color:"white",icon:b,size:12})}r.displayName=r.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesCardSingleAuthorHeaderLiveV2.react",["fbt","ix","CometColumn.react","CometColumnItem.react","CometPressable.react","CometRelativeTimestamp.react","CometRelay","CometRow.react","CometRowItem.react","JSResourceForInteraction","Locale","ShareableAttributionType","StoriesCardHeaderOwnerInfo.react","StoriesCardHeaderOwnerPicture.react","StoriesCardSingleAuthorHeaderAttributionComponent.react","StoriesCardSingleAuthorHeaderLiveV2_attribution.graphql","StoriesCardSingleAuthorHeaderLiveV2_bucket.graphql","StoriesCardSingleAuthorHeaderLiveV2_card.graphql","StoriesCardSingleAuthorHeaderLiveV2_owner.graphql","StoriesCardWatchLiveVideoCTA.react","StoriesChevronLeftFilled12IconSVG.react","StoriesChevronRightFilled12IconSVG.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesMusicAttributionComponent.react","StoriesPaidPartnershipLabelAttributionComponent.react","StoriesPauseReasons","StoriesSuspensePauseContext","TetraIcon.react","TetraText.react","cr:715","fbicon","formatDate","getJSEnumSafe","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||(n=d("react"));e=n;e.useCallback;var p=e.useContext,q=e.useRef,r=e.c,s=c("JSResourceForInteraction")("StoriesCardHeaderSCMEPopup.react").__setRef("StoriesCardSingleAuthorHeaderLiveV2.react");e=d("Locale").isRTL();var t=function(a){return a?c("StoriesChevronLeftFilled12IconSVG.react"):c("StoriesChevronRightFilled12IconSVG.react")},u=o.jsx(c("TetraIcon.react"),{color:"white",icon:t(e),size:12});function v(a){switch(a){case"artist":return d("fbicon")._(i("886192"),12);case"paid_partnership_label":return d("fbicon")._(i("591549"),12);default:return null}}function w(a,d,e,f,g,h,i,j,k){if(a!=null&&b("cr:715")!=null){return o.jsx(b("cr:715"),{cardData:a,cardInfoData:d,isPaused:e,storyId:(a=j)!=null?a:""})}if(f==null)return null;d=v(h);if(i!=null&&k!=null&&h==="paid_partnership_label")return o.jsx(c("StoriesPaidPartnershipLabelAttributionComponent.react"),{attributionIcon:d,chevronIcon:u,shareableAttributionName:f,storyCardStoryInfo:k});else if(h==="artist"){return o.jsx(c("StoriesMusicAttributionComponent.react"),{attributionIcon:d,chevronIcon:u,shareableAttributionName:f,storyId:(e=j)!=null?e:""})}return o.jsx(c("StoriesCardSingleAuthorHeaderAttributionComponent.react"),{attributionIcon:d,chevronIcon:u,shareableAttributionName:f,shareableAttributionUrl:g})}w.displayName=w.name+" [from "+f.id+"]";function a(a){var e,f,g,i=r(71),n;i[0]===Symbol["for"]("react.memo_cache_sentinel")?(n=j!==void 0?j:j=b("StoriesCardSingleAuthorHeaderLiveV2_owner.graphql"),i[0]=n):n=i[0];n=d("CometRelay").useFragment(n,a.owner);var t;i[1]===Symbol["for"]("react.memo_cache_sentinel")?(t=k!==void 0?k:k=b("StoriesCardSingleAuthorHeaderLiveV2_bucket.graphql"),i[1]=t):t=i[1];t=d("CometRelay").useFragment(t,a.bucket);var u;i[2]===Symbol["for"]("react.memo_cache_sentinel")?(u=l!==void 0?l:l=b("StoriesCardSingleAuthorHeaderLiveV2_attribution.graphql"),i[2]=u):u=i[2];u=d("CometRelay").useFragment(u,a.cardInfo);var v;i[3]===Symbol["for"]("react.memo_cache_sentinel")?(v=m!==void 0?m:m=b("StoriesCardSingleAuthorHeaderLiveV2_card.graphql"),i[3]=v):v=i[3];v=d("CometRelay").useFragment(v,a.story);if(i[4]!==n){var x;x=(x=n)!=null?x:{};i[4]=n;i[5]=x}else x=i[5];x=x;var y=x.name;x=x.url;var z=n==null?void 0:(e=n.profile_picture)==null?void 0:e.uri;e=a.creationTime;var A=u==null?void 0:u.shareable_attribution,B=c("getJSEnumSafe")(c("ShareableAttributionType"),u==null?void 0:u.shareable_attribution_type),C=A==null?void 0:A.text;A=A==null?void 0:(A=A.ranges[0])==null?void 0:(A=A.entity)==null?void 0:A.url;var D=v==null?void 0:(f=v.profile_location_transparency_subtitle_text_with_entities)==null?void 0:f.text,E=v==null?void 0:(f=v.location_transparency_info)==null?void 0:f.helpcenter_id;f=t==null?void 0:t.audience_mode;var F=q(null),G=c("useCometLazyDialog")(s),H=G[0];G=p(c("StoriesSuspensePauseContext"));var I=G.isPaused,J=G.setPause;i[6]!==J||i[7]!==H||i[8]!==D||i[9]!==E||i[10]!==y||i[11]!==z?(G=function(){var a=function(){J(!1,d("StoriesPauseReasons").SCME_DIALOG)};J(!0,d("StoriesPauseReasons").SCME_DIALOG);H({SCMELabel:D,helpcenterID:E,name:y,profilePicUri:z,unPause:a})},i[6]=J,i[7]=H,i[8]=D,i[9]=E,i[10]=y,i[11]=z,i[12]=G):G=i[12];G=G;if(n==null)return null;g=u==null?void 0:(g=u.branded_content_post_info)==null?void 0:g.id;I=w(v,u,I,C,A,B,g,v==null?void 0:v.id,u);C=null;if(e!=null)if(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE){A=e*1e3;i[13]!==A?(B=c("formatDate")(new Date(A),"M j",{utc:!0}),i[13]=A,i[14]=B):B=i[14];C=B}else{g=e*1e3;i[15]!==g?(v=new Date(g),i[15]=g,i[16]=v):v=i[16];i[17]!==v?(A=o.jsx(c("CometRelativeTimestamp.react"),{date:v,format:"minimized"}),i[17]=v,i[18]=A):A=i[18];C=A}i[19]!==D||i[20]!==G||i[21]!==F?(B=D!=null&&o.jsx("div",{className:"x1cy8zhl x78zum5 x1ye3gou x10lvyaf",children:o.jsx("div",{className:"x14hiurz x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1lliihq x1xmf6yo x1iorvi4 x1sxyh0 xjkvuk6 xurb0ha",children:o.jsx(c("CometPressable.react"),{display:"block",label:D,onPress:G,overlayDisabled:!0,ref:F,children:o.jsx("div",{className:"x1p6odiv x1nxh6w3 xk50ysn xo5v014",children:D})})})}),i[19]=D,i[20]=G,i[21]=F,i[22]=B):B=i[22];g=B;A=(v=t==null?void 0:t.is_bucket_live)!=null?v:!1;F=(u==null?void 0:(G=u.story_video_thumbnail)==null?void 0:G.broadcast_status)==="VOD_READY";t=(u==null?void 0:(B=u.story_video_thumbnail)==null?void 0:B.broadcast_status)==="LIVE";v=t||F;B=u==null?void 0:(G=u.story_video_thumbnail)==null?void 0:G.url;G=!(u==null?void 0:(F=u.story_video_thumbnail)==null?void 0:F.owner_has_professional_features);i[23]!==t?(F=t?h._("__JHASH__Idf4IRr570U__JHASH__"):h._("__JHASH__iu3rjsyH1Qy__JHASH__"),i[23]=t,i[24]=F):F=i[24];F=F;var K;i[25]!==u||i[26]!==f||i[27]!==e||i[28]!==v||i[29]!==a.onOwnerClick||i[30]!==n?(K=o.jsx(c("CometColumnItem.react"),{children:o.jsx(c("StoriesCardHeaderOwnerInfo.react"),{attribution:u,audienceMode:f,creationTime:e,isVideoBroadcast:v,onOwnerClick:a.onOwnerClick,owner:n})}),i[25]=u,i[26]=f,i[27]=e,i[28]=v,i[29]=a.onOwnerClick,i[30]=n,i[31]=K):K=i[31];i[32]!==I?(u=I!=null&&o.jsx("div",{className:"x17z8epw x1ye3gou x1iorvi4 x3zf81a x18f6uos",children:I}),i[32]=I,i[33]=u):u=i[33];i[34]!==u?(f=o.jsx(c("CometColumnItem.react"),{children:u}),i[34]=u,i[35]=f):f=i[35];i[36]!==v||i[37]!==F||i[38]!==C?(e=v&&o.jsx("div",{className:"x17z8epw x3zf81a x1mh8g0r x1ye3gou x889kno",children:o.jsxs(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"body3",children:[F,o.jsx("span",{className:"xdj266r xw3qccf xat24cr xsgj6o6",children:"u2022"}),C]})}),i[36]=v,i[37]=F,i[38]=C,i[39]=e):e=i[39];i[40]!==e?(n=o.jsx(c("CometColumnItem.react"),{children:e}),i[40]=e,i[41]=n):n=i[41];i[42]!==K||i[43]!==f||i[44]!==n?(I=o.jsxs(c("CometColumn.react"),{children:[K,f,n]}),i[42]=K,i[43]=f,i[44]=n,i[45]=I):I=i[45];u=I;i[46]===Symbol["for"]("react.memo_cache_sentinel")?(F="x6s0dn4 x78zum5 x10l6tqk xoie2o3 x12eol54 x3qmvb3",i[46]=F):F=i[46];i[47]!==A||i[48]!==y||i[49]!==a.onOwnerClick||i[50]!==z||i[51]!==x?(C=o.jsx(c("CometRowItem.react"),{children:o.jsx(c("StoriesCardHeaderOwnerPicture.react"),{isBucketLiveStreaming:A,name:y,onOwnerClick:a.onOwnerClick,profilePicUri:z,profileUrl:x})}),i[47]=A,i[48]=y,i[49]=a.onOwnerClick,i[50]=z,i[51]=x,i[52]=C):C=i[52];i[53]!==u?(e=o.jsx(c("CometRowItem.react"),{children:u}),i[53]=u,i[54]=e):e=i[54];i[55]!==g?(K=o.jsx(c("CometRowItem.react"),{children:g}),i[55]=g,i[56]=K):K=i[56];i[57]!==C||i[58]!==e||i[59]!==K?(f=o.jsx(c("CometColumnItem.react"),{children:o.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:0,paddingVertical:0,spacing:4,spacingHorizontal:0,verticalAlign:"center",children:[C,e,K]})}),i[57]=C,i[58]=e,i[59]=K,i[60]=f):f=i[60];i[61]!==v||i[62]!==B||i[63]!==G||i[64]!==t?(n=v&&B!=null&&G&&o.jsx(c("StoriesCardWatchLiveVideoCTA.react"),{isLive:t,url:B}),i[61]=v,i[62]=B,i[63]=G,i[64]=t,i[65]=n):n=i[65];i[66]!==n?(I=o.jsx(c("CometColumnItem.react"),{children:o.jsx("div",{children:n})}),i[66]=n,i[67]=I):I=i[67];i[68]!==f||i[69]!==I?(A=o.jsx("div",{className:F,"data-testid":void 0,children:o.jsxs(c("CometColumn.react"),{spacing:16,children:[f,I]})}),i[68]=f,i[69]=I,i[70]=A):A=i[70];return A}g["default"]=a}),226);
-----
BizKitSettingsInstagramOnboardingPopover.react",["fbt","BizKitSettingsInstagramAccountProConversionButton.react","BizKitSettingsInstagramAccountReauthButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands","GeoPopover.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.assetID,e=a.assetName,f=a.backwardFixFlow;a=a.children;b=f===d("BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands").IG_PERMISSIONS_BACKWARD_FIX_FLOW.PERSONAL_TO_PROFESSIONAL_CONVERSION?j.jsx(d("BizKitSettingsInstagramAccountProConversionButton.react").BizKitSettingsInstagramAccountProConversionPopoverButton,{instagramAccountID:b,instagramAccountName:e,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").IGPCP_ENTRY_POINT.IGPCP_POPOVER}):j.jsx(d("BizKitSettingsInstagramAccountReauthButton.react").BizKitSettingsInstagramAccountReauthPopoverButton,{instagramAccountID:b,instagramAccountName:e,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_POPOVER});e=f===d("BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands").IG_PERMISSIONS_BACKWARD_FIX_FLOW.PERSONAL_TO_PROFESSIONAL_CONVERSION?d("BizKitSettingsInstagramStrings").getIGProConversionBannerDescription(e):d("BizKitSettingsInstagramStrings").getIGReauthBannerDescription(e);f=f===d("BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands").IG_PERMISSIONS_BACKWARD_FIX_FLOW.PERSONAL_TO_PROFESSIONAL_CONVERSION?h._("__JHASH__-ARUbu8KmAf__JHASH__"):d("BizKitSettingsInstagramStrings").IG_REAUTH_POPOVER_HEADER;return j.jsx(c("GeoPopover.react"),{action:b,content:[e],heading:f,isSticky:!1,status:"warning",children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MercuryMontageShareStory.react",["cx","CssBackgroundImage.react","FBStoriesViewer2","Link.react","MercuryMontageShareStory_montageMessage.graphql","MercuryMontageShareStory_montageThread.graphql","MessengerEnvironment","MessengerStoriesLoggingConstants","RelayModern","react","uuidv4","vulture"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react"),m=l.useReducer,n=216,o=56,p=857,q=1141,r=160,s=284,t=108,u=61;function a(a){var b=a.montageMessage,d=a.montageThread,e=a.storyID;c("vulture")("aIWqvCPs9C6");a={imageHeight:t,imageWidth:u};var f=function(a,b){return{imageHeight:b.imageHeight,imageWidth:b.imageWidth}};f=m(f,a);var g=f[0],h=f[1],i=function(a,b){(g.imageHeight!==a||g.imageWidth!==b)&&h({imageHeight:a,imageWidth:b})},j=function(){var a=d==null?void 0:d.montage_container_id,b=e!=null?btoa("S:_ISC:"+e):null;if(a==null)return;a={bucketID:a,cardID:b,openSource:c("MessengerStoriesLoggingConstants").ACTION_SOURCE.FACEBOOK_CHAT_TAB,tilePosition:{bottom:n,height:o,left:p,right:q,top:r,width:s},traySessionID:c("uuidv4")()};c("MessengerEnvironment").messengerui?(a.openSource=c("MessengerStoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM,c("FBStoriesViewer2").getInstance().openDialogMessenger(a)):c("FBStoriesViewer2").open(a)};a=function(){if(b==null?void 0:b.blob_attachment){var a=b==null?void 0:b.blob_attachment;a=(a==null?void 0:a.messageImage)||(a==null?void 0:a.videoImage)||(a==null?void 0:a.mediaImage);if(a)return v(a)}return null};var k=function(a){var b=new Image();b.onload=function(){i(b.height,b.width)};b.src=(a==null?void 0:a.uri)||""},v=function(a){k(a);return l.jsx(c("Link.react"),{onClick:j,"aria-hidden":!0,children:l.jsx(c("CssBackgroundImage.react"),{className:"_4bj6",height:g.imageHeight,imageURI:a==null?void 0:a.uri,width:g.imageWidth})})};return l.jsx("div",{className:"_4bj3",children:a()})}a.displayName=a.name+" [from "+f.id+"]";e=d("RelayModern").createFragmentContainer(a,{montageMessage:i!==void 0?i:i=b("MercuryMontageShareStory_montageMessage.graphql"),montageThread:j!==void 0?j:j=b("MercuryMontageShareStory_montageThread.graphql")});g["default"]=e}),98);
-----
BizKitSettingsInstagramReauthBanner.react",["BizKitSettingsAssetUtils","BizKitSettingsInstagramAccountReauthButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoText.react","geoMargin","react","useBizKitSettingsLogger_DO_NOT_USE_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=a.assetID;a=a.assetName;var e=c("useBizKitSettingsLogger_DO_NOT_USE_DEPRECATED")();j(function(){e.logEvent("reauth_instagram_exposure",{asset_type:d("BizKitSettingsAssetUtils").getAssetTypeFromAssetTypeEnum("INSTAGRAM_ACCOUNT_V2"),asset_id:b,extra_information:{igpcp_entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_BANNER}})},[e,b]);return i.jsx(c("GeoGuidanceCard.react"),{header:i.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("BizKitSettingsInstagramStrings").IG_REAUTH_BANNER_HEADER}),status:"warning",xstyle:c("geoMargin").top16,children:i.jsxs(c("GeoGuidanceCardContent.react"),{children:[i.jsx(c("GeoText.react"),{"data-testid":void 0,children:d("BizKitSettingsInstagramStrings").getIGReauthBannerDescription(a)}),i.jsx(d("BizKitSettingsInstagramAccountReauthButton.react").BizKitSettingsInstagramAccountReauthBannerButton,{instagramAccountName:a,instagramAccountID:b,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_BANNER})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitSettingsInstagramAccountProConversionBanner.react",["BizKitSettingsAssetUtils","BizKitSettingsInstagramAccountProConversionButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoText.react","geoMargin","react","useBizKitSettingsLogger_DO_NOT_USE_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect;function a(a){var b=a.assetID;a=a.assetName;var e=c("useBizKitSettingsLogger_DO_NOT_USE_DEPRECATED")();j(function(){e.logEvent("igpcp_instagram_exposure",{asset_type:d("BizKitSettingsAssetUtils").getAssetTypeFromAssetTypeEnum("INSTAGRAM_ACCOUNT_V2"),asset_id:b,extra_information:{igpcp_entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").IGPCP_ENTRY_POINT.IGPCP_BANNER}})},[b,e]);return i.jsx(c("GeoGuidanceCard.react"),{header:i.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("BizKitSettingsInstagramStrings").IG_PRO_CONVERSION_BANNER_HEADER}),status:"warning",xstyle:c("geoMargin").top16,children:i.jsxs(c("GeoGuidanceCardContent.react"),{children:[i.jsx(c("GeoText.react"),{children:d("BizKitSettingsInstagramStrings").getIGProConversionBannerDescription(a)}),i.jsx(d("BizKitSettingsInstagramAccountProConversionButton.react").BizKitSettingsInstagramAccountProConversionBannerButton,{instagramAccountName:a,instagramAccountID:b,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").IGPCP_ENTRY_POINT.IGPCP_BANNER})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometWhatsAppBusinessUpsellDialogContent.react",["fbt","AdsUniqueMetricsHelpID","AdsWhatsAppConnectBusinessAccountFlowAssetsUtils","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","ClicktoWhatsAppLocalizedImages","CometColumn.react","CometColumnItem.react","CometImage.react","CometLink.react","CometRelay","LWICometGenericEventsLoggerLite","LWICometLoggingConstants","LWICometSimpleDialogFooter.react","LWICometWhatsAppSendDownloadBusinessAppLinkMutation","LWIOmniText.react","react","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={imageWidth:{width:"xycev2y",$$css:!0}};function a(a){var b=a.onClose,e=a.onLinkSent,f=a.pageID,g=a.productFlow,i=a.showAlternativeUpsellContent,l=a.whatsAppNumber,m=a.whatsAppNumberType,n=a.objective;c("vulture")("6atmsOUXuKj");var o=d("CometRelay").useRelayEnvironment();a=function(){d("LWICometGenericEventsLoggerLite").log({event:"whatsapp_business_app_download_link_send_click",page_id:f}),c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_click",page_id:f,product_flow:g,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:l,whatsapp_number_type:m}),d("LWICometWhatsAppSendDownloadBusinessAppLinkMutation").sendDownloadBusinessAppLink({pageID:f,whatsappNumber:l},o,function(a){a.send_whatsapp_business_download_link===!0&&e!=null&&e(),b()})};var p=function(){if(i!==!0)return h._("__JHASH__tPm5EtBmng___JHASH__");return n==="MESSAGES"?h._("__JHASH__9GGrwo9Au9V__JHASH__",[h._param("link to our people metrics explanation",j.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("__JHASH__3xPRCBybYSO__JHASH__")}))]):h._("__JHASH__mJA1VMSv9CI__JHASH__",[h._param("link to our people metrics explanation",j.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("__JHASH__78BVSR3sdhd__JHASH__")}))])};return j.jsxs("div",{className:"xw7yly9 xktsk01 x1yztbdb x1d52u69",children:[j.jsx("div",{className:"x78zum5 xl56j7k x1yztbdb",children:j.jsx(c("CometImage.react"),{src:d("AdsWhatsAppConnectBusinessAccountFlowAssetsUtils").getLocalizedBusinessProfileGraphic(c("ClicktoWhatsAppLocalizedImages").locale),xstyle:k.imageWidth})}),j.jsxs(c("CometColumn.react"),{spacing:16,children:[j.jsx(c("CometColumnItem.react"),{children:j.jsx(c("LWIOmniText.react"),{color:"secondary",type:"body3",children:p()})}),j.jsx(c("CometColumnItem.react"),{children:j.jsx(c("LWIOmniText.react"),{color:"secondary",type:"body3",children:i===!0?h._("__JHASH__u4_ymityjvk__JHASH__",[h._param("whatsApp Number",l)]):h._("__JHASH__1solOFOX180__JHASH__",[h._param("whatsApp Number",l)])})})]}),j.jsx(c("LWICometSimpleDialogFooter.react"),{primaryButton:{label:h._("__JHASH__HCa9tPG9jbx__JHASH__"),onPress:a}})]})}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{objective:a.objective}});g["default"]=b}),226);
-----
MessengerStoriesRingPresence.react",["FBStoriesViewer2","MercuryParticipantsImageM4React.bs","MessengerStoriesLoggingConstants","MessengerStoriesRingPresence_storyBucket.graphql","RelayModern","react","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k=216,l=56,m=857,n=1141,o=160,p=284;function a(a){var b=a.borderColor,e=a.className,f=a.expanded,g=a.isActive,h=a.montageFBThreadID,i=a.participants,q=a.size,r=a.storiesRingEligible,s=a.storyBucket;a=a.totalParticipants;var t=function(){if(h==null||r!==!0)return;var a={bucketID:h,cardID:null,openSource:c("MessengerStoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM,tilePosition:{bottom:k,height:l,left:m,right:n,top:o,width:p},traySessionID:c("uuidv4")()};c("FBStoriesViewer2").getInstance().openDialogMessenger(a)},u=function(){return(s==null?void 0:s.is_bucket_seen_by_viewer)===!1};u=u();return j.jsx("div",{onClick:t,"aria-hidden":!0,children:j.jsx(d("MercuryParticipantsImageM4React.bs").make,{borderColor:b,className:e,expanded:f,hasUnreadStories:u,isActive:g,participants:i,size:q,storiesRingEligible:r,totalParticipants:a})})}a.displayName=a.name+" [from "+f.id+"]";e=d("RelayModern").createFragmentContainer(a,{storyBucket:h!==void 0?h:h=b("MessengerStoriesRingPresence_storyBucket.graphql")});g["default"]=e}),98);
-----
StoriesTileGridSection.react",["CometPlaceholder.react","FDSUnitHeader.react","Locale","StoriesLoggingConstants","StoriesTileGridPlaceholderRow.react","StoriesTileGridSectionHeaderLinkPropsContext","StoriesTileGridSectionShouldRenderContext","XCometStoriesControllerRouteBuilder","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useMemo,l=b.useState,m={ltr:{transform:"xuuh30",$$css:!0},root:{maxWidth:"xus36rj",minWidth:"xiqxr00",position:"x1n2onr6",start:"xtzzx4i",$$css:!0},rootRow4:{maxWidth:"xrlsmeg",$$css:!0},rootRow5:{maxWidth:"x1oilu2z",$$css:!0},rtl:{transform:"xitnhlw",$$css:!0}};function a(a){var b=a.actionName,e=a.children,f=a.description,g=a.rowSize;g=g===void 0?5:g;var i=a.shouldScaleTileGridItemSize;i=i===void 0?!0:i;var n=a.storiesTrayType;n=n===void 0?"TOP_OF_FEED_TRAY":n;a=a.title;var o=l({}),p=o[0],q=o[1];o=l(!0);var r=o[0],s=o[1];o=k(function(){return{setShouldRender:s}},[s]);var t=k(function(){return{linkProps:p,setLinkProps:q}},[p,q]);if(!r)return null;r=d("Locale").isRTL();r=(h||(h=c("stylex")))(m.root,!r&&m.ltr,r&&m.rtl,!i&&g===4&&m.rootRow4,!i&&g===5&&m.rootRow5);i=j.jsxs("div",{className:r,children:[a!=null?j.jsx("div",{className:"xp7jhwk x1l90r2v",children:j.jsx(c("FDSUnitHeader.react"),{headline:a,level:3})}):null,j.jsx(c("StoriesTileGridPlaceholderRow.react"),{rowSize:g})]});g={entryPoint:"stories_home_tray_header",source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,storiesTrayType:n};return j.jsx(c("StoriesTileGridSectionHeaderLinkPropsContext").Provider,{value:t,children:j.jsx(c("StoriesTileGridSectionShouldRenderContext").Provider,{value:o,children:j.jsx(c("CometPlaceholder.react"),{fallback:i,children:j.jsxs("div",{className:r,children:[a!=null?j.jsx("div",{className:"xp7jhwk x1l90r2v",children:j.jsx(c("FDSUnitHeader.react"),{action:(n=b)!=null?n:void 0,actionLinkProps:{passthroughProps:g,url:c("XCometStoriesControllerRouteBuilder").buildURL(p)},body:f,headline:a,level:3})}):null,e]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTileGridSectionHeaderLinkPropsContext",["StoriesLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b={linkProps:{source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME},setLinkProps:function(){}};e=a.createContext(b);g["default"]=e}),98);
-----
MStoriesLoggingUtils",["AttemptToSendReplyFalcoEvent","Banzai","BanzaiLogger","CloseStoryFalcoEvent","CloseStoryGesture","FBStoriesLoggingConstants","MStoriesSessionInfo","OpenMediaFalcoEvent","OpenStoryFalcoEvent","StoriesInteractiveFeedbackFalcoEvent","StoryNavigationFalcoEvent","WebSession"],(function(a,b,c,d,e,f){"use strict";var g=!1;function h(a,c,d){return{extra_client_data:JSON.stringify({story_size:c.number_of_media}),gesture:d,name:a,number_media:c==null?void 0:c.number_of_media,media_index:c==null?void 0:c.media_index,media_type:c.media_type,story_owner:c.owner_id,story_owner_type:c.owner_type,tray_session_id:b("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:b("MStoriesSessionInfo").getViewerSessionID(),client_viewer_session_id:b("MStoriesSessionInfo").getViewerSessionID(),card_id:c.thread_id,thread_id:c.thread_id,source:b("MStoriesSessionInfo").getSource(),product_surface:"mtouch",stories_tray_feed_unit_tracking_string:b("MStoriesSessionInfo").getFeedUnitTrackingString()}}function i(a){return{gesture:a.gesture||"",has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:a.number_viewers,source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:a.story_index,story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:a.thread_count,thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string}}e.exports={resetCanLogCloseStoryExit:function(){g=!1},logStoryNavigation:function(a,c,d){d===void 0&&(d={});a=h(b("FBStoriesLoggingConstants").ACTION_STORY_NAVIGATION,a,c);a=babelHelpers["extends"]({},d,a);var e={gesture:a.gesture,media_id:a.client_media_id,media_type:a.media_type,number_viewers:a.number_viewers,source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:a.story_index,story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:a.thread_count,thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("StoryNavigationFalcoEvent").log(function(){return e});b("Banzai").post("fb_stories_insights_logging_banzai",a)},logCloseStory:function(a,c,d){d===void 0&&(d={});if(g&&b("CloseStoryGesture").isExitGesture(c))return;a=h(b("FBStoriesLoggingConstants").ACTION_CLOSE_STORY,a,c);a=babelHelpers["extends"]({},d,a);var e={gesture:a.gesture,has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:(d=a.number_viewers)==null?void 0:d.toString(),source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:(d=a.story_index)==null?void 0:d.toString(),story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:(d=a.thread_count)==null?void 0:d.toString(),thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("CloseStoryFalcoEvent").log(function(){return e});b("Banzai").post("fb_stories_insights_logging_banzai",a);b("CloseStoryGesture").isExitGesture(c)&&(g=!0)},log:function(a){a.source==="in_feed"&&a.stories_tray_feed_unit_tracking_string==null&&(a.stories_tray_feed_unit_tracking_string=b("MStoriesSessionInfo").getFeedUnitTrackingString()),b("BanzaiLogger").log("DirectMessagingLoggerConfig",a)},logWithFalco:function(a){a.source==="in_feed"&&a.stories_tray_feed_unit_tracking_string==null&&(a.stories_tray_feed_unit_tracking_string=b("MStoriesSessionInfo").getFeedUnitTrackingString());if(a.name==="open_media"){var c={gesture:a.gesture,media_id:a.client_media_id,media_type:a.media_type,number_viewers:a.number_viewers,source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:a.story_index,story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:a.thread_count,thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("OpenMediaFalcoEvent").log(function(){return babelHelpers["extends"]({},c,{sid:b("WebSession").getId()})})}else if(a.name==="open_story"){var d,e={gesture:a.gesture,has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:(d=a.number_viewers)==null?void 0:d.toString(),source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:(d=a.story_index)==null?void 0:d.toString(),story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:(d=a.thread_count)==null?void 0:d.toString(),thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("OpenStoryFalcoEvent").log(function(){return e})}else if(a.name==="close_story"){var f={gesture:a.gesture,has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:(d=a.number_viewers)==null?void 0:d.toString(),source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:(d=a.story_index)==null?void 0:d.toString(),story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:(d=a.thread_count)==null?void 0:d.toString(),thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("CloseStoryFalcoEvent").log(function(){return f})}else a.name==="open_seen_summary"?b("StoriesInteractiveFeedbackFalcoEvent").log(function(){return{action:b("FBStoriesLoggingConstants").ACTION_OPEN_SEEN_SUMMARY,thread_id:a.card_id,tray_session_id:b("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:b("MStoriesSessionInfo").getViewerSessionID(),viewer_sheet_session_id:b("MStoriesSessionInfo").getViewerSheetSessionID(),viewer_count:a.number_viewers,new_viewer_count:a.new_viewer_count,viewer_sheet_open_source:a.viewer_sheet_open_source}}):a.name===b("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT?b("AttemptToSendReplyFalcoEvent").log(function(){var b=i(a);return{gesture:b.gesture,media_id:b.media_id,media_type:b.media_type,number_viewers:b.number_viewers,source:b.source,story_index:b.story_index,story_owner:b.story_owner,story_owner_type:b.story_owner_type,story_size:b.story_size,thread_id:b.thread_id,tray_session_id:b.tray_session_id,viewer_session_id:b.viewer_session_id,tracking_string:b.tracking_string}}):b("BanzaiLogger").log("DirectMessagingLoggerConfig",a)}}}),null);
-----
MStoriesMutationAPIs",["Bootloader","CameraPostDirectMarkSeenMutation","CameraPostReplyMutation","CurrentUser","FBLogger","FBStoriesAudienceModeMutationCallMutation","FBStoriesDeleteMutation","FBStoriesLoggingConstants","FBStoriesMuteMutation","FBStoriesUnifiedSeenReceiptLastSeenTimeMutation","FBStoriesVotePollMutation","MStoriesLoggingUtils","MStoriesSessionInfo","Promise","ReactionStickerStoryCardReactMutation","RelayFBEnvironment","RelayModern","StoriesArchiveDeletionMutation","UnifiedStoriesArchiveSavingModeMutation","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i="LIGHT_WEIGHT",j=function(a,b){if(b instanceof Error)c("FBLogger")("fbstories").catching(b).mustfix(a);else{var d=JSON.stringify(b);d==null&&(d=JSON.stringify(b));d!=null&&d.length>500&&(d=d.substr(0,500),c("FBLogger")("fbstories").mustfix("%s %s",a,d))}},k=function(a,b,e,f,g){c("Bootloader").loadModules(["DirectMessagingFalcoEvent","StoriesInteractiveFeedbackFalcoEvent"],function(c,h){var i=null,j=b==null;switch(a){case"reaction_sticker_react":i=d("FBStoriesLoggingConstants").ACTION_SEND_REACTION_STICKER_INTERACTED;break}g!=null&&h.log(function(){return{action:d("FBStoriesLoggingConstants").ACTION_REPLY_ATTEMPT_COMPLETED,story_reply_type:a,success:j,thread_id:g,tray_session_id:d("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:d("MStoriesSessionInfo").getViewerSessionID()}});i!=null&&c.log(function(){return{product_surface:"mtouch",camera_post_type:e,name:i,story_owner:f,reply_type:a,card_id:g}})},"MStoriesMutationAPIs")};e=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesDeleteMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),story_thread_ids:[a]}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};f=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("StoriesArchiveDeletionMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),archived_story_card_id:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};var l=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesMuteMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),user_id:a,should_unfollow_user_story:!0}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})},m=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesMuteMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),user_id:a,should_unfollow_user_story:!1}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})},n=function(a,e,f,g,i){d("MStoriesLoggingUtils").logWithFalco({card_id:a,name:d("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT,story_owner:g,tray_session_id:d("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:d("MStoriesSessionInfo").getViewerSessionID()});var l={client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),thread_id:a,message:e};return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("CameraPostReplyMutation"),variables:{input:l},onCompleted:function(c){k(i,null,f,g,a);return b(c)},onError:function(b){j("Error sending message",b),k(i,b,f,g,a),e(b)}})})},o=function(a,e,f,g,l){var m="light_weight",n={client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),thread_id:a,message:g,story_reply_type:i,is_lightweight_reaction:!0,lightweight_reaction_actions:{reaction:g,offsets:[l||0]}};return new(h||(h=b("Promise")))(function(b,g){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("CameraPostReplyMutation"),variables:{input:n},onCompleted:function(c){k(m,null,e,f,a);return b(c)},onError:function(b){j("Error sending message",b),k(m,b,e,f,a),g(b)}})})},p=function(a,e){var f={client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),thread_id:a,story_id:e};return new(h||(h=b("Promise")))(function(a,b){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("CameraPostDirectMarkSeenMutation"),variables:{input:f},onCompleted:function(c,d){return d!=null&&d.length>0?b(d[0]):a(c)},onError:function(a){b(a)}})})},q=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesAudienceModeMutationCallMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),audience_mode:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})},r=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("UnifiedStoriesArchiveSavingModeMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),saving_mode:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};function a(a,e,f,g){return new(h||(h=b("Promise")))(function(b,h){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesVotePollMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),story_card_poll_id:a,option:e,actor_id:c("CurrentUser").getID()}},onCompleted:function(a){k("poll_vote",null,null,g,f);return b(a)},onError:function(a){j("Error sending message",a),k("poll_vote",a,null,g,f),h(a)}})})}var s=function(a,e,f,g){return new(h||(h=b("Promise")))(function(b,h){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("ReactionStickerStoryCardReactMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),story_card_reaction_sticker_id:a,count:e}},onCompleted:function(a){k("reaction_sticker_react",null,null,f,g);return b(a)},onError:function(a){j("Error sending message",a),k("reaction_sticker_react",a,null,f,g),h(a)}})})},t=function(a){return new(h||(h=b("Promise")))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesUnifiedSeenReceiptLastSeenTimeMutation"),variables:{input:{client_mutation_id:c("uuidv4")(),actor_id:c("CurrentUser").getID(),story_id:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};g.deleteThread=e;g.deleteArchivedStoryCard=f;g.muteStoryOwner=l;g.unmuteStoryOwner=m;g.sendMessage=n;g.sendLightweightReaction=o;g.markThreadSeen=p;g.changeAudienceMode=q;g.updateArchiveSavingMode=r;g.updatePollVotesForOption=a;g.reactToSticker=s;g.updateStorySeenReciept=t}),98);
-----
MStoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={LIGHT_WEIGHT:"light_weight",TEXT:"text"};f.REPLY_TYPES=a}),66);
-----
MStoriesPostReplyInstance",["cx","fbt","Bootloader","MCSS","MFBStoriesGatingConfig","MFBStoriesReactionAnimationConfig","MStoriesLoggingConstants","MStoriesStratcomEvents","MStoriesToast","MStoriesUtils","MViewport","Run","Stratcom","promiseDone","throttle","uniqueID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=function(a){switch(a){case 1:return"ud83dudc4d";case 2:return"u2764ufe0f";case 4:return"ud83dude06";case 3:return"ud83dude2e";case 7:return"ud83dude22";case 8:return"ud83dude21";case 16:return"ud83eudd17";default:return null}},k=(a={},a[1]="LIKE",a[2]="LOVE",a[4]="HAHA",a[3]="WOW",a[7]="SORRY",a[8]="ANGER",a[16]="SUPPORT",a),l=100;b=function(){a.init=function(b){var c=a.getInstance();c.$1=babelHelpers["extends"]({},b);this.$5=c};a.getInstance=function(){this.$5||(this.$5=new a());return this.$5};function a(){var b=this;this.$2=null;this.$4=!1;this.$6=function(){b.$3.forEach(function(a){return a.remove()}),b.$3=[],b.$4=!1,a.$5=null};this.$7=function(){b.$2&&b.$2.dispose(),b.$2=null};this.$3=[];this.listenForSendButton();this.listenForEmojiOrLightweightReaction();this.listenForReplyInput();this.listenForSwipeReply();this.listenForProfileDiv();this.listenForBucketTransition();this.listenForScrollableArea();d("Run").onLeave(this.$6)}var b=a.prototype;b.listenForBucketTransition=function(){this.$3.push(c("Stratcom").listen(d("MStoriesStratcomEvents").NEXT_BUCKET,null,this.$6),c("Stratcom").listen(d("MStoriesStratcomEvents").PREV_BUCKET,null,this.$6))};b.listenForScrollableArea=function(){this.$3.push(c("Stratcom").listen("MScrollArea:create",null,function(b){b=b.getData();b.element.id==="mtouch-stories-reply-scroll-area"&&(a.getInstance().$2=b.scrollarea)})),this.$3.concat(d("MStoriesUtils").listenForThreadTransition(this.$7))};b.listenForSendButton=function(){var a=this,b,e="",f=(b=c("Stratcom")).listen("input","m-stories-reply-input",function(b){e=b.getTarget().value,e=e&&e.trim(),e&&e.length>0?(a.$1.sendButton.disabled=!1,c("MCSS").addClass(a.$1.sendButton,"highlight")):(a.$1.sendButton.disabled=!0,c("MCSS").removeClass(a.$1.sendButton,"highlight"))}),g=b.listen("click","m-stories-reply-send-button",function(){if(!e||e.length===0)return;c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(b){c("promiseDone")(b.sendMessage(a.$1.threadId,e,a.$1.postType,a.$1.ownerID,d("MStoriesLoggingConstants").REPLY_TYPES.TEXT))},"MStoriesPostReplyInstance");a.$1.sendButton.disabled=!0;a.$1.input.blur();c("MCSS").removeClass(a.$1.sendButton,"highlight");c("MStoriesToast").showReplySentSuccessToast(null,!1)}),h=b.listen("blur","m-stories-reply-input",function(){return c("MCSS").addClass(a.$1.sendButton,"hidden_elem")});b=b.listen("focus","m-stories-reply-input",function(){a.$8()||c("MCSS").removeClass(a.$1.sendButton,"hidden_elem")});this.$3.push(g,f,h,b)};b.listenForEmojiOrLightweightReaction=function(){var a=this,b;this.$3.push((b=c("Stratcom")).listen("blur","m-stories-reply-input",function(){return c("MCSS").show(a.$1.emoji)}));this.$3.push(b.listen("focus","m-stories-reply-input",function(){a.$8()||c("MCSS").hide(a.$1.emoji)}));this.$3.push(b.listen("MScrollArea:scrollstart",null,function(){c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE_WITH_COVER)}));this.$3.push(b.listen("MScrollArea:scrollend",null,function(a){a=a.getData();a.scrollarea.getScrollLeft()<=0&&c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PLAY)}));b=function(b){var e;e=(e=b.getTarget())==null?void 0:(e=e.firstChild)==null?void 0:(e=e.dataset)==null?void 0:e.reaction;if(!e)return;var f=j(Number(e));if(!f)return;if(a.$8())a.$9();else{c("Stratcom").invoke(d("MStoriesStratcomEvents").LIGHTWEIGHT_REPLY,null,{originalTarget:b.getTarget()});c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(b){c("promiseDone")(b.sendLightweightReaction(a.$1.threadId,a.$1.postType,a.$1.ownerID,f))},"MStoriesPostReplyInstance");if(c("MFBStoriesGatingConfig").showLWRTrails){var g=" "+c("MFBStoriesReactionAnimationConfig").uris[e]+"&"+c("uniqueID")(),h=k[e];c("MStoriesToast").newShowReactionSentSuccessToast(g,h,b.getTarget())}else{g=c("MFBStoriesReactionAnimationConfig").uris[e];h="reaction_type_"+e;c("MStoriesToast").showReactionSentSuccessToast(g,h)}}};c("MFBStoriesGatingConfig").showLWRTrails?this.$3.push(c("Stratcom").listen("click","m-stories-reply-reaction-li",c("throttle")(b,l))):this.$3.push(c("Stratcom").listen("click","m-stories-reply-reaction-li",b));this.$3.push(c("Stratcom").listen("click","m-stories-reply-emoji-li",function(b){var e=(b=b.getTarget())==null?void 0:(b=b.firstChild)==null?void 0:b.data;if(!e||e.length===0)return;c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(b){c("promiseDone")(b.sendMessage(a.$1.threadId,e,a.$1.postType,a.$1.ownerID,d("MStoriesLoggingConstants").REPLY_TYPES.LIGHT_WEIGHT))},"MStoriesPostReplyInstance");c("MStoriesToast").showReplySentSuccessToast(e)}))};b.listenForReplyInput=function(){var b=this,e,f=i._("{Placeholder string}",[i._param("Placeholder string","Reply...")]).toString(),g=function(a){return i._("Reply to {Story"s owner name}",[i._param("Story"s owner name",a)]).toString()},h=(e=c("Stratcom")).listen("focus","m-stories-reply-input",function(){if(b.$8())b.$9(),b.$1.input.blur();else{document.removeEventListener("touchmove",d("MStoriesUtils").touchMoveListener);var e=a.getInstance().$2;e&&e.reset();c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE_WITH_COVER);e=b.$1.input.value;b.$1.ownerName!=null&&(!e||e.length===0)&&(b.$1.input.placeholder=g(b.$1.ownerName))}}),j=e.listen("blur","m-stories-reply-input",function(){if(!b.$8()){document.addEventListener("touchmove",d("MStoriesUtils").touchMoveListener,{passive:!1});d("MViewport").scrollToTop();c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null);var a=b.$1.input.value;(!a||a.length===0)&&(b.$1.input.placeholder=f)}}),k=e.listen("click","m-stories-reply-send-button",function(){b.$1.input.value="",b.$1.input.placeholder=f});e=e.listen("keyup","m-stories-reply-input",function(a){var c=a.getRawEvent().key;c==="Enter"&&(a.prevent(),b.$1.sendButton.click())});this.$3.push(k,h,j,e)};b.$8=function(){return this.$1.arDialog!=null&&!this.$4};b.$9=function(){var a=this;c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE);c("Stratcom").listen(d("MStoriesStratcomEvents").ARMADILLO_DIALOG_DISMISS,null,function(b){b.getData().isHardBlock||(a.$4=!0),c("Stratcom").removeCurrentListener(),a.$1.arDialog&&c("MCSS").hide(a.$1.arDialog),c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PLAY)});this.$1.arDialog&&c("MCSS").show(this.$1.arDialog)};b.listenForSwipeReply=function(){var a=this,b=c("Stratcom").listen(d("MStoriesStratcomEvents").SWIPE_REPLY,null,function(){if(!c("MFBStoriesGatingConfig").enableSwipeReply)return;a.$1.input.focus()});this.$3.push(b)};b.listenForProfileDiv=function(){var a=this,b=c("Stratcom").listen("blur","m-stories-reply-input",function(){return c("MCSS").addClass(a.$1.profilePicDiv,"hidden_elem")}),d=c("Stratcom").listen("focus","m-stories-reply-input",function(){a.$8()||c("MCSS").removeClass(a.$1.profilePicDiv,"hidden_elem")});this.$3.push(b,d)};return a}();g["default"]=b}),226);
-----
MStoriesOptionConfirmationButtons",["cx","fbt","Bootloader","CloseStoryGesture","DeleteMediaAttemptedFalcoEvent","FBLogger","FBStoriesLoggingConstants","MCSS","MStoriesBucketViewer","MStoriesDisplayUtils","MStoriesGating","MStoriesLoggingUtils","MStoriesStratcomEvents","MStoriesToast","MStoriesUIConstants","MStoriesUtils","MStoriesViewerSheetThreadRelatedInfo","Run","Stratcom","promiseDone"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=2e3;a=function(){function a(){var b=this,e;this.$6=!1;this.$7=null;this.$8=null;this.$14=function(){b.$1.forEach(function(a){return a.remove()}),a.$9=null};this.$1=[(e=c("Stratcom")).listen("click","m-stories-mute-confirm",function(a){b.$10(),c("Stratcom").invoke(d("MStoriesStratcomEvents").MUTE_BUCKET,null),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null),b.$4&&c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(a){a.muteStoryOwner(b.$4)},"MStoriesOptionConfirmationButtons")}),e.listen("click","m-stories-mute-cancel",function(a){b.$10(),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null)}),e.listen("click","m-stories-delete-confirm",function(a){b.$11(d("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA);b.$12();c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null);c("MStoriesToast").showDefaultToast(i._("Deleted"),j);c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE,null);var e=b.$5;d("MStoriesViewerSheetThreadRelatedInfo").addDeletedThreadIDs(e);var f=function(){d("MStoriesViewerSheetThreadRelatedInfo").removeDeletedThreadIDs(e)};c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(a){c("MStoriesBucketViewer").isArchiveStoryViewer()?c("promiseDone")(a.deleteArchivedStoryCard(b.$8),f,f):c("promiseDone")(a.deleteThread(e),f,f),c("Stratcom").invoke(d("MStoriesStratcomEvents").DELETE_THREAD,null,null)},"MStoriesOptionConfirmationButtons")}),e.listen("click","m-stories-delete-cancel",function(a){b.$12(),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null)}),e.listen("click","m-stories-close-story-button",function(a){if(b.$6)return;b.$6=!0;a=a.getData()||{};d("MStoriesLoggingUtils").logCloseStory(d("MStoriesGating").shouldMockLogging?c("MStoriesBucketViewer").getInstance().getInsightsLoggingData():{thread_id:b.$5,media_type:b.$3,owner_id:b.$4,owner_type:null},(a=c("CloseStoryGesture").fromString(a.gesture))!=null?a:c("CloseStoryGesture").CLOSE_BUTTON_EXIT,{media_id:b.$2});c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE,null,null);d("MStoriesDisplayUtils").toggleLoadingScreen(!0,!0);window.setTimeout(function(){d("MStoriesUtils").goBackToHomepage(b.$7==="HIGHLIGHTED_STORY")},d("MStoriesUIConstants").REDIRECT_DELAY_IN_MS)}),e.listen("click","m-stories-option-close",function(){b.$13(),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null)}),e.listen(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null,function(){b.$12(),b.$10()})];d("Run").onLeave(this.$14)}a.getInstance=function(){this.$9||(this.$9=new a());return this.$9};var b=a.prototype;b.$10=function(){var a=document.getElementById("m-stories-mute-bucket-confirm-dialog");a&&c("MCSS").addClass(a,"_69p_")};b.$13=function(){var a=document.getElementById("mtouch-story-option-menu");a&&c("MCSS").addClass(a,"_68j_")};b.$11=function(a,b){var e=this;b===void 0&&(b=null);a===d("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA?(this.$4==null&&c("FBLogger")("fbstories").mustfix("Expecting non-null _storyOwnerID"),c("DeleteMediaAttemptedFalcoEvent").log(function(){var a;return{media_id:e.$2,media_type:e.$3,story_owner:(a=e.$4)!=null?a:"",thread_id:e.$5}})):c("Bootloader").loadModules(["DirectMessagingFalcoEvent"],function(c){c.log(function(){return{card_id:e.$5,client_media_id:e.$2,gesture:b,media_type:e.$3,name:a,product_surface:"mtouch",story_owner:e.$4}})},"MStoriesOptionConfirmationButtons")};b.$12=function(){var a=document.getElementById("m-stories-delete-thread-confirm-dialog");a&&c("MCSS").addClass(a,"_69p_")};a.initMuteConfirmationButtons=function(b){var c=a.getInstance();c.$4=b.storyOwnerID};a.init=function(b){var c=a.getInstance();c.$5=b.threadID;c.$4=b.storyOwnerID;c.$2=b.mediaID;c.$3=b.mediaType;c.$8=b.storyGraphQLID;c.$7=b.storyCardType;c.$6=!1};return a}();g["default"]=a}),226);
-----
MStoriesProductionTrayAsync",["cx","Bootloader","MCSS","MFBStoriesGatingConfig","MStoriesProductionInfo","MStoriesProductionTrayUtils","MStoriesStratcomEvents","MStoriesToast","MStoriesTrayUtils","MStoriesUIConstants","MStoriesUploadStatus","Stratcom"],(function(a,b,c,d,e,f,g){"use strict";var h={handleFailedAddToStoryPogSelected:function(){if(b("MStoriesProductionInfo").getUploadStatus()!==b("MStoriesUploadStatus").FAILED)return!1;var a=document.getElementById("m-stories-production-input");if(a){a.click();b("MStoriesProductionInfo").setUploadStatus(b("MStoriesUploadStatus").IDLE);b("MStoriesProductionTrayUtils").updateProductionPog();return!0}return!1},uploadCB:function(a){var c=b("MStoriesProductionTrayUtils").getAnimationPog();if(a)b("MStoriesProductionInfo").setUploadStatus(b("MStoriesUploadStatus").IDLE),b("MFBStoriesGatingConfig").trayType!=="circular"||c&&c.id==="m-stories-add-item-pog"?b("MStoriesTrayUtils").refreshTray(function(){h._cleanupUploading(),b("MStoriesToast").showDefaultToast(b("MStoriesUIConstants").UPLOAD_SUCCESSFUL)},function(){h._cleanupUploading()}):(h._cleanupUploading(),b("MStoriesToast").showDefaultToast(b("MStoriesUIConstants").UPLOAD_SUCCESSFUL)),c&&b("MCSS").addClass(c,"_ap-y"),b("Stratcom").invoke(b("MStoriesStratcomEvents").UPLOAD_SUCCESS,null,null);else{b("MStoriesProductionInfo").setUploadStatus(b("MStoriesUploadStatus").FAILED);if(c&&c.id==="m-stories-add-item-pog"){var d=document.getElementById("m-stories-add-item");d&&b("MCSS").addClass(d,"no-after");c&&b("MCSS").removeClass(c,"hide-border")}h._cleanupUploading();b("Stratcom").invoke(b("MStoriesStratcomEvents").UPLOAD_FAILED,null,null)}b("Bootloader").loadModules(["FBStoriesLoggingConstants","MStoriesTypedLogger"],function(b,c){b=a?b.ACTION_SEND_STORY_SUCCEEDED:b.ACTION_SEND_STORY_FAILED;c=new c().setName(b);c.log()},"MStoriesProductionTrayAsync")},_cleanupUploading:function(){var a=document.getElementById("m-stories-add-item-pog"),c=document.getElementById("m-stories-owner-bucket-pog");a&&b("MCSS").removeClass(a,b("MStoriesProductionTrayUtils").getUploadingClass());c&&b("MCSS").removeClass(c,b("MStoriesProductionTrayUtils").getUploadingClass());a=document.getElementById("m-stories-add-item");a&&b("MCSS").removeClass(a,"disable");b("MStoriesProductionTrayUtils").updateProductionPog()}};e.exports=h}),null);
-----
StoriesViewerUtil",["StoriesLoggingConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE:case c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_HOME:case c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE:case c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME:case c("StoriesLoggingConstants").ACTION_SOURCE.TRAY:case c("StoriesLoggingConstants").ACTION_SOURCE.VIEWER:return!0;default:return!1}}g.getShouldNotShowExtendedViewerOverlay=a}),98);
-----
StoriesRootError.react",["fbt","FBLogger","NullStateGeneral","QPLUserFlow","StoriesCloseButton.react","StoriesLoggingConstants","TetraButton.react","TetraNullState.react","qpl","react","useStoriesViewerClose"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react")),k=i.useEffect;function a(a){var b=a.error;k(function(){c("FBLogger")("fbstories").catching(b).warn("Issue displaying story viewer")},[b]);var d=c("useStoriesViewerClose")();c("QPLUserFlow").endFailure(c("qpl")._(741087294,"2028"),b.message);a=function(){return d(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.BACK_BUTTON_EXIT)};var e=h._("__JHASH__zSv25XjGsRm__JHASH__"),f=h._("__JHASH__TD7qTJtaqLl__JHASH__"),g=h._("__JHASH__A29oPyfHkur__JHASH__");return j.jsxs("div",{className:"x6s0dn4 x1vtvx1t x78zum5 xdt5ytf x1q1vt7x xl56j7k x6ikm8r xh8yej3",children:[j.jsx(c("StoriesCloseButton.react"),{dark:!0}),j.jsx("div",{className:"xvue9z",children:j.jsx(c("TetraNullState.react"),{action:j.jsx(c("TetraButton.react"),{label:g,onPress:a()}),body:f,headline:e,icon:c("NullStateGeneral")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useStoriesSuspenseKeyHandler",["CometKeys","StoriesEnums","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseContuxActionsContext","StoriesSuspenseKeyboardContext","StoriesSuspensePauseContext","react","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect,l=b.useRef;function a(){var a=l(null),b=j(c("StoriesSuspenseKeyboardContext")),e=b.addSubscriber;b=j(c("StoriesSuspenseContuxActionsContext"));var f=b.performBucketNavigation,g=b.performCardNavigation;b=j(c("StoriesSuspensePauseContext"));var h=b.isPaused,m=b.setPause,n=c("useStoriesViewerClose")(),o=i(function(a){switch(a.key){case c("CometKeys").LEFT:case c("CometKeys").UP:a.shift===!0?f(d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET):g(d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_BACKWARD);break;case c("CometKeys").RIGHT:case c("CometKeys").DOWN:a.shift===!0?f(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET):g(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_FORWARD);break;case c("CometKeys").SPACE:m(!h,d("StoriesPauseReasons").KEYBOARD);break;case c("CometKeys").ESCAPE:m(!0,d("StoriesPauseReasons").VISIBILITY_CHANGE);n(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.KEYBOARD_EXIT);break}},[n,h,f,g,m]);k(function(){var b=function(){a.current&&a.current()};b();a.current=e(o);return b},[e,o])}g["default"]=a}),98);
-----
useStoriesSuspenseContuxActions",["QuickPerformanceLogger","StoriesEnums","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseBucketDataContext","qpl","react","storiesViewerSuspenseEmitter","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h,i;b=i||d("react");var j=b.useCallback,k=b.useContext;function a(a){var b=a.canUseExtendedViewer,e=a.cardIndex,f=a.isFirstBucket,g=a.isLastBucket,i=a.isLastCard,l=a.isSingleBucketViewer,m=a.logger,n=a.setCardIndex,o=a.setPause,p=a.shouldShowEndCard;a=k(c("StoriesSuspenseBucketDataContext"));var q=a.setNavigationDirection,r=e===0&&f,s=i&&g,t=j(function(a,b){b!=null&&m.storyNavigationLog(b),o(!0,d("StoriesPauseReasons").CARD_TRANSITION_INITIATED),window.requestAnimationFrame(function(){n(a)})},[m,n,o]),u=c("useStoriesViewerClose")(),v=j(function(a,e,i){e===void 0&&(e=!1);i===void 0&&(i=1);if(l&&!b){u(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT);return}e&&m.storyNavigationLog(a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET?c("StoriesLoggingConstants").NAVIGATION_GESTURE.SWIPE_RIGHT:c("StoriesLoggingConstants").NAVIGATION_GESTURE.SWIPE_LEFT);if(a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET&&g)return;if(a===d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET&&f)return;(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(c("qpl")._(13238356,"3510"),{string:{TRANSITION_TYPE:"BUCKET"}});o(!0,d("StoriesPauseReasons").BUCKET_TRANSITION);q(a);c("storiesViewerSuspenseEmitter").requestBucketTransition(a,i)},[f,g,l,m,q,o,u,b]);a=j(function(a,b){var f=s&&a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,g=r&&a===d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD;if(f||g)return;if(a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD&&i)m.storyNavigationLog(b),v(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET);else if(a===d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD&&(e===0||p))m.storyNavigationLog(b),v(d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET);else{f=a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD?e+1:e-1;(h||(h=c("QuickPerformanceLogger"))).markerEnd(c("qpl")._(13238356,"3510"),4);h.markerStart(c("qpl")._(13238356,"3510"));t(f,b)}},[e,t,r,i,s,m,v,p]);var w=j(function(){i&&v(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET)},[i,v]);return{cardIndexChanged:t,handleCardDeletion:w,performBucketNavigation:v,performCardNavigation:a}}g["default"]=a}),98);
-----
StoriesSuspenseContentPane.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","CometToastBridge.react","FBLogger","HiddenSubtreePassiveContext","StoriesActorContext","StoriesBehaviorHelpContextProvider.react","StoriesBucketError.react","StoriesCloseButton.react","StoriesConstants","StoriesExtendedViewerOverlay.react","StoriesFeedbackEditorStateContextProvider.react","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseBucketDataContext","StoriesSuspenseBucketTransitionView.react","StoriesSuspenseContentPane_LWRAnimations.graphql","StoriesSuspenseContentPane_bucket.graphql","StoriesSuspenseContentPane_user.graphql","StoriesSuspenseContentSlidingTransition.react","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesSuspenseEmptyBucketError.react","StoriesSuspenseFeedback.react","StoriesSuspenseNavigationButtons.react","StoriesSuspensePauseContext","StoriesSuspenseViewerSheet.react","StoriesTapStoryOverlay.react","StoriesUnselected.react","StoriesViewerFooter.react","StoriesViewerSheetOverlay.react","StoriesViewerUtil","StorieslwrPlaybackContextProvider.react","WebPixelRatio","react","useStoriesBucketChanged","useStoriesIsUploading","useStoriesLogger","useStoriesShowTapStoryOverlay","useStoriesSuspenseBucketChangeHandler","useStoriesSuspenseCardIndexInitializer","useStoriesSuspenseContentDataSelectors","useStoriesSuspenseContuxActions","useStoriesSuspenseIsLastCardHandler","useStoriesSuspenseRefetchOnPost","useStoriesTransitionPageListener"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useMemo,q=e.useRef,r=e.useState,s=h!==void 0?h:h=b("StoriesSuspenseContentPane_bucket.graphql");function a(a){var e=a.LWRAnimations,f=a.bucket,g=a.initialBucketID,h=a.initialCardIndex,k=a.isSingleBucketViewer,t=a.openSource;t=t===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.UNKNOWN:t;var u=a.shouldAutoExit;u=u===void 0?!0:u;var v=a.shouldHideFeedbackBar,w=v===void 0?!1:v;v=a.user;a=n(c("StoriesSuspenseBucketDataContext"));a=a.bucketData;var x=a.bucketID,y=a.bucketIndex,z=a.canShowStoryOverlay,A=a.isEndOfTray,B=a.isFirstBucket,C=a.isLastBucket,D=a.isSecondBucket,aa=a.nextBuckets;a=a.nextBucketsCount;var E=c("useStoriesBucketChanged")(x),F=E.bucketChanged;E=E.bucketChangedFromAnotherBucket;var G=c("useStoriesShowTapStoryOverlay")(x),ba=G.onPressTapOverlay;G=G.shouldShowTapOverlay;var H=r(function(){return x===g?h:d("StoriesConstants").CARD.DEFAULT_SUSPENSE_CARD_INDEX}),I=H[0];H=H[1];var J=n(c("StoriesSuspensePauseContext")),K=J.setPause;J=n(c("StoriesActorContext"));var L=J.actorID;J=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseContentPane_LWRAnimations.graphql"),e);e=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesSuspenseContentPane_user.graphql"),v);v=d("CometRelay").useRefetchableFragment(s,f);f=v[0];var M=v[1],N=f==null?void 0:(v=f.story_bucket_owner)==null?void 0:v.id,O=c("useStoriesSuspenseCardIndexInitializer")(f,I,H);v=c("useStoriesSuspenseContentDataSelectors")(f,O);I=v.getCardCount;v=v.getCurrentCardID;var P=v(),Q=I();v=r(Q);I=v[0];var ca=v[1],R=c("useStoriesSuspenseIsLastCardHandler")(f,O),S=c("useStoriesLogger")(L,{bucketIndex:y,cardIndex:O},f);c("useStoriesSuspenseBucketChangeHandler")(f,S);var T=d("StoriesViewerUtil").getShouldNotShowExtendedViewerOverlay(t),U=!k;v=r(!1);y=v[0];var V=v[1];t=c("useStoriesSuspenseContuxActions")({canUseExtendedViewer:U,cardIndex:O,isFirstBucket:B,isLastBucket:C,isLastCard:R,isSingleBucketViewer:k,logger:S,setCardIndex:H,setPause:K,shouldShowEndCard:A});v=r(!1);var W=v[0],X=v[1];B=r(w);C=B[0];var Y=B[1],Z=q(!1);o(function(){var a=D&&U&&!T&&z;!Z.current&&a&&(Z.current=!0,X(!0),Y(!0))},[D,U,z,Z,T]);W&&(!z||!D)&&(X(!1),Y(w));W&&K(!0,d("StoriesPauseReasons").EXTENDED_VIEWER);k=m(function(){K(!1,d("StoriesPauseReasons").EXTENDED_VIEWER),X(!1),Y(w)},[K,w]);c("useStoriesSuspenseRefetchOnPost")(x,M,N===L);H=m(function(){N===L&&M({id:x,isStoriesArchive:!1,scale:d("WebPixelRatio").get(),shouldDeferLoad:!1,shouldEnableArmadilloStoryReply:d("StoriesGating").shouldEnableArmadilloStoryReply(),shouldEnableLiveInStories:!0},{fetchPolicy:"network-only"})},[L,x,M,N]);c("useStoriesIsUploading")(H);v=p(function(){return{cardIndex:O,isFirstCard:O===0,isLastCard:R,isStoryOverlayActive:W}},[O,R,W]);var $=n(c("HiddenSubtreePassiveContext"));o(function(){var a=$.subscribeToChanges(function(a){K(a.hiddenOrBackgrounded,d("StoriesPauseReasons").VISIBILITY_CHANGE)});return function(){return a.remove()}},[$,K]);c("useStoriesTransitionPageListener")(function(){S.closeStoryLog()});o(function(){F&&(ca(Q),V(!1))},[F,E,Q]);B=p(function(){return{logger:S}},[S]);if(G)return l.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:[l.jsx(c("StoriesTapStoryOverlay.react"),{onTap:ba}),l.jsx(c("StoriesCloseButton.react"),{})]});if(!A&&(N==null||I===0)&&U)N==null&&x!==""&&x!=null&&c("FBLogger")("fbstories").warn("Empty story bucket owner id, but bucket id [%s] is not null, initial bucket id is [%s]",x,g),g===""?H=l.jsx(c("StoriesUnselected.react"),{}):H=l.jsx(c("StoriesSuspenseEmptyBucketError.react"),{});else{H=l.jsx(c("StoriesSuspenseContentSlidingTransition.react"),{viewerSheet:function(){return null},children:l.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3","data-testid":void 0,children:l.jsx(c("StorieslwrPlaybackContextProvider.react"),{children:l.jsxs(c("StoriesFeedbackEditorStateContextProvider.react"),{cardID:(E=P)!=null?E:"",setPause:K,children:[l.jsx(c("StoriesSuspenseNavigationButtons.react"),{children:l.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x1n2onr6",children:[l.jsx(c("StoriesSuspenseBucketTransitionView.react"),{animations:J,bucket:f,bucketID:x,shouldAutoExit:u,userData:e}),!d("StoriesGating").isComet()&&l.jsx("div",{className:"x6s0dn4 xtrxkvy x9f619 x78zum5 xl56j7k xexx8yu x1pi30zi x1l90r2v x1swvt13 x10l6tqk xh8yej3",children:l.jsx("div",{className:"xqhayiu x6ikm8r x10wlt62",children:l.jsx(c("CometToastBridge.react"),{})})}),W&&l.jsx(c("StoriesExtendedViewerOverlay.react"),{nextBuckets:aa,nextBucketsCount:a,onDismiss:k}),l.jsx(c("CometPlaceholder.react"),{fallback:null,children:l.jsx(c("StoriesViewerSheetOverlay.react"),{bucket:f,isEndOfTray:A,showOverlay:y,toggleOverlay:V,children:l.jsx(c("StoriesSuspenseViewerSheet.react"),{bucket:f,toggleViewerSheet:function(){}})})})]})}),!C&&l.jsx(c("StoriesViewerFooter.react"),{children:l.jsx(c("StoriesSuspenseFeedback.react"),{LWRAnimations:J,bucket:f})})]})})})})}return l.jsx(c("StoriesLoggerContext").Provider,{value:B,children:l.jsx(c("StoriesSuspenseContuxContext").Provider,{value:v,children:l.jsx(c("StoriesSuspenseContuxActionsContext").Provider,{value:t,children:l.jsx(c("CometErrorBoundary.react"),{fallback:function(a){var b;return l.jsx(c("StoriesBucketError.react"),{bucketID:x,cardID:(b=P)!=null?b:"",error:a})},children:l.jsx(c("StoriesBehaviorHelpContextProvider.react"),{bucketRef:f,ownerRef:f==null?void 0:f.story_bucket_owner,viewerRef:J,children:H})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseBucketContainer.react",["CometRelay","FBLogger","StoriesActorContext","StoriesBehaviorHelpContext","StoriesBucketLoadingView.react","StoriesEnums","StoriesLoggerContext","StoriesLoggingConstants","StoriesProductionEndCard.react","StoriesProgressBar.react","StoriesSuspenseBucket.react","StoriesSuspenseBucketContainer_animations.graphql","StoriesSuspenseBucketContainer_bucket.graphql","StoriesSuspenseBucketContainer_user.graphql","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesSuspensePauseContext","isStringNullOrEmpty","react","storiesUpdateSeenStateMutation","useStoriesLogger","useStoriesSuspenseCards","useStoriesSuspenseNavListItemTransitionListener","useStoriesSuspensePermalinkUpdater","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useMemo,p=e.useState,q=h!==void 0?h:h=b("StoriesSuspenseBucketContainer_bucket.graphql");function a(a){var e,f=a.animations,g=a.bucket,h=a.refetchNodes,k=a.shouldAutoExit;a=a.userData;g=d("CometRelay").useFragment(q,g);var r=c("useStoriesViewerClose")(),s=d("CometRelay").useRelayEnvironment(),t=n(c("StoriesBehaviorHelpContext"));t=t.isSelfStory;f=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseBucketContainer_animations.graphql"),f);a=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesSuspenseBucketContainer_user.graphql"),a);var u=p(null),v=u[0];u=u[1];var w=n(c("StoriesSuspensePauseContext"));w=w.isPaused;var x=n(c("StoriesSuspenseContuxActionsContext")),y=x.performCardNavigation;x=n(c("StoriesSuspenseContuxContext"));var z=x.cardIndex,A=x.isLastCard;x=n(c("StoriesSuspenseBucketDataContext"));x=x.bucketData;var B=x.bucketID,C=x.bucketIndex,D=x.isEndOfTray,E=x.isLastBucket;x=n(c("StoriesActorContext"));x=x.actorID;var F=c("useStoriesLogger")(x,{bucketIndex:C,cardIndex:z},g),G=(x=k)!=null?x:!0;C=m(function(){A&&E&&G?r(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT):y(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.AUTO_JUMP)},[E,A,y,G,r]);k=g==null?void 0:g.story_bucket_owner;x=g==null?void 0:(x=g.story_bucket_owner)==null?void 0:x.short_name;var H=(e=g==null?void 0:g.is_bucket_seen_by_viewer)!=null?e:A;e=((e=g==null?void 0:(e=g.unified_stories)==null?void 0:e.edges)!=null?e:[]).map(function(a){return a==null?void 0:a.node});e=c("useStoriesSuspenseCards")(e,z);var I=e.getCardAtCurrentIndex,J=e.getCount,K=e.getFirstCard,L=e.getNextCard;e=I();var M=D?"end_card":e==null?void 0:e.id;I=m(function(){if(!c("isStringNullOrEmpty")(B)&&M!=null){var a;c("storiesUpdateSeenStateMutation")(s,B,M,H?(a=K())==null?void 0:a.id:(a=L())==null?void 0:a.id,H)}},[B,M,s,K,L,H]);c("useStoriesSuspenseNavListItemTransitionListener")();c("useStoriesSuspensePermalinkUpdater")(g,z);g=o(function(){return{logger:F}},[F]);if(D)return l.jsx(c("StoriesProductionEndCard.react"),{onProgressDone:C,userData:a});if(e==null){t||c("FBLogger")("fbstories").warn("Empty card at index: [%s] for bucket id: [%s]",z,B);return l.jsx("div",{className:"x5yr21d x1n2onr6 xh8yej3",children:l.jsx(c("StoriesBucketLoadingView.react"),{})},B)}return l.jsxs("div",{className:"x5yr21d x1n2onr6 xh8yej3",children:[l.jsx(c("StoriesLoggerContext").Provider,{value:g,children:l.jsx(c("StoriesSuspenseBucket.react"),{animations:f,card:e,isSelfStory:t(),onCardSeen:I,onProgressDone:C,onTimerSourceUpdate:u,owner:k,ownerName:x,refetchNodes:h})}),l.jsx(c("StoriesProgressBar.react"),{cardCount:J(),cardTimerSource:v,currentCardIndex:z,isPaused:w,onDone:C})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSuspenseBucketChangeHandler",["CometRelay","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseBucketDataContext","StoriesSuspenseBucketTransitioningContext","react","useStoriesBucketChanged","useStoriesSuspenseBucketChangeHandler_bucket.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useContext,k=e.useEffect;function a(a,e){a=d("CometRelay").useFragment(h!==void 0?h:h=b("useStoriesSuspenseBucketChangeHandler_bucket.graphql"),a);a=a==null?void 0:a.id;var f=j(c("StoriesSuspenseBucketTransitioningContext")),g=f.setIsBucketTransitionInProgress;f=j(c("StoriesSuspenseBucketDataContext"));f=f.bucketData;var i=f.isEndOfTray;f=c("useStoriesBucketChanged")(a);var l=f.bucketChanged,m=f.bucketChangedFromAnotherBucket;k(function(){i&&e.openStoryLog(null,!0),l&&(g(!1),m?e.openStoryLog(c("StoriesLoggingConstants").ACTION_SOURCE.VIEWER):e.openStoryLog(d("StoriesLoggerSession").getOpenViewerSource()))},[l,m,e,i,g])}g["default"]=a}),98);
-----
StoriesSuspenseNavigationButtons.react",["StoriesEnums","StoriesLoggingConstants","StoriesNavigationButton.react","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","react","useStoriesSuspenseKeyHandler"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){a=a.children;var b=j(c("StoriesSuspenseContuxContext")),e=b.isFirstCard,f=b.isLastCard;b=b.isStoryOverlayActive;c("useStoriesSuspenseKeyHandler")();var g=j(c("StoriesSuspenseBucketDataContext"));g=g.bucketData;var h=g.isFirstBucket;g=g.isLastBucket;var k=j(c("StoriesSuspenseContuxActionsContext")),l=k.performCardNavigation;k=i.jsx(c("StoriesNavigationButton.react"),{direction:e?d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD,disabled:h&&e||b,onClick:function(){window.requestAnimationFrame(function(){l(d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_BACKWARD)})}},"prev");h=i.jsx(c("StoriesNavigationButton.react"),{direction:f?d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,disabled:g&&f||b,onClick:function(){window.requestAnimationFrame(function(){l(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_FORWARD)})}},"next");return i.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k xh8yej3",children:[k,a,h]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSuspensePlaceholderKeyHandler",["CometKeys","StoriesEnums","StoriesLoggingConstants","StoriesSuspenseKeyboardContext","react","storiesViewerSuspenseEmitter","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect,l=b.useRef;function a(){var a=l(null),b=j(c("StoriesSuspenseKeyboardContext")),e=b.addSubscriber,f=c("useStoriesViewerClose")(),g=i(function(a){switch(a.key){case c("CometKeys").LEFT:case c("CometKeys").UP:c("storiesViewerSuspenseEmitter").requestBucketTransition(d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET);break;case c("CometKeys").RIGHT:case c("CometKeys").DOWN:c("storiesViewerSuspenseEmitter").requestBucketTransition(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET);break;case c("CometKeys").ESCAPE:f(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.KEYBOARD_EXIT);break}},[f]);k(function(){var b=function(){a.current&&a.current()};b();a.current=e(g);return b},[e,g])}g["default"]=a}),98);
-----
StoriesSuspenseContentPanePlaceholder.react",["StoriesBucketLoadingView.react","StoriesCloseButton.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseNavigationButtonsPlaceholder.react","StoriesSuspenseViewerSheetPlaceholder.react","react","useStoriesViewerDimensions","useStoriesViewerSheetAnimation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.isNullState;b=b===void 0?!1:b;a.openSource;a=c("useStoriesViewerDimensions")();var e=d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,f=e;f=c("useStoriesViewerSheetAnimation")(f);var g=f.contentPaneStyle,h=f.placeholderStyle,j=f.setDisplaySideRail,k=f.viewerSheetInlineStyle;f=f.viewerSheetStyle;var l=null;a=i.jsxs("div",{className:"x6s0dn4 x78zum5 x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:[i.jsx(c("StoriesSuspenseNavigationButtonsPlaceholder.react"),{children:i.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d x1n2onr6",children:i.jsx("div",{className:"xjbqb8w x1lq5wgf xgqcy7u x30kzoy x9jhf4c x78zum5 x1q0g3np xod5an3 x14vqqas x1bifzbx x17z0pdo x6ikm8r x10wlt62 x1n2onr6 x1k90msu x6o7n8i x9lcvmn x1m6m0jg",style:a,children:i.jsx(c("StoriesBucketLoadingView.react"),{})})})}),i.jsx(c("StoriesCloseButton.react"),{})]});e?l=i.jsxs("div",{className:g,children:[a,i.jsx("div",{className:f,style:k,children:i.jsx("div",{className:h,children:i.jsx(c("StoriesSuspenseViewerSheetPlaceholder.react"),{openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,toggleViewerSheet:j})})})]}):l=a;return b?null:i.jsxs("div",{children:[i.jsx("div",{className:"xal61yo x5yr21d x10l6tqk xh8yej3"}),i.jsx("div",{className:"x6s0dn4 x1ey2m1c x78zum5 xds687c xl56j7k x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy",children:l})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseViewerSheetPlaceholder.react",["FDSGlimmer.react","StoriesCometListItemGlimmer.react","StoriesLoggingConstants","StoriesViewerSheetSection.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useEffect,k={preview:{height:"x1h5wmu3",marginEnd:"xq8finb",marginLeft:null,marginRight:null,width:"xgf8fm",$$css:!0},title:{height:"x1qx5ct2",width:"x1exxlbk",$$css:!0}};function a(a){var b=a.openSource,d=a.toggleViewerSheet;j(function(){b===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?d(!0):d(!1)},[b,d]);a=[].concat(Array.from(Array(3).keys())).map(function(a){return i.jsx(c("FDSGlimmer.react"),{index:a,xstyle:k.preview},a)});return i.jsxs("div",{className:"x2izyaf x5yr21d xh8yej3",children:[i.jsxs(c("StoriesViewerSheetSection.react"),{showSectionLine:!0,children:[i.jsx("div",{className:"x9tmck8 xn6708d x18d9i69 x1ye3gou",children:i.jsx(c("FDSGlimmer.react"),{index:0,xstyle:k.title})}),i.jsx("div",{className:"x6s0dn4 x78zum5 x1p5oq8j xn6708d xwxc41k x1ye3gou",children:a})]}),i.jsxs(c("StoriesViewerSheetSection.react"),{showSectionLine:!1,children:[i.jsx("div",{className:"x9tmck8 xn6708d x18d9i69 x1ye3gou",children:i.jsx(c("FDSGlimmer.react"),{index:0,xstyle:k.title})}),i.jsx(c("StoriesCometListItemGlimmer.react"),{isViewerSheet:!0,numberOfItems:6})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseViewerSheetPreviewTray.react",["StoriesActorContext","StoriesBehaviorHelpContext","StoriesEnums","StoriesLoggingConstants","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesViewerSheetContext","StoriesViewerSheetPreviewAddStory.react","StoriesViewerSheetSection.react","StoriesViewerSheetStoryPreview.react","deferredLoadComponent","react","requireDeferredForDisplay","useCurrentDisplayMode"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext,k=99,l=k/3,m=1.15152,n=12,o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("ProfileCometFeaturedHighlightsEditCollectionButton.react").__setRef("StoriesSuspenseViewerSheetPreviewTray.react"));function a(){var a=j(c("StoriesActorContext"));a=a.actorID;var b=j(c("StoriesSuspenseContuxActionsContext")),e=b.cardIndexChanged;b=j(c("StoriesSuspenseContuxContext"));var f=b.cardIndex,g=c("useCurrentDisplayMode")();b=j(c("StoriesViewerSheetContext"));var h=b.canAddToStory;b=b.storiesPreviewUriList;var p=j(c("StoriesBehaviorHelpContext")).getBucketType(),q=j(c("StoriesSuspenseBucketDataContext"));q=q.bucketData.bucketID;var r=176,s=function(a,b){if(a)return;e(b,c("StoriesLoggingConstants").NAVIGATION_GESTURE.VIEWER_SHEET)},t=f>0?-((k+n)*f-l):0;return i.jsxs(c("StoriesViewerSheetSection.react"),{showSectionLine:!1,children:[i.jsxs("div",{className:"x6s0dn4 x78zum5 x1p5oq8j xn6708d xwxc41k x1ye3gou x1n2onr6 x1d8287x x11xpdln xz4gly6 x1so62im",style:{height:r*m,transform:"translateX("+t+"px)"},children:[b.map(function(a,b){var d=a.caption,e=a.contentID,h=a.storyID,j=a.uri;a=a.warningScreen;if(j==null)return null;var l=b===f;return i.jsxs("div",{className:"xq8finb",children:[i.jsx(c("StoriesViewerSheetStoryPreview.react"),{activeScale:m,caption:d,contentID:e,height:r,index:b,isActive:l,onClick:s,previewImageURI:j,storyID:h,warningScreen:a,width:k}),l&&i.jsx("div",{className:"xm3z3ea x1x8b98j x131883w x16mih1h x1ey2m1c x36qwtl x10l6tqk x2wwmgb",style:{backgroundColor:g==="dark"?"var(--always-white)":"var(--always-black)"}})]},b)}),h&&i.jsx("div",{className:"xq8finb",children:i.jsx(c("StoriesViewerSheetPreviewAddStory.react"),{height:r,width:k})})]}),p===d("StoriesEnums").STORY_CARD_TYPES.HIGHLIGHTED_STORY&&a!=null?i.jsx("div",{className:"xsag5q8 xn6708d x1ye3gou xexx8yu",children:i.jsx(o,{collectionID:q,profileID:a})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseContentSlidingTransition.react",["CometPlaceholder.react","MWChatVisibilityOverrideContext","StoriesCloseButton.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseViewerSheetPlaceholder.react","react","useMWShouldCurrentRouteOverrideChatVisibility","useShouldShowMessagingEntrypointOnCurrentRoute","useStoriesCometWindowFitNavPaneAndViewerSheet","useStoriesViewerSheetAnimation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useCallback;function a(a){var b=a.children;a=a.viewerSheet;var e=c("useStoriesCometWindowFitNavPaneAndViewerSheet")(),f=c("useShouldShowMessagingEntrypointOnCurrentRoute")("CHAT"),g=c("useMWShouldCurrentRouteOverrideChatVisibility")();g=d("MWChatVisibilityOverrideContext").useMWChatVisibilityOverride(g);f=f&&g;g=d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE;g=g;g=c("useStoriesViewerSheetAnimation")(g,e,f);e=g.closeButtonStyle;f=g.contentPaneStyle;var h=g.placeholderStyle,k=g.setDisplaySideRail,l=g.viewerSheetInlineStyle;g=g.viewerSheetStyle;var m=j(function(){return i.jsx("div",{className:h,children:i.jsx(c("StoriesSuspenseViewerSheetPlaceholder.react"),{toggleViewerSheet:k})})},[h,k]);return i.jsxs("div",{className:f,children:[b,i.jsx("div",{className:e,children:i.jsx(c("StoriesCloseButton.react"),{})}),i.jsx("div",{className:g,style:l,children:i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(m,{}),children:a(k)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSuspenseNavListItemTransitionListener",["StoriesLoggerContext","StoriesLoggingConstants","react","storiesViewerSuspenseEmitter"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect;function a(){var a=i(c("StoriesLoggerContext")),b=a.logger;j(function(){return c("storiesViewerSuspenseEmitter").listenToNavListItemTransition(function(){b.storyNavigationLog(c("StoriesLoggingConstants").NAVIGATION_GESTURE.NAVIGATE_AWAY)})},[b])}g["default"]=a}),98);
-----
StoriesSuspenseViewerSheetSelfStoryContent.react",["CometRelay","StoriesEnums","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseViewerSheetPreviewTray.react","StoriesSuspenseViewerSheetSelfStoryContent_bucket.graphql","StoriesSuspenseViewerSheetSelfStoryContent_card.graphql","StoriesSuspenseViewerSheetViewerList.react","StoriesViewerSheetHeader.react","StoriesViewerSheetPollResult.react","cr:5850","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||d("react");function a(a){var e,f,g=a.bucket;a=a.card;g=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSuspenseViewerSheetSelfStoryContent_bucket.graphql"),g);a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseViewerSheetSelfStoryContent_card.graphql"),a);e=(e=a==null?void 0:a.story_overlays)!=null?e:[];e=e.find(function(a){return a.__typename===d("StoriesEnums").STORY_OVERLAY_TYPES.POLL_STICKER});f=(f=a==null?void 0:(f=a.feedback)==null?void 0:f.story_comment_count)!=null?f:0;var j=d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,l=f===0&&j||!j;j=j&&f>0;var m;l?m=k.jsx(c("StoriesSuspenseViewerSheetViewerList.react"),{card:a}):j&&b("cr:5850")!=null&&(m=k.jsx(b("cr:5850"),{card:a,commentCount:f}));return k.jsxs("div",{className:"x1nxh6w3",children:[k.jsx(c("StoriesViewerSheetHeader.react"),{children:g==null?void 0:g.name}),k.jsx(c("StoriesSuspenseViewerSheetPreviewTray.react"),{}),k.jsx(c("StoriesViewerSheetPollResult.react"),{overlayPoll:e}),m]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseContentPaneRootWithEntryPoint.react",["CometRelay","QPLUserFlow","StoriesActorProvider.react","StoriesLoggingConstants","StoriesSuspenseContentPane.react","StoriesSuspenseContentPaneRootWithEntryPointQuery.graphql","StoriesSuspensePauseContextProvider.react","StoriesSuspensePendingRefetchBucketIDsContext","qpl","react","useQP"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useEffect,l=e.useMemo,m=e.useRef;function n(a,b){var c;c=a==null?void 0:(c=a.unified_stories)==null?void 0:c.edges;a=a==null?void 0:(a=a.first_story_to_show)==null?void 0:a.id;var d=b!=null&&b!==""?b:a;b=c&&d!=null?c.findIndex(function(a){return((a=a.node)==null?void 0:a.id)===d}):-1;return Math.max(b,0)}function a(a){var e,f,g=a.bucketID,i=a.initialBucketID,o=a.initialCardID,p=a.openSource;p=p===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.UNKNOWN:p;var q=a.queryReference,r=a.updateFetchPolicy,s=a.viewerSessionID;a=a.viewSingle;var t=m(null),u=m(null);q=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("StoriesSuspenseContentPaneRootWithEntryPointQuery.graphql"),q);k(function(){c("QPLUserFlow").addPoint(c("qpl")._(741087294,"2028"),"viewer loaded")},[s]);var v=(s=n(q==null?void 0:q.initialBucket,o))!=null?s:(o=t.current)==null?void 0:o.initialCardIndex,w=(s=q==null?void 0:q.viewer)!=null?s:(o=t.current)==null?void 0:o.viewer;o=w==null?void 0:(s=w.actor)==null?void 0:s.id;k(function(){t.current===null&&(t.current={initialCardIndex:v,viewer:w})},[v,w]);if(o===(q==null?void 0:(s=q.bucket)==null?void 0:(s=s.story_bucket_owner)==null?void 0:s.id)){u.current=q==null?void 0:(s=q.bucket)==null?void 0:s.id}s=l(function(){return{setShouldRefetchSelfBucket:function(a){a=a&&u.current===g?"network-only":"store-or-network";r(a)}}},[g,r]);e=q==null?void 0:(e=q.qp_viewer)==null?void 0:(e=e.eligible_promotions)==null?void 0:(e=e.nodes)==null?void 0:e[0];var x=e==null?void 0:(f=e.comet_qp_sections)==null?void 0:f.renderer_strategy;f=c("useQP")(e);var y=f[0];e=l(function(){if(x!=null&&y)return j.jsx(d("CometRelay").MatchContainer,{match:x,props:{canRender:y}})},[y,x]);return j.jsx("div",{className:"x6s0dn4 xal61yo x1ey2m1c x78zum5 xds687c xl56j7k x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy",children:j.jsx(c("StoriesActorProvider.react"),{actorID:o,children:j.jsx(c("StoriesSuspensePendingRefetchBucketIDsContext").Provider,{value:s,children:j.jsxs(c("StoriesSuspensePauseContextProvider.react"),{children:[e,j.jsx(c("StoriesSuspenseContentPane.react"),{LWRAnimations:w,bucket:q==null?void 0:q.bucket,initialBucketID:i,initialCardIndex:v,isSingleBucketViewer:a,openSource:p,user:q==null?void 0:q.me})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesLogger",["CometRelay","FBLogger","FBStoriesBanzaiConstants","StoriesFeedbackFlowTypes","StoriesGating","StoriesLoggerHelper","StoriesLoggerSession","StoriesLogger_bucketNode.graphql","StoriesLoggingConstants","StoriesPauseReasons","StoriesUtils","WebSession","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(a=c("requireDeferred"))("AttemptToSendReplyFalcoEvent").__setRef("StoriesLogger"),j=a("CloseStoryFalcoEvent").__setRef("StoriesLogger"),k=a("DeleteMediaAttemptedFalcoEvent").__setRef("StoriesLogger"),l=a("DirectMessagingFalcoEvent").__setRef("StoriesLogger"),m=a("FbStoriesVisitPageFalcoEvent").__setRef("StoriesLogger"),n=a("OpenLinkFalcoEvent").__setRef("StoriesLogger"),o=a("OpenMediaFalcoEvent").__setRef("StoriesLogger"),p=a("OpenSeenSummaryFalcoEvent").__setRef("StoriesLogger"),q=a("OpenStoryFalcoEvent").__setRef("StoriesLogger"),r=a("SifAutoplayLwrFalcoEvent").__setRef("StoriesLogger"),s=a("SifAutoplayTextReplyFalcoEvent").__setRef("StoriesLogger"),t=a("StoriesInteractiveFeedbackFalcoEvent").__setRef("StoriesLogger"),u=a("StoriesTestUtils").__setRef("StoriesLogger"),v=a("StoryMediaViewFalcoEvent").__setRef("StoriesLogger"),w=a("StoryNavigationFalcoEvent").__setRef("StoriesLogger"),x=h!==void 0?h:h=b("StoriesLogger_bucketNode.graphql");e=function(){function a(a){var b=a.actorID,c=a.bucketIndex,e=a.cardIndex,f=a.data;a=a.trackingStrings;this.$1=null;this.$2=0;this.$3=0;this.$4=null;this.$1=b;this.$4=a;this.$2=c;this.$3=e;this.$5=d("CometRelay").readInlineData(x,f)}var b=a.prototype;b.$6=function(){var a=this.$5;a==null&&this.$2>=0&&this.$3>=0&&c("FBLogger")("fbstories").warn("Logger does not have valid card data");return a!=null};b.storyNavigationLog=function(a){var b=this;if(!this.$6())return;w.onReady(function(c){c.log(function(){var c=babelHelpers["extends"]({},b.$7(),{gesture:a});return c})})};b.replyLog=function(){var a=this;if(!this.$6())return;var b=this.$7();i.onReady(function(c){c.log(function(){return{media_id:a.$8(),media_index:b.media_index,media_type:a.$9(),number_media:a.$10(),number_viewers:a.$11(),source:b.source,story_index:a.$2,story_owner:a.$12(),story_owner_type:a.$13(),story_size:a.$10(),thread_id:b.thread_id,tracking_string:b.tracking_string,tray_session_id:b.tray_session_id,viewer_session_id:b.viewer_session_id}})})};b.replyAttemptCompletedLog=function(a,b){var d=this;if(!this.$6())return;var e=b==null;t.onReady(function(b){b.log(function(){var b=babelHelpers["extends"]({},d.$7(),{action:c("StoriesLoggingConstants").ACTION_TYPE.REPLY_ATTEMPT_COMPLETED,story_reply_type:a,success:e});return b})})};b.replySentWhenSmartReplyShownLog=function(a,b,d,e){var f=this;if(!this.$6())return;t.onReady(function(g){g.log(function(){var g=babelHelpers["extends"]({},f.$7(),{action:c("StoriesLoggingConstants").ACTION_TYPE.REPLY_SENT_WHEN_SMART_REPLY_SHOWN,edit_after_smart_reply_tap:a,smart_reply_id:b,smart_reply_suggestion_type:e,smart_reply_tap_before_sent:d});return g})})};b.pauseLog=function(a,b){if(!this.$6())return;b!==d("StoriesPauseReasons").BUCKET_TRANSITION&&this.$14(a?c("StoriesLoggingConstants").ACTION_TYPE.PAUSE_STORY:c("StoriesLoggingConstants").ACTION_TYPE.UNPAUSE_STORY,b.toLowerCase())};b.openLinkLog=function(){var a=this;if(!this.$6())return;n.onReady(function(b){b.log(function(){var b=a.$7();b={media_id:a.$8(),media_index:b.media_index,media_type:a.$9(),source:b.source,story_owner:a.$12(),story_owner_type:a.$13(),thread_id:b.thread_id,tray_session_id:b.tray_session_id,viewer_session_id:b.viewer_session_id};return b})})};b.stickerImpressionLog=function(){var a=this;if(!this.$6())return;t.onReady(function(b){b.log(function(){var b=babelHelpers["extends"]({},a.$7(),{action:c("StoriesLoggingConstants").ACTION_TYPE.STICKER_IMPRESSION});return b})})};b.linkStickerClickLog=function(){var a=this;if(!this.$6())return;t.onReady(function(b){b.log(function(){var b=babelHelpers["extends"]({},a.$7(),{action:c("StoriesLoggingConstants").ACTION_TYPE.LINK_STICKER_CLICK});return b})})};b.openViewerSheetLog=function(){var a=this;if(!this.$6())return;p.onReady(function(b){b.log(function(){var b=a.$7();return b})})};b.openMediaLog=function(a){var b=this;a!=null&&a!==this.$15()&&c("FBLogger")("fbstories").warn("Logger card id [%s] does not match media card id [%s]",this.$15(),a);if(!this.$6())return;o.onReady(function(a){a.log(function(){var a=babelHelpers["extends"]({},b.$7(),{sid:d("WebSession").getId()});return a})})};b.storyMediaViewLog=function(a){var b=this;if(d("StoriesGating").shouldLogStoryMediaView()!==!0)return;a!=null&&a!==this.$15()&&c("FBLogger")("fbstories").warn("Logger card id [%s] does not match media card id [%s]",this.$15(),a);if(!this.$6())return;v.onReady(function(a){a.log(function(){var a,c=b.$7();a={bucket_id:((a=b.$5)==null?void 0:a.id)||"",media_id:b.$8(),media_index:c.media_index,media_type:b.$9(),number_media:b.$10(),number_viewers:b.$11(),source:c.source,story_index:b.$2,story_owner:b.$12(),story_owner_type:b.$13(),story_size:b.$10(),thread_id:c.thread_id,tracking_string:c.tracking_string,tray_session_id:c.tray_session_id,viewer_session_id:c.viewer_session_id};return a})})};b.openStoryLog=function(a,b){var c=this,e;b===void 0&&(b=!1);if(b){q.onReady(function(a){a.log(function(){var a={story_owner_type:c.$13(b),tray_session_id:d("StoriesLoggerSession").getTraySessionID(),viewer_session_id:d("StoriesLoggerSession").getViewerSessionID()};return a})});return}if(!this.$6())return;e=(e=this.$5)==null?void 0:(e=e.unified_stories)==null?void 0:e.edges;var f=(e==null?void 0:e.length)||0,g=!1;if(e==null)return;for(var h=0;h
useStoriesViewerClose",["CometRouteRenderType","MessengerEnvironment","StoriesLoggerSession","StoriesLoggingConstants","XCometHomeControllerRouteBuilder","cr:869845","gkx","useCometRouterDispatcher","useRouteReferrer"],(function(a,b,c,d,e,f,g){"use strict";var h=c("gkx")("20935"),i=c("XCometHomeControllerRouteBuilder").buildURL({});function a(){var a=d("CometRouteRenderType").useIsPushView(),e=c("useCometRouterDispatcher")(),f=c("useRouteReferrer")();return function(g){var j=d("StoriesLoggerSession").getOpenViewerSource();d("StoriesLoggerSession").setCloseGesture(g);b("cr:869845")?c("MessengerEnvironment").messengerui?b("cr:869845").getInstance().closeDialogMessenger():j===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?b("cr:869845").getInstance().closeArchiveDialogAndRefresh():b("cr:869845").getInstance().navigateToEntryPoint():h&&g===c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT&&(!a&&e?(f==null?void 0:f.tracePolicy)!=null&&e.goBack?e.goBack():e.go&&e.go(i,{replace:!0}):a&&e&&e.popPushView&&e.popPushView())}}g["default"]=a}),98);
-----
StoriesCloseButton.react",["fbt","ix","CometPressable.react","IconSource","StoriesLoggingConstants","StoriesSuspensePauseContext","TetraIcon.react","cr:1032347","gkx","react","useStoriesViewerClose"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useContext,m=c("gkx")("20935");function a(a){a=a.dark;a=a===void 0?!1:a;var d=c("useStoriesViewerClose")(),e=l(c("StoriesSuspensePauseContext"));e=e.setPause;if(m)return null;var f=function(a){d(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.CLOSE_BUTTON_EXIT)};a=a?new(c("IconSource"))("FB",i("1351092"),24):new(c("IconSource"))("FB",i("1495001"),24);return k.jsxs("div",{className:"x78zum5 xds687c xbyyjgo x10l6tqk x13vifvy x13dflua x19991ni xz4gly6 x1o7uuvo","data-testid":void 0,children:[b("cr:1032347")&&k.jsx(b("cr:1032347"),{setPause:e}),k.jsx(c("CometPressable.react"),{"aria-label":h._("__JHASH__tnRfHlva-bL__JHASH__"),display:"inline",onPress:f,overlayDisabled:!0,children:k.jsx("div",{className:"x1ypdohk x78zum5 xw7yly9 xktsk01 x1yztbdb x17adc0v",children:k.jsx(c("TetraIcon.react"),{icon:a,size:24})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsAdgroupPreviewsV2.react",["cx","fbt","AdsAPIAdgroupRecord","AdsAPIAdgroupRecordUtils","AdsAdgroupPreviewsLoggingConstants","AdsAdgroupPreviewsV2Header.react","AdsAdgroupPreviewsV2Section.react","AdsAdgroupSpecUtils","AdsLoadState_LEGACY","AdsObjectivesV2Utils","AdsPlacementAssetUtils","AdsPlacementEditorEvents","AdsPreviewNoMediaSelectedView.react","AdsPreviewV2ErrorUtils","AdsPreviewsV2Constants","AdsStaticGuidanceCard.react","AdsUEditorCreativeToolDialogPreviewSelector.react","AdsUEditorPlacementEditorUtils","CometPlaceholder.react","FBLogger","FlexLayout.react","GeoSpinner.react","GeoVStack.react","LRUKeyedCache","LazyLatchBoundary.react","LoadingContext.react","OptimisticAdPreviewUtils","XUICarousel.react","XUICarouselItem.react","adsPreviewHasInstagramStoryFormat","areEqual","createArrayFromMixed","deepCompare","emptyFunction","emptyObject","immutable","isTruthy","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react");function m(a){var b=a.category,d=a.message;a=a.messageID;return l.jsx("div",{className:"_3-97 _3-8u",children:l.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:b,messageID:a,textData:[{type:"PARAGRAPH",data:{text:d}}]}})})}m.displayName=m.name+" [from "+f.id+"]";var n=function(a){return a==null?[]:c("createArrayFromMixed")(a.getElementsByTagName("video"))},o=function(a){a.forEach(function(a){return a.pause()})},p=function(a){n(a).forEach(function(a){a=a.play();a["catch"](function(a){c("FBLogger")("ads","video_player_issues").warn("Tried to play a video in %s, but failed because of error %s. This needs the right paused fallback UI, see https://goo.gl/LdLk22.",f.id,a.message)})})},q=0;a=10;var r=new(c("LRUKeyedCache"))(function(a){return a},a);b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e,f;for(var g=arguments.length,h=new Array(g),i=0;i
-----
AdsAdgroupPreviewsV2Header.react",["fbt","invariant","AdsAdgroupPreviewsLoggingConstants","AdsAdgroupPreviewsV2NavigationSection.react","AdsAdgroupPreviewsV2Selector.react","AdsIXIGCollectionPreviewNoticeContainer.react","AdsPreviewSelectorEntrypoints","AdsUEditorAdgroupContext","FlexLayout.react","GeoFlexbox.react","JSResource","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useContext,n=210,o={root:{backgroundColor:"x2izyaf",borderBottomWidth:"xso031l",borderBottomStyle:"x1q0q8m5",borderBottomColor:"xzsr00n",height:"xsdox4t",paddingTop:"xexx8yu",paddingEnd:"xn6708d",paddingBottom:"x18d9i69",paddingStart:"xurb0ha",position:"x1n2onr6",$$css:!0}},p=c("lazyLoadComponent")(c("JSResource")("AdsAdgroupPreviewsV2CountrySelector.react").__setRef("AdsAdgroupPreviewsV2Header.react"));function a(a){var b,d=a.index,e=d===void 0?0:d,f=a.maxIndex,g=a.minIndex,j=a.onChange;d=babelHelpers.objectWithoutPropertiesLoose(a,["index","maxIndex","minIndex","onChange"]);a=m(c("AdsUEditorAdgroupContext"));a=a.adgroupEditorContext;var q=l(function(a){var b=f-g+1,d=e;d=(d+a)%b;j&&j(d,c("AdsAdgroupPreviewsLoggingConstants").PAGINATION)},[f,g,j,e]),r=l(function(a){q(1)},[q]),s=l(function(a){q(-1)},[q]),t=l(function(a){j&&j(a,c("AdsAdgroupPreviewsLoggingConstants").SELECTOR)},[j]);f>=g||i(0,1077);b=(b=d.previewPlugins.toIndexedSeq().get(e))==null?void 0:b.apiFormat;return b==null?null:k.jsxs(c("GeoFlexbox.react"),{alignItems:"center","data-testid":void 0,justifyContent:"space-between",xstyle:o.root,children:[k.jsxs(c("FlexLayout.react"),{children:[a?k.jsx(c("AdsIXIGCollectionPreviewNoticeContainer.react"),{}):null,k.jsx(c("AdsAdgroupPreviewsV2Selector.react"),{entrypoint:c("AdsPreviewSelectorEntrypoints").AD_LEVEL,previewPlugins:d.previewPlugins,selectedAdFormat:b,width:d.fixedWidthSelector===!0?n:null,onPreviewItemSelected:t}),d.customHeaderComponent,d.showCountryDropdown===!0&&k.jsx(p,{selectedCountry:d.selectedCountry})]}),k.jsx(c("AdsAdgroupPreviewsV2NavigationSection.react"),{handleDecrementClick:s,handleIncrementClick:r,index:e,maxIndex:f,minIndex:g,nextLabel:h._("Next Ad Format"),previousLabel:h._("Previous Ad Format")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsAdgroupPreviewsLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={COMPONENT_CLAMP:"preview-component-clamp",PAGINATION:"pagination",SELECTOR:"selector",MINI_PREVIEW:"mini_preview"};b=a;f["default"]=b}),66);
-----
AdsAdBuilderMiniPreviewsV4ClickedLoggerPlugin",["AdsAdBuilderLogger","AdsAdgroupPreviewsLoggingConstants"],(function(a,b,c,d,e,f,g){"use strict";a={log:function(a){a=a.data;a.shouldLog&&a.loggingSource==c("AdsAdgroupPreviewsLoggingConstants").MINI_PREVIEW&&a.adgroupID!=null&&d("AdsAdBuilderLogger").logMiniPreviewClicked(a.adgroupID,a.format,a.hasError,a.entryPoint)}};b=a;g["default"]=b}),98);
-----
SellerInsightsV2AdvancedTrendChart.react",["GeoGlimmer.react","GeoVStack.react","SellerInsightsV2ChartUtils.next","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricCard.react","SellerInsightsV2QPLLoggingHooks","SellerInsightsV2TrendChartDetailMetricName.react","SellerInsightsV2TrendChartDetailUtils","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=240,k=100,l=240,m=40,n=k-8;function o(a){var b=a.isRenderedOnHomePage;a=a.metric;return i.jsxs(c("GeoVStack.react"),{children:[b!==!0&&i.jsx(c("SellerInsightsV2TrendChartDetailMetricName.react"),{metric:a}),i.jsx(c("GeoGlimmer.react"),{height:m,index:0,width:l}),i.jsx(c("GeoGlimmer.react"),{height:n,index:1,width:"100%"})]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.type,d=a.metric;a=a.isRenderedOnHomePage;return i.jsxs(c("GeoVStack.react"),{children:[a!==!0&&i.jsx(c("SellerInsightsV2TrendChartDetailMetricName.react"),{metric:d}),i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:(d=b)!=null?d:c("SellerInsightsV2ErrorType").Error,isRenderedOnHomePage:a,xstyle:r.error})]})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.children;a=a.metricName;a=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredMetrics:a.toString()},d("SellerInsightsV2LoggingConstants").DELAY_FOR_CHART_HOVER_IN_MS);return i.jsx("div",{onMouseEnter:a,onMouseLeave:a.reset,children:b})}q.displayName=q.name+" [from "+f.id+"]";function a(a){var b=a.data,e=a.isRenderedOnHomePage,f=a.metric;a=a.state;a=a===void 0?d("SellerInsightsV2TrendChartDetailUtils").ContentState.Ready:a;if(a===d("SellerInsightsV2TrendChartDetailUtils").ContentState.Loading)return i.jsx(o,{isRenderedOnHomePage:e,metric:f});if(a===d("SellerInsightsV2TrendChartDetailUtils").ContentState.Empty)return i.jsx(p,{isRenderedOnHomePage:e,metric:f,type:c("SellerInsightsV2ErrorType").NoData});return a===d("SellerInsightsV2TrendChartDetailUtils").ContentState.Error||b==null?i.jsx(p,{isRenderedOnHomePage:e,metric:f}):i.jsx(q,{metricName:b.title,children:i.jsx(c("SellerInsightsV2MetricCard.react"),{chartColor:d("SellerInsightsV2ChartUtils.next").getTrendChartColor(b.metric),chartData:b.chartData,chartHeight:e===!0?j:k,chartValueFormatter:b.chartValueFormatter,compact:!0,currency:b.currency,currentValue:b.currentValue,effectiveDate:b.effectiveDate,fbChartData:b.fbChartData,igChartData:b.igChartData,infoText:b.infoText,isEstimated:b.isEstimated,isNegativeGood:b.isNegativeGood,isRenderedOnHomePage:e,isReviewed:b.isReviewed,metricFormat:b.renderType,metricName:f,prevValue:b.prevValue,title:b.title,unavailableDates:b.unavailableDates,value:b.value})})}a.displayName=a.name+" [from "+f.id+"]";var r={error:{height:"xhjk10j",justifyContent:"xl56j7k",$$css:!0}};g["default"]=a}),98);
-----
ProfileCometFeaturedHighlightsHScrollCard.react",["fbt","CometCard.react","CometColumn.react","CometColumnItem.react","CometRelay","FDSText.react","ProfileCometContext","ProfileCometFeaturedHighlightsHScrollCard_featured.graphql","StoriesLoggingConstants","StoriesTrayTileView.react","StoriesTrayUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useContext;function a(a){var e,f,g,j=a.canViewCollection;j=j===void 0?!1:j;var m=a.featured;a=a.testid;a=a===void 0?"":a;a=d("CometRelay").useFragment(i!==void 0?i:i=b("ProfileCometFeaturedHighlightsHScrollCard_featured.graphql"),m);m=l(c("ProfileCometContext"));m=m.isInViewAs;e=(a==null?void 0:(e=a.cover_card)==null?void 0:(e=e.attachments)==null?void 0:e.length)?(e=a.cover_card.attachments[0])==null?void 0:(e=e.media)==null?void 0:(e=e.image)==null?void 0:e.uri:null;if(a==null||e==null)return null;f=(f=(f=a.cover_card)==null?void 0:(f=f.attachments[0])==null?void 0:(f=f.media)==null?void 0:f.accessibility_caption)!=null?f:h._("__JHASH__Wlsf33USkLC__JHASH__");g=(g=a.highlighted_cards)==null?void 0:g.count;g=g!=null&&g>1?"+ "+((g=g-1)==null?void 0:g.toString()):null;return k.jsxs(c("CometColumn.react"),{expanding:!0,testid:void 0,children:[k.jsx(c("CometColumnItem.react"),{paddingHorizontal:0,children:k.jsx(c("CometCard.react"),{children:k.jsx(c("StoriesTrayTileView.react"),{bucketUrl:j?d("StoriesTrayUtils").getBucketURL({bucketID:(j=a.id)!=null?j:"",source:c("StoriesLoggingConstants").ACTION_SOURCE.PROFILE_HIGHLIGHT}):void 0,coverImage:e,disablePreloadOnMouseHover:m,label:f,text:g!=null?g:void 0})})}),k.jsx(c("CometColumnItem.react"),{align:"center",paddingHorizontal:0,paddingTop:8,children:k.jsx(c("FDSText.react"),{align:"center",numberOfLines:3,type:"bodyLink4",children:a.name})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsPEUploadLoggerHelper",["AdDraftPublishStatuses","AdsAccountStore","AdsAdgroupDraftFragmentStore","AdsCampaignDraftFragmentStore","AdsCampaignGroupDraftFragmentStore","AdsDraftProvider","AdsError","AdsErrorUtils","AdsFragmentsUtils","AdsLoadStateUtils_LEGACY","AdsManagerDowntimeProductionFiredrill","AdsMessageCampaignTargetingLoggingUtils","AdsMgmtQPLLogger","AdsObjectLevelToFragmentStore","AdsObjectLevelToStore","AdsPEAdgroupSelectors","AdsPECampaignGroupSelectors","AdsPECampaignSelectors","AdsPEDraftPublishLoggerHelper","AdsPELegacyLoggerState","AdsPEUploadStore","PowerEditorEventCategory","PowerEditorLoggingConstants","adsDraftActivePublishSelector","flattenArray","immutable","isMessageMarketingEnabledFromCampaign","normalizeErrorPath","qpl","requireWeak","sumOfArray"],(function(a,b,c,d,e,f,g){"use strict";var h=c("AdsDraftProvider").toFluxStore(),i;c("requireWeak")("AdsObjectLevelToValidationErrorsSelectors",function(a){i=a});var j=(a={},a.ad="adgroup_start_publish",a.ad_set="campaign_start_publish",a.campaign="campaign_group_start_publish",a.ad_account="",a.topline="",a),k=(b={},b.ad="adgroup_id",b.ad_set="campaign_id",b.campaign="campaign_group_id",b.ad_account="original_ad_object_id",b.topline="original_ad_object_id",b),l=["ad","ad_set","campaign"],m={_uploadStartTime:0,getLogsForUploadStart:function(a){var b;d("AdsPELegacyLoggerState").startFlow(d("PowerEditorLoggingConstants").FLOW.UPLOAD);m.measureUploadStart();b=(b=a.selection)!=null?b:c("immutable").Map();var e=b.map(function(a){return a.toSet()}).toSet().flatten(),g=c("immutable").OrderedMap(),h=c("immutable").OrderedMap(),q=[];l.forEach(function(a){var b=c("AdsObjectLevelToFragmentStore").get(a),j;i!=null&&(j=i.get(a).combinedErrorsSelector);var k=c("AdsObjectLevelToStore").get(a);b=b.getFragmentsInDraftFor(c("AdsAccountStore").getSelectedAccountID()).filter(function(a){return!a.isLoading()&&a.hasValue()}).map(function(a){return a.getValueEnforcing()}).filter(function(a){return e.has(a.objectID)}).map(function(b){var e=[];j!=null&&(e=j(b.objectID));var g=k.getObject(b.objectID);q=q.concat(e.map(function(a){return a.message}));var h,i,l,m,n,o;if(g.hasValue()){g=g.getValueEnforcing();a==="ad"?(h=g.campaign_id,i=g.adset_id,l=d("AdsPEAdgroupSelectors").getSelector_LEGACY()(b.objectID).getValue(),o=c("AdsAdgroupDraftFragmentStore").isNew(b.objectID)):a==="ad_set"?(h=g.campaign_id,m=d("AdsPECampaignSelectors").getSelector()(b.objectID).getValue(),o=c("AdsCampaignDraftFragmentStore").isNew(b.objectID)):a==="campaign"&&(o=c("AdsCampaignGroupDraftFragmentStore").isNew(b.objectID),n=d("AdsPECampaignGroupSelectors").getByFieldsSelector()(b.objectID,{is_skadnetwork_attribution:null,objective:null},f.id).getValue())}return{id:b.objectID,fragmentID:b.fragmentID,isNewFragment:o,isValid:!e.length,adgroupSpec:l,campaignSpec:m,isSKAdNetworkAttribution:(g=n)==null?void 0:g.is_skadnetwork_attribution,objective:(b=n)==null?void 0:b.objective,parentCampaignGroupID:h,parentCampaignID:i,validationErrors:e}}).valueSeq().toArray();g=g.set(a,b);b.length&&(h=h.set(a,b.length))});b=p(!1,h,q,null,a.fakePublishID);var r=[];g.forEach(function(a,b){var e=j[b],f=k[b];a.forEach(function(g){var h,a=(g.validationErrors||[]).map(function(a){return a.message}),i=g.campaignSpec,j=b==="ad_set"?{includedCustomAudienceIDs:d("AdsMessageCampaignTargetingLoggingUtils").getIncludedCustomAudienceIDs(i),excludedCustomAudienceIDs:d("AdsMessageCampaignTargetingLoggingUtils").getExcludedCustomAudienceIDs(i),is_mm_enabled:d("isMessageMarketingEnabledFromCampaign").isMessageMarketingEnabledFromCampaign(i)}:{};a=(h={action_session_id:c("AdsPEUploadStore").getSessionID(),campaign_group_id:g.parentCampaignGroupID,campaign_id:g.parentCampaignID},h[f]=g.id,h.adgroup_spec=JSON.stringify(g.adgroupSpec),h.campaign_spec=JSON.stringify(i),h.client_error_messages=a,h.event_source=c("AdsPEUploadStore").getPreviewSource(),h.fragment_id=g.fragmentID,h.has_client_error=!g.isValid,h.is_new_fragment=g.isNewFragment,h.is_skadnetwork_attribution=g.isSKAdNetworkAttribution,h.objective=g.objective,h.rf_budget_value=i==null?void 0:i.daily_budget,h.campaign_bid_strategy=i==null?void 0:i.bid_strategy,h.subsequent_data=JSON.stringify(babelHelpers["extends"]({},j)),h);r=[].concat(r,[n(e,a,c("PowerEditorEventCategory").PUBLISH)],o(g,b))})});d("AdsMgmtQPLLogger").markEvent(c("qpl")._(270218326,"5877"),"success",7);return[n("start_upload",b,c("PowerEditorEventCategory").UPLOAD)].concat(r)},getLogsForUploadFinished:function(a,b,e,f){var g;a=d("AdsLoadStateUtils_LEGACY").fromLoadObjectTreatEmptyAsLoading(h.getState().get(a));a=a.account_id;var i=c("adsDraftActivePublishSelector")();if(!a||!i.hasValue())return[];i=i.getValueEnforcing();var j=i.success_count,k=i.status;k=k===c("AdDraftPublishStatuses").FAILED;j=!!j;i=(i=i==null?void 0:(i=i.fragment_statuses)==null?void 0:i.data)!=null?i:[];var l=i.map(function(a){return a.error_message}).filter(Boolean);i=c("immutable").OrderedMap((g={},g.campaign=d("AdsFragmentsUtils").filterFragmentsByObjectType(i,"campaign").length,g.ad_set=d("AdsFragmentsUtils").filterFragmentsByObjectType(i,"ad_set").length,g.ad=d("AdsFragmentsUtils").filterFragmentsByObjectType(i,"ad").length,g)).filter(function(a){return a>0});g=p(!0,i,l,a,f);i=[];k&&i.push(n("upload_failed",babelHelpers["extends"]({},g,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD));if(j){i.push(n("upload_succeed",babelHelpers["extends"]({},g,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD));d("AdsPELegacyLoggerState").endFlow(d("PowerEditorLoggingConstants").FLOW.UPLOAD);for(l=d("AdsManagerDowntimeProductionFiredrill").getFakeSignals(),a=Array.isArray(l),f=0,l=a?l:l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(a){if(f>=l.length)break;k=l[f++]}else{f=l.next();if(f.done)break;k=f.value}j=k;i.push(n(j,babelHelpers["extends"]({},g,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD))}d("AdsMgmtQPLLogger").markEvent(c("qpl")._(270207765,"2118"),"success",7)}return i},getLogsForPublishReview:function(){var a=c("AdsAccountStore").getSelectedAccountID();a=c("immutable").Seq().concat(c("AdsAdgroupDraftFragmentStore").getFragmentsInDraftFor(a).valueSeq(),c("AdsCampaignDraftFragmentStore").getFragmentsInDraftFor(a).valueSeq(),c("AdsCampaignGroupDraftFragmentStore").getFragmentsInDraftFor(a).valueSeq()).filter(function(a){return!a.isLoading()&&a.hasValue()}).toArray().map(function(a){a=a.getValueEnforcing();var b,d=[];i!=null&&(b=i.get(a.objectType).combinedErrorsSelector,d=b(a.objectID));return{id:a.objectID,fragmentID:a.fragmentID,errors:c("AdsErrorUtils").getAllErrorsAtLevel(d,c("AdsError").Level.WARN),idField:k[a.objectType]}});var b=c("AdsPEUploadStore").getSessionID();return c("flattenArray")(a.map(function(a){return a.errors.map(function(d){return n("validation_error_on_review",(d={fragment_id:a.fragmentID,action_session_id:b,error_type:(d.isServerError?"s-":"c-")+d.key,error_sub_code:d.key,error_message:d.message,blame_field_specs:c("normalizeErrorPath")(d.path),event_source:c("AdsPEUploadStore").getPreviewSource(),has_client_error:!0},d[a.idField]=a.id,d),c("PowerEditorEventCategory").UPLOAD)})}))},getLogsForDraftPublishCompleted:function(a,b,e){var f=a.response||{},g=[];if(d("AdsPEDraftPublishLoggerHelper").hasPublishError(f)){f=d("AdsPEDraftPublishLoggerHelper").getDraftPublishErrorData(a);g.push(n("publish_failed",babelHelpers["extends"]({},f,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD))}f=d("AdsPEDraftPublishLoggerHelper").getDraftFragmentPublishErrorsData(a);return g.concat(f.map(function(a){return n("publish_item_failed",babelHelpers["extends"]({},a,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD)}))},measureUploadStart:function(){m._uploadStartTime=Date.now()},getTotalUploadTime:function(){return m._uploadStartTime&&m._uploadStartTime>0?Date.now()-m._uploadStartTime:null}};function n(a,b,c){return{category:c,data:b,eventName:a}}function o(a,b){var d=null,e=null;switch(b){case"campaign":d="campaign_group_error_on_start_publish";break;case"ad_set":d="campaign_error_on_start_publish";break;case"ad":d="adgroup_error_on_start_publish";break}i!=null&&(e=i.get(b).combinedErrorsSelector);if(!d||!e)return[];b=c("AdsErrorUtils").getAllErrorsAtLevel(e(a.id),c("AdsError").Level.WARN);return b.map(function(b){return n(d||"",{fragment_id:a.fragmentID,action_session_id:c("AdsPEUploadStore").getSessionID(),error_code:b.key,error_message:b.message,event_source:c("AdsPEUploadStore").getPreviewSource(),blame_field_specs:c("normalizeErrorPath")(b.path)},c("PowerEditorEventCategory").UPLOAD)})}function p(a,b,d,e,f){a=a?m.getTotalUploadTime():null;var g=c("sumOfArray")(b.valueSeq().toArray());a={current_action_time:a,current_action_ads_count:b.get("ad")||0,current_action_campaigns_count:b.get("ad_set")||0,current_action_campaign_groups_count:b.get("campaign")||0,current_action_items_count:g,client_error_messages:d,event_source:c("AdsPEUploadStore").getPreviewSource(),has_client_error:d.length>0,action_session_id:c("AdsPEUploadStore").getSessionID(),vital:!0,publish_ids:[f||""]};e&&(a.ad_account_id=e);return a}e=m;g["default"]=e}),98);
-----
PowerEditorLoggingConstants",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";b={ADGROUP:"adgroup",CAMPAIGN_GROUP:"campaign_group",CAMPAIGN:"campaign",DRAFT:"draft"};var i=new Map([[b.ADGROUP,h._("ads")],[b.CAMPAIGN_GROUP,h._("campaigns")],[b.CAMPAIGN,h._("advertising sets")],[b.DRAFT,h._("drafts")]]);function a(a){return i.get(a)||a}c={UPLOAD:"upload"};d="get_object";e="get_object_by_negative_id";g.ITEM_TYPE=b;g.getItemTypeLabel=a;g.FLOW=c;g.GET_OBJECT_API_ENDPOINT=d;g.GET_OBJECT_BY_NEGATIVE_ID_API_ENDPOINT=e}),226);
-----
adsDeliveryContainerLoggingGetLoggingEventForFrequencyChangeForPublish",["AdsDeliveryContainerLoggingConstants","AdsInterfacesLogEvents"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case d("AdsDeliveryContainerLoggingConstants").DEFAULT_AUTOMATIC_OPTION_INDEX:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_PUBLISH_WITH_AUTOMATIC_OPTION;default:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_PUBLISH_WITH_CUSTOM_OPTION}}g["default"]=a}),98);
-----
AdsDeliveryContainerLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="bp_landing_page_views_default_notice";b=0;f.BP_LANDING_PAGE_VIEWS_DEFAULT_NOTICE=a;f.DEFAULT_AUTOMATIC_OPTION_INDEX=b}),66);
-----
SellerInsightsV2MetricInfoTooltip.react",["CommerceManagerContext","GeoBaseSpacingLayout.react","GeoPopover.react","GeoText.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricEstimateDisclaimer.react","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){var b=a.additionalMetrics,e=a.children,f=a.isEstimated,g=a.isReviewed,h=a.learnMoreContent,k=a.offsiteAttributionDisclaimer,l=a.offsiteIOSLimit,m=a.position,n=a.renderDelay,o=a.secondaryText,p=a.shouldBeReported,q=a.shouldHideEstimate;a.tab;var r=a.text;a=a.title;var s=[],t=j(c("CommerceManagerContext"));t=t.cmsID;var u=j(c("SellerInsightsV2Context")),v=u.channels,w=u.igChannelIDs,x=u.fbChannelIDs;u=u.pageIDs;var y=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection();v=v.length===2?d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM:v[0];r!=null&&s.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:r},"metric-text"));o!=null&&s.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:o},"metric-secondary-text"));r=g!==!0;if(q!==!0&&(r||f)){o=i.jsx(c("SellerInsightsV2MetricEstimateDisclaimer.react"),{isEstimated:f,showInDev:r,title:a},"disclaimer-"+a.toString());s.push(o)}h!=null&&s.push(h);p===!0&&s.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:d("SellerInsightsV2Fbts").ESTIMATED_AND_THIRD_PARTY},"metric-reported-text"));k!=null&&s.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:k},"attribution"));l!=null&&s.push(i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:l},"ios"));b!==null&&s.push(b);var z=d("SellerInsightsV2LoggingUtils").hoverScenario(c("qpl")._(7084665,"3938"),{AccountID:(g=t)!=null?g:"0",Channel:(q=v)!=null?q:d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM,FBChannelIDs:x,IGChannelIDs:w,PageIDs:u,Section:y,ToolTipName:(f=a==null?void 0:a.toString())!=null?f:""},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return i.jsx(c("GeoPopover.react"),{content:i.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",direction:"vertical",relation:"related",children:i.jsx("div",{onClick:function(a){return a.stopPropagation()},children:s})}),heading:a,isSticky:!1,position:m,renderDelay:n,onToggle:function(a){return a?z():z.reset()},children:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2MetricEstimateDisclaimer.react",["CommerceManagerContext","GeoText.react","SellerExperienceHelpCenterLinks","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","URI","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useContext;function a(a){var b=a.isEstimated,e=a.showInDev,f=a.title;a=k(c("CommerceManagerContext"));var g=a.cmsID;a=k(c("SellerInsightsV2Context"));var i=a.channels,l=a.igChannelIDs,m=a.fbChannelIDs,n=a.pageIDs,o=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection(),p=i.length>1?d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM:i[0];a=function(){var a;d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7084033,"3990"),{AccountID:(a=g)!=null?a:"0",Channel:p,Destination:new(h||(h=c("URI")))(d("SellerExperienceHelpCenterLinks").METRIC_DEVELOPMENT).toString(),FBChannelIDs:m,IGChannelIDs:l,PageIDs:n,Section:o,ToolTipName:f.toString()})};i=e?b?d("SellerInsightsV2Fbts").IN_DEVELOPMENT_AND_ESTIMATED(a):d("SellerInsightsV2Fbts").IN_DEVELOPMENT(a):d("SellerInsightsV2Fbts").IS_ESTIMATED(a);return j.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:i},"in-development-text-"+f.toString())}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MNCommerceLoggingConstants",[],(function(a,b,c,d,e,f){a={CHECKOUT_ORDER_CONFIG:"checkout_order_config",SHIPMENT:"shipment",RECEIPT:"receipt",UNLINK:"unlink",UNLINK_ERROR:"unlink_error",MANAGE:"manage"};f.DIALOG_SURFACE=a}),66);
-----
MNCommerceReceiptMercuryShareAttachment.react",["BanzaiLogger","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommerceOrderDetailsDialogContainer.react","MNCommerceReceiptMercuryAttachment.react","mergeDeep","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
StoriesTrayTile.react",["fbt","CometImage.react","CometRelay","GraphQLGender","StoriesEnums","StoriesLoggingConstants","StoriesTrayTileAvatar.react","StoriesTrayTileView.react","StoriesTrayTile_LWRAnimations.graphql","StoriesTrayTile_bucket.graphql","StoriesTrayUtils","isStringNullOrEmpty","react","useStoriesTrayProfileImpressionLogging","useStoriesTrayTilePressable"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){var e,f,g,k,m=a.animations,n=a.bucketCount,o=a.bucketLength,p=a.bucketNode,q=a.gender;q=q===void 0?"UNKNOWN":q;var r=a.hasSelfBucket,s=a.isOnBizKit;s=s===void 0?!1:s;var t=a.traySessionID,u=a.source;u=u===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.UNKNOWN:u;var v=a.storiesTrayType;v=v===void 0?"TOP_OF_FEED_TRAY":v;var w=a.index,x=a.trayBucketIDs,y=a.hasReactionIcon;y=y===void 0?!1:y;var z=a.onPressIn;a=babelHelpers.objectWithoutPropertiesLoose(a,["animations","bucketCount","bucketLength","bucketNode","gender","hasSelfBucket","isOnBizKit","traySessionID","source","storiesTrayType","index","trayBucketIDs","hasReactionIcon","onPressIn"]);p=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTrayTile_bucket.graphql"),p);var A=p==null?void 0:p.id;w=c("useStoriesTrayProfileImpressionLogging")(p,u,t,w);var B=c("useStoriesTrayTilePressable")(p==null?void 0:p.first_story_to_show,u),C=B.onPress,D=B.onPressIn;B=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesTrayTile_LWRAnimations.graphql"),m);if(p==null||A==null)return null;m=p.story_bucket_owner;var E=p.first_story_to_show,F=p.thumbnail_story_to_show,G=p.ranking_tracking_string;e=(e=p.should_show_close_friend_badge)!=null?e:!1;var H=F==null?void 0:F.story_card_info;f=(f=E==null?void 0:(f=E.story_card_info)==null?void 0:f.can_viewer_reply)!=null?f:!1;g=(H==null?void 0:(g=H.story_thumbnail)==null?void 0:g.uri)||(m==null?void 0:(g=m.coverImage)==null?void 0:g.uri);H=H==null?void 0:(H=H.background_color_info)==null?void 0:(H=H.color_info)==null?void 0:H[0];H=H==null?void 0:H.dominant_color;k=m==null?void 0:(k=m.profile_picture)==null?void 0:k.uri;var I=(m==null?void 0:m.name)||h._("__JHASH__fHKXLeuru3K__JHASH__"),J=p.is_bucket_seen_by_viewer===!1;p=(p=p==null?void 0:p.is_bucket_live)!=null?p:!1;m=(m=m==null?void 0:m.availability)!=null?m:null;m=m==="ACTIVE";k=k!=null?l.jsx(c("CometImage.react"),{alt:I,height:40,src:k,width:40}):l.jsx("div",{className:"x1vqgdyp x100vrsf"});p=l.jsx(c("StoriesTrayTileAvatar.react"),{hasNew:J,isLiveStreaming:p,isOnline:m,isOpaqueBackground:!1,shouldShowCloseFriendsBadge:e,children:k});m=s?null:d("StoriesTrayUtils").getBucketURL({bucketCount:n,bucketID:A,cardID:E==null?void 0:E.id,source:u});e=new(c("GraphQLGender"))(q).toIntlVariationsEnum();k=h._("__JHASH__tkqpcCYUVoy__JHASH__",[h._name("Story owner"s name (possesive)",I,e)]);s=c("isStringNullOrEmpty")(H)?null:"#"+H;H=F==null?void 0:(n=F.attachments)==null?void 0:(A=n.find(function(a){return((a=a.media)==null?void 0:a.cix_screen)!=null}))==null?void 0:(q=A.media)==null?void 0:(e=q.cix_screen)==null?void 0:e.view_model;return l.jsx("div",{ref:w,children:l.jsx(c("StoriesTrayTileView.react"),babelHelpers["extends"]({animations:B,avatar:p,backgroundColor:s,bucketUrl:m,canViewerReply:f,coverImage:g,hasNew:J,hasReactionIcon:y,label:k,onPress:C,onPressIn:function(a){D&&D(a),z&&z()},passthroughProps:{bucketLength:o,bucketType:d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OTHER,hasSelfBucket:r,source:u,storiesTrayType:v,trackingString:G,trayBucketIDs:x,traySessionID:t},storyId:E==null?void 0:E.id},a,{text:I,warningScreenNode:H}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StoriesTrayTileSelf.react",["fbt","CometImage.react","CometRelay","StoriesEnums","StoriesGating","StoriesLoggingConstants","StoriesTrayTileAvatar.react","StoriesTrayTileSelf_bucket.graphql","StoriesTrayTileView.react","StoriesTrayUtils","react","requireDeferred","useOnBeforeUnload","useStoriesTrayProfileImpressionLogging","useStoriesTrayTilePressable"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useState,n=c("requireDeferred")("ODS").__setRef("StoriesTrayTileSelf.react");function a(a){var e,f,g,j=a.bucketCount,o=a.bucketNode,p=a.bucketLength,q=a.hasSelfBucket,r=a.traySessionID,s=a.source;s=s===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.TRAY:s;var t=a.storiesTrayType;t=t===void 0?"TOP_OF_FEED_TRAY":t;var u=a.index,v=a.isUploading,w=a.optimisticStoryURI,x=a.onPressIn;a=babelHelpers.objectWithoutPropertiesLoose(a,["bucketCount","bucketNode","bucketLength","hasSelfBucket","traySessionID","source","storiesTrayType","index","isUploading","optimisticStoryURI","onPressIn"]);o=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTrayTileSelf_bucket.graphql"),o);var y=o==null?void 0:o.id;u=c("useStoriesTrayProfileImpressionLogging")(o,s,r,u);var z=m(w),A=z[0];z=z[1];var B=c("useStoriesTrayTilePressable")(o==null?void 0:o.first_story_to_show,s),C=B.onPress,D=B.onPressIn,E=l(function(){n.onReady(function(a){a.bumpEntityKey(4329,"fb_stories_web","stories_tray.self_story_tile",1)})},[]);c("useOnBeforeUnload")(function(a){if(v===!0&&a==null)return{warnMessage:h._("__JHASH__uxWAqVRcCKO__JHASH__")}});if(o==null||y==null)return null;B=o.story_bucket_owner;e=(e=o.should_show_close_friend_badge)!=null?e:!1;var F=o.first_story_to_show,G=o.thumbnail_story_to_show,H=o.ranking_tracking_string;f=(G==null?void 0:(f=G.story_card_info)==null?void 0:(f=f.story_thumbnail)==null?void 0:f.uri)||(B==null?void 0:(f=B.coverImage)==null?void 0:f.uri);var I=o.is_bucket_seen_by_viewer===!1;o=(o=o==null?void 0:o.is_bucket_live)!=null?o:!1;f={coverImage:f,hasNew:I};g=(G==null?void 0:(g=G.story_card_info)==null?void 0:g.story_thumbnail)!=null;var J=h._("__JHASH__p_clzZs1eeC__JHASH__"),K=h._("__JHASH__ZsZbryTgDNj__JHASH__");j=d("StoriesTrayUtils").getBucketURL({bucketCount:j,bucketID:y,cardID:F==null?void 0:F.id,source:s});F=B==null?void 0:(y=B.profile_picture)==null?void 0:y.uri;y=(B==null?void 0:B.name)||h._("__JHASH__fHKXLeuru3K__JHASH__");B=F!=null?k.jsx(c("CometImage.react"),{alt:y,height:40,src:F,width:40}):k.jsx("div",{className:"x1vqgdyp x100vrsf"});F=G==null?void 0:(y=G.attachments)==null?void 0:(F=y.find(function(a){return((a=a.media)==null?void 0:a.cix_screen)!=null}))==null?void 0:(G=F.media)==null?void 0:(y=G.cix_screen)==null?void 0:y.view_model;G=k.jsx(c("StoriesTrayTileAvatar.react"),{hasNew:I,isLiveStreaming:o,isOpaqueBackground:!1,isUploading:v,shouldShowCloseFriendsBadge:e,children:B});if(v===!0&&d("StoriesGating").shouldEnableOptimisticImprovements()){w!=null&&(A===null||A!==w)&&z(w);y={coverImage:A};return k.jsx("div",{"data-testid":void 0,ref:u,children:k.jsx(c("StoriesTrayTileView.react"),babelHelpers["extends"]({avatar:G,bucketUrl:j,isUploading:v,label:K,onPress:C,onPressIn:function(a){D&&D(a),x&&x(),E()},passthroughProps:{source:s,storiesTrayType:t,trackingString:H,traySessionID:r},text:J,warningScreenNode:F},y,a))})}else if(g)return k.jsx("div",{"data-testid":void 0,ref:u,children:k.jsx(c("StoriesTrayTileView.react"),babelHelpers["extends"]({avatar:G,bucketUrl:j,label:K,onPressIn:function(a){D&&D(a),x&&x(),E()},passthroughProps:{bucketLength:p,bucketType:d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OWNED_SELF,hasSelfBucket:q,source:s,storiesTrayType:t,trackingString:H,traySessionID:r},text:J,warningScreenNode:F},f,a))});else if(v===!0)return k.jsx("div",{ref:u,children:k.jsx(c("StoriesTrayTileView.react"),{avatar:G,isUploading:!0,label:K,passthroughProps:{storiesTrayType:t},text:J,warningScreenNode:F})});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useStoriesTrayTilePressable",["CometRelay","QPLUserFlow","StoriesLoggingConstants","qpl","useStoriesTrayTilePrefetchImageURI","useStoriesTrayTilePressable_story.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e){e===void 0&&c("StoriesLoggingConstants").ACTION_SOURCE.TRAY;e=d("CometRelay").useFragment(h!==void 0?h:h=b("useStoriesTrayTilePressable_story.graphql"),a);var f=c("useStoriesTrayTilePrefetchImageURI")(e),g=c("qpl")._(741087294,"2028");return{onPress:function(){c("QPLUserFlow").start(g)},onPressIn:function(a){f&&f()}}}g["default"]=a}),98);
-----
StoriesTrayRectangularBuckets.react",["fbt","CometRelay","CometScreenReaderHeading.react","CometVisualCompletionAttributes","StoriesConstants","StoriesEnums","StoriesGating","StoriesLoggingConstants","StoriesTrayCreateCard.react","StoriesTrayCreateTile.react","StoriesTrayHScrollContainer.react","StoriesTrayRectangularBuckets_buckets.graphql","StoriesTrayRectangularBuckets_createTileUris.graphql","StoriesTrayTile.react","StoriesTrayTileSelf.react","cr:5646","react","requireDeferred","stylex","usePrevious","useStoriesBucketsIndexer","useStoriesBucketsLogger","useStoriesIsUploading","useStoriesTrayTilePrefetchProfileURI"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useCallback,o=e.useEffect,p=e.useMemo,q=e.useState,r=e.useTransition,s=c("requireDeferred")("ODS").__setRef("StoriesTrayRectangularBuckets.react"),t={hscrollTray:{paddingBottom:"x1g2khh7",$$css:!0},tray:{position:"x1n2onr6",$$css:!0},wrapper:{marginTop:"x4arcmf",paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",$$css:!0}},u=d("StoriesGating").shouldEnableStoriesTrayPaddingAdjustment();function v(a,b){return b==null?[]:b.reduce(function(b,c){var d=c.id;if(d==null)return b;var e=a.find(function(a){return a.id===d});if(e==null)return b.concat(d);c=(c=(c=c.unified_stories)==null?void 0:(c=c.nodes)==null?void 0:c.map(function(a){return a.id}))!=null?c:[];e=(e=(e=e.unified_stories)==null?void 0:(e=e.nodes)==null?void 0:e.map(function(a){return a.id}))!=null?e:[];if(c.length!==e.length)return b.concat(d);for(var f=0;f
-----
LWICometCTAWhatsAppSMBEnforcingErrorWrapper.react",["AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsProductFlows","CometRelay","LWICometCTAWhatsAppSMBEnforcingErrorWrapper_page.graphql","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometNoticeCardWrapper.react","LWICometWhatsAppAccountExperiments","castToEnum","getJSEnumSafe","react","useLWICometWhatsAppSMBGetStarted","useLWILoggerContext","useLWINoticesContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useCallback;function a(a){var e=a.enableListener,f=a.paddingHorizontal;f=f===void 0?0:f;var g=a.queryRef,i=a.goal,l=a.legacyAccountID;a=a.objective;var m=c("useLWINoticesContext")();m=m.notices;g=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometCTAWhatsAppSMBEnforcingErrorWrapper_page.graphql"),g);var n=c("useLWILoggerContext")(),o=n.flow,p=n.pageID;n=n.targetID;l={ad_account_id:l,ads_lwi_goal:c("castToEnum")(i,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),a),page_id:p,post_id:n,product_flow:c("castToEnum")(o,c("ClickToWhatsAppAdsProductFlows"),null),source_app_id:d("LWICometLoggingConstants").APP_ID};i=g==null?void 0:g.connected_whatsapp_number;a=g==null?void 0:g.connected_whatsapp_number_type;p=g==null?void 0:g.whatsapp_initial_country_code;n=c("useLWINoticesContext")();var q=n.removeGetResponseNotice;o=k(function(){d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.forEach(function(a){return q(d("LWICometWhatsAppAccountExperiments").isLWIConsumerEnforcingLaunched()?"MESSAGING_APPS":"CALL_TO_ACTION",a)})},[q]);c("useLWICometWhatsAppSMBGetStarted")({countryCode:p,ctwaLoggerContextData:l,enableListener:e,onUpsellSuccess:o,whatsAppDisplayNumber:i,whatsAppNumber:i,whatsAppNumberType:a});return!d("LWICometWhatsAppAccountExperiments").getIsWABizEnforcingExperimentLWI_2023_V2(m)?null:j.jsx(c("LWICometNoticeCardWrapper.react"),{paddingHorizontal:f,specElement:d("LWICometWhatsAppAccountExperiments").isLWIConsumerEnforcingLaunched()?"MESSAGING_APPS":"CALL_TO_ACTION"})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,legacyAccountID:a.adAccountData.legacyAccountID,objective:a.objective}});g["default"]=e}),98);
-----
MDCAppStoreImpressionLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a=.75;b=100;f.VISIBILITY_THRESHOLD=a;f.SECTION_IDX_MULTIPLIER=b}),66);
-----
LWICometCTAWhatsAppNumberEditorWrapper.react",["AdproObjectiveType","AdsLWIGoal","CometTransientDialogProvider.react","LWICometCTAWhatsAppNumberEditor.react","LWICometCTWALoggerContext","LWICometLoggingConstants","castToEnum","getJSEnumSafe","react","useLWILoggerContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function a(a){var b=a.showWhatsAppBizUpsell,e=a.adAccountID,f=a.disabled,g=a.goal,h=a.objective,k=a.onValueChange,l=a.productFlow,m=l===void 0?"boost_post_create_flow":l;l=a.value;a=c("useLWILoggerContext")();var n=a.pageID,o=a.targetID;a=j(function(){return{ad_account_id:e,ads_lwi_goal:c("castToEnum")(g,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),h),page_id:n,post_id:o,product_flow:m,source_app_id:d("LWICometLoggingConstants").APP_ID}},[e,g,h,n,m,o]);return i.jsx(c("LWICometCTWALoggerContext").Provider,{value:a,children:i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("LWICometCTAWhatsAppNumberEditor.react"),{disabled:f,objective:h,onValueChange:k,showWhatsAppBizUpsell:b,value:l})})})}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,objective:a.objective}});g["default"]=b}),98);
-----
FBReelsLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_TYPE:{PAUSE_REEL:"pause_reel"},CLOSE_REELS_GESTURE:{BACK_BUTTON_EXIT:"back_button_exit",CLOSE_BUTTON_EXIT:"close_button_exit",KEYBOARD_EXIT:"keyboard_exit",UNKNOWN:"unknown"},INSTAGRAM_DEEPLINK_DESTINATION:{VIEWER:"viewer"},OPEN_SOURCE:{BOOKMARK:"bookmark",IFU:"ifu",IFU_END_CARD:"ifu_end_card",IFU_SEE_MORE:"ifu_see_more",NOTIFICATION:"notification",PERMALINK:"permalink",TOFU:"reels_tofu",UNKNOWN:"unknown"},OPEN_SOURCE_FOR_FALCO:{BOOKMARK:"bookmark",COMET_IN_FEED_UNIT:"comet_in_feed_unit",COMET_URL:"comet_url"},PLAYER_ORIGIN:{NEWS_FEED:"newsfeed"},SOURCE_SURFACE:{VIEWER:"fb_shorts_viewer"}};b=a;f["default"]=b}),66);
-----
FBReelsFeedbackInstagramComments.react",["fbt","ix","CometCard.react","CometLink.react","CometRelay","FBReelsFeedbackInstagramComments_comments.graphql","FBReelsLoggingConstants","FDSText.react","FDSUnit.react","FDSUnitHeader.react","TetraButton.react","fbicon","react","useReelsLogger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||d("react"),m="https://www.facebook.com/help/386221115984344/?helpref=uf_share";function a(a){a=a.comments;var e=d("CometRelay").useFragment(j!==void 0?j:j=b("FBReelsFeedbackInstagramComments_comments.graphql"),a);a=c("useReelsLogger")();var f=a.feedbackInstagramDeeplinkClickedLog;a=e==null?void 0:(a=e.story)==null?void 0:a.url;if(a==null)return null;var g=function(){var a;f({destination:c("FBReelsLoggingConstants").INSTAGRAM_DEEPLINK_DESTINATION.VIEWER,entry:"Comet",media_id:(a=e==null?void 0:(a=e.story)==null?void 0:(a=a.feedback)==null?void 0:a.share_fbid)!=null?a:"",tracking:(a=e==null?void 0:(a=e.story)==null?void 0:a.tracking)!=null?a:""})};return l.jsx("div",{className:"xw7yly9 xktsk01 x1yztbdb x1d52u69",children:l.jsx(c("CometCard.react"),{background:"light-wash",children:l.jsxs("div",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13",children:[l.jsx(c("FDSUnit.react"),{header:l.jsx(c("FDSUnitHeader.react"),{headline:h._("__JHASH__-R0AQ0bhPxV__JHASH__"),level:3,paddingHorizontal:0,paddingTop:0}),spacing:12,type:"transparent",children:l.jsxs(c("FDSText.react"),{type:"body3",children:[h._("__JHASH__vIAnIWaT2rJ__JHASH__")," ",l.jsx(c("CometLink.react"),{href:m,target:"_blank",children:h._("__JHASH__ml5IFnYn3Yp__JHASH__")})]})}),l.jsx(c("TetraButton.react"),{icon:d("fbicon")._(i("547774"),16),label:h._("__JHASH__LTRMjnsj-9S__JHASH__"),linkProps:{target:"_blank",url:a},onPress:g})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ShareAudienceDialogContainer.react",["AdsAMAudienceStore","AdsAMViewCloseShareAudienceDialogAction","AdsAudienceSharingDataManager","AdsAudienceSharingStore","AdsAudienceSharingViewActions","AdsCustomAudienceType","AdsFluxContainer","AdsInterfacesLogger","AdsManagerUserPermissions","AudienceManagerCreateBusinessAccountUpsellDialog.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLookalikeDialogGKSelectors","AudienceSharingAgreementInitiatorModal.react","AudienceSharingNonBusinessAdminModal.react","BusinessManagerUpsellContainer.brands","CustomAudienceUtils","ShareAudienceConstants","ShareAudienceDialog.react","ShareAudienceRecipientTypeSelectionDialog.react","gkx","immutable","react","setImmediate"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));a=h.Component;b=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=function(){e.$12()};e.$7=function(){var a=e.state.selectedSharingAdAccounts.filter(function(a){return a.get("accountType")===d("ShareAudienceConstants").SharingRecipientTypes.OUTSIDE_BUSINESS&&a.get("hasSharingAgreement")===!1});if(e.state.shouldCheckAgreement&&a.count()>0){c("AdsAudienceSharingViewActions").showSharingAgreement();return}e.$13()};e.$6=function(){var a=e.state.selectedSharingAdAccounts.reduce(function(a,b){a[b.get("id")]=b.get("permission");return a},{}),b=[];e.state.selectedBusinessRelationship.forEach(function(a,c){a&&(b=b.concat(d("ShareAudienceConstants").AgreementRelationshipApiEnum[c]))});e.props.onUpdateAudienceCapabilities(e.props.selectedAudienceIDs,a,b,e.state.locationSpec);d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARED_AUDIENCE);c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_SHARED_AUDIENCE},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};e.$10=function(a){c("AdsAudienceSharingViewActions").removeSharedAdAccount(a)};e.$11=function(a){c("AdsAudienceSharingViewActions").addSharedAdAccount(a)};e.$9=function(a,b){c("AdsAudienceSharingViewActions").changeSharedAdAccountPermission(a,b)};e.$2=function(a){c("AdsAudienceSharingViewActions").setSharingRecipientType(a)};e.$5=function(a,b){c("AdsAudienceSharingViewActions").setBusinessRelationship(a,b)};e.$8=function(a){e.setState({locationSpec:a})};e.state={isBusinessAdmin:!1,canOwnerAdAccountUseLookalikeContainer:!1,locationSpec:{},lookalikeSelectionMode:"NONE",recipientAdAccounts:c("immutable").List([]),recipientAdAccountsLoaded:!1,selectedBusinessRelationship:c("immutable").Map(),selectedSharingAdAccounts:c("immutable").List([]),shouldCheckAgreement:!1,showSharingAgreement:!1,responseSuccess:null};return e}b.getStores=function(){return[c("AdsAMAudienceStore"),c("AdsAudienceSharingStore")].concat(d("AudienceManagerLookalikeDialogGKSelectors").lookalikeDialogGKSelectors.getStores())};b.calculateState=function(a,b){a=c("AdsAMAudienceStore").getAccount();var e=b.selectedAudienceIDs.length>0&&c("AdsAMAudienceStore").getState(b.selectedAudienceIDs[0]).subtype===c("AdsCustomAudienceType").SUBTYPES.REGULAR,f="NONE";b=b.selectedAudienceIDs.filter(function(a){a=c("AdsAMAudienceStore").getState(a).subtype;return a===c("AdsCustomAudienceType").SUBTYPES.LOOKALIKE||a===c("AdsCustomAudienceType").SUBTYPES.REGULATED_CATEGORIES_AUDIENCE});b.length>0&&(f="LAL_ONLY");return{adAccount:a,canOwnerAdAccountUseLookalikeContainer:d("AudienceManagerLookalikeDialogGKSelectors").lookalikeDialogGKSelectors().shouldUseLookalikeContainer,disabledOutsideSharing:d("CustomAudienceUtils").isUntrustedAdAccountForSharing(a),isBusinessAdmin:c("AdsManagerUserPermissions").is_business_admin,locationSpec:{},lookalikeSelectionMode:f,recipientAdAccounts:c("AdsAudienceSharingStore").getRecipientAdAccounts(),recipientAdAccountsLoaded:c("AdsAudienceSharingStore").getRecipientAdAccountsLoaded(),recipientType:c("AdsAudienceSharingStore").getRecipientType(),shouldCheckAgreement:e,error:c("AdsAudienceSharingStore").getError(),selectedBusinessRelationship:c("AdsAudienceSharingStore").getBusinessRelationship(),selectedSharingAdAccounts:c("AdsAudienceSharingStore").getSelectedSharingAdAccounts(),showSharingAgreement:c("AdsAudienceSharingStore").getShowSharingAgreement(),responseSuccess:c("AdsAudienceSharingStore").getResponseSuccess()}};var e=b.prototype;e.UNSAFE_componentWillMount=function(){d("AdsAudienceSharingDataManager").fetchAdAccountBusiness(this.props.ownerAccountID)};e.render=function(){if(this.state.error===d("AudienceManagerErrorTypes").Errors.ACCOUNT_BUSINESS_GET){var a=this.state.adAccount,b=!1;if(c("gkx")("21226")){a.userpermissions&&a.userpermissions.data&&(b=a.userpermissions.data.some(function(a){return a.role==="ADMIN"}));return i.jsx(c("BusinessManagerUpsellContainer.brands"),{adAccountName:a.name,isAdAccountAdmin:b,isSharingAudience:!0,ownerAccountID:this.props.ownerAccountID,onCancel:this.$1})}else return i.jsx(c("AudienceManagerCreateBusinessAccountUpsellDialog.react"),{adAccountName:a.name,ownerAccountID:this.props.ownerAccountID,onCancel:this.$1})}else if(this.state.error)return i.jsx(c("AudienceManagerErrorView.react"),{message:this.state.error.message,shown:!0});if(this.state.shouldCheckAgreement&&this.state.recipientType==null){var e;b=this.state.adAccount;a=d("CustomAudienceUtils").isUntrustedAdAccountForSharing(b);return i.jsx(c("ShareAudienceRecipientTypeSelectionDialog.react"),{businessID:b==null?void 0:(e=b.business)==null?void 0:e.id,businessName:(b==null?void 0:(e=b.business)==null?void 0:e.name)||"",isBusinessAdmin:this.state.isBusinessAdmin,isBusinessVerificationEligible:(b==null?void 0:b.is_business_verification_eligible)||!1,isTierRestricted:(b==null?void 0:b.is_tier_restricted)||!1,unableToShareOutside:a,onCancel:this.$1,onSelectRecipientType:this.$2})}return i.jsxs("div",{children:[this.$3(),this.$4()]})};e.$4=function(){var a=this.state.shouldCheckAgreement&&this.state.showSharingAgreement;if(!a)return null;if(!this.state.isBusinessAdmin&&this.state.recipientType===d("ShareAudienceConstants").SharingRecipientTypes.OUTSIDE_BUSINESS)return i.jsx(c("AudienceSharingNonBusinessAdminModal.react"),{onHide:this.$1});else{a=this.state.selectedSharingAdAccounts.first()&&this.state.selectedSharingAdAccounts.first().get("businessName");return i.jsx(c("AudienceSharingAgreementInitiatorModal.react"),{hasSelectedRelationshipType:this.state.selectedBusinessRelationship.filter(function(a){return a}).size>0,isShown:!0,recipientName:a,responseSuccess:this.state.responseSuccess,onChangeBusinessRelationshipValue:this.$5,onComplete:this.$6,onHide:this.$1})}};e.$3=function(){var a;return i.jsx(c("ShareAudienceDialog.react"),{businessID:(a=this.state.adAccount.business)==null?void 0:a.id,canOwnerAdAccountUseLookalikeContainer:this.state.canOwnerAdAccountUseLookalikeContainer,disableOutsideSharing:this.state.disabledOutsideSharing,isSubscriberList:c("AdsAMAudienceStore").getState(this.props.selectedAudienceIDs[0]).subtype===c("AdsCustomAudienceType").SUBTYPES.SUBSCRIBER_LIST,locationSpec:this.state.locationSpec,lookalikeSelectionMode:this.state.lookalikeSelectionMode,ownerAccountID:this.props.ownerAccountID,recipientAdAccounts:this.state.recipientAdAccounts,recipientAdAccountsLoaded:this.state.recipientAdAccountsLoaded,recipientType:this.state.recipientType,selectedAudienceIDs:c("immutable").List(this.props.selectedAudienceIDs),selectedSharingAdAccounts:this.state.selectedSharingAdAccounts,shouldCheckAgreement:this.state.shouldCheckAgreement,onCancel:this.$1,onConfirm:this.$7,onLocationSpecSelected:this.$8,onPermissionChange:this.$9,onRemoveAdAccount:this.$10,onSelectAdAccount:this.$11})};e.$13=function(){this.$6(),this.$12()};e.$12=function(){c("AdsAMViewCloseShareAudienceDialogAction").dispatch({},{line:"357",module:"ShareAudienceDialogContainer.react.js",moduleID:f.id}),c("setImmediate")(function(){return c("AdsAudienceSharingViewActions").clearSharedAdAccounts()})};return b}(a);e=c("AdsFluxContainer").create(b,{withProps:!0,name:f.id});g["default"]=e}),98);
-----
SellerInsightsV2TableUtils",["CommerceManagerContext","SellerInsightsV2Context","SellerInsightsV2HeroInteractionRoot","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TableContext","emptyFunction","qpl","react","useGeoTableRowActivation","useGeoTableSortableState"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=i.useCallback,k=i.useContext,l=i.useMemo;function a(a,b,c){a=b[a];if(a.type==="pixel")return a.px;var d=0,e=0;for(var b=b,f=Array.isArray(b),g=0,b=f?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=b.length)break;h=b[g++]}else{g=b.next();if(g.done)break;h=g.value}h=h;d+=h.type==="pixel"?h.px:0;e+=h.type==="proportional"?h.value:0}h=c-d;g=a.value;c=(b=(f=a.options)==null?void 0:f.minWidth)!=null?b:g;d=g*h/e;return Math.max(d,c)}function b(a){var b=a.currentDirection,e=a.currentKey,f=a.onAfterSort,g=a.onDirectionChange,h=a.onKeyChange,i=a.ascendingDirection,l=a.descendingDirection;a=k(c("CommerceManagerContext"));var m=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=k(d("SellerInsightsV2TableContext").SellerInsightsV2TableContext);var n=a.loggingAnnotations;a=k(c("SellerInsightsV2Context"));var o=a.igChannelIDs,p=a.fbChannelIDs,q=a.pageIDs;a=c("useGeoTableSortableState")({direction:b===i?"ascending":"descending",sortKey:e});var r=a[0],s=a[1];a=j(function(a){s(a);if(a==null)return;var j=a.sortKey;a=a.direction;j!==e&&h(j);a!==b&&g(a==="ascending"?i:l);a=babelHelpers["extends"]({},n,{AccountID:m,FBChannelIDs:p,IGChannelIDs:o,PageIDs:q,SortDirection:a==="ascending"?d("SellerInsightsV2LoggingConstants").TABLE_SORTING_ASCENDING_DIRECTION:d("SellerInsightsV2LoggingConstants").TABLE_SORTING_DESCENDING_DIRECTION,SortMetric:String(j)});d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7081993,"554"),a);c("SellerInsightsV2HeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7084330,"1265"),"seller_insights_table_sort",a);f==null?void 0:f()},[m,i,b,e,l,p,o,n,f,g,h,q,s]);return{setSort:a,sort:r}}function e(a){var b=l(function(){if(a==null)return{activeItemIDs:new Set(),getIDForItem:c("emptyFunction").thatReturns(""),onActivate:c("emptyFunction")};var b=a.activeItemID,d=function(c){return String(a.getItemID(c))===String(b)};return{activeItemIDs:new Set(b!=null?[b]:[]),getIDForItem:function(b){b=b.item;return a.getItemID(b)},onActivate:function(b){b=b.item;return d(b)?a.onDeactivate():a.onActivate(b)},skip:function(b){b=b.item;return(a.skip==null?void 0:a.skip(b))===!0}}},[a]);b=c("useGeoTableRowActivation")(b);return a!=null?b:void 0}function m(a){return a.toString().includes(" ")}function f(a){return{label:a,nowrap:!m(a),overflowWrap:"normal"}}function n(a,b){return b.map(function(b){return babelHelpers["extends"]({},b,{key:a(b.key)})})}g.calculateColumnWidth=a;g.useSortableState=b;g.useRowActivation=e;g.getTableHeaderProperties=f;g.castColumnKeysToString=n}),98);
-----
SellerInsightsV2Table.react",["CommerceManagerContext","GeoTable.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TableContext","SellerInsightsV2TableUtils","createGeoTableDataSource","qpl","react","stylex","useGeoTableColumnResize.experimental"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useMemo,m={scrollableContainer:{height:"x5yr21d",width:"xh8yej3",$$css:!0},scrollableTable:{height:"x5yr21d",overflowX:"xw2csxc",overflowY:"x1odjw0f",width:"xh8yej3",$$css:!0}};function a(a){var b=a.columns,e=a.data,f=a["data-testid"];f=a.label;var g=a.loggingAnnotations,i=a.pagination,n=a.rowActivation,o=a.scrollable;o=o===void 0?!0:o;var p=a.variant;a=a.xstyle;var q=k(c("SellerInsightsV2Context")),r=q.igChannelIDs,s=q.fbChannelIDs;q=q.pageIDs;var t=k(c("CommerceManagerContext"));t=t.cmsID;var u=k(c("SellerInsightsV2FeatureContext"));u=u.isTableColumnsResizingEnabled;t=babelHelpers["extends"]({},g,{AccountID:(t=t)!=null?t:"0",FBChannelIDs:s,IGChannelIDs:r,PageIDs:q});s=d("SellerInsightsV2LoggingUtils").hoverScenario(c("qpl")._(7086630,"8553"),t,d("SellerInsightsV2LoggingConstants").DELAY_FOR_TABLE_HOVER_IN_MS);r=d("SellerInsightsV2TableUtils").useRowActivation(n);q=c("useGeoTableColumnResize.experimental")({resizableColumnKeys:l(function(){return b.map(function(a){return a.key})},[b])});n=j.jsx(d("SellerInsightsV2TableContext").SellerInsightsV2TableContext.Provider,{value:{loggingAnnotations:g},children:j.jsx("div",{className:(h||(h=c("stylex")))(o&&m.scrollableContainer,a),onMouseEnter:s,onMouseLeave:s.reset,children:j.jsx(c("GeoTable.react"),{columns:b,"data-testid":void 0,dataSource:l(function(){return c("createGeoTableDataSource")(e,{getStableUniqueID:function(){return null}})},[e]),label:(t=f)!=null?t:d("SellerInsightsV2Fbts").INSIGHTS_TABLE_LABEL,pagination:i,plugins:{activation:r,columnResize:u?q:void 0},variant:p,xstyle:o&&m.scrollableTable})})});return n}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsTableUtils",["ix","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseInlinePressable.react","GeoBaseSpacingLayout.react","GeoBaseTableCell.react","GeoBaseText.react","GeoFlexbox.react","GeoGlimmer.react","GeoIcon.react","GeoMediaItem.react","GeoTableContentCell.react","GeoTableContentGlimmer.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","GeoTooltip.react","Image.react","SellerInsightsInternationalizationUtils","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricDefinitions","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2MetricWithPopTooltip.react","SellerInsightsV2NumberUtils","SellerInsightsV2PerfUtils","SellerInsightsV2Placeholder.react","SellerInsightsV2ProductMetricsUtils","SellerInsightsV2ProductsTableQPLLogger","SellerInsightsV2ProductsTableUtilsProductGroupCollectionValuesQuery.graphql","SellerInsightsV2ProductsTableUtilsProductItemCollectionValuesQuery.graphql","SellerInsightsV2ProductsTableUtilsVariantValuesQuery.graphql","SellerInsightsV2TableUtils","err","fbicon","filterNulls","intlList","react","toggleInSet","useEffectOnce","useGeoTableSortableColumn_DEPRECATED"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react")),n=l,o=n.useCallback,p=n.useContext,q=n.useEffect,r=n.useMemo,s=i!==void 0?i:i=b("SellerInsightsV2ProductsTableUtilsVariantValuesQuery.graphql"),t=j!==void 0?j:j=b("SellerInsightsV2ProductsTableUtilsProductGroupCollectionValuesQuery.graphql"),u=k!==void 0?k:k=b("SellerInsightsV2ProductsTableUtilsProductItemCollectionValuesQuery.graphql"),v=32,w=2,x=1,y=1.1,z=1.25,A=2,B=3,C=160,D=104,E={variantTextGlimmer:{marginTop:"x1gslohp",marginBottom:"x12nagc",$$css:!0}};function F(a){var b=a.expandedGroupIDs,e=a.setExpandedGroupIDs,f=a.name,g=a.imageURL,i=a.variants,j=a.id;a=(b==null?void 0:b.has(j))===!0;var k=a?d("SellerInsightsV2Fbts").PRODUCT_TABLE_COLLAPSE_ROW_LABEL:d("SellerInsightsV2Fbts").PRODUCT_TABLE_EXPAND_ROW_LABEL,l=V(),n=o(function(){b!=null&&e!=null&&(e(c("toggleInSet")(b,j)),l.logToggleProductGroupRow(b.has(j)))},[b,j,l,e]);return m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[m.jsx(c("GeoTooltip.react"),{content:k,children:m.jsx("div",{className:"x6s0dn4 x78zum5 x2lah0s x10w6t97 xl56j7k x1td3qas",children:m.jsx(c("GeoBaseInlinePressable.react"),{"aria-label":k,grow:"fill",variant:"flat",onPress:n,children:m.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k",children:m.jsx(c("GeoIcon.react"),{icon:a?d("fbicon")._(h("492446"),12):d("fbicon")._(h("492530"),12)})})})})}),m.jsx("div",{className:"x1iyjqo2 x6ikm8r x10wlt62",children:m.jsx(c("GeoTableContentCell.react"),{description:d("SellerInsightsV2Fbts").NUMBER_OF_VARIANTS(i.length),media:m.jsx(c("GeoMediaItem.react"),{fit:g!=null?"cover":"none",media:g!=null?m.jsx(c("Image.react"),{src:g}):m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:v}),title:f})})]})}F.displayName=F.name+" [from "+f.id+"]";function G(a){a=a.index;return m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[m.jsx("div",{className:"x2lah0s x10w6t97 x1td3qas x6s0dn4 x78zum5 xl56j7k",children:m.jsx(c("Image.react"),{src:h("534949")})}),m.jsx(c("GeoFlexbox.react"),{shrink:0,children:m.jsx(c("GeoGlimmer.react"),{height:v,index:a,width:v})}),m.jsx(c("GeoTableContentGlimmer.react"),{index:a})]})}G.displayName=G.name+" [from "+f.id+"]";function H(a){a.category;a.collections;a.currentMetrics;a.groupID;var b=a.id,e=a.imageURL,f=a.name;a.previousMetrics;a.type;return m.jsx("div",{className:"x540dpk",children:m.jsx(c("GeoBaseTableCell.react"),{children:m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[m.jsx(c("GeoMediaItem.react"),{fit:e!=null?"cover":"none",media:e!=null?m.jsx(c("Image.react"),{src:e}):m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:v}),m.jsxs("div",{className:"xeuugli",children:[m.jsx(c("GeoText.react"),{display:"truncate",children:f}),m.jsx(I,{color:"heading",display:"truncate",id:b})]})]})})})}H.displayName=H.name+" [from "+f.id+"]";function I(a){var b=a.color,d=a.display;a=a.id;return m.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:m.jsx(K,{}),oncall:"commerce_platform_insights",children:m.jsx(J,{color:b,display:d,id:a})})}I.displayName=I.name+" [from "+f.id+"]";function J(a){var b=a.color,e=a.display;a=a.id;a=d("CommerceManagerHooks").useCommerceManagerQuery(s,{productID:a});a=a.product;a=(a=a==null?void 0:a.variant_values)!=null?a:[];return m.jsx(c("GeoBaseText.react"),{color:b,display:e,size:"valueDescription",children:c("intlList")(a,c("intlList").CONJUNCTIONS.NONE)})}J.displayName=J.name+" [from "+f.id+"]";function K(){return m.jsx(c("GeoGlimmer.react"),{height:8,width:64,xstyle:E.variantTextGlimmer})}K.displayName=K.name+" [from "+f.id+"]";function L(a){var b=a.cmsID;a=a.productGroupID;return m.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:m.jsx(K,{}),oncall:"commerce_platform_insights",children:m.jsx(M,{cmsID:b,productGroupID:a})})}L.displayName=L.name+" [from "+f.id+"]";function M(a){var b=a.cmsID;a=a.productGroupID;b=d("CommerceManagerHooks").useCommerceManagerQuery(t,{accountID:b,productGroupID:a});a=b.account;a=Y(a==null?void 0:(b=a.seller_product_insights)==null?void 0:b.product_group_collection_query);return m.jsx(P,{collections:a})}M.displayName=M.name+" [from "+f.id+"]";function N(a){a=a.productItemID;return m.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:m.jsx(K,{}),oncall:"commerce_platform_insights",children:m.jsx(O,{productItemID:a})})}N.displayName=N.name+" [from "+f.id+"]";function O(a){a=a.productItemID;a=d("CommerceManagerHooks").useCommerceManagerQuery(u,{productID:a});a=a.product;a=Y(a==null?void 0:a.product_item_collection_query);return m.jsx(P,{collections:a})}O.displayName=O.name+" [from "+f.id+"]";function P(a){a=a.collections;var b=a.totalCount,e=b<=w?b:w-1;b=b-e;return m.jsxs(c("GeoBaseSpacingLayout.react"),{children:[a.topItems.slice(0,e).map(function(a,b){var e=a.imageURL;a=a.name;e=m.jsx(c("GeoMediaItem.react"),{fit:e!=null?"cover":"none",media:e!=null?m.jsx(c("Image.react"),{src:e}):m.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:v},b);return a!=null?m.jsx(c("GeoTooltip.react"),{content:a,children:e},b):e}),b>0?m.jsx(c("SellerInsightsV2Placeholder.react"),{height:v,width:v,children:m.jsx(c("GeoText.react"),{children:d("SellerInsightsV2Fbts").EXTRA_ITEMS_COUNT(b)})}):null]})}P.displayName=P.name+" [from "+f.id+"]";function Q(a){var b=a.currentMetrics,d=a.metric;a=a.previousMetrics;var e=p(c("SellerInsightsV2Context"));e=e.dateRange;b=b.get(d);a=a.get(d);return m.jsx(c("SellerInsightsV2MetricWithPopTooltip.react"),{curValue:b==null?void 0:b.value,dateRange:e,formattedAmount:typeof (b==null?void 0:b.formattedValue)==="string"?b.formattedValue:null,prevValue:a==null?void 0:a.value})}Q.displayName=Q.name+" [from "+f.id+"]";function a(a){switch(a){case"ASCENDING":return"ASCENDING";case"DESCENDING":return"DESCENDING";default:throw c("err")("Sorting direction is not supported: %s",a)}}function e(a){switch(a){case"SALES":return"SALES";case"UNITS_SOLD":return"UNITS_SOLD";case"PDP_VIEWS":return"PDP_VIEWS";case"OUTBOUND_CLICKS":return"CLICK_TO_OFFSITE";case"ADD_TO_WISHLIST":return"ADD_TO_WISHLIST";case"ADD_TO_CART":return"ADD_TO_CART";case"CHECKOUT_INITIATED":return"CHECKOUTS_INITIATED";case"MESSAGE_TO_BUY":return"MESSAGE_TO_BUY";case"PURCHASE":return"PURCHASES";default:throw c("err")("Sorting key is not supported: %s",a)}}function R(a){switch(a){case"SALES":return"SALES";case"UNITS_SOLD":return"UNITS_SOLD";case"PDP_VIEWS":return"PDP_VIEWS";case"OUTBOUND_CLICKS":return"OUTBOUND_CLICKS";case"ADD_TO_WISHLIST":return"ADD_TO_WISHLIST";case"ADD_TO_CART":return"ADD_TO_CART";case"CHECKOUTS_INITIATED":return"CHECKOUT_INITIATED";case"MESSAGE_TO_BUY":return"MESSAGE_TO_BUY";case"TOTAL_ORDERS":return"PURCHASE";default:throw c("err")("Performance metric is not supported: %s",a)}}function S(a,b){if(a==="PDP_VIEWS")return b==="ONSITE"?y:z;if(a==="SALES"&&b==="ONSITE")return y;return a==="OUTBOUND_CLICKS"&&b!=="ONSITE"||a==="ADD_TO_WISHLIST"||a==="CHECKOUTS_INITIATED"||a==="MESSAGE_TO_BUY"?z:x}function T(a,b,e,f){var g=d("SellerInsightsV2MetricDefinitions").getPerformanceMetricDefinition(a,{isProductMetric:!0});b=S(a,b);return{cell:function(b){b=b.item;return m.jsx(Q,{currentMetrics:b.currentMetrics,metric:a,previousMetrics:b.previousMetrics})},features:f===!0?{}:{sortable:e.singleKey(R(a),{defaultDirection:"descending"})},header:babelHelpers["extends"]({},d("SellerInsightsV2TableUtils").getTableHeaderProperties(g.title),{tooltip:m.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:(f=g.isEstimated)!=null?f:!1,isReviewed:(e=g.isReviewed)!=null?e:!1,text:g.tooltip,title:g.title})}),key:a.toLowerCase(),width:d("GeoTableWidth").proportional(b)}}function U(a){var b=a.sort,e=a.setSort,f=a.onPageReset,g=a.expandedGroupIDs,h=a.setExpandedGroupIDs,i=a.shouldDisableSorting,j=a.cmsID;a=p(c("CommerceManagerComponentGatingContext"));var k=a.checkoutStyle,l=d("SellerInsightsV2ProductMetricsUtils").useProductMetrics();a=o(function(a){e(a),f==null?void 0:f()},[f,e]);var n=c("useGeoTableSortableColumn_DEPRECATED")({allowUnsortedState:!1,setSort:a,sort:b});return r(function(){return c("filterNulls")([{cell:function(a){a=a.item;return m.jsx(c("GeoTableRowAction.react"),{children:a.type==="group"?m.jsx(F,babelHelpers["extends"]({},a,{expandedGroupIDs:g,setExpandedGroupIDs:h})):m.jsx(H,babelHelpers["extends"]({},a))})},header:d("SellerInsightsV2TableUtils").getTableHeaderProperties(d("SellerInsightsV2Fbts").PRODUCT_HEADER),key:"product",loadingCell:function(a){a=a.loadingIndex;return m.jsx(G,{index:a})},width:d("GeoTableWidth").proportional(k==="ONSITE"?B:A,{minWidth:C})},{cell:function(a){var b;a=a.item;return a.type==="group"?m.jsx(L,{cmsID:(b=j)!=null?b:"0",productGroupID:a.id}):m.jsx(N,{productItemID:a.id})},header:d("SellerInsightsV2TableUtils").getTableHeaderProperties(d("SellerInsightsV2Fbts").PRODUCT_COLLECTIONS_HEADER),key:"collections",width:d("GeoTableWidth").proportional(x,{minWidth:D})}].concat(l.map(function(a){return T(a,k,n,i)})))},[k,l,g,h,n,i,j])}function V(){var a=p(c("CommerceManagerContext")),b=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=p(c("SellerInsightsV2Context"));var d=a.igChannelIDs,e=a.fbChannelIDs,f=a.channels,g=a.pageIDs;return r(function(){return new(c("SellerInsightsV2ProductsTableQPLLogger"))({accountID:b,channels:f,fbChannelIDs:e,igChannelIDs:d,pageIDs:g})},[b,f,e,d,g])}function W(a){var b=V();b.logLoadStart(a);c("useEffectOnce")(function(){return function(){return b.logNavigateAway(a)}})}function X(a){var b=V(),c=o(function(){document.visibilityState==="visible"?b.logActiveTabLoadStart():document.visibilityState==="hidden"&&b.logActiveTabLoadSuccess()},[b]);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(!a,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);q(function(){a?(b.logLoadSuccess(),b.logActiveTabLoadStart(),document.addEventListener("visibilitychange",c)):b.logLoadNoData();return function(){return document.removeEventListener("visibilitychange",c)}})}function Y(a){var b;return a==null?{topItems:[],totalCount:0}:{topItems:a.nodes.map(function(a){var b=a.id;return b==null?null:{id:b,imageURL:(b=a.product_set_usages)==null?void 0:(b=b.nodes[0])==null?void 0:(b=b.catalog_manager_display_data)==null?void 0:(b=b.usage_specific_display_data)==null?void 0:(b=b.collection)==null?void 0:b.cover_image_url,name:a.name}}).filter(Boolean),totalCount:(b=a.count)!=null?b:a.nodes.length}}function Z(a){switch(a){case"OFFSITE":return["PDP_VIEWS","CLICK_TO_OFFSITE"];case"CONTACT_MERCHANT":return["PDP_VIEWS","MESSAGE_TO_BUY"];case"ONSITE":return["SALES","UNITS_SOLD","PDP_VIEWS","CLICK_TO_OFFSITE","ADD_TO_WISHLIST","ADD_TO_CART","CHECKOUTS_INITIATED","PURCHASES"]}return[]}function $(a,b,c){switch(b){case"OFFSITE":return new Map([["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["OUTBOUND_CLICKS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS")))!=null?b:0}]]);case"CONTACT_MERCHANT":return new Map([["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["MESSAGE_TO_BUY",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("MESSAGE_TO_BUY")))!=null?b:0}]]);case"ONSITE":return new Map([["SALES",{formattedValue:d("SellerInsightsV2NumberUtils").formatCurrency((b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("SALES")))!=null?b:0,c,d("SellerInsightsInternationalizationUtils").getUserConfig(c)),value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("SALES")))!=null?b:0}],["UNITS_SOLD",{value:(c=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("UNITS_SOLD")))!=null?c:0}],["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["OUTBOUND_CLICKS",{value:(c=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS")))!=null?c:0}],["ADD_TO_WISHLIST",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("ADD_TO_WISHLIST")))!=null?b:0}],["ADD_TO_CART",{value:(c=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("ADD_TO_CART")))!=null?c:0}],["CHECKOUTS_INITIATED",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("CHECKOUTS_INITIATED")))!=null?b:0}],["TOTAL_ORDERS",{value:(c=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("TOTAL_ORDERS")))!=null?c:0}]]);default:return new Map()}}function aa(a,b,c){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.prevValue;a=a.metric;return[a,b]}));return $(a,b,c)}function ba(a,b,c){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.value;a=a.metric;return[a,b]}));return $(a,b,c)}g.variantValuesQuery=s;g.productGroupCollectionValuesQuery=t;g.productItemCollectionValuesQuery=u;g.TOP_COLLECTIONS=w;g.ProductItemNameCellVariantValuesLoader=I;g.ProductCollectionsCell=P;g.getUnifiedAPISortingDirection=a;g.getUnifiedAPISortingKey=e;g.getMetricColumnWidth=S;g.useColumnsConfig=U;g.useLogger=V;g.useLogDataLoading=W;g.useLogDataLoaded=X;g.getFormattedCollections=Y;g.getMetricsForCheckoutStyle=Z;g.getFormattedMetricsForPrev=aa;g.getFormattedMetrics=ba}),98);
-----
SellerInsightsV2ChannelSelector.react",["fbt","ix","CommerceManagerContext","GeoSelector.react","GeoSelectorItem.react","Image.react","SFLUtilityMethods","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionRoot","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","qpl","react","withSellerFunnelLogging"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useContext;function m(a){var b=l(c("SellerInsightsV2Context")),e=b.channels,f=b.onChannelsChange,g=b.igChannelIDs,j=b.fbChannelIDs,n=b.pageIDs,o=b.igChannelCount,p=b.fbChannelCount;b=b.subtab;var q=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection(),r=l(c("CommerceManagerContext")),s=r.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;r=[];p>0&&r.push({key:"FACEBOOK",label:h._("Facebook"),media:k.jsx(c("Image.react"),{src:i("1528129")}),value:"FACEBOOK"});o>0&&r.push({key:"INSTAGRAM",label:h._("Instagram"),media:k.jsx(c("Image.react"),{src:i("1278792")}),value:"INSTAGRAM"});r.length>1&&r.unshift({key:"both",label:d("SellerInsightsV2Fbts").FACEBOOK_AND_INSTAGRAM_FBT,value:null});p=r.length>1&&(b==="product_tagged_content"||b==="offsite_events");o=function(a){var b;b=(b=a)!=null?b:d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM;a=a==null?d("SellerInsightsV2Constants").DEFAULT_CHANNELS:[a];f(a);a={AccountID:s,FBChannelIDs:j,IGChannelIDs:g,NewChannel:b,PageIDs:n,PreviousChannel:e.join(", "),Section:q};d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7092490,"3429"),c("qpl")._(7085819,"6371"),c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]);d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7079940,"4268"),a);c("SellerInsightsV2HeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7081647,"427"),"commerce_insights_channel_change_at_"+q,a)};b=d("SFLUtilityMethods").useSflAwareLambda(o,{action:"select_channel"},m);o=e.length===2||p?null:e[0];return k.jsx(c("GeoSelector.react"),babelHelpers["extends"]({disabledMessage:d("SellerInsightsV2Fbts").CHANNEL_SELECTOR_DISABLED_HOVER,isDisabled:p,isLabelHidden:!0,label:"hidden",value:o,onChange:b},a,{children:r.map(function(a){return k.jsx(c("GeoSelectorItem.react"),babelHelpers["extends"]({},a))})}))}m.displayName=m.name+" [from "+f.id+"]";a=d("withSellerFunnelLogging").withSellerFunnelLogging(m,{action:"select_channel"});g["default"]=a}),226);
-----
SellerInsightsV2ProductsTableQPLLogger",["SellerInsightsV2ExitTabActionEnum","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs}var b=a.prototype;b.logLoadStart=function(a){d("SellerInsightsV2LoggingUtils").setCurrentSection(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsV2LoggingUtils").scenarioForContainerLoading(this.accountID,this.channels,a,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.igChannelIDs,this.fbChannelIDs,this.pageIDs)};b.logNavigateAway=function(a){d("SellerInsightsV2LoggingUtils").logNavigateAway(this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsV2LoggingUtils").scenarioAbandon(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON)};b.logLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products"),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenario=function(){d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731")])};b.logDetailViewLoadStart=function(a,b){this.abandonRunningDetailViewScenario(),d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS})};b.logDetailViewLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.logDetailViewClose=function(a,b){this.abandonRunningDetailViewScenario(),d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7086190,"1188"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS})};b.logToggleProductGroupRow=function(a){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7079140,"3242"),{AccountID:this.accountID,Channel:this.channels.join(", "),FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,action:a?"collapse":"expand"})};b.logDetailViewHover=function(a,b,e){return d("SellerInsightsV2LoggingUtils").hoverScenario(c("qpl")._(7083693,"759"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},e)};b.logActiveTabLoadStart=function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart()};b.logActiveTabLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)};return a}();g["default"]=a}),98);
-----
SellerInsightsV2TaggedContentLoggingUtils",["$InternalEnum","CommerceManagerContext","SellerInsightsV2Context","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TaggedContentContext","SellerInsightsV2TaggedContentTabEnum","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");var i=e.useContext,j=e.useMemo,k=b("$InternalEnum").Mirrored(["FILTER","TABLE","TOP_CONTENTS"]),l=b("$InternalEnum").Mirrored(["BAR_CHART","RANKING_CHART","TABLE","TOTALS"]),m=function(){function a(a){this.cmsID=a.cmsID;this.channels=a.channels;this.fbChannelIDs=a.fbChannelIDs;this.filters=a.filters;this.igChannelIDs=a.igChannelIDs;this.pageIDs=a.pageIDs;this.sortingKey=a.sortingKey;this.subtab=a.subtab;this.baseAnnotations={AccountID:(a=this.cmsID)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:"product_tagged_content"}}var b=a.prototype;b.logPageLoadStart=function(a,b,e,f){var g;d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7085174,"624"),babelHelpers["extends"]({},this.baseAnnotations,{AccountID:(g=this.cmsID)!=null?g:"0",Channel:this.channels.join(" and "),CurrentTab:this.subtab,Filters:this.sellerInsightsAttributionFiltersToString(this.filters),NewPage:a+"-"+(a+b-1),PreviousPage:Math.max(a-f,0)+"-"+(a-1),SortKey:this.sortingKey,Total:String(e)}))};b.logPageLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7085174,"624")],{})};b.logPageLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7085174,"624")],{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenarios=function(){d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731")])};b.logDetailViewLoadStart=function(a){this.abandonRunningDetailViewScenarios();if(a!=null){var b;d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(b=a==null?void 0:(b=a.mediaContent)==null?void 0:b.id)!=null?b:"",MediaType:(b=a==null?void 0:a.meidaType)!=null?b:""}))}};b.logDetailViewLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:a.message,ErrorName:a.name})};b.logDetailViewClose=function(a){var b;this.abandonRunningDetailViewScenarios();d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7080944,"1669"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(b=a==null?void 0:(b=a.mediaContent)==null?void 0:b.id)!=null?b:"",MediaType:(b=a==null?void 0:a.meidaType)!=null?b:""}))};b.logTagsHover=function(a,b,e,f){if(f)return d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7093080,"4511"),babelHelpers["extends"]({},this.baseAnnotations,{InDetailView:e,TagName:a,TagType:b}))};b.logEmptyDetailView=function(){return d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7090073,"6401"),babelHelpers["extends"]({},this.baseAnnotations))};b.logDetailViewLoadVariantsStart=function(a,b){d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7093934,"6029"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(a=a)!=null?a:"",Total:(a=b)!=null?a:""}))};b.logDetailViewLoadVariantsSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7093934,"6029")],{})};b.logDetailViewLoadVariantsError=function(a){var b;d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7093934,"6029")],{ErrorMessage:(b=a==null?void 0:a.message)!=null?b:"",ErrorName:(b=a==null?void 0:a.name)!=null?b:""})};b.logFilterFocus=function(a,b){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7082628,"6031"),babelHelpers["extends"]({},this.baseAnnotations,{Filters:this.filterArrayToStringArray(a),ParsedFilters:this.sellerInsightsAttributionFiltersToString(b)}))};b.logFilterChange=function(a,b,e,f){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7082248,"6047"),babelHelpers["extends"]({},this.baseAnnotations,{ChangeType:e,Filters:this.filterArrayToStringArray(a),ForcedEmptyState:f,ParsedFilters:this.sellerInsightsAttributionFiltersToString(b)}))};b.getComponents=function(a){switch(a){case c("SellerInsightsV2TaggedContentTabEnum").Review:return Array.from(k.members()).map(function(a){return a});case c("SellerInsightsV2TaggedContentTabEnum").Compare:return Array.from(l.members()).map(function(a){return a})}};b.logSubtabChangeStart=function(a){d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7082489,"80"),babelHelpers["extends"]({},this.baseAnnotations,{Subtab:a}))};b.logComponentsLoadingStart=function(a){d("SellerInsightsV2LoggingUtils").componentsRestart(this.getComponents(a))};b.logMarkerPointsStart=function(a,b){a=this.getComponents(a);a.forEach(function(a){return d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(b,a)})};b.logAggregationPivotChangeStart=function(a){d("SellerInsightsV2LoggingUtils").componentsRestart(this.getComponents(c("SellerInsightsV2TaggedContentTabEnum").Compare),c("qpl")._(7080207,"81"),babelHelpers["extends"]({},this.baseAnnotations,{AggregationPivot:a}))};b.logAggregationMetricChangeStart=function(a){d("SellerInsightsV2LoggingUtils").componentsRestart(this.getComponents(c("SellerInsightsV2TaggedContentTabEnum").Compare),c("qpl")._(7086136,"82"),babelHelpers["extends"]({},this.baseAnnotations,{AggregationMetric:a}))};b.logReviewTabMarkerPointsEnd=function(a){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,a),d("SellerInsightsV2LoggingUtils").scenarioSuccessWithMarkerPoints(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{PTCSection:"Review"},Array.from(k.members()))};b.logCompareTabMarkerPointsEnd=function(a){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,a),d("SellerInsightsV2LoggingUtils").scenarioSuccessWithMarkerPoints(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{PTCSection:"Compare"},Array.from(l.members()))};b.logComponentLoadingFailure=function(a){d("SellerInsightsV2LoggingUtils").componentFail(a,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,this.baseAnnotations)};b.filterArrayToStringArray=function(a){return a.map(function(a){var b;b=(b=(b=a.value.toJS().value)==null?void 0:b.toString())!=null?b:"";return"field: "+a.field+", operator: "+a.operator+", value: "+b})};b.sellerInsightsAttributionFiltersToString=function(a){var b=[],c=Object.keys(a);for(var d=0;d
NotificationJewelController",["Arbiter","Bootloader","Event","FunnelLogger","IndeterminateNotificationCounter","NotificationConstants","NotificationCounter","NotificationJewelFunnelLoggingConstants","NotificationSeenState","NotificationStore","NotificationUpdates","clearTimeout","createObjectFrom","curry","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){var h=0,i=!1;function j(a){var b=c("NotificationSeenState").getUnseenCount();c("Arbiter").inform("jewel/count-updated",{jewel:a,count:b,animation:"none"},"state")}a=function(){function a(a,b){var e=this,f=b.badgeAnimationData,g=b.classification,i=b.endPoint,k=b.isBizsite,l=b.list;b=b.unseenNotifs;i&&d("NotificationStore").registerEndpoint({endpointControllerName:i,classification:g});k?d("IndeterminateNotificationCounter").init(b.length):d("NotificationCounter").init();var m=c("Event").listen(a.getRoot(),"mouseover",function(){d("FunnelLogger").startFunnel(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME),m&&m.remove(),m=null,d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.MOUSE_OVER_ON_JEWEL),e.eagerRender(l)}),n=null;c("Event").listen(a.getRoot(),"mouseover",function(){n=c("setTimeoutAcrossTransitions")(function(){c("Bootloader").loadModules(["QE2Logger"],function(a){a.logExposureForUser("www_jewel_tooltip_experiment")},"NotificationJewelController"),n=null},500)});c("Event").listen(a.getRoot(),"mouseout",function(){n&&c("clearTimeout")(n)});var o=a.subscribe("opened",function(){o&&o.unsubscribe(),o=null,l.open()}),p=l.pause.bind(l);a.subscribe("opened",function(){window.setTimeout(p,0),j(a.name),c("Bootloader").loadModules(["NotificationVPVs"],function(a){return a.clearImpressions()},"NotificationJewelController"),c("Arbiter").inform("notificationJewel/opened")});a.subscribe("closed",function(){l.unpause(),j(a.name),c("Arbiter").inform("notificationJewel/closed"),l.setFlyoutOpenState(!1)});a.subscribe("user-open",function(a,b){l.setFlyoutOpenState(!0)});a.isOpen()&&l.setFlyoutOpenState(!0);d("NotificationUpdates").subscribe("seen-state-updated",c("curry")(j,a.name));f&&(f.logWithQEUniverse&&c("Bootloader").loadModules(["QE2Logger"],function(a){return a.logExposureForUser(f.logWithQEUniverse)},"NotificationJewelController"),f.injectWithAnimation&&c("Bootloader").loadModules(["RelationshipDelightsBadge"],function(b){return b.inject(a,f.injectWithAnimation)},"NotificationJewelController"));d("NotificationUpdates").handleUpdate(d("NotificationConstants").PayloadSourceType.INITIAL_LOAD,{seenState:c("createObjectFrom")(b,h)});j(a.name);c("Arbiter").inform("jewel_mounted")}var b=a.prototype;b.eagerRender=function(a){i||(i=!0,a.open())};return a}();g["default"]=a}),98);
-----
SellerInsightsV2QPLLogger",["CurrentLocale","QPLEvent","QuickPerformanceLogger","SellerInsightsSearchParams","SellerInsightsV2Constants","SellerInsightsV2LoggingConstants","SellerInsightsV2QPLEventNameMap","SignalsFBNuxDataManager","USID","err","qpl","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=new Set([7092490,7088916]),k=new Set([7085819,7092193]),l=new Set(),m=new Set(),n=new Set(),o={isLoggingDebugModeEnabled:!1},p=void 0,q="",r=void 0,s={};function t(a,b){a["delete"](b);b=a.toString();b!==""&&(b="?"+b);history.replaceState({},document.title,location.pathname+b)}function a(a){if(typeof a==="string"){a=new URLSearchParams(a);var b=a.get(c("SellerInsightsSearchParams").AYMT_TIP_NAME);b!=null&&p===void 0&&(t(a,c("SellerInsightsSearchParams").AYMT_TIP_NAME),p=b,q=b,c("setTimeout")(function(){p=""},d("SellerInsightsV2LoggingConstants").AYMT_TRACKING_EXPIRE_MS))}}function b(a){if(typeof a==="string"){a=new URLSearchParams(a);var b=a.get(c("SellerInsightsSearchParams").REF);b!=null&&r===void 0&&(t(a,c("SellerInsightsSearchParams").REF),r=b,c("setTimeout")(function(){r=""},d("SellerInsightsV2LoggingConstants").REFERRER_TRACKING_EXPIRE_MS))}}function e(){q=""}function f(){return q}function u(a,b,e,f){if(o.isLoggingDebugModeEnabled){var g=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));g=i.getMarkerId(a).toString()+"-"+((g=b)!=null?g:0);s[g]={}}(h||(h=c("QuickPerformanceLogger"))).markerStart(a,b);D(a,C(e,a,f),b)}function v(a,b,e,f){if(o.isLoggingDebugModeEnabled)var g=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,"client."+b+"_start",{instanceKey:e});D(a,f,e)}function w(a,b,e,f){if(o.isLoggingDebugModeEnabled)var g=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,"client."+b+"_end",{instanceKey:e});D(a,f,e)}function x(a,b){a=(h||(h=c("QuickPerformanceLogger"))).getMarker(a,b);return a==null?void 0:(b=a.points)==null?void 0:b.map(function(a){return a.name})}function y(a,b,e,f){f!=null&&D(a,f,e);b===3&&E(a,{URL:location.href},"URL",e);m.forEach(function(a){n.add(a)});(h||(h=c("QuickPerformanceLogger"))).markerEnd(a,b,e);a===c("qpl")._(741087294,"2028")&&b===2&&r===d("SellerInsightsV2Constants").COMMERCE_MANAGER_BANNER_REF&&d("SignalsFBNuxDataManager").logNuxView(d("SellerInsightsV2Constants").COMMERCE_INSIGHTS_BANNER_NAVIGATION_NUX_ID);if(o.isLoggingDebugModeEnabled){e=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((f=e)!=null?f:0);f=z(b);b=s[e];b.eventState=f;b=d("SellerInsightsV2QPLEventNameMap").getEventName(i.getMarkerId(a));delete s[e]}}function z(a){switch(a){case 2:return"Success!";case 3:return"Failed!";case 477:return"Abandoned!";default:throw c("err")("action type not supported!")}}function A(a,b){(h||(h=c("QuickPerformanceLogger"))).markerPoint(a,b)}function B(a,b,e){var f;f=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((f=e)!=null?f:0);if(o.isLoggingDebugModeEnabled){var g=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));s[f]={}}(h||(h=c("QuickPerformanceLogger"))).markerStart(a,e);D(a,C(b),e);h.markerEnd(a,2,e);if(o.isLoggingDebugModeEnabled){g=s[f];b=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));delete s[f]}}function C(a,b,e){if(b!=null&&k.has((i||(i=d("QPLEvent"))).getMarkerId(b))){var f=!m.has(e);f&&m.add(e);return babelHelpers["extends"]({},a,c("USID").get().contextData(),{IsFirstTimeLoad:f,Locale:c("CurrentLocale").get()})}if(b!=null&&j.has((i||(i=d("QPLEvent"))).getMarkerId(b))){f=!l.has(e);f&&l.add(e);return babelHelpers["extends"]({},a,c("USID").get().contextData(),{IsFirstTimeLoad:f,Locale:c("CurrentLocale").get()})}return babelHelpers["extends"]({},a,c("USID").get().contextData(),{Locale:c("CurrentLocale").get()})}function D(a,b,c){var d=babelHelpers["extends"]({},b,{AYMTTipName:(b=p)!=null?b:"",Referrer:(b=r)!=null?b:""});Object.keys(d).map(function(b){Array.isArray(d[b])?F(a,d,b,c):E(a,d,b,c)})}function E(a,b,e,f){var g;g=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((g=f)!=null?g:0);if(o.isLoggingDebugModeEnabled){if(!(g in s))var j=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));j=(j=s[g])!=null?j:{};s[g]=j;j[e]=b[e]}g=b[e];if(Array.isArray(g)||g==null)return;switch(typeof g){case"string":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{string:(j={},j[e]=b[e],j)},{instanceKey:f});break;case"boolean":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{bool:(g={},g[e]=b[e],g)},{instanceKey:f});break;case"number":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{"double":(j={},j[e]=b[e],j)},{instanceKey:f});break;default:o.isLoggingDebugModeEnabled}}function F(a,b,e,f){var g;g=(i||(i=d("QPLEvent"))).getMarkerId(a).toString()+"-"+((g=f)!=null?g:0);if(o.isLoggingDebugModeEnabled){if(!(g in s))var j=d("SellerInsightsV2QPLEventNameMap").getEventName((i||(i=d("QPLEvent"))).getMarkerId(a));j=(j=s[g])!=null?j:{};s[g]=j;j[e]=b[e]}g=b[e];if(!Array.isArray(g)||g.length===0)return;switch(typeof g[0]){case"string":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{string_array:(j={},j[e]=b[e],j)},{instanceKey:f});break;case"boolean":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{bool_array:(g={},g[e]=b[e],g)},{instanceKey:f});break;case"number":(h||(h=c("QuickPerformanceLogger"))).markerAnnotate(a,{double_array:(j={},j[e]=b[e],j)},{instanceKey:f});break;default:o.isLoggingDebugModeEnabled}}g.isJSloaded=n;g.LoggingSettings=o;g.checkIsComingFromAYMT=a;g.checkReferrer=b;g.setTipNameForConversionLoggingToEmptyString=e;g.getTipNameForConversionLogging=f;g.sellerInsightsV2QPLStartEvent=u;g.sellerInsightsV2QPLMarkerPointStart=v;g.sellerInsightsV2QPLMarkerPointEnd=w;g.sellerInsightsV2GetMarkerPoints=x;g.sellerInsightsV2QPLEndEvent=y;g.sellerInsightsV2QPLAddPoint=A;g.sellerInsightsV2QPLAtomicEvent=B;g.sellerInsightsV2QPLAnnotateMarkerStrings=D}),98);
-----
SellerInsightsV2LoggingUtils",["$InternalEnum","CurrentUser","DateTime","QPLEvent","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2LoggingConstants","SellerInsightsV2OverviewComponentEnum","SellerInsightsV2QPLLogger","SellerInsightsV2TabUtils","Timezone","debounce","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useRef,k=b("$InternalEnum").Mirrored(["ABANDONED","FAILED","LOADED","LOADING"]),l={},m={},n={},o=new Map(),p=1e3,q=new Set(),r=null,s=d("Timezone").getEnvironmentTimezoneID(),t=null,u=null;function v(a){a=(i||(i=d("QPLEvent"))).getMarkerId(a);if(a in m)return m[a];m[a]=d("SellerInsightsV2LoggingConstants").INSTANCE_KEY_INITIAL;return m[a]}function w(a){return q.has(a)}function a(){q.clear()}function x(a,b,c){m[(i||(i=d("QPLEvent"))).getMarkerId(a)]==null&&y(a,b,void 0,c)}function y(a,b,c,e){if(c!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLStartEvent(a,c,b,e);else{c=v(a);n[(i||(i=d("QPLEvent"))).getMarkerId(a)]!==k.LOADING&&(d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLStartEvent(a,c,b,e),n[(i||(i=d("QPLEvent"))).getMarkerId(a)]=k.LOADING)}}function e(a,b,d,e,f,g,h){var i;if(((i=d.location.state)==null?void 0:i.prevTab)!=="performance"||d.action==="POP"){x(c("qpl")._(7092490,"3429"),{AccountID:a,Channel:b.join(" and "),CollectionID:(a=(i=d.location.state)==null?void 0:i.collectionID)!=null?a:"",FBChannelIDs:g,IGChannelIDs:f,IsFreshLoad:d.action==="POP",NavigationMethod:(i=(b=d.location.state)==null?void 0:b.navigationMethod)!=null?i:"",PageIDs:h,PreviousTab:(g=(a=d.location.state)==null?void 0:a.prevTab)!=null?g:"",Section:e},e)}}function f(a,b,e,f,g,h){q.add(a);if(r!==a){if(r!=null){var i;i=(i=t)==null?void 0:i.secondsUntil(c("DateTime").now(s));d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(c("qpl")._(7084444,"2109"),{AccountID:b,Channel:e.join(" and "),DurationInSeconds:(i=i)!=null?i:0,FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,Section:(i=r)!=null?i:""});M((i=r)!=null?i:"",b,e,f,g,c("SellerInsightsV2ExitTabActionEnum").NAV_AWAY);J(c("qpl")._(7088916,"5463"),{AccountID:b,Channel:e.join(" and "),FBChannelIDs:g,IGChannelIDs:f,NewSection:a,PageIDs:h,PreviousSection:r},void 0,a)}r=a;s=d("Timezone").getEnvironmentTimezoneID();t=c("DateTime").now(s)}}function z(a,b,e,f,g){var h;h=(h=location.pathname)==null?void 0:(h=h.match(//commerce/[d]+/(.*)/))==null?void 0:h[1].split("/");if(h==null||h[0]!=="performance"){d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(c("qpl")._(7088932,"5548"),{AccountID:a,Channel:b.join(" and "),FBChannelIDs:f,IGChannelIDs:e,NextSubTab:h!=null?h[1]:"",NextTab:h!=null?h[0]:"",PageIDs:g,Section:(h=r)!=null?h:""});M((h=r)!=null?h:"",a,b,e,f,c("SellerInsightsV2ExitTabActionEnum").NAV_AWAY);h=(h=t)==null?void 0:h.secondsUntil(c("DateTime").now(s));d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(c("qpl")._(7084444,"2109"),{AccountID:a,Channel:b.join(" and "),DurationInSeconds:(a=h)!=null?a:0,FBChannelIDs:f,IGChannelIDs:e,PageIDs:g,Section:(b=r)!=null?b:""});r=null;t=null;H([c("qpl")._(7088916,"5463")]);delete m[(i||(i=d("QPLEvent"))).getMarkerId(c("qpl")._(7092490,"3429"))];delete n[i.getMarkerId(c("qpl")._(7092490,"3429"))]}}function A(a,b){for(var a=a,c=Array.isArray(a),e=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(c){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;var g=v(f);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAnnotateMarkerStrings(f,b,g)}}function B(a,b,c){c===void 0&&(c={});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=v(g);if(n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING){var j=d("SellerInsightsV2QPLLogger").sellerInsightsV2GetMarkerPoints(g,h);j!=null&&(j.includes("client."+b+"_start")||d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLMarkerPointStart(g,b,h,c))}}}function C(a,b,c){c===void 0&&(c={});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=v(g);n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING&&D(g,b,h,c)}}function D(a,b,c,e){e===void 0&&(e={});var f=d("SellerInsightsV2QPLLogger").sellerInsightsV2GetMarkerPoints(a,c);f!=null&&(!f.includes("client."+b+"_end")&&f.includes("client."+b+"_start")&&d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLMarkerPointEnd(a,b,c,e))}function E(a,b,c){for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;if(c!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,2,c,b);else if(n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING){var h=v(g);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,2,h,b);n[(i||(i=d("QPLEvent"))).getMarkerId(g)]=k.LOADED;m[i.getMarkerId(g)]+=1}}}function F(a,b,c,e,f){for(var g=a,h=Array.isArray(g),j=0,g=h?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l;if(h){if(j>=g.length)break;l=g[j++]}else{j=g.next();if(j.done)break;l=j.value}var m=l;if(n[(i||(i=d("QPLEvent"))).getMarkerId(m)]===k.LOADING){l=function(){var g=v(m);g=d("SellerInsightsV2QPLLogger").sellerInsightsV2GetMarkerPoints(m,g);if(g==null)return"continue";var h=new Set(g);g=c.every(function(a){return h.has("client."+a+"_end")});g&&(E(a,b,e),f&&f())}();if(l==="continue")continue}}}function G(a,b,d){l[a]=!0;a=!0;var e=Array.from(c("SellerInsightsV2OverviewComponentEnum").members());e.forEach(function(b){l[b]||(a=!1)});a&&(E(b,{},d),L())}function H(a,b,e){for(var a=a,f=Array.isArray(a),g=0,a=f?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=a.length)break;h=a[g++]}else{g=a.next();if(g.done)break;h=g.value}h=h;if(e!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(h,477,e,b);else{if(n[(i||(i=d("QPLEvent"))).getMarkerId(h)]===k.LOADING){var j=v(h);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(h,477,j,b)}if(h!==c("qpl")._(7092490,"3429")){j=(i||(i=d("QPLEvent"))).getMarkerId(h);delete m[j];delete n[j]}}}}function I(a,b,c){for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;if(c!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,3,c,b);else if(n[(i||(i=d("QPLEvent"))).getMarkerId(g)]===k.LOADING){var h=v(g);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,3,h,b);m[(i||(i=d("QPLEvent"))).getMarkerId(g)]+=1;n[i.getMarkerId(g)]=k.FAILED}}}function J(a,b,c,d){H([a],{},c),y(a,b,c,d)}function K(a,b){d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(a,b)}function L(){u==null&&(u=Date.now(),J(c("qpl")._(7093594,"5724"),{}))}function M(a,b,d,e,f,g){var h=Date.now();h=(h-((h=u)!=null?h:0))/p;E([c("qpl")._(7093594,"5724")],{AccountID:b,Channels:d.join(" and "),DurationInSeconds:h,ExitTabAction:g,FBChannelIDs:f,IGChannelIDs:e,Section:a});u=null}function N(a,b,d){return c("debounce")(function(){K(a,b)},d)}function O(){var a,b=location.pathname;a=b==null?void 0:(a=b.match(//commerce/[d]+/(.*)/))==null?void 0:a[0].split("/")[2];b=b==null?void 0:(b=b.match(//commerce/[d]+/(.*)/))==null?void 0:b[1].split("/");if(b!=null&&b[0]==="performance"){b=P(b);d("SellerInsightsV2QPLLogger").LoggingSettings.isLoggingDebugModeEnabled=c("CurrentUser").isEmployee();y(c("qpl")._(7085819,"6371"),{AccountID:(a=a)!=null?a:"",IsFreshLoad:!0,PreviousTab:"",Section:b},void 0,b);B([c("qpl")._(7085819,"6371")],"JS_loading")}}function P(a){if(a[1]===d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_SECTION_PERF){var b=new URLSearchParams(location.search);b=b.get("perf_tab");return b!=null?d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_SECTION_PERF+"_"+b:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_SECTION_PERF}if(a[1]===d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB_PRODUCTS)return d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS;return a[1]===d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB_COLLECTIONS?d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS:a[1]}function Q(a,b,e,f){b=d("SellerInsightsV2TabUtils").convertSideTabKeyIntoSectionKey(b,e);if(b!=null){J(c("qpl")._(7085819,"6371"),{AccountID:(e=a)!=null?e:"",IsFreshLoad:!1,PreviousTab:(a=f)!=null?a:"",Section:b},void 0,b);B([c("qpl")._(7085819,"6371")],"JS_loading")}else H([c("qpl")._(7092193,"5380"),c("qpl")._(7085819,"6371")])}function R(a,b,e,f){e=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(b,e);b=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(b,f);J(c("qpl")._(7092193,"5380"),{AccountID:(f=a)!=null?f:"",NewSection:(a=b)!=null?a:"",PreviousSection:(f=e)!=null?f:""},void 0,(a=b)!=null?a:"")}function S(a,b,e,f){e=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(e,f);b=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(b,f);if(!w(e)){J(c("qpl")._(7085819,"6371"),{AccountID:(f=a)!=null?f:"",IsFreshLoad:!1,PreviousTab:(f=b)!=null?f:"",Section:e},void 0,(f=e)!=null?f:"");B([c("qpl")._(7085819,"6371")],"JS_loading")}else{J(c("qpl")._(7092193,"5380"),{AccountID:(f=a)!=null?f:"",NewSection:(a=e)!=null?a:"",PreviousSection:(f=b)!=null?f:""},void 0,(a=e)!=null?a:"");B([c("qpl")._(7092193,"5380")],"JS_loading")}}function T(a,b,c,d){o.clear(),a.forEach(function(a){return o.set(a,k.LOADING)}),b!=null&&c!=null&&y(b,c,d)}function U(a,b,c,d){o.clear(),a.forEach(function(a){return o.set(a,k.LOADING)}),b!=null&&c!=null&&J(b,c,d)}function V(a,b,c,d){o.set(a,k.LOADED),Y(b,c,d)}function W(a,b,c,d){o.set(a,k.FAILED),Y(b,c,d)}function X(a,b,c,d){o.set(a,k.ABANDONED),Y(b,c,d)}function Y(a,b,c){var d=Array.from(o.values());d.every(function(a){return a===k.LOADED})?E(a,b,c):d.some(function(a){return a===k.FAILED})?I(a,b,c):d.some(function(a){return a===k.ABANDONED})&&H(a,b,c)}function Z(a,b,c){var d=j(b.length),e=j(!1),f=function(){d.current=b.length,e.current=!1},g=function(){return d.current=Math.max(0,d.current-1)};return function(){y(a,c);var h=function(){if(j){if(k>=i.length)return"break";l=i[k++]}else{k=i.next();if(k.done)return"break";l=k.value}var b=l,h=b.count,m=b.loadNext,n=b.pointName;B([a],n);m(h,{onComplete:function(b){g();C([a],n);e.current||(e.current=b!=null);if(d.current>0)return;f();e.current?I([a],c):E([a],c)}})};for(var i=b,j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l,m=h();if(m==="break")break}}}g.sectionIsVisited=w;g.cleanupVisitedSections=a;g.scenarioStartOnce=x;g.scenarioStart=y;g.scenarioForContainerLoading=e;g.setCurrentSection=f;g.logNavigateAway=z;g.scenarioAnnotate=A;g.scenarioMarkerPointStart=B;g.scenarioMarkerPointEnd=C;g.scenarioSuccess=E;g.scenarioSuccessWithMarkerPoints=F;g.scenarioSuccessIfAllComponentsLoadedInOverview=G;g.scenarioAbandon=H;g.scenarioFail=I;g.scenarioRestart=J;g.atomicScenario=K;g.handleActiveTabEventStart=L;g.handleActiveTabEventSuccess=M;g.hoverScenario=N;g.commerceInsightsPageLoadingV2Scenario=O;g.commerceInsightsTabClickScenario=Q;g.commerceInsightsSubsectionChange=R;g.commerceInsightsSectionChangeV2Scenario=S;g.componentsStart=T;g.componentsRestart=U;g.componentSuccess=V;g.componentFail=W;g.componentAbandon=X;g.useAggregatedLoadNextWithLogging=Z}),98);
-----
SellerInsightsV2PerfUtils.react",["$InternalEnum","CommerceManagerContext","LocalDate","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2DateConstants","SellerInsightsV2EmptyContainer.react","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h,k=j.useContext,l=j.useEffect,m=b("$InternalEnum").Mirrored(["ChannelComparison","SingleLine","TimeSeriesComparison"]);function a(a,b,e){var f=k(c("CommerceManagerContext")),g=f.cmsID;f=k(c("SellerInsightsV2Context"));var h=f.channels,i=f.igChannelIDs,j=f.fbChannelIDs;function m(){if(document.visibilityState==="visible")d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess("perf",(a=g)!=null?a:"0",h,i,j,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)}}var n=function(){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,b),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{}),d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart(),document.addEventListener("visibilitychange",m)},o=function(){var a;d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{ErrorMessage:(a=e)!=null?a:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(a,(f=e)!=null?f:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);l(function(){a?o():n();return function(){document.removeEventListener("visibilitychange",m)}})}function e(a,b,e){var f=b.subtractDays(1);if(a===m.TimeSeriesComparison&&e==="DAY")return function(a){return null};else return function(a){var b=c("LocalDate").today(d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE);!isNaN(a)?b=c("LocalDate").fromInstant(Number(a),d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE):b=c("LocalDate").fromUTCDate(new Date(a));a=null;var g=!1;e==="WEEK"?(a=b.startOfWeek().addWeeks(1).subtractDays(1),g=b.getDayOfWeek()!==0):e==="MONTH"&&(a=b.startOfMonth().addMonths(1).subtractDays(1),g=b.getDayOfMonth()!==1);a!==null&&a.isAfter(f)&&(g=!0);return g?d("SellerInsightsV2Fbts").PARTIAL_DATE_RANGE_DISCLAIMER:null}}function n(a,b,e){var f=b.subtractDays(1);if(a===m.TimeSeriesComparison&&e==="DAY")return function(a){return""};else return function(a){var b=c("LocalDate").today(d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE);!isNaN(a)?b=c("LocalDate").fromInstant(Number(a),d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE):b=c("LocalDate").fromUTCDate(new Date(a));a=null;e==="WEEK"?a=b.startOfWeek().addWeeks(1).subtractDays(1):e==="MONTH"&&(a=b.startOfMonth().addMonths(1).subtractDays(1));a!==null&&a.isAfter(f)&&(a=f);return a===null?b.format(d("SellerInsightsV2DateConstants").DATE_FORMAT):b.format(d("SellerInsightsV2DateConstants").DATE_FORMAT)+" - "+a.format(d("SellerInsightsV2DateConstants").DATE_FORMAT)}}function o(a,b,c){return a!=="RECENT_META_BUYERS"?null:p(b,c.getTimeInterval().getStartDateTime())}o.displayName=o.name+" [from "+f.id+"]";function p(a,b){return b.getUnixTimestampSeconds()>=a?null:i.jsx(c("SellerInsightsV2EmptyContainer.react"),{cutoffDate:a,hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_INSIGHTS_FOR_AUDIENCE_SEGMENT_BEFORE_CUTOFF})}p.displayName=p.name+" [from "+f.id+"]";g.PerfChartType=m;g.useLogScenarioEnd=a;g.getTooltipDisclaimerRenderer=e;g.getTooltipPrimaryValueRenderer=n;g.getPotentialNullStateForAudienceSegment=o}),98);
-----
SellerInsightsV2QPLLoggingHooks",["CommerceManagerContext","SellerInsightsSearchParamsUtils","SellerInsightsV2Context","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2PerfTabEnum","qpl","react","useEffectOnce","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext,j=(e={},e.entry_points=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS_FOR_ABANDON,e.overview=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS_FOR_ABANDON,e.audience=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS_FOR_ABANDON,e.perf=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS_FOR_ABANDON,e.product_tagged_content=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS_FOR_ABANDON,e.collections=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON,e.products=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON,e.offsite_events=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS_FOR_ABANDON,e);function a(a){var b=i(c("SellerInsightsV2Context")),e=b.channels,f=b.igChannelIDs,g=b.fbChannelIDs,h=b.pageIDs;b=i(c("CommerceManagerContext"));var l=b.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;b=d("useReactRouter").useRouter();b=b.history;var m=k();d("SellerInsightsV2LoggingUtils").setCurrentSection(m,l,e,f,g,h);d("SellerInsightsV2LoggingUtils").scenarioForContainerLoading(l,e,b,m,f,g,h);d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointEnd(!0,"JS_loading");c("useEffectOnce")(function(){return function(){d("SellerInsightsV2LoggingUtils").logNavigateAway(l,e,f,g,h),d("SellerInsightsV2LoggingUtils").scenarioAbandon(j[a])}})}function k(){var a=i(c("SellerInsightsV2Context"));a=a.subtab;var b=d("SellerInsightsSearchParamsUtils").getSubsectionSearchParam(),e=c("SellerInsightsV2PerfTabEnum").Funnel;b=(b=b)!=null?b:e;switch(a){case"perf":return"perf_"+b;case"products":return d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS;case"collections":return d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS;default:return a}}function b(a,b,e){var f=i(c("CommerceManagerContext"));f=f.cmsID;var g=i(c("SellerInsightsV2Context")),h=g.channels,j=g.fbChannelIDs,k=g.igChannelIDs,l=g.pageIDs;g=g.subtab;return d("SellerInsightsV2LoggingUtils").hoverScenario(a,babelHelpers["extends"]({},b,{AccountID:(a=f)!=null?a:"0",Channel:h.join(" and "),FBChannelIDs:j,IGChannelIDs:k,PageIDs:l,Section:g}),e)}g.useLoggingForContainer=a;g.useNameFromSectionAndSubSection=k;g.useHoverScenario=b}),98);
-----
SellerInsightsV2LoggingConstants",["qpl"],(function(a,b,c,d,e,f,g){"use strict";var h;a=1e3;b=60*a;d=60*b;e=2e3;f=2e3;var i=2e3,j=2e3,k=2e3,l=d,m=d,n=1,o="Facebook And Instagram",p="error: empty charts",q="error: Top-level Relay query returned null",r="error: not enough data",s="not enough data",t="perf",u="products",v="collections",w={COLLECTIONS:"catalog_collections",PRODUCTS:"catalog_products"},x=[(h=c("qpl"))._(7092490,"3429"),h._(7085819,"6371"),h._(7079940,"4268"),h._(7083971,"1966")],y=[].concat(x,[h._(7081993,"554"),h._(7085174,"624"),h._(7083043,"3731"),h._(7087889,"6962"),h._(7083044,"547")]),z=[].concat(y.filter(function(a){return a!==c("qpl")._(7083043,"3731")&&a!==c("qpl")._(7085174,"624")}),[h._(7088916,"5463"),h._(7092193,"5380")]),A=[].concat(x,[h._(7081993,"554"),h._(7085174,"624"),h._(7083043,"3731"),h._(7092951,"142")]),B=[].concat(A.filter(function(a){return a!==c("qpl")._(7083043,"3731")&&a!==c("qpl")._(7092951,"142")&&a!==c("qpl")._(7085174,"624")}),[h._(7088916,"5463"),h._(7092193,"5380")]),C=[].concat(x,[h._(7081993,"554"),h._(7087889,"6962")]),D=[].concat(x,[h._(7081993,"554"),h._(7087889,"6962"),h._(7081379,"1729"),h._(7079214,"4458"),h._(7082489,"80"),h._(7086136,"82"),h._(7080207,"81"),h._(7082248,"6047"),h._(741087294,"2028")]),E=[].concat(C.filter(function(a){return a!==c("qpl")._(741087294,"2028")}),[h._(7088916,"5463"),h._(7092193,"5380")]),F=[].concat(D,[h._(7088916,"5463"),h._(7092193,"5380")]),G=[].concat(x,[h._(741087294,"2028"),h._(7083175,"7311"),h._(7085498,"15910")]),H=[].concat(G,[h._(7088916,"5463"),h._(7092193,"5380")]),I=[].concat(x,[h._(7093901,"6795"),h._(741087294,"2028")]),J=[].concat(I,[h._(7088916,"5463"),h._(7092193,"5380")]),K=[].concat(x,[h._(741087294,"2028"),h._(7081379,"1729"),h._(7086483,"270"),h._(7086957,"623"),h._(7083044,"547")]),L=[].concat(K,[h._(7088916,"5463"),h._(7092193,"5380")]),M=[].concat(x,[h._(7087231,"41"),h._(7086762,"48"),h._(741087294,"2028")]);h=[].concat(M,[h._(7088916,"5463"),h._(7092193,"5380")]);var N="ASCENDING",O="DESCENDING";g.MILLISECONDS_IN_SECOND=a;g.MILLISECONDS_IN_MINUTE=b;g.MILLISECONDS_IN_HOUR=d;g.DELAY_FOR_PRODUCT_GROUP_DETAILS_IN_MS=e;g.DELAY_FOR_CARD_HOVER_IN_MS=f;g.DELAY_FOR_TABLE_HOVER_IN_MS=i;g.DELAY_FOR_TOOLTIP_HOVER_IN_MS=j;g.DELAY_FOR_CHART_HOVER_IN_MS=k;g.AYMT_TRACKING_EXPIRE_MS=l;g.REFERRER_TRACKING_EXPIRE_MS=m;g.INSTANCE_KEY_INITIAL=n;g.FACEBOOK_AND_INSTAGRAM=o;g.ERROR_EMPTY_CHARTS=p;g.ERROR_NULL_RELAY_RESPONSE=q;g.ERROR_NOT_ENOUGH_DATA=r;g.NOT_ENOUGH_DATA=s;g.SELLER_INSIGHTS_SECTION_PERF=t;g.SELLER_INSIGHTS_CATALOG_SUBTAB_PRODUCTS=u;g.SELLER_INSIGHTS_CATALOG_SUBTAB_COLLECTIONS=v;g.SELLER_INSIGHTS_CATALOG_SUBTAB=w;g.SELLER_INSIGHTS_V2_COMMON_EVENTS=x;g.SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON=y;g.SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS=z;g.SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON=A;g.SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS=B;g.SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS_FOR_ABANDON=C;g.SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS_FOR_ABANDON=D;g.SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS=E;g.SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS=F;g.SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS_FOR_ABANDON=G;g.SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS=H;g.SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS_FOR_ABANDON=I;g.SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS=J;g.SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS_FOR_ABANDON=K;g.SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS=L;g.SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS_FOR_ABANDON=M;g.SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS=h;g.TABLE_SORTING_ASCENDING_DIRECTION=N;g.TABLE_SORTING_DESCENDING_DIRECTION=O}),98);
-----
LWICometUnifiedCreationWhatsAppSetup.react",["AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometPageAdminCTWAEventLoggingUtils","CometPlaceholder.react","CometRelay","CometTransientDialogProvider.react","LWICometCTAWhatsAppNumberInputEditorGlimmer.react","LWICometCTWALoggerContext","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometPhoneNumberUtils","LWICometUnifiedCreationWhatsAppBizAppUpsellNotice.react","LWICometUnifiedCreationWhatsAppSetup_ctwaInfo.graphql","LWICometUnifiedCreationWhatsAppSetup_lwi.graphql","LWICometWhatsAppAccountExperiments","LWICometWhatsAppActiveStatusNotice.react","LWICometWhatsAppAdvertisingPolicyNotice.react","LWICometWhatsAppSoftMatchingDeprecationExplanation.react","ShouldQueryWhatsAppInputEditorData.relayprovider","WhatsAppNumberType","castToEnum","deferredLoadComponent","getJSEnumSafe","isStringNullOrEmpty","qex","react","requireDeferred","useLWICometShowDialogOnWhatsAppBusinessUpsell","useLWICometWhatsAppSMBGetStarted","useLWILoggerContext","useLWINoticesContext","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useMemo,n=c("deferredLoadComponent")(c("requireDeferred")("LWICometCTAWhatsAppNumberInput.react").__setRef("LWICometUnifiedCreationWhatsAppSetup.react"));function a(a){var e=a.ctwaInfoRef,f=a.instagramActorID;f=f===void 0?null:f;var g=a.isEditingWhatsAppNumber,j=a.isOnlyWhatsAppEnabled,o=a.isOnlyWhatsAppSelected,p=a.lwiRef,q=a.onValueChange,r=a.onWhatsAppBizNumberLinked,s=a.productFlow,t=a.setIsEditingWhatsAppNumber,u=a.whatsAppNumber,v=a.whatsappNumberInputEditorEntrypointRef,w=a.whatsAppNumberType,x=a.whatsAppSelected,y=a.adAccountID,z=a.goal,A=a.objective;c("vulture")("4cnT0O7EkhU");a=c("useLWILoggerContext")();var B=a.pageID,C=a.targetID;a=m(function(){return{ad_account_id:y,ads_lwi_goal:c("castToEnum")(z,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),A),page_id:B,post_id:C,product_flow:s,source_app_id:d("LWICometLoggingConstants").APP_ID}},[y,z,A,B,s,C]);var D=d("LWICometPhoneNumberUtils").getCountryCodeFromPhone(u);if(g){var E=c("isStringNullOrEmpty")(u)?"add_whatsapp_number_click":"edit_whatsapp_number_click";c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},a,{event:E,whatsapp_country_code:D,whatsapp_number:u,whatsapp_number_type:c("castToEnum")(Number(w),c("WhatsAppNumberType"),0)}))}E=c("useLWINoticesContext")();var F=E.notices,G=E.removeGetResponseNotice;E=l(function(){d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.forEach(function(a){return G("CALL_TO_ACTION",a)})},[G]);c("useLWICometShowDialogOnWhatsAppBusinessUpsell")({countryCode:D,ctwaLoggerContextData:a,numberOfAds:0,onUpsellSuccess:E,whatsAppDisplayNumber:u,whatsAppNumber:u,whatsAppNumberType:w});c("useLWICometWhatsAppSMBGetStarted")({countryCode:D,ctwaLoggerContextData:a,onUpsellSuccess:E,whatsAppDisplayNumber:u,whatsAppNumber:u,whatsAppNumberType:w});D=(E=(D=d("LWICometWhatsAppAccountExperiments").getSMBEnforcingNotices(F))==null?void 0:D.some(function(a){return d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.includes(a.errorCode)}))!=null?E:!1;E=F.MESSAGING_APPS!=null;F=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometUnifiedCreationWhatsAppSetup_ctwaInfo.graphql"),e);e=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometUnifiedCreationWhatsAppSetup_lwi.graphql"),p);p=u!=null&&d("LWICometMessagingAppsSectionConstants").isWhatsAppConsumerNumber(w)&&!g&&!D&&c("qex")._("560")===!0;f=s==="boost_instagram_media_create_flow"?f:null;var H=!c("ShouldQueryWhatsAppInputEditorData.relayprovider").get();return k.jsxs(k.Fragment,{children:[g&&k.jsx(c("LWICometCTWALoggerContext").Provider,{value:a,children:k.jsx(c("CometTransientDialogProvider.react"),{children:k.jsx("div",{className:"x1swvt13 x1pi30zi x1y1aw1k",children:H?k.jsx(c("CometPlaceholder.react"),{fallback:k.jsx(c("LWICometCTAWhatsAppNumberInputEditorGlimmer.react"),{}),children:v!=null?k.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:v,props:{forceToHaveCancelButton:!0,instagramActorID:f,objective:A,onSuccess:function(){var a;t(!1);r();d("CometPageAdminCTWAEventLoggingUtils").logCTWAEvent((a=B)!=null?a:"","ui_link_enter_verification_code_render","verification_code_success_link_first_smb","page_lwi_multi_number")},onValueChange:q,previouslyVerifiedNumber:u,productFlow:s,setIsEditing:t}}):null}):k.jsx(n,{ctwaInfoRef:F,forceToHaveCancelButton:!0,instagramActorID:f,lwiRef:e,objective:A,onSuccess:function(){var a;t(!1);r();d("CometPageAdminCTWAEventLoggingUtils").logCTWAEvent((a=B)!=null?a:"","ui_link_enter_verification_code_render","verification_code_success_link_first_smb","page_lwi_multi_number")},onValueChange:q,previouslyVerifiedNumber:u,productFlow:s,setIsEditing:t})})})}),u!=null&&o&&p&&k.jsx(c("LWICometUnifiedCreationWhatsAppBizAppUpsellNotice.react"),{objective:A,onWhatsAppBizNumberLinked:r,productFlow:s,whatsAppNumber:u,whatsAppNumberType:c("castToEnum")(w,c("WhatsAppNumberType"),0)}),o&&k.jsx("div",{className:"xod5an3 x14vqqas x1swvt13 x1pi30zi",children:k.jsx(c("LWICometWhatsAppSoftMatchingDeprecationExplanation.react"),{isOnlyWhatsAppEnabled:j})}),x&&!g&&k.jsxs("div",{className:"x1swvt13 x1pi30zi x1y1aw1k",children:[k.jsx(c("LWICometWhatsAppAdvertisingPolicyNotice.react"),{}),k.jsx(c("LWICometWhatsAppActiveStatusNotice.react"),{})]}),u!=null&&d("LWICometMessagingAppsSectionConstants").isWhatsAppConsumerNumber(w)&&!g&&!D&&!E&&!p&&k.jsx(c("LWICometUnifiedCreationWhatsAppBizAppUpsellNotice.react"),{objective:A,onWhatsAppBizNumberLinked:r,productFlow:s,whatsAppNumber:u,whatsAppNumberType:c("castToEnum")(w,c("WhatsAppNumberType"),0)})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,objective:a.objective}});g["default"]=e}),98);
-----
RichMediaEditorLoggerStore",["AdsCanvasCollectionPreviewToFacebookDataActionFlux","AdsCanvasConstants","AdsCanvasDocumentAddNewElementsDataActionFlux","AdsCanvasDocumentCreateErrorDataActionFlux","AdsCanvasDocumentCreateSuccessDataActionFlux","AdsCanvasDocumentDuplicateErrorDataActionFlux","AdsCanvasDocumentDuplicateSuccessDataActionFlux","AdsCanvasDocumentInitDuplicateDataActionFlux","AdsCanvasDocumentInitPublishDataActionFlux","AdsCanvasDocumentInitSaveDataActionFlux","AdsCanvasDocumentLoadErrorDataActionFlux","AdsCanvasDocumentLoadSuccessDataActionFlux","AdsCanvasDocumentReorderElementsDataActionFlux","AdsCanvasDocumentSaveErrorDataActionFlux","AdsCanvasDocumentSaveSuccessDataActionFlux","AdsCanvasDocumentSetTitleDataActionFlux","AdsCanvasEditorFunnelLogging","AdsCanvasEditorFunnelLoggingConstants","AdsCanvasElementDeleteDataActionFlux","AdsCanvasInitDataActionFlux","AdsCanvasInlineBuilderBuilderNuxTourCompleteDataActionFlux","AdsCanvasInlineBuilderBuilderNuxTourXoutDataActionFlux","AdsCanvasInlineBuilderShowInlineModalDataActionFlux","AdsCanvasPhotoUploaderImageUploadErrorDataActionFlux","AdsCanvasPhotoUploaderImageUploadSuccessDataActionFlux","AdsCanvasPhotoUploaderLibraryCancelDataActionFlux","AdsCanvasPhotoUploaderLibraryImageUploadDataActionFlux","AdsCanvasPhotoUploaderLibraryOpenDataActionFlux","AdsCanvasVideoUploaderLibraryCancelDataActionFlux","AdsCanvasVideoUploaderLibraryOpenDataActionFlux","AdsCanvasVideoUploaderLibraryVideoClickDataActionFlux","AdsCanvasVideoUploaderLibraryVideoSelectExistingDataActionFlux","AdsCanvasVideoUploaderLibraryVideoUploadDataActionFlux","AdsDataAtom","AdsRichMediaEditorLoadPageDataErrorDataActionFlux","AdsRichMediaEditorLoadPageDataSuccessDataActionFlux","AdsRichMediaEditorSetDocumentUrlDialogShownDataActionFlux","AdsRichMediaEditorSetInstagramValidationFailedDataActionFlux","AdsRichMediaEditorSetPreviewFailedDataActionFlux","AdsRichMediaEditorSetSendingPreviewDataActionFlux","AdsRichMediaEditorSetSwipeToOpenEnabledDataActionFlux","AdsRichMediaEditorSetValidationFailedDataActionFlux","AdsRichMediaEditorToolbarPublishClickDataActionFlux","AdsSelectorUtils","AdsUEditorAdgroupSetCanvasDocumentDataActionFlux","CanvasCreationWaterfallTypedLogger","FluxStore","FunnelLogger","RichMediaLoggingStoreUtils","SimpleNUXMessage","adsCanvasCurrentDocumentSelector"],(function(a,b,c,d,e,f,g){"use strict";var h,i;a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,i||(i=c("AdsDataAtom")))||this;b.$RichMediaEditorLoggerStore$p_1=!d("SimpleNUXMessage").hasUserSeenMessage_LEGACY("1733450480268575");return b}var e=b.prototype;e.__onDispatch=function(a){a=a.action;(i||(i=c("AdsDataAtom"))).waitFor((h||(h=d("AdsSelectorUtils"))).getStoreDispatchTokens([c("adsCanvasCurrentDocumentSelector")]));switch(a.type){case d("AdsCanvasDocumentReorderElementsDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SWITCH_ELEMENT);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.reorder_component").setReorderComponentDistance(Math.abs(a.source-a.target)));break;case d("AdsCanvasElementDeleteDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.REMOVE_ELEMENT);break;case d("AdsCanvasInitDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_1&&d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.FIRST_TIME_USER);if(a.canvasID){var b=a.canvasID;d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,"load_existing");d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,b);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setCanvasLoadType("load_existing").setEventName("load"))}else d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,"load_new"),d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.WELCOMESCREEN_SHOWN),d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setCanvasLoadType("load_new").setEventName("load"));break;case d("AdsCanvasDocumentInitDuplicateDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.INIT_DUPLICATE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_duplicate").setErrorCode(0));break;case d("AdsCanvasDocumentInitPublishDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.TOOLBAR_PUBLISH_CLICKED);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_publish").setErrorCode(0));break;case d("AdsCanvasDocumentInitSaveDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.INIT_SAVE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_save").setErrorCode(0));break;case d("AdsCanvasDocumentCreateSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CREATE_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.create_success").setErrorCode(0));break;case d("AdsCanvasDocumentDuplicateSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.DUPLICATE_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.duplicate_success").setErrorCode(0).setDuplicateParentCanvasID(a.parentCanvasID));break;case d("AdsCanvasDocumentLoadSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.LOAD_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.load_success").setErrorCode(0));break;case d("AdsCanvasDocumentSaveSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SAVE_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.save_success").setErrorCode(0),a.canvasID);break;case d("AdsCanvasDocumentCreateErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CREATE_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.create_failure").setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsCanvasDocumentDuplicateErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.DUPLICATE_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.duplicate_failure").setCanvasID(a.canvasID).setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsCanvasDocumentLoadErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.LOAD_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.load_failure").setCanvasID(a.canvasID).setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsCanvasDocumentSaveErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SAVE_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.save_failure").setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsRichMediaEditorSetInstagramValidationFailedDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.INSTAGRAM_VALIDATION_ERROR);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.instagram_validation_error").setIncompleteElements(a.elementValidation.errorMsg.toString()));break;case d("AdsRichMediaEditorSetValidationFailedDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VALIDATION_ERROR);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.validation_error").setIncompleteElements(a.validation.errorMsg.toString()));break;case d("AdsCanvasDocumentSetTitleDataActionFlux").actionType:d("FunnelLogger").appendActionIfNew(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CHANGE_CANVAS_TITLE);break;case d("AdsRichMediaEditorLoadPageDataSuccessDataActionFlux").actionType:a.logger!=null&&a.logger.setPageCanvasCount(typeof a.pageCanvasCount==="number"||typeof a.pageCanvasCount==="string"?a.pageCanvasCount:null).setPagePublishedCanvasCount(typeof a.pagePublishedCanvasCount==="number"||typeof a.pagePublishedCanvasCount==="string"?a.pagePublishedCanvasCount:null).log();a.funnelLogger!=null&&(typeof a.pageCanvasCount==="number"&&a.pageCanvasCount<=d("AdsCanvasConstants").DEFAULT_PAGE_CANVAS_COUNT&&(a.funnelLogger instanceof c("CanvasCreationWaterfallTypedLogger")||d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.PAGE_HAS_NEVER_CREATED)),typeof a.pagePublishedCanvasCount==="number"&&a.pagePublishedCanvasCount<=d("AdsCanvasConstants").DEFAULT_PAGE_PUBLISHED_CANVAS_COUNT&&(a.funnelLogger instanceof c("CanvasCreationWaterfallTypedLogger")||d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.PAGE_HAS_NEVER_PUBLISHED)));this.__emitChange();break;case d("AdsRichMediaEditorLoadPageDataErrorDataActionFlux").actionType:a.logger!=null&&a.logger.log();this.__emitChange();break;case d("AdsCanvasDocumentAddNewElementsDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.ADD_ELEMENT);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventDetails(JSON.stringify(a.elements.toJSON())).setEventName("editor.add_element"));break;case d("AdsRichMediaEditorSetSwipeToOpenEnabledDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SWIPE_TO_OPEN_TOGGLED);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventDetails(String(a.value)).setEventName("editor.swipe_to_open_toggled"));break;case d("AdsRichMediaEditorToolbarPublishClickDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.TOOLBAR_PUBLISH_CLICKED);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.toolbar_publish_clicked").setIncompleteElements(a.elementValidation&&!a.elementValidation.isValid?a.elementValidation.errorMsg.toString():null));break;case d("AdsRichMediaEditorSetDocumentUrlDialogShownDataActionFlux").actionType:a.dialogShown&&d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.GET_URL);break;case d("AdsRichMediaEditorSetSendingPreviewDataActionFlux").actionType:a.sendingPreview&&d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_SELF);break;case d("AdsRichMediaEditorSetPreviewFailedDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_FAIL);break;case d("AdsCanvasInlineBuilderBuilderNuxTourCompleteDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("canvas_inline_builder_nux_tour_complete").setEventDetails(String(a.templateID)).setNuxTourStep(a.nuxStep));break;case d("AdsCanvasInlineBuilderBuilderNuxTourXoutDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("canvas_inline_builder_nux_tour_xout").setEventDetails(String(a.templateID)).setNuxTourStep(a.nuxStep));break;case d("AdsCanvasInlineBuilderShowInlineModalDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("exit_inline_modal");this.$RichMediaEditorLoggerStore$p_3();break;case d("AdsCanvasCollectionPreviewToFacebookDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.preview_success_to_fb");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_SELF);break;case d("AdsUEditorAdgroupSetCanvasDocumentDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("save_from_inline_builder");this.$RichMediaEditorLoggerStore$p_3();break;case d("AdsCanvasPhotoUploaderImageUploadErrorDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.photo_upload_error").setErrorCode(a.response?a.response.error:0).setErrorMessage(""));this.$RichMediaEditorLoggerStore$p_2("editor.photo_upload_error");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_UPLOAD_ERROR);break;case d("AdsCanvasPhotoUploaderImageUploadSuccessDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.photo_upload_success");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_UPLOAD_SUCCESS);break;case d("AdsCanvasPhotoUploaderLibraryCancelDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.photo_library_uploader_cancel");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_LIBRARY_UPLOADER_CANCEL);break;case d("AdsCanvasPhotoUploaderLibraryImageUploadDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.photo_library_uploader_image_upload");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_LIBRARY_UPLOADER_IMAGE_UPLOAD);break;case d("AdsCanvasPhotoUploaderLibraryOpenDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.photo_library_uploader_open");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_LIBRARY_UPLOADER_OPEN);break;case d("AdsCanvasVideoUploaderLibraryOpenDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.video_library_uploader_open");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_OPEN);break;case d("AdsCanvasVideoUploaderLibraryVideoClickDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.video_library_uploader_video_click");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_CLICK);break;case d("AdsCanvasVideoUploaderLibraryVideoUploadDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.video_library_uploader_video_upload");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_UPLOAD);break;case d("AdsCanvasVideoUploaderLibraryVideoSelectExistingDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.video_library_uploader_video_select_existing");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_SELECT_EXISTING);break;case d("AdsCanvasVideoUploaderLibraryCancelDataActionFlux").actionType:this.$RichMediaEditorLoggerStore$p_2("editor.video_library_uploader_cancel");this.$RichMediaEditorLoggerStore$p_4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_CANCEL);break}};e.$RichMediaEditorLoggerStore$p_2=function(a,b){d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName(a).setEventDetails(JSON.stringify(b)))};e.$RichMediaEditorLoggerStore$p_4=function(a){d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,a)};e.$RichMediaEditorLoggerStore$p_3=function(){d("AdsCanvasEditorFunnelLogging").endFunnel()};return b}(c("FluxStore"));a.__moduleID=f.id;b=new a(i||(i=c("AdsDataAtom")));g["default"]=b}),98);
-----
AdsCanvasUnifiedBuilderElementTitleContainer.react",["AdsCanvasEditorFunnelLoggingConstants","AdsCanvasElementActions","AdsCanvasUnifiedBuilderElementTitle.react","AdsFluxContainer","FunnelLogger","GeoSpinner.react","adsCanvasUnifiedBuilderElementTitleSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
AdsCanvasButtons.react",["cx","fbt","ix","AdsCanvasAdvancedRendering","AdsCanvasEditorFunnelLoggingConstants","AdsUEditorAdgroupCanvasInlineAdvanceBuilderCreateButton.react","AdsUEditorAdgroupCanvasInlineAdvanceBuilderLink.react","AdsUEditorAdgroupCanvasInlineAdvanceBuilderPreviewButton.react","FunnelLogger","Image.react","XUIButton.react","XUIButtonGroup.react","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react");function a(a){var b=a.canvas,e=a.canvasRenderingMode,g=a.disabled,h=a.onClick,k=a.onClickCreate,m=a.onClickPreview,n=a.source;switch(e){case c("AdsCanvasAdvancedRendering").LINK:case c("AdsCanvasAdvancedRendering").LINK_WITH_NO_TOOLTIP:return l.jsx(c("AdsUEditorAdgroupCanvasInlineAdvanceBuilderLink.react"),{hasTooltip:e===c("AdsCanvasAdvancedRendering").LINK,onOpenAdvancedBuilder:q});case c("AdsCanvasAdvancedRendering").CREATE:return l.jsx(c("AdsUEditorAdgroupCanvasInlineAdvanceBuilderCreateButton.react"),{onOpenAdvancedBuilder:q});case c("AdsCanvasAdvancedRendering").DROPDOWN:return l.jsx("div",{});case c("AdsCanvasAdvancedRendering").PREVIEW:return l.jsx(c("AdsUEditorAdgroupCanvasInlineAdvanceBuilderPreviewButton.react"),{onOpenAdvancedBuilder:r});default:break}return l.jsxs(c("XUIButtonGroup.react"),{className:"_44jh",children:[p(),o()]});function o(){return l.jsx(c("XUIButton.react"),{className:"_44jg","data-testid":void 0,disabled:g,image:l.jsx(c("Image.react"),{src:j("378289")}),label:i._("Plus"),labelIsHidden:!0,onClick:q})}o.displayName=o.name+" [from "+f.id+"]";function p(){return!b?null:l.jsx(c("XUIButton.react"),{className:"_44jg","data-testid":void 0,disabled:g,image:l.jsx(c("Image.react"),{src:j("122868")}),label:i._("Show"),labelIsHidden:!0,onClick:r})}p.displayName=p.name+" [from "+f.id+"]";function q(a){a.stopPropagation(),k&&k(),h("newCanvasDialog"),d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,n)}function r(a){a.stopPropagation(),m&&m(),b&&(h(b.id),d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,n))}}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AdsCanvasEditorFunnelLogging",["AdsCanvasEditorFunnelLoggingConstants","CurrentUser","FunnelLogger","RichMediaEditorDataDispatcher","RichMediaEditorStore"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(){if(h)return;h=!0;d("FunnelLogger").startFunnel(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME);d("FunnelLogger").setFunnelTimeout(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TIMEOUT);c("CurrentUser").isEmployee()&&d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.IS_EMPLOYEE);d("RichMediaEditorDataDispatcher").getCanvasPageData(c("RichMediaEditorStore").getCanvasPageId(),null,d("FunnelLogger"))}function b(a){a&&a.map(function(a){d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,a)})}function e(a){d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,a)}function f(){if(!h)return;h=!1;d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.EDITOR_EXIT);d("FunnelLogger").endFunnel(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME);c("RichMediaEditorStore").setIsNotNewUser()}function i(){var a=new Set(),b=d("FunnelLogger").getFunnelInstance(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME);b=b?b.getTags():null;if(!b)return Array.from(a);for(b in b)a.add(b);return Array.from(a)}g.startFunnel=a;g.logGKExposures=b;g.addFunnelTag=e;g.endFunnel=f;g.parseAndMergeFunnelTags=i}),98);
-----
AdsCanvasEditorFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="WWW_CANVAS_EDITOR_FUNNEL";b={ADD_ELEMENT:"add_element",BACK_TO_MENU:"back_to_menu",CREATE_FAILURE:"create_failure",CREATE_POST:"create_post",CREATE_SUCCESS:"create_success",CHANGE_CANVAS_TITLE:"change_canvas_title",CHANGE_ELEMENT_TITLE:"change_element_title",DUPLICATE:"duplicate",DUPLICATE_FAILURE:"duplicate_failure",DUPLICATE_SUCCESS:"duplicate_success",GET_URL:"get_url",GETTING_STARTED_GUIDE:"getting_started_guide",INIT_DUPLICATE:"init_duplicate",INIT_SAVE:"init_save",INSTAGRAM_VALIDATION_ERROR:"instagram_validation_error",LOAD_FAILURE:"load_failure",LOAD_SUCCESS:"load_success",PHOTO_UPLOAD_ERROR:"editor.photo_upload_error",PHOTO_UPLOAD_SUCCESS:"editor.photo_upload_success",EDITOR_PHOTO_UPLOAD_TIMEOUT:"editor.photo_upload_timeout",PHOTO_LIBRARY_UPLOADER_OPEN:"editor.photo_library_uploader_open",PHOTO_LIBRARY_UPLOADER_IMAGE_UPLOAD:"editor.photo_library_uploader_image_upload",PHOTO_LIBRARY_UPLOADER_CANCEL:"editor.photo_library_uploader_cancel",PHOTO_MANUAL_UPLOADER_OPEN:"editor.photo_manual_uploader_open",PHOTO_MANUAL_UPLOADER_IMAGE_UPLOAD:"editor.photo_manual_uploader_image_upload",VIDEO_LIBRARY_UPLOADER_CANCEL:"editor.video_library_uploader_cancel",VIDEO_LIBRARY_UPLOADER_OPEN:"editor.video_library_uploader_open",VIDEO_LIBRARY_UPLOADER_VIDEO_CLICK:"editor.video_library_uploader_video_click",VIDEO_LIBRARY_UPLOADER_VIDEO_IMPORT:"editor.video_library_uploader_video_import",VIDEO_LIBRARY_UPLOADER_VIDEO_SELECT_EXISTING:"editor.video_library_uploader_video_select_existing",VIDEO_LIBRARY_UPLOADER_VIDEO_UPLOAD:"editor.video_library_uploader_video_upload",VIDEO_MANUAL_UPLOADER_OPEN:"editor.video_manual_uploader_open",VIDEO_MANUAL_UPLOADER_VIDEO_UPLOAD:"editor.video_manual_uploader_video_upload",PREVIEW_FAIL:"preview_fail",PREVIEW_SELF:"preview_self",PREVIEW_SHARE:"preview_share",PUBLISH:"publish_canvas",PUBLISH_FAILURE:"publish_failure",REMOVE_ELEMENT:"remove_element",SAVE:"save_canvas",SAVE_INCOMPLETE_ELEMENTS:"save_incomplete_elements",SAVE_FAILURE:"save_failure",SAVE_SUCCESS:"save_success",SWIPE_TO_OPEN_TOGGLED:"swipe_to_open_toggled",SWITCH_ELEMENT:"switch_element",TEMPLATE_PREVIEW_LAYOUT:"template_preview_layout",TEMPLATE_SELECT_LAYOUT:"template_select_layout",TEMPLATE_DOWNLOAD_LAYOUT:"template_download_layout",TOOLBAR_PUBLISH_CLICKED:"toolbar_publish_clicked",UPLOAD_VIDEO:"upload_video",VALIDATION_ERROR:"validation_error",WELCOMESCREEN_BLANKCANVAS:"welcome_screen_blankcanvas",WELCOMESCREEN_EXAMPLES:"welcome_screen_examples",WELCOMESCREEN_TEMPLATE:"welcome_screen_template",WELCOMESCREEN_TIPS:"welcome_screen_tips",WELCOMESCREEN_TOUR:"welcome_screen_tour",WEBPARSING_SET_URL:"webparsing.set_url",WEBPARSING_LOADING_MEDIA:"webparsing.loading_media",WEBPARSING_LOADING_SUCCESS:"webparsing.loading_success",WEBPARSING_LOADING_FAIL:"webparsing.loading_fail",WEBPARSING_TOGGLE_PANNEL:"webparsing.toggle_pannel",WEBPARSING_IMAGE_SELECT:"webparsing.image_select",WEBPARSING_CONTINUE_BUILDER:"webparsing.continue_to_builder"};c=999999;d={EDITOR_EXIT:"editor_exit",FIRST_TIME_USER:"first_time_user",IS_EMPLOYEE:"is_employee",LOAD_EXISTING_DOC_WITH_VALIDATION_ERRORS:"load_existing_doc_with_validation_errors",PAGE_HAS_NEVER_CREATED:"page_has_never_created",PAGE_HAS_NEVER_PUBLISHED:"page_has_never_published",WELCOMESCREEN_SHOWN:"welcome_screen_shown"};f.FUNNEL_LOGGING_NAME=a;f.FUNNEL_LOGGING_EVENT=b;f.FUNNEL_LOGGING_TIMEOUT=c;f.FUNNEL_LOGGING_TAGS=d}),66);
-----
useStoriesLWR.react",["CometRelay","CometRouteParams","Random","StoriesEnums","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","react","useStoriesLWRKeyframes","useStoriesLWR_animations.graphql","useStoriesSendReply"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useCallback,k=e.useContext,l=.55,m=(f={},f["1635855486666999"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.LIKE,f["1678524932434102"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.LOVE,f["115940658764963"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.HAHA,f["478547315650144"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.WOW,f["908563459236466"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.SORRY,f["444813342392137"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.ANGER,f["613557422527858"]=d("StoriesEnums").LIGHTWEIGHT_REACTION_UNICODES.SUPPORT,f),n=h!==void 0?h:h=b("useStoriesLWR_animations.graphql");function a(a){var b=a.animations,e=a.cardID,f=a.isClicked,g=f===void 0?!1:f,h=a.setPause;f=d("CometRelay").useFragment(n,b);a=k(c("StoriesLoggerContext"));var i=a.logger;b=c("useStoriesSendReply")();var o=b.sendLWR,p=d("CometRouteParams").useRouteParams();a=j(function(){g&&h(!0,d("StoriesPauseReasons").LWR_PLAYBACK)},[g,h]);b=j(function(a){g&&a.length===0&&h(!1,d("StoriesPauseReasons").LWR_PLAYBACK)},[g,h]);var q=j(function(){return g?{random:-1,scale:1}:{random:d("Random").random(),scale:1+d("Random").random()*l}},[g]);q=c("useStoriesLWRKeyframes")({initializeVisualAttributes:q,onKeyframesRemoved:b,onKeyframesSelected:a,viewer:f});b=q[0];var r=q[1];a=j(function(a){e!=null&&g&&(o({storyID:e,unicode:m[a]},i),p.source===c("StoriesLoggingConstants").ACTION_SOURCE.FROM_FEED_INLINE_VIEWER&&i.sifAutoplayLwrLog(c("StoriesLoggingConstants").ACTION_SOURCE.FROM_FEED_INLINE_VIEWER)),r(a)},[r,e,g,i,p.source,o]);return[b,a]}g["default"]=a}),98);
-----
useStoriesSendReply",["CometRelay","StoriesActorContext","StoriesGating","StoriesLoggingConstants","StoryReplyType","cometPushToast","react","useMinifiedProductAttribution","useStoriesSendReplyMutation.graphql","useStoriesShowSentTextToast","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useContext,k=e.useMemo,l=function(a,b,d){var e=a.get(b.storyID);e=e&&e.getLinkedRecord("story_card_info");e=e&&e.getLinkedRecord("story_card_reactions",{first:10});if(e==null)return;var f=null,g=null,h=null,i=e.getLinkedRecords("edges");if(i==null||i.length===0){var j,k=a.create("client:newNode:"+(j=c("uuidv4"))(),"MessagingActor");k.setValue(d,"id");k.setValue("User","__typename");d=a.create("client:newNode:"+j(),"MessengerMontageMessageActionsOfReactionConnection");h=[];d.setLinkedRecords(h,"edges");g=d;var l=a.create("client:newNode:"+j(),"MessengerMontageMessageReaction");l.setLinkedRecord(k,"messaging_actor");l.setLinkedRecord(d,"messaging_actions");f=l;k=a.create("client:newNode:"+j(),"StoryCardReactionsEdge");k.setLinkedRecord(l,"node");i=[k];e.setLinkedRecords(i,"edges")}else f=i[0]&&i[0].getLinkedRecord("node"),g=f&&f.getLinkedRecord("messaging_actions"),h=g&&g.getLinkedRecords("edges");if(g==null||h==null||f==null)return;d=a.create("client:newNode:"+c("uuidv4")(),"MessengerMontageMessageAction");d.setValue(b.unicode,"reaction");j=a.create("client:newNode:"+c("uuidv4")(),"MessengerMontageMessageActionsOfReactionEdge");j.setLinkedRecord(d,"node");h.push(j);g.setLinkedRecords(h,"edges");g.setValue(h.length,"count")},m=h!==void 0?h:h=b("useStoriesSendReplyMutation.graphql");function n(a){var b;return(b=Object.keys(c("StoryReplyType")).find(function(b){return c("StoryReplyType")[b]===a}))!=null?b:"UNKNOWN"}function a(a,b){var e=d("CometRelay").useRelayEnvironment(),f=j(c("StoriesActorContext")),g=f.actorID,h=c("useMinifiedProductAttribution")(),i=c("useStoriesShowSentTextToast")(a,b);return k(function(){var a=function(a,b){return d("CometRelay").commitMutation(e,{mutation:m,onCompleted:function(a,d){i(),b.replyAttemptCompletedLog(c("StoryReplyType").GIF,d==null?null:d[0])},onError:function(a){b.replyAttemptCompletedLog(c("StoryReplyType").GIF,a)},variables:{input:{attribution_id_v2:h,gif_url:a.gifUrl,story_id:a.storyID,story_reply_type:n(c("StoryReplyType").GIF)}}})},b=function(a,b){return d("CometRelay").commitMutation(e,{mutation:m,onCompleted:function(a,d){b.replyAttemptCompletedLog(c("StoryReplyType").LIGHT_WEIGHT,d==null?null:d[0])},onError:function(a){b.replyAttemptCompletedLog(c("StoryReplyType").LIGHT_WEIGHT,a)},optimisticUpdater:function(b){return l(b,a,g)},variables:{input:{attribution_id_v2:h,lightweight_reaction_actions:{offsets:[a.timeOffset||0],reaction:a.unicode},message:a.unicode,story_id:a.storyID,story_reply_type:n(c("StoryReplyType").LIGHT_WEIGHT)}}})},f=function(a,b){var f=a.isContextualReply===!0?c("StoryReplyType").CONTEXTUAL_REPLY:c("StoryReplyType").STICKER;return d("CometRelay").commitMutation(e,{mutation:m,onCompleted:function(a,c){i();b.replyAttemptCompletedLog(f,c==null?null:c[0]);a=c==null;d("StoriesGating").isTest()&&a&&d("cometPushToast").cometPushSimpleToast("sticker reply successful")},onError:function(a){b.replyAttemptCompletedLog(f,a)},variables:{input:{attribution_id_v2:h,sticker_id:a.stickerID,story_id:a.storyID,story_reply_type:n(f)}}})},j=function(a,b,f,g){f.replyLog(c("StoriesLoggingConstants").ACTION_TYPE.SEND_REPLY_ATTEMPT);var j=b===!0?c("StoryReplyType").CONTEXTUAL_REPLY:c("StoryReplyType").TEXT;return d("CometRelay").commitMutation(e,{mutation:m,onCompleted:function(b){function a(a,c){return b.apply(this,arguments)}a.toString=function(){return b.toString()};return a}(function(a,b){i();f.replyAttemptCompletedLog(j,b==null?null:b[0]);g&&g(b);a=b==null;d("StoriesGating").isTest()&&a&&d("cometPushToast").cometPushSimpleToast("text reply successful")}),onError:function(a){f.replyAttemptCompletedLog(j,a)},variables:{input:{attribution_id_v2:h,message:a.message,story_id:a.storyID,story_reply_type:n(j)}}})};return{sendGif:a,sendLWR:b,sendSticker:f,sendText:j}},[g,e,h,i])}g["default"]=a}),98);
-----
StoriesLivePageUFI.react",["fbt","CometPressable.react","CometRelay","StoriesLivePageUFI_video.graphql","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","react","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useContext,m=e.useEffect,n=e.useRef;function a(a){var e=a.isLive,f=a.setPause;a=a.video;a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesLivePageUFI_video.graphql"),a);var g=c("usePlayerOriginRouteTracePolicy")(),j=l(c("StoriesLoggerContext")),o=j.logger,p=n(!1);m(function(){!p.current&&o!=null&&(p.current=!0,o.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PAGE_CTA_IMPRESSION))},[o]);return k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"x1useyqa"}),k.jsx(c("CometPressable.react"),{"aria-label":h._("Watch Live Broadcast"),linkProps:{passthroughProps:{initialTracePolicy:g,playerSubOrigin:"story_viewer_live_cta"},url:a==null?void 0:a.url},onHoverIn:function(){return f(!0,d("StoriesPauseReasons").WATCH_BROADCAST_CTA)},onHoverOut:function(){return f(!1,d("StoriesPauseReasons").WATCH_BROADCAST_CTA)},onPress:function(){o.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PAGE_CTA_TAP)},children:k.jsx("div",{className:"x14hiurz x107yiy2 xv8uw2v x1tfwpuw x2g32xy x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x1p6odiv x1f6kntn xmix8c7 x14ju556 x1cnzs8 x4uap5 xx6bls6 xkhd6sd x2b8uid xzzq9k6",children:e?h._("Watch Live Video"):h._("Watch Video")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StoriesTextReplyBar.react",["fbt","CometRelay","CometRouteParams","LSMessagingThreadAttributionType","StoriesFeedbackDraftEditor.react","StoriesFeedbackEditorStateContext","StoriesFeedbackStickerRepliesWrapper.react","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","StoriesTextReplyBar_armadillo.graphql","isStringNullOrEmpty","react","stylex","useStoriesReplyWithArmadillo.react","useStoriesSendReply"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p={hidden:{display:"x1s85apg",$$css:!0},inputDiv:{alignItems:"x6s0dn4",color:"xzsf02u",display:"x78zum5",fontSize:"x1jchvi3",marginStart:"x1i64zmx",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",width:"x1tfq5i0",$$css:!0},inputDivFocused:{width:"xh8yej3",$$css:!0},root:{alignItems:"x6s0dn4",alignSelf:"xamitd3",backgroundColor:"xjbqb8w",borderTopColor:"x1g7gg9k",borderEndColor:"xenha5r",borderBottomColor:"x1eoefnw",borderStartColor:"x124h113",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",boxShadow:"x1ikoz65",display:"x78zum5",flexBasis:"x4m03bp",height:"x16wdlz0",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",transitionDuration:"x1g2r6go",transitionProperty:"xh85dmp",transitionTimingFunction:"xwji4o3",$$css:!0},rootFocused:{flexBasis:"x1l7klhg",$$css:!0},stickerPickerContainer:{paddingEnd:"xpvbz4a",$$css:!0},vdsInputDiv:{color:"x14ctfv",width:"xloyg6u",$$css:!0},vdsInputDivWOComments:{marginStart:"xwycmqc",$$css:!0}},q=null;function a(a){var e=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTextReplyBar_armadillo.graphql"),a.storyCardInfo),f=a.cardID,g=a.isPage,k=a.ownerId,r=a.ownerName,s=c("useStoriesSendReply")(r,g),t=s.sendGif,u=s.sendSticker,v=d("CometRouteParams").useRouteParams(),w=function(){q!=null&&(window.clearTimeout(q),q=null)};o(w,[]);s=n(c("StoriesLoggerContext"));var x=s.logger,y=function(){w(),a.onTransitionEnd!=null&&(q=window.setTimeout(a.onTransitionEnd,110))};s=n(c("StoriesFeedbackEditorStateContext"));var z=s.inputFocused,A=s.onEmojiSelect,B=s.onFocus,C=s.setInputFocused;s=m(function(b){b=b.stickerID;c("isStringNullOrEmpty")(b)||u({stickerID:b,storyID:a.cardID},x)},[u,a.cardID,x]);var D=m(function(){B(),v.source===c("StoriesLoggingConstants").ACTION_SOURCE.FROM_FEED_INLINE_VIEWER&&x.sifAutoplayTextReplyLog(c("StoriesLoggingConstants").ACTION_SOURCE.FROM_FEED_INLINE_VIEWER)},[B,v.source,x]),E=m(function(b){t({gifUrl:b.source.url,storyID:a.cardID},x)},[t,a.cardID,x]),F=function(){a.setPause(!1,d("StoriesPauseReasons").FOCUSE_ON_INPUT),C(!1),y(),a.onInputFocused(!1)},G=function(){w(),a.onTransitionEnd&&a.onTransitionEnd()};e=c("useStoriesReplyWithArmadillo.react")({armadilloStoryReplyMeta:e,cardID:f,isPage:g,ownerName:r,source:c("LSMessagingThreadAttributionType").FB_STORY_STORIES_VIEWER_CONSUMER_REPLY,userId:k});f=z?h._("Reply to {Story"s owner"s name}u2026",[h._param("Story"s owner"s name",a.ownerName)]):h._("Replyu2026");return l.jsxs("div",{className:(j||(j=c("stylex")))(p.root,z&&p.rootFocused),"data-testid":void 0,onTransitionEnd:G,children:[l.jsx("div",{className:j(p.inputDiv,p.vdsInputDiv,p.vdsInputDivWOComments,z&&p.inputDivFocused),children:l.jsx(c("StoriesFeedbackDraftEditor.react"),{cardID:a.cardID,feedbackParentRef:a.feedbackParentRef,hidden:a.hidden,onBlur:F,onFocus:D,onSend:e,ownerName:a.ownerName,placeholder:f.toString()})}),!d("StoriesGating").shouldEnableArmadilloStoryReply()&&l.jsx("div",{className:(j||(j=c("stylex")))(z&&p.hidden,p.stickerPickerContainer),children:l.jsx(c("StoriesFeedbackStickerRepliesWrapper.react"),{onEmojiSelect:function(a){D(),A(a)},onGifSelect:E,onStickerSelect:s})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
useStoriesCardTimespentLogging",["FBStoriesBanzaiConstants","StoriesLoggerContext","StoriesLoggingConstants","StoryCardTimespentFalcoEvent","TopOfFeedLoggingContext","react","useMinifiedProductAttribution","useVPVDImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext;function a(){var a=j(c("StoriesLoggerContext")),b=a.logger;a=j(c("TopOfFeedLoggingContext"));var d=a.tofuSessionID,e=c("useMinifiedProductAttribution")();a=i(function(a){var f=a.visibleDuration,g=b.getImpressionData(c("FBStoriesBanzaiConstants")==null?void 0:c("FBStoriesBanzaiConstants").TIMESPENT);if(g==null)return;c("StoryCardTimespentFalcoEvent").log(function(){return{card_id:g.card_id,media_id:g.media_id,media_index:g.media_index,media_type:g.media_type,nav_attribution_id_v2:e,seen_state_triggered:g.source===c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER?g.seen_state_triggered:null,source:g.source,story_owner:g.story_owner,story_owner_type:g.story_owner_type,thread_id:g.thread_id,timespent:f,timespent_unit:"ms",tofu_tray_session_id:d,tray_session_id:g.tray_session_id,viewer_session_id:g.viewer_session_id}})},[b,d]);return c("useVPVDImpression")({isLite:!0,minVisibleTimeMs:c("StoriesLoggingConstants").TIMESPENT_MINIMUM_TIME,onVPVDEnd:a})}g["default"]=a}),98);
-----
useStoriesCardImpressionLogging",["FBStoriesBanzaiConstants","StoriesLoggerContext","StoriesLoggingConstants","StoryCardImpressionFalcoEvent","react","usePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useContext,k=new Map();function a(){var a=j(c("StoriesLoggerContext")),b=a.logger;a=i(function(){var a=b.getImpressionData(c("FBStoriesBanzaiConstants")==null?void 0:c("FBStoriesBanzaiConstants").IMPRESSION);if(a==null)return;var d=Date.now(),e=a.card_id,f=k.get(e);if(f!=null&&d-f
StoriesFeedbackDraftEditor.react",["fbt","CometComponentWithKeyCommands.react","CometPressable.react","DeferredDraftEditorDEPRECATED.react","StoriesFeedbackEditorStateContext","StoriesFeedbackStickerRepliesWrapper.react","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","StoriesSendFilled20IconSVG.react","TetraIcon.react","getPlainTextFromDeferredDraftEditorState_DEPRECATED_DO_NOT_USE","isStringNullOrEmpty","react","stylex","useGlobalEventListener","useStoriesFeedbackKeyboardCommandsConfig","useStoriesSendReply"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useContext,n=b.useEffect,o=b.useRef,p=b.useState,q={accessibleElement:{clip:"x1qvwoe0",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",whiteSpace:"xuxw1ft",width:"x1i1rx1s",$$css:!0},actionButtons:{alignItems:"x6s0dn4",display:"x78zum5",marginEnd:"xr12ei9",$$css:!0},input:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xh8yej3",$$css:!0},inputWOComments:{height:"x17rw0jw",$$css:!0},sendButton:{marginStart:"xsgj6o6",marginLeft:null,marginRight:null,$$css:!0}};function a(a){var b=a.cardID,e=a.feedbackParentRef;a.hidden;var f=a.onBlur,g=a.onFocus,j=a.onSend,r=a.ownerName;a=a.placeholder;var s=p(!1),t=s[0],u=s[1];s=p(!1);var v=s[0],w=s[1];s=m(c("StoriesFeedbackEditorStateContext"));var x=s.contextualReplyRef,y=s.contextualReplyShown,z=s.contextualReplyTapped,A=s.editorState,B=s.inputFocused,C=s.mostRecentTappedID,D=s.onEmojiSelect,E=s.resetEditorState,F=s.setContextualReplyTapped,G=s.setEditorState,H=s.setMostRecentTappedID;s=c("useStoriesSendReply")(r);var I=s.sendGif,J=s.sendSticker;r=m(c("StoriesLoggerContext"));var K=r.logger,L=o(null),M=o(!1),N=o(!1),O=o(null);n(function(){F(!1),w(!1),H(null)},[b,F,w,H]);c("useGlobalEventListener")("keydown",function(a){var b=O.current;if(b&&a.target instanceof Node&&!a.target.contains(b))return;b=String.fromCharCode(a.keyCode);b.match(/w/)&&(O.current&&O.current.focus(),z&&w(!0))});var P=l(function(a){a===void 0&&(a=!0);if(M.current||N.current)return;window.clearTimeout(L.current);L.current=window.setTimeout(function(){u(!1),f(),a&&(O.current&&O.current.blur())})},[f]),Q=l(function(a){a===void 0&&(a=!0),window.clearTimeout(L.current),a&&(u(!0),g())},[u,g]);c("useGlobalEventListener")("click",l(function(a){var b;a=a.target;if(!t)return;if(a===e||a instanceof Node&&(e==null?void 0:(b=e.current)==null?void 0:b.contains(a)))return;P()},[e,t,P]));var R=c("getPlainTextFromDeferredDraftEditorState_DEPRECATED_DO_NOT_USE")(A).trim(),S=R==="";s=l(function(){if(S)return;j(R);y&&K.replySentWhenSmartReplyShownLog(v,C,z,c("StoriesLoggingConstants").STORY_REPLY_TYPE.TEXT_SUGGESTION);E();P()},[y,z,v,P,K,C,S,j,E,R]);r=l(function(a){a=a.stickerID;c("isStringNullOrEmpty")(a)||(J({stickerID:a,storyID:b},K),P())},[J,b,K,P]);var T=l(function(a){I({gifUrl:a.source.url,storyID:b},K),P()},[I,b,K,P]),U=c("useStoriesFeedbackKeyboardCommandsConfig")({onEnter:s,onEscape:P});return k.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np xh8yej3",onBlurCapture:function(a){if(x.current!=null&&x.current.contains(a.relatedTarget))return;P(a.target===O.current)},onFocusCapture:function(a){Q(a.target===O.current)},children:[k.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:U,xstyle:[q.input,q.inputWOComments],children:k.jsx(c("DeferredDraftEditorDEPRECATED.react"),{customStyleFn:function(){return{caretColor:"white",whiteSpace:"pre",wordWrap:"normal"}},editorState:A,handleReturn:function(a){a.preventDefault();return"handled"},onInputRefUpdate:function(a){O.current=a},onStateChange:function(a){G(a)},placeholder:a})}),k.jsxs("div",{className:(i||(i=c("stylex")))(q.actionButtons,!t&&!B&&q.accessibleElement),children:[!d("StoriesGating").shouldEnableArmadilloStoryReply()&&k.jsx(c("StoriesFeedbackStickerRepliesWrapper.react"),{onEmojiSelect:D,onGifSelect:T,onStickerSelect:r,onVisibilityChange:function(a){N.current=a}}),k.jsx(c("CometPressable.react"),{"aria-label":h._("Send button for story text reply"),disabled:S,hideHoverOverlay:!0,onPress:s,testid:void 0,xstyle:q.sendButton,children:k.jsx(c("TetraIcon.react"),{color:S?"disabled":"white",icon:c("StoriesSendFilled20IconSVG.react"),size:20})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StoriesCardWatchLiveVideoCTA.react",["fbt","CometPressable.react","StoriesLoggerContext","StoriesLoggingConstants","react","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useContext,l=b.useEffect,m=b.useRef,n={videoButton:{backgroundColor:"xfuphoe",borderTopColor:"xgjxtca",borderEndColor:"xnuwv8w",borderBottomColor:"x1lqxvo2",borderStartColor:"xgi2ibe",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",color:"x14ctfv",paddingTop:"x1yrsyyn",paddingEnd:"x1sxyh0",paddingBottom:"x10b6aqq",paddingStart:"xurb0ha",$$css:!0}};function a(a){var b=a.isLive;a=a.url;var d=k(c("StoriesLoggerContext")),e=d.logger,f=m(!1);l(function(){!f.current&&e!=null&&(f.current=!0,e.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PROFILE_CTA_IMPRESSION))},[e]);d=c("usePlayerOriginRouteTracePolicy")();return j.jsx(c("CometPressable.react"),{linkProps:{passthroughProps:{initialTracePolicy:d,playerSubOrigin:"story_viewer_live_cta"},url:a},onPress:function(){return e.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PROFILE_CTA_TAP)},xstyle:n.videoButton,children:b?h._("Watch Live Video"):h._("Watch Video")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
StoriesCardSingleAuthorHeaderLive.react",["fbt","ix","CometColumn.react","CometColumnItem.react","CometImage.react","CometLink.react","CometPressable.react","CometProfileVerificationBadge.react","CometRelativeTimestamp.react","CometRelay","CometRow.react","CometRowItem.react","FDSIcon.react","FDSText.react","FDSTextWithBadge.react","FriendEditFilled12.svg.react","FriendListCometCloseFriendsBadge","FriendListCometCloseFriendsGating","FriendsFilled12.svg.react","GlobeAmericasFilled12.svg.react","JSResourceForInteraction","LiveVideoCometProfilePhotoWithLiveBadge.react","Locale","QuestionCircleFilled12.svg.react","SVGIcon","ShareableAttributionType","StoriesBehaviorHelpContext","StoriesCardSingleAuthorHeaderAttributionComponent.react","StoriesCardSingleAuthorHeaderLive_attribution.graphql","StoriesCardSingleAuthorHeaderLive_bucket.graphql","StoriesCardSingleAuthorHeaderLive_card.graphql","StoriesCardSingleAuthorHeaderLive_owner.graphql","StoriesCardWatchLiveVideoCTA.react","StoriesChevronLeftFilled12IconSVG.react","StoriesChevronRightFilled12IconSVG.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesMusicAttributionComponent.react","StoriesPaidPartnershipLabelAttributionComponent.react","StoriesPauseReasons","StoriesSubscribeCTA.react","StoriesSuspensePauseContext","TetraIcon.react","fbicon","formatDate","getJSEnumSafe","gkx","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.useCallback,q=e.useContext,r=e.useRef,s=c("JSResourceForInteraction")("StoriesCardHeaderSCMEPopup.react").__setRef("StoriesCardSingleAuthorHeaderLive.react"),t=c("JSResourceForInteraction")("StoriesCardHeaderAudienceDialog.react").__setRef("StoriesCardSingleAuthorHeaderLive.react");e=d("Locale").isRTL();var u={ownerInfoWidth:{alignItems:"x1pha0wt",width:"x1oid3cs",$$css:!0},ownerNamePressable:{maxWidth:"x193iq5w",$$css:!0},ownerPic:{borderTop:"x140qq3l",borderEnd:"x16cdy7c",borderBottom:"xwxlgbv",borderStart:"xilm9xq",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",display:"x1lliihq",height:"x1vqgdyp",objectFit:"xl1xv1r",width:"x100vrsf",$$css:!0}},v=function(a){return a?c("StoriesChevronLeftFilled12IconSVG.react"):c("StoriesChevronRightFilled12IconSVG.react")},w=o.jsx(c("TetraIcon.react"),{color:"white",icon:v(e),size:12}),x=function(a){var b=d("SVGIcon").svgIcon(c("QuestionCircleFilled12.svg.react"));switch(a){case"CUSTOM":b=d("SVGIcon").svgIcon(c("FriendEditFilled12.svg.react"));break;case"FRIENDS":b=d("SVGIcon").svgIcon(c("FriendsFilled12.svg.react"));break;case"PUBLIC":b=d("SVGIcon").svgIcon(c("GlobeAmericasFilled12.svg.react"))}return o.jsx(c("FDSIcon.react"),{color:"white",icon:b,size:12})};function y(a){switch(a){case"artist":return d("fbicon")._(i("886192"),12);case"paid_partnership_label":return d("fbicon")._(i("591549"),12);default:return null}}function z(a,b,d,e,f,g){if(a==null)return null;var h=y(d);if(e!=null&&g!=null&&d==="paid_partnership_label")return o.jsx(c("StoriesPaidPartnershipLabelAttributionComponent.react"),{attributionIcon:h,chevronIcon:w,shareableAttributionName:a,storyCardStoryInfo:g});else if(d==="artist"){return o.jsx(c("StoriesMusicAttributionComponent.react"),{attributionIcon:h,chevronIcon:w,shareableAttributionName:a,storyId:(e=f)!=null?e:""})}return o.jsx(c("StoriesCardSingleAuthorHeaderAttributionComponent.react"),{attributionIcon:h,chevronIcon:w,shareableAttributionName:a,shareableAttributionUrl:b})}z.displayName=z.name+" [from "+f.id+"]";function a(a){var e,f,g,i,n,v,w=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesCardSingleAuthorHeaderLive_owner.graphql"),a.owner),y=d("CometRelay").useFragment(k!==void 0?k:k=b("StoriesCardSingleAuthorHeaderLive_bucket.graphql"),a.bucket),A=d("CometRelay").useFragment(l!==void 0?l:l=b("StoriesCardSingleAuthorHeaderLive_attribution.graphql"),a.cardInfo),B=d("CometRelay").useFragment(m!==void 0?m:m=b("StoriesCardSingleAuthorHeaderLive_card.graphql"),a.story);e=(e=w)!=null?e:{};var C=e.gender,D=e.id,E=e.name;e=e.url;var F=w==null?void 0:(f=w.profile_picture)==null?void 0:f.uri;f=a.creationTime;var G=A==null?void 0:A.shareable_attribution,H=c("getJSEnumSafe")(c("ShareableAttributionType"),A==null?void 0:A.shareable_attribution_type),I=G==null?void 0:G.text;G=G==null?void 0:(G=G.ranges[0])==null?void 0:(G=G.entity)==null?void 0:G.url;var J=B==null?void 0:(g=B.profile_location_transparency_subtitle_text_with_entities)==null?void 0:g.text,K=B==null?void 0:(g=B.location_transparency_info)==null?void 0:g.helpcenter_id,L=y==null?void 0:y.audience_mode;g=w==null?void 0:(g=w.delegate_page)==null?void 0:g.id;i=(w==null?void 0:(i=w.delegate_page)==null?void 0:(i=i.woodhenge_creator_info)==null?void 0:(i=i.viewer_entrypoint_eligibility)==null?void 0:i.is_eligible)===!0;n=(w==null?void 0:(n=w.delegate_page)==null?void 0:(n=n.woodhenge_creator_info)==null?void 0:(n=n.viewer_active_subscription_entitlement)==null?void 0:n.subscription_entitlement_status)==="ACTIVE";var M=r(null),N=c("useCometLazyDialog")(s),O=N[0];N=c("useCometLazyDialog")(t);var P=N[0];N=q(c("StoriesSuspensePauseContext"));var Q=N.setPause;N=p(function(){var a=function(){Q(!1,d("StoriesPauseReasons").SCME_DIALOG)};Q(!0,d("StoriesPauseReasons").SCME_DIALOG);O({SCMELabel:J,helpcenterID:K,name:E,profilePicUri:F,unPause:a})},[O,E,J,F,K,Q]);var R=q(c("StoriesBehaviorHelpContext")).getCloseFriendsListId(),S=p(function(){var a=function(){Q(!1,d("StoriesPauseReasons").AUDIENCE_DIALOG)};Q(!0,d("StoriesPauseReasons").AUDIENCE_DIALOG);P({audienceMode:L,gender:C,name:E,profilePicUri:F,unPause:a})},[P,L,C,E,F,Q]);S=L!=null&&o.jsx("div",{className:"x1rg5ohu xsgj6o6 x1n2onr6 x17wnkk5",children:o.jsx(c("CometPressable.react"),{label:L,onPress:S,children:x(L)})});if(w==null)return null;v=A==null?void 0:(v=A.branded_content_post_info)==null?void 0:v.id;I=z(I,G,H,v,B==null?void 0:B.id,A);G=null;f!=null&&(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?G=c("formatDate")(new Date(f*1e3),"M j",{utc:!0}):G=o.jsx(c("CometRelativeTimestamp.react"),{date:new Date(f*1e3),format:"minimized"}));H=J!=null&&o.jsx("div",{className:"x1cy8zhl x78zum5 x1ye3gou x10lvyaf",children:o.jsx("div",{className:"x14hiurz x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1lliihq x1xmf6yo x1iorvi4 x1sxyh0 xjkvuk6 xurb0ha",children:o.jsx(c("CometPressable.react"),{display:"block",label:J,onPress:N,overlayDisabled:!0,ref:M,children:o.jsx("div",{className:"x1p6odiv x1nxh6w3 xk50ysn xo5v014",children:J})})})});v=D!=null&&w.is_verified===!0&&o.jsx(c("CometProfileVerificationBadge.react"),{isInverted:!0,profileID:D});B=(A==null?void 0:A.story_audience_mode)==="CLOSE_FRIENDS"&&d("FriendListCometCloseFriendsGating").isStoriesConsumptionEnabled()===!0&&o.jsx("div",{className:"xsgj6o6",children:o.jsx(c("FriendListCometCloseFriendsBadge"),{closeFriendsListId:R,storyOwnerName:E!=null?E.slice(0,E.indexOf(" ")):"",viewAuthorCloseFriendStatus:A==null?void 0:A.viewer_author_close_friend_status})});f=E!=null&&o.jsx("div",{className:"x17z8epw x78zum5 x1q0g3np xdj266r x11i5rnm xat24cr x1mh8g0r x3zf81a xeaf4i8",children:o.jsx(c("CometPressable.react"),{display:"block",linkProps:{url:e},onPress:a.onOwnerClick,overlayDisabled:!0,xstyle:u.ownerNamePressable,children:o.jsx(c("FDSText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink3",children:E})})});M=(N=y==null?void 0:y.is_bucket_live)!=null?N:!1;D=(A==null?void 0:(w=A.story_video_thumbnail)==null?void 0:w.broadcast_status)==="VOD_READY";y=(A==null?void 0:(R=A.story_video_thumbnail)==null?void 0:R.broadcast_status)==="LIVE";N=y||D;R=A==null?void 0:(w=A.story_video_thumbnail)==null?void 0:w.url;w=!(A==null?void 0:(D=A.story_video_thumbnail)==null?void 0:D.owner_has_professional_features);A=y?h._("Live now"):h._("Recorded live");D=o.jsxs(c("CometColumn.react"),{children:[o.jsx(c("CometColumnItem.react"),{children:o.jsxs(c("CometRow.react"),{align:"start",paddingVertical:0,spacingHorizontal:0,xstyle:u.ownerInfoWidth,children:[o.jsx(c("CometRowItem.react"),{children:f}),v&&o.jsx(c("CometRowItem.react"),{children:o.jsx(c("FDSTextWithBadge.react"),{badgeAfter:v,children:" "})}),!N&&o.jsx(c("CometRowItem.react"),{children:o.jsx("div",{className:"x17z8epw xsgj6o6 x3zf81a",children:o.jsx(c("FDSText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"meta3",children:G})})}),o.jsx(c("CometRowItem.react"),{children:B}),o.jsx(c("CometRowItem.react"),{children:S}),c("gkx")("1638")&&!n&&i&&g!=null&&o.jsx(c("CometRowItem.react"),{children:o.jsx(c("StoriesSubscribeCTA.react"),{pageID:g})})]})}),o.jsx(c("CometColumnItem.react"),{children:I!=null&&o.jsx(c("CometRowItem.react"),{children:o.jsx("div",{className:"x17z8epw x1ye3gou x1iorvi4 x3zf81a x18f6uos",children:I})})}),o.jsx(c("CometColumnItem.react"),{children:N&&o.jsx("div",{className:"x17z8epw x3zf81a x1mh8g0r x1ye3gou x889kno",children:o.jsxs(c("FDSText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"body3",children:[A,o.jsx("span",{className:"xdj266r xw3qccf xat24cr xsgj6o6",children:"u2022"}),G]})})})]});return o.jsxs("div",{className:"x6s0dn4 x78zum5 x10l6tqk xoie2o3 x12eol54 x1kp5rob","data-testid":void 0,children:[o.jsx("div",{className:"xqcrz7y x78zum5 xdt5ytf",children:o.jsx(c("CometLink.react"),{href:e,onClick:a.onOwnerClick,children:F!=null&&(M?o.jsx(c("LiveVideoCometProfilePhotoWithLiveBadge.react"),{alt:(f=E)!=null?f:"",profilePicUri:F,size:"small"}):o.jsx(c("CometImage.react"),{alt:(v=E)!=null?v:"",height:40,src:F,width:40,xstyle:u.ownerPic}))})}),o.jsxs("div",{className:"x78zum5 xdt5ytf x19sv2k2",children:[D,H]}),o.jsx("div",{className:"x10l6tqk xit27t2 x1ng4z2i",children:o.jsx(c("CometColumn.react"),{spacing:4,verticalAlign:"space-between",children:o.jsx(c("CometColumnItem.react"),{children:N&&R!=null&&w&&o.jsx(c("StoriesCardWatchLiveVideoCTA.react"),{isLive:y,url:R})})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LWICometCTAWhatsAppBizAppUpsellCouponNotice.react",["fbt","ix","AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","IconSource","JSResourceForInteraction","LWICometCTAWhatsAppBizAppUpsellCouponNoticeRootQuery.graphql","LWICometConstants","LWICometFormatCurrency","LWICometGenericEventsLoggerLite","LWICometLoggingConstants","LWICometWhatsAppAccountTypeUtils","LWICometWhatsAppSendDownloadBusinessAppLinkMutation","LWIOmniButton.react","LWIOmniTextPairing.react","TetraIcon.react","castToEnum","emptyFunction","formatDate","getJSEnumSafe","lwiCometObjectiveReducer","react","useAdsCouponCometEnrollMutation","useCometLazyDialog","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useEffect,n=c("JSResourceForInteraction")("LWICometWhatsAppBusinessCouponDialog.react").__setRef("LWICometCTAWhatsAppBizAppUpsellCouponNotice.react"),o=j!==void 0?j:j=b("LWICometCTAWhatsAppBizAppUpsellCouponNoticeRootQuery.graphql");function a(a){var b=a.initialCountryCode,e=a.objective,f=a.productFlow,g=a.whatsAppNumber,j=a.whatsAppNumberType,k=a.couponOffer,p=a.goal,q=a.legacyAdAccountID,r=a.pixelID;a=c("useCometLazyDialog")(n);var s=a[0];a=c("useLWILoggerContext")();var t=a.pageID,u=a.targetID,v=c("useAdsCouponCometEnrollMutation")();a=d("CometRelay").useLazyLoadQuery(o,{adAccountID:q},{fetchPolicy:"network-only"});var w=k==null?void 0:k.couponValueInCents,x=k==null?void 0:k.currencyCode,y=k==null?void 0:k.promotionType,z=k==null?void 0:k.couponStatus,A=k==null?void 0:k.couponOfferID,B=k==null?void 0:k.expirationTime,C=w!=null&&x!=null&&y==="DOWNLOAD_WHATSAPP_BUSINESS_TO_GET_Y"&&(k==null?void 0:k.targetPageId)===t,D={ads_lwi_goal:c("castToEnum")(p,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),e),page_id:t,post_id:u,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:j};m(function(){C&&c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},D,{event:"whatsapp_business_app_coupon_upsell_notice_shown"}))},[C]);var E=d("CometRelay").useRelayEnvironment(),F=c("useLWIReducers")([c("lwiCometObjectiveReducer")]);if(!C||x==null)return null;y=a==null?void 0:(y=a.ads_coupon_offer)==null?void 0:(k=y.whatsapp_coupon_offer_data)==null?void 0:k.lwi_whatsapp_coupon_impression_header_text;var G=a==null?void 0:(k=a.ads_coupon_offer)==null?void 0:(a=k.whatsapp_coupon_offer_data)==null?void 0:a.lwi_whatsapp_coupon_dialog_instruction_header_text,H=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},D,{event:"whatsapp_business_app_coupon_notice_clicked"})),s({couponDialogInstructionHeaderText:G,goal:c("castToEnum")(p,c("AdsLWIGoal"),null),initialCountryCode:b,objective:e,pageID:t,productFlow:f,whatsAppNumber:g,whatsAppNumberType:j},c("emptyFunction")),d("LWICometWhatsAppAccountTypeUtils").updateOnWhatsAppAccountUpgrade(E,t,function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},D,{event:"whatsapp_account_upgraded_to_business_coupon_flow"})),d("CometRelay").commitLocalUpdate(E,function(a){a=a.get("client:root:lwi");a==null?void 0:a.setValue("MESSAGES","infer_adpro_objective",{inferred_goal_input:{ad_account_id:q,cta:{type:"WHATSAPP_MESSAGE"},page_id:t,pixel_id:r,target_id:u}})}),F({objective:"MESSAGES",offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"})})},I=function(){z==="ACTIVE_IMPRESSION"&&v({coupon_offer_id:A,placement:"lwi_ctwa_wa_smb_adoption_coupon"},null,null,null,null,"ctwa_smb_adoption_coupon",null,null,function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_coupon_enroll_success",page_id:t,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:j})})},J=function(){d("LWICometGenericEventsLoggerLite").log({event:"whatsapp_business_app_download_link_send_click",page_id:t}),c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_coupon_flow_click",page_id:t,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:j}),d("LWICometWhatsAppSendDownloadBusinessAppLinkMutation").sendDownloadBusinessAppLink({pageID:t,whatsappNumber:g},E,function(a){a.send_whatsapp_business_download_link===!0?c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_coupon_flow_success",page_id:t,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:j}):c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_coupon_flow_failure",page_id:t,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:j})})};k=function(){var a=B!=null?new Date(B*1e3):null;return h._("__JHASH__ZGITx79lgHY__JHASH__",[h._param("coupon expiration date in format "M j, Y" e.g. "Mar 25, 2021"",c("formatDate")(a,"M j, Y"))])};a=function(){return h._("__JHASH__Ix21OFA9tlw__JHASH__",[h._param("coupon value",d("LWICometFormatCurrency").getLWIFormatCurrency(w,x,d("LWICometConstants").DEFAULT_CURRENCY_OPTIONS))])};var K=function(){return h._("__JHASH__RX2ZyxcZeg5__JHASH__")};return l.jsx("div",{className:"x1lq5wgf xgqcy7u x30kzoy x9jhf4c xo7yn3p x9f619 x1e56ztr xktsk01 x1d52u69 x1xmf6yo",children:l.jsxs("div",{className:"x1lcm9me x1yr5g0i xrt01vj x10y3i5r x78zum5 xdt5ytf x1a02dak x1l90r2v",children:[l.jsxs("div",{className:"x1qjc9v5 x78zum5 x1q0g3np x1swvt13 x1pi30zi",children:[l.jsx("div",{className:"xq8finb xw7yly9",children:l.jsx(c("TetraIcon.react"),{icon:new(c("IconSource"))("FB",i("1660498"),20)})}),l.jsx("div",{className:"xod5an3 xw7yly9",children:l.jsx(c("LWIOmniTextPairing.react"),{body:k(),headline:(k=y)!=null?k:a(),level:4})})]}),l.jsx("div",{className:"x78zum5 x1q0g3np xktsk01 x1d52u69",children:l.jsx(c("LWIOmniButton.react"),{label:K(),onPress:function(){J(),I(),H()},reduceEmphasis:!0,size:"medium",type:"primary"})})]})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{couponOffer:a.adsCouponOffer,goal:a.goal,legacyAdAccountID:a.adAccountData.legacyAccountID,pixelID:a.pixelID}});g["default"]=e}),226);
-----
useStoriesViewerNodes",["CometRelay","FBLogger","QuickPerformanceLogger","StoriesActorContext","StoriesBehaviorHelpers","StoriesEnums","StoriesLoggerSession","StoriesLoggingConstants","cr:899180","qpl","react","useStoriesIsBucketEmpty","useStoriesRemoveEmptyBuckets","useStoriesSuspenseNavListSelectors","useStoriesSuspenseNavListTransitionRequestListener","useStoriesViewerBucketPrefetcher","useStoriesViewerNodes_buckets.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=j||d("react");var k=e.startTransition,l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useMemo,p=e.useRef,q=e.useState,r=h!==void 0?h:h=b("useStoriesViewerNodes_buckets.graphql");function a(a,e,f,g,h,j,s,t){var u,v=(u=d("CometRelay")).useFragment(r,e),w=u.useFragment(r,a),x=u.useFragment(r,t);e=m(c("StoriesActorContext"));var y=e.actorID,z=c("useStoriesIsBucketEmpty")(w),A=c("useStoriesIsBucketEmpty")(v);c("useStoriesRemoveEmptyBuckets")(w);c("useStoriesRemoveEmptyBuckets")(v);a=o(function(){var a=v==null?void 0:v[0],b=function(b){var c;return(b==null?void 0:(c=b.story_bucket_owner)==null?void 0:c.id)===y||(b==null?void 0:b.id)!==((c=a)==null?void 0:c.id)&&!z(b==null?void 0:b.id)};b=w?w.filter(b):[];b=b.findIndex(function(a){return(a==null?void 0:a.id)===g})!==-1;b||(a=x==null?void 0:x[0]);return{isExtendedViewInitialBucketInNodeData:b,pinnedNode:a}},[g,y,z,w,v,x]);var B=a.isExtendedViewInitialBucketInNodeData,C=a.pinnedNode;t=function(){var a=function(a){var b;return(a==null?void 0:(b=a.story_bucket_owner)==null?void 0:b.id)===y||(a==null?void 0:a.id)!==(C==null?void 0:C.id)&&!z(a==null?void 0:a.id)},b=w==null?void 0:w[0];if(w==null||w.length===0)return[];else if(C==null||A(C.id)&&B)return w.filter(a);else{var c;c=(b==null?void 0:(c=b.story_bucket_owner)==null?void 0:c.id)===y;if(c&&b!=null)if(b.id===C.id)return w.filter(a);else return[b].concat(C).concat(w.slice(1).filter(a));else return[C].concat(w.filter(a))}};var D=t();e=q(function(){var a=D.findIndex(function(a){return(a==null?void 0:a.id)===g}),b=d("StoriesLoggerSession").getOpenViewerSource();a===-1&&g!==""&&g!=null&&b===c("StoriesLoggingConstants").ACTION_SOURCE.TRAY&&c("FBLogger")("fbstories").warn("Initial bucket ID [%s] was found at index -1, [%s]",g,D.length);return a});var E=e[0];a=e[1];t=o(function(){return D.map(function(a){return a==null?void 0:a.id}).filter(Boolean).filter(function(a){return a!=null})},[D]);c("useStoriesViewerBucketPrefetcher")(t,E);var F=p(null),G=p(null),H=p(null),I=p(!0);e=function(){I.current=!1};t=c("useStoriesSuspenseNavListSelectors")(D);var J=t.getBucketCount,K=t.getBucketID,L=t.getIsSecondBucket,M=t.isFirstBucket,N=t.isFriendListEmpty,O=t.isLastBucket,P=t.isUserBucketEmpty;t=t.userBucketIndex;var Q=J(f),R=l(function(a){k(function(){h()})},[h,k]);J=u.useRelayEnvironment();n(function(){var a=K(E),e=a!==H.current;if(E!==F.current||Q!==G.current){var h;e&&((i||(i=c("QuickPerformanceLogger"))).markerEnd(c("qpl")._(13238354,"1306"),4),i.markerStart(c("qpl")._(13238354,"1306")),b("cr:899180")&&b("cr:899180").updateURL(a,""));O(E,f)&&f&&R();e=D==null?void 0:D[E];h=e==null?void 0:(h=e.story_bucket_owner)==null?void 0:h.viewer_profile_permissions;h=h!=null&&h.includes("EDIT_PROFILE");var k=d("StoriesBehaviorHelpers").canSeeViewerSheet(e==null?void 0:e.story_bucket_type,e==null?void 0:(e=e.story_bucket_owner)==null?void 0:e.id,h,y),l=L(E,g),m=null,n=null;l&&(m=D.slice(E,E+3),n=Math.max(0,D.length-1-E));e=function(){j({bucketID:K(E),bucketIndex:E,canSeeViewerSheet:k,canShowStoryOverlay:I.current,isEndOfTray:O(E,f)&&!f,isFirstBucket:M(E),isFriendListEmpty:N,isLastBucket:O(E,f),isSecondBucket:l,nextBuckets:m,nextBucketsCount:n})};e();E!==F.current&&s(F.current!=null&&E>F.current?d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET)}F.current=E;G.current=Q;H.current=a},[y,D,Q,E,K,f,g,M,L,O,N,P,R,j,s,J]);c("useStoriesSuspenseNavListTransitionRequestListener")(E,a,O(E,f),t===0?1:0);return{bucketIndex:E,disableExtendedViewerOverlay:e,isFriendListEmpty:N,isUserBucketEmpty:P,loadMore:R,nodes:D,prevBucketIndex:F,setBucketIndex:a,userBucketIndex:t}}g["default"]=a}),98);
-----
StoriesViewerSuspenseWithEntryPoint.react",["CometErrorBoundary.react","CometPageletWithDiv.react","CometStyleXSheet","QPLUserFlow","StoriesBucketError.react","StoriesCenterPaneErrorBoundary.react","StoriesCometLeftRailRootWithEntryPoint.react","StoriesEnums","StoriesLoggerSession","StoriesLoggingConstants","StoriesQueryArgumentsContext","StoriesRootError.react","StoriesSetBucketHelper","StoriesSuspenseBucketDataContext","StoriesSuspenseBucketTransitioningContext","StoriesSuspenseContentPanePlaceholder.react","StoriesSuspenseContentPaneRootWithEntryPoint.react","StoriesSuspenseContentPaneRootWithEntryPointQuery$Parameters","StoriesSuspenseNavigationPaneHelpers","StoriesSuspenseViewerKeyboardListener.react","StoriesViewerPersonalizationContextProvider.react","qpl","react","useRefetchablePreloadedQuery","useStoriesTraySetShouldRefresh","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useMemo,l=b.useState;d("CometStyleXSheet").rootStyleSheet.injectTheme();function a(a){var b=a.bucketID,e=a.cardID,f=a.openSource,g=a.traySessionID,h=a.viewerSessionID,m=a.viewSingle,n=l(!1),o=n[0],p=n[1];n=l(d("StoriesSetBucketHelper").defaultBucketData(b));var q=n[0],r=n[1];n=l(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET);var s=n[0],t=n[1];j(function(){c("QPLUserFlow").addPoint(c("qpl")._(741087294,"2028"),"viewer mounted"),d("StoriesLoggerSession").initialize(g,h,f)},[f,g,h]);n=l("store-or-network");var u=n[0];n=n[1];u=c("useRefetchablePreloadedQuery")(c("StoriesSuspenseContentPaneRootWithEntryPointQuery$Parameters"),a.queries.storiesSuspenseContentPaneRootReference,u);var v=u[0];u=u[1];var w=q.bucketID,x=q.bucketIndex,y=w==="",z=c("useStoriesTraySetShouldRefresh")(),A=c("useVisibilityObserver")({onHidden:function(a){a=a.hiddenReason;f===c("StoriesLoggingConstants").ACTION_SOURCE.TRAY&&x>1&&a==="COMPONENT_UNMOUNTED"&&z(!0)}}),B=k(function(){function a(a){d("StoriesSetBucketHelper").updateBucketData(r,p,q,a,v)}return{bucketData:q,bucketNavDirection:s,isViewerV3:!1,setBucketData:a,setNavigationDirection:t}},[q,s,v]),C=k(function(){return{isBucketTransitionInProgress:o,setIsBucketTransitionInProgress:p}},[o,p]),D=k(function(){return{hideSelfBucket:!1,initialBucketID:b,initialBucketsCount:d("StoriesSuspenseNavigationPaneHelpers").getInitialBucketsCount(),pageBucketsCount:d("StoriesSuspenseNavigationPaneHelpers").getPageBucketsCount()}},[b]),E=f!==c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE;return i.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return i.jsx(c("StoriesRootError.react"),{error:a})},children:i.jsx(c("StoriesViewerPersonalizationContextProvider.react"),{enablePersonalization:E,children:i.jsx(c("StoriesQueryArgumentsContext").Provider,{value:D,children:i.jsx(c("StoriesSuspenseBucketTransitioningContext").Provider,{value:C,children:i.jsx(c("StoriesSuspenseBucketDataContext").Provider,{value:B,children:i.jsx("div",{className:"x78zum5 xh8yej3","data-testid":void 0,id:"viewer_dialog",ref:A,children:i.jsx(c("StoriesSuspenseViewerKeyboardListener.react"),{children:i.jsx(c("StoriesCometLeftRailRootWithEntryPoint.react"),{initialBucketID:b,queryReference:a.queries.storiesSuspenseNavigationPaneRootReference,viewerSessionID:h,children:i.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:i.jsx(c("StoriesSuspenseContentPanePlaceholder.react"),{isNullState:y}),name:"StoriesContentPane",children:i.jsx(c("StoriesCenterPaneErrorBoundary.react"),{bucketIndex:x,fallback:function(a){return i.jsx(c("StoriesBucketError.react"),{bucketID:w,cardID:"",error:a})},children:i.jsx(c("StoriesSuspenseContentPaneRootWithEntryPoint.react"),{bucketID:w,initialBucketID:b,initialCardID:e,openSource:f,queryReference:u,updateFetchPolicy:n,viewSingle:m,viewerSessionID:h})})})})})})})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MNCommerceOrderDetailsDialogContainer.react",["BanzaiLogger","MNCommerceDialogStateActions","MNCommerceDialogStateStore","MNCommerceLoggingConstants","MNCommerceOrderDetailsDialog.react","MNCommerceReceiptActions","MNCommerceReceiptStore","PureStoreBasedStateMixin","createReactClass_DEPRECATED","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=c("createReactClass_DEPRECATED")({displayName:"MNCommerceOrderDetailsDialogContainer",mixins:[c("PureStoreBasedStateMixin")(c("MNCommerceReceiptStore"))],statics:{calculateState:function(){var a=c("MNCommerceDialogStateStore").getState(),b=null,e=null;a&&(b=a.receiptID,e=a.messageID);e=c("MNCommerceReceiptStore").getReceipt(b,e);e.isLoading()||c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:e.hasError()?"dialog_load_error":"dialog_load_success",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.RECEIPT,receipt_id:b})});return{shown:!!a,loading:e.isLoading(),receiptID:b,receipt:e.getValue(),error:e.getError()}}},render:function(){return i.jsx(c("MNCommerceOrderDetailsDialog.react"),{loading:this.state.loading,error:this.state.error,onToggle:this._onToggle,onTryAgain:this._onTryAgainClick,shown:this.state.shown,receipt:this.state.receipt})},_onToggle:function(a){a||(c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_closed",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.RECEIPT,receipt_id:this.state.receipt.receipt_id})}),d("MNCommerceDialogStateActions").hideDialog())},_onTryAgainClick:function(){d("MNCommerceReceiptActions").receiptReload(this.state.receiptID,this.state.messageID)}});b=a;g["default"]=b}),98);
-----
useMDCAppStoreV2SectionItemLogging",["MDCAppStoreExploreLoggingAPI","MDCAppStoreGetFormattedIndex","MDCAppStoreImpressionLoggingConstants","MDCAppStoreLoggingAPI","MDCAppStoreOculusImpressionEventsLoggingHooks","asyncToGeneratorRuntime","react","useDDSVisibility"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=500;function a(a,e,f){e===void 0&&(e=d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD);f===void 0&&(f=j);var g=f<0?0:f,h=d("MDCAppStoreOculusImpressionEventsLoggingHooks").useImpressionLogging("MDCAppStoreSectionItem");f=c("useDDSVisibility")({threshold:e});var k=f[0],l=f[1],m=a.index,n=a.rankingTraceID,o=a.sectionID,p=a.sectionItemID;i(function(){var a=null;l&&(h("oculus_impressions_tile_vpved",{content_id:p}),d("MDCAppStoreLoggingAPI").logInfo("Skyline",{duration_in_ms:g,item_id:p,item_position:m,page:"store_section",pixel_in_percentage:Math.round(e*100),section_id:o,type:"oculus_skyline_viewport_visible_event"}),a=window.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield d("MDCAppStoreExploreLoggingAPI").logTilesRendered([{index:d("MDCAppStoreGetFormattedIndex").getFormattedIndex(m),node_id:p,trace_id:(a=n)!=null?a:""}])}),g));return function(){window.clearTimeout(a)}},[l,e,m,n,o,p,g,h]);i(function(){var a=Date.now();d("MDCAppStoreLoggingAPI").logInfo("Skyline",{item_id:p,item_position:m,page:"store_section",section_id:o,type:"oculus_skyline_rendered_impression"});return function(){d("MDCAppStoreLoggingAPI").logInfo("Skyline",{duration_in_ms:Date.now()-a,item_id:p,item_position:m,page:"store_section",section_id:o,type:"oculus_skyline_rendered_impression_duration"})}},[m,o,p]);return k}g["default"]=a}),98);
-----
MDCAppStoreV2AppSearchTypeaheadResult.react",["fbt","DDSImage.react","DDSTypeaheadItem.react","MDCAppStoreAppEntitlement","MDCAppStoreImpressionLoggingConstants","MDCAppStoreOculusImpressionsEventsLogging","react","useDDSVisibility"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=42,l={image:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0}};function a(a){var b=a.entry,e=a.query,f=b.getAuxiliaryData();a=c("useDDSVisibility")({onVisible:function(){if(f.type!=="app")return;d("MDCAppStoreOculusImpressionsEventsLogging").logSingleImpressionsEvent({content_id:b.getUniqueID(),component:"TypeaheadSearchResult",duration:0,surface:"STORE",subsurface:"SEARCH",search_query:e},"oculus_impressions_tile_vpved")},threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});a=a[0];return j.jsx("div",{ref:a,children:j.jsx(c("DDSTypeaheadItem.react"),{"data-testid":void 0,icon:f.type==="app"?j.jsx(c("DDSImage.react"),{alt:"",intrinsicHeight:k,intrinsicWidth:k,src:(a=f.imageUri)!=null?a:"",variant:"src",xstyle:l.image}):void 0,label:b.getTitle(),subLabel:f.type==="app"&&f.entitlement!=null&&d("MDCAppStoreAppEntitlement").isActive(f.entitlement)?h._("Purchased"):b.getSubtitle()})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
AudienceManagerActionUtils",["$InternalEnum","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAudienceDetailActions","AdsAudienceShoppingUtils","AdsCustomAudienceType","AdsInterfacesLogger","AdsInterfacesRouter","AdsPEMessageCreationPackageICERoute","AudienceManagerBulkActionUtils","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerMenuButtonsUtils","CustomAudienceUtils","Link.react","MarketingMessagesAudienceMessageCampaignCreationClickFalcoEvent","MarketingMessagesCreationPackageUtils","URI","isFalsey","isTruthy","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a,b){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_AD_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_ACTION_CREATE_AD_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);d("AdsAMAudienceUtils").isSavedAudience(a)?d("AdsAudienceDetailActions").createAdFromSavedAudience(a.id,b):d("AdsAudienceDetailActions").createAdFromCustomAudience(a.id,a.name,b)}function e(a,b,e){a={id:a,name:b};b=c("AdsInterfacesRouter").get();e=b.getURITo(c("AdsPEMessageCreationPackageICERoute")).addQueryData({package_config_id:(b=e)!=null?b:d("MarketingMessagesCreationPackageUtils").getMarketingMessagesPackageConfigID(),selected_custom_audience:JSON.stringify(a)});(h||(h=c("URI"))).goURIOnWindow(e,!0)}function k(a){var b=c("AdsInterfacesRouter").get();return b.getURITo(c("AdsPEMessageCreationPackageICERoute")).addQueryData({package_config_id:a.packageConfigID,selected_campaign_ids:(b=a.campaignGroupIDs[0])!=null?b:"",selected_adset_ids:(b=a.campaignIDs[0])!=null?b:"",selected_ad_ids:(b=a.adgroupIDs[0])!=null?b:""})}function l(a,b){var e=a==null?void 0:a.isSavedAudience;a=d("AudienceManagerBulkActionUtils").canCreateAd([a],b);b=a[0];return c("isTruthy")(e)||b}function m(a,b){if(d("AdsAudienceShoppingUtils").shouldDisableLALForShoppingCA(a==null?void 0:a.rule_v2))return!1;return!!a&&d("CustomAudienceUtils").isAudienceEUPrivacyDirectiveImpacted(a)?!1:!!a&&a.permission_for_actions.subtype_supports_lookalike&&n(a,b)}function n(a,b){return c("isFalsey")(a==null?void 0:a.account_id)||!b||(a==null?void 0:a.account_id)===b}function o(a,b){return a.subtype!==c("AdsCustomAudienceType").SUBTYPES.REGULAR||c("isFalsey")(b)?!0:((a=a.owner_account_info)==null?void 0:a.business_id)===b}function p(a,b){return a.subtype!==c("AdsCustomAudienceType").SUBTYPES.SUBSCRIBER_LIST||c("isFalsey")(b)?!0:((a=a.owner_account_info)==null?void 0:a.business_id)===b}function q(a,b,d,e){c("MarketingMessagesAudienceMessageCampaignCreationClickFalcoEvent").log(function(){return{event_location:"www_client",client_timestamp_ms:Date.now(),business_id:d,ad_account_id:e,audience_id:a,event_data:{audience_type:"subscriber_list",audience_name:b}}})}function r(a){if(!a)return;a={id:a.id,name:a.name};var b=c("AdsInterfacesRouter").get();b=b.getURITo(c("AdsPEMessageCreationPackageICERoute")).addQueryData({package_config_id:d("MarketingMessagesCreationPackageUtils").getMarketingMessagesPackageConfigID(),selected_custom_audience:JSON.stringify(a)});(h||(h=c("URI"))).goURIOnWindow(b,window.open("","_blank"),!0)}function s(a){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_LOOKALIKE_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_CREATE_LAL_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsAMViewShowLookalikeDialogAction").dispatch({audienceId:a.id},{line:"230",module:"AudienceManagerActionUtils.js",moduleID:f.id})}function t(a,b){return!!a&&a.permission_for_actions.can_edit&&n(a,b)}function u(a,b){return(t(a,b)||!n(a,b))&&(!(a==null?void 0:a.lookalike_audience_ids)||a.lookalike_audience_ids.length===0)}var v=b("$InternalEnum").Mirrored(["CANNOT_SHARE_AUDIENCE_FROM_SHARED_ADACCOUNT","CANNOT_SHARE_SUBSCRIBER_LIST_FROM_SHARED_ADACCOUNT","CANNOT_RESHARE_AUDIENCE","NO_PERMISSION_TO_SHARE","STORE_VISIT_NOT_SUPPORTED","EU_PRIVACY_DIRECTIVE_AUDIENCE","NONE","UNTRUSTED_ACCOUNT"]);function w(a,b,e){if(!a)return[!1,v.NONE];else if(d("CustomAudienceUtils").isUntrustedAdAccountForSharing(c("AdsAMAudienceStore").getAccount()))return[!1,v.UNTRUSTED_ACCOUNT];else if(!a.permission_for_actions.can_share)return[!1,v.NO_PERMISSION_TO_SHARE];else if(!n(a,b))return[!1,v.CANNOT_RESHARE_AUDIENCE];else if(!o(a,e))return[!1,v.CANNOT_SHARE_AUDIENCE_FROM_SHARED_ADACCOUNT];else if(!p(a,e))return[!1,v.CANNOT_SHARE_SUBSCRIBER_LIST_FROM_SHARED_ADACCOUNT];else if(d("AudienceManagerMenuButtonsUtils").isStoreVisitAudience(a))return[!1,v.STORE_VISIT_NOT_SUPPORTED];else if(d("CustomAudienceUtils").isAudienceEUPrivacyDirectiveImpacted(a))return[!1,v.EU_PRIVACY_DIRECTIVE_AUDIENCE];return[!0,v.NONE]}function x(a){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DELETE_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsAMViewShowDeleteAudienceDialogAction").dispatch({audienceId:a.id},{line:"317",module:"AudienceManagerActionUtils.js",moduleID:f.id})}function y(a){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARE_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_SHARE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsAMViewShowShareAudienceDialogAction").dispatch({audienceId:a.id},{line:"336",module:"AudienceManagerActionUtils.js",moduleID:f.id})}function z(a,b,e){e=d("AdsAMAudienceUtils").getAudienceDetailsURI(a,e);return j.jsx("div",{children:j.jsx(c("Link.react"),{href:e,target:"_blank",children:b===null?a:b})},a)}z.displayName=z.name+" [from "+f.id+"]";g.onCreateAd=a;g.onOpenMessageCampaign=e;g.getEditMessageCampaignURI=k;g.canCreateAd=l;g.canCreateLookalike=m;g._isOwnedByCurrentAccount=n;g.isDFCAOwnedByCurrentBusiness=o;g.isSubscriberListOwnedByCurrentBusiness=p;g.logCreateMessageCampaignForSubscriberList=q;g.onCreateMessageCampaign=r;g.onCreateLookalike=s;g._canEdit=t;g.canDelete=u;g.ShareDisabledReason=v;g.canShareWithDisabledReason=w;g.onDelete=x;g.onShare=y;g.renderAudienceLink=z}),98);
-----
AudienceManagerFunnelLogger",["AudienceManagerFunnelLoggingConstants","FunnelLogger","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){"use strict";var h=86400;function a(a){d("FunnelLogger").startFunnel(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME),d("FunnelLogger").setFunnelTimeout(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,h),c("isStringNullOrEmpty")(a)||d("FunnelLogger").addFunnelTag(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,a)}function b(){d("FunnelLogger").endFunnel(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME)}function e(a){d("FunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,a)}function f(a,b){d("FunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,a,b)}g.startFunnel=a;g.endFunnel=b;g.appendAction=e;g.appendActionWithPayload=f}),98);
-----
AudienceManagerFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="WWW_ADS_TARGETING_AUDIENCE_MANAGER_FUNNEL";b={ADD_LABEL:"add_label",AUDIENCE_LOADED:"audience_loaded",BULK_DELETED_AUDIENCES:"bulk_deleted_audiences",BULK_DELETED_SAVED_AUDIENCES:"bulk_deleted_saved_audiences",CLICK_AUDIENCES_GO_BACK_IN_DETAIL_PANE:"click_audiences_go_back_in_detail_pane",COLUMN_CUSTOMIZE:"column_customize",CREATE_AD_CLICK_IN_DETAIL_PANE:"create_ad_click_in_detail_pane",CREATE_AD_CLICK:"create_ad_click",CREATE_AUDIENCE_CLICK:"create_audience_click",CREATE_CUSTOM_AUDIENCE_CLICK_IN_NUX_VIEW:"create_custom_audience_click_in_nux_view",CREATE_CUSTOM_AUDIENCE_CLICK:"create_custom_audience_click",CREATE_LOOKALIKE_AUDIENCE_CLICK_IN_NUX_VIEW:"create_lookalike_audience_click_in_nux_view",CREATE_LOOKALIKE_AUDIENCE_CLICK:"create_lookalike_audience_click",CREATE_LOOKALIKE_CLICK_IN_DETAIL_PANE:"create_lookalike_click_in_detail_pane",CREATE_LOOKALIKE_CLICK:"create_lookalike_click",CREATE_SAVED_AUDIENCE_CLICK_IN_NUX_VIEW:"create_saved_audience_click_in_nux_view",CREATE_SAVED_AUDIENCE_CLICK:"create_saved_audience_click",CREATE_SPECIAL_AUDIENCE_CLICK:"create_special_audience_click",CREATED_SAVED_AUDIENCE:"created_saved_audience",CREATED_AUDIENCE:"created_audience",CREATED_OR_EDITED_AUDIENCE:"created_or_edited_audience",DELETED_AUDIENCE:"deleted_audience",DELETE_CLICK_IN_DETAIL_PANE:"delete_click_in_detail_pane",DELETE_CLICK:"delete_click",DETAIL_PANE_CLICK:"detail_pane_click",EDITED_AUDIENCE:"edited_audience",EDITED_AUDIENCE_IN_DETAIL_PANE:"edited_audience_in_detail_pane",EDITED_SAVED_AUDIENCE:"edited_saved_audience",EDITED_SAVED_AUDIENCE_IN_DETAIL_PANE:"edited_saved_audience_in_detail_pane",EDIT_CLICK_IN_DETAIL_PANE:"edit_click_in_detail_pane",EDIT_CLICK:"edit_click",EXPORT_AUDIENCE_CLICK:"export_audience_click",FILTER_BUTTON_CLICKED:"filter_button_clicked",FILTER_PRESET_CHANGED:"filter_preset_changed",LEARN_MORE_BUTTON_CLICK:"learn_more_button_click",LOAD_MORE_BY_SCROLLING:"load_more_by_scrolling",MOUSE_ENTER_AUDIENCE_HOVER_CARD:"mouse_enter_audience_hover_card",MOUSE_LEAVE_AUDIENCE_HOVER_CARD:"mouse_leave_audience_hover_card",PIXEL_ID_CLICK_IN_DETAIL_PANE:"pixel_id_click_in_detail_pane",PIXEL_NAME_CLICK_IN_DETAIL_PANE:"pixel_name_click_in_detail_pane",REMOVE_LABEL:"remove_label",SEARCH_COMPLETE:"search_complete",SELECT_AUDIENCE:"select_audience",SHARED_AUDIENCE:"shared_audience",SHARE_CLICK_IN_DETAIL_PANE:"share_click_in_detail_pane",SHARE_CLICK:"share_click",SORT_HEADER_CLICK:"sort_header_click",UNSELECT_AUDIENCE:"unselect_audience",VIEW_OVERLAP_CLICK:"view_overlap_click",VIEW_PIXEL_CLICK:"view_pixel_click"};f.FUNNEL_NAME=a;f.FUNNEL_ACTION=b}),66);
-----
LWICometSubmissionSectionView.react",["fbt","AdproObjectiveType","AdsLWIGoal","AdsReviewCometIPCUtils","BillingCurrencyAmount","BizKitAdsGating.entrypointutils","CometLink.react","CometRelay","CometRow.react","CometRowItem.react","ContentRefComet","LWIBizWebGeoCreationTemplateUtils","LWIBizWebUserFlowUtils","LWICometAdsRejectionUtils","LWICometContextualDataContext","LWICometDialogContext","LWICometDraftDialogUtils","LWICometLoggingConstants","LWICometMutationUtils","LWICometNoticesUtils","LWICometOptionalLoggingDataContext","LWICometPostAdDialogWrapper.react","LWICometProductUtils","LWICometSpecContext","LWICometStartDateUtils","LWICometSubmissionSectionStrings","LWICometTermsAndConditions.react","LWICreationPlatformIDUtils.react","LWIOmniButton.react","LWIOmniButtonGroup.react","LWIOmniText.react","QPLUserFlow","areEqual","castToEnum","cometPushToast","cr:2332","cr:4643","cr:4887","cr:577","cr:578","cr:7362","cr:7394","cr:8715","getJSEnumSafe","gkx","qpl","react","recoverableViolation","requireDeferred","stylex","useBillingMaybeOpenWizard","useBillingRequiredWizardName","useLWICometUIStatusContext","useLWILoggerContext","useLWINoticesContext","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k,n=m.useCallback,o=m.useContext,p=m.useEffect,aa=m.useMemo,q=m.useRef,ba=m.useState,r=c("requireDeferred")("BillingUPLWizardWebLogger").__setRef("LWICometSubmissionSectionView.react"),s=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometSubmissionSectionView.react"),ca=(m=b("cr:7362"))!=null?m:b("cr:7394");function a(a){var b=a.href;a=a.linkText;c("vulture")("7gPENuQc32r");return l.jsx(c("CometLink.react"),{display:"inline",href:b,target:"_blank",testid:void 0,children:l.jsx(c("LWIOmniText.react"),{color:"blueLink",type:"bodyLink4",children:a})})}a.displayName=a.name+" [from "+f.id+"]";var da=l.memo(a),t={auxContent:{alignItems:"x6s0dn4",display:"x78zum5",marginEnd:"xq8finb",$$css:!0},needHelpItem:{paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,$$css:!0},rootTwoColumns:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},rootTwoColumnsBizWebFullScreen:{width:"xh8yej3",$$css:!0},rootTwoColumnsWithCreationTemplate:{paddingBottom:"x18d9i69",paddingTop:"xexx8yu",$$css:!0},rootTwoColumnsWithinDialog:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},stepperAuxContent:{alignItems:"x7a106z",display:"x78zum5",marginEnd:"x1qi5vpy",$$css:!0}};function e(a){var e=a.adCreationDialogButtonPropsOverride,f=a.additionalBoostTargetIDs,g=a.additionalRightColumnTermsContent,k=a.backgroundImageOverride,m=a.boostButtonLabel,ea=a.confirmationMessageOverride,fa=a.confirmationMessageTitleOverride,u=a.disableSubmitButton;u=u===void 0?!1:u;a.hasTimeout;var v=a.hideAdCenterLinkInAdCreationDialog;v=v===void 0?!1:v;var ga=a.hideBackgroundImageInAdCreationDialog,w=a.isLiveBoostingAd;w=w===void 0?!1:w;var ha=a.onAudienceSpecsNoChange,ia=a.onMutationSubmit,ja=a.onPreSubmit,ka=a.onSpecsNoChange,x=a.onUpdateAdAccount,la=a.postAdDialogType,y=a.secondaryButton,ma=a.shouldCheckAutoBoostEntry,z=a.shouldCheckSpecsChange;z=z===void 0?!1:z;var A=a.shouldLogLowQualitySubmits,na=A===void 0?!1:A;a.showAutomatedAdsInCreationDialog;A=a.showConfirmationBillingList;var B=a.stepperFlow;B=B===void 0?!1:B;var C=a.submissionAction,oa=a.submissionIndicatorOverride,pa=a.suggestedCategory,qa=a.tocOverride,D=a.useRightColumnSubmitButton;D=D===void 0?!1:D;var E=a.withCouponEnrolled;E=E===void 0?!1:E;var F=a.adAccountData.legacyAccountID,ra=a.assetFeedSpecPlus,G=a.audienceData,H=a.budget,I=a.budgetType,J=a.creative,K=a.currency,L=a.durationInDays,M=a.goal,sa=a.objective,N=a.regionalRegulatedCategories,O=a.regulatedCategories,P=a.specContext,ta=a.specialAdCategoryCountries,ua=a.startTime,va=a.taiwanFinservBeneficiary;a=a.taiwanFinservPayor;c("vulture")("5zHiRNVObPd");var wa=C==="edit",xa=d("LWIBizWebGeoCreationTemplateUtils").useGeoCreationTemplate(),Q=ba(C),ya=Q[0],R=Q[1],S=c("useLWINoticesContext")(),T=c("useLWILoggerContext")(),U=o(c("LWICometOptionalLoggingDataContext"));Q=o(c("LWICometDialogContext"));var za=o(c("LWICometContextualDataContext")),Aa=b("cr:4643")();I=H!=null&&I==="DAILY_BUDGET"&&L!=null?H*L:H;L=d("BillingCurrencyAmount").getFromPBCurrencyQuantity({currency:K,offset_amount:I.toString()});H=c("useBillingRequiredWizardName")(F,L==null?void 0:L.asGraphQLInput().amount,K);I=n(function(){s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{action:"receive",context:"payment",event:"complete_payment_billing_wizard",side:"client_side"})}),c("QPLUserFlow").endSuccess(c("qpl")._(316544852,"610")),x(),ja!=null?ja(ia):ia()},[T,ia,ja,x,P]);L=n(function(){r.onReady(function(a){s.onReady(function(b){return b.logWithLoggerAndSpecContext(T,P,{action:"enter",context:"payment",event:"open_payments_flow",extra_data:{billing_upl_session_id:a.getSessionID()},side:"client_side"})})})},[T,P]);var Ba=n(function(){r.onReady(function(a){s.onReady(function(b){return b.logWithLoggerAndSpecContext(T,P,{action:"enter",context:"payment",event:"payments_flow_closed",extra_data:{billing_upl_session_id:a.getSessionID()},side:"client_side"})})})},[T,P]);K=n(function(){Ba(),x()},[Ba,x]);var V=n(function(){r.onReady(function(a){s.onReady(function(b){return b.logWithLoggerAndSpecContext(T,P,{action:"add",context:"payment",event:"payment_method_added",extra_data:{billing_upl_session_id:a.getSessionID()},side:"client_side"})})})},[T,P]),Ca=c("useBillingMaybeOpenWizard")(F,H,{entryPoint:"lwi_comet",flowID:T.flowID},{onBillingWizardComplete:V,onClose:K,onComplete:I,onOpen:L,otherProps:{withCouponEnrolled:E}});H=n(function(){var a;pa!=null&&d("LWICometAdsRejectionUtils").logAdsRejectionResubmit(T.entryPoint,T.flow,T.flowID,T.pageID,d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product),pa,O.toString());na&&d("LWICometAdsRejectionUtils").logAdsRejectionResubmit(T.entryPoint,T.flow,T.flowID,T.pageID,d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product));P.startTime!=null&&s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{event:"submit_scheduled_ad",extra_data:{is_scheduled_post:(a=za==null?void 0:(a=za.postInfo)==null?void 0:a.isScheduledPost)!=null?a:!1},side:"user_action"})});var b=(a=P.messengerWelcomeMessage)==null?void 0:a.isCallPromptEnabled;s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{action:T.flow==="create"?"create":"edit",context:"ad",creation_platform_id:d("LWICreationPlatformIDUtils.react").getCreationPlatformID(),creative_spec:JSON.stringify(P.adgroupSpecs),event:"submit_flow_click",extra_data:b!=null?{isCallPromptEnabled:b}:null,number_of_bulk_boost_products:((a=f)!=null?a:[]).length+1,side:"user_action",targeting_spec:JSON.stringify(P.audienceData.targetSpec)})});c("QPLUserFlow").addPoint(c("qpl")._(316544852,"610"),"boost_page_boost_button");P.startTime==null&&d("LWIBizWebUserFlowUtils").addBizWebAdsBoostPostButtonSubmitClickUserFLowPoint();(U==null?void 0:U.ipcDisapprovalReasons)&&d("AdsReviewCometIPCUtils").logAdgroupCreateAttempt(F,P.selectedAdgroupID,d("LWICometLoggingConstants").APP_ID,"LWI_WWW",U.ipcDisapprovalReasons,T.targetID,T.flowID);Ca()},[pa,T,O,na,P,f,U==null?void 0:U.ipcDisapprovalReasons,F,Ca]);V=o(c("LWICometSpecContext"));var Da=V.current;K=V.history;I=d("LWICometMutationUtils").getCreationMutationData({loggerContext:T,optionalLoggingData:U,spec:Da,specHistory:K});var Ea=I.input.creation_spec,Fa=T.flowID,Ga=T.pageID,Ha=T.product,Ia=T.targetID;L=c("useLWICometUIStatusContext")();var W=L.setIsSubmitButtonDisabled,X=L.setPostAdDialogStatus;E=L.videoProcessingStatus;var Ja=q(O),Ka=q(ta),Y=q(G),La=q(ra),Ma=q(J),Na=aa(function(){var a;return(i||(i=c("areEqual")))(Ja.current,O)&&(i||(i=c("areEqual")))(Ka.current,ta)&&(i||(i=c("areEqual")))(Y.current,G)&&(La.current!=null?(i||(i=c("areEqual")))(La.current,ra):(i||(i=c("areEqual")))((a=Ma.current)==null?void 0:(a=a.object_story_spec)==null?void 0:a.link_data,J==null?void 0:(a=J.object_story_spec)==null?void 0:a.link_data))},[La,ra,Y,G,Ma,J,Ja,Ka,O,ta]);p(function(){ha&&ha((i||(i=c("areEqual")))(Y.current,G))},[ha,G,Y]);p(function(){ka&&ka(Na)},[ka,Na]);var Z=S.isValidating||z&&Na||d("LWICometNoticesUtils").hasErrorTypeNotices(S.notices)||E==="PROCESSING"||u||N.includes("TAIWAN_FINSERV")&&(va==null||a==null),$=(V=c("getJSEnumSafe")(c("AdproObjectiveType"),sa))!=null?V:0;p(function(){Z||(s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{ads_lwi_goal:c("castToEnum")(M,c("AdsLWIGoal"),null),context:"flow",event:"promote_ready",lower_estimate:U==null?void 0:(a=U.reachEstimation)==null?void 0:a.lower_estimate,objective_override:$,side:"client_side",upper_estimate:U==null?void 0:(a=U.reachEstimation)==null?void 0:a.upper_estimate})}),W(Z))},[Z,M,T,$,U==null?void 0:(K=U.reachEstimation)==null?void 0:K.lower_estimate,U==null?void 0:(I=U.reachEstimation)==null?void 0:I.upper_estimate,W,P]);p(function(){!S.isValidating&&Z&&(s.onReady(function(a){return a.logWithLoggerAndSpecContext(T,P,{ads_lwi_goal:c("castToEnum")(M,c("AdsLWIGoal"),null),context:"flow",event:"promote_not_ready",extra_data:d("LWICometNoticesUtils").getErrorTypeNoticesAsObject(S.notices),objective_override:$,side:"client_side"})}),W(Z))},[Z,M,T,S.isValidating,S.notices,$,W,P]);b("cr:4887")();var Oa=d("CometRelay").useRelayEnvironment(),Pa=n(function(){X("SUBMITTING"),R("save_draft")},[X,R]),Qa=n(function(){d("cometPushToast").cometPushSimpleToast(h._("__JHASH__XALuJeAq1hZ__JHASH__")),R&&R(null),X&&X("SUCCEEDED")},[X,R]),Ra=n(function(){d("cometPushToast").cometPushSimpleToast(h._("__JHASH__d8LMoa-5BZ6__JHASH__")),R&&R(null),X&&X("SUCCEEDED")},[X,R]),Sa=n(function(){R&&R(null),X&&X("FAILED"),c("recoverableViolation")("Failed to create draft","pages_lwi")},[X,R]),Ta=n(function(){R&&R(null),X&&X("FAILED"),c("recoverableViolation")("Failed to update draft","pages_lwi")},[X,R]);L=n(function(){var a={beforeSetting:Pa,environment:Oa,existingDraftID:Da.draftID,flowID:Fa,onCompletedCreate:Qa,onCompletedUpdate:Ra,onErrorCreate:Sa,onErrorUpdate:Ta,pageID:Ga,product:Ha,spec:Ea,targetID:Ia};d("LWICometDraftDialogUtils").draftMutation(a)},[Pa,Ea,Oa,Fa,Qa,Ra,Sa,Ta,Ga,Ha,Da.draftID,Ia]);z=d("BizKitAdsGating.entrypointutils").getShouldEnableScheduleAd()&&!wa;Aa!=null&&b("cr:577")!=null?E=l.jsx(b("cr:577"),{boostButtonLabel:m,disabled:Z,onPress:H,secondaryButton:y}):y!=null?E=l.jsx(c("LWIOmniButtonGroup.react"),{direction:"backward",paddingHorizontal:0,paddingTop:0,primary:{disabled:Z,label:m,onPress:H,testid:"lwi_submit_button",type:"primary"},secondary:y}):z&&ca!=null?E=l.jsx(ca,{boostButtonLabel:m,disabled:Z,onPress:H,onSaveDraftPress:L,showDraftButton:!1}):E=l.jsx(c("LWIOmniButton.react"),{disabled:Z,label:m,onPress:H,padding:"wide",testid:void 0,type:"primary"});E=b("cr:2332")!=null?l.jsxs(c("CometRow.react"),{spacing:4,verticalAlign:"center",children:[l.jsx(c("CometRowItem.react"),{xstyle:t.needHelpItem,children:l.jsx(b("cr:2332"),{canShowPulse:!0,text:h._("__JHASH__k1mT2StnGBv__JHASH__"),withIcon:!0})}),l.jsx(c("CometRowItem.react"),{children:E})]}):E;c("gkx")("21034")&&b("cr:8715")!=null&&(E=l.jsx(b("cr:8715"),{additionalContent:y!=null?l.jsx("div",{className:"x9otpla",children:E}):l.jsx(l.Fragment,{children:E}),errorLabel:h._("__JHASH__FYc6u9VsOOe__JHASH__"),savingLabel:h._("__JHASH__xaguSnAdhSr__JHASH__")}));u=aa(function(){var a;return P.startTime!=null&&P.draftID!=null?"save":wa?C:(a=ya)!=null?a:C},[ya,wa,P.draftID,P.startTime,C]);N=l.jsx(da,{href:d("ContentRefComet").get("HELP_CENTER","LWI_SUBMISSION_SECTION"),linkText:d("LWICometSubmissionSectionStrings").HELP_CENTER_LABEL});va=ua!=null&&d("LWICometStartDateUtils").afterDateTimeConstraint(d("LWICometStartDateUtils").MINUTES_BEFORE_WHICH_CONSIDERED_NOW)(new Date(ua*1e3));a=va?h._("__JHASH__HaWNXC-B30-__JHASH__"):m;V=D?l.jsxs(l.Fragment,{children:[E,g,l.jsx("div",{className:"x6s0dn4 x78zum5 xq8finb xz9dl7a",children:l.jsxs(c("LWIOmniText.react"),{type:"body4",children:[l.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:a,objective:sa,tocOverride:qa}),!c("gkx")("23510")&&h._("__JHASH__BSvaErIHH3m__JHASH__",[h._param("separator"," | "),h._param("Help Center",N)])]})})]}):l.jsx(b("cr:578"),{buttonArea:E,leftContent:l.jsxs("div",{className:(j||(j=c("stylex")))(B?t.stepperAuxContent:t.auxContent),children:[l.jsx(c("LWIOmniText.react"),{type:"body4",children:l.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:a,objective:sa,tocOverride:qa})}),!c("gkx")("23510")&&l.jsxs(l.Fragment,{children:[l.jsx("div",{className:"x15elzd x1kpxq89 x1emribx x1i64zmx x1i1rx1s"}),N]})]})});return l.jsxs("div",{className:(j||(j=c("stylex")))(Q!=null?t.rootTwoColumnsWithinDialog:t.rootTwoColumns,Aa!=null&&t.rootTwoColumnsBizWebFullScreen,xa&&Aa!=null&&t.rootTwoColumnsWithCreationTemplate),"data-testid":void 0,children:[V,l.jsx(c("LWICometPostAdDialogWrapper.react"),{additionalBoostTargetIDs:f,backgroundImageOverride:k,buttonPropsOverride:e,confirmationMessageOverride:ea,confirmationMessageTitleOverride:fa,hideAdCenterLink:v,hideBackgroundImage:ga,isLiveBoostingAd:w,postAdDialogType:la,shouldCheckAutoBoostEntry:ma,showConfirmationBillingList:A,submissionAction:u,submissionIndicatorOverride:oa})]})}e.displayName=e.name+" [from "+f.id+"]";m=c("withLWICometSpecPart")(e,function(a){return{adAccountData:a.adAccountData,assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,audienceData:a.audienceData,budget:a.budgetData.budget,budgetType:a.budgetData.budgetType,creative:a.adgroupSpecs[a.selectedAdgroupID].creative,currency:a.adAccountData.currency,durationInDays:a.durationInDays,goal:a.goal,objective:a.objective,regionalRegulatedCategories:a.regionalRegulatedCategories,regulatedCategories:a.regulatedCategories,specContext:a,specialAdCategoryCountries:a.specialAdCategoryCountries,startTime:a.startTime,taiwanFinservBeneficiary:a.taiwanFinservBeneficiary,taiwanFinservPayor:a.taiwanFinservPayor}});g["default"]=m}),226);
-----
AdIntegrityPrecreateValidationBannerRoot.react",["AdIntegrityPrecreateValidationBannerRootQuery.graphql","AdIntegrityValidationBannerSection.react","AdIntegrityValidationLoggingConstants","AdsReviewCometIPCUtils","CometRelay","LWICometLoggingConstants","WebPixelRatio","react","useLWILoggerContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect;function a(a){var e=a.actionProps,f=a.callsite,g=a.clientCreativeSpec,i=a.creativeSpec,l=a.isStepperFlow;l=l===void 0?!1:l;var m=a.legacyAccountID,n=a.selectedAdgroupID;a=a.targetSpec;i={input:{callsite:f,creative_spec:(g==null?void 0:g.asset_feed_spec)!=null?null:i,creative_spec_json:(g==null?void 0:g.asset_feed_spec)!=null?JSON.stringify(g):null,legacy_ad_account_id:m,target_spec:JSON.stringify(a)},scale:d("WebPixelRatio").get()};g=c("useLWILoggerContext")();var o=g.flowID,p=g.targetID;k(function(){d("AdsReviewCometIPCUtils").logPolicyCheckTrigger(m,n,d("LWICometLoggingConstants").APP_ID,f,p,o)},[m,n,f,p,o]);a=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("AdIntegrityPrecreateValidationBannerRootQuery.graphql"),i);i=(g=a.ad_integrity_precreate_validation)==null?void 0:g.validation_response_contents;return i==null?null:j.jsx(c("AdIntegrityValidationBannerSection.react"),{actionProps:{textManualReviewRequested:e.textManualReviewRequested},adCreationStage:d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.PRECREATE,appID:d("LWICometLoggingConstants").APP_ID,callsite:f,isStepperFlow:l,legacyAccountID:m,selectedAdgroupID:n,validation:i})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSingleBucketFeedUnitUFI.react",["CometPlaceholder.react","CometRelay","CometUFIFeedbackReactSubscription","CometUFIRealtimeRoot.react","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","StoriesSingleBucketFeedUnitUFIActionBar.react","StoriesSingleBucketFeedUnitUFI_feedback.graphql","StoriesSingleBucketFeedUnitUFI_story.graphql","StoriesSuspensePauseContext","UFI2RealtimeContainer.react","deferredLoadComponent","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useRef,o=e.useState,p=c("deferredLoadComponent")(c("requireDeferred")("StoriesSingleBucketFeedUnitReplyBarContainer.react").__setRef("StoriesSingleBucketFeedUnitUFI.react"));function a(a){var e=a.feedback,f=a.feedbackSource;a=a.story;var g=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSingleBucketFeedUnitUFI_feedback.graphql"),e);e=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSingleBucketFeedUnitUFI_story.graphql"),a);a=m(c("StoriesLoggerContext"));var j=a.logger,q=d("CometRelay").useRelayEnvironment();a=l(function(){var a=g.id,b=g.subscription_target_id;return a!=null&&b!=null?d("CometUFIFeedbackReactSubscription").subscribe(q,{feedback_id:a},!1):null},[g,q]);var r=n(function(){}),s=l(function(a){r.current=a},[]),t=o(!1),u=t[0],v=t[1];t=m(c("StoriesSuspensePauseContext"));var w=t.setPause;t=l(function(){v(!0),w(!0,d("StoriesPauseReasons").FOCUSE_ON_INPUT),r.current(),j.sifAutoplayTextReplyLog(c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER)},[j,w]);var x=g.viewer_actor;return k.jsxs(k.Fragment,{children:[k.jsx(c("CometUFIRealtimeRoot.react"),{enabled:g.is_eligible_for_real_time_updates===!0,children:k.jsx(c("UFI2RealtimeContainer.react"),{subscribe:a,children:k.jsx(c("StoriesSingleBucketFeedUnitUFIActionBar.react"),{feedback:g,feedbackSource:f,handleMessageCTAPress:t,story:e})})}),u&&k.jsx(c("CometPlaceholder.react"),{fallback:null,children:k.jsx(p,{actor:x,setFocusTextReplyHandler:s,setPause:w,story:e})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSingleBucketFeedUnitUFIActionBar.react",["CometRelay","CometRow.react","CometRowItem.react","StoriesLoggerContext","StoriesLoggingConstants","StoriesSingleBucketFeedUnitUFIActionBar_feedback.graphql","StoriesSingleBucketFeedUnitUFIActionBar_story.graphql","StoriesSingleBucketFeedUnitUFIMessageCTA.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext;function a(a){var e=a.feedback,f=a.feedbackSource,g=a.handleMessageCTAPress;a=a.story;e=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSingleBucketFeedUnitUFIActionBar_feedback.graphql"),e);a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSingleBucketFeedUnitUFIActionBar_story.graphql"),a);var j=m(c("StoriesLoggerContext")),n=j.logger,o=l(function(){n.sifAutoplayLwrLog(c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER)},[n]);j=(a=a==null?void 0:(j=a.story_card_info)==null?void 0:j.can_viewer_text_reply)!=null?a:!1;a=e.ufi_action_renderers.map(function(a){return a.__typename==="UFIStoryReactActionRenderer"?k.jsx(c("CometRowItem.react"),{expanding:!0,children:k.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k xh8yej3",onClickCapture:o,children:k.jsx(d("CometRelay").MatchContainer,{match:a,props:{feedbackSource:f}},a.__typename)})},a.__typename):null}).filter(Boolean);j&&a.push(k.jsx(c("CometRowItem.react"),{expanding:!0,children:k.jsx(c("StoriesSingleBucketFeedUnitUFIMessageCTA.react"),{onPress:g})},"CometStoriesInFeedUnitMessageCTA"));return k.jsx("div",{className:"xq8finb x16n37ib",children:k.jsx(c("CometRow.react"),{paddingHorizontal:4,paddingVertical:4,spacingHorizontal:4,testid:void 0,children:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSingleBucketFeedUnitLoggerSessionInitialize",["StoriesLoggerSession","StoriesLoggingConstants","StoriesSingleBucketFeedUnitSessionContext","react","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useContext,j=b.useEffect;function a(){var a=c("uuidv4")(),b=i(c("StoriesSingleBucketFeedUnitSessionContext")),e=b.sessionID;j(function(){d("StoriesLoggerSession").initialize(e,a,c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER)},[e,a])}g["default"]=a}),98);
-----
LWICometAdPreviewIframe.react",["CometCompatBroker","CometFeedStoryGlimmer.react","LWICometAdPreviewGlimmer.react","LWICometLoggerContext","LWICometLoggingConstants","LegacyHidden","XAdPreviewController","areEqual","emptyFunction","getCompatIframeSource","react","stylex","useCompatDialogEventListener","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useContext,n=b.useEffect,o=b.useId,p=b.useLayoutEffect,q=b.useMemo,r=b.useRef,s=b.useState,t={feedStoryGlimmer:{marginBottom:"xh3wvx0",width:"xh8yej3",$$css:!0},rightColumn:{display:"x78zum5",justifyContent:"xl56j7k",width:"x1cvmir6",$$css:!0},root:{display:"x78zum5",justifyContent:"xl56j7k",width:"xy9ov0e",$$css:!0},wash:{display:"x78zum5",justifyContent:"xl56j7k",width:"x121pien",$$css:!0}},u=new Map([["DESKTOP_FEED_STANDARD",500],["SEARCH_SERP_ADS_DESKTOP",450],["SEARCH_SERP_ADS_MOBILE",402],["WATCH_SEARCH_ADS_MOBILE",402]]);function a(a){var b=a.adAccountID,e=a.adCreativeOptimizationType,f=a.adCreativeOptimizationValue,g=a.adFormat,i=a.creativeSpecForPreview,j=a.objective,v=a.rightColumn;v=v===void 0?!1:v;a=a.rightWash;a=a===void 0?!1:a;c("vulture")("8B2ixNtWmQt");var w=m(c("LWICometLoggerContext")),x=o(),y=r(new(c("CometCompatBroker"))()),z=s(null),A=z[0],B=z[1];z=l(function(a){var b,c;if(a==null||typeof a.data!=="object")return;b=(b=a.data)==null?void 0:b.format;c=(c=a.data)==null?void 0:c.height;a=(a=a.data)==null?void 0:a.width;if(b!==g||typeof c!=="number"||typeof a!=="number"||c<=0||a<=0)return;(c!==(A==null?void 0:A.height)||a!==(A==null?void 0:A.width))&&B({height:c,width:a})},[g,A]);var C=s(!0),D=C[0],E=C[1];c("useCompatDialogEventListener")(y.current,"preview-height",z);p(function(){y.current.init(c("emptyFunction"),x);return y.current.cleanup},[x]);C=q(function(){var a,h=c("XAdPreviewController").getURIBuilder().setFBID("ad_account_id",b).setEnum("ad_creative_optimization_type",e).setEnum("ad_creative_optimization_value",f).setEnum("ad_preview_format",g).setFBID("app_id",d("LWICometLoggingConstants").APP_ID).setString("creative_spec",i).setString("campaign_spec",j!=null?JSON.stringify({objective:j}):"{}").setFBID("page_id",w==null?void 0:w.pageID).setEnum("product",w==null?void 0:w.product.toLowerCase()).setString("flow_id",w==null?void 0:w.flowID).setString("entry_point",w==null?void 0:w.entryPoint).setString("flow",w==null?void 0:w.flow).getURI().toString();h=c("getCompatIframeSource")(h,x);return k.jsx("iframe",{className:"x1ejq31n xd10rxx x1sy0etr x17r0tee x6ikm8r x10wlt62","data-testid":void 0,onLoad:function(){E(!1)},src:h,style:{height:Math.max((a=A==null?void 0:A.height)!=null?a:0,142),width:Math.max((a=(a=u.get(g))!=null?a:A==null?void 0:A.width)!=null?a:380,320)}},h)},[b,e,f,g,A==null?void 0:A.height,A==null?void 0:A.width,i,x,w==null?void 0:w.entryPoint,w==null?void 0:w.flowID,w==null?void 0:w.pageID,w==null?void 0:w.product]);n(function(){E(!0)},[b,g,i]);return k.jsxs("div",{className:(h||(h=c("stylex")))(v?t.rightColumn:t.root,a&&t.wash),children:[D&&(a?k.jsx(c("LWICometAdPreviewGlimmer.react"),{rightWash:!0}):k.jsx("div",{className:(h||(h=c("stylex")))(v&&t.feedStoryGlimmer),children:k.jsx(c("CometFeedStoryGlimmer.react"),{})})),k.jsx(c("LegacyHidden"),{mode:D?"hidden":"visible",children:C})]})}a.displayName=a.name+" [from "+f.id+"]";e=k.memo(a,i||(i=c("areEqual")));g["default"]=e}),98);
-----
StoriesSuspenseCardOptionMenu.react",["ARIA_LABEL_PLACEHOLDER_FIXME","CometRelay","FDSMenu.react","FDSSeparatorMenuItem.react","StoriesActorContext","StoriesArchiveDeleteCardOptionMenuItem.react","StoriesArchiveStoryOptionMenuItem.react","StoriesBehaviorHelpContext","StoriesDeleteCardOptionMenuItem.react","StoriesEnums","StoriesFileBugOptionMenuItem.react","StoriesGating","StoriesInspectStoryOptionMenuItem.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesMuteStoryOptionMenuItem.react","StoriesReportOptionMenuItem.react","StoriesSettingsOptionMenuItem.react","StoriesShareStoryOptionMenuItem.react","StoriesSuspenseCardOptionMenu_card.graphql","StoriesSuspenseCardOptionMenu_owner.graphql","StoriesUnfollowPageOptionMenuItem.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react")),l=j.useContext,m=function(){function a(){this.$1=[]}var b=a.prototype;b.add=function(a,b){(b!=null?b:!0)&&this.$1.push(a);return this};b.done=function(){var a;return(a=this.$1)!=null?a:[]};return a}();function a(a){var e=a.bucketID,f=a.card;a.onClose;var g=a.onHideOptionConfirmationDialog,j=a.onShowOptionConfirmationDialog,n=a.owner,o=a.refetchNodes;a=a.setPause;var p=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSuspenseCardOptionMenu_card.graphql"),f),q=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseCardOptionMenu_owner.graphql"),n);f=l(c("StoriesActorContext"));var r=f.actorID;n=l(c("StoriesBehaviorHelpContext"));f=n.getBucketType;n=f();var s=p==null?void 0:(f=p.shareable)==null?void 0:f.url;f=(p==null?void 0:(f=p.viewer)==null?void 0:f.is_fb_employee)===!0;var t=p==null?void 0:p.post_id,u=p==null?void 0:p.id;if(p==null||u==null)return null;function v(){var a=p==null?void 0:p.attachments;return a&&(a==null?void 0:a.length)>0?(a=a[0].media)==null?void 0:a.__typename:null}function w(){var a;return p==null?void 0:(a=p.story_card_info)==null?void 0:a.story_card_type}function x(){var a;if(q==null)return!1;a=p==null?void 0:(a=p.via)==null?void 0:a.id;return a===r||z()}function y(){return s!=null}function z(){if(q==null)return!1;var a=q.viewer_profile_permissions!=null&&q.viewer_profile_permissions.includes("EDIT_PROFILE");return q.id===r||a||!!q.is_viewer_host}var A=d("StoriesLoggerSession").getOpenViewerSource(),B=null;A===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?B=c("StoriesArchiveDeleteCardOptionMenuItem.react"):B=d("StoriesDeleteCardOptionMenuItem.react").StoriesDeleteCardOptionMenuItem;t=z()&&n===d("StoriesEnums").STORY_CARD_TYPES.HIGHLIGHTED_STORY?null:new m().add(k.jsx(c("StoriesShareStoryOptionMenuItem.react"),{ownerName:q==null?void 0:q.name,postID:t,url:(A=s)!=null?A:""},"share_story"),y()).add(k.jsx(c("StoriesMuteStoryOptionMenuItem.react"),{actorID:r,bucketID:e,onHideConfirmationDialog:g,onOpenConfirmationDialog:j,ownerID:q==null?void 0:q.id,ownerName:q==null?void 0:q.name,storyCardType:w()},"mute_owner"),!z()&&n!==d("StoriesEnums").STORY_CARD_TYPES.HIGHLIGHTED_STORY).add(k.jsx(c("StoriesUnfollowPageOptionMenuItem.react"),{actorID:r,bucketID:e,onHideConfirmationDialog:g,onOpenConfirmationDialog:j,ownerID:q==null?void 0:q.id,ownerName:q==null?void 0:q.name},"unfollow_page"),!z()&&w()===d("StoriesEnums").STORY_CARD_TYPES.PAGE_STORY).add(k.jsx(c("StoriesReportOptionMenuItem.react"),{card:p,setPause:a},"report"),!x()).add(k.jsx(B,{bucketID:e,cardID:u,mediaType:v(),onHideConfirmationDialog:g,onOpenConfirmationDialog:j},"delete"),x()).add(k.jsx(c("StoriesFileBugOptionMenuItem.react"),{setPause:a},"bug")).add(k.jsx(c("StoriesInspectStoryOptionMenuItem.react"),{cardID:u},"inspect"),f).add(k.jsx(c("FDSSeparatorMenuItem.react"),{},"separator"),d("StoriesGating").shouldShowViewerV3()).add(k.jsx(c("StoriesArchiveStoryOptionMenuItem.react"),{actorID:r},"archive"),r!=null&&d("StoriesGating").shouldShowViewerV3()).add(k.jsx(c("StoriesSettingsOptionMenuItem.react"),{refetchNodes:o},"setting"),d("StoriesGating").shouldShowViewerV3()).done();return k.jsx("div",{"data-testid":void 0,children:k.jsx(c("FDSMenu.react"),{"aria-label":c("ARIA_LABEL_PLACEHOLDER_FIXME"),withArrow:!0,children:t})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ConversionsAPISetupNoticeContentContainer.react",["fbt","ix","AdsErrorBoundary.react","AdsFluxHooks","AdsManagerL2ConversionsAPINoticeStyles","AdsMgmtSetPixelIDAction","AdsPrereqsCAPIUpsellNoticeTooltip.react","BizSiteIdentifier.brands","BusinessSetupsPlugins","CAPIPrereqsTypes.flow","ConversionsAPITextContent","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoIcon.react","GeoLink.react","GeoText.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetTextContent","SignalsS2SSetupFlowSelectedPixelIDAction","emptyFunction","fbicon","first","react","stylex","useAdsBSUSetupMetadata","useUpsertAdsBSUSetupMetadata"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react")),m=k.useEffect,n="capi";function a(a){var b=a.adAccount,e=a.onRedirect,g=a.selectedPixelID;a=d("useAdsBSUSetupMetadata").useAdsBSUSetupMetadataSelectedIndex(b.account_id);var k=a.connectionID;a=a.setupSelectedIndexMap;var o=d("useUpsertAdsBSUSetupMetadata").useUpsertAdsBSUSetupMetadataSelectedIndex({connectionID:k,adAccountID:b.account_id}),p=c("BusinessSetupsPlugins").get(n);k=p.useDataFetchingHook({adAccountID:b.account_id,businessID:d("BizSiteIdentifier.brands").getBusinessID(),selectedIndexID:a.get(n)});a=k.entries;var q=k.entryIndexIDs;k=k.updater;var r=a.filter(function(a){return p.isEntryEligible(a,b)&&!p.inFinalState(a,0)});a=a.length>0&&p.inFinalState(c("first")(a),q==null?void 0:q.length);m(function(){c("AdsMgmtSetPixelIDAction").dispatch({pixelID:g},{line:"102",module:"ConversionsAPISetupNoticeContentContainer.react.js",moduleID:f.id}),c("SignalsS2SSetupFlowSelectedPixelIDAction").dispatch({pixelID:g},{line:"103",module:"ConversionsAPISetupNoticeContentContainer.react.js",moduleID:f.id}),o(n,g,c("emptyFunction"))},[b.account_id,a,g,o]);var s=p.useSetupStepsHook({adAccountID:b.account_id,businessID:d("BizSiteIdentifier.brands").getBusinessID(),updater:k}),t=function(){var a=c("first")(r),b=s.find(function(b){return b.stepID===(a==null?void 0:a.current_step_id)})||s.find(function(a){return a.stepID===d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.INITIAL});b&&b.onClick(a)};q=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE,"S4L_DISABLED",g);return l.jsx(l.Fragment,{children:r.length>0&&l.jsx(c("AdsErrorBoundary.react"),{moduleName:f.id,children:l.jsxs("div",{className:(j||(j=c("stylex")))(c("AdsManagerL2ConversionsAPINoticeStyles").body),ref:q,children:[l.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"horizontal",children:[l.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("515023"),16)}),l.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:d("ConversionsAPITextContent").getAML2ConversionsAPIInlineSetupNoticeMessage()}),l.jsx(c("AdsPrereqsCAPIUpsellNoticeTooltip.react"),{bodyContent:[l.jsx(c("GeoText.react"),{children:d("SYDPrereqsWidgetTextContent").AM_L2_CAPI_UPSELL_POPOVER_BODY_INLINE},"0"),l.jsx("br",{}),l.jsx("br",{}),l.jsx(c("GeoText.react"),{children:h._("Once you"ve started the setup, progress will be saved in your {=m2}",[h._implicitParam("=m2",l.jsx(c("GeoLink.react"),{onClick:function(){d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.IPM_GO_TO_ACCOUNT_OVERVIEW,d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_ACCOUNT_OVERVIEW,g),e()},children:h._("account overview.")}))])})],onRedirect:c("emptyFunction"),onToggle:function(){return d("PrereqsLoggingUtils").logPrereqsImpression(d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE_POPOVER,g)}})]}),l.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",xstyle:c("AdsManagerL2ConversionsAPINoticeStyles").linkPadding,children:l.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){t(),d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.IPM_CAPI_INLINE_OPEN_FLOW,d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE,g)},children:d("ConversionsAPITextContent").getAML2ConversionsAPIInlineSetupNoticeLinkText()})})]})})})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),226);
-----
SignalsHistoryTableLoggingConstants",["keyMirror"],(function(a,b,c,d,e,f,g){"use strict";a=c("keyMirror")({ACTIVITY_TYPE_FILTER:null,CHANGE_BY_FILTER:null,DATE_FILTER:null});b=c("keyMirror")({CLICK_ACTIVITY_TYPE_FILTER:null,CLICK_CHANGE_BY_FILTER:null,CLICK_DATE_FILTER:null,FILTER_TABLE_BY_ACTIVITY_TYPE:null,FILTER_TABLE_BY_CHANGED_BY:null,FILTER_TABLE_BY_DATE:null,HISTORY_TABLE_LOADED:null,SORT_TABLE_BY_DATE_ASCENDING:null,SORT_TABLE_BY_DATE_DESCENDING:null});g.SignalsHistoryTableUserInputLoggingFieldNames=a;g.SignalsHistoryTableLoggingActions=b}),98);
-----
SignalsHomeHistoryActivityTable.react",["fbt","ix","BUITable.react","BUITableColumn.react","BUITableHeaderCell.react","GeoFlexbox.react","Image.react","Promise","SignalsHistoryNoResultIndicator.react","SignalsHistoryTableActivityNameCell.react","SignalsHistoryTableChangedByCell.react","SignalsHistoryTableConstants","SignalsHistoryTableDateTimeCell.react","SignalsHistoryTableLoggingConstants","SignalsVariableActivityDetailsCellComponent","SignalsVariableItemChangedCellComponent.react","immutable","react","useAutoSizer"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useMemo,o=e.useState,p=100,q=10,r=function(a){a=a.item;return l.jsx(c("SignalsHistoryTableActivityNameCell.react"),{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})},s=function(a){a=a.item;return l.jsx(d("SignalsVariableActivityDetailsCellComponent").SignalsVariableActivityDetailsCellComponent,{activity:a})},t=function(a){a=a.item;return l.jsx(d("SignalsVariableItemChangedCellComponent.react").SignalsVariableItemChangedCellComponent,{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})},u=function(a){a=a.item;return l.jsx(c("SignalsHistoryTableChangedByCell.react"),{activity:a})},v=function(a){a=a.item;return l.jsx(c("SignalsHistoryTableDateTimeCell.react"),{activity:a})};function w(a,b){b=b.sortBy(function(a){return a.timestamp});return a==="asc"?b:b.reverse()}function a(a){var e=a.dataSource,f=a.hasMoreItems,g=a.logger,k=a.onLoadMoreData;a.sortBy;a=o("desc");var x=a[0],y=a[1],z=m(function(){var a=x==="asc"?"desc":"asc";y(a);g.logCustomActionUseSparingly(a==="asc"?d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.SORT_TABLE_BY_DATE_ASCENDING:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.SORT_TABLE_BY_DATE_DESCENDING)},[g,x]);a=n(function(){return w(x,c("immutable").List(e))},[e,x]);var A=c("useAutoSizer")(),B=A.Container,C=A.height;A=A.width;var D=function(){k();return(j||(j=b("Promise"))).resolve([])};C=a.size===0?10:Math.floor(C)-q;return l.jsx("div",{className:"_3-8y",style:{display:"flex",height:"100%",overFlow:"hidden",width:"100%"},children:l.jsxs(c("GeoFlexbox.react"),{direction:"column",grow:1,children:[l.jsx(B,{children:l.jsxs(c("BUITable.react"),{borders:"rows",hasFlexibleColumnWidths:!0,headerProps:{height:d("SignalsHistoryTableConstants").CELL_HEIGHT,item:{}},items:a,maxHeight:C,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT,totalRowCount:f?a.count()+d("SignalsHistoryTableConstants").NUM_LOADING_STATE_ROWS:void 0,width:A,onLoadMoreRows:D,children:[l.jsx(c("BUITableColumn.react"),{cell:r,header:function(){return l.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("Activity")})},width:Math.floor(A*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY]/p)},d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY),l.jsx(c("BUITableColumn.react"),{cell:s,header:function(){return l.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY_DETAILS,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("Activity details")})},width:Math.floor(A*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY_DETAILS]/p)},d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY_DETAILS),l.jsx(c("BUITableColumn.react"),{cell:t,header:function(){return l.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.ITEM_CHANGED,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("Item changed")})},width:Math.floor(A*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.ITEM_CHANGED]/p)},d("SignalsHistoryTableConstants").COLUMN_KEYS.ITEM_CHANGED),l.jsx(c("BUITableColumn.react"),{cell:u,header:function(){return l.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.CHANGED_BY,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("Changed by")})},width:Math.floor(A*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.CHANGED_BY]/p)},d("SignalsHistoryTableConstants").COLUMN_KEYS.CHANGED_BY),l.jsx(c("BUITableColumn.react"),{cell:v,header:function(){return l.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.DATE_TIME,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!0,label:h._("Date and Time"),sortDirection:x,onSort:z})},width:Math.floor(A*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.DATE_TIME]/p)},d("SignalsHistoryTableConstants").COLUMN_KEYS.DATE_TIME)]})}),a.size===0&&l.jsx(c("SignalsHistoryNoResultIndicator.react"),{image:l.jsx(c("Image.react"),{className:"_3-95",src:i("509718")}),primaryMessage:h._("There are no history changes for the filters that you"ve selected"),secondaryMessage:h._("Broaden your filters above to see history. Changes may take up to 15 minutes to appear in this table.")})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
SignalsHomePixelHistoryActivityTableContainer.react",["fbt","ix","AdsEventsManagerConsolidationAssets","AdsEventsManagerDatasetConsolidationRolloutStatusCheckWithoutPrimarySignalContainerCheckDataProvider","AdsEventsManagerGatingUtils","AdsLoadObjectUtils","BUIDateRangePicker.react","BUIDateRangePresets","BUIDropdownSelector.react","BUIDropdownSelectorOption.react","BUIToolbar.react","BUIToolbarFill.react","GeoLink.react","Image.react","Laminar","SignalsActivityLogEventFbts","SignalsActivityTypeEnum","SignalsActivityTypeMapping","SignalsErrorCard.react","SignalsEventsTableAssets.react","SignalsHistoryDataProvider","SignalsHistoryNoResultIndicator.react","SignalsHistoryTableFilterUtils","SignalsHistoryTableLoggingConstants","SignalsHomeContentPageHeader.react","SignalsHomeHistoryActivityTable.react","SignalsLoadingSpinner.react","SignalsLoggingBoundary.react","SignalsPixelHistoryLoadMoreItemsAction","Timezone","qpl","react","signalsLoggingUserInputWithValueContextListener","useEffectOnce"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useMemo,n=b.useState,o=[d("SignalsHistoryTableFilterUtils").ALL_AVAILABLE_DAYS_INTERVAL,c("BUIDateRangePresets").TODAY,c("BUIDateRangePresets").YESTERDAY,c("BUIDateRangePresets").LAST_7_DAYS,c("BUIDateRangePresets").LAST_14_DAYS,c("BUIDateRangePresets").LAST_28_DAYS,c("BUIDateRangePresets").THIS_MONTH];function a(a){var b=a.logger,e=a.pixelID;c("useEffectOnce")(function(){b.startEvent(c("qpl")._(58195969,"4642"))});a=d("Laminar").useProvider(c("SignalsHistoryDataProvider")).get(e);var g=d("Laminar").useProvider(c("AdsEventsManagerDatasetConsolidationRolloutStatusCheckWithoutPrimarySignalContainerCheckDataProvider")).get(e).map(function(a){return a.isConsolidationRollout}),h=d("AdsLoadObjectUtils").all([a,g]),i=l(function(){return c("SignalsPixelHistoryLoadMoreItemsAction").dispatch({pixelID:e},{line:"143",module:"SignalsHomePixelHistoryActivityTableContainer.react.js",moduleID:f.id})},[e]);if(h.hasError()){b.endEventFail(c("qpl")._(58195969,"4642"));return k.jsx(c("SignalsErrorCard.react"),{content:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_CONTENT,header:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_HEADER})}return h.isLoading()?k.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k",children:k.jsx(c("SignalsLoadingSpinner.react"),{})}):k.jsx(p,{hasMoreItems:a.hasValue()&&a.getValueEnforcing().after!=null,isConsolidatedDataset:g.getValueEnforcing(),logger:b,pixelHistoryList:a.hasValue()?a.getValueEnforcing().pixelHistoryList:[],onLoadMoreData:i})}a.displayName=a.name+" [from "+f.id+"]";function p(a){var b=a.hasMoreItems,e=a.isConsolidatedDataset,f=a.logger,g=a.onLoadMoreData,j=a.pixelHistoryList;c("useEffectOnce")(function(){f.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.HISTORY_TABLE_LOADED),f.endEventSuccess(c("qpl")._(58195969,"4642"))});a=m(function(){return d("SignalsHistoryTableFilterUtils").getPixelUsers(j)},[j]);var p=a.userMapping;a=a.sortedUserList;var q=n("ALL"),r=q[0],s=q[1];q=l(function(){f.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.CLICK_ACTIVITY_TYPE_FILTER)},[f]);var t=l(function(a){s(a),f.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.ACTIVITY_TYPE_FILTER,stringValue:a}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_ACTIVITY_TYPE)},[s,f]),u=n(d("SignalsHistoryTableFilterUtils").ALL_USERS_ID),v=u[0],w=u[1];u=l(function(){f.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.CLICK_CHANGE_BY_FILTER)},[f]);var x=l(function(a){w(a),f.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.CHANGE_BY_FILTER,stringValue:a}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_CHANGED_BY)},[f]),y=n(d("SignalsHistoryTableFilterUtils").ALL_AVAILABLE_DAYS_INTERVAL_VALUE),z=y[0],A=y[1];y=l(function(a){a&&f.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.CLICK_DATE_FILTER)},[f]);var B=l(function(a){A(a);var b=a.preset!=null?a.preset:(a=a.interval)==null?void 0:a.toString();f.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.DATE_FILTER,stringValue:b}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_DATE)},[A,f]),C=m(function(){return d("SignalsHistoryTableFilterUtils").filterHistory({selectedCategory:r,selectedDateRange:z,selectedUserId:v},j)},[r,z,v,j]),D=m(function(){return new Set(j.map(function(a){return d("SignalsActivityTypeMapping").SignalsActivityTypeMapping[a.actionType]}).filter(Boolean))},[j]),E=k.jsx("span",{style:{textDecoration:"underline"},children:h._("Learn more")});E=k.jsx(c("GeoLink.react"),{href:"https://www.facebook.com/business/help/534903343753014",target:"_blank",children:E});E=e?d("AdsEventsManagerConsolidationAssets").HistoryContent.getTabDescription(E):h._("A history of changes made to your pixel. {link to pixel history help doc} about how data source history is recorded and what changes can be seen.",[h._param("link to pixel history help doc",E)]);return k.jsxs(k.Fragment,{children:[k.jsx(c("SignalsHomeContentPageHeader.react"),{description:E,title:h._("History")}),k.jsx("div",{className:"x1iyjqo2 x6ikm8r x10wlt62",children:k.jsxs("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,height:"100%",width:"100%"},children:[k.jsx("div",{children:k.jsxs(c("BUIToolbar.react"),{children:[k.jsx(c("BUIToolbarFill.react"),{}),d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager()?null:k.jsx(c("BUIDateRangePicker.react"),{height:"medium",options:o,timezoneID:d("Timezone").getEnvironmentTimezoneID(),value:z,verbose:"custom",onChange:B,onToggle:y}),k.jsx(c("BUIDropdownSelector.react"),{label:h._("Changed by: {selected user}",[h._param("selected user",p[v])]),value:v,onChange:x,onSelectorButtonClick:u,children:a.map(function(a){return k.jsx(c("BUIDropdownSelectorOption.react"),{value:a[0],children:a[1]},a[0])})}),k.jsx(c("BUIDropdownSelector.react"),{label:h._("Activity type: {selected activity type}",[h._param("selected activity type",c("SignalsActivityLogEventFbts")[r])]),value:r,onChange:t,onSelectorButtonClick:q,children:Object.keys(c("SignalsActivityTypeEnum")).filter(function(a){return a==="ALL"||d("SignalsActivityTypeMapping").IMPLEMENTED_ACTIVITY_TYPES[a]===!0&&D.has(a)}).sort(function(a,b){return a==="ALL"?-1:a.toString().localeCompare(b.toString())}).map(function(a){return k.jsx(c("BUIDropdownSelectorOption.react"),{value:a,children:c("SignalsActivityLogEventFbts")[a]},a)})})]})}),k.jsx("div",{style:{flex:1,overflow:"hidden"},children:j!=null&&j.length>0?k.jsx(c("SignalsHomeHistoryActivityTable.react"),{dataSource:C,hasMoreItems:b,logger:f,sortBy:"DATE_TIME",onLoadMoreData:g}):k.jsx(c("SignalsHistoryNoResultIndicator.react"),{image:k.jsx(c("Image.react"),{className:"_3-95",src:i("725971")}),primaryMessage:e?d("AdsEventsManagerConsolidationAssets").HistoryContent.PRIMARY_MESSAGE_FOR_NO_HISTORY:h._("No history changes found"),secondaryMessage:e?d("AdsEventsManagerConsolidationAssets").HistoryContent.SECONDARY_MESSAGE_FOR_NO_HISTORY:h._("No changes have been made to your pixel. Changes may take up to 15 minutes to appear in this table.")})})]})})]})}p.displayName=p.name+" [from "+f.id+"]";e=c("SignalsLoggingBoundary.react").loggerConsumingComponent(d("Laminar").laminarContainer(a),function(a){return a.scope("SignalsHomePixelHistoryActivityTableContainer")},{disableSessionCreation:!0});g["default"]=e}),226);
-----
adsDeliveryContainerLoggingGetLoggingEventForFrequencyChange",["AdsDeliveryContainerLoggingConstants","AdsInterfacesLogEvents"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case d("AdsDeliveryContainerLoggingConstants").DEFAULT_AUTOMATIC_OPTION_INDEX:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_SELECT_AUTOMATIC_OPTION;default:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_SELECT_CUSTOM_OPTION_AND_EDIT}}g["default"]=a}),98);
-----
AdsEventsManagerConsolidatedDataSetHistoryActivityTableContainer.react",["fbt","AdsEventsManagerHistoryActivityTable.react","AdsFluxHooks","GeoDropdownMenu.react","GeoMenuItem.react","SignalsActivityLogEventFbts","SignalsActivityTypeEnum","SignalsActivityTypeMapping","SignalsErrorCard.react","SignalsEventsTableAssets.react","SignalsHistoryDataProvider","SignalsHistoryTableFilterUtils","SignalsHistoryTableLoggingConstants","SignalsPixelHistoryLoadMoreItemsAction","adsCreateSelector","adsCreateStructuredSelector","adsEventsManagerDataSourceIDSelectorEnforced","geoMargin","qpl","react","signalsLoggingUserInputWithValueContextListener","useSignalsLogger","useSignalsLoggingEffectOnce"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useMemo,m=b.useState;e=c("SignalsHistoryDataProvider").toFluxSelector();b=c("adsCreateSelector")([c("adsEventsManagerDataSourceIDSelectorEnforced"),e],function(a,b){return b.get(a)},{name:f.id+".historyDataSelector"});var n=c("adsCreateStructuredSelector")({datasetID:c("adsEventsManagerDataSourceIDSelectorEnforced"),historyDataLO:b},f.id+".selector");function a(){var a,b=c("useSignalsLogger")();c("useSignalsLoggingEffectOnce")(function(){b.startEvent(c("qpl")._(58195969,"4642"))});var e=d("AdsFluxHooks").useAdsSelector(n),g=e.datasetID;e=e.historyDataLO;var h=k(function(){return c("SignalsPixelHistoryLoadMoreItemsAction").dispatch({pixelID:g},{line:"78",module:"AdsEventsManagerConsolidatedDataSetHistoryActivityTableContainer.react.js",moduleID:f.id})},[g]);if(e.hasError()){b.endEventFail(c("qpl")._(58195969,"4642"));return j.jsx(c("SignalsErrorCard.react"),{content:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_CONTENT,header:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_HEADER})}return j.jsx(q,{hasMoreItems:((a=e.getValue())==null?void 0:a.after)!=null,historyList:(a=(a=e.getValue())==null?void 0:a.pixelHistoryList)!=null?a:[],isLoading:e.isLoading()||e.isUpdating(),logger:b,onLoadMoreData:h})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b=a.userList,e=a.logger,f=a.onSelect;return b.map(function(a,b){var g=a[0];b=a[1];return j.jsx(c("GeoMenuItem.react"),{"data-testid":void 0,label:b,onClick:function(){e.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.CHANGE_BY_FILTER,stringValue:g}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_CHANGED_BY),f(g)}},g)})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.logger,e=a.onSelect,f=a.categories;return Object.keys(c("SignalsActivityTypeEnum")).filter(function(a){return a==="ALL"||d("SignalsActivityTypeMapping").IMPLEMENTED_ACTIVITY_TYPES[a]===!0&&f.has(a)}).sort(function(a,b){return a==="ALL"?-1:a.toString().localeCompare(b.toString())}).map(function(a,f){return j.jsx(c("GeoMenuItem.react"),{"data-testid":void 0,label:c("SignalsActivityLogEventFbts")[a],onClick:function(){b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.ACTIVITY_TYPE_FILTER,stringValue:a}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_ACTIVITY_TYPE),e(a)}},a)})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b=a.hasMoreItems,e=a.historyList,f=a.isLoading,g=a.logger;a=a.onLoadMoreData;var i=l(function(){return d("SignalsHistoryTableFilterUtils").getPixelUsers(e)},[e]),n=i.userMapping;i=i.sortedUserList;var q=m("ALL"),r=q[0];q=q[1];var s=k(function(){g.scope("ACTIVITY_TYPE_FILTER").logClick()},[g]),t=m(d("SignalsHistoryTableFilterUtils").ALL_USERS_ID),u=t[0];t=t[1];var v=k(function(){g.scope("CHANGE_BY_FILTER").logClick()},[g]),w=l(function(){return new Set(e.map(function(a){return d("SignalsActivityTypeMapping").SignalsActivityTypeMapping[a.actionType]}).filter(Boolean))},[e]),x=l(function(){return d("SignalsHistoryTableFilterUtils").filterHistory({selectedCategory:r,selectedUserId:u},e)},[r,u,e]);n=h._("Changed by: {selected user}",[h._param("selected user",n[u])]);var y=h._("Activity type: {selected activity type}",[h._param("selected activity type",c("SignalsActivityLogEventFbts")[r])]);return j.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[j.jsxs("div",{style:{display:"flex",justifyContent:"flex-end"},children:[j.jsx(c("GeoDropdownMenu.react"),{"data-testid":void 0,label:n,xstyle:c("geoMargin").end8,onClick:v,children:j.jsx(o,{logger:g,userList:i,onSelect:t})}),j.jsx(c("GeoDropdownMenu.react"),{"data-testid":void 0,label:y,onClick:s,children:j.jsx(p,{categories:w,logger:g,onSelect:q})})]}),j.jsx(c("AdsEventsManagerHistoryActivityTable.react"),{dataSource:x,hasMoreItems:b,isLoading:f,onLoadMoreData:a})]})}q.displayName=q.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),226);
-----
AdIntegrityValidationBanner.react",["AdIntegrityAppealAction","AdIntegrityHECCertificationAction","AdIntegrityTextRMRAction","AdIntegrityValidationBannerFooter.react","AdIntegrityValidationBannerState","AdIntegrityValidationBanner_actions.graphql","AdIntegrityValidationBanner_content.graphql","AdIntegrityValidationLoggingConstants","AdsReviewCometIPCUtils","CometExternalLinkedEntityRenderer","CometInlineEntityRenderer","CometRelay","CometTextWithEntitiesRelay.react","JSResourceForInteraction","LWICometNoticeCard.react","LWICometOptionalLoggingDataContext","LWICometProductUtils","lwiCometManualReviewRequestedReducer","react","requireDeferred","useAdIntegrityCertifyMutation","useAdsIntegrityAppeal","useAdsIntegrityCometValidationBannerRenderEventLogger","useCometLazyDialog","useLWILoggerContext","useLWIReducers"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useReducer,p=c("requireDeferred")("LWICometFalcoEvent").__setRef("AdIntegrityValidationBanner.react"),q=c("JSResourceForInteraction")("AdsIntegrityCertificationDialogResource.react").__setRef("AdIntegrityValidationBanner.react"),r="USER_CERTIFICATION",s="FINANCIALANDINSURANCEPRODUCTSANDSERVICES_REGULATORY";function t(a){var c=d("CometRelay").useFragment(h!==void 0?h:h=b("AdIntegrityValidationBanner_content.graphql"),a.content);a=d("CometRelay").useFragment(i!==void 0?i:i=b("AdIntegrityValidationBanner_actions.graphql"),a.actions);return[c,a]}function a(a){var b,e=c("useLWILoggerContext")(),f=e.entryPoint,g=e.flow,h=e.flowID,i=e.mergeOptionalLoggingData,j=e.pageID,u=e.product,v=e.targetID,w=m(c("LWICometOptionalLoggingDataContext"));e=t(a);var x=e[0];e=e[1];var y=x.disapproval_reason===r,z=x.disapproval_reason===s;c("useAdsIntegrityCometValidationBannerRenderEventLogger")(a.adCreationStage,a.appID,v,a.callsite,y?null:x.disapproval_reason,x.disapproval_reason_tier,h,a.legacyAccountID,a.selectedAdgroupID);n(function(){if(x.disapproval_reason==null||(w==null?void 0:w.ipcDisapprovalReasons)!=null&&w.ipcDisapprovalReasons.has(x.disapproval_reason)||y)return;(w==null?void 0:w.ipcDisapprovalReasons)==null?i({ipcDisapprovalReasons:new Set([x.disapproval_reason])}):(w.ipcDisapprovalReasons.add(x.disapproval_reason),i({ipcDisapprovalReasons:w.ipcDisapprovalReasons}))},[x.disapproval_reason,i,w==null?void 0:w.ipcDisapprovalReasons,y]);n(function(){if(x.disapproval_reason==null||x.disapproval_reason_tier==null||y)return;p.onReady(function(b){b.log({action:"render",ad_account_id:a.legacyAccountID,context:"validation",entry_point:f,event:"render_warning_message",flow:g,flow_id:h,page_id:j,post_id:v,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(u),side:"client_side"})})},[x.disapproval_reason,x.disapproval_reason_tier,f,g,h,j,u,a.legacyAccountID,y,v]);var A=l(function(b){d("AdsReviewCometIPCUtils").logUnifiedBannerUIEvent(a.legacyAccountID,a.adCreationStage,a.selectedAdgroupID,a.appID,a.callsite,x.disapproval_reason||"UNKNOWN",b,!0,v,h)},[x.disapproval_reason,h,a.adCreationStage,a.appID,v,a.callsite,a.legacyAccountID,a.selectedAdgroupID]);e=d("AdIntegrityValidationBannerState").getInitialState(e.actions,x.action_ids);e=o(d("AdIntegrityValidationBannerState").reducer,e);var B=e[0];e=e[1];b=(b=x.title)==null?void 0:b.text;var C,D=[],E=c("useCometLazyDialog")(q),F=E[0];E=c("AdIntegrityHECCertificationAction").getActionPropertiesFromState(B);var G=c("AdIntegrityHECCertificationAction").getActionCallbacks(E,e,A),H=G[0];G=G[1];var I=c("useAdIntegrityCertifyMutation")(),J=l(function(){A("ui_nondiscrimination_dialog_certify_click"),I({source:"lwi_www"},H,function(){})},[A,I,H]),K=l(function(){A("ui_nondiscrimination_dialog_open"),F({onCertificationDialogSubmit:J})},[A,F,J]);E=c("AdIntegrityHECCertificationAction").getCTAButtonsForAction(E,K,G);E&&(C=E);K=c("AdIntegrityAppealAction").getActionPropertiesFromState(B);G=a.selectedAdgroupID;E=c("useAdsIntegrityAppeal")(K,a.appID,e,a.legacyAccountID,a.selectedAdgroupID);if(z){e=c("AdIntegrityAppealAction").getAQButtonForFCAVerificaton(K);e&&(C=e)}z=c("AdIntegrityAppealAction").getCTAButtonsForAction(K,E);!C&&z&&G!=null&&G!==""&&(C=z);var L=c("useLWIReducers")([c("lwiCometManualReviewRequestedReducer")]);e=c("AdIntegrityTextRMRAction").getActionPropertiesFromState(B);K=function(){A(a.actionProps.textManualReviewRequested?"ui_text_penalty_undo_mark_exception_click":"ui_text_penalty_mark_exception_click"),L({type:"manual_review_requested_reducer.toggle_manual_review_requested"},{side:"user_action"})};E=c("AdIntegrityTextRMRAction").getControlForAction(e,a.actionProps.textManualReviewRequested,K);E!=null&&D.push(E);z=(G=B.actionContent)!=null?G:x.body;if(!z||x.disapproval_reason_tier==="TEXT_PENALTY")return null;return y?null:k.jsx("div",{className:"x1yztbdb",children:k.jsx(c("LWICometNoticeCard.react"),{bizwebFooter:k.jsx(c("AdIntegrityValidationBannerFooter.react"),{accountID:a.legacyAccountID,adgroupID:a.selectedAdgroupID,chatAccessKey:a.chatAccess}),body:k.jsx(c("CometTextWithEntitiesRelay.react"),{renderers:{ExternalUrl:[c("CometExternalLinkedEntityRenderer")],Inline:[c("CometInlineEntityRenderer")]},textWithEntities:z,withParagraphs:!0}),category:(e=B.noticeCategory)!=null?e:x.disapproval_reason_tier==="POLICY"&&a.adCreationStage===d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.POSTCREATE?"ERROR":"WARNING",ctaButton:C,header:(E=(K=B.actionTitle)!=null?K:b)!=null?E:"",isStepperFlow:(G=a.isStepperFlow)!=null?G:!1,items:D,marginVertical:0})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useLWICometAppealRejectedAdAction",["AdIntegrityAppealAction","AdIntegrityValidationBannerState","CometRelay","LWICometLoggingConstants","react","useAdsIntegrityAppeal","useLWICometAppealRejectedAdAction_actions.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useReducer;function a(a,e,f,g){f=d("CometRelay").useFragment(h!==void 0?h:h=b("useLWICometAppealRejectedAdAction_actions.graphql"),f);g=d("AdIntegrityValidationBannerState").getInitialState((f=f==null?void 0:f.actions)!=null?f:[],(f=g)!=null?f:[]);f=j(d("AdIntegrityValidationBannerState").reducer,g);g=f[0];f=f[1];g=c("AdIntegrityAppealAction").getActionPropertiesFromState(g);return c("useAdsIntegrityAppeal")(g,d("LWICometLoggingConstants").APP_ID,f,(g=a)!=null?g:"",e)}g.useLWICometAppealRejectedAdOnPress=a}),98);
-----
AdIntegrityValidationLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={POSTCREATE:"postcreate",PRECREATE:"precreate"};f.AD_CREATION_STAGE=a}),66);
-----
LWICometManagementIntegrityBanner.react",["AdIntegrityValidationBannerSection.react","AdIntegrityValidationLoggingConstants","CometRelay","LWICometLoggingConstants","LWICometManagementIntegrityBanner_boostedComponent.graphql","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e,f;a=a.boostedComponent;c("vulture")("1S49talO9qw");a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometManagementIntegrityBanner_boostedComponent.graphql"),a);e=(e=a.spec)==null?void 0:(e=e.ad_account)==null?void 0:e.legacy_account_id;f=(f=a.campaign_group)==null?void 0:(f=f.all_campaign_group_adgroups)==null?void 0:(f=f.edges[0])==null?void 0:(f=f.node)==null?void 0:f.integrity_validation;a=(a=a.spec)==null?void 0:(a=a.adgroup_spec)==null?void 0:a[0];a=a==null?void 0:a.adgroup_id;return e!=null&&a!=null&&f!=null?j.jsx(c("AdIntegrityValidationBannerSection.react"),{actionProps:{textManualReviewRequested:!1},adCreationStage:d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.POSTCREATE,appID:d("LWICometLoggingConstants").APP_ID,callsite:"LWI_WWW",legacyAccountID:e,selectedAdgroupID:a,validation:f}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useFBReelsFalcoOpenSource",["FBReelsLoggingConstants","useFBReelsProcessRoute"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useFBReelsProcessRoute")();a=a.source;var b=null,d=c("FBReelsLoggingConstants").OPEN_SOURCE;switch(a){case d.IFU:case d.IFU_END_CARD:case d.IFU_SEE_MORE:b=c("FBReelsLoggingConstants").OPEN_SOURCE_FOR_FALCO.COMET_IN_FEED_UNIT;break;case d.BOOKMARK:b=c("FBReelsLoggingConstants").OPEN_SOURCE_FOR_FALCO.BOOKMARK;break;default:b=c("FBReelsLoggingConstants").OPEN_SOURCE_FOR_FALCO.COMET_URL}return b}g["default"]=a}),98);
-----
FBReelsViewerPlaceholder.react",["fbt","CometRouteRenderType","FBReelsCloseButton.react","FBReelsFeedbackBarPlaceholder.react","FBReelsGating","FBReelsLoggingConstants","FBReelsNavigationButtonsPlaceholder.react","FDSText.react","ReelsVideoLoadingView.react","react","stylex","useFBReelsProcessRoute","useOnBeforeUnload","useReelsLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useMemo,m={feedbackBarContainer:{alignItems:"xuk3077",display:"x78zum5",height:"x5yr21d",marginBottom:"x1hq5gj4",marginEnd:"xt1id46",$$css:!0},feedbackBarContainerVertical:{alignItems:"xpqajaz",display:"x78zum5",height:"x5yr21d",$$css:!0},headerPushViewVertical:{"@media (max-width: 1190px)_display":"xo91rtc",$$css:!0},headerVertical:{"@media (max-width: 880px)_display":"xxfrrm4",$$css:!0},titleStylePermalink:{position:"xixxii4",start:"xfylb8w",top:"xvt0np",$$css:!0},titleStylePushView:{position:"xixxii4",start:"x1heu26e",top:"xmhk92p",$$css:!0}};function a(){var a=d("CometRouteRenderType").useIsPushView(),b=c("useReelsLogger")(),e=b.exitViewerLog;b=c("useFBReelsProcessRoute")();var f=b.trackingString,g=b.videoID;b=l(function(){return d("FBReelsGating").shouldUseVerticalSwipe()},[]);c("useOnBeforeUnload")(function(){e(0,c("FBReelsLoggingConstants").CLOSE_REELS_GESTURE.UNKNOWN,[f],g)});return k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"xal61yo x5yr21d x10l6tqk xh8yej3"}),k.jsx("div",{className:(i||(i=c("stylex")))(a?m.titleStylePushView:m.titleStylePermalink,a&&b&&m.headerPushViewVertical,!a&&b&&m.headerVertical),children:k.jsx(c("FDSText.react"),{color:"primaryOnMedia",type:"headlineEmphasized1",children:h._("__JHASH__1eW6SFrr-z-__JHASH__")})}),k.jsx("div",{className:"x6s0dn4 x1ey2m1c x78zum5 xds687c xl56j7k x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy",children:k.jsxs("div",{className:"x6s0dn4 x78zum5 x5yr21d xl56j7k xh8yej3",children:[k.jsxs(c("FBReelsNavigationButtonsPlaceholder.react"),{children:[k.jsx("div",{children:k.jsx(c("ReelsVideoLoadingView.react"),{reason:"Placeholder"})}),k.jsx("div",{className:i(!b&&m.feedbackBarContainer,b&&m.feedbackBarContainerVertical),children:k.jsx(c("FBReelsFeedbackBarPlaceholder.react"),{})})]}),k.jsx(c("FBReelsCloseButton.react"),{})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
NotificationList.react",["Arbiter","CreatorStudioNotificationTrayBanner.react","FunnelLogger","NotifType","NotificationBucketStoreManager","NotificationConstants","NotificationHiddenState","NotificationJewelFunnelLoggingConstants","NotificationSeenState","NotificationStore","NotificationUpdates","NotificationUserActions","NotificationVPVs","Promise","SubscriptionsHandler","TimeSlice","asyncToGeneratorRuntime","createCancelableFunction","getObjectValues","isEmpty","mapObject","react","retry"],(function(a,b,c,d,e,f,g){var h,i,j,k,l=k||d("react"),m=3,n="notification_clicked",o="WebNotificationsPayloadPagelet";function p(a){return{classification:a.classification,endpointControllerName:a.endpoint!=null?a.endpoint:"WebNotificationsPayloadPagelet",readness:a.readness}}a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){var e;for(var f=arguments.length,g=new Array(f>1?f-1:0),h=1;h
-----
NotificationJewelList.react",["cx","fbt","Animation","BizNotificationListConst","ErrorBoundary.react","Event","FunnelLogger","JewelLogger","LogicalGrid.react","NotificationBucket.react","NotificationJewelFunnelLoggingConstants","NotificationListConfig","NotificationListItem.react","NotificationListRetryFetchButton.react","NotificationVPVs","ReactDOM_DEPRECATED","ScrollableArea.react","SubscriptionsHandler","TimeSlice","TrackingNodes","Vector","WebNotificationsBottomCollisionsTypedLogger","XUISpinner.react","clearTimeout","debounce","getObjectValues","isEmpty","performanceNowNoFallback","react","setTimeoutAcrossTransitions","throttle"],(function(a,b,c,d,e,f,g,h,i){var j,k,l=k||d("react"),m=160,n=530,o=61,p=Math.ceil(o*c("NotificationListConfig").numStoriesFromEndBeforeAFetchIsTriggered),q=430,r;function s(a){r!=a&&(new(c("WebNotificationsBottomCollisionsTypedLogger"))().log(),r=a)}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
StoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_SOURCE:{ARCHIVE:"archive",FACEBOOK_CHAT_TAB:"facebook_chat_tab",FEED_INLINE_VIEWER:"feed_inline_viewer",FEED_TAB_STORIES_HOME:"feed_tab_stories_home",FEED_TAB_STORIES_SURFACE:"feed_tab_stories_surface",FROM_FEED_INLINE_VIEWER:"from_feed_inline_viewer",MESSENGER_DOT_COM:"messenger_dot_com",NOTIFICATION:"notification",PAGE_PROFILE:"page_profile",POST_HEADER:"post_header_actor_photo",PROFILE_HIGHLIGHT:"profile_highlight",STORIES_HOME:"stories_home",THINGS_YOU_SHOULD_DO:"things_you_should_do",TODAY_IN:"today_in",TRAY:"story_tray",UNKNOWN:"unknown",VIEWER:"viewer"},ACTION_TYPE:{CLICK_EMOJI_REPLY_BUTTON:"click_emoji_reply_button",CLICK_GIF_REPLY_BUTTON:"click_gif_reply_button",CLICK_STICKER_REPLY_BUTTON:"click_sticker_reply_button",CLOSE_STORY:"close_story",COMMENT_ADD_ATTEMPTED:"comment_add_attempted",COMMENT_BUTTON_IMPRESSION:"comment_button_impression",COMMENT_CARD_IMPRESSION:"comment_card_impression",DELETE_MEDIA:"delete_media_attempted",LINK_STICKER_CLICK:"link_sticker_click",OPEN_LINK:"open_link",OPEN_MEDIA:"open_media",OPEN_SEEN_SUMMARY:"open_seen_summary",OPEN_STORY:"open_story",PAUSE_STORY:"pause_story",REACTION_STICKER_INTERACTED:"reaction_sticker_interacted",REPLY_ATTEMPT_COMPLETED:"reply_attempt_completed",REPLY_SENT_WHEN_SMART_REPLY_SHOWN:"reply_sent_when_smart_reply_shown",SEND_REPLY_ATTEMPT:"attempt_to_send_reply",SEND_STORY_FAILED:"send_story_failed",SEND_STORY_SUCCEEDED:"send_story_succeed",SMART_REPLY_IMPRESSION:"smart_reply_impression",SMART_REPLY_TAP:"smart_reply_tap",STICKER_IMPRESSION:"sticker_impression",STORY_MEDIA_VIEW:"story_media_view",STORY_NAVIGATION:"story_navigation",TRAY_LOAD:"story_tray_load",UNPAUSE_STORY:"unpause_story",VISIT_PAGE:"fb_stories_visit_page"},CLOSE_STORY_GESTURE:{AUTO_EXIT:"auto_exit",BACK_BUTTON_EXIT:"back_button_exit",BLUR_BACKGROUND:"blur_background",CLOSE_BUTTON_EXIT:"close_button_exit",KEYBOARD_EXIT:"keyboard_exit"},COMMENT_TRIGGER_SOURCE:{NOTIFICATION_STORY_UFI:"notification_story_ufi",STORY_UFI_BUTTON:"story_ufi_button",STORY_UFI_COMMENT_PREVIEW:"story_ufi_comment_preview"},FB_STORIES_IMPRESSION:75,FB_STORIES_TIMESPENT:76,IMPRESSION_DEDUPLICATION_TIME:6e4,LIVE_IN_STORIES_EVENTS:{STORY_LIVE_PAGE_CTA_IMPRESSION:"story_live_page_cta_impression",STORY_LIVE_PAGE_CTA_TAP:"story_live_page_cta_tap",STORY_LIVE_PROFILE_CTA_IMPRESSION:"story_live_profile_cta_impression",STORY_LIVE_PROFILE_CTA_TAP:"story_live_profile_cta_tap",STORY_LIVE_STICKER_IMPRESSION:"story_live_sticker_impression",STORY_LIVE_STICKER_TAP:"story_live_sticker_tap",STORY_LIVE_TRAY_DROPDOWN_CLICK:"story_live_tray_dropdown_click",STORY_LIVE_TRAY_DROPDOWN_IMPRESSION:"story_live_tray_dropdown_impression",STORY_LIVE_VIEWER_DROPDOWN_CLICK:"story_live_viewer_dropdown_click",STORY_LIVE_VIEWER_DROPDOWN_IMPRESSION:"story_live_viewer_dropdown_impression"},NAVIGATION_GESTURE:{AUTO_JUMP:"auto_jump",NAVIGATE_AWAY:"navigate_away",SWIPE_LEFT:"swipe_left",SWIPE_RIGHT:"swipe_right",TAP_BACKWARD:"tap_backward",TAP_FORWARD:"tap_forward",VIEWER_SHEET:"viewer_sheet"},STORY_REPLY_TYPE:{STICKER:"Sticker",TEXT_SUGGESTION:"TextSuggestion"},STORY_TYPE:{EVENT_STORY:"event",FOLLOWEE_STORY:"followee",FRIEND_STORY:"friend",GROUP_STORY:"group",MISSING_STORY_DATA:"missingStoryData",PAGE_STORY:"page",SELF_STORY:"self",STORY_PROMOTION:"promotion"},TIMESPENT_MINIMUM_TIME:500};b=a;f["default"]=b}),66);
-----
AdsReachFrequencyReservationManager",["errorCode","errorDesc","invariant","AdsCampaignDraftFragmentStore","AdsInterfacesLogger","AdsReachFrequencyConfig","AdsReachFrequencyConstants","AdsReachFrequencyFlowGetReservationSuccessAction","AdsReachFrequencyFlowRemoveErrorsAction","AdsReachFrequencyFlowReservationCompletedAction","AdsReachFrequencyFlowSetErrorsAction","AdsReachFrequencyFlowSetIsUnpausePendingAction","AdsReachFrequencyFlowSetReservationPendingAction","AdsReachFrequencyFlowStore","AdsReachFrequencyLoggingConstants","AdsUEditorCampaignRFAdjustRotationOnCampaignChangeAction","AdsUEditorCampaignReachFrequencyFlowSetPredictionIdAction","AdsUEditorCampaignSetStatusAction","AdsUEditorHostIDs","ReachFrequencyEstimator","adsReachFrequencyIsReservedBuying","adsReachFrequencyStateGetEvent","adsReachFrequencyStateGetPublisherTier","adsReachFrequencyStateGetReservationPoint","isTruthy"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";a=function(){function a(){this.$1=new(c("ReachFrequencyEstimator"))()}var b=a.prototype;b.reserveForEditingUI=function(a,b){this.$2(!0,a,"PE",b)};b.reserveForEditingUIRevamp=function(a,b,c){this.$3(a,b,"PE",c)};b.$2=function(a,b,d,e){a=c("AdsReachFrequencyFlowStore").getState(b);this.$3(b,a,d,e)};b.$3=function(a,b,d,e){var g=this;if(b.isReservationPending===!0)return;var h=b.previous_prediction;h&&h.id||j(0,6093);c("AdsReachFrequencyFlowSetReservationPendingAction").dispatch({campaignID:a,isPending:!0},{line:"101",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id});var i=c("adsReachFrequencyStateGetReservationPoint")(b),k=!1,l=c("adsReachFrequencyStateGetPublisherTier")(b);l&&(k=c("adsReachFrequencyIsReservedBuying")(l));l=c("AdsCampaignDraftFragmentStore").isNew(a);this.$1.reserve(b.accountID||"","reserve",a,h.id,{onPredictionSuccess:function(c){g.$4(a,b,h.id,b.plannerPlanID,c,d,e)},onPredictionError:function(b,c){g.$5(a,b)}},b.originalReservationID,b.objective,i.budget,i.reach,i.impression,!!b.isBonusMedia,c("AdsReachFrequencyConfig").expiration_time_secs,b.isMidCampaignEdit===!0||k&&!l?a:null,c("adsReachFrequencyStateGetEvent")(b))};b.$5=function(a,b,e){var g=c("isTruthy")(b.error_subcode)?b.error_subcode:1885802;b=c("isTruthy")(b.error_user_msg)?b.error_user_msg:i._(function(a,b){return a._("An error occurred while creating your reservation. Please try again.")},{});c("AdsInterfacesLogger").log({eventName:"reservation_backend_failed",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR});c("AdsReachFrequencyFlowSetErrorsAction").dispatch({campaignID:a,errors:[{active:!0,code:g,id:d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.RESERVATION_BACKEND_FAILED,message:b,priority:5}]},{line:"169",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id});c("AdsReachFrequencyFlowSetReservationPendingAction").dispatch({campaignID:a,isPending:!1},{line:"182",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id});e!=null&&e(g,b)};b.$4=function(a,b,e,g,h,i,j){c("AdsReachFrequencyFlowRemoveErrorsAction").dispatch({campaignID:a,errors:[d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.RESERVATION_BACKEND_FAILED]},{line:"203",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id});c("AdsReachFrequencyFlowSetReservationPendingAction").dispatch({campaignID:a,isPending:!1},{line:"208",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id});c("AdsReachFrequencyFlowGetReservationSuccessAction").dispatch({campaignID:a,reservation:h,originalPredictionID:e,plannerPlanID:g,reservationSource:i},{line:"213",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id});this.$6(a,h.id,h.destination_id);j&&j();if(b.startDate!=null){e=b.startDate.getUnixTimestampSeconds();if(b.endDate!=null){g=b.endDate.getUnixTimestampSeconds();c("AdsUEditorCampaignRFAdjustRotationOnCampaignChangeAction").dispatch({hostID:c("AdsUEditorHostIDs").EDITING,campaignIDs:[a],startTime:e,endTime:g},{line:"231",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id})}}b.isUnpausePending!==null&&b.isUnpausePending===!0&&(c("AdsUEditorCampaignSetStatusAction").dispatch({campaignIDs:[a],status:"ACTIVE",hostID:c("AdsUEditorHostIDs").EDITING},{line:"240",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id}),c("AdsReachFrequencyFlowSetIsUnpausePendingAction").dispatch({campaignID:a,isUnpausePending:!1},{line:"245",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id}));c("AdsReachFrequencyFlowReservationCompletedAction").dispatch({campaignID:a},{line:"251",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id})};b.$6=function(a,b,d){c("AdsUEditorCampaignReachFrequencyFlowSetPredictionIdAction").dispatch({adgroupIDs:[],campaignIDs:[a],predictionDestinationID:d,predictionID:b,hostID:c("AdsUEditorHostIDs").EDITING},{line:"262",module:"AdsReachFrequencyReservationManager.js",moduleID:f.id})};return a}();b=new a();g["default"]=b}),226);
-----
ZenonInitializationProvider.react",["CometHeroHoldTrigger.react","Decoil","ErrorMetadata","Recoil","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonAppFeaturesUtils","ZenonAudioInputDeviceContext","ZenonBackgroundBlurHooks","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelEmitter","ZenonCallsModelTypes","ZenonChatContext","ZenonInitializationContext","ZenonInitializationProvider_provider.graphql","ZenonLocalAudioVideoHooks","ZenonLocalAudioVideoManager","ZenonLocalAudioVideoTypes","ZenonLoggingConstants","ZenonLoggingHooks","ZenonMediaAccessState","ZenonMediaActionLogger","ZenonMediaDevicesContext","ZenonMediaMuteStateStore","ZenonMediaPermissionState","ZenonPeerID","ZenonRequestedMediaType","ZenonSettingsHooks","ZenonSignalingIDType","ZenonThreadType","ZenonThreadTypeSelector","ZenonVideoInputDeviceContext","asyncToGeneratorRuntime","cr:1567219","emptyFunction","err","gkx","isEmpty","isStringNullOrEmpty","promiseDone","react","useEffectOnce","useZenonDebugValue","useZenonMediaMuteState"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useEffect,aa=e.useMemo,ba=e.useRef,o=e.useState,p="ZenonInitializationProvider";h!==void 0?h:h=b("ZenonInitializationProvider_provider.graphql");function a(a){var e,f=a.allowAudioFallback,g=a.appMessages,h=a.audioConstraints,j=a.callTrigger,q=a.children,r=a.initializeVideo,s=a.initialSyncStates,t=a.isSecondaryJoinRole,fa=t===void 0?!1:t,u=a.joiningContext;t=a.joinWithoutAudioVideo;var ga=t===void 0?!1:t;t=a.mediaStatesFromPreCallLobby;var v=a.mediaStatesOnStart,w=a.muteTracksOnStart,ha=a.parentRequestID,x=a.peerID,y=a.roomID,z=a.rtcActorID,A=a.serverInfoData,B=a.signalingID,C=a.usersToRing,D=a.videoConstraints;a=C.length===0;var E=a&&(c("gkx")("25149")||c("gkx")("25150")),F=d("Decoil").useSetDecoilState(d("ZenonMediaAccessState").ZenonMediaAccessState);a=d("Decoil").useSetDecoilState(d("ZenonMediaAccessState").ZenonRequestedMediaState);var G=d("ZenonActorHooks").useZenonActor(),H=G[0];f=(G=f)!=null?G:x!==d("ZenonPeerID").ZenonMWPeerID;var I=d("ZenonAppFeaturesHooks").useDataChannelLabels(),ia=d("ZenonAppFeaturesHooks").useMediaAccessTimeout();G=d("ZenonAppFeaturesHooks").useMuteTracksOnStart();var ja=(w=w)!=null?w:G;w=d("ZenonAppFeaturesHooks").useMediaStatesOnStart();v=(G=v)!=null?G:w;G=o("unknown");var J=G[0],K=G[1];w=o({state:ga?c("ZenonMediaPermissionState").Fulfilled:c("ZenonMediaPermissionState").Unknown,type:r?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});var L=w[0],M=w[1];a(L.type);G=m(c("ZenonMediaDevicesContext"));var N=G.setRequestingMediaType;w=m(c("ZenonAudioInputDeviceContext"));var O=w.setRequestError;a=m(c("ZenonVideoInputDeviceContext"));var P=a.setRequestError;G=m(c("ZenonCallsContext"));var Q=G.callSDK,R=G.currentCallInstanceSDK,S=G.isE2eeMandated,ka=G.setCurrentCallInstanceSDK,T=G.setE2eeModel;w=o([]);var U=w[0],la=w[1];a=o(null);var ma=a[0],na=a[1];G=o(null);var oa=G[0],pa=G[1];w=d("ZenonSettingsHooks").useDevices();var V=w.audioInput,W=w.videoInput,X=d("ZenonLoggingHooks").useErrorLogging();a=d("ZenonLoggingHooks").useTimerLogging("GetUserMediaRequestTimer","CallStart_GetUserMediaRequest");var Y=a[0],Z=a[1],$=d("ZenonLoggingHooks").useSetCallTrigger();$((G=j)!=null?G:"");w=d("ZenonLoggingHooks").useTimerLogging("StartCall","CallStart_StartCall");var qa=w[0],ra=w[1],sa=d("ZenonLoggingHooks").useSetIsCaller();n(function(){sa(!0)},[sa]);a=d("ZenonLoggingHooks").useTimerLogging("InCallStartFlowTimer","CallStart_InCallStartFlowTimer");var ta=a[0],ua=a[1];G=c("ZenonCallsHooks").useCallState();var va=c("ZenonCallsHooks").useIsAudioCall();w=v.isConfigPrivacyRequirement;a=!w;v={isAudioEnabled:(e=v.isAudioEnabledOnStart)!=null?e:a,isVideoEnabled:(e=v.isVideoEnabledOnStart)!=null?e:a};e=c("useZenonMediaMuteState")(v,w?c("ZenonMediaMuteStateStore").NONE:c("ZenonMediaMuteStateStore").SESSION_STORAGE);a=e[0];v=t!=null?{isAudioEnabled:t.audioMuted===!1,isVideoEnabled:t.videoMuted===!1}:a;var wa=v.isAudioEnabled,xa=v.isVideoEnabled;w=c("ZenonCallsHooks").useLocalAudio();e=c("ZenonCallsHooks").useLocalVideo();var ya=(t=e==null?void 0:e.enabled)!=null?t:!1,za=(a=w==null?void 0:w.enabled)!=null?a:!1,Aa=d("Recoil").useRecoilValue(c("ZenonThreadTypeSelector"));v=m(c("ZenonChatContext"));var Ba=v.setChatWindowVisible,Ca=d("ZenonBackgroundBlurHooks").useIsBackgroundBlurActive(),Da=d("ZenonBackgroundBlurHooks").useStopVideoProcessing(),Ea=ca();n(function(){ta(),qa()},[ta,qa]);n(function(){Aa!==c("ZenonThreadType").Other&&c("ErrorMetadata").addGlobalMetadata("RT_WEB","TYPE",String(Aa))},[Aa]);n(function(){var a=null;L.state===c("ZenonMediaPermissionState").Unknown&&(a=window.setTimeout(function(){M(function(a){return a.state===c("ZenonMediaPermissionState").Unknown?{state:c("ZenonMediaPermissionState").Pending,type:a.type}:a}),N(r?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio)},ia));return function(){return window.clearTimeout(a)}},[r,ia,N,L.state]);n(function(){var a=Q.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(na(a.mwRingRequest),pa(a.mwThriftRingRequest),K("ready")):a.messageType==="parentWindowConnectionTimeout"?K("timeout"):K("unknown"),ra()});return function(){a.remove()}},[Q,ra]);var Fa=ba(!1),Ga=ba(!1),Ha=c("ZenonLocalAudioVideoHooks").useCreateLocalAudio(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaOwnershipType.Strong),Ia=c("ZenonLocalAudioVideoHooks").useCreateLocalVideo(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaOwnershipType.Strong),Ja=c("ZenonLocalAudioVideoHooks").useCreateLocalAudioAndVideo(),Ka=c("ZenonLocalAudioVideoHooks").useDisableAudio(),La=c("ZenonLocalAudioVideoHooks").useDisableVideo();n(function(){if(Ga.current===!0)return;else Ga.current=!0;ga||c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=c("gkx")("1863");N(a?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio);Y();var b=null,e=null,f=babelHelpers["extends"]({},h,!c("isStringNullOrEmpty")(V)&&{deviceId:{ideal:V}}),g=babelHelpers["extends"]({},D,!c("isStringNullOrEmpty")(W)&&{deviceId:{ideal:W}});if(a&&r){N(c("ZenonRequestedMediaType").Audiovideo);Y();try{a=(yield Ja(f,g,d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints));b=a[0];e=a[1]}catch(b){a=String(b).includes("Permission denied");a=!a&&E;M({error:b,state:a?c("ZenonMediaPermissionState").Unknown:c("ZenonMediaPermissionState").Rejected,type:c("ZenonRequestedMediaType").Audiovideo});O(b);P(b);if(a)F(d("ZenonMediaAccessState").ACCESS_STATUS.CAMERA_AND_AUDIO_ACCESS_DENIED);else{Z();return}}}else{try{b=(yield Ha(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,f))}catch(b){a=String(b).includes("Permission denied");f=!a&&E;M({error:b,state:f?c("ZenonMediaPermissionState").Unknown:c("ZenonMediaPermissionState").Rejected,type:c("ZenonRequestedMediaType").Audio});O(b);if(f)F(d("ZenonMediaAccessState").ACCESS_STATUS.AUDIO_ACCESS_DENIED);else{Z();return}}if(r){N(c("ZenonRequestedMediaType").Audiovideo);try{e=(yield Ia(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,g))}catch(b){a=String(b).includes("Permission denied");f=!a&&E;f||c("ZenonLocalAudioVideoManager").stopAllTracks();M({error:b,state:f?c("ZenonMediaPermissionState").Unknown:c("ZenonMediaPermissionState").Rejected,type:c("ZenonRequestedMediaType").Audiovideo});P(b);if(f)F(function(a){if(a===d("ZenonMediaAccessState").ACCESS_STATUS.AUDIO_ACCESS_DENIED)return d("ZenonMediaAccessState").ACCESS_STATUS.CAMERA_AND_AUDIO_ACCESS_DENIED;else return d("ZenonMediaAccessState").ACCESS_STATUS.CAMERA_ACCESS_DENIED});else{Z();return}}}}ja&&(wa||(b=Ka("PRIMARY_AUDIO")),xa||(e=La("PRIMARY_VIDEO")),ea([].concat(b?[b]:[],e?[e]:[]),wa,xa));g=e;if(Ca)try{c("ZenonMediaActionLogger").logCheckpoint("[ZenonBackgroundBlur] stop background blur in ZenonInitializationProvider"),Da()}catch(a){c("ZenonMediaActionLogger").logErrorToFbLogger("[ZenonBackgroundBlur] error stopping background ZenonInitializationProvider",a.toString(),c("err")(a),"warn")}finally{g=c("gkx")("25144")&&xa?(a=(yield Ea(e)))!=null?a:e:e}la([].concat(b!=null?[b]:[],g!=null?[g]:[]));M({state:c("ZenonMediaPermissionState").Fulfilled,type:r?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});Z()})())},[f,h,V,Ka,La,Ha,Ia,r,wa,xa,X,Y,Z,ja,L.error,D,W,E,F,R,Ca,Ea,Da,ga,N,Ja,O,P]);c("useEffectOnce")(function(){if(Fa.current===!0)return;else Fa.current=!0;Q.initSignaling(x,ha,y,A)});n(function(){var a;R.initLogging({callTrigger:(a=j)!=null?a:"",initializeVideo:r,isE2eeMandated:S,peerID:x,roomID:y,serverInfoData:A,signalingID:B==null?null:String(B)})},[Q,j,R,r,S,x,y,A,B]);var Ma=l(function(){c("promiseDone")(R.join({actorID:z,appMessages:g,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:j,dataChannels:new Set(I),initialSyncStates:s==null?null:new Map(s),isE2eeMandated:S,isSecondaryJoinRole:fa,joiningContext:u,localMedia:U,mwRingRequest:ma,mwThriftRingRequest:oa,peerID:x,roomID:y,serverInfoData:A,setE2eeModel:T,signalingID:B!=null?String(B):null,usersToRing:C.filter(function(a){return H!==a})}))},[R,z,g,j,I,s,S,fa,u,U,ma,oa,x,y,A,T,B,C,H]);n(function(){var a=E?L.state===c("ZenonMediaPermissionState").Fulfilled:!(i||(i=c("isEmpty")))(U);J==="ready"&&a&&(K("joined"),Ma(),ua())},[ua,E,Ma,U,J,L.state]);var Na=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a.requestAudio;a=babelHelpers.objectWithoutPropertiesLoose(a,["requestAudio"]);b.contentHint;b.requestVideo;b=babelHelpers.objectWithoutPropertiesLoose(b,["contentHint","requestVideo"]);a=(yield Ha(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,a));a=a?[a]:[];try{b=(yield Ia(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,b));b&&a.push(b);return a}catch(a){if(a.name==="NotFoundError"||a.name==="StreamFailedToStart")c("ZenonMediaActionLogger").logErrorToFbLogger("Fallback to audio-only",a.toString(),c("err")("GetUserMedia"),"warn");else throw a}return a});return function(b,c){return a.apply(this,arguments)}}(),[Ha,Ia]),Oa=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){c("promiseDone")(R.endCall("HangupCall","breaking out to new room"));var b=babelHelpers["extends"]({},h,{requestAudio:!0}),e=babelHelpers["extends"]({requestVideo:!va},D);c("isStringNullOrEmpty")(V)||(b.deviceId={ideal:V});c("isStringNullOrEmpty")(W)||(e.deviceId={ideal:W});Y();b=(yield Na(b,e));b=da(b,za,ya);la(b);$(d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM);e=String(d("ZenonSignalingIDType").generateZenonSignalingID());c("promiseDone")(Q.createCall().join({actorID:z,appMessages:g,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM,dataChannels:new Set(I),isE2eeMandated:S,localMedia:b,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:x,roomID:a,setE2eeModel:T,signalingID:e,usersToRing:C.filter(function(a){return H!==a})}),function(a){return ka(a)});Z()});return function(b){return a.apply(this,arguments)}}(),[H,g,h,V,Q,R,I,Na,va,S,za,ya,Y,Z,x,z,$,ka,T,C,D,W]);n(function(){d("ZenonCallsModelEmitter").CallsModelEmitterInstance.setCurrentClientCallID(R.getClientCallID_DEPRECATED())},[R]);var Pa=l(function(a){var e=a.initializeVideo,f=a.isAutoRejoin,i=a.rejoinPeerID;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){M({state:c("ZenonMediaPermissionState").Unknown,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});O(null);P(null);var a=babelHelpers["extends"]({},h,{requestAudio:!0}),b=babelHelpers["extends"]({requestVideo:e},D);c("isStringNullOrEmpty")(V)||(a.deviceId={ideal:V});c("isStringNullOrEmpty")(W)||(b.deviceId={ideal:W});Y();try{a=(yield Na(a,b));a=da(a,za,ya);la(a);M({state:c("ZenonMediaPermissionState").Fulfilled,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});b=f===!0?d("ZenonLoggingConstants").ZenonCallTrigger.AUTO_REJOIN:d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON;$(b);var j=String(d("ZenonSignalingIDType").generateZenonSignalingID()),k=i!=null?[i]:C.filter(function(a){return H!==a}),l=(yield Q.createCall());yield l.join({actorID:z,appMessages:g,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:b,dataChannels:new Set(I),initialSyncStates:s==null?null:new Map(s),isE2eeMandated:S,joiningContext:babelHelpers["extends"]({},u,{serverInfoData:null}),localMedia:a,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:x,roomID:y,setE2eeModel:T,signalingID:j,usersToRing:k});ka(l);Ba(!1)}catch(d){b=String(d).includes("Permission denied");a=!b&&E;X({checkpoint:p+"_rejoin_getUserMediaWithFallback_error",error:d,errorDomain:p});M({error:d,state:a?c("ZenonMediaPermissionState").Fulfilled:c("ZenonMediaPermissionState").Rejected,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});e?(O(d),P(d)):O(d);c("ZenonLocalAudioVideoManager").stopAllTracks()}finally{Z()}});return function(){return a.apply(this,arguments)}}();return a()},[h,D,V,W,Y,Na,za,ya,$,C,Q,z,g,I,s,S,u,x,y,T,ka,Ba,H,E,X,O,P,Z]),Qa=ba(c("emptyFunction"));n(function(){Qa.current=function(){X({checkpoint:"Stopping all local media as the app has crashed",error:c("err")("AppCrashedError"),errorDomain:p}),U.forEach(function(a){a.webrtcTrack.stop()})}},[X,U]);n(function(){return function(){Qa.current()}},[]);e=aa(function(){return{joinCall:Ma,rejoinCall:Pa,signalingStatus:J,swapCall:Oa,userMediaRequestStatus:L}},[J,Ma,L,Pa,Oa]);c("useZenonDebugValue")(p,e);n(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);return k.jsxs(c("ZenonInitializationContext").Provider,{value:e,children:[k.jsx(c("CometHeroHoldTrigger.react"),{description:"getUserMedia",hold:L.state===c("ZenonMediaPermissionState").Unknown||L.state===c("ZenonMediaPermissionState").Pending}),k.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:G===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),q]})}a.displayName=a.name+" [from "+f.id+"]";function ca(){var a=d("ZenonBackgroundBlurHooks").useStopVideoProcessing(),e=d("ZenonBackgroundBlurHooks").useStartVideoProcessing(),f=d("ZenonLoggingHooks").useErrorLogging();return l(function(){var d=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){if((b==null?void 0:b.trackId)==null)return;try{c("ZenonMediaActionLogger").logEvent({checkpoint:"[ZenonBackgroundBlur] restart background blur in ZenonInitializationProvider"});return yield e({trackToReplace:b})}catch(b){f({checkpoint:"[ZenonBackgroundBlur] Failed to restart background blur in ZenonInitializationProvider",error:c("err")(b),errorDomain:p}),a()}});return function(a){return d.apply(this,arguments)}}(),[f,e,a])}function da(a,b,c){return a.map(function(a){if(a.contentType==="audio"&&!b)return q(a);return a.contentType==="video"&&!c?q(a):a})}function q(a){a.contentType==="video"&&d("ZenonAppFeaturesUtils").shouldStopVideoWhenMute()&&a.webrtcTrack.stop();a.webrtcTrack.enabled=!1;return babelHelpers["extends"]({},a,{enabled:!1})}function ea(a,b,d){var e="[A/V mute state] Flags state: audio enabled: "+b.toString()+" video enabled: "+d.toString()+" - Tracks state: ";a.forEach(function(a){e=""+e+a.contentType+" enabled: "+a.enabled.toString()+" "});c("ZenonMediaActionLogger").logEvent({checkpoint:e})}g["default"]=a}),98);
-----
ZenonLoggingConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum")({ADMIN_MESSAGE:"admin_message",AUTO_REJOIN:"auto_rejoin",BREAKOUT_ROOM:"breakout_room",CHAT_TAB_ICON:"chat_tab_icon",CHAT_TAB_ICON_TOUR:"chat_tab_icon_tour",CHAT_TAB_VOICE_ICON:"chat_tab_voice_icon",MULTIWAY_ADMIN_MESSAGE_JOIN_AUDIO_CALL_BUTTON:"multiway_admin_message_join_audio_call_button",MULTIWAY_ADMIN_MESSAGE_JOIN_VIDEO_CALL_BUTTON:"multiway_admin_message_join_video_call_button",MULTIWAY_ADMIN_MESSAGE_START_AUDIO_CALL_BUTTON:"multiway_admin_message_start_audio_call_button",MULTIWAY_ADMIN_MESSAGE_START_VIDEO_CALL_BUTTON:"multiway_admin_message_start_video_call_button",MULTIWAY_CHAT_TAB_SHEET_JOIN_CALL_BUTTON:"multiway_chat_tab_sheet_join_call_button",MULTIWAY_POPUP_START_CALL_BUTTON:"multiway_popup_start_call_button",MULTIWAY_THREAD_HEADER_AUDIO_BUTTON:"multiway_thread_header_audio_button",MULTIWAY_THREAD_HEADER_JOIN_AUDIO_CALL_AUDIO_BUTTON:"multiway_thread_header_join_audio_call_audio_button",MULTIWAY_THREAD_HEADER_JOIN_AUDIO_CALL_VIDEO_BUTTON:"multiway_thread_header_join_audio_call_video_button",MULTIWAY_THREAD_HEADER_JOIN_VIDEO_CALL_AUDIO_BUTTON:"multiway_thread_header_join_video_call_audio_button",MULTIWAY_THREAD_HEADER_JOIN_VIDEO_CALL_VIDEO_BUTTON:"multiway_thread_header_join_video_call_video_button",MULTIWAY_THREAD_HEADER_VIDEO_BUTTON:"multiway_thread_header_video_button",MULTIWAY_THREAD_LIST_JOIN_CALL_BUTTON:"multiway_thread_list_join_call_button",POPUP_CALL_START_BUTTON:"popup_start_call_button",REDIAL_BUTTON:"redial_button",RESET_CALL:"install_screen_sharing_ext_dialog",RETURN_CALL:"return_call",SKYPE_DEPRECATION_DIALOG:"skype_deprecation_dialog",TEAMWORK_USER_AUDIO_CALL_ITEM:"teamwork_user_audio_call_item",TEAMWORK_USER_VIDEO_CALL_ITEM:"teamwork_user_video_call_item",TIMELINE_PROFILE:"timeline_profile",UNKNOWN:"unknown",VC_PRECALL_SETUP:"vc_precall_setup",WEB_MESSENGER:"web_messenger",WORKPLACE_GROUP_CALL:"workplace_group_call",WORKPLACE_P2P_CALL:"workplace_p2p_call",WORKPLACE_WSS:"workplace_wss"});c=b("$InternalEnum")({BATTERY_START:"battery_start",BATTERY_END:"battery_end",CALL_TYPE:"call_type",CONNECTION_EFFECTIVE_TYPE:"conn_effective_type",CPU_CORES:"cpu_cores",DEVICE_INFO:"device_info",DEVICE_MEMORY:"device_memory",DEVICE_PIXEL_RATIO:"device_pixel_ratio",INITIATED_BY_PAGE_ID:"initiated_by_page_id",INITIATED_BY_APP_ID:"initiated_by_app_id",PEER_IS_MOBILE:"peer_is_mobile",RATING_SHOWN:"rating_shown",RATING:"rating5",EFFECT_COUNT:"rtc_effect_count",EFFECT_TOTAL_DURATION:"rtc_effect_total_duration",VIDEO_DURATION_WITH_FILTER:"rtc_video_duration_with_filter_enabled",SCREEN_DURATION:"screen_duration",SURVEY_CHOICE:"survey_choice",SURVEY_DETAILS:"survey_details",SURVEY_SHOWN:"survey_shown",MEDIA_INPUTS:"media_inputs",VIDEO_CAPABILITIES:"video_capabilities",CB_ACTIVE:"cb_active",YEAR_CLASS:"year_class",DESKTOP_DEVICE_CLASS:"desktop_device_class",IS_BACKGROUNDED:"is_backgrounded",APPLICATION_STATE:"application_state",MAX_CONCURRENT_CONNECTED_PARTICIPANTS:"max_concurrent_connected_participants"});f.ZenonCallTrigger=a;f.ZenonLoggingKey=c}),66);
-----
ZenonConnectionStatusContainer.react",["ZenonActorHooks","ZenonCallsHooks","ZenonCallsModelTypes","ZenonConnectionStatus.react","ZenonConnectionStatusView.react","ZenonInitializationContext","ZenonLoggingConstants","ZenonThreadHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useContext;function l(a){var b=a.onStartCallClick;a=d("ZenonActorHooks").useZenonActor();a=a[0];var e=c("ZenonCallsHooks").useCallState(),f=c("ZenonCallsHooks").useEndCallReason(),g=c("ZenonCallsHooks").useCallParticipants(),h=d("ZenonThreadHooks").useOngoingCall(),l=k(c("ZenonInitializationContext"));l=l.signalingStatus;var m=d("ZenonConnectionStatus.react").JoinReadyState.Unknown;if(e!==d("ZenonCallsModelTypes").ZenonCallState.New)m=d("ZenonConnectionStatus.react").JoinReadyState.Ready;else switch(l){case"ready":m=d("ZenonConnectionStatus.react").JoinReadyState.Ready;break;case"timeout":m=d("ZenonConnectionStatus.react").JoinReadyState.Timeout;break;default:m=d("ZenonConnectionStatus.react").JoinReadyState.Unknown}var n=d("ZenonLoggingConstants").ZenonCallTrigger.MULTIWAY_POPUP_START_CALL_BUTTON;return i.jsx(d("ZenonConnectionStatus.react").ZenonConnectionStatus,{actorID:a,callState:e,endCallReason:f,hasOngoingCall:h,isP2P:!1,joinReadyState:m,onStartCall:j(function(){return b(n)},[n,b]),participants:g})}l.displayName=l.name+" [from "+f.id+"]";function a(a){a=a.joinCall;a=i.jsx(l,{onStartCallClick:a});var b=null;return i.jsx("div",{"aria-live":"assertive",role:"alert",children:i.jsx(c("ZenonConnectionStatusView.react"),{connectionStatus:a,escalationStatus:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsCanvasComposerDialog.react",["cx","fbt","AdsCanvasAdUtils","AdsCanvasBuilderContainer.react","AdsCanvasEditorFunnelLoggingConstants","FunnelLogger","LayerFadeOnHide","RichMediaCreatePostUtil","RichMediaEditorActions","RichMediaEditorConstants","XUIDialog.react","XUIDialogTitle.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
AdsCanvasBuilderSaveButtonContainer.react",["AdsApplicationUtils","AdsCanvasBuilderSaveButton.react","AdsCanvasBuilderUtils","AdsCanvasDocumentActions","AdsCanvasEditorFunnelLoggingConstants","AdsFluxContainer","FunnelLogger","RichMediaEditorActions","RichMediaElementUtil","adsCanvasBuilderSaveButtonSelector","emptyFunction","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
BusinessSetupsCapiPlugin",["ix","AdFLEXBasicSolutionID","AdsManagerIGLoginUtils","BsuCapiUtils","BusinessSetupsCapiUtils","CAPIPrereqsTypes.flow","CAPISetupGetStartedDisplayData","GeoText.react","Image.react","PrereqsLoggingConstants","PrereqsTypes.flow","SYDPrereqsCAPIContainerWrapper.react","SYDPrereqsWidgetCAPITextContent","SYDPrereqsWidgetTextContent","XAdsEventsManagerController","nullthrows","react","useCAPIPrereqsSteps","useCapiPrereqsEntries.react","useLazyLoadFLEXStandaloneSolution"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a,b){return d("AdsManagerIGLoginUtils").getIsIGLogin(b)?!1:a.current_step_id!==d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.DISMISSED}function b(a){return(a=a.pixel_id)!=null?a:""}function e(a){var b=c("XAdsEventsManagerController").getURIBuilder().setFBID("data_source_id",c("nullthrows")(a.pixel_id,"SYDPrereqsWidgetCAPIContent: pixel id should not be null when generating Events Manager URI")).setString("data_source_type","PIXEL").getURI();return{linkText:d("SYDPrereqsWidgetCAPITextContent").getFinishedStateLink(),linkURI:b,text:d("SYDPrereqsWidgetCAPITextContent").finishedStateText(a),title:d("SYDPrereqsWidgetCAPITextContent").finishedStateTitle}}function k(a){a=a.integration_flow==="PARTNER";return{description:a?d("SYDPrereqsWidgetCAPITextContent").setupCAPIPartnerDescriptionText:d("SYDPrereqsWidgetCAPITextContent").capiPartiallyFinishedDescription,headerText:d("SYDPrereqsWidgetCAPITextContent").capiPartiallyFinishedHeader,learnMoreLink:j.jsx(d("CAPISetupGetStartedDisplayData").LearnMoreLink,{url:a?d("SYDPrereqsWidgetTextContent").PARTNER_LEARN_MORE_URL:d("SYDPrereqsWidgetTextContent").FULL_FLOW_LEARN_MORE_URL}),loggingSourceName:a?d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_FULL}}function l(){return j.jsx(c("Image.react"),{src:h("1259992")})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b;return{selectorDisplayData:{getIndexIDFbtWithLabel:(b=d("SYDPrereqsWidgetCAPITextContent")).getCapiPixelIDFbtWithLabel,getSelectorDescription:b.getCapiPixelSelectorDescription,placeholderText:b.capiSelectPixelPlaceholderText,selectorLabel:b.capiPixelSelectorLabel},selectedIndexDisplayData:{selectedIndexImage:l,selectedIndexLabel:b.capiSelectedPixelLabel,selectedIndexName:a.pixel_name}}}function n(a,b,c){b=[(b=d("CAPIPrereqsTypes.flow")).CAPIPrereqsStepID.MANUAL_OVERVIEW,b.CAPIPrereqsStepID.MANUAL_REVIEW_SETUP,b.CAPIPrereqsStepID.MANUAL_SEE_INSTRUCTIONS,b.CAPIPrereqsStepID.MANUAL_SELECT_EVENTS,b.CAPIPrereqsStepID.MANUAL_SELECT_EVENT_DETAILS,b.CAPIPrereqsStepID.MANUAL_SELECT_PIXEL];b=b.includes(a.current_step_id);var e=c.find(function(a){return a.stepID===d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.CHOOSE_A_PARTNER}),f=c.find(function(a){return a.stepID===d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_OVERVIEW});return b?[{onClick:function(){return e==null?void 0:e.onClick(a)},label:d("SYDPrereqsWidgetCAPITextContent").finishAsPartnerText,confirmModalData:{header:d("SYDPrereqsWidgetCAPITextContent").finishAsPartnerModalHeader,paragraph:d("SYDPrereqsWidgetCAPITextContent").finishAsPartnerModalText}}]:[{onClick:function(){return f==null?void 0:f.onClick(a)},label:d("SYDPrereqsWidgetCAPITextContent").finishAsManualText,confirmModalData:{header:d("SYDPrereqsWidgetCAPITextContent").finishAsManualModalHeader,paragraph:d("SYDPrereqsWidgetCAPITextContent").finishAsManualModalText}}]}function o(a,b,c){b(d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.INITIAL,a.pixel_id),c!=null&&c.forEach(function(c){c.indexID!==a.pixel_id&&b(d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.INITIAL,c.indexID)}),d("BusinessSetupsCapiUtils").inFinalState(a,c==null?void 0:c.length)&&window.location.reload()}function p(a,b){a=a.integration_flow==="PARTNER";b=j.jsxs(c("GeoText.react"),{children:[d("SYDPrereqsWidgetCAPITextContent").capiToCompleteText," ",d("SYDPrereqsWidgetCAPITextContent").capiEligibleAndFinishedPixelsText(b)]});return{header:d("SYDPrereqsWidgetCAPITextContent").capiToCompleteHeader,paragraphComponent:b,loggingSourceName:a?d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_FULL}}function q(a){a=a.adAccountID;a=c("useLazyLoadFLEXStandaloneSolution")(a,c("AdFLEXBasicSolutionID").FLEX_STANDALONE_SOLUTION_HAS_ACTIVE_PIXEL_28D);return{signalValue:a?d("PrereqsTypes.flow").AdvertiserSignalValue.HIGH:d("PrereqsTypes.flow").AdvertiserSignalValue.NO_SIGNAL}}f={type:"businessSetups",key:"capi",useDataFetchingHook:c("useCapiPrereqsEntries.react"),isEntryEligible:a,isImmutableStep:function(a){return!1},dismissData:{modalHeader:d("SYDPrereqsWidgetCAPITextContent").dismissHeaderText,modalParagraph:d("SYDPrereqsWidgetCAPITextContent").dismissContentText,modalError:d("SYDPrereqsWidgetCAPITextContent").dismissErrorText},useSetupStepsHook:c("useCAPIPrereqsSteps"),setupContainer:function(){return j.jsx(c("SYDPrereqsCAPIContainerWrapper.react"),{})},filterStepsListByEntry:d("BsuCapiUtils").filterCAPIStepsListByEntry,inFinalState:d("BusinessSetupsCapiUtils").inFinalState,inInitialState:d("BusinessSetupsCapiUtils").inInitialState,inPartiallyFinishedState:d("BusinessSetupsCapiUtils").inPartiallyFinishedState,getEntryID:b,getStartingDisplayData:d("CAPISetupGetStartedDisplayData").getStartingDisplayData,useAdvertiserSignalFetchingHook:q,getFinishedDisplayData:e,getInProgressDisplayData:p,getPartiallyFinishedDisplayData:k,getAdditionalInProgressMenuItems:n,getMultipleIndicesDisplayData:m,onResetButtonClick:o};a=f;g["default"]=a}),98);
-----
usePrereqsCAPIEntries.react",["AdsFluxHooks","AdsMgmtPixelIDProvider","BusinessSetupsCapiUtils","CAPIPrereqEntryUtils","PrereqsLoggingConstants","PrereqsLoggingUtils","RelayHooks","adsCreateStructuredSelector","compactArray","firstx","gkx","nullthrows","usePrereqsCAPIEntries_am_prereqs_module.graphql","usePrereqsUpsertCAPISetupFlowStateMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("adsCreateStructuredSelector")({pixel:c("AdsMgmtPixelIDProvider").toFluxSelector()},f.id+".selector");function a(a){var e,f,g=a.am_prereqs_module,j=a.selectedIndexID;a=d("RelayHooks").useFragment(h!==void 0?h:h=b("usePrereqsCAPIEntries_am_prereqs_module.graphql"),g);a==null?d("PrereqsLoggingUtils").logPrereqsError(d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI,"am_prereqs_module is null"):a.saved_capi_setup_flow_states==null?d("PrereqsLoggingUtils").logPrereqsError(d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI,"am_prereqs_module.saved_capi_setup_flow_states is null"):a.saved_capi_setup_flow_states.connection_id==null&&d("PrereqsLoggingUtils").logPrereqsError(d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI,"am_prereqs_module.saved_capi_setup_flow_states.connection_id is null");g=c("usePrereqsUpsertCAPISetupFlowStateMutation")({connectionID:a==null?void 0:(g=a.saved_capi_setup_flow_states)==null?void 0:g.connection_id});e=(e=a==null?void 0:a.capi_entries)!=null?e:[];var k=((a=a==null?void 0:(a=a.saved_capi_setup_flow_states)==null?void 0:a.edges)!=null?a:[]).map(function(a){return a==null?void 0:a.node}).filter(Boolean),l=e.map(function(a){var b=a==null?void 0:a.pixel_id,d=a==null?void 0:a.pixel_name,e=a==null?void 0:a.integration_flow;a=a==null?void 0:a.best_pixel_pi_upsell;var f=k.find(function(a){return((a=a.pixel)==null?void 0:a.id)===b});return f==null?{current_step_id:"INITIAL",current_step_status:"NOT_STARTED",integration_flow:e,is_selected:!1,type:"CAPI",pixel_id:b,pixel_name:d,best_pixel_pi_upsell:a,update_time:0}:{current_step_id:c("nullthrows")(f.current_step_id,"usePrereqsCAPIEntries: current_step_id should never be null"),current_step_status:c("nullthrows")(f.current_step_status,"usePrereqsCAPIEntries: current_step_status should never be null"),integration_flow:e,is_selected:f.is_selected,type:"CAPI",pixel_id:b,pixel_name:d,best_pixel_pi_upsell:a,update_time:f.update_time||0}});a=e.map(function(a){var b=a==null?void 0:a.pixel_id;a=a==null?void 0:a.pixel_name;if(b==null||a==null)return null;var c=l.find(function(a){return a.pixel_id===b});return d("BusinessSetupsCapiUtils").isFinalStep(c==null?void 0:c.current_step_id)?null:{indexName:a,indexID:b}});e=k.filter(function(a){return d("BusinessSetupsCapiUtils").isFinalStep(a.current_step_id)}).length;var m=l.every(d("BusinessSetupsCapiUtils").isInitialStep),n=(f=d("AdsFluxHooks").useAdsSelector(i))==null?void 0:(f=f.pixel)==null?void 0:f.pixelID;f=[];if(l.length>0){var o;j!=null?o=l.find(function(a){return a.pixel_id===j}):n!=null?o=l.find(function(a){return a.pixel_id===n}):o=l.filter(function(a){return a.update_time!=null}).reduce(d("CAPIPrereqEntryUtils").selectEntryToDisplay);o=(o=o)!=null?o:c("firstx")(l);f.push(o)}o=c("gkx")("21755")?[{update_time:12,current_step_status:"NOT_STARTED",current_step_id:null,best_pixel_pi_upsell:null,integration_flow:null,is_selected:!0,type:"CAPI",pixel_id:"12345678",pixel_name:"Test"}]:f;f=c("gkx")("21755")?[{indexName:"Test",indexID:"12345678"}]:a;return{areAllEntriesInitial:m,entries:o,entryIndexIDs:c("compactArray")(f),finishedEntriesCount:e,upsertSetupState:g}}g["default"]=a}),98);
-----
SYDPrereqsWidgetContent.react",["AdsFluxHooks","CurrentUser","GeoCard.react","GeoFlexbox.react","GeoSection.react","JSResource","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetEntriesUI.react","SYDPrereqsWidgetLoadingContent.react","SYDPrereqsWidgetSummary.react","SYDWidget.react","SYDWidgetLogger.react","SYDWidgetStatusEnum","lazyLoadComponent","react","useIsFromBizSetupsCAPIEmailRecommendation","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("lazyLoadComponent")(c("JSResource")("PrereqsCAPIRecommendationIsStaleModal.react").__setRef("SYDPrereqsWidgetContent.react")),k=c("lazyLoadComponent")(c("JSResource")("SYDPrereqsWidgetDebugger.react").__setRef("SYDPrereqsWidgetContent.react"));function a(a){var b=a.adAccount,e=a.connectionIDSelectedIndexFragment,f=a.pluginsWithData,g=a.setIsDismissed;a=a.unfilteredPluginsWithData;c("vulture")("4grqTk081q1");var h="",l=f.map(function(a){return a.plugin.key});l.forEach(function(a,b){b=b===l.length-1;b?h+=a:h+=a+" + "});var m=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET,h),n=c("useIsFromBizSetupsCAPIEmailRecommendation")(),o=f.map(function(a){var b;return i.jsx("div",{children:a.plugin.setupContainer({entry:(b=(b=a.entries)==null?void 0:b[0])!=null?b:void 0,updater:a.updater})},a.plugin.key)});return i.jsxs(i.Fragment,{children:[f.length!==0?i.jsx(c("SYDWidgetLogger.react"),{status:c("SYDWidgetStatusEnum").Visible,children:i.jsx(c("SYDWidget.react"),{fallback:i.jsx(c("SYDPrereqsWidgetLoadingContent.react"),{}),children:i.jsx("div",{ref:m,children:i.jsx(c("GeoCard.react"),{children:i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"column",children:[o,i.jsx(c("SYDPrereqsWidgetSummary.react"),{adAccount:b,pluginsWithData:f}),i.jsx(c("SYDPrereqsWidgetEntriesUI.react"),{adAccount:b,connectionIDSelectedIndexFragment:e,pluginsWithData:f})]})})})})})}):i.jsx(c("SYDWidgetLogger.react"),{status:c("SYDWidgetStatusEnum").Hidden}),n&&i.jsx(j,{pluginsWithData:f}),c("CurrentUser").isEmployee()&&i.jsx(k,{setIsDismissed:g,unfilteredPluginsWithData:a})]})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a);g["default"]=b}),98);
-----
CAPISetupGetStartedDisplayData",["ix","AdsEventsManagerGatingUtils","AdsManagerCAPISetupUpsellUtils","CAPIPrereqsTypes.flow","GeoLink.react","GeoText.react","PrereqsLoggingConstants","SYDPartnerRecommendationDescription.react","SYDPrereqsWidgetCAPITextContent","SYDPrereqsWidgetTextContent","StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent","URI","bx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function l(a){a=a.url;return k.jsx(c("GeoLink.react"),{href:new(i||(i=c("URI")))(a),target:"_blank",children:d("SYDPrereqsWidgetTextContent").learnMoreText})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b,e=a.integration_flow==="PARTNER";b=(b=a.best_pixel_pi_upsell)!=null?b:"manual";b=d("AdsManagerCAPISetupUpsellUtils").SupportedPartners.includes(b)?b:"manual";return e&&!d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager()?{descriptionComponent:k.jsx(c("GeoText.react"),{children:d("SYDPrereqsWidgetCAPITextContent").setupCAPIPartnerDescriptionText}),recommendedPartner:b,headerText:d("SYDPrereqsWidgetCAPITextContent").setupCAPIPartnerHeader,imagePath:h("12974"),learnMoreLink:k.jsx(l,{url:d("SYDPrereqsWidgetTextContent").PARTNER_LEARN_MORE_URL}),shouldShowEntryInMultipleIndicesSelector:a.best_pixel_pi_upsell!=null,stepToOpen:d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.CHOOSE_A_PARTNER,loggingSourceName:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER,thumbnailPath:"/images/ads/prerequisites/capi_get_started_thumbnail.png",videoPath:c("bx")("9831")}:{descriptionComponent:k.jsx(c("SYDPartnerRecommendationDescription.react"),{best_pixel_pi_upsell:a.best_pixel_pi_upsell}),recommendedPartner:b,headerText:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrCAPIInitialHeaderText(a.best_pixel_pi_upsell),imagePath:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrInitialImagePath(a.best_pixel_pi_upsell),learnMoreLink:k.jsx(l,{url:d("SYDPrereqsWidgetTextContent").FULL_FLOW_LEARN_MORE_URL}),shouldShowEntryInMultipleIndicesSelector:a.best_pixel_pi_upsell!=null,stepToOpen:d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.BEST_PIXEL_PI_UPSELL,loggingSourceName:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_FULL,"data-testid":"syd-prereqs-widget-capi-content-get-started-button",thumbnailPath:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrInitialThumbnailPath(a.best_pixel_pi_upsell),videoPath:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrInitialVideoPath(a.best_pixel_pi_upsell)}}g.LearnMoreLink=l;g.getStartingDisplayData=a}),98);
-----
SYDPartnerRecommendationDescription.react",["CAPIBestPixelUtils","GeoText.react","PrereqsLoggingConstants","PrereqsLoggingUtils","StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b;a=a.best_pixel_pi_upsell;b=(b=d("CAPIBestPixelUtils").getFriendlyPartnerNameForUpsell(a))!=null?b:"GENERAL_PI_UPSELL";b=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_GET_STARTED_BEST_PIXEL,b);return i.jsx(c("GeoText.react"),{containerRef:b,children:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrCAPIInitialDescriptionText(a)})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PrereqsLoggingConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["CAPI","CAPI_FULL","CAPI_MANUAL","CAPI_PARTNER","MULTIPLE_INDICES_TYPEAHEAD","SHOPS","OFFSITE_SHOP","PAYOUTS","SYD_BADGE","SYD_BADGE_POPOVER","SYD_WIDGET","SYD_WIDGET_FINISHED","SYD_WIDGET_GET_STARTED","SYD_WIDGET_GET_STARTED_BEST_PIXEL","SYD_WIDGET_IN_PROGRESS","SYD_WIDGET_PARTIALLY_FINISHED","SHIPPING_AND_RETURNS","IPM_ACCOUNT_OVERVIEW","IPM_ACCOUNT_OVERVIEW_POPOVER","IPM_CAPI_INLINE","IPM_CAPI_INLINE_POPOVER","SAVE_FOR_LATER_ICON","SYD_WIDGET_CAPI_MARKETING_EXPERT_CARD"]);c=b("$InternalEnum").Mirrored(["GET_STARTED","FINISH_SETUP","IPM_CAPI_INLINE_OPEN_FLOW","IPM_GO_TO_ACCOUNT_OVERVIEW","MULTIPLE_INDEX_SELECTION","SAVE_FOR_LATER","SETUP_NEXT_INDEX_CTA","SUCCESS_STORY_FAIR_HARBOR","SUCCESS_STORY_SEE_MORE","UNSAVE_FOR_LATER","SYD_WIDGET_CAPI_MARKETING_EXPERT_REQUEST_CALL"]);f.PrerequisitesLocation=a;f.PrerequisitesClickEvent=c}),66);
-----
SYDInProgressDisplay.react",["GeoDropdownMenu.react","GeoFlexbox.react","GeoHeading.react","GeoMenuItem.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetConfirmModal.react","SYDPrereqsWidgetInProgressSelectedIndex.react","SYDPrereqsWidgetSteps.react","SYDPrereqsWidgetTextContent","emptyFunction","geoMargin","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;function a(a){var b=a.adAccount,e=a.entry;a=a.pluginWithData;var f=a.plugin,g=a.entryIndexIDs,i=a.finishedEntriesCount,l=a.onDismiss,m=a.updater;a=a.steps;var n={modalState:{header:null,onConfirm:c("emptyFunction"),contentText:null,confirmText:null,contentError:null},isShown:!1,isLoading:!1},o=k(n),p=o[0],q=o[1];o=f.filterStepsListByEntry(e,a,b);g=g!=null&&i!=null?{eligibleEntriesCount:g.length,finishedEntriesCount:i}:null;i=f.getInProgressDisplayData(e,g);g=i.header;i=i.paragraphComponent;var r=f.getMultipleIndicesDisplayData==null?void 0:f.getMultipleIndicesDisplayData(e).selectedIndexDisplayData,s=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_IN_PROGRESS,f.key),t=function(){return q(n)};return j.jsxs("div",{ref:s,children:[j.jsx(c("SYDPrereqsWidgetConfirmModal.react"),{isLoading:p.isLoading,isShown:p.isShown,modalState:p.modalState,onHide:t}),j.jsxs(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"column",children:[j.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:[j.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").vert12,children:g}),j.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:"More",useEllipsisIcon:!0,children:[f.getAdditionalInProgressMenuItems&&f.getAdditionalInProgressMenuItems(e,m,a).map(function(a){var b=a.confirmModalData,d=a.label,e=a.onClick;if(b!=null)return j.jsx(c("GeoMenuItem.react"),{label:d,onClick:function(){q({modalState:{header:b==null?void 0:b.header,onConfirm:function(){e(),t()},contentText:b==null?void 0:b.paragraph,confirmText:null,contentError:null},isShown:!0,isLoading:!1})}},d.toString()+"-"+f.key);else return j.jsx(c("GeoMenuItem.react"),{label:d,onClick:function(){return e()}},d.toString()+"-"+f.key)}),b!=null?j.jsx(c("GeoMenuItem.react"),{label:d("SYDPrereqsWidgetTextContent").dismissText,onClick:function(){q({modalState:{header:f.dismissData.modalHeader,contentText:f.dismissData.modalParagraph,contentError:null,confirmText:d("SYDPrereqsWidgetTextContent").dismissButtonText,onConfirm:l},isShown:!0,isLoading:!1})}}):null]})]}),j.jsx("div",{className:(h||(h=c("stylex")))(c("geoMargin").bottom12),display:"block",children:i}),r&&j.jsx(c("SYDPrereqsWidgetInProgressSelectedIndex.react"),babelHelpers["extends"]({selectedIndexID:f.getEntryID(e),setupName:f.key},r)),j.jsx(c("SYDPrereqsWidgetSteps.react"),{entry:e,plugin:f,steps:o})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetEntryUI.react",["invariant","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDEventTypesEnum","SYDGetStartedDisplayHeroRoot.react","SYDInProgressDisplay.react","SYDPrereqsWidgetFinishedDisplay.react","SYDPrereqsWidgetGetStartedDisplay.react","SYDPrereqsWidgetPartiallyFinishedDisplay.react","SYDUnifiedLoggingUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.adAccount,e=a.connectionIDSelectedIndexFragment,f=a.entry;a=a.pluginWithData;var g=a.areAllEntriesInitial,i=a.entryIndexIDs,k=a.finishedEntriesCount,l=a.steps,m=a.plugin,n=a.updater,o=m.getMultipleIndicesDisplayData,p=m.onPartiallyFinishedGetStartedButtonClick,q=m.inFinalStateWithErrors!=null&&m.getFinishedDisplayWithErrorsData!=null&&m.inFinalStateWithErrors(f),r=m.inFinalState(f,i==null?void 0:i.length)||q;if(r){r=q?m.getFinishedDisplayWithErrorsData(f):m.getFinishedDisplayData(f);var s=r.linkText,t=r.linkURI,u=r.text;r=r.title;return j.jsx(c("SYDPrereqsWidgetFinishedDisplay.react"),{hasErrors:q,linkText:s,linkURI:t,taskName:m.key,text:u,title:r})}if(m.inInitialState(f,g)){q=m.getStartingDisplayData(f);var v=q.loggingSourceName,w=q.stepToOpen,x=l.find(function(a){return a.stepID===w}),y=l.find(function(a){return a.stepID==="CHOOSE_A_PARTNER"});s=function(){var a,b;x==null?void 0:x.onClick(f);d("SYDUnifiedLoggingUtils").logClick("Prereqs",c("SYDEventTypesEnum").CallToAction,!0,void 0,(b={},b.message=d("PrereqsLoggingConstants").PrerequisitesClickEvent.GET_STARTED,b.source=(a=v)!=null?a:m.key,b));d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.GET_STARTED,(a=v)!=null?a:m.key,m.getEntryID(f))};t=function(){var a,b;y==null?void 0:y.onClick(f);d("SYDUnifiedLoggingUtils").logClick("Prereqs",c("SYDEventTypesEnum").CallToAction,!0,void 0,(b={},b.message=d("PrereqsLoggingConstants").PrerequisitesClickEvent.GET_STARTED,b.source=(a=v)!=null?a:m.key,b));d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.GET_STARTED,(a=v)!=null?a:m.key,m.getEntryID(f))};return j.jsx(c("SYDGetStartedDisplayHeroRoot.react"),{taskName:m.key,children:j.jsx(c("SYDPrereqsWidgetGetStartedDisplay.react"),{adAccount:b,currentEntryID:m.getEntryID(f),customCallToAction:x==null?void 0:x.customCallToAction,entryIndexIDs:i,multipleIndicesSelectorDisplayData:o==null?void 0:o(f).selectorDisplayData,startingDisplayData:q,taskName:m.key,onExplorePartnersClick:t,onGetStartedClick:s})})}if(m.inPartiallyFinishedState!=null&&i!=null&&m.inPartiallyFinishedState(f,i.length)&&m.getPartiallyFinishedDisplayData!=null&&o!=null){u=m.inPartiallyFinishedStateWithErrors!=null&&i!=null&&m.inPartiallyFinishedStateWithErrors(f,i.length);r=u&&m.getFinishedDisplayWithErrorsData!=null?m.getFinishedDisplayWithErrorsData(f):m.getFinishedDisplayData(f);k!=null||h(0,62604);m.getPartiallyFinishedDisplayData!=null||h(0,77351);g=m.getPartiallyFinishedDisplayData(f);l=p!=null?function(){return p(n)}:void 0;return j.jsx(c("SYDPrereqsWidgetPartiallyFinishedDisplay.react"),{adAccount:b,connectionIDSelectedIndexFragment:e,entryIndexIDs:i,finishedDisplayData:r,finishedEntriesCount:k,hasErrors:u,multipleIndicesSelectorDisplayData:o(f).selectorDisplayData,partiallyFinishedDisplayData:g,taskName:m.key,onGetStartedClick:l})}return j.jsx(c("SYDInProgressDisplay.react"),{adAccount:b,entry:f,pluginWithData:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetIndexTypeahead.react",["GeoBaseTypeaheadItem.react","GeoTypeahead.react","PrereqsLoggingConstants","PrereqsLoggingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useState;function a(a){var b=a["data-testid"],e=a.eligibleEntriesCount,f=a.initialEntry,g=a.isDisabled;g=g===void 0?!1:g;var h=a.isLoading,m=h===void 0?!1:h,n=a.loggingMessage;h=a.searchSource;var o=a.setGetStartedButtonIsDisabled,p=a.updateSelectedIndex,q=a.additionalOnSelectAttempt,r=a.getIndexIDFbtWithLabel,s=a.getSelectorDescription,t=a.placeholderText;a=a.selectorLabel;var u=l(f),v=u[0],w=u[1];f=l((u=f==null?void 0:f.getTitle())!=null?u:"");u=f[0];var x=f[1];f=j(function(){x(v!=null?v.getTitle():"")},[v,x]);k(function(){o!=null&&(m?o(!0):o(v==null))},[v,m,o]);var y=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.MULTIPLE_INDICES_TYPEAHEAD,n);s=s&&s(e);return i.jsx(c("GeoTypeahead.react"),{"data-container-testid_DO_NOT_USE":"multiple-indices-typeahead-"+b+"-temp","data-layer-testid":"multiple-indices-typeahead-"+b+"-layer","data-testid":void 0,description:s,inputRef:y,isDisabled:g||m,isLoading:m,label:a,placeholder:t,queryString:u,searchSource:h,showEntriesOnFocus:!0,onBlur:f,onChange:x,onSelectAttempt:function(a){w(a),x(a.getTitle()),p(a.getUniqueID()),q!=null&&q(a),d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.MULTIPLE_INDEX_SELECTION,n)},children:function(a){return i.jsx(c("GeoBaseTypeaheadItem.react"),{"data-testid":void 0,description:r(a.getSubtitle()),label:a.getTitle()})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetFinishedDisplay.react",["ix","GeoBaseText.react","GeoFlexbox.react","GeoHeading.react","GeoIcon.react","GeoLink.react","PrereqsLoggingConstants","PrereqsLoggingUtils","fbicon","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k={container:{backgroundColor:"x1r7ttyx",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}};function a(a){var b=a.hasErrors,e=a.linkText,f=a.linkURI,g=a.taskName,i=a.text;a=a.title;var l=b!==!0?d("fbicon")._(h("498146"),20):d("fbicon")._(h("681771"),20);b=b!==!0?"success":"warning";g=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_FINISHED,g);return j.jsxs(c("GeoFlexbox.react"),{containerRef:g,"data-testid":void 0,xstyle:k.container,children:[j.jsx(c("GeoIcon.react"),{color:b,icon:l}),j.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz8,children:[j.jsx(c("GeoHeading.react"),{level:4,xstyle:c("geoMargin").bottom4,children:a}),j.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",xstyle:c("geoMargin").bottom4,children:i}),j.jsx(c("GeoLink.react"),{href:f,target:"_blank",children:e})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetGetStartedDisplay.react",["GeoBaseSpacingLayout.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDCAPISetupUpsellUtils","SYDPrereqsCAPIWidget.react","SYDPrereqsMedia.react","SYDPrereqsWidgetIndexTypeaheadWrapper.react","SYDPrereqsWidgetTextContent","SignalsConversionsAPILogger","geoMargin","react","stylex","useAdsPerfInterationsForSYDGetStarted"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useState;function l(a){var b=a.adAccountID,d=a.entryIndexIDs,e=a.multipleIndicesPreselectedEntryID,f=a.multipleIndicesSelectorDisplayData,g=a.setGetStartedButtonIsDisabled;a=a.setupName;return d!=null&&f!=null?j.jsx("div",{className:(h||(h=c("stylex")))(c("geoMargin").bottom8),children:j.jsx(c("SYDPrereqsWidgetIndexTypeaheadWrapper.react"),babelHelpers["extends"]({adAccountID:b,"data-testid":void 0,entryIndexIDs:d,loggingMessage:a+" Get Started Display",preselectedEntryID:e,setGetStartedButtonIsDisabled:g,setupName:a},f))}):null}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b,e=a.adAccount,f=a.currentEntryID,g=a.customCallToAction,h=a.entryIndexIDs,i=a.multipleIndicesSelectorDisplayData,m=a.onExplorePartnersClick,n=a.onGetStartedClick,o=a.startingDisplayData;a=a.taskName;c("useAdsPerfInterationsForSYDGetStarted")(a);var p=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_GET_STARTED,a),q=o["data-testid"],r=o.adsVideoPlayerID,s=o.descriptionComponent,t=o.recommendedPartner,u=o.headerText,v=o.imagePath,w=o.learnMoreLink,x=o.shouldShowEntryInMultipleIndicesSelector,y=o.thumbnailPath;o=o.videoPath;q=(q=q)!=null?q:"syd-prereqs-widget-get-started-button";var z=k(!1),A=z[0];z=z[1];b=d("SignalsConversionsAPILogger").getConversionsAPILogger({adAccountID:e==null?void 0:e.account_id,businessID:null,dataSourceID:f}).scope("ADS_MANAGER").scope("AM_START_YOUR_DAY").scope("CAPI_SETUP_UPSELL").scope((b=t)!=null?b:"manual");if(a==="capi"&&e!=null&&d("SYDCAPISetupUpsellUtils").isInAdsManagerSYDExperiment(e,b))return j.jsx("div",{ref:p,children:j.jsx(c("SYDPrereqsCAPIWidget.react"),{adAccount:e,currentEntryID:f,dataTestID:q,descriptionComponent:s,entryIndexIDs:h,getStartedButtonIsDisabled:A,headerText:u,imagePath:v,logger:b,multipleIndicesSelectorDisplayData:i,recommendedPartner:t,setGetStartedButtonIsDisabled:z,shouldShowEntryInMultipleIndicesSelector:x,taskName:a,thumbnailPath:y,videoPath:o,onExplorePartnersClick:m,onGetStartedClick:n})});q=j.jsx(c("SYDPrereqsMedia.react"),{adsVideoPlayerID:r,bxVideoPath:o,imagePath:v,taskName:a,thumbnailPath:y});t=j.jsxs(j.Fragment,{children:[j.jsx(c("GeoHeading.react"),{level:3,children:u}),j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[s,w]}),j.jsx(l,{adAccountID:e==null?void 0:e.account_id,entryIndexIDs:h,multipleIndicesPreselectedEntryID:x===!0?f:null,multipleIndicesSelectorDisplayData:i,setGetStartedButtonIsDisabled:z,setupName:a}),j.jsx(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:(b=g)!=null?b:j.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:A,label:d("SYDPrereqsWidgetTextContent").getStartedButtonText,width:120,onClick:n})})]});return j.jsx("div",{"data-testid":void 0,ref:p,children:j.jsxs(c("GeoFlexbox.react"),{direction:"row",gap:12,children:[j.jsx(c("GeoFlexbox.react"),{alignItems:"center",basis:"content",children:q}),j.jsx(c("GeoFlexbox.react"),{basis:"0",direction:"column",gap:16,grow:1,children:t})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetPartiallyFinishedDisplay.react",["invariant","BizSiteIdentifier.brands","GeoBaseSpacingLayout.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoText.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetFinishedDisplay.react","SYDPrereqsWidgetIndexSearchSource","SYDPrereqsWidgetIndexTypeahead.react","SYDPrereqsWidgetTextContent","geoMargin","react","stylex","useAdsBSUSetupMetadata","useUpsertAdsBSUSetupBusinessMetadata","useUpsertAdsBSUSetupMetadata"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;var l=b.useMemo,m=b.useState;function n(a){var b=a.entryIndexIDs,d=a.isDisabled,e=a.multipleIndicesSelectorDisplayData,f=a.setSelectedIndex;a=a.setupName;var g=l(function(){return new(c("SYDPrereqsWidgetIndexSearchSource"))({entryIndexIDs:b})},[b]);return k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").bottom8),children:k.jsx(c("SYDPrereqsWidgetIndexTypeahead.react"),babelHelpers["extends"]({"data-testid":void 0,eligibleEntriesCount:b.length,isDisabled:d,loggingMessage:a+" Partially Finished Display",searchSource:g,updateSelectedIndex:f},e))})}n.displayName=n.name+" [from "+f.id+"]";function a(a){var b=a.adAccount,e=a.connectionIDSelectedIndexFragment,f=a.entryIndexIDs,g=a.finishedDisplayData,i=a.finishedEntriesCount,j=a.hasErrors,l=a.multipleIndicesSelectorDisplayData,o=a.onGetStartedClick,p=a.partiallyFinishedDisplayData,q=a.taskName;a=g.linkText;var r=g.linkURI,s=g.text;g=g.title;var t=b==null?void 0:b.account_id,u=p.description,v=p.headerText,w=p.loggingSourceName;p=p.learnMoreLink;var x=d("BizSiteIdentifier.brands").getBusinessID(),y=m(null),z=y[0];y=y[1];var A=m(!1),B=A[0],C=A[1];A=d("useAdsBSUSetupMetadata").useAdsBSUSetupMetadataSelectedIndex(b==null?void 0:b.account_id,x);b=A.connectionID;A=d("useUpsertAdsBSUSetupMetadata").useUpsertAdsBSUSetupMetadataSelectedIndex({connectionID:e!=null?e:b,adAccountID:t});e=d("useUpsertAdsBSUSetupBusinessMetadata").useUpsertAdsBSUSetupBusinessMetadataSelectedIndex({connectionID:b,adAccountID:t,businessID:x});var D=t!=null?A:e;b=function(){var a;z!=null||h(0,56207);C(!0);d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.SETUP_NEXT_INDEX_CTA,((a=w)!=null?a:q)+" entry "+(i+1));D(q,z,function(){C(!1)});o!=null&&o()};x=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_PARTIALLY_FINISHED,q+" entry "+i+" finished");return k.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",containerRef:x,context:"container",direction:"vertical",relation:"unrelated",children:[k.jsx(c("SYDPrereqsWidgetFinishedDisplay.react"),{hasErrors:j,linkText:a,linkURI:r,taskName:q,text:s,title:g}),k.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[k.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom4,children:v}),k.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",xstyle:c("geoMargin").bottom4,children:[k.jsx(c("GeoText.react"),{children:u}),p]}),k.jsx(n,{entryIndexIDs:f,isDisabled:B,multipleIndicesSelectorDisplayData:l,setSelectedIndex:y,setupName:q}),k.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:B||z==null,isLoading:B,label:d("SYDPrereqsWidgetTextContent").getStartedButtonText,variant:"primary",width:120,xstyle:c("geoMargin").top4,onClick:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useFBReelsScrollLogging",["CometRelay","FBReelsLoggingConstants","FBReelsViewerSessionIDContext","react","requireDeferred","useFBReelsProcessRoute","useFBReelsScrollLogging_reel.graphql","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");e.useCallback;var j=e.useContext,k=e.useEffect,l=e.c,m=c("requireDeferred")("SfvChainingNavigationScrollFalcoEvent").__setRef("useFBReelsScrollLogging");function a(a,e,f){var g=l(13),i;g[0]===Symbol["for"]("react.memo_cache_sentinel")?(i=h!==void 0?h:h=b("useFBReelsScrollLogging_reel.graphql"),g[0]=i):i=g[0];i=d("CometRelay").useFragment(i,e);e=j(c("FBReelsViewerSessionIDContext"));var n=e.viewerSessionID;e=c("useFBReelsProcessRoute")();var o=e.rootVideoID,p=c("usePrevious")(a),q=c("usePrevious")(i),r=c("usePrevious")(f);g[1]!==q||g[2]!==a||g[3]!==p||g[4]!==o||g[5]!==r||g[6]!==n?(e=function(){if(q==null)return;var b=a!=null&&p!=null&&a>p?"DOWN":"UP";m.onReady(function(a){return a.log(function(){var a;return{client_page_position:String(p),creator_id:(q==null?void 0:(a=q.short_form_video_context)==null?void 0:(a=a.video_owner)==null?void 0:a.id)||"",parent_video_id:o,playable_duration_in_ms:String((a=q==null?void 0:(a=q.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.playable_duration_in_ms)!=null?a:0),scroll_direction:b,source_surface:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[(a=(a=r)!=null?a:q==null?void 0:q.tracking)!=null?a:""],video_id:(a=q==null?void 0:(a=q.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id)!=null?a:"",viewer_session_id:n}})})},g[1]=q,g[2]=a,g[3]=p,g[4]=o,g[5]=r,g[6]=n,g[7]=e):e=g[7];var s=e;g[8]!==p||g[9]!==a||g[10]!==s?(i=function(){var b=p!=null,c=a!==p;if(!b||!c)return;s()},f=[a,p,s],g[8]=p,g[9]=a,g[10]=s,g[11]=i,g[12]=f):(i=g[11],f=g[12]);k(i,f)}g["default"]=a}),98);
-----
useFBReelsImpressionLogging",["CometImpressionLoggingUtil","CometRelay","FBLogger","FBReelsLoggingConstants","FBReelsViewerSessionIDContext","cr:3879","react","requireDeferred","setTimeout","useFBReelsImpressionLogging_reel.graphql","useFBReelsProcessRoute","useMinifiedProductAttribution","usePrevious","useVPVDImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");e.useCallback;var j=e.useContext,k=e.useEffect,l=e.useRef,m=e.c,n=c("requireDeferred")("SfvChainingVpvdFalcoEvent").__setRef("useFBReelsImpressionLogging"),o=h!==void 0?h:h=b("useFBReelsImpressionLogging_reel.graphql"),p=6e4;function a(a,e){var f=m(40),g=c("usePrevious")(a),h=d("CometRelay").useFragment(o,e),i=c("usePrevious")(h);f[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={},f[0]=e):e=f[0];var q=l(e);e=c("useFBReelsProcessRoute")();var r=e.rootVideoID;e=j(c("FBReelsViewerSessionIDContext"));var s=e.viewerSessionID,t=c("useMinifiedProductAttribution")(),u=l(!1);f[1]===Symbol["for"]("react.memo_cache_sentinel")?(e={},f[1]=e):e=f[1];var v=l(e),w=d("CometRelay").useRelayEnvironment();f[2]!==t||f[3]!==r||f[4]!==s||f[5]!==w?(e=function(a,d){var e;if(d==null){c("FBLogger")("fb_reels_web").mustfix("Reels deep dive viewer tried to log a VPVd with no valid data");return}var f=(e=d==null?void 0:(e=d.short_form_video_context)==null?void 0:(e=e.video)==null?void 0:e.id)!=null?e:"";e=q.current[f];if(e==null){c("FBLogger")("fb_reels_web").mustfix("Reels deep dive viewer tried to log a duplicate VPVd or one for a reel never viewed. Reels ID:"+f);return}var g=Date.now()-e;n.onReady(function(b){return b.log(function(){var b;return{client_page_position:String(a),creator_id:(d==null?void 0:(b=d.short_form_video_context)==null?void 0:(b=b.video_owner)==null?void 0:b.id)||"",duration:String(g),nav_attribution_id_v2:t,parent_video_id:r,playable_duration_in_ms:String((b=d==null?void 0:(b=d.short_form_video_context)==null?void 0:(b=b.video)==null?void 0:b.playable_duration_in_ms)!=null?b:0),player_origin:c("FBReelsLoggingConstants").PLAYER_ORIGIN.NEWS_FEED,player_suborigin:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,source_surface:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[(d==null?void 0:d.tracking)||""],video_id:f,viewer_session_id:s}})});b("cr:3879")(w,f);delete q.current[f]},f[2]=t,f[3]=r,f[4]=s,f[5]=w,f[6]=e):e=f[6];var x=e;f[7]!==h?(e=function(){var a;a=h==null?void 0:(a=h.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id;if(a==null)return;var b=q.current[a];if(b!=null)return;b=Date.now();q.current[a]=b},f[7]=h,f[8]=e):e=f[8];var y=e,z;f[9]!==i||f[10]!==h||f[11]!==t||f[12]!==a?(e=function(){var b,e;if(!u.current){u.current=!0;return}b=i==null?void 0:(b=i.short_form_video_context)==null?void 0:(b=b.video)==null?void 0:b.id;var f=h==null?void 0:(e=h.short_form_video_context)==null?void 0:(e=e.video)==null?void 0:e.id;if(f!=null&&b!==f){e=v.current[f]!=null;if(e)return;else d("CometImpressionLoggingUtil").logPostImpressionForReel(t,a,h==null?void 0:h.tracking),v.current[f]=c("setTimeout")(function(){v.current[f]=null},p)}},z=[t,a,h,i],f[9]=i,f[10]=h,f[11]=t,f[12]=a,f[13]=e,f[14]=z):(e=f[13],z=f[14]);k(e,z);f[15]!==y?(e=function(){y()},f[15]=y,f[16]=e):e=f[16];f[17]!==h||f[18]!==y?(z=[h,y],f[17]=h,f[18]=y,f[19]=z):z=f[19];k(e,z);f[20]!==i||f[21]!==h||f[22]!==x||f[23]!==g?(e=function(){var a,b;a=i==null?void 0:(a=i.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id;b=h==null?void 0:(b=h.short_form_video_context)==null?void 0:(b=b.video)==null?void 0:b.id;a!=null&&a!==b&&x(g,i)},f[20]=i,f[21]=h,f[22]=x,f[23]=g,f[24]=e):e=f[24];f[25]!==a||f[26]!==g||f[27]!==h||f[28]!==i||f[29]!==x?(z=[a,g,h,i,x],f[25]=a,f[26]=g,f[27]=h,f[28]=i,f[29]=x,f[30]=z):z=f[30];k(e,z);f[31]!==y?(e=function(){y()},f[31]=y,f[32]=e):e=f[32];z=e;f[33]!==h||f[34]!==x||f[35]!==a?(e=function(){if(h==null)return;x(a,h)},f[33]=h,f[34]=x,f[35]=a,f[36]=e):e=f[36];e=e;var A;f[37]!==e||f[38]!==z?(A={onVPVDEnd:e,onVPVDStart:z},f[37]=e,f[38]=z,f[39]=A):A=f[39];return c("useVPVDImpression")(A)}g["default"]=a}),98);
-----
FBReelsMediaTransitionContainer.react",["CometPageLayoutWithComplementaryContent.react","CometPlaceholder.react","CometRelay","CometRouteRenderType","CometTahoeSidepaneDialogContextProvider.react","CometTheme.react","CometTrackingCodeProvider.react","ConstUriUtils","FBReelsActionsContext","FBReelsConstants","FBReelsFeedbackBar.react","FBReelsFeedbackBarPlaceholder.react","FBReelsFeedbackRightRailGlimmer.react","FBReelsFeedbackRightRailWithCommentPreloading.react","FBReelsFullScreenContext","FBReelsHideReelContext","FBReelsLoggingConstants","FBReelsMediaBottomSheet.react","FBReelsMediaContentContainer.react","FBReelsMediaTransitionContainer_initial_reels.graphql","FBReelsMediaTransitionContainer_video.graphql","FBReelsNavigationButtons.react","FBReelsNodeIndexContextProvider.react","FBReelsResizeIcon.react","FBReelsViewerKeyboardInteractionsOverlay.react","HiddenSubtreeContext","InteractivePluginContextProvider.react","ReelIFUTrackingContext","ReelsInteractivePluginManagerDeferred.react","ReelsVideoLoadingView.react","WebPixelRatio","XCometFBReelControllerRouteBuilder","cr:7375","deferredLoadComponent","gkx","persistentQueryParams","react","requireDeferred","stylex","useCometPreloader","useCometWindowSize","useCurrentDisplayMode","useFBReelsImpressionLogging","useFBReelsProcessRoute","useFBReelsScrollLogging","useFBReelsViewerBaseDimensions","useOnBeforeUnload","useReelsLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useMemo,q=e.useState,r=36,s=12,aa=(e=b("cr:7375"))!=null?e:l.Fragment,ba=c("deferredLoadComponent")(c("requireDeferred")("FBReelsFeedbackRightRail.react").__setRef("FBReelsMediaTransitionContainer.react")),t={fullScreenInPushView:{height:"x1dr59a3",width:"x1wqljz4",$$css:!0},fullScreenNotInPushView:{height:"xtp0wl1",width:"x7w7710",$$css:!0}},u=null;if(c("gkx")("410"))try{u=function(){var a={};return{getUrlWithPersistentParams:function(b){if(Object.keys(a).length===0)return b;var c=d("ConstUriUtils").getUri(b);if(c==null)return b;c=c.addQueryParams(new Map(Object.entries(a)));return c==null?b:c.toString()},setPersistentParams:function(b){var d=b.getQueryParams();a={};c("persistentQueryParams").forEach(function(b){if(b==="sk")return;if(d.has(b)){var c=d.get(b);a[b]=c}})}}}();e=d("ConstUriUtils").getUri(window.location.href);e&&u.setPersistentParams(e)}catch(a){u=null}function a(a){var e,f,g=a.initialReelsRef,k=a.isGuidedBoostInComposer;a.isMuted;var ca=a.isNextButtonHidden;a.isPaused;var v=a.nodesRef,w=a.onPressTryBoost;a.onVideoLoaded;a.setPause;var x=a.tryBoostURI,y=d("CometRelay").useFragment(h!==void 0?h:h=b("FBReelsMediaTransitionContainer_initial_reels.graphql"),g),z=d("CometRelay").useFragment(i!==void 0?i:i=b("FBReelsMediaTransitionContainer_video.graphql"),v);a=n(c("FBReelsNodeIndexContextProvider.react"));var A=a.index;v=n(c("FBReelsHideReelContext"));var B=v.hiddenReels;a=q(!1);var C=a[0],da=a[1];v=n(c("HiddenSubtreeContext"));var D=v.hidden;a=c("gkx")("1269");v=n(c("FBReelsActionsContext"));var E=v.isVerticalSwipe;d("CometRelay").useSubscribeToInvalidationState([y==null?void 0:y.id].filter(Boolean),function(){da(!0)});v=c("useFBReelsProcessRoute")();var F=v.rootVideoClickTrackingLinkshimCb,G=v.rootVideoEncryptedClickTracking,H=v.rootVideoEncryptedTrackingKey,I=v.rootVideoTrackingKey,J=p(function(){var a,b=[];y!=null&&y.id!=null&&!C&&B!=null&&!B.has(y.id)&&b.push({nodeData:y,rootTracking:I});((a=z)!=null?a:[]).forEach(function(a){var c;a!=null&&Object.keys(a).length!==0&&a.id!=null&&B!=null&&!B.has(a.id)&&(!E||((c=a.short_form_video_context)==null?void 0:(c=c.video)==null?void 0:c.id)!=null)&&b.push({nodeData:a,rootTracking:null})});a=b.filter(Boolean);return a},[y,C,B,z,I,E]);G={click_tracking_linkshim_cb:(v=F)!=null?v:"",encrypted_click_tracking:(F=G)!=null?F:"",encrypted_tracking:(v=H)!=null?v:""};F=p(function(){var a;return{tracking:(a=J[A])==null?void 0:a.rootTracking}},[J,A]);var K=((H=J[A])==null?void 0:(v=H.nodeData)==null?void 0:(H=v.short_form_video_context)==null?void 0:H.self_view_boost)!=null;v=n(c("FBReelsFullScreenContext"));var L=v.isFullScreen,ea=v.setFullScreen,M=c("gkx")("1849");H=d("CometRelay").useQueryLoader(d("FBReelsFeedbackRightRailWithCommentPreloading.react").FBReelsFeedbackRightRailWithCommentPreloadingQuery);v=H[0];var N=H[1],fa=m(function(){var a;if(M===!1)return;a=(a=J[A])==null?void 0:(a=a.nodeData.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id;var b=d("WebPixelRatio").get();N({feedbackSource:65,feedLocation:"COMET_MEDIA_VIEWER",focusCommentID:null,initial_node_id:(a=a)!=null?a:"",renderLocation:"fb_shorts_profile_video_deep_dive",scale:b})},[M,A,N,J]);H=c("useCometPreloader")("button",void 0,function(){fa()});var ga=H.onHighIntentPreloader,O=H.onHoverInPreloader,P=H.onHoverOutPreloader,Q=H.onPressInPreloader;o(function(){ga(L===!1)},[A,J]);o(function(){K&&ea(!L)},[]);var R=d("CometRouteRenderType").useIsPushView();H=c("useCurrentDisplayMode")();c("useFBReelsScrollLogging")(A,(e=J[A])==null?void 0:e.nodeData,F.tracking);e=c("useFBReelsImpressionLogging")(A,(e=J[A])==null?void 0:e.nodeData);var S=e[0],T=e[1];e=c("useReelsLogger")();var ha=e.exitViewerLog,U=(e=J[A])==null?void 0:(e=e.nodeData)==null?void 0:(e=e.short_form_video_context)==null?void 0:(e=e.video)==null?void 0:e.id,ia=(e=J[A-1])==null?void 0:(e=e.nodeData)==null?void 0:(e=e.short_form_video_context)==null?void 0:(e=e.video)==null?void 0:e.id,V=c("useCometWindowSize")(),W=babelHelpers["extends"]({},c("useFBReelsViewerBaseDimensions")()),X=p(function(){var a=[];if(E){var b,e=(V.innerHeight-W.height-d("FBReelsConstants").APP_HEADER_HEIGHT)/2,f=0;((b=J)!=null?b:[]).forEach(function(b,g){var h;h=b==null?void 0:(h=b.nodeData)==null?void 0:(h=h.short_form_video_context)==null?void 0:(h=h.video)==null?void 0:h.id;if(h!=null){a.push(l.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k xod5an3 x14vqqas x1uhb9sk",style:{alignItems:!L&&V.innerWidth<=d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD?"flex-start":"center",minHeight:V.innerHeight-(!L&&R&&V.innerWidth>d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD?0:d("FBReelsConstants").APP_HEADER_HEIGHT)-r},children:[l.jsxs("div",{className:"xjbqb8w x1lq5wgf xgqcy7u x30kzoy x9jhf4c x78zum5 x1q0g3np x6ikm8r x10wlt62",children:[l.jsx(c("FBReelsMediaBottomSheet.react"),{}),l.jsx(c("FBReelsMediaContentContainer.react"),{loggerRef:S,onPressTryBoost:w,reels:b==null?void 0:b.nodeData,tryBoostURI:x,videoIndex:f}),T]}),!k&&l.jsx("div",{className:"xpvyfi4 x5yr21d xat24cr",style:{alignSelf:!L&&V.innerWidth<=d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD?"center":"flex-end",marginBottom:e},children:l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("FBReelsFeedbackBarPlaceholder.react"),{}),children:l.jsx(c("FBReelsFeedbackBar.react"),{feedbackData:(h=J[A])==null?void 0:h.nodeData,isVerticalSwipe:E,onHoverIn:O,onHoverOut:P,onPressIn:Q},g)})})]},g));f++}});return a}return null},[A,L,k,R,E,J,O,P,Q,w,S,x,W.height,T,V.innerHeight,V.innerWidth]);e=p(function(){if(E){var a=!L&&V.innerWidth<=d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD,b=s*2;a?b=d("FBReelsConstants").APP_HEADER_HEIGHT+s:R&&V.innerWidth>d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD&&(b=0);b=l.jsxs("div",{className:"x6s0dn4 x78zum5 x5yr21d xixxii4",style:{alignItems:a?"flex-start":"center",top:b},children:[l.jsx(c("ReelsVideoLoadingView.react"),{reason:"Placeholder"}),l.jsx("div",{className:"xuk3077 x78zum5 x5yr21d x1hq5gj4 xt1id46 x1mh8g0r",style:{alignItems:a?"center":"flex-end"},children:l.jsx(c("FBReelsFeedbackBarPlaceholder.react"),{})})]});return l.jsx("div",{style:{height:"100%",position:"fixed",top:R&&V.innerWidth>d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD?0:d("FBReelsConstants").APP_HEADER_HEIGHT},children:l.jsxs("div",{style:{display:"flex",flexDirection:"column",left:0,position:"relative",right:0,top:"calc("+-100*A+"% + "+(s+(R&&V.innerWidth>d("FBReelsConstants").VIEWER_WIDTH_THRESHOLD?0:d("FBReelsConstants").APP_HEADER_HEIGHT))*A+"px)",transition:"0.5s top"},children:[X,X&&X.length<=A&&b]})})}else{return l.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6",children:[l.jsxs("div",{className:"xjbqb8w x1lq5wgf xgqcy7u x30kzoy x9jhf4c x78zum5 x1q0g3np xod5an3 x14vqqas x6ikm8r x10wlt62 x1n2onr6 x1k90msu x6o7n8i x9lcvmn x1m6m0jg",children:[l.jsx(c("FBReelsMediaBottomSheet.react"),{}),l.jsx(c("FBReelsMediaContentContainer.react"),{loggerRef:S,onPressTryBoost:w,reels:(a=J[A])==null?void 0:a.nodeData,tryBoostURI:x}),T]}),!k&&l.jsx("div",{className:"xuk3077 x78zum5 x5yr21d x1hq5gj4 xt1id46 x1mh8g0r",children:l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("FBReelsFeedbackBarPlaceholder.react"),{}),children:l.jsx(c("FBReelsFeedbackBar.react"),{feedbackData:(b=J[A])==null?void 0:b.nodeData,onHoverIn:O,onHoverOut:P,onPressIn:Q})})})]})}},[A,L,k,R,E,X,J,O,P,Q,w,S,x,T,V.innerWidth]);c("useOnBeforeUnload")(function(){var a;ha(A,c("FBReelsLoggingConstants").CLOSE_REELS_GESTURE.UNKNOWN,[(a=(a=J[A])==null?void 0:(a=a.nodeData)==null?void 0:a.tracking)!=null?a:""],(a=(a=U)!=null?a:ia)!=null?a:"")});var Y=function(a){if(a==null||k)return;window.history.replaceState(window.history.state,"",u!=null?u.getUrlWithPersistentParams(a):a)},Z=m(function(){if(g==null)Y(c("XCometFBReelControllerRouteBuilder").buildURL({}));else{var a;Y((a=J[0])==null?void 0:(a=a.nodeData)==null?void 0:(a=a.short_form_video_context)==null?void 0:a.shareable_url)}},[g,J]);o(function(){if(D)return;if(A===0)Z();else{var a;a=(a=J[A])==null?void 0:(a=a.nodeData)==null?void 0:(a=a.short_form_video_context)==null?void 0:(a=a.if_should_change_url_for_reels)==null?void 0:a.shareable_url;a!=null?Y(a):Z()}},[A,J,D,g,Z]);if(J==null)return null;var $=R?t.fullScreenInPushView:t.fullScreenNotInPushView;f=(f=J[A])==null?void 0:(f=f.nodeData)==null?void 0:(f=f.short_form_video_context)==null?void 0:f.video;$=l.jsx(c("InteractivePluginContextProvider.react"),{videoID:U,children:l.jsxs(d("CometTahoeSidepaneDialogContextProvider.react").CometTahoeSidepaneDialogContextProvider,{children:[l.jsx(c("CometPlaceholder.react"),{fallback:null,children:f!=null&&l.jsx(c("ReelsInteractivePluginManagerDeferred.react"),{video:f})}),l.jsx("div",{className:(j||(j=c("stylex")))($),children:l.jsx(c("CometTheme.react"),{theme:H,xstyle:$,children:l.jsxs(c("CometPageLayoutWithComplementaryContent.react"),{hideContainerBackground:!0,isRightRailFixed:!0,rightRail:L?null:l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("FBReelsFeedbackRightRailGlimmer.react"),{}),children:M?v?l.jsx(d("FBReelsFeedbackRightRailWithCommentPreloading.react").FBReelsFeedbackRightRailWithCommentPreloading,{rightRailQuery:v,selfViewBoost:K}):l.jsx(c("FBReelsFeedbackRightRailGlimmer.react"),{}):l.jsx(ba,{rightRail:(f=J[A])==null?void 0:f.nodeData,selfViewBoost:K})}),children:[l.jsx(c("CometTheme.react"),{style:{minHeight:d("FBReelsConstants").MIN_VIEWER_HEIGHT},theme:H,children:l.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:l.jsx(c("FBReelsNavigationButtons.react"),{isNextButtonHidden:ca,validContentSize:X?X.length:null,children:l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("ReelsVideoLoadingView.react"),{}),children:e})})})}),!k&&l.jsx(aa,{}),L?null:l.jsx("div",{className:"x92rtbv x10l6tqk xomnu4r",children:l.jsx(c("FBReelsResizeIcon.react"),{})})]})})})]})});f=a&&(((v=J[A])==null?void 0:v.rootTracking)||E)?l.jsx(c("CometTrackingCodeProvider.react"),{trackingCode:G,children:l.jsx(c("ReelIFUTrackingContext").Provider,{value:F,children:$})}):$;return l.jsx(c("FBReelsViewerKeyboardInteractionsOverlay.react"),{validContentSize:X?X.length:null,children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MNCommerceShippingDetailsDialogContainer.react",["BanzaiLogger","GeoCoordinates","MNCommerceDialogStateActions","MNCommerceDialogStateStore","MNCommerceLoggingConstants","MNCommerceShipmentActions","MNCommerceShipmentStore","MNCommerceShippingDetailsDialog.react","PureStoreBasedStateMixin","createReactClass_DEPRECATED","immutable","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=c("createReactClass_DEPRECATED")({displayName:"MNCommerceShippingDetailsDialogContainer",mixins:[c("PureStoreBasedStateMixin")(c("MNCommerceShipmentStore"))],statics:{calculateState:function(){var a=c("MNCommerceDialogStateStore").getState(),b=null;a&&(b=a.shipmentID);var e=c("MNCommerceShipmentStore").getShipment(b);e.isLoading()||c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:e.hasError()?"dialog_load_error":"dialog_load_success",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.SHIPMENT,shipment_id:b})});return{shown:!!a,loading:e.isLoading(),shipmentID:b,shipment:e.getValue(),error:e.getError()}}},render:function(){return i.jsx(c("MNCommerceShippingDetailsDialog.react"),{loading:this.state.loading,error:this.state.error,onToggle:this._onToggle,onTryAgain:this._onTryAgainClick,shown:this.state.shown,shipment:this._getParsedShipment(this.state.shipment)})},_getParsedShipment:function(a){if(!a)return{};var b=[],d=a.origin,e=a.events;d&&d.latitude&&(!e||Object.keys(e).length===0)?b=[new(c("GeoCoordinates"))(d.latitude,d.longitude)]:e&&(b=Object.keys(e).map(function(a){a=e[a];if(a.tracking_event_location&&a.tracking_event_location.latitude!=null&&a.tracking_event_location.longitude!=null)return new(c("GeoCoordinates"))(a.tracking_event_location.latitude,a.tracking_event_location.longitude)}));d=Array.isArray(a.destination)?null:a.destination;return{address:d,carrierInfo:a.carrier,changeURL:a.carrier_tracking_url,delivered:a.delivered,deliverDate:a.estimated_delivery_display_time,shipDate:a.display_ship_date,destination:a.destination&&a.destination.latitude?new(c("GeoCoordinates"))(a.destination.latitude,a.destination.longitude):null,items:a.items,legalText:a.legal_text,logo:a.carrier_logo?{height:a.carrier_logo.height,width:a.carrier_logo.width,src:a.carrier_logo.url}:null,name:a.recipient_name?a.recipient_name:null,orderDetailsURL:a.order_details_url,progress:a.events,shippingCheckPoints:c("immutable").List(b),trackingNumber:a.tracking_number}},_onToggle:function(a){a||(c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_closed",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.SHIPMENT,shipment_id:this.state.shipment.shipment_id})}),d("MNCommerceDialogStateActions").hideDialog())},_onTryAgainClick:function(){d("MNCommerceShipmentActions").shipmentReload(this.state.shipmentID)}});b=a;g["default"]=b}),98);
-----
LWICometAutomatedAdsRecommendationSection.react",["fbt","ix","AdproObjectiveType","AdsLWIGoal","CometRelay","LWIBoostedComponentFalcoEvenUtils","LWICometAutomatedAdsRecommendationSection_page.graphql","LWICometCTAWhatsAppSMBEnforcingErrorWrapper.react","LWICometLoggerUtils","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometPixelIDTypes","LWICometProductUtils","LWICometQuestionnaireUtils","LWICometRecommendationOption.react","LWICometSection.react","LWICometWhatsAppAccountExperiments","LWICometWhatsAppActiveStatusNotice.react","LWICometWhatsAppAdvertisingPolicyNotice.react","LWICometWhatsAppSoftMatchingDeprecationExplanation.react","LWIOmniButton.react","QE2Logger","castToEnum","compactArray","fbicon","getJSEnumSafe","react","requireDeferred","useLWICometCurrentSpec","useLWICometPixelMap","useLWICometQuestionnaireContextDispatcher","useLWICometUpdateAdgroupFromRecommendation","useLWICometWhatsAppSMBGetStarted","useLWILoggerContext","useLWINoticesContext","useLWIQuestionnaireContext","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useMemo,p=e.useState,q=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometAutomatedAdsRecommendationSection.react"),r=c("requireDeferred")("logBoostedComponentCometFalcoEvent").__setRef("LWICometAutomatedAdsRecommendationSection.react"),s=3;function t(a,b,c,d){q.onReady(function(e){return e.logWithLoggerAndOptionalSpecContext(b,a,{ending_value:d,event:"objective_picked",starting_value:c})})}function a(a){var e=a.pageName,f=a.queryRef,g=a.adAccountID,k=a.audienceID,q=a.budgetType,u=a.creativeSpec,v=a.currency,w=a.defaultBudgetInLocal,x=a.defaultDurationInDays,y=a.goal,z=a.legacyAccountID,A=a.objective,B=a.selectedPixelID,C=a.targetingSpec;c("vulture")("aofv4yl0y2o");var D=c("useLWICometCurrentSpec")(),E=c("useLWILoggerContext")();a=c("useLWIQuestionnaireContext")();var F=a.hasRecommendation,G=a.recommendationList,H=a.selectedRecommendationIndex,I=c("useLWICometPixelMap")(g,"purchase",A),J=(a=B)!=null?a:Object.keys(I).length>0?d("LWICometPixelIDTypes").assertStringToPixelID(Object.keys(I)[0]):null,K=c("useLWICometQuestionnaireContextDispatcher")(),L=d("LWICometQuestionnaireUtils").hasMultiMessageRecommendation(G),M=G.map(function(a){return a.primary.goal}).indexOf("GET_CATALOG_SALES"),N=o(function(){return M!==-1&&(J==null||J!=null&&I[J]!=null&&I[J].status==="INACTIVE")?[].concat([].concat(G).splice(0,M),[].concat(G).splice(M+1),[G[M]]):[].concat(G)},[M,J,I,G]);B=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometAutomatedAdsRecommendationSection_page.graphql"),f);n(function(){L&&d("QE2Logger").logExposureForUser("ads_lwi_aa_ctwa_bundle_univ")},[L]);a=p(!1);var O=a[0],P=a[1],Q=N.length>s,R=o(function(){return Q&&O===!1?N.slice(0,s):N},[N,Q,O]);f=c("useLWILoggerContext")();var aa=f.entryPoint,ba=f.flow,ca=f.flowID,S=f.pageID,da=f.product,T=f.targetID;n(function(){var a,b=(a=c("getJSEnumSafe")(c("AdproObjectiveType"),A))!=null?a:0;r.onReady(function(a){a.logBoostedComponentCometFalcoEvent({ad_account_id:z,ads_lwi_goal:c("castToEnum")(y,c("AdsLWIGoal"),null),budget_type:d("LWICometLoggerUtils").budgetTypeToAdmanagerCampaignBudgetType(q),context:"ad",creative_spec:JSON.stringify(u),currency:d("LWICometLoggerUtils").currencyToAdproCurrencyType(v),default_audience_id:k,default_budget_in_local:d("LWIBoostedComponentFalcoEvenUtils").safeNumConversionLWIFalco(w),default_call_to_action:R.length>0?R[0].primary.cta_type:null,default_duration_in_days:d("LWIBoostedComponentFalcoEvenUtils").safeNumConversionLWIFalco(x),default_targeting_spec:JSON.stringify(C),entry_point:aa,event:"receive_default_data",flow:ba,flow_id:ca,objective_override:b,page_id:S,post_id:T,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(da),side:"client_side"})})},[]);f=((a=R[H])==null?void 0:a.primary.cta_type)==="WHATSAPP_MESSAGE";a={ad_account_id:z,ads_lwi_goal:c("castToEnum")(y,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),A),page_id:S,post_id:T,product_flow:"automated_ads",source_app_id:d("LWICometLoggingConstants").APP_ID};var U=B==null?void 0:B.connected_whatsapp_number,ea=B==null?void 0:B.connected_whatsapp_number_type,V=B==null?void 0:B.whatsapp_initial_country_code,W=c("useLWINoticesContext")(),X=W.removeGetResponseNotice;W=m(function(){d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.forEach(function(a){return X("CALL_TO_ACTION",a)})},[X]);c("useLWICometWhatsAppSMBGetStarted")({countryCode:V,ctwaLoggerContextData:a,onUpsellSuccess:W,whatsAppDisplayNumber:U,whatsAppNumber:U,whatsAppNumberType:ea});var Y=c("useLWICometUpdateAdgroupFromRecommendation")(),Z=m(function(a){K({selectedRecommendationIndex:a,type:"lwi_questionnaire_reducer.set_selected_recommendation_index"});a=R[a];var b=a.primary.cta_type,c=a.primary.objective;b!=null&&c!=null&&Y(b,c,a.primary.goal,"user_action")},[K,R,Y]);V=m(function(){P(!0)},[]);a=m(function(){H>=s&&Z(0),P(!1)},[Z,H]);var $=d("LWICometQuestionnaireUtils").useLogQuestionnaire({endingValue:JSON.stringify(N[H]),lwiEvent:"goal_picked",recommendationList:JSON.stringify(N),startingValue:JSON.stringify(N[0])});n(function(){t(D,E,JSON.stringify(N[0]),JSON.stringify(N[H])),$()},[g,N,$,E,H,D]);return l.jsx(c("LWICometSection.react"),{fallback:null,header:{title:h._("Choose your goal")},children:l.jsxs(l.Fragment,{children:[c("compactArray")(R.map(function(a,b){return l.jsx(d("LWICometRecommendationOption.react").LWICometRecommendationOption,{bundle:a,isSelected:H===b,onUpdateSelectedOption:function(){Z(b)},pageName:e,showRecommendationBadge:F&&b===0},b)})),Q&&O===!1&&l.jsx("div",{className:"xktsk01 x1d52u69 x1xmf6yo",children:l.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("492450"),16),label:h._("See more"),onPress:V,testid:void 0,type:"secondary"})}),Q&&O===!0&&l.jsx("div",{className:"xktsk01 x1d52u69 x1xmf6yo",children:l.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("505564"),16),label:h._("See less"),onPress:a,testid:void 0,type:"secondary"})}),f&&l.jsxs(l.Fragment,{children:[d("LWICometWhatsAppAccountExperiments").isLWIConsumerEnforcingLaunched()&&l.jsx(c("LWICometCTAWhatsAppSMBEnforcingErrorWrapper.react"),{paddingHorizontal:16,queryRef:B}),l.jsx("div",{className:"x1krglpp x1d52u69 xw7yly9",children:l.jsx(c("LWICometWhatsAppSoftMatchingDeprecationExplanation.react"),{isOnlyWhatsAppEnabled:!1})}),l.jsx("div",{className:"xpdqn1h x1d52u69 xw7yly9",children:l.jsx(c("LWICometWhatsAppAdvertisingPolicyNotice.react"),{})}),l.jsx("div",{className:"x1d52u69 xktsk01",children:l.jsx(c("LWICometWhatsAppActiveStatusNotice.react"),{})})]})]})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,audienceID:a.audienceData.audienceID,budgetType:a.budgetData.budgetType,creativeSpec:a.adgroupSpecs,currency:a.adAccountData.currency,defaultBudgetInLocal:a.defaultBudgetInLocal,defaultDurationInDays:a.defaultDurationInDays,goal:a.goal,legacyAccountID:a.adAccountData.legacyAccountID,objective:a.objective,selectedPixelID:a.pixelID,targetingSpec:a.audienceData.targetSpec}});g["default"]=e}),226);
-----
LWICometAutomatedAdsNewMediaButtonForWhatsAppCatalog.react",["fbt","ix","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometPressable.react","CometRelay","FDSTintedIcon.react","LWICometAdgroupID","LWICometAdgroupUtils","LWICometAutomatedAdsNewMediaButton.react","LWICometAutomatedAdsNewMediaButtonForWhatsAppCatalog_page.graphql","LWICometLoggingConstants","LWICometTemplateDataUtils","LWICometWhatsAppCatalogItemsDialog.entrypoint","LWIOmniText.react","fbicon","lwiCometAutomatedAdsReducer","react","useCometEntryPointDialog","useLWICometAutomatedAdsMediaContext","useLWILoggerContext","useLWIReducers","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useMemo,n=e.useState,o={container:{alignItems:"x6s0dn4",borderTop:"x1n2xptk",borderEnd:"xkbpzyx",borderBottom:"xdppsyt",borderStart:"x1rr5fae",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x78zum5",height:"x18dl8mb",justifyContent:"xl56j7k",position:"x1n2onr6",width:"xrostsh",$$css:!0},smallContainer:{height:"xc9qbxq",width:"x14qfxbe",$$css:!0}},p=6;function a(a){var e=a.isSingleMode,f=a.isSmallButton,g=a.queryRef,k=a.adgroupSpecs;c("vulture")("5cGyhPEY7Ga");a=c("useLWILoggerContext")();var q=a.pageID,r=c("useLWIReducers")([c("lwiCometAutomatedAdsReducer")]),s=c("useLWICometAutomatedAdsMediaContext")().adgroupSpec;a=d("LWICometTemplateDataUtils").getNonTemplateAdgroupsKeys(k);var t=a.map(function(a){return k[a]});a=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometAutomatedAdsNewMediaButtonForWhatsAppCatalog_page.graphql"),g);g=a==null?void 0:a.whatsapp_catalog_products;var u=g==null?[]:g.map(function(a){var b,c;b=a==null?void 0:(b=a.image)==null?void 0:(b=b.image)==null?void 0:b.uri;return a.id==null||a.name==null||b==null?null:{formattedPrice:((c=a.price)==null?void 0:c.amount)!=="0.00"?(c=a.price)==null?void 0:c.formatted_amount:"",id:a.id,image:b,name:a.name}}).filter(Boolean);a=n(new Set());var v=a[0],w=a[1];g=c("useCometEntryPointDialog")(c("LWICometWhatsAppCatalogItemsDialog.entrypoint"),{pageID:q});var x=g[0],y=m(function(){return{ad_account_id:null,ads_lwi_goal:"WHATSAPP_MESSAGES",objective:39,page_id:q,post_id:null,product_flow:"automated_ads",source_app_id:String(d("LWICometLoggingConstants").APP_ID)}},[q]),z=function(a){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},y,{event:"whatsapp_catalog_products_selected",event_info:Array.from(a).join(",")}));w(a);var b=e?babelHelpers["extends"]({},k):{},f=u.filter(function(b){return a.has(b.id)});f.forEach(function(a,c){var f={};e?f=t[t.length-1]:f=t.length===0?s:c
MNCommerceUnlinkDialogContainer.react",["BanzaiLogger","MNCommerceDialogStateActions","MNCommerceDialogStateStore","MNCommerceLoggingConstants","MNCommerceUnlinkDialog.react","MNCommerceUnlinkErrorDialog.react","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
StoriesSingleBucketFeedUnitMediaContainer.react",["CometPressable.react","CometRelay","StoriesEnums","StoriesGradientBackground.react","StoriesLoggingConstants","StoriesMuteButton.react","StoriesPauseButton.react","StoriesPauseReasons","StoriesProgressBar.react","StoriesSingleBucketFeedUnitContext","StoriesSingleBucketFeedUnitContuxContext","StoriesSingleBucketFeedUnitInteractionHandlerContext","StoriesSingleBucketFeedUnitMediaContainer_media.graphql","StoriesSingleBucketFeedUnitNavigationButtons.react","StoriesSingleBucketFeedUnitStoryCardImpressionAndTimespentLogger.react","StoriesSuspenseCardMedia.react","StoriesSuspensePauseContext","StoriesTrayLoggerSessionContext","StoriesViewerMenu.react","XCometStoriesControllerRouteBuilder","deferredLoadComponent","react","requireDeferred","useStoriesDominantColorPicker"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=e.useMemo,n=e.useRef,o=e.useState,p=null;9/16;var q=c("deferredLoadComponent")(c("requireDeferred")("StoriesSingleBucketFeedUnitWatchAgainOverlay.react").__setRef("StoriesSingleBucketFeedUnitMediaContainer.react")),r={media:{height:"x5yr21d",position:"x1n2onr6",width:"xvue9z","@media (min-height: 700px) and (max-height: 789px)_width":"x1w0m72n","@media (min-height: 790px)_width":"xrzokey",$$css:!0}};function a(a){var e,f,g=a.bucketId,i=a.isInContentPreviewMode;i=i===void 0?!1:i;var s=a.media,t=a.onSeen;a=a.shouldDisableUrl;a=a===void 0?!1:a;s=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSingleBucketFeedUnitMediaContainer_media.graphql"),s);var u=o(null),v=u[0];u=u[1];var w=o(!1),x=w[0],y=w[1];w=l(c("StoriesSuspensePauseContext"));var z=w.isPaused,A=w.setPause;w=l(c("StoriesSingleBucketFeedUnitContuxContext"));var B=w.cardCount,C=w.cardIndex,D=w.cardIndexChanged,E=w.isLastCard,F=w.performCardNavigation;w=l(c("StoriesSingleBucketFeedUnitInteractionHandlerContext"));var G=w.onUnitClick;w=w.shouldShowNux;var H=l(c("StoriesTrayLoggerSessionContext"));H=H.trackingStrings;H=H!=null&&g!=null?H.get(g):"";var I=n(function(){}),J=m(function(){return{setWatchAgainHandler:function(a){I.current=a}}},[]),K=k(function(){E?(y(!0),A(!0,d("StoriesPauseReasons").WATCH_AGAIN_OVERLAY)):F(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD)},[E,F,A]),L=k(function(){y(!1),D(0),A(!1,d("StoriesPauseReasons").CARD_CHANGE),I.current()},[D,A]);e=c("useStoriesDominantColorPicker")({imageURL:s==null?void 0:(e=s.attachments)==null?void 0:(e=e[0])==null?void 0:(e=e.media)==null?void 0:(e=e.attachment_image)==null?void 0:e.uri});var M=e.bottomColor;e=e.topColor;f=o((f=p)!=null?f:!0);var N=f[0],O=f[1];f=function(a){O(a),p=a};if((s==null?void 0:s.id)==null||g==null)return null;g=c("XCometStoriesControllerRouteBuilder").buildURL({bucket_id:g,card_id:s.id,source:c("StoriesLoggingConstants").ACTION_SOURCE.FROM_FEED_INLINE_VIEWER,view_single:!0});H={passthroughProps:{trackingString:H},prefetchQueriesOnHover:!0,url:w||a?void 0:g};w=i?"-35px":"0px";return j.jsx(c("StoriesSingleBucketFeedUnitContext").Provider,{value:J,children:j.jsxs("div",{className:"xal61yo x78zum5 x1q0g3np x1egiwwb xl56j7k x6ikm8r x10wlt62 x1n2onr6 xh8yej3 x1db0b2 x3pf6vw",children:[j.jsx("div",{className:"x5yr21d x1us6l5c x10l6tqk xh8yej3",children:j.jsx(c("StoriesGradientBackground.react"),{direction:d("StoriesEnums").GRADIENT_DIRECTION.TOP_BOTTOM,from:e,to:M})}),x&&j.jsx(q,{onPress:L}),j.jsx(c("StoriesSingleBucketFeedUnitNavigationButtons.react"),{children:j.jsx(c("StoriesSingleBucketFeedUnitStoryCardImpressionAndTimespentLogger.react"),{cardID:s==null?void 0:s.id,children:j.jsx("div",{style:{height:"100%",marginLeft:w,marginRight:w},children:j.jsxs(c("CometPressable.react"),{linkProps:H,onPress:G,overlayDisabled:!0,xstyle:r.media,children:[j.jsxs("div",{className:"xsxvzsj x1ymw6g x10l6tqk x17qophe xjl7whj x1vjfegm",children:[j.jsx(c("StoriesProgressBar.react"),{cardCount:B,cardTimerSource:v,currentCardIndex:C,isPaused:z,onDone:K}),j.jsxs(c("StoriesViewerMenu.react"),{children:[j.jsx(c("StoriesPauseButton.react"),{isPaused:z,setPause:A}),j.jsx(c("StoriesMuteButton.react"),{isMuted:N,onMuteChanged:f})]})]}),j.jsx(c("StoriesSuspenseCardMedia.react"),{isMuted:N,media:s,onSeen:t,onTimerSourceUpdate:u})]})})},s==null?void 0:s.id)})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
usePolarisSponsoredStoryMediaImpressionLogger",["InstagramAdImpressionFalcoEvent","InstagramAdSubImpressionFalcoEvent","InstagramODS","PolarisMonitorErrors","PolarisNavChain","PolarisSponsoredStoryLoggingConstants","cometGHLContentDisplayCheck","cr:6627","err","qex","react","setTimeout","usePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).c,j=c("qex")._("1229"),k=new Map(),l=new Set();function a(a){var e=i(2),f;e[0]!==a?(f=function(e){var f=e.entry;e=a();var g=e.adId,h=e.adInsertedPosition,i=e.containerModule,m=e.currentReelItemIndex,n=e.followStatus,o=e.gapToLastAd,p=e.mediaType,q=e.mpk,r=e.postedAt,s=e.postId,t=e.postOwnerId,u=e.reelId,v=e.reelSize,w=e.reelType,x=e.reelViewerPosition,y=e.sessionReelCounter,z=e.trackingToken,A=e.traySession,B=e.viewerId;e=e.viewerSession;if(g==null||z==null||B==null){var C=c("err")("Missing critical logging field for InstagramAdImpressionFalcoEvent for story media.");d("PolarisMonitorErrors").logError(C);return}var D=k.get(s),E=Date.now(),F={a_pk:t,ad_id:g,ad_inserted_position:h,follow_status:n,gap_to_last_ad:String(o),m_pk:q,m_t:p,m_ts:r,nav_chain:(C=c("PolarisNavChain").getInstance())==null?void 0:C.getNavChainForSend(),pigeon_reserved_keyword_module:i,pk:B,post_id:s,reel_id:u,reel_position:m.toString(),reel_size:v,reel_type:w,reel_viewer_position:x,session_reel_counter:y,source_of_action:i,tracking_token:z,tray_session_id:A,viewer_session_id:e};if(l.has(s))return;l.add(s);c("setTimeout")(function(){var a=c("cometGHLContentDisplayCheck")(f.target);D==null?a?(c("InstagramODS").incr("web.ads.story.media.impression"),c("InstagramAdImpressionFalcoEvent").logImmediately(function(){return F}),j===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:z,container_module:i,event:"impression_client"}}),k.set(s,E)):c("InstagramODS").incr("web.ads.story.media.impression.hidden"):E-D>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(a?(c("InstagramODS").incr("web.ads.story.media.sub_impression"),c("InstagramAdSubImpressionFalcoEvent").log(function(){return F}),j===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:z,container_module:i,event:"sub_impression_client"}}),k.set(s,E)):c("InstagramODS").incr("web.ads.story.media.sub_impression.hidden"));l["delete"](s)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)},e[0]=a,e[1]=f):f=e[1];return c("usePartialViewImpression")({onImpressionStart:f})}g["default"]=a}),98);
-----
MNCommerceShippingMercuryShareAttachmentReact.bs",["BanzaiLogger","MNCommerceBubbleType","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommerceShippingAttachmentUtils.bs","MNCommerceShippingDetailsDialogContainer.react","MNCommerceShippingMercuryAttachmentReact.bs","bs_array","bs_caml_option","bs_js_null_undefined","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){var b=a.attachment,e=a.location;a=a.maxWidth;var f=function(a){if(b!==void 0){a=c("bs_caml_option").valFromOption(b).target;a=a==null?null:a.id}else a=null;c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{debug_data:JSON.stringify({dialog_surface:c("bs_js_null_undefined").fromOption(d("MNCommerceLoggingConstants").DIALOG_SURFACE.SHIPMENT),shipment_id:a}),event:"dialog_opened"});d("MNCommerceDialogStateActions").showDialog(c("MNCommerceShippingDetailsDialogContainer.react"),{shipmentID:a})};if(b===void 0)return null;var g=c("bs_caml_option").valFromOption(b).target;if(g==null)return null;var h=d("MNCommerceShippingAttachmentUtils.bs").getCommerceLocation(g.commerce_destination),j=c("MNCommerceBubbleType")[g.bubble_type];j=j!==void 0?j===9:!1;var k=c("bs_array").fold_left(function(a,b){if(b.shipment_tracking_event_type==="DELIVERED")return!0;else return a},!1,g.shipment_tracking_events.nodes),l=g.estimated_delivery_time_for_display.length!==0?g.estimated_delivery_time_for_display:void 0,m=g.retail_carrier.logo;return i.jsx(d("MNCommerceShippingMercuryAttachmentReact.bs").make,{carrierInfo:g.retail_carrier.name,carrierTrackingURL:c("bs_caml_option").nullable_to_opt(g.retail_carrier.carrier_tracking_url),className:void 0,deliveryDate:l,deliveryPeriod:void 0,destination:{city:h.city,latitude:h.latitude,longitude:h.longitude,state:h.state,street_1:h.street_1},hasUnsupportedCarrier:j,items:d("MNCommerceShippingAttachmentUtils.bs").getItems(g.retail_shipment_items.nodes),location:e,logo:m!=null?{height:m.height,src:m.uri,width:m.width}:void 0,shippingDate:g.shipdate_for_display,type_:void 0,width:a,onAttachmentClick:j?void 0:f,shippingCheckPoints:k?[]:d("MNCommerceShippingAttachmentUtils.bs").getShippingCheckPoints(g),delivered:k})}j.displayName=j.name+" [from "+f.id+"]";function a(a){var b=a.location,d;if(b==null)d=void 0;else switch(b){case"chat":d={_0:void 0,TAG:0};break;case"chat_preview":d={_0:void 0,TAG:1};break;case"messenger":d={_0:void 0,TAG:2};break;case"pages_inbox":d={_0:void 0,TAG:3};break;default:d=void 0}return j({attachment:c("bs_caml_option").nullable_to_opt(a.attachment),location:d,maxWidth:a.maxWidth})}a.displayName=a.name+" [from "+f.id+"]";b=j;g.jsComponent=a;g.make=b}),98);
-----
BDClientConfig",["BDLoggingConstants","BDOperationLogHelper","BDSignalWrapper"],(function(a,b,c,d,e,f,g){"use strict";var h="BDClientConfig",i=function(){function a(){this.staticSignalBufferSize=1,this.dynamicSignalBufferSize=1,this.biometricSignalBufferSize=1,this.staticSignals=[],this.dynamicSignals=[],this.biometricSignals=[],this.biometricSignalsMap=new Map(),this.heartbeatSignal=new(c("BDSignalWrapper"))([],38001),this.bufferSizeBySignalIdMap={},this.periodicCollectionIntervalMs=Number.MAX_SAFE_INTEGER,this.signalConfigGenerationTimeStampMs=0,this.suspiciousTiersFlushDurationMs=Number.MAX_SAFE_INTEGER,this.allTiersFlushDurationMs=Number.MAX_SAFE_INTEGER,this.heartbeatIntervalMs=-1,this.parsingDone=!1,this.sid=-1,this.hbVersion="",this.bufferSizeBySignalIdMap[38001]=1}var b=a.prototype;b.setStaticSignalBufferSize=function(a){a>0?this.staticSignalBufferSize=a:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"s"});return this};b.getStaticSignalBufferSize=function(){return this.staticSignalBufferSize};b.setDynamicSignalBufferSize=function(a){a>1?this.dynamicSignalBufferSize=a:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"d"});return this};b.getDynamicSignalBufferSize=function(){return this.dynamicSignalBufferSize};b.setBiometricSignalBufferSize=function(a){a>1?this.biometricSignalBufferSize=a:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"b"});return this};b.setSID=function(a){this.sid=a;return this};b.setHeartbeatVersion=function(a){this.hbVersion=a;return this};b.getHeartbeatVersion=function(){return this.hbVersion};b.getBiometricSignalBufferSize=function(){return this.biometricSignalBufferSize};b.setConfigGenerationTimeStamp=function(a){this.signalConfigGenerationTimeStampMs=a;return this};b.getConfigGenerationTimeStamp=function(){return this.signalConfigGenerationTimeStampMs};b.setHeartbeatIntervalMinutes=function(a){this.heartbeatIntervalMs=a*60*1e3;return this};b.getHeartbeatIntervalMs=function(){return this.heartbeatIntervalMs};b.setSuspiciousTiersFlushDurationMinutes=function(a){a>0?this.suspiciousTiersFlushDurationMs=a*60*1e3:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"fds"});return this};b.getSuspiciousTiersFlushDurationMs=function(){return this.suspiciousTiersFlushDurationMs};b.setAllTiersFlushDurationMinutes=function(a){a>0?this.allTiersFlushDurationMs=a*60*1e3:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"fda"});return this};b.getAllTiersFlushDurationMs=function(){return this.allTiersFlushDurationMs};b.addMultipleSignalsToClientConfig=function(a){var b=this;a.forEach(function(a){return b.addSignalToClientConfig(a)});return this};b.addSignalToClientConfig=function(a){var b=a.getSignalFlags(),d=a.getSignalId();if(d===38e3)return this;var e=new(c("BDSignalWrapper"))(b,d);if(d===38001){this.heartbeatSignal=e;return this}!b.includes(2)?this.staticSignals.push(e):b.includes(4)?this.biometricSignals.push(e):this.dynamicSignals.push(e);a.getBufferSize()>0&&(this.bufferSizeBySignalIdMap[a.getSignalId()]=a.getBufferSize());return this};b.setPeriodicCollectionIntervalSeconds=function(a){a>0?this.periodicCollectionIntervalMs=a*1e3:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"pi"});return this};b.getPeriodicCollectionIntervalMs=function(){return this.periodicCollectionIntervalMs};b.getDynamicSignals=function(){return this.dynamicSignals};b.getStaticSignals=function(){return this.staticSignals};b.getBiometricSignals=function(){return this.biometricSignals};b.getBiometricSignalsMap=function(){this.biometricSignalsMap.size===0&&this.biometricSignals.length>0&&(this.biometricSignalsMap=this.biometricSignals.reduce(function(a,b){return a.set(b.signalType,b)},new Map()));return this.biometricSignalsMap};b.getHeartbeatSignal=function(){return this.heartbeatSignal};b.getBufferSizeBySignalId=function(a){return this.bufferSizeBySignalIdMap[a]};b.setParsingDone=function(a){this.parsingDone=a};b.isParsingDone=function(){return this.parsingDone};return a}(),j=null;a={get:function(){j==null&&(j=new i());return j}};b=a;g["default"]=b}),98);
-----
BDServerConfig",["BDClientConfig","BDLoggingConstants","BDOperationLogHelper","BDServerSignalConfig"],(function(a,b,c,d,e,f,g){"use strict";var h="BDServerConfig";function a(a){var b=[];try{var e=JSON.parse(a.sc),f=new Map(e.c);f.forEach(function(a,d){return b.push(new(c("BDServerSignalConfig"))(d,a))});if(f.size===0){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.EMPTY_SIGNAL_CONFIG);return}f=c("BDClientConfig").get();f.setPeriodicCollectionIntervalSeconds(a.i).addMultipleSignalsToClientConfig(b).setConfigGenerationTimeStamp(e.t).setAllTiersFlushDurationMinutes(a.fda).setSuspiciousTiersFlushDurationMinutes(a.fds).setHeartbeatIntervalMinutes(a.hbi).setStaticSignalBufferSize(a.sbs).setDynamicSignalBufferSize(a.dbs).setBiometricSignalBufferSize(a.bbs).setSID(a.sid).setHeartbeatVersion(a.hbv).setParsingDone(!0)}catch(a){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.PARSE_CONFIG_ERROR,{e:a})}}g.parseConfig=a}),98);
-----
BDSignalBuffer",["BDClientConfig","BDCollectionTypeEnum","BDLoggingConstants","BDOperationLogHelper","BDSignalBufferData"],(function(a,b,c,d,e,f,g){"use strict";var h="BDSignalBuffer";function a(a,b,d){if(a in c("BDSignalBufferData"))return;var e=1;b!==void 0&&(e=b);c("BDSignalBufferData")[a]={values:[],max_buffer_size:e,signal_flags:(b=d)!=null?b:[]}}function i(a){if(a in c("BDSignalBufferData"))c("BDSignalBufferData")[a].values=[];else throw new Error("Tried to clear signal buffer that was not intialized:")}function b(a,b){if(a in c("BDSignalBufferData")){var e=c("BDSignalBufferData")[a],f=e.max_buffer_size;e.values.length>=f&&e.values.shift();e.values.push(b);d("BDOperationLogHelper").logInfo(h,d("BDLoggingConstants").OPERATIONS.APPEND_SIGNAL,{id:a.toString()})}else{d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.APPEND_SIGNAL_FAIL,{id:a.toString()});throw new Error("Tried to append signal that was not intialized:")}}function e(){var a=c("BDClientConfig").get();a=a.getBiometricSignals();a.forEach(function(a){a.signalType in c("BDSignalBufferData")&&i(a.signalType)})}function f(a){var b;a=c("BDSignalBufferData")[a];b=a==null?void 0:(b=a.values)==null?void 0:b.length;return b!=null&&b>0?a.values[b-1]:{valueOrError:void 0}}function j(a){return c("BDSignalBufferData")[a].values}function k(a){var b={};for(var d=0;d
BDLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ERROR:"error",WARNING:"warning",INFO:"info"};b={KEY_NOT_FOUND:"key_not_found",APPEND_SIGNAL:"bd_append_signal",APPEND_SIGNAL_FAIL:"bd_append_signal_fail",HB_COLLECTED:"append_hb",HB_COLLECTION_FAILED:"hb_collection_failed",BD_EXCEPTION:"bd_exception",SIGNAL_NOT_IMPLEMENTED:"signal_not_implemented",SIGNAL_VALUE_NULL:"signal_value_null",EMPTY_SIGNAL_CONFIG:"empty_signal_config",INVALID_BUFFER_SIZE:"invalid_buffer_size",INVALID_DURATION:"invalid_duration",SIGNAL_FLAGS_MISSING:"signal_flags_missing",DYNAMIC_SIGNAL_COLLECTION_STARTED:"dynamic_signal_collection_started",BIOMETRIC_SIGNAL_COLLECTION_STARTED:"biometric_signal_collection_started",INVALID_GUID:"invalid_guid",INVALID_LENGTH:"invalid_length",GET_LOCAL_STORAGE_ERROR:"get_local_storage_error",WEB_STORAGE:"web_storage",PARSE_CONFIG_ERROR:"parse_config_error",HB_START_FAILURE:"hb_start_failure",HB_ALREADY_RUNNING:"hb_already_running",TRY_RESTARTING_HB:"try_restarting_hb",BANZAI_LOG_ERROR:"banzai_log_error"};c="JS";f.LEVELS=a;f.OPERATIONS=b;f.COMPONENT_NAME=c}),66);
-----
SignalValueTypeDef",["BDLoggingConstants","BDOperationLogHelper","SignalErrorValueTypeDef"],(function(a,b,c,d,e,f,g){"use strict";var h="SignalValueTypeDef",i="t",j="ctx",k="v",l="e",m={NUMBER:"NUMBER",STRING:"STRING",BOOLEAN:"BOOLEAN",CUSTOM_OBJECT:"CUSTOM_OBJECT",INT_ARRAY:"INT_ARRAY",TOUCH:"TOUCH",MAP:"MAP",LIST:"LIST",SENSOR:"SENSOR",ERROR:"ERROR"};a=function(){function a(a,b,c,d,e){this.$1=a,this.$2=b,this.$3=c,this.$4=d,this.$5=e!=null?e:0}var b=a.prototype;b.getTimeStampMS=function(){return this.$1};b.getSignalContext=function(){return this.$2};b.getSignalValue=function(){return this.$3};b.getSignalValueType=function(){return this.$4};b.isEqual=function(a,b){if(a==null){d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.SIGNAL_VALUE_NULL);return!1}if(this.getSignalValueType()!==a.getSignalValueType())return!1;if(this.getSignalValueType()===m.ERROR&&a.getSignalValueType()===m.ERROR)return this.equalValue(a);var c=!1;b.has(128)&&(c=this.equalValue(a));b.has(256)&&(c=c&&this.getSignalContext()!=null&&a.getSignalContext()!=null&&this.getSignalContext().getSignalValueContextName()===a.getSignalContext().getSignalValueContextName());b.has(512)&&(c=c&&Math.abs(this.getTimeStampMS()-a.getTimeStampMS())<=this.$5);return c};b.equalValue=function(a){if(this.isPrimitiveType())return this.getSignalValue()===a.getSignalValue();throw new Error("Must implement in the subclasses")};b.toJSON=function(a){var b={};a&&(b[i]=this.$1/1e3,this.$2!=null&&(b[j]=this.$2));this.$3==null?b[l]=new(d("SignalErrorValueTypeDef").SignalErrorValueTypeDef)(2):this.addValueOrErrorToJSON(b);return b};b.addValueOrErrorToJSON=function(a){if(this.isPrimitiveType())a[k]=this.$3;else throw new Error("Must implement in the subclasses")};b.isPrimitiveType=function(){switch(typeof this.$3){case"number":case"boolean":case"string":return!0;default:return!1}};return a}();g.BD_VALUE=k;g.BD_ERROR=l;g.VALUE_TYPES=m;g.SignalValueTypeDef=a}),98);
-----
BDOperationLogHelper",["BDLoggingConstants","BDOperationTypedLogger","Random"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,c,e){h(a,d("BDLoggingConstants").LEVELS.INFO,b,c,e)}function b(a,b,c,e){h(a,d("BDLoggingConstants").LEVELS.WARNING,b,c,e)}function e(a,b,c,e){h(a,d("BDLoggingConstants").LEVELS.ERROR,b,c,e)}function h(a,b,e,f,g){f===void 0&&(f={});if(d("Random").coinflip(i(e))){if(f===null)throw new Error("opeartion info null");f.source=a;new(c("BDOperationTypedLogger"))().setLevel(b).setDurationUs(g).setOperation(e).setComponent(d("BDLoggingConstants").COMPONENT_NAME).setOperationInfo(f).log()}}function i(a){var b=d("BDLoggingConstants").OPERATIONS;switch(a){case b.APPEND_SIGNAL:case b.HB_COLLECTED:case b.GET_LOCAL_STORAGE_ERROR:case b.WEB_STORAGE:case b.SIGNAL_NOT_IMPLEMENTED:case b.BIOMETRIC_SIGNAL_COLLECTION_STARTED:return 1e3;default:return 1}}g.logInfo=a;g.logWarning=b;g.logError=e;g.log=h;g.getFlipSamplingByOperation=i}),98);
-----
BDServerSignalConfig",["BDLoggingConstants","BDOperationLogHelper","BotDetection_SignalFlags"],(function(a,b,c,d,e,f,g){"use strict";var h="BDServerSignalConfig";a=function(){function a(a,b,c){this.parsedSignalFlags=[],this.signalId=a,this.signalFlags=b,this.bufferSize=c}var b=a.prototype;b.getSignalId=function(){return this.signalId};b.getSignalFlags=function(){var a=this;if(this.parsedSignalFlags.length===0){var b=Object.keys(c("BotDetection_SignalFlags"));b.forEach(function(b){(c("BotDetection_SignalFlags")[b]&a.signalFlags)===c("BotDetection_SignalFlags")[b]&&a.parsedSignalFlags.push(c("BotDetection_SignalFlags")[b])})}this.parsedSignalFlags.length===0&&d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.SIGNAL_FLAGS_MISSING,{id:this.signalId.toString(),flags:this.signalFlags.toString()});return this.parsedSignalFlags};b.getBufferSize=function(){return this.bufferSize!=null?this.bufferSize:0};return a}();g["default"]=a}),98);
-----
SignalCollectionManager",["BDBiometricSignalCollectorBase","BDClientConfig","BDLoggingConstants","BDOperationLogHelper","BDSignalBuffer","Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i="SignalCollectionManager",j=function(){function a(){var a=this;this.$1=!1;this.$6=function(b){if(b instanceof CustomEvent&&b.detail!=null&&b.detail.data!=null){var d=c("BDClientConfig").get().getBiometricSignalsMap().get(b.detail.signalId);d!=null&&a.$4(b.detail.data,d)}}}var e=a.prototype;e.collectSignals=function(a){var c=this,d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:d=[];a.forEach(function(a){a.signalFlags.includes(4)?c.$2(a):d.push(c.$3(a))});e.next=4;return b("regeneratorRuntime").awrap((h||(h=b("Promise"))).all(d));case 4:case"end":return e.stop()}},null,this)};e.isEqualToLastCollectedSignal=function(a,b){var c=d("BDSignalBuffer").getLastSignalFormatBySignalId(b.signalType);return c.valueOrError==void 0?!1:a.isEqual(c.valueOrError,new Set(b.signalFlags))};e.getCircularBufferSize=function(a){var b=c("BDClientConfig").get(),d=b.getBufferSizeBySignalId(a.signalType);if(d!=null&&b.getBufferSizeBySignalId(a.signalType)>0)return d;if(!a.signalFlags.includes(2))return b.getStaticSignalBufferSize();else if(a.signalFlags.includes(4))return b.getBiometricSignalBufferSize();else return b.getDynamicSignalBufferSize()};e.$3=function(a){var c,e;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=a.getSignalCollector();if(!(c!=null)){f.next=12;break}f.prev=2;f.next=5;return b("regeneratorRuntime").awrap(c.executeAsyncSignalCollection());case 5:e=f.sent;this.$4(e,a);f.next=12;break;case 9:f.prev=9,f.t0=f["catch"](2),d("BDOperationLogHelper").logError(i,d("BDLoggingConstants").OPERATIONS.BD_EXCEPTION,{error:f.t0});case 12:case"end":return f.stop()}},null,this,[[2,9]])};e.$2=function(a){this.$5();a=a.getSignalCollector();a!=null&&a instanceof d("BDBiometricSignalCollectorBase").BDBiometricSignalCollectorBase&&a.listenForSignals()};e.$5=function(){if(this.$1)return;window.addEventListener(d("BDBiometricSignalCollectorBase").BIOMETRIC_SIGNAL_COLLECTED_EVENT_NAME,this.$6);this.$1=!0};e.$4=function(a,b){b.getBufferConfig()==null&&d("BDSignalBuffer").initialize(b.signalType,this.getCircularBufferSize(b),b.signalFlags),a.valueOrError&&!this.isEqualToLastCollectedSignal(a.valueOrError,b)&&d("BDSignalBuffer").appendSignal(b.signalType,a)};return a}(),k=null;a={get:function(){k==null&&(k=new j());return k}};e=a;g["default"]=e}),98);
-----
BDClientSignalCollectionTrigger",["BDClientConfig","BDCollectionTypeEnum","BDLoggingConstants","BDOperationLogHelper","BDServerConfig","BDSignalBuffer","BDUtils","BdPdcSignalsFalcoEvent","Promise","SignalCollectionManager","WebStorage","javascript-blowfish","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j="BDClientSignalCollectionTrigger",k="signal_flush_timestamp",l=!1,m=!1,n=!1,o=!1,p=0,q=0,r=0,s=30,t=5,u,v,w=d("BDUtils").uuid(),x=c("BDClientConfig").get(),y=Object.freeze({NONE:0,VITAL:1,CRITICAL:2}),z={startSignalCollection:function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:x.setSID(a.sid);if(l){c.next=15;break}l=!0;d("BDServerConfig").parseConfig(a);if(x.isParsingDone()){c.next=8;break}d("BDOperationLogHelper").logError(j,d("BDLoggingConstants").OPERATIONS.PARSE_CONFIG_ERROR,{config:JSON.stringify(a)});l=!1;return c.abrupt("return");case 8:a!=null&&(q=a.hbcbc&&a.hbcbc>0?a.hbcbc:q,r=a.hbvbc&&a.hbvbc>0?a.hbvbc:r,s=a.hbbi&&a.hbbi>0?a.hbbi:s);z.startHeartbeatDelayed();v=new(i||(i=b("Promise")))(function(a,b){try{x.getDynamicSignals().length>0&&(z.collectDynamicSignals(),d("BDOperationLogHelper").logInfo(j,d("BDLoggingConstants").OPERATIONS.DYNAMIC_SIGNAL_COLLECTION_STARTED,{ts:Date.now().toString()})),x.getBiometricSignals().length>0&&(z.collectBiometricSignals(),d("BDOperationLogHelper").logInfo(j,d("BDLoggingConstants").OPERATIONS.BIOMETRIC_SIGNAL_COLLECTION_STARTED,{ts:Date.now().toString()})),a()}catch(a){b(a)}});c.next=13;return b("regeneratorRuntime").awrap(v);case 13:c.next=15;return b("regeneratorRuntime").awrap(z.startSignalPosting());case 15:l&&!n&&!o&&t>0&&(t-=1,d("BDOperationLogHelper").logWarning(j,d("BDLoggingConstants").OPERATIONS.TRY_RESTARTING_HB),z.startHeartbeatDelayed());case 16:case"end":return c.stop()}},null,this)},retrieveSignals:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(v);case 2:a.next=4;return b("regeneratorRuntime").awrap(z.postSignals([c("BDCollectionTypeEnum").DYNAMIC,c("BDCollectionTypeEnum").BIOMETRIC,c("BDCollectionTypeEnum").STATIC]));case 4:case"end":return a.stop()}},null,this)},postSignals:function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(z.collectStaticSignals());case 2:z._postSignalsHelper(d("BDSignalBuffer").getSignalsAsJSONString(a),y.NONE)&&z.setTimestampInStorage(Date.now(),k);case 3:case"end":return c.stop()}},null,this)},_postSignalsHelper:function(a,b){if(a.length<=2)return!1;var e=x.getConfigGenerationTimeStamp(),f=z.encryptDataUsingAsid(w,a);a=function(){return{asid:w,ct:e,sjd:f,sid:x.sid}};var g=!1;try{b===y.CRITICAL?c("BdPdcSignalsFalcoEvent").logCritical(a):b===y.VITAL?c("BdPdcSignalsFalcoEvent").logImmediately(a):c("BdPdcSignalsFalcoEvent").log(a),g=!0}catch(a){d("BDOperationLogHelper").logError(j,d("BDLoggingConstants").OPERATIONS.BANZAI_LOG_ERROR,a),g=!1}finally{return g}},getInitialVector:function(a){if(a.length!==16){d("BDOperationLogHelper").logError(j,d("BDLoggingConstants").OPERATIONS.INVALID_LENGTH);return""}var b="";for(var c=0;c<8;c++)b+=String.fromCharCode(a.charCodeAt(c)^a.charCodeAt(8+c));return b},encryptDataUsingAsid:function(a,b){if(a.length!==36){d("BDOperationLogHelper").logError(j,d("BDLoggingConstants").OPERATIONS.INVALID_GUID);return b}a=a.slice(19,23)+a.slice(24,36);var e=z.getInitialVector(a);a=new(c("javascript-blowfish"))(a,"cbc");return a.base64Encode(a.encrypt(b,e))},startSignalPosting:function(){var a,c;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:a=z.getTimestampInStorage(k);c=Date.now()-a;if(!(c>=x.getAllTiersFlushDurationMs())){d.next=7;break}d.next=5;return b("regeneratorRuntime").awrap(z.postSignalsIntermittently());case 5:d.next=8;break;case 7:window.setTimeout(function(){z.postSignalsIntermittently()},x.getAllTiersFlushDurationMs()-c);case 8:case"end":return d.stop()}},null,this)},postSignalsIntermittently:function(){z.postSignals([c("BDCollectionTypeEnum").STATIC]),window.setInterval(function(){z.postSignals([c("BDCollectionTypeEnum").STATIC,c("BDCollectionTypeEnum").DYNAMIC,c("BDCollectionTypeEnum").BIOMETRIC])},x.getAllTiersFlushDurationMs())},setTimestampInStorage:function(a,b){var e=(h||(h=c("WebStorage"))).getLocalStorage();if(!e){d("BDOperationLogHelper").logWarning(j,d("BDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR);return}e=h.setItemGuarded(e,b,a.toString());e!=null&&d("BDOperationLogHelper").logWarning(j,d("BDLoggingConstants").OPERATIONS.WEB_STORAGE,{error:e.message})},getTimestampInStorage:function(a){var b=(h||(h=c("WebStorage"))).getLocalStorage();if(!b){d("BDOperationLogHelper").logWarning(j,d("BDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR);return 0}b=b.getItem(a);if(b==null)return 0;a=Number.parseInt(b,10);return Number.isFinite(a)?a:0},resetHeartbeatStartedForTest:function(){n=!1,o=!1},startHeartbeatDelayed:function(){if(n||o)return;var a=z.getTimestampInStorage(z.HEARTBEAT_TIMESTAMP_STORAGE_KEY);a=Date.now()-a;try{a>=x.getHeartbeatIntervalMs()?z.startHeartbeat():(window.setTimeout(function(){return z.startHeartbeat()},x.getHeartbeatIntervalMs()-a),o=!0)}catch(b){d("BDOperationLogHelper").logError(j,d("BDLoggingConstants").OPERATIONS.HB_START_FAILURE,{lastBeatSince:a.toString(),hbi:x.getHeartbeatIntervalMs().toString(),e:b})}},HEARTBEAT_TIMESTAMP_STORAGE_KEY:"hb_timestamp",startHeartbeat:function(){!n&&x.getHeartbeatIntervalMs()>0&&(z.collectHeartbeatTimes(q,r),p!==0&&(window.clearInterval(p),d("BDOperationLogHelper").logWarning(j,d("BDLoggingConstants").OPERATIONS.HB_ALREADY_RUNNING)),p=window.setInterval(function(){return z.collectHeartbeatTimes(q,r)},x.getHeartbeatIntervalMs()),n=!0)},collectHeartbeatTimes:function(a,b){if(a<=0&&b<=0)return;a>0&&z.collectHeartbeat(y.CRITICAL);b>0&&z.collectHeartbeat(y.VITAL);(a>1||b>1)&&window.setTimeout(function(){return z.collectHeartbeatTimes(a-1,b-1)},s*1e3)},collectHeartbeat:function(a){var b;b=x==null?void 0:(b=x.getHeartbeatSignal())==null?void 0:(b=b.getSignalCollector())==null?void 0:b.executeSignalCollection();if(b==null){d("BDOperationLogHelper").logError(j,d("BDLoggingConstants").OPERATIONS.HB_COLLECTION_FAILED,{urgency:a.toString()});return}else d("BDOperationLogHelper").logInfo(j,d("BDLoggingConstants").OPERATIONS.HB_COLLECTED,{urgency:a.toString()});z.postHeartbeat(a,b)&&z.setTimestampInStorage(Date.now(),z.HEARTBEAT_TIMESTAMP_STORAGE_KEY)},postHeartbeat:function(a,b){var c={};c[38001]=[b==null?void 0:b.valueOrError];b=JSON.stringify(c);return z._postSignalsHelper(b,a)},collectStaticSignals:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(z.collectSignalsOneTime(x.getStaticSignals()));case 2:case"end":return a.stop()}},null,this)},collectDynamicSignals:function(){z.stopDynamicSignalCollection(),u=window.setInterval(function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(z.collectSignalsOneTime(x.getDynamicSignals()));case 2:case"end":return a.stop()}},null,this)},x.getPeriodicCollectionIntervalMs())},collectBiometricSignals:function(){z.collectSignalsOneTime(x.getBiometricSignals())},stopDynamicSignalCollection:function(){u!=null&&(window.clearInterval(u),u=null)},collectSignalsOneTime:function(a){return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(c("SignalCollectionManager").get().collectSignals(a));case 2:case"end":return d.stop()}},null,this)},startLoginTimeSignalCollection:function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:if(m){c.next=9;break}m=!0;d("BDServerConfig").parseConfig(a);c.next=5;return b("regeneratorRuntime").awrap(z.collectSignalsOneTime(x.getDynamicSignals()));case 5:c.next=7;return b("regeneratorRuntime").awrap(z.collectSignalsOneTime(x.getBiometricSignals()));case 7:c.next=9;return b("regeneratorRuntime").awrap(z.collectSignalsOneTime(x.getStaticSignals()));case 9:case"end":return c.stop()}},null,this)},getSignalsAsJSONString:function(){return d("BDSignalBuffer").getSignalsAsJSONString([c("BDCollectionTypeEnum").DYNAMIC,c("BDCollectionTypeEnum").STATIC,c("BDCollectionTypeEnum").BIOMETRIC])}};a=z;g["default"]=a}),98);
-----
BDTouchOrMouseSignalCollectorBase",["BDBiometricSignalCollectorBase","BDLoggingConstants","BDOperationLogHelper","BooleanSignalValueType"],(function(a,b,c,d,e,f,g){"use strict";var h="BDTouchOrMouseSignalCollectorBase";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this,b)||this;e.eventsToSubscribe=[];e.pauseTimeout=60*60*1e3;e.eventsToSubscribe=c;e.pauseTimeout=d;e.handler=function(a){return e.collectSignals(a)};return e}var e=b.prototype;e.listenForSignals=function(){this.collectSignals(),this.addListeners()};e.addListeners=function(){var a=this;this.eventsToSubscribe.forEach(function(b){try{document.addEventListener(b,a.handler)}catch(a){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.BD_EXCEPTION,{e:a})}})};e.pauseListeners=function(){var a=this;this.eventsToSubscribe.forEach(function(b){document.removeEventListener(b,a.handler)});window.setTimeout(function(){return a.addListeners()},this.pauseTimeout)};e.collectSignals=function(a){a=a!=null;a&&this.pauseListeners();a=new(c("BooleanSignalValueType"))(Date.now(),this.getContext(),a);a={signalId:this.signalType,data:{valueOrError:a}};window.dispatchEvent(new CustomEvent(d("BDBiometricSignalCollectorBase").BIOMETRIC_SIGNAL_COLLECTED_EVENT_NAME,{detail:a}))};return b}(d("BDBiometricSignalCollectorBase").BDBiometricSignalCollectorBase);g["default"]=a}),98);
-----
MNCommerceShipmentTrackingEventMercuryShareAttachmentReact.bs",["BanzaiLogger","MNCommerceBubbleType","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommerceShipmentTrackingEventTypes","MNCommerceShippingAttachmentUtils.bs","MNCommerceShippingDetailsDialogContainer.react","MNCommerceShippingMercuryAttachmentReact.bs","bs_caml_option","bs_js_null_undefined","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){var b=a.attachment,e=a.location;a=a.maxWidth;var f=function(a){if(b!==void 0){a=c("bs_caml_option").valFromOption(b).target;a=a==null?null:a.shipment.id}else a=null;c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{debug_data:JSON.stringify({dialog_surface:c("bs_js_null_undefined").fromOption(d("MNCommerceLoggingConstants").DIALOG_SURFACE.SHIPMENT),shipment_id:a}),event:"dialog_opened"});d("MNCommerceDialogStateActions").showDialog(c("MNCommerceShippingDetailsDialogContainer.react"),{shipmentID:a})};if(b===void 0)return null;var g=c("bs_caml_option").valFromOption(b).target;if(g==null)return null;var h=d("MNCommerceShippingAttachmentUtils.bs").getCommerceLocation(g.shipment.commerce_destination),j=c("MNCommerceBubbleType")[g.bubble_type];j=j!==void 0?j===9:!1;var k=g.shipment_tracking_event_type==="DELIVERED",l=g.shipment.estimated_delivery_time_for_display.length===0?g.shipment.shipdate_for_display:g.shipment.estimated_delivery_time_for_display,m=g.shipment.retail_carrier.logo;return i.jsx(d("MNCommerceShippingMercuryAttachmentReact.bs").make,{carrierInfo:g.shipment.retail_carrier.name,carrierTrackingURL:c("bs_caml_option").nullable_to_opt(g.shipment.retail_carrier.carrier_tracking_url),className:void 0,deliveryDate:l,deliveryPeriod:void 0,destination:{city:h.city,latitude:h.latitude,longitude:h.longitude,state:h.state,street_1:h.street_1},hasUnsupportedCarrier:j,items:d("MNCommerceShippingAttachmentUtils.bs").getItems(g.shipment.retail_shipment_items.nodes),location:e,logo:m!=null?{height:m.height,src:m.uri,width:m.width}:void 0,shippingDate:g.shipment.shipdate_for_display,type_:c("MNCommerceShipmentTrackingEventTypes")[g.shipment_tracking_event_type],width:a,onAttachmentClick:j?void 0:f,shippingCheckPoints:k?[]:d("MNCommerceShippingAttachmentUtils.bs").getShippingCheckPoints(g.shipment),delivered:k})}j.displayName=j.name+" [from "+f.id+"]";function a(a){var b=a.location,d;if(b==null)d=void 0;else switch(b){case"chat":d={_0:void 0,TAG:0};break;case"chat_preview":d={_0:void 0,TAG:1};break;case"messenger":d={_0:void 0,TAG:2};break;case"pages_inbox":d={_0:void 0,TAG:3};break;default:d=void 0}return j({attachment:c("bs_caml_option").nullable_to_opt(a.attachment),location:d,maxWidth:a.maxWidth})}a.displayName=a.name+" [from "+f.id+"]";b=j;g.jsComponent=a;g.make=b}),98);
-----
StoriesTrayUtils",["StoriesLoggingConstants","XCometStoriesControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=a.bucketID,d=a.cardID,e=a.bucketCount,f=a.source;f=f===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.TRAY:f;a=a.viewSingle;a=a!=null?a:f===c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_SURFACE;var g=null;a?g={bucket_count:e,bucket_id:b,card_id:d===null?void 0:d,source:f,view_single:!0}:g={bucket_count:e,bucket_id:b,card_id:d===null?void 0:d,source:f};return c("XCometStoriesControllerRouteBuilder").buildURL(g)}g.getBucketURL=a}),98);
-----
usePolarisSponsoredStoryMediaImpressionSecondChannelLogger",["InstagramAdImpressionSecondChannelFalcoEvent","InstagramAdSubImpressionSecondChannelFalcoEvent","InstagramODS","PolarisContainerModuleUtils","PolarisSponsoredStoryLoggingConstants","cometGHLContentDisplayCheck","cr:6627","qex","setTimeout","usePolarisAnalyticsContext","usePolarisViewer","useScrollBasedImpressionTracker"],(function(a,b,c,d,e,f,g){"use strict";var h=c("qex")._("1229"),i=new Map(),j=new Set();function a(a){var e=a.adId,f=a.mediaType,g=a.mpk,k=a.postId,l=a.trackingToken,m=c("usePolarisAnalyticsContext")(),n=c("usePolarisViewer")(),o=d("PolarisContainerModuleUtils").getContainerModule(m);return c("useScrollBasedImpressionTracker")(function(a){if(e!=null&&l!=null&&(n==null?void 0:n.id)!=null&&m!=null){var p=i.get(k),q=Date.now(),r={ad_id:e,inventory_source:d("PolarisContainerModuleUtils").getContainerModule(m),m_pk:g,m_t:f,pigeon_reserved_keyword_module:d("PolarisContainerModuleUtils").getContainerModule(m),pk:n==null?void 0:n.id,tracking_token:l};if(a.status!=="ENTER")return;if(j.has(k))return;j.add(k);c("setTimeout")(function(){var e=c("cometGHLContentDisplayCheck")(a.target);p==null?e?(c("InstagramODS").incr("web.ads.story.media.impression.second_channel"),c("InstagramAdImpressionSecondChannelFalcoEvent").logImmediately(function(){return r}),h===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:l,container_module:o,event:"impression_second_channel_client"}}),i.set(k,q)):c("InstagramODS").incr("web.ads.story.media.impression.second_channel.hidden"):q-p>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(e?(c("InstagramODS").incr("web.ads.story.media.sub_impression.second_channel"),c("InstagramAdSubImpressionSecondChannelFalcoEvent").log(function(){return r}),h===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:l,container_module:o,event:"sub_impression_second_channel_client"}}),i.set(k,q)):c("InstagramODS").incr("web.ads.story.media.sub_impression.second_channel.hidden"));j["delete"](k)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
PolarisSponsoredStoryLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a=2e3;b=6e4;f.ADBLOCK_CHECK_DELAY=a;f.SUB_IMPRESSION_GAP=b}),66);
-----
usePolarisSponsoredStoryReelImpressionSecondChannelLogger",["InstagramODS","PolarisContainerModuleUtils","PolarisSponsoredStoryLoggingConstants","cometGHLContentDisplayCheck","cr:6627","qex","setTimeout","usePolarisAnalyticsContext","usePolarisViewer","useScrollBasedImpressionTracker"],(function(a,b,c,d,e,f,g){"use strict";var h=c("qex")._("1229"),i=new Map(),j=new Set();function a(a){var e=a.adId,f=a.trackingToken,g=c("usePolarisAnalyticsContext")(),k=c("usePolarisViewer")(),l=d("PolarisContainerModuleUtils").getContainerModule(g);return c("useScrollBasedImpressionTracker")(function(a){if(e!=null&&f!=null&&(k==null?void 0:k.id)!=null&&g!=null){if(a.status!=="ENTER")return;var m=i.get(e),n=Date.now();if(j.has(e))return;j.add(e);c("setTimeout")(function(){var g=c("cometGHLContentDisplayCheck")(a.target);m==null?g?(c("InstagramODS").incr("web.ads.story.reel.impression.second_channel"),h===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:f,container_module:l,event:"reel_impression_second_channel_client"}}),i.set(e,n)):c("InstagramODS").incr("web.ads.story.reel.impression.second_channel.hidden"):n-m>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(g?(c("InstagramODS").incr("web.ads.story.reel.sub_impression.second_channel"),h===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:f,container_module:l,event:"reel_sub_impression_second_channel_client"}}),i.set(e,n)):c("InstagramODS").incr("web.ads.story.reel.sub_impression.second_channel.hidden"));j["delete"](e)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
usePolarisSponsoredStoryReelImpressionLogger",["InstagramAdReelImpressionFalcoEvent","InstagramAdReelSubImpressionFalcoEvent","InstagramODS","PolarisContainerModuleUtils","PolarisMonitorErrors","PolarisNavChain","PolarisSponsoredStoryLoggingConstants","cometGHLContentDisplayCheck","cr:6627","err","qex","setTimeout","usePartialViewImpression","usePolarisAnalyticsContext","usePolarisViewer"],(function(a,b,c,d,e,f,g){"use strict";var h=c("qex")._("1229"),i=new Map(),j=new Set();function a(a){var e=a.adId,f=a.adInsertedPosition,g=a.followStatus,k=a.mpk,l=a.postedAt,m=a.postId,n=a.postMediaType,o=a.postOwnerId,p=a.reelId,q=a.reelPosition,r=a.reelSize,s=a.reelType,t=a.reelViewerPosition,u=a.sessionReelCounter,v=a.trackingToken,w=a.traySession,x=a.viewerSession,y=c("usePolarisViewer")(),z=c("usePolarisAnalyticsContext")();return c("usePartialViewImpression")({onImpressionStart:function(a){var A=a.entry;if(e==null||v==null||(y==null?void 0:y.id)==null){a=c("err")("Missing critical logging field for InstagramAdReelImpressionFalcoEvent.");d("PolarisMonitorErrors").logError(a);return}var B=i.get(p),C=Date.now(),D=d("PolarisContainerModuleUtils").getContainerModule(z),E={a_pk:o,ad_id:e,ad_inserted_position:f.toString(),follow_status:g,m_pk:k,m_t:n,m_ts:l==null?void 0:l.toString(),nav_chain:(a=c("PolarisNavChain").getInstance())==null?void 0:a.getNavChainForSend(),pigeon_reserved_keyword_module:D,pk:y==null?void 0:y.id,post_id:m,reel_id:p,reel_position:q.toString(),reel_size:r==null?void 0:r.toString(),reel_type:s,reel_viewer_position:t.toString(),session_reel_counter:u.toString(),source_of_action:D,tracking_token:v,tray_session_id:w,viewer_session_id:x};if(j.has(e))return;j.add(e);c("setTimeout")(function(){var a=c("cometGHLContentDisplayCheck")(A.target);B==null?a?(c("InstagramODS").incr("web.ads.story.reel.impression"),c("InstagramAdReelImpressionFalcoEvent").log(function(){return E}),h===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:v,container_module:D,event:"reel_impression_client"}}),i.set(p,C)):c("InstagramODS").incr("web.ads.story.reel.impression.hidden"):C-B>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(a?(c("InstagramODS").incr("web.ads.story.reel.sub_impression"),c("InstagramAdReelSubImpressionFalcoEvent").log(function(){return E}),h===!0&&b("cr:6627")!=null&&b("cr:6627").log(function(){return{client_token:v,container_module:D,event:"reel_sub_impression_client"}}),i.set(p,C)):c("InstagramODS").incr("web.ads.story.reel.sub_impression.hidden"));j["delete"](e)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
JewelBase",["csx","invariant","Arbiter","ArbiterMixin","Bootloader","CSS","CrossWindowEventEmitter","DOM","Event","FriendingSurfaceVisitationTypedLogger","FunnelLogger","HTML","JewelBadgeCountRecorder","JewelCountSideLoader","JewelLogger","Keys","NotificationJewelFunnelLoggingConstants","Promise","Run","TabIsolation","TimeSlice","Toggler","TooltipData","firstClickTimestamp","killswitch","mixin","normalizedEventTimestamp","performance","performanceNow","promiseDone"],(function(a,b,c,d,e,f,g,h,i){var j,k,l,m=new(c("CrossWindowEventEmitter"))("JewelBase"),n={};function o(){if((k||(k=c("performance")))==null?void 0:(k||(k=c("performance"))).getEntriesByName){var a=(k||(k=c("performance"))).getEntriesByName("first-paint","paint");if(a&&a[0])return c("normalizedEventTimestamp")(a[0].startTime)}return null}a=function(a){babelHelpers.inheritsLoose(e,a);function e(b,e){var f;f=a.call(this)||this;f.name=e.name;f.label=e.label;f.clickCount=0;f.root=b;f.badge=e.badge;f.countNew=0;f.initialCount=e.count||0;f.userCount=0;f.pageCount=0;f.escHandler=null;f.bootload_module=e.bootload_module;f.bootload_args=e.bootload_args;f.bootload_eager_modules=e.bootload_eager_modules;f.bootload_conf=e.bootload_conf;f.bootloading=null;f.togglerInstance=c("Toggler").getInstance(b).setSticky(!1);f.businessID=e.businessID;f.loggerRef=e.loggerRef;d("JewelLogger").logJewelInitialize({jewelName:f.name,badgeInitialCount:f.initialCount,timestamp:o()});d("JewelBadgeCountRecorder").onCountUpdated("jewel/initial-count",{jewel:f.name,count:f.initialCount});f.bootload_conf&&f.bootload_conf.eagerLoadingOnInteraction?f.$JewelBase3():d("Run").onAfterLoad(function(){return f.$JewelBase4()});f.bootload_conf&&f.bootload_conf.eagerLoadingOnInteraction&&f.$JewelBase5();e.keepOpenForSnowlift&&f.togglerInstance.setPrePageTransitionCallback(f.$JewelBase6.bind(babelHelpers.assertThisInitialized(f)));n[f.name]=babelHelpers.assertThisInitialized(f);f.$JewelBase7();b=f.getFlyout();b||i(0,5194);var g=new(c("TabIsolation"))(b);c("killswitch")("JEWEL_TOGGLER_INSTANCE_FIXES")?c("Toggler").createInstance(b).setSticky(!1):c("Toggler").createInstance(f.root).setSticky(!1);f.$JewelBase8();c("Toggler").listen("show",f.root,function(a){d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.OPEN_JEWEL),f.$JewelBase9(),f.inform("user-open"),f.hasNew()&&f.markSeen(),f.reset(),c("Arbiter").inform("layer_shown",{type:"Jewel",name:f.name}),g.enable(),f.setupEvents(),f.$JewelBase10(),f.bootload_conf&&f.bootload_conf.eagerLoadingOnInteraction?f.$JewelBase11():c("promiseDone")(f.$JewelBase4().then(function(){return f.inform("opened")}))});c("Toggler").listen("hide",f.root,function(a,b){d("JewelLogger").logJewelCancel(),d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CLOSE_JEWEL),d("FunnelLogger").endFunnel(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME),f.hasNew()&&f.markSeen(),f.reset(),f.inform("closed"),c("Arbiter").inform("layer_hidden",{type:"Jewel"}),g.disable(),f.removeEvents(),f.$JewelBase8()});c("Arbiter").subscribe("jewel/count-updated",function(a,b){b.jewel==f.name&&f.update(b)});c("Arbiter").subscribe("jewel/hide",function(a,b){f.hide()});m.addListener("count-updated",function(a){a.jewel==f.name&&f.update(a)});return f}var f=e.prototype;f.getRoot=function(){return this.root};f.hide=function(){this.isOpen()&&c("Toggler").hide(this.root)};f.getFlyout=function(){this.$JewelBase1==null&&(this.$JewelBase1=c("DOM").find(this.root,".__tw"));return this.$JewelBase1};f.hasNew=function(){return d("CSS").hasClass(this.root,"hasNew")};f.isOpen=function(){return d("CSS").hasClass(this.root,"openToggler")};f.reset=function(){d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CLEAR_BADGE_COUNT),d("CSS").removeClass(this.root,"hasNew")};f.setContent=function(a){var b=c("DOM").find(this.root,"ul.jewelItemList");c("DOM").setContent(b,c("HTML")(a))};f.update=function(a){a.animation&&this.badge.setAnimation&&this.badge.setAnimation(a.animation);this.countNew=a.count;typeof this.countNew==="number"&&this.countNew<0&&(this.countNew=0);this.badge.setLegacyContent(this.countNew);var b=isNaN(this.countNew)||this.countNew>0;d("CSS").conditionClass(this.root,"hasNew",b);this.updatedOnce=!0;this.inform("updated",a,"state")};f.setupEvents=function(){var a=this;this.escHandler=c("Event").listen(document.documentElement,"keydown",function(b){b.keyCode===c("Keys").ESC&&a.hide()})};f.removeEvents=function(){this.escHandler&&(this.escHandler.remove(),this.escHandler=null)};f.markSeen=function(){var a=this,b=function(){c("Arbiter").inform("jewel/count-updated",{jewel:a.name,count:0},"state"),m.emitRemote("count-updated",{jewel:a.name,count:0}),a.inform("marked-seen")};c("TimeSlice").guard(b,"JewelOpen markSeen",{propagationType:c("TimeSlice").PropagationType.ORPHAN})()};f.getButton=function(){this.$JewelBase2==null&&(this.$JewelBase2=c("DOM").find(this.root,"a.jewelButton"));return this.$JewelBase2};f.$JewelBase8=function(){var a=this.getButton();d("TooltipData").set(a,this.label);a.setAttribute("data-tooltip-delay","500")};f.$JewelBase10=function(){d("TooltipData").remove(this.getButton())};f.$JewelBase6=function(a,b){!this.$JewelBase12(b.from)&&!this.$JewelBase12(b.to)&&(this.togglerInstance&&this.togglerInstance.hide())};f.$JewelBase12=function(a){return a&&Object.prototype.hasOwnProperty.call(a.getQueryData(),"theater")};f.$JewelBase9=function(){var a=this;this.clickCount++;var b=this.getButton(),e=(l||(l=c("performanceNow")))();this.clickCount===1&&(e=d("firstClickTimestamp").get(b));if(e){b=c("normalizedEventTimestamp")(e);b&&d("JewelLogger").logJewelClick({jewelName:this.name,timestamp:b,badgeCurrentCount:d("JewelBadgeCountRecorder").getCountAtTimestamp(this.name,b),badgeInitialCount:this.initialCount,clickCount:this.clickCount})}this.name==="requests"&&new(c("FriendingSurfaceVisitationTypedLogger"))().setSurface("jewel").setBadgeCount(this.countNew).log();this.name==="mercurymessages"&&c("Bootloader").loadModules(["PageInboxEntryPointsTypedLogger","PageInboxEntryPointEvent","PageInboxEntryPoint"],function(b,c,d){new b().setEvent(c.CLICK).setLocation(d.JEWEL_DROPDOWN).setBadgeNum(a.countNew).log()},"JewelBase")};f.$JewelBase4=function(){var a=this;if(!this.bootload_module)return(j||(j=b("Promise"))).resolve();this.bootloading||(this.bootloading=new(j||(j=b("Promise")))(function(b,c){a.bootload_module.load().then(function(c){new c(a,a.bootload_args),b()})["catch"](c)}));return this.bootloading};f.$JewelBase3=function(){var a=this;this.bootload_eager_modules?this.bootload_eager_modules.loadModules(this):d("Run").onAfterLoad(function(){return a.$JewelBase4()})};f.$JewelBase5=function(){this.bootload_eager_modules&&this.bootload_eager_modules.mount(this)};f.$JewelBase11=function(){var a=this;this.bootload_eager_modules?this.bootload_eager_modules.load(this):c("promiseDone")(this.$JewelBase4().then(function(){return a.inform("opened")}))};f.$JewelBase7=function(){if(this.bootloading)return;var a=d("JewelCountSideLoader").getOverwritesForJewel(this);if(!a)return;this.updateCountAndArgs(a.args,a.count)};f.updateCountAndArgs=function(a,b){for(var d in a)a[d]&&(this.bootload_args[d]=a[d]);b&&c("Arbiter").inform("jewel/count-updated",{jewel:this.name,count:b},"state")};return e}(c("mixin")(c("ArbiterMixin")));g["default"]=a}),98);
-----
NotificationJewelFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="WWW_NOTIFICATION_FUNNEL";b={FETCH_NOTIFICATIONS:"fetch_notifications",OPEN_JEWEL:"open_jewel",CLOSE_JEWEL:"close_jewel",MOUSE_OVER_ON_JEWEL:"mouse_over_on_jewel",SCROLL_TO_FETCH:"scroll_to_fetch",FETCH_NEXT_SET:"fetch_next_set",CLEAR_BADGE_COUNT:"clear_badge_count"};f.FUNNEL_LOGGING_NAME=a;f.FUNNEL_LOGGING_EVENT=b}),66);
-----
AdsBidStrategyLoggingUtils",["AdsBidStrategyLoggingConstants","AdsInterfacesLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){c("AdsInterfacesLogger").log({eventName:c("AdsBidStrategyLoggingConstants").BID_STRATEGY_IS_NOT_THE_SAME,data:(d={event_source:d},d.new_value=b,d.old_value=a,d)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function b(a,b,d){c("AdsInterfacesLogger").log({eventName:a,data:(a={event_source:b},a.message=d,a)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function d(a,b,c){a=b.get("bid_strategy");b=c.get("bid_strategy");a==null||b==null||(a.getValues().toString()===b.getValues().toString()||"different bid strategy.old bid strategy: "+a.getValues().toString()+", new bid strategy: "+b.getValues().toString())}g.logInconsistentBidStrategy=a;g.logFieldChange=b;g.logBidStrategyChangeByBillingEvent=d}),98);
-----
AdsBidStrategyLoggingConstants",["keyMirror"],(function(a,b,c,d,e,f,g){"use strict";a=c("keyMirror")({BID_STRATEGY_IS_NOT_THE_SAME:"",BID_STRATEGY_IS_NOT_THE_SAME_ON_CAMPAIGN_GROUP:"",FLIP_IS_AUTOBID:""});g["default"]=a}),98);
-----
FBStoriesActions",["CameraPostBucketOwnerHelper","CameraPostGraphQLAPI","FBLogger","FBStoriesActionTypes","FBStoriesActionsHelper","FBStoriesDispatcher","FBStoriesGraphQLAPI","FBStoriesLoggingConstants","FBStoriesLoggingHelper","FBStoriesMutedBucketOwnersActions","FBStoriesPrefetcher","FBStoriesStore","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=function(){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").RESET_STATE})},i=function(a,b,d,e,f){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").LOADED,data:{userInfo:{userName:a,userID:b,userGender:null,userProfilePic:{uri:d}},userBucketData:null,friendsBucketData:f}})},j=function(a){var b=c("FBStoriesStore").isSelectedBucketLive();if(b){l();return}b=c("FBStoriesStore").getThreadsForSelectedBucket();var d=c("FBStoriesStore").getCurrentThreadIndexForSelectedBucket();a=a!==void 0?a:d+1;b.length===0?l():a<=b.length-1?p(a):l()},k=function(a){var b=c("FBStoriesStore").isSelectedBucketLive();if(b){m();return}b=c("FBStoriesStore").getThreadsForSelectedBucket();var d=c("FBStoriesStore").getCurrentThreadIndexForSelectedBucket();a=a!==void 0?a:d-1;b.length===0?m():a>=0?p(a,!0):m()},l=function(){return s(!0)},m=function(){return s(!1)},n=function(a){var b=c("FBStoriesStore").getBucketIndexByBucketId(a);if(b===-1)return!1;var d=c("FBStoriesStore").getUnseenThreadIndex(b),e=Math.max(0,d);a=c("FBStoriesStore").isOwnBucket(a);c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").RESET_LOCAL_SEEN_HISTORY});c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_UNSEEN_MODE,value:!a&&d>=0});c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_ALL_BUCKETS_VIEWED,value:!1});c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_BUCKET_IDX_CHANGED,bucketIndex:b});p(e);return!0},o=function(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_THREAD_PERCENT_DONE,percentDone:a})},p=function(a,b){b===void 0&&(b=!1);var e=c("FBStoriesStore").isOwnBucket();c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_THREAD_IDX_CHANGED,index:a});o(0);a=c("FBStoriesStore").getCurrentThreadData();if(a){if(e&&!a.isLive){var f=a.threadID;c("promiseDone")(d("FBStoriesGraphQLAPI").loadViewerListForThread(f),function(a){return c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").VIEWER_LIST_LOADED_FOR_THREAD,threadID:f,data:a})},function(a){return c("FBLogger")("fbstories").catching(a).mustfix("Cannot load viewer list for thread: %s",f)})}q();d("FBStoriesPrefetcher").prefetchForCurrentThreadAndBucket()}else b?k():j()},q=function(){var a=c("FBStoriesStore").getUserInfo().userID,b=c("FBStoriesStore").getCurrentThreadData();if(!b||b.isLive)return;var e=b.latestMessageID,f=b.cameraPostType;b=b.threadID;c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").UPDATE_THREAD_SEEN_OPTIMISTIC,bucketID:null,threadID:b});d("CameraPostGraphQLAPI").markThreadSeen(a,b,e,f)},r=function(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").UPDATE_THREAD_VIEWERS_SEEN_OPTIMISTIC,threadID:a}),d("FBStoriesGraphQLAPI").updateThreadSeenReciept(a)},s=function(a,b){b=b!==void 0?b:c("FBStoriesStore").getSelectedBucketIndex();b=d("FBStoriesActionsHelper").getNextBucketAndThreadIndex(b,a);var e=b.nextBucketIndex;b=b.nextThreadIndex;var f=d("FBStoriesActionsHelper").checkAllBucketsViewed(e);c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_ALL_BUCKETS_VIEWED,value:f});if(f)return void 0;u();c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_BUCKET_IDX_CHANGED,bucketIndex:e});if(!c("FBStoriesStore").hasDataInSelectedBucket()&&!c("FBStoriesStore").isSelectedBucketLive())return a?l():m();p(b);d("FBStoriesLoggingHelper").storyLog(d("FBStoriesLoggingConstants").ACTION_OPEN_STORY);return void 0},t=function(a,b){if(!c("FBStoriesStore").isUserManagedThread(a,b))return;d("FBStoriesGraphQLAPI").deleteStory(c("FBStoriesStore").getUserInfo().userID,a);c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").DELETE_THREAD_FROM_BUCKET,threadID:a,bucketID:b});j(c("FBStoriesStore").getCurrentThreadIndexForSelectedBucket())};function a(a,b){c("FBStoriesMutedBucketOwnersActions").setBucketOwnerMuted(d("CameraPostBucketOwnerHelper").getId(a),d("CameraPostBucketOwnerHelper").getName(a),d("CameraPostBucketOwnerHelper").getProfilePictureUri(a),!0);if(!b)return;c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").REMOVE_BUCKET,bucketID:b});s(!0,c("FBStoriesStore").getSelectedBucketIndex()-1)}function b(a){d("FBStoriesGraphQLAPI").reportThreadToAdmin(c("FBStoriesStore").getUserInfo().userID,a)}function e(a,b){d("FBStoriesGraphQLAPI").takeNegativeFeedbackAction(c("FBStoriesStore").getUserInfo().userID,a,b)}function u(){if(!c("FBStoriesStore").isSelectedBucketLiveAndEnded())return;var a=c("FBStoriesStore").getSelectedBucketId();c("FBStoriesStore").getThreadsForSelectedBucket().length>0?c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").REMOVE_ENDED_LIVE_VIDEO_FROM_BUCKET,bucketID:a}):c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").REMOVE_BUCKET,bucketID:a})}function f(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_IS_COMMERCIAL_BREAK_RUNNING,isCommercialBreakRunning:b,videoID:a})}function v(){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").UNSELECT_BUCKET})}function w(a){if(!a)return;c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").OPTIMISTIC_CREATE_PHOTO_STORY,imageURL:a})}function x(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_USER_BUCKET_UPLOAD_STATUS,isUploading:a})}function y(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").OPTIMISTIC_POLL_VOTE,index:b}),d("FBStoriesGraphQLAPI").pollVote(a,b)}function z(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").TAP_ON_REACTION_STICKER,stickerID:a,count:b}),d("FBStoriesGraphQLAPI").reactToSticker(a,b)}function A(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_IS_PRODUCTION_DIALOG_LOADING,value:a})}function B(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").APPROVE_PENDING_THREAD,bucketID:a,threadID:b})}g.resetStore=h;g.loadData=i;g.nextThread=j;g.prevThread=k;g.nextBucket=l;g.prevBucket=m;g.userSelectedBucket=n;g.updateCurrentThreadPercentDone=o;g.currentThreadIndexChanged=p;g.markCurrentThreadAsSeen=q;g.markThreadViewersSeen=r;g._transitionBucket=s;g.deleteThreadFromBucket=t;g.muteBucketOwner=a;g.reportThreadToAdmin=b;g.takeNegativeFeedbackAction=e;g.removeEndedLiveVideo=u;g.setIsCommercialBreakRunning=f;g.unselectBucket=v;g.optimisticCreateStoryPhoto=w;g.setUserBucketUploadStatus=x;g.onPollOptionVoted=y;g.onReactToSticker=z;g.setIsProductionDialogLoading=A;g.approvePendingThread=B}),98);
-----
FBStoryThread.react",["cx","fbt","ix","CameraPostBucketOwnerHelper","CameraPostDeletedToast.react","CameraPostGraphQLAPI","CameraPostMedia.react","CameraPostMediaCaptionComponent.react","CameraPostMediaHelper","CameraPostNFXToast.react","CameraPostOwnerView.react","CameraPostReportButton.react","CameraPostSendReplyDraftEditor.react","CameraPostSendingToast.react","CameraPostTypesHelper","CurrentUser","Event","FBStoriesActions","FBStoriesDeleteConfirmationDialog.react","FBStoriesFooterMetadataRenderer.react","FBStoriesGatingConfig","FBStoriesInteractiveFeedbackOverlay.react","FBStoriesLightweightReactions.react","FBStoriesLinkRenderer.react","FBStoriesLoggingConstants","FBStoriesLoggingHelper","FBStoriesMuteConfirmationDialog.react","FBStoriesNFXConfirmationDialog.react","FBStoriesNuxHelper","FBStoriesOptimisticUploadLabel.react","FBStoriesReportToAdminConfirmationDialog.react","FBStoriesViewersAnchor.react","FBStoryLiveSidePaneContainer.react","FBStoryThreadGroupAdminNux.react","FBStoryThreadTagsSidePane.react","FBStoryThreadViewers.react","FBStoryWarningScreenButton.react","FBStoryWarningScreenMediaDescription.react","Focus","GroupFBStoriesGatingConfig","Image.react","ImagePositioner.react","Keys","LineClamp.react","Locale","ReactCSSTransitionGroup","ReactMenu","SegmentedProgressBar.react","ShimButton.react","Visibility","XUIButton.react","XUISpinner.react","clearTimeout","createCancelableFunction","emptyFunction","getActiveElement","promiseDone","react","setTimeout"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k,l=k||d("react"),m={enter:"_1gs8",enterActive:"_1gs9",leave:"_1gsa",leaveActive:"_1gsc"},n=Object.freeze({PREV:"prev",NEXT:"next",STAY_HERE:"stay_here"}),o=.3,p=1e3,q=200,r=1e3,s=200,t=200,u=200,v=500,w=500,x=1e3,y={enter:"_3dep",enterActive:"_3deq",leave:"_3der",leaveActive:"_3deu"};a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$2=[];e.state={isPaused:!1,isPausedByDev:!1,isReplyFocused:!1,navDirectionOnClick:n.STAY_HERE,isShowingSendingToast:!1,isShowingDeletedToast:!1,isShowingNFXToast:!1,isTextInMediaComponentOverflow:!1,showPausedOverlay:!1,showDarkWashOverlay:!1,showStoryUI:!0,isViewersPanelShown:!1,isDeleteConfirmationDialogShown:!1,isMuteConfirmationDialogShown:!1,isGroupAdminNuxShown:!1,isReactionSendInProgress:!1,isReportToAdminConfirmationDialogShown:!1,isWithPanelShown:!1,isNFXConfirmationDialogShown:!1,selectedNFX:null,showWarningScreen:!!e.props.currentThreadData&&d("CameraPostMediaHelper").hasObjectionableContent(e.props.currentThreadData.media)};e.$13=!1;e.$23=function(a){if(a!==e.$5&&a){var b;(b=c("Event")).listen(a,"keydown",function(a){return e.$68(a)},b.Priority.URGENT);b.listen(a,"keyup",function(a){return e.$69(a)},b.Priority.URGENT);a.focus()}e.$5=a};e.$34=function(){e.$14(!1,!0),e.$9=!0};e.$35=function(){!e.$8&&!e.state.isReplyFocused&&!e.state.isViewersPanelShown&&e.$15(),e.$8=!1,e.$9=!1};e.$36=function(){e.setState({isPausedByDev:!0}),e.$14()};e.$70=function(){if(!e.props.canOpenCurrentThreadViewerSheet)return;var a=!e.state.isViewersPanelShown;e.setState({isViewersPanelShown:a,isWithPanelShown:!1});a&&e.$22();e.$9||(a?e.$14(!1,!0):e.$15())};e.$45=function(){e.setState({isWithPanelShown:!0,isViewersPanelShown:!1}),e.$9||e.$14(!1,!0)};e.$46=function(a){e.$9||e.$14(!1,!0),a.stopPropagation()};e.$49=function(a){e.$9||e.$14(!1,!1),a.stopPropagation()};e.$71=function(a){e.$9||(e.$14(!1,!1),e.setState({showDarkWashOverlay:!0})),a.stopPropagation()};e.$50=function(a){e.$9||e.$15(),a.stopPropagation()};e.$63=function(){e.setState({isWithPanelShown:!1}),e.$9||e.$15()};e.$37=function(){e.$8=!0,e.$14(!1,!0)};e.$38=function(){if(e.state.isPaused)return;e.$14(!1,!0)};e.$26=function(){e.setState({isDeleteConfirmationDialogShown:!0})};e.$57=function(){e.setState({isDeleteConfirmationDialogShown:!1})};e.$56=function(){e.setState({isDeleteConfirmationDialogShown:!1}),e.$72()};e.$29=function(){e.setState({isMuteConfirmationDialogShown:!0})};e.$58=function(){e.setState({isMuteConfirmationDialogShown:!1})};e.$59=function(){e.setState({isMuteConfirmationDialogShown:!1}),e.props.onMuteBucketOwner()};e.$62=function(){e.setState({isReportToAdminConfirmationDialogShown:!1})};e.$61=function(){e.setState({isReportToAdminConfirmationDialogShown:!1}),e.props.onReportCurrentThreadToAdmin()};e.$74=function(){e.setState({isNFXConfirmationDialogShown:!1,selectedNFX:null})};e.$75=function(){var a;a=(a=e.state.selectedNFX)==null?void 0:a.id;a&&(e.props.onTakeNegativeFeedbackAction(a),e.$76(x));e.setState({isNFXConfirmationDialogShown:!1});e.$15()};e.$48=function(){e.$77("auto_jump")};e.$81=c("createCancelableFunction")(function(){e.setState({isShowingSendingToast:!1})});e.$80=c("createCancelableFunction")(function(a){e.setState({isShowingSendingToast:!0},function(){e.$10=c("setTimeout")(function(){e.$10=void 0,e.$81()},a)})});e.$64=function(a){if(a==="")return;var b=e.props.currentThreadData;if(!b||b.isLive)return;var f=b.threadID;b=b.cameraPostType;var g=e.props.userInfo.userID;e.$79();e.$15();e.setState({isReplyFocused:!1});d("Focus").set(e.$5);c("promiseDone")(d("CameraPostGraphQLAPI").sendDirectMessageReply(g,f,a,b,!0))};e.$66=function(a){if(a==="")return;var b=e.props.currentThreadData;if(!b||b.isLive)return;var f=b.threadID;b=b.cameraPostType;var g=e.props.userInfo.userID;e.$79();e.$15();e.setState({isReplyFocused:!1});d("Focus").set(e.$5);c("promiseDone")(d("CameraPostGraphQLAPI").sendDirectStickerReply(g,f,b,a))};e.$67=function(a){if(a){var b=e.props.currentThreadData;if(!b||b.isLive)return;var f=b.threadID;b=b.cameraPostType;var g=e.props.userInfo.userID;a=a.source.url;e.$79();e.$15();e.setState({isReplyFocused:!1});d("Focus").set(e.$5);c("promiseDone")(d("CameraPostGraphQLAPI").sendDirectGifReply(g,f,b,a))}};e.$84=c("createCancelableFunction")(function(a,b){e.setState({isShowingDeletedToast:!1}),b&&(e.$12=c("setTimeout")(function(){e.$12=void 0,b&&b()},a))});e.$83=c("createCancelableFunction")(function(a,b,d){e.setState({isShowingDeletedToast:!0},function(){e.$11=c("setTimeout")(function(){e.$84(b,d)},a)})});e.$85=c("createCancelableFunction")(function(){e.setState({isShowingNFXToast:!1,selectedNFX:null})});e.$76=c("createCancelableFunction")(function(a){e.setState({isShowingNFXToast:!0},function(){e.$10=c("setTimeout")(function(){e.$85()},a)})});e.$65=function(a){e.$14(!1,!0),e.setState({isReplyFocused:!0})};e.$47=function(a){e.state.isPaused?(e.$15(),e.state.isReplyFocused&&e.setState({isReplyFocused:!1})):e.$14(!1,!0)};e.$40=function(a){c("clearTimeout")(e.$4),e.$4=c("setTimeout")(function(){if(e.state.isPaused)return;e.$14(!0,!1)},v)};e.$41=function(a){c("clearTimeout")(e.$4);if(a.target.tagName==="INPUT")return;if(e.state.showDarkWashOverlay)return;if(e.state.isPaused)e.$15(),e.state.isReplyFocused&&e.setState({isReplyFocused:!1});else{if(!e.props.enableNavigation)return;if(a.target.className!=="_ide")return;e.state.navDirectionOnClick===n.PREV?e.$78("tap_backward"):e.state.navDirectionOnClick===n.NEXT&&!e.state.isLastThread&&e.$77("tap_forward")}};e.$43=function(a){e.$1=a.target};e.$44=function(a){var b=a.currentTarget.offsetWidth;a=a.nativeEvent.offsetX;var c=o*b;d("Locale").isRTL()&&(a=b-a);a>=0&&a<=c?e.setState({navDirectionOnClick:n.PREV}):a>=b-c&&a<=b?e.setState({navDirectionOnClick:n.NEXT}):e.setState({navDirectionOnClick:n.STAY_HERE})};e.$53=function(a){e.setState({isReactionSendInProgress:!0}),e.$82(a),e.$14(!1,!1)};e.$54=function(){e.setState({isReactionSendInProgress:!1}),e.$15()};e.$15=function(){if(e.state.isPausedByDev)return;c("clearTimeout")(e.$4);c("clearTimeout")(e.$3);e.setState({isPaused:!1,showPausedOverlay:!1,showDarkWashOverlay:!1,showStoryUI:!0,isViewersPanelShown:!1,isWithPanelShown:!1})};b.autoOpenViewersheet&&(e.state=babelHelpers["extends"]({},e.state,{isViewersPanelShown:!0,isWithPanelShown:!1,isPaused:!0,showStoryUI:!0,showPausedOverlay:!0}));return e}var e=b.prototype;e.componentDidMount=function(){var a=this,b;this.$2=[(b=c("Visibility")).addListener(b.HIDDEN,function(){if(a.state.isPaused){a.$13=!1;return}a.$13=!0;a.$14(!1,!0)}),b.addListener(b.VISIBLE,function(){a.$13&&a.$15()})];this.$5&&d("Focus").set(this.$5);(this.props.currentThreadData||this.props.isBucketLive)&&this.$16();this.$17(this.props)};e.UNSAFE_componentWillUpdate=function(a,b){!this.props.allBucketsViewed&&a.allBucketsViewed&&a.onDone(),this.props.bucketID!==a.bucketID?(this.setState(this.$18(a)),this.$17(a)):this.props.currentThreadIndex!==a.currentThreadIndex&&this.$19(a)};e.componentDidUpdate=function(a,b){(this.props.currentThreadData||this.props.isBucketLive)&&this.props.currentThreadID!==a.currentThreadID&&this.$16();a=c("getActiveElement")();!this.state.isReplyFocused&&this.$5&&!this.props.isBucketLive&&(!this.$1||this.$1===a&&a.tagName!=="A"&&a.tagName!=="BUTTON")&&d("Focus").set(this.$5);b.isViewersPanelShown===!0&&this.state.isViewersPanelShown===!1&&this.$20()};e.$20=function(){this.props.currentThreadID&&d("FBStoriesActions").markThreadViewersSeen(this.props.currentThreadID)};e.$19=function(a){a=a.currentThreadData;if(!a)return;a=d("CameraPostMediaHelper").hasObjectionableContent(a.media);this.setState({isPaused:!1,showDarkWashOverlay:!1,showStoryUI:!0,showPausedOverlay:!1,showWarningScreen:a})};e.$17=function(a){var b=this;a.isGroupAdminBucket&&d("FBStoriesNuxHelper").checkIfNuxShouldBeShown(c("FBStoryThreadGroupAdminNux.react").nuxID(),function(){b.$14(!1,!1),b.setState({isGroupAdminNuxShown:!0})})};e.$16=function(){var a=this.props,b=a.storyActionLoggingData;a=a.storyActionSource;d("FBStoriesLoggingHelper").openMediaLog(a,b)};e.$21=function(){d("FBStoriesLoggingHelper").mediaLog({storyAction:d("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA})};e.$22=function(){d("FBStoriesLoggingHelper").mediaLog({storyAction:d("FBStoriesLoggingConstants").ACTION_OPEN_SEEN_SUMMARY})};e.render=function(){var a=this,b="_4tkv"+(this.props.isLandscape&&this.props.isBucketLive?" _fxh":"")+" _24o3"+(this.props.isBucketLive?" _2dnb":""),e=this.props.userInfo.userID,f=this.props.currentThreadData;if(!f)return l.jsx("div",{id:"fbStoryContainer",role:"tabpanel",tabIndex:-1,ref:this.$23,className:b});var g=f.media,h=f.cameraPostType,k=d("CameraPostMediaHelper").getType(g),o=d("CameraPostMediaHelper").getWidth(g),p=d("CameraPostMediaHelper").getHeight(g),r=d("CameraPostMediaHelper").isSphericalPhoto(g),v,w,z,A,B,C,D="",E,F,G,H,I={},J,K,L=[],M=(this.$24()||d("CameraPostTypesHelper").isGroupStory(h)&&c("GroupFBStoriesGatingConfig").isWWWLightweightReactionsEnabled&&c("GroupFBStoriesGatingConfig").isGroupLightweightReactionEnabled&&!this.props.isOwnThread)&&c("FBStoriesGatingConfig").isLightweightReactionEnabled;if(!f.isLive){var N=f.time,O=f.participants,P=f.bucketOwner,Q=f.threadOwner,R=f.cameraPostSource,S=f.wwwTextFormatMetadata,T=f.textFormatMetadata,U=f.originalPostStoryAttribution,V=f.withTags,W=f.inlineActivities,X=f.explicitLocation,Y=f.activityDescription;C=f.threadID;D=f.messageText;E=f.messageRanges;F=f.isPlainText;G=f.backdropImage;H=f.defaultBackground;J=f.linkAttachment;K=f.mediaBackground;L=f.delightRanges;w=d("CameraPostBucketOwnerHelper").getName(P);v=d("CameraPostBucketOwnerHelper").getId(P);d("CameraPostTypesHelper").isGroupStory(h)&&!d("CameraPostBucketOwnerHelper").isViewerGroupMember(P)&&(M=!1);A={rootMessageText:D,wwwTextFormatMetadata:S,textFormatMetadata:T};I={withTags:V,inlineActivities:W,explicitLocation:X,activityDescription:Y,threadID:C};f=[];this.$25()&&f.push(l.jsxs(c("ReactMenu").Item,{disabled:this.props.isStoryUploading,onClick:this.$26,children:[this.props.isStoryUploading&&l.jsx(c("XUISpinner.react"),{size:"small"}),l.jsx(c("Image.react"),{src:j("114073")}),this.$27(k)]},"delete_own_thread"));if(this.$28()){S=d("CameraPostTypesHelper").isGroupStory(h);f.push(l.jsxs(c("ReactMenu").Item,{onClick:this.$29,children:[l.jsx(c("Image.react"),{src:j("113496")}),l.jsx("span",{children:l.jsx(c("LineClamp.react"),{className:S?"":"_65ki",lines:1,children:this.$30(S,w)})})]},"mute_bucket_owner"))}if(this.props.currentThreadData&&!this.props.currentThreadData.isLive&&this.props.currentThreadData.negativeFeedbackActions){T=this.props.currentThreadData.negativeFeedbackActions;for(V=0;V
FBStoriesBucketHelper",["CameraPostBucketOwnerHelper","CameraPostTypesHelper","CurrentUser","FBStoriesLoggingConstants","FBStoriesThreadHelper"],(function(a,b,c,d,e,f,g){"use strict";var h={getUnseenThread:function(a){var b=i.getThreads(a);return b[Math.max(0,i.getUnseenThreadIndex(a))]}},i={isUserBucket:function(a){return i.getOwnerId(a)===c("CurrentUser").getID()},getLiveVideo:function(a){return(a=a)!=null?a.live_video:a},getMediaIDForLiveBucket:function(a){return(a=a)!=null?(a=a.live_video)!=null?a.id:a:a},isLive:function(a){return!!((a=i.getLiveVideo(a))!=null?a.id:a)},setLiveVideo:function(a,b){if(!a)return;a.live_video=b},hasData:function(a){return!a?!1:i.isLive(a)||i.getThreads(a).length>0},getThreads:function(a){a=(a==null?void 0:(a=a.threads)==null?void 0:a.nodes)||[];return a.filter(function(a){return d("FBStoriesThreadHelper").isPublished(a)&&!d("FBStoriesThreadHelper").isExpired(a)})},getPendingThreads:function(a){return(a==null?void 0:(a=a.pending_threads)==null?void 0:a.nodes)||[]},getThreadIDs:function(a){a=i.getThreads(a);return a.map(function(a){return(a==null?void 0:a.id)||""})},setThreads:function(a,b){if(!a)return;a.threads={nodes:b}},setPendingThreads:function(a,b){if(!a)return;a.pending_threads={nodes:b}},hasPendingThreads:function(a){if(!a.pending_stories)return!1;a=(a=a)!=null?(a=a.pending_stories)!=null?a.count:a:a;return!a?!1:a>0},getUnseenThreadIndex:function(a){var b=i.getThreads(a);a=i.isUserBucket(a);return a?b.findIndex(d("FBStoriesThreadHelper").doesThreadHasUnseenViewers):b.findIndex(d("FBStoriesThreadHelper").notSeenByViewer)},hasNewViewers:function(a){if(!a)return!1;a=i.getThreads(a);a=a.filter(d("FBStoriesThreadHelper").doesThreadHasUnseenViewers);return a.length>0},hasUnseenThreads:function(a){return i.getThreads(a).findIndex(d("FBStoriesThreadHelper").notSeenByViewer)>=0},getPreviewImage:function(a){a=h.getUnseenThread(a);return d("FBStoriesThreadHelper").getMediaPreviewImage(a)},getId:function(a){return(a==null?void 0:a.id)||""},getCameraPostType:function(a){return(a==null?void 0:a.camera_post_type)||"STORY"},getUnseenCount:function(a){return(a==null?void 0:a.unseen_count)||0},setUnseenCount:function(a,b){if(!a)return;a.unseen_count=b},hasLiveVideoEnded:function(a){return!!((a=a)!=null?a.has_live_video_ended:a)},setHasLiveVideoEnded:function(a,b){if(!a)return;a.has_live_video_ended=b},getOwner:function(a){return(a==null?void 0:a.camera_post_bucket_owner)||{id:null,name:null,short_name:null,gender:null,is_viewer_friend:!1,profile_picture:null}},getOwnerId:function(a){return d("CameraPostBucketOwnerHelper").getId(i.getOwner(a))},getOwnerGender:function(a){return d("CameraPostBucketOwnerHelper").getGender(i.getOwner(a))},isOwnerEmployee:function(a){return d("CameraPostBucketOwnerHelper").isEmployee(i.getOwner(a))},isViewerEventHost:function(a){return d("CameraPostBucketOwnerHelper").isEventHost(i.getOwner(a))},isViewerPageContentAdmin:function(a){return d("CameraPostBucketOwnerHelper").isViewerPageContentAdmin(i.getOwner(a))},isViewerGroupAdmin:function(a){return d("CameraPostBucketOwnerHelper").isViewerGroupAdmin(i.getOwner(a))},isViewerGroupModerator:function(a){return d("CameraPostBucketOwnerHelper").isViewerGroupModerator(i.getOwner(a))},isViewerFriendOfOwner:function(a){return d("CameraPostBucketOwnerHelper").isViewerFriend(i.getOwner(a))},getOwnerProfilePictureUri:function(a){return d("CameraPostBucketOwnerHelper").getProfilePictureUri(i.getOwner(a))},getOwnerCoverPhotoUri:function(a){return d("CameraPostBucketOwnerHelper").getCoverPhotoUri(i.getOwner(a))},getOwnerName:function(a,b){b===void 0&&(b=!1);var c=i.getCameraPostType(a);a=i.getOwner(a);if(!b&&d("CameraPostTypesHelper").isStory(c)&&a.short_name)return a.short_name;else return a.name},getLatestThreadCreationTime:function(a){return!a?null:(a=a)!=null?a.latest_thread_creation_time:a},getLoggingType:function(a){if(!a)return d("FBStoriesLoggingConstants").MISSING_STORY_DATA;if(i.isUserBucket(a))return d("FBStoriesLoggingConstants").SELF_STORY;var b=i.getCameraPostType(a);if(d("CameraPostTypesHelper").isPageStory(b))return d("FBStoriesLoggingConstants").PAGE_STORY;if(d("CameraPostTypesHelper").isGroupStory(b))return d("FBStoriesLoggingConstants").GROUP_STORY;if(d("CameraPostTypesHelper").isEventStory(b))return d("FBStoriesLoggingConstants").EVENT_STORY;if(d("CameraPostTypesHelper").isPromotionStory(b))return d("FBStoriesLoggingConstants").STORY_PROMOTION;return!i.isViewerFriendOfOwner(a)?d("FBStoriesLoggingConstants").FOLLOWEE_STORY:d("FBStoriesLoggingConstants").FRIEND_STORY},addThreadToBucket:function(a,b){var c=i.getThreads(a);i.setThreads(a,c.concat(b))},getDefaultBucket:function(){return{id:null,camera_post_type:null,unseen_count:0,ranking:null,live_video:null,camera_post_bucket_owner:null,threads:null,pending_threads:null,latest_thread_creation_time:null}},isUploading:function(a){if(!a)return!1;a=(a=a)!=null?a.is_uploading:a;return!!a},setUploading:function(a,b){if(!a)return;a.is_uploading=b}};a=i;g["default"]=a}),98);
-----
FBStoriesLoggingHelper",["Banzai","CloseStoryFalcoEvent","DirectMessagingFalcoEvent","FBLogger","FBStoriesBucketHelper","FBStoriesLoggingConstants","FBStoriesStore","StoryNavigationFalcoEvent","uuidv4"],(function(a,b,c,d,e,f){"use strict";var g=null,h={_traySessionID:null,_viewerSessionID:null,_eventStartTimes:{},logStoryTrayLoad:function(a){h._traySessionID=b("uuidv4")();var c=a.userBucketData;a=a.friendsBucketData;var d=b("FBStoriesBucketHelper").hasData(c),e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,n=0,o={};b("FBStoriesBucketHelper").isLive(c)&&g++;a.forEach(function(a){e++;b("FBStoriesBucketHelper").getUnseenCount(a)>0&&f++;b("FBStoriesBucketHelper").isLive(a)&&g++;var c=b("FBStoriesBucketHelper").getLoggingType(a);switch(c){case b("FBStoriesLoggingConstants").PAGE_STORY:i++;break;case b("FBStoriesLoggingConstants").EVENT_STORY:j++;break;case b("FBStoriesLoggingConstants").GROUP_STORY:k++;break;case b("FBStoriesLoggingConstants").STORY_PROMOTION:l++;break;case b("FBStoriesLoggingConstants").FOLLOWEE_STORY:m++;break;case b("FBStoriesLoggingConstants").FRIEND_STORY:n++;break;default:b("FBLogger")("fbstories").mustfix("storyOwnerType not found: %s",c)}c=b("FBStoriesBucketHelper").getOwnerId(a);var d=b("FBStoriesBucketHelper").getThreadIDs(a);if(b("FBStoriesBucketHelper").isLive(a)){a=(a=b("FBStoriesBucketHelper").getLiveVideo(a))==null?void 0:a.id;a!=null&&d.push(a)}o[c]=d});b("DirectMessagingFalcoEvent").log(function(){return{client_story_thread_ids:o,event_stories_in_tray:j.toString(),followee_stories_in_tray:m.toString(),friend_stories_in_tray:n.toString(),group_stories_in_tray:k.toString(),has_my_story:d,live_stories_in_tray:g.toString(),name:b("FBStoriesLoggingConstants").ACTION_TRAY_LOAD,number_live_stories:g.toString(),number_new_stories:f.toString(),number_stories:e.toString(),page_stories_in_tray:i.toString(),promotion_stories_in_tray:l.toString(),tray_session_id:h._traySessionID}})},storyLog:function(a,c,d){g==null&&(g=c);a===b("FBStoriesLoggingConstants").ACTION_OPEN_STORY&&!h._viewerSessionID&&(h._viewerSessionID=b("uuidv4")());var e=b("FBStoriesStore").getSelectedBucketCameraPostType(),f=b("FBStoriesStore").getSelectedBucketOwnerID(),i=b("FBStoriesStore").getSelectedBucketOwnerType(),j=b("FBStoriesStore").getThreadCountForSelectedBucket(),k=b("FBStoriesStore").getSelectedBucketUnseenCount()>0,l=b("FBStoriesStore").getSelectedBucketIndex();b("DirectMessagingFalcoEvent").log(function(){return{camera_post_type:e,client_viewer_session_id:h._viewerSessionID,has_new_content:k,name:a,source:c==null?g:c,story_index:l.toString(),story_owner:f,story_owner_type:i,thread_count:j.toString(),tracking_string:d,tray_session_id:h._traySessionID}})},getLoggingMediaType:function(a){var b="unknown";a==="Photo"?b="photo":a==="Video"?b="video":a==="live"&&(b="live");return b},mediaLog:function(a){var c=a.storyAction,d=a.storyActionSource,e=a.storyActionData,f=a.gesture;a=e||{cameraPostType:b("FBStoriesStore").getCurrentThreadCameraPostTypeForSelectedBucket(),storyOwnerFbid:b("FBStoriesStore").getSelectedBucketOwnerID(),storyOwnerType:b("FBStoriesStore").getSelectedBucketOwnerType(),mediaID:b("FBStoriesStore").getCurrentThreadMediaIDForSelectedBucket(),mediaType:b("FBStoriesStore").getCurrentThreadMediaTypeForSelectedBucket(),viewers:b("FBStoriesStore").getCurrentThreadMediaViewerCountForSelectedBucket(),bucketIndex:b("FBStoriesStore").getSelectedBucketIndex(),threadIndex:b("FBStoriesStore").getCurrentThreadIndexForSelectedBucket(),threadID:b("FBStoriesStore").getCurrentThreadIDForSelectedBucket(),threadCount:b("FBStoriesStore").getThreadCountForSelectedBucket()};var g=a.cameraPostType,i=a.storyOwnerFbid,j=a.storyOwnerType,k=a.mediaID;e=a.mediaType;var l=a.viewers,m=a.bucketIndex,n=a.threadIndex,o=a.threadID,p=a.threadCount,q=(a=o==null?void 0:o.toString())!=null?a:"",r=h.getLoggingMediaType(e),s=(o=d)!=null?o:b("FBStoriesLoggingConstants").SOURCES.UNKNOWN;b("DirectMessagingFalcoEvent").log(function(){var a;return{camera_post_type:g,gesture:(a=f)!=null?a:void 0,name:c,source:s,story_owner:i,story_owner_type:j,media_type:r,client_media_id:k,number_viewers:l==null?void 0:l.toString(),card_id:q,story_index:m.toString(),media_index:n.toString(),number_media:p.toString(),tray_session_id:h._traySessionID,client_viewer_session_id:h._viewerSessionID,extra_client_data:JSON.stringify({story_size:p})}})},openMediaLog:function(a,c){var d=b("FBStoriesStore").getFeedTrackingData(b("FBStoriesLoggingConstants").ACTION_OPEN_MEDIA);b("Banzai").post("stories_www_vpv_banzai",{media_id:b("FBStoriesStore").getCurrentThreadMediaIDForSelectedBucket(),owner_id:b("FBStoriesStore").getSelectedBucketOwnerID()});b("Banzai").post("fb_stories_banzai_generic",{ft:d});h.mediaLog({storyAction:b("FBStoriesLoggingConstants").ACTION_OPEN_MEDIA,storyActionSource:a,storyActionData:c})},deleteMediaLog:function(){h.mediaLog({storyAction:b("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA})},openSeenSummaryLog:function(){h.mediaLog({storyAction:b("FBStoriesLoggingConstants").ACTION_OPEN_SEEN_SUMMARY})},storyNavigationLog:function(a){h.mediaLog({storyAction:b("FBStoriesLoggingConstants").ACTION_STORY_NAVIGATION,gesture:a}),b("StoryNavigationFalcoEvent").log(function(){return babelHelpers["extends"]({},h._getFalcoLoggingInformation(),{gesture:a})})},closeStoryLog:function(a,c){h.mediaLog({storyAction:b("FBStoriesLoggingConstants").ACTION_CLOSE_STORY,storyActionSource:c,gesture:a}),b("CloseStoryFalcoEvent").log(function(){return babelHelpers["extends"]({},h._getFalcoLoggingInformation(),{gesture:a})}),h._viewerSessionID=null}};e.exports=h}),null);
-----
FBStoriesSingleBucketStoryContainer.react",["Arbiter","CameraPostMediaHelper","CurrentUser","ErrorBoundary.react","FBLogger","FBStoriesBucketHelper","FBStoriesCurrentThreadDataHelper","FBStoriesGraphQLAPI","FBStoriesLoggingConstants","FBStoriesLoggingHelper","FBStoriesSingleBucketStoryDataHelper","FBStoriesThreadHelper","FBStoryThread.react","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
CameraPostGraphQLAPI",["Banzai","CameraPostDirectMarkSeenMutation","CameraPostLoggingEvents","CameraPostQuery","CameraPostRepliesQuery","CameraPostReplyMutation","CameraPostUserQuery","FBStoriesLoggingConstants","RelayFBEnvironment","RelayModern","requireDeferred","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("DirectMessagingFalcoEvent").__setRef("CameraPostGraphQLAPI"),i=function(a,b,e,f,g,i,j){if(f!=null){var k,l={gif_url:(k=e.gif_url)!=null?k:"",sticker_id:(k=e.sticker_id)!=null?k:""};h.onReady(function(c){return c.log(function(){var c;return{camera_post_type:b,card_id:a.toString(),extra_data:l,message_length:(c=(c=e.message)==null?void 0:c.length.toString())!=null?c:void 0,name:f,product_surface:"www",reply_type:(c=j)!=null?c:void 0}})})}var m={is_fb_story:!0,thread_id:a,camera_post_type:b,attempt_name:f,event:d("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT};return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostReplyMutation"),{input:e}).then(function(d){g!=null&&h.onReady(function(c){return c.log(function(){var c;return{camera_post_type:b,card_id:a.toString(),name:g,product_surface:"www",reply_type:(c=j)!=null?c:void 0}})});m.success_name=g;c("Banzai").post("fb_stories_banzai_generic",{ft:m});return d},function(d){i!=null&&h.onReady(function(c){return c.log(function(){var c;return{camera_post_type:b,card_id:a.toString(),name:i,product_surface:"www",reply_type:(c=j)!=null?c:void 0}})});m.failure_name=i;c("Banzai").post("fb_stories_banzai_generic",{ft:m});return d})};a=function(a,b,e,f,g){var h=c("uuidv4")();h={client_mutation_id:h,actor_id:a,thread_id:b,message:e};a=null;e=null;var j=null;g?a=d("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT:(a=d("CameraPostLoggingEvents").SEND_REPLY_ATTEMPT,e=d("CameraPostLoggingEvents").SEND_REPLY_SUCCESS,j=d("CameraPostLoggingEvents").SEND_REPLY_FAILURE);return i(b,f,h,a,e,j)};b=function(a,b,d,e){var f=c("uuidv4")();f={client_mutation_id:f,actor_id:a,thread_id:b,sticker_id:e};return i(b,d,f,null,null,null)};e=function(a,b,d,e){var f=c("uuidv4")();f={client_mutation_id:f,actor_id:a,thread_id:b,gif_url:e};return i(b,d,f,null,null,null)};f=function(a,b,d,e,f){var g="LIGHT_WEIGHT";a={client_mutation_id:c("uuidv4")(),actor_id:a,thread_id:b,message:e,story_reply_type:g,is_lightweight_reaction:!0,lightweight_reaction_actions:{reaction:e,offsets:[f||0]}};return i(b,d,a,null,null,null,"light_weight")};var j=function(a,b){return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostQuery"),{thread_id:b}).then(function(a){var c,e=a==null?void 0:(c=a.node)==null?void 0:c.camera_post_type;h.onReady(function(a){return a.log(function(){return{camera_post_type:e,card_id:b.toString(),name:d("CameraPostLoggingEvents").THREAD_VIEWED,product_surface:"www"}})});return a},function(a){return a})},k=function(){return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostUserQuery"),{})},l=function(a){return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostRepliesQuery"),{thread_id:a})},m=function(a,b,e,f,g){var i={};g?i={client_mutation_id:c("uuidv4")(),actor_id:a,story_id:g,last_message_seen_id:e}:i={client_mutation_id:c("uuidv4")(),actor_id:a,thread_id:b,last_message_seen_id:e};h.onReady(function(a){return a.log(function(){return{camera_post_type:f,card_id:b.toString(),name:d("CameraPostLoggingEvents").THREAD_MARK_SEEN_ATTEMPT,product_surface:"www"}})});var j={is_fb_story:!0,camera_post_type:f,event:d("CameraPostLoggingEvents").THREAD_MARK_SEEN_ATTEMPT,thread_id:b,latest_message_id:e};return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostDirectMarkSeenMutation"),{input:i}).then(function(a){h.onReady(function(a){return a.log(function(){return{camera_post_type:f,card_id:b.toString(),name:d("CameraPostLoggingEvents").THREAD_MARK_SEEN_SUCCESS,product_surface:"www"}})});j.sucess_name=d("CameraPostLoggingEvents").THREAD_MARK_SEEN_SUCCESS;c("Banzai").post("fb_stories_banzai_generic",{ft:j});return a},function(a){h.onReady(function(a){return a.log(function(){return{camera_post_type:f,card_id:b.toString(),name:d("CameraPostLoggingEvents").THREAD_MARK_SEEN_FAILURE,product_surface:"www"}})});j.failur_name=d("CameraPostLoggingEvents").THREAD_MARK_SEEN_FAILURE;c("Banzai").post("fb_stories_banzai_generic",{ft:j});return a})};g.sendDirectMessageReply=a;g.sendDirectStickerReply=b;g.sendDirectGifReply=e;g.sendLightweightReactionReply=f;g.loadThreadFullInformation=j;g.loadUserInfo=k;g.loadRepliesForThread=l;g.markThreadSeen=m}),98);
-----
FBStoriesRing",["csx","cx","Arbiter","CSS","DOM","FBStoriesLoggingConstants","XFBStoriesSingleStoryAsyncController"],(function(a,b,c,d,e,f,g,h,i){"use strict";a=function(){function a(a){this.$1=a.element;this.$2=a.profileId;this.$3=a.storyId;this.$4=!1;a=c("DOM").scry(this.$1,"._6_ut");a.length>0&&(this.$4=!0);this.$5()}var b=a.prototype;b.$5=function(){var a=this;c("Arbiter").subscribe("has_story_bucket_been_seen",function(b,e){if(a.$2===e){b=c("DOM").scry(a.$1,"._6_ut");b.length>0&&(d("CSS").removeClass(b[0],"_6_ut"),a.$4=!1)}});c("Arbiter").subscribe("update_next_thread_to_view",function(b,e){b=e.bucketOwnerId;e=e.threadId;if(a.$2===b&&a.$4){b=c("XFBStoriesSingleStoryAsyncController").getURIBuilder().setFBID("story_id",a.$3).setFBID("card_id",e).setBool("auto_open_viewersheet",!1).setString("story_action_source",d("FBStoriesLoggingConstants").SOURCES.POST_HEADER).getURI();a.$1.setAttribute("ajaxify",b)}})};return a}();g["default"]=a}),98);
-----
FBStoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="event";b="followee";c="friend";d="group";e="missingStoryData";var g="page",h="self",i="promotion",j="open_media",k="delete_media_attempted",l="attempt_to_send_reply",m="reaction_sticker_interacted",n="open_seen_summary",o="open_story",p="close_story",q="story_tray_load",r="send_story_failed",s="send_story_succeed",t="reply_attempt_completed",u="story_navigation",v="reshared_story_tap",w="reshared_story_view_story_tap",x={CLOSE_STORY:{CLICK_RIGHT:"click_right",CLICK_LEFT:"click_left",AUTO_JUMP:"auto_jump",AUTO_EXIT:"auto_exit",CLICK_EXIT:"click_exit",SWIPE_RIGHT:"swipe_right",SWIPE_LEFT:"swipe_left",SWIPE_EXIT:"swipe_exit",SWIPE_DOWN_EXIT:"swipe_down_exit",CLOSE_BUTTON_EXIT:"close_button_exit",BACK_BUTTON_EXIT:"back_button_exit"}},y="closeFromClickingOnModal",z="closeFromClickingOnModalCloseButton",A="closeFromLastStoryFinishing",B={ARCHIVE:"archive",POST_HEADER:"post_header_actor_photo",STORY_TRAY:"story_tray",IN_FEED:"in_feed",UNKNOWN:"unknown"};f.EVENT_STORY=a;f.FOLLOWEE_STORY=b;f.FRIEND_STORY=c;f.GROUP_STORY=d;f.MISSING_STORY_DATA=e;f.PAGE_STORY=g;f.SELF_STORY=h;f.STORY_PROMOTION=i;f.ACTION_OPEN_MEDIA=j;f.ACTION_DELETE_MEDIA=k;f.ACTION_SEND_REPLY_ATTEMPT=l;f.ACTION_SEND_REACTION_STICKER_INTERACTED=m;f.ACTION_OPEN_SEEN_SUMMARY=n;f.ACTION_OPEN_STORY=o;f.ACTION_CLOSE_STORY=p;f.ACTION_TRAY_LOAD=q;f.ACTION_SEND_STORY_FAILED=r;f.ACTION_SEND_STORY_SUCCEEDED=s;f.ACTION_REPLY_ATTEMPT_COMPLETED=t;f.ACTION_STORY_NAVIGATION=u;f.INTERACTION_TAP_RESHARED_STORY=v;f.INTERACTION_TAP_RESHARED_TOOLTIP=w;f.GESTURES=x;f.SOURCE_CLOSE_FROM_MODAL=y;f.SOURCE_CLOSE_FROM_MODAL_CLOSE_BUTTON=z;f.SOURCE_CLOSE_FROM_LAST_STORY_FINISHING=A;f.SOURCES=B}),66);
-----
LWICometLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="1146105192114219";f.APP_ID=a}),66);
-----
LWICometCTAWhatsAppBizAppUpsellNotice.react",["fbt","AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","CometRowItem.react","LWICometCTAMultiStepVerificationDialogWrapper.entrypoint","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometNoticeCard.react","LWICometRow.react","LWICometWhatsAppAccountExperiments","LWICometWhatsAppAccountTypeUtils","castToEnum","emptyFunction","getJSEnumSafe","lwiCometObjectiveReducer","react","useCometEntryPointDialog","useLWILoggerContext","useLWINoticesContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useEffect,l=b.useMemo;function a(a){var b=a.countryCode,e=a.objective,f=a.productFlow,g=a.whatsAppNumber,i=a.whatsAppNumberType,m=a.adAccountID,n=a.goal,o=a.legacyAdAccountID,p=a.pixelID;a=c("useLWILoggerContext")();var q=a.pageID,r=a.targetID;a=l(function(){return{ad_account_id:m,ads_lwi_goal:c("castToEnum")(n,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),e),page_id:q,post_id:r,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID}},[m,n,e,q,f,r]);var s=c("useCometEntryPointDialog")(c("LWICometCTAMultiStepVerificationDialogWrapper.entrypoint"),{pageID:q,skipAdsCount:!0}),t=s[0],u=babelHelpers["extends"]({},a,{whatsapp_country_code:b,whatsapp_number:g,whatsapp_number_type:i,whatsapp_phone_number:g});s=function(a){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},u,{event:a}))};var v={ctwaLoggerContextData:a,logStepChange:s,onVerificationSuccess:c("emptyFunction"),pageID:q,previouslyVerifiedNumber:g,requireBusinessNumber:!0,sendVerificationCodeAndNextStep:c("emptyFunction"),start:"BIZ_INSTALL"};k(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},u,{event:"whatsapp_business_app_modified_upsell_notice_shown"}))},[]);var w=d("CometRelay").useRelayEnvironment(),x=c("useLWIReducers")([c("lwiCometObjectiveReducer")]);a=c("useLWINoticesContext")();var y=a.notices;s=d("LWICometWhatsAppAccountExperiments").getIsWABizEnforcingExperimentEnabled(n,d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(i==null?void 0:i.toString()),null,"boost_post_create_flow",y);if(s)return null;a=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},u,{event:"whatsapp_business_app_modified_upsell_notice_clicked"})),t(babelHelpers["extends"]({},v,{countryCode:b,notices:y,whatsappDisplayNumberWithCountryCode:g,whatsappNumber:g,whatsappNumberWithCountryCode:g})),d("LWICometWhatsAppAccountTypeUtils").updateOnWhatsAppAccountUpgrade(w,q,function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},u,{event:"whatsapp_account_upgraded_to_business"})),d("CometRelay").commitLocalUpdate(w,function(a){a=a.get("client:root:lwi");a==null?void 0:a.setValue("MESSAGES","infer_adpro_objective",{inferred_goal_input:{ad_account_id:o,cta:{type:"WHATSAPP_MESSAGE"},page_id:q,pixel_id:p,target_id:r}})}),x({objective:"MESSAGES",offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"})})};i=function(){return h._("u5f00u53d1u66f4u591au6f5cu5728u5ba2u6237uff0cu4e14u4e0du7528u66f4u6539 WhatsApp u7535u8bddu53f7u7801u6216u5931u53bbu4efbu4f55u804au5929u3001u5f71u97f3u5185u5bb9u6216u8054u7cfbu4ebau4fe1u606fu3002u83b7u53d6 WhatsApp Business u5e94u7528u5b89u88c5u94feu63a5u3002")};s=function(){return h._("u7ba1u7406u4f60u7684u6d88u606fu5e76u63a8u8fdbu4e1au589eu957fu3002")};var z=function(){return h._("u53d1u9001u94feu63a5u5230 WhatsApp")};i=j.jsx(c("LWICometNoticeCard.react"),{body:i(),category:"WHATSAPP_BUSINESS",contextualMessageFooter:null,ctaButton:{primaryButton:{label:z(),onPress:a,type:"primary"}},header:s(),isPrimary:!0,testid:void 0});return j.jsx(c("LWICometRow.react"),{children:j.jsx(c("CometRowItem.react"),{expanding:!0,children:i})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,legacyAdAccountID:a.adAccountData.legacyAccountID,pixelID:a.pixelID}});g["default"]=e}),226);
-----
getAdsReachFrequencyError",["errorDesc","invariant","AdsAPICampaignPaths","AdsInterfacesLogger","AdsReachFrequencyConstants","AdsReachFrequencyLoggingConstants","ads-lib-formatters"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=c("ads-lib-formatters").createIntlNumberFormatter();function a(a,b,e){b={id:a,active:b};d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes[a]||i(0,12297,a);var f;switch(a){case d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.AUDIENCE_NOT_ALLOWLISTED_FOR_RMG:f={code:d("AdsReachFrequencyConstants").ApiErrorCodeMap.AUDIENCE_NOT_ALLOWLISTED_FOR_RMG,message:h._(function(a,b){return a._("Please update audience so that it only includes regions and countries that were whitelisted for RMG.")},{}),priority:1,path:c("AdsAPICampaignPaths").TARGETING.path};break;case d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.AUDIENCE_TOO_SMALL:e!=null&&e.minimum_reach!=null||i(0,1250);f={code:d("AdsReachFrequencyConstants").ApiErrorCodeMap.REACH_FREQUENCY_AUDIENCE_TOO_SMALL,message:h._(function(a,b){return a._("u8fd9u7ec4u53d7u4f17u4e2du7684u7528u6237u4ebau6570u4e0du8db3uff0cu672au8fbeu5230u6700u4f4eu8986u76d6u4ebau6570uff08{min_reach}u4ebauff09u3002u8bf7u7f16u8f91u53d7u4f17u8bbeu7f6euff0cu589eu52a0u8986u76d6u4ebau6570u3002",[a._param("min_reach",b.min_reach)])},{min_reach:j(e.minimum_reach)}),path:c("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path,priority:2};c("AdsInterfacesLogger").log({eventName:"audience_too_small",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR,data:{minimum_reach_audience:e.minimum_reach}});break;case d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.AUDIENCE_TOO_LARGE:e!=null&&e.maximum_reach!=null||i(0,1251);f={code:d("AdsReachFrequencyConstants").ApiErrorCodeMap.REACH_FREQUENCY_AUDIENCE_TOO_LARGE,message:h._(function(a,b){return a._("u53d7u4f17u89c4u6a21u8d85u51fau9884u8ba2u5e7fu544au7cfbu5217u7684u53d7u4f17u4ebau6570u4e0au9650uff08{max_reach}u4ebauff09u3002u8bf7u7f16u8f91u53d7u4f17u8bbeu7f6euff0cu51cfu5c11u8986u76d6u4ebau6570u3002",[a._param("max_reach",b.max_reach)])},{max_reach:j(e.maximum_reach)}),path:c("AdsAPICampaignPaths").TARGETING.GEO_LOCATIONS.path,priority:2};c("AdsInterfacesLogger").log({eventName:"audience_too_large",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR,data:{maximum_reach_audience:e.maximum_reach}});break;case d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.TRP_UNSUPPORTED_COUNTRIES:f={code:d("AdsReachFrequencyConstants").ApiErrorCodeMap.TRP_UNSUPPORTED_COUNTRIES,message:h._(function(a,b){return a._("u4f60u9009u62e9u7684u56fdu5bb6/u5730u533au65e0u6cd5u4e0eu76eeu6807u8986u76d6u7387u8d2du4e70u7c7bu578bu4e00u8d77u4f7fu7528u3002")},{}),priority:1,path:c("AdsAPICampaignPaths").TARGETING.path};break;case d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.INVALID_RF_SAC_TARGETING:c("AdsInterfacesLogger").log({eventName:"invalid_rf_sac_targeting",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR});f={code:d("AdsReachFrequencyConstants").ApiErrorCodeMap.INVALID_RF_SAC_TARGETING,message:h._(function(a,b){return a._("u66f4u65b0u5e7fu544au7ec4u4ee5u6ee1u8db3u8be5u7279u6b8au5e7fu544au7c7bu522bu7684u8981u6c42u3002u8fd9u5c06u66f4u65b0u4f60u7684u9884u4f30u6570u636eu3002")},{}),priority:1,path:c("AdsAPICampaignPaths").TARGETING.path};break}return babelHelpers["extends"]({},b,f)}g["default"]=a}),226);
-----
AdsReachFrequencyValidation",["errorCode","errorDesc","fbt","$InternalEnum","AdsAPICampaignPaths","AdsAPIObjectives","AdsAPITargetFields","AdsError","AdsInterfacesLogger","AdsPlacementAPISpecReaderUtils","AdsReachFrequencyConfig","AdsReachFrequencyConstants","AdsReachFrequencyLoggingConstants","AdsReachFrequencyMessages","AdsReachFrequencyUtils","DateConsts","DateTime","FBLogger","adsPlacementAPISpecReaderIsActiveFacebookPosition"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=b("$InternalEnum").Mirrored(["ALL","NONE","NO_PLACEMENT","NOT_DISPLAY_ONLY","RHC_AND_FEED","RHC_AND_DESKTOP","RHC_AND_MOBILE","RHC_AND_IG"]);function l(a){switch(a){case k.RHC_AND_DESKTOP:return j._("u4e0du80fdu540cu65f6u4f7fu7528u53f3u8fb9u680fu548cu684cu9762u7248u52a8u6001u7248u4f4d");case k.RHC_AND_MOBILE:return j._("u4e0du80fdu540cu65f6u4f7fu7528u53f3u8fb9u680fu548cu79fbu52a8u7248u4f4d");case k.RHC_AND_FEED:return j._("u5e7fu544au65e0u6cd5u540cu65f6u5728u53f3u8fb9u680fu3001u79fbu52a8u7248u548cu684cu9762u7248u52a8u6001u4e2du6295u653eu3002");case k.RHC_AND_IG:return j._("u4e0du80fdu540cu65f6u652fu6301u53f3u8fb9u680fu548c Instagram u7248u4f4d");case k.NO_PLACEMENT:return j._("u7248u4f4du4e0du53efu4e3au7a7a");case k.NOT_DISPLAY_ONLY:return i._(function(a,b){return a._("u9884u8ba2u8d2du4e70u7c7bu578bu4e0du80fdu548cu6240u9009u7248u4f4du7ec4u5408u540cu65f6u4f7fu7528u3002")},{});default:return null}}function a(a){var b=o(a);b&&c("AdsInterfacesLogger").log({eventName:"placement_empty",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR,data:{target_spec:a}});return[{id:d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.PLACEMENT_EMPTY,active:b,code:d("AdsReachFrequencyConstants").ApiErrorCodeMap.PLACEMENT_EMPTY,message:n(a)||"",priority:1}]}function e(a,b,e){a=a&&p(b)&&!e;a&&c("AdsInterfacesLogger").log({eventName:"instagram_account_not_set",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR,data:{instagram_account_id:e,target_spec:b}});return[{id:d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.INSTAGRAM_ACCOUNT_NOT_SET,active:a,code:1885768,message:i._(function(a,b){return a._("u8bf7u9009u62e9 Instagram u5e10u6237u3002")},{}),priority:1}]}function m(a){var b=a[c("AdsAPITargetFields").PUBLISHER_PLATFORMS];if(!b||b.length===0){c("FBLogger")("ads").mustfix("Empty placement should not be achievable");return k.NO_PLACEMENT}b=c("adsPlacementAPISpecReaderIsActiveFacebookPosition")(a,"right_hand_column");if(b){b=d("AdsPlacementAPISpecReaderUtils").isOnlyActivePublisherPlatform(a,"facebook")&&d("AdsPlacementAPISpecReaderUtils").isOnlyActivePublisherPlatformGroup(a,"facebook","facebook/right_column");if(!b)return k.NOT_DISPLAY_ONLY}return k.NONE}function n(a){return l(m(a))}function o(a){a=m(a);return a!==k.NONE}function f(a,b,e,f,g,h,k,l){a=a.getEquivalentInTimezone(e);b=b.getEquivalentInTimezone(e);var m=d("AdsReachFrequencyUtils").getPassedDays(c("DateTime").now(e),b);e=c("DateTime").now(e);m=d("AdsReachFrequencyUtils").isValidDaysToFinish(m,f,g||{});var n=d("AdsReachFrequencyMessages").getErrorInvalidDuration(f,g,l),o=d("AdsReachFrequencyMessages").getErrorInvalidEndDate(f,g),p=c("AdsReachFrequencyConfig").flexible_time_last_day_min_hours,r=c("AdsReachFrequencyConfig").flexible_time_first_day_max_hours;k=!k&&a.getUnixTimestamp()
AdsReachFrequencyErrorValidators",["errorCode","errorDesc","AdsCurrencyFormatter","AdsError","AdsInterfacesLogger","AdsReachFrequencyConstants","AdsReachFrequencyFormatsUtils","AdsReachFrequencyLoggingConstants","AdsReachFrequencyMetricUtils","ads-lib-formatters","adsReachFrequencyStateGetCurrency","adsReachFrequencyStateGetMetricInputValue","adsReachFrequencyStateGetNullableInputField","adsReachFrequencyStateIsConversionGoal","adsReachFrequencyStateIsVideoView15SecondsBuying","adsReachFrequencyStateIsVideoView2SecondsBuying","formatDate","nullthrows"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("ads-lib-formatters").createIntlNumberFormatter(),k=d("ads-lib-formatters").createIntlPercentFormatter(2,!0);function l(a,b,e){return{start_date:c("formatDate")(c("nullthrows")(a.startDate).instant,"M j, Y"),end_date:c("formatDate")(c("nullthrows")(a.endDate).instant,"M j, Y"),max_budget:d("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(c("adsReachFrequencyStateGetCurrency")(a),b),selected_budget:d("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(c("adsReachFrequencyStateGetCurrency")(a),e)}}function m(a,b,e){return{max_budget:d("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(c("adsReachFrequencyStateGetCurrency")(a),b),selected_budget:d("AdsCurrencyFormatter").formatCurrencyWithNumberDelimiters(c("adsReachFrequencyStateGetCurrency")(a),e)}}var n=[{id:(f=d("AdsReachFrequencyConstants")).ReachFrequencyErrorCodes.BUDGET_TOO_SMALL,code:1885432,getError:function(a){if(c("adsReachFrequencyStateGetNullableInputField")(a)!=="budget")return null;if(c("adsReachFrequencyStateIsConversionGoal")(a))return null;var b=c("adsReachFrequencyStateGetMetricInputValue")(a,"budget"),e=d("AdsReachFrequencyMetricUtils").getMinReachPoint(a),f=d("AdsReachFrequencyMetricUtils").adsReachFrequencyMetricValueForPoint(a,"budget",e)||0;if(b
-----
AdsReachFrequencyLoggingConstants",[],(function(a,b,c,d,e,f){a="rf_front_end_error";f.RF_FRONT_END_ERROR=a}),66);
-----
AdsReachFrequencyPredictionManager",["errorCode","errorDesc","AdsAPIObjectives","AdsCFActiveCampaignIDStore","AdsCFCampaignCreationMode","AdsCFCampaignCreationModeStore","AdsCFCampaignStateUtils","AdsCreationRfSetPredictionIdDataAction","AdsDataAtom","AdsError","AdsInterfacesLogger","AdsPlannerChangeMetricDataAction","AdsPlannerConstants","AdsPlannerCurrencyConverter","AdsPredictionDataManager","AdsPromotableAppStore","AdsReachFrequencyConstants","AdsReachFrequencyEnvironment","AdsReachFrequencyFlowActions","AdsReachFrequencyFlowSetPredictionPendingAction","AdsReachFrequencyFlowStore","AdsReachFrequencyGKUtils","AdsReachFrequencyHandlePredictionFailureAction","AdsReachFrequencyLoggingConstants","AdsReachFrequencyMetricUtils","AdsReachFrequencyOptimizationUtils","AdsReachFrequencyRevampErrorsUtils","AdsReachFrequencySavePreviousPointAction","AdsReachFrequencySetPredictionPreviewAction","AdsUEditorCampaignRFChangeDestinationAction","AdsUEditorCampaignReachFrequencyFlowSetPredictionIdAction","AdsUEditorHostIDs","ReachFrequencyEstimatesClient","adsCFCampaignStateSelector","adsReachFrequencyStateGetEvent","adsReachFrequencyStateGetMinimumReach","adsReachFrequencyStateGetNullableObjective","adsReachFrequencyStateGetPredictionAPISpec","adsReachFrequencyStateHasInitialPredictionRun","adsReachFrequencyStateIsConversionGoal","adsReachFrequencyStateIsErrorPresent","adsStorePromiseAsyncGetForSyncStore","getAdsReachFrequencyError","getByPath","isEmpty","promiseDone"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k;a=function(){function a(){var a=this;this.$4=function(e,g,h,i,j,k){if(g!==a.$1.get(e))return;g=c("AdsCFCampaignCreationModeStore").getState();if(g&&g.creationMode===c("AdsCFCampaignCreationMode").USING_EXISTING){g=c("AdsCFActiveCampaignIDStore").getState();var l=c("adsCFCampaignStateSelector")();l=d("AdsCFCampaignStateUtils").getFirstSelectedRecord(l,g);if(l.rf_prediction_id!=null&&l.rf_prediction_id!=="")return}g=b("AdsReachFrequencyFlowStore");g.onSetPredictionPending(e,!1);l=g.getState(e);c("adsReachFrequencyStateHasInitialPredictionRun")(l)||g.updateFieldsForID(e,{objectiveType:d("AdsReachFrequencyConstants").ObjectiveTypes.budget});g.removeErrors(e,[d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.PREDICTION_BACKEND_FAILED]);d("AdsReachFrequencyFlowActions").getPredictionSuccess(e,j,k,Date.now(),l.auctionEntryOptionIndex,i);a.$7(l);g.getState(e).link||a.$8(g.getState(e).objective,e,j);k=g.isCreateFlow();k&&c("AdsCreationRfSetPredictionIdDataAction").dispatch({predictionID:j.id},{line:"418",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id});c("AdsUEditorCampaignReachFrequencyFlowSetPredictionIdAction").dispatch({adgroupIDs:[],campaignIDs:[e],predictionDestinationID:j.destination_id,predictionID:j.id,hostID:c("AdsUEditorHostIDs").EDITING},{line:"423",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id});if(h.interpolateMode==="interpolate"){i=h.metric;k=h.value;h.planCurrency!=null&&h.planCurrency!==""&&i==="budget"&&(k=c("AdsPlannerCurrencyConverter").getInCurrency(k,h.planCurrency,c("getByPath")(l,["accountInfo","currency"],c("AdsPlannerConstants").DEFAULT_CURRENCY)));c("AdsPlannerChangeMetricDataAction").dispatch({campaignID:e,metric:i,metricValue:k,shouldCorrect:!0,shouldPredict:!1},{line:"444",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})}g.updateFieldsForID(e,{failedPredictionID:null})};this.$5=function(b,e,g,h,j){if(e!==a.$1.get(b))return;c("AdsInterfacesLogger").log({eventName:"prediction_backend_failed",eventCategory:d("AdsReachFrequencyLoggingConstants").RF_FRONT_END_ERROR});c("AdsReachFrequencyHandlePredictionFailureAction").dispatch({campaignID:b,errors:[{id:d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.PREDICTION_BACKEND_FAILED,active:!0,code:(g=h.error_subcode)!=null?g:1885300,message:(j=h.error_user_msg)!=null?j:i._(function(a,b){return a._("u51fau73b0u4e34u65f6u6027u6280u672fu95eeu9898uff0cu8bf7u5c1du8bd5u5237u65b0u9884u4f30u6570u636euff0cu6216u7a0du540eu518du56deu6765u3002")},{}),title:(e=h.error_user_title)!=null?e:"",priority:10}],failedPredictionID:c("getByPath")(h,["error_data","rf_prediction_id"],"-")},{line:"557",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})};this.$1=new Map();this.$2=new Map()}var e=a.prototype;e.predictRevamp=function(a,b,e,g){var h=this;d("AdsReachFrequencyRevampErrorsUtils").removeErrors(a,[d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.PREDICTION_BACKEND_FAILED,d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.RESERVATION_BACKEND_FAILED]);if(!a.startDate||!a.endDate)return;if(c("adsReachFrequencyStateIsErrorPresent")(a,d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.DATES_INVALID_START_TIME))return;if(a.objectiveType===d("AdsReachFrequencyConstants").ObjectiveTypes.reach){var i=a.reachValue||c("adsReachFrequencyStateGetMinimumReach")(a);this.$3(a,i,{reach:c("adsReachFrequencyStateGetMinimumReach")(a)})}a.prediction=void 0;(j||(j=c("AdsDataAtom"))).addPostDispatchCallback(function(){c("AdsReachFrequencyFlowSetPredictionPendingAction").dispatch({campaignID:b,isPending:!0},{line:"128",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})});var k=Date.now();this.$1.set(b,k);var l=g&&g.interpolateMode==="last"?d("AdsReachFrequencyMetricUtils").interpolateToLastPoint(a):g;i={onPredictionSuccess:function(a,c){return h.$4(b,k,l,e,a,c)},onPredictionError:function(a,c){return h.$5(b,k,l,a,c)}};d("ReachFrequencyEstimatesClient").quoteFromFlowStoreState(i,a,b,e)};e.predict=function(a,b,e){var g=this,h=this.$2.get(a);h&&window.clearTimeout(h);var i=d("AdsReachFrequencyGKUtils").isAccountEligibleForUpdatedDebounceBehavior();i&&(c("AdsReachFrequencyFlowStore").resetPrediction(a),(j||(j=c("AdsDataAtom"))).addPostDispatchCallback(function(){return c("AdsReachFrequencyFlowSetPredictionPendingAction").dispatch({campaignID:a,isPending:!0},{line:"205",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})}));h=window.setTimeout(function(){return g.$6(a,b,e,i)},b==="AdsReachFrequencyFlow.REFRESH_PREDICTION"?d("AdsReachFrequencyConstants").SHORT_PREDICTION_DELAY:d("AdsReachFrequencyConstants").PREDICTION_DELAY);this.$2.set(a,h)};e.$6=function(a,e,g,h){var i=this;this.$2.set(a,null);var j=b("AdsReachFrequencyFlowStore");j.validateDates(a);j.removeErrors(a,[d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.PREDICTION_BACKEND_FAILED,d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.RESERVATION_BACKEND_FAILED]);var k=j.getState(a);if(!k.startDate||!k.endDate)return;if(c("adsReachFrequencyStateIsErrorPresent")(k,d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.DATES_INVALID_START_TIME))return;if(k.objectiveType===d("AdsReachFrequencyConstants").ObjectiveTypes.reach){var l=k.reachValue||c("adsReachFrequencyStateGetMinimumReach")(k);j.onChangeReachValue(a,l,{reach:c("adsReachFrequencyStateGetMinimumReach")(k)})}h||(j.resetPrediction(a),c("AdsReachFrequencyFlowSetPredictionPendingAction").dispatch({campaignID:a,isPending:!0},{line:"279",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id}));k=j.getState(a);var m=Date.now();this.$1.set(a,m);var n=g!=null&&g.interpolateMode==="last"?d("AdsReachFrequencyMetricUtils").interpolateToLastPoint(k):g;l={onPredictionSuccess:function(b,c){return i.$4(a,m,n,e,b,c)},onPredictionError:function(b,c){return i.$5(a,m,n,b,c)}};d("ReachFrequencyEstimatesClient").quoteFromFlowStoreState(l,k,a,e)};e.$7=function(a){var b=c("getByPath")(a,["previous_prediction","is_conversion_goal"]),e=c("getByPath")(a,["previous_prediction","video_view_length_constraint"]),g=c("getByPath")(a,["previous_prediction","objective"]),h=c("adsReachFrequencyStateIsConversionGoal")(a),i=c("adsReachFrequencyStateGetNullableObjective")(a),j=i===c("AdsAPIObjectives").VIDEO_VIEWS?d("AdsReachFrequencyOptimizationUtils").getOptimizationFromEvent(c("adsReachFrequencyStateGetEvent")(a)):void 0;b===h&&g===i&&e===j&&d("AdsReachFrequencyFlowActions").showMetricsComparison();c("AdsReachFrequencySavePreviousPointAction").dispatch({isConversionGoal:b,objective:g,optimization:e,point:d("AdsReachFrequencyMetricUtils").getPoint(a)},{line:"486",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})};e.$8=function(a,b,d){a===c("AdsAPIObjectives").MOBILE_APP_INSTALLS&&c("promiseDone")(c("adsStorePromiseAsyncGetForSyncStore")(c("AdsPromotableAppStore"),function(){return c("AdsPromotableAppStore").getFor(d.account_id,d.destination_id)}),function(a){var d="",e=a.object_store_urls;if(e){var g=Object.keys(e);g.length>0&&(d=e[g[0]])}c("AdsUEditorCampaignRFChangeDestinationAction").dispatch({hostID:c("AdsUEditorHostIDs").EDITING,campaignIDs:[b],appStoreUrl:d,destinationID:a.id,destinationLabel:a.name,isApp:!0,shouldPredict:!0},{line:"516",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})})};e.getPredictionPreview=function(a,b,e){var g=c("getAdsReachFrequencyError")(d("AdsReachFrequencyConstants").ReachFrequencyErrorCodes.PREDICTION_BACKEND_FAILED,!0);g.message=i._(function(a,b){return a._("u51fau73b0u4e34u65f6u6027u6280u672fu95eeu9898uff0cu8bf7u5c1du8bd5u5237u65b0u9884u4f30u6570u636euff0cu6216u7a0du540eu518du56deu6765u3002")},{});var h=g.code||g.id;(k||(k=c("isEmpty")))(b)&&c("AdsReachFrequencySetPredictionPreviewAction").dispatch({prediction:null,error:new(c("AdsError"))(h,g.message)},{line:"597",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id});c("AdsReachFrequencySetPredictionPreviewAction").dispatch({prediction:null,error:null},{line:"607",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id});a=c("adsReachFrequencyStateGetPredictionAPISpec")(a,b,"PREVIEW");a.prediction_mode="BUDGET";b=function(a){a=a.data[0];c("AdsReachFrequencySetPredictionPreviewAction").dispatch({prediction:a,error:null},{line:"625",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id});c("AdsPredictionDataManager").load(a.id)};var j=function(a){var b;a=new(c("AdsError"))((b=a.error_subcode)!=null?b:h,(b=a.error_user_msg)!=null?b:g.message);c("AdsReachFrequencySetPredictionPreviewAction").dispatch({prediction:null,error:a},{line:"645",module:"AdsReachFrequencyPredictionManager.js",moduleID:f.id})};Object.assign(a,e);d("ReachFrequencyEstimatesClient").quote(a,b,j)};e.$3=function(a,b,e){b!==a.reachValue&&(a.reachValue=b,a.reprediction=e,c("AdsReachFrequencyEnvironment").isPlanner()&&(a.objectiveType=d("AdsReachFrequencyConstants").ObjectiveTypes.reach))};return a}();e=new a();g["default"]=e}),226);
-----
AnalyticsLogger.brands",["AdsPerfTiming","ApiErrorHandler.brands","AppLogger.brands","GraphAPI","LoggingConstants.brands","ads-lib-connect_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(){i(c("AppLogger.brands").CATEGORY.HOMEPAGE_V3)}function b(a){var b=c("AppLogger.brands").CATEGORY.HOMEPAGE_V4;i(b,{pane:a})}function e(a){var b=c("AppLogger.brands").CATEGORY.SETTINGS_V2;i(b,{pane:a})}function i(a,b){if(h)return;h=!0;var e=Date.now()-d("AdsPerfTiming").start;c("AppLogger.brands").logForAnalytics(a,"app_init",babelHelpers["extends"]({current_action_time:e,actual_event_time:Date.now(),extra:window.performance&&window.performance.now&&window.performance.now()},b))}function f(a,b){if(a===b)return;var d=c("AppLogger.brands").CATEGORY.SETTINGS_V2;c("AppLogger.brands").logForAnalytics(d,"change_pane",{previous_tab:a,tab:b})}function j(a){if(a&&a.type==="http"&&a.message==="unknown error")return;c("AppLogger.brands").logError("javascript_error",{error_message:a.message,error_type:a.name,stack_trace:a.stack,error_data:JSON.stringify(a)})}function k(a,b){if(!d("ads-lib-connect_DEPRECATED").isError(a))return;a=a.error;if(!a)return;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.API_CALL,"api_call_failed",{api_fields:b.fields&&JSON.stringify(b.fields),api_endpoint:l(b.endpoint),raw_endpoint:b.endpoint,error_code:a.code,error_sub_code:a.subcode,error_message:a.message,error_type:a.type})}function l(a){if(!a||a.length===0||a==="/")return a;a[0]==="/"&&(a=a.slice(1));a[a.length-1]==="/"&&(a=a.slice(0,-1));var b,c;b=/^[a-z/\_]+$/;c=a.match(b);if(c)return c[0];b=/^[0-9\_]+$/;c=a.match(b);if(c)return d("LoggingConstants.brands").GET_OBJECT_API_ENDPOINT;b=/^[0-9-]+$/;c=a.match(b);if(c)return d("LoggingConstants.brands").GET_OBJECT_BY_NEGATIVE_ID_API_ENDPOINT;b=/^act\_[0-9]+/(.+)+$/;c=a.match(b);if(c)return c[1];b=/^[0-9]+/(.+)+$/;c=a.match(b);if(c)return c[1];b=/.*facebook.com/[0-9]*/*(.+)?/;c=a.match(b);return c?c[1]:a}c("GraphAPI").hasCustomErrorHandler()||c("GraphAPI").addErrorHandler(c("ApiErrorHandler.brands").setDefaultHandler(j).handleApiError);g.logHomePageInteractive=a;g.logNewHomePageInteractive=b;g.logSettingsPageInteractive=e;g.logInteractive=i;g.logPaneChange=f;g.logJSError=j;g.logApiCall=k;g._getAPIEndPoint=l}),98);
-----
LoggingConstants.brands",[],(function(a,b,c,d,e,f){a="get_object";b="get_object_by_negative_id";f.GET_OBJECT_API_ENDPOINT=a;f.GET_OBJECT_BY_NEGATIVE_ID_API_ENDPOINT=b}),66);
-----
AdsDeliverySpecReducer",["invariant","AccountAttributionEvent","AdsAPIBidStrategies","AdsAPIBillingEvents","AdsAPICampaignRecord","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsAppUtils","AdsBidConstraintsUtils","AdsBidStrategyLoggingConstants","AdsBidStrategyLoggingUtils","AdsBiddingOptimizationUtils","AdsBulkValueUtils","AdsBuyingTypes","AdsCampaignBudgetPluginResolver","AdsCampaignOptimizationPluginResolver","AdsClickToMessageSABRBudgetDefaultStoreUtils","AdsConversionWindowUtils","AdsCostStrategyUtils","AdsDeliveryActionType","AdsDeliveryContainerUtils","AdsDeliverySpecTransformerUtil_DEPRECATED","AdsDeliverySpecTransformer_DEPRECATED","AdsDeliverySpecUtils","AdsEditingCampaignEditorContext","AdsEmptyValue","AdsEngagedVideoViewGKUtils","AdsFrequencyControlEditorUtils","AdsMessagesCampaignBudgetPluginEndDateCommon","AdsMutators","AdsOptimizationUtils","AdsPFRGuidanceUnifiedEventLoggerUtils","AdsPromotedObjectTypes","AdsSABRSelector","AdsUniformValue","ClickToMessageCTMPerformanceFeatureGating","DateTime","DayPartingUtils","adsBillingEventGetDefaultDEPRECATED","adsCampaignConvertUSDBudgetToCurrency","adsCampaignGetDefaultEndDate","adsCampaignGetISODateTimeString","adsCampaignGetScheduleLengthsDays","adsDeliveryHasViewAttrWindowInBulkAttrSpec","adsDeliveryUpdateAttrWindowInBulkSpec","adsUEditorAccountCurrencySelector","adsUEditorCampaignCTXBudgetDurationRecommendationSelectors","adsUEditorCampaignPublishStatusSelector","adsUEditorSelectedCampaignScheduleDaysDurationSelector","immutable","isTruthy","justknobx"],(function(a,b,c,d,e,f,g,h){"use strict";var i=new Date(2019,6,31);function j(a,b){return a.map(function(a){return a.merge(b)})}function k(a,b){a=a.getValues().map(function(a){return j(a,b)});return d("AdsBulkValueUtils").aggregate(a)}function l(a,b,c){b=d("AdsConversionWindowUtils").canUseRBAPhase1(b);return!b?a:m(a,c)}function m(a,b){b=b?b:d("AdsOptimizationUtils").getDefaultAttributionWindowDays();var e=a.get("attribution_spec");return a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(e,c("AccountAttributionEvent").CLICK_THROUGH,b))}function n(a,b){return b!=="NONE_EXPLORATION"&&b!=="LIMITED_EXPLORATION"&&b!=="EXTENDED_EXPLORATION"?a:a.set("full_funnel_exploration_mode",new(c("AdsUniformValue"))(b))}function o(a,b,c){b=d("AdsConversionWindowUtils").canUseRBAPhase1(b);return!b?a:p(a,c)}function p(a,b){var d=a.get("attribution_spec");if(b)return a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(d,c("AccountAttributionEvent").VIEW_THROUGH,b));b=c("adsDeliveryHasViewAttrWindowInBulkAttrSpec")(d);return b?a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(d,c("AccountAttributionEvent").VIEW_THROUGH,0)):a}function q(a,b,e,f,g){if(!d("AdsEngagedVideoViewGKUtils").getGkCheckWithoutExposure(b)||g===!0)return a;b=a.get("attribution_spec");g=d("AdsBulkValueUtils").getUniformValue(e);e=d("AdsBulkValueUtils").getUniformValue(f);if(g!==c("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS)return a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(b,c("AccountAttributionEvent").ENGAGED_VIDEO_VIEW,0));return e===c("AdsPromotedObjectTypes").PIXEL?a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(b,c("AccountAttributionEvent").ENGAGED_VIDEO_VIEW,1)):a}function r(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("is_autobid"));return b?u(a):a}function s(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy"));return b&&b!==c("AdsAPIBidStrategies").LOWEST_COST_WITH_BID_CAP?u(a):a}function t(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy"));switch(b){case c("AdsAPIBidStrategies").LOWEST_COST_WITH_MIN_ROAS:case c("AdsAPIBidStrategies").COST_CAP:b={billing_event:new(c("AdsUniformValue"))(c("AdsAPIBillingEvents").IMPRESSIONS)};return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(b)));default:return a}}function u(a){var b={delivery_type:new(c("AdsUniformValue"))("standard"),scheduling:{type:d("AdsDeliverySpecTransformerUtil_DEPRECATED").fromApiSpec.getSchedulingType(a.get("pacing_type"))}};return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(b)))}function v(a,b,c,e,f){return d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(a).some?y(a,b,c,e,void 0,!1):x(a,b,c,e,f)}function w(a,b,c,e,f){f=d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(a).some?!1:!!f;return x(a,b,c,e,f,!0)}function x(a,b,e,f,g,h){var i,j=!!(i=d("AdsBulkValueUtils")).getUniformValue(a.get("is_autobid")),k=i.getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE),l=i.getUniformValue(a.get("optimization_goal")),m=i.getUniformValue(a.get("billing_event"));i=i.getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);k=d("AdsBiddingOptimizationUtils").shouldFlipAutobidValue(j,c("AdsBuyingTypes").AUCTION,k,i,l,m);h===!0&&k&&d("AdsBidStrategyLoggingUtils").logFieldChange(c("AdsBidStrategyLoggingConstants").FLIP_IS_AUTOBID,"change_billing_event",a.get("id").getValues().toString());i=k?a.merge(c("immutable").fromJS({is_autobid:new(c("AdsUniformValue"))(!j)})):a;m=l===c("AdsAPIOptimizationGoals").APP_INSTALLS?!1:void 0;return y(i,b,e,f,m,g)}function y(a,b,e,f,g,h){var i=d("AdsBulkValueUtils").getUniformValue(a.get("is_autobid")),j={};if(i)a=a["delete"]("bid_amount"),h&&(j.bid_strategy=new(c("AdsUniformValue"))(c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP));else{var k=(i=d("AdsBulkValueUtils")).getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE),l=i.getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE),m=i.getUniformValue(a.get("optimization_goal"));i=i.getUniformValue(a.get("billing_event"));k=c("AdsCampaignOptimizationPluginResolver").resolve({objective:k,promotedObjectType:l}).getDefaultBidAmount(m,i,new(c("AdsAPICampaignRecord"))(a),b.currency,b.business_country_code);l=d("AdsOptimizationUtils").changeUSDCentToLocalCurrency(k,b.account_currency_ratio_to_usd,b.currency);j.bid_amount=new(c("AdsUniformValue"))(l)}a=a.merge(c("immutable").fromJS(j));return g===!1?a:z(b,a,e,f,h)}function z(a,b,e,f,g){var h,i=(h=d("AdsBulkValueUtils")).getUniformValueOrDefault(b.get("is_autobid"),!1);e=h.getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE);var j=h.getUniformValue(b.get("optimization_goal")),k=h.getUniformValue(b.get("billing_event"));h=h.getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);f=c("AdsCampaignOptimizationPluginResolver").resolve({objective:e,promotedObjectType:h});h=d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(b);h=h.some;var l={},m=!1;e&&j&&k&&d("AdsBiddingOptimizationUtils").canUseAveragePricePacing(f,j,k,h,a)&&(m=d("AdsBiddingOptimizationUtils").getIsAveragePricePacingValue(i));l.is_average_price_pacing=new(c("AdsUniformValue"))(m);if(g){e=d("AdsCostStrategyUtils").getBidStrategyByLegacyFields(i,m);l.bid_strategy=new(c("AdsUniformValue"))(e)}return b.merge(c("immutable").fromJS(l))}function A(a){var b=D(a);if(b==="lifetime")return a;b=a.get("pacing_type").map(function(a){return a.toArray()});b=d("DayPartingUtils").setBulkDayParting(b,!1).map(function(a){return c("immutable").fromJS(a)});b={pacing_type:b,adset_schedule:new(c("AdsUniformValue"))(c("immutable").List([]))};return a.merge(c("immutable").fromJS(b))}function B(a){return D(a)==="daily"?a.set("recurring_budget_semantics",new(c("AdsUniformValue"))(!0)):a["delete"]("recurring_budget_semantics")}function C(a,b,e,f){if(!b||!e)return a;var g=a.get("daily_budget"),h=a.get("lifetime_budget");g=g.getValues().some(function(a){return a>0});h=h.getValues().some(function(a){return a>0});if(g&&h||!g&&!h)return a;g=D(a);if(g==="daily")return a;h=a.get("end_time");if(h!=null&&!(h instanceof c("AdsEmptyValue")))return a;g=a.get("start_time");h=d("AdsBulkValueUtils").aggregate(g.getValues().map(function(a){return c("DateTime").fromISOString(a,b.timezone_id).toDate()}));d("AdsBulkValueUtils").assertAllOrNothingNull([e,f]);d("AdsBulkValueUtils").assertAllSameLength([e,f]);g=d("AdsBulkValueUtils").parallelIterator(function(a){var b=a[0];a=a[1];return c("AdsCampaignBudgetPluginResolver").resolve({objective:b,promotedObjectType:a})},[e,f]);var i=c("adsCampaignGetScheduleLengthsDays")();d("AdsBulkValueUtils").assertAllOrNothingNull([h,g]);d("AdsBulkValueUtils").assertAllSameLength([h,g]);e=d("AdsBulkValueUtils").parallelIterator(function(a){var d=a[0];a=a[1];return c("adsCampaignGetISODateTimeString")(c("adsCampaignGetDefaultEndDate")(d,null,i,a),b.timezone_offset_hours_utc)},[h,g]);return a.set("end_time",e)}function D(a){return+d("AdsBulkValueUtils").getUniformValue(a.get("daily_budget"))?"daily":"lifetime"}function E(a){return D(a)==="lifetime"?d("AdsDeliverySpecUtils").getUniformValue(a,"lifetime_budget"):d("AdsDeliverySpecUtils").getUniformValue(a,"daily_budget")}function F(a,b,e,f,g,i){e=(g=d("AdsBulkValueUtils")).getUniformValueOrDefault(e,null);b=g.getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);var j=g.getUniformValueOrDefault(a.get("optimization_goal"),null);g=g.getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);f=c("adsBillingEventGetDefaultDEPRECATED")(e,b,j,g,i);e=d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(a);b=e.some;j=c("immutable").fromJS({billing_event:new(c("AdsUniformValue"))(f),bidding:{is_autobid:b?void 0:new(c("AdsUniformValue"))(!0),is_average_price_pacing:new(c("AdsUniformValue"))(!1)}});g=a.get("bid_constraints");g instanceof c("immutable").Map&&h(0,1891);i=d("AdsBidConstraintsUtils").bulkBidConstraintsHaveROASAverageFloor(g);if(i){e=d("AdsBidConstraintsUtils").deleteROASAveragefloorFrombulkBidConstraints(g);a=a.set("bid_constraints",e)}return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(j))["delete"]("bid_amount")}function G(a,b){if(b!==c("AdsAPIOptimizationGoals").QUALITY_LEAD&&b!=="MIXED")return a;b=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));if(b===c("AdsAPIOptimizationGoals").QUALITY_LEAD)return a;b=a.get("promoted_object");if(b==null)return a;var e=b.get("page_id"),f=b.get("pixel_id");b=b.get("offline_conversion_data_set_id");if(e instanceof c("AdsEmptyValue"))return a;if(f instanceof c("AdsEmptyValue")&&b instanceof c("AdsEmptyValue"))return a;e=c("immutable").fromJS({promoted_object:{pixel_id:void 0,offline_conversion_data_set_id:void 0}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(e))}function H(a,b,e){b=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);var f=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));e=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsPromotedObjectTypes").NONE);if(c("AdsAppUtils").isRoasOptimization(b,f,e)){var g=c("immutable").fromJS({promoted_object:{custom_event_type:new(c("AdsUniformValue"))("PURCHASE")}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(g))}if(c("AdsAppUtils").isInAppValueOptimization(b,f,e)){g=c("immutable").fromJS({promoted_object:{custom_event_type:new(c("AdsUniformValue"))("AD_IMPRESSION")}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(g))}if(d("AdsDeliveryContainerUtils").isConversionsRoasOptimization(b,f,e)){g=a.get("promoted_object");if(g==null)return a;f=g.get("pixel_id");if(!(f instanceof c("AdsEmptyValue"))&&f instanceof c("AdsUniformValue")){g=c("immutable").fromJS({promoted_object:{pixel_id:f,custom_event_type:new(c("AdsUniformValue"))("PURCHASE")}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(g))}return a}f=c("AdsCampaignOptimizationPluginResolver").resolve({objective:b,promotedObjectType:e});return f.getCanHaveCustomEventType()?a:a.set("promoted_object",(g=a.get("promoted_object"))==null?void 0:g["delete"]("custom_event_type"))}function I(a,b,e,f,g){b=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);e=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsPromotedObjectTypes").NONE);var h=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));if((h===c("AdsAPIOptimizationGoals").VIDEO_VIEWS||h===c("AdsAPIOptimizationGoals").THRUPLAY)&&!g)return a;g=c("AdsCampaignOptimizationPluginResolver").resolve({objective:b,promotedObjectType:e}).getDefaultFrequencyControlSpecs(h,e,f);b=c("immutable").fromJS({frequency_control_specs:new(c("AdsUniformValue"))(c("immutable").fromJS(g))});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(b))}function J(a,b){var e=a.get("adset_schedule");if(e==null||e instanceof c("AdsEmptyValue")||e instanceof c("AdsUniformValue")&&e.getValue().size===0)return a;e=d("AdsBulkValueUtils").mapBulkValue(e,function(a){var c=a;a.forEach(function(a,d){c=c.set(d,a.set("timezone_type",b))});return c});return a.set("adset_schedule",e)}function K(a,b){var e=a.get("pacing_type");e=d("AdsBulkValueUtils").mapBulkValue(e,function(a){a=d("DayPartingUtils").setPacingType(a.toJS(),b==="no_pacing",b==="probabilistic_pacing_v2");return c("immutable").List(a)});return a.set("pacing_type",e)}function L(a,b,e){e=d("AdsBulkValueUtils").getUniformValue(e,null);if(e!=null){var f=a.get("attribution_spec");f=c("adsDeliveryUpdateAttrWindowInBulkSpec")(f,b,e);return a.set("attribution_spec",f)}return a}function M(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy")),e=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal")),f=d("AdsBulkValueUtils").getUniformValue(a.get("is_average_price_pacing"),null),g={};if(b){b=d("AdsCostStrategyUtils").getBidLegacyFieldsValueByBidStrategy(b,e);e=b.MappedIsAutobid;b=b.MappedIsAveragePricePacing;g.is_autobid=new(c("AdsUniformValue"))(e);f!==null&&(g.is_average_price_pacing=new(c("AdsUniformValue"))(b))}a=a.merge(c("immutable").fromJS(g));return a}function N(a,b,e,f,g,h){if(g){e=(g=d("AdsBulkValueUtils")).getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE);f=g.getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);var i=g.getUniformValue(a.get("optimization_goal"));g=g.getUniformValue(a.get("billing_event"));e=c("AdsCampaignOptimizationPluginResolver").resolve({objective:e,promotedObjectType:f}).getDefaultBidAmount(i,g,new(c("AdsAPICampaignRecord"))(a),b.currency,b.business_country_code);f=d("AdsOptimizationUtils").changeUSDCentToLocalCurrency(e,b.account_currency_ratio_to_usd,b.currency);a=a.set("bid_amount",new(c("AdsUniformValue"))(f));return a}i=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy"));if(h&&i!==c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP){a=a.set("bid_amount",new(c("AdsUniformValue"))(h));return a}g=a.get("bid_amount");g&&i===c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP&&(a=a["delete"]("bid_amount"));h&&i!==c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP&&(a=a.set("bid_amount",new(c("AdsUniformValue"))(h)));return a}function O(a){var b=a.get("bid_constraints");b instanceof c("immutable").Map&&h(0,1891);b=d("AdsBulkValueUtils").getUniformValue(d("AdsBidConstraintsUtils").getROASAverageFloorBulk(b));b&&(a=a["delete"]("bid_amount")["delete"]("is_autobid"));return a}function P(a,b,e,f){b=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);var g=d("AdsBulkValueUtils").getUniformValueOrDefault(a.get("optimization_goal"),c("AdsAPIOptimizationGoals").NONE);b=d("AdsDeliveryContainerUtils").isEligibleForVVDeprecationChange(b,g);g=a.get("end_time");if(f&&b&&(g==null||g instanceof c("AdsEmptyValue"))){f=e.timezone_offset_hours_utc;b=new(c("AdsUniformValue"))(c("adsCampaignGetISODateTimeString")(i,f));a=a.set("end_time",b)}return a}function Q(a,b,e){var f=d("AdsBulkValueUtils").getUniformValueOrDefault(b.get("optimization_goal"),c("AdsAPIOptimizationGoals").NONE),g=d("adsUEditorCampaignCTXBudgetDurationRecommendationSelectors").shouldEnableCTXBudgetDurationDefaultQEParamsSelector(c("AdsEditingCampaignEditorContext")),h=g.isCBOEnabled,i=g.destinationType,j=g.objective;g=g.pageID;g=(g=d("AdsClickToMessageSABRBudgetDefaultStoreUtils").getCTXSimilarAdvertiserBudgetRecommendationByDestination(g,i))==null?void 0:g.budget;if(!c("isTruthy")(g))return b;var k=null;f===c("AdsAPIOptimizationGoals").CONVERSATIONS&&d("ClickToMessageCTMPerformanceFeatureGating").enableCTXAMSABRBudgetDefault(h,i,j,f,!0)?k=g:e===c("AdsAPIOptimizationGoals").CONVERSATIONS&&d("ClickToMessageCTMPerformanceFeatureGating").enableCTXAMSABRBudgetDefault(h,i,j,c("AdsAPIOptimizationGoals").CONVERSATIONS,!1)&&(k=d("AdsMessagesCampaignBudgetPluginEndDateCommon").DEFAULT_DAILY_BUDGET);if(c("isTruthy")(k)){f=c("adsCampaignConvertUSDBudgetToCurrency")(a.currency,k);b=b.set("daily_budget",new(c("AdsUniformValue"))(f));b=b.set("lifetime_budget",new(c("AdsUniformValue"))(0))}return b}function R(a,b){a=a;a=a.set("daily_budget",new(c("AdsUniformValue"))(b));return a.set("lifetime_budget",new(c("AdsUniformValue"))(0))}function S(a,b){a=a;a=a.set("daily_budget",new(c("AdsUniformValue"))(0));return a.set("lifetime_budget",new(c("AdsUniformValue"))(b))}function T(a){var b=d("AdsDeliverySpecUtils").getUniformValue(a,"id");if(b==null)return a;var e=c("adsUEditorCampaignPublishStatusSelector")(c("AdsEditingCampaignEditorContext")).get(b),f=d("AdsSABRSelector").AdsSABRSelector(c("AdsEditingCampaignEditorContext"));f=f.budget;if(f==null||e==null||!(e.hasDraft||e.isNew))return a;e=U(a,f);f=e.budgetMode;var g=e.budgetRecommended,h=e.currency,i=e.defaultBudgetBefore;e=e.durationInDays;if(g==null)return a;d("AdsPFRGuidanceUnifiedEventLoggerUtils").logInteraction({adObjectIDs:[(b=b)!=null?b:""],adObjectLevel:5,recommendationName:"similar_advertiser_budget_recommendation",message:JSON.stringify({budgetMode:f,budgetRecommended:g,currency:h,defaultBudgetBefore:i,durationInDays:e})});b=a;f==="lifetime"?b=S(b,g):b=R(b,g);return b}function U(a,b){var e=c("adsUEditorAccountCurrencySelector")();b=c("adsCampaignConvertUSDBudgetToCurrency")(e,b);var f=D(a),g=d("adsUEditorSelectedCampaignScheduleDaysDurationSelector").adsUEditorSelectedCampaignScheduleDaysDurationSelector(c("AdsEditingCampaignEditorContext"));b=f==="lifetime"?b*g:b;return{budgetMode:f,budgetRecommended:b,currency:e,defaultBudgetBefore:E(a),durationInDays:g}}function V(a){if(!c("justknobx")._("2357"))return!1;var b=d("AdsSABRSelector").AdsSABRSelector(c("AdsEditingCampaignEditorContext"));b=b.budget;if(b==null)return!1;a=U(a,b);b=a.budgetRecommended;a=a.defaultBudgetBefore;return a!==b}function a(a,b){var e=b.data;b=b.type;switch(b){case c("AdsDeliveryActionType").SET_DEFAULT_SPEC:if(V(a)){b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return T(a)});return b(a)}return c("immutable").fromJS(e.spec);case c("AdsDeliveryActionType").CHANGE_ADSET_SCHEDULE_TIMEZONE_TYPE:return J(a,e.timezoneType);case c("AdsDeliveryActionType").CHANGE_ADSET_SCHEDULE:case c("AdsDeliveryActionType").CHANGE_SCHEDULE:case c("AdsDeliveryActionType").CHANGE_SCHEDULE_MODE_CREATION:case c("AdsDeliveryActionType").CHANGE_SCHEDULING_TYPE:case c("AdsDeliveryActionType").TOGGLE_SCHEDULE_MODE_MANAGEMENT:return a.merge(c("immutable").fromJS(e.spec));case c("AdsDeliveryActionType").CHANGE_CONVERSION_WINDOW:case c("AdsDeliveryActionType").CHANGE_VIEW_CONVERSION_WINDOW:return L(a,e.event_type,e.window_days);case c("AdsDeliveryActionType").CHANGE_CUSTOM_EVENT_TYPE:return a.mergeDeep(c("immutable").fromJS(e.spec));case c("AdsDeliveryActionType").CHANGE_BID_AMOUNT:return!d("AdsBulkValueUtils").getUniformValue((b=e.spec)==null?void 0:b.bid_amount)?a:a.merge(c("immutable").fromJS(e.spec));case c("AdsDeliveryActionType").CHANGE_BID_CONSTRAINTS:b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return O(a)});return b(a);case c("AdsDeliveryActionType").CHANGE_BID_STRATEGY:b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return M(a)},function(a){return N(a,e.account,e.objective,e.promotedObjectType,e.shouldSetDefaultBidAmount,e.bidAmount)},function(a){return s(a)},function(a){return t(a)},function(a){return l(a,e.account,e.defaultClickConversionWindowLength)},function(a){return o(a,e.account,e.defaultViewConversionWindowLength)});return b(a);case c("AdsDeliveryActionType").CHANGE_BUDGET_AMOUNT:if(!d("AdsBulkValueUtils").getUniformValue(e==null?void 0:(b=e.spec)==null?void 0:(b=b.budget)==null?void 0:b.amount))return a;b=d("AdsMutators").chain(function(a){return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(e.spec)))});return b(a);case c("AdsDeliveryActionType").CHANGE_BILLING_EVENT:b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return w(a,e.account,e.objective,e.promotedObjectType,e.canUseBidStrategyInCallback)},function(a){return r(a)});b=b(a);d("AdsBidStrategyLoggingUtils").logBidStrategyChangeByBillingEvent("change billing event",a,b);return b;case c("AdsDeliveryActionType").CHANGE_DELIVERY_TYPE:b=d("AdsMutators").chain(function(a){return K(a,e.spec.pacing_type)});return b(a);case c("AdsDeliveryActionType").CHANGE_FREQUENCY_CONTROL_INTERVAL:b=e.spec.frequency_control_specs;var f=a.get("frequency_control_specs"),g=a.get("optimization_goal"),h;b.interval_days===null&&b.max_frequency===null?h=a.merge(c("immutable").fromJS({frequency_control_specs:new(c("AdsUniformValue"))(null)})):f.length===0||f.getValues().every(function(a){return a==null})?h=a.merge(c("immutable").fromJS({frequency_control_specs:new(c("AdsUniformValue"))(c("immutable").fromJS(d("AdsFrequencyControlEditorUtils").getFrequencyControlSpecs(b.interval_days,b.max_frequency,d("AdsBulkValueUtils").getUniformValue(g))))})):h=a.merge(c("immutable").fromJS({frequency_control_specs:k(f,c("immutable").fromJS(e.spec.frequency_control_specs))}));return h;case c("AdsDeliveryActionType").CHANGE_BUDGET_MODE:b=d("AdsMutators").chain(function(a){return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(e.spec)))},function(a){return A(a)},function(a){return B(a)},function(a){return C(a,e.account,e.objective,e.promotedObjectType)});return b(a);case c("AdsDeliveryActionType").CHANGE_OPTIMIZATION_GOAL:g=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return F(a,e.objective,e.buying_type,e.promotedObjectType,e.canUseBidStrategyInCallback,e.account)},function(a){return G(a,e.priorOptimizationGoal)},function(a){return v(a,e.account,e.objective,e.promotedObjectType,e.canUseBidStrategyInCallback)},function(a){return I(a,e.objective,e.promotedObjectType,e.account,e.isNewCampaign)},function(a){return r(a)},function(a){return m(a,e.defaultConversionWindowLength)},function(a){return p(a,e.defaultViewConversionWindowLength)},function(a){return q(a,e.account,e.optimizationGoal,e.promotedObjectType,e.isASACampaign)},function(a){return n(a,e.defaultFullFunnelExplorationMode)},function(a){return H(a,e.objective,e.promotedObjectType)},function(a){return t(a)},function(a){return P(a,e.objective,e.account,e.isNewCampaign)},function(a){return Q(e.account,a,e.priorOptimizationGoal)});return g(a);default:return a}}g.reduce=a}),98);
-----
StoriesCardHeaderOwnerInfo.react",["CometPressable.react","CometProfileVerificationBadge.react","CometRelativeTimestamp.react","CometRelay","CometRow.react","CometRowItem.react","FDSIcon.react","FDSTextWithBadge.react","FriendEditFilled12.svg.react","FriendListCometCloseFriendsBadge","FriendListCometCloseFriendsGating","FriendsFilled12.svg.react","GlobeAmericasFilled12.svg.react","JSResourceForInteraction","QuestionCircleFilled12.svg.react","SVGIcon","StoriesBehaviorHelpContext","StoriesCardHeaderOwnerInfo_attribution.graphql","StoriesCardHeaderOwnerInfo_owner.graphql","StoriesLoggerSession","StoriesLoggingConstants","StoriesPauseReasons","StoriesSubscribeCTA.react","StoriesSuspensePauseContext","TetraText.react","formatDate","gkx","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;e.useCallback;var l=e.useContext,m=e.c,n=h!==void 0?h:h=b("StoriesCardHeaderOwnerInfo_owner.graphql"),o=i!==void 0?i:i=b("StoriesCardHeaderOwnerInfo_attribution.graphql"),p={ownerInfoAlignment:{alignItems:"x1pha0wt",$$css:!0},ownerNamePressable:{maxWidth:"x193iq5w",$$css:!0},resetFlexBasis:{flexBasis:"xdl72j9",$$css:!0}},q=c("JSResourceForInteraction")("StoriesCardHeaderAudienceDialog.react").__setRef("StoriesCardHeaderOwnerInfo.react");function a(a){var b,e,f=m(54),g=a.attribution,h=a.audienceMode,i=a.creationTime,j=a.isVideoBroadcast,r=a.onOwnerClick;a=a.owner;a=d("CometRelay").useFragment(n,a);g=d("CometRelay").useFragment(o,g);var s=c("useCometLazyDialog")(q),t=s[0];f[0]===Symbol["for"]("react.memo_cache_sentinel")?(s=function(a){var b=d("SVGIcon").svgIcon(c("QuestionCircleFilled12.svg.react"));bb2:switch(a){case"CUSTOM":b=d("SVGIcon").svgIcon(c("FriendEditFilled12.svg.react"));break bb2;case"FRIENDS":b=d("SVGIcon").svgIcon(c("FriendsFilled12.svg.react"));break bb2;case"PUBLIC":b=d("SVGIcon").svgIcon(c("GlobeAmericasFilled12.svg.react"))}return k.jsx(c("FDSIcon.react"),{color:"white",icon:b,size:12})},f[0]=s):s=f[0];s=s;if(f[1]!==a){var u;u=(u=a)!=null?u:{};f[1]=a;f[2]=u}else u=f[2];u=u;var v=u.gender,w=u.id,x=u.is_verified,y=u.name;u=u.url;var z=a==null?void 0:(b=a.profile_picture)==null?void 0:b.uri;b=a==null?void 0:(b=a.delegate_page)==null?void 0:b.id;e=(a==null?void 0:(e=a.delegate_page)==null?void 0:(e=e.woodhenge_creator_info)==null?void 0:(e=e.viewer_entrypoint_eligibility)==null?void 0:e.is_eligible)===!0;a=(a==null?void 0:(a=a.delegate_page)==null?void 0:(a=a.woodhenge_creator_info)==null?void 0:(a=a.viewer_active_subscription_entitlement)==null?void 0:a.subscription_entitlement_status)==="ACTIVE";var A=l(c("StoriesBehaviorHelpContext")),B;f[3]!==A?(B=A.getCloseFriendsListId(),f[3]=A,f[4]=B):B=f[4];A=B;B=l(c("StoriesSuspensePauseContext"));var C=B.setPause;f[5]!==C||f[6]!==t||f[7]!==h||f[8]!==v||f[9]!==y||f[10]!==z?(B=function(){var a=function(){C(!1,d("StoriesPauseReasons").AUDIENCE_DIALOG)};C(!0,d("StoriesPauseReasons").AUDIENCE_DIALOG);t({audienceMode:h,gender:v,name:y,profilePicUri:z,unPause:a})},f[5]=C,f[6]=t,f[7]=h,f[8]=v,f[9]=y,f[10]=z,f[11]=B):B=f[11];B=B;f[12]!==h||f[13]!==B?(s=h!=null&&k.jsx("div",{className:"x1rg5ohu xsgj6o6 x1n2onr6 x17wnkk5",children:k.jsx(c("CometPressable.react"),{label:h,onPress:B,children:s(h)})}),f[12]=h,f[13]=B,f[14]=s):s=f[14];B=s;s=null;if(i!=null)if(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE){var D=i*1e3,E;f[15]!==D?(E=c("formatDate")(new Date(D),"M j",{utc:!0}),f[15]=D,f[16]=E):E=f[16];s=E}else{D=i*1e3;f[17]!==D?(E=new Date(D),f[17]=D,f[18]=E):E=f[18];f[19]!==E?(i=k.jsx(c("CometRelativeTimestamp.react"),{date:E,format:"minimized"}),f[19]=E,f[20]=i):i=f[20];s=i}f[21]!==y||f[22]!==u||f[23]!==r?(D=y!=null&&k.jsx("div",{className:"x17z8epw x78zum5 x1q0g3np xdj266r x11i5rnm xat24cr x1mh8g0r x3zf81a xeaf4i8",children:k.jsx(c("CometPressable.react"),{display:"block",linkProps:{url:u},onPress:r,overlayDisabled:!0,xstyle:p.ownerNamePressable,children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink3",children:y})})}),f[21]=y,f[22]=u,f[23]=r,f[24]=D):D=f[24];E=D;f[25]!==g||f[26]!==y||f[27]!==A?(i=(g==null?void 0:g.story_audience_mode)==="CLOSE_FRIENDS"&&d("FriendListCometCloseFriendsGating").isStoriesConsumptionEnabled()===!0&&k.jsx("div",{className:"xsgj6o6",children:k.jsx(c("FriendListCometCloseFriendsBadge"),{closeFriendsListId:A,storyOwnerName:y!=null?y.slice(0,y.indexOf(" ")):"",viewAuthorCloseFriendStatus:g==null?void 0:g.viewer_author_close_friend_status})}),f[25]=g,f[26]=y,f[27]=A,f[28]=i):i=f[28];u=i;f[29]!==w||f[30]!==x?(r=w!=null&&x===!0&&k.jsx(c("CometProfileVerificationBadge.react"),{isInverted:!0,profileID:w}),f[29]=w,f[30]=x,f[31]=r):r=f[31];D=r;f[32]!==E?(g=k.jsx(c("CometRowItem.react"),{expanding:!0,xstyle:p.resetFlexBasis,children:E}),f[32]=E,f[33]=g):g=f[33];f[34]!==D?(A=D&&k.jsx(c("CometRowItem.react"),{children:k.jsx(c("FDSTextWithBadge.react"),{badgeAfter:D,children:" "})}),f[34]=D,f[35]=A):A=f[35];f[36]!==j||f[37]!==s?(i=!j&&k.jsx(c("CometRowItem.react"),{children:k.jsx("div",{className:"x17z8epw xsgj6o6 x3zf81a",children:k.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"meta3",children:s})})}),f[36]=j,f[37]=s,f[38]=i):i=f[38];f[39]!==u?(w=k.jsx(c("CometRowItem.react"),{children:u}),f[39]=u,f[40]=w):w=f[40];f[41]!==B?(x=k.jsx(c("CometRowItem.react"),{children:B}),f[41]=B,f[42]=x):x=f[42];f[43]!==a||f[44]!==e||f[45]!==b?(r=c("gkx")("1638")&&!a&&e&&b!=null&&k.jsx(c("CometRowItem.react"),{expanding:!0,xstyle:p.resetFlexBasis,children:k.jsx(c("StoriesSubscribeCTA.react"),{pageID:b})}),f[43]=a,f[44]=e,f[45]=b,f[46]=r):r=f[46];f[47]!==g||f[48]!==A||f[49]!==i||f[50]!==w||f[51]!==x||f[52]!==r?(E=k.jsxs(c("CometRow.react"),{align:"start",paddingVertical:0,spacingHorizontal:0,xstyle:p.ownerInfoAlignment,children:[g,A,i,w,x,r]}),f[47]=g,f[48]=A,f[49]=i,f[50]=w,f[51]=x,f[52]=r,f[53]=E):E=f[53];return E}g["default"]=a}),98);
-----
StoriesCardSingleAuthorHeaderLiveV2.react",["fbt","ix","CometColumn.react","CometColumnItem.react","CometPressable.react","CometRelativeTimestamp.react","CometRelay","CometRow.react","CometRowItem.react","JSResourceForInteraction","Locale","ShareableAttributionType","StoriesCardHeaderOwnerInfo.react","StoriesCardHeaderOwnerPicture.react","StoriesCardSingleAuthorHeaderAttributionComponent.react","StoriesCardSingleAuthorHeaderLiveV2_attribution.graphql","StoriesCardSingleAuthorHeaderLiveV2_bucket.graphql","StoriesCardSingleAuthorHeaderLiveV2_card.graphql","StoriesCardSingleAuthorHeaderLiveV2_owner.graphql","StoriesCardWatchLiveVideoCTA.react","StoriesChevronLeftFilled12IconSVG.react","StoriesChevronRightFilled12IconSVG.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesMusicAttributionComponent.react","StoriesPaidPartnershipLabelAttributionComponent.react","StoriesPauseReasons","StoriesSuspensePauseContext","TetraIcon.react","TetraText.react","fbicon","formatDate","getJSEnumSafe","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||(n=d("react"));e=n;e.useCallback;var p=e.useContext,q=e.useRef,r=e.c,s=c("JSResourceForInteraction")("StoriesCardHeaderSCMEPopup.react").__setRef("StoriesCardSingleAuthorHeaderLiveV2.react");e=d("Locale").isRTL();var t=function(a){return a?c("StoriesChevronLeftFilled12IconSVG.react"):c("StoriesChevronRightFilled12IconSVG.react")},u=o.jsx(c("TetraIcon.react"),{color:"white",icon:t(e),size:12});function v(a){switch(a){case"artist":return d("fbicon")._(i("886192"),12);case"paid_partnership_label":return d("fbicon")._(i("591549"),12);default:return null}}function w(a,b,d,e,f,g){if(a==null)return null;var h=v(d);if(e!=null&&g!=null&&d==="paid_partnership_label")return o.jsx(c("StoriesPaidPartnershipLabelAttributionComponent.react"),{attributionIcon:h,chevronIcon:u,shareableAttributionName:a,storyCardStoryInfo:g});else if(d==="artist"){return o.jsx(c("StoriesMusicAttributionComponent.react"),{attributionIcon:h,chevronIcon:u,shareableAttributionName:a,storyId:(e=f)!=null?e:""})}return o.jsx(c("StoriesCardSingleAuthorHeaderAttributionComponent.react"),{attributionIcon:h,chevronIcon:u,shareableAttributionName:a,shareableAttributionUrl:b})}w.displayName=w.name+" [from "+f.id+"]";function a(a){var e,f,g,i=r(71),n;i[0]===Symbol["for"]("react.memo_cache_sentinel")?(n=j!==void 0?j:j=b("StoriesCardSingleAuthorHeaderLiveV2_owner.graphql"),i[0]=n):n=i[0];n=d("CometRelay").useFragment(n,a.owner);var t;i[1]===Symbol["for"]("react.memo_cache_sentinel")?(t=k!==void 0?k:k=b("StoriesCardSingleAuthorHeaderLiveV2_bucket.graphql"),i[1]=t):t=i[1];t=d("CometRelay").useFragment(t,a.bucket);var u;i[2]===Symbol["for"]("react.memo_cache_sentinel")?(u=l!==void 0?l:l=b("StoriesCardSingleAuthorHeaderLiveV2_attribution.graphql"),i[2]=u):u=i[2];u=d("CometRelay").useFragment(u,a.cardInfo);var v;i[3]===Symbol["for"]("react.memo_cache_sentinel")?(v=m!==void 0?m:m=b("StoriesCardSingleAuthorHeaderLiveV2_card.graphql"),i[3]=v):v=i[3];v=d("CometRelay").useFragment(v,a.story);if(i[4]!==n){var x;x=(x=n)!=null?x:{};i[4]=n;i[5]=x}else x=i[5];x=x;var y=x.name;x=x.url;var z=n==null?void 0:(e=n.profile_picture)==null?void 0:e.uri;e=a.creationTime;var A=u==null?void 0:u.shareable_attribution,B=c("getJSEnumSafe")(c("ShareableAttributionType"),u==null?void 0:u.shareable_attribution_type),C=A==null?void 0:A.text;A=A==null?void 0:(A=A.ranges[0])==null?void 0:(A=A.entity)==null?void 0:A.url;var D=v==null?void 0:(f=v.profile_location_transparency_subtitle_text_with_entities)==null?void 0:f.text,E=v==null?void 0:(f=v.location_transparency_info)==null?void 0:f.helpcenter_id;f=t==null?void 0:t.audience_mode;var F=q(null),G=c("useCometLazyDialog")(s),H=G[0];G=p(c("StoriesSuspensePauseContext"));var I=G.setPause;i[6]!==I||i[7]!==H||i[8]!==D||i[9]!==E||i[10]!==y||i[11]!==z?(G=function(){var a=function(){I(!1,d("StoriesPauseReasons").SCME_DIALOG)};I(!0,d("StoriesPauseReasons").SCME_DIALOG);H({SCMELabel:D,helpcenterID:E,name:y,profilePicUri:z,unPause:a})},i[6]=I,i[7]=H,i[8]=D,i[9]=E,i[10]=y,i[11]=z,i[12]=G):G=i[12];G=G;if(n==null)return null;g=u==null?void 0:(g=u.branded_content_post_info)==null?void 0:g.id;C=w(C,A,B,g,v==null?void 0:v.id,u);A=null;if(e!=null)if(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE){B=e*1e3;i[13]!==B?(g=c("formatDate")(new Date(B),"M j",{utc:!0}),i[13]=B,i[14]=g):g=i[14];A=g}else{v=e*1e3;i[15]!==v?(B=new Date(v),i[15]=v,i[16]=B):B=i[16];i[17]!==B?(g=o.jsx(c("CometRelativeTimestamp.react"),{date:B,format:"minimized"}),i[17]=B,i[18]=g):g=i[18];A=g}i[19]!==D||i[20]!==G||i[21]!==F?(v=D!=null&&o.jsx("div",{className:"x1cy8zhl x78zum5 x1ye3gou x10lvyaf",children:o.jsx("div",{className:"x14hiurz x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1lliihq x1xmf6yo x1iorvi4 x1sxyh0 xjkvuk6 xurb0ha",children:o.jsx(c("CometPressable.react"),{display:"block",label:D,onPress:G,overlayDisabled:!0,ref:F,children:o.jsx("div",{className:"x1p6odiv x1nxh6w3 xk50ysn xo5v014",children:D})})})}),i[19]=D,i[20]=G,i[21]=F,i[22]=v):v=i[22];B=v;G=(g=t==null?void 0:t.is_bucket_live)!=null?g:!1;v=(u==null?void 0:(F=u.story_video_thumbnail)==null?void 0:F.broadcast_status)==="VOD_READY";g=(u==null?void 0:(t=u.story_video_thumbnail)==null?void 0:t.broadcast_status)==="LIVE";F=g||v;v=u==null?void 0:(t=u.story_video_thumbnail)==null?void 0:t.url;t=!(u==null?void 0:(t=u.story_video_thumbnail)==null?void 0:t.owner_has_professional_features);var J;i[23]!==g?(J=g?h._("__JHASH__Idf4IRr570U__JHASH__"):h._("__JHASH__iu3rjsyH1Qy__JHASH__"),i[23]=g,i[24]=J):J=i[24];J=J;var K;i[25]!==u||i[26]!==f||i[27]!==e||i[28]!==F||i[29]!==a.onOwnerClick||i[30]!==n?(K=o.jsx(c("CometColumnItem.react"),{children:o.jsx(c("StoriesCardHeaderOwnerInfo.react"),{attribution:u,audienceMode:f,creationTime:e,isVideoBroadcast:F,onOwnerClick:a.onOwnerClick,owner:n})}),i[25]=u,i[26]=f,i[27]=e,i[28]=F,i[29]=a.onOwnerClick,i[30]=n,i[31]=K):K=i[31];i[32]!==C?(u=C!=null&&o.jsx("div",{className:"x17z8epw x1ye3gou x1iorvi4 x3zf81a x18f6uos",children:C}),i[32]=C,i[33]=u):u=i[33];i[34]!==u?(f=o.jsx(c("CometColumnItem.react"),{children:u}),i[34]=u,i[35]=f):f=i[35];i[36]!==F||i[37]!==J||i[38]!==A?(e=F&&o.jsx("div",{className:"x17z8epw x3zf81a x1mh8g0r x1ye3gou x889kno",children:o.jsxs(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"body3",children:[J,o.jsx("span",{className:"xdj266r xw3qccf xat24cr xsgj6o6",children:"u2022"}),A]})}),i[36]=F,i[37]=J,i[38]=A,i[39]=e):e=i[39];i[40]!==e?(n=o.jsx(c("CometColumnItem.react"),{children:e}),i[40]=e,i[41]=n):n=i[41];i[42]!==K||i[43]!==f||i[44]!==n?(C=o.jsxs(c("CometColumn.react"),{children:[K,f,n]}),i[42]=K,i[43]=f,i[44]=n,i[45]=C):C=i[45];u=C;i[46]===Symbol["for"]("react.memo_cache_sentinel")?(J="x6s0dn4 x78zum5 x10l6tqk xoie2o3 x12eol54 x3qmvb3",i[46]=J):J=i[46];i[47]!==G||i[48]!==y||i[49]!==a.onOwnerClick||i[50]!==z||i[51]!==x?(A=o.jsx(c("CometRowItem.react"),{children:o.jsx(c("StoriesCardHeaderOwnerPicture.react"),{isBucketLiveStreaming:G,name:y,onOwnerClick:a.onOwnerClick,profilePicUri:z,profileUrl:x})}),i[47]=G,i[48]=y,i[49]=a.onOwnerClick,i[50]=z,i[51]=x,i[52]=A):A=i[52];i[53]!==u?(e=o.jsx(c("CometRowItem.react"),{children:u}),i[53]=u,i[54]=e):e=i[54];i[55]!==B?(K=o.jsx(c("CometRowItem.react"),{children:B}),i[55]=B,i[56]=K):K=i[56];i[57]!==A||i[58]!==e||i[59]!==K?(f=o.jsx(c("CometColumnItem.react"),{children:o.jsxs(c("CometRow.react"),{align:"start",paddingHorizontal:0,paddingVertical:0,spacing:4,spacingHorizontal:0,verticalAlign:"center",children:[A,e,K]})}),i[57]=A,i[58]=e,i[59]=K,i[60]=f):f=i[60];i[61]!==F||i[62]!==v||i[63]!==t||i[64]!==g?(n=F&&v!=null&&t&&o.jsx(c("StoriesCardWatchLiveVideoCTA.react"),{isLive:g,url:v}),i[61]=F,i[62]=v,i[63]=t,i[64]=g,i[65]=n):n=i[65];i[66]!==n?(C=o.jsx(c("CometColumnItem.react"),{children:o.jsx("div",{children:n})}),i[66]=n,i[67]=C):C=i[67];i[68]!==f||i[69]!==C?(G=o.jsx("div",{className:J,"data-testid":void 0,children:o.jsxs(c("CometColumn.react"),{spacing:16,children:[f,C]})}),i[68]=f,i[69]=C,i[70]=G):G=i[70];return G}g["default"]=a}),226);
-----
useMDCAppStoreV2SectionItemLogging",["MDCAppStoreExploreLoggingAPI","MDCAppStoreGetFormattedIndex","MDCAppStoreImpressionLoggingConstants","MDCAppStoreLoggingAPI","MDCAppStoreOculusImpressionEventsLoggingHooks","asyncToGeneratorRuntime","react","useDDSVisibility"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useEffect,j=500;function a(a,e,f){e===void 0&&(e=d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD);f===void 0&&(f=j);var g=f<0?0:f,h=d("MDCAppStoreOculusImpressionEventsLoggingHooks").useImpressionLogging("MDCAppStoreSectionItem");f=c("useDDSVisibility")({threshold:e});var k=f[0],l=f[1],m=a.index,n=a.rankingTraceID,o=a.sectionID,p=a.sectionItemID;i(function(){var a=null;l&&(h("oculus_impressions_tile_vpved",{content_id:p}),d("MDCAppStoreLoggingAPI").logInfo("Skyline",{duration_in_ms:g,item_id:p,item_position:m,page:"store_section",pixel_in_percentage:Math.round(e*100),section_id:o,type:"oculus_skyline_viewport_visible_event"}),a=window.setTimeout(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a;yield d("MDCAppStoreExploreLoggingAPI").logTilesRendered([{index:d("MDCAppStoreGetFormattedIndex").getFormattedIndex(m),node_id:p,trace_id:(a=n)!=null?a:""}])}),g));return function(){window.clearTimeout(a)}},[l,e,m,n,o,p,g,h]);i(function(){var a=Date.now();d("MDCAppStoreLoggingAPI").logInfo("Skyline",{item_id:p,item_position:m,page:"store_section",section_id:o,type:"oculus_skyline_rendered_impression"});return function(){d("MDCAppStoreLoggingAPI").logInfo("Skyline",{duration_in_ms:Date.now()-a,item_id:p,item_position:m,page:"store_section",section_id:o,type:"oculus_skyline_rendered_impression_duration"})}},[m,o,p]);return k}g["default"]=a}),98);
-----
MDCAppStoreV2HomeCarouselItem.react",["fbt","DDSImage.react","DDSLink.react","MDCAppStoreImpressionLoggingConstants","MDCAppStoreRankingTraceQueryParamUtil","MDCAppStoreSkylineWebClientEventLogger","MDCAppStoreV2HomeCarouselItemDynamicTextOverlay.react","MDCAppStoreV2HomeCarouselItem_itemEdge.graphql","qex","react","react-relay","useDDSVisibility","useMDCAppStoreV2AppStoreItemLogging","useMDCAppStoreV2ShelfItemLink"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react"),l={heroImage:{height:"x5yr21d",width:"xh8yej3",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",$$css:!0},heroImageLink:{height:"x5yr21d",width:"xh8yej3",position:"x10l6tqk",top:"x13vifvy",left:"xu96u03",start:null,end:null,$$css:!0},heroOverlayTextBackground:{borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",backgroundColor:"x2izyaf",$$css:!0}};function a(a){var e=a.itemEdgeRef,f=a.position;a=d("react-relay").useFragment(i!==void 0?i:i=b("MDCAppStoreV2HomeCarouselItem_itemEdge.graphql"),e);var g=c("useMDCAppStoreV2AppStoreItemLogging")(a.node);e=c("useMDCAppStoreV2ShelfItemLink")(a.node);var j=a==null?void 0:a.ranking_trace,m=a==null?void 0:a.node,n=d("MDCAppStoreRankingTraceQueryParamUtil").maybeAddRankingTraceQueryStringToURI(e,j);a=c("useDDSVisibility")({onVisible:function(){var a;d("MDCAppStoreSkylineWebClientEventLogger").logClientEvent({event:"TILE_RENDERED",contentId:(a=m==null?void 0:m.id)!=null?a:"",trace:typeof j==="string"?j:"",position:f})},threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});e=a[0];a=(a=m==null?void 0:(a=m.hero_image)==null?void 0:a.uri)!=null?a:"";e=a!==""?k.jsx(c("DDSImage.react"),{alt:h._("Hero image"),objectFit:"cover",ref:e,src:a,variant:"src",xstyle:l.heroImage}):null;a=(m==null?void 0:m.collection_presentation)==="DYNAMIC_TEXT_OVERLAY"&&(m==null?void 0:m.display_name)!=null&&((a=c("qex")._("238"))!=null?a:!1);return e&&n!==""?k.jsxs(c("DDSLink.react"),{url:n,xstyle:[l.heroImageLink,a&&l.heroOverlayTextBackground],onClick:function(){g(n)},children:[e,a&&k.jsx(c("MDCAppStoreV2HomeCarouselItemDynamicTextOverlay.react"),{item:m})]}):e}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
MDCAppStoreV2AppSearchTypeaheadResult.react",["fbt","DDSImage.react","DDSTypeaheadItem.react","MDCAppStoreAppEntitlement","MDCAppStoreImpressionLoggingConstants","MDCAppStoreOculusImpressionsEventsLogging","react","useDDSVisibility"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=48;function a(a){var b=a.entry,e=a.query,f=b.getAuxiliaryData();a=c("useDDSVisibility")({onVisible:function(){if(f.type!=="app")return;d("MDCAppStoreOculusImpressionsEventsLogging").logSingleImpressionsEvent({content_id:b.getUniqueID(),component:"TypeaheadSearchResult",duration:0,surface:"STORE",subsurface:"SEARCH",search_query:e},"oculus_impressions_tile_vpved")},threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD});a=a[0];return j.jsx("div",{ref:a,children:j.jsx(c("DDSTypeaheadItem.react"),{category:b.getSubtitle(),"data-testid":void 0,description:f.type==="app"&&f.entitlement!=null&&d("MDCAppStoreAppEntitlement").isActive(f.entitlement)?h._("Purchased"):null,icon:f.type==="app"?j.jsx(c("DDSImage.react"),{alt:"",intrinsicHeight:k,intrinsicWidth:k,src:(a=f.imageUri)!=null?a:"",variant:"src"}):void 0,label:b.getTitle()})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
ZenonUnifiedInitializationProvider.react",["CometHeroHoldTrigger.react","ErrorMetadata","FBLogger","Recoil","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonAppFeaturesUtils","ZenonBackgroundBlurHooks","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelEmitter","ZenonCallsModelTypes","ZenonChatContext","ZenonInitializationContext","ZenonLocalAudioVideoHooks","ZenonLocalAudioVideoManager","ZenonLocalAudioVideoTypes","ZenonLoggingConstants","ZenonLoggingHooks","ZenonMediaAccessState","ZenonMediaActionLogger","ZenonMediaDevicesContext","ZenonMediaMuteStateStore","ZenonMediaPermissionState","ZenonPeerID","ZenonRequestedMediaType","ZenonSettingsHooks","ZenonSignalingIDType","ZenonThreadType","ZenonThreadTypeSelector","ZenonUnifiedInitializationProvider_provider.graphql","asyncToGeneratorRuntime","cr:1567219","emptyFunction","err","gkx","isEmpty","isStringNullOrEmpty","promiseDone","react","useEffectOnce","useZenonDebugValue","useZenonMediaMuteState"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,aa=e.useContext,m=e.useEffect,ba=e.useMemo,ca=e.useRef,n=e.useState,o="ZenonInitializationProvider";h!==void 0?h:h=b("ZenonUnifiedInitializationProvider_provider.graphql");function a(a){var e,f=a.allowAudioFallback,g=a.appMessages,h=a.audioConstraints,j=a.callTrigger,p=a.children,q=a.initializeVideo,r=a.initialSyncStates,s=a.isSecondaryJoinRole,ga=s===void 0?!1:s,t=a.joiningContext;s=a.joinWithoutAudioVideo;var ha=s===void 0?!1:s;s=a.mediaStatesFromPreCallLobby;var u=a.mediaStatesOnStart,v=a.muteTracksOnStart,ia=a.parentRequestID,w=a.peerID,x=a.roomID,y=a.rtcActorID,z=a.serverInfoData,A=a.signalingID,B=a.usersToRing,C=a.videoConstraints;a=B.length===0;var D=a&&(c("gkx")("25149")||c("gkx")("25150")),ja=d("Recoil").useSetRecoilState(d("ZenonMediaAccessState").ZenonMediaAccessState);a=d("Recoil").useSetRecoilState(d("ZenonMediaAccessState").ZenonRequestedMediaState);var E=d("ZenonActorHooks").useZenonActor(),F=E[0];f=(E=f)!=null?E:w!==d("ZenonPeerID").ZenonMWPeerID;var G=d("ZenonAppFeaturesHooks").useDataChannelLabels(),ka=d("ZenonAppFeaturesHooks").useMediaAccessTimeout();E=d("ZenonAppFeaturesHooks").useMuteTracksOnStart();var la=(v=v)!=null?v:E;v=d("ZenonAppFeaturesHooks").useMediaStatesOnStart();u=(E=u)!=null?E:v;E=n("unknown");var H=E[0],I=E[1];v=n({state:ha?c("ZenonMediaPermissionState").Fulfilled:c("ZenonMediaPermissionState").Unknown,type:q?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});var J=v[0],K=v[1];a(J.type);E=aa(c("ZenonMediaDevicesContext"));var L=E.setAudioRequestError,M=E.setCameraPermissionState,N=E.setMicrophonePermissionState,O=E.setRequestingMediaType,P=E.setVideoRequestError;v=aa(c("ZenonCallsContext"));var Q=v.callSDK,R=v.currentCallInstanceSDK,S=v.isE2eeMandated,ma=v.setCurrentCallInstanceSDK,T=v.setE2eeModel;a=n([]);var U=a[0],na=a[1];E=n(null);var oa=E[0],pa=E[1];v=n(null);var qa=v[0],ra=v[1];a=d("ZenonSettingsHooks").useDevices();var V=a.audioInput,W=a.videoInput,X=d("ZenonLoggingHooks").useErrorLogging();E=d("ZenonLoggingHooks").useTimerLogging("GetUserMediaRequestTimer","CallStart_GetUserMediaRequest");var Y=E[0],Z=E[1],$=d("ZenonLoggingHooks").useSetCallTrigger();$((v=j)!=null?v:"");a=d("ZenonLoggingHooks").useTimerLogging("StartCall","CallStart_StartCall");var sa=a[0],ta=a[1],ua=d("ZenonLoggingHooks").useSetIsCaller();m(function(){ua(!0)},[ua]);E=d("ZenonLoggingHooks").useTimerLogging("InCallStartFlowTimer","CallStart_InCallStartFlowTimer");var va=E[0],wa=E[1];v=c("ZenonCallsHooks").useCallState();var xa=c("ZenonCallsHooks").useIsAudioCall();a=u.isConfigPrivacyRequirement;E=!a;u={isAudioEnabled:(e=u.isAudioEnabledOnStart)!=null?e:E,isVideoEnabled:(e=u.isVideoEnabledOnStart)!=null?e:E};e=c("useZenonMediaMuteState")(u,a?c("ZenonMediaMuteStateStore").NONE:c("ZenonMediaMuteStateStore").SESSION_STORAGE);E=e[0];u=s!=null?{isAudioEnabled:s.audioMuted===!1,isVideoEnabled:s.videoMuted===!1}:E;var ya=u.isAudioEnabled,za=u.isVideoEnabled;a=c("ZenonCallsHooks").useLocalAudio();e=c("ZenonCallsHooks").useLocalVideo();var Aa=(s=e==null?void 0:e.enabled)!=null?s:!1,Ba=(E=a==null?void 0:a.enabled)!=null?E:!1,Ca=d("Recoil").useRecoilValue(c("ZenonThreadTypeSelector"));u=aa(c("ZenonChatContext"));var Da=u.setChatWindowVisible,Ea=d("ZenonBackgroundBlurHooks").useIsBackgroundBlurActive(),Fa=d("ZenonBackgroundBlurHooks").useStopBackgroundBlur(),Ga=da();m(function(){va(),sa()},[va,sa]);m(function(){Ca!==c("ZenonThreadType").Other&&c("ErrorMetadata").addGlobalMetadata("RT_WEB","TYPE",String(Ca))},[Ca]);m(function(){var a=null;J.state===c("ZenonMediaPermissionState").Unknown&&(a=window.setTimeout(function(){K(function(a){return a.state===c("ZenonMediaPermissionState").Unknown?{state:c("ZenonMediaPermissionState").Pending,type:a.type}:a}),q?(N(c("ZenonMediaPermissionState").Pending),M(c("ZenonMediaPermissionState").Pending)):N(c("ZenonMediaPermissionState").Pending),O(q?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio)},ka));return function(){return window.clearTimeout(a)}},[q,ka,M,N,O,J.state]);m(function(){var a=Q.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(pa(a.mwRingRequest),ra(a.mwThriftRingRequest),I("ready")):a.messageType==="parentWindowConnectionTimeout"?I("timeout"):I("unknown"),ta()});return function(){a.remove()}},[Q,ta]);var Ha=ca(!1),Ia=ca(!1),Ja=c("ZenonLocalAudioVideoHooks").useCreateLocalAudio(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaOwnershipType.Strong),Ka=c("ZenonLocalAudioVideoHooks").useCreateLocalVideo(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaOwnershipType.Strong),La=c("ZenonLocalAudioVideoHooks").useDisableAudio(),Ma=c("ZenonLocalAudioVideoHooks").useDisableVideo();m(function(){if(Ia.current===!0)return;else Ia.current=!0;if(U.length>0){var a="fetching media is run when there are already media tracks stored in local state. This suggests that the effect is run more than once.";X({checkpoint:"fetchMedia is run more than once",error:c("err")(a),errorDomain:o});c("FBLogger")("rtc_www",o).mustfix(a)}ha||c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){O(c("ZenonRequestedMediaType").Audio);Y();var a=null;try{var b=babelHelpers["extends"]({},h,!c("isStringNullOrEmpty")(V)&&{deviceId:{ideal:V}});a=(yield Ja(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,b));N(c("ZenonMediaPermissionState").Fulfilled)}catch(a){b=String(a).includes("Permission denied");b=!b&&D;K({error:a,state:b?c("ZenonMediaPermissionState").Unknown:c("ZenonMediaPermissionState").Rejected,type:c("ZenonRequestedMediaType").Audio});L(a);N(c("ZenonMediaPermissionState").Rejected);if(b)ja(d("ZenonMediaAccessState").ACCESS_STATUS.AUDIO_ACCESS_DENIED);else{Z();return}}b=null;if(q){var e=babelHelpers["extends"]({},C,!c("isStringNullOrEmpty")(W)&&{deviceId:{ideal:W}});O(c("ZenonRequestedMediaType").Audiovideo);try{b=(yield Ka(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,e)),M(c("ZenonMediaPermissionState").Fulfilled)}catch(a){e=String(a).includes("Permission denied");e=!e&&D;e||c("ZenonLocalAudioVideoManager").stopAllTracks();K({error:a,state:e?c("ZenonMediaPermissionState").Unknown:c("ZenonMediaPermissionState").Rejected,type:c("ZenonRequestedMediaType").Audiovideo});P(a);M(c("ZenonMediaPermissionState").Rejected);if(e)ja(function(a){if(a===d("ZenonMediaAccessState").ACCESS_STATUS.AUDIO_ACCESS_DENIED)return d("ZenonMediaAccessState").ACCESS_STATUS.CAMERA_AND_AUDIO_ACCESS_DENIED;else return d("ZenonMediaAccessState").ACCESS_STATUS.CAMERA_ACCESS_DENIED});else{Z();return}}}la&&(ya||(a=La("PRIMARY_AUDIO")),za||(b=Ma("PRIMARY_VIDEO")),fa([].concat(a?[a]:[],b?[b]:[]),ya,za));e=b;if(Ea)try{c("ZenonMediaActionLogger").logCheckpoint("[ZenonBackgroundBlur] stop background blur in ZenonInitializationProvider"),Fa()}catch(a){c("ZenonMediaActionLogger").logErrorToFbLogger("[ZenonBackgroundBlur] error stopping background ZenonInitializationProvider",a.toString(),c("err")(a),"warn")}finally{var f;e=c("gkx")("25144")&&za?(f=(yield Ga(b)))!=null?f:b:b}na([].concat(a!=null?[a]:[],e!=null?[e]:[]));K({state:c("ZenonMediaPermissionState").Fulfilled,type:q?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});Z()})())},[f,h,V,La,Ma,Ja,Ka,q,ya,za,X,Y,Z,U.length,la,J.error,C,W,D,ja,R,Ea,Ga,Fa,ha,O,N,L,M,P]);c("useEffectOnce")(function(){if(Ha.current===!0)return;else Ha.current=!0;Q.initSignaling(w,ia,x,z);if(U.length>0){var a="fetchMedia is run when there are already media tracks stored in local state. This suggests that the effect is run more than once.";X({checkpoint:"fetchMedia is run more than once",error:c("err")(a),errorDomain:o});c("FBLogger")("rtc_www",o).mustfix(a)}});m(function(){var a;R.initLogging({callTrigger:(a=j)!=null?a:"",initializeVideo:q,isE2eeMandated:S,peerID:w,roomID:x,serverInfoData:z,signalingID:A==null?null:String(A)})},[Q,j,R,q,S,w,x,z,A]);var Na=l(function(){c("promiseDone")(R.join({actorID:y,appMessages:g,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:j,dataChannels:new Set(G),initialSyncStates:r==null?null:new Map(r),isE2eeMandated:S,isSecondaryJoinRole:ga,joiningContext:t,localMedia:U,mwRingRequest:oa,mwThriftRingRequest:qa,peerID:w,roomID:x,serverInfoData:z,setE2eeModel:T,signalingID:A!=null?String(A):null,usersToRing:B.filter(function(a){return F!==a})}))},[R,y,g,j,G,r,S,ga,t,U,oa,qa,w,x,z,T,A,B,F]);m(function(){var a=D?J.state===c("ZenonMediaPermissionState").Fulfilled:!(i||(i=c("isEmpty")))(U);H==="ready"&&a&&(I("joined"),Na(),wa())},[wa,D,Na,U,H,J.state]);var Oa=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a.requestAudio;a=babelHelpers.objectWithoutPropertiesLoose(a,["requestAudio"]);b.contentHint;b.requestVideo;b=babelHelpers.objectWithoutPropertiesLoose(b,["contentHint","requestVideo"]);a=(yield Ja(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,a));try{b=(yield Ka(d("ZenonLocalAudioVideoTypes").ZenonLocalMediaFallbackStrategy.RelaxConstraints,b));return[a,b]}catch(a){if(a.name==="NotFoundError"||a.name==="StreamFailedToStart")c("ZenonMediaActionLogger").logErrorToFbLogger("Fallback to audio-only",a.toString(),c("err")("GetUserMedia"),"warn");else throw a}return[a]});return function(b,c){return a.apply(this,arguments)}}(),[Ja,Ka]),Pa=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){c("promiseDone")(R.endCall("HangupCall","breaking out to new room"));var b=babelHelpers["extends"]({},h,{requestAudio:!0}),e=babelHelpers["extends"]({requestVideo:!xa},C);c("isStringNullOrEmpty")(V)||(b.deviceId={ideal:V});c("isStringNullOrEmpty")(W)||(e.deviceId={ideal:W});Y();b=(yield Oa(b,e));b=ea(b,Ba,Aa);na(b);$(d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM);e=String(d("ZenonSignalingIDType").generateZenonSignalingID());c("promiseDone")(Q.createCall().join({actorID:y,appMessages:g,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM,dataChannels:new Set(G),isE2eeMandated:S,localMedia:b,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:w,roomID:a,setE2eeModel:T,signalingID:e,usersToRing:B.filter(function(a){return F!==a})}),function(a){return ma(a)});Z()});return function(b){return a.apply(this,arguments)}}(),[F,g,h,V,Q,R,G,Oa,xa,S,Ba,Aa,Y,Z,w,y,$,ma,T,B,C,W]);m(function(){d("ZenonCallsModelEmitter").CallsModelEmitterInstance.setCurrentClientCallID(R.getClientCallID_DEPRECATED())},[R]);var Qa=l(function(a){var e=a.initializeVideo,f=a.isAutoRejoin,i=a.rejoinPeerID;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){K({state:c("ZenonMediaPermissionState").Unknown,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});L(null);P(null);N(c("ZenonMediaPermissionState").Unknown);M(c("ZenonMediaPermissionState").Unknown);var a=babelHelpers["extends"]({},h,{requestAudio:!0}),b=babelHelpers["extends"]({requestVideo:e},C);c("isStringNullOrEmpty")(V)||(a.deviceId={ideal:V});c("isStringNullOrEmpty")(W)||(b.deviceId={ideal:W});Y();try{a=(yield Oa(a,b));a=ea(a,Ba,Aa);na(a);K({state:c("ZenonMediaPermissionState").Fulfilled,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});e?(N(c("ZenonMediaPermissionState").Fulfilled),M(c("ZenonMediaPermissionState").Fulfilled)):N(c("ZenonMediaPermissionState").Fulfilled);b=f===!0?d("ZenonLoggingConstants").ZenonCallTrigger.AUTO_REJOIN:d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON;$(b);var j=String(d("ZenonSignalingIDType").generateZenonSignalingID()),k=i!=null?[i]:B.filter(function(a){return F!==a});c("promiseDone")(Q.createCall().join({appMessages:g,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:b,dataChannels:new Set(G),initialSyncStates:r==null?null:new Map(r),isE2eeMandated:S,joiningContext:babelHelpers["extends"]({},t,{serverInfoData:null}),localMedia:a,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:w,roomID:x,setE2eeModel:T,signalingID:j,usersToRing:k}),function(a){return ma(a)});Da(!1)}catch(d){b=String(d).includes("Permission denied");a=!b&&D;X({checkpoint:o+"_rejoin_getUserMediaWithFallback_error",error:d,errorDomain:o});K({error:d,state:a?c("ZenonMediaPermissionState").Fulfilled:c("ZenonMediaPermissionState").Rejected,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});e?(L(d),P(d),N(c("ZenonMediaPermissionState").Rejected),M(c("ZenonMediaPermissionState").Rejected)):(L(d),N(c("ZenonMediaPermissionState").Rejected));c("ZenonLocalAudioVideoManager").stopAllTracks()}finally{Z()}});return function(){return a.apply(this,arguments)}}();return a()},[L,P,N,M,h,C,V,W,Y,Oa,Ba,Aa,$,B,Q,g,G,r,S,t,w,x,T,Da,F,ma,D,X,Z]),Ra=ca(c("emptyFunction"));Ra.current=function(){X({checkpoint:"Stopping all local media as the app has crashed",error:c("err")("AppCrashedError"),errorDomain:o}),U.forEach(function(a){a.webrtcTrack.stop()})};m(function(){return function(){Ra.current()}},[]);e=ba(function(){return{joinCall:Na,rejoinCall:Qa,signalingStatus:H,swapCall:Pa,userMediaRequestStatus:J}},[H,Na,J,Qa,Pa]);c("useZenonDebugValue")(o,e);m(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);return k.jsxs(c("ZenonInitializationContext").Provider,{value:e,children:[k.jsx(c("CometHeroHoldTrigger.react"),{description:"getUserMedia",hold:J.state===c("ZenonMediaPermissionState").Unknown||J.state===c("ZenonMediaPermissionState").Pending}),k.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:v===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),p]})}a.displayName=a.name+" [from "+f.id+"]";function da(){var a=d("ZenonBackgroundBlurHooks").useStopBackgroundBlur(),e=d("ZenonBackgroundBlurHooks").useStartBackgroundBlur(),f=d("ZenonLoggingHooks").useErrorLogging();return l(function(){var d=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){if((b==null?void 0:b.trackId)==null)return;try{c("ZenonMediaActionLogger").logEvent({checkpoint:"[ZenonBackgroundBlur] restart background blur in ZenonInitializationProvider"});return yield e({trackToReplace:b})}catch(b){f({checkpoint:"[ZenonBackgroundBlur] Failed to restart background blur in ZenonInitializationProvider",error:c("err")(b),errorDomain:o}),a()}});return function(a){return d.apply(this,arguments)}}(),[f,e,a])}function ea(a,b,c){return a.map(function(a){if(a.contentType==="audio"&&!b)return p(a);return a.contentType==="video"&&!c?p(a):a})}function p(a){a.contentType==="video"&&d("ZenonAppFeaturesUtils").shouldStopVideoWhenMute()&&a.webrtcTrack.stop();a.webrtcTrack.enabled=!1;return babelHelpers["extends"]({},a,{enabled:!1})}function fa(a,b,d){var e="[A/V mute state] Flags state: audio enabled: "+b.toString()+" video enabled: "+d.toString()+" - Tracks state: ";a.forEach(function(a){e=""+e+a.contentType+" enabled: "+a.enabled.toString()+" "});c("ZenonMediaActionLogger").logEvent({checkpoint:e})}g["default"]=a}),98);
-----
WorkroomsInitializationProvider.react",["CometHeroHoldTrigger.react","ErrorMetadata","Recoil","WorkroomsInitializationProvider_provider.graphql","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonBackgroundBlurHooks","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelEmitter","ZenonCallsModelTypes","ZenonChatContext","ZenonInitializationContext","ZenonLocalAudioVideoHooks","ZenonLocalAudioVideoManager","ZenonLoggingConstants","ZenonLoggingHooks","ZenonMediaAccessState","ZenonMediaPermissionState","ZenonRequestedMediaType","ZenonSignalingIDType","ZenonThreadType","ZenonThreadTypeSelector","ZenonVideoProcessingUtils","asyncToGeneratorRuntime","cr:1567219","isEmpty","promiseDone","react","useZenonDebugValue"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useMemo,p=e.useRef,q=e.useState,r="ZenonInitializationProvider";h!==void 0?h:h=b("WorkroomsInitializationProvider_provider.graphql");function a(a){var e=a.appMessages,f=a.callTrigger,g=a.children,h=a.initialSyncStates,j=a.isSecondaryJoinRole,t=j===void 0?!1:j,u=a.joiningContext,v=a.parentRequestID,w=a.peerID,x=a.roomID,y=a.rtcActorID,z=a.serverInfoData,A=a.signalingID,B=a.usersToRing;j=c("ZenonLocalAudioVideoHooks").useLocalAudio();a=s();var C=(a==null?void 0:a.enabled)===!0&&(a==null?void 0:a.webrtcTrack.readyState)==="live",D=[j,a].filter(Boolean);j=d("Recoil").useSetRecoilState(d("ZenonMediaAccessState").ZenonRequestedMediaState);a=d("ZenonActorHooks").useZenonActor();var E=a[0],F=d("ZenonAppFeaturesHooks").useDataChannelLabels();a=q("unknown");var G=a[0],H=a[1];j(C?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio);a=m(c("ZenonCallsContext"));var I=a.callSDK,J=a.currentCallInstanceSDK,K=a.isE2eeMandated,L=a.setCurrentCallInstanceSDK,M=a.setE2eeModel;j=q(null);var N=j[0],O=j[1];a=q(null);var P=a[0],Q=a[1],R=d("ZenonLoggingHooks").useSetCallTrigger();R((j=f)!=null?j:"");var S=d("ZenonLoggingHooks").useSetIsCaller();n(function(){S(!0)},[S]);var T=c("ZenonCallsHooks").useCallState(),U=d("Recoil").useRecoilValue(c("ZenonThreadTypeSelector"));a=m(c("ZenonChatContext"));var V=a.setChatWindowVisible;n(function(){U!==c("ZenonThreadType").Other&&c("ErrorMetadata").addGlobalMetadata("RT_WEB","TYPE",String(U))},[U]);n(function(){var a=I.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(O(a.mwRingRequest),Q(a.mwThriftRingRequest),H("ready")):a.messageType==="parentWindowConnectionTimeout"?H("timeout"):H("unknown")});return function(){a.remove()}},[I]);var W=p(!0);n(function(){if(!W.current)return;W.current=!1;I.initSignaling(w,v,x,z)},[I,v,w,x,z]);n(function(){var a;J.initLogging({callTrigger:(a=f)!=null?a:"",initializeVideo:C,isE2eeMandated:K,peerID:w,roomID:x,serverInfoData:z,signalingID:A==null?null:String(A)})},[f,J,C,K,w,x,z,A]);var X=l(function(){c("promiseDone")(J.join({actorID:y,appMessages:e,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:f,dataChannels:new Set(F),initialSyncStates:h==null?null:new Map(h),isE2eeMandated:K,isSecondaryJoinRole:t,joiningContext:u,localMedia:D,mwRingRequest:N,mwThriftRingRequest:P,peerID:w,roomID:x,serverInfoData:z,setE2eeModel:M,signalingID:A!=null?String(A):null,usersToRing:B.filter(function(a){return E!==a})}))},[E,e,f,J,F,h,K,t,u,D,N,P,w,x,y,z,M,A,B]);n(function(){G==="ready"&&!(i||(i=c("isEmpty")))(D)&&(H("joined"),X())},[X,D,G]);var Y=l(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){c("promiseDone")(J.endCall("HangupCall","breaking out to new room"));R(d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM);var b=String(d("ZenonSignalingIDType").generateZenonSignalingID());a=(yield I.createCall().join({actorID:y,appMessages:e,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM,dataChannels:new Set(F),isE2eeMandated:K,localMedia:D,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:w,roomID:a,setE2eeModel:M,signalingID:b,usersToRing:B.filter(function(a){return E!==a})}));L(a)});return function(b){return a.apply(this,arguments)}}(),[E,e,I,J,F,K,D,w,y,R,L,M,B]);n(function(){d("ZenonCallsModelEmitter").CallsModelEmitterInstance.setCurrentClientCallID(J.getClientCallID_DEPRECATED())},[J]);var Z=l(function(a){var f=a.isAutoRejoin,g=a.rejoinPeerID;a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=f===!0?d("ZenonLoggingConstants").ZenonCallTrigger.AUTO_REJOIN:d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON;R(a);var b=String(d("ZenonSignalingIDType").generateZenonSignalingID()),i=g!=null?[g]:B.filter(function(a){return E!==a});a=(yield I.createCall().join({appMessages:e,callMedia:c("ZenonRequestedMediaType").Audiovideo,callTrigger:a,dataChannels:new Set(F),initialSyncStates:h==null?null:new Map(h),isE2eeMandated:K,joiningContext:babelHelpers["extends"]({},u,{serverInfoData:null}),localMedia:D,mwRingRequest:null,mwThriftRingRequest:null,offer:null,peerID:w,roomID:x,setE2eeModel:M,signalingID:b,usersToRing:i}));L(a);V(!1)});return function(){return a.apply(this,arguments)}}();return a()},[E,e,I,F,h,K,u,D,w,x,R,V,L,M,B]),$=p(!1);n(function(){T===d("ZenonCallsModelTypes").ZenonCallState.Connected&&!$.current&&($.current=!0)},[T]);n(function(){return function(){$.current&&c("ZenonLocalAudioVideoManager").stopAllTracks()}},[]);j=o(function(){return{joinCall:X,rejoinCall:Z,signalingStatus:G,swapCall:Y,userMediaRequestStatus:{state:c("ZenonMediaPermissionState").Fulfilled,type:C?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio}}},[C,X,Z,G,Y]);c("useZenonDebugValue")(r,j);n(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);return k.jsxs(c("ZenonInitializationContext").Provider,{value:j,children:[k.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:T===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),g]})}a.displayName=a.name+" [from "+f.id+"]";function s(){var a=c("ZenonLocalAudioVideoHooks").useLocalVideo(),b=d("ZenonBackgroundBlurHooks").useBlurredStream();return d("ZenonBackgroundBlurHooks").useIsBackgroundBlurActive()&&(a==null?void 0:a.enabled)===!0&&(a==null?void 0:a.webrtcTrack.readyState)==="live"&&(b==null?void 0:b.active)===!0?d("ZenonVideoProcessingUtils").convertProcessedStreamToTrack(b):a}g["default"]=a}),98);
-----
StoriesNavListHomeItem.react",["fbt","ix","StoriesLoggingConstants","StoriesTileGridSidePaneItem.react","XCometStoriesControllerRouteBuilder","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useState;function a(){var a=m(!1),b=a[0],e=a[1];a=c("XCometStoriesControllerRouteBuilder").buildURL({});var f={entryPoint:"enter_stories_home_from_viewer_left_nav",sourceSurface:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME};f={passthroughProps:f,url:a};a=l(function(){return e(!0)},[e]);return k.jsx(c("StoriesTileGridSidePaneItem.react"),{addOnPrimary:{color:b?"blue":"gray",icon:d("fbicon")._(i("100554"),24),size:60,type:"contained-icon"},linkProps:f,onPress:a,selected:b,text:h._("__JHASH__RjEqFnMJEiA__JHASH__")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCCastingLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={CASTING_WEB_CONNECTED:"casting_web_connected",CASTING_WEB_CONNECTING:"casting_web_connecting",CASTING_WEB_DISCONNECTED:"casting_web_disconnected",ZENON_CALL_STATE_UPDATED:"zenon_call_state_updated"};f.OCCastingLoggingSubEventNames=a}),66);
-----
AudienceManagerAudienceTable.react",["cx","AdsAMViewStore","AdsAudienceManagerFilterBarConstants","AdsAudienceManagerFilterBarUtils","AdsFluxHooks","AdsInterfacesLogger","AdsTargetingAudienceEditorGKSelectors","AdsTargetingIosSignalLossSelectors","AdsUnifiedAudienceManagerFilterBar.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerSearchBar.react","AudienceManagerSelectableTable.react","BUIDetailPaneActions.brands","FlexLayout.react","ScrollableArea.react","UnifiedAudiencesManagerAudienceDetailPaneConstants","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=j.createRef(),e=284,g=14,h=300,i=56,k=47,l=d("AdsFluxHooks").useAdsSelector(c("AdsAMViewStore").getState),m=l.nameFilter,n=l.filterSet;function o(){a.controller.filterCAAndSTS(a.constructFilter()),d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SEARCH_COMPLETE,{search_string:m}),c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_FILTER_NAME_SEARCH},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function p(){return!!n}function q(a){c("AdsAMViewStore").setNameFilter(a?a.trim():a)}function r(d){c("AdsAMViewStore").setNameFilter(""),d&&a.controller.filterCAAndSTS(a.constructFilter()),b.current&&b.current.clearInput()}function s(b){d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.FILTER_PRESET_CHANGED,b||""),a.handleFilterSetChanged(b),c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_FILTER_LEFT_PRESET_CHANGED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP),c("BUIDetailPaneActions.brands").close()}function t(a,b){a=d("AdsAudienceManagerFilterBarUtils").getAddedFilterSets(a,b);if(a.length===0)return;a.every(function(a){return c("AdsInterfacesLogger").log({eventName:d("AdsAudienceManagerFilterBarConstants").AdsAMFilterBarLogEvents[a.key]},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)})}function u(a,b){if(b.length===0&&a.length===0){s(null);return}var c=n;if(c==null)c=d("AdsAudienceManagerFilterBarUtils").mergeFilterSets(a);else{var e=[];b.forEach(function(a){e.push(a.filterSet)});c=d("AdsAudienceManagerFilterBarUtils").combineFilterSets(c,a);c=d("AdsAudienceManagerFilterBarUtils").excludeFilterSets(c,d("AdsAudienceManagerFilterBarUtils").getAddedFilterSets(a,e))}t(d("AdsAudienceManagerFilterBarUtils").getSelectedFilterSets(b,n),a);s(c)}var v=d("AdsFluxHooks").useAdsSelector(d("AdsTargetingAudienceEditorGKSelectors").showUnusedAudiencesGKSelector),w=d("AdsFluxHooks").useAdsSelector(d("AdsTargetingAudienceEditorGKSelectors").showUnusedAudiencesUILaunchSelector),x=d("AdsFluxHooks").useAdsSelector(d("AdsTargetingIosSignalLossSelectors").signalLossDFCAReplaceGKSelector)&&a.replaceDfca;function y(){return j.jsx(c("AdsUnifiedAudienceManagerFilterBar.react"),{filterSet:n,highlightAllAudiencesByDefault:!m,isFromDFCAReplaceUpsell:x,showUnusedAudiencesGK:v,showUnusedAudiencesUILaunchGK:w,onClear:r,onSelect:u})}y.displayName=y.name+" [from "+f.id+"]";function z(a,b){b?d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SELECT_AUDIENCE,{audienceID:a}):d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.UNSELECT_AUDIENCE,{audienceID:a})}function A(){d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.LOAD_MORE_BY_SCROLLING),(c("AdsAMViewStore").getCustomAudienceAfterCursor()||c("AdsAMViewStore").getSavedTargetSpecAfterCursor()||a.controller.shouldFetchMore())&&a.controller.fetchMoreCAAndSTS(a.constructFilter(),c("AdsAMViewStore").getCustomAudienceAfterCursor(),c("AdsAMViewStore").getSavedTargetSpecAfterCursor())}function B(){var b=a.width-g*4-e,c=a.leftNavUIState.isCollapsed?i:h,f=a.clickedAudienceID!=null?d("UnifiedAudiencesManagerAudienceDetailPaneConstants").AUDIENCE_DETAILS_PANE_WIDTH:0;return b-c-f}l=a.getTableHeight();p()&&(l-=k);p={account_id:a.accountID};k=c("gkx")("4126");return j.jsx("div",{className:"_5dg_","data-testid":void 0,children:j.jsxs(c("FlexLayout.react"),{direction:"horizontal",children:[j.jsx("div",{className:"_83bi",style:{height:l},children:j.jsxs(c("ScrollableArea.react"),{maxHeight:a.height,children:[j.jsx(c("AudienceManagerSearchBar.react"),{ref:b,onKeywordsChanged:q,onKeywordsComplete:o},"search_bar"),y()]})}),j.jsx("div",{children:j.jsx(c("AudienceManagerSelectableTable.react"),{account:p,businessID:a.businessID,canWrite:a.canWrite,dao:a.primedDao,height:l,isAdAccountInUnusedAudiencesUILaunchGK:w,isDisabledAccount:a.isDisabledAdAccount,isFromDFCAReplaceUpsell:x,isInAudienceRuleSummaryGK:k,offsiteConsolidatedContainers:a.offsiteConsolidatedContainers,placement:a.placement,selectedAudienceIDs:a.selectedAudienceIDs,useSavedAudience:!0,width:B(),onCheckboxSelect:z,onCreateAudienceClicked:a.onCreateAudienceClicked,onLastRowReached:A})})]})})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
AudienceManagerToolsBar.react",["fbt","invariant","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMConnectConfig","AdsAMViewShowBulkDeleteDialogAction","AdsAMViewShowBulkShareAudienceDialogAction","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowOptOutDialogAction","AdsAMViewShowPixelDialogAction","AdsAMViewShowRegularEditDialogAction","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAMViewShowWcaDialogAction","AdsAMViewStore","AdsAudienceDataSourceUtils","AdsCreateAudienceActionSelector.react","AdsFluxHooks","AdsInterfacesLogger","AdsPixelDialogTypes","AdsPixelViewActions","AdsTargetingAudienceEditorGKSelectors","AdsTargetingIosSignalLossSelectors","AudienceManagerActionSelector.react","AudienceManagerColumnSelector.react","AudienceManagerDeleteAudiencesButton.react","AudienceManagerEditAudiencesButton.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerPerfScenarioLoggingUtils","AudienceManagerPlacement","AudienceManagerShareAudiencesButton.react","AudienceManagerUIConstants","BUIButton.react","DialogActions.brands","GeoToolbar.react","GeoToolbarFill.react","JSResource","adsAccountGK","gkx","ifRequired","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){var b="basecode",e=d("AudienceManagerUIConstants").BULK_ACTION_TYPE;function g(b){var e=b.value;b=b.checked;a.controller.updateColumnShown(e,b);e=c("AdsAMViewStore").getColumnsShown();a.controller.saveColumnsShownSettings(e);d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.COLUMN_CUSTOMIZE,{column:function(a,b){return b.value},checked:function(a,b){return b.checked}});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_COLUMN_CUSTOMIZE},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function j(){return k.jsx(c("AudienceManagerColumnSelector.react"),{columnsShown:c("AdsAMViewStore").getColumnsShown(),onSelectorChange:g},"column_selector")}j.displayName=j.name+" [from "+f.id+"]";function l(){var b=h._("u9000u51fau7528u6237");return k.jsx(c("BUIButton.react"),{label:b,onClick:a.handleOptOutUserButtonClicked},"opt_out_user_button")}l.displayName=l.name+" [from "+f.id+"]";function m(){return c("gkx")("3090")}function n(){d("DialogActions.brands").openDialog({isAsync:!0,dialogWidth:600,dialogResource:c("JSResource")("AddTagsDialogController.brands").__setRef("AudienceManagerToolsBar.react"),dialogProps:{selectedObjectIDs:a.selectedAudienceIDs,onCancelAddTags:d("DialogActions.brands").closeDialog}}),c("ifRequired")("AssetLibraryLogger.brands",function(b){b.logUserAction(b.EVENT_NAME.ADD_TAG_TO_OBJECT_BUTTON_CLICK,{selectedAssets:a.selectedAudienceIDs})})}function o(b){switch(b){case e.DELETE:c("AdsAMViewShowBulkDeleteDialogAction").dispatch({},{line:"170",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DELETE_CLICK);c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_BULK_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case e.CREATE_AD:d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_AD_CLICK);var g=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});a.controller.bulkCreateAd(g);break;case e.AUDIENCES_OVERLAP:a.handleAudienceOverlapButtonClicked();break;case e.SHARE:c("AdsAMViewShowBulkShareAudienceDialogAction").dispatch({audienceIDs:a.selectedAudienceIDs},{line:"191",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARE_CLICK);c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_SHARE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"add_tags":n();break;default:i(0,12342,b)}}function p(b){switch(b){case"audiences_overlap":a.handleAudienceOverlapButtonClicked();break;case"add_tags":n();break;default:i(0,12342,b)}}function q(e){var g,h=c("AdsAMAudienceStore").getState(a.selectedAudienceIDs[0]);switch(e){case"edit":((g=h.data_source)==null?void 0:g.sub_type)===c("AdsAudienceDataSourceUtils").SUBTYPES.WEB_PIXEL_HITS&&!d("AdsAMAudienceUtils").isSubscriberSegmentAudience(h==null?void 0:h.subtype)?c("AdsAMViewShowWcaDialogAction").dispatch({audienceId:h.id},{line:"235",module:"AudienceManagerToolsBar.react.js",moduleID:f.id}):c("AdsAMViewShowRegularEditDialogAction").dispatch({audienceId:h.id},{line:"239",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerPerfScenarioLoggingUtils").logCustomAudienceEditStart(h);d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.EDIT_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_EDIT_CLICKED,data:(g={},g.targeting_ui_event_data=JSON.stringify(d("AudienceManagerLoggingUtils").getAudienceTypeForLog(h)),g)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"delete":c("AdsAMViewShowDeleteAudienceDialogAction").dispatch({audienceId:h.id},{line:"261",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DELETE_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"pixel":c("AdsAMViewShowPixelDialogAction").dispatch({audienceId:h.id},{line:"277",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AdsPixelViewActions").dialogTypeChange(c("AdsPixelDialogTypes").INTEGRATIONS_CMS,{integrationName:b});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.VIEW_PIXEL_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_VIEW_PIXEL_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"share":c("AdsAMViewShowShareAudienceDialogAction").dispatch({audienceId:h.id},{line:"297",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARE_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_SHARE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"lookalike":c("AdsAMViewShowLookalikeDialogAction").dispatch({audienceId:h.id},{line:"314",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_LOOKALIKE_CLICK,{audience_id:h.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_CREATE_LAL_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"optout":c("AdsAMViewShowOptOutDialogAction").dispatch({audienceId:h.id},{line:"331",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});break;case"audiences_overlap":a.handleAudienceOverlapButtonClicked();break;case"add_tags":n();break;default:i(0,3600,e)}}function r(b){var e,g=c("AdsAMAudienceStore").getState(a.selectedAudienceIDs[0]);switch(b){case"edit":d("AdsAMAudienceUtils").isSavedAudience(g)?c("AdsAMViewShowSavedAudienceEditDialogAction").dispatch({audienceId:g.id},{line:"354",module:"AudienceManagerToolsBar.react.js",moduleID:f.id}):c("AdsAMViewShowSavedTargetSpecDialogAction").dispatch({audienceId:g.id},{line:"358",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_EDIT_CLICKED,data:(e={},e.targeting_ui_event_data=JSON.stringify(d("AudienceManagerLoggingUtils").getAudienceTypeForLog(g)),e)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"delete":c("AdsAMViewShowBulkDeleteDialogAction").dispatch({},{line:"375",module:"AudienceManagerToolsBar.react.js",moduleID:f.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_TABLE_ACTION_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);break;case"audiences_overlap":a.handleAudienceOverlapButtonClicked();break;case"add_tags":n();break;default:i(0,3600,b)}}var s=d("AdsFluxHooks").useAdsSelector(d("AdsTargetingIosSignalLossSelectors").signalLossDFCAReplaceGKSelector);function t(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerEditAudiencesButton.react"),{accountID:a.accountID,businessID:a.businessID,isAudienceCreationBlockedWithoutBM:m(),selectedAudiences:b,signalLossDFCAReplaceGK:s,onBulkAction:o,onCAAction:q,onMultipleOverlapAction:p,onSTGAction:r},"edit_audience")}t.displayName=t.name+" [from "+f.id+"]";function u(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerDeleteAudiencesButton.react"),{accountID:a.accountID,selectedAudiences:b,onBulkAction:o,onCAAction:q,onMultipleOverlapAction:p,onSTGAction:r},"delete_audience")}u.displayName=u.name+" [from "+f.id+"]";var v=d("AdsFluxHooks").useAdsSelector(d("AdsTargetingAudienceEditorGKSelectors").passDfcaAudienceManagerAdvFrictionGuidance);function w(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)});return k.jsx(c("AudienceManagerShareAudiencesButton.react"),{accountID:a.accountID,businessID:a.businessID,enableDfcaAudienceManagerAdvFrictionGuidance:v,selectedAudiences:b,onBulkAction:o,onCAAction:q,onMultipleOverlapAction:p,onSTGAction:r},"share_audience")}w.displayName=w.name+" [from "+f.id+"]";function x(){return a.placement===c("AudienceManagerPlacement").POWER_EDITOR?h._("u521bu5efau5e7fu544au7ec4"):h._("u521bu5efau5e7fu544a")}x.displayName=x.name+" [from "+f.id+"]";var y=d("AdsFluxHooks").useAdsSelector(d("AdsTargetingAudienceEditorGKSelectors").messageMarketingAMGKBetaSelector);function z(){var b=a.selectedAudienceIDs.map(function(a){return c("AdsAMAudienceStore").getState(a)}),d=c("AdsAMAudienceStore").getAccount();d=c("adsAccountGK")._(d,"2jJcF2Tn9");return k.jsx("div",{children:k.jsx(c("AudienceManagerActionSelector.react"),{accountID:a.accountID,businessID:a.businessID,canEditLabels:a.placement===c("AudienceManagerPlacement").BIZ_ASSET_LIBRARY,canSeeManageSubscribers:y,canSeePlatformWCAUI:!0,canUseOptOut:d,controller:a.controller,createAdlabel:x(),hasHitAudienceUpdateLimit:!1,isAudienceCreationBlockedWithoutBM:m(),nextAudienceUpdateAvailableTime:"",selectedAudiences:b,onAdCreate:a.onAdCreate,onBulkAction:o,onCAAction:q,onManageSubscribersClick:a.onManageSubscribersClick,onMultipleOverlapAction:p,onSTGAction:r})},"action_selector")}z.displayName=z.name+" [from "+f.id+"]";function A(){return k.jsx(c("AdsCreateAudienceActionSelector.react"),{disabled:!a.canWrite&&!c("AdsAMConnectConfig").create_draft_audiences||a.isDisabledAdAccount,isSpecialAdAudienceDeprecationPhase1Enabled:a.isSpecialAdAudienceDeprecationPhase1Enabled,use:"primary",useSavedAudience:!0,onAction:a.onCreateAudienceClicked},"inline_create_button")}A.displayName=A.name+" [from "+f.id+"]";var B=a.placement===c("AudienceManagerPlacement").BIZ_ASSET_LIBRARY;j=j();var C=[],D=c("gkx")("4262");D&&C.push(l());C.push(t());C.push(w());C.push(u());C.push(z());D=[j];(a.placement===c("AudienceManagerPlacement").NEW_ADS_MANAGER||B)&&a.hasContent&&C.unshift(A());return k.jsxs(c("GeoToolbar.react"),{children:[k.jsx(c("GeoToolbar.react"),{children:C}),k.jsx(c("GeoToolbarFill.react"),{}),k.jsx(c("GeoToolbar.react"),{children:D})]})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a);g["default"]=b}),98);
-----
AdsEventsManagerConsolidatedDataSetEventOverviewContainer.react",["fbt","AdsEventsManagerConsolidatedDataSetDataSourceBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetEventBreakdownExportDataModalContainer.react","AdsEventsManagerConsolidatedDataSetEventOverviewTabNameLabels","AdsEventsManagerConsolidatedDataSetEventsDeviceBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetEventsDomainBreakdownTableContainer.react","AdsEventsManagerConsolidatedDataSetEventsUrlBreakdownTableContainer.react","AdsEventsManagerEventOverviewErrorCard.react","AdsEventsManagerPixelEventBreakdownTypeEnum","AdsEventsManagerPixelEventOverviewLoggingConstants","AdsEventsManagerPixelEventSetupQualityOverview.react","AdsFluxHooks","AdsInterfacesRouter","AdsLoadObjectUtils","GeoButton.react","GeoHeading.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","GeoToolbar.react","GeoToolbarFill.react","S2SOverviewSectionLoggingHelper","SignalsHomeExportEventDataOpenModalAction","SignalsLoadingSpinner.react","SignalsLoggingBoundary.react","adsCreateStructuredSelector","adsEventsManagerDataSourceIDSelectorEnforced","adsEventsManagerPixelDateRangeSelector","adsEventsManagerPixelEventTimelineChartDataSelector","err","geoMargin","isTruthy","react","signalsLoadObjectComponent","signalsLoggingUserInputWithValueContextListener","stylex","useDatasetGK"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useState,n=100,o=c("adsCreateStructuredSelector")({datasetID:c("adsEventsManagerDataSourceIDSelectorEnforced"),eventChartDataLO:c("adsEventsManagerPixelEventTimelineChartDataSelector")("EVENT_TIMELINE_WITH_RECEIVED_ONLY"),selectedDateRange:c("adsEventsManagerPixelDateRangeSelector")},f.id+".overviewSelector");function p(a){switch(a){case"DATA_SOURCE":return h._("u8fd9u4e2au8868u683cu663eu793au4e86u6839u636eu4f60u7528u6765u96c6u6210u548cu5206u4eabu6570u636eu7684u6bcfu6b3eu5de5u5177uff0cFacebook u6536u5230u548cu5904u7406u8fd9u4e2au4e8bu4ef6u7684u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"URLS":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9au7f51u5740u63a5u6536u6b64u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"DOMAINS":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9au57dfu540du63a5u6536u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");case"DEVICES":return h._("u8fd9u4e2au8868u683cu663eu793auff1au4eceu7279u5b9au8bbeu5907u7c7bu578bu63a5u6536u6b64u4e8bu4ef6u540euff0cu5bf9u4e8bu4ef6u7684u5904u7406u6b21u6570u3002u6211u4eecu5904u7406u4e8bu4ef6u540euff0cu8fd9u91ccu7684u4fe1u606fu6700u591au53efu80fdu9700u8981 20 u5206u949fu624du4f1au66f4u65b0u3002");default:throw c("err")("Invalid category selection")}}function q(a){var b=a.selectedCategory,d=a.selectedDateRange,e=a.eventName;a=a.datasetID;switch(b){case"DATA_SOURCE":return k.jsx(c("AdsEventsManagerConsolidatedDataSetDataSourceBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"URLS":return k.jsx(c("AdsEventsManagerConsolidatedDataSetEventsUrlBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"DOMAINS":return k.jsx(c("AdsEventsManagerConsolidatedDataSetEventsDomainBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d});case"DEVICES":return k.jsx(c("AdsEventsManagerConsolidatedDataSetEventsDeviceBreakdownTableContainer.react"),{dataSourceID:a,eventName:e,selectedDateRange:d})}throw c("err")("Invalid category selection")}q.displayName=q.name+" [from "+f.id+"]";function a(a){a=a.logger;var b=c("AdsInterfacesRouter").get().getSemanticParams();b=b.eventName;var e=d("AdsFluxHooks").useAdsSelector(o,b),f=e.eventChartDataLO,g=e.datasetID;e=e.selectedDateRange;f=d("AdsLoadObjectUtils").all([f]);return k.jsx(r,{datasetID:g,eventName:b,logger:a,object:f,selectedDateRange:e})}a.displayName=a.name+" [from "+f.id+"]";var r=c("signalsLoadObjectComponent")("AdsEventsManagerPixelEventSetupQualityOverviewContainer",{Error:function(){return k.jsx(c("AdsEventsManagerEventOverviewErrorCard.react"),{})},Loaded:function(a){var b=a.value,e=a.selectedDateRange,g=a.logger,j=a.eventName,o=a.datasetID;a=b[0].eventSources;a=a.includes("SERVER_ONLY");var r=c("useDatasetGK")(o,["spex_growth_event_overview_tab_browser_events"],!a);r=r.result;r=c("isTruthy")(r==null?void 0:r.spex_growth_event_overview_tab_browser_events);var s=m("DATA_SOURCE"),t=s[0],u=s[1];s=l(function(a){u(a),g.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames.CATEGORY_TYPE_SELECTOR,stringValue:a}}).scope(d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewLoggingActions.CLICK_CATEGORY_TYPE_SELECTOR).logSelect()},[u,g]);var v=l(function(){g.scope(d("S2SOverviewSectionLoggingHelper").ACTIONS.OPEN_EXPORT_BREAKDOWN_MODAL).logClick(),c("SignalsHomeExportEventDataOpenModalAction").dispatch({eventName:j,pixelID:o},{line:"252",module:"AdsEventsManagerConsolidatedDataSetEventOverviewContainer.react.js",moduleID:f.id})},[j,g,o]);s=k.jsx("div",{className:"x13ie5k6",children:k.jsx(c("GeoSelector.react"),{"data-testid":void 0,isLabelHidden:!0,label:"breakdown_type",value:t,onChange:s,children:Object.keys(c("AdsEventsManagerPixelEventBreakdownTypeEnum")).map(function(a){return k.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:c("AdsEventsManagerConsolidatedDataSetEventOverviewTabNameLabels")[a],value:a},a)})})});v=k.jsx("div",{children:k.jsx(c("GeoButton.react"),{label:h._("u5bfcu51fau6570u636e"),minWidth:n,onClick:v})});return r||a?k.jsx(c("AdsEventsManagerPixelEventSetupQualityOverview.react"),{dataSourceID:o,dataTestId:"EVENT_DETAILS_EVENT_OVERVIEW_CONTAINER",eventChartData:b,eventName:j,selectedDateRange:e}):k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"x78zum5 xdt5ytf x1iyjqo2 x5yr21d x1gja9t xh8yej3","data-testid":void 0,children:[k.jsxs(c("GeoToolbar.react"),{children:[k.jsxs("div",{className:"x78zum5 xdt5ytf",children:[k.jsx(c("GeoHeading.react"),{"data-testid":void 0,level:1,children:h._("{category}u4e8bu4ef6u52a8u6001",[h._param("category",c("AdsEventsManagerConsolidatedDataSetEventOverviewTabNameLabels")[t])])}),k.jsxs("div",{className:"x78zum5 x1qughib x14vqqas",children:[k.jsx("div",{className:"x1cxeki3",children:k.jsx(c("GeoText.react"),{children:p(t)})}),k.jsxs("div",{className:"x78zum5",children:[k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").end4),children:s}),v]})]})]}),k.jsx(c("GeoToolbarFill.react"),{})]}),k.jsx("div",{className:(i||(i=c("stylex")))(c("geoMargin").top12),children:k.jsx(q,{datasetID:o,eventName:j,selectedCategory:t,selectedDateRange:e})})]}),k.jsx(c("AdsEventsManagerConsolidatedDataSetEventBreakdownExportDataModalContainer.react"),{selectedCategory:t})]})},Loading:function(){return k.jsx(c("SignalsLoadingSpinner.react"),{})}});e=c("SignalsLoggingBoundary.react").loggerConsumingComponent(d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id}),function(a){return a.scope("AdsEventsManagerConsolidatedDataSetEventEventOverviewContainer")},{disableSessionCreation:!0});g["default"]=e}),98);
-----
MDCAppStoreAppSearchResult.react",["cx","fbt","MDCAppStoreAppEntitlement","MDCAppStoreImpressionLoggingConstants","MDCAppStoreLink.react","MDCAppStoreLoggingAPI","MDCAppStoreOCOnVisible.react","MDCAppStoreSkylineWebClientEventLogger","MDCAppStoreStoreAPI","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=500,l=.6;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
MDCAppStoreSectionCarouselItem.react",["cx","MDCAppStoreAssetConstants","MDCAppStoreImpressionLoggingConstants","MDCAppStoreOCOnVisible.react","MDCAppStoreSectionCarouselItem_item.graphql","MDCAppStoreSectionCarouselItem_tileAsset.graphql","MDCAppStoreSkylineWebClientEventLogger","MDCAppStoreStoreSectionItemLink.react","MDCAppStoreStoreSectionItemOverlay.react","react","react-relay"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("react").useCallback;a=function(a){var b,e=a.animationDirection,f=a.item,g=a.orderName,h=a.position,i=a.sectionID,j=a.tileAsset,m=a.traceID,n=babelHelpers.objectWithoutPropertiesLoose(a,["animationDirection","item","orderName","position","sectionID","tileAsset","traceID"]);a=l(function(){var a;d("MDCAppStoreSkylineWebClientEventLogger").logClientEvent({event:"TILE_RENDERED",contentId:(a=f==null?void 0:f.id)!=null?a:"",trace:typeof m==="string"?m:"",position:h})},[f,m,h]);var o={backgroundImage:"url(""+encodeURI((b=f==null?void 0:(b=f.hero_image)==null?void 0:b.uri)!=null?b:"")+"")"},p=j&&j.name===d("MDCAppStoreAssetConstants").ASSET_NAMES.TILE_ANIMATION_GLINT,q="_anme"+(g==="previous"?" _anmg":"")+(g==="next"?" _anmh":"")+(g==="current"?" _anmf":"")+(g==="previous"&&e==="right"?" _anml":"")+(g==="next"&&e==="left"?" _anmk":"")+(g==="current"&&e==="right"?" _anmi":"")+(g==="current"&&e==="left"?" _anmj":"");return k.jsx(c("MDCAppStoreOCOnVisible.react"),{threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD,onVisible:a,children:function(a){return k.jsx(c("MDCAppStoreStoreSectionItemLink.react"),babelHelpers["extends"]({},n,{className:q,item:f,itemPosition:h,linkRef:a,parentSectionID:i,parentSectionLayout:"SKYLINE_SPOTLIGHT_FEATURED",parentSectionPosition:1,style:o,traceID:m,children:k.jsx(c("MDCAppStoreStoreSectionItemOverlay.react"),{hasGlint:p,isFeatured:!0,item:f,sectionLayout:"SKYLINE_SPOTLIGHT_FEATURED"})}))}})};e=d("react-relay").createFragmentContainer(a,{item:i!==void 0?i:i=b("MDCAppStoreSectionCarouselItem_item.graphql"),tileAsset:j!==void 0?j:j=b("MDCAppStoreSectionCarouselItem_tileAsset.graphql")});g["default"]=e}),98);
-----
MDCAppStoreSectionItem.react",["cx","MDCAppStoreAssetConstants","MDCAppStoreImpressionLoggingConstants","MDCAppStoreOCOnVisible.react","MDCAppStoreOculusImpressionEventsLoggingHooks","MDCAppStoreSectionItemTile.react","MDCAppStoreSectionItem_app.graphql","MDCAppStoreSectionItem_tileAsset.graphql","MDCAppStoreSkylineWebClientEventLogger","MDCAppStoreStoreSectionItemByline.react","RelayHooks","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("react").useCallback;a=function(a){var b=d("RelayHooks").useFragment(m,a.app),e=d("RelayHooks").useFragment(n,a.tileAsset),f=a.isFeatured,g=a.isFeaturedTile,h=a.isPortraitTile,i=a.sectionID,j=a.sectionLayout,o=a.sectionPosition,p=a.tilePosition,q=a.traceID,r=d("MDCAppStoreOculusImpressionEventsLoggingHooks").useImpressionLogging("MDCAppStoreSectionItem");a=l(function(){var a;d("MDCAppStoreSkylineWebClientEventLogger").logClientEvent({event:"TILE_RENDERED",contentId:(a=b==null?void 0:b.id)!=null?a:"",trace:typeof q==="string"?q:"",position:(o-1)*d("MDCAppStoreImpressionLoggingConstants").SECTION_IDX_MULTIPLIER+p});r("oculus_impressions_tile_vpved",{content_id:b==null?void 0:b.id})},[b==null?void 0:b.id,r,o,p,q]);if(!b||b.id==null)return k.jsx(c("MDCAppStoreSectionItemTile.react"),{});var s=e!=null&&e.name===d("MDCAppStoreAssetConstants").ASSET_NAMES.TILE_ANIMATION_GLINT;e=k.jsx(c("MDCAppStoreStoreSectionItemByline.react"),{isFeatured:f,itemRef:b});return k.jsxs("div",{className:"_anhn",children:[k.jsx(c("MDCAppStoreOCOnVisible.react"),{threshold:d("MDCAppStoreImpressionLoggingConstants").VISIBILITY_THRESHOLD,onVisible:a,children:function(a){return k.jsx(c("MDCAppStoreSectionItemTile.react"),{hasGlint:s,isFeatured:f,isFeaturedTile:g,isPortraitTile:h,item:b,linkRef:a,sectionID:i,sectionLayout:j,sectionPosition:o,tilePosition:p,traceID:q})}}),!f&&b.should_overlay_title==null&&k.jsxs("div",{className:"_anho",children:[k.jsx("div",{className:"_anhp",children:b.display_name}),k.jsx("div",{className:"_anhq",children:e})]})]})};var m=i!==void 0?i:i=b("MDCAppStoreSectionItem_app.graphql"),n=j!==void 0?j:j=b("MDCAppStoreSectionItem_tileAsset.graphql");e=a;g["default"]=e}),98);
-----
MDCAppStoreImpressionLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a=.75;b=100;f.VISIBILITY_THRESHOLD=a;f.SECTION_IDX_MULTIPLIER=b}),66);
-----
AudienceManagerBlankState.react",["cx","fbt","AdsCreateSavedAudienceTargetingDialogContainerWrapper.react","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsInterfacesLogger","AdsManagerEmptyStateInfo.react","AdsTargetingAudienceEditorGKSelectors","AdsTargetingPotentialReachConstant","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerTieredLookalikeDialog.react","GeoButton.react","GeoHeading.react","GeoText.react","Link.react","URI","immutable","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
AdsEventsManagerConsolidatedDataSetHistoryActivityTableContainer.react",["fbt","AdsEventsManagerHistoryActivityTable.react","AdsFluxHooks","GeoDropdownMenu.react","GeoMenuItem.react","SignalsActivityLogEventFbts","SignalsActivityTypeEnum","SignalsActivityTypeMapping","SignalsErrorCard.react","SignalsEventsTableAssets.react","SignalsHistoryDataProvider","SignalsHistoryTableFilterUtils","SignalsHistoryTableLoggingConstants","SignalsPixelHistoryLoadMoreItemsAction","adsCreateSelector","adsCreateStructuredSelector","adsEventsManagerDataSourceIDSelectorEnforced","geoMargin","qpl","react","signalsLoggingUserInputWithValueContextListener","useSignalsLogger","useSignalsLoggingEffectOnce"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo,l=b.useState;e=c("SignalsHistoryDataProvider").toFluxSelector();b=c("adsCreateSelector")([c("adsEventsManagerDataSourceIDSelectorEnforced"),e],function(a,b){return b.get(a)},{name:f.id+".historyDataSelector"});var m=c("adsCreateStructuredSelector")({datasetID:c("adsEventsManagerDataSourceIDSelectorEnforced"),historyDataLO:b},f.id+".selector");function a(){var a,b=c("useSignalsLogger")();c("useSignalsLoggingEffectOnce")(function(){b.startEvent(c("qpl")._(58195969,"4642"))});var e=d("AdsFluxHooks").useAdsSelector(m),g=e.datasetID;e=e.historyDataLO;var h=j(function(){return c("SignalsPixelHistoryLoadMoreItemsAction").dispatch({pixelID:g},{line:"79",module:"AdsEventsManagerConsolidatedDataSetHistoryActivityTableContainer.react.js",moduleID:f.id})},[g]);if(e.hasError()){b.endEventFail(c("qpl")._(58195969,"4642"));return i.jsx(c("SignalsErrorCard.react"),{content:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_CONTENT,header:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_HEADER})}return i.jsx(p,{hasMoreItems:((a=e.getValue())==null?void 0:a.after)!=null,historyList:(a=(a=e.getValue())==null?void 0:a.pixelHistoryList)!=null?a:[],isLoading:e.isLoading()||e.isUpdating(),logger:b,onLoadMoreData:h})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.userList,e=a.logger,f=a.onSelect;return b.map(function(a,b){var g=a[0];b=a[1];return i.jsx(c("GeoMenuItem.react"),{"data-testid":void 0,label:b,onClick:function(){e.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.CHANGE_BY_FILTER,stringValue:g}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_CHANGED_BY),f(g)}},g)})}function o(a){var b=a.logger,e=a.onSelect,f=a.categories;return Object.keys(c("SignalsActivityTypeEnum")).filter(function(a){return a==="ALL"||d("SignalsActivityTypeMapping").IMPLEMENTED_ACTIVITY_TYPES[a]===!0&&f.has(a)}).sort(function(a,b){return a==="ALL"?-1:a.toString().localeCompare(b.toString())}).map(function(a,f){return i.jsx(c("GeoMenuItem.react"),{"data-testid":void 0,label:c("SignalsActivityLogEventFbts")[a],onClick:function(){b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.ACTIVITY_TYPE_FILTER,stringValue:a}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_ACTIVITY_TYPE),e(a)}},a)})}function p(a){var b=a.hasMoreItems,e=a.historyList,f=a.isLoading,g=a.logger;a=a.onLoadMoreData;var m=k(function(){return d("SignalsHistoryTableFilterUtils").getPixelUsers(e)},[e]),p=m.userMapping;m=m.sortedUserList;var q=l("ALL"),r=q[0];q=q[1];var s=j(function(){g.scope("ACTIVITY_TYPE_FILTER").logClick()},[g]),t=l(d("SignalsHistoryTableFilterUtils").ALL_USERS_ID),u=t[0];t=t[1];var v=j(function(){g.scope("CHANGE_BY_FILTER").logClick()},[g]),w=k(function(){return new Set(e.map(function(a){return d("SignalsActivityTypeMapping").SignalsActivityTypeMapping[a.actionType]}).filter(Boolean))},[e]),x=k(function(){return d("SignalsHistoryTableFilterUtils").filterHistory({selectedCategory:r,selectedUserId:u},e)},[r,u,e]);p=h._("u66f4u6539u4ebauff1a{selected user}",[h._param("selected user",p[u])]);var y=h._("u52a8u6001u7c7bu578buff1a{selected activity type}",[h._param("selected activity type",c("SignalsActivityLogEventFbts")[r])]);return i.jsxs("div",{style:{display:"flex",flexDirection:"column",width:"100%"},children:[i.jsxs("div",{style:{display:"flex",justifyContent:"flex-end"},children:[i.jsx(c("GeoDropdownMenu.react"),{"data-testid":void 0,label:p,xstyle:c("geoMargin").end8,onClick:v,children:i.jsx(n,{logger:g,userList:m,onSelect:t})}),i.jsx(c("GeoDropdownMenu.react"),{"data-testid":void 0,label:y,onClick:s,children:i.jsx(o,{categories:w,logger:g,onSelect:q})})]}),i.jsx(c("AdsEventsManagerHistoryActivityTable.react"),{dataSource:x,hasMoreItems:b,isLoading:f,onLoadMoreData:a})]})}p.displayName=p.name+" [from "+f.id+"]";e=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=e}),98);
-----
AdsStandaloneCanvasEditorDialogContainer.react",["AdsAccountSelectDataAction","AdsAccountStore","AdsAdgroupCombinedStore","AdsCFAdgroupEditorContext","AdsCanvasBuilderContainer.react","AdsCanvasCapabilityConfig","AdsCanvasEditorFunnelLogging","AdsCanvasEditorFunnelLoggingConstants","AdsCanvasInlineBuilderContainer.react","AdsUEditorAdgroupContextContainer.react","BUISpinner_DEPRECATED.react","CanvasCreationWaterfallTypedLogger","FluxContainer","FunnelLogger","RichMediaEditorActions","RichMediaLoggingStoreUtils","WebApiApplication","nullthrows","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b("AdsAdgroupCombinedStore");var i="newCanvasDialog";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e,f;for(var g=arguments.length,h=new Array(g),i=0;i
StoriesSingleBucketFeedUnitUFI.react",["CometPlaceholder.react","CometRelay","CometUFIFeedbackReactSubscription","CometUFIRealtimeRoot.react","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","StoriesSingleBucketFeedUnitUFIActionBar.react","StoriesSingleBucketFeedUnitUFI_feedback.graphql","StoriesSingleBucketFeedUnitUFI_story.graphql","StoriesSuspensePauseContext","UFI2RealtimeContainer.react","deferredLoadComponent","react","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useRef,n=e.useState,o=c("deferredLoadComponent")(c("requireDeferred")("StoriesSingleBucketFeedUnitReplyBarContainer.react").__setRef("StoriesSingleBucketFeedUnitUFI.react"));function a(a){var e=a.feedback,f=a.feedbackSource;a=a.story;var g=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSingleBucketFeedUnitUFI_feedback.graphql"),e);e=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSingleBucketFeedUnitUFI_story.graphql"),a);a=l(c("StoriesLoggerContext"));var p=a.logger,q=d("CometRelay").useRelayEnvironment();a=k(function(){var a=g.disable_reaction_subscriptions,b=g.id,c=g.subscription_target_id;return b!=null&&c!=null&&a!==!0?d("CometUFIFeedbackReactSubscription").subscribe(q,{feedback_id:b},!1):null},[g,q]);var r=m(function(){}),s=k(function(a){r.current=a},[]),t=n(!1),u=t[0],v=t[1];t=l(c("StoriesSuspensePauseContext"));var w=t.setPause;t=k(function(){v(!0),w(!0,d("StoriesPauseReasons").FOCUSE_ON_INPUT),r.current(),p.sifAutoplayTextReplyLog(c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER)},[p,w]);var x=g.viewer_actor;return j.jsxs(j.Fragment,{children:[j.jsx(c("CometUFIRealtimeRoot.react"),{enabled:g.is_eligible_for_real_time_updates===!0,children:j.jsx(c("UFI2RealtimeContainer.react"),{subscribe:a,children:j.jsx(c("StoriesSingleBucketFeedUnitUFIActionBar.react"),{feedback:g,feedbackSource:f,handleMessageCTAPress:t,story:e})})}),u&&j.jsx(c("CometPlaceholder.react"),{fallback:null,children:j.jsx(o,{actor:x,setFocusTextReplyHandler:s,setPause:w,story:e})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSingleBucketFeedUnitUFIActionBar.react",["CometRelay","CometRow.react","CometRowItem.react","StoriesLoggerContext","StoriesLoggingConstants","StoriesSingleBucketFeedUnitUFIActionBar_feedback.graphql","StoriesSingleBucketFeedUnitUFIActionBar_story.graphql","StoriesSingleBucketFeedUnitUFIMessageCTA.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext;function a(a){var e=a.feedback,f=a.feedbackSource,g=a.handleMessageCTAPress;a=a.story;e=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSingleBucketFeedUnitUFIActionBar_feedback.graphql"),e);a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSingleBucketFeedUnitUFIActionBar_story.graphql"),a);var m=l(c("StoriesLoggerContext")),n=m.logger,o=k(function(){n.sifAutoplayLwrLog(c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER)},[n]);m=(a=a==null?void 0:(m=a.story_card_info)==null?void 0:m.can_viewer_text_reply)!=null?a:!1;a=e.ufi_action_renderers.map(function(a){return a.__typename==="UFIStoryReactActionRenderer"?j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx("div",{className:"x78zum5 xdt5ytf xl56j7k xh8yej3",onClickCapture:o,children:j.jsx(d("CometRelay").MatchContainer,{match:a,props:{feedbackSource:f}},a.__typename)})},a.__typename):null}).filter(Boolean);m&&a.push(j.jsx(c("CometRowItem.react"),{expanding:!0,children:j.jsx(c("StoriesSingleBucketFeedUnitUFIMessageCTA.react"),{onPress:g})},"CometStoriesInFeedUnitMessageCTA"));return j.jsx("div",{className:"xq8finb x16n37ib",children:j.jsx(c("CometRow.react"),{paddingHorizontal:4,paddingVertical:4,spacingHorizontal:4,testid:void 0,children:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSingleBucketFeedUnitLoggerSessionInitialize",["StoriesLoggerSession","StoriesLoggingConstants","StoriesSingleBucketFeedUnitSessionContext","react","uuidv4"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useContext,i=b.useEffect;function a(){var a=c("uuidv4")(),b=h(c("StoriesSingleBucketFeedUnitSessionContext")),e=b.sessionID;i(function(){d("StoriesLoggerSession").initialize(e,a,c("StoriesLoggingConstants").ACTION_SOURCE.FEED_INLINE_VIEWER)},[e,a])}g["default"]=a}),98);
-----
StoriesSingleBucketFeedUnitMediaContainer.react",["CometPressable.react","CometRelay","StoriesEnums","StoriesGradientBackground.react","StoriesLoggingConstants","StoriesMuteButton.react","StoriesPauseButton.react","StoriesPauseReasons","StoriesProgressBar.react","StoriesSingleBucketFeedUnitContext","StoriesSingleBucketFeedUnitContuxContext","StoriesSingleBucketFeedUnitInteractionHandlerContext","StoriesSingleBucketFeedUnitMediaContainer_media.graphql","StoriesSingleBucketFeedUnitNavigationButtons.react","StoriesSuspenseCardMedia.react","StoriesSuspensePauseContext","StoriesTrayLoggerSessionContext","StoriesViewerMenu.react","XCometStoriesControllerRouteBuilder","deferredLoadComponent","react","requireDeferred","useStoriesCardTimespentLogging","useStoriesDominantColorPicker"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useMemo,m=e.useRef,n=e.useState,o=null;9/16;var p=c("deferredLoadComponent")(c("requireDeferred")("StoriesSingleBucketFeedUnitWatchAgainOverlay.react").__setRef("StoriesSingleBucketFeedUnitMediaContainer.react")),q={gradientBackground:{height:"x5yr21d",opacity:"x1us6l5c",position:"x10l6tqk",width:"xh8yej3",$$css:!0},media:{height:"x5yr21d",position:"x1n2onr6",width:"xvue9z","@media (min-height: 700px) and (max-height: 789px)_width":"x1w0m72n","@media (min-height: 790px)_width":"xrzokey",$$css:!0},mediaTopWrapper:{backgroundImage:"xsxvzsj",height:"x1ymw6g",position:"x10l6tqk",start:"x17qophe",width:"xjl7whj",zIndex:"x1vjfegm",$$css:!0},root:{backgroundColor:"xal61yo",display:"x78zum5",flexDirection:"x1q0g3np",height:"x1egiwwb",justifyContent:"xl56j7k",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",width:"xh8yej3","@media (min-height: 700px) and (max-height: 789px)_height":"x1db0b2","@media (min-height: 790px)_height":"x3pf6vw",$$css:!0}};function a(a){var e,f,g=a.bucketId,r=a.media;a=a.onSeen;r=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSingleBucketFeedUnitMediaContainer_media.graphql"),r);var s=n(null),t=s[0];s=s[1];var u=n(!1),v=u[0],w=u[1];u=k(c("StoriesSuspensePauseContext"));var x=u.isPaused,y=u.setPause;u=k(c("StoriesSingleBucketFeedUnitContuxContext"));var z=u.cardCount,A=u.cardIndex,B=u.cardIndexChanged,C=u.isLastCard,D=u.performCardNavigation;u=k(c("StoriesSingleBucketFeedUnitInteractionHandlerContext"));var E=u.onUnitClick;u=u.shouldShowNux;var F=k(c("StoriesTrayLoggerSessionContext"));F=F.trackingStrings;F=F!=null&&g!=null?F.get(g):"";var G=m(function(){}),H=l(function(){return{setWatchAgainHandler:function(a){G.current=a}}},[]),I=j(function(){C?(w(!0),y(!0,d("StoriesPauseReasons").WATCH_AGAIN_OVERLAY)):D(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD)},[C,D,y]),J=j(function(){w(!1),B(0),y(!1,d("StoriesPauseReasons").CARD_CHANGE),G.current()},[B,y]);e=c("useStoriesDominantColorPicker")({imageURL:r==null?void 0:(e=r.attachments)==null?void 0:(e=e[0])==null?void 0:(e=e.media)==null?void 0:(e=e.attachment_image)==null?void 0:e.uri});var K=e.bottomColor;e=e.topColor;f=n((f=o)!=null?f:!0);var L=f[0],M=f[1];f=function(a){M(a),o=a};var N=c("useStoriesCardTimespentLogging")(),O=N[0];N[1];if((r==null?void 0:r.id)==null||g==null)return null;N=c("XCometStoriesControllerRouteBuilder").buildURL({bucket_id:g,card_id:r.id,source:c("StoriesLoggingConstants").ACTION_SOURCE.FROM_FEED_INLINE_VIEWER,view_single:!0});g={passthroughProps:{trackingString:F},prefetchQueriesOnHover:!0,url:u?void 0:N};return i.jsx(c("StoriesSingleBucketFeedUnitContext").Provider,{value:H,children:i.jsxs("div",{className:"xal61yo x78zum5 x1q0g3np x1egiwwb xl56j7k x6ikm8r x10wlt62 x1n2onr6 xh8yej3 x1db0b2 x3pf6vw",children:[i.jsx("div",{className:"x5yr21d x1us6l5c x10l6tqk xh8yej3",children:i.jsx(c("StoriesGradientBackground.react"),{direction:d("StoriesEnums").GRADIENT_DIRECTION.TOP_BOTTOM,from:e,to:K})}),v&&i.jsx(p,{onPress:J}),i.jsx(c("StoriesSingleBucketFeedUnitNavigationButtons.react"),{children:i.jsx("div",{ref:O,style:{height:"100%"},children:i.jsxs(c("CometPressable.react"),{linkProps:g,onPress:E,overlayDisabled:!0,xstyle:q.media,children:[i.jsxs("div",{className:"xsxvzsj x1ymw6g x10l6tqk x17qophe xjl7whj x1vjfegm",children:[i.jsx(c("StoriesProgressBar.react"),{cardCount:z,cardTimerSource:t,currentCardIndex:A,isPaused:x,onDone:I}),i.jsxs(c("StoriesViewerMenu.react"),{children:[i.jsx(c("StoriesPauseButton.react"),{isPaused:x,setPause:y}),i.jsx(c("StoriesMuteButton.react"),{isMuted:L,onMuteChanged:f})]})]}),i.jsx(c("StoriesSuspenseCardMedia.react"),{isMuted:L,media:r,onSeen:a,onTimerSourceUpdate:s})]})})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsReachFrequencyLoggingConstants",[],(function(a,b,c,d,e,f){a="rf_front_end_error";f.RF_FRONT_END_ERROR=a}),66);
-----
WSSZenonInitializationProvider.react",["CometHeroHoldTrigger.react","Recoil","WSSAtoms","WSSHooks","WSSLoggerHooks","WSSZenonInitializationContext","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonCallIDType","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelTypes","ZenonLoggingConstants","ZenonLoggingHooks","ZenonRequestedMediaType","ZenonToggleScreenSharingButtonUtil","asyncToGeneratorRuntime","cr:1567219","emptyFunction","gkx","isEmpty","react","useAsyncEffect","usePrevious","useZenonDebugValue","useZenonEmptyScreenTrack"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useContext,k=e.useEffect,l=e.useMemo,m=e.useRef,n=e.useState;function a(a){var e=a.callID,f=a.callTrigger,g=a.children,o=a.initialSyncStates,p=a.joinAsSecondary,q=a.peerID,r=a.roomID,s=a.serverInfoData,t=a.usersToRing,u=c("gkx")("6856");a=c("useZenonEmptyScreenTrack")();var v=a[0],w=a[1];a=d("ZenonActorHooks").useZenonActor();var x=a[0],y=d("ZenonAppFeaturesHooks").useDataChannelLabels(),aa=d("Recoil").useSetRecoilState(d("WSSAtoms").joinStateAtom);a=n("unknown");var z=a[0],A=a[1];a=n({state:"unknown",type:"audio"});var B=a[0],C=a[1];a=j(c("ZenonCallsContext"));var D=a.callSDK,E=a.currentClientCallId,F=a.setCurrentClientCallId,G=a.setE2eeModel;a=n([]);var H=a[0],I=a[1];a=n(null);var J=a[0],ba=a[1],K=d("ZenonLoggingHooks").useErrorLogging();a=d("ZenonLoggingHooks").useTimerLogging("GetUserMediaRequestTimer","CallStart_GetUserMediaRequest");var L=a[0],M=a[1],N=d("ZenonLoggingHooks").useSetCallTrigger();N((a=f)!=null?a:"");a=d("ZenonLoggingHooks").useTimerLogging("StartCall","CallStart_StartCall");var O=a[0],P=a[1],Q=d("ZenonLoggingHooks").useSetIsCaller();k(function(){Q(!0)},[Q]);a=d("ZenonLoggingHooks").useTimerLogging("InCallStartFlowTimer","CallStart_InCallStartFlowTimer");var R=a[0],S=a[1],T=c("ZenonCallsHooks").useCallState(),U=c("usePrevious")(T);a=d("WSSHooks").useEndCallShareOnScreenTrackEnded();var ca=d("WSSHooks").useEndCallWhenUserCanceledScreenSharing(),V=c("ZenonToggleScreenSharingButtonUtil").useGetScreenTrack(a),W=c("ZenonToggleScreenSharingButtonUtil").useStopScreenShare(),X=m(!0);k(function(){u&&U!==d("ZenonCallsModelTypes").ZenonCallState.Connected&&T===d("ZenonCallsModelTypes").ZenonCallState.Connected&&X.current&&(X.current=!1,W(),w())},[T,u,U,W,w]);k(function(){R(),O()},[R,O]);k(function(){var a=D.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(ba(a.mwRingRequest),A("ready")):a.messageType==="parentWindowConnectionTimeout"?A("timeout"):A("unknown"),P()});return function(){a.remove()}},[D,P]);c("useAsyncEffect")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){L();try{if(u){var a=v();a!=null&&I([a])}else{a=[yield V()];I(a)}C({state:"fulfilled",type:"audio"})}catch(a){C({error:a,state:"rejected",type:"audio"}),K({checkpoint:"WSSZenonInitializationProvider_join_getScreenTrack_error",error:a,errorDomain:"WSSZenonInitializationProvider"}),a instanceof c("ZenonToggleScreenSharingButtonUtil").MacScreenRecordingPermissionError&&(K({checkpoint:"WSSZenonInitializationProvider_join_getScreenTrack_mac_os_permission_error",error:a,errorDomain:"WSSZenonInitializationProvider"}),aa("MACOS_PERMISSION_ERROR")),a instanceof c("ZenonToggleScreenSharingButtonUtil").UserCancelledError&&ca()}finally{M()}}),[]);var Y=i(function(){D.join({callMedia:c("ZenonRequestedMediaType").Video,callTrigger:f,clientCallID:E,dataChannels:new Set(y),initialSyncStates:o==null?null:new Map(o),isSecondaryJoinRole:p,localMedia:H,mwRingRequest:J,peerID:q,roomID:r,serverInfoData:s,setE2eeModel:G,signalingID:e!=null?String(e):null,usersToRing:t.filter(function(a){return x!==a})})},[D,f,E,y,o,p,H,J,q,r,e,s,G,t,x]);k(function(){z==="ready"&&!c("isEmpty")(H)&&(A("joined"),Y(),S())},[S,Y,H,z]);var Z=i(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){C({state:"unknown",type:"audio"});L();try{var a=[];if(u){var b=v();b!=null&&a.push(b)}else a.push(yield V());I(a);C({state:"fulfilled",type:"audio"});N(d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON);b="0";b=String(d("ZenonCallIDType").generateZenonCallID());F(b);var e=String(d("ZenonCallIDType").generateZenonCallID());D.join({callMedia:c("ZenonRequestedMediaType").Video,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON,clientCallID:b,dataChannels:new Set(y),localMedia:a,mwRingRequest:null,offer:null,peerID:q,roomID:r,setE2eeModel:G,signalingID:e,usersToRing:t.filter(function(a){return x!==a})})}catch(a){K({checkpoint:"WSSZenonInitializationProvider_rejoin_getScreenTrack_error",error:a,errorDomain:"WSSZenonInitializationProvider"}),C({error:a,state:"rejected",type:"audio"})}finally{M()}}),[L,u,N,F,D,y,q,r,G,t,v,V,x,K,M]),$=m(c("emptyFunction"));$.current=function(){H.forEach(function(a){a.webrtcTrack.stop()})};k(function(){return function(){w(),$.current()}},[w]);a=l(function(){return{joinCall:Y,rejoinCall:Z,signalingStatus:z,userMediaRequestStatus:B}},[z,Y,B,Z]);c("useZenonDebugValue")("WSSZenonInitializationProvider",a);k(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);d("WSSLoggerHooks").useWSSLogScreenSharing();return h.jsxs(c("WSSZenonInitializationContext").Provider,{value:a,children:[h.jsx(c("CometHeroHoldTrigger.react"),{description:"getUserMedia",hold:B.state==="unknown"||B.state==="pending"}),h.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:T===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),g]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsEventsManagerAppEventBreakdownTypeSelector.react",["fbt","AdsEventsManagerAppEventBreakdownTypeEnum","AdsEventsManagerAppEventOverviewTabNameLabels","AdsEventsManagerPixelEventOverviewLoggingConstants","GeoSelector.react","GeoSelectorItem.react","SignalsLoggingBoundary.react","react","signalsLoggingUserInputWithValueContextListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useCallback;function a(a){var b=a.logger,e=a.selectedCategory,f=a.setSelectedCategory;a=j(function(a){f(a),b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames.CATEGORY_TYPE_SELECTOR,stringValue:a}}).scope(d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewLoggingActions.CLICK_CATEGORY_TYPE_SELECTOR).logSelect()},[b,f]);return i.jsx("div",{className:"x13ie5k6",children:i.jsx(c("GeoSelector.react"),{"data-testid":void 0,isLabelHidden:!0,label:h._("u6309{selected activity type}u663eu793au7ec6u5206u6570u636e",[h._param("selected activity type",c("AdsEventsManagerAppEventOverviewTabNameLabels")[e])]),value:e,onChange:a,children:Object.keys(c("AdsEventsManagerAppEventBreakdownTypeEnum")).map(function(a){return i.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,label:c("AdsEventsManagerAppEventOverviewTabNameLabels")[a],value:a},a)})})})}a.displayName=a.name+" [from "+f.id+"]";b=c("SignalsLoggingBoundary.react").loggerConsumingComponent(a);g["default"]=b}),98);
-----
SellerInsightsV2AccountOverviewGenderDonutChart.react",["GeoBaseSpacingLayout.react","GeoChartBaseLegend.react","GeoChartPalette","GeoChartTooltip.react","GeoDonutChart.react","GeoFlexbox.react","GeoHeading.react","GeoPrivateChartPaletteContext","RelayHooks","SellerInsightsAudienceGenderValue","SellerInsightsV2AccountOverviewGenderDonutChart_MetricResult.graphql","SellerInsightsV2AudiencePieChart.next.react","SellerInsightsV2AudienceUtils","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2QPLLoggingHooks","SellerInsightsV2UnifiedGraphQLUtils","filterNulls","nullthrows","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useMemo,l={chart:{height:"x127qqk8",width:"xqyf9gi",$$css:!0},root:{marginStart:"x16hk5td",marginTop:"x1xmf6yo",$$css:!0}},m=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewGenderDonutChart_MetricResult.graphql");function n(a){var b=j(c("GeoPrivateChartPaletteContext")),d=b.getColor;return i.jsx(c("GeoFlexbox.react"),{justifyContent:"start",children:i.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",grow:"auto",relation:"related",wrap:!0,children:a.chartData.map(function(a,b){var e=a.name;a=a.value;b=d(b);return i.jsx(c("GeoChartBaseLegend.react"),{color:b,"data-testid":void 0,description:a.toString()+"%",label:e,variant:"bar"},e)})})})}n.displayName=n.name+" [from "+f.id+"]";function a(a){a=d("RelayHooks").useFragment(m,a.metricResult);a=d("SellerInsightsV2UnifiedGraphQLUtils").useAudienceGenderData(a==null?void 0:a.gender);var b=c("nullthrows")(d("SellerInsightsV2AudienceUtils").getGenderBreakdowns(a)),e=Array.from(c("SellerInsightsAudienceGenderValue").members()).sort(function(a,b){return d("SellerInsightsV2AudienceUtils").compareGenders(a,b)});a=k(function(){return c("filterNulls")(e.map(function(a){var c,e=b.find(function(b){b=b.name;return b===a});return e==null?null:{key:String((c=e.name)!=null?c:""),name:d("SellerInsightsV2AudienceUtils").getGenderFbt(a),value:(c=e.value)!=null?c:0}}))},[b,e]);var f=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredAudienceChart:"Dount chart"},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return i.jsxs("div",{children:[i.jsx(c("GeoHeading.react"),{level:4,children:d("SellerInsightsV2Fbts").GENDER_BREAKDOWN_SECTION_TITLE}),i.jsx("div",{className:"x16hk5td x1xmf6yo",onMouseEnter:f,onMouseLeave:f.reset,children:i.jsx(c("GeoDonutChart.react"),{data:a,header:i.jsx(n,{chartData:a}),isLabelHidden:!0,label:"",palette:c("GeoChartPalette").Leading1,tooltipRenderer:function(a){var b=a.name;a=a.percentage;return i.jsx(c("GeoChartTooltip.react"),{content:i.jsx(d("SellerInsightsV2AudiencePieChart.next.react").ChartTooltipContent,{name:b,percentage:a})})},xstyle:l.chart})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ShareAudienceDialogContainer.react",["AdsAMAudienceStore","AdsAMViewCloseShareAudienceDialogAction","AdsAudienceSharingDataManager","AdsAudienceSharingStore","AdsAudienceSharingViewActions","AdsCustomAudienceType","AdsFluxContainer","AdsInterfacesLogger","AdsManagerUserPermissions","AudienceManagerCreateBusinessAccountUpsellDialog.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLookalikeDialogGKSelectors","AudienceSharingAgreementInitiatorModal.react","AudienceSharingNonBusinessAdminModal.react","BusinessManagerUpsellContainer.brands","CustomAudienceUtils","ShareAudienceConstants","ShareAudienceDialog.react","ShareAudienceRecipientTypeSelectionDialog.react","gkx","immutable","react","setImmediate"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=d("react").Component;b=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=function(){e.$12()};e.$7=function(){var a=e.state.selectedSharingAdAccounts.filter(function(a){return a.get("accountType")===d("ShareAudienceConstants").SharingRecipientTypes.OUTSIDE_BUSINESS&&a.get("hasSharingAgreement")===!1});if(e.state.shouldCheckAgreement&&a.count()>0){c("AdsAudienceSharingViewActions").showSharingAgreement();return}e.$13()};e.$6=function(){var a=e.state.selectedSharingAdAccounts.reduce(function(a,b){a[b.get("id")]=b.get("permission");return a},{}),b=[];e.state.selectedBusinessRelationship.forEach(function(a,c){a&&(b=b.concat(d("ShareAudienceConstants").AgreementRelationshipApiEnum[c]))});e.props.onUpdateAudienceCapabilities(e.props.selectedAudienceIDs,a,b,e.state.locationSpec);d("AudienceManagerFunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARED_AUDIENCE);c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_SHARED_AUDIENCE},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)};e.$10=function(a){c("AdsAudienceSharingViewActions").removeSharedAdAccount(a)};e.$11=function(a){c("AdsAudienceSharingViewActions").addSharedAdAccount(a)};e.$9=function(a,b){c("AdsAudienceSharingViewActions").changeSharedAdAccountPermission(a,b)};e.$2=function(a){c("AdsAudienceSharingViewActions").setSharingRecipientType(a)};e.$5=function(a,b){c("AdsAudienceSharingViewActions").setBusinessRelationship(a,b)};e.$8=function(a){e.setState({locationSpec:a})};e.state={isBusinessAdmin:!1,canOwnerAdAccountUseLookalikeContainer:!1,locationSpec:{},lookalikeSelectionMode:"NONE",recipientAdAccounts:c("immutable").List([]),recipientAdAccountsLoaded:!1,selectedBusinessRelationship:c("immutable").Map(),selectedSharingAdAccounts:c("immutable").List([]),shouldCheckAgreement:!1,showSharingAgreement:!1,responseSuccess:null};return e}b.getStores=function(){return[c("AdsAMAudienceStore"),c("AdsAudienceSharingStore")].concat(d("AudienceManagerLookalikeDialogGKSelectors").lookalikeDialogGKSelectors.getStores())};b.calculateState=function(a,b){a=c("AdsAMAudienceStore").getAccount();var e=b.selectedAudienceIDs.length>0&&c("AdsAMAudienceStore").getState(b.selectedAudienceIDs[0]).subtype===c("AdsCustomAudienceType").SUBTYPES.REGULAR,f="NONE";b=b.selectedAudienceIDs.filter(function(a){a=c("AdsAMAudienceStore").getState(a).subtype;return a===c("AdsCustomAudienceType").SUBTYPES.LOOKALIKE||a===c("AdsCustomAudienceType").SUBTYPES.REGULATED_CATEGORIES_AUDIENCE});b.length>0&&(f="LAL_ONLY");return{adAccount:a,canOwnerAdAccountUseLookalikeContainer:d("AudienceManagerLookalikeDialogGKSelectors").lookalikeDialogGKSelectors().shouldUseLookalikeContainer,shouldDisableLocationsNotNeededBanners:d("AudienceManagerLookalikeDialogGKSelectors").lookalikeDialogGKSelectors().shouldDisableLocationsNotNeededBanners,disabledOutsideSharing:d("CustomAudienceUtils").isUntrustedAdAccountForSharing(a),isBusinessAdmin:c("AdsManagerUserPermissions").is_business_admin,locationSpec:{},lookalikeSelectionMode:f,recipientAdAccounts:c("AdsAudienceSharingStore").getRecipientAdAccounts(),recipientAdAccountsLoaded:c("AdsAudienceSharingStore").getRecipientAdAccountsLoaded(),recipientType:c("AdsAudienceSharingStore").getRecipientType(),shouldCheckAgreement:e,error:c("AdsAudienceSharingStore").getError(),selectedBusinessRelationship:c("AdsAudienceSharingStore").getBusinessRelationship(),selectedSharingAdAccounts:c("AdsAudienceSharingStore").getSelectedSharingAdAccounts(),showSharingAgreement:c("AdsAudienceSharingStore").getShowSharingAgreement(),responseSuccess:c("AdsAudienceSharingStore").getResponseSuccess()}};var e=b.prototype;e.UNSAFE_componentWillMount=function(){d("AdsAudienceSharingDataManager").fetchAdAccountBusiness(this.props.ownerAccountID)};e.render=function(){if(this.state.error===d("AudienceManagerErrorTypes").Errors.ACCOUNT_BUSINESS_GET){var a=this.state.adAccount,b=!1;if(c("gkx")("677795")){a.userpermissions&&a.userpermissions.data&&(b=a.userpermissions.data.some(function(a){return a.role==="ADMIN"}));return h.jsx(c("BusinessManagerUpsellContainer.brands"),{adAccountName:a.name,isAdAccountAdmin:b,isSharingAudience:!0,ownerAccountID:this.props.ownerAccountID,onCancel:this.$1})}else return h.jsx(c("AudienceManagerCreateBusinessAccountUpsellDialog.react"),{adAccountName:a.name,ownerAccountID:this.props.ownerAccountID,onCancel:this.$1})}else if(this.state.error)return h.jsx(c("AudienceManagerErrorView.react"),{message:this.state.error.message,shown:!0});if(this.state.shouldCheckAgreement&&this.state.recipientType==null){var e;b=this.state.adAccount;a=d("CustomAudienceUtils").isUntrustedAdAccountForSharing(b);return h.jsx(c("ShareAudienceRecipientTypeSelectionDialog.react"),{businessID:b==null?void 0:(e=b.business)==null?void 0:e.id,businessName:(b==null?void 0:(e=b.business)==null?void 0:e.name)||"",isBusinessAdmin:this.state.isBusinessAdmin,isBusinessVerificationEligible:(b==null?void 0:b.is_business_verification_eligible)||!1,isTierRestricted:(b==null?void 0:b.is_tier_restricted)||!1,unableToShareOutside:a,onCancel:this.$1,onSelectRecipientType:this.$2})}return h.jsxs("div",{children:[this.$3(),this.$4()]})};e.$4=function(){var a=this.state.shouldCheckAgreement&&this.state.showSharingAgreement;if(!a)return null;if(!this.state.isBusinessAdmin&&this.state.recipientType===d("ShareAudienceConstants").SharingRecipientTypes.OUTSIDE_BUSINESS)return h.jsx(c("AudienceSharingNonBusinessAdminModal.react"),{onHide:this.$1});else{a=this.state.selectedSharingAdAccounts.first()&&this.state.selectedSharingAdAccounts.first().get("businessName");return h.jsx(c("AudienceSharingAgreementInitiatorModal.react"),{hasSelectedRelationshipType:this.state.selectedBusinessRelationship.filter(function(a){return a}).size>0,isShown:!0,recipientName:a,responseSuccess:this.state.responseSuccess,onChangeBusinessRelationshipValue:this.$5,onComplete:this.$6,onHide:this.$1})}};e.$3=function(){var a;return h.jsx(c("ShareAudienceDialog.react"),{businessID:(a=this.state.adAccount.business)==null?void 0:a.id,canOwnerAdAccountUseLookalikeContainer:this.state.canOwnerAdAccountUseLookalikeContainer,disableOutsideSharing:this.state.disabledOutsideSharing,locationSpec:this.state.locationSpec,lookalikeSelectionMode:this.state.lookalikeSelectionMode,ownerAccountID:this.props.ownerAccountID,recipientAdAccounts:this.state.recipientAdAccounts,recipientAdAccountsLoaded:this.state.recipientAdAccountsLoaded,recipientType:this.state.recipientType,selectedAudienceIDs:c("immutable").List(this.props.selectedAudienceIDs),selectedSharingAdAccounts:this.state.selectedSharingAdAccounts,shouldCheckAgreement:this.state.shouldCheckAgreement,shouldDisableLocationsNotNeededBanners:this.state.shouldDisableLocationsNotNeededBanners,onCancel:this.$1,onConfirm:this.$7,onLocationSpecSelected:this.$8,onPermissionChange:this.$9,onRemoveAdAccount:this.$10,onSelectAdAccount:this.$11})};e.$13=function(){this.$6(),this.$12()};e.$12=function(){c("AdsAMViewCloseShareAudienceDialogAction").dispatch({},{line:"360",module:"ShareAudienceDialogContainer.react.js"}),c("setImmediate")(function(){return c("AdsAudienceSharingViewActions").clearSharedAdAccounts()})};return b}(a);e=c("AdsFluxContainer").create(b,{withProps:!0,name:f.id});g["default"]=e}),98);
-----
StoriesViewerUtil",["StoriesLoggingConstants"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE:case c("StoriesLoggingConstants").ACTION_SOURCE.FEED_TAB_STORIES_HOME:case c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME:case c("StoriesLoggingConstants").ACTION_SOURCE.TRAY:case c("StoriesLoggingConstants").ACTION_SOURCE.VIEWER:return!0;default:return!1}}g.getShouldNotShowExtendedViewerOverlay=a}),98);
-----
LegalMatterEventLoggerUtil",["LegalMatterEventTypedLogger","LegalMatterHealthFalcoEvent","LegalMatterLoggingConstants","LegalMatterMetricsFalcoEvent","ReactRouterDOM","isNullish"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e,f){new(c("LegalMatterEventTypedLogger"))().setEventName(b).setExceptionTrace(a==null?void 0:a.stack).setExceptionMessage(a==null?void 0:a.message).setExceptionType(a==null?void 0:a.name).setExtra(d).setMatterID(e).setPartnerID(f).log()}function b(a){var b=a[a.length-1]==="/"?a.substring(0,a.length-1):a;a=d("LegalMatterLoggingConstants").LegalMatterPathPageMapping.filter(function(a,e){return!c("isNullish")(d("ReactRouterDOM").matchPath(b,{path:e,exact:!0}))}).first();return c("isNullish")(a)?d("LegalMatterLoggingConstants").LegalMatterPathPageMapping.filter(function(a,c){return b.startsWith(c)}).max(function(a,b){return b.length}):a}function e(a,b,d,e){b===void 0&&(b="UNKNOWN_PAGE"),new(c("LegalMatterEventTypedLogger"))().setEventName(a).setExtra(e).setPartnerID(d).setPage(b).log(),c("LegalMatterMetricsFalcoEvent").log(function(){return{event_name:a,page:b,extra:e}})}function f(a,b,d,e){b===void 0&&(b="UNKNOWN_PAGE"),c("LegalMatterHealthFalcoEvent").log(function(){return{event_name:a,extra:e,latency:String(Date.now()-d),page:b}})}g.log=a;g.getPageByURI=b;g.logUserEvent=e;g.logHealthMetric=f}),98);
-----
LegalMatterLoggingConstants",["LegalMatterAppConfig","immutable"],(function(a,b,c,d,e,f,g){"use strict";a=c("immutable").Map([["ROOT_MATTERS",d("LegalMatterAppConfig").MATTERS_PATH],["ROOT_NARRATIVES",d("LegalMatterAppConfig").NARRATIVES_PATH],["ROOT_FINANCIAL_IMPACT",d("LegalMatterAppConfig").FINANCE_PATH],["ROOT_KEY_DATES",d("LegalMatterAppConfig").KEY_DATES_PATH],["ROOT_EDISCOVERY",d("LegalMatterAppConfig").EDISCOVERY_PATH],["ROOT_INVESTIGATIVE_REQUESTS",d("LegalMatterAppConfig").INVESTIGATIVE_REQUESTS_PATH],["MATTER_DETAIL_OVERVIEW_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.overview.value],["MATTER_DETAIL_MEMBERS_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.members.value],["MATTER_DETAIL_KEY_DATES_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.keyDates.value],["MATTER_DETAIL_NARRATIVE_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.narrative.value],["MATTER_DETAIL_PARTIES_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.parties.value],["MATTER_DETAIL_DOCUMENTS_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.documents.value],["MATTER_DETAIL_EDISCOVERY_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.ediscovery.value],["MATTER_DETAIL_INVESTIGATIVE_REQUESTS_TAB",d("LegalMatterAppConfig").MATTER_DETAIL_BASEPATH+"/"+d("LegalMatterAppConfig").MATTER_DETAIL_ROUTES.investigativeRequests.value],["ADMIN_FX_RATES",d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.fx_rates.value],["ADMIN_OUTSIDE_COUNSEL",d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.outside_counsel.value],["ADMIN_PARTIES",d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.parties.value],["ADMIN_SYSTEM_ADMIN",d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.sysadmin.value],["ADMIN_TEAM",d("LegalMatterAppConfig").ADMIN_PATH+"/"+d("LegalMatterAppConfig").ADMIN_ROUTES.teams.value]]);b=a.flip();g.LegalMatterPagePathMapping=a;g.LegalMatterPathPageMapping=b}),98);
-----
MercuryMontageShareStory.react",["cx","CssBackgroundImage.react","FBStoriesViewer2","Link.react","MercuryMontageShareStory_montageMessage.graphql","MercuryMontageShareStory_montageThread.graphql","MessengerEnvironment","MessengerStoriesLoggingConstants","RelayModern","react","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=k.useReducer,m=216,n=56,o=857,p=1141,q=160,r=284,s=108,t=61;function a(a){var b=a.montageMessage,d=a.montageThread,e=a.storyID;a={imageHeight:s,imageWidth:t};var f=function(a,b){return{imageHeight:b.imageHeight,imageWidth:b.imageWidth}};f=l(f,a);var g=f[0],h=f[1],i=function(a,b){(g.imageHeight!==a||g.imageWidth!==b)&&h({imageHeight:a,imageWidth:b})},j=function(){var a=d==null?void 0:d.montage_container_id,b=e!=null?btoa("S:_ISC:"+e):null;if(a==null)return;a={bucketID:a,cardID:b,openSource:c("MessengerStoriesLoggingConstants").ACTION_SOURCE.FACEBOOK_CHAT_TAB,tilePosition:{bottom:m,height:n,left:o,right:p,top:q,width:r},traySessionID:c("uuid")()};c("MessengerEnvironment").messengerui?(a.openSource=c("MessengerStoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM,c("FBStoriesViewer2").getInstance().openDialogMessenger(a)):c("FBStoriesViewer2").open(a)};a=function(){if(b==null?void 0:b.blob_attachment){var a=b==null?void 0:b.blob_attachment;a=(a==null?void 0:a.messageImage)||(a==null?void 0:a.videoImage)||(a==null?void 0:a.mediaImage);if(a)return v(a)}return null};var u=function(a){var b=new Image();b.onload=function(){i(b.height,b.width)};b.src=(a==null?void 0:a.uri)||""},v=function(a){u(a);return k.jsx(c("Link.react"),{onClick:j,"aria-hidden":!0,children:k.jsx(c("CssBackgroundImage.react"),{className:"_4bj6",height:g.imageHeight,imageURI:a==null?void 0:a.uri,width:g.imageWidth})})};return k.jsx("div",{className:"_4bj3",children:a()})}a.displayName=a.name+" [from "+f.id+"]";e=d("RelayModern").createFragmentContainer(a,{montageMessage:i!==void 0?i:i=b("MercuryMontageShareStory_montageMessage.graphql"),montageThread:j!==void 0?j:j=b("MercuryMontageShareStory_montageThread.graphql")});g["default"]=e}),98);
-----
StoriesCommentsPreviewsPill.react",["CometColumn.react","CometColumnItem.react","CometImage.react","CometPressable.react","CometRelay","CometRow.react","CometRowItem.react","CometTextWithEntitiesRelay.react","StoriesCommentsPreviewsPill_comment.graphql","StoriesFeedbackCommentStateContext","StoriesGating","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspensePauseContext","TetraText.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useContext,k={commentMetaData:{paddingStart:"xkhd6sd",paddingEnd:"x4uap5",paddingTop:"x1iorvi4",paddingBottom:"xjkvuk6",width:"xq1dxzn",$$css:!0},container:{alignItems:"x6s0dn4",backgroundColor:"x18l40ae",borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",height:"xc9qbxq",maxWidth:"xbv6z1s",$$css:!0},profilePic:{borderTopStartRadius:"x14yjl9h",borderTopEndRadius:"xudhj91",borderBottomEndRadius:"x18nykt9",borderBottomStartRadius:"xww2gxu",$$css:!0}},l=d("StoriesGating").shouldUseCommentsSheet();function a(a){var e;a=a.commentKey;var f=j(c("StoriesFeedbackCommentStateContext")),g=f.setCommentTriggerSource,m=f.setIsCommentsRightRailOpen,n=f.setShowCommentsSheetOverlay;f=j(c("StoriesSuspensePauseContext"));var o=f.setPause;f=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesCommentsPreviewsPill_comment.graphql"),a);a=f==null?void 0:f.body;return a==null?null:i.jsx(c("CometPressable.react"),{onPress:function(){g(c("StoriesLoggingConstants").COMMENT_TRIGGER_SOURCE.STORY_UFI_COMMENT_PREVIEW),l?(o(!0,d("StoriesPauseReasons").COMMENTS_SHEET_OVERLAY),n(!0)):m(!0)},xstyle:k.container,children:i.jsxs(c("CometRow.react"),{paddingHorizontal:8,paddingVertical:0,children:[i.jsx(c("CometRowItem.react"),{children:i.jsx(c("CometImage.react"),{height:24,src:(e=f==null?void 0:(e=f.author)==null?void 0:(e=e.profile_picture)==null?void 0:e.uri)!=null?e:"",width:24,xstyle:k.profilePic})}),i.jsx(c("CometRowItem.react"),{verticalAlign:"center",xstyle:k.commentMetaData,children:i.jsxs(c("CometColumn.react"),{align:"start",spacing:4,children:[i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("TetraText.react"),{align:"start",color:"white",numberOfLines:1,type:"meta1",children:(f=f==null?void 0:(e=f.author)==null?void 0:e.name)!=null?f:""})}),i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("TetraText.react"),{align:"start",color:"white",numberOfLines:1,type:"body3",children:i.jsx(c("CometTextWithEntitiesRelay.react"),{textWithEntities:a})})})]})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesCarouselViewerNodesNew",["CometNavigationTracing","CometNavigationTracingQPLEvents","CometRelay","FBLogger","QuickPerformanceLogger","StoriesActorContext","StoriesBehaviorHelpers","StoriesEnums","StoriesGating","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseBucketDataContext","cr:899180","qpl","react","useStoriesCarouselViewerNodesNew_buckets.graphql","useStoriesIsBucketEmpty","useStoriesRemoveEmptyBuckets","useStoriesSuspenseNavListSelectors","useStoriesSuspenseNavListTransitionRequestListener","useStoriesViewerBucketPrefetcher"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useContext,k=e.useEffect,l=e.useMemo,m=e.useRef,n=e.useState,o=h!==void 0?h:h=b("useStoriesCarouselViewerNodesNew_buckets.graphql");function a(a,e,f,g,h,p,q,r,s){var t=d("CometRelay").useFragment(o,e),u=d("CometRelay").useFragment(o,a);e=j(c("StoriesActorContext"));var v=e.actorID;a=j(c("StoriesSuspenseBucketDataContext"));var w=a.setInteractionUUID,x=c("useStoriesIsBucketEmpty")(u),y=c("useStoriesIsBucketEmpty")(t);c("useStoriesRemoveEmptyBuckets")(u);c("useStoriesRemoveEmptyBuckets")(t);e=function(){var b,d=function(a){var b;return(a==null?void 0:(b=a.story_bucket_owner)==null?void 0:b.id)===v||(a==null?void 0:a.id)!==(e==null?void 0:e.id)&&!x(a==null?void 0:a.id)},e=t==null?void 0:t[0],f=u==null?void 0:u[0];if(u==null||u.length===0)return[];var a=u.filter(d);b=(f==null?void 0:(b=f.story_bucket_owner)==null?void 0:b.id)===v;if(s!=null&&s.length>0){var g=a.filter(function(a){return s.indexOf(a.id)===-1}),i=s.map(function(b){var d=a.findIndex(function(a){return(a==null?void 0:a.id)===b});d===-1&&c("FBLogger")("fbstories").warn("Node with ID [%s] to prepend not found in loaded nodes of length [%s]",h,a.length);return a[d]});if(b&&f!=null)return[f].concat(i).concat(g.slice(1));else return[].concat(i,g.slice(1))}if(e==null||y(e.id))return a;else if(b&&f!=null)if(f.id===e.id)return a;else return[f].concat(e).concat(u.slice(1).filter(d));else return[e].concat(a)};var z=e();a=n(function(){var a=z.findIndex(function(a){return(a==null?void 0:a.id)===h}),b=d("StoriesLoggerSession").getOpenViewerSource();a===-1&&h!==""&&h!=null&&b===c("StoriesLoggingConstants").ACTION_SOURCE.TRAY&&c("FBLogger")("fbstories").warn("Initial bucket ID [%s] was found at index -1, [%s]",h,z.length);b=a===-1&&h==="";if(b)if(z.length>1)return 1;else if(!L)return 0;return a});var A=a[0],B=a[1];e=l(function(){return z.map(function(a){return a==null?void 0:a.id}).filter(Boolean).filter(function(a){return a!=null})},[z]);c("useStoriesViewerBucketPrefetcher")(e,A);var C=m(null),D=m(null),E=m(null),F=m(null);a=c("useStoriesSuspenseNavListSelectors")(z);e=a.getBucketCount;var G=a.getBucketID,H=a.getIsSecondBucket,I=a.isFirstBucket,J=a.isFriendListEmpty,K=a.isLastBucket,L=a.isUserBucketEmpty;a=a.userBucketIndex;var M=i(function(){function a(a){a&&c("FBLogger")("fbstories").warn("Pagination fetch failed: %s",a.toString())}var b=Math.ceil(d("StoriesGating").getViewerV3BackgroundBucketsCount()/2),e=z.length-A>b;if(g&&e)return;p(b,{onComplete:a})},[A,p,g,z]),N=e(!1);e=d("CometRelay").useRelayEnvironment();var O=G(A),P=O!==E.current;k(function(){if(A!==C.current||N!==D.current||L!==F.current){var a;P&&(c("QuickPerformanceLogger").markerEnd(c("qpl")._(13238354,"1306"),4),c("QuickPerformanceLogger").markerStart(c("qpl")._(13238354,"1306")),b("cr:899180")&&b("cr:899180").updateURL(O,""));var e=z==null?void 0:z[A];a=e==null?void 0:(a=e.story_bucket_owner)==null?void 0:a.viewer_profile_permissions;a=a!=null&&a.includes("EDIT_PROFILE");var g=d("StoriesBehaviorHelpers").canSeeViewerSheet(e==null?void 0:e.story_bucket_type,e==null?void 0:(e=e.story_bucket_owner)==null?void 0:e.id,a,v),h=z.slice(A,A+3),i=Math.max(0,z.length-1-A);e=function(){q({bucketID:O,bucketIndex:A,canSeeViewerSheet:g,canShowStoryOverlay:!1,hasSelfBucket:!L,isEndOfTray:K(A,f)&&!f,isFirstBucket:I(A),isFriendListEmpty:J,isLastBucket:K(A,f),isSecondBucket:!1,nextBuckets:h,nextBucketsCount:i,nodesLength:z.length})};e();A!==C.current&&r(C.current!=null&&A>C.current?d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET)}C.current=A;D.current=N;E.current=O;F.current=L},[v,z,O,N,A,f,P,h,I,H,K,J,L,q,r,e]);var Q=C.current!=null&&C.current-----
StoriesLiveSticker.react",["fbt","CometPressable.react","CometRelay","CometTooltip.react","StoriesLiveSticker_overlay.graphql","StoriesLoggerContext","StoriesLoggingConstants","react","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useRef,n={linkBounds:{height:"x5yr21d",width:"xh8yej3",$$css:!0},storiesOverlayLiveSticker:{height:"xlxyqfn",position:"x10l6tqk",top:"x1dfx0jo",width:"xh8yej3",$$css:!0},tooltipContainer:{height:"xpyat2d",marginStart:"xszxewd",marginTop:"xaci4zi",pointerEvents:"x67bb7w",position:"x10l6tqk",start:"xtzzx4i",top:"xwa60dl",width:"x1exxlbk",$$css:!0}};function a(a){a=a.overlay;a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesLiveSticker_overlay.graphql"),a);var e=c("usePlayerOriginRouteTracePolicy")(),f=k(c("StoriesLoggerContext")),g=f.logger,o=m(!1);l(function(){!o.current&&g!=null&&(o.current=!0,g.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_STICKER_IMPRESSION))},[g]);f=(a==null?void 0:(f=a.live_video)==null?void 0:f.broadcast_status)==="LIVE";var p=f?h._("u89c2u770bu76f4u64adu89c6u9891"):h._("u89c2u770bu89c6u9891");f=f?h._("u76f4u64adu5de5u5177u63d0u793au94feu63a5"):h._("u5de5u5177u63d0u793au94feu63a5");return j.jsx("div",{className:"xlxyqfn x10l6tqk x1dfx0jo xh8yej3",children:j.jsx("div",{className:"xpyat2d xszxewd xaci4zi x67bb7w x10l6tqk xtzzx4i xwa60dl x1exxlbk",children:j.jsx(c("CometTooltip.react"),{align:"middle",position:"above",tooltip:p,children:j.jsx(c("CometPressable.react"),{"aria-label":f,linkProps:{passthroughProps:{initialTracePolicy:e,playerSubOrigin:"story_viewer_live_sticker"},url:a==null?void 0:(p=a.live_video)==null?void 0:p.url},onPress:function(){g.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_STICKER_TAP)},overlayDisabled:!0,xstyle:n.linkBounds})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesArchiveCometRoot.react",["CometErrorBoundary.react","CometPlaceholder.react","StoriesCometPlaceholder.react","StoriesLoggingConstants","StoriesRootError.react","deferredLoadComponent","react","requireDeferredForDisplay","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState,j=c("deferredLoadComponent")(c("requireDeferredForDisplay")("StoriesArchive.react").__setRef("StoriesArchiveCometRoot.react"));function a(a){var b=a.routeProps.cardID;a=a.routeProps.currentStoryTime;var d=i(function(){return c("uuid")()});d=d[0];return h.jsx("div",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",children:h.jsx(c("CometPlaceholder.react"),{fallback:h.jsx(c("StoriesCometPlaceholder.react"),{leftRail:!1}),children:h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return h.jsx(c("StoriesRootError.react"),{error:a})},children:h.jsx(j,{cardID:b,currentStoryTime:a,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,traySessionID:null,viewerSessionID:d})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PagesCometAdminTYSDStoriesTray.react",["CometHScroll.react","CometRelay","PagesCometAdminTYSDStoriesTrayTileWrapper.react","PagesCometAdminTYSDStoriesTray_story_buckets.graphql","StoriesLoggingConstants","StoriesTrayTile.react","react","requireDeferred","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useState,k=c("requireDeferred")("logPagesCometAdminTYSDContentCardClick").__setRef("PagesCometAdminTYSDStoriesTray.react");function a(a){var e=a.accessibilityLabel,f=a.isOnBizKit,g=a.loggingParams,l=a.onPressIn;a=a.story_buckets$key;a=d("CometRelay").useFragment(h!==void 0?h:h=b("PagesCometAdminTYSDStoriesTray_story_buckets.graphql"),a);var m=d("CometRelay").useRelayEnvironment(),n=j(function(){return c("uuid")()}),o=n[0],p=function(a){var b="navigate_to_story";a!=null&&k.onReady(function(c){return c(m,babelHelpers["extends"]({},a,{action:b}))})},q=function(a,b){var d=a.id!=null?babelHelpers["extends"]({},g,{entityID:a.id,position:b+1}):null,e=function(){l!=null&&l(a.id),p(d)};return i.jsx(c("PagesCometAdminTYSDStoriesTrayTileWrapper.react"),{loggingParams:d,children:i.jsx(c("StoriesTrayTile.react"),{bucketNode:a,index:b,isOnBizKit:f===!0,onPressIn:e,source:c("StoriesLoggingConstants").ACTION_SOURCE.THINGS_YOU_SHOULD_DO,traySessionID:o},a.id)},a.id)};n=a.map(function(a,b){return q(a,b)});return i.jsx(d("CometHScroll.react").Container,{accessibilityLabel:e,cardWidth:f===!0?{type:"fixed",width:120}:{minWidth:120,type:"responsive"},gap:8,peek:!0,peekPaddingStart:18,children:n.map(function(a,b){return i.jsx(d("CometHScroll.react").Child,{children:a},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesCardTimespentLogging",["FBStoriesBanzaiConstants","StoriesLoggerContext","StoriesLoggingConstants","StoryCardTimespentFalcoEvent","TopOfFeedLoggingContext","react","useVPVDImpression"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext;function a(){var a=i(c("StoriesLoggerContext")),b=a.logger;a=i(c("TopOfFeedLoggingContext"));var d=a.tofuSessionID;a=h(function(a){var e=a.visibleDuration,f=b.getImpressionData(c("FBStoriesBanzaiConstants")==null?void 0:c("FBStoriesBanzaiConstants").TIMESPENT);if(f==null)return;c("StoryCardTimespentFalcoEvent").log(function(){return{card_id:f.card_id,media_id:f.media_id,media_index:f.media_index,media_type:f.media_type,source:f.source,story_owner:f.story_owner,story_owner_type:f.story_owner_type,thread_id:f.thread_id,timespent:e,timespent_unit:"ms",tofu_tray_session_id:d,tray_session_id:f.tray_session_id,viewer_session_id:f.viewer_session_id}})},[b,d]);return c("useVPVDImpression")({isLite:!0,minVisibleTimeMs:c("StoriesLoggingConstants").TIMESPENT_MINIMUM_TIME,onVPVDEnd:a})}g["default"]=a}),98);
-----
useStoriesCardImpressionLogging",["FBStoriesBanzaiConstants","StoriesLoggerContext","StoriesLoggingConstants","StoryCardImpressionFalcoEvent","react","usePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext,j=new Map();function a(){var a=i(c("StoriesLoggerContext")),b=a.logger;a=h(function(){var a=b.getImpressionData(c("FBStoriesBanzaiConstants")==null?void 0:c("FBStoriesBanzaiConstants").IMPRESSION);if(a==null)return;var d=Date.now(),e=a.card_id,f=j.get(e);if(f!=null&&d-f
StoriesCardWatchLiveVideoCTA.react",["fbt","CometPressable.react","StoriesLoggerContext","StoriesLoggingConstants","react","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useContext,k=b.useEffect,l=b.useRef,m={videoButton:{backgroundColor:"xfuphoe",borderTopColor:"xgjxtca",borderEndColor:"xnuwv8w",borderBottomColor:"x1lqxvo2",borderStartColor:"xgi2ibe",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",color:"x14ctfv",paddingTop:"x1yrsyyn",paddingEnd:"x1sxyh0",paddingBottom:"x10b6aqq",paddingStart:"xurb0ha",position:"x10l6tqk",start:"xit27t2",top:"x1ng4z2i",$$css:!0}};function a(a){var b=a.isLive;a=a.url;var d=j(c("StoriesLoggerContext")),e=d.logger,f=l(!1);k(function(){!f.current&&e!=null&&(f.current=!0,e.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PROFILE_CTA_IMPRESSION))},[e]);d=c("usePlayerOriginRouteTracePolicy")();return i.jsx(c("CometPressable.react"),{linkProps:{passthroughProps:{initialTracePolicy:d,playerSubOrigin:"story_viewer_live_cta"},url:a},onPress:function(){return e.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PROFILE_CTA_TAP)},xstyle:m.videoButton,children:b?h._("u89c2u770bu76f4u64adu89c6u9891"):h._("u89c2u770bu89c6u9891")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesCardSingleAuthorHeaderLive.react",["fbt","CometIcon.react","CometImage.react","CometLink.react","CometPressable.react","CometProfileVerificationBadge.react","CometRelativeTimestamp.react","CometRelay","CometTextWithBadge.react","FriendEditFilled12.svg.react","FriendListCometCloseFriendsBadge","FriendListCometCloseFriendsGating","FriendsFilled12.svg.react","GlobeAmericasFilled12.svg.react","JSResourceForInteraction","LiveVideoCometProfilePhotoWithLiveBadge.react","Locale","QuestionCircleFilled12.svg.react","SVGIcon","StoriesBehaviorHelpContext","StoriesCardSingleAuthorHeaderLive_attribution.graphql","StoriesCardSingleAuthorHeaderLive_bucket.graphql","StoriesCardSingleAuthorHeaderLive_card.graphql","StoriesCardSingleAuthorHeaderLive_owner.graphql","StoriesCardWatchLiveVideoCTA.react","StoriesGating","StoriesLoggerSession","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspensePauseContext","TetraIcon.react","TetraText.react","cr:2887","cr:2888","formatDate","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=d("react");e=d("react");var n=e.useCallback,o=e.useContext,p=e.useRef,q=c("JSResourceForInteraction")("StoriesCardHeaderSCMEPopup.react").__setRef("StoriesCardSingleAuthorHeaderLive.react"),r=c("JSResourceForInteraction")("StoriesCardHeaderAudienceDialog.react").__setRef("StoriesCardSingleAuthorHeaderLive.react"),s={audienceIcon:{display:"x1rg5ohu",marginStart:"xsgj6o6",position:"x1n2onr6",top:"x13vifvy",$$css:!0},bulletMargin:{marginTop:"xdj266r",marginEnd:"xw3qccf",marginBottom:"xat24cr",marginStart:"xsgj6o6",$$css:!0},cfxBadge:{marginStart:"xsgj6o6",$$css:!0},container:{alignItems:"x6s0dn4",display:"x78zum5",position:"x10l6tqk",start:"xoie2o3",top:"x12eol54",width:"x1kp5rob",$$css:!0},creationTime:{color:"x17z8epw",marginStart:"xsgj6o6",textShadow:"x3zf81a",$$css:!0},isLiveOrWasLive:{marginStart:"x1mh8g0r",paddingTop:"x889kno",$$css:!0},ownerInfoContainer:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingStart:"x1ye3gou",whiteSpace:"xuxw1ft",width:"x9rnzdd",$$css:!0},ownerInfoWithAttributionContainer:{display:"x78zum5",flexDirection:"xdt5ytf",width:"x19sv2k2",$$css:!0},ownerInfoWithTime:{alignItems:"x1pha0wt",display:"x78zum5",flexDirection:"x1q0g3np",$$css:!0},ownerName:{color:"x17z8epw",display:"x78zum5",flexDirection:"x1q0g3np",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",textShadow:"x3zf81a",whiteSpace:"xeaf4i8",$$css:!0},ownerNameContainer:{maxWidth:"x15w6uyq",$$css:!0},ownerNameContainerWithBadge:{maxWidth:"xidmkao",$$css:!0},ownerNamePressable:{maxWidth:"x193iq5w",$$css:!0},ownerPic:{borderTop:"x140qq3l",borderEnd:"x16cdy7c",borderBottom:"xwxlgbv",borderStart:"xilm9xq",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",display:"x1lliihq",height:"x1vqgdyp",objectFit:"xl1xv1r",width:"x100vrsf",$$css:!0},picContainer:{alignSelf:"xqcrz7y",display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},scmeLabel:{backgroundColor:"x14hiurz",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",display:"x1lliihq",marginTop:"x1xmf6yo",paddingTop:"x1iorvi4",paddingEnd:"x1sxyh0",paddingBottom:"xjkvuk6",paddingStart:"xurb0ha",$$css:!0},scmeLabelContainer:{alignItems:"x1cy8zhl",display:"x78zum5",paddingStart:"x1ye3gou",width:"x10lvyaf",$$css:!0},scmeLabelText:{color:"x1p6odiv",fontSize:"x1nxh6w3",fontWeight:"xk50ysn",lineHeight:"xo5v014",$$css:!0},shareableAttribution:{alignItems:"x6s0dn4",color:"x17z8epw",display:"x78zum5",flexDirection:"x1q0g3np",marginTop:"x1xmf6yo",paddingStart:"x1ye3gou",textShadow:"x3zf81a",width:"x18f6uos",$$css:!0}},t=function(a){return a?b("cr:2887"):b("cr:2888")},u=function(a){var b=d("SVGIcon").svgIcon(c("QuestionCircleFilled12.svg.react"));switch(a){case"CUSTOM":b=d("SVGIcon").svgIcon(c("FriendEditFilled12.svg.react"));break;case"FRIENDS":b=d("SVGIcon").svgIcon(c("FriendsFilled12.svg.react"));break;case"PUBLIC":b=d("SVGIcon").svgIcon(c("GlobeAmericasFilled12.svg.react"))}return m.jsx(c("CometIcon.react"),{color:"white",icon:b,size:12})};function a(a){var e,f,g,v=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesCardSingleAuthorHeaderLive_owner.graphql"),a.owner),w=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesCardSingleAuthorHeaderLive_bucket.graphql"),a.bucket),x=d("CometRelay").useFragment(k!==void 0?k:k=b("StoriesCardSingleAuthorHeaderLive_attribution.graphql"),a.cardInfo),y=d("CometRelay").useFragment(l!==void 0?l:l=b("StoriesCardSingleAuthorHeaderLive_card.graphql"),a.story);e=(e=v)!=null?e:{};var z=e.gender,A=e.id,B=e.name;e=e.url;var C=v==null?void 0:(f=v.profile_picture)==null?void 0:f.uri;f=a.creationTime;var D=x==null?void 0:x.shareable_attribution,E=D==null?void 0:D.text;D=D==null?void 0:(D=D.ranges[0])==null?void 0:(D=D.entity)==null?void 0:D.url;var F=y==null?void 0:(g=y.profile_location_transparency_subtitle_text_with_entities)==null?void 0:g.text,G=y==null?void 0:(g=y.location_transparency_info)==null?void 0:g.helpcenter_id,H=w==null?void 0:w.audience_mode;y=d("Locale").isRTL();g=p(null);var I=c("useCometLazyDialog")(q),J=I[0];I=c("useCometLazyDialog")(r);var K=I[0];I=o(c("StoriesSuspensePauseContext"));var L=I.setPause;I=n(function(){var a=function(){L(!1,d("StoriesPauseReasons").SCME_DIALOG)};L(!0,d("StoriesPauseReasons").SCME_DIALOG);J({SCMELabel:F,helpcenterID:G,name:B,profilePicUri:C,unPause:a})},[J,B,F,C,G,L]);var M=o(c("StoriesBehaviorHelpContext")).getCloseFriendsListId(),N=n(function(){var a=function(){L(!1,d("StoriesPauseReasons").AUDIENCE_DIALOG)};L(!0,d("StoriesPauseReasons").AUDIENCE_DIALOG);K({audienceMode:H,gender:z,name:B,profilePicUri:C,unPause:a})},[K,H,z,B,C,L]);N=H!=null&&d("StoriesGating").shouldShowAudienceIcon()&&m.jsx("div",{className:"x1rg5ohu xsgj6o6 x1n2onr6 x13vifvy",children:m.jsx(c("CometPressable.react"),{label:H,onPress:N,children:u(H)})});if(v==null)return null;var O=null;E!=null&&(D==null?O=m.jsx("div",{className:"x6s0dn4 x17z8epw x78zum5 x1q0g3np x1xmf6yo x1ye3gou x3zf81a x18f6uos",children:m.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"meta4",children:E})}):O=m.jsxs("div",{className:"x6s0dn4 x17z8epw x78zum5 x1q0g3np x1xmf6yo x1ye3gou x3zf81a x18f6uos",children:[m.jsx(c("CometLink.react"),{href:D,target:"_blank",children:m.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"meta4",children:E})}),m.jsx(c("TetraIcon.react"),{color:"white",icon:t(y),size:12})]}));D=null;f!=null&&(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?D=c("formatDate")(new Date(f*1e3),"M j",{utc:!0}):D=m.jsx(c("CometRelativeTimestamp.react"),{date:new Date(f*1e3),format:"minimized"}));E=F!=null&&m.jsx("div",{className:"x1cy8zhl x78zum5 x1ye3gou x10lvyaf",children:m.jsx("div",{className:"x14hiurz x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1lliihq x1xmf6yo x1iorvi4 x1sxyh0 xjkvuk6 xurb0ha",children:m.jsx(c("CometPressable.react"),{display:"block",label:F,onPress:I,overlayDisabled:!0,ref:g,children:m.jsx("div",{className:"x1p6odiv x1nxh6w3 xk50ysn xo5v014",children:F})})})});y=A!=null&&v.is_verified===!0&&m.jsx(c("CometProfileVerificationBadge.react"),{isInverted:!0,profileID:A});f=(x==null?void 0:x.story_audience_mode)==="CLOSE_FRIENDS"&&d("FriendListCometCloseFriendsGating").isStoriesConsumptionEnabled()===!0&&m.jsx("div",{className:"xsgj6o6",children:m.jsx(c("FriendListCometCloseFriendsBadge"),{closeFriendsListId:M,storyOwnerName:B!=null?B.slice(0,B.indexOf(" ")):"",viewAuthorCloseFriendStatus:x==null?void 0:x.viewer_author_close_friend_status})});I=B!=null&&m.jsx("div",{className:""+(y||f?" xidmkao":" x15w6uyq"),children:m.jsx("div",{className:"x17z8epw x78zum5 x1q0g3np xdj266r x11i5rnm xat24cr x1mh8g0r x3zf81a xeaf4i8",children:m.jsx(c("CometPressable.react"),{display:"block",linkProps:{url:e},onPress:a.onOwnerClick,overlayDisabled:!0,xstyle:s.ownerNamePressable,children:m.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink3",children:B})})})});v=(g=w==null?void 0:w.is_bucket_live)!=null?g:!1;M=(x==null?void 0:(A=x.story_video_thumbnail)==null?void 0:A.broadcast_status)==="VOD_READY";g=(x==null?void 0:(w=x.story_video_thumbnail)==null?void 0:w.broadcast_status)==="LIVE";A=g||M;M=x==null?void 0:(w=x.story_video_thumbnail)==null?void 0:w.url;x=!(x==null?void 0:(w=x.story_video_thumbnail)==null?void 0:w.owner_has_professional_features);w=g?h._("u6b63u5728u76f4u64ad"):h._("u76f4u64adu5f55u5f71");I=m.jsxs("div",{className:"xdj266r x11i5rnm xat24cr x1mh8g0r x1ye3gou xuxw1ft x9rnzdd"+(A?"":" x1pha0wt x78zum5 x1q0g3np"),children:[I,y&&m.jsx(c("CometTextWithBadge.react"),{badgeAfter:y,children:" "}),m.jsx("div",{className:"x17z8epw x3zf81a"+(A?" x1mh8g0r x889kno":" xsgj6o6"),children:A?m.jsxs(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"body3",children:[w,m.jsx("span",{className:"xdj266r xw3qccf xat24cr xsgj6o6",children:"u2022"}),D]}):m.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"meta3",children:D})}),f,N]});return m.jsxs("div",{className:"x6s0dn4 x78zum5 x10l6tqk xoie2o3 x12eol54 x1kp5rob","data-testid":void 0,children:[m.jsx("div",{className:"xqcrz7y x78zum5 xdt5ytf",children:m.jsx(c("CometLink.react"),{href:e,onClick:a.onOwnerClick,children:C!=null&&(v?m.jsx(c("LiveVideoCometProfilePhotoWithLiveBadge.react"),{alt:(y=B)!=null?y:"",profilePicUri:C,size:"small"}):m.jsx(c("CometImage.react"),{alt:(w=B)!=null?w:"",height:40,src:C,width:40,xstyle:s.ownerPic}))})}),m.jsxs("div",{className:"x78zum5 xdt5ytf x19sv2k2",children:[I,E,O]}),A&&M!=null&&x&&m.jsx(c("StoriesCardWatchLiveVideoCTA.react"),{isLive:g,url:M})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitSettingsInstagramReauthBanner.react",["BizKitSettingsAssetUtils","BizKitSettingsInstagramAccountReauthButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoText.react","geoMargin","react","useBizKitSettingsLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useEffect;function a(a){var b=c("useBizKitSettingsLogger")();i(function(){b.logEvent("reauth_instagram_exposure",{asset_type:d("BizKitSettingsAssetUtils").getAssetTypeFromAssetTypeEnum("INSTAGRAM_ACCOUNT_V2"),asset_id:a.assetID,extra_information:{igpcp_entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_BANNER}})},[b,a.assetID]);return h.jsx(c("GeoGuidanceCard.react"),{header:h.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("BizKitSettingsInstagramStrings").IG_REAUTH_BANNER_HEADER}),status:"warning",xstyle:c("geoMargin").top16,children:h.jsxs(c("GeoGuidanceCardContent.react"),{children:[h.jsx(c("GeoText.react"),{"data-testid":void 0,children:d("BizKitSettingsInstagramStrings").getIGReauthBannerDescription(a.assetName)}),h.jsx(d("BizKitSettingsInstagramAccountReauthButton.react").BizKitSettingsInstagramAccountReauthBannerButton,{instagramAccountName:a.assetName,instagramAccountID:a.assetID,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_BANNER})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitSettingsInstagramAccountProConversionBanner.react",["BizKitSettingsAssetUtils","BizKitSettingsInstagramAccountProConversionButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoText.react","geoMargin","react","useBizKitSettingsLogger"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useEffect;function a(a){var b=a.assetName,e=a.assetID,f=c("useBizKitSettingsLogger")();i(function(){f.logEvent("igpcp_instagram_exposure",{asset_type:d("BizKitSettingsAssetUtils").getAssetTypeFromAssetTypeEnum("INSTAGRAM_ACCOUNT_V2"),asset_id:e,extra_information:{igpcp_entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").IGPCP_ENTRY_POINT.IGPCP_BANNER}})},[e,f]);return h.jsx(c("GeoGuidanceCard.react"),{header:h.jsx(c("GeoGuidanceCardHeader.react"),{heading:d("BizKitSettingsInstagramStrings").IG_PRO_CONVERSION_BANNER_HEADER}),status:"warning",xstyle:c("geoMargin").top16,children:h.jsxs(c("GeoGuidanceCardContent.react"),{children:[h.jsx(c("GeoText.react"),{children:d("BizKitSettingsInstagramStrings").getIGProConversionBannerDescription(b)}),h.jsx(d("BizKitSettingsInstagramAccountProConversionButton.react").BizKitSettingsInstagramAccountProConversionBannerButton,{instagramAccountName:b,instagramAccountID:e,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").IGPCP_ENTRY_POINT.IGPCP_BANNER})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitSettingsInstagramOnboardingPopover.react",["fbt","BizKitSettingsInstagramAccountProConversionButton.react","BizKitSettingsInstagramAccountReauthButton.react","BizKitSettingsInstagramOnboardingFlowLoggingConstants","BizKitSettingsInstagramStrings","BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands","GeoPopover.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){var b=a.assetName,e=a.assetID,f=a.children;a=a.backwardFixFlow;e=a===d("BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands").IG_PERMISSIONS_BACKWARD_FIX_FLOW.PERSONAL_TO_PROFESSIONAL_CONVERSION?i.jsx(d("BizKitSettingsInstagramAccountProConversionButton.react").BizKitSettingsInstagramAccountProConversionPopoverButton,{instagramAccountID:e,instagramAccountName:b,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").IGPCP_ENTRY_POINT.IGPCP_POPOVER}):i.jsx(d("BizKitSettingsInstagramAccountReauthButton.react").BizKitSettingsInstagramAccountReauthPopoverButton,{instagramAccountID:e,instagramAccountName:b,entrypoint:d("BizKitSettingsInstagramOnboardingFlowLoggingConstants").INSTAGRAM_REAUTH_ENTRY_POINT.REAUTH_POPOVER});b=a===d("BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands").IG_PERMISSIONS_BACKWARD_FIX_FLOW.PERSONAL_TO_PROFESSIONAL_CONVERSION?d("BizKitSettingsInstagramStrings").getIGProConversionBannerDescription(b):d("BizKitSettingsInstagramStrings").getIGReauthBannerDescription(b);a=a===d("BusinessSettingsInstagramPermissionsBackwardFixFlowConstants.brands").IG_PERMISSIONS_BACKWARD_FIX_FLOW.PERSONAL_TO_PROFESSIONAL_CONVERSION?h._("u5207u6362u4e3au4e1au52a1u5e10u6237"):d("BizKitSettingsInstagramStrings").IG_REAUTH_POPOVER_HEADER;return i.jsx(c("GeoPopover.react"),{action:e,content:[b],heading:a,isSticky:!1,status:"warning",children:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BizKitSettingsInstagramOnboardingFlowLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={REAUTH_BANNER:"reauthentication_banner",REAUTH_POPOVER:"reauthentication_popover"};b={IGPCP_BANNER:"igpcp_banner",IGPCP_POPOVER:"igpcp_popover"};f.INSTAGRAM_REAUTH_ENTRY_POINT=a;f.IGPCP_ENTRY_POINT=b}),66);
-----
StoriesFeedbackCommentStateContextProvider",["StoriesFeedbackCommentStateContext","StoriesGating","StoriesLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useMemo,j=b.useState,k=d("StoriesGating").shouldUseCommentsSheet();function a(a){var b=a.children;a=a.initialCommentID;var e=j(k?!1:a!==""),f=e[0],g=e[1];e=j(!1);var l=e[0],m=e[1];e=j(k?a!=="":!1);var n=e[0],o=e[1];e=j(a!==""?c("StoriesLoggingConstants").COMMENT_TRIGGER_SOURCE.NOTIFICATION_STORY_UFI:c("StoriesLoggingConstants").COMMENT_TRIGGER_SOURCE.STORY_UFI_BUTTON);var p=e[0],q=e[1],r=d("StoriesGating").isCommentEnabled();a=i(function(){return{commentTriggerSource:p,isCommentingOnForStory:l,isCommentsRightRailOpen:f,isStoryCommentingEnabled:r,setCommentTriggerSource:q,setIsCommentingOnForStory:m,setIsCommentsRightRailOpen:g,setShowCommentsSheetOverlay:o,showCommentsSheetOverlay:n}},[p,l,f,r,n]);return h.jsx(c("StoriesFeedbackCommentStateContext").Provider,{value:a,children:b})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesLivePageUFI.react",["fbt","CometPressable.react","CometRelay","StoriesLivePageUFI_video.graphql","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","react","usePlayerOriginRouteTracePolicy"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useRef;function a(a){var e=a.isLive,f=a.setPause;a=a.video;a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesLivePageUFI_video.graphql"),a);var g=c("usePlayerOriginRouteTracePolicy")(),n=k(c("StoriesLoggerContext")),o=n.logger,p=m(!1);l(function(){!p.current&&o!=null&&(p.current=!0,o.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PAGE_CTA_IMPRESSION))},[o]);return j.jsxs(j.Fragment,{children:[j.jsx("div",{className:"x1useyqa"}),j.jsx(c("CometPressable.react"),{"aria-label":h._("u89c2u770bu76f4u64ad"),linkProps:{passthroughProps:{initialTracePolicy:g,playerSubOrigin:"story_viewer_live_cta"},url:a==null?void 0:a.url},onHoverIn:function(){return f(!0,d("StoriesPauseReasons").WATCH_BROADCAST_CTA)},onHoverOut:function(){return f(!1,d("StoriesPauseReasons").WATCH_BROADCAST_CTA)},onPress:function(){o.handleLiveVideoLog(c("StoriesLoggingConstants").LIVE_IN_STORIES_EVENTS.STORY_LIVE_PAGE_CTA_TAP)},children:j.jsx("div",{className:"x14hiurz x6umtig x1b1mbwd xaqea5y xav7gou x107yiy2 xv8uw2v x1tfwpuw x2g32xy x9f619 x1p6odiv x1f6kntn xmix8c7 x14ju556 x1cnzs8 x4uap5 xx6bls6 xkhd6sd x2b8uid xzzq9k6",children:e?h._("u89c2u770bu76f4u64adu89c6u9891"):h._("u89c2u770bu89c6u9891")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTrayRectangularBuckets.react",["fbt","CometRelay","CometScreenReaderHeading.react","CometVisualCompletionAttributes","StoriesConstants","StoriesEnums","StoriesGating","StoriesLoggingConstants","StoriesTrayCreateCard.react","StoriesTrayCreateTile.react","StoriesTrayRectangularBuckets_buckets.graphql","StoriesTrayRectangularBuckets_createTileUris.graphql","StoriesTrayRectangularBuckets_reels.graphql","StoriesTrayRow.react","StoriesTraySeeAllStoriesButton.react","StoriesTrayTile.react","StoriesTrayTilePlaceholder.react","StoriesTrayTileSelf.react","TopOfFeedConsts","TopOfFeedContext","cr:1638955","cr:3260","cr:3271","cr:3745","cr:3760","cr:4318","cr:4340","cr:4459","cr:576","qex","react","requireDeferred","usePrevious","useStoriesBucketsIndexer","useStoriesBucketsLogger","useStoriesIsUploading","useStoriesTrayTilePrefetchProfileURI"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=d("react");e=d("react");var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useMemo,q=e.useState,r=e.useTransition,s=c("requireDeferred")("ODS").__setRef("StoriesTrayRectangularBuckets.react"),aa=(e=c("qex")._("1856"))!=null?e:!1,ba=(e=c("qex")._("1871"))!=null?e:1,t=(e=c("qex")._("1857"))!=null?e:d("StoriesConstants").TOFU_TILE_HEIGHT;function ca(a,b){return b==null?[]:b.reduce(function(b,c){var d=c.id;if(d==null)return b;var e=a.find(function(a){return a.id===d});if(e==null)return b.concat(d);c=(c=(c=c.unified_stories)==null?void 0:(c=c.nodes)==null?void 0:c.map(function(a){return a.id}))!=null?c:[];e=(e=(e=e.unified_stories)==null?void 0:(e=e.nodes)==null?void 0:e.map(function(a){return a.id}))!=null?e:[];if(c.length!==e.length)return b.concat(d);for(var f=0;f
-----
SellerInsightsV2ChannelSelector.react",["fbt","ix","CommerceManagerContext","GeoSelector.react","GeoSelectorItem.react","Image.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionRoot","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext;function a(){var a=k(c("SellerInsightsV2Context")),b=a.channels,e=a.onChannelsChange,f=a.igChannelIDs,g=a.fbChannelIDs,l=a.pageIDs,m=a.igChannelCount;a=a.fbChannelCount;var n=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection(),o=k(c("CommerceManagerContext")),p=o.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;o=[];a>0&&o.push({key:"FACEBOOK",label:h._("Facebook"),media:j.jsx(c("Image.react"),{src:i("1528129")}),value:"FACEBOOK"});m>0&&o.push({key:"INSTAGRAM",label:h._("Instagram"),media:j.jsx(c("Image.react"),{src:i("1278792")}),value:"INSTAGRAM"});o.length>1&&o.unshift({key:"both",label:d("SellerInsightsV2Fbts").FACEBOOK_AND_INSTAGRAM_FBT,value:null});a=function(a){var h;h=(h=a)!=null?h:d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM;a=a==null?d("SellerInsightsV2Constants").DEFAULT_CHANNELS:[a];e(a);a={AccountID:p,FBChannelIDs:g,IGChannelIDs:f,NewChannel:h,PageIDs:l,PreviousChannel:b.join(", "),Section:n};d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7092490,"3429"),c("qpl")._(7085819,"6371"),c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]);d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7079940,"4268"),a);c("SellerInsightsV2HeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7081647,"427"),"commerce_insights_channel_change_at_"+n,a)};m=b.length===2?null:b[0];return j.jsx(c("GeoSelector.react"),{isLabelHidden:!0,label:"hidden",value:m,onChange:a,children:o.map(function(a){return j.jsx(c("GeoSelectorItem.react"),babelHelpers["extends"]({},a))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CommerceManagerHomePerfCard.react",["$InternalEnum","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHomePerfCardQuery.graphql","CommerceManagerHomePerfCard_data.graphql","CommerceManagerHooks","CommerceManagerImpressionLoggingContainer.react","GeoFlexbox.react","RelayHooks","SellerInsightsV2ChartUtils.next","SellerInsightsV2DateRange","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricCard.react","SellerInsightsV2MetricUtils","SellerInsightsV2QPLLoggingHooks","err","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useContext,l=b("$InternalEnum").Mirrored(["LEFT","TOP"]),m=h!==void 0?h:h=b("CommerceManagerHomePerfCard_data.graphql"),n=i!==void 0?i:i=b("CommerceManagerHomePerfCardQuery.graphql"),o={container:{flexGrow:"x1iyjqo2",height:"xw1mjr9",marginTop:"xw7yly9",marginEnd:"x11i5rnm",marginBottom:"x13ihpsm",marginStart:"x1d52u69",$$css:!0},tile:{boxSizing:"x9f619",display:"x78zum5",flexGrow:"x1iyjqo2",marginEnd:"xktsk01",width:"x1f1nlb9",$$css:!0}};function p(a){a=a.metricConfig;var b=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredMetrics:a.title.toString()},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return j.jsx("div",{className:"x9f619 x78zum5 x1iyjqo2 xktsk01 x1f1nlb9",onMouseEnter:b,onMouseLeave:b.reset,children:j.jsx(c("SellerInsightsV2MetricCard.react"),{chartColor:d("SellerInsightsV2ChartUtils.next").getOverviewChartColor(a.metric),chartData:a.chartData,chartValueFormatter:a.chartValueFormatter,compact:!0,currency:a.currency,currentValue:a.currentValue,effectiveDate:a.effectiveDate,infoText:a.infoText,isEstimated:a.isEstimated,isNegativeGood:a.isNegativeGood,isReviewed:a.isReviewed,metricFormat:a.renderType,metricName:a.metric,prevValue:a.prevValue,title:a.title,unavailableDates:a.unavailableDates,value:a.value})})}p.displayName=p.name+" [from "+f.id+"]";function q(a){a=a.metricConfigs;return j.jsx(c("GeoFlexbox.react"),{xstyle:o.container,children:a.map(function(a,b){return j.jsx(p,{metricConfig:a},b)})})}q.displayName=q.name+" [from "+f.id+"]";function r(a,b){switch(a){case l.LEFT:switch(b){case"ONSITE":return["UNIQUE_VISITOR_COUNT","SALES"];case"OFFSITE":case"CONTACT_MERCHANT":return["UNIQUE_VISITOR_COUNT","PDP_VIEWS"];default:throw c("err")("checkout style not supported!")}case l.TOP:switch(b){case"ONSITE":return["UNIQUE_VISITOR_COUNT","PDP_VIEWS","ADD_TO_WISHLIST","SALES"];case"OFFSITE":return["UNIQUE_VISITOR_COUNT","PDP_VIEWS","OUTBOUND_CLICKS","ADD_TO_WISHLIST"];case"CONTACT_MERCHANT":return["UNIQUE_VISITOR_COUNT","PDP_VIEWS","MESSAGE_TO_BUY","ADD_TO_WISHLIST"];default:throw c("err")("checkout style not supported!")}}}function s(a){var b=a.displayLocation;a=a.preloadedData;var e=k(c("CommerceManagerComponentGatingContext"));e=e.checkoutStyle;e=r(b,e);a=d("RelayHooks").useFragment(m,a);var f=a==null?void 0:a.account;if(f==null)return null;a=e.map(function(a){return d("SellerInsightsV2MetricUtils").getMetricConfig(f,a)});return j.jsx(c("CommerceManagerImpressionLoggingContainer.react"),{component:"PerfCard_"+b,flowName:"COMMERCE_MANAGER_HOME_PAGE_INSIGHTS_CARD",oncall:"commerce_platform_insights",children:j.jsx(q,{metricConfigs:a})})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b=k(c("CommerceManagerContext"));b=b.cmsID;var d=k(c("CommerceManagerComponentGatingContext"));d=d.checkoutStyle;var e=c("SellerInsightsV2DateRange")["default"](),f=e.getDateInterval(),g=f.start;f=f.end;e=e.getPrevDateInterval();var h=e.start;e=e.end;a=r(a,d);return{cmsID:(d=b)!=null?d:"0",channels:["FACEBOOK","INSTAGRAM"],metrics:a,startDate:g.toISOString(),endDate:f.toISOString(),prevStartDate:h.toISOString(),prevEndDate:e.toISOString()}}function u(a){a=a.displayLocation;var b=t(a);b=d("CommerceManagerHooks").useCommerceManagerQuery(n,b);return j.jsx(s,{displayLocation:a,preloadedData:b,usePreloadedData:!0})}u.displayName=u.name+" [from "+f.id+"]";function a(a){if(a.usePreloadedData)return j.jsx(s,babelHelpers["extends"]({},a));else return j.jsx(u,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g.DisplayLocation=l;g.useCommerceManagerHomePerfCardParameters=t;g.CommerceManagerHomePerfCard=a}),98);
-----
SignalsHistoryTableLoggingConstants",["keyMirror"],(function(a,b,c,d,e,f,g){"use strict";a=c("keyMirror")({ACTIVITY_TYPE_FILTER:null,CHANGE_BY_FILTER:null,DATE_FILTER:null});b=c("keyMirror")({CLICK_ACTIVITY_TYPE_FILTER:null,CLICK_CHANGE_BY_FILTER:null,CLICK_DATE_FILTER:null,FILTER_TABLE_BY_ACTIVITY_TYPE:null,FILTER_TABLE_BY_CHANGED_BY:null,FILTER_TABLE_BY_DATE:null,HISTORY_TABLE_LOADED:null,SORT_TABLE_BY_DATE_ASCENDING:null,SORT_TABLE_BY_DATE_DESCENDING:null});g.SignalsHistoryTableUserInputLoggingFieldNames=a;g.SignalsHistoryTableLoggingActions=b}),98);
-----
SignalsHomeHistoryActivityTable.react",["fbt","ix","BUITable.react","BUITableColumn.react","BUITableHeaderCell.react","GeoFlexbox.react","Image.react","Promise","SignalsHistoryNoResultIndicator.react","SignalsHistoryTableActivityNameCell.react","SignalsHistoryTableChangedByCell.react","SignalsHistoryTableConstants","SignalsHistoryTableDateTimeCell.react","SignalsHistoryTableLoggingConstants","SignalsVariableActivityDetailsCellComponent","SignalsVariableItemChangedCellComponent.react","immutable","react","useAutoSizer"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useCallback,l=e.useMemo,m=e.useState,n=100,o=10,p=function(a){a=a.item;return j.jsx(c("SignalsHistoryTableActivityNameCell.react"),{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})},q=function(a){a=a.item;return j.jsx(d("SignalsVariableActivityDetailsCellComponent").SignalsVariableActivityDetailsCellComponent,{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})},r=function(a){a=a.item;return j.jsx(d("SignalsVariableItemChangedCellComponent.react").SignalsVariableItemChangedCellComponent,{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})},s=function(a){a=a.item;return j.jsx(c("SignalsHistoryTableChangedByCell.react"),{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})},t=function(a){a=a.item;return j.jsx(c("SignalsHistoryTableDateTimeCell.react"),{activity:a,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT})};function u(a,b){b=b.sortBy(function(a){return a.timestamp});return a==="asc"?b:b.reverse()}function a(a){var e=m("desc"),f=e[0],g=e[1],v=k(function(){var b=f==="asc"?"desc":"asc";g(b);a.logger.logCustomActionUseSparingly(b==="asc"?d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.SORT_TABLE_BY_DATE_ASCENDING:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.SORT_TABLE_BY_DATE_DESCENDING)},[a.logger,f]);e=l(function(){return u(f,c("immutable").List(a.dataSource))},[a.dataSource,f]);var w=c("useAutoSizer")(),x=w.Container,y=w.height;w=w.width;var z=function(){a.onLoadMoreData();return b("Promise").resolve([])};y=e.size===0?10:Math.floor(y)-o;return j.jsx("div",{className:"_3-8y",style:{display:"flex",height:"100%",overFlow:"hidden",width:"100%"},children:j.jsxs(c("GeoFlexbox.react"),{direction:"column",grow:1,children:[j.jsx(x,{children:j.jsxs(c("BUITable.react"),{borders:"rows",hasFlexibleColumnWidths:!0,headerProps:{height:d("SignalsHistoryTableConstants").CELL_HEIGHT,item:{}},items:e,maxHeight:y,rowHeight:d("SignalsHistoryTableConstants").ROW_HEIGHT,totalRowCount:a.hasMoreItems?e.count()+d("SignalsHistoryTableConstants").NUM_LOADING_STATE_ROWS:void 0,width:w,onLoadMoreRows:z,children:[j.jsx(c("BUITableColumn.react"),{cell:p,header:function(){return j.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("u52a8u6001")})},width:Math.floor(w*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY]/n)},d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY),j.jsx(c("BUITableColumn.react"),{cell:q,header:function(){return j.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY_DETAILS,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("u52a8u6001u8be6u60c5")})},width:Math.floor(w*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY_DETAILS]/n)},d("SignalsHistoryTableConstants").COLUMN_KEYS.ACTIVITY_DETAILS),j.jsx(c("BUITableColumn.react"),{cell:r,header:function(){return j.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.ITEM_CHANGED,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("u5bf9u8c61")})},width:Math.floor(w*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.ITEM_CHANGED]/n)},d("SignalsHistoryTableConstants").COLUMN_KEYS.ITEM_CHANGED),j.jsx(c("BUITableColumn.react"),{cell:s,header:function(){return j.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.CHANGED_BY,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!1,label:h._("u66f4u6539u4eba")})},width:Math.floor(w*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.CHANGED_BY]/n)},d("SignalsHistoryTableConstants").COLUMN_KEYS.CHANGED_BY),j.jsx(c("BUITableColumn.react"),{cell:t,header:function(){return j.jsx(c("BUITableHeaderCell.react"),{columnKey:d("SignalsHistoryTableConstants").COLUMN_KEYS.DATE_TIME,height:d("SignalsHistoryTableConstants").CELL_HEIGHT,isSortable:!0,label:h._("u65e5u671fu548cu65f6u95f4"),sortDirection:f,onSort:v})},width:Math.floor(w*d("SignalsHistoryTableConstants").COLUMN_WIDTH_PERCENT[d("SignalsHistoryTableConstants").COLUMN_KEYS.DATE_TIME]/n)},d("SignalsHistoryTableConstants").COLUMN_KEYS.DATE_TIME)]})}),e.size===0&&j.jsx(c("SignalsHistoryNoResultIndicator.react"),{image:j.jsx(c("Image.react"),{className:"_3-95",src:i("509718")}),primaryMessage:h._("u6839u636eu6240u9009u7b5bu9009u6761u4ef6uff0cu65e0u66f4u6539u8bb0u5f55u53efu663eu793a"),secondaryMessage:h._("u5728u4e0au65b9u6269u5927u7b5bu9009u8303u56f4u6765u67e5u770bu5386u53f2u8bb0u5f55u3002u66f4u65b0u5185u5bb9u53efu80fdu8981u8fc7 15 u5206u949fu624du4f1au663eu793au5728u8868u683cu4e2du3002")})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SignalsHomePixelHistoryActivityTableContainer.react",["fbt","ix","AdsEventsManagerConsolidationAssets","AdsEventsManagerGatingUtils","BUIDateRangePicker.react","BUIDateRangePresets","BUIDropdownSelector.react","BUIDropdownSelectorOption.react","BUIToolbar.react","BUIToolbarFill.react","Image.react","Laminar","SignalsActivityLogEventFbts","SignalsActivityTypeEnum","SignalsActivityTypeMapping","SignalsConsolidatedDatasetDataManager","SignalsErrorCard.react","SignalsEventsTableAssets.react","SignalsHistoryDataProvider","SignalsHistoryNoResultIndicator.react","SignalsHistoryTableFilterUtils","SignalsHistoryTableLoggingConstants","SignalsHomeHistoryActivityTable.react","SignalsLoadingSpinner.react","SignalsLoggingBoundary.react","SignalsPixelHistoryLoadMoreItemsAction","Timezone","qpl","react","signalsLoggingUserInputWithValueContextListener","useEffectOnce"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=d("react");var k=a.useCallback,l=a.useMemo,m=a.useState,n=[d("SignalsHistoryTableFilterUtils").ALL_AVAILABLE_DAYS_INTERVAL,c("BUIDateRangePresets").TODAY,c("BUIDateRangePresets").YESTERDAY,c("BUIDateRangePresets").LAST_7_DAYS,c("BUIDateRangePresets").LAST_14_DAYS,c("BUIDateRangePresets").LAST_28_DAYS,c("BUIDateRangePresets").THIS_MONTH];b=function(a){var b=a.pixelID,e=a.logger;c("useEffectOnce")(function(){e.startEvent(c("qpl")._(58195969,"4642"))});a=d("Laminar").useProvider(c("SignalsHistoryDataProvider")).get(b);var f=k(function(){return c("SignalsPixelHistoryLoadMoreItemsAction").dispatch({pixelID:b},{line:"107",module:"SignalsHomePixelHistoryActivityTableContainer.react.js"})},[b]);if(a.hasError()){e.endEventFail(c("qpl")._(58195969,"4642"));return j.jsx(c("SignalsErrorCard.react"),{content:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_CONTENT,header:d("SignalsEventsTableAssets.react").ERROR_MESSAGE_HEADER})}return a.isLoading()?j.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k",children:j.jsx(c("SignalsLoadingSpinner.react"),{})}):j.jsx(o,{hasMoreItems:a.hasValue()&&a.getValueEnforcing().after!=null,logger:e,pixelHistoryList:a.hasValue()?a.getValueEnforcing().pixelHistoryList:[],pixelID:b,onLoadMoreData:f})};var o=function(a){var b=a.logger,e=a.pixelHistoryList,f=a.pixelID,g=a.hasMoreItems;a=a.onLoadMoreData;c("useEffectOnce")(function(){b.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.HISTORY_TABLE_LOADED),b.endEventSuccess(c("qpl")._(58195969,"4642"))});var o=l(function(){return d("SignalsHistoryTableFilterUtils").getPixelUsers(e)},[e]),p=o.userMapping;o=o.sortedUserList;f=d("SignalsConsolidatedDatasetDataManager").IsConsolidatedDataset(f);var q=m("ALL"),r=q[0],s=q[1];q=k(function(){b.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.CLICK_ACTIVITY_TYPE_FILTER)},[b]);var t=k(function(a){s(a),b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.ACTIVITY_TYPE_FILTER,stringValue:a}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_ACTIVITY_TYPE)},[s,b]),u=m(d("SignalsHistoryTableFilterUtils").ALL_USERS_ID),v=u[0],w=u[1];u=k(function(){b.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.CLICK_CHANGE_BY_FILTER)},[b]);var x=k(function(a){w(a),b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.CHANGE_BY_FILTER,stringValue:a}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_CHANGED_BY)},[b]),y=m(d("SignalsHistoryTableFilterUtils").ALL_AVAILABLE_DAYS_INTERVAL_VALUE),z=y[0],A=y[1];y=k(function(a){a&&b.logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.CLICK_DATE_FILTER)},[b]);var B=k(function(a){A(a);var e=a.preset!=null?a.preset:(a=a.interval)==null?void 0:a.toString();b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableUserInputLoggingFieldNames.DATE_FILTER,stringValue:e}}).logCustomActionUseSparingly(d("SignalsHistoryTableLoggingConstants").SignalsHistoryTableLoggingActions.FILTER_TABLE_BY_DATE)},[A,b]),C=l(function(){return d("SignalsHistoryTableFilterUtils").filterHistory({selectedCategory:r,selectedDateRange:z,selectedUserId:v},e)},[r,z,v,e]),D=l(function(){return new Set(e.map(function(a){return d("SignalsActivityTypeMapping").SignalsActivityTypeMapping[a.actionType]}).filter(Boolean))},[e]);return j.jsxs("div",{style:{display:"flex",flexDirection:"column",flexGrow:1,height:"100%",width:"100%"},children:[j.jsx("div",{children:j.jsxs(c("BUIToolbar.react"),{children:[j.jsx(c("BUIToolbarFill.react"),{}),d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager()?null:j.jsx(c("BUIDateRangePicker.react"),{height:"medium",options:n,timezoneID:d("Timezone").getEnvironmentTimezoneID(),value:z,verbose:"custom",onChange:B,onToggle:y}),j.jsx(c("BUIDropdownSelector.react"),{label:h._("u66f4u6539u4ebauff1a{selected user}",[h._param("selected user",p[v])]),value:v,onChange:x,onSelectorButtonClick:u,children:o.map(function(a){return j.jsx(c("BUIDropdownSelectorOption.react"),{value:a[0],children:a[1]},a[0])})}),j.jsx(c("BUIDropdownSelector.react"),{label:h._("u52a8u6001u7c7bu578buff1a{selected activity type}",[h._param("selected activity type",c("SignalsActivityLogEventFbts")[r])]),value:r,onChange:t,onSelectorButtonClick:q,children:Object.keys(c("SignalsActivityTypeEnum")).filter(function(a){return a==="ALL"||d("SignalsActivityTypeMapping").IMPLEMENTED_ACTIVITY_TYPES[a]===!0&&D.has(a)}).sort(function(a,b){return a==="ALL"?-1:a.toString().localeCompare(b.toString())}).map(function(a){return j.jsx(c("BUIDropdownSelectorOption.react"),{value:a,children:c("SignalsActivityLogEventFbts")[a]},a)})})]})}),j.jsx("div",{style:{flex:1,overflow:"hidden"},children:e!=null&&e.length>0?j.jsx(c("SignalsHomeHistoryActivityTable.react"),{dataSource:C,hasMoreItems:g,logger:b,sortBy:"DATE_TIME",onLoadMoreData:a}):j.jsx(c("SignalsHistoryNoResultIndicator.react"),{image:j.jsx(c("Image.react"),{className:"_3-95",src:i("725971")}),primaryMessage:f?d("AdsEventsManagerConsolidationAssets").HistoryContent.PRIMARY_MESSAGE_FOR_NO_HISTORY:h._("u627eu4e0du5230u4efbu4f55u66f4u6539u8bb0u5f55"),secondaryMessage:f?d("AdsEventsManagerConsolidationAssets").HistoryContent.SECONDARY_MESSAGE_FOR_NO_HISTORY:h._("u4f60u7684 Pixel u50cfu7d20u4ee3u7801u6ca1u6709u4efbu4f55u66f4u65b0u8bb0u5f55u3002u66f4u65b0u5185u5bb9u53efu80fdu8981u8fc7 15 u5206u949fu624du4f1au663eu793au5728u8868u683cu4e2du3002")})})]})};e=c("SignalsLoggingBoundary.react").loggerConsumingComponent(d("Laminar").laminarContainer(b),function(a){return a.scope("SignalsHomePixelHistoryActivityTableContainer")},{disableSessionCreation:!0});g["default"]=e}),98);
-----
AudienceManagerChrome.react",["cx","fbt","invariant","AdsAMAccountAcceptedTosAddAction","AdsAMAmStartInitAction","AdsAMAudienceDeleteStartAction","AdsAMAudienceGraphAPI","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMConnectConfig","AdsAMCreateAudienceServerActions","AdsAMSharingAgreementAcceptedAction","AdsAMViewActions","AdsAMViewClearErrorsAction","AdsAMViewCloseMoveAdAccoutToBusinessDialogAction","AdsAMViewCloseRegularEditDialogAction","AdsAMViewCloseShareAudienceDialogAction","AdsAMViewCloseUserTOSDialogAction","AdsAMViewShowBulkDeleteDialogAction","AdsAMViewShowBulkShareAudienceDialogAction","AdsAMViewShowCreateCaDialogAction","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowMoveAdAccoutToBusinessDialogAction","AdsAMViewShowOptOutDialogAction","AdsAMViewShowPixelDialogAction","AdsAMViewShowRegularEditDialogAction","AdsAMViewShowSavedAudienceCreateDialogAction","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAMViewShowWcaDialogAction","AdsAMViewStore","AdsAMViewToggleSpecialAdAudienceDialogAction","AdsAMViewUpdateFilterSetAction","AdsAccountStore","AdsAccountUtils","AdsAttachAdAccountToBusinessManagerNotice.react","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsAudienceManagerFilterBarConstants","AdsAudienceManagerFilterBarUtils","AdsAudienceManagerGlobalNavigation.react","AdsAudienceManagerUnloadAction","AdsAudienceOverlapActions","AdsAudienceRuleBuilderSpecUtil","AdsAudienceSharingStore","AdsCollapseSideNavAction","AdsCommonAdvertisablePagesVideosStore","AdsCreateAudienceActionSelector.react","AdsCreateSpecialAdAudienceBlockingDialog.react","AdsCustomAudienceType","AdsDataSourceTables","AdsErrorBoundary.react","AdsExpandSideNavAction","AdsFluxContainer","AdsGenericFilter","AdsGenericFilterField","AdsGenericFilterSet","AdsGenericFilterSetUtil","AdsGeodesicAdoption","AdsInterfacesLogger","AdsMgmtPerfScenarioController","AdsMoveAdAccountToBusinessViewStage","AdsNewIDs","AdsPerfScenarios","AdsPixelDialogStore","AdsPixelDialogTypes","AdsPixelTableSettingProvider","AdsPixelViewActions","AdsSavedAudienceActions","AdsSavedAudienceLoggingEvents","AdsSideNavUIStateDataProvider","AdsSignalsBlockLongRetentionOfflineCustomAudienceConfig","AdsStaticGuidanceCard.react","AdsTargetingAudienceEditorGKSelectors","AdsTargetingAudienceManagerVLALMegaphoneNUXContainer.react","AdsTargetingAudienceShowCreateLalAudienceDialogDataAction","AdsTargetingBootloadDialog.react","AdsTargetingDeprecatedOptionsWarningBanner.react","AdsTargetingEUPrivacyDirectiveImpactBanner.react","AdsTargetingFallbackErrorNotice.react","AdsTargetingIosSignalLossSelectors","AdsTargetingNonprofitCAAnnouncementBanner.react","AdsTargetingOfflineRetentionChangeNotice.react","AdsTargetingOffsiteSignalsConsolidationUtils","AdsTargetingSpecialAdAudienceDeprecationBanner","AdsUnifiedAudienceManagerFilterBar.react","AssetLibrarySearchStore.brands","AudienceDetailsPaneGeodesicContainer.react","AudienceManagerActionSelector.react","AudienceManagerBulkDeleteDialog.react","AudienceManagerBulkDeleteSTSDialog.react","AudienceManagerColumnSelector.react","AudienceManagerCreateAudienceFlatDialogContainer.react","AudienceManagerDeleteAudiencesButton.react","AudienceManagerDeleteDialog.react","AudienceManagerEditAudiencesButton.react","AudienceManagerErrorTypes","AudienceManagerErrorView.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerLookalikeDialogGKSelectors","AudienceManagerOptOutDialog.react","AudienceManagerPerfScenarioLoggingUtils","AudienceManagerPlacement","AudienceManagerSearchBar.react","AudienceManagerSelectableTable.react","AudienceManagerShareAudiencesButton.react","AudienceManagerStages","AudienceManagerTransactionDialog.react","AudienceManagerUIConstants","AudienceSharingHideAgreementDataAction","BUIButton.react","BUICard.react","BUIDetailPaneActions.brands","BUIGuidanceCard.react","BUIGuidanceCardContent.react","BUIGuidanceCardContentText.react","BUIGuidanceCardHeader.react","BUISection.react","BUIText.react","BootloadedComponent.react","CometPlaceholder.react","CustomAudienceDataSourceSubType","CustomAudienceTosUtils","CustomAudienceUtils","DialogActions.brands","FlexLayout.react","GeoHeading.react","GeoSpinner.react","GeoToast.react","GeoToolbar.react","GeoToolbarFill.react","JSResource","LookalikeLocationsNeededBanner.react","LookalikeLocationsNotNeededAudienceManagerBanner.react","PartnerIntegrationDialogLoggingScopesAction","SUIBusinessThemeContainer.react","ScrollableArea.react","ShareAudienceConstants","URI","UnifiedAudiencesManagerAudienceDetailPaneAction","UnifiedAudiencesManagerAudienceDetailPaneConstants","adsAccountGK","adsSignalSourceContainersSelector","emptyFunction","gkx","ifRequired","immutable","joinClasses","lazyLoadComponent","performanceNow","react","setupScenarioStart"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");a=d("react").PureComponent;var l=c("AdsPixelTableSettingProvider").toFluxStore(),m=c("lazyLoadComponent")(c("JSResource")("AdsPELocalScopeSelectorContainer.react").__setRef("AudienceManagerChrome.react")),n="basecode",o=47,p=35,q=42,r=720,s=112,t=284,u=14,v=300,w=56,x=c("AdsSideNavUIStateDataProvider").toFluxStore();b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
AudienceManagerColumnHeaderRenderers",["cx","AdsAMAudienceActions","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerUIConstants","FixedDataTableSortableHeader.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){a=a&&a.headerAlign;return!a?null:(a===d("AudienceManagerUIConstants").ALIGN.CENTER?"_2csv":"")+(a===d("AudienceManagerUIConstants").ALIGN.LEFT?" _3ohp":"")+(a===d("AudienceManagerUIConstants").ALIGN.RIGHT?" _3ohq":"")}function a(a,b,c){return a!=null?i.jsx("div",{className:j(c),children:a}):null}a.displayName=a.name+" [from "+f.id+"]";function b(a,b,e){var f=e.currentSortState.sortKey===e.sortKey;b=f?e.currentSortState.sortOrder:null;var g=function(){d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SORT_HEADER_CLICK,{column:e.sortKey});var a=f&&e.currentSortState.sortOrder===d("AudienceManagerUIConstants").SORT_ORDER.ASC?d("AudienceManagerUIConstants").SORT_ORDER.DESC:d("AudienceManagerUIConstants").SORT_ORDER.ASC;d("AdsAMAudienceActions").sortAudience(a,e.sortKey,e.compareFunction)},h=j(e);return i.jsx(c("FixedDataTableSortableHeader.react"),{className:h||"",sorting:b,onClick:g,children:a})}b.displayName=b.name+" [from "+f.id+"]";g.renderHeader=a;g.renderSortableHeader=b}),98);
-----
AudienceManagerAudienceNameColumnCellRenderer",["cx","AdsAMAudienceUtils","AdsInterfacesLogger","AdsPixelAndAudienceContextUtils","AudienceManagerAudienceNameContextualHelpDialog.react","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerPlacement","AudienceManagerUIConstants","BUILink.react","BUISimplePopover.react","GeoBaseText.react","UnifiedAudiencesManagerAudienceDetailPaneAction","clearTimeout","prop-types","react","setTimeout"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=80,k=80,l=null;a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
AudienceManagerActionSelector.react",["fbt","AdsAMAudienceUtils","AdsAudienceDataSourceUtils","AdsAudienceShoppingUtils","AdsBusinessManagerRequirementsConstants","AdsCustomAudienceType","AdsInterfacesLogger","AudienceManagerActionButtonConstants","AudienceManagerBulkActionUtils","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","CustomAudienceUtils","GeoDropdownMenu.react","GeoMenuItem.react","GeoMenuSeparator.react","TargetingEUPrivacyDirectiveConstants","emptyFunction","getShouldUseMetaRebrand","keyMirror","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=c("keyMirror")({SINGLE_SAVED_TARGET_GROUP:null,SINGLE_CUSTOM_AUDIENCE:null,MULTIPLE_SAVED_TARGET_GROUP:null,MULTIPLE_CUSTOM_AUDIENCE:null,MULTIPLE_MIXED:null,NONE:null});a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
AudienceDetailsPaneGeodesicContainer.react",["cx","AdsAMAudienceUtils","AdsAMViewShowRegularEditDialogAction","AdsAMViewShowSavedAudienceEditDialogAction","AdsAMViewShowSavedTargetSpecDialogAction","AdsAMViewShowWcaDialogAction","AdsAudienceDataSourceUtils","AdsAudienceDetailActions","AdsAudienceDetailStore","AdsInterfacesLogger","AudienceDetailsPaneGeodesicHeader.react","AudienceDetailsPaneGeodesicTabGroupSection.react","AudienceDetailsPaneGeodesicUtils","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerLoggingUtils","AudienceManagerPerfScenarioLoggingUtils","FluxContainer","GeoCard.react","GeoSpinner.react","UnifiedAudiencesManagerAudienceDetailPaneConstants","adsCreateStoreSelector","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=48,k=c("adsCreateStoreSelector")([c("AdsAudienceDetailStore")],function(){return{audience:c("AdsAudienceDetailStore").getAudience(),lookalikes:c("AdsAudienceDetailStore").getAudienceLookalikeNames(),isLoadingLookalikeContent:c("AdsAudienceDetailStore").getIsLoadingAudienceLookalikeNames(),isPaneOpen:c("AdsAudienceDetailStore").getIsUnifiedAudiencesManagerAudienceDetailPaneOpen()}},{name:f.id+".adsAudienceDetailStoreSelector"});a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
AudienceManagerActionUtils",["$InternalEnum","AdsAMAudienceStore","AdsAMAudienceUtils","AdsAMViewShowDeleteAudienceDialogAction","AdsAMViewShowLookalikeDialogAction","AdsAMViewShowShareAudienceDialogAction","AdsAudienceDetailActions","AdsAudienceShoppingUtils","AdsCustomAudienceType","AdsInterfacesLogger","AudienceManagerBulkActionUtils","AudienceManagerFunnelLogger","AudienceManagerFunnelLoggingConstants","AudienceManagerLoggingEvents","AudienceManagerMenuButtonsUtils","CustomAudienceUtils","Link.react","isFalsey","isTruthy","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a,b){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_AD_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_ACTION_CREATE_AD_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);d("AdsAMAudienceUtils").isSavedAudience(a)?d("AdsAudienceDetailActions").createAdFromSavedAudience(a.id,b):d("AdsAudienceDetailActions").createAdFromCustomAudience(a.id,a.name,b)}function e(a,b){var e=a==null?void 0:a.isSavedAudience;a=d("AudienceManagerBulkActionUtils").canCreateAd([a],b);b=a[0];return c("isTruthy")(e)||b}function i(a,b){if(d("AdsAudienceShoppingUtils").shouldDisableLALForShoppingCA(a==null?void 0:a.rule_v2))return!1;return!!a&&d("CustomAudienceUtils").isAudienceEUPrivacyDirectiveImpacted(a)?!1:!!a&&a.permission_for_actions.subtype_supports_lookalike&&j(a,b)}function j(a,b){return c("isFalsey")(a==null?void 0:a.account_id)||!b||(a==null?void 0:a.account_id)===b}function k(a,b){return a.subtype!==c("AdsCustomAudienceType").SUBTYPES.REGULAR||c("isFalsey")(b)?!0:((a=a.owner_account_info)==null?void 0:a.business_id)===b}function l(a){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.CREATE_LOOKALIKE_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_CREATE_LAL_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsAMViewShowLookalikeDialogAction").dispatch({audienceId:a.id},{line:"133",module:"AudienceManagerActionUtils.js"})}function m(a,b){return!!a&&a.permission_for_actions.can_edit&&j(a,b)}function n(a,b){return(m(a,b)||!j(a,b))&&(!(a==null?void 0:a.lookalike_audience_ids)||a.lookalike_audience_ids.length===0)}var o=b("$InternalEnum").Mirrored(["CANNOT_SHARE_AUDIENCE_FROM_SHARED_ADACCOUNT","CANNOT_RESHARE_AUDIENCE","NO_PERMISSION_TO_SHARE","STORE_VISIT_NOT_SUPPORTED","EU_PRIVACY_DIRECTIVE_AUDIENCE","NONE"]);function p(a,b,e){if(!a)return[!1,o.NONE];else if(d("CustomAudienceUtils").isUntrustedAdAccountForSharing(c("AdsAMAudienceStore").getAccount()))return[!1,o.NONE];else if(!a.permission_for_actions.can_share)return[!1,o.NO_PERMISSION_TO_SHARE];else if(!j(a,b))return[!1,o.CANNOT_RESHARE_AUDIENCE];else if(!k(a,e))return[!1,o.CANNOT_SHARE_AUDIENCE_FROM_SHARED_ADACCOUNT];else if(d("AudienceManagerMenuButtonsUtils").isStoreVisitAudience(a))return[!1,o.STORE_VISIT_NOT_SUPPORTED];else if(d("CustomAudienceUtils").isAudienceEUPrivacyDirectiveImpacted(a))return[!1,o.EU_PRIVACY_DIRECTIVE_AUDIENCE];return[!0,o.NONE]}function q(a){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.DELETE_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_DELETE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsAMViewShowDeleteAudienceDialogAction").dispatch({audienceId:a.id},{line:"213",module:"AudienceManagerActionUtils.js"})}function r(a){if(!a)return;d("AudienceManagerFunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_ACTION.SHARE_CLICK_IN_DETAIL_PANE,{audience:a.id});c("AdsInterfacesLogger").log({eventName:d("AudienceManagerLoggingEvents").AM_DETAILS_SHARE_CLICKED},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsAMViewShowShareAudienceDialogAction").dispatch({audienceId:a.id},{line:"232",module:"AudienceManagerActionUtils.js"})}function s(a,b,e){e=d("AdsAMAudienceUtils").getAudienceDetailsURI(a,e);return h.jsx("div",{children:h.jsx(c("Link.react"),{href:e,target:"_blank",children:b===null?a:b})},a)}s.displayName=s.name+" [from "+f.id+"]";g.onCreateAd=a;g.canCreateAd=e;g.canCreateLookalike=i;g._isOwnedByCurrentAccount=j;g.isDFCAOwnedByCurrentBusiness=k;g.onCreateLookalike=l;g._canEdit=m;g.canDelete=n;g.ShareDisabledReason=o;g.canShareWithDisabledReason=p;g.onDelete=q;g.onShare=r;g.renderAudienceLink=s}),98);
-----
AudienceManagerFunnelLogger",["AudienceManagerFunnelLoggingConstants","FunnelLogger","isStringNullOrEmpty"],(function(a,b,c,d,e,f,g){"use strict";var h=86400;function a(a){d("FunnelLogger").startFunnel(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME),d("FunnelLogger").setFunnelTimeout(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,h),c("isStringNullOrEmpty")(a)||d("FunnelLogger").addFunnelTag(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,a)}function b(){d("FunnelLogger").endFunnel(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME)}function e(a){d("FunnelLogger").appendAction(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,a)}function f(a,b){d("FunnelLogger").appendActionWithPayload(d("AudienceManagerFunnelLoggingConstants").FUNNEL_NAME,a,b)}g.startFunnel=a;g.endFunnel=b;g.appendAction=e;g.appendActionWithPayload=f}),98);
-----
AudienceManagerFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="WWW_ADS_TARGETING_AUDIENCE_MANAGER_FUNNEL";b={ADD_LABEL:"add_label",AUDIENCE_LOADED:"audience_loaded",BULK_DELETED_AUDIENCES:"bulk_deleted_audiences",BULK_DELETED_SAVED_AUDIENCES:"bulk_deleted_saved_audiences",CLICK_AUDIENCES_GO_BACK_IN_DETAIL_PANE:"click_audiences_go_back_in_detail_pane",COLUMN_CUSTOMIZE:"column_customize",CREATE_AD_CLICK_IN_DETAIL_PANE:"create_ad_click_in_detail_pane",CREATE_AD_CLICK:"create_ad_click",CREATE_AUDIENCE_CLICK:"create_audience_click",CREATE_CUSTOM_AUDIENCE_CLICK_IN_NUX_VIEW:"create_custom_audience_click_in_nux_view",CREATE_CUSTOM_AUDIENCE_CLICK:"create_custom_audience_click",CREATE_LOOKALIKE_AUDIENCE_CLICK_IN_NUX_VIEW:"create_lookalike_audience_click_in_nux_view",CREATE_LOOKALIKE_AUDIENCE_CLICK:"create_lookalike_audience_click",CREATE_LOOKALIKE_CLICK_IN_DETAIL_PANE:"create_lookalike_click_in_detail_pane",CREATE_LOOKALIKE_CLICK:"create_lookalike_click",CREATE_SAVED_AUDIENCE_CLICK_IN_NUX_VIEW:"create_saved_audience_click_in_nux_view",CREATE_SAVED_AUDIENCE_CLICK:"create_saved_audience_click",CREATE_SPECIAL_AUDIENCE_CLICK:"create_special_audience_click",CREATED_SAVED_AUDIENCE:"created_saved_audience",CREATED_AUDIENCE:"created_audience",CREATED_OR_EDITED_AUDIENCE:"created_or_edited_audience",DELETED_AUDIENCE:"deleted_audience",DELETE_CLICK_IN_DETAIL_PANE:"delete_click_in_detail_pane",DELETE_CLICK:"delete_click",DETAIL_PANE_CLICK:"detail_pane_click",EDITED_AUDIENCE:"edited_audience",EDITED_AUDIENCE_IN_DETAIL_PANE:"edited_audience_in_detail_pane",EDITED_SAVED_AUDIENCE:"edited_saved_audience",EDITED_SAVED_AUDIENCE_IN_DETAIL_PANE:"edited_saved_audience_in_detail_pane",EDIT_CLICK_IN_DETAIL_PANE:"edit_click_in_detail_pane",EDIT_CLICK:"edit_click",EXPORT_AUDIENCE_CLICK:"export_audience_click",FILTER_BUTTON_CLICKED:"filter_button_clicked",FILTER_PRESET_CHANGED:"filter_preset_changed",LEARN_MORE_BUTTON_CLICK:"learn_more_button_click",LOAD_MORE_BY_SCROLLING:"load_more_by_scrolling",MOUSE_ENTER_AUDIENCE_HOVER_CARD:"mouse_enter_audience_hover_card",MOUSE_LEAVE_AUDIENCE_HOVER_CARD:"mouse_leave_audience_hover_card",PIXEL_ID_CLICK_IN_DETAIL_PANE:"pixel_id_click_in_detail_pane",PIXEL_NAME_CLICK_IN_DETAIL_PANE:"pixel_name_click_in_detail_pane",REMOVE_LABEL:"remove_label",SEARCH_COMPLETE:"search_complete",SELECT_AUDIENCE:"select_audience",SHARED_AUDIENCE:"shared_audience",SHARE_CLICK_IN_DETAIL_PANE:"share_click_in_detail_pane",SHARE_CLICK:"share_click",SORT_HEADER_CLICK:"sort_header_click",UNSELECT_AUDIENCE:"unselect_audience",VIEW_OVERLAP_CLICK:"view_overlap_click",VIEW_PIXEL_CLICK:"view_pixel_click"};f.FUNNEL_NAME=a;f.FUNNEL_ACTION=b}),66);
-----
useFBReelsScrollLogging",["CometRelay","FBReelsLoggingConstants","FBReelsViewerSessionIDContext","react","requireDeferred","useFBReelsProcessRoute","useFBReelsScrollLogging_reel.graphql","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useContext,k=e.useEffect,l=c("requireDeferred")("SfvChainingNavigationScrollFalcoEvent").__setRef("useFBReelsScrollLogging");function a(a,e){e=d("CometRelay").useFragment(h!==void 0?h:h=b("useFBReelsScrollLogging_reel.graphql"),e);var f=j(c("FBReelsViewerSessionIDContext")),g=f.viewerSessionID;f=c("useFBReelsProcessRoute")();var m=f.rootVideoID,n=c("usePrevious")(a),o=c("usePrevious")(e),p=i(function(){if(o==null)return;var b=a!=null&&n!=null&&a>n?"DOWN":"UP";l.onReady(function(a){return a.log(function(){var a;return{client_page_position:String(n),creator_id:(o==null?void 0:(a=o.short_form_video_context)==null?void 0:(a=a.video_owner)==null?void 0:a.id)||"",parent_video_id:m,playable_duration_in_ms:String((a=o==null?void 0:(a=o.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.playable_duration_in_ms)!=null?a:0),scroll_direction:b,source_surface:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[(o==null?void 0:o.tracking)||""],video_id:(a=o==null?void 0:(a=o.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id)!=null?a:"",viewer_session_id:g}})})},[a,n,o,m,g]);k(function(){var b=n!=null,c=a!==n;if(!b||!c)return;p()},[a,n,p])}g["default"]=a}),98);
-----
useFBReelsFalcoOpenSource",["FBReelsLoggingConstants","useFBReelsProcessRoute"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=c("useFBReelsProcessRoute")();a=a.source;var b=null,d=c("FBReelsLoggingConstants").OPEN_SOURCE;switch(a){case d.IFU:case d.IFU_END_CARD:case d.IFU_SEE_MORE:b=c("FBReelsLoggingConstants").OPEN_SOURCE_FOR_FALCO.COMET_IN_FEED_UNIT;break;case d.BOOKMARK:b=c("FBReelsLoggingConstants").OPEN_SOURCE_FOR_FALCO.BOOKMARK;break;default:b=c("FBReelsLoggingConstants").OPEN_SOURCE_FOR_FALCO.COMET_URL}return b}g["default"]=a}),98);
-----
useFBReelsImpressionLogging",["CometRelay","FBLogger","FBReelsLoggingConstants","FBReelsViewerSessionIDContext","cr:2279","react","requireDeferred","useFBReelsImpressionLogging_reel.graphql","useFBReelsProcessRoute","usePrevious","useVPVDImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useCallback,j=e.useContext,k=e.useEffect,l=e.useRef,m=c("requireDeferred")("SfvChainingVpvdFalcoEvent").__setRef("useFBReelsImpressionLogging"),n=h!==void 0?h:h=b("useFBReelsImpressionLogging_reel.graphql");function a(a,e){var f=c("usePrevious")(a),g=d("CometRelay").useFragment(n,e),h=c("usePrevious")(g),o=l({});e=c("useFBReelsProcessRoute")();var p=e.rootVideoID;e=j(c("FBReelsViewerSessionIDContext"));var q=e.viewerSessionID,r=d("CometRelay").useRelayEnvironment(),s=i(function(a,d){var e;if(d==null){c("FBLogger")("fb_reels_web").mustfix("Reels deep dive viewer tried to log an impression with no valid data");return}var f=(e=d==null?void 0:(e=d.short_form_video_context)==null?void 0:(e=e.video)==null?void 0:e.id)!=null?e:"";e=o.current[f];if(e==null){c("FBLogger")("fb_reels_web").mustfix("Reels deep dive viewer tried to log a duplicate impression or one for a reel never viewed. Reels ID:"+f);return}var g=Date.now()-e;m.onReady(function(b){return b.log(function(){var b;return{client_page_position:String(a),creator_id:(d==null?void 0:(b=d.short_form_video_context)==null?void 0:(b=b.video_owner)==null?void 0:b.id)||"",duration:String(g),parent_video_id:p,playable_duration_in_ms:String((b=d==null?void 0:(b=d.short_form_video_context)==null?void 0:(b=b.video)==null?void 0:b.playable_duration_in_ms)!=null?b:0),player_origin:c("FBReelsLoggingConstants").PLAYER_ORIGIN.NEWS_FEED,player_suborigin:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,source_surface:c("FBReelsLoggingConstants").SOURCE_SURFACE.VIEWER,tracking:[(d==null?void 0:d.tracking)||""],video_id:f,viewer_session_id:q}})});b("cr:2279")(r,f);delete o.current[f]},[r,p,q]),t=i(function(){var a;a=g==null?void 0:(a=g.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id;if(a==null)return;var b=o.current[a];if(b!=null)return;b=Date.now();o.current[a]=b},[g]);k(function(){t()},[g,t]);k(function(){var a,b;a=h==null?void 0:(a=h.short_form_video_context)==null?void 0:(a=a.video)==null?void 0:a.id;b=g==null?void 0:(b=g.short_form_video_context)==null?void 0:(b=b.video)==null?void 0:b.id;a!=null&&a!==b&&s(f,h)},[a,f,g,h,s]);e=function(){t()};var u=function(){if(g==null)return;s(a,g)};return c("useVPVDImpression")({onVPVDEnd:u,onVPVDStart:e})}g["default"]=a}),98);
-----
FBReelsMediaTransitionContainer.react",["CometPageLayoutWithComplementaryContent.react","CometPlaceholder.react","CometRelay","CometRouteRenderType","CometTheme.react","FBReelsConstants","FBReelsFeedbackBar.react","FBReelsFeedbackBarPlaceholder.react","FBReelsFeedbackRightRailGlimmer.react","FBReelsFullScreenContext","FBReelsGating","FBReelsHideReelContext","FBReelsLoggingConstants","FBReelsMediaContentContainer.react","FBReelsMediaTransitionContainer_initial_reels.graphql","FBReelsMediaTransitionContainer_video.graphql","FBReelsNavigationButtons.react","FBReelsNodeIndexContextProvider.react","FBReelsResizeIcon.react","FBReelsTopOfViewLayoutTestingContextProvider","ReelsVideoLoadingView.react","cr:3705","deferredLoadComponent","react","requireDeferred","stylex","useCurrentDisplayMode","useFBReelsImpressionLogging","useFBReelsScrollLogging","useOnBeforeUnload","useReelsLogger"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useContext,l=e.useMemo,m=e.useState,n=c("deferredLoadComponent")(c("requireDeferred")("FBReelsFeedbackRightRail.react").__setRef("FBReelsMediaTransitionContainer.react")),o={content:{backgroundColor:"xjbqb8w",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x78zum5",flexDirection:"x1q0g3np",marginBottom:"xod5an3",marginTop:"x14vqqas",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",transitionDuration:"x1k90msu",transitionProperty:"x6o7n8i",transitionTimingFunction:"x9lcvmn",willChange:"x1m6m0jg",$$css:!0},feedbackBarContainer:{alignItems:"xuk3077",display:"x78zum5",height:"x5yr21d",marginBottom:"x1hq5gj4",marginEnd:"xt1id46",marginStart:"x1mh8g0r",$$css:!0},fullScreenInPushView:{height:"x1dr59a3",width:"x1wqljz4",$$css:!0},fullScreenNotInPushView:{height:"xtp0wl1",width:"x7w7710",$$css:!0},resizeIcon:{end:"x92rtbv",position:"x10l6tqk",top:"xomnu4r",$$css:!0},root:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"xdt5ytf",height:"x5yr21d",justifyContent:"xl56j7k",position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",width:"xh8yej3",$$css:!0},viewerContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"x1q0g3np",height:"x5yr21d",justifyContent:"xl56j7k",position:"x1n2onr6",$$css:!0}};function a(a){var e=a.initialReelsRef;a=a.nodesRef;var f=d("CometRelay").useFragment(h!==void 0?h:h=b("FBReelsMediaTransitionContainer_initial_reels.graphql"),e),g=d("CometRelay").useFragment(i!==void 0?i:i=b("FBReelsMediaTransitionContainer_video.graphql"),a);e=k(c("FBReelsNodeIndexContextProvider.react"));var p=e.index;a=k(c("FBReelsHideReelContext"));var q=a.hiddenReels;e=m(!1);var r=e[0],s=e[1];d("CometRelay").useSubscribeToInvalidationState([f==null?void 0:f.id].filter(Boolean),function(){s(!0)});var t=l(function(){var a,b=[];f!=null&&f.id!=null&&!r&&q!=null&&!q.has(f.id)&&b.push(f);((a=g)!=null?a:[]).forEach(function(a){a!=null&&Object.keys(a).length!==0&&a.id!=null&&q!=null&&!q.has(a.id)&&b.push(a)});a=b.filter(Boolean);return a},[g,f,q,r]);a=k(c("FBReelsFullScreenContext"));e=a.isFullScreen;a=d("CometRouteRenderType").useIsPushView();var u=c("useCurrentDisplayMode")();c("useFBReelsScrollLogging")(p,t[p]);var v=c("useFBReelsImpressionLogging")(p,t[p]),w=v[0];v=v[1];var x=c("useReelsLogger")(),y=x.exitViewerLog,z=(x=t[p])==null?void 0:(x=x.short_form_video_context)==null?void 0:(x=x.video)==null?void 0:x.id,A=(x=t[p-1])==null?void 0:(x=x.short_form_video_context)==null?void 0:(x=x.video)==null?void 0:x.id;c("useOnBeforeUnload")(function(){var a;y(p,c("FBReelsLoggingConstants").CLOSE_REELS_GESTURE.UNKNOWN,[(a=(a=t[p])==null?void 0:a.tracking)!=null?a:""],(a=(a=z)!=null?a:A)!=null?a:"")});if(t==null)return null;x=a?o.fullScreenInPushView:o.fullScreenNotInPushView;return j.jsx("div",{className:c("stylex")(x),children:j.jsx(c("CometTheme.react"),{theme:u,xstyle:x,children:j.jsxs(c("CometPageLayoutWithComplementaryContent.react"),{hideContainerBackground:!0,isRightRailFixed:!0,rightRail:e?null:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("FBReelsFeedbackRightRailGlimmer.react"),{}),children:j.jsx(n,{rightRail:t[p]})}),children:[j.jsx(c("CometTheme.react"),{style:{minHeight:d("FBReelsConstants").MIN_VIEWER_HEIGHT},theme:u,children:j.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:[b("cr:3705")!=null&&j.jsx(b("cr:3705"),{reels:t[p]}),j.jsx(c("FBReelsNavigationButtons.react"),{children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("ReelsVideoLoadingView.react"),{}),children:j.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k x1n2onr6",children:[j.jsx("div",{className:"xjbqb8w x1lq5wgf xgqcy7u x30kzoy x9jhf4c x78zum5 x1q0g3np xod5an3 x14vqqas x6ikm8r x10wlt62 x1n2onr6 x1k90msu x6o7n8i x9lcvmn x1m6m0jg",children:j.jsxs(c("FBReelsTopOfViewLayoutTestingContextProvider"),{shouldDisplayOwnerInfoOnFooter:d("FBReelsGating").shouldDisplayOwnerInfoOnFooter(),children:[j.jsx(c("FBReelsMediaContentContainer.react"),{loggerRef:w,reels:t[p]}),v]})}),j.jsx("div",{className:"xuk3077 x78zum5 x5yr21d x1hq5gj4 xt1id46 x1mh8g0r",children:j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("FBReelsFeedbackBarPlaceholder.react"),{}),children:j.jsx(c("FBReelsFeedbackBar.react"),{feedbackData:t[p]})})})]})})})]})}),e?null:j.jsx("div",{className:"x92rtbv x10l6tqk xomnu4r",children:j.jsx(c("FBReelsResizeIcon.react"),{})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTileGridSidePaneYourStoryViewItem.react",["fbt","CometRelay","StoriesConstants","StoriesEnums","StoriesLoggingConstants","StoriesNavListItemPog.react","StoriesTileGridSidePaneItem.react","StoriesTileGridSidePaneYourStoryViewItem_bucket.graphql","StoriesTrayUtils","TetraIcon.react","XCometStoriesCreateControllerRouteBuilder","cr:3595","react","useStoriesTrayTilePressable","uuid"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useMemo;function a(a){var e=a.bucket,f=a.isUploading,g=a.isUserBucketEmpty,l=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTileGridSidePaneYourStoryViewItem_bucket.graphql"),e);a=k(function(){if(g)return void 0;else{var a;a=(a=l==null?void 0:l.id)!=null?a:"";var b=l==null?void 0:l.first_story_to_show,e=d("StoriesConstants").NAV_PANE_TOTAL_COUNT;a=d("StoriesTrayUtils").getBucketURL(a,b==null?void 0:b.id,e,c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME);b={bucketType:d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OWNED_SELF,source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,traySessionID:c("uuid")()};return{passthroughProps:b,url:a}}},[l==null?void 0:l.first_story_to_show,l==null?void 0:l.id,g]);e=c("useStoriesTrayTilePressable")(l==null?void 0:l.first_story_to_show,c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME);var m=e.onPress;e=e.onPressIn;var n={passthroughProps:{entryPoint:"add_to_story_left_nav",sourceSurface:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME},url:c("XCometStoriesCreateControllerRouteBuilder").buildURL({})};return j.jsx(c("StoriesTileGridSidePaneItem.react"),{addOnPrimary:{component:j.jsx(c("StoriesNavListItemPog.react"),{bucket:l,iconSize:36,isUploading:f}),type:"override"},addOnSecondary:f?null:{addOn:j.jsx(c("TetraIcon.react"),{"aria-label":"Add to Your Story",icon:b("cr:3595"),linkProps:n,size:24}),type:"body"},linkProps:a,onPress:m,onPressIn:e,selected:!1,text:h._("u4f60u7684u5febu62cd")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTileGridSidePaneYourStoryAddItem.react",["fbt","StoriesLoggingConstants","StoriesTileGridSidePaneItem.react","XCometStoriesCreateControllerRouteBuilder","cr:3310","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(){var a=c("XCometStoriesCreateControllerRouteBuilder").buildURL({}),d={entryPoint:"add_to_story_left_nav",sourceSurface:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME};return i.jsx(c("StoriesTileGridSidePaneItem.react"),{addOnPrimary:{color:"gray",icon:b("cr:3310"),size:36,type:"contained-icon"},linkProps:{passthroughProps:d,url:a},selected:!1,text:h._("u53d1u5e03u5febu62cd")})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTileGridAllStories.react",["fbt","CometDivider.react","CometRelay","StoriesActorContext","StoriesConstants","StoriesGating","StoriesLoggingConstants","StoriesTileGridAllStories_LWRAnimations.graphql","StoriesTileGridAllStories_user.graphql","StoriesTileGridBucketsSection.react","StoriesTileGridDisplayedSectionsContext","StoriesTileGridSectionFooter.react","StoriesTileGridSectionHeaderLinkPropsContext","StoriesTileGridSectionShouldRenderContext","StoriesTileGridSectionTypes","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect,o=e.useMemo;function a(a){var e,f=a.animations,g=a.traySessionID;a=a.user;a=d("CometRelay").usePaginationFragment(i!==void 0?i:i=b("StoriesTileGridAllStories_user.graphql"),a);var p=a.data,q=a.hasNext,r=a.isLoadingNext,s=a.loadNext,t=a.refetch;a=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesTileGridAllStories_LWRAnimations.graphql"),f);var u=d("StoriesConstants").TILE_GRID.ITEMS_PER_ROW;f=m(c("StoriesTileGridSectionHeaderLinkPropsContext"));var v=f.setLinkProps;f=m(c("StoriesTileGridSectionShouldRenderContext"));f=f.setShouldRender;var w=m(c("StoriesTileGridDisplayedSectionsContext"));w=w.setSectionDisplayed;var x=m(c("StoriesActorContext")),y=x.actorID;x=o(function(){var a;a=(p==null?void 0:(a=p.unified_stories_buckets)==null?void 0:a.edges)||[];a=a.map(function(a){return a==null?void 0:a.node})||[];return a.reduce(function(a,b){return b!=null?[].concat(a,[b]):a},[])},[p==null?void 0:(x=p.unified_stories_buckets)==null?void 0:x.edges]);e=(e=x.find(function(a){return!a.is_bucket_seen_by_viewer}))!=null?e:x[0];var z=e==null?void 0:e.id;n(function(){if(z==null)return;v({bucket_id:z,source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,tray_session_id:g,view_single:!1})},[z,g,v]);e=l(function(a){var b;t({id:(b=y)!=null?b:"",isCommentEnabled:d("StoriesGating").isCommentEnabled()},{fetchPolicy:"store-and-network",onComplete:a})},[y,t]);var A=x.length>0;f(A);w(d("StoriesTileGridSectionTypes").ALL_STORIES,A);if(x.length===0)return null;f=k.jsxs("div",{children:[k.jsx(c("CometDivider.react"),{}),k.jsx("div",{className:"x8g2yf8",children:k.jsx(c("TetraTextPairing.react"),{body:h._("u5febu62cdu4f1au663eu793a 24 u5c0fu65f6u3002u65b0u5febu62cdu5c06u4f1au663eu793au5728u8fd9u91ccu3002"),bodyColor:"secondary",headline:h._("u8ba9u773cu775bu653eu677eu4e00u4e0buff0cu7a0du540eu518du6765u770bu770bu5427"),headlineColor:"primary",level:2,textAlign:"center"})})]});return k.jsxs("div",{children:[k.jsx(c("StoriesTileGridBucketsSection.react"),{animations:a,buckets:x,refetch:e,traySessionID:g}),x.length<4&&!q&&!d("StoriesGating").shouldShowSuggestedStories()?f:null,k.jsx(c("StoriesTileGridSectionFooter.react"),{hasNext:q,isLoadingNext:r,onLoadMore:function(){s(u)},showSeeMoreButton:!1})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MNCommerceLogMessageUtils",["cx","fbt","invariant","BanzaiLogger","CurrentUser","Link.react","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommercePromotionBlockDataManager","MNCommercePromotionManageBlockDialogContainer.react","MNCommerceReplyTypes","MNCommerceUnlinkDataManager","MNCommerceUnlinkDialogContainer.react","MercuryIDs","MessengerEnvironment","MessengerState.bs","gkx","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");a=function(){function a(){}var b=a.prototype;b.isCommercePageAdminMessage=function(a){return!!(a&&a.log_message_data&&(a.log_message_data.replyType===c("MNCommerceReplyTypes").COMMERCE_LINK||a.log_message_data.replyType===c("MNCommerceReplyTypes").COMMERCE_UNLINK))};b.getCommercePageManage=function(a,b){var e=this,f=null;if(c("gkx")("678671")){var g=function(){var b=d("MercuryIDs").getUserIDFromParticipantID(a.author);e.openManageMessagesDialog(a,b);c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_opened",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.MANAGE})})};f=this.getManageLink(g,b)}else if(a.log_message_data.replyType===c("MNCommerceReplyTypes").COMMERCE_LINK){g=function(){var b=d("MercuryIDs").getUserIDFromParticipantID(a.author),e=d("MessengerState.bs").getThreadMetaNow(c("CurrentUser").getID(),a.thread_id);e||j(0,3713,a.thread_id);var f=null;e.participants.every(function(b){if(b!==a.author){f=d("MercuryIDs").getUserIDFromParticipantID(b);return!1}return!0});e=function(){d("MNCommerceDialogStateActions").hideDialog(),c("MNCommerceUnlinkDataManager").unlink(b,f)};d("MNCommerceDialogStateActions").showDialog(c("MNCommerceUnlinkDialogContainer.react"),{onTurnOffButtonClick:e});c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_opened",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.UNLINK})})};f=k.jsx(c("Link.react"),{className:(b?"":"_2w2m")+(b?" _1jvn":""),onClick:g,children:i._("u5173u95ed")})}return k.jsxs("span",{children:[a.log_message_body," ",f]})};b.openManageMessagesDialog=function(a,b){a=function(a,b){return c("MNCommercePromotionBlockDataManager").block(a,b)};d("MNCommerceDialogStateActions").showDialog(c("MNCommercePromotionManageBlockDialogContainer.react"),{pageID:b,onConfirmButtonClick:a})};b.getManageLink=function(a,b){return k.jsx(c("Link.react"),{className:(b?"":"_2w2m")+(b?" _1jvn":""),onClick:a,children:i._("u7ba1u7406u6d88u606f")})};b.getThreadResurrectionManage=function(a){var b=this,d=a.other_user_fbid,e=function(){return b.openManageMessagesDialog(a,d)};e=this.getManageLink(e,c("MessengerEnvironment").messengerui);return k.jsxs("span",{children:[a.log_message_body," ",e]})};b.isThreadResurrectionXMAT=function(a){a=(a=a)!=null?(a=a.log_message_data)!=null?a.message_type:a:a;return a==="messenger_thread_resurrection_notice"};return a}();b=new a();g["default"]=b}),98);
-----
MNCommerceUnlinkDialogContainer.react",["BanzaiLogger","MNCommerceDialogStateActions","MNCommerceDialogStateStore","MNCommerceLoggingConstants","MNCommerceUnlinkDialog.react","MNCommerceUnlinkErrorDialog.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
ZenonInitializationProvider.react",["CallerWarningHooks","CometHeroHoldTrigger.react","ErrorMetadata","FBLogger","Recoil","ZenonActorHooks","ZenonAppFeaturesHooks","ZenonAppFeaturesUtils","ZenonCallIDType","ZenonCallsContext","ZenonCallsHooks","ZenonCallsModelTypes","ZenonChatContext","ZenonInitializationContext","ZenonLocalMediaSDK","ZenonLoggingConstants","ZenonLoggingHooks","ZenonMediaActionLogger","ZenonMediaPermissionState","ZenonPeerID","ZenonRequestedMediaType","ZenonSettingsHooks","ZenonThreadType","ZenonThreadTypeSelector","cr:1567219","emptyFunction","err","gkx","isEmpty","isStringNullOrEmpty","promiseDone","qex","react","regeneratorRuntime","useEffectOnce","usePrevious","useZenonDebugValue","useZenonMediaMuteState"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useCallback,j=e.useContext,k=e.useEffect,l=e.useMemo,m=e.useRef,n=e.useState,o="ZenonInitializationProvider";function a(a){var e,f=a.allowAudioFallback,g=a.appMessages,r=a.audioConstraints,ba=a.callID,ca=a.callTrigger,da=a.children,s=a.initializeVideo,t=a.initialSyncStates,ea=a.joiningContext,u=a.mediaStatesOnStart,v=a.muteTracksOnStart,fa=a.parentRequestID,w=a.peerID,x=a.peerIDForJoiningContext,y=a.roomID,z=a.rtcActorID,ga=a.serverInfoData,A=a.usersToRing,B=a.videoConstraints;a=d("ZenonActorHooks").useZenonActor();var C=a[0],ha=(a=f)!=null?a:w!==d("ZenonPeerID").ZenonMWPeerID,D=d("ZenonAppFeaturesHooks").useDataChannelLabels(),ia=d("ZenonAppFeaturesHooks").useMediaAccessTimeout();f=d("ZenonAppFeaturesHooks").useMuteTracksOnStart();var ja=(a=v)!=null?a:f;v=d("ZenonAppFeaturesHooks").useMediaStatesOnStart();f=(a=u)!=null?a:v;u=n("unknown");var E=u[0],F=u[1];a=n({state:c("ZenonMediaPermissionState").Unknown,type:s?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});var G=a[0],H=a[1];v=j(c("ZenonCallsContext"));var I=v.callSDK,J=v.currentClientCallId,K=v.isE2eeMandated,L=v.setCurrentClientCallId,M=v.setE2eeModel;u=n([]);var N=u[0],ka=u[1];a=n(null);var la=a[0],ma=a[1];v=d("ZenonSettingsHooks").useDevices();var O=v.audioInput,P=v.videoInput,Q=d("ZenonLoggingHooks").useErrorLogging();u=d("ZenonLoggingHooks").useTimerLogging("GetUserMediaRequestTimer","CallStart_GetUserMediaRequest");var R=u[0],S=u[1],T=d("ZenonLoggingHooks").useSetCallTrigger();T((a=ca)!=null?a:"");v=d("ZenonLoggingHooks").useTimerLogging("StartCall","CallStart_StartCall");var na=v[0],oa=v[1],pa=d("ZenonLoggingHooks").useSetIsCaller();k(function(){pa(!0)},[pa]);u=d("ZenonLoggingHooks").useTimerLogging("InCallStartFlowTimer","CallStart_InCallStartFlowTimer");var qa=u[0],ra=u[1];a=c("ZenonCallsHooks").useCallState();v=c("ZenonCallsHooks").useCallParticipants();var U=v.find(function(a){return a.id!==C});u=d("CallerWarningHooks").useCallerWarning(U==null?void 0:U.id);v=u[0];var sa=u[1],ta=u[2];u=n(U==null?void 0:U.state);var V=u[0],ua=u[1],va=c("usePrevious")(V);k(function(){var a=U==null?void 0:U.state;a!==V&&ua(a)},[C,U,V]);var wa=c("ZenonCallsHooks").useIsAudioCall();u=f.isConfigPrivacyRequirement;var W=!u;f={isAudioEnabled:(e=f.isAudioEnabledOnStart)!=null?e:W,isVideoEnabled:(e=f.isVideoEnabledOnStart)!=null?e:W};e=u;W=c("useZenonMediaMuteState")(f,e);u=W[0];var xa=u.isAudioEnabled,ya=u.isVideoEnabled;f=c("ZenonCallsHooks").useLocalAudio();e=c("ZenonCallsHooks").useLocalVideo();var X=(W=e==null?void 0:e.enabled)!=null?W:!1,Y=(u=f==null?void 0:f.enabled)!=null?u:!1,za=d("ZenonSettingsHooks").useNoiseSuppressionEnabled(),Z=d("Recoil").useRecoilValue(c("ZenonThreadTypeSelector"));e=j(c("ZenonChatContext"));var Aa=e.setChatWindowVisible;k(function(){if(Z!==c("ZenonThreadType").OneToOne||va==null||!c("qex")._("219"))return;V===d("ZenonCallsModelTypes").ZenonCallParticipantState.Ringing&&va!==d("ZenonCallsModelTypes").ZenonCallParticipantState.Ringing&&sa();(V===d("ZenonCallsModelTypes").ZenonCallParticipantState.Connecting||V===d("ZenonCallsModelTypes").ZenonCallParticipantState.Connected)&&ta()},[sa,V,va,ta,v,Z]);k(function(){qa(),na()},[qa,na]);k(function(){Z!==c("ZenonThreadType").Other&&c("ErrorMetadata").addGlobalMetadata("RT_WEB","TYPE",String(Z))},[Z]);k(function(){var a=null;G.state===c("ZenonMediaPermissionState").Unknown&&(a=window.setTimeout(function(){H(function(a){return a.state===c("ZenonMediaPermissionState").Unknown?{state:c("ZenonMediaPermissionState").Pending,type:a.type}:a})},ia));return function(){return window.clearTimeout(a)}},[ia,G.state]);k(function(){var a=I.addListener("signalingEvent",function(a){a.messageType==="joinReady"?(ma(a.mwRingRequest),F("ready")):a.messageType==="parentWindowConnectionTimeout"?F("timeout"):F("unknown"),oa()});return function(){a.remove()}},[I,oa]);var Ba=m(!1);c("useEffectOnce")(function(){if(Ba.current===!0)return;else Ba.current=!0;I.initSignaling(w,fa,y,ga);if(N.length>0){var a="fetchMedia is run when there are already media tracks stored in local state. This suggests that the effect is run more than once.";Q({checkpoint:"fetchMedia is run more than once",error:c("err")(a),errorDomain:o});c("FBLogger")("rtc_www",o).mustfix(a)}a=function(){var a,e,f,g,h,i,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:a=c("gkx")("4115")?ya&&s:s;e=a?babelHelpers["extends"]({requestVideo:!0},B):{requestVideo:!1};P!=null&&(e.deviceId={ideal:P});ha?(g=d("ZenonLocalMediaSDK").getUserMediaWithFallback,f=o+"_join_getUserMediaWithFallback_error"):(g=d("ZenonLocalMediaSDK").getUserMedia,f=o+"_join_getUserMedia_error");R();k.prev=5;i=babelHelpers["extends"]({},r,{requestAudio:!0});O!=null&&(i.deviceId={ideal:O});k.next=10;return b("regeneratorRuntime").awrap(g(i,e));case 10:j=k.sent;((h=za)!=null?h:!1)&&(j=j.map(function(a){return p(a)}));ja&&(j=q(j,xa,ya),aa(j,xa,ya));ka(j);H({state:c("ZenonMediaPermissionState").Fulfilled,type:s?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});k.next=21;break;case 17:k.prev=17,k.t0=k["catch"](5),H({error:k.t0,state:c("ZenonMediaPermissionState").Rejected,type:s?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio}),Q({checkpoint:f,error:k.t0,errorDomain:o});case 21:k.prev=21;S();return k.finish(21);case 24:case"end":return k.stop()}},null,this,[[5,17,21,24]])};c("promiseDone")(a())});var $=i(function(){I.join({actorID:z,appMessages:g,callTrigger:ca,clientCallID:J,dataChannels:new Set(D),initialSyncStates:t==null?null:new Map(t),isE2eeMandated:K,joiningContext:ea,localMedia:N,mwRingRequest:la,peerID:w,peerIDForJoiningContext:x,roomID:y,serverInfoData:ga,setE2eeModel:M,signalingID:ba!=null?String(ba):null,usersToRing:A.filter(function(a){return C!==a})})},[ba,I,z,g,ca,J,D,t,K,N,la,w,x,y,ga,M,A,C]);k(function(){E==="ready"&&!c("isEmpty")(N)&&(F("joined"),$(),ra())},[ra,$,N,E]);var Ca=i(function(a){var e,f,h,i,j;return b("regeneratorRuntime").async(function(k){while(1)switch(k.prev=k.next){case 0:I.endCall(J,"HangupCall","breaking out to new room");e=babelHelpers["extends"]({},r,{requestAudio:!0});f=babelHelpers["extends"]({requestVideo:!wa},B);c("isStringNullOrEmpty")(O)||(e.deviceId={ideal:O});c("isStringNullOrEmpty")(P)||(f.deviceId={ideal:P});R();k.next=8;return b("regeneratorRuntime").awrap(d("ZenonLocalMediaSDK").getUserMediaWithFallback(e,f));case 8:h=k.sent,h=q(h,Y,X),ka(h),T(d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM),i=String(d("ZenonCallIDType").generateZenonCallID()),L(i),j=String(d("ZenonCallIDType").generateZenonCallID()),I.join({actorID:z,appMessages:g,callTrigger:d("ZenonLoggingConstants").ZenonCallTrigger.BREAKOUT_ROOM,clientCallID:i,dataChannels:new Set(D),isE2eeMandated:K,localMedia:h,mwRingRequest:null,offer:null,peerID:w,roomID:a,setE2eeModel:M,signalingID:j,usersToRing:A.filter(function(a){return C!==a})}),S();case 17:case"end":return k.stop()}},null,this)},[C,g,r,O,I,J,D,wa,K,Y,X,R,S,w,z,T,L,M,A,B,P]),Da=i(function(a){var e=a.initializeVideo,f=a.isAutoRejoin,h=a.rejoinPeerID;a=function(){var a,i,j,k,l,m,n;return b("regeneratorRuntime").async(function(p){while(1)switch(p.prev=p.next){case 0:H({state:c("ZenonMediaPermissionState").Unknown,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});a=babelHelpers["extends"]({},r,{requestAudio:!0});i=babelHelpers["extends"]({requestVideo:e},B);c("isStringNullOrEmpty")(O)||(a.deviceId={ideal:O});c("isStringNullOrEmpty")(P)||(i.deviceId={ideal:P});R();p.prev=6;p.next=9;return b("regeneratorRuntime").awrap(d("ZenonLocalMediaSDK").getUserMediaWithFallback(a,i));case 9:j=p.sent;j=q(j,Y,X);ka(j);H({state:c("ZenonMediaPermissionState").Fulfilled,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});k=f===!0?d("ZenonLoggingConstants").ZenonCallTrigger.AUTO_REJOIN:d("ZenonLoggingConstants").ZenonCallTrigger.REDIAL_BUTTON;T(k);l=String(d("ZenonCallIDType").generateZenonCallID());L(l);m=String(d("ZenonCallIDType").generateZenonCallID());n=h!=null?[h]:A.filter(function(a){return C!==a});I.join({appMessages:g,callTrigger:k,clientCallID:l,dataChannels:new Set(D),initialSyncStates:t==null?null:new Map(t),isE2eeMandated:K,localMedia:j,mwRingRequest:null,offer:null,peerID:w,peerIDForJoiningContext:x,roomID:y,setE2eeModel:M,signalingID:m,usersToRing:n});Aa(!1);p.next=27;break;case 23:p.prev=23,p.t0=p["catch"](6),Q({checkpoint:o+"_rejoin_getUserMediaWithFallback_error",error:p.t0,errorDomain:o}),H({error:p.t0,state:c("ZenonMediaPermissionState").Rejected,type:e?c("ZenonRequestedMediaType").Audiovideo:c("ZenonRequestedMediaType").Audio});case 27:p.prev=27;S();return p.finish(27);case 30:case"end":return p.stop()}},null,this,[[6,23,27,30]])};return a()},[C,g,r,O,I,D,t,K,Y,X,Q,R,S,w,x,y,T,Aa,L,M,A,B,P]),Ea=m(c("emptyFunction"));Ea.current=function(){Q({checkpoint:"Stopping all local media as the app has crashed",error:c("err")("AppCrashedError"),errorDomain:o}),N.forEach(function(a){a.webrtcTrack.stop()})};k(function(){return function(){Ea.current()}},[]);W=l(function(){return{joinCall:$,rejoinCall:Da,signalingStatus:E,swapCall:Ca,userMediaRequestStatus:G}},[E,$,G,Da,Ca]);c("useZenonDebugValue")(o,W);k(function(){b("cr:1567219")&&b("cr:1567219").init()},[]);return h.jsxs(c("ZenonInitializationContext").Provider,{value:W,children:[h.jsx(c("CometHeroHoldTrigger.react"),{description:"getUserMedia",hold:G.state===c("ZenonMediaPermissionState").Unknown||G.state===c("ZenonMediaPermissionState").Pending}),h.jsx(c("CometHeroHoldTrigger.react"),{description:"ConnectingCall",hold:a===d("ZenonCallsModelTypes").ZenonCallState.Connecting}),da]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){return a.contentType==="audio"?a.set("flags",{wasmNoiseSuppression:!0}):a}function q(a,b,c){return a.map(function(a){if(a.contentType==="audio"&&!b)return r(a);return a.contentType==="video"&&!c?r(a):a})}function r(a){a.contentType==="video"&&d("ZenonAppFeaturesUtils").shouldStopVideoWhenMute()&&a.webrtcTrack.stop();a.webrtcTrack.enabled=!1;return a.set("enabled",!1)}function aa(a,b,d){var e="[A/V mute state] Flags state: audio enabled: "+b.toString()+" video enabled: "+d.toString()+" - Tracks state: ";a.forEach(function(a){e=""+e+a.contentType+" enabled: "+a.enabled.toString()+" "});c("ZenonMediaActionLogger").logEvent({checkpoint:e})}g["default"]=a}),98);
-----
ZenonLoggingConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum")({ADMIN_MESSAGE:"admin_message",AUTO_REJOIN:"auto_rejoin",BREAKOUT_ROOM:"breakout_room",CHAT_TAB_ICON:"chat_tab_icon",CHAT_TAB_ICON_TOUR:"chat_tab_icon_tour",CHAT_TAB_VOICE_ICON:"chat_tab_voice_icon",MULTIWAY_ADMIN_MESSAGE_JOIN_AUDIO_CALL_BUTTON:"multiway_admin_message_join_audio_call_button",MULTIWAY_ADMIN_MESSAGE_JOIN_VIDEO_CALL_BUTTON:"multiway_admin_message_join_video_call_button",MULTIWAY_ADMIN_MESSAGE_START_AUDIO_CALL_BUTTON:"multiway_admin_message_start_audio_call_button",MULTIWAY_ADMIN_MESSAGE_START_VIDEO_CALL_BUTTON:"multiway_admin_message_start_video_call_button",MULTIWAY_CHAT_TAB_SHEET_JOIN_CALL_BUTTON:"multiway_chat_tab_sheet_join_call_button",MULTIWAY_POPUP_START_CALL_BUTTON:"multiway_popup_start_call_button",MULTIWAY_THREAD_HEADER_AUDIO_BUTTON:"multiway_thread_header_audio_button",MULTIWAY_THREAD_HEADER_JOIN_AUDIO_CALL_AUDIO_BUTTON:"multiway_thread_header_join_audio_call_audio_button",MULTIWAY_THREAD_HEADER_JOIN_AUDIO_CALL_VIDEO_BUTTON:"multiway_thread_header_join_audio_call_video_button",MULTIWAY_THREAD_HEADER_JOIN_VIDEO_CALL_AUDIO_BUTTON:"multiway_thread_header_join_video_call_audio_button",MULTIWAY_THREAD_HEADER_JOIN_VIDEO_CALL_VIDEO_BUTTON:"multiway_thread_header_join_video_call_video_button",MULTIWAY_THREAD_HEADER_VIDEO_BUTTON:"multiway_thread_header_video_button",MULTIWAY_THREAD_LIST_JOIN_CALL_BUTTON:"multiway_thread_list_join_call_button",POPUP_CALL_START_BUTTON:"popup_start_call_button",REDIAL_BUTTON:"redial_button",RESET_CALL:"install_screen_sharing_ext_dialog",RETURN_CALL:"return_call",SKYPE_DEPRECATION_DIALOG:"skype_deprecation_dialog",TEAMWORK_USER_AUDIO_CALL_ITEM:"teamwork_user_audio_call_item",TEAMWORK_USER_VIDEO_CALL_ITEM:"teamwork_user_video_call_item",TIMELINE_PROFILE:"timeline_profile",UNKNOWN:"unknown",VC_PRECALL_SETUP:"vc_precall_setup",WEB_MESSENGER:"web_messenger",WORKPLACE_GROUP_CALL:"workplace_group_call",WORKPLACE_P2P_CALL:"workplace_p2p_call"});c=b("$InternalEnum")({BATTERY_START:"battery_start",BATTERY_END:"battery_end",CALL_TYPE:"call_type",CONNECTION_EFFECTIVE_TYPE:"conn_effective_type",CPU_CORES:"cpu_cores",DEVICE_INFO:"device_info",DEVICE_MEMORY:"device_memory",DEVICE_PIXEL_RATIO:"device_pixel_ratio",INITIATED_BY_PAGE_ID:"initiated_by_page_id",INITIATED_BY_APP_ID:"initiated_by_app_id",PEER_IS_MOBILE:"peer_is_mobile",RATING_SHOWN:"rating_shown",RATING:"rating5",EFFECT_COUNT:"rtc_effect_count",EFFECT_TOTAL_DURATION:"rtc_effect_total_duration",VIDEO_DURATION_WITH_FILTER:"rtc_video_duration_with_filter_enabled",SCREEN_DURATION:"screen_duration",SURVEY_CHOICE:"survey_choice",SURVEY_DETAILS:"survey_details",SURVEY_SHOWN:"survey_shown",MEDIA_INPUTS:"media_inputs",VIDEO_CAPABILITIES:"video_capabilities",CB_ACTIVE:"cb_active",YEAR_CLASS:"year_class",DESKTOP_DEVICE_CLASS:"desktop_device_class",IS_BACKGROUNDED:"is_backgrounded",APPLICATION_STATE:"application_state",MAX_CONCURRENT_CONNECTED_PARTICIPANTS:"max_concurrent_connected_participants"});f.ZenonCallTrigger=a;f.ZenonLoggingKey=c}),66);
-----
StoriesTileGridBucketsSection.react",["CometAppNavigationConstants","CometGlobalPanelLayoutContext","CometRelay","QuickPerformanceLogger","StoriesConstants","StoriesEnums","StoriesLoggingConstants","StoriesTileGridBucketsSection_LWRAnimations.graphql","StoriesTileGridBucketsSection_buckets.graphql","StoriesTileGridMuteFetchKeyContext","StoriesTrayTile.react","StoriesTrayTilePlaceholder.react","StoriesTrayTileSelf.react","qpl","react","useCometWindowSize","usePrevious","useStoriesBucketsIndexer","useStoriesIsUploading"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useState,o=e.useTransition,p=916,q=360,r=32,s=888,t=540;function a(a){var e=a.animations,f=a.buckets,g=a.refetch,u=a.storiesTrayType,v=u===void 0?"TOP_OF_FEED_TRAY":u,w=a.traySessionID;a=(u=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesTileGridBucketsSection_buckets.graphql"),f))!=null?u:[];var x=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTileGridBucketsSection_LWRAnimations.graphql"),e);f=l(c("CometGlobalPanelLayoutContext"));u=o();var y=u[0],z=u[1];e=n(!1);var A=e[0],B=e[1],C=k(function(){!A&&!y&&(B(!0),z(function(){g(function(){B(!1)})}))},[y,A,g,z]),D=c("useStoriesIsUploading")(C);m(function(){c("QuickPerformanceLogger").markerEnd(c("qpl")._(13238392,"5360"),2)},[]);var E="xxm9e6e x1iyjqo2 x2lah0s x1yztbdb x1emribx x1i64zmx";u=l(c("StoriesTileGridMuteFetchKeyContext"));e=u.muteFetchKey;u=c("usePrevious")(e);var F=e!==u;m(function(){F&&C()},[F,C]);var G=(e=c("useStoriesBucketsIndexer")(a))!=null?e:[];u=a.filter(function(a,b){return a!=null&&((a=G[b])==null?void 0:a.shouldShow)===!0&&((a=G[b])==null?void 0:a.isEmpty)===!1});var H=G.filter(function(a){return(a==null?void 0:a.shouldShow)===!0&&(a==null?void 0:a.isEmpty)===!1});e=u.map(function(a,b){var e=j.createRef(),f=H[b];f=f==null?void 0:f.type;if(f===d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OWNED_SELF){f=D||A||y;return j.jsx("div",{className:E,ref:e,children:j.jsx(c("StoriesTrayTileSelf.react"),{bucketCount:d("StoriesConstants").NAV_PANE_TOTAL_COUNT,bucketNode:a,index:b,isUploading:f,source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,traySessionID:w},a.id)},a.id)}else return j.jsx("div",{className:E,ref:e,children:j.jsx(c("StoriesTrayTile.react"),{animations:x,bucketCount:d("StoriesConstants").NAV_PANE_TOTAL_COUNT,bucketNode:a,hasReactionIcon:!0,index:b,source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,storiesTrayType:v,traySessionID:w})},a.id)});a=c("useCometWindowSize")();u=a.innerWidth>p;u=u?q:0;a=a.innerWidth-u-r-(f?d("CometAppNavigationConstants").GLOBAL_PANEL_WIDTH:0);u=Math.min(Math.max(a,t),s);f=n(u/d("StoriesConstants").TILE_GRID.ITEMS_PER_ROW);a=f[0];f[1];f=Math.floor(u/a);while(e.length
StoriesTileGridSuggestedStories.react",["fbt","CometDivider.react","CometRelay","StoriesActorContext","StoriesConstants","StoriesGating","StoriesLoggingConstants","StoriesTileGridBucketsSection.react","StoriesTileGridDisplayedSectionsContext","StoriesTileGridSectionFooter.react","StoriesTileGridSectionHeaderLinkPropsContext","StoriesTileGridSectionShouldRenderContext","StoriesTileGridSectionTypes","StoriesTileGridSuggestedStories_LWRAnimations.graphql","StoriesTileGridSuggestedStories_user.graphql","TetraTextPairing.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useEffect;function a(a){var e=a.animations,f=a.traySessionID;a=a.user;a=d("CometRelay").usePaginationFragment(i!==void 0?i:i=b("StoriesTileGridSuggestedStories_user.graphql"),a);var g=a.data,o=a.hasNext,p=a.isLoadingNext,q=a.loadNext,r=a.refetch;a=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesTileGridSuggestedStories_LWRAnimations.graphql"),e);var s=d("StoriesConstants").TILE_GRID.ITEMS_PER_ROW;e=m(c("StoriesTileGridSectionHeaderLinkPropsContext"));var t=e.setLinkProps;e=m(c("StoriesTileGridSectionShouldRenderContext"));e=e.setShouldRender;var u=m(c("StoriesTileGridDisplayedSectionsContext"));u=u.setSectionDisplayed;var v=m(c("StoriesActorContext")),w=v.actorID;g=(g==null?void 0:(v=g.suggested_stories_buckets)==null?void 0:v.edges)||[];v=g.map(function(a){return a==null?void 0:a.node})||[];v=v.reduce(function(a,b){return b!=null?[].concat(a,[b]):a},[]);g=(g=v.find(function(a){return!a.is_bucket_seen_by_viewer}))!=null?g:v[0];var x=g==null?void 0:g.id;n(function(){if(x==null)return;t({bucket_id:x,source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,tray_session_id:f,view_single:!1})},[x,f,t]);g=l(function(a){var b;r({id:(b=w)!=null?b:"",isCommentEnabled:d("StoriesGating").isCommentEnabled()},{fetchPolicy:"store-and-network",onComplete:a})},[w,r]);var y=v.length>0;e(y);u(d("StoriesTileGridSectionTypes").SUGGESTED_STORIES,y);if(v.length===0)return null;e=k.jsxs("div",{children:[k.jsx(c("CometDivider.react"),{}),k.jsx("div",{className:"x8g2yf8",children:k.jsx(c("TetraTextPairing.react"),{body:h._("u5febu62cdu4f1au663eu793a 24 u5c0fu65f6u3002u65b0u5febu62cdu5c06u4f1au663eu793au5728u8fd9u91ccu3002"),bodyColor:"secondary",headline:h._("u8ba9u773cu775bu653eu677eu4e00u4e0buff0cu7a0du540eu518du6765u770bu770bu5427"),headlineColor:"primary",level:2,textAlign:"center"})})]});return k.jsxs("div",{children:[k.jsx(c("StoriesTileGridBucketsSection.react"),{animations:a,buckets:v,refetch:g,storiesTrayType:"SUGGESTED_STORIES",traySessionID:f}),v.length<4&&!o?e:null,k.jsx(c("StoriesTileGridSectionFooter.react"),{hasNext:o,isLoadingNext:p,onLoadMore:function(){q(s)},showSeeMoreButton:!1})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTrayTile.react",["fbt","CometImage.react","CometRelay","GraphQLGender","StoriesEnums","StoriesGating","StoriesLoggingConstants","StoriesTrayTileAvatar.react","StoriesTrayTileView.react","StoriesTrayTile_LWRAnimations.graphql","StoriesTrayTile_bucket.graphql","StoriesTrayUtils","react","useStoriesTrayProfileImpressionLogging","useStoriesTrayTilePressable"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("StoriesGating").isCommentEnabled();function a(a){var e,f,g,m,n,o=a.animations,p=a.bucketCount,q=a.bucketLength,r=a.bucketNode,s=a.gender;s=s===void 0?"UNKNOWN":s;var t=a.hasSelfBucket,u=a.isOnBizKit;u=u===void 0?!1:u;var v=a.traySessionID,w=a.source;w=w===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.UNKNOWN:w;var x=a.storiesTrayType;x=x===void 0?"TOP_OF_FEED_TRAY":x;var y=a.index,z=a.trayBucketIDs,A=a.hasReactionIcon;A=A===void 0?!1:A;var B=a.onPressIn;a=babelHelpers.objectWithoutPropertiesLoose(a,["animations","bucketCount","bucketLength","bucketNode","gender","hasSelfBucket","isOnBizKit","traySessionID","source","storiesTrayType","index","trayBucketIDs","hasReactionIcon","onPressIn"]);r=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTrayTile_bucket.graphql"),r);var C=r==null?void 0:r.id;y=c("useStoriesTrayProfileImpressionLogging")(r,w,v,y);var D=c("useStoriesTrayTilePressable")(r==null?void 0:r.first_story_to_show,w),E=D.onPress,F=D.onPressIn;D=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesTrayTile_LWRAnimations.graphql"),o);if(r==null||C==null)return null;o=r.story_bucket_owner;var G=r.first_story_to_show,H=r.thumbnail_story_to_show,I=r.ranking_tracking_string;e=(e=r.should_show_close_friend_badge)!=null?e:!1;var J=H==null?void 0:H.story_card_info;f=(f=G==null?void 0:(f=G.story_card_info)==null?void 0:f.can_viewer_reply)!=null?f:!1;g=(J==null?void 0:(g=J.story_thumbnail)==null?void 0:g.uri)||(o==null?void 0:(g=o.coverImage)==null?void 0:g.uri);J=J==null?void 0:(J=J.background_color_info)==null?void 0:(J=J.color_info)==null?void 0:J[0];J=J==null?void 0:J.dominant_color;m=o==null?void 0:(m=o.profile_picture)==null?void 0:m.uri;var K=(o==null?void 0:o.name)||h._("u5febu62cdu53d1u5e03u8005"),L=r.is_bucket_seen_by_viewer===!1;n=(n=r==null?void 0:r.is_bucket_live)!=null?n:!1;o=(o=o==null?void 0:o.availability)!=null?o:null;o=o==="ACTIVE";m=m!=null?k.jsx(c("CometImage.react"),{alt:K,height:40,src:m,width:40}):k.jsx("div",{className:"x1vqgdyp x100vrsf"});n=k.jsx(c("StoriesTrayTileAvatar.react"),{hasNew:L,isLiveStreaming:n,isOnline:o,isOpaqueBackground:!1,shouldShowCloseFriendsBadge:e,children:m});o=u?null:d("StoriesTrayUtils").getBucketURL(C,G==null?void 0:G.id,p,w);e=new(c("GraphQLGender"))(s).toIntlVariationsEnum();m=h._({"*":"{Story owner"s name (possesive)}u7684u5febu62cd"},[h._name("Story owner"s name (possesive)",K,e)]);u=J!=null&&J!==""?"#"+J:null;J=H==null?void 0:(C=H.attachments)==null?void 0:(p=C.find(function(a){return((a=a.media)==null?void 0:a.cix_screen)!=null}))==null?void 0:(s=p.media)==null?void 0:(e=s.cix_screen)==null?void 0:e.view_model;return k.jsx("div",{ref:y,children:k.jsx(c("StoriesTrayTileView.react"),babelHelpers["extends"]({animations:D,avatar:n,backgroundColor:u,bucket:l?r:null,bucketUrl:o,canViewerReply:f,coverImage:g,hasNew:L,hasReactionIcon:A,label:m,onPress:E,onPressIn:function(a){F&&F(a),B&&B()},passthroughProps:{bucketLength:q,bucketType:d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OTHER,hasSelfBucket:t,source:w,storiesTrayType:x,trackingString:I,trayBucketIDs:z,traySessionID:v},storyId:G==null?void 0:G.id},a,{text:K,warningScreenNode:J}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTrayTileSelf.react",["fbt","CometImage.react","CometRelay","StoriesEnums","StoriesGating","StoriesLoggingConstants","StoriesTrayTileAvatar.react","StoriesTrayTileSelf_bucket.graphql","StoriesTrayTileView.react","StoriesTrayUtils","cr:3213","react","requireDeferred","useOnBeforeUnload","useStoriesTrayProfileImpressionLogging","useStoriesTrayTilePressable"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useState,m=c("requireDeferred")("ODS").__setRef("StoriesTrayTileSelf.react"),n=d("StoriesGating").isCommentEnabled();function a(a){var e,f,g,o,p=a.bucketCount,q=a.bucketNode,r=a.bucketLength,s=a.hasSelfBucket,t=a.isInterATS;t=t===void 0?!1:t;var u=a.traySessionID,v=a.source;v=v===void 0?c("StoriesLoggingConstants").ACTION_SOURCE.TRAY:v;var w=a.index,x=a.isUploading,y=a.optimisticStoryURI,z=a.onPressIn;a=babelHelpers.objectWithoutPropertiesLoose(a,["bucketCount","bucketNode","bucketLength","hasSelfBucket","isInterATS","traySessionID","source","index","isUploading","optimisticStoryURI","onPressIn"]);q=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesTrayTileSelf_bucket.graphql"),q);var A=q==null?void 0:q.id;w=c("useStoriesTrayProfileImpressionLogging")(q,v,u,w);var B=l(y),C=B[0];B=B[1];var D=c("useStoriesTrayTilePressable")(q==null?void 0:q.first_story_to_show,v),E=D.onPress,F=D.onPressIn,G=k(function(){m.onReady(function(a){a.bumpEntityKey(4329,"fb_stories_web","stories_tray.self_story_tile",1)})},[]);c("useOnBeforeUnload")(function(a){if(x===!0&&a==null)return{warnMessage:h._("u5febu62cdu6b63u5728u4e0au4f20uff0cu79bbu5f00u8fd9u4e2au9875u9762u5c06u4f1au53d6u6d88u4e0au4f20")}});if(q==null||A==null)return null;D=q.story_bucket_owner;e=(e=q.should_show_close_friend_badge)!=null?e:!1;var H=q.first_story_to_show,I=q.thumbnail_story_to_show,J=q.ranking_tracking_string;f=(I==null?void 0:(f=I.story_card_info)==null?void 0:(f=f.story_thumbnail)==null?void 0:f.uri)||(D==null?void 0:(f=D.coverImage)==null?void 0:f.uri);var K=q.is_bucket_seen_by_viewer===!1;g=(g=q==null?void 0:q.is_bucket_live)!=null?g:!1;f={coverImage:f,hasNew:K};o=(I==null?void 0:(o=I.story_card_info)==null?void 0:o.story_thumbnail)!=null;var L=h._("u4f60u7684u5febu62cd"),M=h._("u67e5u770bu4f60u7684u5febu62cd");A=d("StoriesTrayUtils").getBucketURL(A,H==null?void 0:H.id,p,v);p=D==null?void 0:(H=D.profile_picture)==null?void 0:H.uri;H=(D==null?void 0:D.name)||h._("u5febu62cdu53d1u5e03u8005");D=b("cr:3213")!=null?j.jsx(b("cr:3213"),{}):p!=null?j.jsx(c("CometImage.react"),{alt:H,height:40,src:p,width:40}):j.jsx("div",{className:"x1vqgdyp x100vrsf"});p=I==null?void 0:(H=I.attachments)==null?void 0:(p=H.find(function(a){return((a=a.media)==null?void 0:a.cix_screen)!=null}))==null?void 0:(I=p.media)==null?void 0:(H=I.cix_screen)==null?void 0:H.view_model;I=j.jsx(c("StoriesTrayTileAvatar.react"),{hasNew:K,isInterATS:t,isLiveStreaming:g,isOpaqueBackground:!1,isUploading:x,shouldShowCloseFriendsBadge:e,children:D});if(x===!0&&d("StoriesGating").shouldEnableOptimisticImprovements()){y!=null&&(C===null||C!==y)&&B(y);H={coverImage:C};return j.jsx("div",{"data-testid":void 0,ref:w,children:j.jsx(c("StoriesTrayTileView.react"),babelHelpers["extends"]({avatar:I,avatarInteractable:t,bucket:n?q:null,bucketUrl:A,isUploading:x,label:M,onPress:E,onPressIn:function(a){F&&F(a),z&&z(),G()},passthroughProps:{source:v,trackingString:J,traySessionID:u},text:L,warningScreenNode:p},H,a))})}else if(o)return j.jsx("div",{"data-testid":void 0,ref:w,children:j.jsx(c("StoriesTrayTileView.react"),babelHelpers["extends"]({avatar:I,avatarInteractable:t,bucket:n?q:null,bucketUrl:A,isUploading:x,label:M,onPressIn:function(a){F&&F(a),z&&z(),G()},passthroughProps:{bucketLength:r,bucketType:d("StoriesEnums").STORIES_BUCKETS_INDEXER_TYPES.OWNED_SELF,hasSelfBucket:s,source:v,trackingString:J,traySessionID:u},text:L,warningScreenNode:p},f,a))});else if(x===!0)return j.jsx("div",{ref:w,children:j.jsx(c("StoriesTrayTileView.react"),{avatar:I,avatarInteractable:t,bucket:n?q:null,isUploading:!0,label:M,text:L,warningScreenNode:p})});else return null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesTrayTilePressable",["CometRelay","QPLUserFlow","StoriesLoggingConstants","qpl","useStoriesTrayTilePrefetchImageURI","useStoriesTrayTilePressable_story.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e){e===void 0&&(e=c("StoriesLoggingConstants").ACTION_SOURCE.TRAY);a=d("CometRelay").useFragment(h!==void 0?h:h=b("useStoriesTrayTilePressable_story.graphql"),a);var f=c("useStoriesTrayTilePrefetchImageURI")(a),g=e===c("StoriesLoggingConstants").ACTION_SOURCE.TRAY?c("qpl")._(13249850,"5510"):c("qpl")._(13239835,"17340");return{onPress:function(){c("QPLUserFlow").start(g)},onPressIn:function(a){f&&f()}}}g["default"]=a}),98);
-----
StoriesTileGridSection.react",["CometPlaceholder.react","CometUnitHeader.react","Locale","StoriesLoggingConstants","StoriesTileGridPlaceholderRow.react","StoriesTileGridSectionHeaderLinkPropsContext","StoriesTileGridSectionShouldRenderContext","XCometStoriesControllerRouteBuilder","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useMemo,j=b.useState;function a(a){var b=a.actionName,e=a.children,f=a.description,g=a.rowSize;g=g===void 0?5:g;var k=a.storiesTrayType;k=k===void 0?"TOP_OF_FEED_TRAY":k;var l=a.shouldScaleTileGridItemSize;l=l===void 0?!0:l;a=a.title;var m=j({}),n=m[0],o=m[1];m=j(!0);var p=m[0],q=m[1];m=i(function(){return{setShouldRender:q}},[q]);var r=i(function(){return{linkProps:n,setLinkProps:o}},[n,o]);if(!p)return null;p=d("Locale").isRTL();l="xiqxr00 x1n2onr6 xtzzx4i"+((!l&&g===5?" x1oilu2z":""+(!l&&g===4?" xrlsmeg":" xus36rj"+(p?"":""+(p?"":""))))+(p?" xitnhlw":""+(p?"":" xuuh30")));p=h.jsxs("div",{className:l,children:[a!=null?h.jsx("div",{className:"xp7jhwk x1l90r2v",children:h.jsx(c("CometUnitHeader.react"),{headline:a,level:3})}):null,h.jsx(c("StoriesTileGridPlaceholderRow.react"),{rowSize:g})]});g={entryPoint:"stories_home_tray_header",source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME,storiesTrayType:k};return h.jsx(c("StoriesTileGridSectionHeaderLinkPropsContext").Provider,{value:r,children:h.jsx(c("StoriesTileGridSectionShouldRenderContext").Provider,{value:m,children:h.jsx(c("CometPlaceholder.react"),{fallback:p,children:h.jsxs("div",{className:l,children:[a!=null?h.jsx("div",{className:"xp7jhwk x1l90r2v",children:h.jsx(c("CometUnitHeader.react"),{action:b,actionLinkProps:{passthroughProps:g,url:c("XCometStoriesControllerRouteBuilder").buildURL(n)},body:f,headline:a,level:3})}):null,e]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesTileGridSectionHeaderLinkPropsContext",["StoriesLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";a=d("react");b={linkProps:{source:c("StoriesLoggingConstants").ACTION_SOURCE.STORIES_HOME},setLinkProps:function(){}};e=a.createContext(b);g["default"]=e}),98);
-----
StoriesArchiveCometFixedListRoot.react",["CometErrorBoundary.react","CometPlaceholder.react","StoriesCometPlaceholder.react","StoriesLoggingConstants","StoriesRootError.react","deferredLoadComponent","react","requireDeferredForDisplay","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState,j=c("deferredLoadComponent")(c("requireDeferredForDisplay")("StoriesArchiveCometFixedList.react").__setRef("StoriesArchiveCometFixedListRoot.react"));function a(a){var b=a.props;a=a.queries;var d=i(function(){return c("uuid")()});d=d[0];return h.jsx("div",{className:"x1ey2m1c xds687c x10l6tqk x17qophe x13vifvy",children:h.jsx(c("CometPlaceholder.react"),{fallback:h.jsx(c("StoriesCometPlaceholder.react"),{leftRail:!1}),children:h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return h.jsx(c("StoriesRootError.react"),{error:a})},children:h.jsx(j,{initialCardID:b.routeProps.initialCardID,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,queryReference:a.storiesArchiveContentPaneRootReference,traySessionID:null,viewerSessionID:d})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsPreviewV4MiniPreview.react",["cx","ix","AMAdPreviewFinishAugLEvent","AMAdPreviewStartAugLEvent","AdsAPIAdgroupRecordUtils","AdsAdPreviewAugmentedLogger","AdsAdPreviewClientSideUtils","AdsAdPreviewLoggingUtils","AdsAdgroupMiniPreviewClientSideContainer.react","AdsAdgroupPreviewSwitchToFormatDataAction","AdsAdgroupPreviewsLoggingConstants","AdsInteractions","AdsPerfInteractionsController","AdsPerfInteractionsTestUtils","AdsPreviewV4MiniPreviewRealPreviewContainer.react","AdsPreviewV4PreviewMetadataUtils","AdsSbsEntryPointContext","AdsShimmer.react","FlexLayout.react","GeoTooltip.react","Image.react","InteractionAreas","ShimButton.react","adsMemoizeAdgroupRecordCreation","adsPreviewGetPositionFromFormat","areEqual","gkx","qpl","react","useBoolean","uuid"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");b=d("react");var k=b.useCallback,l=b.useContext,m=b.useEffect,n=b.useMemo,o=b.useRef,p=b.useState;c("InteractionAreas").addArea("_82lg","ads_mini_preview","ads_mini_previews");var q="AdsPreviewV4MiniPreviews";function a(a){var b=Boolean(a.previewSpec&&a.shouldUseClientSide&&d("AdsAdPreviewClientSideUtils").isClientSideMiniPreviewSupported(a.preview.apiFormat,a.previewSpec.adgroupSpec)),e=p(!1),f=e[0],g=e[1],h=a.onFinishLoading;e=k(function(){h&&h(),g(!0)},[h]);var i=c("useBoolean")(!1),n=i.value,q=i.setTrue;i=i.setFalse;var t=o(0),u=o(null),v=a.hasError===!0||!b&&n,w=a.adgroupSpec,x=s(w,a.preview.apiFormat),y=Date.now();m(function(){if(d("AdsAdPreviewLoggingUtils").shouldLogViaSampling()&&b&&!c("areEqual")(w,u.current)){c("AdsAdPreviewAugmentedLogger").init();var a=c("uuid")(),e=Date.now(),f=c("AdsAdPreviewAugmentedLogger").logSessionEvent(c("AMAdPreviewStartAugLEvent").create("preview_start",babelHelpers["extends"]({},x,{is_first_render:!1,feature_type:"ad_preview",uuid:a,sync_timestamp:y,async_timestamp:e})));c("AdsAdPreviewAugmentedLogger").logSessionEndedEvent(c("AMAdPreviewFinishAugLEvent").create("preview_finish",babelHelpers["extends"]({},x,{successfully_rendered:!0,feature_type:"ad_preview",www_request_id:null,uuid:a,sync_timestamp:y,async_timestamp:e})),f);t.current++;u.current=w}},[w,x,b]);n=l(c("AdsSbsEntryPointContext"));var z=n.entryPoint;n=k(function(){c("AdsInteractions").singleFrameInteraction("sbs_mini_preview_click");var b=a.previewSpec,e=b!=null?b.previewPlugins.keySeq().findIndex(function(b){return b===a.preview.apiFormat}):null;c("AdsAdgroupPreviewSwitchToFormatDataAction").dispatch({data:{adgroupID:a.adgroupSpec.id,adgroupIndex:b?b.adgroupIndex:0,format:a.preview.apiFormat,formatIndex:(b=e)!=null?b:0,hasError:v,loggingSource:c("AdsAdgroupPreviewsLoggingConstants").MINI_PREVIEW,shouldLog:!0,entryPoint:z}},{line:"193",module:"AdsPreviewV4MiniPreview.react.js"});if(c("gkx")("1915762")){d("AdsPerfInteractionsTestUtils").logClickHandlerCPUTime(c("qpl")._(435698646,"7066"));e=c("AdsPerfInteractionsController").getActiveInteraction("am_editor");e!=null&&(d("AdsPerfInteractionsTestUtils").logVisualChange(c("qpl")._(435685229,"3261"),e),d("AdsPerfInteractionsTestUtils").logComponentsRenderNumber(c("qpl")._(435692102,"5275"),e))}},[a.previewSpec,a.adgroupSpec.id,a.preview.apiFormat,v]);f=!v&&!f;var A=o(null);m(function(){A.current&&a.isCurrentPreview&&A.current.scrollIntoView({block:"nearest",behavior:"smooth"})},[a.isCurrentPreview]);q=j.jsx(c("AdsPreviewV4MiniPreviewRealPreviewContainer.react"),{accountID:a.accountID,adgroupSpec:a.adgroupSpec,adgroupSpecPathPlugin:a.adgroupSpecPathPlugin,hasError:v,objective:a.objective,preview:a.preview,onError:q,onErrorCleared:i,onFinishedLoading:e});return j.jsxs(j.Fragment,{children:[j.jsx("div",{ref:A,children:j.jsx(c("ShimButton.react"),{"aria-label":a.placementName,onClick:n,children:j.jsxs("div",{className:"_82lg"+(a.isCurrentPreview?" _82lh":""),"data-testid":void 0,children:[f&&j.jsx(c("AdsShimmer.react"),{isLoading:!0,children:j.jsx(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:"_82li",direction:"vertical",justify:"center"})}),j.jsxs(c("FlexLayout.react"),{align:"center",className_DO_NOT_USE:"_82li"+(f?" _1oi3":""),direction:"vertical",justify:"center",children:[v?j.jsx(r,{apiFormat:a.preview.apiFormat,isPreviewClientSide:b}):null,b?j.jsx("div",{children:j.jsx(c("AdsAdgroupMiniPreviewClientSideContainer.react"),{fallback:q,format:a.preview.apiFormat,onFinishedLoading:e})}):q]})]})})}),j.jsx(c("GeoTooltip.react"),{content:a.placementName,triggerRef:A})]})}a.displayName=a.name+" [from "+f.id+"]";function r(a){var b=a.isPreviewClientSide,e=a.apiFormat;a=n(function(){var a;if(b)return null;a=(a=c("adsPreviewGetPositionFromFormat")(e))==null?void 0:a.platform;return a?d("AdsPreviewV4PreviewMetadataUtils").getPlatformIconByPlatformKey(a):null},[e,b]);return j.jsxs("div",{className:"_8glg",children:[a!=null?j.jsx(c("Image.react"),{src:a}):null,j.jsx(c("FlexLayout.react"),{align:"center",className:"_a1jl _3-8h",justify:"center",children:j.jsx(c("Image.react"),{src:i("1208629")})})]})}r.displayName=r.name+" [from "+f.id+"]";function s(a,b){return n(function(){var e=c("adsMemoizeAdgroupRecordCreation")(a);return{api_format:b,adgroup_id:d("AdsAPIAdgroupRecordUtils").getID(e),media_format:d("AdsAPIAdgroupRecordUtils").getSingleMediaType(e),preview_parent:q,preview_type:"client"}},[a,b])}g["default"]=a}),98);
-----
LWICometCTAWhatsappBizUpsellAdResultNotice.react",["fbt","AdproObjectiveType","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometCard.react","CometImage.react","CometRow.react","CometRowItem.react","JSResourceForInteraction","LWICometLoggingConstants","LWIOmniButton.react","LWIOmniTextPairing.react","emptyFunction","getJSEnumSafe","react","useCometLazyDialog","useLWILoggerContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useMemo,l=c("JSResourceForInteraction")("LWICometWhatsAppBusinessUpsellDialog.react").__setRef("LWICometCTAWhatsappBizUpsellAdResultNotice.react"),m=48,n={button:{marginBottom:"x1yztbdb",marginStart:"x1d52u69",marginEnd:"xktsk01",$$css:!0},image:{borderTopStartRadius:"x1z11no5",borderTopEndRadius:"xjy5m1g",borderBottomEndRadius:"x1mnwbp6",borderBottomStartRadius:"x4pb5v6",$$css:!0},root:{marginBottom:"x1yztbdb",$$css:!0},text:{flexShrink:"xs83m0k",$$css:!0}};function a(a){var b=a.objective,e=a.pageID,f=a.productFlow,g=a.whatsAppNumber,o=a.whatsAppNumberType;a=c("useLWILoggerContext")();var p=a.targetID,q=k(function(){return{objective:c("getJSEnumSafe")(c("AdproObjectiveType"),b),page_id:e,post_id:p,product_flow:f,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:g,whatsapp_number_type:o}},[b,e,p,f,g,o]);j(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},q,{event:"whatsapp_business_app_usell_notice_shown"}))},[q]);a=c("useCometLazyDialog")(l);var r=a[0];a=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},q,{event:"whatsapp_business_app_usell_notice_clicked"})),r({pageID:e,productFlow:f,whatsAppNumber:g,whatsAppNumberType:o},c("emptyFunction"))};return i.jsx("div",{className:"x1yztbdb",children:i.jsxs(c("CometCard.react"),{background:"white",dropShadow:1,children:[i.jsxs(c("CometRow.react"),{paddingVertical:16,verticalAlign:"center",children:[i.jsx(c("CometRowItem.react"),{children:i.jsx(c("CometImage.react"),{height:m,src:"/images/pages/lwi/autoboost_icon.png",width:m,xstyle:n.image})}),i.jsx(c("CometRowItem.react"),{xstyle:n.text,children:i.jsx(c("LWIOmniTextPairing.react"),{body:h._("u5b89u88c5 WhatsApp Business u5e94u7528u540euff0cu4f60u53efu4ee5u521bu5efau5e7fu544au6765u5e2eu52a9u63d0u5347u6d88u606fu4e92u52a8u91cfu800cu4e0du53eau662fu5e16u6587u4e92u52a8"),headline:h._("u63d0u5347u4ecau540eu5e7fu544au7684u6d88u606fu4e92u52a8u91cf"),level:3})})]}),i.jsx("div",{className:"x1yztbdb x1d52u69 xktsk01",children:i.jsx(c("LWIOmniButton.react"),{label:h._("u5f00u59cb"),onPress:a,reduceEmphasis:!0})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MessengerStoriesRingPresence.react",["FBStoriesViewer2","MercuryParticipantsImageM4React.bs","MessengerStoriesLoggingConstants","MessengerStoriesRingPresence_storyBucket.graphql","RelayModern","react","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=216,k=56,l=857,m=1141,n=160,o=284;function a(a){var b=a.borderColor,e=a.className,f=a.expanded,g=a.isActive,h=a.montageFBThreadID,p=a.participants,q=a.size,r=a.storiesRingEligible,s=a.storyBucket;a=a.totalParticipants;var t=function(){if(h==null||r!==!0)return;var a={bucketID:h,cardID:null,openSource:c("MessengerStoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM,tilePosition:{bottom:j,height:k,left:l,right:m,top:n,width:o},traySessionID:c("uuid")()};c("FBStoriesViewer2").getInstance().openDialogMessenger(a)},u=function(){return(s==null?void 0:s.is_bucket_seen_by_viewer)===!1};u=u();return i.jsx("div",{onClick:t,"aria-hidden":!0,children:i.jsx(d("MercuryParticipantsImageM4React.bs").make,{borderColor:b,className:e,expanded:f,hasUnreadStories:u,isActive:g,participants:p,size:q,storiesRingEligible:r,totalParticipants:a})})}a.displayName=a.name+" [from "+f.id+"]";e=d("RelayModern").createFragmentContainer(a,{storyBucket:h!==void 0?h:h=b("MessengerStoriesRingPresence_storyBucket.graphql")});g["default"]=e}),98);
-----
MessengerStoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_SOURCE:{FACEBOOK_CHAT_TAB:"facebook_chat_tab",MESSENGER_DOT_COM:"messenger_dot_com"}};b=a;f["default"]=b}),66);
-----
PartnerIntegrationPixelDialogWrapper.react",["PartnerIntegrationDialogContainer.react","PartnerIntegrationStepsFilterAction","PrereqsLoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=d("react").PureComponent;b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.componentDidMount=function(){c("PartnerIntegrationStepsFilterAction").dispatch({stepsFilter:[1]},{line:"32",module:"PartnerIntegrationPixelDialogWrapper.react.js"})};e.componentWillUnmount=function(){c("PartnerIntegrationStepsFilterAction").dispatch({stepsFilter:null},{line:"38",module:"PartnerIntegrationPixelDialogWrapper.react.js"})};e.render=function(){return this.props.loggingLocation===d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE?h.jsx(c("PartnerIntegrationDialogContainer.react"),{scopes:["AM_L2_INLINE_CREATION"],onDialogEvent:this.props.onDialogEvent}):h.jsx(c("PartnerIntegrationDialogContainer.react"),{onDialogEvent:this.props.onDialogEvent})};return b}(a);g["default"]=b}),98);
-----
AdsAdBuilderMiniPreviewsV4ClickedLoggerPlugin",["AdsAdBuilderLogger","AdsAdgroupPreviewsLoggingConstants"],(function(a,b,c,d,e,f,g){"use strict";a={log:function(a){a=a.data;a.shouldLog&&a.loggingSource==c("AdsAdgroupPreviewsLoggingConstants").MINI_PREVIEW&&a.adgroupID!=null&&d("AdsAdBuilderLogger").logMiniPreviewClicked(a.adgroupID,a.format,a.hasError,a.entryPoint)}};b=a;g["default"]=b}),98);
-----
AdsEventsManagerPixelEventOverviewLoggingConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["CATEGORY_TYPE_SELECTOR"]);c=b("$InternalEnum").Mirrored(["CLICK_CATEGORY_TYPE_SELECTOR"]);f.AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames=a;f.AdsEventsManagerPixelEventOverivewLoggingActions=c}),66);
-----
AdsEventsManagerPixelEventBreakdownTypeSelector.react",["fbt","AdsEventsManagerPixelEventBreakdownTypeEnum","AdsEventsManagerPixelEventOverviewLoggingConstants","AdsEventsManagerPixelEventOverviewTabNameLabels","GeoSelector.react","GeoSelectorItem.react","SignalsLoggingBoundary.react","react","signalsLoggingUserInputWithValueContextListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useCallback;function a(a){var b=a.logger,e=a.selectedCategory,f=a.setSelectedCategory;a=j(function(a){f(a),b.secondary(c("signalsLoggingUserInputWithValueContextListener"),function(){return{inputFieldName:d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewUserInputLoggingFieldNames.CATEGORY_TYPE_SELECTOR,stringValue:a}}).scope(d("AdsEventsManagerPixelEventOverviewLoggingConstants").AdsEventsManagerPixelEventOverivewLoggingActions.CLICK_CATEGORY_TYPE_SELECTOR).logSelect()},[b,f]);return i.jsx("div",{className:"x13ie5k6",children:i.jsx(c("GeoSelector.react"),{isLabelHidden:!0,label:h._("u6309{selected activity type}u663eu793au7ec6u5206u6570u636e",[h._param("selected activity type",c("AdsEventsManagerPixelEventOverviewTabNameLabels")[e])]),value:e,onChange:a,children:Object.keys(c("AdsEventsManagerPixelEventBreakdownTypeEnum")).map(function(a){return i.jsx(c("GeoSelectorItem.react"),{label:c("AdsEventsManagerPixelEventOverviewTabNameLabels")[a],value:a},a)})})})}a.displayName=a.name+" [from "+f.id+"]";b=c("SignalsLoggingBoundary.react").loggerConsumingComponent(a);g["default"]=b}),98);
-----
adsDeliveryContainerLoggingGetLoggingEventForFrequencyChange",["AdsDeliveryContainerLoggingConstants","AdsInterfacesLogEvents"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case d("AdsDeliveryContainerLoggingConstants").DEFAULT_AUTOMATIC_OPTION_INDEX:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_SELECT_AUTOMATIC_OPTION;default:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_SELECT_CUSTOM_OPTION_AND_EDIT}}g["default"]=a}),98);
-----
AdsManagerL2ConversionsAPINoticeContainer.react",["AdsErrorBoundary.react","AdsFluxHooks","AdsInterfacesLogger","AdsManagerURIUtils","BizSiteIdentifier.brands","BusinessSetupsSelectors","CometPlaceholder.react","JSResource","PrereqsLoggingConstants","RelayFBEnvironment","RelayHooks","URI","adsCreateStructuredSelector","lazyLoadComponent","react","signalsPixelConversionsAPIEligibilitySelector"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("lazyLoadComponent")(c("JSResource")("ConversionsAPISetupNoticeContentContainer.react").__setRef("AdsManagerL2ConversionsAPINoticeContainer.react"));function j(a,b){var d;c("AdsInterfacesLogger").logOnce({eventCategory:"prerequisites",eventName:"prerequisites.ipm_render",data:(d={},d.source=a,d.message=b,d)})}function k(a){var b=d("BizSiteIdentifier.brands").getBusinessID();b={act:a,business_id:(a=b)!=null?a:void 0};a=d("AdsManagerURIUtils").getAdsManagerURI("ads_manager",null,b).setPath("/adsmanager/manage/accounts");c("URI").goURIOnNewWindow(a)}var l=c("adsCreateStructuredSelector")({capiEligiblePixelIDsLO:c("signalsPixelConversionsAPIEligibilitySelector"),isSave4LaterEnabled:d("BusinessSetupsSelectors").isSave4LaterEnabledSelector},f.id+".stateSelector");function a(a){var b=a.adAccount;a=a.selectedPixelID;var e=d("AdsFluxHooks").useAdsSelector(l),f=e.capiEligiblePixelIDsLO;e=e.isSave4LaterEnabled;var g=f.hasValueWithoutError()?f.getValueEnforcing():[];g=g.includes(a);f.hasValueWithoutError()?j(d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_ACCOUNT_OVERVIEW,g?"eligible":"ineligible"):f.hasError()&&j(d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_ACCOUNT_OVERVIEW,"error");if(g)return h.jsx("div",{"data-testid":void 0,children:h.jsx(c("CometPlaceholder.react"),{fallback:null,children:h.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:h.jsx(i,{adAccount:b,isSave4LaterEnabled:e,selectedPixelID:a,onRedirect:function(){return k(b.account_id)}})})})});else return null}a.displayName=a.name+" [from "+f.id+"]";b=c("AdsErrorBoundary.react").withAdsErrorBoundary(d("AdsFluxHooks").adsFluxContainer(a),0,"AdsManagerL2ConversionsAPINoticeContainer");g["default"]=b}),98);
-----
AdsDeliverySpecReducer",["invariant","AccountAttributionEvent","AdsAPIBidStrategies","AdsAPIBillingEvents","AdsAPICampaignRecord","AdsAPIObjectives","AdsAPIOptimizationGoals","AdsAppUtils","AdsBidConstraintsUtils","AdsBidStrategyLoggingConstants","AdsBidStrategyLoggingUtils","AdsBiddingOptimizationUtils","AdsBulkValueUtils","AdsBuyingTypes","AdsCampaignBudgetPluginResolver","AdsCampaignOptimizationPluginResolver","AdsConversionWindowUtils","AdsCostStrategyUtils","AdsDeliveryActionType","AdsDeliveryContainerUtils","AdsDeliverySpecTransformerUtil_DEPRECATED","AdsDeliverySpecTransformer_DEPRECATED","AdsEmptyValue","AdsFrequencyControlEditorUtils","AdsMutators","AdsOptimizationUtils","AdsPromotedObjectTypes","AdsUniformValue","DateTime","DayPartingUtils","adsAccountGK","adsBillingEventGetDefaultDEPRECATED","adsCampaignGetDefaultEndDate","adsCampaignGetISODateTimeString","adsCampaignGetScheduleLengthsDays","adsDeliveryHasViewAttrWindowInBulkAttrSpec","adsDeliveryUpdateAttrWindowInBulkSpec","immutable"],(function(a,b,c,d,e,f,g,h){"use strict";var i=new Date(2019,6,31);function j(a,b){return a.map(function(a){return a.merge(b)})}function k(a,b){a=a.getValues().map(function(a){return j(a,b)});return d("AdsBulkValueUtils").aggregate(a)}function l(a,b,c){b=d("AdsConversionWindowUtils").canUseRBAPhase1(b);return!b?a:m(a,c)}function m(a,b){b=b?b:d("AdsOptimizationUtils").getDefaultAttributionWindowDays();var e=a.get("attribution_spec");return a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(e,c("AccountAttributionEvent").CLICK_THROUGH,b))}function n(a,b){return b!=="NONE_EXPLORATION"&&b!=="LIMITED_EXPLORATION"&&b!=="EXTENDED_EXPLORATION"?a:a.set("full_funnel_exploration_mode",new(c("AdsUniformValue"))(b))}function o(a,b,c){b=d("AdsConversionWindowUtils").canUseRBAPhase1(b);return!b?a:p(a,c)}function p(a,b){var d=a.get("attribution_spec");if(b)return a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(d,c("AccountAttributionEvent").VIEW_THROUGH,b));b=c("adsDeliveryHasViewAttrWindowInBulkAttrSpec")(d);return b?a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(d,c("AccountAttributionEvent").VIEW_THROUGH,0)):a}function q(a,b,e,f){if(!c("adsAccountGK")._(b,"VuU7nF6X"))return a;b=a.get("attribution_spec");e=d("AdsBulkValueUtils").getUniformValue(e);f=d("AdsBulkValueUtils").getUniformValue(f);if(e!==c("AdsAPIOptimizationGoals").OFFSITE_CONVERSIONS)return a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(b,c("AccountAttributionEvent").ENGAGED_VIDEO_VIEW,0));return f===c("AdsPromotedObjectTypes").PIXEL?a.set("attribution_spec",c("adsDeliveryUpdateAttrWindowInBulkSpec")(b,c("AccountAttributionEvent").ENGAGED_VIDEO_VIEW,1)):a}function r(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("is_autobid"));return b?u(a):a}function s(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy"));return b&&b!==c("AdsAPIBidStrategies").LOWEST_COST_WITH_BID_CAP?u(a):a}function t(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy"));switch(b){case c("AdsAPIBidStrategies").LOWEST_COST_WITH_MIN_ROAS:case c("AdsAPIBidStrategies").COST_CAP:b={billing_event:new(c("AdsUniformValue"))(c("AdsAPIBillingEvents").IMPRESSIONS)};return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(b)));default:return a}}function u(a){var b={delivery_type:new(c("AdsUniformValue"))("standard"),scheduling:{type:d("AdsDeliverySpecTransformerUtil_DEPRECATED").fromApiSpec.getSchedulingType(a.get("pacing_type"))}};return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(b)))}function v(a,b,c,e,f){return d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(a).some?y(a,b,c,e,void 0,!1):x(a,b,c,e,f)}function w(a,b,c,e,f){f=d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(a).some?!1:!!f;return x(a,b,c,e,f,!0)}function x(a,b,e,f,g,h){var i=!!d("AdsBulkValueUtils").getUniformValue(a.get("is_autobid")),j=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE),k=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal")),l=d("AdsBulkValueUtils").getUniformValue(a.get("billing_event")),m=d("AdsBulkValueUtils").getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);j=d("AdsBiddingOptimizationUtils").shouldFlipAutobidValue(i,c("AdsBuyingTypes").AUCTION,j,m,k,l);h===!0&&j&&d("AdsBidStrategyLoggingUtils").logFieldChange(c("AdsBidStrategyLoggingConstants").FLIP_IS_AUTOBID,"change_billing_event",a.get("id").getValues().toString());m=j?a.merge(c("immutable").fromJS({is_autobid:new(c("AdsUniformValue"))(!i)})):a;l=k===c("AdsAPIOptimizationGoals").APP_INSTALLS?!1:void 0;return y(m,b,e,f,l,g)}function y(a,b,e,f,g,h){var i=d("AdsBulkValueUtils").getUniformValue(a.get("is_autobid")),j={};if(i)a=a["delete"]("bid_amount"),h&&(j.bid_strategy=new(c("AdsUniformValue"))(c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP));else{i=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE);var k=d("AdsBulkValueUtils").getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE),l=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal")),m=d("AdsBulkValueUtils").getUniformValue(a.get("billing_event"));i=c("AdsCampaignOptimizationPluginResolver").resolve({objective:i,promotedObjectType:k}).getDefaultBidAmount(l,m,new(c("AdsAPICampaignRecord"))(a),b.currency,b.business_country_code);k=d("AdsOptimizationUtils").changeUSDCentToLocalCurrency(i,b.account_currency_ratio_to_usd,b.currency);j.bid_amount=new(c("AdsUniformValue"))(k)}a=a.merge(c("immutable").fromJS(j));return g===!1?a:z(b,a,e,f,h)}function z(a,b,e,f,g){var h=d("AdsBulkValueUtils").getUniformValueOrDefault(b.get("is_autobid"),!1);e=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE);var i=d("AdsBulkValueUtils").getUniformValue(b.get("optimization_goal")),j=d("AdsBulkValueUtils").getUniformValue(b.get("billing_event"));f=d("AdsBulkValueUtils").getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);f=c("AdsCampaignOptimizationPluginResolver").resolve({objective:e,promotedObjectType:f});var k=d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(b);k=k.some;var l={},m=!1;e&&i&&j&&d("AdsBiddingOptimizationUtils").canUseAveragePricePacing(f,i,j,k,a)&&(m=d("AdsBiddingOptimizationUtils").getIsAveragePricePacingValue(h));l.is_average_price_pacing=new(c("AdsUniformValue"))(m);if(g){e=d("AdsCostStrategyUtils").getBidStrategyByLegacyFields(h,m);l.bid_strategy=new(c("AdsUniformValue"))(e)}return b.merge(c("immutable").fromJS(l))}function A(a){var b=D(a);if(b==="lifetime")return a;b=a.get("pacing_type").map(function(a){return a.toArray()});b=d("DayPartingUtils").setBulkDayParting(b,!1).map(function(a){return c("immutable").fromJS(a)});b={pacing_type:b,adset_schedule:new(c("AdsUniformValue"))(c("immutable").List([]))};return a.merge(c("immutable").fromJS(b))}function B(a){return D(a)==="daily"?a.set("recurring_budget_semantics",new(c("AdsUniformValue"))(!0)):a["delete"]("recurring_budget_semantics")}function C(a,b,e,f){if(!b||!e)return a;var g=a.get("daily_budget"),h=a.get("lifetime_budget");g=g.getValues().some(function(a){return a>0});h=h.getValues().some(function(a){return a>0});if(g&&h||!g&&!h)return a;g=D(a);if(g==="daily")return a;h=a.get("end_time");if(h!=null&&!(h instanceof c("AdsEmptyValue")))return a;g=a.get("start_time");h=d("AdsBulkValueUtils").aggregate(g.getValues().map(function(a){return c("DateTime").fromISOString(a,b.timezone_id).toDate()}));d("AdsBulkValueUtils").assertAllOrNothingNull([e,f]);d("AdsBulkValueUtils").assertAllSameLength([e,f]);g=d("AdsBulkValueUtils").parallelIterator(function(a){var b=a[0];a=a[1];return c("AdsCampaignBudgetPluginResolver").resolve({objective:b,promotedObjectType:a})},[e,f]);var i=c("adsCampaignGetScheduleLengthsDays")();d("AdsBulkValueUtils").assertAllOrNothingNull([h,g]);d("AdsBulkValueUtils").assertAllSameLength([h,g]);e=d("AdsBulkValueUtils").parallelIterator(function(a){var d=a[0];a=a[1];return c("adsCampaignGetISODateTimeString")(c("adsCampaignGetDefaultEndDate")(d,null,i,a),b.timezone_offset_hours_utc)},[h,g]);return a.set("end_time",e)}function D(a){return+d("AdsBulkValueUtils").getUniformValue(a.get("daily_budget"))?"daily":"lifetime"}function E(a,b,e,f,g,i){g=d("AdsBulkValueUtils").getUniformValueOrDefault(e,null);e=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);b=d("AdsBulkValueUtils").getUniformValueOrDefault(a.get("optimization_goal"),null);f=d("AdsBulkValueUtils").getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);g=c("adsBillingEventGetDefaultDEPRECATED")(g,e,b,f,i);e=d("AdsDeliveryContainerUtils").hasCampaignGroupBudget(a);b=e.some;f=c("immutable").fromJS({billing_event:new(c("AdsUniformValue"))(g),bidding:{is_autobid:b?void 0:new(c("AdsUniformValue"))(!0),is_average_price_pacing:new(c("AdsUniformValue"))(!1)}});i=a.get("bid_constraints");i instanceof c("immutable").Map&&h(0,1891);e=d("AdsBidConstraintsUtils").bulkBidConstraintsHaveROASAverageFloor(i);if(e){g=d("AdsBidConstraintsUtils").deleteROASAveragefloorFrombulkBidConstraints(i);a=a.set("bid_constraints",g)}return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(f))["delete"]("bid_amount")}function F(a,b){if(b!==c("AdsAPIOptimizationGoals").QUALITY_LEAD&&b!=="MIXED")return a;b=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));if(b===c("AdsAPIOptimizationGoals").QUALITY_LEAD)return a;b=a.get("promoted_object");if(b==null)return a;var e=b.get("page_id"),f=b.get("pixel_id");b=b.get("offline_conversion_data_set_id");if(e instanceof c("AdsEmptyValue"))return a;if(f instanceof c("AdsEmptyValue")&&b instanceof c("AdsEmptyValue"))return a;e=c("immutable").fromJS({promoted_object:{pixel_id:void 0,offline_conversion_data_set_id:void 0}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(e))}function G(a,b,e){b=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);var f=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));e=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsPromotedObjectTypes").NONE);if(c("AdsAppUtils").isRoasOptimization(b,f,e)){var g=c("immutable").fromJS({promoted_object:{custom_event_type:new(c("AdsUniformValue"))("PURCHASE")}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(g))}if(d("AdsDeliveryContainerUtils").isConversionsRoasOptimization(b,f,e)){g=a.get("promoted_object");if(g==null)return a;f=g.get("pixel_id");if(!(f instanceof c("AdsEmptyValue"))&&f instanceof c("AdsUniformValue")){g=c("immutable").fromJS({promoted_object:{pixel_id:f,custom_event_type:new(c("AdsUniformValue"))("PURCHASE")}});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(g))}return a}f=c("AdsCampaignOptimizationPluginResolver").resolve({objective:b,promotedObjectType:e});return f.getCanHaveCustomEventType()?a:a.set("promoted_object",(g=a.get("promoted_object"))==null?void 0:g["delete"]("custom_event_type"))}function H(a,b,e,f,g){b=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);e=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsPromotedObjectTypes").NONE);var h=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));if((h===c("AdsAPIOptimizationGoals").VIDEO_VIEWS||h===c("AdsAPIOptimizationGoals").THRUPLAY)&&!g)return a;g=c("AdsCampaignOptimizationPluginResolver").resolve({objective:b,promotedObjectType:e}).getDefaultFrequencyControlSpecs(h,e,f);b=c("immutable").fromJS({frequency_control_specs:new(c("AdsUniformValue"))(c("immutable").fromJS(g))});return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(b))}function I(a,b){var e=a.get("adset_schedule");if(e==null||e instanceof c("AdsEmptyValue")||e instanceof c("AdsUniformValue")&&e.getValue().size===0)return a;e=d("AdsBulkValueUtils").mapBulkValue(e,function(a){var c=a;a.forEach(function(a,d){c=c.set(d,a.set("timezone_type",b))});return c});return a.set("adset_schedule",e)}function J(a,b){var e=a.get("pacing_type");e=d("AdsBulkValueUtils").mapBulkValue(e,function(a){a=d("DayPartingUtils").setPacingType(a.toJS(),b==="no_pacing",b==="probabilistic_pacing_v2");return c("immutable").List(a)});return a.set("pacing_type",e)}function K(a,b,e){e=d("AdsBulkValueUtils").getUniformValue(e,null);if(e!=null){var f=a.get("attribution_spec");f=c("adsDeliveryUpdateAttrWindowInBulkSpec")(f,b,e);return a.set("attribution_spec",f)}return a}function L(a){var b=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy")),e=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal")),f=d("AdsBulkValueUtils").getUniformValue(a.get("is_average_price_pacing"),null),g={};if(b){b=d("AdsCostStrategyUtils").getBidLegacyFieldsValueByBidStrategy(b,e);e=b.MappedIsAutobid;b=b.MappedIsAveragePricePacing;g.is_autobid=new(c("AdsUniformValue"))(e);f!==null&&(g.is_average_price_pacing=new(c("AdsUniformValue"))(b))}a=a.merge(c("immutable").fromJS(g));return a}function M(a,b,e,f,g,h){if(g){g=d("AdsBulkValueUtils").getUniformValueOrDefault(e,c("AdsAPIObjectives").NONE);e=d("AdsBulkValueUtils").getUniformValueOrDefault(f,c("AdsPromotedObjectTypes").NONE);f=d("AdsBulkValueUtils").getUniformValue(a.get("optimization_goal"));var i=d("AdsBulkValueUtils").getUniformValue(a.get("billing_event"));g=c("AdsCampaignOptimizationPluginResolver").resolve({objective:g,promotedObjectType:e}).getDefaultBidAmount(f,i,new(c("AdsAPICampaignRecord"))(a),b.currency,b.business_country_code);e=d("AdsOptimizationUtils").changeUSDCentToLocalCurrency(g,b.account_currency_ratio_to_usd,b.currency);a=a.set("bid_amount",new(c("AdsUniformValue"))(e));return a}f=d("AdsBulkValueUtils").getUniformValue(a.get("bid_strategy"));if(h&&f!==c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP){a=a.set("bid_amount",new(c("AdsUniformValue"))(h));return a}i=a.get("bid_amount");i&&f===c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP&&(a=a["delete"]("bid_amount"));h&&f!==c("AdsAPIBidStrategies").LOWEST_COST_WITHOUT_CAP&&(a=a.set("bid_amount",new(c("AdsUniformValue"))(h)));return a}function N(a){var b=a.get("bid_constraints");b instanceof c("immutable").Map&&h(0,1891);b=d("AdsBulkValueUtils").getUniformValue(d("AdsBidConstraintsUtils").getROASAverageFloorBulk(b));b&&(a=a["delete"]("bid_amount")["delete"]("is_autobid"));return a}function O(a,b,e,f){b=d("AdsBulkValueUtils").getUniformValueOrDefault(b,c("AdsAPIObjectives").NONE);var g=d("AdsBulkValueUtils").getUniformValueOrDefault(a.get("optimization_goal"),c("AdsAPIOptimizationGoals").NONE);b=d("AdsDeliveryContainerUtils").isEligibleForVVDeprecationChange(b,g);g=a.get("end_time");if(f&&b&&(g==null||g instanceof c("AdsEmptyValue"))){f=e.timezone_offset_hours_utc;b=new(c("AdsUniformValue"))(c("adsCampaignGetISODateTimeString")(i,f));a=a.set("end_time",b)}return a}function a(a,b){var e=b.data;b=b.type;switch(b){case c("AdsDeliveryActionType").SET_DEFAULT_SPEC:return c("immutable").fromJS(e.spec);case c("AdsDeliveryActionType").CHANGE_ADSET_SCHEDULE_TIMEZONE_TYPE:return I(a,e.timezoneType);case c("AdsDeliveryActionType").CHANGE_ADSET_SCHEDULE:case c("AdsDeliveryActionType").CHANGE_SCHEDULE:case c("AdsDeliveryActionType").CHANGE_SCHEDULE_MODE_CREATION:case c("AdsDeliveryActionType").CHANGE_SCHEDULING_TYPE:case c("AdsDeliveryActionType").TOGGLE_SCHEDULE_MODE_MANAGEMENT:return a.merge(c("immutable").fromJS(e.spec));case c("AdsDeliveryActionType").CHANGE_CONVERSION_WINDOW:case c("AdsDeliveryActionType").CHANGE_VIEW_CONVERSION_WINDOW:return K(a,e.event_type,e.window_days);case c("AdsDeliveryActionType").CHANGE_CUSTOM_EVENT_TYPE:return a.mergeDeep(c("immutable").fromJS(e.spec));case c("AdsDeliveryActionType").CHANGE_BID_AMOUNT:return!d("AdsBulkValueUtils").getUniformValue((b=e.spec)==null?void 0:b.bid_amount)?a:a.merge(c("immutable").fromJS(e.spec));case c("AdsDeliveryActionType").CHANGE_BID_CONSTRAINTS:b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return N(a)});return b(a);case c("AdsDeliveryActionType").CHANGE_BID_STRATEGY:b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return L(a)},function(a){return M(a,e.account,e.objective,e.promotedObjectType,e.shouldSetDefaultBidAmount,e.bidAmount)},function(a){return s(a)},function(a){return t(a)},function(a){return l(a,e.account,e.defaultClickConversionWindowLength)},function(a){return o(a,e.account,e.defaultViewConversionWindowLength)});return b(a);case c("AdsDeliveryActionType").CHANGE_BUDGET_AMOUNT:if(!d("AdsBulkValueUtils").getUniformValue(e==null?void 0:(b=e.spec)==null?void 0:(b=b.budget)==null?void 0:b.amount))return a;b=d("AdsMutators").chain(function(a){return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(e.spec)))});return b(a);case c("AdsDeliveryActionType").CHANGE_BILLING_EVENT:b=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return w(a,e.account,e.objective,e.promotedObjectType,e.canUseBidStrategyInCallback)},function(a){return r(a)});b=b(a);d("AdsBidStrategyLoggingUtils").logBidStrategyChangeByBillingEvent("change billing event",a,b);return b;case c("AdsDeliveryActionType").CHANGE_DELIVERY_TYPE:b=d("AdsMutators").chain(function(a){return J(a,e.spec.pacing_type)});return b(a);case c("AdsDeliveryActionType").CHANGE_FREQUENCY_CONTROL_INTERVAL:b=e.spec.frequency_control_specs;var f=a.get("frequency_control_specs"),g=a.get("optimization_goal"),h;b.interval_days===null&&b.max_frequency===null?h=a.merge(c("immutable").fromJS({frequency_control_specs:new(c("AdsUniformValue"))(null)})):f.length===0||f.getValues().every(function(a){return a==null})?h=a.merge(c("immutable").fromJS({frequency_control_specs:new(c("AdsUniformValue"))(c("immutable").fromJS(d("AdsFrequencyControlEditorUtils").getFrequencyControlSpecs(b.interval_days,b.max_frequency,d("AdsBulkValueUtils").getUniformValue(g))))})):h=a.merge(c("immutable").fromJS({frequency_control_specs:k(f,c("immutable").fromJS(e.spec.frequency_control_specs))}));return h;case c("AdsDeliveryActionType").CHANGE_BUDGET_MODE:b=d("AdsMutators").chain(function(a){return a.merge(d("AdsDeliverySpecTransformer_DEPRECATED").toApiSpec(c("immutable").fromJS(e.spec)))},function(a){return A(a)},function(a){return B(a)},function(a){return C(a,e.account,e.objective,e.promotedObjectType)});return b(a);case c("AdsDeliveryActionType").CHANGE_OPTIMIZATION_GOAL:g=d("AdsMutators").chain(function(a){return a.merge(c("immutable").fromJS(e.spec))},function(a){return E(a,e.objective,e.buying_type,e.promotedObjectType,e.canUseBidStrategyInCallback,e.account)},function(a){return F(a,e.priorOptimizationGoal)},function(a){return v(a,e.account,e.objective,e.promotedObjectType,e.canUseBidStrategyInCallback)},function(a){return H(a,e.objective,e.promotedObjectType,e.account,e.isNewCampaign)},function(a){return r(a)},function(a){return m(a,e.defaultConversionWindowLength)},function(a){return p(a,e.defaultViewConversionWindowLength)},function(a){return q(a,e.account,e.optimizationGoal,e.promotedObjectType)},function(a){return n(a,e.defaultFullFunnelExplorationMode)},function(a){return G(a,e.objective,e.promotedObjectType)},function(a){return t(a)},function(a){return O(a,e.objective,e.account,e.isNewCampaign)});return g(a);default:return a}}g.reduce=a}),98);
-----
AdsManagerL2ConversionsAPISave4LaterContent.react",["ix","AdsErrorBoundary.react","AdsManagerGlimmerEllipsis.react","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoIcon.react","GeoLink.react","GeoTooltip.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetTextContent","Save4LaterContentTypesEnum","fbicon","react","setTimeout","useAdsS4LTask","useUpsertAdsS4LtaskMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useState,l={};l[c("Save4LaterContentTypesEnum").Save]={icon:d("fbicon")._(h("495580"),12),iconColor:"info",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSaveText(),textColor:"link",tooltip:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSaveTooltip()};l[c("Save4LaterContentTypesEnum").Saved]={icon:d("fbicon")._(h("477812"),12),iconColor:"success",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSavedText(),textColor:"success",tooltip:null};l[c("Save4LaterContentTypesEnum").SaveError]={icon:d("fbicon")._(h("502060"),12),iconColor:"error",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSaveErrorText(),textColor:"error",tooltip:null};l[c("Save4LaterContentTypesEnum").Saving]={icon:d("fbicon")._(h("495580"),12),iconColor:"info",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSavingText(),textColor:"link",tooltip:null};l[c("Save4LaterContentTypesEnum").Unsave]={icon:d("fbicon")._(h("495580"),12),iconColor:"default",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsaveText(),textColor:"value",tooltip:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsaveTooltip()};l[c("Save4LaterContentTypesEnum").Unsaved]={icon:d("fbicon")._(h("478231"),12),iconColor:"default",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsavedText(),textColor:"value",tooltip:null};l[c("Save4LaterContentTypesEnum").UnsaveError]={icon:d("fbicon")._(h("502060"),12),iconColor:"error",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsaveErrorText(),textColor:"error",tooltip:null};l[c("Save4LaterContentTypesEnum").Unsaving]={icon:d("fbicon")._(h("495580"),12),iconColor:"default",text:d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsavingText(),textColor:"value",tooltip:null};function m(a){a=a.contentType;if(a==null)return null;var b=i.jsxs(c("GeoBaseSpacingLayout.react"),{context:"component",relation:"related",children:[i.jsx(c("GeoIcon.react"),{color:l[a].iconColor,icon:l[a].icon}),i.jsxs(c("GeoBaseText.react"),{color:l[a].textColor,"data-testid":void 0,size:"value",children:[l[a].text,[c("Save4LaterContentTypesEnum").Saving,c("Save4LaterContentTypesEnum").Unsaving].includes(a)?i.jsx(c("AdsManagerGlimmerEllipsis.react"),{}):null]})]});a=l[a].tooltip;return a==null?i.jsx("span",{className:"x1ty9z65",children:b}):i.jsx(c("GeoTooltip.react"),{content:a,isLayerHoverable:!0,position:"below",children:b})}function a(a){var b=a.adAccountID,e=a.source;a=a.xstyle;var g=c("useAdsS4LTask")(b),h=g.connectionID;g=g.taskArray;var l=g.some(function(a){var b=a.s4lTaskName;a=a.status;return b==="capi"&&a==="open"});g=k(null);var n=g[0],o=g[1];j(function(){o(l?c("Save4LaterContentTypesEnum").Unsave:c("Save4LaterContentTypesEnum").Save)},[l]);var p=c("useUpsertAdsS4LtaskMutation")({connectionID:h});g=function(){l?d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.UNSAVE_FOR_LATER,e):d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.SAVE_FOR_LATER,e),o(l?c("Save4LaterContentTypesEnum").Unsaving:c("Save4LaterContentTypesEnum").Saving),p("capi",l?"closed":"open",b,function(a){o(l?c("Save4LaterContentTypesEnum").Unsaved:c("Save4LaterContentTypesEnum").Saved)},function(a){o(l?c("Save4LaterContentTypesEnum").UnsaveError:c("Save4LaterContentTypesEnum").SaveError)})};[c("Save4LaterContentTypesEnum").Saved,c("Save4LaterContentTypesEnum").SaveError,c("Save4LaterContentTypesEnum").Unsaved,c("Save4LaterContentTypesEnum").UnsaveError].includes(n)&&c("setTimeout")(function(){o(l?c("Save4LaterContentTypesEnum").Unsave:c("Save4LaterContentTypesEnum").Save)},2e3);return i.jsx(c("AdsErrorBoundary.react"),{moduleName:f.id,children:i.jsx(c("GeoBaseSpacingLayout.react"),{xstyle:a,children:[c("Save4LaterContentTypesEnum").Save,c("Save4LaterContentTypesEnum").Unsave].includes(n)?i.jsx(c("GeoLink.react"),{showUnderline:"never",onClick:g,children:i.jsx(m,{contentType:n})}):i.jsx(m,{contentType:n})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsS4LIconContainer.react",["AdsS4LIcon.react","AdsS4LTaskStatus","GeoToast.react","PrereqsLoggingConstants","PrereqsLoggingUtils","RelayFBEnvironment","RelayHooks","SYDPrereqsWidgetTextContent","getJSEnumSafe","react","useAdsS4LTask","useGeoToaster","useUpsertAdsS4LtaskMutation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function j(a){var b=a.adAccountID,e=a.isTooltipDisabled;e=e===void 0?!1:e;var f=a.source,g=a.taskName,j=a.tooltipAlign;a=a["data-testid"];a=c("useAdsS4LTask")(b);var k=a.connectionID;a=a.taskArray;var l=a.some(function(a){var b=a.s4lTaskName;a=a.status;return b===g&&a==="open"});a=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SAVE_FOR_LATER_ICON,f);var m=c("useGeoToaster")(),n=m.add;m=i(!1);var o=m[0],p=m[1],q=function(a){var b,e="success";a==="open"?b=d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSavedText():a==="closed"?b=d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsavedText():(e="error",b=l?d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterUnsaveErrorText():d("SYDPrereqsWidgetTextContent").getAMCAPISave4LaterSaveErrorText());n(h.jsx(c("GeoToast.react"),{heading:b,status:e}))},r=c("useUpsertAdsS4LtaskMutation")({connectionID:k});m=function(){p(!0),l?d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.UNSAVE_FOR_LATER,f):d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.SAVE_FOR_LATER,f),r("capi",l?"closed":"open",b,function(a){a=c("getJSEnumSafe")(c("AdsS4LTaskStatus"),(a=a.xfb_upsert_ads_s4_ltask)==null?void 0:(a=a.ads_s_ltask)==null?void 0:a.status);q(a);p(!1)},function(a){q(null),p(!1)})};return h.jsx("div",{ref:a,children:h.jsx(c("AdsS4LIcon.react"),{"data-testid":void 0,isDisabled:o,isTaskOpen:l,isTooltipDisabled:e,tooltipAlign:j,onClick:m})})}j.displayName=j.name+" [from "+f.id+"]";function a(a){return h.jsx(d("RelayHooks").RelayEnvironmentProvider,{environment:c("RelayFBEnvironment"),children:h.jsx(j,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ConversionsAPIMarketerOnboardingFlow.react",["fbt","AdsEventsManagerCAPIFocusedSetupModalAction","AdsEventsManagerConversionsAPIFocusedPixelCreateAssets","AdsEventsManagerFeedbackStrings","AdsEventsManagerGatingUtils","AdsEventsManagerGiveFeedbackContextProvider.react","AdsEventsManagerGiveFeedbackLink.react","AdsEventsManagerGiveFeedbackStandaloneModal.react","AdsEventsManagerMaguxCAPISetupCustomEventsAddEventAction","AdsEventsManagerMaguxCAPISetupCustomEventsInitializeAction","AdsEventsManagerMaguxCAPISetupCustomEventsRemoveEventAction","AdsEventsManagerMarketerAssessmentSingleEventBottomSheetToggleAction","AdsEventsManagerNavigationHelper","AdsEventsManagerPixelCreateUtils","AdsMgmtSetPixelIDAction","AdsS4LConversionsAPIFlowTip.react","AdsS4LIconContainer.react","ConversionsAPIMarketerAssessmentFlowBottomSheetToggleAction","ConversionsAPIMarketerAssessmentFlowCurrentStepStateAction","ConversionsAPIMarketerOnboardingFlowAssets","ConversionsAPIMarketerOnboardingFlowStrings","ConversionsAPIMarketerOnboardingOverviewDynamicAdsHero.react","ConversionsAPIMarketerOnboardingOverviewStep.react","ConversionsAPIMarketerOnboardingOverviewStepV2.react","ConversionsAPIMarketerOnboardingReviewSetupStep.react","ConversionsAPIMarketerOnboardingSelectEventsStep.react","ConversionsAPIMarketerOnboardingSelectParametersStep.react","ConversionsAPIMarketerOnboardingSelectParametersStepV2.react","ConversionsAPIMarketerOnboardingSendInstructionsStepContainer.react","ConversionsAPIOnboardingEventConfigResetAction","FlexLayout.react","GeoButton.react","GeoCancelButton.react","GeoCard.react","GeoCardFooter.react","GeoFlexbox.react","GeoHStack.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoStep.react","GeoStepper.react","GeoText.react","LaminarReactHooks","PrereqsLoggingConstants","S2SSetupSelectPixelContainer.react","SignalsConversionsAPIOnboardingFlowDataManager","SignalsLoggingBoundary.react","SignalsPixelSetupFlowOpenModalAction","SignalsS2SEngChecklistStateUpdateAction","SignalsUserFlowStep","geoMargin","logMarketerAssessmentUserFlowSteps","nullthrows","objectEntries","objectKeys","qpl","react","useConversionsAPIMarketerOnboardingFlowDynamicAdsDefaultingIfDA","useEffectOnce","useSimpleNUX_LEGACY"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useEffect,l=b.useMemo,m=b.useState,n={cancelButton:{display:"x1rg5ohu",marginEnd:"xq8finb",$$css:!0},content:{marginBottom:"x1hq5gj4",marginEnd:"xktsk01",marginStart:"x1d52u69",marginTop:"xqui205",$$css:!0},heroCard:{marginBottom:"x1yztbdb",$$css:!0},main:{height:"x5yr21d",width:"xh8yej3",$$css:!0},stepperCard:{height:"x5yr21d",marginEnd:"xktsk01",width:"x1q5yig5",$$css:!0}};function a(a){var b=a.adAccount,e=a.browserSetup,f=a.businessID,g=a.canSeeImprovements,o=a.catalogs,p=a.currentStep,q=a.entryPoint,r=a.eventName,s=a.isSave4LaterEnabled,t=a.logger,u=a.pixelID,v=a.pixelName,w=a.savedEventParameterConfigLO,x=a.selectedPixelID,y=a.sendInstructions,z=a.serverSetup,A=a.conversionsAPIFocusedSetupModalData,B=a.isUserInCAPISetupWidget;a=c("useSimpleNUX_LEGACY")("623233532396550");var C=a[0];a=a[1];var D=d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowStrings.getS2SMarketerOnboardingStepNameArray(r),E=d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowStrings.getS2SMarketerOnboardingStepConfig(D),F=function(){var a={},b=[];for(var d=0;d
0;var I=z.size>0,J=m(d("ConversionsAPIMarketerOnboardingFlowAssets").getExistingEventParameterConfig(I?z:e,r)),K=J[0],L=J[1];k(function(){if(r!=null){var a=d("ConversionsAPIMarketerOnboardingFlowAssets").getSingleEventParameterConfig(I?z:e,r);L(a)}},[e,r,I,z]);J=m(!1);var M=J[0],N=J[1];J=m(!1);var O=J[0],P=J[1];J=m(!0);var Q=J[0],R=J[1],S=j(function(a,b){var f=babelHelpers["extends"]({},K);b?(f[a]=d("ConversionsAPIMarketerOnboardingFlowAssets").getEventParametersInfoForEventName(a,e),c("AdsEventsManagerMaguxCAPISetupCustomEventsAddEventAction").dispatch({eventName:a},{line:"272",module:"ConversionsAPIMarketerOnboardingFlow.react.js"})):(c("AdsEventsManagerMaguxCAPISetupCustomEventsRemoveEventAction").dispatch({eventName:a},{line:"276",module:"ConversionsAPIMarketerOnboardingFlow.react.js"}),delete f[a]);L(babelHelpers["extends"]({},f))},[K,e]),T=j(function(){var a=D[p];G[a]="completed";H(G);a=Number(p)+1;c("ConversionsAPIMarketerAssessmentFlowCurrentStepStateAction").dispatch({currentStep:a},{line:"292",module:"ConversionsAPIMarketerOnboardingFlow.react.js"});a=D[a];G[a]!=="completed"&&(G[a]="incomplete",H(G))},[D,p,G]);J=j(function(){if(D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PIXEL)x!=null&&c("AdsMgmtSetPixelIDAction").dispatch({pixelID:x},{line:"313",module:"ConversionsAPIMarketerOnboardingFlow.react.js"}),c("logMarketerAssessmentUserFlowSteps")(t,String(D[p])),t.scope(String(D[p])).logNextStep(),T();else if((D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_EVENTS||D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS)&&f!=null&&w.getValue()!==d("ConversionsAPIMarketerOnboardingFlowAssets").SAVE_SUCCESSFUL){c("SignalsS2SEngChecklistStateUpdateAction").dispatch({dataSourceID:u},{line:"335",module:"ConversionsAPIMarketerOnboardingFlow.react.js"});c("logMarketerAssessmentUserFlowSteps")(t,String(D[p]));t.scope(String(D[p])).logNextStep();var a=D[p];d("SignalsConversionsAPIOnboardingFlowDataManager").createConversionsAPIEventParameterConfigForPixel({businessID:f,currentStepName:a,eventParameterConfigMap:K,logger:t,pixelID:u})}else if(D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SEND_INSTRUCTIONS){if(!B)r!=null?c("AdsEventsManagerMarketerAssessmentSingleEventBottomSheetToggleAction").dispatch({isBottomSheetShown:!1},{line:"362",module:"ConversionsAPIMarketerOnboardingFlow.react.js"}):(d("AdsEventsManagerNavigationHelper").navigateToDataSource("PIXEL",u),A.modalType===d("AdsEventsManagerPixelCreateUtils").CAPIFocusedSetupModal.CAPI_FOCUSED_SETUP_PIXEL_CREATE_MODAL&&(c("SignalsPixelSetupFlowOpenModalAction").dispatch({isModalShown:!0,pixelId:u},{line:"372",module:"ConversionsAPIMarketerOnboardingFlow.react.js"}),c("AdsEventsManagerCAPIFocusedSetupModalAction").dispatch({modalType:d("AdsEventsManagerPixelCreateUtils").CAPIFocusedSetupModal.CONNECT_DATA_SOURCES_MODAL},{line:"376",module:"ConversionsAPIMarketerOnboardingFlow.react.js"})));else{c("ConversionsAPIMarketerAssessmentFlowBottomSheetToggleAction").dispatch({isBottomSheetShown:!1},{line:"382",module:"ConversionsAPIMarketerOnboardingFlow.react.js"});a=D[p];f!=null&&d("SignalsConversionsAPIOnboardingFlowDataManager").createConversionsAPIEventParameterConfigForPixel({businessID:f,currentStepName:a,eventParameterConfigMap:K,logger:t,pixelID:u})}t.endUserFlowEventCancel(c("qpl")._(58208472,"3534"));t.logDone()}else c("logMarketerAssessmentUserFlowSteps")(t,String(D[p])),t.scope(String(D[p])).logNextStep(),T()},[D,p,f,w,x,t,T,u,K,B,r,A.modalType]);k(function(){w.hasValueWithoutError()&&w.getValue()===d("ConversionsAPIMarketerOnboardingFlowAssets").SAVE_SUCCESSFUL&&(D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.REVIEW_SETUP||D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_EVENTS||D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS)&&(T(),c("ConversionsAPIOnboardingEventConfigResetAction").dispatch({},{line:"443",module:"ConversionsAPIMarketerOnboardingFlow.react.js"}))},[p,w,T,D]);var U=j(function(){c("ConversionsAPIMarketerAssessmentFlowCurrentStepStateAction").dispatch({currentStep:c("nullthrows")(Number(p)-1)},{line:"453",module:"ConversionsAPIMarketerOnboardingFlow.react.js"}),t.scope(String(D[p])).logPrevStep()},[p,t,D]),aa=j(function(){t.logClose(),t.endUserFlowEventCancel(c("qpl")._(58208472,"3534")),d("AdsEventsManagerNavigationHelper").navigateToDataSource("PIXEL",u),c("ConversionsAPIMarketerAssessmentFlowBottomSheetToggleAction").dispatch({isBottomSheetShown:!1},{line:"467",module:"ConversionsAPIMarketerOnboardingFlow.react.js"})},[t,u]),V=j(function(a){var b=D[a];G[b]!=="pending"&&c("ConversionsAPIMarketerAssessmentFlowCurrentStepStateAction").dispatch({currentStep:a},{line:"476",module:"ConversionsAPIMarketerOnboardingFlow.react.js"})},[G,D]),W=o.length>0;c("useConversionsAPIMarketerOnboardingFlowDynamicAdsDefaultingIfDA")({eventName:r,eventParameters:K,isLinkedToDynamicAdsCatalogs:W,setEventParameters:L});var X=l(function(){switch(D[p]){case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.OVERVIEW:return W?i.jsx(c("ConversionsAPIMarketerOnboardingOverviewDynamicAdsHero.react"),{catalogs:o,pixelID:u,pixelName:v}):null;default:return null}},[p,o,W,u,v,D]),ba=j(function(a){var b=!d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager(),h=[];I&&b?h=d("ConversionsAPIMarketerOnboardingFlowAssets").getOrderedEventsList(z.keySeq().toArray()):e!=null&&(h=d("ConversionsAPIMarketerOnboardingFlowAssets").getOrderedEventsList(e.keySeq().toArray()));b=d("ConversionsAPIMarketerOnboardingFlowAssets").getOrderedEventsList(c("objectKeys")(K));a=D[Number(a)];switch(a){case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.OVERVIEW:return g===!0?i.jsx(c("ConversionsAPIMarketerOnboardingOverviewStepV2.react"),{businessID:f,isLinkedToDynamicAdsCatalogs:W}):i.jsx(c("ConversionsAPIMarketerOnboardingOverviewStep.react"),{});case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PIXEL:return f==null?null:i.jsx(c("S2SSetupSelectPixelContainer.react"),{businessID:f,onSetNextButton:R});case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_EVENTS:return i.jsx(c("ConversionsAPIMarketerOnboardingSelectEventsStep.react"),{browserPixelSetup:e,error:w.getError(),eventParameters:K,hasServerEvents:I,isLinkedToDynamicAdsCatalogs:W,orderedExistingEvents:h,pixelName:v,onEventSelect:S});case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS:return g===!0?i.jsx(c("ConversionsAPIMarketerOnboardingSelectParametersStepV2.react"),{browserPixelSetup:e,error:w.getError(),eventName:r,eventParameters:K,isLinkedToDynamicAdsCatalogs:r!=null?!1:W,orderedSelectedEvents:b,pixelID:u,pixelName:v,setEventParameters:L}):i.jsx(c("ConversionsAPIMarketerOnboardingSelectParametersStep.react"),{browserPixelSetup:e,error:w.getError(),eventName:r,eventParameters:K,isLinkedToDynamicAdsCatalogs:r!=null?!1:W,orderedSelectedEvents:b,pixelID:u,pixelName:v,setEventParameters:L});case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.REVIEW_SETUP:return i.jsx(c("ConversionsAPIMarketerOnboardingReviewSetupStep.react"),{eventParameters:K,orderedSelectedEvents:b});case d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SEND_INSTRUCTIONS:return i.jsx(c("ConversionsAPIMarketerOnboardingSendInstructionsStepContainer.react"),{businessID:f})}},[I,e,K,D,z,f,w,W,v,S,g,r,u]),Y=c("objectEntries")(G).map(function(a,b){var d=a[0];a=a[1];var e=E[d];return e!=null?i.jsx(c("GeoStep.react"),{id:b,label:E[d].stepperLabel,status:a},b):null}),Z=j(function(){var a=null;D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_EVENTS&&Object.keys(K).length===0?a=d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_EVENTS:D[p]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS&&Object.values(K).forEach(function(b){Object.values(b.userDataParameters).includes(!0)||(a=d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS)});if(B){var b=y.hasEmailBeenSent,c=y.hasImplementationGuideBeenOpened;D[Number(p)]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SEND_INSTRUCTIONS&&!b&&!c&&(a=d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SEND_INSTRUCTIONS);D[Number(p)]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PIXEL&&Q&&(a=d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PIXEL)}return a},[D,p,K,Q,B,y]),ca=function(){var a=D[p];P(!1);t.markUserFlowEventPoint(c("qpl")._(58208472,"3534"),"COMPLETE_REVIEW_SETUP");f!=null&&d("SignalsConversionsAPIOnboardingFlowDataManager").createConversionsAPIEventParameterConfigForPixel({businessID:f,currentStepName:a,eventParameterConfigMap:K,logger:t,pixelID:u})},$=d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.CONTINUE_STEP_BUTTON_LABEL;d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager()&&(D[Number(p)]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SEND_INSTRUCTIONS&&($=d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.FINISH_STEP_BUTTON_LABEL,A.modalType===d("AdsEventsManagerPixelCreateUtils").CAPIFocusedSetupModal.CAPI_FOCUSED_SETUP_PIXEL_CREATE_MODAL&&($=d("AdsEventsManagerConversionsAPIFocusedPixelCreateAssets").CONTINUE_PIXEL_SETUP)),D[Number(p)]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.REVIEW_SETUP&&($=d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.CONTINUE_STEP_BUTTON_LABEL));var da=c("SignalsUserFlowStep")[String(D[Number(p)])];F=I?"HAS_SERVER_EVENTS":F?"HAS_BROWSER_EVENTS":"NEW_PIXEL";var ea=D[Number(p)]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.OVERVIEW||D[Number(p)]===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS&&r!=null;return i.jsxs(i.Fragment,{children:[i.jsxs(c("FlexLayout.react"),{direction:"horizontal",style:{height:"100%",width:"100%"},children:[i.jsx(c("GeoCard.react"),{xstyle:n.stepperCard,children:i.jsx("div",{className:"x1hq5gj4 xktsk01 x1d52u69 xqui205",children:i.jsx(c("GeoStepper.react"),{value:p,onChange:V,children:Y})})}),i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:n.main,children:[X!=null&&i.jsx(c("GeoFlexbox.react"),{grow:0,shrink:0,xstyle:n.heroCard,children:i.jsx(c("GeoCard.react"),{children:X})}),i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("GeoCard.react"),{"data-testid":void 0,footer:i.jsx(c("GeoCardFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{"data-testid":void 0,disabledMessage:Z()===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_EVENTS?d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.SELECT_EVENT:Z()===d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SELECT_PARAMETERS?d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.SELECT_CUSTOMER_INFO_PARAMETER:null,isDisabled:w.isLoading()||Z()!=null,isLoading:w.isLoading(),label:$,variant:"primary",onClick:J}),secondaryButton:ea?null:i.jsx(c("GeoButton.react"),{isDisabled:!1,label:d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.BACK_STEP_BUTTON_LABEL,onClick:U}),startContent:i.jsxs(c("AdsEventsManagerGiveFeedbackContextProvider.react"),{entryPoint:q,errorCode:(Y=(V=w.getError())==null?void 0:V.code)!=null?Y:null,feedbackSource:"CONVERSIONS_API_ONBOARDING",pixelSetupStatus:F,useCase:"MARKETER_ASSESSMENT",userFlowStep:da,children:[i.jsx(c("AdsEventsManagerGiveFeedbackStandaloneModal.react"),{title:c("AdsEventsManagerFeedbackStrings").GIVE_FEEDBACK_ON_CONVERSIONS_API}),i.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[s&&b!=null?i.jsx("div",{id:d("AdsS4LConversionsAPIFlowTip.react").CAPI_MANUAL_FLOW_S4L_ICON,children:i.jsx(c("AdsS4LIconContainer.react"),{adAccountID:b.account_id,"data-testid":void 0,isTooltipDisabled:!1,source:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_MANUAL,taskName:"capi",tooltipAlign:"start"})}):D[Number(p)]!==d("ConversionsAPIMarketerOnboardingFlowAssets").ConversionsAPIMarketerOnboardingStepNameEnum.SEND_INSTRUCTIONS?i.jsx("div",{className:"x1rg5ohu xq8finb",children:i.jsx(c("GeoButton.react"),{label:d("ConversionsAPIMarketerOnboardingFlowStrings").ConversionsAPIMarketerOnboardingFlowLabels.CANCEL_STEP_BUTTON_LABEL,onClick:function(){N(!0)}})}):null,i.jsx(c("AdsEventsManagerGiveFeedbackLink.react"),{xstyle:s&&c("geoMargin").start12}),s&&C&&i.jsx(d("AdsS4LConversionsAPIFlowTip.react").AdsS4LConversionsAPIFlowTip,{contextID:d("AdsS4LConversionsAPIFlowTip.react").CAPI_MANUAL_FLOW_S4L_ICON,onClose:a})]})]})}),children:i.jsx("div",{className:"x1hq5gj4 xktsk01 x1d52u69 xqui205",children:ba(p)})})})]})]}),i.jsx(c("GeoModal.react"),{footer:i.jsx(c("GeoModalFooter.react"),{primaryButton:i.jsx(c("GeoButton.react"),{label:h._("u786eu8ba4"),variant:"primary",onClick:O?ca:aa}),secondaryButton:i.jsx(c("GeoCancelButton.react"),{})}),header:i.jsx(c("GeoModalHeader.react"),{heading:O?d("ConversionsAPIMarketerOnboardingFlowStrings").OverwriteModalContent.TITLE:d("ConversionsAPIMarketerOnboardingFlowStrings").WarningModalContent.TITLE}),isShown:M||O,width:440,onHide:O?function(){P(!1)}:function(){N(!1)},children:i.jsx(c("GeoText.react"),{display:"block",textAlign:"start",xstyle:c("geoMargin").horiz16,children:O?d("ConversionsAPIMarketerOnboardingFlowStrings").OverwriteModalContent.CONTENT:d("ConversionsAPIMarketerOnboardingFlowStrings").WarningModalContent.CONTENT})})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("SignalsLoggingBoundary.react").loggerConsumingComponent(d("LaminarReactHooks").laminarContainer(a,null,{containerName:f.id}),function(a){return a.scope("MARKETER_ASSESSMENT")},{disableSessionCreation:!0});g["default"]=e}),98);
-----
ConversionsAPISetupNoticeContentContainer.react",["fbt","ix","AdsErrorBoundary.react","AdsFluxHooks","AdsManagerL2ConversionsAPINoticeStyles","AdsManagerL2ConversionsAPISave4LaterContent.react","AdsMgmtSetPixelIDAction","AdsPrereqsCAPIUpsellNoticeTooltip.react","BizSiteIdentifier.brands","BusinessSetupsPlugins","CAPIPrereqsTypes.flow","ConversionsAPITextContent","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoIcon.react","GeoLink.react","GeoText.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetTextContent","SignalsS2SSetupFlowSelectedPixelIDAction","emptyFunction","fbicon","first","geoMargin","react","stylex","useAdsBSUSetupMetadata","useUpsertAdsBSUSetupMetadata","useUpsertAdsS4LtaskMutation"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useEffect,l="capi";function a(a){var b=a.selectedPixelID,e=a.adAccount,g=a.isSave4LaterEnabled,m=a.onRedirect;a=d("useAdsBSUSetupMetadata").useAdsBSUSetupMetadataSelectedIndex(e.account_id);var n=a.connectionID;a=a.setupSelectedIndexMap;var o=d("useUpsertAdsBSUSetupMetadata").useUpsertAdsBSUSetupMetadataSelectedIndex({connectionID:n,adAccountID:e.account_id}),p=c("useUpsertAdsS4LtaskMutation")({connectionID:null}),q=c("BusinessSetupsPlugins").get(l);n=q.dataFetchingHook({adAccountID:e.account_id,businessID:d("BizSiteIdentifier.brands").getBusinessID(),selectedIndexID:a.get(l)});a=n.entries;var r=n.entryIndexIDs;n=n.updater;var s=a.filter(function(a){return q.isEntryEligible(a,e)&&!q.inFinalState(a,0)}),t=a.length>0&&q.inFinalState(c("first")(a),r==null?void 0:r.length);k(function(){c("AdsMgmtSetPixelIDAction").dispatch({pixelID:b},{line:"113",module:"ConversionsAPISetupNoticeContentContainer.react.js"}),c("SignalsS2SSetupFlowSelectedPixelIDAction").dispatch({pixelID:b},{line:"114",module:"ConversionsAPISetupNoticeContentContainer.react.js"}),o(l,b,c("emptyFunction")),g&&t&&p("capi","closed",e.account_id,c("emptyFunction"),c("emptyFunction"))},[e.account_id,t,g,b,o,p]);var u=q.setupStepsHook({adAccountID:e.account_id,businessID:d("BizSiteIdentifier.brands").getBusinessID(),updater:n}),v=function(){var a=c("first")(s),b=u.find(function(b){return b.stepID===(a==null?void 0:a.current_step_id)})||u.find(function(a){return a.stepID===d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.INITIAL});b&&b.onClick(a)};a=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE,g?"S4L_ENABLED":"S4L_DISABLED",b);return j.jsx(j.Fragment,{children:s.length>0&&j.jsx(c("AdsErrorBoundary.react"),{moduleName:f.id,children:j.jsxs("div",{className:c("stylex")(c("AdsManagerL2ConversionsAPINoticeStyles").body),ref:a,children:[j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"horizontal",children:[j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(i("515023"),16)}),j.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:d("ConversionsAPITextContent").getAML2ConversionsAPIInlineSetupNoticeMessage()}),j.jsx(c("AdsPrereqsCAPIUpsellNoticeTooltip.react"),{bodyContent:[j.jsx(c("GeoText.react"),{children:d("SYDPrereqsWidgetTextContent").AM_L2_CAPI_UPSELL_POPOVER_BODY_INLINE},"0"),j.jsx("br",{}),j.jsx("br",{}),j.jsx(c("GeoText.react"),{children:h._("u5f00u59cbu8bbeu7f6eu540euff0cu4f60u7684u8fdbu5ea6u4f1au4fddu5b58u5728{=m2}u4e2du3002",[h._implicitParam("=m2",j.jsx(c("GeoLink.react"),{onClick:function(){d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.IPM_GO_TO_ACCOUNT_OVERVIEW,d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_ACCOUNT_OVERVIEW,b),m()},children:h._("u5e10u6237u6982u89c8")}))])})],onRedirect:c("emptyFunction"),onToggle:function(){return d("PrereqsLoggingUtils").logPrereqsImpression(d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE_POPOVER,b)}})]}),j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",xstyle:c("AdsManagerL2ConversionsAPINoticeStyles").linkPadding,children:[j.jsx(c("GeoLink.react"),{"data-testid":void 0,onClick:function(){v(),d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.IPM_CAPI_INLINE_OPEN_FLOW,d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE,b)},children:d("ConversionsAPITextContent").getAML2ConversionsAPIInlineSetupNoticeLinkText()}),g&&j.jsx(c("AdsManagerL2ConversionsAPISave4LaterContent.react"),{adAccountID:e.account_id,source:d("PrereqsLoggingConstants").PrerequisitesLocation.IPM_CAPI_INLINE,xstyle:c("geoMargin").start12})]})]})})})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a,null,{containerName:f.id});g["default"]=b}),98);
-----
AdCenterGeoAdPreviewIframe.react",["CometCompatBroker","CometFeedStoryGlimmer.react","GeoCard.react","LWICometLoggingConstants","LegacyHidden","XAdPreviewController","areEqual","emptyFunction","getCompatIframeSource","react","useCometUniqueID","useCompatDialogEventListener"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=b.useLayoutEffect,l=b.useMemo,m=b.useRef,n=b.useState;function a(a){var b=a.adAccountID,e=a.adCreativeOptimizationType,f=a.adCreativeOptimizationValue,g=a.adFormat,o=a.creativeSpecForPreview,p=c("useCometUniqueID")(),q=m(new(c("CometCompatBroker"))());a=n(null);var r=a[0],s=a[1];a=i(function(a){if(a){a=a.data;if(typeof a==="object"){var b=a==null?void 0:a.format,c=a==null?void 0:a.height;a=a==null?void 0:a.width;b===g&&typeof c==="number"&&c>0&&typeof a==="number"&&a>0&&(c!==(r==null?void 0:r.height)||a!==(r==null?void 0:r.width))&&s({height:c,width:a})}}},[g,r]);var t=n(!0),u=t[0],v=t[1];c("useCompatDialogEventListener")(q.current,"preview-height",a);k(function(){q.current.init(c("emptyFunction"),p);return q.current.cleanup},[p]);t=l(function(){var a,i=c("XAdPreviewController").getURIBuilder().setFBID("ad_account_id",b).setEnum("ad_creative_optimization_type",e).setEnum("ad_creative_optimization_value",f).setEnum("ad_preview_format",g).setFBID("app_id",d("LWICometLoggingConstants").APP_ID).setString("creative_spec",o).getURI().toString();i=c("getCompatIframeSource")(i,p);return h.jsx("iframe",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x6ikm8r x10wlt62 x123j3cw x1mpkggp xs9asl8 x1t2a60a",onLoad:function(){v(!1)},src:i,style:{height:Math.max((a=r==null?void 0:r.height)!=null?a:0,142),width:Math.max((a=r==null?void 0:r.width)!=null?a:0,320)}},i)},[b,e,f,g,r==null?void 0:r.height,r==null?void 0:r.width,o,p]);j(function(){v(!0)},[b,g,o]);return h.jsxs("div",{className:"x78zum5 x1nhvcw1 xg80ozm",children:[u&&h.jsx("div",{className:"xh3wvx0 xh8yej3",children:h.jsx(c("CometFeedStoryGlimmer.react"),{})}),h.jsx(c("LegacyHidden"),{mode:u?"hidden":"visible",children:h.jsx(c("GeoCard.react"),{children:t})})]})}a.displayName=a.name+" [from "+f.id+"]";e=h.memo(a,c("areEqual"));g["default"]=e}),98);
-----
LWICometCTAWhatsAppSMBEnforcingErrorWrapper.react",["AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsProductFlows","CometRelay","LWICometCTAWhatsAppSMBEnforcingErrorWrapper_page.graphql","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometNoticeCardWrapper.react","LWICometWhatsAppAccountExperiments","castToEnum","getJSEnumSafe","react","useLWICometWhatsAppSMBGetStarted","useLWILoggerContext","useLWINoticesContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useCallback;function a(a){var e=a.enableListener,f=a.goal,g=a.legacyAccountID,k=a.objective;a=a.queryRef;var l=c("useLWINoticesContext")();l=l.notices;a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometCTAWhatsAppSMBEnforcingErrorWrapper_page.graphql"),a);var m=c("useLWILoggerContext")(),n=m.flow,o=m.pageID;m=m.targetID;g={ad_account_id:g,ads_lwi_goal:c("castToEnum")(f,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),k),page_id:o,post_id:m,product_flow:c("castToEnum")(n,c("ClickToWhatsAppAdsProductFlows"),null),source_app_id:d("LWICometLoggingConstants").APP_ID};f=a==null?void 0:a.connected_whatsapp_number;k=a==null?void 0:a.connected_whatsapp_number_type;o=a==null?void 0:a.whatsapp_initial_country_code;m=c("useLWINoticesContext")();var p=m.removeGetResponseNotice;n=j(function(){d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.forEach(function(a){return p("CALL_TO_ACTION",a)})},[p]);c("useLWICometWhatsAppSMBGetStarted")({countryCode:o,ctwaLoggerContextData:g,enableListener:e,onUpsellSuccess:n,whatsAppDisplayNumber:f,whatsAppNumber:f,whatsAppNumberType:k});return!d("LWICometWhatsAppAccountExperiments").getIsWABizEnforcingExperimentV3Enabled(l.CALL_TO_ACTION)?null:i.jsx(c("LWICometNoticeCardWrapper.react"),{specElement:"CALL_TO_ACTION"})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,legacyAccountID:a.adAccountData.legacyAccountID,objective:a.objective}});g["default"]=e}),98);
-----
FBReelsViewerPlaceholder.react",["fbt","CometRouteRenderType","FBReelsCloseButton.react","FBReelsFeedbackBarPlaceholder.react","FBReelsLoggingConstants","FBReelsNavigationButtonsPlaceholder.react","ReelsVideoLoadingView.react","TetraText.react","react","useFBReelsProcessRoute","useOnBeforeUnload","useReelsLogger"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(){var a=d("CometRouteRenderType").useIsPushView(),b=c("useReelsLogger")(),e=b.exitViewerLog;b=c("useFBReelsProcessRoute")();var f=b.trackingString,g=b.videoID;c("useOnBeforeUnload")(function(){e(0,c("FBReelsLoggingConstants").CLOSE_REELS_GESTURE.UNKNOWN,[f],g)});return i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"xal61yo x5yr21d x10l6tqk xh8yej3"}),i.jsx("div",{className:""+(a?" xixxii4 x1heu26e xmhk92p":" xixxii4 xfylb8w xvt0np"),children:i.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"headlineEmphasized1",children:h._("Reels")})}),i.jsx("div",{className:"x6s0dn4 x1ey2m1c x78zum5 xds687c xl56j7k x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy",children:i.jsxs("div",{className:"x6s0dn4 x78zum5 x5yr21d xl56j7k xh8yej3",children:[i.jsxs(c("FBReelsNavigationButtonsPlaceholder.react"),{children:[i.jsx("div",{children:i.jsx(c("ReelsVideoLoadingView.react"),{reason:"Placeholder"})}),i.jsx("div",{className:"xuk3077 x78zum5 x5yr21d x1hq5gj4 xt1id46",children:i.jsx(c("FBReelsFeedbackBarPlaceholder.react"),{})})]}),i.jsx(c("FBReelsCloseButton.react"),{})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
MStoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={LIGHT_WEIGHT:"light_weight",TEXT:"text"};f.REPLY_TYPES=a}),66);
-----
MStoriesPostReplyInstance",["cx","fbt","Bootloader","CSS","MFBStoriesGatingConfig","MFBStoriesReactionAnimationConfig","MStoriesLoggingConstants","MStoriesStratcomEvents","MStoriesToast","MStoriesUtils","MViewport","Run","Stratcom","promiseDone","throttle","uniqueID"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=function(a){switch(a){case 1:return"ud83dudc4d";case 2:return"u2764ufe0f";case 4:return"ud83dude06";case 3:return"ud83dude2e";case 7:return"ud83dude22";case 8:return"ud83dude21";case 16:return"ud83eudd17";default:return null}},k=(a={},a[1]="LIKE",a[2]="LOVE",a[4]="HAHA",a[3]="WOW",a[7]="SORRY",a[8]="ANGER",a[16]="SUPPORT",a),l=100;b=function(){a.init=function(b){var c=a.getInstance();c.$1=babelHelpers["extends"]({},b);this.$4=c};a.getInstance=function(){this.$4||(this.$4=new a());return this.$4};function a(){var b=this;this.$2=null;this.$5=function(){b.$3.forEach(function(a){return a.remove()}),b.$3=[],a.$4=null};this.$6=function(){b.$2&&b.$2.dispose(),b.$2=null};this.$3=[];this.listenForSendButton();this.listenForEmojiOrLightweightReaction();this.listenForReplyInput();this.listenForSwipeReply();this.listenForProfileDiv();this.listenForBucketTransition();this.listenForScrollableArea();d("Run").onLeave(this.$5)}var b=a.prototype;b.listenForBucketTransition=function(){this.$3.push(c("Stratcom").listen(d("MStoriesStratcomEvents").NEXT_BUCKET,null,this.$5),c("Stratcom").listen(d("MStoriesStratcomEvents").PREV_BUCKET,null,this.$5))};b.listenForScrollableArea=function(){this.$3.push(c("Stratcom").listen("MScrollArea:create",null,function(b){b=b.getData();b.element.id==="mtouch-stories-reply-scroll-area"&&(a.getInstance().$2=b.scrollarea)})),this.$3.concat(d("MStoriesUtils").listenForThreadTransition(this.$6))};b.listenForSendButton=function(){var a=this,b="",e=c("Stratcom").listen("input","m-stories-reply-input",function(d){b=d.getTarget().value,b=b&&b.trim(),b&&b.length>0?(a.$1.sendButton.disabled=!1,c("CSS").addClass(a.$1.sendButton,"highlight")):(a.$1.sendButton.disabled=!0,c("CSS").removeClass(a.$1.sendButton,"highlight"))}),f=c("Stratcom").listen("click","m-stories-reply-send-button",function(){if(!b||b.length===0)return;c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(e){c("promiseDone")(e.sendMessage(a.$1.threadId,b,a.$1.postType,a.$1.ownerID,d("MStoriesLoggingConstants").REPLY_TYPES.TEXT))},"MStoriesPostReplyInstance");a.$1.sendButton.disabled=!0;a.$1.input.blur();c("CSS").removeClass(a.$1.sendButton,"highlight");c("MStoriesToast").showReplySentSuccessToast(null,!1)}),g=c("Stratcom").listen("blur","m-stories-reply-input",function(){return c("CSS").addClass(a.$1.sendButton,"hidden_elem")}),h=c("Stratcom").listen("focus","m-stories-reply-input",function(){return c("CSS").removeClass(a.$1.sendButton,"hidden_elem")});this.$3.push(f,e,g,h)};b.listenForEmojiOrLightweightReaction=function(){var a=this;this.$3.push(c("Stratcom").listen("blur","m-stories-reply-input",function(){return c("CSS").show(a.$1.emoji)}));this.$3.push(c("Stratcom").listen("focus","m-stories-reply-input",function(){return c("CSS").hide(a.$1.emoji)}));this.$3.push(c("Stratcom").listen("MScrollArea:scrollstart",null,function(){c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE_WITH_COVER)}));this.$3.push(c("Stratcom").listen("MScrollArea:scrollend",null,function(a){a=a.getData();a.scrollarea.getScrollLeft()<=0&&c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PLAY)}));var b=function(b){var d;d=(d=b.getTarget())!=null?(d=d.firstChild)!=null?(d=d.dataset)!=null?d.reaction:d:d:d;if(!d)return;var e=j(Number(d));if(!e)return;c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(b){c("promiseDone")(b.sendLightweightReaction(a.$1.threadId,a.$1.postType,a.$1.ownerID,e))},"MStoriesPostReplyInstance");if(c("MFBStoriesGatingConfig").showLWRTrails){var f="
"+c("MFBStoriesReactionAnimationConfig").uris[d]+"&"+c("uniqueID")(),g=k[d];c("MStoriesToast").newShowReactionSentSuccessToast(f,g,b.getTarget())}else{f=c("MFBStoriesReactionAnimationConfig").uris[d];g="reaction_type_"+d;c("MStoriesToast").showReactionSentSuccessToast(f,g)}};c("MFBStoriesGatingConfig").showLWRTrails?this.$3.push(c("Stratcom").listen("click","m-stories-reply-reaction-li",c("throttle")(b,l))):this.$3.push(c("Stratcom").listen("click","m-stories-reply-reaction-li",b));this.$3.push(c("Stratcom").listen("click","m-stories-reply-emoji-li",function(b){var e=(b=b.getTarget())!=null?(b=b.firstChild)!=null?b.data:b:b;if(!e||e.length===0)return;c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(b){c("promiseDone")(b.sendMessage(a.$1.threadId,e,a.$1.postType,a.$1.ownerID,d("MStoriesLoggingConstants").REPLY_TYPES.LIGHT_WEIGHT))},"MStoriesPostReplyInstance");c("MStoriesToast").showReplySentSuccessToast(e)}))};b.listenForReplyInput=function(){var b=this,e=i._("{Placeholder string}",[i._param("Placeholder string","Reply...")]).toString(),f=function(a){return i._("Reply to {Story"s owner name}",[i._param("Story"s owner name",a)]).toString()},g=c("Stratcom").listen("focus","m-stories-reply-input",function(){document.removeEventListener("touchmove",d("MStoriesUtils").touchMoveListener);var e=a.getInstance().$2;e&&e.reset();c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE_WITH_COVER,null);e=b.$1.input.value;b.$1.ownerName&&(!e||e.length===0)&&(b.$1.input.placeholder=f(b.$1.ownerName))}),h=c("Stratcom").listen("blur","m-stories-reply-input",function(){document.addEventListener("touchmove",d("MStoriesUtils").touchMoveListener,{passive:!1});d("MViewport").scrollToTop();c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null);var a=b.$1.input.value;(!a||a.length===0)&&(b.$1.input.placeholder=e)}),j=c("Stratcom").listen("click","m-stories-reply-send-button",function(){b.$1.input.value="",b.$1.input.placeholder=e}),k=c("Stratcom").listen("keyup","m-stories-reply-input",function(a){var c=a.getRawEvent().key;c==="Enter"&&(a.prevent(),b.$1.sendButton.click())});this.$3.push(j,g,h,k)};b.listenForSwipeReply=function(){var a=this,b=c("Stratcom").listen(d("MStoriesStratcomEvents").SWIPE_REPLY,null,function(){if(!c("MFBStoriesGatingConfig").enableSwipeReply)return;a.$1.input.focus()});this.$3.push(b)};b.listenForProfileDiv=function(){var a=this,b=c("Stratcom").listen("blur","m-stories-reply-input",function(){return c("CSS").addClass(a.$1.profilePicDiv,"hidden_elem")}),d=c("Stratcom").listen("focus","m-stories-reply-input",function(){return c("CSS").removeClass(a.$1.profilePicDiv,"hidden_elem")});this.$3.push(b,d)};return a}();g["default"]=b}),98);
-----
MStoriesOptionConfirmationButtons",["cx","fbt","Bootloader","CSS","CloseStoryGesture","DeleteMediaAttemptedFalcoEvent","FBLogger","FBStoriesLoggingConstants","MStoriesBucketViewer","MStoriesDisplayUtils","MStoriesGating","MStoriesLoggingUtils","MStoriesStratcomEvents","MStoriesToast","MStoriesUIConstants","MStoriesUtils","MStoriesViewerSheetThreadRelatedInfo","Run","Stratcom","promiseDone"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=2e3;a=function(){function a(){var b=this;this.$6=!1;this.$7=null;this.$8=null;this.$14=function(){b.$1.forEach(function(a){return a.remove()}),a.$9=null};this.$1=[c("Stratcom").listen("click","m-stories-mute-confirm",function(a){b.$10(),c("Stratcom").invoke(d("MStoriesStratcomEvents").MUTE_BUCKET,null),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null),b.$4&&c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(a){a.muteStoryOwner(b.$4)},"MStoriesOptionConfirmationButtons")}),c("Stratcom").listen("click","m-stories-mute-cancel",function(a){b.$10(),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null)}),c("Stratcom").listen("click","m-stories-delete-confirm",function(a){b.$11(d("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA);b.$12();c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null);c("MStoriesToast").showDefaultToast(i._("Deleted"),j);c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE,null);var e=b.$5;d("MStoriesViewerSheetThreadRelatedInfo").addDeletedThreadIDs(e);var f=function(){d("MStoriesViewerSheetThreadRelatedInfo").removeDeletedThreadIDs(e)};c("Bootloader").loadModules(["MStoriesMutationAPIs"],function(a){c("MStoriesBucketViewer").isArchiveStoryViewer()?c("promiseDone")(a.deleteArchivedStoryCard(b.$8),f,f):c("promiseDone")(a.deleteThread(e),f,f),c("Stratcom").invoke(d("MStoriesStratcomEvents").DELETE_THREAD,null,null)},"MStoriesOptionConfirmationButtons")}),c("Stratcom").listen("click","m-stories-delete-cancel",function(a){b.$12(),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null)}),c("Stratcom").listen("click","m-stories-close-story-button",function(a){if(b.$6)return;b.$6=!0;a=a.getData()||{};d("MStoriesLoggingUtils").logCloseStory(d("MStoriesGating").shouldMockLogging?c("MStoriesBucketViewer").getInstance().getInsightsLoggingData():{thread_id:b.$5,media_type:b.$3,owner_id:b.$4,owner_type:null},(a=c("CloseStoryGesture").fromString(a.gesture))!=null?a:c("CloseStoryGesture").CLOSE_BUTTON_EXIT,{media_id:b.$2});c("Stratcom").invoke(d("MStoriesStratcomEvents").MEDIA_PAUSE,null,null);d("MStoriesDisplayUtils").toggleLoadingScreen(!0,!0);window.setTimeout(function(){d("MStoriesUtils").goBackToHomepage(b.$7==="HIGHLIGHTED_STORY")},d("MStoriesUIConstants").REDIRECT_DELAY_IN_MS)}),c("Stratcom").listen("click","m-stories-option-close",function(){b.$13(),c("Stratcom").invoke(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null)}),c("Stratcom").listen(d("MStoriesStratcomEvents").THREAD_MODAL_HIDE,null,function(){b.$12(),b.$10()})];d("Run").onLeave(this.$14)}a.getInstance=function(){this.$9||(this.$9=new a());return this.$9};var b=a.prototype;b.$10=function(){var a=document.getElementById("m-stories-mute-bucket-confirm-dialog");a&&c("CSS").addClass(a,"_69p_")};b.$13=function(){var a=document.getElementById("mtouch-story-option-menu");a&&c("CSS").addClass(a,"_68j_")};b.$11=function(a,b){var e=this;b===void 0&&(b=null);a===d("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA?(this.$4==null&&c("FBLogger")("fbstories").mustfix("Expecting non-null _storyOwnerID"),c("DeleteMediaAttemptedFalcoEvent").log(function(){var a;return{media_id:e.$2,media_type:e.$3,story_owner:(a=e.$4)!=null?a:"",thread_id:e.$5}})):c("Bootloader").loadModules(["MStoriesTypedLogger"],function(c){new c().setName(a).setStoryOwner(e.$4).setMediaType(e.$3).setClientMediaID(e.$2).setCardID(e.$5).setGesture(b).log()},"MStoriesOptionConfirmationButtons")};b.$12=function(){var a=document.getElementById("m-stories-delete-thread-confirm-dialog");a&&c("CSS").addClass(a,"_69p_")};a.initMuteConfirmationButtons=function(b){var c=a.getInstance();c.$4=b.storyOwnerID};a.init=function(b){var c=a.getInstance();c.$5=b.threadID;c.$4=b.storyOwnerID;c.$2=b.mediaID;c.$3=b.mediaType;c.$8=b.storyGraphQLID;c.$7=b.storyCardType;c.$6=!1};return a}();g["default"]=a}),98);
-----
MStoriesLoggingUtils",["AttemptToSendReplyFalcoEvent","Banzai","BanzaiLogger","CloseStoryFalcoEvent","CloseStoryGesture","FBStoriesLoggingConstants","MStoriesSessionInfo","OpenMediaFalcoEvent","OpenStoryFalcoEvent","StoriesInteractiveFeedbackFalcoEvent","StoryNavigationFalcoEvent","WebSession"],(function(a,b,c,d,e,f){"use strict";var g=!1;function h(a,c,d){return{extra_client_data:JSON.stringify({story_size:c.number_of_media}),gesture:d,name:a,number_media:c==null?void 0:c.number_of_media,media_index:c==null?void 0:c.media_index,media_type:c.media_type,story_owner:c.owner_id,story_owner_type:c.owner_type,tray_session_id:b("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:b("MStoriesSessionInfo").getViewerSessionID(),client_viewer_session_id:b("MStoriesSessionInfo").getViewerSessionID(),card_id:c.thread_id,thread_id:c.thread_id,source:b("MStoriesSessionInfo").getSource(),product_surface:"mtouch",stories_tray_feed_unit_tracking_string:b("MStoriesSessionInfo").getFeedUnitTrackingString()}}function i(a){return{gesture:a.gesture||"",has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:a.number_viewers,source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:a.story_index,story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:a.thread_count,thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string}}e.exports={resetCanLogCloseStoryExit:function(){g=!1},logStoryNavigation:function(a,c,d){d===void 0&&(d={});a=h(b("FBStoriesLoggingConstants").ACTION_STORY_NAVIGATION,a,c);a=babelHelpers["extends"]({},d,a);var e={gesture:a.gesture,media_id:a.client_media_id,media_type:a.media_type,number_viewers:a.number_viewers,source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:a.story_index,story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:a.thread_count,thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("StoryNavigationFalcoEvent").log(function(){return e});b("Banzai").post("fb_stories_insights_logging_banzai",a)},logCloseStory:function(a,c,d){d===void 0&&(d={});if(g&&b("CloseStoryGesture").isExitGesture(c))return;a=h(b("FBStoriesLoggingConstants").ACTION_CLOSE_STORY,a,c);a=babelHelpers["extends"]({},d,a);var e={gesture:a.gesture,has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:(d=a.number_viewers)==null?void 0:d.toString(),source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:(d=a.story_index)==null?void 0:d.toString(),story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:(d=a.thread_count)==null?void 0:d.toString(),thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("CloseStoryFalcoEvent").log(function(){return e});b("Banzai").post("fb_stories_insights_logging_banzai",a);b("CloseStoryGesture").isExitGesture(c)&&(g=!0)},log:function(a){a.source==="in_feed"&&a.stories_tray_feed_unit_tracking_string==null&&(a.stories_tray_feed_unit_tracking_string=b("MStoriesSessionInfo").getFeedUnitTrackingString()),b("BanzaiLogger").log("DirectMessagingLoggerConfig",a)},logWithFalco:function(a){a.source==="in_feed"&&a.stories_tray_feed_unit_tracking_string==null&&(a.stories_tray_feed_unit_tracking_string=b("MStoriesSessionInfo").getFeedUnitTrackingString());if(a.name==="open_media"){var c={gesture:a.gesture,media_id:a.client_media_id,media_type:a.media_type,number_viewers:a.number_viewers,source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:a.story_index,story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:a.thread_count,thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("OpenMediaFalcoEvent").log(function(){return babelHelpers["extends"]({},c,{sid:b("WebSession").getId()})})}else if(a.name==="open_story"){var d,e={gesture:a.gesture,has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:(d=a.number_viewers)==null?void 0:d.toString(),source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:(d=a.story_index)==null?void 0:d.toString(),story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:(d=a.thread_count)==null?void 0:d.toString(),thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("OpenStoryFalcoEvent").log(function(){return e})}else if(a.name==="close_story"){var f={gesture:a.gesture,has_new_content:a.has_new_content,media_id:a.client_media_id,media_type:a.media_type,number_viewers:(d=a.number_viewers)==null?void 0:d.toString(),source:a.source,stories_tray_feed_unit_tracking_string:a.stories_tray_feed_unit_tracking_string,story_index:(d=a.story_index)==null?void 0:d.toString(),story_owner:a.story_owner,story_owner_type:a.story_owner_type,story_size:(d=a.thread_count)==null?void 0:d.toString(),thread_id:a.card_id,tray_session_id:a.tray_session_id,viewer_session_id:a.client_viewer_session_id,tracking_string:a.tracking_string};b("CloseStoryFalcoEvent").log(function(){return f})}else a.name==="open_seen_summary"?b("StoriesInteractiveFeedbackFalcoEvent").log(function(){return{action:b("FBStoriesLoggingConstants").ACTION_OPEN_SEEN_SUMMARY,thread_id:a.card_id,tray_session_id:b("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:b("MStoriesSessionInfo").getViewerSessionID(),viewer_sheet_session_id:b("MStoriesSessionInfo").getViewerSheetSessionID(),viewer_count:a.number_viewers,new_viewer_count:a.new_viewer_count,viewer_sheet_open_source:a.viewer_sheet_open_source}}):a.name===b("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT?b("AttemptToSendReplyFalcoEvent").log(function(){var b=i(a);return{gesture:b.gesture,media_id:b.media_id,media_type:b.media_type,number_viewers:b.number_viewers,source:b.source,story_index:b.story_index,story_owner:b.story_owner,story_owner_type:b.story_owner_type,story_size:b.story_size,thread_id:b.thread_id,tray_session_id:b.tray_session_id,viewer_session_id:b.viewer_session_id,tracking_string:b.tracking_string}}):b("BanzaiLogger").log("DirectMessagingLoggerConfig",a)}}}),null);
-----
MStoriesMutationAPIs",["Bootloader","CameraPostDirectMarkSeenMutation","CameraPostReplyMutation","CurrentUser","FBLogger","FBStoriesAudienceModeMutationCallMutation","FBStoriesDeleteMutation","FBStoriesLoggingConstants","FBStoriesMuteMutation","FBStoriesUnifiedSeenReceiptLastSeenTimeMutation","FBStoriesVotePollMutation","MStoriesLoggingUtils","MStoriesSessionInfo","Promise","ReactionStickerStoryCardReactMutation","RelayFBEnvironment","RelayModern","StoriesArchiveDeletionMutation","UnifiedStoriesArchiveSavingModeMutation","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h="LIGHT_WEIGHT",i=function(a,b){b=(b==null?void 0:b.errors)||[];b.forEach(function(d){var b=d==null?void 0:d.error;if(b instanceof Error)c("FBLogger")("fbstories").catching(b).mustfix(a);else{b=JSON.stringify(b);b==null&&(b=JSON.stringify(d));b&&b.length>500&&(b=b.substr(0,500));c("FBLogger")("fbstories").mustfix(a+" "+b)}})},j=function(a,b,e,f,g){c("Bootloader").loadModules(["MStoriesTypedLogger","StoriesInteractiveFeedbackFalcoEvent"],function(c,h){var i=null,j=b==null;switch(a){case"reaction_sticker_react":i=d("FBStoriesLoggingConstants").ACTION_SEND_REACTION_STICKER_INTERACTED;break}g!=null&&h.log(function(){return{action:d("FBStoriesLoggingConstants").ACTION_REPLY_ATTEMPT_COMPLETED,story_reply_type:a,success:j,thread_id:g,tray_session_id:d("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:d("MStoriesSessionInfo").getViewerSessionID()}});i!=null&&new c().setCameraPostType(e).setName(i).setStoryOwner(f).setReplyType(a).setCardID(g).log()},"MStoriesMutationAPIs")};e=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesDeleteMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),story_thread_ids:[a]}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};f=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("StoriesArchiveDeletionMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),archived_story_card_id:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};var k=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesMuteMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),user_id:a,should_unfollow_user_story:!0}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})},l=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesMuteMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),user_id:a,should_unfollow_user_story:!1}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})},m=function(a,e,f,g,h){d("MStoriesLoggingUtils").logWithFalco({card_id:a,name:d("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT,story_owner:g,tray_session_id:d("MStoriesSessionInfo").getTraySessionID(),viewer_session_id:d("MStoriesSessionInfo").getViewerSessionID()});var k={client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),thread_id:a,message:e};return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("CameraPostReplyMutation"),variables:{input:k},onCompleted:function(c){j(h,null,f,g,a);return b(c)},onError:function(b){i("Error sending message",b),j(h,b,f,g,a),e(b)}})})},n=function(a,e,f,g,k){var l="light_weight",m={client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),thread_id:a,message:g,story_reply_type:h,is_lightweight_reaction:!0,lightweight_reaction_actions:{reaction:g,offsets:[k||0]}};return new(b("Promise"))(function(b,g){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("CameraPostReplyMutation"),variables:{input:m},onCompleted:function(c){j(l,null,e,f,a);return b(c)},onError:function(b){i("Error sending message",b),j(l,b,e,f,a),g(b)}})})},o=function(a,e){var f={client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),thread_id:a,story_id:e};return new(b("Promise"))(function(a,b){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("CameraPostDirectMarkSeenMutation"),variables:{input:f},onCompleted:function(c,d){return d!=null&&d.length>0?b(d[0]):a(c)},onError:function(a){b(a)}})})},p=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesAudienceModeMutationCallMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),audience_mode:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})},q=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("UnifiedStoriesArchiveSavingModeMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),saving_mode:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};function a(a,e,f,g){return new(b("Promise"))(function(b,h){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesVotePollMutation"),variables:{input:{client_mutation_id:c("uuid")(),story_card_poll_id:a,option:e,actor_id:c("CurrentUser").getID()}},onCompleted:function(a){j("poll_vote",null,null,g,f);return b(a)},onError:function(a){i("Error sending message",a),j("poll_vote",a,null,g,f),h(a)}})})}var r=function(a,e,f,g){return new(b("Promise"))(function(b,h){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("ReactionStickerStoryCardReactMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),story_card_reaction_sticker_id:a,count:e}},onCompleted:function(a){j("reaction_sticker_react",null,null,f,g);return b(a)},onError:function(a){i("Error sending message",a),j("reaction_sticker_react",a,null,f,g),h(a)}})})},s=function(a){return new(b("Promise"))(function(b,e){d("RelayModern").commitMutation(c("RelayFBEnvironment"),{mutation:c("FBStoriesUnifiedSeenReceiptLastSeenTimeMutation"),variables:{input:{client_mutation_id:c("uuid")(),actor_id:c("CurrentUser").getID(),story_id:a}},onCompleted:function(a,c){return c!=null&&c.length>0?e(c[0]):b(a)},onError:function(a){e(a)}})})};g.deleteThread=e;g.deleteArchivedStoryCard=f;g.muteStoryOwner=k;g.unmuteStoryOwner=l;g.sendMessage=m;g.sendLightweightReaction=n;g.markThreadSeen=o;g.changeAudienceMode=p;g.updateArchiveSavingMode=q;g.updatePollVotesForOption=a;g.reactToSticker=r;g.updateStorySeenReciept=s}),98);
-----
MStoriesProductionTrayAsync",["cx","Bootloader","CSS","MFBStoriesGatingConfig","MStoriesProductionInfo","MStoriesProductionTrayUtils","MStoriesStratcomEvents","MStoriesToast","MStoriesTrayUtils","MStoriesUIConstants","MStoriesUploadStatus","Stratcom"],(function(a,b,c,d,e,f,g){"use strict";var h={handleFailedAddToStoryPogSelected:function(){if(b("MStoriesProductionInfo").getUploadStatus()!==b("MStoriesUploadStatus").FAILED)return!1;var a=document.getElementById("m-stories-production-input");if(a){a.click();b("MStoriesProductionInfo").setUploadStatus(b("MStoriesUploadStatus").IDLE);b("MStoriesProductionTrayUtils").updateProductionPog();return!0}return!1},uploadCB:function(a){var c=b("MStoriesProductionTrayUtils").getAnimationPog();if(a)b("MStoriesProductionInfo").setUploadStatus(b("MStoriesUploadStatus").IDLE),b("MFBStoriesGatingConfig").trayType!=="circular"||c&&c.id==="m-stories-add-item-pog"?b("MStoriesTrayUtils").refreshTray(function(){h._cleanupUploading(),b("MStoriesToast").showDefaultToast(b("MStoriesUIConstants").UPLOAD_SUCCESSFUL)},function(){h._cleanupUploading()}):(h._cleanupUploading(),b("MStoriesToast").showDefaultToast(b("MStoriesUIConstants").UPLOAD_SUCCESSFUL)),c&&b("CSS").addClass(c,"_26w9"),b("Stratcom").invoke(b("MStoriesStratcomEvents").UPLOAD_SUCCESS,null,null);else{b("MStoriesProductionInfo").setUploadStatus(b("MStoriesUploadStatus").FAILED);if(c&&c.id==="m-stories-add-item-pog"){var d=document.getElementById("m-stories-add-item");d&&b("CSS").addClass(d,"no-after");c&&b("CSS").removeClass(c,"hide-border")}h._cleanupUploading();b("Stratcom").invoke(b("MStoriesStratcomEvents").UPLOAD_FAILED,null,null)}b("Bootloader").loadModules(["FBStoriesLoggingConstants","MStoriesTypedLogger"],function(b,c){b=a?b.ACTION_SEND_STORY_SUCCEEDED:b.ACTION_SEND_STORY_FAILED;c=new c().setName(b);c.log()},"MStoriesProductionTrayAsync")},_cleanupUploading:function(){var a=document.getElementById("m-stories-add-item-pog"),c=document.getElementById("m-stories-owner-bucket-pog");a&&b("CSS").removeClass(a,b("MStoriesProductionTrayUtils").getUploadingClass());c&&b("CSS").removeClass(c,b("MStoriesProductionTrayUtils").getUploadingClass());a=document.getElementById("m-stories-add-item");a&&b("CSS").removeClass(a,"disable");b("MStoriesProductionTrayUtils").updateProductionPog()}};e.exports=h}),null);
-----
LWICometManagementIntegrityBanner.react",["AdIntegrityValidationBannerSection.react","AdIntegrityValidationLoggingConstants","CometRelay","LWICometLoggingConstants","LWICometManagementIntegrityBanner_boostedComponent.graphql","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e,f;a=a.boostedComponent;a=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometManagementIntegrityBanner_boostedComponent.graphql"),a);e=(e=a.spec)==null?void 0:(e=e.ad_account)==null?void 0:e.legacy_account_id;f=(f=a.campaign_group)==null?void 0:(f=f.all_campaign_group_adgroups)==null?void 0:(f=f.edges[0])==null?void 0:(f=f.node)==null?void 0:f.integrity_validation;a=(a=a.spec)==null?void 0:(a=a.adgroup_spec)==null?void 0:a[0];a=a==null?void 0:a.adgroup_id;return e!=null&&a!=null&&f!=null?i.jsx(c("AdIntegrityValidationBannerSection.react"),{actionProps:{textManualReviewRequested:!1},adCreationStage:d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.POSTCREATE,appID:d("LWICometLoggingConstants").APP_ID,callsite:"LWI_WWW",legacyAccountID:e,selectedAdgroupID:a,validation:f}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
ZenonConnectionStatusContainer.react",["ZenonActorHooks","ZenonCallsHooks","ZenonCallsModelTypes","ZenonConnectionStatus.react","ZenonConnectionStatusView.react","ZenonInitializationContext","ZenonLoggingConstants","ZenonThreadHooks","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;function k(a){var b=a.onStartCallClick;a=d("ZenonActorHooks").useZenonActor();a=a[0];var e=c("ZenonCallsHooks").useCallState(),f=c("ZenonCallsHooks").useEndCallReason(),g=c("ZenonCallsHooks").useCallParticipants(),k=d("ZenonThreadHooks").useOngoingCall(),l=j(c("ZenonInitializationContext"));l=l.signalingStatus;var m=d("ZenonConnectionStatus.react").JoinReadyState.Unknown;if(e!==d("ZenonCallsModelTypes").ZenonCallState.New)m=d("ZenonConnectionStatus.react").JoinReadyState.Ready;else switch(l){case"ready":m=d("ZenonConnectionStatus.react").JoinReadyState.Ready;break;case"timeout":m=d("ZenonConnectionStatus.react").JoinReadyState.Timeout;break;default:m=d("ZenonConnectionStatus.react").JoinReadyState.Unknown}var n=d("ZenonLoggingConstants").ZenonCallTrigger.MULTIWAY_POPUP_START_CALL_BUTTON;return h.jsx(d("ZenonConnectionStatus.react").ZenonConnectionStatus,{actorID:a,callState:e,endCallReason:f,hasOngoingCall:k,isP2P:!1,joinReadyState:m,onStartCall:i(function(){return b(n)},[n,b]),participants:g})}k.displayName=k.name+" [from "+f.id+"]";function a(a){a=a.joinCall;a=h.jsx(k,{onStartCallClick:a});var b=null;return h.jsx("div",{"aria-live":"assertive",role:"alert",children:h.jsx(c("ZenonConnectionStatusView.react"),{connectionStatus:a,escalationStatus:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometWhatsAppCreativeSection.react",["fbt","AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","LWICometAdgroupUtils","LWICometCTASection.react","LWICometCTWALoggerContext","LWICometCreativeBodyTextEditor.react","LWICometCreativeCarouselEditor.react","LWICometCreativeFormatSelector.react","LWICometCreativeHeadlineEditor.react","LWICometCreativeImageEditor.react","LWICometLoggingConstants","LWICometOptionalLoggingDataContext","LWICometSection.react","LWICometVideoThumbnailPicker.react","LWICometWhatsAppCreativeCatalogPreview.react","LWICometWhatsAppCreativeSection_catalog.graphql","LWICometWhatsAppMentionedInCreativWarning.react","LWICometWhatsAppPromoteCatalogToggle.react","castToEnum","getJSEnumSafe","lwiCometCreativeReducer","lwiCometWhatsAppCatalogCreativeReducer","qex","react","unrecoverableViolation","useLWICometBrandedTemplates","useLWICometImpressionLogger","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=e.useState,p=[];function a(a){var e=a.assetFeedSpecPlus,f=a.aux,g=a.boostedComponentInput,q=a.brandedTemplateSection,r=a.clientPreviewImageURL,s=a.ctaLinkHelperText,t=a.enableCarousel;t=t===void 0?!1:t;var u=a.hideLinkEditor;u=u===void 0?!1:u;var v=a.goal,w=a.objectStorySpec,x=a.objective,y=a.showCTA;y=y===void 0?!1:y;var z=a.showHeadline;z=z===void 0?!0:z;var A=a.additionalButtons;A=A===void 0?p:A;var B=a.overrideLabels;a=a.whatsAppCatalogFragmentKey;var C=c("useLWIReducers")([c("lwiCometCreativeReducer"),c("lwiCometWhatsAppCatalogCreativeReducer")]);if(w==null)throw c("unrecoverableViolation")("objectStorySpec cannot be null","pages_lwi");a=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometWhatsAppCreativeSection_catalog.graphql"),a);var D=a.connected_whatsapp_business_name,E=a.whatsapp_catalog_products,F=E.map(function(a){var b,c;b=a==null?void 0:(b=a.image)==null?void 0:(b=b.image)==null?void 0:b.uri;if(a.id==null||a.name==null||b==null)return null;var d="";if(((c=a.price)==null?void 0:c.amount)!=="0.00"){d=(c=a.price)==null?void 0:c.formatted_amount}return{formattedPrice:d,id:a.id,image:b,name:a.name}}).filter(Boolean),G=o(new Set(F.map(function(a){return a.id}).slice(0,10))),H=G[0];G=G[1];var I=m(function(){return d("LWICometAdgroupUtils").getCreativeDataFromSpec(e,w,r)},[e,r,w]),J=c("useLWILoggerContext")(),K=k(c("LWICometOptionalLoggingDataContext")),L=J.mergeOptionalLoggingData,M=J.pageID,N=m(function(){return{ad_account_id:null,ads_lwi_goal:c("castToEnum")(v,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),x),page_id:M,post_id:null,product_flow:null,source_app_id:String(d("LWICometLoggingConstants").APP_ID)}},[v,x,M]);J=o((J=c("qex")._("1399"))!=null?J:!1);var O=J[0],P=J[1],Q=n(I),R=n(e);l(function(){c("qex")._("1399")===!0&&C({catalogItems:F.filter(function(a){return H.has(a.id)}),type:"whatsapp_catalog_creative_reducer.update_catalog"})},[]);J=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},N,{event:O?"whatsapp_catalog_toggle_off":"whatsapp_catalog_toggle_on",event_info:Array.from(H).join(",")})),O?e!=null?C({assetFeedSpec:R.current,type:"whatsapp_catalog_creative_reducer.use_standard_asset_feed_creative"}):C({creative:Q.current,type:"whatsapp_catalog_creative_reducer.use_standard_creative"}):(Q.current=I,R.current=e,C({catalogItems:F.filter(function(a){return H.has(a.id)}),type:"whatsapp_catalog_creative_reducer.update_catalog"})),P(!O)};l(function(){var a=O?Array.from(H):null,b=K==null?void 0:K.whatsappCatalogProductIDs;if(a==null&&b==null)return;if(a!=null&&b!=null&&a.length===b.length&&a.every(function(a){return b.includes(a)}))return;L({whatsappCatalogProductIDs:a})},[K==null?void 0:K.whatsappCatalogProductIDs,O,H,L]);var S=c("useLWICometImpressionLogger")("creative_section_impression"),T=function(a){C({imageUrl:a,type:"creative_reducer.update_thumbnail"})},U=c("useLWICometBrandedTemplates")({pageID:M}),V=U[0];U=U[1];V=q&&V.size!==0&&U.length!==0?2:3;U=o(!1);var W=U[0],X=U[1];U=function(a){X((a=(a==null?void 0:a.includes(h._("WhatsApp").toString()))||(a==null?void 0:a.toLowerCase().includes("whatsapp")))!=null?a:!1)};var Y=n(I.bodyText);return j.jsxs(c("LWICometSection.react"),{fallback:j.jsx("div",{}),header:{aux:f,level:V,subtitle:h._("How do you want your ad to look?"),title:h._("Ad creative")},onImpression:S,specElement:"CREATIVE",children:[W?j.jsx("div",{className:"x1d52u69 xktsk01",children:j.jsx(c("LWICometWhatsAppMentionedInCreativWarning.react"),{})}):null,(f=q)!=null?f:null,j.jsx(c("LWICometCreativeFormatSelector.react"),{}),j.jsx(c("LWICometCreativeBodyTextEditor.react"),{initialBodyText:Y.current,label:B==null?void 0:B.bodyTextLabel}),E!=null&&E.length>0?j.jsx(c("LWICometWhatsAppPromoteCatalogToggle.react"),{isToggleOn:O,onToggle:J,pageRef:a}):null,O?j.jsx(c("LWICometCTWALoggerContext").Provider,{value:N,children:j.jsx(c("LWICometWhatsAppCreativeCatalogPreview.react"),{businessName:(V=D)!=null?V:"",catalogProducts:F,selectedProducts:H,setSelectedProducts:G})}):j.jsx(j.Fragment,{children:t===!0?j.jsxs(j.Fragment,{children:[j.jsx(c("LWICometCreativeCarouselEditor.react"),{assetFeedSpecPlus:e,onHeadlineValueChange:U,overrideLabels:B==null?void 0:B.carouselEditorLabels}),(e==null?void 0:e.carousel_cards)==null&&I.media!=null&&I.media.videoID!=null?j.jsx(c("LWICometVideoThumbnailPicker.react"),{onSelect:T,selectedThumbnailUrl:I.media.imageUrl,videoID:I.media.videoID}):null]}):j.jsxs(j.Fragment,{children:[j.jsx(c("LWICometCreativeImageEditor.react"),{additionalButtons:A,currentMedia:I.media}),I.media!=null&&I.media.videoID!=null?j.jsx(c("LWICometVideoThumbnailPicker.react"),{onSelect:T,selectedThumbnailUrl:I.media.imageUrl,videoID:I.media.videoID}):null,z?j.jsx(c("LWICometCreativeHeadlineEditor.react"),{initialHeadline:((S=Q.current)==null?void 0:S.headline)||I.headline,onValueChange:U}):null]})}),y&&g!=null?j.jsx(c("LWICometCTASection.react"),{boostedComponentInput:g,ctaLinkHelperText:s,hideLinkEditor:u}):null]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,clientPreviewImageURL:a.adgroupSpecs[a.selectedAdgroupID].clientPreviewImageURL,goal:a.goal,objective:a.objective,objectStorySpec:(a=a.adgroupSpecs[a.selectedAdgroupID].creative)==null?void 0:a.object_story_spec}});g["default"]=e}),98);
-----
StoriesTrayUtils",["StoriesLoggingConstants","XCometStoriesControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d,e){e===void 0&&(e=c("StoriesLoggingConstants").ACTION_SOURCE.TRAY);d={bucket_count:d,bucket_id:a,card_id:b===null?void 0:b,source:e};return c("XCometStoriesControllerRouteBuilder").buildURL(d)}g.getBucketURL=a}),98);
-----
FBReelsFeedbackInstagramComments.react",["fbt","ix","CometCard.react","CometLink.react","CometRelay","CometUnit.react","CometUnitHeader.react","FBReelsFeedbackInstagramComments_comments.graphql","FBReelsLoggingConstants","TetraButton.react","TetraText.react","fbicon","react","useReelsLogger"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l="https://www.facebook.com/help/386221115984344/?helpref=uf_share";function a(a){a=a.comments;var e=d("CometRelay").useFragment(j!==void 0?j:j=b("FBReelsFeedbackInstagramComments_comments.graphql"),a);a=c("useReelsLogger")();var f=a.feedbackInstagramDeeplinkClickedLog;a=e==null?void 0:(a=e.story)==null?void 0:a.url;if(a==null)return null;var g=function(){var a;f({destination:c("FBReelsLoggingConstants").INSTAGRAM_DEEPLINK_DESTINATION.VIEWER,entry:"Comet",media_id:(a=e==null?void 0:(a=e.story)==null?void 0:(a=a.feedback)==null?void 0:a.share_fbid)!=null?a:"",tracking:(a=e==null?void 0:(a=e.story)==null?void 0:a.tracking)!=null?a:""})};return k.jsx("div",{className:"xw7yly9 xktsk01 x1yztbdb x1d52u69",children:k.jsx(c("CometCard.react"),{background:"light-wash",children:k.jsxs("div",{className:"xyamay9 x1pi30zi x1l90r2v x1swvt13",children:[k.jsx(c("CometUnit.react"),{header:k.jsx(c("CometUnitHeader.react"),{headline:h._("__JHASH__-R0AQ0bhPxV__JHASH__"),level:3,paddingHorizontal:0,paddingTop:0}),spacing:12,type:"transparent",children:k.jsxs(c("TetraText.react"),{type:"body3",children:[h._("__JHASH__vIAnIWaT2rJ__JHASH__")," ",k.jsx(c("CometLink.react"),{href:l,target:"_blank",children:h._("__JHASH__ml5IFnYn3Yp__JHASH__")})]})}),k.jsx(c("TetraButton.react"),{icon:d("fbicon")._(i("547774"),16),label:h._("__JHASH__LTRMjnsj-9S__JHASH__"),linkProps:{target:"_blank",url:a},onPress:g})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PolarisBDUtils",["PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisWebStorage"],(function(a,b,c,d,e,f,g){"use strict";var h=60*60*1e3;function a(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0;a=a==="x"?b:b&3|8;return a.toString(16)})}function i(a,b,e){var f=c("PolarisWebStorage").getLocalStorage();if(!f){c("PolarisBDOperationLogHelper").logWarning(e,d("PolarisBDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR);return}f=c("PolarisWebStorage").setItemGuarded(f,b,a);f!=null&&c("PolarisBDOperationLogHelper").logWarning(e,d("PolarisBDLoggingConstants").OPERATIONS.WEB_STORAGE,{error:f.message})}function b(a,b,c){i(JSON.stringify(a),b,c)}function e(a,b,c){i(a.toString(),b,c)}function j(a,b){var e=c("PolarisWebStorage").getLocalStorage();if(!e){c("PolarisBDOperationLogHelper").logWarning(b,d("PolarisBDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR);return null}return e.getItem(a)}function f(a,b){a=j(a,b);return a!=null&&a!==""?JSON.parse(a):null}function k(a,b){a=j(a,b);if(a==null)return 0;b=Number.parseInt(a,10);return Number.isFinite(b)?b:0}g.MILLISECONDS_IN_HOUR=h;g.uuid=a;g.setEventInStorage=b;g.setTimestampInStorage=e;g.getEventFromStorage=f;g.getTimestampFromStorage=k}),98);
-----
PolarisBDClientConfig",["PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBDSignalWrapper"],(function(a,b,c,d,e,f,g){"use strict";var h="BDClientConfig",i=function(){function a(){this.reputationTier=0,this.staticSignalBufferSize=1,this.dynamicSignalBufferSize=1,this.biometricSignalBufferSize=1,this.staticSignals=[],this.dynamicSignals=[],this.biometricSignals=[],this.heartbeatSignal=new(c("PolarisBDSignalWrapper"))([],38001),this.bufferSizeBySignalIdMap={},this.periodicCollectionIntervalMs=Number.MAX_SAFE_INTEGER,this.signalConfigGenerationTimeStampMs=0,this.suspiciousTiersFlushDurationMs=Number.MAX_SAFE_INTEGER,this.allTiersFlushDurationMs=Number.MAX_SAFE_INTEGER,this.heartbeatIntervalMs=-1,this.parsingDone=!1,this.sid=-1,this.hbVersion="",this.$1=0,this.$2=0,this.$3=30,this.bufferSizeBySignalIdMap[38001]=1}var b=a.prototype;b.setClientReputationTier=function(a){this.reputationTier=a;return this};b.getClientReputationTier=function(){return this.reputationTier};b.setStaticSignalBufferSize=function(a){a>0?this.staticSignalBufferSize=a:c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"s"});return this};b.getStaticSignalBufferSize=function(){return this.staticSignalBufferSize};b.setDynamicSignalBufferSize=function(a){a>1?this.dynamicSignalBufferSize=a:c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a?a.toString():"0",type:"dbs"});return this};b.getDynamicSignalBufferSize=function(){return this.dynamicSignalBufferSize};b.setBiometricSignalBufferSize=function(a){a>1?this.biometricSignalBufferSize=a:c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"b"});return this};b.setSID=function(a){this.sid=a;return this};b.getHeartbeatVersion=function(){return this.hbVersion};b.getBiometricSignalBufferSize=function(){return this.biometricSignalBufferSize};b.setConfigGenerationTimeStamp=function(a){this.signalConfigGenerationTimeStampMs=a;return this};b.getConfigGenerationTimeStamp=function(){return this.signalConfigGenerationTimeStampMs};b.getHeartbeatIntervalMs=function(){return this.heartbeatIntervalMs};b.setAllTiersFlushDurationMinutes=function(a){a>0?this.allTiersFlushDurationMs=a*60*1e3:c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"fda"});return this};b.getAllTiersFlushDurationMs=function(){return this.allTiersFlushDurationMs};b.getFlushDurationByReputationTierMs=function(){return this.reputationTier===262144?this.allTiersFlushDurationMs:this.suspiciousTiersFlushDurationMs};b.addMultipleSignalsToClientConfig=function(a){var b=this;a.forEach(function(a){return b.addSignalToClientConfig(a)});return this};b.addSignalToClientConfig=function(a){var b=a.getSignalFlags(),d=a.getSignalId();if(d===38e3)return this;var e=new(c("PolarisBDSignalWrapper"))(b,d);if(d===38001){this.heartbeatSignal=e;return this}!b.includes(2)?this.staticSignals.push(e):b.includes(4)?this.biometricSignals.push(e):this.dynamicSignals.push(e);a.getBufferSize()>0&&(this.bufferSizeBySignalIdMap[a.getSignalId()]=a.getBufferSize());return this};b.setPeriodicCollectionIntervalSeconds=function(a){a>0?this.periodicCollectionIntervalMs=a*1e3:c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a?a.toString():"INF",type:"i"});return this};b.getPeriodicCollectionIntervalMs=function(){return this.periodicCollectionIntervalMs};b.getDynamicSignals=function(){return this.dynamicSignals};b.getStaticSignals=function(){return this.staticSignals};b.getBiometricSignals=function(){return this.biometricSignals};b.getHeartbeatSignal=function(){return this.heartbeatSignal};b.getBufferSizeBySignalId=function(a){return this.bufferSizeBySignalIdMap[a]};b.setParsingDone=function(a){this.parsingDone=a};b.isParsingDone=function(){return this.parsingDone};b.setHeartbeatConfig=function(a){if(a!=null){var b;this.hbVersion=a.hbv;this.heartbeatIntervalMs=a.hbi*60*1e3;this.$1=(b=a.hbcbc)!=null?b:this.$1;this.$2=(b=a.hbvbc)!=null?b:this.$2;this.$3=a.hbbi&&a.hbbi>0?a.hbbi:this.$3}return this};b.getHeartbeatCriticalBurstCount=function(){return this.$1};b.getHeartbeatVitalBurstCount=function(){return this.$2};b.getHeartbeatBurstIntervalMs=function(){return this.$3*1e3};return a}(),j=null;a={get:function(){j==null&&(j=new i());return j}};b=a;g["default"]=b}),98);
-----
PolarisBDSignalBuffer",["PolarisBDClientConfig","PolarisBDCollectionTypeEnum","PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBDSignalBufferData"],(function(a,b,c,d,e,f,g){"use strict";var h="BDSignalBuffer";function a(a,b,d){if(a in c("PolarisBDSignalBufferData"))return;var e=1;b!==void 0&&(e=b);c("PolarisBDSignalBufferData")[a]={values:[],max_buffer_size:e,signal_flags:(b=d)!=null?b:[]}}function i(a){if(a in c("PolarisBDSignalBufferData"))c("PolarisBDSignalBufferData")[a].values=[];else throw new Error("Tried to clear signal buffer that was not intialized:")}function b(a,b){if(a in c("PolarisBDSignalBufferData")){var e=c("PolarisBDSignalBufferData")[a],f=e.max_buffer_size;e.values.length>=f&&(e.signal_flags.includes(4)||e.values.shift());e.values.push(b);c("PolarisBDOperationLogHelper").logInfo(h,d("PolarisBDLoggingConstants").OPERATIONS.APPEND_SIGNAL,{id:a.toString()})}else{c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.APPEND_SIGNAL_FAIL,{id:a.toString()});throw new Error("Tried to append signal that was not intialized:")}}function e(){var a=c("PolarisBDClientConfig").get();a=a.getBiometricSignals();a.forEach(function(a){a.signalType in c("PolarisBDSignalBufferData")&&i(a.signalType)})}function f(a){var b;a=c("PolarisBDSignalBufferData")[a];b=a==null?void 0:(b=a.values)==null?void 0:b.length;return b!=null&&b>0?a.values[b-1]:{valueOrError:void 0}}function j(a){return c("PolarisBDSignalBufferData")[a].values}function k(a){var b={};for(var d=0;d
PolarisBDLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";({ERROR:"error",WARNING:"warning",INFO:"info"});a={KEY_NOT_FOUND:"key_not_found",APPEND_SIGNAL:"bd_append_signal",APPEND_SIGNAL_FAIL:"bd_append_signal_fail",HB_COLLECTED:"append_hb",HB_COLLECTION_FAILED:"hb_collection_failed",BD_EXCEPTION:"bd_exception",SIGNAL_NOT_IMPLEMENTED:"signal_not_implemented",SIGNAL_VALUE_NULL:"signal_value_null",EMPTY_SIGNAL_CONFIG:"empty_signal_config",INVALID_BUFFER_SIZE:"invalid_buffer_size",INVALID_DURATION:"invalid_duration",SIGNAL_FLAGS_MISSING:"signal_flags_missing",DYNAMIC_SIGNAL_COLLECTION_STARTED:"dynamic_signal_collection_started",BIOMETRIC_SIGNAL_COLLECTION_STARTED:"biometric_signal_collection_started",INVALID_GUID:"invalid_guid",INVALID_LENGTH:"invalid_length",GET_LOCAL_STORAGE_ERROR:"get_local_storage_error",WEB_STORAGE:"web_storage",PARSE_CONFIG_ERROR:"parse_config_error",HB_START_FAILURE:"hb_start_failure",HB_ALREADY_RUNNING:"hb_already_running",TRY_RESTARTING_HB:"try_restarting_hb",BANZAI_LOG_ERROR:"banzai_log_error"};f.OPERATIONS=a}),66);
-----
PolarisSignalValueTypeDef",["PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisSignalErrorValueTypeDef"],(function(a,b,c,d,e,f,g){"use strict";var h="SignalValueTypeDef",i="t",j="ctx",k="v",l="e",m={NUMBER:"NUMBER",STRING:"STRING",BOOLEAN:"BOOLEAN",CUSTOM_OBJECT:"CUSTOM_OBJECT",INT_ARRAY:"INT_ARRAY",TOUCH:"TOUCH",MAP:"MAP",LIST:"LIST",SENSOR:"SENSOR",ERROR:"ERROR"};a=function(){function a(a,b,c,d,e){this.$1=a,this.$2=b,this.$3=c,this.$4=d,this.$5=e!=null?e:0}var b=a.prototype;b.getTimeStampMS=function(){return this.$1};b.getSignalContext=function(){return this.$2};b.getSignalValue=function(){return this.$3};b.getSignalValueType=function(){return this.$4};b.isEqual=function(a,b){if(a==null){c("PolarisBDOperationLogHelper").logWarning(h,d("PolarisBDLoggingConstants").OPERATIONS.SIGNAL_VALUE_NULL);return!1}if(this.getSignalValueType()!==a.getSignalValueType())return!1;if(this.getSignalValueType()===m.ERROR&&a.getSignalValueType()===m.ERROR)return this.equalValue(a);var e=!1;b.has(128)&&(e=this.equalValue(a));b.has(256)&&(e=e&&this.getSignalContext()!=null&&a.getSignalContext()!=null&&this.getSignalContext().getSignalValueContextName()===a.getSignalContext().getSignalValueContextName());b.has(512)&&(e=e&&Math.abs(this.getTimeStampMS()-a.getTimeStampMS())<=this.$5);return e};b.equalValue=function(a){if(this.isPrimitiveType())return this.getSignalValue()===a.getSignalValue();throw new Error("Must implement in the subclasses")};b.toJSON=function(a){var b={};a&&(b[i]=this.$1/1e3,this.$2!=null&&(b[j]=this.$2));this.$3==null?b[l]=new(d("PolarisSignalErrorValueTypeDef").SignalErrorValueTypeDef)(2):this.addValueOrErrorToJSON(b);return b};b.addValueOrErrorToJSON=function(a){if(this.isPrimitiveType())a[k]=this.$3;else throw new Error("Must implement in the subclasses")};b.isPrimitiveType=function(){switch(typeof this.$3){case"number":case"boolean":case"string":return!0;default:return!1}};return a}();g.BD_VALUE=k;g.BD_ERROR=l;g.VALUE_TYPES=m;g.SignalValueTypeDef=a}),98);
-----
PolarisBDClientSignalLogger",["PolarisBDClientConfig","PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBdPdcSignalsFalcoEvent","javascript-blowfish"],(function(a,b,c,d,e,f,g){"use strict";var h="BDClientSignalLogger",i=c("PolarisBDClientConfig").get(),j="";a=function(){function a(){}a.setAsid=function(a){j=a};a.postSignalsHelper=function(b){if(b.length<=2)return!1;var d=i.getConfigGenerationTimeStamp(),e=i.getClientReputationTier(),f=a.encryptDataUsingAsid(b);b=function(){return{asid:j,ct:d,rt:e,sjd:f,sid:i.sid}};c("PolarisBdPdcSignalsFalcoEvent").log(b);return!0};a.getInitialVector=function(a){if(a.length!==16){c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_LENGTH);return""}var b="";for(var e=0;e<8;e++)b+=String.fromCharCode(a.charCodeAt(e)^a.charCodeAt(8+e));return b};a.encryptDataUsingAsid=function(b){if(j.length!==36){c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.INVALID_GUID);return b}var e=j.slice(19,23)+j.slice(24,36),f=a.getInitialVector(e);e=new(c("javascript-blowfish"))(e,"cbc");return e.base64Encode(e.encrypt(b,f))};return a}();g.BDClientSignalLogger=a}),98);
-----
PolarisBDOperationLogHelper",["PolarisBDLoggingConstants","PolarisBDOperationLoggerComponent","PolarisBDOperationLoggerLevel","PolarisBdOperationFalcoEvent","PolarisRandom"],(function(a,b,c,d,e,f,g){"use strict";var h={logInfo:function(a,b,d,e){h.log(a,c("PolarisBDOperationLoggerLevel").INFO,b,d,e)},logWarning:function(a,b,d,e){h.log(a,c("PolarisBDOperationLoggerLevel").WARNING,b,d,e)},logError:function(a,b,d,e){h.log(a,c("PolarisBDOperationLoggerLevel").ERROR,b,d,e)},log:function(a,b,e,f,g){f===void 0&&(f={});if(d("PolarisRandom").coinflip(h.getFlipSamplingByOperation(e))){if(f===null)throw new Error("opeartion info null");f.source=a;c("PolarisBdOperationFalcoEvent").log(function(){return{operation:e,level:b,component:c("PolarisBDOperationLoggerComponent").IG_JS,operation_info:f,duration_us:g}})}},getFlipSamplingByOperation:function(a){switch(a){case d("PolarisBDLoggingConstants").OPERATIONS.APPEND_SIGNAL:case d("PolarisBDLoggingConstants").OPERATIONS.HB_COLLECTED:case d("PolarisBDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR:case d("PolarisBDLoggingConstants").OPERATIONS.WEB_STORAGE:case d("PolarisBDLoggingConstants").OPERATIONS.SIGNAL_NOT_IMPLEMENTED:case d("PolarisBDLoggingConstants").OPERATIONS.BIOMETRIC_SIGNAL_COLLECTION_STARTED:return 1e3;default:return 1}}};a=h;g["default"]=a}),98);
-----
PolarisBDServerConfigParser",["PolarisBDClientConfig","PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBDServerSignalConfig"],(function(a,b,c,d,e,f,g){"use strict";var h="BDServerConfig";a={parseConfig:function(a){var b=[];try{var e=a.sc,f=new Map(e.c);f.forEach(function(a,d){return b.push(new(c("PolarisBDServerSignalConfig"))(d,a))});if(f.size===0){c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.EMPTY_SIGNAL_CONFIG);return}f=c("PolarisBDClientConfig").get();f.setClientReputationTier(a.rt).addMultipleSignalsToClientConfig(b).setPeriodicCollectionIntervalSeconds(a.i).setConfigGenerationTimeStamp(e.t).setAllTiersFlushDurationMinutes(a.fd).setStaticSignalBufferSize(a.sbs).setDynamicSignalBufferSize(a.dbs).setBiometricSignalBufferSize(a.bbs).setSID(a.sid).setHeartbeatConfig(a.hbc).setParsingDone(!0)}catch(a){c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.PARSE_CONFIG_ERROR,{e:a})}}};b=a;g["default"]=b}),98);
-----
PolarisBDServerSignalConfig",["BotDetection_SignalFlags","PolarisBDLoggingConstants","PolarisBDOperationLogHelper"],(function(a,b,c,d,e,f,g){"use strict";var h="BDServerSignalConfig";a=function(){function a(a,b,c){this.parsedSignalFlags=[],this.signalId=a,this.signalFlags=b,this.bufferSize=c}var b=a.prototype;b.getSignalId=function(){return this.signalId};b.getSignalFlags=function(){var a=this;if(this.parsedSignalFlags.length===0){var b=Object.keys(c("BotDetection_SignalFlags"));b.forEach(function(b){(c("BotDetection_SignalFlags")[b]&a.signalFlags)===c("BotDetection_SignalFlags")[b]&&a.parsedSignalFlags.push(c("BotDetection_SignalFlags")[b])})}this.parsedSignalFlags.length===0&&c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.SIGNAL_FLAGS_MISSING,{id:this.signalId.toString(),flags:this.signalFlags.toString()});return this.parsedSignalFlags};b.getBufferSize=function(){return this.bufferSize!=null?this.bufferSize:0};return a}();g["default"]=a}),98);
-----
PolarisSignalCollectionManager",["PolarisBDBiometricSignalCollectorBase","PolarisBDClientConfig","PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBDSignalBuffer","Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h="SignalCollectionManager",i=function(){function a(){}var e=a.prototype;e.collectSignals=function(a,c){var d=this,e;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:e=[];a.forEach(function(a){a.signalFlags.includes(4)?d.$1(a,c):e.push(d.$2(a,c))});f.next=4;return b("regeneratorRuntime").awrap(b("Promise").all(e));case 4:case"end":return f.stop()}},null,this)};e.isEqualToLastCollectedSignal=function(a,b){var c=d("PolarisBDSignalBuffer").getLastSignalFormatBySignalId(b.signalType);return c.valueOrError==null?!1:a.isEqual(c.valueOrError,new Set(b.signalFlags))};e.getCircularBufferSize=function(a){var b=c("PolarisBDClientConfig").get(),d=b.getBufferSizeBySignalId(a.signalType);if(d!=null&&b.getBufferSizeBySignalId(a.signalType)>0)return d;if(!a.signalFlags.includes(2))return b.getStaticSignalBufferSize();else if(a.signalFlags.includes(4))return b.getBiometricSignalBufferSize();return b.getDynamicSignalBufferSize()};e.$2=function(a,e){var f,g;return b("regeneratorRuntime").async(function(i){while(1)switch(i.prev=i.next){case 0:f=a.getSignalCollector(e);if(!(f!=null)){i.next=13;break}a.getBufferConfig()==null&&d("PolarisBDSignalBuffer").initialize(a.signalType,this.getCircularBufferSize(a),a.signalFlags);i.prev=3;i.next=6;return b("regeneratorRuntime").awrap(f.executeAsyncSignalCollection());case 6:g=i.sent;g.valueOrError&&!this.isEqualToLastCollectedSignal(g.valueOrError,a)&&d("PolarisBDSignalBuffer").appendSignal(a.signalType,g);i.next=13;break;case 10:i.prev=10,i.t0=i["catch"](3),c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.BD_EXCEPTION,{error:i.t0});case 13:case"end":return i.stop()}},null,this,[[3,10]])};e.$1=function(a,b){b=a.getSignalCollector(b);b!=null&&b instanceof d("PolarisBDBiometricSignalCollectorBase").BDBiometricSignalCollectorBase&&(a.getBufferConfig()==null&&d("PolarisBDSignalBuffer").initialize(a.signalType,this.getCircularBufferSize(a),a.signalFlags),b.listenForSignals())};return a}(),j=null;a={get:function(){j==null&&(j=new i());return j}};e=a;g["default"]=e}),98);
-----
PolarisBDClientSignalCollectionTrigger",["PolarisBDClientConfig","PolarisBDClientSignalLogger","PolarisBDCollectionTypeEnum","PolarisBDHeartbeatSignalCollectionManager","PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBDPeriodicSignalsCollectionManager","PolarisBDServerConfig","PolarisBDServerConfigParser","PolarisBDUtils","Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h="BDClientSignalCollectionTrigger",i="bdc_end_timestamp",j="bdc_event",k=d("PolarisBDUtils").uuid(),l=c("PolarisBDClientConfig").get(),m=!1,n,o=null,p=5,q;a=function(){function a(){}a.startSignalCollection=function(e,f){var g;return b("regeneratorRuntime").async(function(i){while(1)switch(i.prev=i.next){case 0:e!=null&&l.setSID(e.sid);if(f){i.next=9;break}n=e;d("PolarisBDClientSignalLogger").BDClientSignalLogger.setAsid(k);if(!a.isBdChallengeCompletionPending()){i.next=9;break}g=d("PolarisBDUtils").getEventFromStorage(j,h);if(!g){i.next=9;break}a.startChallengeBasedSignalCollection(g);return i.abrupt("return");case 9:if(!(!m&&e!=null)){i.next=23;break}m=!0;c("PolarisBDServerConfigParser").parseConfig(e);if(l.isParsingDone()){i.next=16;break}c("PolarisBDOperationLogHelper").logError(h,d("PolarisBDLoggingConstants").OPERATIONS.PARSE_CONFIG_ERROR,{config:JSON.stringify(e)});m=!1;return i.abrupt("return");case 16:d("PolarisBDHeartbeatSignalCollectionManager").BDHeartbeatSignalCollectionManager.startHeartbeatDelayed();q=new(b("Promise"))(function(a,b){try{l.getClientReputationTier()!==0&&(l.getDynamicSignals().length>0&&(d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.collectDynamicSignals(),c("PolarisBDOperationLogHelper").logInfo(h,d("PolarisBDLoggingConstants").OPERATIONS.DYNAMIC_SIGNAL_COLLECTION_STARTED,{ts:Date.now().toString()})),l.getBiometricSignals().length>0&&(d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.collectBiometricSignals(),c("PolarisBDOperationLogHelper").logInfo(h,d("PolarisBDLoggingConstants").OPERATIONS.BIOMETRIC_SIGNAL_COLLECTION_STARTED,{ts:Date.now().toString()}))),a()}catch(a){b(a)}});if(!(l.getClientReputationTier()!==0)){i.next=23;break}i.next=21;return b("regeneratorRuntime").awrap(q);case 21:i.next=23;return b("regeneratorRuntime").awrap(d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.startSignalPosting());case 23:m&&!d("PolarisBDHeartbeatSignalCollectionManager").BDHeartbeatSignalCollectionManager.isHeartbeatStarted()&&!d("PolarisBDHeartbeatSignalCollectionManager").BDHeartbeatSignalCollectionManager.isHeartbeatDelayed()&&p>0&&(p-=1,c("PolarisBDOperationLogHelper").logWarning(h,d("PolarisBDLoggingConstants").OPERATIONS.TRY_RESTARTING_HB),d("PolarisBDHeartbeatSignalCollectionManager").BDHeartbeatSignalCollectionManager.startHeartbeatDelayed());case 24:case"end":return i.stop()}},null,this)};a.isBdChallengeCompletionPending=function(){return d("PolarisBDUtils").getTimestampFromStorage(i,h)>Date.now()};a.handleBdChallenge=function(e){return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:a.persistBdChallengeEvent(e);f.next=3;return b("regeneratorRuntime").awrap(q);case 3:f.next=5;return b("regeneratorRuntime").awrap(d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.postSignals([c("PolarisBDCollectionTypeEnum").DYNAMIC,c("PolarisBDCollectionTypeEnum").BIOMETRIC,c("PolarisBDCollectionTypeEnum").STATIC]));case 5:a.stopSignalCollection(),a.stopBdChallengeBasedCollectionTimer(),d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.resetPeriodicCollectionTimestamp(),d("PolarisBDHeartbeatSignalCollectionManager").BDHeartbeatSignalCollectionManager.resetHeartbeatCollectionTimestamp(),a.startChallengeBasedSignalCollection(e);case 10:case"end":return f.stop()}},null,this)};a.startChallengeBasedSignalCollection=function(c){var e,f;return b("regeneratorRuntime").async(function(b){while(1)switch(b.prev=b.next){case 0:e=a.getSignalCollectionConfig(c),d("PolarisBDClientSignalLogger").BDClientSignalLogger.setAsid(c.challenge_id),a.startSignalCollection(e,!0),f=d("PolarisBDUtils").getTimestampFromStorage(i,h)-Date.now(),o=window.setTimeout(function(){a.stopSignalCollection(),a.startSignalCollection(n,!1)},f);case 5:case"end":return b.stop()}},null,this)};a.getSignalCollectionConfig=function(a){if(a.config!=null&&a.config!==""){a=JSON.parse(a.config);a.sid=l.sid;a.rt=l.getClientReputationTier();a.getHeartbeatVersion=l.getHeartbeatVersion();return a}return d("PolarisBDServerConfig").getBdChallengeDefaultConfig(l.sid,l.getClientReputationTier(),l.getHeartbeatVersion())};a.persistBdChallengeEvent=function(b){var c,e=d("PolarisBDUtils").getEventFromStorage(j,h),f=d("PolarisBDUtils").getTimestampFromStorage(i,h);e=e!=null&&e.challenge_id===b.challenge_id;c=Date.now()+((c=(c=a.getSignalCollectionConfig(b))==null?void 0:c.ctw)!=null?c:d("PolarisBDServerConfig").DEFAULT_BD_CHALLENGE_TIME_WINDOW_HOURS)*d("PolarisBDUtils").MILLISECONDS_IN_HOUR;e||d("PolarisBDUtils").setEventInStorage(b,j,h);(!e||f===0)&&d("PolarisBDUtils").setTimestampInStorage(c,i,h)};a.stopSignalCollection=function(){d("PolarisBDHeartbeatSignalCollectionManager").BDHeartbeatSignalCollectionManager.stopHeartbeat(),d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.stopDynamicSignalCollection(),d("PolarisBDPeriodicSignalsCollectionManager").BDPeriodicSignalsCollectionManager.stopSignalPosting(),m=!1};a.stopBdChallengeBasedCollectionTimer=function(){o!=null&&window.clearTimeout(o)};a.resetStartedForTest=function(){m=!1};return a}();g.BDClientSignalCollectionTrigger=a}),98);
-----
PolarisBDHeartbeatSignalCollectionManager",["PolarisBDClientConfig","PolarisBDClientSignalLogger","PolarisBDLoggingConstants","PolarisBDOperationLogHelper","PolarisBDUtils"],(function(a,b,c,d,e,f,g){"use strict";var h="hb_timestamp",i="BDHeartbeatSignalCollectionManager",j=!1,k=!1,l=null,m=null,n=null,o=c("PolarisBDClientConfig").get();a=function(){function a(){}a.resetHeartbeatCollectionTimestamp=function(){d("PolarisBDUtils").setTimestampInStorage(0,h,i)};a.resetHeartbeatStarted=function(){j=!1,k=!1};a.isHeartbeatStarted=function(){return j};a.isHeartbeatDelayed=function(){return k};a.startHeartbeatDelayed=function(){if(j||k)return;var b=d("PolarisBDUtils").getTimestampFromStorage(h,i);b=Date.now()-b;try{b>=o.getHeartbeatIntervalMs()?a.startHeartbeat():(m=window.setTimeout(function(){return a.startHeartbeat()},o.getHeartbeatIntervalMs()-b),k=!0)}catch(a){c("PolarisBDOperationLogHelper").logError(i,d("PolarisBDLoggingConstants").OPERATIONS.HB_START_FAILURE,{lastBeatSince:b.toString(),hbi:o.getHeartbeatIntervalMs().toString(),e:a})}};a.startHeartbeat=function(){!j&&o.getHeartbeatIntervalMs()>0&&(a.collectHeartbeatRecursive(o.getHeartbeatCriticalBurstCount(),o.getHeartbeatVitalBurstCount()),l!=null&&(window.clearInterval(l),c("PolarisBDOperationLogHelper").logWarning(i,d("PolarisBDLoggingConstants").OPERATIONS.HB_ALREADY_RUNNING)),l=window.setInterval(function(){return a.collectHeartbeatRecursive(o.getHeartbeatCriticalBurstCount(),o.getHeartbeatVitalBurstCount())},o.getHeartbeatIntervalMs()),j=!0)};a.stopHeartbeat=function(){n!=null&&window.clearTimeout(n),l!=null&&window.clearInterval(l),m!=null&&window.clearTimeout(m),a.resetHeartbeatStarted()};a.collectHeartbeatRecursive=function(b,c){if(b<=0&&c<=0)return;b>0&&a.collectHeartbeat();c>0&&a.collectHeartbeat();(b>1||c>1)&&(n=window.setTimeout(function(){return a.collectHeartbeatRecursive(b-1,c-1)},o.getHeartbeatBurstIntervalMs()))};a.collectHeartbeat=function(){var b;b=o==null?void 0:(b=o.getHeartbeatSignal())==null?void 0:(b=b.getSignalCollector(o.getClientReputationTier()))==null?void 0:b.executeSignalCollection();if(b==null){c("PolarisBDOperationLogHelper").logError(i,d("PolarisBDLoggingConstants").OPERATIONS.HB_COLLECTION_FAILED,{urgency:"ig_default"});return}c("PolarisBDOperationLogHelper").logInfo(i,d("PolarisBDLoggingConstants").OPERATIONS.HB_COLLECTED,{urgency:"ig_default"});a.postHeartbeat(b)&&d("PolarisBDUtils").setTimestampInStorage(Date.now(),h,i)};a.postHeartbeat=function(a){var b={};b[38001]=[a==null?void 0:a.valueOrError];a=JSON.stringify(b);return d("PolarisBDClientSignalLogger").BDClientSignalLogger.postSignalsHelper(a)};return a}();g.HEARTBEAT_TIMESTAMP_STORAGE_KEY=h;g.BDHeartbeatSignalCollectionManager=a}),98);
-----
SignalCollectionManager",["BDBiometricSignalCollectorBase","BDClientConfig","BDLoggingConstants","BDOperationLogHelper","BDSignalBuffer","Promise","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h="SignalCollectionManager",i=function(){function a(){var a=this;this.$1=!1;this.$6=function(b){if(b instanceof CustomEvent&&b.detail!=null&&b.detail.data!=null){var d=c("BDClientConfig").get().getBiometricSignalsMap().get(b.detail.signalId);d!=null&&a.$4(b.detail.data,d)}}}var e=a.prototype;e.collectSignals=function(a){var c=this,d;return b("regeneratorRuntime").async(function(e){while(1)switch(e.prev=e.next){case 0:d=[];a.forEach(function(a){a.signalFlags.includes(4)?c.$2(a):d.push(c.$3(a))});e.next=4;return b("regeneratorRuntime").awrap(b("Promise").all(d));case 4:case"end":return e.stop()}},null,this)};e.isEqualToLastCollectedSignal=function(a,b){var c=d("BDSignalBuffer").getLastSignalFormatBySignalId(b.signalType);return c.valueOrError==void 0?!1:a.isEqual(c.valueOrError,new Set(b.signalFlags))};e.getCircularBufferSize=function(a){var b=c("BDClientConfig").get(),d=b.getBufferSizeBySignalId(a.signalType);if(d!=null&&b.getBufferSizeBySignalId(a.signalType)>0)return d;if(!a.signalFlags.includes(2))return b.getStaticSignalBufferSize();else if(a.signalFlags.includes(4))return b.getBiometricSignalBufferSize();else return b.getDynamicSignalBufferSize()};e.$3=function(a){var c,e;return b("regeneratorRuntime").async(function(f){while(1)switch(f.prev=f.next){case 0:c=a.getSignalCollector();if(!(c!=null)){f.next=12;break}f.prev=2;f.next=5;return b("regeneratorRuntime").awrap(c.executeAsyncSignalCollection());case 5:e=f.sent;this.$4(e,a);f.next=12;break;case 9:f.prev=9,f.t0=f["catch"](2),d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.BD_EXCEPTION,{error:f.t0});case 12:case"end":return f.stop()}},null,this,[[2,9]])};e.$2=function(a){this.$5();a=a.getSignalCollector();a!=null&&a instanceof d("BDBiometricSignalCollectorBase").BDBiometricSignalCollectorBase&&a.listenForSignals()};e.$5=function(){if(this.$1)return;window.addEventListener(d("BDBiometricSignalCollectorBase").BIOMETRIC_SIGNAL_COLLECTED_EVENT_NAME,this.$6);this.$1=!0};e.$4=function(a,b){b.getBufferConfig()==null&&d("BDSignalBuffer").initialize(b.signalType,this.getCircularBufferSize(b),b.signalFlags),a.valueOrError&&!this.isEqualToLastCollectedSignal(a.valueOrError,b)&&d("BDSignalBuffer").appendSignal(b.signalType,a)};return a}(),j=null;a={get:function(){j==null&&(j=new i());return j}};e=a;g["default"]=e}),98);
-----
BDClientSignalCollectionTrigger",["BDClientConfig","BDCollectionTypeEnum","BDLoggingConstants","BDOperationLogHelper","BDServerConfig","BDSignalBuffer","BDUtils","BdPdcSignalsFalcoEvent","Promise","SignalCollectionManager","WebStorage","javascript-blowfish","regeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h="BDClientSignalCollectionTrigger",i="signal_flush_timestamp",j=!1,k=!1,l=!1,m=0,n=0,o=0,p=30,q=5,r,s,t=d("BDUtils").uuid(),u=c("BDClientConfig").get(),v=Object.freeze({NONE:0,VITAL:1,CRITICAL:2}),w={startSignalCollection:function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:u.setSID(a.sid);if(j){c.next=15;break}j=!0;d("BDServerConfig").parseConfig(a);if(u.isParsingDone()){c.next=8;break}d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.PARSE_CONFIG_ERROR,{config:JSON.stringify(a)});j=!1;return c.abrupt("return");case 8:a!=null&&(n=a.hbcbc&&a.hbcbc>0?a.hbcbc:n,o=a.hbvbc&&a.hbvbc>0?a.hbvbc:o,p=a.hbbi&&a.hbbi>0?a.hbbi:p);w.startHeartbeatDelayed();s=new(b("Promise"))(function(a,b){try{u.getDynamicSignals().length>0&&(w.collectDynamicSignals(),d("BDOperationLogHelper").logInfo(h,d("BDLoggingConstants").OPERATIONS.DYNAMIC_SIGNAL_COLLECTION_STARTED,{ts:Date.now().toString()})),u.getBiometricSignals().length>0&&(w.collectBiometricSignals(),d("BDOperationLogHelper").logInfo(h,d("BDLoggingConstants").OPERATIONS.BIOMETRIC_SIGNAL_COLLECTION_STARTED,{ts:Date.now().toString()})),a()}catch(a){b(a)}});c.next=13;return b("regeneratorRuntime").awrap(s);case 13:c.next=15;return b("regeneratorRuntime").awrap(w.startSignalPosting());case 15:j&&!k&&!l&&q>0&&(q-=1,d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.TRY_RESTARTING_HB),w.startHeartbeatDelayed());case 16:case"end":return c.stop()}},null,this)},retrieveSignals:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(s);case 2:a.next=4;return b("regeneratorRuntime").awrap(w.postSignals([c("BDCollectionTypeEnum").DYNAMIC,c("BDCollectionTypeEnum").BIOMETRIC,c("BDCollectionTypeEnum").STATIC]));case 4:case"end":return a.stop()}},null,this)},postSignals:function(a){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(w.collectStaticSignals());case 2:w._postSignalsHelper(d("BDSignalBuffer").getSignalsAsJSONString(a),v.NONE)&&w.setTimestampInStorage(Date.now(),i);case 3:case"end":return c.stop()}},null,this)},_postSignalsHelper:function(a,b){if(a.length<=2)return!1;var e=u.getConfigGenerationTimeStamp(),f=w.encryptDataUsingAsid(t,a);a=function(){return{asid:t,ct:e,sjd:f,sid:u.sid}};var g=!1;try{b===v.CRITICAL?c("BdPdcSignalsFalcoEvent").logCritical(a):b===v.VITAL?c("BdPdcSignalsFalcoEvent").logImmediately(a):c("BdPdcSignalsFalcoEvent").log(a),g=!0}catch(a){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.BANZAI_LOG_ERROR,a),g=!1}finally{return g}},getInitialVector:function(a){if(a.length!==16){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_LENGTH);return""}var b="";for(var c=0;c<8;c++)b+=String.fromCharCode(a.charCodeAt(c)^a.charCodeAt(8+c));return b},encryptDataUsingAsid:function(a,b){if(a.length!==36){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_GUID);return b}a=a.slice(19,23)+a.slice(24,36);var e=w.getInitialVector(a);a=new(c("javascript-blowfish"))(a,"cbc");return a.base64Encode(a.encrypt(b,e))},startSignalPosting:function(){var a,c;return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:a=w.getTimestampInStorage(i);c=Date.now()-a;if(!(c>=u.getAllTiersFlushDurationMs())){d.next=7;break}d.next=5;return b("regeneratorRuntime").awrap(w.postSignalsIntermittently());case 5:d.next=8;break;case 7:window.setTimeout(function(){w.postSignalsIntermittently()},u.getAllTiersFlushDurationMs()-c);case 8:case"end":return d.stop()}},null,this)},postSignalsIntermittently:function(){w.postSignals([c("BDCollectionTypeEnum").STATIC]),window.setInterval(function(){w.postSignals([c("BDCollectionTypeEnum").STATIC,c("BDCollectionTypeEnum").DYNAMIC,c("BDCollectionTypeEnum").BIOMETRIC])},u.getAllTiersFlushDurationMs())},setTimestampInStorage:function(a,b){var e=c("WebStorage").getLocalStorage();if(!e){d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR);return}e=c("WebStorage").setItemGuarded(e,b,a.toString());e!=null&&d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.WEB_STORAGE,{error:e.message})},getTimestampInStorage:function(a){var b=c("WebStorage").getLocalStorage();if(!b){d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.GET_LOCAL_STORAGE_ERROR);return 0}b=b.getItem(a);if(b==null)return 0;a=Number.parseInt(b,10);return Number.isFinite(a)?a:0},resetHeartbeatStartedForTest:function(){k=!1,l=!1},startHeartbeatDelayed:function(){if(k||l)return;var a=w.getTimestampInStorage(w.HEARTBEAT_TIMESTAMP_STORAGE_KEY);a=Date.now()-a;try{a>=u.getHeartbeatIntervalMs()?w.startHeartbeat():(window.setTimeout(function(){return w.startHeartbeat()},u.getHeartbeatIntervalMs()-a),l=!0)}catch(b){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.HB_START_FAILURE,{lastBeatSince:a.toString(),hbi:u.getHeartbeatIntervalMs().toString(),e:b})}},HEARTBEAT_TIMESTAMP_STORAGE_KEY:"hb_timestamp",startHeartbeat:function(){!k&&u.getHeartbeatIntervalMs()>0&&(w.collectHeartbeatTimes(n,o),m!==0&&(window.clearInterval(m),d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.HB_ALREADY_RUNNING)),m=window.setInterval(function(){return w.collectHeartbeatTimes(n,o)},u.getHeartbeatIntervalMs()),k=!0)},collectHeartbeatTimes:function(a,b){if(a<=0&&b<=0)return;a>0&&w.collectHeartbeat(v.CRITICAL);b>0&&w.collectHeartbeat(v.VITAL);(a>1||b>1)&&window.setTimeout(function(){return w.collectHeartbeatTimes(a-1,b-1)},p*1e3)},collectHeartbeat:function(a){var b;b=u==null?void 0:(b=u.getHeartbeatSignal())==null?void 0:(b=b.getSignalCollector())==null?void 0:b.executeSignalCollection();if(b==null){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.HB_COLLECTION_FAILED,{urgency:a.toString()});return}else d("BDOperationLogHelper").logInfo(h,d("BDLoggingConstants").OPERATIONS.HB_COLLECTED,{urgency:a.toString()});w.postHeartbeat(a,b)&&w.setTimestampInStorage(Date.now(),w.HEARTBEAT_TIMESTAMP_STORAGE_KEY)},postHeartbeat:function(a,b){var c={};c[38001]=[b==null?void 0:b.valueOrError];b=JSON.stringify(c);return w._postSignalsHelper(b,a)},collectStaticSignals:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(w.collectSignalsOneTime(u.getStaticSignals()));case 2:case"end":return a.stop()}},null,this)},collectDynamicSignals:function(){w.stopDynamicSignalCollection(),r=window.setInterval(function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(w.collectSignalsOneTime(u.getDynamicSignals()));case 2:case"end":return a.stop()}},null,this)},u.getPeriodicCollectionIntervalMs())},collectBiometricSignals:function(){w.collectSignalsOneTime(u.getBiometricSignals())},stopDynamicSignalCollection:function(){r!=null&&(window.clearInterval(r),r=null)},collectSignalsOneTime:function(a){return b("regeneratorRuntime").async(function(d){while(1)switch(d.prev=d.next){case 0:d.next=2;return b("regeneratorRuntime").awrap(c("SignalCollectionManager").get().collectSignals(a));case 2:case"end":return d.stop()}},null,this)}};a=w;g["default"]=a}),98);
-----
BDSignalBuffer",["BDClientConfig","BDCollectionTypeEnum","BDLoggingConstants","BDOperationLogHelper","BDSignalBufferData"],(function(a,b,c,d,e,f,g){"use strict";var h="BDSignalBuffer";function a(a,b,d){if(a in c("BDSignalBufferData"))return;var e=1;b!==void 0&&(e=b);c("BDSignalBufferData")[a]={values:[],max_buffer_size:e,signal_flags:(b=d)!=null?b:[]}}function i(a){if(a in c("BDSignalBufferData"))c("BDSignalBufferData")[a].values=[];else throw new Error("Tried to clear signal buffer that was not intialized:")}function b(a,b){if(a in c("BDSignalBufferData")){var e=c("BDSignalBufferData")[a],f=e.max_buffer_size;e.values.length>=f&&e.values.shift();e.values.push(b);d("BDOperationLogHelper").logInfo(h,d("BDLoggingConstants").OPERATIONS.APPEND_SIGNAL,{id:a.toString()})}else{d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.APPEND_SIGNAL_FAIL,{id:a.toString()});throw new Error("Tried to append signal that was not intialized:")}}function e(){var a=c("BDClientConfig").get();a=a.getBiometricSignals();a.forEach(function(a){a.signalType in c("BDSignalBufferData")&&i(a.signalType)})}function f(a){var b;a=c("BDSignalBufferData")[a];b=a==null?void 0:(b=a.values)==null?void 0:b.length;return b!=null&&b>0?a.values[b-1]:{valueOrError:void 0}}function j(a){return c("BDSignalBufferData")[a].values}function k(a){var b={};for(var d=0;d
BDClientConfig",["BDLoggingConstants","BDOperationLogHelper","BDSignalWrapper"],(function(a,b,c,d,e,f,g){"use strict";var h="BDClientConfig",i=function(){function a(){this.staticSignalBufferSize=1,this.dynamicSignalBufferSize=1,this.biometricSignalBufferSize=1,this.staticSignals=[],this.dynamicSignals=[],this.biometricSignals=[],this.biometricSignalsMap=new Map(),this.heartbeatSignal=new(c("BDSignalWrapper"))([],38001),this.bufferSizeBySignalIdMap={},this.periodicCollectionIntervalMs=Number.MAX_SAFE_INTEGER,this.signalConfigGenerationTimeStampMs=0,this.suspiciousTiersFlushDurationMs=Number.MAX_SAFE_INTEGER,this.allTiersFlushDurationMs=Number.MAX_SAFE_INTEGER,this.heartbeatIntervalMs=-1,this.parsingDone=!1,this.sid=-1,this.hbVersion="",this.bufferSizeBySignalIdMap[38001]=1}var b=a.prototype;b.setStaticSignalBufferSize=function(a){a>0?this.staticSignalBufferSize=a:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"s"});return this};b.getStaticSignalBufferSize=function(){return this.staticSignalBufferSize};b.setDynamicSignalBufferSize=function(a){a>1?this.dynamicSignalBufferSize=a:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"d"});return this};b.getDynamicSignalBufferSize=function(){return this.dynamicSignalBufferSize};b.setBiometricSignalBufferSize=function(a){a>1?this.biometricSignalBufferSize=a:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_BUFFER_SIZE,{size:a.toString(),type:"b"});return this};b.setSID=function(a){this.sid=a;return this};b.setHeartbeatVersion=function(a){this.hbVersion=a;return this};b.getHeartbeatVersion=function(){return this.hbVersion};b.getBiometricSignalBufferSize=function(){return this.biometricSignalBufferSize};b.setConfigGenerationTimeStamp=function(a){this.signalConfigGenerationTimeStampMs=a;return this};b.getConfigGenerationTimeStamp=function(){return this.signalConfigGenerationTimeStampMs};b.setHeartbeatIntervalMinutes=function(a){this.heartbeatIntervalMs=a*60*1e3;return this};b.getHeartbeatIntervalMs=function(){return this.heartbeatIntervalMs};b.setSuspiciousTiersFlushDurationMinutes=function(a){a>0?this.suspiciousTiersFlushDurationMs=a*60*1e3:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"fds"});return this};b.getSuspiciousTiersFlushDurationMs=function(){return this.suspiciousTiersFlushDurationMs};b.setAllTiersFlushDurationMinutes=function(a){a>0?this.allTiersFlushDurationMs=a*60*1e3:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"fda"});return this};b.getAllTiersFlushDurationMs=function(){return this.allTiersFlushDurationMs};b.addMultipleSignalsToClientConfig=function(a){var b=this;a.forEach(function(a){return b.addSignalToClientConfig(a)});return this};b.addSignalToClientConfig=function(a){var b=a.getSignalFlags(),d=a.getSignalId();if(d===38e3)return this;var e=new(c("BDSignalWrapper"))(b,d);if(d===38001){this.heartbeatSignal=e;return this}!b.includes(2)?this.staticSignals.push(e):b.includes(4)?this.biometricSignals.push(e):this.dynamicSignals.push(e);a.getBufferSize()>0&&(this.bufferSizeBySignalIdMap[a.getSignalId()]=a.getBufferSize());return this};b.setPeriodicCollectionIntervalSeconds=function(a){a>0?this.periodicCollectionIntervalMs=a*1e3:d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.INVALID_DURATION,{size:a.toString(),type:"pi"});return this};b.getPeriodicCollectionIntervalMs=function(){return this.periodicCollectionIntervalMs};b.getDynamicSignals=function(){return this.dynamicSignals};b.getStaticSignals=function(){return this.staticSignals};b.getBiometricSignals=function(){return this.biometricSignals};b.getBiometricSignalsMap=function(){this.biometricSignalsMap.size===0&&this.biometricSignals.length>0&&(this.biometricSignalsMap=this.biometricSignals.reduce(function(a,b){return a.set(b.signalType,b)},new Map()));return this.biometricSignalsMap};b.getHeartbeatSignal=function(){return this.heartbeatSignal};b.getBufferSizeBySignalId=function(a){return this.bufferSizeBySignalIdMap[a]};b.setParsingDone=function(a){this.parsingDone=a};b.isParsingDone=function(){return this.parsingDone};return a}(),j=null;a={get:function(){j==null&&(j=new i());return j}};b=a;g["default"]=b}),98);
-----
BDServerConfig",["BDClientConfig","BDLoggingConstants","BDOperationLogHelper","BDServerSignalConfig"],(function(a,b,c,d,e,f,g){"use strict";var h="BDServerConfig";function a(a){var b=[];try{var e=JSON.parse(a.sc),f=new Map(e.c);f.forEach(function(a,d){return b.push(new(c("BDServerSignalConfig"))(d,a))});if(f.size===0){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.EMPTY_SIGNAL_CONFIG);return}f=c("BDClientConfig").get();f.setPeriodicCollectionIntervalSeconds(a.i).addMultipleSignalsToClientConfig(b).setConfigGenerationTimeStamp(e.t).setAllTiersFlushDurationMinutes(a.fda).setSuspiciousTiersFlushDurationMinutes(a.fds).setHeartbeatIntervalMinutes(a.hbi).setStaticSignalBufferSize(a.sbs).setDynamicSignalBufferSize(a.dbs).setBiometricSignalBufferSize(a.bbs).setSID(a.sid).setHeartbeatVersion(a.hbv).setParsingDone(!0)}catch(a){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.PARSE_CONFIG_ERROR,{e:a})}}g.parseConfig=a}),98);
-----
BDServerSignalConfig",["BDLoggingConstants","BDOperationLogHelper","BotDetection_SignalFlags"],(function(a,b,c,d,e,f,g){"use strict";var h="BDServerSignalConfig";a=function(){function a(a,b,c){this.parsedSignalFlags=[],this.signalId=a,this.signalFlags=b,this.bufferSize=c}var b=a.prototype;b.getSignalId=function(){return this.signalId};b.getSignalFlags=function(){var a=this;if(this.parsedSignalFlags.length===0){var b=Object.keys(c("BotDetection_SignalFlags"));b.forEach(function(b){(c("BotDetection_SignalFlags")[b]&a.signalFlags)===c("BotDetection_SignalFlags")[b]&&a.parsedSignalFlags.push(c("BotDetection_SignalFlags")[b])})}this.parsedSignalFlags.length===0&&d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.SIGNAL_FLAGS_MISSING,{id:this.signalId.toString(),flags:this.signalFlags.toString()});return this.parsedSignalFlags};b.getBufferSize=function(){return this.bufferSize!=null?this.bufferSize:0};return a}();g["default"]=a}),98);
-----
BDTouchOrMouseSignalCollectorBase",["BDBiometricSignalCollectorBase","BDLoggingConstants","BDOperationLogHelper","BooleanSignalValueType"],(function(a,b,c,d,e,f,g){"use strict";var h="BDTouchOrMouseSignalCollectorBase";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this,b)||this;e.eventsToSubscribe=[];e.pauseTimeout=60*60*1e3;e.eventsToSubscribe=c;e.pauseTimeout=d;e.handler=function(a){return e.collectSignals(a)};return e}var e=b.prototype;e.listenForSignals=function(){this.collectSignals(),this.addListeners()};e.addListeners=function(){var a=this;this.eventsToSubscribe.forEach(function(b){try{document.addEventListener(b,a.handler)}catch(a){d("BDOperationLogHelper").logError(h,d("BDLoggingConstants").OPERATIONS.BD_EXCEPTION,{e:a})}})};e.pauseListeners=function(){var a=this;this.eventsToSubscribe.forEach(function(b){document.removeEventListener(b,a.handler)});window.setTimeout(function(){return a.addListeners()},this.pauseTimeout)};e.collectSignals=function(a){a=a!=null;a&&this.pauseListeners();a=new(c("BooleanSignalValueType"))(Date.now(),this.getContext(),a);a={signalId:this.signalType,data:{valueOrError:a}};window.dispatchEvent(new CustomEvent(d("BDBiometricSignalCollectorBase").BIOMETRIC_SIGNAL_COLLECTED_EVENT_NAME,{detail:a}))};return b}(d("BDBiometricSignalCollectorBase").BDBiometricSignalCollectorBase);g["default"]=a}),98);
-----
BDLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ERROR:"error",WARNING:"warning",INFO:"info"};b={KEY_NOT_FOUND:"key_not_found",APPEND_SIGNAL:"bd_append_signal",APPEND_SIGNAL_FAIL:"bd_append_signal_fail",HB_COLLECTED:"append_hb",HB_COLLECTION_FAILED:"hb_collection_failed",BD_EXCEPTION:"bd_exception",SIGNAL_NOT_IMPLEMENTED:"signal_not_implemented",SIGNAL_VALUE_NULL:"signal_value_null",EMPTY_SIGNAL_CONFIG:"empty_signal_config",INVALID_BUFFER_SIZE:"invalid_buffer_size",INVALID_DURATION:"invalid_duration",SIGNAL_FLAGS_MISSING:"signal_flags_missing",DYNAMIC_SIGNAL_COLLECTION_STARTED:"dynamic_signal_collection_started",BIOMETRIC_SIGNAL_COLLECTION_STARTED:"biometric_signal_collection_started",INVALID_GUID:"invalid_guid",INVALID_LENGTH:"invalid_length",GET_LOCAL_STORAGE_ERROR:"get_local_storage_error",WEB_STORAGE:"web_storage",PARSE_CONFIG_ERROR:"parse_config_error",HB_START_FAILURE:"hb_start_failure",HB_ALREADY_RUNNING:"hb_already_running",TRY_RESTARTING_HB:"try_restarting_hb",BANZAI_LOG_ERROR:"banzai_log_error"};c="JS";f.LEVELS=a;f.OPERATIONS=b;f.COMPONENT_NAME=c}),66);
-----
SignalValueTypeDef",["BDLoggingConstants","BDOperationLogHelper","SignalErrorValueTypeDef"],(function(a,b,c,d,e,f,g){"use strict";var h="SignalValueTypeDef",i="t",j="ctx",k="v",l="e",m={NUMBER:"NUMBER",STRING:"STRING",BOOLEAN:"BOOLEAN",CUSTOM_OBJECT:"CUSTOM_OBJECT",INT_ARRAY:"INT_ARRAY",TOUCH:"TOUCH",MAP:"MAP",LIST:"LIST",SENSOR:"SENSOR",ERROR:"ERROR"};a=function(){function a(a,b,c,d,e){this.$1=a,this.$2=b,this.$3=c,this.$4=d,this.$5=e!=null?e:0}var b=a.prototype;b.getTimeStampMS=function(){return this.$1};b.getSignalContext=function(){return this.$2};b.getSignalValue=function(){return this.$3};b.getSignalValueType=function(){return this.$4};b.isEqual=function(a,b){if(a==null){d("BDOperationLogHelper").logWarning(h,d("BDLoggingConstants").OPERATIONS.SIGNAL_VALUE_NULL);return!1}if(this.getSignalValueType()!==a.getSignalValueType())return!1;if(this.getSignalValueType()===m.ERROR&&a.getSignalValueType()===m.ERROR)return this.equalValue(a);var c=!1;b.has(128)&&(c=this.equalValue(a));b.has(256)&&(c=c&&this.getSignalContext()!=null&&a.getSignalContext()!=null&&this.getSignalContext().getSignalValueContextName()===a.getSignalContext().getSignalValueContextName());b.has(512)&&(c=c&&Math.abs(this.getTimeStampMS()-a.getTimeStampMS())<=this.$5);return c};b.equalValue=function(a){if(this.isPrimitiveType())return this.getSignalValue()===a.getSignalValue();throw new Error("Must implement in the subclasses")};b.toJSON=function(a){var b={};a&&(b[i]=this.$1/1e3,this.$2!=null&&(b[j]=this.$2));this.$3==null?b[l]=new(d("SignalErrorValueTypeDef").SignalErrorValueTypeDef)(2):this.addValueOrErrorToJSON(b);return b};b.addValueOrErrorToJSON=function(a){if(this.isPrimitiveType())a[k]=this.$3;else throw new Error("Must implement in the subclasses")};b.isPrimitiveType=function(){switch(typeof this.$3){case"number":case"boolean":case"string":return!0;default:return!1}};return a}();g.BD_VALUE=k;g.BD_ERROR=l;g.VALUE_TYPES=m;g.SignalValueTypeDef=a}),98);
-----
BDOperationLogHelper",["BDLoggingConstants","BDOperationTypedLogger","Random"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,c,e){h(a,d("BDLoggingConstants").LEVELS.INFO,b,c,e)}function b(a,b,c,e){h(a,d("BDLoggingConstants").LEVELS.WARNING,b,c,e)}function e(a,b,c,e){h(a,d("BDLoggingConstants").LEVELS.ERROR,b,c,e)}function h(a,b,e,f,g){f===void 0&&(f={});if(d("Random").coinflip(i(e))){if(f===null)throw new Error("opeartion info null");f.source=a;new(c("BDOperationTypedLogger"))().setLevel(b).setDurationUs(g).setOperation(e).setComponent(d("BDLoggingConstants").COMPONENT_NAME).setOperationInfo(f).log()}}function i(a){var b=d("BDLoggingConstants").OPERATIONS;switch(a){case b.APPEND_SIGNAL:case b.HB_COLLECTED:case b.GET_LOCAL_STORAGE_ERROR:case b.WEB_STORAGE:case b.SIGNAL_NOT_IMPLEMENTED:case b.BIOMETRIC_SIGNAL_COLLECTION_STARTED:return 1e3;default:return 1}}g.logInfo=a;g.logWarning=b;g.logError=e;g.log=h;g.getFlipSamplingByOperation=i}),98);
-----
LWICometAutomatedAdsRecommendationSection.react",["fbt","ix","AdproObjectiveType","AdsLWIGoal","CometRelay","LWIBoostedComponentFalcoEvenUtils","LWICometAutomatedAdsRecommendationSection_page.graphql","LWICometLoggerUtils","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometPixelIDTypes","LWICometProductUtils","LWICometQuestionnaireUtils","LWICometRecommendationOption.react","LWICometSection.react","LWICometWhatsAppActiveStatusNotice.react","LWICometWhatsAppAdvertisingPolicyNotice.react","LWICometWhatsAppSoftMatchingDeprecationExplanation.react","LWIOmniButton.react","QE2Logger","castToEnum","compactArray","fbicon","getJSEnumSafe","react","requireDeferred","useLWICometPixelMap","useLWICometQuestionnaireContextDispatcher","useLWICometUpdateAdgroupFromRecommendation","useLWICometWhatsAppSMBGetStarted","useLWILoggerContext","useLWINoticesContext","useLWIQuestionnaireContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useCallback,m=e.useEffect,n=e.useMemo,o=e.useState,p=c("requireDeferred")("LWICometFalcoEvent").__setRef("LWICometAutomatedAdsRecommendationSection.react"),q=c("requireDeferred")("logBoostedComponentCometFalcoEvent").__setRef("LWICometAutomatedAdsRecommendationSection.react"),r=3;function s(a,b,c){var e=a.entryPoint,f=a.flow,g=a.flowID,h=a.pageID,i=a.product;p.onReady(function(a){a.log({ending_value:c,entry_point:e,event:"objective_picked",flow:f,flow_id:g,page_id:h,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(i),starting_value:b})})}function a(a){var e=a.adAccountID,f=a.audienceID,g=a.budgetType,p=a.creativeSpec,t=a.currency,u=a.defaultBudgetInLocal,v=a.defaultDurationInDays,w=a.goal,x=a.legacyAccountID,y=a.objective,z=a.pageName,A=a.queryRef,B=a.selectedPixelID,C=a.targetingSpec,D=c("useLWILoggerContext")();a=c("useLWIQuestionnaireContext")();var E=a.hasRecommendation,F=a.recommendationList,G=a.selectedRecommendationIndex,H=c("useLWICometPixelMap")(e,"purchase",y),I=(a=B)!=null?a:d("LWICometPixelIDTypes").assertStringToPixelID(Object.keys(H)[0]),J=c("useLWICometQuestionnaireContextDispatcher")(),K=d("LWICometQuestionnaireUtils").hasMultiMessageRecommendation(F),L=F.map(function(a){return a.primary.goal}).indexOf("GET_CATALOG_SALES"),M=n(function(){return L!==-1&&(I==null||I!=null&&H[I]!=null&&H[I].status==="INACTIVE")?[].concat([].concat(F).splice(0,L),[].concat(F).splice(L+1),[F[L]]):[].concat(F)},[L,I,H,F]);e=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometAutomatedAdsRecommendationSection_page.graphql"),A);m(function(){K&&d("QE2Logger").logExposureForUser("ads_lwi_aa_ctwa_bundle_univ")},[K]);B=o(!1);var N=B[0],O=B[1],P=M.length>r,Q=n(function(){return P&&N===!1?M.slice(0,r):M},[M,P,N]);a=c("useLWILoggerContext")();var R=a.entryPoint,S=a.flow,T=a.flowID,U=a.pageID,aa=a.product,V=a.targetID;m(function(){var a,b=(a=c("getJSEnumSafe")(c("AdproObjectiveType"),y))!=null?a:0;q.onReady(function(a){a.logBoostedComponentCometFalcoEvent({ad_account_id:x,ads_lwi_goal:c("castToEnum")(w,c("AdsLWIGoal"),null),budget_type:d("LWICometLoggerUtils").budgetTypeToAdmanagerCampaignBudgetType(g),context:"ad",creative_spec:JSON.stringify(p),currency:d("LWICometLoggerUtils").currencyToAdproCurrencyType(t),default_audience_id:f,default_budget_in_local:d("LWIBoostedComponentFalcoEvenUtils").safeNumConversionLWIFalco(u),default_call_to_action:Q.length>0?Q[0].primary.cta_type:null,default_duration_in_days:d("LWIBoostedComponentFalcoEvenUtils").safeNumConversionLWIFalco(v),default_targeting_spec:JSON.stringify(C),entry_point:R,event:"receive_default_data",flow:S,flow_id:T,objective_override:b.toString(),page_id:U,post_id:V,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(aa),side:"client_side"})})},[]);B=((A=Q[G])==null?void 0:A.primary.cta_type)==="WHATSAPP_MESSAGE";a={ad_account_id:x,ads_lwi_goal:c("castToEnum")(w,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),y),page_id:U,post_id:V,product_flow:"automated_ads",source_app_id:d("LWICometLoggingConstants").APP_ID};A=e==null?void 0:e.connected_whatsapp_number;var ba=e==null?void 0:e.connected_whatsapp_number_type;e=e==null?void 0:e.whatsapp_initial_country_code;var W=c("useLWINoticesContext")(),X=W.removeGetResponseNotice;W=l(function(){d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.forEach(function(a){return X("CALL_TO_ACTION",a)})},[X]);c("useLWICometWhatsAppSMBGetStarted")({countryCode:e,ctwaLoggerContextData:a,onUpsellSuccess:W,whatsAppDisplayNumber:A,whatsAppNumber:A,whatsAppNumberType:ba});var Y=c("useLWICometUpdateAdgroupFromRecommendation")(),Z=l(function(a){J({selectedRecommendationIndex:a,type:"lwi_questionnaire_reducer.set_selected_recommendation_index"});a=Q[a];var b=a.primary.cta_type,c=a.primary.objective;b!=null&&c!=null&&Y(b,c,a.primary.goal,"user_action")},[J,Q,Y]);e=l(function(){O(!0)},[]);a=l(function(){G>=r&&Z(0),O(!1)},[Z,G]);var $=d("LWICometQuestionnaireUtils").useLogQuestionnaire({endingValue:JSON.stringify(M[G]),lwiEvent:"goal_picked",recommendationList:JSON.stringify(M),startingValue:JSON.stringify(M[0])});m(function(){s(D,JSON.stringify(M[0]),JSON.stringify(M[G])),$()},[M,$,D,G]);return k.jsx(c("LWICometSection.react"),{fallback:null,header:{title:h._("Choose your goal")},children:k.jsxs(k.Fragment,{children:[c("compactArray")(Q.map(function(a,b){return k.jsx(d("LWICometRecommendationOption.react").LWICometRecommendationOption,{bundle:a,isSelected:G===b,onUpdateSelectedOption:function(){Z(b)},pageName:z,showRecommendationBadge:E&&b===0},b)})),P&&N===!1&&k.jsx("div",{className:"xktsk01 x1d52u69 x1xmf6yo",children:k.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("492450"),16),label:h._("See More"),onPress:e,testid:void 0,type:"secondary"})}),P&&N===!0&&k.jsx("div",{className:"xktsk01 x1d52u69 x1xmf6yo",children:k.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("505564"),16),label:h._("See less"),onPress:a,testid:void 0,type:"secondary"})}),B&&k.jsxs(k.Fragment,{children:[k.jsx("div",{className:"x1krglpp x1d52u69 xw7yly9",children:k.jsx(c("LWICometWhatsAppSoftMatchingDeprecationExplanation.react"),{})}),k.jsx("div",{className:"xpdqn1h x1d52u69 xw7yly9",children:k.jsx(c("LWICometWhatsAppAdvertisingPolicyNotice.react"),{})}),k.jsx("div",{className:"x1d52u69 xktsk01",children:k.jsx(c("LWICometWhatsAppActiveStatusNotice.react"),{})})]})]})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,audienceID:a.audienceData.audienceID,budgetType:a.budgetData.budgetType,creativeSpec:a.adgroupSpecs,currency:a.adAccountData.currency,defaultBudgetInLocal:a.defaultBudgetInLocal,defaultDurationInDays:a.defaultDurationInDays,goal:a.goal,legacyAccountID:a.adAccountData.legacyAccountID,objective:a.objective,selectedPixelID:a.pixelID,targetingSpec:a.audienceData.targetSpec}});g["default"]=e}),98);
-----
LWICometAutomatedAdsNewMediaButtonForWhatsAppCatalog.react",["fbt","ix","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometPressable.react","CometRelay","CometTintedIcon.react","LWICometAdgroupID","LWICometAdgroupUtils","LWICometAutomatedAdsNewMediaButtonForWhatsAppCatalog_page.graphql","LWICometLoggingConstants","LWICometTemplateDataUtils","LWICometWhatsAppCatalogItemsDialog.entrypoint","LWIOmniText.react","fbicon","lwiCometAutomatedAdsReducer","react","useCometEntryPointDialog","useLWICometAutomatedAdsMediaContext","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useMemo,m=e.useState,n={button:{alignItems:"x6s0dn4",backgroundColor:"x1vtvx1t",borderTopStartRadius:"xhk9q7s",borderTopEndRadius:"x1otrzb0",borderBottomEndRadius:"x1i1ezom",borderBottomStartRadius:"x1o6z2jb",display:"x78zum5",height:"xc9qbxq",justifyContent:"xl56j7k",position:"x10l6tqk",width:"x9fslfs",$$css:!0},container:{alignItems:"x6s0dn4",borderTop:"x1n2xptk",borderEnd:"xkbpzyx",borderBottom:"xdppsyt",borderStart:"x1rr5fae",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x78zum5",height:"x18dl8mb",justifyContent:"xl56j7k",position:"x1n2onr6",width:"xrostsh",$$css:!0},photoIcon:{marginEnd:"xw3qccf",$$css:!0},smallContainer:{height:"xc9qbxq",width:"x14qfxbe",$$css:!0}},o=6;function a(a){var e=a.adgroupSpecs,f=a.isSingleMode,g=a.isSmallButton;a=a.queryRef;var p=c("useLWILoggerContext")(),q=p.pageID,r=c("useLWIReducers")([c("lwiCometAutomatedAdsReducer")]),s=c("useLWICometAutomatedAdsMediaContext")().adgroupSpec;p=d("LWICometTemplateDataUtils").getNonTemplateAdgroupsKeys(e);var t=p.map(function(a){return e[a]});p=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometAutomatedAdsNewMediaButtonForWhatsAppCatalog_page.graphql"),a);a=p==null?void 0:p.whatsapp_catalog_products;var u=a==null?[]:a.map(function(a){var b,c;b=a==null?void 0:(b=a.image)==null?void 0:(b=b.image)==null?void 0:b.uri;return a.id==null||a.name==null||b==null?null:{formattedPrice:((c=a.price)==null?void 0:c.amount)!=="0.00"?(c=a.price)==null?void 0:c.formatted_amount:"",id:a.id,image:b,name:a.name}}).filter(Boolean);p=m(new Set());var v=p[0],w=p[1];a=c("useCometEntryPointDialog")(c("LWICometWhatsAppCatalogItemsDialog.entrypoint"),{pageID:q});var x=a[0],y=l(function(){return{ad_account_id:null,ads_lwi_goal:"WHATSAPP_MESSAGES",objective:39,page_id:q,post_id:null,product_flow:"automated_ads",source_app_id:String(d("LWICometLoggingConstants").APP_ID)}},[q]),z=function(a){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},y,{event:"whatsapp_catalog_products_selected",event_info:Array.from(a).join(",")}));w(a);var b=f?babelHelpers["extends"]({},e):{},g=u.filter(function(b){return a.has(b.id)});g.forEach(function(a,c){var g={};f?g=t[t.length-1]:g=t.length===0?s:c
SellerInsightsV2TaggedContentContainer.react",["CommerceManagerContext","CommerceManagerHooks","GeoPageCard.react","GeoSection.react","SellerInsightsAttributionSortingDirection","SellerInsightsAttributionSortingKey","SellerInsightsSearchParamsUtils","SellerInsightsV2CutoffDateBanner","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TaggedContentBanners.react","SellerInsightsV2TaggedContentContainerQuery.graphql","SellerInsightsV2TaggedContentContext","SellerInsightsV2TaggedContentFilterUtils","SellerInsightsV2TaggedContentHeader.react","SellerInsightsV2TaggedContentLoggingUtils","SellerInsightsV2TaggedContentSubtabContainer.react","SellerInsightsV2TaggedContentTabEnum","geoMargin","getGraphQLEnumSafe","immutable","qpl","react","useFBNux"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=e.useState,m=10059,n=h!==void 0?h:h=b("SellerInsightsV2TaggedContentContainerQuery.graphql");function o(){var a,b,e,f;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");var g=j(c("CommerceManagerContext"));g=g.cmsID;var h=d("SellerInsightsV2TaggedContentLoggingUtils").useLogger(),o=l(d("SellerInsightsV2TaggedContentFilterUtils").DEFAULT_TAGGED_CONTENT_FILTERS),p=o[0];o=o[1];var q=l(d("immutable").List([])),r=q[0];q=q[1];var s=l(!1),t=s[0];s=s[1];g=d("CommerceManagerHooks").useCommerceManagerQuery(n,{accountID:(g=g)!=null?g:"0"});g=g.account;var u=(a=g==null?void 0:(a=g.features)==null?void 0:a.isShowInsightsNewPillEnabled)!=null?a:!1;a=(a=g==null?void 0:(a=g.features)==null?void 0:a.isTaggedContentExtendedMetricsEnabled)!=null?a:!1;b=(b=g==null?void 0:(b=g.features)==null?void 0:b.isTaggedContentSortByDateEnabled)!=null?b:!1;e=(e=g==null?void 0:(e=g.sellerAttributionInsights)==null?void 0:e.min_effective_date)!=null?e:0;f=(f=g==null?void 0:(f=g.sellerAttributionInsights)==null?void 0:f.attributed_media_formats_cutoff_date)!=null?f:0;g=(g=g==null?void 0:(g=g.sellerAttributionInsights)==null?void 0:g.metadata_breakdown_cutoff_date)!=null?g:0;var v=l(null),w=v[0];v=v[1];var x=l(!1),y=x[0];x=x[1];var z=d("SellerInsightsSearchParamsUtils").useSortKeySearchParam("CONTENT_VIEW",function(a){return a},function(a){return c("getGraphQLEnumSafe")(c("SellerInsightsAttributionSortingKey"),a)}),A=z[0];z=z[1];var B=d("SellerInsightsSearchParamsUtils").useSortDirectionSearchParam("DESCENDING",function(a){return a},function(a){return c("getGraphQLEnumSafe")(c("SellerInsightsAttributionSortingDirection"),a)}),C=B[0];B=B[1];var D=d("SellerInsightsSearchParamsUtils").useSubsectionSearchParam(c("SellerInsightsV2TaggedContentTabEnum").Review,function(a){return a},function(a){return c("SellerInsightsV2TaggedContentTabEnum").cast(a)}),E=D[0];D=D[1];h.logMarkerPointsStart(E,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS);h=c("useFBNux")(m,!1);var F=h.onHideNux;k(function(){u&&F()},[u,F]);return i.jsx(c("SellerInsightsV2TaggedContentContext").Provider,{value:{enhancementsCutoffDate:f,filters:p,forceFilterEmptyState:y,isReviewTableFromTopK:t,isTaggedContentExtendedMetricsEnabled:a,isTaggedContentSortByDateEnabled:b,localFilters:r,selectedItem:w,setFilters:o,setForceFilterEmptyState:x,setIsReviewTableFromTopK:s,setLocalFilters:q,setSelectedItem:v,setSortingDirection:B,setSortingKey:z,setSubtab:D,sortAndSearchCutoffDate:g,sortingDirection:C,sortingKey:A,subtab:E,wave3CutoffDate:e},children:i.jsxs(c("GeoSection.react"),{children:[i.jsx(c("SellerInsightsV2CutoffDateBanner"),{cutoffDate:e,xstyle:c("geoMargin").bottom16}),i.jsx(d("SellerInsightsV2TaggedContentBanners.react").SellerInsightsV2TaggedContentBanners,{}),i.jsx(c("SellerInsightsV2TaggedContentHeader.react"),{}),i.jsx(c("SellerInsightsV2TaggedContentSubtabContainer.react"),{})]})})}o.displayName=o.name+" [from "+f.id+"]";function a(){return i.jsx(c("GeoPageCard.react"),{columns:12,"data-testid":void 0,children:i.jsx(o,{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2OffsiteContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoPageCard.react","GeoPageGroup.react","GeoSpinner.react","SellerInsightsV2Context","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2OffsitePixelContainer.react","SellerInsightsV2QPLLoggingHooks","react","useFBNux"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect,l=b.useState,m=10060;function n(a){var b=a.cutoffDateBanner;a=a.setCutoffDateBanner;var e=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense(),f=i(function(a){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name}),e(a)},[e]);return h.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:h.jsx(c("GeoSpinner.react"),{center:!0}),oncall:"commerce_platform_insights",onHandleError:f,children:h.jsx(c("GeoBaseSpacingLayout.react"),{direction:"vertical",children:h.jsxs(c("GeoPageGroup.react"),{columns:12,density:"sparse",children:[b!=null?h.jsx(c("GeoPageCard.react"),{columns:12,children:b}):null,h.jsx(c("GeoPageCard.react"),{columns:12,"data-testid":void 0,children:h.jsx(c("SellerInsightsV2OffsitePixelContainer.react"),{cutoffDateBanner:b,setCutoffDateBanner:a})})]})})})}n.displayName=n.name+" [from "+f.id+"]";function a(){d("SellerInsightsV2QPLLoggingHooks").useLoggingForContainer("offsite_events");var a=j(c("CommerceManagerContext")),b=a.cmsID;a=j(c("SellerInsightsV2Context"));var e=a.channels,f=a.igChannelIDs,g=a.fbChannelIDs;a=j(c("SellerInsightsV2FeatureContext"));var i=a.isShowInsightsNewPillEnabled;a=l(null);var o=a[0];a=a[1];function p(){if(document.visibilityState==="visible")d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess("offsite_events",(a=b)!=null?a:"0",e,f,g,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)}}var q=c("useFBNux")(m,!1),r=q.onHideNux;k(function(){i&&r()},[i,r]);k(function(){document.addEventListener("visibilitychange",p);return function(){document.removeEventListener("visibilitychange",p)}});return h.jsx(n,{cutoffDateBanner:o,setCutoffDateBanner:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2OffsitePixelContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsPerformanceMetric.facebook","SellerInsightsSearchParamsUtils","SellerInsightsV2Context","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricUtils","SellerInsightsV2OffsiteEventsWithTableEnum","SellerInsightsV2OffsitePixelChartContainer.react","SellerInsightsV2OffsitePixelContainerQuery.graphql","SellerInsightsV2OffsitePixelMetricValues.react","SellerInsightsV2OffsitePixelTableContainer.react","SellerInsightsV2PerfPixelEventsUpsell.react","SellerInsightsV2PerfUtils","SellerInsigthsV2PerfNewPixelContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useContext,k=h!==void 0?h:h=b("SellerInsightsV2OffsitePixelContainerQuery.graphql");function a(a){var b,e=d("SellerInsightsSearchParamsUtils").useMetricSearchParam("OFFSITE_VIEW_CONTENT",function(a){return a},function(a){return c("SellerInsightsPerformanceMetric.facebook").cast(a)}),f=e[0];e=e[1];var g=j(c("CommerceManagerContext"));g=g.cmsID;var h=j(c("SellerInsightsV2Context")),l=h.channels;h=h.dateRange;var m=j(c("SellerInsightsV2FeatureContext"));m=m.isInsightsOffsiteTableEnabled;var n=h.getDateInterval(),o=n.start;n=n.end;b=(b=h.getCompareDateInterval())!=null?b:h.getPrevDateInterval();h=b.start;b=b.end;var p="DAY",q=d("SellerInsightsV2PerfUtils").OFFSITE_CONVERSIONS_NEXT;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointStart(c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_VALUES);d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_VALUES);g=d("CommerceManagerHooks").useCommerceManagerQuery(k,{accountID:(g=g)!=null?g:"0",attributionWindow:"TWENTY_EIGHT_DAYS",channels:l,endDate:n.toISOString(),granularity:p,metrics:q,prevEndDate:b.toISOString(),prevStartDate:h.toISOString(),queryAdditionalFbTimeline:!1,queryAdditionalIgTimeline:!1,queryPreviousTimeline:!1,startDate:o.toISOString()});var r=g.account;n=r==null?void 0:(l=r.productCatalog)==null?void 0:l.externalEventSources;p=n!=null&&(n==null?void 0:n.length)>0;if(r!=null){b=q.map(function(a){return d("SellerInsightsV2MetricUtils").getMetricConfig(r,a,!0)});h=b.every(function(a){return a.value!=null&&a.currentValue===0});o=h&&!p}else o=!p;return o?i.jsx(c("SellerInsightsV2PerfPixelEventsUpsell.react"),{catalogID:r==null?void 0:(g=r.productCatalog)==null?void 0:g.id,externalEventSources:n}):i.jsxs(c("SellerInsigthsV2PerfNewPixelContext").Provider,{value:{selectedMetric:f,setSelectedMetric:e},children:[i.jsx(c("SellerInsightsV2OffsitePixelMetricValues.react"),{cutoffDateBanner:a.cutoffDateBanner,setCutoffDateBanner:a.setCutoffDateBanner}),i.jsx(c("SellerInsightsV2OffsitePixelChartContainer.react"),{}),m?i.jsx(c("SellerInsightsV2OffsitePixelTableContainer.react"),{}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2OffsitePixelTableContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoHeading.react","GeoSection.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2OffsiteEventsLoggingUtils","SellerInsightsV2OffsiteEventsWithTableEnum","SellerInsightsV2OffsitePixelTable.react","SellerInsightsV2OffsitePixelTableContainerQuery.graphql","SellerInsightsV2OffsitePixelTableUtils","SellerInsightsV2Table.react","SellerInsightsV2TableUtils","SellerInsigthsV2PerfNewPixelContext","geoMargin","react","usePrevious"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=e.useState,m=["OFFSITE_ADD_TO_CART","OFFSITE_TOTAL_ORDERS"],n=h!==void 0?h:h=b("SellerInsightsV2OffsitePixelTableContainerQuery.graphql");function o(a){var b,e=a.columns,f=a.offsiteInsightSortingDirection,g=a.offsiteInsightSortingKey;a=a.sortableState;var h=j(c("CommerceManagerContext"));h=h.cmsID;var l=j(c("SellerInsightsV2Context")),m=l.attributionWindow;l=l.dateRange;var o=l.getDateInterval(),p=o.start;o=o.end;b=(b=l.getCompareDateInterval())!=null?b:l.getPrevDateInterval();l=b.start;b=b.end;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointStart(c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_TABLE);d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_TABLE);h=d("CommerceManagerHooks").useCommerceManagerQuery(n,{accountID:(h=h)!=null?h:"0",attributionWindow:m,endDate:o.toISOString(),prevEndDate:b.toISOString(),prevStartDate:l.toISOString(),productInsightSortingDirection:f,productInsightSortingKey:g,startDate:p.toISOString()});var q=h.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(q==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointEnd(q!=null,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_TABLE);k(function(){q==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):d("SellerInsightsV2OffsiteEventsLoggingUtils").scenarioSuccessIfAllOffsiteComponentsWithTableLoadedInOffsite(c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_TABLE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS)});return q==null?i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})}):i.jsx(c("SellerInsightsV2OffsitePixelTable.react"),{account:q,columns:e,sortableState:a})}o.displayName=o.name+" [from "+f.id+"]";function p(a){a=a.columns;return i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[i.jsx(c("GeoHeading.react"),{level:3,children:d("SellerInsightsV2Fbts").OFFSITE_PRODUCT_TABLE_HEADER}),i.jsx(c("SellerInsightsV2Table.react"),{columns:a,data:[],loggingAnnotations:{"Chart Name":"Offsite Products Table",Section:"offsite_events"},pagination:{hasNext:!1,isLoadingNext:!0,loadNext:null,pageSize:d("SellerInsightsV2Constants").PAGE_SIZE_FOR_OFFSITE},scrollable:!0})]})})}p.displayName=p.name+" [from "+f.id+"]";function a(){var a=j(c("SellerInsigthsV2PerfNewPixelContext")),b=a.selectedMetric,e=c("usePrevious")({selectedMetric:b});a=l("DESCENDING");var f=a[0];a=a[1];var g=l("OFFSITE_ADD_TO_CART"),h=g[0];g=g[1];var n=d("SellerInsightsV2TableUtils").useSortableState({ascendingDirection:"ASCENDING",currentDirection:f,currentKey:h,descendingDirection:"DESCENDING",onDirectionChange:a,onKeyChange:g});k(function(){b!==(e==null?void 0:e.selectedMetric)&&b!=="OFFSITE_VIEW_CONTENT"&&b!=="OFFSITE_SALES"&&n.setSort({direction:"descending",sortKey:d("SellerInsightsV2OffsitePixelTableUtils").getMetricColumnSortingKey(b)})},[e==null?void 0:e.selectedMetric,b,n]);a=d("SellerInsightsV2OffsitePixelTableUtils").useColumnsConfig(babelHelpers["extends"]({metrics:m},n));var q=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();return i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(p,{columns:a}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name}),q(a)},children:i.jsxs(c("GeoSection.react"),{children:[i.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom8,children:d("SellerInsightsV2Fbts").OFFSITE_PRODUCT_TABLE_HEADER}),i.jsx(o,{columns:a,offsiteInsightSortingDirection:f,offsiteInsightSortingKey:h,sortableState:n})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2OffsitePixelMetricValues.react",["CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoDataVizThemeTypes","GeoLink.react","GeoMetricDelta.react","GeoSection.react","GeoSelectableMetricGroup.react","GeoSelectableMetricTile.react","GeoSelector.react","GeoSelectorItem.react","GeoSpinner.react","GeoText.react","GeoTextPairing.react","SellerInsightsV2Context","SellerInsightsV2CutoffDateBanner","SellerInsightsV2DateConstants","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2HeroInteractionRoot","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2MetricUtils","SellerInsightsV2NumberUtils","SellerInsightsV2OffsiteEventsEnum","SellerInsightsV2OffsiteEventsLoggingUtils","SellerInsightsV2OffsiteEventsWithTableEnum","SellerInsightsV2OffsitePixelMetricValuesQuery.graphql","SellerInsightsV2PerfPixelEventsUpsell.react","SellerInsightsV2PerfUtils","SellerInsightsV2QPLLoggingHooks","SellerInsigthsV2PerfNewPixelContext","geoMargin","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m={endContent:{alignItems:"x6s0dn4",display:"x78zum5",flexShrink:"x2lah0s",minHeight:"xu0aao5",$$css:!0},headerText:{flexGrow:"x1iyjqo2",minWidth:"xeuugli",$$css:!0}},n=h!==void 0?h:h=b("SellerInsightsV2OffsitePixelMetricValuesQuery.graphql");function o(a){var b=k(c("SellerInsightsV2Context"));b=b.dateRange;var e=k(c("SellerInsightsV2FeatureContext")),f=e.isInsightsOffsiteTableEnabled,g=a.setCutoffDateBanner,h=a.cutoffDateBanner,j=a.offsiteProductEffectiveDate;e=b.getDateInterval();b=e.start;var m=b.toInstant(d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE),n=a.metricConfigs.reduce(function(a,b){return Math.max(a,b.effectiveDate)},0);l(function(){if(f){var a;m
-----
SellerInsightsV2OffsitePixelLineChart.react",["invariant","CommerceManagerContext","CommerceManagerHooks","GeoBaseSpacingLayout.react","GeoTextPairing.react","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricUtils","SellerInsightsV2OffsiteEventsEnum","SellerInsightsV2OffsiteEventsLoggingUtils","SellerInsightsV2OffsiteEventsWithTableEnum","SellerInsightsV2OffsitePixelLineChartQuery.graphql","SellerInsightsV2PerfLineChart.next.react","SellerInsigthsV2PerfNewPixelContext","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=i!==void 0?i:i=b("SellerInsightsV2OffsitePixelLineChartQuery.graphql"),n={emptyChart:{width:"x3hqpx7",$$css:!0},headerText:{flexGrow:"x1iyjqo2",minWidth:"xeuugli",$$css:!0},item:{boxSizing:"x9f619",height:"x1vd4hg5",paddingEnd:"x1pi30zi",paddingTop:"x1p5oq8j",width:"xh8yej3",$$css:!0}};function o(a){var b=k(c("SellerInsightsV2Context"));b=b.dateRange;b=b.getDateInterval();var d=b.start;b=b.end;var e=a.metricConfig;a=a.metricConfig.value!=null&&a.metricConfig.currentValue===0;return a?j.jsx("div",{className:"x3hqpx7",children:j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").NoData})}):j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[j.jsx(c("GeoTextPairing.react"),{description:null,heading:e.title,overflowWrap:"break-word",size:"header3",xstyle:n.headerText}),j.jsx(c("SellerInsightsV2PerfLineChart.next.react"),{metricConfig:e,shouldHideHeader:!0,tab:"PixelEvents",xstyle:n.item},""+d.toISOString()+b.toISOString())]})}o.displayName=o.name+" [from "+f.id+"]";function a(){var a,b=k(c("CommerceManagerContext"));b=b.cmsID;var e=k(c("SellerInsightsV2Context")),f=e.channels,g=e.dateRange;e=e.attributionWindow;var i=k(c("SellerInsightsV2FeatureContext")),n=i.isInsightsOffsiteTableEnabled;i=k(c("SellerInsigthsV2PerfNewPixelContext"));i=i.selectedMetric;var p=f.length>1,q=!0;p=!p||q;q=!p;var r=g.getDateInterval(),s=r.start;r=r.end;a=(a=g.getCompareDateInterval())!=null?a:g.getPrevDateInterval();g=a.start;a=a.end;var t="DAY";d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_LINE_CHART);b=d("CommerceManagerHooks").useCommerceManagerQuery(m,{accountID:(b=b)!=null?b:"0",attributionWindow:e,channels:f,endDate:r.toISOString(),granularity:t,metrics:[i],prevEndDate:a.toISOString(),prevStartDate:g.toISOString(),queryAdditionalFbTimeline:q,queryAdditionalIgTimeline:q,queryPreviousTimeline:p,startDate:s.toISOString()});var u=b.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(u==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointEnd(u!=null,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_LINE_CHART);l(function(){u==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):(n?d("SellerInsightsV2OffsiteEventsLoggingUtils").scenarioSuccessIfAllOffsiteComponentsWithTableLoadedInOffsite(c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_LINE_CHART,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS):d("SellerInsightsV2OffsiteEventsLoggingUtils").scenarioSuccessIfAllOffsiteComponentsLoadedInOverview(c("SellerInsightsV2OffsiteEventsEnum").METRIC_LINE_CHART,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS),d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7087231,"41")],{}))});if(!u)return j.jsx("div",{className:"x3hqpx7",children:j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})});e=[i].map(function(a){return d("SellerInsightsV2MetricUtils").getMetricConfig(u,a,!0)});e.length>0||h(0,53954);return j.jsx(o,{metricConfig:e[0]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2OffsitePixelDonutChart.react",["CommerceManagerContext","CommerceManagerHooks","GeoBaseSpacingLayout.react","GeoChartBaseLegend.react","GeoChartPalette","GeoChartTooltip.react","GeoDonutChart.react","GeoFlexbox.react","GeoPrivateChartPaletteContext","GeoTextPairing.react","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricDefinitions","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2MetricUtils","SellerInsightsV2NumberUtils","SellerInsightsV2OffsiteEventsEnum","SellerInsightsV2OffsiteEventsLoggingUtils","SellerInsightsV2OffsiteEventsWithTableEnum","SellerInsightsV2OffsitePixelDonutChartQuery.graphql","SellerInsightsV2QPLLoggingHooks","SellerInsigthsV2PerfNewPixelContext","geoMargin","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2OffsitePixelDonutChartQuery.graphql"),m={chart:{height:"x1h0wqhi",width:"x3smdqs",$$css:!0},chartTitle:{marginBottom:"x9a3u73",$$css:!0},emptyChart:{width:"x3hqpx7",$$css:!0},root:{marginStart:"x16hk5td",marginTop:"x1xmf6yo",$$css:!0}};function n(a){switch(a){case"FOLLOWER":return d("SellerInsightsV2Fbts").FOLLOWER_VISITORS;case"NON_FOLLOWER":return d("SellerInsightsV2Fbts").NON_FOLLOWER_VISITORS;default:return""}}function o(a){switch(a){case"FOLLOWER":return i.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:!1,isReviewed:!1,secondaryText:d("SellerInsightsV2Fbts").FOLLOWER_COUNT_DISCLAIMER,shouldBeReported:!0,text:d("SellerInsightsV2Fbts").FOLLOWER_VISITORS_DESCRIPTION,title:d("SellerInsightsV2Fbts").FOLLOWER_VISITORS});case"NON_FOLLOWER":return i.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:!1,isReviewed:!1,secondaryText:d("SellerInsightsV2Fbts").FOLLOWER_COUNT_DISCLAIMER,shouldBeReported:!0,text:d("SellerInsightsV2Fbts").NON_FOLLOWER_VISITORS_DESCRIPTION,title:d("SellerInsightsV2Fbts").NON_FOLLOWER_VISITORS});default:return null}}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=j(c("GeoPrivateChartPaletteContext")),e=b.getColor;return i.jsx(c("GeoFlexbox.react"),{children:i.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",grow:"auto",relation:"related",xstyle:c("geoMargin").start12,children:a.chartData.map(function(a,b){var f=a.key;a=a.value;b=e(b);return i.jsx("div",{className:"x9a3u73",children:i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",children:[i.jsx(c("GeoChartBaseLegend.react"),{color:b,"data-testid":void 0,description:d("SellerInsightsV2NumberUtils").formatPercentX1(a),label:n(f),variant:"bar"},f),o(f)]})},f)})})})}p.displayName=p.name+" [from "+f.id+"]";function a(){var a,b=j(c("CommerceManagerContext"));b=b.cmsID;var e=j(c("SellerInsightsV2Context")),f=e.channels,g=e.dateRange;e=e.attributionWindow;var h=j(c("SellerInsightsV2FeatureContext")),o=h.isInsightsOffsiteTableEnabled;h=j(c("SellerInsigthsV2PerfNewPixelContext"));h=h.selectedMetric;var q=f.length>1,r=!0;q=!q||r;r=!q;var s=g.getDateInterval(),t=s.start;s=s.end;a=(a=g.getCompareDateInterval())!=null?a:g.getPrevDateInterval();g=a.start;a=a.end;var u="DAY";d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointStart(c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_DONUT_CHART);d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_DONUT_CHART);b=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(b=b)!=null?b:"0",attributionWindow:e,channels:f,endDate:s.toISOString(),granularity:u,metrics:[h],prevEndDate:a.toISOString(),prevStartDate:g.toISOString(),queryAdditionalFbTimeline:r,queryAdditionalIgTimeline:r,queryPreviousTimeline:q,startDate:t.toISOString()});var v=b.account;e=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredPixelChart:"Dount chart"},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(v==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointEnd(v!=null,c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_DONUT_CHART);k(function(){v==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):(o?d("SellerInsightsV2OffsiteEventsLoggingUtils").scenarioSuccessIfAllOffsiteComponentsWithTableLoadedInOffsite(c("SellerInsightsV2OffsiteEventsWithTableEnum").METRIC_DONUT_CHART,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS):d("SellerInsightsV2OffsiteEventsLoggingUtils").scenarioSuccessIfAllOffsiteComponentsLoadedInOverview(c("SellerInsightsV2OffsiteEventsEnum").METRIC_DONUT_CHART,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS),d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7087231,"41")],{}))});if(!v)return i.jsx("div",{className:"x3hqpx7",children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})});f=d("SellerInsightsV2MetricUtils").getMetricConfigForBreakdown(v,h);s=d("SellerInsightsV2MetricDefinitions").getPerformanceMetricDefinition(h);if(f==null)return i.jsx("div",{className:"x3hqpx7",children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").NoData})});u=f.slice(0,2).map(function(a){var b;return{key:(b=a.follower_status)!=null?b:"",name:a.follower_status!=null?n(a.follower_status):"",value:((b=a.percent)!=null?b:0)*100}});return i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoTextPairing.react"),{description:d("SellerInsightsV2Fbts").FOLLOWER_NON_FOLLOWER_BREAKDOWN_SUBTITLE,heading:s.title,overflowWrap:"break-word",size:"header3"}),i.jsx(c("GeoFlexbox.react"),{xstyle:m.root,children:i.jsx("div",{onMouseEnter:e,onMouseLeave:e.reset,children:i.jsx(c("GeoDonutChart.react"),{data:u,header:i.jsx(p,{chartData:u}),isLabelHidden:!0,label:"",palette:c("GeoChartPalette").Leading1,tooltipRenderer:function(a){var b=a.name;a=a.percentage;return i.jsx(c("GeoChartTooltip.react"),{content:i.jsxs(i.Fragment,{children:[i.jsxs("strong",{children:[b,":"]})," ",d("SellerInsightsV2NumberUtils").formatPercentX100(a)]})})},xstyle:m.chart})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2EntryPointsContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoCard.react","GeoPageCard.react","GeoSection.react","SellerInsightsSearchParamsUtils","SellerInsightsV2Context","SellerInsightsV2CutoffDateBanner","SellerInsightsV2EntryPointsBarChart.react","SellerInsightsV2EntryPointsBarChartGlimmer.react","SellerInsightsV2EntryPointsContainerQuery.graphql","SellerInsightsV2EntryPointsContext.react","SellerInsightsV2EntryPointsLoggingUtils","SellerInsightsV2EntryPointsTable.react","SellerInsightsV2EntryPointsTableGlimmer.react","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2LoggingWrapper","SellerInsightsV2QPLLoggingHooks","XFBCommerceInsightsSortingDirection.facebook","XFBCommerceInsightsSortingKey.facebook","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2EntryPointsContainerQuery.graphql"),m=["SESSIONS","VISITORS","NEW_VISITORS","RETURNING_VISITORS","SESSIONS_PER_VISITOR","BOUNCE_RATE"],n=["VISITORS","NEW_VISITORS","RETURNING_VISITORS","SESSIONS"];function o(){var a=j(c("CommerceManagerContext")),b=a.cmsID;a=j(c("SellerInsightsV2Context"));var e=a.channels,f=a.igChannelIDs,g=a.fbChannelIDs;function h(){if(document.visibilityState==="visible")d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess("entry_points",(a=b)!=null?a:"0",e,f,g,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)}}k(function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart();document.addEventListener("visibilitychange",h);return function(){document.removeEventListener("visibilitychange",h)}});var i=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerCallback(d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);return function(a){a=Array.from(a.entries()).every(function(a){a=a[1];return a});a&&(d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,"entry_points"),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,{}));i(!a);a||d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})}}function p(){return i.jsx(c("GeoCard.react"),{children:i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoBaseSpacingLayout.react"),{align:null,context:"container",direction:"vertical",relation:"section",children:[i.jsx(c("SellerInsightsV2EntryPointsBarChartGlimmer.react"),{}),i.jsx(c("SellerInsightsV2EntryPointsTableGlimmer.react"),{metrics:m})]})})})}p.displayName=p.name+" [from "+f.id+"]";function q(){var a=j(c("CommerceManagerContext"));a=a.cmsID;var b=j(c("SellerInsightsV2EntryPointsContext.react")),e=b.entryPointSortingDirection;b=b.entryPointSortingKey;var f=j(c("SellerInsightsV2Context")),g=f.channels;f=f.dateRange;f=f.getDateInterval();var h=f.start;f=f.end;a=d("CommerceManagerHooks").useCommerceManagerQuery(l,{channels:g,cmsIDs:[(g=a)!=null?g:"0"],endDate:f.toISOString(),metrics:m,metricsWithTotal:n,sortingDirection:e,sortingKey:b,startDate:h.toISOString()});g=o();return i.jsx(d("SellerInsightsV2LoggingWrapper").SellerInsightsV2LoggingWrapper,{components:d("SellerInsightsV2EntryPointsLoggingUtils").ENTRY_POINTS_COMPONENTS_TO_LOG,onAllComponentsLoaded:g,children:i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoBaseSpacingLayout.react"),{align:null,context:"container",direction:"vertical",relation:"section",children:[i.jsx(c("SellerInsightsV2CutoffDateBanner"),{cutoffDate:0}),i.jsx(c("SellerInsightsV2EntryPointsBarChart.react"),{topSources:a}),i.jsx(c("SellerInsightsV2EntryPointsTable.react"),{fragmentRef:a,metrics:m,metricsWithTotals:n})]})})})}q.displayName=q.name+" [from "+f.id+"]";function r(){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,"entry_points");return i.jsx(c("GeoCard.react"),{children:i.jsx(q,{})})}r.displayName=r.name+" [from "+f.id+"]";function a(){d("SellerInsightsV2QPLLoggingHooks").useLoggingForContainer("entry_points");var a=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense(),b=d("SellerInsightsSearchParamsUtils").useSortKeySearchParam("SESSIONS",function(a){return a},function(a){return c("XFBCommerceInsightsSortingKey.facebook").cast(a)}),e=b[0];b=b[1];var f=d("SellerInsightsSearchParamsUtils").useSortDirectionSearchParam("DESCENDING",function(a){return a},function(a){return c("XFBCommerceInsightsSortingDirection.facebook").cast(a)}),g=f[0];f=f[1];return i.jsx(c("GeoPageCard.react"),{columns:12,"data-testid":void 0,children:i.jsx(c("SellerInsightsV2EntryPointsContext.react").Provider,{value:{entryPointSortingDirection:g,entryPointSortingKey:e,setEntryPointSortingDirection:f,setEntryPointSortingKey:b},children:i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(p,{}),oncall:"commerce_platform_insights",onHandleError:function(b,c){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS,{ErrorMessage:b.message,ErrorName:b.name}),a(b)},children:i.jsx(r,{})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2PerfContainer.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoHeading.react","GeoPageCard.react","GeoSection.react","GeoSpinner.react","GeoTab.react","GeoTabGroup.react","GeoToolbar.react","Locale","RelayHooks","SellerInsightsSearchParamsUtils","SellerInsightsV2CardHeader.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2CutoffDateBanner","SellerInsightsV2EmptyContainer.react","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2FunnelContainer.react","SellerInsightsV2FunnelContainerGlimmer.react","SellerInsightsV2GranularityUtils","SellerInsightsV2GraphGranularitySelector.react","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricUtils","SellerInsightsV2PerfContainerLegacyQuery.graphql","SellerInsightsV2PerfContainerQuery.graphql","SellerInsightsV2PerfContainerUnifiedQuery.graphql","SellerInsightsV2PerfContainer_ChanneledTimeline.graphql","SellerInsightsV2PerfContainer_PrevTimeline.graphql","SellerInsightsV2PerfContext","SellerInsightsV2PerfExportButton.react","SellerInsightsV2PerfMetricGrid.react","SellerInsightsV2PerfSessionBehaviorContainer.react","SellerInsightsV2PerfTabEnum","SellerInsightsV2PerfUtils","SellerInsightsV2PerfUtils.react","SellerInsightsV2QPLLoggingHooks","SellerInsightsV2SegmentationSelector.react","SellerInsightsV2ShopSelector.react","SellerInsightsV2UnifiedGraphQLUtils","SellerInsightsV2WhatsNew","SellerInsightsV2WhatsNewFeatures","filterNulls","geoMargin","qpl","react","useEffectOnce"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=d("react");e=d("react");var n=e.useCallback,o=e.useContext,p=e.useEffect,q=e.useMemo,r=e.useState,s=h!==void 0?h:h=b("SellerInsightsV2PerfContainerLegacyQuery.graphql"),t=i!==void 0?i:i=b("SellerInsightsV2PerfContainerQuery.graphql"),u=j!==void 0?j:j=b("SellerInsightsV2PerfContainerUnifiedQuery.graphql"),v=k!==void 0?k:k=b("SellerInsightsV2PerfContainer_PrevTimeline.graphql"),w=l!==void 0?l:l=b("SellerInsightsV2PerfContainer_ChanneledTimeline.graphql"),x={error:{alignItems:"x6s0dn4",boxSizing:"x9f619",justifyContent:"xl56j7k",$$css:!0},header:{display:"x78zum5",justifyContent:"x1qughib",$$css:!0}};function y(a){switch(a){case c("SellerInsightsV2PerfTabEnum").Behavior:return d("SellerInsightsV2Fbts").PERF_BEHAVIOR_SUBTAB_LABEL;case c("SellerInsightsV2PerfTabEnum").Sales:return d("SellerInsightsV2Fbts").PERF_SALES_SUBTAB_LABEL;case c("SellerInsightsV2PerfTabEnum").Traffic:return d("SellerInsightsV2Fbts").PERF_TRAFFIC_SUBTAB_LABEL;case c("SellerInsightsV2PerfTabEnum").Funnel:return d("SellerInsightsV2Fbts").PERF_FUNNEL_SUBTAB_LABEL}}function z(a){var b=a.tab,e=a.granularity;a=a.metricConfigs;var f=a.every(function(a){return a.value!=null&&a.currentValue===0});return f?m.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.ACCOUNT_OVERVIEW_EMPTY_STATE}):m.jsx(c("SellerInsightsV2PerfMetricGrid.react"),{granularity:e,metricConfigs:a,tab:b})}z.displayName=z.name+" [from "+f.id+"]";function A(a){var b,e=a.tab,f=a.granularity,g=a.currency;a=o(c("CommerceManagerContext"));a=a.cmsID;var h=o(c("SellerInsightsV2Context")),i=h.channels;h=h.dateRange;var j=o(c("SellerInsightsV2PerfContext")),k=j.shopID;j=j.selectedAudienceSegmentFilter;k=Number(k===""?0:k);var l=h.getDateInterval(),n=l.start;l=l.end;b=(b=h.getCompareDateInterval())!=null?b:h.getPrevDateInterval();h=b.start;b=b.end;var p=o(c("CommerceManagerComponentGatingContext")),q=p.checkoutStyle;p.paymentProvider;p=d("SellerInsightsV2PerfUtils").getMetrics(q,e,null,k!==0);q=p.filter(function(a){return d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric(a)!=null});p=c("filterNulls")(q.map(function(a){return d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric(a)}));var r=i.length>1;r=!r||k!==0;var s=!r&&k===0;p=d("Locale").isRTL()?[].concat(p).reverse():p;a=d("CommerceManagerHooks").useCommerceManagerQuery(u,{accountID:(a=a)!=null?a:"0",audienceSegmentFilter:j,channels:i,endDate:l.toISOString(),granularity:d("SellerInsightsV2UnifiedGraphQLUtils").getCommerceInsightsBreakdownFromGranularity(f),includePerChannelTimeline:s,includePoPTimeline:r,metrics:p,prevEndDate:b.toISOString(),prevStartDate:h.toISOString(),shopID:k,startDate:n.toISOString()});var t=d("SellerInsightsV2UnifiedGraphQLUtils").useUnifiedTimelineValues(a,{includeCurrentValue:!0,includeDataPoints:!0,includePreviousValue:!0});j=d("RelayHooks").useFragment(v,r?a:null);i=d("RelayHooks").useFragment(w,s?a:null);var x=d("SellerInsightsV2UnifiedGraphQLUtils").useEffectiveDateForMetrics(a),y=d("SellerInsightsV2UnifiedGraphQLUtils").useMetricsChartData(j==null?void 0:j.prevTimeline),A=d("SellerInsightsV2UnifiedGraphQLUtils").useMetricsChartData(i==null?void 0:i.fbTimeline),B=d("SellerInsightsV2UnifiedGraphQLUtils").useMetricsChartData(i==null?void 0:i.igTimeline);l=a==null||t.metricsChartData==null||t.currentValues==null;d("SellerInsightsV2PerfUtils.react").useLogScenarioEnd(l,e);p=c("filterNulls")(q.map(function(a){return d("SellerInsightsV2PerfUtils").getMetricConfigForTimelineValues(t,y,A,B,a,g,d("SellerInsightsV2PerfUtils").getEffectiveDateFromLegacyMetric(a,x))}));return m.jsx(z,{granularity:f,metricConfigs:p,tab:e})}A.displayName=A.name+" [from "+f.id+"]";function B(a){var b,e=o(c("SellerInsightsV2PerfContext"));e=e.selectedAudienceSegmentFilter;var f=a.tab,g=a.granularity,h=o(c("CommerceManagerContext"));h=h.cmsID;var i=o(c("SellerInsightsV2Context")),j=i.channels;i=i.dateRange;var k=j.length>1;k=!k;var l=!k,n=i.getDateInterval(),p=n.start;n=n.end;b=(b=i.getCompareDateInterval())!=null?b:i.getPrevDateInterval();i=b.start;b=b.end;var q=o(c("CommerceManagerComponentGatingContext")),r=q.checkoutStyle;q.paymentProvider;q=d("SellerInsightsV2PerfUtils").getMetrics(r,f,null);h=d("CommerceManagerHooks").useCommerceManagerQuery(s,{accountID:(r=h)!=null?r:"0",audienceSegmentFilter:e,channels:j,endDate:n.toISOString(),granularity:g,metrics:q,prevEndDate:b.toISOString(),prevStartDate:i.toISOString(),queryAdditionalFbTimeline:l,queryAdditionalIgTimeline:l,queryPreviousTimeline:k,startDate:p.toISOString()});var t=h.account;j=t==null||(t==null?void 0:(r=t.accountInsights)==null?void 0:r.insightsMetricsTimeline)==null||(t==null?void 0:(e=t.accountInsights)==null?void 0:e.insightsMetrics)==null;d("SellerInsightsV2PerfUtils.react").useLogScenarioEnd(j,f);if(!t)return m.jsx("div",{});n=q.map(function(a){return d("SellerInsightsV2MetricUtils").getMetricConfig(t,a)});return m.jsx(z,babelHelpers["extends"]({},a,{metricConfigs:n}))}B.displayName=B.name+" [from "+f.id+"]";function C(){return m.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error,xstyle:x.error})}C.displayName=C.name+" [from "+f.id+"]";function a(){var b,e,f,g,h,i,j=o(c("CommerceManagerContext")),k=j.cmsID;j=o(c("SellerInsightsV2Context"));var l=j.channels,s=j.igChannelIDs,u=j.fbChannelIDs,v=j.igChannelCount,w=j.fbChannelCount,x=j.dateRange;j=j.shops;var D=x.getTimeInterval().getStartDateTime(),E=x.getDefaultGranularity(),F=o(c("SellerInsightsV2FeatureContext")),G=F.isFunnelEnabled,H=d("SellerInsightsV2WhatsNew").useWhatsNew(),I=n(function(a){a!=null&&H(d("SellerInsightsV2WhatsNewFeatures").SellerInsightsV2Feature.FunnelTab,{current:a})},[H]);F=d("SellerInsightsV2GranularityUtils").GranularitySelectorOption.Default;var J=r(F),K=J[0],L=J[1];J=d("SellerInsightsSearchParamsUtils").useAudienceSegmentationSearchParam(null);var M=J[0],N=J[1];J=o(c("CommerceManagerComponentGatingContext"));var O=J.checkoutStyle;J.paymentProvider;J=d("CommerceManagerHooks").useCommerceManagerQuery(t,{cmsID:(J=k)!=null?J:"0"});J=J.account;var P=q(function(){var a;switch(O){case"CONTACT_MERCHANT":case"OFFSITE":a=G?[c("SellerInsightsV2PerfTabEnum").Funnel,c("SellerInsightsV2PerfTabEnum").Behavior,c("SellerInsightsV2PerfTabEnum").Traffic]:[c("SellerInsightsV2PerfTabEnum").Behavior,c("SellerInsightsV2PerfTabEnum").Traffic];break;case"ONSITE":a=G?[c("SellerInsightsV2PerfTabEnum").Funnel,c("SellerInsightsV2PerfTabEnum").Sales,c("SellerInsightsV2PerfTabEnum").Behavior,c("SellerInsightsV2PerfTabEnum").Traffic]:[c("SellerInsightsV2PerfTabEnum").Sales,c("SellerInsightsV2PerfTabEnum").Behavior,c("SellerInsightsV2PerfTabEnum").Traffic];break;default:O,a=[]}return a},[O,G]);b=(b=P[0])!=null?b:c("SellerInsightsV2PerfTabEnum").Behavior;b=d("SellerInsightsSearchParamsUtils").useSubsectionSearchParam(b,function(a){return a},function(a){return c("SellerInsightsV2PerfTabEnum").cast(a)});var Q=b[0],R=b[1],S=(b=P.find(function(a){return a===Q}))!=null?b:P[0];d("SellerInsightsV2QPLLoggingHooks").useLoggingForContainer("perf");c("useEffectOnce")(function(){S!=null&&S!==Q&&R(S)});b=n(function(a){var b;d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7086483,"270"),{AccountID:(b=k)!=null?b:0,Channels:l.join(" and "),FBChannelIDs:u,Granularity:a,IGChannelIDs:s,PreviousGranularity:K,Section:"perf",Tab:S});L(a)},[l,k,u,K,s,S]);e=(e=J==null?void 0:(e=J.seller_product_insights)==null?void 0:e.shop_selector_lifetime)!=null?e:0;var T=D.getUnixTimestampSeconds()
-----
SellerInsightsV2PerfLineChart.next.react",["fbt","CommerceManagerContext","GeoChartApproximation","GeoChartAxis.react","GeoChartLegend.react","GeoChartSeriesDefaultTooltip.react","GeoFlexbox.react","GeoLineChart.react","GeoPrivateChartPaletteContext","LocalDate","LocalDateTime","SellerInsightsV2ChartUtils","SellerInsightsV2ChartUtils.next","SellerInsightsV2Context","SellerInsightsV2DateConstants","SellerInsightsV2DateUtils","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricUtils","SellerInsightsV2PerfContext","SellerInsightsV2PerfLineChartHeader.react","SellerInsightsV2PerfUtils.react","intlList","qpl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useContext;function k(a,b){return(a=a==null?void 0:a.map(function(a){var c=a.amount;a=a.time;return{amount:a>=b?(c=c)!=null?c:null:null,time:a}}))!=null?a:[]}function l(a){return(a=a==null?void 0:a.map(function(a){return[a.time,(a=a.amount)!=null?a:null]}))!=null?a:[]}function m(a,b,e,f){var g=[d("SellerInsightsV2Fbts").DATE_AXIS_LABEL,""];if(b===d("SellerInsightsV2PerfUtils.react").PerfChartType.ChannelComparison){b=a.chartData;var i=a.fbChartData,j=a.igChartData,m=a.effectiveDate;b=[{labels:g,name:c("intlList")([h._("Facebook"),h._("Instagram")],"AND"),value:l(k(b,m))},{labels:g,name:h._("Facebook"),value:l(k(i,m))},{labels:g,name:h._("Instagram"),value:l(k(j,m))}]}else if(f){i=a.chartData;j=a.effectiveDate;b=[{labels:g,name:a.title,value:l(k(i,j))}]}else{m=a.chartData;f=a.prevChartData;i=k(f,a.effectiveDate);j=k(m,a.effectiveDate);var p=o(e);m=(f=i==null?void 0:i.map(function(a){return d("SellerInsightsV2ChartUtils").shiftChartDataTime(a,p)}))!=null?f:[];a=[].concat(j);i=m;j.length>m.length?i=n(a,m):m.length>j.length&&(a=n(m,a));b=[{labels:g,name:d("SellerInsightsV2DateUtils").formatCompareDateRange(e),value:l(i)},{labels:g,name:d("SellerInsightsV2DateUtils").formatDateRange(e),value:l(a)}]}return b}function n(a,b){var c=b;for(b=b.length;b
-----
SellerInsightsV2FunnelContainer.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerRouter","CommerceManagerSuspense.react","GeoHStack.react","GeoHeading.react","GeoText.react","GeoVStack.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2EmptyContainer.react","SellerInsightsV2EntryPointsTableUtils","SellerInsightsV2Fbts","SellerInsightsV2FunnelBarChart.react","SellerInsightsV2FunnelCardGlimmer.react","SellerInsightsV2FunnelContainerQuery.graphql","SellerInsightsV2FunnelUtils","SellerInsightsV2HighCheckoutsLowPurchasesUpsellCard.react","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2PerfContext","SellerInsightsV2PerfTabEnum","SellerInsightsV2PerfUtils.react","SellerInsightsV2TaggedContentCard.react","SellerInsightsV2TopProductsByAddsToCartCardUpsellCard.react","SellerInsightsV2TopProductsCard.react","SellerInsightsV2TopSellingProductsCard.react","SellerInsightsV2TopSellingProductsUpsellCard.react","SellerInsightsV2TopSourcesCard.react","SellerInsightsV2VisitorsByDayCard.react","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=h!==void 0?h:h=b("SellerInsightsV2FunnelContainerQuery.graphql"),m={disclaimer:{marginBottom:"x1e56ztr",$$css:!0},funnel:{height:"xu3xrit",marginBottom:"x1e56ztr",$$css:!0},funnelCard:{flexBasis:"x1xq6q5s",flexGrow:"x1iyjqo2",height:"x1g4ss9u",$$css:!0},shortFunnel:{width:"xinu3np",$$css:!0}};function n(a){return(a=a==null?void 0:(a=a.insights_metrics)==null?void 0:a.metric_funnel_dropoff_results.map(function(a){return a.count==null||a.metric==null?null:{count:a.count,dropoffRate:a.dropoff_rate,metric:a.metric,retentionRate:a.retention_rate}}).filter(Boolean))!=null?a:[]}var o="Checkout Upgrade Upsell";function p(a){var b=a.upgradeToOnsiteURI;a=k(c("CommerceManagerContext"));var e=a.cmsID;a=k(c("SellerInsightsV2Context"));var f=a.fbChannelIDs,g=a.igChannelIDs,h=a.channels,l=c("CommerceManagerRouter")();a=j(function(){var a;d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7087539,"650"),{AccountID:(a=e)!=null?a:0,Channels:h.join(" and "),FBChannelIDs:f,FunnelCardType:o,IGChannelIDs:g,URI:(a=b)!=null?a:""});l.navigateInNewWindow(b)},[h,e,l,f,g,b]);return i.jsxs(c("GeoHStack.react"),{context:"container",relation:"unrelated",children:[i.jsx(c("SellerInsightsV2TopProductsByAddsToCartCardUpsellCard.react"),{xstyle:m.funnelCard}),i.jsx(c("SellerInsightsV2HighCheckoutsLowPurchasesUpsellCard.react"),{overlay:d("SellerInsightsV2FunnelUtils").UpsellCardOverlay.CTA,xstyle:m.funnelCard,onCTAClick:a}),i.jsx(c("SellerInsightsV2TopSellingProductsUpsellCard.react"),{xstyle:m.funnelCard})]})}p.displayName=p.name+" [from "+f.id+"]";function a(){var a=k(c("CommerceManagerContext"));a=a.cmsID;var b=k(c("SellerInsightsV2Context")),e=b.channels,f=b.dateRange,g=b.attributionCheckoutStyle;b=b.attributionContentType;var h=k(c("CommerceManagerComponentGatingContext"));h=h.checkoutStyle;var j=k(c("SellerInsightsV2PerfContext"));j=j.selectedAudienceSegmentFilter;f=f.getDateInterval();var o=f.start;f=f.end;var q=d("SellerInsightsV2FunnelUtils").getMetrics(h),r=["SESSION"],s=d("SellerInsightsV2FunnelUtils").getProductCardRequestParams(d("SellerInsightsV2FunnelUtils").FunnelCardType.HighCheckouts),t=s.sortDirection,u=s.sortKey;s=s.filteringForGraphQL;var v=d("SellerInsightsV2FunnelUtils").getProductCardRequestParams(d("SellerInsightsV2FunnelUtils").FunnelCardType.ProductsByAddsToCart),w=v.sortDirection;v=v.sortKey;var x=d("SellerInsightsV2FunnelUtils").getProductCardRequestParams(d("SellerInsightsV2FunnelUtils").FunnelCardType.ProductsBySales),y=x.sortDirection;x=x.sortKey;var z=["SESSION"];b=d("CommerceManagerHooks").useCommerceManagerQuery(l,{attributionCheckoutStyle:g,attributionContentType:b,attributionFilters:{content_channels:e},attributionMetrics:["VISITOR"],attributionSortingDirection:"DESCENDING",attributionSortingKey:"VISITOR",audienceSegmentFilter:j,channels:e,cmsID:(g=a)!=null?g:"",endDate:f.toISOString(),excludeUncategorized:!0,first:d("SellerInsightsV2FunnelUtils").PRODUCT_GROUP_COUNT,funnelMetrics:q,granularity:"DAY",highCheckoutsLowPurchasesFilteringData:s,highCheckoutsLowPurchasesSortingDirection:t,highCheckoutsLowPurchasesSortingKey:u,startDate:o.toISOString(),timelineMetrics:r,topAddedToCartProductInsightSortingDirection:w,topAddedToCartProductInsightSortingKey:v,topSellingProductInsightSortingDirection:y,topSellingProductInsightSortingKey:x,topSourcesCount:d("SellerInsightsV2EntryPointsTableUtils").TOP_SOURCES_COUNT,topSourcesMetric:d("SellerInsightsV2EntryPointsTableUtils").TOP_SOURCES_METRIC,topSourcesPerfMetric:z});e=b==null?void 0:b.account;d("SellerInsightsV2PerfUtils.react").useLogScenarioEnd(e==null,c("SellerInsightsV2PerfTabEnum").Funnel,d("SellerInsightsV2LoggingConstants").ERROR_NULL_RELAY_RESPONSE);a=n(e==null?void 0:e.funnelGraphData);g=a.every(function(a){return a.count===0});if(g)return i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_FUNNEL_INSIGHTS});f=h==="ONSITE"?i.jsx(c("GeoHStack.react"),{context:"container",relation:"unrelated",children:i.jsxs(c("CommerceManagerSuspense.react"),{loadingComponent:i.jsx(i.Fragment,{children:Array.from({length:3}).map(function(a,b){return i.jsx(c("SellerInsightsV2FunnelCardGlimmer.react"),{index:1,xstyle:m.funnelCard},b)})}),oncall:"commerce_platform_insights",children:[i.jsx(c("SellerInsightsV2TopProductsCard.react"),{primaryMetric:"ADD_TO_CART",rawData:e==null?void 0:e.topAddedToCartProducts,xstyle:m.funnelCard}),i.jsx(c("SellerInsightsV2TopProductsCard.react"),{primaryMetric:"TOTAL_ORDERS",rawData:e==null?void 0:e.highCheckoutsLowPurchases,secondaryMetric:"CHECKOUTS_INITIATED",xstyle:m.funnelCard}),i.jsx(c("SellerInsightsV2TopSellingProductsCard.react"),{fragmentRef:e,xstyle:m.funnelCard})]})}):null;q=f==null&&(e==null?void 0:e.upgradeToOnsiteURI)!=null?i.jsx(p,{upgradeToOnsiteURI:e==null?void 0:e.upgradeToOnsiteURI}):null;s=i.jsx(c("GeoHStack.react"),{context:"container",relation:"unrelated",children:i.jsxs(c("CommerceManagerSuspense.react"),{loadingComponent:i.jsx(i.Fragment,{children:Array.from({length:3}).map(function(a,b){return i.jsx(c("SellerInsightsV2FunnelCardGlimmer.react"),{index:2,xstyle:m.funnelCard},b)})}),oncall:"commerce_platform_insights",children:[i.jsx(c("SellerInsightsV2TaggedContentCard.react"),{fragmentKey:e,xstyle:m.funnelCard}),i.jsx(c("SellerInsightsV2TopSourcesCard.react"),{rawData:e,xstyle:m.funnelCard}),i.jsx(c("SellerInsightsV2VisitorsByDayCard.react"),{rawData:e==null?void 0:e.averageVisitorsByDay,xstyle:m.funnelCard})]})});return i.jsxs(i.Fragment,{children:[i.jsxs(c("GeoVStack.react"),{children:[i.jsx(c("GeoText.react"),{xstyle:m.disclaimer,children:d("SellerInsightsV2Fbts").FUNNEL_DISCLAIMER}),i.jsx(c("SellerInsightsV2FunnelBarChart.react"),{data:a,isNormalized:!0,xstyle:[m.funnel,h!=="ONSITE"&&m.shortFunnel]})]}),i.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",children:[i.jsx(c("GeoHeading.react"),{level:3,children:d("SellerInsightsV2Fbts").FUNNEL_CARD_SECTION_HEADER}),f,j==null?i.jsxs(i.Fragment,{children:[s,q]}):null]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2TopSellingProductsCard.react",["CommerceManagerContext","GeoBaseText.react","GeoDataText.react","GeoFlexbox.react","GeoHStack.react","GeoSpinner.react","GeoVStack.react","RelayHooks","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2FunnelCard.react","SellerInsightsV2FunnelProductCardItem.react","SellerInsightsV2FunnelUtils","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricDefinitions","SellerInsightsV2NumberUtils","SellerInsightsV2PerfContext","SellerInsightsV2PerfTabEnum","SellerInsightsV2PerfUtils.react","SellerInsightsV2ProductGroupUtils","SellerInsightsV2TopSellingProductsCard_insights.graphql","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState,n=e.useTransition,o={cardBody:{height:"x5yr21d",$$css:!0}},p=h!==void 0?h:h=b("SellerInsightsV2TopSellingProductsCard_insights.graphql");function q(a){return{productGroups:(a=a==null?void 0:(a=a.seller_product_insights)==null?void 0:(a=a.product_group_insights)==null?void 0:(a=a.query)==null?void 0:(a=a.edges)==null?void 0:a.map(function(a){var b,c,e,f,g;b=a==null?void 0:(b=a.node)==null?void 0:(b=b.data)==null?void 0:(b=b.product_items[0])==null?void 0:(b=b.current)==null?void 0:(b=b.product)==null?void 0:(b=b.main_image)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri;c=a==null?void 0:(c=a.node)==null?void 0:(c=c.data)==null?void 0:(c=c.product_items)==null?void 0:c.map(function(a){a=a==null?void 0:(a=a.current)==null?void 0:(a=a.product)==null?void 0:a.listing_price;return{amount:a==null?void 0:a.amount,formattedAmount:a==null?void 0:a.formatted_amount}});a=a==null?void 0:(a=a.node)==null?void 0:(a=a.data)==null?void 0:a.current;e={format:"COUNT",name:d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("TOTAL_ORDERS"),value:(e=a==null?void 0:a.purchase_count)!=null?e:0};f={format:"COUNT",name:d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("CHECKOUTS_INITIATED"),value:(f=a==null?void 0:a.checkouts_initiated_count)!=null?f:0};return(a==null?void 0:(g=a.product_group)==null?void 0:g.name)==null?null:{imageURI:b,name:a==null?void 0:(g=a.product_group)==null?void 0:g.name,priceRange:d("SellerInsightsV2ProductGroupUtils").getPriceRange((b=c)!=null?b:[]),primaryMetric:e,secondaryMetric:f}}).filter(Boolean))!=null?a:[]}}function r(a){a=a.productGroups;a=a.reduce(function(a,b){return a+b.primaryMetric.value},0);var b=d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("TOTAL_ORDERS");return i.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[i.jsx(c("GeoDataText.react"),{children:d("SellerInsightsV2NumberUtils").formatCount(a)}),i.jsx(c("GeoBaseText.react"),{color:"value",size:"value",children:b})]})}r.displayName=r.name+" [from "+f.id+"]";function a(a){var b=a.xstyle;a=a.fragmentRef;var e=d("SellerInsightsV2FunnelUtils").getProductCardRequestParams(d("SellerInsightsV2FunnelUtils").FunnelCardType.ProductsBySales),f=e.sortDirection,g=e.sortKey;e=m(f);var h=e[0],s=e[1];f=k(c("CommerceManagerContext"));var t=f.cmsID;e=k(c("SellerInsightsV2PerfContext"));var u=e.selectedAudienceSegmentFilter;f=k(c("SellerInsightsV2Context"));var v=f.channels;e=f.dateRange;var w=f.fbChannelIDs,x=f.igChannelIDs;f=e.getDateInterval();var y=f.start,z=f.end;f=d("RelayHooks").useRefetchableFragment(p,a);a=f[0];var A=f[1];f=q(a);var B=n(),C=B[0],D=B[1];B=h==="DESCENDING"?d("SellerInsightsV2Fbts").TOP_SELLING_PRODUCTS_CARD_HEADER:d("SellerInsightsV2Fbts").LOWEST_SELLING_PRODUCTS_CARD_HEADER;var E=j(function(a){var b;d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7086957,"623"),{AccountID:(b=t)!=null?b:0,AudienceSegment:u?u:null,Channels:v.join(" and "),FBChannelIDs:w,IGChannelIDs:x,PreviousSortDirection:h,Section:"perf",SortDirection:a});s(a);D(function(){var b;A({channels:v,endDate:z.toISOString(),first:d("SellerInsightsV2FunnelUtils").PRODUCT_GROUP_COUNT,id:(b=t)!=null?b:"",productInsightSortingDirection:a,productInsightSortingKey:g,startDate:y.toISOString()})})},[t,u,v,w,x,h,A,z,g,y]);l(function(){s("DESCENDING")},[v,e,u]);e=f.productGroups.map(function(a,b){return i.jsx(c("SellerInsightsV2FunnelProductCardItem.react"),{productGroup:a},b)});a=(a==null?void 0:(a=a.seller_product_insights)==null?void 0:a.product_group_insights)==null;d("SellerInsightsV2PerfUtils.react").useLogScenarioEnd(a,c("SellerInsightsV2PerfTabEnum").Funnel,d("SellerInsightsV2LoggingConstants").ERROR_NULL_RELAY_RESPONSE);a=d("SellerInsightsV2FunnelUtils").isProductGroupsDataEmpty(f.productGroups);var F=a?d("SellerInsightsV2Fbts").VIEW_CATALOG_CTA_LABEL:d("SellerInsightsV2Fbts").SEE_DETAILS_CTA_LABEL;return i.jsx(c("GeoFlexbox.react"),{xstyle:b,children:C?i.jsx(c("GeoSpinner.react"),{center:!0}):i.jsx(c("SellerInsightsV2FunnelCard.react"),{footerText:F,funnelCardType:d("SellerInsightsV2FunnelUtils").FunnelCardType.ProductsBySales,sortDirection:h,title:B,xstyle:b,onSortDirectionChange:E,children:a?null:i.jsxs(c("GeoVStack.react"),{context:"container",relation:"unrelated",xstyle:o.cardBody,children:[i.jsx(r,{productGroups:f.productGroups}),e]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsTableNew.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","GeoFlexbox.react","InteractionTracing","MemoizedComponent","RelayHooks","SellerInsightsV2CatalogContext.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2EmptyContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2ProductSelectedGroupContainer.react","SellerInsightsV2ProductsContext","SellerInsightsV2ProductsTableNew_table.graphql","SellerInsightsV2ProductsTableUtils","SellerInsightsV2Table.react","SellerInsightsV2TableUtils","SellerInsightsV2UnifiedGraphQLConnectionUtils","cr:1085","qpl","react","useAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState;b("cr:1085");var n={details:{backgroundColor:"x12peec7",borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"xo71vjh",bottom:"x1ey2m1c",boxShadow:"xy8qs99",end:"xds687c",overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x10l6tqk",top:"x13vifvy",zIndex:"x1vjfegm",$$css:!0},root:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}},o=h!==void 0?h:h=b("SellerInsightsV2ProductsTableNew_table.graphql");function p(a,b,c){var e,f,g;e=a==null?void 0:(e=a.metadata)==null?void 0:(e=e.product_variant_metadata)==null?void 0:e.product_variant;f=(f=a==null?void 0:(f=a.bucket)==null?void 0:f[0])!=null?f:"";return a==null?null:{category:(g=e==null?void 0:e.category)!=null?g:"",collections:d("SellerInsightsV2ProductsTableUtils").getFormattedCollections(a==null?void 0:(g=a.metadata)==null?void 0:(g=g.product_variant_metadata)==null?void 0:g.product_variant_collections_query),currentMetrics:d("SellerInsightsV2ProductsTableUtils").getFormattedMetrics(a.metricsData,b),groupID:c,id:f,imageURL:e==null?void 0:(g=e.main_image)==null?void 0:(c=g.image)==null?void 0:c.downloadable_uri,name:(g=e==null?void 0:e.name)!=null?g:f,previousMetrics:d("SellerInsightsV2ProductsTableUtils").getFormattedMetricsForPrev(a.metricsData,b),type:"item"}}function q(a,b){var c,e,f;c=a==null?void 0:(c=a.metadata)==null?void 0:(c=c.product_group_metadata_new)==null?void 0:c.product_group;var g=c==null?void 0:c.id;if(a==null||c==null||g==null)return null;e=a==null?void 0:(e=a.metadata)==null?void 0:(e=e.product_group_metadata_new)==null?void 0:e.product_variants_breakdowns;return{category:(f=c==null?void 0:(f=c.representative_item)==null?void 0:f.category)!=null?f:"",collections:d("SellerInsightsV2ProductsTableUtils").getFormattedCollections(a==null?void 0:(f=a.metadata)==null?void 0:(f=f.product_group_metadata_new)==null?void 0:f.product_group_collections_query),currentMetrics:d("SellerInsightsV2ProductsTableUtils").getFormattedMetrics(a.metricsData,b),id:g,imageURL:c==null?void 0:(f=c.representative_item)==null?void 0:(f=f.main_image)==null?void 0:(f=f.image)==null?void 0:f.downloadable_uri,name:(f=c.name)!=null?f:g,previousMetrics:d("SellerInsightsV2ProductsTableUtils").getFormattedMetricsForPrev(a.metricsData,b),productTallyVariantIDs:(a=a==null?void 0:(c=a.metadata)==null?void 0:(f=c.product_group_metadata_new)==null?void 0:f.product_variant_tally_ids)!=null?a:[],type:"group",variants:((c=e)!=null?c:[]).map(function(a){return p(a,b,g)}).filter(Boolean)}}function r(a,b){return a.map(function(a){return q(a,b)}).filter(Boolean)}function s(a,b){return a.map(function(a){var c=[a];return(b==null?void 0:b.has(a.id))?c.concat(a.variants):c}).flat()}function a(a){var b,e,f=a.account,g=a.setInteractionID;a=a.sortableState;f=d("RelayHooks").usePaginationFragment(o,f);var h=f.data,p=f.loadNext,q=f.isLoadingNext;f=f.hasNext;b=h==null?void 0:(b=h.table)==null?void 0:(b=b.connection)==null?void 0:(b=b.edges)==null?void 0:b.map(function(a){a=a.node;return{metadata:a==null?void 0:a.metadata}});e=d("SellerInsightsV2UnifiedGraphQLConnectionUtils").useBreakdownsOrNullOnErrorForConnection(h==null?void 0:(e=h.table)==null?void 0:e.connection,b);h=d("SellerInsightsV2UnifiedGraphQLConnectionUtils").useConnectionCounts(h==null?void 0:(b=h.table)==null?void 0:b.connection);b=k(c("SellerInsightsV2Context"));var t=b.channels,u=b.igChannelIDs,v=b.fbChannelIDs,w=b.pageIDs;b=k(c("CommerceManagerComponentGatingContext"));b=b.checkoutStyle;var x=k(c("SellerInsightsV2ProductsContext")),y=x.productInsightSortingKey;x=k(c("SellerInsightsV2CatalogContext.react"));var z=x.selectedSegmentationFilter;x=k(c("CommerceManagerContext"));var A=x.cmsID;x=c("useAutoSizer")();var B=x.width;x=x.ref;var C=m(new Set()),D=C[0];C=C[1];var E=m(null),F=E[0],G=E[1],H=d("SellerInsightsV2ProductsTableUtils").useLogger(),I=j(function(){G(null)},[G]),J=j(function(){var a;I();H.logDetailViewClose((a=F==null?void 0:F.id)!=null?a:"",(a=F==null?void 0:F.name)!=null?a:"")},[H,I,F==null?void 0:F.id,F==null?void 0:F.name]);d("SellerInsightsV2ProductsTableUtils").useLogDataLoaded(e!=null);var K=r((E=e==null?void 0:e.breakdowns)!=null?E:[],b);e=s(K,D);var L=(E=h==null?void 0:h.current)!=null?E:0,M=(b=h==null?void 0:h.total)!=null?b:0,N=f?Math.min(d("SellerInsightsV2Constants").DEFAULT_PAGE_SIZE,M-L):0;E=function(a){var b,e=c("qpl")._(7085174,"624"),f={AccountID:(b=A)!=null?b:"0",AudienceSegment:z!=null?z:null,Channel:t.join(" and "),FBChannelIDs:v,IGChannelIDs:u,NewPage:L+"-"+(L+N),PageIDs:w,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,SortKey:y,Total:M.toString()};d("SellerInsightsV2LoggingUtils").scenarioStart(e,f);b=c("InteractionTracing").startInteraction({interactionClass:"contingent",qplEvent:c("qpl")._(7088136,"396"),tracePolicy:"seller_insights_product_table_pagination",traceType:"INTERACTION"},function(a){var b;a.addAnnotation("AccountID",(b=A)!=null?b:"0");a.addAnnotation("Channel",t.join("and"));a.addAnnotationStringArray("FBChannelIDs",v);a.addAnnotationStringArray("IGChannelIDs",u);a.addAnnotationStringArray("PageIDs",w);a.addAnnotation("NewPage",L+"-"+(L+N));a.addAnnotation("SortKey",y);a.addAnnotation("Section",d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS);a.addAnnotation("Total",M.toString())});g(b);p(a,{onComplete:function(a){a==null?d("SellerInsightsV2LoggingUtils").scenarioSuccess([e],f):d("SellerInsightsV2LoggingUtils").scenarioFail([e],babelHelpers["extends"]({Error:a.message},f))}})};h=d("SellerInsightsV2ProductsTableUtils").useColumnsConfig(babelHelpers["extends"]({},a,{expandedGroupIDs:D,setExpandedGroupIDs:C}));var O=h.map(function(a){return a.width});b=m(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,O,B));a=b[0];var P=b[1];l(function(){P(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,O,B))},[B,O]);D=d("MemoizedComponent").useMemo(function(){return{activeItemID:F==null?void 0:F.id,getItemID:function(a){return a.type==="group"?a.id:a.groupID},getLabel:function(a){a=a.isActive;return a?d("SellerInsightsV2Fbts").PRODUCT_TABLE_DEACTIVATE_ROW_LABEL:d("SellerInsightsV2Fbts").PRODUCT_TABLE_ACTIVATE_ROW_LABEL},onActivate:function(b){var a=b.type==="group"?b:K.find(function(a){return a.id===b.groupID});a!=null&&(G(a),H.logDetailViewLoadStart(a.id,a.name))},onDeactivate:J}},[H,J,K,F==null?void 0:F.id]);return M===0?i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_PRODUCT_INSIGHTS}):i.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",containerRef:x,direction:"column",xstyle:n.root,children:[F!=null?i.jsx("div",{className:"x12peec7 x168nmei x13lgxp2 x30kzoy xo71vjh x1ey2m1c xy8qs99 xds687c xw2csxc x1odjw0f x10l6tqk x13vifvy x1vjfegm",style:{left:a},children:i.jsx(c("SellerInsightsV2ProductSelectedGroupContainer.react"),{productVariantsIDsFromTally:F.productTallyVariantIDs,selectedProductGroup:F,onCloseButtonClick:J})}):null,i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("SellerInsightsV2Table.react"),{columns:h,data:e,"data-testid":void 0,label:d("SellerInsightsV2Fbts").PRODUCT_TABLE_LABEL,loggingAnnotations:{"Chart Name":"Products Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},pagination:{hasNext:f,isLoadingNext:q,loadNext:E,pageSize:N},rowActivation:D,scrollable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsNewContainer.react",["CUIErrorCard.react","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","SellerInsightsSearchParamsUtils","SellerInsightsV2CatalogContext.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2EmptyContainer.react","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2PerfUtils.react","SellerInsightsV2ProductsContext","SellerInsightsV2ProductsNewContainerUnifiedQuery.graphql","SellerInsightsV2ProductsTableGlimmer.react","SellerInsightsV2ProductsTableNew.react","SellerInsightsV2ProductsTableUtils","SellerInsightsV2TableUtils","qpl","react","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2ProductsNewContainerUnifiedQuery.graphql");function m(a,b,e,f){return a==null?i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_PRODUCT_INSIGHTS}):d("SellerInsightsV2PerfUtils.react").getPotentialNullStateForAudienceSegment(b,f,e)}m.displayName=m.name+" [from "+f.id+"]";function n(a){var b,e=a.setInteractionID;a=a.sortableState;var f=j(c("SellerInsightsV2CatalogContext.react")),g=f.selectedSegmentationFilter;f=f.highIntentShopperAudienceSegmentEffectiveDate;var h=j(c("CommerceManagerContext"));h=h.cmsID;var n=j(c("SellerInsightsV2Context")),o=n.channels;n=n.dateRange;var p=j(c("SellerInsightsV2ProductsContext")),q=p.productInsightSortingDirection;p=p.productInsightSortingKey;var r=j(c("CommerceManagerComponentGatingContext"));r=r.checkoutStyle;var s=n.getDateInterval(),t=s.start;s=s.end;var u=n.getIsCompareDatePresent();b=(b=n.getCompareDateInterval())!=null?b:n.getPrevDateInterval();var v=b.start;b=b.end;var w=d("SellerInsightsV2ProductsTableUtils").useLogger();d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products");var x=d("SellerInsightsSearchParamsUtils").getSearchFiltersFromParams(location.search),y=x.metric;y={category:x.category,collection:x.collection,metrics:y!=null?[babelHelpers["extends"]({},y)]:[],name:x.name,promotion:x.promotion,variant:x.variant};var z=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(x=h)!=null?x:"0",audienceSegmentFilter:g,channels:o,commerceInsightsMetrics:d("SellerInsightsV2ProductsTableUtils").getMetricsForCheckoutStyle(r),endDate:s.toISOString(),prevEndDate:u?b.toISOString():null,prevStartDate:u?v.toISOString():null,productFilteringData:y,productInsightSortingDirection:d("SellerInsightsV2ProductsTableUtils").getUnifiedAPISortingDirection(q),productInsightSortingKey:d("SellerInsightsV2ProductsTableUtils").getUnifiedAPISortingKey(p),startDate:t.toISOString()});d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(z==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);k(function(){z==null&&w.logLoadNoData()});h=m(z,g,n,f);return(x=h)!=null?x:i.jsx(c("SellerInsightsV2ProductsTableNew.react"),{account:z,setInteractionID:e,sortableState:a})}n.displayName=n.name+" [from "+f.id+"]";function a(a){a=a.setInteractionID;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");var b=c("useReactRouter").useRouter();b=b.history;var e=d("SellerInsightsV2ProductsTableUtils").useLogger();d("SellerInsightsV2ProductsTableUtils").useLogDataLoading(b);b=j(c("SellerInsightsV2ProductsContext"));var f=b.productInsightSortingKey,g=b.productInsightSortingDirection,h=b.onProductInsightSortingDirection;b=b.onProductInsightSortingKey;g=d("SellerInsightsV2TableUtils").useSortableState({ascendingDirection:"ASCENDING",currentDirection:g,currentKey:f,descendingDirection:"DESCENDING",onDirectionChange:h,onKeyChange:b});var k=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();return i.jsx("div",{className:"x5yr21d",children:i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:i.jsx(c("SellerInsightsV2ProductsTableGlimmer.react"),{sortableState:g}),oncall:"commerce_platform_insights",onHandleError:function(a){e.logLoadError(a),k(a)},children:i.jsx(n,{setInteractionID:a,sortableState:g})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsTable.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","GeoFlexbox.react","InteractionTracing","LocalDate","MemoizedComponent","RelayHooks","SellerInsightsV2CatalogContext.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2DateConstants","SellerInsightsV2EmptyContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2ProductSelectedGroupContainer.react","SellerInsightsV2ProductsContext","SellerInsightsV2ProductsTableUtils","SellerInsightsV2ProductsTable_account.graphql","SellerInsightsV2Table.react","SellerInsightsV2TableUtils","cr:1085","qpl","react","useAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState;b("cr:1085");var n=h!==void 0?h:h=b("SellerInsightsV2ProductsTable_account.graphql"),o={details:{backgroundColor:"x12peec7",borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"xo71vjh",bottom:"x1ey2m1c",boxShadow:"xy8qs99",end:"xds687c",overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x10l6tqk",top:"x13vifvy",zIndex:"x1vjfegm",$$css:!0},root:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}};function p(a,b){if(a==null)return new Map();switch(b){case"OFFSITE":return new Map([["PDP_VIEWS",{value:a.pdp_views_count}],["OUTBOUND_CLICKS",{value:a.outbound_click_count}]]);case"CONTACT_MERCHANT":return new Map([["PDP_VIEWS",{value:a.pdp_views_count}],["MESSAGE_TO_BUY",{value:a.message_to_buy_count}]]);case"ONSITE":return new Map([["SALES",{formattedValue:(b=(b=a.total_sales)==null?void 0:b.formatted_amount)!=null?b:void 0,value:((b=a.total_sales)==null?void 0:b.amount)!=null?parseFloat(a.total_sales.amount):null}],["UNITS_SOLD",{value:a.total_units_sold}],["PDP_VIEWS",{value:a.pdp_views_count}],["OUTBOUND_CLICKS",{value:a.outbound_click_count}],["ADD_TO_WISHLIST",{value:a.saves_count}],["ADD_TO_CART",{value:a.add_to_cart_count}],["CHECKOUTS_INITIATED",{value:a.checkouts_initiated_count}],["TOTAL_ORDERS",{value:a.purchase_count}]]);default:return new Map()}}function q(a,b,c){var e,f;e=a==null?void 0:(e=a.current)==null?void 0:e.product;var g=e==null?void 0:e.id;return a==null||e==null||g==null?null:{category:(f=e==null?void 0:e.category)!=null?f:"",collections:d("SellerInsightsV2ProductsTableUtils").getFormattedCollections(a==null?void 0:(f=a.current)==null?void 0:f.product_collections_query),currentMetrics:p(a.current,b),groupID:c,id:g,imageURL:e==null?void 0:(f=e.main_image)==null?void 0:(c=f.image)==null?void 0:c.downloadable_uri,name:(g=e.name)!=null?g:"",previousMetrics:p(a.previous,b),type:"item"}}function r(a,b){var c,e,f,g;c=a==null?void 0:(c=a.current)==null?void 0:c.product_group;var h=c==null?void 0:c.id;if(a==null||c==null||h==null)return null;e=(e=a.product_items)!=null?e:[];f=(f=e[0])==null?void 0:(f=f.current)==null?void 0:f.product;return{category:(g=f==null?void 0:f.category)!=null?g:"",collections:d("SellerInsightsV2ProductsTableUtils").getFormattedCollections(a==null?void 0:(g=a.current)==null?void 0:g.product_group_collections_query),currentMetrics:p(a.current,b),id:h,imageURL:f==null?void 0:(g=f.main_image)==null?void 0:(f=g.image)==null?void 0:f.downloadable_uri,name:(g=c.name)!=null?g:"",previousMetrics:p(a.previous,b),productTallyVariantIDs:[],type:"group",variants:e.map(function(a){return q(a,b,h)}).filter(Boolean)}}function s(a,b){return a.map(function(a){return r(a==null?void 0:(a=a.node)==null?void 0:a.data,b)}).filter(Boolean)}function t(a,b){return a.map(function(a){var c=[a];return(b==null?void 0:b.has(a.id))?c.concat(a.variants):c}).flat()}function u(a,b){var e,f=k(c("SellerInsightsV2Context"));f=f.dateRange;e=(e=f.getCompareDateInterval())!=null?e:f.getPrevDateInterval();f=e.start;return b===0||f.isAfterOrEqual(c("LocalDate").fromInstant(b,d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE))?a:a.map(function(a){var b=a.previousMetrics;a=babelHelpers.objectWithoutPropertiesLoose(a,["previousMetrics"]);var c=new Map();for(var b=b,d=Array.isArray(b),e=0,b=d?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(d){if(e>=b.length)break;f=b[e++]}else{e=b.next();if(e.done)break;f=e.value}f=f;f=f[0];c.set(f,{value:0})}return a.type==="group"?babelHelpers["extends"]({},a,{previousMetrics:c}):babelHelpers["extends"]({},a,{previousMetrics:c})})}function v(a,b,c){if(a==null)return 0;switch(a){case"CHECKOUT_ENABLED_VISITORS":return c;case"RECENT_META_BUYERS":return b;default:return 0}}function a(a){var b=a.account,e=a.setInteractionID;a=a.sortableState;b=d("RelayHooks").usePaginationFragment(n,b);var f=b.data,g=b.loadNext,h=b.isLoadingNext;b=b.hasNext;var p=k(c("SellerInsightsV2Context")),q=p.channels,r=p.igChannelIDs,w=p.fbChannelIDs,x=p.pageIDs;p=k(c("SellerInsightsV2ProductsContext"));var y=p.productInsightSortingKey;p=k(c("SellerInsightsV2CatalogContext.react"));var z=p.selectedSegmentationFilter,A=p.audienceSegmentEffectiveDate;p=p.highIntentShopperAudienceSegmentEffectiveDate;var B=k(c("CommerceManagerContext")),C=B.cmsID;B=c("useAutoSizer")();var D=B.width;B=B.ref;var E=k(c("CommerceManagerComponentGatingContext"));E=E.checkoutStyle;var F=m(new Set()),G=F[0];F=F[1];var H=m(null),I=H[0],J=H[1],K=d("SellerInsightsV2ProductsTableUtils").useLogger(),L=j(function(){J(null)},[J]),M=j(function(){var a;L();K.logDetailViewClose((a=I==null?void 0:I.id)!=null?a:"",(a=I==null?void 0:I.name)!=null?a:"")},[K,L,I==null?void 0:I.id,I==null?void 0:I.name]);d("SellerInsightsV2ProductsTableUtils").useLogDataLoaded(f!=null);var N=s((f==null?void 0:(H=f.seller_product_insights)==null?void 0:(H=H.product_group_insights)==null?void 0:(H=H.query)==null?void 0:H.edges)||[],E);H=v(z,p,A);E=u(t(N,G),H);var O=E.length,P=(H=f==null?void 0:(p=f.seller_product_insights)==null?void 0:(A=p.product_group_insights)==null?void 0:A.count)!=null?H:0,Q=b?Math.min(d("SellerInsightsV2Constants").DEFAULT_PAGE_SIZE,P-O):0;f=function(a){var b,f=c("qpl")._(7085174,"624"),h={AccountID:(b=C)!=null?b:"0",AudienceSegment:z!=null?z:null,Channel:q.join(" and "),FBChannelIDs:w,IGChannelIDs:r,NewPage:O+"-"+(O+Q),PageIDs:x,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,SortKey:y,Total:P.toString()};d("SellerInsightsV2LoggingUtils").scenarioStart(f,h);b=c("InteractionTracing").startInteraction({interactionClass:"contingent",qplEvent:c("qpl")._(7088136,"396"),tracePolicy:"seller_insights_product_table_pagination",traceType:"INTERACTION"},function(a){var b;a.addAnnotation("AccountID",(b=C)!=null?b:"0");a.addAnnotation("Channel",q.join("and"));a.addAnnotationStringArray("FBChannelIDs",w);a.addAnnotationStringArray("IGChannelIDs",r);a.addAnnotationStringArray("PageIDs",x);a.addAnnotation("NewPage",O+"-"+(O+Q));a.addAnnotation("SortKey",y);a.addAnnotation("Section",d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS);a.addAnnotation("Total",P.toString())});e(b);g(a,{onComplete:function(a){a==null?d("SellerInsightsV2LoggingUtils").scenarioSuccess([f],h):d("SellerInsightsV2LoggingUtils").scenarioFail([f],babelHelpers["extends"]({Error:a.message},h))}})};p=d("SellerInsightsV2ProductsTableUtils").useColumnsConfig(babelHelpers["extends"]({},a,{expandedGroupIDs:G,setExpandedGroupIDs:F}));var R=p.map(function(a){return a.width});A=m(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,R,D));H=A[0];var S=A[1];l(function(){S(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,R,D))},[D,R]);a=d("MemoizedComponent").useMemo(function(){return{activeItemID:I==null?void 0:I.id,getItemID:function(a){return a.type==="group"?a.id:a.groupID},getLabel:function(a){a=a.isActive;return a?d("SellerInsightsV2Fbts").PRODUCT_TABLE_DEACTIVATE_ROW_LABEL:d("SellerInsightsV2Fbts").PRODUCT_TABLE_ACTIVATE_ROW_LABEL},onActivate:function(b){var a=b.type==="group"?b:N.find(function(a){return a.id===b.groupID});a!=null&&(J(a),K.logDetailViewLoadStart(a.id,a.name))},onDeactivate:M}},[K,M,N,I==null?void 0:I.id]);return P===0?i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_PRODUCT_INSIGHTS}):i.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",containerRef:B,direction:"column",xstyle:o.root,children:[I!=null?i.jsx("div",{className:"x12peec7 x168nmei x13lgxp2 x30kzoy xo71vjh x1ey2m1c xy8qs99 xds687c xw2csxc x1odjw0f x10l6tqk x13vifvy x1vjfegm",style:{left:H},children:i.jsx(c("SellerInsightsV2ProductSelectedGroupContainer.react"),{productVariantsIDsFromTally:I.productTallyVariantIDs,selectedProductGroup:I,onCloseButtonClick:M})}):null,i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("SellerInsightsV2Table.react"),{columns:p,data:E,"data-testid":void 0,label:d("SellerInsightsV2Fbts").PRODUCT_TABLE_LABEL,loggingAnnotations:{"Chart Name":"Products Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},pagination:{hasNext:b,isLoadingNext:h,loadNext:f,pageSize:Q},rowActivation:a,scrollable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsContainer.react",["CUIErrorCard.react","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","SellerInsightsSearchParamsUtils","SellerInsightsV2CatalogContext.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2EmptyContainer.react","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2PerfUtils.react","SellerInsightsV2ProductsContainerLegacyQuery.graphql","SellerInsightsV2ProductsContainerUnifiedQuery.graphql","SellerInsightsV2ProductsContext","SellerInsightsV2ProductsTable.next.react","SellerInsightsV2ProductsTable.react","SellerInsightsV2ProductsTableGlimmer.react","SellerInsightsV2ProductsTableUtils","SellerInsightsV2QPLLogger","SellerInsightsV2TableUtils","qpl","react","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m=h!==void 0?h:h=b("SellerInsightsV2ProductsContainerLegacyQuery.graphql"),n=i!==void 0?i:i=b("SellerInsightsV2ProductsContainerUnifiedQuery.graphql");function o(a){switch(a){case"OFFSITE":return["PDP_VIEWS","CLICK_TO_OFFSITE"];case"CONTACT_MERCHANT":return["PDP_VIEWS","MESSAGE_TO_BUY"];case"ONSITE":return["SALES","UNITS_SOLD","PDP_VIEWS","CLICK_TO_OFFSITE","ADD_TO_WISHLIST","ADD_TO_CART","CHECKOUTS_INITIATED","PURCHASES"]}return[]}function p(a,b,e,f){return a.account==null?j.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_PRODUCT_INSIGHTS}):d("SellerInsightsV2PerfUtils.react").getPotentialNullStateForAudienceSegment(b,f,e)}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b,e=a.setInteractionID;a=a.sortableState;var f=k(c("SellerInsightsV2CatalogContext.react")),g=f.selectedSegmentationFilter;f=f.highIntentShopperAudienceSegmentEffectiveDate;var h=k(c("CommerceManagerContext"));h=h.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;var i=k(c("SellerInsightsV2Context")),n=i.channels;i=i.dateRange;var o=k(c("SellerInsightsV2ProductsContext")),q=o.productInsightSortingDirection;o=o.productInsightSortingKey;var r=i.getDateInterval(),s=r.start;r=r.end;b=(b=i.getCompareDateInterval())!=null?b:i.getPrevDateInterval();var t=b.start;b=b.end;var u=d("SellerInsightsV2ProductsTableUtils").useLogger(),v=d("SellerInsightsSearchParamsUtils").getSearchFiltersFromParams(location.search),w=v.metric;w={category:v.category,collection:v.collection,metrics:w!=null?[babelHelpers["extends"]({},w)]:[],name:v.name,promotion:v.promotion,variant:v.variant};v=d("SellerInsightsV2QPLLogger").getTipNameForConversionLogging();d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products");var x=d("CommerceManagerHooks").useCommerceManagerQuery(m,{AYMTTipName:v,accountID:h,audienceSegmentFilter:g,channels:n,endDate:r.toISOString(),prevEndDate:b.toISOString(),prevStartDate:t.toISOString(),productFilteringData:w,productInsightSortingDirection:q,productInsightSortingKey:o,startDate:s.toISOString(),topCollections:d("SellerInsightsV2ProductsTableUtils").TOP_COLLECTIONS});v!==""&&d("SellerInsightsV2QPLLogger").setTipNameForConversionLoggingToEmptyString();d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(x.account==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);l(function(){x.account==null&&u.logLoadNoData()});h=p(x,g,i,f);return(n=h)!=null?n:j.jsx(c("SellerInsightsV2ProductsTable.react"),{account:x.account,setInteractionID:e,sortableState:a})}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b=a.setInteractionID;a=a.sortableState;var e=k(c("CommerceManagerContext"));e=e.cmsID;var f=k(c("CommerceManagerComponentGatingContext"));f=f.checkoutStyle;var g=k(c("SellerInsightsV2Context")),h=g.channels;g=g.dateRange;g=g.getDateInterval();var i=g.start;g=g.end;var m=d("SellerInsightsV2ProductsTableUtils").useLogger();d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products");var p=d("CommerceManagerHooks").useCommerceManagerQuery(n,{channels:h,cmsIDs:[(h=e)!=null?h:"0"],endDate:g.toISOString(),metrics:o(f),startDate:i.toISOString()});d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(p==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);l(function(){p==null&&m.logLoadNoData()});return j.jsx(c("SellerInsightsV2ProductsTable.next.react"),{account:p,setInteractionID:b,sortableState:a})}r.displayName=r.name+" [from "+f.id+"]";function a(a){a=a.setInteractionID;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");var b=c("useReactRouter").useRouter();b=b.history;var e=d("SellerInsightsV2ProductsTableUtils").useLogger(),f=k(c("SellerInsightsV2FeatureContext"));f=f.isProductsUnifiedGraphQLEnabled;d("SellerInsightsV2ProductsTableUtils").useLogDataLoading(b);b=k(c("SellerInsightsV2ProductsContext"));var g=b.productInsightSortingKey,h=b.productInsightSortingDirection,i=b.onProductInsightSortingDirection;b=b.onProductInsightSortingKey;h=d("SellerInsightsV2TableUtils").useSortableState({ascendingDirection:"ASCENDING",currentDirection:h,currentKey:g,descendingDirection:"DESCENDING",onDirectionChange:i,onKeyChange:b});var l=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();g=f?r:q;return j.jsx("div",{className:"x5yr21d",children:j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(c("SellerInsightsV2ProductsTableGlimmer.react"),{sortableState:h}),oncall:"commerce_platform_insights",onHandleError:function(a){e.logLoadError(a),l(a)},children:j.jsx(g,{setInteractionID:a,sortableState:h})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsTable.next.react",["CommerceManagerComponentGatingContext","CommerceManagerContext","GeoFlexbox.react","InteractionTracing","MemoizedComponent","RelayHooks","SellerInsightsV2CatalogContext.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2EmptyContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2PerfUtils","SellerInsightsV2ProductSelectedGroupContainer.react","SellerInsightsV2ProductsContext","SellerInsightsV2ProductsTableUtils","SellerInsightsV2ProductsTable_table.graphql","SellerInsightsV2Table.react","SellerInsightsV2TableUtils","SellerInsightsV2UnifiedGraphQLConnectionUtils","cr:1085","qpl","react","useAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useState;b("cr:1085");var n={details:{backgroundColor:"x12peec7",borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"xo71vjh",bottom:"x1ey2m1c",boxShadow:"xy8qs99",end:"xds687c",overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x10l6tqk",top:"x13vifvy",zIndex:"x1vjfegm",$$css:!0},root:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}},o=h!==void 0?h:h=b("SellerInsightsV2ProductsTable_table.graphql");function p(a,b){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.value;a=a.metric;return[a,b]}));switch(b){case"OFFSITE":return new Map([["PDP_VIEWS",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS"))}],["OUTBOUND_CLICKS",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS"))}]]);case"CONTACT_MERCHANT":return new Map([["PDP_VIEWS",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS"))}],["MESSAGE_TO_BUY",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("MESSAGE_TO_BUY"))}]]);case"ONSITE":return new Map([["SALES",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("SALES"))}],["UNITS_SOLD",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("UNITS_SOLD"))}],["PDP_VIEWS",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS"))}],["OUTBOUND_CLICKS",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS"))}],["ADD_TO_WISHLIST",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("ADD_TO_WISHLIST"))}],["ADD_TO_CART",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("ADD_TO_CART"))}],["CHECKOUTS_INITIATED",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("CHECKOUTS_INITIATED"))}],["TOTAL_ORDERS",{value:a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("TOTAL_ORDERS"))}]]);default:return new Map()}}function q(a,b,c){var d,e;d=a==null?void 0:(d=a.metadata)==null?void 0:(d=d.product_group_metadata)==null?void 0:d.product_group;var f=d==null?void 0:d.id;return a==null||d==null||f==null?null:{category:(e=d==null?void 0:(e=d.representative_item)==null?void 0:e.category)!=null?e:"",collections:{topItems:[],totalCount:0},currentMetrics:p(a.metricsData,b),groupID:c,id:f,imageURL:(c=d==null?void 0:(e=d.representative_item)==null?void 0:(a=e.main_image)==null?void 0:(b=a.image)==null?void 0:b.downloadable_uri)!=null?c:"",name:(f=d.name)!=null?f:"",previousMetrics:new Map(),type:"item"}}function r(a,b){var c,d;c=a==null?void 0:(c=a.metadata)==null?void 0:(c=c.product_group_metadata)==null?void 0:c.product_group;var e=c==null?void 0:c.id;if(a==null||c==null||e==null)return null;var f=[];return{category:(d=c==null?void 0:(d=c.representative_item)==null?void 0:d.category)!=null?d:"",collections:{topItems:[],totalCount:0},currentMetrics:p(a.metricsData,b),id:e,imageURL:c==null?void 0:(d=c.representative_item)==null?void 0:(a=d.main_image)==null?void 0:(d=a.image)==null?void 0:d.downloadable_uri,name:(a=c.name)!=null?a:"",previousMetrics:new Map(),productTallyVariantIDs:[],type:"group",variants:f.map(function(a){return q(a,b,e)}).filter(Boolean)}}function s(a,b){return a.map(function(a){return r(a,b)}).filter(Boolean)}function t(a,b){return a.map(function(a){var c=[a];return(b==null?void 0:b.has(a.id))?c.concat(a.variants):c}).flat()}function a(a){var b,e,f=a.account,g=a.setInteractionID;a=a.sortableState;f=d("RelayHooks").usePaginationFragment(o,f);var h=f.data,p=f.loadNext,q=f.isLoadingNext;f=f.hasNext;b=h==null?void 0:(b=h.table)==null?void 0:(b=b.connection)==null?void 0:(b=b.edges)==null?void 0:b.map(function(a){a=a.node;return{metadata:a==null?void 0:a.metadata}});e=d("SellerInsightsV2UnifiedGraphQLConnectionUtils").useBreakdownsOrNullOnErrorForConnection(h==null?void 0:(e=h.table)==null?void 0:e.connection,b);h=d("SellerInsightsV2UnifiedGraphQLConnectionUtils").useConnectionCounts(h==null?void 0:(b=h.table)==null?void 0:b.connection);b=k(c("SellerInsightsV2Context"));var r=b.channels,u=b.igChannelIDs,v=b.fbChannelIDs,w=b.pageIDs;b=k(c("CommerceManagerComponentGatingContext"));b=b.checkoutStyle;var x=k(c("SellerInsightsV2ProductsContext")),y=x.productInsightSortingKey;x=k(c("SellerInsightsV2CatalogContext.react"));var z=x.selectedSegmentationFilter;x=k(c("CommerceManagerContext"));var A=x.cmsID;x=c("useAutoSizer")();var B=x.width;x=x.ref;var C=m(new Set()),D=C[0];C=C[1];var E=m(null),F=E[0],G=E[1],H=d("SellerInsightsV2ProductsTableUtils").useLogger(),I=j(function(){G(null)},[G]),J=j(function(){var a;I();H.logDetailViewClose((a=F==null?void 0:F.id)!=null?a:"",(a=F==null?void 0:F.name)!=null?a:"")},[H,I,F==null?void 0:F.id,F==null?void 0:F.name]);d("SellerInsightsV2ProductsTableUtils").useLogDataLoaded(e!=null);var K=s((E=e==null?void 0:e.breakdowns)!=null?E:[],b);e=t(K,D);var L=(E=h==null?void 0:h.current)!=null?E:0,M=(b=h==null?void 0:h.total)!=null?b:0,N=f?Math.min(d("SellerInsightsV2Constants").DEFAULT_PAGE_SIZE,M-L):0;E=function(a){var b,e=c("qpl")._(7085174,"624"),f={AccountID:(b=A)!=null?b:"0",AudienceSegment:z!=null?z:null,Channel:r.join(" and "),FBChannelIDs:v,IGChannelIDs:u,NewPage:L+"-"+(L+N),PageIDs:w,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,SortKey:y,Total:M.toString()};d("SellerInsightsV2LoggingUtils").scenarioStart(e,f);b=c("InteractionTracing").startInteraction({interactionClass:"contingent",qplEvent:c("qpl")._(7088136,"396"),tracePolicy:"seller_insights_product_table_pagination",traceType:"INTERACTION"},function(a){var b;a.addAnnotation("AccountID",(b=A)!=null?b:"0");a.addAnnotation("Channel",r.join("and"));a.addAnnotationStringArray("FBChannelIDs",v);a.addAnnotationStringArray("IGChannelIDs",u);a.addAnnotationStringArray("PageIDs",w);a.addAnnotation("NewPage",L+"-"+(L+N));a.addAnnotation("SortKey",y);a.addAnnotation("Section",d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS);a.addAnnotation("Total",M.toString())});g(b);p(a,{onComplete:function(a){a==null?d("SellerInsightsV2LoggingUtils").scenarioSuccess([e],f):d("SellerInsightsV2LoggingUtils").scenarioFail([e],babelHelpers["extends"]({Error:a.message},f))}})};h=d("SellerInsightsV2ProductsTableUtils").useColumnsConfig(babelHelpers["extends"]({},a,{expandedGroupIDs:D,setExpandedGroupIDs:C}));var O=h.map(function(a){return a.width});b=m(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,O,B));a=b[0];var P=b[1];l(function(){P(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,O,B))},[B,O]);D=d("MemoizedComponent").useMemo(function(){return{activeItemID:F==null?void 0:F.id,getItemID:function(a){return a.type==="group"?a.id:a.groupID},getLabel:function(a){a=a.isActive;return a?d("SellerInsightsV2Fbts").PRODUCT_TABLE_DEACTIVATE_ROW_LABEL:d("SellerInsightsV2Fbts").PRODUCT_TABLE_ACTIVATE_ROW_LABEL},onActivate:function(b){var a=b.type==="group"?b:K.find(function(a){return a.id===b.groupID});a!=null&&(G(a),H.logDetailViewLoadStart(a.id,a.name))},onDeactivate:J}},[H,J,K,F==null?void 0:F.id]);return M===0?i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_PRODUCT_INSIGHTS}):i.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",containerRef:x,direction:"column",xstyle:n.root,children:[F!=null?i.jsx("div",{className:"x12peec7 x168nmei x13lgxp2 x30kzoy xo71vjh x1ey2m1c xy8qs99 xds687c xw2csxc x1odjw0f x10l6tqk x13vifvy x1vjfegm",style:{left:a},children:i.jsx(c("SellerInsightsV2ProductSelectedGroupContainer.react"),{productVariantsIDsFromTally:F.productTallyVariantIDs,selectedProductGroup:F,onCloseButtonClick:J})}):null,i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("SellerInsightsV2Table.react"),{columns:h,data:e,"data-testid":void 0,label:d("SellerInsightsV2Fbts").PRODUCT_TABLE_LABEL,loggingAnnotations:{"Chart Name":"Products Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},pagination:{hasNext:f,isLoadingNext:q,loadNext:E,pageSize:N},rowActivation:D,scrollable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductsTableGlimmer.react",["GeoFlexbox.react","SellerInsightsV2LoggingConstants","SellerInsightsV2ProductsTableUtils","SellerInsightsV2Table.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.sortableState;a=d("SellerInsightsV2ProductsTableUtils").useColumnsConfig(a);return h.jsx(c("GeoFlexbox.react"),{alignItems:"stretch",direction:"column",xstyle:i.root,children:h.jsx(c("GeoFlexbox.react"),{grow:1,children:h.jsx(c("SellerInsightsV2Table.react"),{columns:a,data:[],loggingAnnotations:{"Chart Name":"Products Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},pagination:{hasNext:!1,isLoadingNext:!0,loadNext:null,pageSize:10},scrollable:!0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductGroupTrendContainer.react",["invariant","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","Grid.react","SellerInsightsV2CatalogContext.react","SellerInsightsV2ChartUtils.next","SellerInsightsV2Context","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricCard.react","SellerInsightsV2ProductGroupTrendContainerQuery.graphql","SellerInsightsV2ProductGroupTrendContainerUnifiedQuery.graphql","SellerInsightsV2ProductsMetricsUtils","SellerInsightsV2ProductsTableUtils","err","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react"),l=d("react"),m=l.useContext,n=l.useEffect,o=["PDP_VIEWS","OUTBOUND_CLICKS"],p=["PDP_VIEWS","MESSAGE_TO_BUY"],q=["SALES","UNITS_SOLD","PDP_VIEWS","ADD_TO_CART"],r=["PDP_VIEWS","CLICK_TO_OFFSITE"],s=["PDP_VIEWS","MESSAGE_TO_BUY"],t=["SALES","UNITS_SOLD","PDP_VIEWS","ADD_TO_CART"],u=2,v=132,w=i!==void 0?i:i=b("SellerInsightsV2ProductGroupTrendContainerQuery.graphql"),x=j!==void 0?j:j=b("SellerInsightsV2ProductGroupTrendContainerUnifiedQuery.graphql");function y(a){switch(a){case"OFFSITE":return o;case"CONTACT_MERCHANT":return p;case"ONSITE":return q;default:throw c("err")("Checkout Style not supported")}}function z(a){switch(a){case"OFFSITE":return r;case"CONTACT_MERCHANT":return s;case"ONSITE":return t;default:throw c("err")("Checkout Style not supported")}}function A(a){var b=a.metricValue,e=a.metrics;a=a.data;var f=a.account,g=d("SellerInsightsV2ProductsTableUtils").useLogger();d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(f==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);n(function(){f!=null?g.logDetailViewLoadSuccess():g.logDetailViewLoadNoData()});return f==null?null:k.jsx(c("Grid.react"),{alignh:"center",cols:u,fixed:!0,spacing:"x1y1aw1k x1sxyh0 xwib8y2 xurb0ha",children:e.map(function(a,c){return k.jsx(C,{account:f,metric:a,metricValue:b},c)})})}A.displayName=A.name+" [from "+f.id+"]";function B(a){var b=a.metricValue,e=a.metrics,f=a.metricsLegacy;a=a.data;var g=a.trends;a=a.fetch__CommerceMerchantSettings;var h=d("SellerInsightsV2ProductsTableUtils").useLogger();d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler((g==null?void 0:g.breakdowns)==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);n(function(){(g==null?void 0:g.breakdowns)!=null?h.logDetailViewLoadSuccess():h.logDetailViewLoadNoData()});if((g==null?void 0:g.breakdowns)==null||(g==null?void 0:g.extra)==null||(a==null?void 0:a.currency)==null)return null;var i=g.breakdowns.data,j=g.extra.metric_effective_dates,l=a.currency;return k.jsx(c("Grid.react"),{alignh:"center",cols:u,fixed:!0,spacing:"x1y1aw1k x1sxyh0 xwib8y2 xurb0ha",children:e.map(function(a,c){return k.jsx(D,{breakdowns:i,currency:l,effectiveDates:j,metric:a,metricLegacy:f[c],metricValue:b},c)})})}B.displayName=B.name+" [from "+f.id+"]";function C(a){var b=a.metricValue,e=a.metric;a=a.account;a=d("SellerInsightsV2ProductsMetricsUtils").getMetricConfigLegacy(a,b,e);return k.jsx(c("SellerInsightsV2MetricCard.react"),{chartColor:d("SellerInsightsV2ChartUtils.next").getCatalogChartColor(e),chartData:a.chartData,chartHeight:v,chartValueFormatter:a.chartValueFormatter,compact:!0,currency:a.currency,currentValue:a.currentValue,effectiveDate:a.effectiveDate,infoText:a.infoText,isEstimated:a.isEstimated,isNegativeGood:a.isNegativeGood,isReviewed:a.isReviewed,metricFormat:a.renderType,prevValue:a.prevValue,title:a.title,unavailableDates:a.unavailableDates,value:a.value})}C.displayName=C.name+" [from "+f.id+"]";function D(a){var b=a.metricValue,e=a.metric,f=a.metricLegacy,g=a.breakdowns,h=a.effectiveDates;a=a.currency;g=d("SellerInsightsV2ProductsMetricsUtils").getMetricConfigForTimeline(g,h,a,b,e,f);return k.jsx(c("SellerInsightsV2MetricCard.react"),{chartColor:d("SellerInsightsV2ChartUtils.next").getCatalogChartColor(f),chartData:g.chartData,chartHeight:v,chartValueFormatter:g.chartValueFormatter,compact:!0,currency:g.currency,currentValue:g.currentValue,effectiveDate:g.effectiveDate,infoText:g.infoText,isEstimated:g.isEstimated,isNegativeGood:g.isNegativeGood,isReviewed:g.isReviewed,metricFormat:g.renderType,prevValue:g.prevValue,title:g.title,unavailableDates:g.unavailableDates,value:g.value})}D.displayName=D.name+" [from "+f.id+"]";function a(a){var b=a.metricValue;a=a.productIDs;var e=m(c("CommerceManagerContext"));e=e.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;var f=m(c("SellerInsightsV2CatalogContext.react"));f=f.selectedSegmentationFilter;var g=m(c("SellerInsightsV2Context")),h=g.channels;g=g.dateRange;g=g.getDateInterval();var i=g.start;g=g.end;var j=m(c("CommerceManagerComponentGatingContext"));j=j.checkoutStyle;j=y(j);e=d("CommerceManagerHooks").useCommerceManagerQuery(w,{accountID:e,audienceSegmentFilter:f,channels:h,endDate:g.toISOString(),metrics:j,productIDs:a,startDate:i.toISOString()});return k.jsx(A,{data:e,metricValue:b,metrics:j})}a.displayName=a.name+" [from "+f.id+"]";function e(a){var b=a.metricValue,e=a.productGroupId;a=a.productVariantIDs;var f=m(c("CommerceManagerContext"));f=f.cmsID;f!=null||h(0,43619);var g=m(c("SellerInsightsV2CatalogContext.react"));g=g.selectedSegmentationFilter;var i=m(c("SellerInsightsV2Context")),j=i.channels;i=i.dateRange;i=i.getDateInterval();var l=i.start;i=i.end;var n=m(c("CommerceManagerComponentGatingContext"));n=n.checkoutStyle;var o=z(n);n=y(n);f=d("CommerceManagerHooks").useCommerceManagerQuery(x,{accountID:f,audienceSegmentFilter:g,channels:j,endDate:i.toISOString(),metrics:o,productGroupIDs:[e],productVariantIDs:a,startDate:l.toISOString()});return k.jsx(B,{data:f,metricValue:b,metrics:o,metricsLegacy:n})}e.displayName=e.name+" [from "+f.id+"]";g.SellerInsightsV2ProductGroupTrendContainerLegacy=a;g.SellerInsightsV2ProductGroupTrendContainer=e}),98);
-----
SellerInsightsV2ProductSelectedGroupContainer.react",["CUIErrorCard.react","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoSpinner.react","SellerInsightsV2FeatureContext","SellerInsightsV2LoggingConstants","SellerInsightsV2ProductGroupDetailsContainer.react","SellerInsightsV2ProductGroupTrendContainer.react","SellerInsightsV2ProductsTableUtils","react","useGeoTheme"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function j(a){return a.variants.map(function(a){return a.id})}function k(a){var b,c=a.get("SALES"),d=(c==null?void 0:c.value)!=null?String(c.value):null;c=(c=c==null?void 0:c.formattedValue)!=null?c:null;return{addToCartCount:(b=a.get("ADD_TO_CART"))==null?void 0:b.value,checkoutsInitiatedCount:(b=a.get("CHECKOUTS_INITIATED"))==null?void 0:b.value,messageToBuyCount:(b=a.get("MESSAGE_TO_BUY"))==null?void 0:b.value,outboundClickCount:(b=a.get("OUTBOUND_CLICKS"))==null?void 0:b.value,pdpViewsCount:(b=a.get("PDP_VIEWS"))==null?void 0:b.value,savesCount:(b=a.get("ADD_TO_WISHLIST"))==null?void 0:b.value,totalSales:{amount:d,formattedAmount:c},totalUnitsSold:(b=a.get("UNITS_SOLD"))==null?void 0:b.value}}function l(a){return{current:k(a.currentMetrics),previous:k(a.previousMetrics)}}function a(a){var b=a.productVariantsIDsFromTally,e=a.onCloseButtonClick;a=a.selectedProductGroup;var f=i(c("SellerInsightsV2FeatureContext"));f=f.isNewProductTableQueryEnabled;var g=d("SellerInsightsV2ProductsTableUtils").useLogger(),k=c("useGeoTheme")();k=k.selectSpacing;g=g.logDetailViewHover(a.id,a.name,d("SellerInsightsV2LoggingConstants").DELAY_FOR_PRODUCT_GROUP_DETAILS_IN_MS);return h.jsx("div",{onMouseEnter:g,onMouseLeave:g.reset,children:h.jsxs(c("GeoBaseSpacingLayout.react"),{align:"stretch",context:"container",direction:"vertical",relation:"unrelated",xstyle:k({bounds:"internal",context:"container",relation:"page"}),children:[h.jsx(c("SellerInsightsV2ProductGroupDetailsContainer.react"),{productGroup:a,onCloseButtonClick:e}),h.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:h.jsx(c("GeoSpinner.react"),{center:!0}),oncall:"commerce_platform_insights",children:f?h.jsx(d("SellerInsightsV2ProductGroupTrendContainer.react").SellerInsightsV2ProductGroupTrendContainer,{metricValue:l(a),productGroupId:a.id,productVariantIDs:b}):h.jsx(d("SellerInsightsV2ProductGroupTrendContainer.react").SellerInsightsV2ProductGroupTrendContainerLegacy,{metricValue:l(a),productIDs:j(a)})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2CollectionsTable.react",["CommerceManagerContext","GeoFlexbox.react","RelayHooks","SellerInsightsCollectionMetric","SellerInsightsV2CatalogContext.react","SellerInsightsV2CollectionDetail.react","SellerInsightsV2CollectionsContext","SellerInsightsV2CollectionsMetricsContext","SellerInsightsV2CollectionsTableUtils","SellerInsightsV2CollectionsTable_account.graphql","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2DateConstants","SellerInsightsV2EmptyContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2Table.react","SellerInsightsV2TableUtils","objectValues","qpl","react","useAutoSizer"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useState,o=h!==void 0?h:h=b("SellerInsightsV2CollectionsTable_account.graphql"),p={details:{backgroundColor:"x12peec7",borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"xo71vjh",bottom:"x1ey2m1c",boxShadow:"xy8qs99",end:"xds687c",overflowX:"xw2csxc",overflowY:"x1odjw0f",position:"x10l6tqk",top:"x13vifvy",zIndex:"xhtitgo",$$css:!0},root:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x5yr21d",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}};function q(a){a=a==null?void 0:(a=a.product_set_usages)==null?void 0:a.nodes;if(a==null)return null;for(var a=a,b=Array.isArray(a),c=0,a=b?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var d;if(b){if(c>=a.length)break;d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=d;d=(d=d.catalog_manager_display_data)==null?void 0:(d=d.usage_specific_display_data)==null?void 0:(d=d.collection)==null?void 0:d.cover_image_url;if(d!=null)return d}}function r(a){a=a==null?void 0:(a=a.dynamic_items_v2)==null?void 0:a.nodes;return a!=null?a.map(function(a){return{imageURL:a==null?void 0:(a=a.dynamic_item_main_image)==null?void 0:(a=a.image)==null?void 0:a.downloadable_uri}}):[]}function s(a){return a!=null?Object.fromEntries(a.map(function(a){var b=a.metric;a=a.value;b=c("SellerInsightsCollectionMetric").cast(b);return b!=null?[b,a]:null}).filter(Boolean)):{}}function t(a){return a.map(function(a){var b,c;b=a==null?void 0:(b=a.node)==null?void 0:b.product_set;var d=b==null?void 0:b.id;return d==null?null:{coverImageURL:q(b),currentMetrics:s(a==null?void 0:(c=a.node)==null?void 0:c.current_metrics),id:d,name:b==null?void 0:b.name,previousMetrics:s(a==null?void 0:(c=a.node)==null?void 0:c.previous_metrics),productCount:b==null?void 0:b.dynamic_items_count,topProducts:r(b)}}).filter(Boolean)}function u(){var a=k(c("SellerInsightsV2Context"));a=a.dateRange;var b=k(c("SellerInsightsV2CollectionsMetricsContext"));b=b.metricConfigs;a=a.getDateInterval().end.toInstant(d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE);b=Math.min.apply(Math,c("objectValues")(b).map(function(a){return a.effectiveDate}));return i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_COLLECTION_INSIGHTS,overrideLabel:a<=b?d("SellerInsightsV2Fbts").NO_COLLECTION_INSIGHTS_BEFORE_EFFECTIVE_DATE(b):null})}u.displayName=u.name+" [from "+f.id+"]";function v(a,b){if(a!=null)return i.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_INSIGHTS_FOR_AUDIENCE_SEGMENT});return b.length===0?i.jsx(u,{}):null}v.displayName=v.name+" [from "+f.id+"]";function a(a){var b,e=a.account;a=a.sortableState;var f=c("useAutoSizer")(),g=f.width;f=f.ref;e=d("RelayHooks").usePaginationFragment(o,e);var h=e.data,q=e.loadNext,r=e.isLoadingNext;e=e.hasNext;var s=n(null),u=s[0],w=s[1];s=k(c("SellerInsightsV2Context"));var x=s.channels,y=s.igChannelIDs,z=s.fbChannelIDs,A=s.pageIDs;s=k(c("SellerInsightsV2CollectionsContext"));var B=s.collectionsSortingKey;s=k(c("SellerInsightsV2CatalogContext.react"));s=s.selectedSegmentationFilter;var C=k(c("CommerceManagerContext")),D=C.cmsID,E=d("SellerInsightsV2CollectionsTableUtils").useLogger(),F=function(){w(null)},G=j(function(){F(),E.logDetailViewClose(u)},[E,u]);d("SellerInsightsV2CollectionsTableUtils").useLogDataLoaded(h!=null);C=d("SellerInsightsV2CollectionsTableUtils").useColumnsConfig(babelHelpers["extends"]({},a));var H=C.map(function(a){return a.width});a=n(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,H,g));var I=a[0],J=a[1];l(function(){J(d("SellerInsightsV2TableUtils").calculateColumnWidth(0,H,g))},[g,H]);a=t((h==null?void 0:(a=h.seller_collection_insights)==null?void 0:(a=a.collections)==null?void 0:a.edges)||[]);b=m(function(){var a;return{activeItemID:u==null?void 0:(a=u.product_set)==null?void 0:a.id,getItemID:function(a){return a.id},getLabel:function(a){a=a.isActive;return a?d("SellerInsightsV2Fbts").COLLECTION_TABLE_DEACTIVATE_ROW_LABEL:d("SellerInsightsV2Fbts").COLLECTION_TABLE_ACTIVATE_ROW_LABEL},onActivate:function(a){var b;b=h==null?void 0:(b=h.seller_collection_insights)==null?void 0:(b=b.collections)==null?void 0:(b=b.edges)==null?void 0:b.filter(function(b){return((b=b.node)==null?void 0:(b=b.product_set)==null?void 0:b.id)===a.id})[0];w(b==null?void 0:b.node);E.logDetailViewLoadStart(b==null?void 0:b.node)},onDeactivate:G}},[h==null?void 0:(b=h.seller_collection_insights)==null?void 0:(b=b.collections)==null?void 0:b.edges,E,G,u==null?void 0:(b=u.product_set)==null?void 0:b.id]);s=v(s,a);if(s!=null)return s;var K=a.length,L=(s=h==null?void 0:(s=h.seller_collection_insights)==null?void 0:(s=s.collections)==null?void 0:s.count)!=null?s:0,M=e?Math.min(d("SellerInsightsV2CollectionsTableUtils").PAGE_SIZE,L-K):0;s=function(a){var b,e=c("qpl")._(7085174,"624"),f={AccountID:(b=D)!=null?b:"0",Channel:x.join(" and "),FBChannelIDs:z,IGChannelIDs:y,NewPage:K+"-"+(K+M),PageIDs:A,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,SortKey:B,Total:L.toString()};d("SellerInsightsV2LoggingUtils").scenarioStart(e,f);q(a,{onComplete:function(a){a==null?d("SellerInsightsV2LoggingUtils").scenarioSuccess([e],f):d("SellerInsightsV2LoggingUtils").scenarioFail([e],babelHelpers["extends"]({Error:a.message},f))}})};return i.jsxs(c("GeoFlexbox.react"),{alignItems:"stretch",containerRef:f,direction:"column",xstyle:p.root,children:[u!=null?i.jsx("div",{className:"x12peec7 x168nmei x13lgxp2 x30kzoy xo71vjh x1ey2m1c xy8qs99 xds687c xw2csxc x1odjw0f x10l6tqk x13vifvy xhtitgo",style:{left:I},children:i.jsx(c("SellerInsightsV2CollectionDetail.react"),{dataPoint:u,onClose:G})}):null,i.jsx(c("GeoFlexbox.react"),{grow:1,children:i.jsx(c("SellerInsightsV2Table.react"),{columns:C,data:a,"data-testid":void 0,label:d("SellerInsightsV2Fbts").COLLECTION_TABLE_LABEL,loggingAnnotations:{"Chart Name":"Collections Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS},pagination:{hasNext:e,isLoadingNext:r,loadNext:s,pageSize:M},rowActivation:b,scrollable:!0})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2CollectionsContainer.react",["CUIErrorCard.react","CommerceManagerHooks","CommerceManagerSuspense.react","SellerInsightsCollectionsSortingDirection","SellerInsightsCollectionsSortingKey","SellerInsightsSearchParamsUtils","SellerInsightsV2CollectionsContainerQuery.graphql","SellerInsightsV2CollectionsContext","SellerInsightsV2CollectionsMetricsContext","SellerInsightsV2CollectionsMetricsUtils","SellerInsightsV2CollectionsTable.react","SellerInsightsV2CollectionsTableGlimmer.react","SellerInsightsV2CollectionsTableUtils","SellerInsightsV2Context","SellerInsightsV2CutoffDateBanner","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TableUtils","geoMargin","qpl","react","useEffectOnce","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2CollectionsContainerQuery.graphql");function m(a,b){var c=Object.fromEntries(a.map(function(a){return[a,0]}));(b=b.account)==null?void 0:(b=b.seller_collection_insights)==null?void 0:(b=b.metrics_lifetime)==null?void 0:b.forEach(function(a){var b=d("SellerInsightsV2CollectionsMetricsUtils").coerceMetricFromGraphQLEnum(a==null?void 0:a.metric);if(b!=null){c[b]=(b=a==null?void 0:a.effective_date)!=null?b:0}});return Object.fromEntries(a.map(function(a){return[a,d("SellerInsightsV2CollectionsMetricsUtils").getMetricConfig(a,{effectiveDate:c[a]})]}))}function n(a){var b,e=a.setBanner;a=a.sortableState;var f=d("SellerInsightsV2CollectionsMetricsUtils").useQueryVariables();d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,"collections");f=d("CommerceManagerHooks").useCommerceManagerQuery(l,f);var g=j(c("SellerInsightsV2Context"));g=g.dateRange;var h=(b=f==null?void 0:(b=f.account)==null?void 0:(b=b.seller_collection_insights)==null?void 0:b.min_effective_date)!=null?b:0,n=g.getTimeInterval().getStartDateTime().getUnixTimestampSeconds()
SellerInsightsV2CollectionsTableGlimmer.react",["GeoFlexbox.react","SellerInsightsV2CollectionsTableUtils","SellerInsightsV2LoggingConstants","SellerInsightsV2Table.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={root:{height:"x5yr21d",$$css:!0}};function a(a){a=a.sortableState;a=d("SellerInsightsV2CollectionsTableUtils").useColumnsConfig(a);return h.jsx(c("GeoFlexbox.react"),{alignItems:"stretch",direction:"column",xstyle:i.root,children:h.jsx(c("GeoFlexbox.react"),{grow:1,children:h.jsx(c("SellerInsightsV2Table.react"),{columns:a,data:[],loggingAnnotations:{"Chart Name":"Collections Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS},pagination:{hasNext:!1,isLoadingNext:!0,loadNext:null,pageSize:d("SellerInsightsV2CollectionsTableUtils").PAGE_SIZE},scrollable:!0})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2CollectionsTableUtils",["ix","CommerceManagerContext","GeoBaseSpacingLayout.react","GeoFlexbox.react","GeoGlimmer.react","GeoIcon.react","GeoMediaItem.react","GeoTableContentCell.react","GeoTableContentGlimmer.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","Image.react","SellerInsightsV2CollectionsTableQPLLogger","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricDefinitions","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2MetricWithPopTooltip.react","SellerInsightsV2Placeholder.react","fbicon","react","useGeoTableSortableColumn_DEPRECATED"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=96,o=64,p=32,q=1,r=1.25;e=10;var s={placeholderText:{marginStart:"x1i64zmx",marginEnd:"x1emribx",$$css:!0}};function t(a){var b=a.coverImageURL,e=a.name;a=a.productCount;return i.jsx(c("GeoTableContentCell.react"),{description:d("SellerInsightsV2Fbts").NUMBER_OF_VARIANTS((a=a)!=null?a:0),media:i.jsx(c("GeoMediaItem.react"),{fit:b!=null?"cover":"none",media:b!=null?i.jsx(c("Image.react"),{src:b}):i.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),ratio:"landscape",size:o}),title:(a=e)!=null?a:""})}t.displayName=t.name+" [from "+f.id+"]";function u(a){a=a.index;return i.jsxs(c("GeoBaseSpacingLayout.react"),{children:[i.jsx(c("GeoFlexbox.react"),{shrink:0,children:i.jsx(c("GeoGlimmer.react"),{height:o,index:a,width:n})}),i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",children:[i.jsx(c("GeoTableContentGlimmer.react"),{index:a}),i.jsx(c("GeoTableContentGlimmer.react"),{index:a,width:"50%"})]})]})}u.displayName=u.name+" [from "+f.id+"]";function v(a){var b=a.topProducts;a=a.productCount;return i.jsxs(c("GeoBaseSpacingLayout.react"),{children:[b.map(function(a,b){a=a.imageURL;return i.jsx(c("GeoMediaItem.react"),{fit:a!=null?"cover":"none",media:a!=null?i.jsx(c("Image.react"),{src:a}):i.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),ratio:"square",size:p},b)}),a!=null&&a>3?i.jsx(c("SellerInsightsV2Placeholder.react"),{height:p,width:p,children:i.jsx(c("GeoText.react"),{xstyle:s.placeholderText,children:d("SellerInsightsV2Fbts").EXTRA_ITEMS_COUNT(a-3)})}):null]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b=a.currentValue;a=a.previousValue;var d=k(c("SellerInsightsV2Context"));d=d.dateRange;return i.jsx(c("SellerInsightsV2MetricWithPopTooltip.react"),{curValue:b,dateRange:d,formattedAmount:null,prevValue:a})}w.displayName=w.name+" [from "+f.id+"]";function x(a,b){var e=d("SellerInsightsV2MetricDefinitions").getCollectionMetricDefinition(a);return{cell:function(b){b=b.item;return i.jsx(w,{currentValue:b.currentMetrics[a],previousValue:b.previousMetrics[a]})},features:{sortable:b},header:{label:e.title,tooltip:i.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:(b=e.isEstimated)!=null?b:!1,isReviewed:(b=e.isReviewed)!=null?b:!1,text:e.tooltip,title:e.title})},key:a,width:d("GeoTableWidth").proportional(q)}}function a(a){var b=a.sort,e=a.setSort,f=a.onPageReset;a=j(function(a){e(a),f==null?void 0:f()},[f,e]);var g=c("useGeoTableSortableColumn_DEPRECATED")({allowUnsortedState:!1,setSort:a,sort:b});return m(function(){return[{cell:function(a){a=a.item;return i.jsx(c("GeoTableRowAction.react"),{children:i.jsx(t,babelHelpers["extends"]({},a))})},header:d("SellerInsightsV2Fbts").COLLECTION_NAME_LABEL,key:"collection_name",loadingCell:function(a){a=a.loadingIndex;return i.jsx(u,{index:a})},width:d("GeoTableWidth").proportional(r)},{cell:function(a){a=a.item;return i.jsx(v,babelHelpers["extends"]({},a))},header:d("SellerInsightsV2Fbts").PRODUCT_VARIANTS_LABEL,key:"product_variants",width:d("GeoTableWidth").proportional(q)},x("VIEWS",g.singleKey("VIEWS",{defaultDirection:"descending"})),x("UNIQUE_VISITORS",g.singleKey("UNIQUE_VISITORS",{defaultDirection:"descending"}))]},[g])}function y(){var a=k(c("CommerceManagerContext")),b=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=k(c("SellerInsightsV2Context"));var d=a.igChannelIDs,e=a.fbChannelIDs,f=a.channels,g=a.pageIDs;return m(function(){return new(c("SellerInsightsV2CollectionsTableQPLLogger"))({accountID:b,channels:f,fbChannelIDs:e,igChannelIDs:d,pageIDs:g})},[b,f,e,d,g])}function b(a){var b=y(),c=j(function(){document.visibilityState==="visible"?b.logActiveTabLoadStart():document.visibilityState==="hidden"&&b.logActiveTabLoadSuccess()},[b]);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(!a,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);l(function(){a?(b.logLoadSuccess(),b.logActiveTabLoadStart(),document.addEventListener("visibilitychange",c)):b.logLoadNoData();return function(){return document.removeEventListener("visibilitychange",c)}})}g.PAGE_SIZE=e;g.useColumnsConfig=a;g.useLogger=y;g.useLogDataLoaded=b}),98);
-----
SellerInsightsV2CollectionsTableQPLLogger",["SellerInsightsV2ExitTabActionEnum","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs}var b=a.prototype;b.logLoadStart=function(a){d("SellerInsightsV2LoggingUtils").setCurrentSection(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsV2LoggingUtils").scenarioForContainerLoading(this.accountID,this.channels,a,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,this.igChannelIDs,this.fbChannelIDs,this.pageIDs)};b.logNavigateAway=function(a){d("SellerInsightsV2LoggingUtils").logNavigateAway(this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsV2LoggingUtils").scenarioAbandon(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON)};b.logLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,"collections"),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenarios=function(){d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731"),c("qpl")._(7092951,"142")])};b.logDetailViewLoadStart=function(a){this.abandonRunningDetailViewScenarios();if(a!=null){var b;d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),{AccountID:this.accountID,CollectionID:(b=a==null?void 0:(b=a.product_set)==null?void 0:b.id)!=null?b:"",CollectionName:(a=a==null?void 0:(b=a.product_set)==null?void 0:b.name)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS})}};b.logDetailViewLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:a.message,ErrorName:a.name})};b.logDetailViewClose=function(a){var b;this.abandonRunningDetailViewScenarios();d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7090129,"1302"),{AccountID:this.accountID,CollectionID:(b=a==null?void 0:(b=a.product_set)==null?void 0:b.id)!=null?b:"",CollectionName:(a=a==null?void 0:(b=a.product_set)==null?void 0:b.name)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS})};b.logActiveTabLoadStart=function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart()};b.logActiveTabLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)};return a}();g["default"]=a}),98);
-----
SellerInsightsV2CollectionDetailTableQPLLogger",["SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";var h=c("qpl")._(7092951,"142");a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs,this.sortKey=a.sortKey}var b=a.prototype;b.logLoadStart=function(a){var b=a.itemsToLoadCount,c=a.loadedItemsCount,e=a.pageSize;a=a.totalItemsCount;d("SellerInsightsV2LoggingUtils").scenarioRestart(h,{AccountID:this.accountID,Channel:this.channels.join(" and "),FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,NewPage:c+"-"+(c+b-1),PageIDs:this.pageIDs,PreviousPage:Math.max(c-e,0)+"-"+(c-1),Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS,SortKey:this.sortKey,Total:String(a)})};b.logLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([h],{})};b.logLoadFail=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail([h],a!=null?{ErrorMessage:a.message,ErrorName:a.name}:{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};return a}();g["default"]=a}),98);
-----
SellerInsightsV2CollectionDetailProductsTable.react",["RelayHooks","SellerInsightsV2CollectionDetailProductsTableUtils","SellerInsightsV2CollectionDetailProductsTable_productSet.graphql","SellerInsightsV2LoggingConstants","SellerInsightsV2Table.react","intlList","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useMemo,k=h!==void 0?h:h=b("SellerInsightsV2CollectionDetailProductsTable_productSet.graphql");function l(a){a=a==null?void 0:(a=a.productItems)==null?void 0:a.edges;return a!=null?a.map(function(a){a=a==null?void 0:a.node;var b=a==null?void 0:a.id,d=a==null?void 0:a.variant_values;return b!=null?{category:a==null?void 0:a.category,id:b,imageURL:a==null?void 0:(b=a.main_image)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri,name:a==null?void 0:a.name,price:a==null?void 0:(b=a.listing_price)==null?void 0:b.formatted_amount,retailerID:a==null?void 0:a.retailer_id,type:"cell",variantValues:d!=null?c("intlList")(d.filter(Boolean),"NONE"):null}:null}).filter(Boolean):[]}var m=10;function a(a){var b;a=a.productSet;a=d("RelayHooks").usePaginationFragment(k,a);var e=a.data,f=a.loadNext,g=a.hasNext,h=a.isLoadingNext;a=e!=null?l(e):[];var n=a.length,o=(b=e==null?void 0:(b=e.productItems)==null?void 0:b.count)!=null?b:n,p=Math.min(m,o-n),q=d("SellerInsightsV2CollectionDetailProductsTableUtils").useLogger();b=j(function(){return{hasNext:g,isLoadingNext:h,loadNext:function(){q.logLoadStart({itemsToLoadCount:p,loadedItemsCount:n,pageSize:m,totalItemsCount:o}),f(p,{onComplete:function(a){a==null?q.logLoadSuccess():q.logLoadFail(a)}})},pageSize:p}},[g,h,p,f,n,q,o]);if(e==null)return null;e=d("SellerInsightsV2CollectionDetailProductsTableUtils").getColumnsConfig();return i.jsx(c("SellerInsightsV2Table.react"),{columns:e,data:a,loggingAnnotations:{"Chart Name":"Collection Product Variants Table",Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS},pagination:b,scrollable:!1})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ProductFilter.react",["cx","ix","AdsFBIconDownsized.react","AdsTypeaheadFilter.react","CommerceManagerContext","CommerceManagerRouter","SellerInsightsSearchParamsUtils","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2FilterConfig","SellerInsightsV2HeroInteractionRoot","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2ProductFilterUtils","enumObjectKeys","immutable","qpl","react","regeneratorRuntime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useState;function n(a,b,c){d("SellerInsightsSearchParamsUtils").handleProductFilterChange({accountID:a,commerceManagerRouter:c,filters:b})}function o(a){return!a.find(function(a){a=(a=a.value)==null?void 0:a.value;return a instanceof c("immutable").OrderedSet&&a.size===0})}function p(a,b,e,f,g,h){var i=c("enumObjectKeys")(b).filter(function(a){return a==="metric"?b[a]!=null:b[a].length>0});if(i.length!==0||d("SellerInsightsV2ProductFilterUtils").doSearchFiltersExist(location.search)){a={AccountID:a,Channel:e.join(", "),FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,SearchFieldUsed:i.map(String).sort(),Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS};d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7087889,"6962"),a);c("SellerInsightsV2HeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7082561,"1266"),"seller_insights_table_filter",a)}}function a(a){var e=a.filters;a=a.onChange;var f=l(c("SellerInsightsV2Context")),g=f.channels,h=f.igChannelIDs,r=f.fbChannelIDs,s=f.pageIDs,t=(f=l(c("CommerceManagerContext")).cmsID)!=null?f:"0",u=c("CommerceManagerRouter")();f=m(d("SellerInsightsV2ProductFilterUtils").useInitialFilters());var v=f[0],w=f[1];f=l(c("SellerInsightsV2FeatureContext"));f=f.isCatalogMetricFilterEnabled;var x=d("SellerInsightsV2ProductFilterUtils").useProductMetricsSearchConfig();f=f?d("SellerInsightsV2ProductFilterUtils").mergeFilterConfigs(d("SellerInsightsV2FilterConfig").PRODUCTS_CONFIG_WITH_PROMOTIONS,x):d("SellerInsightsV2FilterConfig").PRODUCTS_CONFIG_WITH_PROMOTIONS;var y=k(function(a){a=d("SellerInsightsV2ProductFilterUtils").reduceMetricFilters(a);var b=d("SellerInsightsV2ProductFilterUtils").parseFilters(a);o(a)&&p(t,b,g,h,r,s);n(t,b,u);w(a)},[g,t,u,r,h,s]);return j.jsx("div",{className:"x1iyjqo2 x1y332i5 x1jyxor1",children:j.jsx(c("AdsTypeaheadFilter.react"),{config:f,filters:(x=e)!=null?x:v,icon:j.jsx(q,{asset:i("407188"),onClick:function(){return b("regeneratorRuntime").async(function(a){while(1)switch(a.prev=a.next){case 0:a.next=2;return b("regeneratorRuntime").awrap(y(v));case 2:case"end":return a.stop()}},null,this)}}),placeholder:d("SellerInsightsV2Fbts").PRODUCT_SEARCH_PLACEHOLDER,style:{borderRadius:"6px"},onChange:(f=a)!=null?f:y})})}a.displayName=a.name+" [from "+f.id+"]";function q(a){return j.jsx("div",{className:"_77hb",children:j.jsx(c("AdsFBIconDownsized.react"),{src:a.asset,onClick:function(){return b("regeneratorRuntime").async(function(c){while(1)switch(c.prev=c.next){case 0:c.next=2;return b("regeneratorRuntime").awrap(a.onClick);case 2:case"end":return c.stop()}},null,this)}})})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AdvancedTrendChartCard.react",["CommerceManagerContext","CommerceManagerHooks","CommerceManagerRouter","CommerceManagerSuspense.react","GeoButton.react","GeoFlexbox.react","GeoGlimmer.react","GeoPageCard.react","GeoSection.react","SellerInsightsV2AdvancedTrendChart.react","SellerInsightsV2AdvancedTrendChartCardQuery.graphql","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricDefinitions","SellerInsightsV2MetricUtils","SellerInsightsV2TrendChartDetailDialog.react","SellerInsightsV2TrendChartDetailUtils","SellerInsightsV2WhatsNew","SellerInsightsV2WhatsNewFeatures","XCommerceManagerPerformanceController","react","useBoolean"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=36,m=h!==void 0?h:h=b("SellerInsightsV2AdvancedTrendChartCardQuery.graphql");function n(a){var b=a.metric;a=a.fullWidth;a=a===void 0?!1:a;var e=k(c("CommerceManagerContext")),f=e.cmsID;e=k(c("SellerInsightsV2Context"));var g=e.subtab,h=c("CommerceManagerRouter")(),l,m;switch(b){case"UNIQUE_VISITOR_COUNT":l=d("SellerInsightsV2Fbts").VIEW_REPORT_AUDIENCE;m="audience";break;default:m="perf",l=d("SellerInsightsV2Fbts").ALL_CONVERSION_TRENDS_LABEL}e=j(function(){var a=new URLSearchParams(location.search);a=c("XCommerceManagerPerformanceController").getURIBuilder().setFBID("account_id",f).setEnum("subtab",m).setParams(Object.fromEntries(a)).getURI();h.navigate(a.toString(),{state:{prevSubtab:g,prevTab:"performance"}})},[f,m,h,g]);return i.jsx(c("GeoButton.react"),{grow:a?"fill":"auto",label:l,onClick:e})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.metric;a=a.showNUX;var e=a===void 0?!1:a;a=c("useBoolean")(!1);var f=a.value,g=a.setTrue;a=a.setFalse;var h=d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName(b),k=d("SellerInsightsV2WhatsNew").useWhatsNew(),l=j(function(a){a!=null&&e&&k(d("SellerInsightsV2WhatsNewFeatures").SellerInsightsV2Feature.OverviewCTD,{current:a})},[k,e]);return i.jsxs(i.Fragment,{children:[i.jsx(c("GeoButton.react"),{"data-testid":void 0,label:d("SellerInsightsV2Fbts").METRIC_DETAIL_LABEL(h),ref:l,variant:"primary",onClick:g}),i.jsx(c("SellerInsightsV2TrendChartDetailDialog.react"),{isShown:f,metric:b,onHide:a})]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.effectiveDate,d=a.metric;a=a.showNUX;a=a===void 0?!1:a;var e=k(c("SellerInsightsV2Context"));e=e.dateRange;e=e.getDateInterval().end;e=b!=null&&e.isAfter(b);return e?i.jsxs(c("GeoFlexbox.react"),{justifyContent:"end",wrap:"wrap",xstyle:t.actions,children:[i.jsx(n,{metric:d}),i.jsx(o,{metric:d,showNUX:a})]}):i.jsx(c("GeoFlexbox.react"),{xstyle:t.actions,children:i.jsx(n,{fullWidth:!0,metric:d})})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var b,e=a.metric;a=a.showNUX;var f=k(c("CommerceManagerContext"));f=f.cmsID;var g=k(c("SellerInsightsV2Context")),h=g.channels;g=g.dateRange;var j=g.getDateInterval(),l=j.start;j=j.end;b=(b=g.getCompareDateInterval())!=null?b:g.getPrevDateInterval();g=b.start;b=b.end;f=d("CommerceManagerHooks").useCommerceManagerQuery(m,{channels:h,cmsID:(h=f)!=null?h:"0",endDate:j.toISOString(),metric:e,metrics:[e],prevEndDate:b.toISOString(),prevStartDate:g.toISOString(),startDate:l.toISOString()});h=d("SellerInsightsV2MetricUtils").useMetricResultFragment(f.node);j=d("SellerInsightsV2TrendChartDetailUtils").useEffectiveDate(f.node);if(h==null)return i.jsxs(i.Fragment,{children:[i.jsx(c("SellerInsightsV2AdvancedTrendChart.react"),{metric:e,state:d("SellerInsightsV2TrendChartDetailUtils").ContentState.Error}),i.jsx(p,{effectiveDate:j,metric:e})]});b=d("SellerInsightsV2MetricUtils").getMetricConfig(h,e);return b.currentValue===0?i.jsxs(i.Fragment,{children:[i.jsx(c("SellerInsightsV2AdvancedTrendChart.react"),{metric:e,state:d("SellerInsightsV2TrendChartDetailUtils").ContentState.Empty}),i.jsx(p,{effectiveDate:j,metric:e})]}):i.jsxs(i.Fragment,{children:[i.jsx(c("SellerInsightsV2AdvancedTrendChart.react"),{data:b,metric:e}),i.jsx(p,{effectiveDate:j,metric:e,showNUX:a})]})}q.displayName=q.name+" [from "+f.id+"]";function r(a){a=a.metric;return i.jsxs(i.Fragment,{children:[i.jsx(c("SellerInsightsV2AdvancedTrendChart.react"),{metric:a,state:d("SellerInsightsV2TrendChartDetailUtils").ContentState.Error}),i.jsx(p,{metric:a})]})}r.displayName=r.name+" [from "+f.id+"]";function s(a){a=a.metric;return i.jsxs(i.Fragment,{children:[i.jsx(c("SellerInsightsV2AdvancedTrendChart.react"),{metric:a,state:d("SellerInsightsV2TrendChartDetailUtils").ContentState.Loading}),i.jsx(c("GeoFlexbox.react"),{xstyle:t.actions,children:i.jsx(c("GeoGlimmer.react"),{height:l,index:2,width:"100%"})})]})}s.displayName=s.name+" [from "+f.id+"]";function a(a){var b=a.metric,e=a.columns;a=a.showNUX;a=a===void 0?!1:a;var f=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense({Component:"ctd"});return i.jsx(c("GeoPageCard.react"),{columns:e,children:i.jsx(c("GeoSection.react"),{children:i.jsx(c("CommerceManagerSuspense.react"),{errorComponent:function(a){return i.jsx(r,{metric:b})},loadingComponent:i.jsx(s,{metric:b}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ctd",ErrorMessage:a.message,ErrorName:a.name}),f(a)},children:i.jsx(q,{metric:b,showNUX:a})})})})}a.displayName=a.name+" [from "+f.id+"]";var t={actions:{gridGap:"xd3ue5d",marginTop:"xw7yly9",$$css:!0}};g["default"]=a}),98);
-----
SellerInsightsV2AttributionModelSelector.react",["CommerceManagerContext","GeoBaseSpacingLayout.react","GeoFlexbox.react","GeoPopover.react","GeoSelector.react","GeoSelectorItem.react","GeoText.react","GeoToolbar.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext;e=["LAST_TOUCH_VANILLA","LAST_TOUCH_PREFER_PAID"];var k=e.map(function(a){return{key:a,label:m(a),value:a}});function l(a){switch(a){case"LAST_TOUCH_VANILLA":return[h.jsx(c("GeoText.react"),{display:"block",children:d("SellerInsightsV2Fbts").ATTRIBUTION_LAST_TOUCH_DESCRIPTION})];case"LAST_TOUCH_PREFER_PAID":return[h.jsx(c("GeoText.react"),{display:"block",children:d("SellerInsightsV2Fbts").ATTRIBUTION_LAST_TOUCH_DESCRIPTION}),h.jsx(c("GeoText.react"),{display:"block",children:d("SellerInsightsV2Fbts").ATTRIBUTION_LAST_TOUCH_PREFER_PAID_DESCRIPTION})];default:return[]}}function m(a){switch(a){case"LAST_TOUCH_VANILLA":return d("SellerInsightsV2Fbts").ATTRIBUTION_LAST_TOUCH;case"LAST_TOUCH_PREFER_PAID":return d("SellerInsightsV2Fbts").ATTRIBUTION_LAST_TOUCH_PREFER_PAID;default:return""}}function a(){var a=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7084665,"3938"),{},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS),b=j(c("SellerInsightsV2Context")),e=b.attributionModel,f=b.onAttributionModelChange,g=b.channels,m=b.fbChannelIDs,n=b.igChannelIDs,o=b.pageIDs,p=b.subtab;b=j(c("CommerceManagerContext"));var q=b.cmsID;b=i(function(a){var b;f(a);d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7087833,"557"),{AccountID:(b=q)!=null?b:"0",Channels:g.join(" and "),FBChannelIDs:m,IGChannelIDs:n,NewAttributionModel:a,PageIDs:o,PreviousAttributionModel:e,Section:p})},[e,g,q,m,n,f,o,p]);return h.jsx(c("GeoToolbar.react"),{children:h.jsx(c("GeoFlexbox.react"),{grow:0,shrink:0,children:h.jsx(c("GeoSelector.react"),{isLabelHidden:!0,label:"hidden",value:e,onChange:b,children:k.map(function(b){return h.jsx(c("GeoSelectorItem.react"),babelHelpers["extends"]({},b,{badge:h.jsx(c("GeoPopover.react"),{content:h.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",direction:"vertical",relation:"related",children:l(b.key)}),heading:b.label,isSticky:!1,onToggle:function(b){return b?a():a.reset()}})}))})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2Table.react",["CommerceManagerContext","GeoPrivateTablePluginsContext","GeoTable.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TableContext","SellerInsightsV2TableUtils","createGeoTableDataSource","qpl","react","stylex","useGeoTableColumnResize.experimental"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");e=d("react");var i=e.useContext,j=e.useMemo,k={scrollableContainer:{height:"x5yr21d",width:"xh8yej3",$$css:!0},scrollableTable:{height:"x5yr21d",overflowX:"xw2csxc",overflowY:"x1odjw0f",width:"xh8yej3",$$css:!0}};function a(a){return function(b){var c=b.tableRenderer;b=babelHelpers.objectWithoutPropertiesLoose(b,["tableRenderer"]);var d=function(a){var b=a.style;a=babelHelpers.objectWithoutPropertiesLoose(a,["style"]);return c(babelHelpers["extends"]({},a,{style:babelHelpers["extends"]({},b,{overflow:"visible"})}))};return a(babelHelpers["extends"]({},b,{tableRenderer:d}))}}e={transformLayout:a};var l={plugins:[e]};function b(a){var b=a.columns,e=a.data,f=a["data-testid"];f=a.scrollable;f=f===void 0?!0:f;var g=a.label,m=a.loggingAnnotations,n=a.pagination,o=a.rowActivation,p=a.variant;a=a.xstyle;var q=i(c("SellerInsightsV2Context")),r=q.igChannelIDs,s=q.fbChannelIDs;q=q.pageIDs;var t=i(c("CommerceManagerContext"));t=t.cmsID;var u=i(c("SellerInsightsV2FeatureContext"));u=u.isTableColumnsResizingEnabled;t=babelHelpers["extends"]({},m,{AccountID:(t=t)!=null?t:"0",FBChannelIDs:s,IGChannelIDs:r,PageIDs:q});s=d("SellerInsightsV2LoggingUtils").hoverScenario(c("qpl")._(7086630,"8553"),t,d("SellerInsightsV2LoggingConstants").DELAY_FOR_TABLE_HOVER_IN_MS);r=d("SellerInsightsV2TableUtils").useRowActivation(o);q=c("useGeoTableColumnResize.experimental")({resizableColumnKeys:j(function(){return b.map(function(a){return a.key})},[b])});return h.jsx(c("GeoPrivateTablePluginsContext").Provider,{value:l,children:h.jsx(d("SellerInsightsV2TableContext").SellerInsightsV2TableContext.Provider,{value:{loggingAnnotations:m},children:h.jsx("div",{className:c("stylex")(f&&k.scrollableContainer,a),onMouseEnter:s,onMouseLeave:s.reset,children:h.jsx(c("GeoTable.react"),{columns:b,"data-testid":void 0,dataSource:j(function(){return c("createGeoTableDataSource")(e,{getStableUniqueID:function(){return null}})},[e]),label:(t=g)!=null?t:d("SellerInsightsV2Fbts").INSIGHTS_TABLE_LABEL,pagination:n,plugins:{activation:r,columnResize:u?q:void 0},variant:p,xstyle:f&&k.scrollableTable})})})})}b.displayName=b.name+" [from "+f.id+"]";g["default"]=b}),98);
-----
SellerInsightsV2ProductsTableUtils",["ix","AdsCurrencyFormatter","CommerceManagerComponentGatingContext","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBasePressable.react","GeoBaseSpacingLayout.react","GeoBaseTableCell.react","GeoBaseText.react","GeoFlexbox.react","GeoGlimmer.react","GeoIcon.react","GeoMediaItem.react","GeoTableContentCell.react","GeoTableContentGlimmer.react","GeoTableRowAction.react","GeoTableWidth","GeoText.react","GeoTooltip.react","Image.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricDefinitions","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2MetricWithPopTooltip.react","SellerInsightsV2PerfUtils","SellerInsightsV2Placeholder.react","SellerInsightsV2ProductMetricsUtils","SellerInsightsV2ProductsTableQPLLogger","SellerInsightsV2ProductsTableUtilsQuery.graphql","SellerInsightsV2TableUtils","err","fbicon","filterNulls","intlList","react","toggleInSet","useEffectOnce","useGeoTableSortableColumn_DEPRECATED"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react"),l=k.useCallback,m=k.useContext,n=k.useEffect,o=k.useMemo,p=i!==void 0?i:i=b("SellerInsightsV2ProductsTableUtilsQuery.graphql"),q=32,r=2,s=1,t=1.1,u=1.25,v=2,w=3,x=160,y=80,z=104,A={expander:{display:"x78zum5",flexShrink:"x2lah0s",height:"x10w6t97",width:"x1td3qas",$$css:!0},expanderContent:{alignItems:"x6s0dn4",display:"x78zum5",justifyContent:"xl56j7k",$$css:!0},fullWidth:{flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},variant:{marginStart:"x540dpk",$$css:!0},variantText:{minWidth:"xeuugli",$$css:!0},variantTextGlimmer:{marginTop:"x1gslohp",marginBottom:"x12nagc",$$css:!0}};function B(a){var b=a.name,e=a.imageURL,f=a.variants,g=a.id,i=a.expandedGroupIDs,k=a.setExpandedGroupIDs;a=(i==null?void 0:i.has(g))===!0;var m=a?d("SellerInsightsV2Fbts").PRODUCT_TABLE_COLLAPSE_ROW_LABEL:d("SellerInsightsV2Fbts").PRODUCT_TABLE_EXPAND_ROW_LABEL,n=N(),o=l(function(){i!=null&&k!=null&&(k(c("toggleInSet")(i,g)),n.logToggleProductGroupRow(i.has(g)))},[i,g,n,k]);return j.jsxs(c("GeoBaseSpacingLayout.react"),{children:[j.jsx(c("GeoTooltip.react"),{content:m,children:j.jsx("div",{className:"x78zum5 x2lah0s x10w6t97 x1td3qas",children:j.jsx(c("GeoBasePressable.react"),{"aria-label":m,grow:"fill",variant:"flat",onPress:o,children:j.jsx("div",{className:"x6s0dn4 x78zum5 xl56j7k",children:j.jsx(c("GeoIcon.react"),{icon:a?d("fbicon")._(h("492446"),12):d("fbicon")._(h("492530"),12)})})})})}),j.jsx("div",{className:"x1iyjqo2 x6ikm8r x10wlt62",children:j.jsx(c("GeoTableContentCell.react"),{description:d("SellerInsightsV2Fbts").NUMBER_OF_VARIANTS(f.length),media:j.jsx(c("GeoMediaItem.react"),{fit:e!=null?"cover":"none",media:e!=null?j.jsx(c("Image.react"),{src:e}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:q}),title:b})})]})}B.displayName=B.name+" [from "+f.id+"]";function C(a){a=a.index;return j.jsxs(c("GeoBaseSpacingLayout.react"),{children:[j.jsx("div",{className:"x78zum5 x2lah0s x10w6t97 x1td3qas x6s0dn4 xl56j7k",children:j.jsx(c("Image.react"),{src:h("534949")})}),j.jsx(c("GeoFlexbox.react"),{shrink:0,children:j.jsx(c("GeoGlimmer.react"),{height:q,index:a,width:q})}),j.jsx(c("GeoTableContentGlimmer.react"),{index:a})]})}C.displayName=C.name+" [from "+f.id+"]";function D(a){var b=a.name,e=a.id;a=a.imageURL;return j.jsx("div",{className:"x540dpk",children:j.jsx(c("GeoBaseTableCell.react"),{children:j.jsxs(c("GeoBaseSpacingLayout.react"),{children:[j.jsx(c("GeoMediaItem.react"),{fit:a!=null?"cover":"none",media:a!=null?j.jsx(c("Image.react"),{src:a}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:q}),j.jsxs("div",{className:"xeuugli",children:[j.jsx(c("GeoText.react"),{display:"truncate",children:b}),j.jsx(E,{color:"heading",display:"truncate",id:e})]})]})})})}D.displayName=D.name+" [from "+f.id+"]";function E(a){var b=a.color,d=a.display;a=a.id;return j.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:j.jsx(G,{}),oncall:"commerce_platform_insights",children:j.jsx(F,{color:b,display:d,id:a})})}E.displayName=E.name+" [from "+f.id+"]";function F(a){var b=a.color,e=a.display;a=a.id;a=d("CommerceManagerHooks").useCommerceManagerQuery(p,{productID:a});a=a.product;a=(a=a==null?void 0:a.variant_values)!=null?a:[];return j.jsx(c("GeoBaseText.react"),{color:b,display:e,size:"valueDescription",children:c("intlList")(a,c("intlList").CONJUNCTIONS.NONE)})}F.displayName=F.name+" [from "+f.id+"]";function G(){return j.jsx(c("GeoGlimmer.react"),{height:8,width:64,xstyle:A.variantTextGlimmer})}G.displayName=G.name+" [from "+f.id+"]";function H(a){a=a.collections;var b=a.totalCount,e=b<=r?b:r-1;b=b-e;return j.jsxs(c("GeoBaseSpacingLayout.react"),{children:[a.topItems.slice(0,e).map(function(a,b){var e=a.imageURL;a=a.name;e=j.jsx(c("GeoMediaItem.react"),{fit:e!=null?"cover":"none",media:e!=null?j.jsx(c("Image.react"),{src:e}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("496945"),16)}),size:q},b);return a!=null?j.jsx(c("GeoTooltip.react"),{content:a,children:e},b):e}),b>0?j.jsx(c("SellerInsightsV2Placeholder.react"),{height:q,width:q,children:j.jsx(c("GeoText.react"),{children:d("SellerInsightsV2Fbts").EXTRA_ITEMS_COUNT(b)})}):null]})}H.displayName=H.name+" [from "+f.id+"]";function I(a){var b=a.currentMetrics,d=a.metric;a=a.previousMetrics;var e=m(c("SellerInsightsV2Context"));e=e.dateRange;b=b.get(d);a=a.get(d);return j.jsx(c("SellerInsightsV2MetricWithPopTooltip.react"),{curValue:b==null?void 0:b.value,dateRange:e,formattedAmount:typeof (b==null?void 0:b.formattedValue)==="string"?b.formattedValue:null,prevValue:a==null?void 0:a.value})}I.displayName=I.name+" [from "+f.id+"]";function a(a){switch(a){case"ASCENDING":return"ASCENDING";case"DESCENDING":return"DESCENDING";default:throw c("err")("Sorting direction is not supported: %s",a)}}function e(a){switch(a){case"SALES":return"SALES";case"UNITS_SOLD":return"UNITS_SOLD";case"PDP_VIEWS":return"PDP_VIEWS";case"OUTBOUND_CLICKS":return"CLICK_TO_OFFSITE";case"ADD_TO_WISHLIST":return"ADD_TO_WISHLIST";case"ADD_TO_CART":return"ADD_TO_CART";case"CHECKOUT_INITIATED":return"CHECKOUTS_INITIATED";case"MESSAGE_TO_BUY":return"MESSAGE_TO_BUY";case"PURCHASE":return"PURCHASES";default:throw c("err")("Sorting key is not supported: %s",a)}}function J(a){switch(a){case"SALES":return"SALES";case"UNITS_SOLD":return"UNITS_SOLD";case"PDP_VIEWS":return"PDP_VIEWS";case"OUTBOUND_CLICKS":return"OUTBOUND_CLICKS";case"ADD_TO_WISHLIST":return"ADD_TO_WISHLIST";case"ADD_TO_CART":return"ADD_TO_CART";case"CHECKOUTS_INITIATED":return"CHECKOUT_INITIATED";case"MESSAGE_TO_BUY":return"MESSAGE_TO_BUY";case"TOTAL_ORDERS":return"PURCHASE";default:throw c("err")("Performance metric is not supported: %s",a)}}function K(a,b){if(a==="PDP_VIEWS")return b==="ONSITE"?t:u;if(a==="SALES"&&b==="ONSITE")return t;return a==="OUTBOUND_CLICKS"&&b!=="ONSITE"||a==="ADD_TO_WISHLIST"||a==="CHECKOUTS_INITIATED"||a==="MESSAGE_TO_BUY"?u:s}function L(a,b,e){var f=d("SellerInsightsV2MetricDefinitions").getPerformanceMetricDefinition(a,{isProductMetric:!0});b=K(a,b);return{cell:function(b){b=b.item;return j.jsx(I,{currentMetrics:b.currentMetrics,metric:a,previousMetrics:b.previousMetrics})},features:{sortable:e.singleKey(J(a),{defaultDirection:"descending"})},header:babelHelpers["extends"]({},d("SellerInsightsV2TableUtils").getTableHeaderProperties(f.title),{tooltip:j.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:(e=f.isEstimated)!=null?e:!1,isReviewed:(e=f.isReviewed)!=null?e:!1,text:f.tooltip,title:f.title})}),key:a.toLowerCase(),width:d("GeoTableWidth").proportional(b)}}function M(a){var b=a.sort,e=a.setSort,f=a.onPageReset,g=a.expandedGroupIDs,h=a.setExpandedGroupIDs;a=m(c("SellerInsightsV2FeatureContext"));var i=a.isCatalogPurchaseMetricEnabled;a=m(c("CommerceManagerComponentGatingContext"));var k=a.checkoutStyle,n=d("SellerInsightsV2ProductMetricsUtils").useProductMetrics();a=l(function(a){e(a),f==null?void 0:f()},[f,e]);var p=c("useGeoTableSortableColumn_DEPRECATED")({allowUnsortedState:!1,setSort:a,sort:b});return o(function(){return c("filterNulls")([{cell:function(a){a=a.item;return j.jsx(c("GeoTableRowAction.react"),{children:a.type==="group"?j.jsx(B,babelHelpers["extends"]({},a,{expandedGroupIDs:g,setExpandedGroupIDs:h})):j.jsx(D,babelHelpers["extends"]({},a))})},header:d("SellerInsightsV2TableUtils").getTableHeaderProperties(d("SellerInsightsV2Fbts").PRODUCT_HEADER),key:"product",loadingCell:function(a){a=a.loadingIndex;return j.jsx(C,{index:a})},width:d("GeoTableWidth").proportional(k==="ONSITE"?w:v,{minWidth:x})},i?null:{cell:function(a){a=a.item;return a.category},header:d("SellerInsightsV2TableUtils").getTableHeaderProperties(d("SellerInsightsV2Fbts").CATEGORY_HEADER),key:"category",width:d("GeoTableWidth").proportional(k==="ONSITE"?u:s,{minWidth:y})},{cell:function(a){a=a.item;return j.jsx(H,{collections:a.collections})},header:d("SellerInsightsV2TableUtils").getTableHeaderProperties(d("SellerInsightsV2Fbts").PRODUCT_COLLECTIONS_HEADER),key:"collections",width:d("GeoTableWidth").proportional(s,{minWidth:z})}].concat(n.map(function(a){return L(a,k,p)})))},[k,i,n,g,h,p])}function N(){var a=m(c("CommerceManagerContext")),b=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=m(c("SellerInsightsV2Context"));var d=a.igChannelIDs,e=a.fbChannelIDs,f=a.channels,g=a.pageIDs;return o(function(){return new(c("SellerInsightsV2ProductsTableQPLLogger"))({accountID:b,channels:f,fbChannelIDs:e,igChannelIDs:d,pageIDs:g})},[b,f,e,d,g])}function O(a){var b=N();b.logLoadStart(a);c("useEffectOnce")(function(){return function(){return b.logNavigateAway(a)}})}function P(a){var b=N(),c=l(function(){document.visibilityState==="visible"?b.logActiveTabLoadStart():document.visibilityState==="hidden"&&b.logActiveTabLoadSuccess()},[b]);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(!a,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);n(function(){a?(b.logLoadSuccess(),b.logActiveTabLoadStart(),document.addEventListener("visibilitychange",c)):b.logLoadNoData();return function(){return document.removeEventListener("visibilitychange",c)}})}function Q(a){var b;return a==null?{topItems:[],totalCount:0}:{topItems:a.nodes.map(function(a){var b=a.id;return b==null?null:{id:b,imageURL:(b=a.product_set_usages)==null?void 0:(b=b.nodes[0])==null?void 0:(b=b.catalog_manager_display_data)==null?void 0:(b=b.usage_specific_display_data)==null?void 0:(b=b.collection)==null?void 0:b.cover_image_url,name:a.name}}).filter(Boolean),totalCount:(b=a.count)!=null?b:a.nodes.length}}function R(a){switch(a){case"OFFSITE":return["PDP_VIEWS","CLICK_TO_OFFSITE"];case"CONTACT_MERCHANT":return["PDP_VIEWS","MESSAGE_TO_BUY"];case"ONSITE":return["SALES","UNITS_SOLD","PDP_VIEWS","CLICK_TO_OFFSITE","ADD_TO_WISHLIST","ADD_TO_CART","CHECKOUTS_INITIATED","PURCHASES"]}return[]}function S(a,b){switch(b){case"OFFSITE":return new Map([["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["OUTBOUND_CLICKS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS")))!=null?b:0}]]);case"CONTACT_MERCHANT":return new Map([["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["MESSAGE_TO_BUY",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("MESSAGE_TO_BUY")))!=null?b:0}]]);case"ONSITE":return new Map([["SALES",{formattedValue:c("AdsCurrencyFormatter").formatCurrencyWithOptionalDecimals("USD",((b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("SALES")))!=null?b:0)*100,!0),value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("SALES")))!=null?b:0}],["UNITS_SOLD",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("UNITS_SOLD")))!=null?b:0}],["PDP_VIEWS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("PDP_VIEWS")))!=null?b:0}],["OUTBOUND_CLICKS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("OUTBOUND_CLICKS")))!=null?b:0}],["ADD_TO_WISHLIST",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("ADD_TO_WISHLIST")))!=null?b:0}],["ADD_TO_CART",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("ADD_TO_CART")))!=null?b:0}],["CHECKOUTS_INITIATED",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("CHECKOUTS_INITIATED")))!=null?b:0}],["TOTAL_ORDERS",{value:(b=a.get(d("SellerInsightsV2PerfUtils").toCommerceInsightsMetric("TOTAL_ORDERS")))!=null?b:0}]]);default:return new Map()}}function T(a,b){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.prevValue;a=a.metric;return[a,b]}));return S(a,b)}function U(a,b){if(a==null)return new Map();a=new Map(a.map(function(a){var b=a.value;a=a.metric;return[a,b]}));return S(a,b)}g.variantValuesQuery=p;g.TOP_COLLECTIONS=r;g.ProductItemNameCellVariantValuesLoader=E;g.ProductCollectionsCell=H;g.getUnifiedAPISortingDirection=a;g.getUnifiedAPISortingKey=e;g.getMetricColumnWidth=K;g.useColumnsConfig=M;g.useLogger=N;g.useLogDataLoading=O;g.useLogDataLoaded=P;g.getFormattedCollections=Q;g.getMetricsForCheckoutStyle=R;g.getFormattedMetricsForPrev=T;g.getFormattedMetrics=U}),98);
-----
SellerInsightsV2ProductsTableQPLLogger",["SellerInsightsV2ExitTabActionEnum","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","qpl"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){this.accountID=a.accountID,this.channels=a.channels,this.fbChannelIDs=a.fbChannelIDs,this.igChannelIDs=a.igChannelIDs,this.pageIDs=a.pageIDs}var b=a.prototype;b.logLoadStart=function(a){d("SellerInsightsV2LoggingUtils").setCurrentSection(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsV2LoggingUtils").scenarioForContainerLoading(this.accountID,this.channels,a,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.igChannelIDs,this.fbChannelIDs,this.pageIDs)};b.logNavigateAway=function(a){d("SellerInsightsV2LoggingUtils").logNavigateAway(this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,this.pageIDs),d("SellerInsightsV2LoggingUtils").scenarioAbandon(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON)};b.logLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,"products"),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenario=function(){d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731")])};b.logDetailViewLoadStart=function(a,b){this.abandonRunningDetailViewScenario(),d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS})};b.logDetailViewLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.logDetailViewClose=function(a,b){this.abandonRunningDetailViewScenario(),d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7086190,"1188"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS})};b.logToggleProductGroupRow=function(a){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7079140,"3242"),{AccountID:this.accountID,Channel:this.channels.join(", "),FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,action:a?"collapse":"expand"})};b.logDetailViewHover=function(a,b,e){return d("SellerInsightsV2LoggingUtils").hoverScenario(c("qpl")._(7083693,"759"),{AccountID:this.accountID,FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,ProductGroupID:a,ProductGroupName:b,Section:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS},e)};b.logActiveTabLoadStart=function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart()};b.logActiveTabLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS,this.accountID,this.channels,this.igChannelIDs,this.fbChannelIDs,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)};return a}();g["default"]=a}),98);
-----
SellerInsightsV2AdvancedTrendChart.react",["GeoGlimmer.react","GeoVStack.react","SellerInsightsV2ChartUtils.next","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricCard.react","SellerInsightsV2QPLLoggingHooks","SellerInsightsV2TrendChartDetailMetricName.react","SellerInsightsV2TrendChartDetailUtils","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=400,j=100,k=240,l=40,m=j-8;function n(a){var b=a.metric;a=a.isRenderedOnHomePage;return h.jsxs(c("GeoVStack.react"),{children:[a!==!0&&h.jsx(c("SellerInsightsV2TrendChartDetailMetricName.react"),{metric:b}),h.jsx(c("GeoGlimmer.react"),{height:l,index:0,width:k}),h.jsx(c("GeoGlimmer.react"),{height:m,index:1,width:"100%"})]})}n.displayName=n.name+" [from "+f.id+"]";function o(a){var b=a.metric,d=a.type;a=a.isRenderedOnHomePage;return h.jsxs(c("GeoVStack.react"),{children:[a!==!0&&h.jsx(c("SellerInsightsV2TrendChartDetailMetricName.react"),{metric:b}),h.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:(b=d)!=null?b:c("SellerInsightsV2ErrorType").Error,isRenderedOnHomePage:a,xstyle:q.error})]})}o.displayName=o.name+" [from "+f.id+"]";function p(a){var b=a.metricName;a=a.children;b=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredMetrics:b.toString()},d("SellerInsightsV2LoggingConstants").DELAY_FOR_CHART_HOVER_IN_MS);return h.jsx("div",{onMouseEnter:b,onMouseLeave:b.reset,children:a})}p.displayName=p.name+" [from "+f.id+"]";function a(a){var b=a.metric,e=a.data,f=a.state;f=f===void 0?d("SellerInsightsV2TrendChartDetailUtils").ContentState.Ready:f;a=a.isRenderedOnHomePage;if(f===d("SellerInsightsV2TrendChartDetailUtils").ContentState.Loading)return h.jsx(n,{isRenderedOnHomePage:a,metric:b});if(f===d("SellerInsightsV2TrendChartDetailUtils").ContentState.Empty)return h.jsx(o,{isRenderedOnHomePage:a,metric:b,type:c("SellerInsightsV2ErrorType").NoData});return f===d("SellerInsightsV2TrendChartDetailUtils").ContentState.Error||e==null?h.jsx(o,{isRenderedOnHomePage:a,metric:b}):h.jsx(p,{metricName:e.title,children:h.jsx(c("SellerInsightsV2MetricCard.react"),{chartColor:d("SellerInsightsV2ChartUtils.next").getTrendChartColor(e.metric),chartData:e.chartData,chartHeight:a===!0?i:j,chartValueFormatter:e.chartValueFormatter,compact:!0,currency:e.currency,currentValue:e.currentValue,effectiveDate:e.effectiveDate,fbChartData:e.fbChartData,igChartData:e.igChartData,infoText:e.infoText,isEstimated:e.isEstimated,isNegativeGood:e.isNegativeGood,isRenderedOnHomePage:a,isReviewed:e.isReviewed,metricFormat:e.renderType,metricName:b,prevValue:e.prevValue,title:e.title,unavailableDates:e.unavailableDates,value:e.value})})}a.displayName=a.name+" [from "+f.id+"]";var q={error:{height:"xhjk10j",justifyContent:"xl56j7k",$$css:!0}};g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerSuspense.react","GeoPageGroup.react","GeoSpinner.react","SellerInsightsV2AccountOverviewNewVersionContainer.react","SellerInsightsV2Context","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","react","useFBNux"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=10058;function a(){d("SellerInsightsV2QPLLoggingHooks").useLoggingForContainer("overview");var a=i(c("CommerceManagerContext")),b=a.cmsID;a=i(c("SellerInsightsV2Context"));var e=a.channels,f=a.igChannelIDs,g=a.fbChannelIDs;a=i(c("SellerInsightsV2FeatureContext"));var l=a.isShowInsightsNewPillEnabled;a=c("useFBNux")(k,!1);var m=a.onHideNux;j(function(){l&&m()},[l,m]);function n(){if(document.visibilityState==="visible")d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess("overview",(a=b)!=null?a:"0",e,f,g,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)}}j(function(){document.addEventListener("visibilitychange",n);return function(){document.removeEventListener("visibilitychange",n)}});var o=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();return h.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:h.jsx(c("GeoSpinner.react"),{center:!0}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name}),o(a)},children:h.jsx(c("GeoPageGroup.react"),{columns:12,"data-testid":void 0,density:"sparse",children:h.jsx(c("SellerInsightsV2AccountOverviewNewVersionContainer.react"),{})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewProductRow.react",["ix","CommerceManagerComponentGatingContext","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoMediaItem.react","Image.react","RelayHooks","SellerInsightsV2AccountOverviewProductRow_account.graphql","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricDefinitions","SellerInsightsV2NumberUtils","SellerInsightsV2QPLLoggingHooks","err","fbicon","geoMargin","qpl","react","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m={elementWrapper:{borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},grid:{display:"xrvj5dj",gridAutoFlow:"x1mt1orb",gridGap:"xd3ue5d",$$css:!0}},n=i!==void 0?i:i=b("SellerInsightsV2AccountOverviewProductRow_account.graphql");function o(a,b){switch(b){case"ONSITE":return a==="SALES"?"PDP_VIEWS":"SALES";case"OFFSITE":return a==="OUTBOUND_CLICKS"?"PDP_VIEWS":"OUTBOUND_CLICKS";case"CONTACT_MERCHANT":return a==="MESSAGE_TO_BUY"?"PDP_VIEWS":"MESSAGE_TO_BUY";default:throw c("err")("the current checkout style "+((a=b)!=null?a:"")+" is not supported!")}}function p(a){switch(a){case"SALES":return d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("SALES",!0);case"PDP_VIEWS":return d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("PDP_VIEWS");case"ADD_TO_WISHLIST":return d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("ADD_TO_WISHLIST");case"OUTBOUND_CLICKS":return d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("OUTBOUND_CLICKS");case"MESSAGE_TO_BUY":return d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("MESSAGE_TO_BUY");default:throw c("err")("the current metric "+a+" is not supported!")}}function q(a,b){var e;switch(b){case"SALES":return a==null?void 0:(e=a.totalSales)==null?void 0:e.formattedAmount;case"PDP_VIEWS":return(a==null?void 0:a.pdpViewsCount)!=null?d("SellerInsightsV2NumberUtils").formatCount(a==null?void 0:a.pdpViewsCount):null;case"ADD_TO_WISHLIST":return(a==null?void 0:a.addToWishListCount)!=null?d("SellerInsightsV2NumberUtils").formatCount(a==null?void 0:a.addToWishListCount):null;case"OUTBOUND_CLICKS":return(a==null?void 0:a.outboundClickCount)!=null?d("SellerInsightsV2NumberUtils").formatCount(a==null?void 0:a.outboundClickCount):null;case"MESSAGE_TO_BUY":return(a==null?void 0:a.messageToBuyCount)!=null?d("SellerInsightsV2NumberUtils").formatCount(a==null?void 0:a.messageToBuyCount):null;default:throw c("err")("the current metric "+b+" is not supported!")}}function r(a){var b=k(c("CommerceManagerComponentGatingContext"));b=b.checkoutStyle;var d=a.sortMetric;b=o(d,b);var e=p(d);d=q(a.currentData,d);var f=p(b);a=q(a.currentData,b);return j.jsxs(j.Fragment,{children:[j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:e}),j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",size:"header4",weight:"normal",children:d})]}),j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:f}),j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",size:"header4",weight:"normal",children:a})]})]})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b,e=c("useGeoTheme")(),f=e.selectBorderColor;e=e.selectBorderRadius;b=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredProductIndex:a.index,HoveredProductName:(b=a.title)!=null?b:d("SellerInsightsV2Fbts").PRODUCT_GROUP_NO_TITLE_AVAILABLE.toString(),SortMetric:a.sortMetric},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return j.jsx("div",{className:c("stylex")(e({context:"content"}),f({color:"element"}),m.elementWrapper),onMouseEnter:b,onMouseLeave:b.reset,children:j.jsxs(c("GeoHStack.react"),{children:[j.jsx(c("GeoMediaItem.react"),{fit:"cover",media:a.imageURL!=null?j.jsx(c("Image.react"),{src:a.imageURL}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("481805"),16)}),ratio:"square",size:64}),j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoHeading.react"),{display:"truncate",level:4,xstyle:c("geoMargin").bottom4,children:(e=a.title)!=null?e:d("SellerInsightsV2Fbts").PRODUCT_GROUP_NO_TITLE_AVAILABLE}),j.jsx(r,{currentData:a.currentData,sortMetric:a.sortMetric})]})]})})}s.displayName=s.name+" [from "+f.id+"]";function t(a){var b,e=(b=a.data)==null?void 0:(b=b.sellerProductInsights)==null?void 0:(b=b.productGroupInsights)==null?void 0:(b=b.query)==null?void 0:b.nodes;b=p(a.sortMetric);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(e==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"product_row_view"});l(function(){e==null&&d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"product_row_view",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})});if(e==null)return j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error});return e.length===0?j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").NoData}):j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",size:"value",children:d("SellerInsightsV2Fbts").OVERVIEW_PRODUCT_ORDER_BY_METRIC(b)}),j.jsx("div",{className:c("stylex")(m.grid,c("geoMargin").bottom16,c("geoMargin").top4),children:e.map(function(b,c){var d,e,f;d=b==null?void 0:(d=b.data)==null?void 0:d.current;e=b==null?void 0:(e=b.data)==null?void 0:e.product_items;b=b==null?void 0:(b=b.data)==null?void 0:(b=b.current)==null?void 0:b.product_group;e=e==null?void 0:e[0];f=(f=e==null?void 0:(f=e.current)==null?void 0:(f=f.product)==null?void 0:(f=f.main_image)==null?void 0:(f=f.image)==null?void 0:f.downloadable_uri)!=null?f:b==null?void 0:(f=b.representative_item)==null?void 0:(f=f.main_image)==null?void 0:(f=f.image)==null?void 0:f.downloadable_uri;e=(e=e==null?void 0:(e=e.current)==null?void 0:(e=e.product)==null?void 0:e.name)!=null?e:b==null?void 0:b.name;return j.jsx(s,{currentData:d,imageURL:f,index:c,sortMetric:a.sortMetric,title:e},c)})})]})}t.displayName=t.name+" [from "+f.id+"]";function a(a){var b=d("RelayHooks").useFragment(n,a.account);return j.jsx(t,{data:b,sortMetric:a.sortMetric})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewProductGrid.react",["CommerceManagerComponentGatingContext","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountOverviewProductRowContainer.react","SellerInsightsV2LoggingConstants","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","SellerInsightsV2NewOverviewVistorsComponentEnum","err","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=[];function l(a){switch(a){case"ONSITE":return["PDP_VIEWS","ADD_TO_WISHLIST","SALES"];case"OFFSITE":return["PDP_VIEWS","ADD_TO_WISHLIST"];case"CONTACT_MERCHANT":return["PDP_VIEWS","ADD_TO_WISHLIST"];default:throw c("err")("Checkout style "+((a=a)!=null?a:"")+" is not supported!")}}function m(a){a.forEach(function(a,b){k[b]=!1})}function n(a,b){k[a]=!0;a=!0;k.forEach(function(b){b||(a=!1)});a&&(d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllVisitorComponentsLoadedInOverview(c("SellerInsightsV2NewOverviewVistorsComponentEnum").PRODUCT,[c("qpl")._(7085498,"15910")]),b?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").PRODUCT,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").PRODUCT,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS))}function a(){var a=i(c("CommerceManagerComponentGatingContext"));a=a.checkoutStyle;var b=l(a);j(function(){m(b)},[]);return h.jsx("div",{className:"x1e56ztr",children:b.map(function(a,b){return h.jsx(c("SellerInsightsV2AccountOverviewProductRowContainer.react"),{metric:a,rowIndex:b,onRowSuccessfullyLoaded:n},a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewProductRowContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsV2AccountOverviewContext","SellerInsightsV2AccountOverviewProductRow.react","SellerInsightsV2AccountOverviewProductRowContainerQuery.graphql","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewProductRowContainerQuery.graphql");function a(a){var b,e=a.rowIndex,f=a.onRowSuccessfullyLoaded,g=a.metric,h=j(c("CommerceManagerContext"));h=h.cmsID;var m=j(c("SellerInsightsV2Context")),n=m.channels;m=m.dateRange;var o=j(c("SellerInsightsV2AccountOverviewContext"));o=o.followerFilterValue;var p=m.getDateInterval(),q=p.start;p=p.end;b=(b=m.getCompareDateInterval())!=null?b:m.getPrevDateInterval();m=b.start;b=b.end;var r={category:[],collection:[],name:[],promotion:[],variant:[]};d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").PRODUCT);h=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(h=h)!=null?h:"0",channels:n,endDate:p.toISOString(),followerFilter:o,prevEndDate:b.toISOString(),prevStartDate:m.toISOString(),productFilteringData:r,productInsightSortingDirection:"DESCENDING",productInsightSortingKey:a.metric,startDate:q.toISOString()});var s=h.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(s==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"product_row"});k(function(){s==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"product_row",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):f(e,n.includes("INSTAGRAM"))});return s==null?i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error}):i.jsx(c("SellerInsightsV2AccountOverviewProductRow.react"),{account:s,sortMetric:g})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewTopProductContainer.react",["GeoTextPairing.react","SellerInsightsV2AccountOverviewProductGrid.react","SellerInsightsV2AccountOverviewUniversalContainer.react","SellerInsightsV2ActionabilityTipContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","geoMargin","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){return h.jsx(c("SellerInsightsV2AccountOverviewUniversalContainer.react"),{"data-testid":void 0,destSubtab:"products",header:h.jsx(c("GeoTextPairing.react"),{description:void 0,heading:d("SellerInsightsV2Fbts").ENGAGED_PRODUCT,overflowWrap:"break-word",size:"header3",xstyle:c("geoMargin").bottom12}),isGeoCardComponent:!1,linkLabel:d("SellerInsightsV2Fbts").VIEW_REPORT_PRODUCT,logEventNames:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,recommendationCard:h.jsx(c("SellerInsightsV2ActionabilityTipContainer.react"),{tipLocation:"OVERVIEW_PRODUCTS"}),children:h.jsx(c("SellerInsightsV2AccountOverviewProductGrid.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountNewOverviewAudienceCard.react",["CommerceManagerContext","CommerceManagerHooks","GeoHStack.react","GeoSection.react","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountNewOverviewAudienceCardQuery.graphql","SellerInsightsV2AccountOverviewAgeGenderBreakdownChart.react","SellerInsightsV2AccountOverviewContext","SellerInsightsV2AccountOverviewGenderDountChart.react","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","SellerInsightsV2NewOverviewVistorsComponentEnum","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountNewOverviewAudienceCardQuery.graphql");function a(){var a=j(c("CommerceManagerContext"));a=a.cmsID;var b=j(c("SellerInsightsV2Context")),e=b.channels;b=b.dateRange;var f=j(c("SellerInsightsV2AccountOverviewContext"));f=f.followerFilterValue;b=b.getDateInterval();var g=b.start;b=b.end;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").AUDIENCE);a=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(a=a)!=null?a:"0",channels:e,endDate:b.toISOString(),followerFilter:f,startDate:g.toISOString()});var h=a.account,m=h==null?void 0:(b=h.sellerAudienceInsights)==null?void 0:(f=b.metricInsights)==null?void 0:f.breakdowns;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler((h==null?void 0:(g=h.sellerAudienceInsights)==null?void 0:(a=g.metricInsights)==null?void 0:a.isRedacted)!==!0&&m==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"audience"});k(function(){var a;(h==null?void 0:(a=h.sellerAudienceInsights)==null?void 0:(a=a.metricInsights)==null?void 0:a.isRedacted)===!0?(d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllVisitorComponentsLoadedInOverview(c("SellerInsightsV2NewOverviewVistorsComponentEnum").AUDIENCE,[c("qpl")._(7085498,"15910")],void 0,{EmptyCardReason:d("SellerInsightsV2LoggingConstants").NOT_ENOUGH_DATA}),e.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").AUDIENCE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{EmptyCardReason:d("SellerInsightsV2LoggingConstants").NOT_ENOUGH_DATA}):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").AUDIENCE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{EmptyCardReason:d("SellerInsightsV2LoggingConstants").NOT_ENOUGH_DATA})):m==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"audience",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):(d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllVisitorComponentsLoadedInOverview(c("SellerInsightsV2NewOverviewVistorsComponentEnum").AUDIENCE,[c("qpl")._(7085498,"15910")]),e.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").AUDIENCE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").AUDIENCE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS))});if((h==null?void 0:(b=h.sellerAudienceInsights)==null?void 0:(f=b.metricInsights)==null?void 0:f.isRedacted)===!0)return i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").NotEnoughData})});if(m==null)return i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})});g=m.gender;return i.jsx(c("GeoSection.react"),{children:i.jsxs(c("GeoHStack.react"),{alignItems:"start",children:[i.jsx(c("SellerInsightsV2AccountOverviewGenderDountChart.react"),{data:g}),i.jsx(c("SellerInsightsV2AccountOverviewAgeGenderBreakdownChart.react"),{account:m})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewGenderDountChart.react",["GeoBaseSpacingLayout.react","GeoChartBaseLegend.react","GeoChartPalette","GeoChartTooltip.react","GeoDonutChart.react","GeoFlexbox.react","GeoHeading.react","GeoPrivateChartPaletteContext","SellerInsightsAudienceGenderValue","SellerInsightsV2AudienceUtils","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2QPLLoggingHooks","filterNulls","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useMemo,k={chart:{height:"x127qqk8",width:"xqyf9gi",$$css:!0},root:{marginStart:"x16hk5td",marginTop:"x1xmf6yo",$$css:!0}};function l(a){var b=i(c("GeoPrivateChartPaletteContext")),d=b.getColor;return h.jsx(c("GeoFlexbox.react"),{justifyContent:"start",children:h.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",grow:"auto",relation:"related",wrap:!0,children:a.chartData.map(function(a,b){var e=a.name;a=a.value;b=d(b);return h.jsx(c("GeoChartBaseLegend.react"),{color:b,"data-testid":void 0,description:a.toString()+"%",label:e,variant:"bar"},e)})})})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=Array.from(c("SellerInsightsAudienceGenderValue").members()).sort(function(a,b){return d("SellerInsightsV2AudienceUtils").compareGenders(a,b)}),e=j(function(){return c("filterNulls")(b.map(function(b){var e,f=a.data.find(function(a){a=c("SellerInsightsAudienceGenderValue").cast(a.name);return a===b});return f==null?null:{key:(e=f.name)!=null?e:"",name:d("SellerInsightsV2AudienceUtils").getGenderFbt(b),value:(e=f.value)!=null?e:0}}))},[a.data,b]),f=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredAudienceChart:"Dount chart"},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return h.jsxs("div",{children:[h.jsx(c("GeoHeading.react"),{level:4,children:d("SellerInsightsV2Fbts").GENDER_BREAKDOWN_SECTION_TITLE}),h.jsx("div",{className:"x16hk5td x1xmf6yo",onMouseEnter:f,onMouseLeave:f.reset,children:h.jsx(c("GeoDonutChart.react"),{data:e,header:h.jsx(l,{chartData:e}),isLabelHidden:!0,label:"",palette:c("GeoChartPalette").Leading1,tooltipRenderer:function(a){var b=a.name;a=a.percentage;return h.jsx(c("GeoChartTooltip.react"),{content:h.jsxs(h.Fragment,{children:[h.jsxs("strong",{children:[b,":"]})," ",(a*100).toFixed(2),"%"]})})},xstyle:k.chart})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewAudienceContainer.react",["SellerInsightsV2AccountNewOverviewAudienceCard.react","SellerInsightsV2AccountOverviewUniversalContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){return h.jsx(c("SellerInsightsV2AccountOverviewUniversalContainer.react"),{"data-testid":void 0,destSubtab:"audience",isGeoCardComponent:!1,linkLabel:d("SellerInsightsV2Fbts").VIEW_REPORT_AUDIENCE,logEventNames:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,children:h.jsx(c("SellerInsightsV2AccountNewOverviewAudienceCard.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewAgeGenderBreakdownChart.react",["GeoHeading.react","RelayHooks","SellerInsightsAudienceAgeBucket","SellerInsightsV2AccountOverviewAgeGenderBreakdownChart_MetricResult.graphql","SellerInsightsV2AudienceUtils","SellerInsightsV2AudienceVerticalChart.next.react","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewAgeGenderBreakdownChart_MetricResult.graphql"),k=280;function l(a){a=a.breakdowns;var b=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredAudienceChart:"Bar breakdown chart"},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return!a||a.length===0?i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error}):i.jsxs("div",{className:"xrvj5dj xd3ue5d x1q1w665 x1t7mnj6",onMouseEnter:b,onMouseLeave:b.reset,children:[i.jsx(c("GeoHeading.react"),{level:4,children:d("SellerInsightsV2Fbts").AGE_DISTRIBUTION_TITLE}),i.jsx(c("SellerInsightsV2AudienceVerticalChart.next.react"),{breakdowns:a,excludeBuckets:[c("SellerInsightsAudienceAgeBucket").AGES_UNDER_13],height:k,hideLegend:!1})]})}l.displayName=l.name+" [from "+f.id+"]";function a(a){a=a.account;a=d("RelayHooks").useFragment(j,a);a=d("SellerInsightsV2AudienceUtils").getAgeGenderBreakdowns(a==null?void 0:a.age_gender);return i.jsx(l,{breakdowns:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountNewOverviewVisitorsBannerAndTiles.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsV2AccountNewOverviewVisitorsBannerAndTilesQuery.graphql","SellerInsightsV2AccountNewOverviewVisitorsTypeSelectionTiles.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2CutoffDateBanner","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","Timezone","geoMargin","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useContext,k=h!==void 0?h:h=b("SellerInsightsV2AccountNewOverviewVisitorsBannerAndTilesQuery.graphql");function a(){var a,b=j(c("CommerceManagerContext"));b=b.cmsID;var e=j(c("SellerInsightsV2Context"));e=e.dateRange;var f=e.getDateInterval();f=f.start;a=(a=e.getCompareDateInterval())!=null?a:e.getPrevDateInterval();e=a.start;a=f.toTimestampInMilliseconds(d("Timezone").UTC)/d("SellerInsightsV2Constants").MILLISECONDS_IN_A_SECOND;f=e.toTimestampInMilliseconds(d("Timezone").UTC)/d("SellerInsightsV2Constants").MILLISECONDS_IN_A_SECOND;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").VISITOR_TYPE);b=d("CommerceManagerHooks").useCommerceManagerQuery(k,{accountID:(e=b)!=null?e:"0"});e=b.account;e=e==null?void 0:(b=e.sellerProductInsights)==null?void 0:b.follower_metrics_lifetime;if(e==null)return i.jsx(c("SellerInsightsV2AccountNewOverviewVisitorsTypeSelectionTiles.react"),{couldShowDelta:!1});return a
-----
SellerInsightsV2AccountNewOverviewVisitorsTypeSelectionCard.react",["SellerInsightsV2AccountNewOverviewVisitorsBannerAndTiles.react","SellerInsightsV2AccountOverviewUniversalContainer.react","SellerInsightsV2LoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(){return h.jsx(c("SellerInsightsV2AccountOverviewUniversalContainer.react"),{"data-testid":void 0,destSubtab:"overview",isGeoCardComponent:!1,logEventNames:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,children:h.jsx(c("SellerInsightsV2AccountNewOverviewVisitorsBannerAndTiles.react"),{})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountNewOverviewVisitorsTypeSelectionTiles.react",["CommerceManagerContext","CommerceManagerHooks","GeoDataVizThemeTypes","GeoMetricDelta.react","GeoSection.react","GeoSelectableMetricGroup.react","GeoSelectableMetricTile.react","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountNewOverviewVisitorsTypeSelectionTilesQuery.graphql","SellerInsightsV2AccountOverviewContext","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricDefinitions","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","SellerInsightsV2NumberUtils","SellerInsightsV2QPLLoggingHooks","err","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=[],n=h!==void 0?h:h=b("SellerInsightsV2AccountNewOverviewVisitorsTypeSelectionTilesQuery.graphql");function o(a){a.forEach(function(a,b){m[b]=!1})}function p(a,b){m[a]=!0;a=!0;m.forEach(function(b){b||(a=!1)});a&&(b?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").VISITOR_TYPE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").VISITOR_TYPE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS))}function q(a){switch(a){case"NON_FOLLOWER":return d("SellerInsightsV2Fbts").NON_FOLLOWER_VISITORS;case"FOLLOWER":return d("SellerInsightsV2Fbts").FOLLOWER_VISITORS;case"ALL":return d("SellerInsightsV2MetricDefinitions").getPerformanceMetricName("UNIQUE_VISITOR_COUNT");default:throw c("err")("unsupported follower filter!")}}function r(a){var b,e=null,f=null,g=null;switch(a.filter){case"NON_FOLLOWER":e=d("SellerInsightsV2Fbts").NON_FOLLOWER_VISITORS_DESCRIPTION;f=d("SellerInsightsV2Fbts").NON_FOLLOWER_VISITORS;g=d("SellerInsightsV2Fbts").FOLLOWER_COUNT_DISCLAIMER;break;case"FOLLOWER":e=d("SellerInsightsV2Fbts").FOLLOWER_VISITORS_DESCRIPTION;f=d("SellerInsightsV2Fbts").FOLLOWER_VISITORS;g=d("SellerInsightsV2Fbts").FOLLOWER_COUNT_DISCLAIMER;break;case"ALL":a=d("SellerInsightsV2MetricDefinitions").getPerformanceMetricDefinition("UNIQUE_VISITOR_COUNT");e=(b=a.tooltip)!=null?b:"";f=a.title;break;default:throw c("err")("unsupported follower filter!")}return i.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:!0,isReviewed:!1,secondaryText:g,text:e,title:f})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b,e=k(c("CommerceManagerContext"));e=e.cmsID;var f=k(c("SellerInsightsV2Context")),g=f.channels;f=f.dateRange;var h=f.getDateInterval(),j=h.start;h=h.end;b=(b=f.getCompareDateInterval())!=null?b:f.getPrevDateInterval();f=b.start;b=b.end;var m=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredTileFilterType:a.value},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);e=d("CommerceManagerHooks").useCommerceManagerQuery(n,{accountID:(e=e)!=null?e:"0",channels:g,endDate:h.toISOString(),followerFilter:a.value,prevEndDate:b.toISOString(),prevStartDate:f.toISOString(),startDate:j.toISOString()});h=e.account;var o=h==null?void 0:(b=h.sellerAudienceInsights)==null?void 0:(f=b.metricInsights)==null?void 0:(j=f.metric_timeline)==null?void 0:j.currentValue,q=h==null?void 0:(e=h.sellerAudienceInsights)==null?void 0:(b=e.metricInsights)==null?void 0:(f=b.metric_timeline)==null?void 0:f.previousValue;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(o==null||q==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"visitor"});l(function(){(o==null||q==null)&&d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"visitor",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})});if(o==null||q==null)return i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error,hideSubtitle:!0})});p(a.rowIndex,g.includes("INSTAGRAM"));return i.jsx("div",{onMouseEnter:m,onMouseLeave:m.reset,children:i.jsx(c("GeoSelectableMetricTile.react"),{content:o,delta:a.couldShowDelta?i.jsx(c("GeoMetricDelta.react"),{value:((j=d("SellerInsightsV2NumberUtils").getDeltaRatio(q,o))!=null?j:0)*100}):void 0,heading:a.heading,palette:d("GeoDataVizThemeTypes").PaletteType.Leading1,tooltip:a.toolTip,value:a.value})})}s.displayName=s.name+" [from "+f.id+"]";function a(a){var b=k(c("SellerInsightsV2AccountOverviewContext")),e=b.followerFilterValue,f=b.setSelectedFollowerFilterValue;b=k(c("SellerInsightsV2Context"));var g=b.channels,h=b.fbChannelIDs,l=b.igChannelIDs,m=b.pageIDs;b=k(c("CommerceManagerContext"));var n=b.cmsID;b=j(function(a){a=a.find(function(a){return a!==e});if(a!=null){var b;d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7085498,"15910"),{AccountID:(b=n)!=null?b:"0",Channel:g.join(" and "),FBChannelIDs:h,IGChannelIDs:l,NewFilterValue:a,PageIDs:m,PreviousFilterValue:e,Section:"overview"});f(a)}},[g,n,h,e,l,m,f]);var p=["NON_FOLLOWER","FOLLOWER","ALL"];o(p);return i.jsx(c("GeoSelectableMetricGroup.react"),{value:[e],onChange:b,children:p.map(function(b,c){return i.jsx(s,{couldShowDelta:a.couldShowDelta,heading:q(b),rowIndex:c,toolTip:i.jsx(r,{filter:b}),value:b},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewTopTaggedProductContainer.react",["CommerceManagerContext","GeoCardHeader.react","GeoSelector.react","GeoSelectorItem.react","SellerInsightsV2AccountOverviewTopTaggedProductGridContainer.react","SellerInsightsV2AccountOverviewUniversalContainer.react","SellerInsightsV2ActionabilityTipContainer.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricDefinitions","SellerInsightsV2TaggedContentContext","SellerInsightsV2TaggedContentMetricsUtils","SellerInsightsV2TaggedContentTableUtils","geoMargin","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useContext,j=b.useEffect,k=b.useState;function l(a){var b=d("SellerInsightsV2TaggedContentMetricsUtils").useMetrics(!1),e=d("SellerInsightsV2MetricDefinitions").getAttributionMetricName(a.sortingMetric),f=i(c("CommerceManagerContext")),g=f.cmsID;f=i(c("SellerInsightsV2Context"));var j=f.channels,k=f.igChannelIDs,l=f.fbChannelIDs,m=f.pageIDs;f=function(b){var e;a.setSortingMetric(b);d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7083175,"7311"),{AccountID:(e=g)!=null?e:"0",Channel:j.join(" and "),FBChannelIDs:l,IGChannelIDs:k,NewMetric:b,PageIDs:m,PreviousMetric:a.sortingMetric,Section:"overview"})};return h.jsx(c("GeoCardHeader.react"),{action:h.jsx(c("GeoSelector.react"),{isLabelHidden:!0,label:e,value:a.sortingMetric,xstyle:c("geoMargin").top4,onChange:f,children:b.map(function(a,b){return h.jsx(c("GeoSelectorItem.react"),{label:d("SellerInsightsV2MetricDefinitions").getAttributionMetricName(a),value:a},b)})}),heading:d("SellerInsightsV2Fbts").TOP_TAGGED_CONTENT_TITLE})}l.displayName=l.name+" [from "+f.id+"]";function a(){var a=i(c("SellerInsightsV2TaggedContentContext")),b=a.sortingKey,e=a.setSortingKey;a=k("CONTENT_VIEW");var f=a[0];a=a[1];j(function(){b!==f&&e(d("SellerInsightsV2TaggedContentTableUtils").getMetricColumnSortingKey(f))},[e,f,b]);return h.jsx(c("SellerInsightsV2AccountOverviewUniversalContainer.react"),{cardHeader:h.jsx(l,{setSortingMetric:a,sortingMetric:f}),"data-testid":void 0,destSubtab:"product_tagged_content",isGeoCardComponent:!0,linkLabel:d("SellerInsightsV2Fbts").VIEW_REPORT_PTC,logEventNames:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,recommendationCard:h.jsx(c("SellerInsightsV2ActionabilityTipContainer.react"),{tipLocation:"OVERVIEW_TAGGED_CONTENT"}),children:h.jsx(c("SellerInsightsV2AccountOverviewTopTaggedProductGridContainer.react"),{setSortingMetric:a,sortingMetric:f})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2ActionabilityLogger",["CommerceManagerContext","SellerInsightsV2Context","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext;function a(a){var b=h(c("CommerceManagerContext"));b=b.cmsID;var e=h(c("SellerInsightsV2Context")),f=e.channels,g=e.igChannelIDs,j=e.fbChannelIDs;e=e.pageIDs;var k=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection();f=f.length===2?d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM:f[0];return new i({channel:f,cmsID:(f=b)!=null?f:"0",ctaChannel:a.ctaChannel,fbChannelIDs:j,igChannelIDs:g,pageIDs:e,section:k,tipType:a.tipType,tipVariant:a.variant})}var i=function(){function a(a){var b;this.baseAnnotations={AccountID:(b=a.cmsID)!=null?b:"",Channel:a.channel,CtaChannel:(b=a.ctaChannel)!=null?b:"",FBChannelIDs:a.fbChannelIDs,IGChannelIDs:a.igChannelIDs,PageIDs:a.pageIDs,Section:a.section,TipType:a.tipType,TipVariant:(b=a.tipVariant)!=null?b:""}}var b=a.prototype;b.logView=function(){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7090157,"1147"),this.baseAnnotations)};b.logCTA=function(a){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7083002,"1224"),babelHelpers["extends"]({},this.baseAnnotations,{CtaType:a}))};b.logClose=function(){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7089980,"1253"),this.baseAnnotations)};return a}();g.useActionabilityLogger=a}),98);
-----
SellerInsightsV2TaggedContentLoggingUtils",["$InternalEnum","CommerceManagerContext","SellerInsightsV2Context","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TaggedContentContext","SellerInsightsV2TaggedContentTabEnum","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";e=d("react");var h=e.useContext,i=e.useMemo,j=b("$InternalEnum").Mirrored(["FILTER","TABLE","TOP_CONTENTS"]),k=b("$InternalEnum").Mirrored(["BAR_CHART","RANKING_CHART","TABLE","TOTALS"]),l=function(){function a(a){this.cmsID=a.cmsID;this.channels=a.channels;this.fbChannelIDs=a.fbChannelIDs;this.filters=a.filters;this.igChannelIDs=a.igChannelIDs;this.pageIDs=a.pageIDs;this.sortingKey=a.sortingKey;this.subtab=a.subtab;this.baseAnnotations={AccountID:(a=this.cmsID)!=null?a:"",FBChannelIDs:this.fbChannelIDs,IGChannelIDs:this.igChannelIDs,PageIDs:this.pageIDs,Section:"product_tagged_content"}}var b=a.prototype;b.logPageLoadStart=function(a,b,e,f){var g;d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7085174,"624"),babelHelpers["extends"]({},this.baseAnnotations,{AccountID:(g=this.cmsID)!=null?g:"0",Channel:this.channels.join(" and "),CurrentTab:this.subtab,Filters:this.sellerInsightsAttributionFiltersToString(this.filters),NewPage:a+"-"+(a+b-1),PreviousPage:Math.max(a-f,0)+"-"+(a-1),SortKey:this.sortingKey,Total:String(e)}))};b.logPageLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7085174,"624")],{})};b.logPageLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7085174,"624")],{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{})};b.logLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name})};b.logLoadNoData=function(){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};b.abandonRunningDetailViewScenarios=function(){d("SellerInsightsV2LoggingUtils").scenarioAbandon([c("qpl")._(7083043,"3731")])};b.logDetailViewLoadStart=function(a){this.abandonRunningDetailViewScenarios();if(a!=null){var b;d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7083043,"3731"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(b=a==null?void 0:(b=a.mediaContent)==null?void 0:b.id)!=null?b:"",MediaType:(b=a==null?void 0:a.meidaType)!=null?b:""}))}};b.logDetailViewLoadSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7083043,"3731")],{})};b.logDetailViewLoadError=function(a){d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7083043,"3731")],{ErrorMessage:a.message,ErrorName:a.name})};b.logDetailViewClose=function(a){var b;this.abandonRunningDetailViewScenarios();d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7080944,"1669"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(b=a==null?void 0:(b=a.mediaContent)==null?void 0:b.id)!=null?b:"",MediaType:(b=a==null?void 0:a.meidaType)!=null?b:""}))};b.logTagsHover=function(a,b,e,f){if(f)return d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7093080,"4511"),babelHelpers["extends"]({},this.baseAnnotations,{InDetailView:e,TagName:a,TagType:b}))};b.logEmptyDetailView=function(){return d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7090073,"6401"),babelHelpers["extends"]({},this.baseAnnotations))};b.logDetailViewLoadVariantsStart=function(a,b){d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7093934,"6029"),babelHelpers["extends"]({},this.baseAnnotations,{MediaID:(a=a)!=null?a:"",Total:(a=b)!=null?a:""}))};b.logDetailViewLoadVariantsSuccess=function(){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7093934,"6029")],{})};b.logDetailViewLoadVariantsError=function(a){var b;d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7093934,"6029")],{ErrorMessage:(b=a==null?void 0:a.message)!=null?b:"",ErrorName:(b=a==null?void 0:a.name)!=null?b:""})};b.logFilterFocus=function(a,b){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7082628,"6031"),babelHelpers["extends"]({},this.baseAnnotations,{Filters:this.filterArrayToStringArray(a),ParsedFilters:this.sellerInsightsAttributionFiltersToString(b)}))};b.logFilterChange=function(a,b,e,f){d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7082248,"6047"),babelHelpers["extends"]({},this.baseAnnotations,{ChangeType:e,Filters:this.filterArrayToStringArray(a),ForcedEmptyState:f,ParsedFilters:this.sellerInsightsAttributionFiltersToString(b)}))};b.getComponents=function(a){switch(a){case c("SellerInsightsV2TaggedContentTabEnum").Review:return Array.from(j.members()).map(function(a){return a});case c("SellerInsightsV2TaggedContentTabEnum").Compare:return Array.from(k.members()).map(function(a){return a})}};b.logSubtabChangeStart=function(a){d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7082489,"80"),babelHelpers["extends"]({},this.baseAnnotations,{Subtab:a}))};b.logComponentsLoadingStart=function(a){d("SellerInsightsV2LoggingUtils").componentsRestart(this.getComponents(a))};b.logMarkerPointsStart=function(a,b){a=this.getComponents(a);a.forEach(function(a){return d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(b,a)})};b.logAggregationPivotChangeStart=function(a){d("SellerInsightsV2LoggingUtils").componentsRestart(this.getComponents(c("SellerInsightsV2TaggedContentTabEnum").Compare),c("qpl")._(7080207,"81"),babelHelpers["extends"]({},this.baseAnnotations,{AggregationPivot:a}))};b.logAggregationMetricChangeStart=function(a){d("SellerInsightsV2LoggingUtils").componentsRestart(this.getComponents(c("SellerInsightsV2TaggedContentTabEnum").Compare),c("qpl")._(7086136,"82"),babelHelpers["extends"]({},this.baseAnnotations,{AggregationMetric:a}))};b.logReviewTabMarkerPointsEnd=function(a){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,a),d("SellerInsightsV2LoggingUtils").scenarioSuccessWithMarkerPoints(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{PTCSection:"Review"},Array.from(j.members()))};b.logCompareTabMarkerPointsEnd=function(a){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,a),d("SellerInsightsV2LoggingUtils").scenarioSuccessWithMarkerPoints(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,{PTCSection:"Compare"},Array.from(k.members()))};b.logComponentLoadingFailure=function(a){d("SellerInsightsV2LoggingUtils").componentFail(a,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS,this.baseAnnotations)};b.filterArrayToStringArray=function(a){return a.map(function(a){var b;b=(b=(b=a.value.toJS().value)==null?void 0:b.toString())!=null?b:"";return"field: "+a.field+", operator: "+a.operator+", value: "+b})};b.sellerInsightsAttributionFiltersToString=function(a){var b=[],c=Object.keys(a);for(var d=0;d
SellerInsightsV2AccountOverviewTopTaggedProductGridContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountOverviewTopTaggedProductGrid.react","SellerInsightsV2AccountOverviewTopTaggedProductGridContainerQuery.graphql","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","SellerInsightsV2TaggedContentMetricsUtils","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewTopTaggedProductGridContainerQuery.graphql");function a(a){var b=j(c("CommerceManagerContext"));b=b.cmsID;var e=j(c("SellerInsightsV2Context")),f=e.attributionCheckoutStyle,g=e.dateRange,h=e.channels;e=e.attributionModel;g=g.getDateInterval();var m=g.start;g=g.end;var n=d("SellerInsightsV2TaggedContentMetricsUtils").useMetrics(!1);d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").TAGGED_PRODUCT);b=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(b=b)!=null?b:"0",attributionMetrics:n,attributionModel:e,checkoutStyle:f,contentType:"ORGANIC",endDate:g.toString(),filters:{content_channels:h},sortingKey:a.sortingMetric,startDate:m.toString()});var o=b.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(o==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ptc"});k(function(){o!=null?d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7083175,"7311")],{}):d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ptc",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})});k(function(){o==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):h.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").TAGGED_PRODUCT,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").TAGGED_PRODUCT,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return!o?i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error}):i.jsx(c("SellerInsightsV2AccountOverviewTopTaggedProductGrid.react"),{account:o,sortingMetric:a.sortingMetric})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2TableUtils",["CommerceManagerContext","SellerInsightsV2Context","SellerInsightsV2HeroInteractionRoot","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TableContext","emptyFunction","qpl","react","useGeoTableRowActivation","useGeoTableSortableState"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=h.useCallback,j=h.useContext,k=h.useMemo;function a(a,b,c){a=b[a];if(a.type==="pixel")return a.px;var d=0,e=0;for(var b=b,f=Array.isArray(b),g=0,b=f?b:b[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=b.length)break;h=b[g++]}else{g=b.next();if(g.done)break;h=g.value}h=h;d+=h.type==="pixel"?h.px:0;e+=h.type==="proportional"?h.value:0}h=c-d;g=a.value;c=(b=(f=a.options)==null?void 0:f.minWidth)!=null?b:g;d=g*h/e;return Math.max(d,c)}function b(a){var b=a.currentDirection,e=a.currentKey,f=a.onAfterSort,g=a.onDirectionChange,h=a.onKeyChange,k=a.ascendingDirection,l=a.descendingDirection;a=j(c("CommerceManagerContext"));var m=a.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;a=j(d("SellerInsightsV2TableContext").SellerInsightsV2TableContext);var n=a.loggingAnnotations;a=j(c("SellerInsightsV2Context"));var o=a.igChannelIDs,p=a.fbChannelIDs,q=a.pageIDs;a=c("useGeoTableSortableState")({direction:b===k?"ascending":"descending",sortKey:e});var r=a[0],s=a[1];a=i(function(a){s(a);if(a==null)return;var i=a.sortKey;a=a.direction;i!==e&&h(i);a!==b&&g(a==="ascending"?k:l);a=babelHelpers["extends"]({},n,{AccountID:m,FBChannelIDs:p,IGChannelIDs:o,PageIDs:q,SortDirection:a==="ascending"?d("SellerInsightsV2LoggingConstants").TABLE_SORTING_ASCENDING_DIRECTION:d("SellerInsightsV2LoggingConstants").TABLE_SORTING_DESCENDING_DIRECTION,SortMetric:String(i)});d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(7081993,"554"),a);c("SellerInsightsV2HeroInteractionRoot").logNavigationStartForRoute(c("qpl")._(7084330,"1265"),"seller_insights_table_sort",a);f==null?void 0:f()},[m,k,b,e,l,p,o,n,f,g,h,q,s]);return{setSort:a,sort:r}}function e(a){var b=k(function(){if(a==null)return{activeItemIDs:new Set(),getIDForItem:c("emptyFunction").thatReturns(""),onActivate:c("emptyFunction")};var b=a.activeItemID,d=function(c){return String(a.getItemID(c))===String(b)};return{activeItemIDs:new Set(b!=null?[b]:[]),getIDForItem:function(b){b=b.item;return a.getItemID(b)},onActivate:function(b){b=b.item;return d(b)?a.onDeactivate():a.onActivate(b)},skip:function(b){b=b.item;return(a.skip==null?void 0:a.skip(b))===!0}}},[a]);b=c("useGeoTableRowActivation")(b);return a!=null?b:void 0}function l(a){return a.toString().includes(" ")}function f(a){return{label:a,nowrap:!l(a),overflowWrap:"normal"}}function m(a,b){return b.map(function(b){return babelHelpers["extends"]({},b,{key:a(b.key)})})}g.calculateColumnWidth=a;g.useSortableState=b;g.useRowActivation=e;g.getTableHeaderProperties=f;g.castColumnKeysToString=m}),98);
-----
SellerInsightsV2AccountOverviewTopTaggedProductGrid.react",["ix","GeoBaseSpacingLayout.react","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoMediaItem.react","GeoSection.react","GeoTooltip.react","Image.react","RelayHooks","SellerInsightsV2AccountOverviewTopTaggedProductGrid_account.graphql","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricNames","SellerInsightsV2QPLLoggingHooks","SellerInsightsV2TaggedContentUtils","err","fbicon","geoMargin","qpl","react","stylex","useGeoTheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useContext,l=e.useEffect,m={elementWrapper:{borderTopStyle:"x13fuv20",borderEndStyle:"xu3j5b3",borderBottomStyle:"x1q0q8m5",borderStartStyle:"x26u7qi",borderTopWidth:"x178xt8z",borderEndWidth:"xm81vs4",borderBottomWidth:"xso031l",borderStartWidth:"xy80clv",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0},grid:{display:"xrvj5dj",gridAutoFlow:"x1mt1orb",gridGap:"xd3ue5d",$$css:!0}},n=i!==void 0?i:i=b("SellerInsightsV2AccountOverviewTopTaggedProductGrid_account.graphql");function o(a){var b=a.topTaggedContent.content_type;a=(a=a.topTaggedContent)==null?void 0:(a=a.content)==null?void 0:a.date;return j.jsx(c("GeoBaseSpacingLayout.react"),{align:"center",xstyle:c("geoMargin").bottom8,children:j.jsx(c("GeoBaseText.react"),{color:"heading",display:"truncate",isDisabled:!0,size:"accent",children:d("SellerInsightsV2Fbts").OVERVIEW_TAGGED_PRODUCT_SOURCE_AND_DATE(b,a)})})}o.displayName=o.name+" [from "+f.id+"]";function p(a){switch(a){case"ONSITE":return"PURCHASE";case"OFFSITE":return"PDP_CLICK_TO_WEBSITE";default:throw c("err")("the checkout style: "+a+" is not supported!")}}function q(a,b){a=j.jsx(c("GeoBaseText.react"),{color:"value",size:"header4",weight:"normal",children:a});return b!=null?j.jsx(c("GeoTooltip.react"),{content:b,children:a}):a}q.displayName=q.name+" [from "+f.id+"]";function r(a){var b,e,f=k(c("SellerInsightsV2Context"));f=f.dateRange;f=d("SellerInsightsV2TaggedContentUtils").useTCDataRenderer(null,f.getDateInterval().start);b=(b=a.topTaggedContent)==null?void 0:b.metric_data;var g=p(a.attributionCheckoutStyle),h=b==null?void 0:b.find(function(b){return(b==null?void 0:b.metric)===a.sortingMetric});e=(e=c("SellerInsightsV2MetricNames").ATTRIBUTION_INSIGHTS[(e=h==null?void 0:h.metric)!=null?e:""])!=null?e:h==null?void 0:h.metric;var i=a.sortingMetric!==g?g:"CONTENT_VIEW";g=b==null?void 0:b.find(function(a){return(a==null?void 0:a.metric)===i});b=(b=c("SellerInsightsV2MetricNames").ATTRIBUTION_INSIGHTS[(b=g==null?void 0:g.metric)!=null?b:""])!=null?b:g==null?void 0:g.metric;b=j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:b}),f(i,g==null?void 0:g.format,g==null?void 0:g.value,q)]});return j.jsxs(j.Fragment,{children:[j.jsxs(c("GeoBaseSpacingLayout.react"),{align:"center",children:[j.jsx(c("GeoBaseText.react"),{color:"value",display:"truncate",isDisabled:!0,size:"header4",weight:"normal",children:e}),f(a.sortingMetric,h==null?void 0:h.format,h==null?void 0:h.value,q)]}),b]})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var b,e=a.topTaggedContent,f=a.sortingMetric;a=a.index;var g=c("useGeoTheme")(),i=g.selectBorderColor;g=g.selectBorderRadius;var l=k(c("SellerInsightsV2Context"));l=l.attributionCheckoutStyle;b=e==null?void 0:(b=e.content)==null?void 0:(b=b.image)==null?void 0:b.downloadable_uri;a=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredTaggedProductIndex:a,HoveredTaggedProductName:(a=e==null?void 0:(a=e.content)==null?void 0:a.title)!=null?a:d("SellerInsightsV2Fbts").PRODUCT_TAGGED_CONTENT_NO_DETAILS_AVAILBLE.toString()},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return j.jsx("div",{className:c("stylex")(g({context:"content"}),i({color:"element"}),m.elementWrapper),onMouseEnter:a,onMouseLeave:a.reset,children:j.jsxs(c("GeoHStack.react"),{children:[j.jsx(c("GeoMediaItem.react"),{fit:"cover",media:b!=null?j.jsx(c("Image.react"),{src:b}):j.jsx(c("GeoIcon.react"),{icon:d("fbicon")._(h("481805"),16)}),ratio:"square",size:96}),j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[j.jsx(c("GeoHeading.react"),{display:"truncate",level:4,xstyle:c("geoMargin").vert4,children:(i=e==null?void 0:(g=e.content)==null?void 0:g.title)!=null?i:d("SellerInsightsV2Fbts").PRODUCT_TAGGED_CONTENT_NO_DETAILS_AVAILBLE}),j.jsx(o,{topTaggedContent:e}),j.jsx(r,{attributionCheckoutStyle:l,sortingMetric:f,topTaggedContent:e})]})]})})}s.displayName=s.name+" [from "+f.id+"]";function a(a){var b=d("RelayHooks").useFragment(n,a.account);b=b.sellerAttributionInsights;var e=b==null?void 0:(b=b.metricInsights)==null?void 0:b.topTaggedContent;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(e==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ptc_card"});l(function(){e==null&&d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ptc_card",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})});if(e==null)return j.jsx(c("GeoSection.react"),{children:j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})});return e.length===0?j.jsx(c("GeoSection.react"),{children:j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").NoData})}):j.jsx("div",{className:"xrvj5dj x1mt1orb xd3ue5d",children:e.map(function(b,c){return j.jsx(s,{index:c,sortingMetric:a.sortingMetric,topTaggedContent:b},c)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewOffsiteEventsContainer.react",["CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoBaseSpacingLayout.react","GeoCard.react","GeoGenericCardHeader.react","GeoSection.react","GeoSpinner.react","GeoTextPairing.react","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountOverviewOffsiteCardContainer.react","SellerInsightsV2AccountOverviewOffsiteEventsContainerQuery.graphql","SellerInsightsV2AccountOverviewOffsiteUpsellCard.react","SellerInsightsV2AccountOverviewUniversalContainer.react","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricInfoTooltip.react","SellerInsightsV2MetricUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","SellerInsightsV2PerfUtils","SellerInsightsV2WhatsNew","SellerInsightsV2WhatsNewFeatures","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m={errorCardContainer:{height:"xsbjyhr",marginTop:"xqui205",$$css:!0},tooltip:{marginStart:"xp7jhwk",$$css:!0}},n=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewOffsiteEventsContainerQuery.graphql");function o(){var a=k(c("SellerInsightsV2Context")),b=a.attributionWindow;a=a.shopDisplayName;b=d("SellerInsightsV2MetricUtils").castAttributionWindowForGraphQL(b);return i.jsx(c("GeoGenericCardHeader.react"),{children:i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",children:[i.jsx(c("GeoTextPairing.react"),{description:null,heading:d("SellerInsightsV2Fbts").OVERVIEW_OFF_META_EVENTS_HEADER(a),overflowWrap:"break-word",size:"header3"}),i.jsx("div",{className:"xp7jhwk",children:i.jsx(c("SellerInsightsV2MetricInfoTooltip.react"),{isEstimated:!0,isReviewed:!1,shouldHideEstimate:!0,text:d("SellerInsightsV2Fbts").PIXEL_ATTRIBUTION_WINDOW_SELECTION(b),title:""})})]})})}o.displayName=o.name+" [from "+f.id+"]";function p(){var a=k(c("SellerInsightsV2Context")),b=a.channels,d=a.igChannelCount;a=a.fbChannelCount;b=b.join(",");if(a===0&&d===0)return!0;if(a===0&&d!==0)return b!=="INSTAGRAM";return d===0&&a!==0?b!=="FACEBOOK":b==="FACEBOOK"||b==="INSTAGRAM"}function q(a){var b=k(c("CommerceManagerContext"));b=b.cmsID;var e=k(c("SellerInsightsV2Context")),f=e.channels,g=e.dateRange,h=e.productCatalogID;e=e.isDataSourceConnectedForPixel;g=g.getDateInterval();var q=g.start;g=g.end;var r=d("SellerInsightsV2PerfUtils").OFFSITE_CONVERSIONS_NEXT;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").OFFSITE);b=d("CommerceManagerHooks").useCommerceManagerQuery(n,{accountID:(b=b)!=null?b:"0",attributionWindow:"TWENTY_EIGHT_DAYS",channels:["FACEBOOK","INSTAGRAM"],endDate:g.toISOString(),metrics:r,startDate:q.toISOString()});g=b.account;var s=p(),t=d("SellerInsightsV2WhatsNew").useWhatsNew(),u=g==null||((r=g.accountInsights)==null?void 0:(q=r.insightsMetrics)==null?void 0:q.metric_results)==null;q=g==null?void 0:(b=g.accountInsights)==null?void 0:(r=b.insightsMetrics)==null?void 0:r.metric_results;g=q==null?void 0:q.every(function(a){return a.value==null||a.value===0});var v=g===!0&&!e&&h!=="";b=j(function(a){a!=null&&!s&&!u&&!v&&t(d("SellerInsightsV2WhatsNewFeatures").SellerInsightsV2Feature.OverviewOffsiteConversions,{current:a})},[t,u,s,v]);d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(u,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"offsite"});l(function(){u&&d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"offsite",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS});if(s||v){var a=s?"wrong_channel":"upsell";f.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").OFFSITE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{OffsiteEmpty:a}):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").OFFSITE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{OffsiteEmpty:a})}});r=u?i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error,xstyle:m.errorCardContainer})}):s?i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").WrongChannelSelection,hideTitle:!0,xstyle:m.errorCardContainer})}):v?i.jsx(c("SellerInsightsV2AccountOverviewOffsiteUpsellCard.react"),{}):i.jsx(c("SellerInsightsV2AccountOverviewOffsiteCardContainer.react"),{setuniqueValueCutoffDateBanner:a.setuniqueValueCutoffDateBanner,uniqueValueCutoffDateBanner:a.uniqueValueCutoffDateBanner});return i.jsx(c("SellerInsightsV2AccountOverviewUniversalContainer.react"),{cardHeader:v?null:i.jsx(o,{}),"data-testid":void 0,destSubtab:"offsite_events",isGeoCardComponent:!0,linkLabel:v?d("SellerInsightsV2Fbts").CONNECT_DATA_SOURCE:d("SellerInsightsV2Fbts").VIEW_OFF_META_REPORT,linkRef:b,logEventNames:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,shouldUsePrimaryVariantForButton:v,children:r})}q.displayName=q.name+" [from "+f.id+"]";function a(a){return i.jsx(c("CommerceManagerSuspense.react"),{loadingComponent:i.jsx(c("GeoCard.react"),{children:i.jsx(c("GeoSpinner.react"),{center:!0})}),oncall:"commerce_platform_insights",children:i.jsx(q,babelHelpers["extends"]({},a))})}a.displayName=a.name+" [from "+f.id+"]";g.SellerInsightsV2AccountOverviewOffsiteEventsContainer=a}),98);
-----
SellerInsightsV2AccountOverviewNewPerfContainer.react",["GeoCardHeader.react","SellerInsightsV2AccountOverviewNewPerfCardContainer.react","SellerInsightsV2AccountOverviewUniversalContainer.react","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("SellerInsightsV2AccountOverviewUniversalContainer.react"),{cardHeader:h.jsx(c("GeoCardHeader.react"),{heading:d("SellerInsightsV2Fbts").NEW_OVERVIEW_PERFORMANCE_CARD_HEADER}),"data-testid":void 0,destSubtab:"perf",isGeoCardComponent:!0,linkLabel:d("SellerInsightsV2Fbts").VIEW_REPORT_PERF,logEventNames:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,children:h.jsx(c("SellerInsightsV2AccountOverviewNewPerfCardContainer.react"),{metrics:a.metrics})})}a.displayName=a.name+" [from "+f.id+"]";g.SellerInsightsV2AccountOverviewNewPerfContainer=a}),98);
-----
SellerInsightsV2AccountOverviewOffsiteCardContainer.react",["CommerceManagerContext","CommerceManagerHooks","GeoSection.react","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountOverviewNewPerfCard.react","SellerInsightsV2AccountOverviewOffsiteCardContainerQuery.graphql","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","SellerInsightsV2OverviewUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewOffsiteCardContainerQuery.graphql");function a(a){var b,e=d("SellerInsightsV2OverviewUtils").OFFSITE_METRICS,f=j(c("CommerceManagerContext"));f=f.cmsID;var g=j(c("SellerInsightsV2Context")),h=g.channels,m=g.dateRange;g=g.attributionWindow;var n=m.getDateInterval(),o=n.start;n=n.end;b=(b=m.getCompareDateInterval())!=null?b:m.getPrevDateInterval();m=b.start;b=b.end;var p=a.setuniqueValueCutoffDateBanner;a=a.uniqueValueCutoffDateBanner;f=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(f=f)!=null?f:"0",attributionWindow:g,channels:h,endDate:n.toISOString(),metrics:e,prevEndDate:b.toISOString(),prevStartDate:m.toISOString(),startDate:o.toISOString()});var q=f.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(q==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"offsite_card"});k(function(){q==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"offsite_card",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):h.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").OFFSITE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").OFFSITE,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return!q?i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})}):i.jsx(c("SellerInsightsV2AccountOverviewNewPerfCard.react"),{metrics:e,metricsData:q,setuniqueValueCutoffDateBanner:p,shouldDisplayOffsiteContent:!0,uniqueValueCutoffDateBanner:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewNewPerfCard.react",["RelayHooks","SellerInsightsV2AccountOverviewNewPerfCard_metricData.graphql","SellerInsightsV2AccountOverviewPerfCardGrid.react","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2CutoffDateBanner","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricUtils","Timezone","geoMargin","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewNewPerfCard_metricData.graphql");function a(a){var b,e=d("RelayHooks").useFragment(l,a.metricsData),f=a.setuniqueValueCutoffDateBanner,g=a.uniqueValueCutoffDateBanner,h=j(c("SellerInsightsV2Context"));h=h.dateRange;var m=a.metrics.map(function(b){return d("SellerInsightsV2MetricUtils").getMetricConfig(e,b,a.isShopsInsightsOffsiteConversionNewVersionEnabled)});b=(b=h.getCompareDateInterval())!=null?b:h.getPrevDateInterval();h=b.start;var n=h.toTimestampInMilliseconds(d("Timezone").UTC)/d("SellerInsightsV2Constants").MILLISECONDS_IN_A_SECOND,o=m[0].effectiveDate;k(function(){f!=null&&(n
-----
SellerInsightsV2AccountOverviewPerfCardGrid.react",["GeoFlexbox.react","GeoSection.react","SellerInsightsV2ChartUtils.next","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2LoggingConstants","SellerInsightsV2MetricCard.react","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={container:{flexGrow:"x1iyjqo2",height:"xw1mjr9",marginEnd:"x19f6ikt",$$css:!0},errorCardContainer:{height:"x1mzar3b",$$css:!0},tile:{boxSizing:"x9f619",display:"x78zum5",flexGrow:"x1iyjqo2",marginEnd:"xktsk01",width:"x1f1nlb9",$$css:!0}};function j(a){var b=a.metricConfig;a=a.shouldDisplayOffsiteContent;var e=d("SellerInsightsV2QPLLoggingHooks").useHoverScenario(c("qpl")._(7091307,"2061"),{HoveredMetrics:b.title.toString()},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return h.jsx("div",{className:"x9f619 x78zum5 x1iyjqo2 xktsk01 x1f1nlb9",onMouseEnter:e,onMouseLeave:e.reset,children:h.jsx(c("SellerInsightsV2MetricCard.react"),{chartColor:d("SellerInsightsV2ChartUtils.next").getOverviewChartColor(b.metric),chartData:b.chartData,chartValueFormatter:b.chartValueFormatter,compact:!0,currency:b.currency,currentValue:b.currentValue,effectiveDate:b.effectiveDate,infoText:b.infoText,isEstimated:b.isEstimated,isNegativeGood:b.isNegativeGood,isReviewed:b.isReviewed,metricFormat:b.renderType,metricName:b.metric,prevValue:b.prevValue,shouldDisplayOffsiteContent:a,title:b.title,unavailableDates:b.unavailableDates,value:b.value})})}j.displayName=j.name+" [from "+f.id+"]";function a(a){var b=a.metricConfigs,d=a.shouldDisplayOffsiteContent;return b.every(function(a){return a.currentValue===0})?h.jsx(c("GeoSection.react"),{children:h.jsx("div",{"data-testid":void 0,children:h.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").NoData,xstyle:i.errorCardContainer})})}):h.jsx(c("GeoFlexbox.react"),{xstyle:i.container,children:b.map(function(a,b){return h.jsx(j,{metricConfig:a,shouldDisplayOffsiteContent:d},b)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewNewPerfCardContainer.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountOverviewNewPerfCard.react","SellerInsightsV2AccountOverviewNewPerfCardContainerQuery.graphql","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","SellerInsightsV2NewOverviewComponentWithoutIGEnum","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewNewPerfCardContainerQuery.graphql");function a(a){var b;a=a.metrics;var e=j(c("CommerceManagerContext"));e=e.cmsID;var f=j(c("SellerInsightsV2Context")),g=f.channels;f=f.dateRange;var h=f.getDateInterval(),m=h.start;h=h.end;b=(b=f.getCompareDateInterval())!=null?b:f.getPrevDateInterval();f=b.start;b=b.end;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").PERF);e=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(e=e)!=null?e:"0",channels:g,endDate:h.toISOString(),metrics:a,prevEndDate:b.toISOString(),prevStartDate:f.toISOString(),startDate:m.toISOString()});var n=e.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(n==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"perf"});k(function(){n==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"perf",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):g.includes("INSTAGRAM")?d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").PERF,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithoutIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithoutIGEnum").PERF,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return!n?i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error}):i.jsx(c("SellerInsightsV2AccountOverviewNewPerfCard.react"),{metrics:a,metricsData:n})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewNewIGReports.react",["CommerceManagerContext","CommerceManagerHooks","GeoSection.react","ScrollableArea.react","SellerInsightsOverviewLoggingUtils","SellerInsightsV2AccountOverviewNewIGReportsQuery.graphql","SellerInsightsV2Context","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2NewOverviewComponentWithIGEnum","ShopSettingsReportRow.react","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewNewIGReportsQuery.graphql");function m(a){d("SellerInsightsV2LoggingUtils").scenarioSuccess([c("qpl")._(7088956,"7608")],{},a)}function n(a,b){var e;d("SellerInsightsV2LoggingUtils").scenarioFail([c("qpl")._(7088956,"7608")],{ErrorMessage:(e=(e=a.errorMsg)==null?void 0:e.toString())!=null?e:"",ErrorName:(e=a.errorCode)!=null?e:""},b)}function a(){var a=j(c("SellerInsightsV2Context")),b=a.channels,e=a.fbChannelIDs,f=a.igChannelIDs,g=a.pageIDs;a=j(c("CommerceManagerContext"));var h=a.cmsID;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,c("SellerInsightsV2NewOverviewComponentWithIGEnum").IG_EXPORT);a=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(a=h)!=null?a:"0"});var o=a.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler((o==null?void 0:o.insightReports)==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ig_report"});k(function(){(o==null?void 0:o.insightReports)==null?d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ig_report",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS}):d("SellerInsightsOverviewLoggingUtils").scenarioSuccessIfAllComponentsWithIGLoadedInOverview(c("SellerInsightsV2NewOverviewComponentWithIGEnum").IG_EXPORT,d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS)});return(o==null?void 0:o.insightReports)==null?i.jsx(c("GeoSection.react"),{children:i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})}):i.jsx(c("ScrollableArea.react"),{fade:!1,maxHeight:200,children:o==null?void 0:(a=o.insightReports)==null?void 0:a.map(function(a,j){return i.jsx(c("ShopSettingsReportRow.react"),{inProgressText:d("SellerInsightsV2Fbts").REPORT_SUBTEXT_IN_PROGRESS,report:a,onDownloadError:n,onDownloadStart:function(a,i){var j;d("SellerInsightsV2LoggingUtils").scenarioStart(c("qpl")._(7088956,"7608"),{AccountID:(j=h)!=null?j:"0",Channel:b.join(" and "),FBChannelIDs:e,IGChannelIDs:f,PageIDs:g,ReportID:(j=a)!=null?j:"",Section:"overview"},i)},onDownloadSuccess:m},j)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AccountOverviewNewIGCreateReportDialog.react",["CommerceManagerContext","CommerceManagerHooks","SellerInsightsV2AccountOverviewNewIGCreateReportDialogQuery.graphql","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","ShopInsightsExportReportDialogContainer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useContext,k=e.useEffect,l=h!==void 0?h:h=b("SellerInsightsV2AccountOverviewNewIGCreateReportDialogQuery.graphql");function a(a){var b=j(c("CommerceManagerContext"));b=b.cmsID;b=d("CommerceManagerHooks").useCommerceManagerQuery(l,{accountID:(b=b)!=null?b:"0"});var e=b.account;d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(e==null,d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS,{Component:"ig_create_report"});k(function(){e==null&&d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS,{Component:"ig_create_report",ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})});return e==null?i.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error}):i.jsx(c("ShopInsightsExportReportDialogContainer.react"),{logger:a.logger,settings:e,onHide:a.onHide})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2AudienceMetricsGroupContainer.react",["CUIErrorCard.react","CommerceManagerContext","CommerceManagerHooks","CommerceManagerSuspense.react","GeoCheckboxInput.react","GeoFlexbox.react","GeoText.react","GeoTooltip.react","GeoVStack.react","SellerInsightsV2AudienceAgeGenderSection.react","SellerInsightsV2AudienceAgeGenderSectionGlimmer.react","SellerInsightsV2AudienceContext.react","SellerInsightsV2AudienceGenderSection.react","SellerInsightsV2AudienceGenderSectionGlimmer.react","SellerInsightsV2AudienceLoggingUtils","SellerInsightsV2AudienceMetricsGroupContainerQuery.graphql","SellerInsightsV2AudienceMetricsGroupContainerUnifiedQuery.graphql","SellerInsightsV2AudienceTimelineSection.react","SellerInsightsV2AudienceTimelineSectionGlimmer.react","SellerInsightsV2AudienceTopMetricsSection.react","SellerInsightsV2AudienceTopMetricsSectionGlimmer.react","SellerInsightsV2AudienceUtils","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2EmptyContainer.react","SellerInsightsV2ErrorCard.react","SellerInsightsV2ErrorType","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2LoggingWrapper","SellerInsightsV2QPLLoggingHooks","SellerInsightsV2UnifiedGraphQLUtils","err","geoMargin","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useEffect,n="DAY",o={horizontalSection:{marginBottom:"x1iymm2a",$$css:!0}},p=h!==void 0?h:h=b("SellerInsightsV2AudienceMetricsGroupContainerQuery.graphql"),q=i!==void 0?i:i=b("SellerInsightsV2AudienceMetricsGroupContainerUnifiedQuery.graphql");function r(){return j.jsx(c("SellerInsightsV2ErrorCard.react"),{errorType:c("SellerInsightsV2ErrorType").Error})}r.displayName=r.name+" [from "+f.id+"]";function s(a){switch(a){case"HOUR":return"HOUR";case"DAY":return"DAY";default:throw c("err")("Unsupported granularity option for commerce insights breakdown")}}function t(){var a=l(c("CommerceManagerContext")),b=a.cmsID,e=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection();a=l(c("SellerInsightsV2Context"));var f=a.igChannelIDs,g=a.fbChannelIDs,h=a.pageIDs,i=a.channels;a=l(c("SellerInsightsV2AudienceContext.react"));var j=a.shouldShowUnavailable,m=a.setShouldShowUnavailable;return k(function(a){var k;k={AccountID:(k=b)!=null?k:"0",Channels:i.join(" and "),FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,Section:e,ShowUnavailable:j?"true":"false"};d("SellerInsightsV2LoggingUtils").scenarioRestart(c("qpl")._(695939847,"779"),k);m(a)},[i,b,g,f,h,e,m,j])}function u(a){var b=a.audienceMetric,e=a.breakdowns,f=a.redacted,g=a.timeline,h=a.effectiveDate,i=a.topMetricsBreakdowns;a=a.unifiedMetricResult;var k=l(c("SellerInsightsV2AudienceContext.react"));k=k.shouldShowUnavailable;var m=t();k=j.jsx(c("GeoFlexbox.react"),{alignItems:"end",justifyContent:"end",children:j.jsxs(c("GeoFlexbox.react"),{alignContent:"center",alignItems:"center",children:[j.jsx(c("GeoCheckboxInput.react"),{"data-testid":void 0,isLabelHidden:!0,label:"",value:k,onChange:m}),j.jsx(c("GeoText.react"),{xstyle:c("geoMargin").start8,children:d("SellerInsightsV2Fbts").AUDIENCE_UNAVAILABLE_CHECKBOX_LABEL}),j.jsx(c("GeoTooltip.react"),{align:"end",content:d("SellerInsightsV2Fbts").AUDIENCE_UNAVAILABLE_TOOLTIP_TEXT,"data-testid":void 0})]})});m=a==null&&(e==null||g==null);return f===!0?j.jsx(c("SellerInsightsV2EmptyContainer.react"),{hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.AUDIENCE_EMPTY_STATE}):m?null:j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoFlexbox.react"),{xstyle:o.horizontalSection,children:a!=null||g!=null?j.jsx(c("SellerInsightsV2AudienceTimelineSection.react"),{effectiveDate:h,metric:b,timeline:g,unifiedTimeline:a}):r()}),j.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[k,j.jsxs(c("GeoFlexbox.react"),{xstyle:o.horizontalSection,children:[a!=null||e!=null?j.jsx(c("SellerInsightsV2AudienceGenderSection.react"),{metricResult:e,unifiedMetricResult:a}):r(),a!=null||e!=null?j.jsx(c("SellerInsightsV2AudienceAgeGenderSection.react"),{metric:d("SellerInsightsV2AudienceUtils").toCommerceInsightsMetric(b),metricResult:e,unifiedMetricResult:a}):r()]})]}),j.jsx(c("GeoFlexbox.react"),{children:a!=null||i!=null?j.jsx(c("SellerInsightsV2AudienceTopMetricsSection.react"),{legacyConnections:i,metric:d("SellerInsightsV2AudienceUtils").toCommerceInsightsMetric(b),unifiedMetric:a}):r()})]})}u.displayName=u.name+" [from "+f.id+"]";function v(){return j.jsxs(c("GeoVStack.react"),{children:[j.jsx(c("GeoFlexbox.react"),{xstyle:o.horizontalSection,children:j.jsx(c("SellerInsightsV2AudienceTimelineSectionGlimmer.react"),{index:0})}),j.jsxs(c("GeoFlexbox.react"),{xstyle:o.horizontalSection,children:[j.jsx(c("SellerInsightsV2AudienceGenderSectionGlimmer.react"),{index:1}),j.jsx(c("SellerInsightsV2AudienceAgeGenderSectionGlimmer.react"),{index:1})]}),j.jsx(c("SellerInsightsV2AudienceTopMetricsSectionGlimmer.react"),{index:2})]})}v.displayName=v.name+" [from "+f.id+"]";function w(a){var b;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,"audience");var e=l(c("CommerceManagerContext"));e=e.cmsID;var f=l(c("SellerInsightsV2AudienceContext.react"));f=f.shouldShowUnavailable;var g=l(c("SellerInsightsV2Context")),h=g.dateRange;g=g.channels;var i=h.getDateInterval(),k=i.start;i=i.end;b=(b=h.getCompareDateInterval())!=null?b:h.getPrevDateInterval();h=b.start;b=b.end;e=d("CommerceManagerHooks").useCommerceManagerQuery(q,{accountID:(e=e)!=null?e:"0",channels:g,commerceInsightsMetric:d("SellerInsightsV2AudienceUtils").toCommerceInsightsMetric(a.audienceMetric),endDate:i.toISOString(),filterOutUnavailable:!f,granularity:s(n),prevEndDate:b.toISOString(),prevStartDate:h.toISOString(),startDate:k.toISOString()});g=d("SellerInsightsV2UnifiedGraphQLUtils").useIsRedacted(e);return j.jsx(y,{account:null,audienceMetric:a.audienceMetric,breakdowns:null,effectiveDate:-1,redacted:g,timeline:null,topMetricsBreakdowns:null,unifiedMetricResult:e})}w.displayName=w.name+" [from "+f.id+"]";function x(a){var b,e=a.audienceMetric;a=l(c("CommerceManagerContext"));a=a.cmsID;var f=l(c("SellerInsightsV2AudienceContext.react"));f=f.shouldShowUnavailable;var g=l(c("SellerInsightsV2Context")),h=g.channels;g=g.dateRange;var i=g.getDateInterval(),k=i.start;i=i.end;b=(b=g.getCompareDateInterval())!=null?b:g.getPrevDateInterval();g=b.start;b=b.end;d("SellerInsightsV2LoggingUtils").scenarioMarkerPointStart(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,"audience");a=d("CommerceManagerHooks").useCommerceManagerQuery(p,{accountID:(a=a)!=null?a:"0",audienceMetric:e,channels:h,endDate:i.toISOString(),filterOutUnavailable:!f,granularity:n,prevEndDate:b.toISOString(),prevStartDate:g.toISOString(),startDate:k.toISOString()});h=a.account;b=h==null?void 0:(i=h.sellerAudienceInsights)==null?void 0:(f=i.metricInsights)==null?void 0:f.breakdowns;a=h==null?void 0:(g=h.sellerAudienceInsights)==null?void 0:(k=g.metricInsights)==null?void 0:k.timeline;g=h==null?void 0:(i=h.sellerAudienceInsights)==null?void 0:(f=i.metricInsights)==null?void 0:f.isRedacted;i=(k=h==null?void 0:(k=h.sellerAudienceInsights)==null?void 0:(i=k.metricsLifetime)==null?void 0:(f=i.find(function(a){return a.metric===e}))==null?void 0:f.effective_date)!=null?k:0;(h==null?void 0:(f=h.sellerAudienceInsights)==null?void 0:(k=f.metricInsights)==null?void 0:k.metric)!==e&&(b=null,a=null);return j.jsx(y,{account:h,audienceMetric:e,breakdowns:b,effectiveDate:i,redacted:g,timeline:a,topMetricsBreakdowns:h,unifiedMetricResult:null})}x.displayName=x.name+" [from "+f.id+"]";function y(a){var b=a.account,e=a.audienceMetric,f=a.breakdowns,g=a.effectiveDate,h=a.redacted,i=a.timeline;a=a.unifiedMetricResult;var k=l(c("SellerInsightsV2AudienceContext.react")),n=k.isAudienceUnifiedGraphQLEnabled;k=l(c("CommerceManagerContext"));var o=k.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;k=l(c("SellerInsightsV2Context"));var p=k.channels,q=k.igChannelIDs,r=k.fbChannelIDs;function s(){document.visibilityState==="visible"?d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart():document.visibilityState==="hidden"&&d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess("audience",o,p,q,r,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)}var t=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerCallback(d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);m(function(){if(!n){var a=h===!0||f!=null&&i!=null;t(!a);a?(d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,"audience"),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{}),d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart(),document.addEventListener("visibilitychange",s)):d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS});return function(){document.removeEventListener("visibilitychange",s)}}});k=function(a){a=Array.from(a.entries()).every(function(a){a=a[1];return!a});a=h===!0||!a;t(!a);a?(d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,"audience"),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{}),d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart(),document.addEventListener("visibilitychange",s)):d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{ErrorMessage:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS});return function(){document.removeEventListener("visibilitychange",s)}};return j.jsx(d("SellerInsightsV2LoggingWrapper").SellerInsightsV2LoggingWrapper,{components:h===!0?[]:d("SellerInsightsV2AudienceLoggingUtils").AUDIENCE_COMPONENTS_TO_LOG,onAllComponentsLoaded:k,children:j.jsx(u,{audienceMetric:e,breakdowns:f,effectiveDate:g,redacted:h,timeline:i,topMetricsBreakdowns:b,unifiedMetricResult:a})})}y.displayName=y.name+" [from "+f.id+"]";function a(a){var b=l(c("SellerInsightsV2AudienceContext.react"));b=b.isAudienceUnifiedGraphQLEnabled;d("SellerInsightsV2QPLLoggingHooks").useLoggingForContainer("audience");var e=d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandlerForSuspense();b=b?w:x;return j.jsx(c("CommerceManagerSuspense.react"),{errorComponent:c("CUIErrorCard.react"),loadingComponent:j.jsx(v,{}),oncall:"commerce_platform_insights",onHandleError:function(a,b){d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS,{ErrorMessage:a.message,ErrorName:a.name}),e(a)},children:j.jsx(b,{audienceMetric:a.audienceMetric})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2PerfUtils.react",["$InternalEnum","CommerceManagerContext","LocalDate","SellerInsightsV2Constants","SellerInsightsV2Context","SellerInsightsV2DateConstants","SellerInsightsV2EmptyContainer.react","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2Fbts","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react"),j=i.useContext,k=i.useEffect,l=b("$InternalEnum").Mirrored(["ChannelComparison","SingleLine","TimeSeriesComparison"]);function a(a,b,e){var f=j(c("CommerceManagerContext")),g=f.cmsID;f=j(c("SellerInsightsV2Context"));var h=f.channels,i=f.igChannelIDs,l=f.fbChannelIDs;function m(){if(document.visibilityState==="visible")d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart();else if(document.visibilityState==="hidden"){var a;d("SellerInsightsV2LoggingUtils").handleActiveTabEventSuccess("perf",(a=g)!=null?a:"0",h,i,l,c("SellerInsightsV2ExitTabActionEnum").TAB_CHANGE)}}var n=function(){d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,b),d("SellerInsightsV2LoggingUtils").scenarioSuccess(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{}),d("SellerInsightsV2LoggingUtils").handleActiveTabEventStart(),document.addEventListener("visibilitychange",m)},o=function(){var a;d("SellerInsightsV2LoggingUtils").scenarioFail(d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS,{ErrorMessage:(a=e)!=null?a:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS})};d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionErrorHandler(a,(f=e)!=null?f:d("SellerInsightsV2LoggingConstants").ERROR_EMPTY_CHARTS);k(function(){a?o():n();return function(){document.removeEventListener("visibilitychange",m)}})}function e(a,b,e){var f=b.subtractDays(1);if(a===l.TimeSeriesComparison&&e==="DAY")return function(a){return null};else return function(a){var b=c("LocalDate").today(d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE);!isNaN(a)?b=c("LocalDate").fromInstant(Number(a),d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE):b=c("LocalDate").fromUTCDate(new Date(a));a=null;var g=!1;e==="WEEK"?(a=b.startOfWeek().addWeeks(1).subtractDays(1),g=b.getDayOfWeek()!==0):e==="MONTH"&&(a=b.startOfMonth().addMonths(1).subtractDays(1),g=b.getDayOfMonth()!==1);a!==null&&a.isAfter(f)&&(g=!0);return g?d("SellerInsightsV2Fbts").PARTIAL_DATE_RANGE_DISCLAIMER:null}}function m(a,b,e){var f=b.subtractDays(1);if(a===l.TimeSeriesComparison&&e==="DAY")return function(a){return""};else return function(a){var b=c("LocalDate").today(d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE);!isNaN(a)?b=c("LocalDate").fromInstant(Number(a),d("SellerInsightsV2DateConstants").DEFAULT_TIMEZONE):b=c("LocalDate").fromUTCDate(new Date(a));a=null;e==="WEEK"?a=b.startOfWeek().addWeeks(1).subtractDays(1):e==="MONTH"&&(a=b.startOfMonth().addMonths(1).subtractDays(1));a!==null&&a.isAfter(f)&&(a=f);return a===null?b.format(d("SellerInsightsV2DateConstants").DATE_FORMAT):b.format(d("SellerInsightsV2DateConstants").DATE_FORMAT)+" - "+a.format(d("SellerInsightsV2DateConstants").DATE_FORMAT)}}function n(a,b,c){return a!=="RECENT_META_BUYERS"?null:o(b,c.getTimeInterval().getStartDateTime())}n.displayName=n.name+" [from "+f.id+"]";function o(a,b){return b.getUnixTimestampSeconds()>=a?null:h.jsx(c("SellerInsightsV2EmptyContainer.react"),{cutoffDate:a,hideBorder:!0,nullState:d("SellerInsightsV2Constants").NULL_STATES.NO_INSIGHTS_FOR_AUDIENCE_SEGMENT_BEFORE_CUTOFF})}o.displayName=o.name+" [from "+f.id+"]";g.PerfChartType=l;g.useLogScenarioEnd=a;g.getTooltipDisclaimerRenderer=e;g.getTooltipPrimaryValueRenderer=m;g.getPotentialNullStateForAudienceSegment=n}),98);
-----
SellerInsightsV2MetricInfoTooltip.react",["CommerceManagerContext","GeoBaseSpacingLayout.react","GeoPopover.react","GeoText.react","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2MetricEstimateDisclaimer.react","SellerInsightsV2QPLLoggingHooks","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b=a.title,e=a.text,f=a.isEstimated,g=a.isReviewed,j=a.children,k=a.offsiteAttributionDisclaimer,l=a.renderDelay,m=a.secondaryText,n=a.offsiteIOSLimit,o=a.learnMoreContent,p=a.shouldHideEstimate,q=a.shouldBeReported,r=a.position;a=a.additionalMetrics;var s=[],t=i(c("CommerceManagerContext"));t=t.cmsID;var u=i(c("SellerInsightsV2Context")),v=u.channels,w=u.igChannelIDs,x=u.fbChannelIDs;u=u.pageIDs;var y=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection();v=v.length===2?d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM:v[0];e!=null&&s.push(h.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:e},"metric-text"));m!=null&&s.push(h.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:m},"metric-secondary-text"));e=g!==!0;if(p!==!0&&(e||f)){m=h.jsx(c("SellerInsightsV2MetricEstimateDisclaimer.react"),{isEstimated:f,showInDev:e,title:b},"disclaimer-"+b.toString());s.push(m)}o!=null&&s.push(o);q===!0&&s.push(h.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:d("SellerInsightsV2Fbts").ESTIMATED_AND_THIRD_PARTY},"metric-reported-text"));k!=null&&s.push(h.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:k},"attribution"));n!=null&&s.push(h.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:n},"ios"));a!==null&&s.push(a);var z=d("SellerInsightsV2LoggingUtils").hoverScenario(c("qpl")._(7084665,"3938"),{AccountID:(g=t)!=null?g:"0",Channel:(p=v)!=null?p:d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM,FBChannelIDs:x,IGChannelIDs:w,PageIDs:u,Section:y,ToolTipName:(f=b==null?void 0:b.toString())!=null?f:""},d("SellerInsightsV2LoggingConstants").DELAY_FOR_TOOLTIP_HOVER_IN_MS);return h.jsx(c("GeoPopover.react"),{content:h.jsx(c("GeoBaseSpacingLayout.react"),{align:"start",context:"container",direction:"vertical",relation:"related",children:h.jsx("div",{onClick:function(a){return a.stopPropagation()},children:s})}),heading:b,isSticky:!1,position:r,renderDelay:l,onToggle:function(a){return a?z():z.reset()},children:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2MetricEstimateDisclaimer.react",["CommerceManagerContext","GeoText.react","SellerExperienceHelpCenterLinks","SellerInsightsV2Context","SellerInsightsV2Fbts","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2QPLLoggingHooks","URI","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){var b=a.isEstimated,e=a.showInDev,f=a.title;a=i(c("CommerceManagerContext"));var g=a.cmsID;a=i(c("SellerInsightsV2Context"));var j=a.channels,k=a.igChannelIDs,l=a.fbChannelIDs,m=a.pageIDs,n=d("SellerInsightsV2QPLLoggingHooks").useNameFromSectionAndSubSection(),o=j.length>1?d("SellerInsightsV2LoggingConstants").FACEBOOK_AND_INSTAGRAM:j[0];a=function(){var a;d("SellerInsightsV2LoggingUtils").atomicScenario(c("qpl")._(7084033,"3990"),{AccountID:(a=g)!=null?a:"0",Channel:o,Destination:new(c("URI"))(d("SellerExperienceHelpCenterLinks").METRIC_DEVELOPMENT).toString(),FBChannelIDs:l,IGChannelIDs:k,PageIDs:m,Section:n,ToolTipName:f.toString()})};j=e?b?d("SellerInsightsV2Fbts").IN_DEVELOPMENT_AND_ESTIMATED(a):d("SellerInsightsV2Fbts").IN_DEVELOPMENT(a):d("SellerInsightsV2Fbts").IS_ESTIMATED(a);return h.jsx(c("GeoText.react"),{display:"block",textAlign:"start",children:j},"in-development-text-"+f.toString())}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SellerInsightsV2QPLLoggingHooks",["CommerceManagerComponentGatingContext","CommerceManagerContext","SellerInsightsSearchParamsUtils","SellerInsightsV2Context","SellerInsightsV2FeatureContext","SellerInsightsV2HeroInteractionHooks","SellerInsightsV2LoggingConstants","SellerInsightsV2LoggingUtils","SellerInsightsV2TabUtils","qpl","react","useEffectOnce","useReactRouter"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useContext,i=(e={},e.entry_points=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS_FOR_ABANDON,e.overview=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS_FOR_ABANDON,e.audience=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS_FOR_ABANDON,e.perf=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS_FOR_ABANDON,e.product_tagged_content=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS_FOR_ABANDON,e.collections=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON,e.products=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON,e.offsite_events=d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS_FOR_ABANDON,e);function a(a){var b=h(c("SellerInsightsV2Context")),e=b.channels,f=b.igChannelIDs,g=b.fbChannelIDs,k=b.pageIDs;b=h(c("CommerceManagerContext"));var l=b.accountID_DEPRECATED_USE_CMS_ID_INSTEAD;b=d("useReactRouter").useRouter();b=b.history;var m=j();d("SellerInsightsV2LoggingUtils").setCurrentSection(m,l,e,f,g,k);d("SellerInsightsV2LoggingUtils").scenarioForContainerLoading(l,e,b,m,f,g,k);d("SellerInsightsV2LoggingUtils").scenarioMarkerPointEnd([c("qpl")._(7085819,"6371"),c("qpl")._(7092193,"5380")],"JS_loading");d("SellerInsightsV2HeroInteractionHooks").useHeroInteractionMarkerPointEnd(!0,"JS_loading");c("useEffectOnce")(function(){return function(){d("SellerInsightsV2LoggingUtils").logNavigateAway(l,e,f,g,k),d("SellerInsightsV2LoggingUtils").scenarioAbandon(i[a])}})}function j(){var a=h(c("SellerInsightsV2Context"));a=a.subtab;var b=h(c("CommerceManagerComponentGatingContext"));b=b.checkoutStyle;var e=h(c("SellerInsightsV2FeatureContext"));e=e.isFunnelEnabled;var f=d("SellerInsightsSearchParamsUtils").getSubsectionSearchParam();b=d("SellerInsightsV2TabUtils").getDefaultPerfSubtabByCheckoutStyle(b,e);f=(e=f)!=null?e:b;switch(a){case"perf":return"perf_"+f;case"products":return d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS;case"collections":return d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS;default:return a}}function b(a,b,e){var f=h(c("CommerceManagerContext"));f=f.cmsID;var g=h(c("SellerInsightsV2Context")),i=g.channels,j=g.fbChannelIDs,k=g.igChannelIDs,l=g.pageIDs;g=g.subtab;return d("SellerInsightsV2LoggingUtils").hoverScenario(a,babelHelpers["extends"]({},b,{AccountID:(a=f)!=null?a:"0",Channel:i.join(" and "),FBChannelIDs:j,IGChannelIDs:k,PageIDs:l,Section:g}),e)}g.useLoggingForContainer=a;g.useNameFromSectionAndSubSection=j;g.useHoverScenario=b}),98);
-----
SellerInsightsV2QPLLogger",["CurrentLocale","CurrentUser","QPLEvent","QuickPerformanceLogger","SellerInsightsSearchParams","SellerInsightsV2Constants","SellerInsightsV2LoggingConstants","SellerInsightsV2QPLEventNameMap","SignalsFBNuxDataManager","USID","err","gkx","qpl","setTimeout"],(function(a,b,c,d,e,f,g){"use strict";var h=new Set([7092490,7088916]),i=new Set([7085819,7092193]),j=new Set(),k=new Set(),l=new Set(),m={isLoggingDebugModeEnabled:c("CurrentUser").isEmployee()&&c("gkx")("1589")},n=void 0,o="",p=void 0,q={};function r(a,b){a["delete"](b);b=a.toString();b!==""&&(b="?"+b);history.replaceState({},document.title,location.pathname+b)}function a(a){if(typeof a==="string"){a=new URLSearchParams(a);var b=a.get(c("SellerInsightsSearchParams").AYMT_TIP_NAME);b!=null&&n===void 0&&(r(a,c("SellerInsightsSearchParams").AYMT_TIP_NAME),n=b,o=b,c("setTimeout")(function(){n=""},d("SellerInsightsV2LoggingConstants").AYMT_TRACKING_EXPIRE_MS))}}function b(a){if(typeof a==="string"){a=new URLSearchParams(a);var b=a.get(c("SellerInsightsSearchParams").REF);b!=null&&p===void 0&&(r(a,c("SellerInsightsSearchParams").REF),p=b,c("setTimeout")(function(){p=""},d("SellerInsightsV2LoggingConstants").REFERRER_TRACKING_EXPIRE_MS))}}function e(){o=""}function f(){return o}function s(a,b,e,f){if(m.isLoggingDebugModeEnabled){var g=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));g=d("QPLEvent").getMarkerId(a).toString()+"-"+((g=b)!=null?g:0);q[g]={}}c("QuickPerformanceLogger").markerStart(a,b);B(a,A(e,a,f),b)}function t(a,b,e,f){if(m.isLoggingDebugModeEnabled)var g=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));c("QuickPerformanceLogger").markerPoint(a,"client."+b+"_start",{instanceKey:e});B(a,f,e)}function u(a,b,e,f){if(m.isLoggingDebugModeEnabled)var g=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));c("QuickPerformanceLogger").markerPoint(a,"client."+b+"_end",{instanceKey:e});B(a,f,e)}function v(a,b){a=c("QuickPerformanceLogger").getMarker(a,b);return a==null?void 0:(b=a.points)==null?void 0:b.map(function(a){return a.name})}function w(a,b,e,f){f!=null&&B(a,f,e);b===3&&C(a,{URL:location.href},"URL",e);k.forEach(function(a){l.add(a)});c("QuickPerformanceLogger").markerEnd(a,b,e);a===c("qpl")._(7093497,"5075")&&b===2&&p===d("SellerInsightsV2Constants").COMMERCE_MANAGER_BANNER_REF&&d("SignalsFBNuxDataManager").logNuxView(d("SellerInsightsV2Constants").COMMERCE_INSIGHTS_BANNER_NAVIGATION_NUX_ID);if(m.isLoggingDebugModeEnabled){e=d("QPLEvent").getMarkerId(a).toString()+"-"+((f=e)!=null?f:0);f=x(b);b=q[e];b.eventState=f;b=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));delete q[e]}}function x(a){switch(a){case 2:return"Success!";case 3:return"Failed!";case 477:return"Abandoned!";default:throw c("err")("action type not supported!")}}function y(a,b){c("QuickPerformanceLogger").markerPoint(a,b)}function z(a,b,e){var f;f=d("QPLEvent").getMarkerId(a).toString()+"-"+((f=e)!=null?f:0);if(m.isLoggingDebugModeEnabled){var g=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));q[f]={}}c("QuickPerformanceLogger").markerStart(a,e);B(a,A(b),e);c("QuickPerformanceLogger").markerEnd(a,2,e);if(m.isLoggingDebugModeEnabled){g=q[f];b=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));delete q[f]}}function A(a,b,e){if(b!=null&&i.has(d("QPLEvent").getMarkerId(b))){var f=!k.has(e);f&&k.add(e);return babelHelpers["extends"]({},a,c("USID").get().contextData(),{IsFirstTimeLoad:f,Locale:c("CurrentLocale").get()})}if(b!=null&&h.has(d("QPLEvent").getMarkerId(b))){f=!j.has(e);f&&j.add(e);return babelHelpers["extends"]({},a,c("USID").get().contextData(),{IsFirstTimeLoad:f,Locale:c("CurrentLocale").get()})}return babelHelpers["extends"]({},a,c("USID").get().contextData(),{Locale:c("CurrentLocale").get()})}function B(a,b,c){var d=babelHelpers["extends"]({},b,{AYMTTipName:(b=n)!=null?b:"",Referrer:(b=p)!=null?b:""});Object.keys(d).map(function(b){Array.isArray(d[b])?D(a,d,b,c):C(a,d,b,c)})}function C(a,b,e,f){var g;g=d("QPLEvent").getMarkerId(a).toString()+"-"+((g=f)!=null?g:0);if(m.isLoggingDebugModeEnabled){if(!(g in q))var h=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));h=(h=q[g])!=null?h:{};q[g]=h;h[e]=b[e]}g=b[e];if(Array.isArray(g)||g==null)return;switch(typeof g){case"string":c("QuickPerformanceLogger").markerAnnotate(a,{string:(h={},h[e]=b[e],h)},{instanceKey:f});break;case"boolean":c("QuickPerformanceLogger").markerAnnotate(a,{bool:(g={},g[e]=b[e],g)},{instanceKey:f});break;case"number":c("QuickPerformanceLogger").markerAnnotate(a,{"double":(h={},h[e]=b[e],h)},{instanceKey:f});break;default:m.isLoggingDebugModeEnabled}}function D(a,b,e,f){var g;g=d("QPLEvent").getMarkerId(a).toString()+"-"+((g=f)!=null?g:0);if(m.isLoggingDebugModeEnabled){if(!(g in q))var h=d("SellerInsightsV2QPLEventNameMap").getEventName(d("QPLEvent").getMarkerId(a));h=(h=q[g])!=null?h:{};q[g]=h;h[e]=b[e]}g=b[e];if(!Array.isArray(g)||g.length===0)return;switch(typeof g[0]){case"string":c("QuickPerformanceLogger").markerAnnotate(a,{string_array:(h={},h[e]=b[e],h)},{instanceKey:f});break;case"boolean":c("QuickPerformanceLogger").markerAnnotate(a,{bool_array:(g={},g[e]=b[e],g)},{instanceKey:f});break;case"number":c("QuickPerformanceLogger").markerAnnotate(a,{double_array:(h={},h[e]=b[e],h)},{instanceKey:f});break;default:m.isLoggingDebugModeEnabled}}g.isJSloaded=l;g.LoggingSettings=m;g.checkIsComingFromAYMT=a;g.checkReferrer=b;g.setTipNameForConversionLoggingToEmptyString=e;g.getTipNameForConversionLogging=f;g.sellerInsightsV2QPLStartEvent=s;g.sellerInsightsV2QPLMarkerPointStart=t;g.sellerInsightsV2QPLMarkerPointEnd=u;g.sellerInsightsV2GetMarkerPoints=v;g.sellerInsightsV2QPLEndEvent=w;g.sellerInsightsV2QPLAddPoint=y;g.sellerInsightsV2QPLAtomicEvent=z;g.sellerInsightsV2QPLAnnotateMarkerStrings=B}),98);
-----
SellerInsightsV2LoggingUtils",["$InternalEnum","CurrentUser","DateTime","QPLEvent","SellerInsightsV2ExitTabActionEnum","SellerInsightsV2LoggingConstants","SellerInsightsV2OverviewComponentEnum","SellerInsightsV2QPLLogger","SellerInsightsV2TabUtils","Timezone","debounce","qpl","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react").useRef,i=b("$InternalEnum").Mirrored(["ABANDONED","FAILED","LOADED","LOADING"]),j={},k={},l={},m=new Map(),n=1e3,o=null,p=d("Timezone").getEnvironmentTimezoneID(),q=null,r=null;function s(a){a=d("QPLEvent").getMarkerId(a);if(a in k)return k[a];k[a]=d("SellerInsightsV2LoggingConstants").INSTANCE_KEY_INITIAL;return k[a]}function t(a,b,c){k[d("QPLEvent").getMarkerId(a)]==null&&u(a,b,void 0,c)}function u(a,b,c,e){if(c!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLStartEvent(a,c,b,e);else{c=s(a);l[d("QPLEvent").getMarkerId(a)]!==i.LOADING&&(d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLStartEvent(a,c,b,e),l[d("QPLEvent").getMarkerId(a)]=i.LOADING)}}function a(a,b,d,e,f,g,h){var i;if(((i=d.location.state)==null?void 0:i.prevTab)!=="performance"||d.action==="POP"){t(c("qpl")._(7092490,"3429"),{AccountID:a,Channel:b.join(" and "),CollectionID:(a=(i=d.location.state)==null?void 0:i.collectionID)!=null?a:"",FBChannelIDs:g,IGChannelIDs:f,IsFreshLoad:d.action==="POP",NavigationMethod:(i=(b=d.location.state)==null?void 0:b.navigationMethod)!=null?i:"",PageIDs:h,PreviousTab:(g=(a=d.location.state)==null?void 0:a.prevTab)!=null?g:"",Section:e},e)}}function e(a,b,e,f,g,h){if(o!==a){if(o!=null){var i;i=(i=q)==null?void 0:i.secondsUntil(c("DateTime").now(p));d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(c("qpl")._(7084444,"2109"),{AccountID:b,Channel:e.join(" and "),DurationInSeconds:(i=i)!=null?i:0,FBChannelIDs:g,IGChannelIDs:f,PageIDs:h,Section:(i=o)!=null?i:""});H((i=o)!=null?i:"",b,e,f,g,c("SellerInsightsV2ExitTabActionEnum").NAV_AWAY);E(c("qpl")._(7088916,"5463"),{AccountID:b,Channel:e.join(" and "),FBChannelIDs:g,IGChannelIDs:f,NewSection:a,PageIDs:h,PreviousSection:o},void 0,a)}o=a;p=d("Timezone").getEnvironmentTimezoneID();q=c("DateTime").now(p)}}function f(a,b,e,f,g){var h;h=(h=location.pathname)==null?void 0:(h=h.match(//commerce/[d]+/(.*)/))==null?void 0:h[1].split("/");if(h==null||h[0]!=="performance"){d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(c("qpl")._(7088932,"5548"),{AccountID:a,Channel:b.join(" and "),FBChannelIDs:f,IGChannelIDs:e,NextSubTab:h!=null?h[1]:"",NextTab:h!=null?h[0]:"",PageIDs:g,Section:(h=o)!=null?h:""});H((h=o)!=null?h:"",a,b,e,f,c("SellerInsightsV2ExitTabActionEnum").NAV_AWAY);h=(h=q)==null?void 0:h.secondsUntil(c("DateTime").now(p));d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(c("qpl")._(7084444,"2109"),{AccountID:a,Channel:b.join(" and "),DurationInSeconds:(a=h)!=null?a:0,FBChannelIDs:f,IGChannelIDs:e,PageIDs:g,Section:(b=o)!=null?b:""});o=null;q=null;C([c("qpl")._(7088916,"5463")]);delete k[d("QPLEvent").getMarkerId(c("qpl")._(7092490,"3429"))];delete l[d("QPLEvent").getMarkerId(c("qpl")._(7092490,"3429"))]}}function v(a,b){for(var a=a,c=Array.isArray(a),e=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var f;if(c){if(e>=a.length)break;f=a[e++]}else{e=a.next();if(e.done)break;f=e.value}f=f;var g=s(f);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAnnotateMarkerStrings(f,b,g)}}function w(a,b,c){c===void 0&&(c={});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=s(g);if(l[d("QPLEvent").getMarkerId(g)]===i.LOADING){var j=d("SellerInsightsV2QPLLogger").sellerInsightsV2GetMarkerPoints(g,h);j!=null&&(j.includes("client."+b+"_start")||d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLMarkerPointStart(g,b,h,c))}}}function x(a,b,c){c===void 0&&(c={});for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;var h=s(g);l[d("QPLEvent").getMarkerId(g)]===i.LOADING&&y(g,b,h,c)}}function y(a,b,c,e){e===void 0&&(e={});var f=d("SellerInsightsV2QPLLogger").sellerInsightsV2GetMarkerPoints(a,c);f!=null&&(!f.includes("client."+b+"_end")&&f.includes("client."+b+"_start")&&d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLMarkerPointEnd(a,b,c,e))}function z(a,b,c){for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;if(c!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,2,c,b);else if(l[d("QPLEvent").getMarkerId(g)]===i.LOADING){var h=s(g);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,2,h,b);l[d("QPLEvent").getMarkerId(g)]=i.LOADED;k[d("QPLEvent").getMarkerId(g)]+=1}}}function A(a,b,c,e,f){for(var g=a,h=Array.isArray(g),j=0,g=h?g:g[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var k;if(h){if(j>=g.length)break;k=g[j++]}else{j=g.next();if(j.done)break;k=j.value}var m=k;if(l[d("QPLEvent").getMarkerId(m)]===i.LOADING){k=function(){var g=s(m);g=d("SellerInsightsV2QPLLogger").sellerInsightsV2GetMarkerPoints(m,g);if(g==null)return"continue";var h=new Set(g);g=c.every(function(a){return h.has("client."+a+"_end")});g&&(z(a,b,e),f&&f())}();if(k==="continue")continue}}}function B(a,b,d){j[a]=!0;a=!0;var e=Array.from(c("SellerInsightsV2OverviewComponentEnum").members());e.forEach(function(b){j[b]||(a=!1)});a&&(z(b,{},d),G())}function C(a,b,e){for(var a=a,f=Array.isArray(a),g=0,a=f?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var h;if(f){if(g>=a.length)break;h=a[g++]}else{g=a.next();if(g.done)break;h=g.value}h=h;if(e!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(h,477,e,b);else{if(l[d("QPLEvent").getMarkerId(h)]===i.LOADING){var j=s(h);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(h,477,j,b)}if(h!==c("qpl")._(7092490,"3429")){j=d("QPLEvent").getMarkerId(h);delete k[j];delete l[j]}}}}function D(a,b,c){for(var a=a,e=Array.isArray(a),f=0,a=e?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=a.length)break;g=a[f++]}else{f=a.next();if(f.done)break;g=f.value}g=g;if(c!=null)d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,3,c,b);else if(l[d("QPLEvent").getMarkerId(g)]===i.LOADING){var h=s(g);d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLEndEvent(g,3,h,b);k[d("QPLEvent").getMarkerId(g)]+=1;l[d("QPLEvent").getMarkerId(g)]=i.FAILED}}}function E(a,b,c,d){C([a],{},c),u(a,b,c,d)}function F(a,b){d("SellerInsightsV2QPLLogger").sellerInsightsV2QPLAtomicEvent(a,b)}function G(){r==null&&(r=Date.now(),E(c("qpl")._(7093594,"5724"),{}))}function H(a,b,d,e,f,g){var h=Date.now();h=(h-((h=r)!=null?h:0))/n;z([c("qpl")._(7093594,"5724")],{AccountID:b,Channels:d.join(" and "),DurationInSeconds:h,ExitTabAction:g,FBChannelIDs:f,IGChannelIDs:e,Section:a});r=null}function I(a,b,d){return c("debounce")(function(){F(a,b)},d)}function J(){var a,b=location.pathname;a=b==null?void 0:(a=b.match(//commerce/[d]+/(.*)/))==null?void 0:a[0].split("/")[2];b=b==null?void 0:(b=b.match(//commerce/[d]+/(.*)/))==null?void 0:b[1].split("/");if(b!=null&&b[0]==="performance"){b=K(b);d("SellerInsightsV2QPLLogger").LoggingSettings.isLoggingDebugModeEnabled=c("CurrentUser").isEmployee();u(c("qpl")._(7085819,"6371"),{AccountID:(a=a)!=null?a:"",IsFreshLoad:!0,PreviousTab:"",Section:b},void 0,b);w([c("qpl")._(7085819,"6371")],"JS_loading")}}function K(a){if(a[1]===d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_SECTION_PERF){var b=new URLSearchParams(location.search);b=b.get("perf_tab");return b!=null?d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_SECTION_PERF+"_"+b:d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_SECTION_PERF}if(a[1]===d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB_PRODUCTS)return d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.PRODUCTS;return a[1]===d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB_COLLECTIONS?d("SellerInsightsV2LoggingConstants").SELLER_INSIGHTS_CATALOG_SUBTAB.COLLECTIONS:a[1]}function L(a,b,e,f){b=d("SellerInsightsV2TabUtils").convertSideTabKeyIntoSectionKey(b,e);if(b!=null){E(c("qpl")._(7085819,"6371"),{AccountID:(e=a)!=null?e:"",IsFreshLoad:!1,PreviousTab:(a=f)!=null?a:"",Section:b},void 0,b);w([c("qpl")._(7085819,"6371")],"JS_loading")}else C([c("qpl")._(7092193,"5380"),c("qpl")._(7085819,"6371")])}function M(a,b,e,f,g){e=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(b,e,null,g);b=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(b,f,null,g);E(c("qpl")._(7092193,"5380"),{AccountID:(f=a)!=null?f:"",NewSection:(g=b)!=null?g:"",PreviousSection:(a=e)!=null?a:""},void 0,(f=b)!=null?f:"")}function N(a,b,e,f,g,h){e=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(e,f,g,h);b=d("SellerInsightsV2TabUtils").convertSectionKeyIntoSideTabKey(b,f,g,h);E(c("qpl")._(7092193,"5380"),{AccountID:(f=a)!=null?f:"",NewSection:(g=e)!=null?g:"",PreviousSection:(h=b)!=null?h:""},void 0,(a=e)!=null?a:"");w([c("qpl")._(7092193,"5380")],"JS_loading")}function O(a,b,c,d){m.clear(),a.forEach(function(a){return m.set(a,i.LOADING)}),b!=null&&c!=null&&u(b,c,d)}function P(a,b,c,d){m.clear(),a.forEach(function(a){return m.set(a,i.LOADING)}),b!=null&&c!=null&&E(b,c,d)}function Q(a,b,c,d){m.set(a,i.LOADED),T(b,c,d)}function R(a,b,c,d){m.set(a,i.FAILED),T(b,c,d)}function S(a,b,c,d){m.set(a,i.ABANDONED),T(b,c,d)}function T(a,b,c){var d=Array.from(m.values());d.every(function(a){return a===i.LOADED})?z(a,b,c):d.some(function(a){return a===i.FAILED})?D(a,b,c):d.some(function(a){return a===i.ABANDONED})&&C(a,b,c)}function U(a,b,c){var d=h(b.length),e=h(!1),f=function(){d.current=b.length,e.current=!1},g=function(){return d.current=Math.max(0,d.current-1)};return function(){u(a,c);var h=function(){if(j){if(k>=i.length)return"break";l=i[k++]}else{k=i.next();if(k.done)return"break";l=k.value}var b=l,h=b.count,m=b.loadNext,n=b.pointName;w([a],n);m(h,{onComplete:function(b){g();x([a],n);e.current||(e.current=b!=null);if(d.current>0)return;f();e.current?D([a],c):z([a],c)}})};for(var i=b,j=Array.isArray(i),k=0,i=j?i:i[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var l,m=h();if(m==="break")break}}}g.scenarioStartOnce=t;g.scenarioStart=u;g.scenarioForContainerLoading=a;g.setCurrentSection=e;g.logNavigateAway=f;g.scenarioAnnotate=v;g.scenarioMarkerPointStart=w;g.scenarioMarkerPointEnd=x;g.scenarioSuccess=z;g.scenarioSuccessWithMarkerPoints=A;g.scenarioSuccessIfAllComponentsLoadedInOverview=B;g.scenarioAbandon=C;g.scenarioFail=D;g.scenarioRestart=E;g.atomicScenario=F;g.handleActiveTabEventStart=G;g.handleActiveTabEventSuccess=H;g.hoverScenario=I;g.commerceInsightsPageLoadingV2Scenario=J;g.commerceInsightsTabClickScenario=L;g.commerceInsightsSubsectionChange=M;g.commerceInsightsSectionChangeV2Scenario=N;g.componentsStart=O;g.componentsRestart=P;g.componentSuccess=Q;g.componentFail=R;g.componentAbandon=S;g.useAggregatedLoadNextWithLogging=U}),98);
-----
SellerInsightsV2LoggingConstants",["qpl"],(function(a,b,c,d,e,f,g){"use strict";a=1e3;b=60*a;d=60*b;e=2e3;f=2e3;var h=2e3,i=2e3,j=2e3,k=d,l=d,m=1,n="Facebook And Instagram",o="error: empty charts",p="error: Top-level Relay query returned null",q="error: not enough data",r="not enough data",s="perf",t="products",u="collections",v={COLLECTIONS:"catalog_collections",PRODUCTS:"catalog_products"},w=[c("qpl")._(7092490,"3429"),c("qpl")._(7085819,"6371"),c("qpl")._(7079940,"4268"),c("qpl")._(7083971,"1966")],x=[].concat(w,[c("qpl")._(7081993,"554"),c("qpl")._(7085174,"624"),c("qpl")._(7083043,"3731"),c("qpl")._(7087889,"6962"),c("qpl")._(7083044,"547")]),y=[].concat(x.filter(function(a){return a!==c("qpl")._(7083043,"3731")&&a!==c("qpl")._(7085174,"624")}),[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),z=[].concat(w,[c("qpl")._(7081993,"554"),c("qpl")._(7085174,"624"),c("qpl")._(7083043,"3731"),c("qpl")._(7092951,"142")]),A=[].concat(z.filter(function(a){return a!==c("qpl")._(7083043,"3731")&&a!==c("qpl")._(7092951,"142")&&a!==c("qpl")._(7085174,"624")}),[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),B=[].concat(w,[c("qpl")._(7081993,"554"),c("qpl")._(7087889,"6962")]),C=[].concat(w,[c("qpl")._(7081993,"554"),c("qpl")._(7087889,"6962"),c("qpl")._(7081379,"1729"),c("qpl")._(7079214,"4458"),c("qpl")._(7082489,"80"),c("qpl")._(7086136,"82"),c("qpl")._(7080207,"81"),c("qpl")._(7082248,"6047"),c("qpl")._(7087833,"557")]),D=[].concat(B.filter(function(a){return a!==c("qpl")._(7083437,"4202")}),[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),E=[].concat(C,[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),F=[].concat(w,[c("qpl")._(7093497,"5075"),c("qpl")._(7083175,"7311"),c("qpl")._(7085498,"15910")]),G=[].concat(F,[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),H=[].concat(w,[c("qpl")._(7093901,"6795"),c("qpl")._(695939847,"779")]),I=[].concat(H,[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),J=[].concat(w,[c("qpl")._(7084786,"8619"),c("qpl")._(7081379,"1729"),c("qpl")._(7086483,"270"),c("qpl")._(7086957,"623"),c("qpl")._(7083044,"547")]),K=[].concat(J,[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),L=[].concat(w,[c("qpl")._(7087231,"41"),c("qpl")._(7086762,"48"),c("qpl")._(7088183,"123")]),M=[].concat(L,[c("qpl")._(7088916,"5463"),c("qpl")._(7092193,"5380")]),N="ASCENDING",O="DESCENDING";g.MILLISECONDS_IN_SECOND=a;g.MILLISECONDS_IN_MINUTE=b;g.MILLISECONDS_IN_HOUR=d;g.DELAY_FOR_PRODUCT_GROUP_DETAILS_IN_MS=e;g.DELAY_FOR_CARD_HOVER_IN_MS=f;g.DELAY_FOR_TABLE_HOVER_IN_MS=h;g.DELAY_FOR_TOOLTIP_HOVER_IN_MS=i;g.DELAY_FOR_CHART_HOVER_IN_MS=j;g.AYMT_TRACKING_EXPIRE_MS=k;g.REFERRER_TRACKING_EXPIRE_MS=l;g.INSTANCE_KEY_INITIAL=m;g.FACEBOOK_AND_INSTAGRAM=n;g.ERROR_EMPTY_CHARTS=o;g.ERROR_NULL_RELAY_RESPONSE=p;g.ERROR_NOT_ENOUGH_DATA=q;g.NOT_ENOUGH_DATA=r;g.SELLER_INSIGHTS_SECTION_PERF=s;g.SELLER_INSIGHTS_CATALOG_SUBTAB_PRODUCTS=t;g.SELLER_INSIGHTS_CATALOG_SUBTAB_COLLECTIONS=u;g.SELLER_INSIGHTS_CATALOG_SUBTAB=v;g.SELLER_INSIGHTS_V2_COMMON_EVENTS=w;g.SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS_FOR_ABANDON=x;g.SELLER_INSIGHTS_V2_PRODUCTS_TABLE_LOGGING_EVENTS=y;g.SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS_FOR_ABANDON=z;g.SELLER_INSIGHTS_V2_COLLECTIONS_TABLE_LOGGING_EVENTS=A;g.SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS_FOR_ABANDON=B;g.SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS_FOR_ABANDON=C;g.SELLER_INSIGHTS_V2_ENTRY_POINTS_LOGGING_EVENTS=D;g.SELLER_INSIGHTS_V2_PRODUCT_TAGGED_CONTENT_LOGGING_EVENTS=E;g.SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS_FOR_ABANDON=F;g.SELLER_INSIGHTS_V2_OVERVIEW_LOGGING_EVENTS=G;g.SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS_FOR_ABANDON=H;g.SELLER_INSIGHTS_V2_AUDIENCE_LOGGING_EVENTS=I;g.SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS_FOR_ABANDON=J;g.SELLER_INSIGHTS_V2_PERFORMANCE_LOGGING_EVENTS=K;g.SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS_FOR_ABANDON=L;g.SELLER_INSIGHTS_V2_OFFSITE_LOGGING_EVENTS=M;g.TABLE_SORTING_ASCENDING_DIRECTION=N;g.TABLE_SORTING_DESCENDING_DIRECTION=O}),98);
-----
LWICometUnifiedCreationWhatsAppSetup.react",["AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","CometTransientDialogProvider.react","LWICometCTWALoggerContext","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometPhoneNumberUtils","LWICometUnifiedCreationWhatsAppBizAppUpsellNotice.react","LWICometUnifiedCreationWhatsAppSetup_ctwaInfo.graphql","LWICometUnifiedCreationWhatsAppSetup_lwi.graphql","LWICometWhatsAppActiveStatusNotice.react","LWICometWhatsAppAdvertisingPolicyNotice.react","LWICometWhatsAppSoftMatchingDeprecationExplanation.react","WhatsAppNumberType","castToEnum","deferredLoadComponent","getJSEnumSafe","isStringNullOrEmpty","react","requireDeferred","useLWICometShowDialogOnWhatsAppBusinessUpsell","useLWICometWhatsAppSMBGetStarted","useLWILoggerContext","useLWINoticesContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useMemo,m=c("deferredLoadComponent")(c("requireDeferred")("LWICometCTAWhatsAppNumberInput.react").__setRef("LWICometUnifiedCreationWhatsAppSetup.react"));function a(a){var e=a.adAccountID,f=a.ctwaInfoRef,g=a.goal,n=a.isEditingWhatsAppNumber,o=a.isOnlyWhatsAppSelected,p=a.lwiRef,q=a.objective,r=a.onValueChange,s=a.onWhatsAppBizNumberLinked,t=a.productFlow,u=a.setIsEditingWhatsAppNumber,v=a.whatsAppNumber,w=a.whatsAppNumberType;a=a.whatsAppSelected;var x=c("useLWILoggerContext")(),y=x.pageID,z=x.targetID;x=l(function(){return{ad_account_id:e,ads_lwi_goal:c("castToEnum")(g,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),q),page_id:y,post_id:z,product_flow:t,source_app_id:d("LWICometLoggingConstants").APP_ID}},[e,g,q,y,t,z]);var A=d("LWICometPhoneNumberUtils").getCountryCodeFromPhone(v);if(n){var B=c("isStringNullOrEmpty")(v)?"add_whatsapp_number_click":"edit_whatsapp_number_click";c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},x,{event:B,whatsapp_country_code:A,whatsapp_number:v,whatsapp_number_type:c("castToEnum")(Number(w),c("WhatsAppNumberType"),0)}))}B=c("useLWINoticesContext")();var C=B.notices,D=B.removeGetResponseNotice;B=k(function(){d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.forEach(function(a){return D("CALL_TO_ACTION",a)})},[D]);c("useLWICometShowDialogOnWhatsAppBusinessUpsell")({countryCode:A,ctwaLoggerContextData:x,numberOfAds:0,onUpsellSuccess:B,whatsAppDisplayNumber:v,whatsAppNumber:v,whatsAppNumberType:w});c("useLWICometWhatsAppSMBGetStarted")({countryCode:A,ctwaLoggerContextData:x,onUpsellSuccess:B,whatsAppDisplayNumber:v,whatsAppNumber:v,whatsAppNumberType:w});A=C.CALL_TO_ACTION.some(function(a){return d("LWICometMessagingAppsSectionConstants").WhatsappSMBErrorCodes.includes(a.errorCode)});B=C.MESSAGING_APPS!=null;C=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometUnifiedCreationWhatsAppSetup_ctwaInfo.graphql"),f);f=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometUnifiedCreationWhatsAppSetup_lwi.graphql"),p);return j.jsxs(j.Fragment,{children:[n&&j.jsx(c("LWICometCTWALoggerContext").Provider,{value:x,children:j.jsx(c("CometTransientDialogProvider.react"),{children:j.jsx("div",{className:"x1swvt13 x1pi30zi x1y1aw1k",children:j.jsx(m,{ctwaInfoRef:C,forceToHaveCancelButton:!0,lwiRef:f,objective:q,onSuccess:function(){u(!1),s()},onValueChange:r,previouslyVerifiedNumber:v,setIsEditing:u})})})}),o&&j.jsx("div",{className:"xod5an3 x14vqqas x1swvt13 x1pi30zi",children:j.jsx(c("LWICometWhatsAppSoftMatchingDeprecationExplanation.react"),{})}),a&&!n&&j.jsxs("div",{className:"x1swvt13 x1pi30zi x1y1aw1k",children:[j.jsx(c("LWICometWhatsAppAdvertisingPolicyNotice.react"),{}),j.jsx(c("LWICometWhatsAppActiveStatusNotice.react"),{})]}),v!=null&&d("LWICometMessagingAppsSectionConstants").isWhatsAppConsumerNumber(w)&&!n&&!A&&!B&&j.jsx(c("LWICometUnifiedCreationWhatsAppBizAppUpsellNotice.react"),{objective:q,onWhatsAppBizNumberLinked:s,productFlow:t,whatsAppNumber:v,whatsAppNumberType:c("castToEnum")(w,c("WhatsAppNumberType"),0)})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,objective:a.objective}});g["default"]=e}),98);
-----
LWICometCTAWhatsAppNumberEditorWrapper.react",["AdproObjectiveType","AdsLWIGoal","CometTransientDialogProvider.react","LWICometCTAWhatsAppNumberEditor.react","LWICometCTWALoggerContext","LWICometLoggingConstants","castToEnum","getJSEnumSafe","react","useLWILoggerContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useMemo;function a(a){var b=a.adAccountID,e=a.disabled,f=a.goal,g=a.objective,j=a.onValueChange,k=a.productFlow,l=k===void 0?"boost_post_create_flow":k;k=a.showWhatsAppBizUpsell;a=a.value;var m=c("useLWILoggerContext")(),n=m.pageID,o=m.targetID;m=i(function(){return{ad_account_id:b,ads_lwi_goal:c("castToEnum")(f,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),g),page_id:n,post_id:o,product_flow:l,source_app_id:d("LWICometLoggingConstants").APP_ID}},[b,f,g,n,l,o]);return h.jsx(c("LWICometCTWALoggerContext").Provider,{value:m,children:h.jsx(c("CometTransientDialogProvider.react"),{children:h.jsx(c("LWICometCTAWhatsAppNumberEditor.react"),{disabled:e,objective:g,onValueChange:j,showWhatsAppBizUpsell:k,value:a})})})}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,objective:a.objective}});g["default"]=b}),98);
-----
LWICometAdPreviewIframe.react",["CometCompatBroker","CometFeedStoryGlimmer.react","LWICometAdPreviewGlimmer.react","LWICometLoggerContext","LWICometLoggingConstants","LegacyHidden","XAdPreviewController","areEqual","emptyFunction","getCompatIframeSource","react","useCometUniqueID","useCompatDialogEventListener"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useContext,k=b.useEffect,l=b.useLayoutEffect,m=b.useMemo,n=b.useRef,o=b.useState;function a(a){var b=a.adAccountID,e=a.adCreativeOptimizationType,f=a.adCreativeOptimizationValue,g=a.adFormat,p=a.creativeSpecForPreview,q=a.rightColumn;q=q===void 0?!1:q;a=a.rightWash;a=a===void 0?!1:a;var r=j(c("LWICometLoggerContext")),s=c("useCometUniqueID")(),t=n(new(c("CometCompatBroker"))()),u=o(null),v=u[0],w=u[1];u=i(function(a){if(a){a=a.data;if(typeof a==="object"){var b=a==null?void 0:a.format,c=a==null?void 0:a.height;a=a==null?void 0:a.width;b===g&&typeof c==="number"&&c>0&&typeof a==="number"&&a>0&&(c!==(v==null?void 0:v.height)||a!==(v==null?void 0:v.width))&&w({height:c,width:a})}}},[g,v]);var x=o(!0),y=x[0],z=x[1];c("useCompatDialogEventListener")(t.current,"preview-height",u);l(function(){t.current.init(c("emptyFunction"),s);return t.current.cleanup},[s]);x=m(function(){var a,i=c("XAdPreviewController").getURIBuilder().setFBID("ad_account_id",b).setEnum("ad_creative_optimization_type",e).setEnum("ad_creative_optimization_value",f).setEnum("ad_preview_format",g).setFBID("app_id",d("LWICometLoggingConstants").APP_ID).setString("creative_spec",p).setFBID("page_id",r==null?void 0:r.pageID).setEnum("product",r==null?void 0:r.product.toLowerCase()).setString("flow_id",r==null?void 0:r.flowID).setString("entry_point",r==null?void 0:r.entryPoint).getURI().toString();i=c("getCompatIframeSource")(i,s);return h.jsx("iframe",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x6ikm8r x10wlt62","data-testid":void 0,onLoad:function(){z(!1)},src:i,style:{height:Math.max((a=v==null?void 0:v.height)!=null?a:0,142),width:Math.max((a=v==null?void 0:v.width)!=null?a:380,320)}},i)},[b,e,f,g,v==null?void 0:v.height,v==null?void 0:v.width,p,s]);k(function(){z(!0)},[b,g,p]);return h.jsxs("div",{className:""+(a?" x78zum5 xl56j7k x121pien":""+(q?" x78zum5 xl56j7k x1cvmir6":" x78zum5 xl56j7k xy9ov0e")),children:[y&&(a?h.jsx(c("LWICometAdPreviewGlimmer.react"),{rightWash:!0}):h.jsx("div",{className:""+(q?" xh3wvx0 xh8yej3":""),children:h.jsx(c("CometFeedStoryGlimmer.react"),{})})),h.jsx(c("LegacyHidden"),{mode:y?"hidden":"visible",children:x})]})}a.displayName=a.name+" [from "+f.id+"]";e=h.memo(a,c("areEqual"));g["default"]=e}),98);
-----
LWICometAdPreviewIframeCarouselWrapper.react",["fbt","ix","CometRelay","LWICometACOPreviewEndCard.react","LWICometACOUtils","LWICometAdPreviewIframe.react","LWICometAdPreviewIframeCarouselWrapperQuery.graphql","LWICometLoggingConstants","LWIOmniButton.react","LWIOmniText.react","Locale","areEqual","fbicon","react","useCurrentDisplayMode"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useEffect,m=e.useState,n=360,o=336;function a(a){var e=a.adAccountID,f=a.creativeSpecForPreview,g=a.defaultAdFormat,q=a.defaultInstagramPreview,r=a.publisherPlatforms,s=a.rightColumn,t=s===void 0?!1:s;s=a.rightWash;var u=s===void 0?!1:s;a=r.includes("FACEBOOK");s=r.includes("INSTAGRAM");var v=["MOBILE_FEED_STANDARD"];r.length===0||a&&s?v=d("LWICometACOUtils").ADS_CREATIVE_OPTIMIZATION_INFO_ALLOWED_FORMATS:s&&(v=["INSTAGRAM_STORY","INSTAGRAM_STANDARD"]);a=d("CometRelay").useLazyLoadQuery(j!==void 0?j:j=b("LWICometAdPreviewIframeCarouselWrapperQuery.graphql"),{adAccountID:e,appID:d("LWICometLoggingConstants").APP_ID,creative:(r=f)!=null?r:"",formats:v});r=(s=a==null?void 0:a.ad_preview_aco_eligiblity_info)!=null?s:[];v=r.map(function(a){var b=a.ad_creative_optimization_option_value,c=a.ad_creative_optimization_type,d=a.format,e=a.ad_creative_optimization_rank;a=a.status;if(b==null||c==null||c===32||c===66||d==null||a==null||a==="INELIGIBLE")return null;else return{acoOptionValue:b,acoType:c,format:d,rank:e,status:a}}).filter(Boolean).sort(function(a,b){return((a=a==null?void 0:a.rank)!=null?a:0)<((a=b==null?void 0:b.rank)!=null?a:0)?1:-1});a=v.length;s=a>1;r=m(0);var w=r[0],x=r[1];l(function(){x(0)},[f]);a=q?v.slice(0,Math.min(d("LWICometACOUtils").LWI_ACO_MAX_PREVIEWS,v.length)):v.slice(0,Math.min(d("LWICometACOUtils").LWI_ACO_MAX_PREVIEWS,v.length)).sort(p());r=[k.jsx(c("LWICometAdPreviewIframe.react"),{adAccountID:e,adFormat:g,creativeSpecForPreview:f,rightColumn:t,rightWash:u},f)].concat(s?a.map(function(a){return k.jsx(c("LWICometAdPreviewIframe.react"),{adAccountID:e,adCreativeOptimizationType:a.acoType,adCreativeOptimizationValue:a.acoOptionValue,adFormat:a.format,creativeSpecForPreview:f,rightColumn:t,rightWash:u},a.acoType+a.acoOptionValue)}):[]);var y=s?r.length+1:r.length;q=c("useCurrentDisplayMode")()==="dark";return k.jsxs("div",{className:"x1n2onr6",children:[k.jsx("div",{className:""+(u?" x6ikm8r x10wlt62 x121pien":" x6ikm8r x10wlt62 x1cvmir6"),children:k.jsxs("div",{className:"x78zum5 x1unhpq9 x11xpdln x1qfuztq",style:{transform:"translateX("+(u?o-4:n)*w*(c("Locale").isRTL()?1:-1)+"px)",width:(u?o:n)*y},children:[r,s&&k.jsx(c("LWICometACOPreviewEndCard.react"),{onClickBackToBeginning:function(){return x(0)}})]})}),s&&w!==0&&k.jsx("div",{className:""+(u?" x10l6tqk xb0d1k3 xjbyncn":" x10l6tqk x1o7vzpr xjbyncn"),children:k.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("492485"),16),label:h._("u8fd4u56de"),labelIsHidden:!0,onPress:function(){return x(Math.max(w-1,0))},reduceEmphasis:!q,size:"large",type:"primary"})}),s&&w!==y-1&&k.jsx("div",{className:""+(u?" x10l6tqk x19rlkgl xjbyncn":" x10l6tqk xlxjkaf xjbyncn"),children:k.jsx(c("LWIOmniButton.react"),{icon:d("fbicon")._(i("492533"),16),label:h._("u7ee7u7eed"),labelIsHidden:!0,onPress:function(){return x(Math.min(w+1,y-1))},reduceEmphasis:!q,size:"large",type:"primary"})}),s&&y>0&&w
LWICometCTAWhatsAppBizAppUpsellCouponNotice.react",["fbt","ix","AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","IconSource","JSResourceForInteraction","LWICometCTAWhatsAppBizAppUpsellCouponNoticeRootQuery.graphql","LWICometConstants","LWICometFormatCurrency","LWICometGenericEventsLoggerLite","LWICometLoggingConstants","LWICometWhatsAppAccountTypeUtils","LWICometWhatsAppSendDownloadBusinessAppLinkMutation","LWIOmniButton.react","LWIOmniTextPairing.react","TetraIcon.react","castToEnum","emptyFunction","formatDate","getJSEnumSafe","lwiCometObjectiveReducer","react","useAdsCouponCometEnrollMutation","useCometLazyDialog","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useEffect,m=c("JSResourceForInteraction")("LWICometWhatsAppBusinessCouponDialog.react").__setRef("LWICometCTAWhatsAppBizAppUpsellCouponNotice.react"),n=j!==void 0?j:j=b("LWICometCTAWhatsAppBizAppUpsellCouponNoticeRootQuery.graphql");function a(a){var b=a.couponOffer,e=a.goal,f=a.initialCountryCode,g=a.legacyAdAccountID,j=a.objective,o=a.pixelID,p=a.productFlow,q=a.whatsAppNumber,r=a.whatsAppNumberType;a=c("useCometLazyDialog")(m);var s=a[0];a=c("useLWILoggerContext")();var t=a.pageID,u=a.targetID,v=c("useAdsCouponCometEnrollMutation")();a=d("CometRelay").useLazyLoadQuery(n,{adAccountID:g},{fetchPolicy:"network-only"});var w=b==null?void 0:b.couponValueInCents,x=b==null?void 0:b.currencyCode,y=b==null?void 0:b.promotionType,z=b==null?void 0:b.couponStatus,A=b==null?void 0:b.couponOfferID,B=b==null?void 0:b.expirationTime,C=w!=null&&x!=null&&y==="DOWNLOAD_WHATSAPP_BUSINESS_TO_GET_Y"&&(b==null?void 0:b.targetPageId)===t,D={ads_lwi_goal:c("castToEnum")(e,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),j),page_id:t,post_id:u,product_flow:p,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:q,whatsapp_number_type:r};l(function(){C&&c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},D,{event:"whatsapp_business_app_coupon_upsell_notice_shown"}))},[C]);var E=d("CometRelay").useRelayEnvironment(),F=c("useLWIReducers")([c("lwiCometObjectiveReducer")]);if(!C||x==null)return null;y=a==null?void 0:(y=a.ads_coupon_offer)==null?void 0:(b=y.whatsapp_coupon_offer_data)==null?void 0:b.lwi_whatsapp_coupon_impression_header_text;var G=a==null?void 0:(b=a.ads_coupon_offer)==null?void 0:(a=b.whatsapp_coupon_offer_data)==null?void 0:a.lwi_whatsapp_coupon_dialog_instruction_header_text,H=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},D,{event:"whatsapp_business_app_coupon_notice_clicked"})),s({couponDialogInstructionHeaderText:G,goal:c("castToEnum")(e,c("AdsLWIGoal"),null),initialCountryCode:f,objective:j,pageID:t,productFlow:p,whatsAppNumber:q,whatsAppNumberType:r},c("emptyFunction")),d("LWICometWhatsAppAccountTypeUtils").updateOnWhatsAppAccountUpgrade(E,t,function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},D,{event:"whatsapp_account_upgraded_to_business_coupon_flow"})),d("CometRelay").commitLocalUpdate(E,function(a){a=a.get("client:root:lwi");a==null?void 0:a.setValue("MESSAGES","infer_adpro_objective",{inferred_goal_input:{ad_account_id:g,cta:{type:"WHATSAPP_MESSAGE"},page_id:t,pixel_id:o,target_id:u}})}),F({objective:"MESSAGES",offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"})})},I=function(){z==="ACTIVE_IMPRESSION"&&v({coupon_offer_id:A,placement:"lwi_ctwa_wa_smb_adoption_coupon"},null,null,null,null,"ctwa_smb_adoption_coupon",null,null,function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_coupon_enroll_success",page_id:t,product_flow:p,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:q,whatsapp_number_type:r})})},J=function(){d("LWICometGenericEventsLoggerLite").log({event:"whatsapp_business_app_download_link_send_click",page_id:t}),c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_coupon_flow_click",page_id:t,product_flow:p,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:q,whatsapp_number_type:r}),d("LWICometWhatsAppSendDownloadBusinessAppLinkMutation").sendDownloadBusinessAppLink({pageID:t,whatsappNumber:q},E,function(a){a.send_whatsapp_business_download_link===!0?c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_coupon_flow_success",page_id:t,product_flow:p,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:q,whatsapp_number_type:r}):c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_coupon_flow_failure",page_id:t,product_flow:p,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:q,whatsapp_number_type:r})})};b=function(){var a=B!=null?new Date(B*1e3):null;return h._("u66f4u65b0u4e3a WhatsApp Business u5e94u7528u5373u53efu83b7u5f97u514du8d39u7684u5e7fu544au62b5u7528u91d1u3002u4f60u53efu4ee5u5728{coupon expiration date in format "M j, Y" e.g. "Mar 25, 2021"}u524duff0cu9886u53d6u5e7fu544au62b5u7528u91d1u5e76u901au8fc7 WhatsApp Business u4e1au52a1u5e10u6237u521bu5efa WhatsApp u5e7fu544au3002",[h._param("coupon expiration date in format "M j, Y" e.g. "Mar 25, 2021"",c("formatDate")(a,"M j, Y"))])};a=function(){return h._("u4f7fu7528 WhatsApp Business u4e1au52a1u5e10u6237u6295u653eu5e7fu544auff0cu5373u53efu83b7u5f97{coupon value}u5e7fu544au62b5u7528u91d1",[h._param("coupon value",d("LWICometFormatCurrency").getLWIFormatCurrency(w,x,d("LWICometConstants").DEFAULT_CURRENCY_OPTIONS))])};var K=function(){return h._("u5f00u59cb")};return k.jsx("div",{className:"x1lq5wgf xgqcy7u x30kzoy x9jhf4c xo7yn3p x9f619 x1e56ztr xktsk01 x1d52u69 x1xmf6yo",children:k.jsxs("div",{className:"x1lcm9me x1yr5g0i xrt01vj x10y3i5r x78zum5 xdt5ytf x1a02dak x1l90r2v",children:[k.jsxs("div",{className:"x1qjc9v5 x78zum5 x1q0g3np x1swvt13 x1pi30zi",children:[k.jsx("div",{className:"xq8finb xw7yly9",children:k.jsx(c("TetraIcon.react"),{icon:new(c("IconSource"))("FB",i("1660498"),20)})}),k.jsx("div",{className:"xod5an3 xw7yly9",children:k.jsx(c("LWIOmniTextPairing.react"),{body:b(),headline:(b=y)!=null?b:a(),level:4})})]}),k.jsx("div",{className:"x78zum5 x1q0g3np xktsk01 x1d52u69",children:k.jsx(c("LWIOmniButton.react"),{label:K(),onPress:function(){J(),I(),H()},reduceEmphasis:!0,size:"medium",type:"primary"})})]})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{couponOffer:a.adsCouponOffer,goal:a.goal,legacyAdAccountID:a.adAccountData.legacyAccountID,pixelID:a.pixelID}});g["default"]=e}),98);
-----
LWICometCTAWhatsAppBizAppUpsellNotice.react",["fbt","AdproObjectiveType","AdsLWIGoal","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometRelay","CometRowItem.react","JSResourceForInteraction","LWICometCTAMultiStepVerificationDialogWrapper.entrypoint","LWICometLoggingConstants","LWICometMessagingAppsSectionConstants","LWICometNoticeCard.react","LWICometRow.react","LWICometWhatsAppAccountExperiments","LWICometWhatsAppAccountTypeUtils","LWICometWhatsAppPageExperiments","LWIOmniButton.react","LWIOmniText.react","QE2Logger","castToEnum","emptyFunction","getJSEnumSafe","lwiCometObjectiveReducer","react","useCometEntryPointDialog","useCometLazyDialog","useLWILoggerContext","useLWINoticesContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useEffect,k=b.useMemo,l=c("JSResourceForInteraction")("LWICometWhatsAppBusinessUpsellDialog.react").__setRef("LWICometCTAWhatsAppBizAppUpsellNotice.react");function a(a){var b=a.adAccountID,e=a.countryCode,f=a.goal,g=a.legacyAdAccountID,m=a.objective,n=a.pixelID,o=a.productFlow,p=a.showAlternativeUpsellContent,q=a.upsellContentType,r=q===void 0?d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Control:q,s=a.whatsAppNumber,t=a.whatsAppNumberType;q=c("useCometLazyDialog")(l);var u=q[0];a=c("useLWILoggerContext")();var v=a.pageID,w=a.targetID;q=k(function(){return{ad_account_id:b,ads_lwi_goal:c("castToEnum")(f,c("AdsLWIGoal"),null),objective:c("getJSEnumSafe")(c("AdproObjectiveType"),m),page_id:v,post_id:w,product_flow:o,source_app_id:d("LWICometLoggingConstants").APP_ID}},[b,f,m,v,o,w]);a=c("useCometEntryPointDialog")(c("LWICometCTAMultiStepVerificationDialogWrapper.entrypoint"),{pageID:v});var x=a[0],y=r!==d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Control,z=babelHelpers["extends"]({},q,{whatsapp_country_code:e,whatsapp_number:s,whatsapp_number_type:t,whatsapp_phone_number:s});a=function(a){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},z,{event:a}))};var A={ctwaLoggerContextData:q,logStepChange:a,numberOfAds:0,onVerificationSuccess:c("emptyFunction"),pageID:v,previouslyVerifiedNumber:s,requireBusinessNumber:!0,sendVerificationCodeAndNextStep:c("emptyFunction"),start:"BIZ_INSTALL"};j(function(){y?c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},z,{event:"whatsapp_business_app_modified_upsell_notice_shown",event_info:r})):c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},z,{event:"whatsapp_business_app_usell_notice_shown"}))},[y]);var B=d("CometRelay").useRelayEnvironment(),C=c("useLWIReducers")([c("lwiCometObjectiveReducer")]);q=c("useLWINoticesContext")();a=q.notices;q=d("LWICometWhatsAppAccountExperiments").getIsWABizEnforcingExperimentEnabled(f,d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(t==null?void 0:t.toString()),null,"boost_post_create_flow",a.CALL_TO_ACTION);if(q)return null;a=function(){r!==d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Control?(c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},z,{event:"whatsapp_business_app_modified_upsell_notice_clicked",event_info:r})),x(babelHelpers["extends"]({},A,{countryCode:e,whatsappDisplayNumberWithCountryCode:s,whatsappNumber:s,whatsappNumberWithCountryCode:s}))):(c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},z,{event:"whatsapp_business_app_usell_notice_clicked"})),u({goal:c("castToEnum")(f,c("AdsLWIGoal"),null),objective:m,pageID:v,productFlow:o,showAlternativeUpsellContent:p,whatsAppNumber:s,whatsAppNumberType:t},c("emptyFunction"))),d("LWICometWhatsAppAccountTypeUtils").updateOnWhatsAppAccountUpgrade(B,v,function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log(babelHelpers["extends"]({},z,{event:"whatsapp_account_upgraded_to_business"})),d("CometRelay").commitLocalUpdate(B,function(a){a=a.get("client:root:lwi");a==null?void 0:a.setValue("MESSAGES","infer_adpro_objective",{inferred_goal_input:{ad_account_id:g,cta:{type:"WHATSAPP_MESSAGE"},page_id:v,pixel_id:n,target_id:w}})}),C({objective:"MESSAGES",offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"})})};q=function(){switch(r){case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Control:return p===!0?h._("u5b89u88c5 WhatsApp Business u540euff0cu4f60u7684u5e7fu544au5c06u8986u76d6u66f4u53efu80fdu53d1u6d88u606fu7ed9u4f60u7684u7528u6237u3002"):h._("u5982u679cu4e0du4f7fu7528 WhatsApp Business u5e94u7528uff0cu4f60u7684u5e7fu544au5c06u7740u91cdu83b7u5f97u53d7u4f17u7684u5fc3u60c5u3001u8bc4u8bbau548cu5206u4eabuff0cu800cu4e0du662fu4ed6u4eecu7684u6d88u606fu3002");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var1:return h._("WhatsApp Business u8ba9u4f60u514du8d39u8bbfu95eeu5fc5u8981u5de5u5177uff0cu5e2eu52a9u4f60u8d62u5f97u5ba2u6237u4fe1u4efbu3001u5efau7acbu957fu4e45u5ba2u6237u5173u7cfbu3002");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var2:return h._("u8d85u8fc7 5000 u4e07u7684u7c7bu4f3cu7528u6237u90fdu5728u4f7fu7528 WhatsApp Business u5e94u7528u3002u7acbu5373u66f4u65b0uff0cu65e0u9700u66f4u6539u7535u8bddu53f7u7801uff0cu5e76u53efu514du8d39u8bbfu95eeu5fc5u8981u4e1au52a1u5de5u5177u3002");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var3:return h._("u5f00u53d1u66f4u591au6f5cu5728u5ba2u6237uff0cu4e14u4e0du7528u66f4u6539 WhatsApp u7535u8bddu53f7u7801u6216u5931u53bbu4efbu4f55u804au5929u3001u5a92u4f53u6587u4ef6u6216u8054u7cfbu4ebau4fe1u606fu3002u83b7u53d6 WhatsApp Business u5e94u7528u5b89u88c5u94feu63a5u3002")}};var D=function(){switch(r){case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Control:return h._("u4e0bu8f7d WhatsApp Business");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var1:return h._("u901au8fc7 WhatsApp u5bf9u8bddu63a8u52a8u9500u91cf");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var2:return h._("u901au8fc7 WhatsApp Business u5f00u53d1u6f5cu5728u5ba2u6237");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var3:return h._("u7ba1u7406u4f60u7684u6d88u606fu5e76u63a8u8fdbu4e1au589eu957fu3002")}},E=function(){switch(r){case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Control:return h._("u589eu52a0u6d88u606fu4e92u52a8u91cf");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var1:return h._("u8bd5u8bd5 WhatsApp Business");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var2:return h._("u66f4u65b0u4e3a WhatsApp Business");case d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var3:return h._("u53d1u9001u94feu63a5u5230 WhatsApp")}},F=function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_usell_notice_clicked",page_id:v,product_flow:"automated_ads",source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_country_code:e,whatsapp_number:s,whatsapp_number_type:t}),u({pageID:v,productFlow:"automated_ads",whatsAppNumber:s},c("emptyFunction"))};F=o==="automated_ads"?i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"x1yztbdb",children:i.jsx(c("LWIOmniText.react"),{testid:void 0,type:"body3",children:d("LWICometMessagingAppsSectionConstants").automatedAdsWASMBUpsellBody})}),i.jsx("div",{children:i.jsx(c("LWIOmniButton.react"),{label:h._("u4e0bu8f7d WhatsApp Business"),onPress:F,type:"secondary"})})]}):i.jsx(c("LWICometNoticeCard.react"),{body:q(),category:"RECOMMENDATION",ctaButton:{primaryButton:{label:E(),onPress:a,type:"secondary"}},header:D(),testid:void 0});var G=r===d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var1||r===d("LWICometWhatsAppPageExperiments").CTWALWIUpsellType.Var2?h._("u66f4u65b0u4e3a WhatsApp Businessuff0cu4f60u4e0du4f1au5931u53bbu4efbu4f55u804au5929u3001u5a92u4f53u6587u4ef6u6216u8054u7cfbu4ebau4fe1u606fu3002"):null;q=y?i.jsx(c("LWICometNoticeCard.react"),{body:q(),category:"WHATSAPP_BUSINESS",contextualMessageFooter:G,ctaButton:{primaryButton:{label:E(),onPress:a,type:"primary"}},header:D(),isPrimary:!0,testid:void 0}):F;v!=null&&d("QE2Logger").logExposureForPage("wa_smb_upsell_notice_lwi",v);return i.jsx(c("LWICometRow.react"),{children:i.jsx(c("CometRowItem.react"),{expanding:!0,children:q})})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,goal:a.goal,legacyAdAccountID:a.adAccountData.legacyAccountID,pixelID:a.pixelID}});g["default"]=e}),98);
-----
useLWICometAppealRejectedAdAction",["AdIntegrityAppealAction","AdIntegrityValidationBannerState","CometRelay","LWICometLoggingConstants","react","useAdsIntegrityAppeal","useLWICometAppealRejectedAdAction_actions.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react").useReducer;function a(a,e,f,g){f=d("CometRelay").useFragment(h!==void 0?h:h=b("useLWICometAppealRejectedAdAction_actions.graphql"),f);g=d("AdIntegrityValidationBannerState").getInitialState((f=f==null?void 0:f.actions)!=null?f:[],(f=g)!=null?f:[]);f=i(d("AdIntegrityValidationBannerState").reducer,g);g=f[0];f=f[1];g=c("AdIntegrityAppealAction").getActionPropertiesFromState(g);return c("useAdsIntegrityAppeal")(g,d("LWICometLoggingConstants").APP_ID,f,(g=a)!=null?g:"",e)}g.useLWICometAppealRejectedAdOnPress=a}),98);
-----
LWICometSubmissionSectionView.react",["fbt","AdproObjectiveType","AdsLWIGoal","AdsReviewCometIPCUtils","BillingWizardNameUtils","CometLink.react","CometRelay","CometRow.react","CometRowItem.react","ContentRefComet","LWIBoostedComponentFalcoEvenUtils","LWICometAdsRejectionUtils","LWICometDialogContext","LWICometDraftDialogUtils","LWICometLoggerUtils","LWICometLoggingConstants","LWICometMutationUtils","LWICometNoticesUtils","LWICometOptionalLoggingDataContext","LWICometPostAdDialogWrapper.react","LWICometProductUtils","LWICometSpecContext","LWICometSubmissionSectionStrings","LWICometTermsAndConditions.react","LWIOmniButton.react","LWIOmniButtonGroup.react","LWIOmniText.react","QPLUserFlow","areEqual","castToEnum","cometGetCurrencyOffset","cometPushToast","cr:11467","cr:3236","cr:577","cr:578","cr:579","cr:891","getJSEnumSafe","gkx","qpl","react","recoverableViolation","requireDeferred","useBillingMaybeOpenWizard","useLWICometContextualDataContext","useLWICometCurrentSpec","useLWICometUIStatusContext","useLWILoggerContext","useLWINoticesContext","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,aa=e.useMemo,m=e.useRef,ba=e.useState,n=c("requireDeferred")("LWICometFalcoEvent").__setRef("LWICometSubmissionSectionView.react"),ca=i.memo(function(a){return i.jsx(c("CometLink.react"),{display:"inline",href:a.href,target:"_blank",testid:void 0,children:i.jsx(c("LWIOmniText.react"),{color:"blueLink",type:"bodyLink4",children:a.linkText})})}),da={auxContent:{alignItems:"x6s0dn4",display:"x78zum5",marginEnd:"xq8finb",$$css:!0},needHelpItem:{paddingEnd:"xn6708d",$$css:!0},rightColumnSubmitButton:{paddingTop:"xz9dl7a",$$css:!0},rootTwoColumns:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},rootTwoColumnsBizWebFullScreen:{width:"xh8yej3",$$css:!0},rootTwoColumnsWithinDialog:{paddingBottom:"xsag5q8",paddingTop:"xz9dl7a",$$css:!0},separator:{backgroundColor:"x15elzd",height:"x1kpxq89",marginEnd:"x1emribx",marginStart:"x1i64zmx",width:"x1i1rx1s",$$css:!0},stepperAuxContent:{alignItems:"x7a106z",display:"x78zum5",marginEnd:"x1qi5vpy",$$css:!0}};function a(a){var e=a.adAccountData.legacyAccountID,f=a.adCreationDialogButtonPropsOverride,g=a.additionalBoostTargetIDs,ea=a.additionalRightColumnTermsContent,o=a.assetFeedSpecPlus,p=a.audienceData,fa=a.backgroundImageOverride,q=a.boostButtonLabel,r=a.budget,s=a.budgetType,ga=a.confirmationMessageOverride,ha=a.confirmationMessageTitleOverride,t=a.creative,u=a.currency,v=a.disableSubmitButton;v=v===void 0?!1:v;var w=a.durationInDays,x=a.goal,y=a.hideAdCenterLinkInAdCreationDialog;y=y===void 0?!1:y;var ia=a.hideBackgroundImageInAdCreationDialog,z=a.objective,A=a.onAudienceSpecsNoChange,B=a.onMutationSubmit,C=a.onPreSubmit,D=a.onSpecsNoChange,E=a.onUpdateAdAccount,ja=a.postAdDialogType,F=a.regulatedCategories,G=a.secondaryButton,ka=a.shouldCheckAutoBoostEntry,H=a.shouldCheckSpecsChange;H=H===void 0?!1:H;var I=a.shouldLogLowQualitySubmits,la=I===void 0?!1:I;I=a.showConfirmationBillingList;var J=a.specialAdCategoryCountries,K=a.stepperFlow;K=K===void 0?!1:K;var L=a.submissionAction,ma=a.submissionIndicatorOverride,M=a.suggestedCategory,na=a.tocOverride,N=a.useRightColumnSubmitButton;N=N===void 0?!1:N;a=a.withCouponEnrolled;a=a===void 0?!1:a;var O=L==="edit",P=ba(L),oa=P[0],Q=P[1],R=c("useLWINoticesContext")();P=ba(!1);P[0];var S=P[1],T=c("useLWILoggerContext")(),U=k(c("LWICometOptionalLoggingDataContext")),V=c("useLWICometCurrentSpec")();P=k(c("LWICometDialogContext"));var pa=b("cr:579")();s=r!=null&&s==="DAILY_BUDGET"&&w!=null?r*w:r;w=c("cometGetCurrencyOffset")(u)||100;r=w!=null?String(parseInt(s,10)/w):s;w=d("BillingWizardNameUtils").useBillingRequiredWizardName(e,r.toString(),u);s=j(function(){d("LWICometLoggerUtils").logWithLoggerAndSpecContext(T,V,{action:"receive",context:"payment",event:"complete_payment_billing_wizard",flow:T.flow,side:"client_side"}),c("QPLUserFlow").endSuccess(c("qpl")._(316544852,"610")),E(),C!=null?C(B):B()},[T,B,C,E,V]);r=j(function(){d("LWICometLoggerUtils").logWithLoggerAndSpecContext(T,V,{action:"enter",context:"payment",event:"open_payments_flow",flow:T.flow,side:"client_side"})},[T,V]);u=j(function(){d("LWICometLoggerUtils").logWithLoggerAndSpecContext(T,V,{action:"add",context:"payment",event:"payment_method_added",flow:T.flow,side:"client_side"})},[T,V]);w=d("useBillingMaybeOpenWizard").useBillingMaybeOpenWizardWithFragment(e,w,{entryPoint:"lwi_comet",flowID:T.flowID},{onBillingWizardComplete:u,onClose:E,onComplete:s,onOpen:r,otherProps:{withCouponEnrolled:a}});var qa=w[0];u=j(function(){var a;M!=null&&d("LWICometAdsRejectionUtils").logAdsRejectionResubmit(T.entryPoint,T.flow,T.flowID,T.pageID,d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product),M,F.toString());la&&d("LWICometAdsRejectionUtils").logAdsRejectionResubmit(T.entryPoint,T.flow,T.flowID,T.pageID,d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product));V.startTime!=null&&n.onReady(function(a){a.log({entry_point:T.entryPoint,event:"submit_scheduled_ad",flow:T.flow,flow_id:sa,page_id:ta,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(ua),side:"user_action"})});d("LWICometLoggerUtils").logWithLoggerAndSpecContext(T,V,{action:T.flow==="create"?"create":"edit",context:"ad",creative_spec:JSON.stringify(V.adgroupSpecs),event:"submit_flow_click",flow:T.flow,number_of_bulk_boost_products:((a=g)!=null?a:[]).length+1,side:"user_action",targeting_spec:JSON.stringify(V.audienceData.targetSpec)});c("QPLUserFlow").addPoint(c("qpl")._(316544852,"610"),"boost_page_boost_button");(U==null?void 0:U.ipcDisapprovalReasons)&&d("AdsReviewCometIPCUtils").logAdgroupCreateAttempt(e,V.selectedAdgroupID,d("LWICometLoggingConstants").APP_ID,"LWI_WWW",U.ipcDisapprovalReasons,T.targetID,T.flowID);qa()},[M,T,F,la,V,g,U==null?void 0:U.ipcDisapprovalReasons,e,qa]);s=k(c("LWICometSpecContext"));var W=s.current;r=s.history;a=d("LWICometMutationUtils").getCreationMutationData({loggerContext:T,optionalLoggingData:U,spec:W,specHistory:r});var ra=a.input.creation_spec,sa=T.flowID,ta=T.pageID,ua=T.product,va=T.targetID;w=c("useLWICometUIStatusContext")();var X=w.setPostAdDialogStatus;s=w.videoProcessingStatus;var wa=m(F),xa=m(J),Y=m(p),ya=m(o),za=m(t),Aa=aa(function(){var a;return c("areEqual")(wa.current,F)&&c("areEqual")(xa.current,J)&&c("areEqual")(Y.current,p)&&(ya.current!=null?c("areEqual")(ya.current,o):c("areEqual")((a=za.current)==null?void 0:(a=a.object_story_spec)==null?void 0:a.link_data,t==null?void 0:(a=t.object_story_spec)==null?void 0:a.link_data))},[ya,o,Y,p,za,t,wa,xa,F,J]);l(function(){A&&A(c("areEqual")(Y.current,p))},[A,p,Y]);l(function(){D&&D(Aa)},[D,Aa]);var Z=R.isValidating||H&&Aa||d("LWICometNoticesUtils").hasErrorTypeNotices(R.notices)||s==="PROCESSING"||v,$=(r=c("getJSEnumSafe")(c("AdproObjectiveType"),z))!=null?r:0;l(function(){Z||n.onReady(function(a){a.log({ad_account_id:e,ads_lwi_goal:c("castToEnum")(x,c("AdsLWIGoal"),null),context:"flow",entry_point:T.entryPoint,event:"promote_ready",flow:T.flow,flow_id:T.flowID,lower_estimate:d("LWIBoostedComponentFalcoEvenUtils").safeNumConversionLWIFalco(U==null?void 0:(a=U.reachEstimation)==null?void 0:a.lower_estimate),objective_override:$.toString(),page_id:T.pageID,post_id:T.targetID,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product),side:"client_side",upper_estimate:d("LWIBoostedComponentFalcoEvenUtils").safeNumConversionLWIFalco(U==null?void 0:(a=U.reachEstimation)==null?void 0:a.upper_estimate)})})},[Z,x,e,T.entryPoint,T.flow,T.flowID,T.pageID,T.product,T.targetID,$,U==null?void 0:(a=U.reachEstimation)==null?void 0:a.lower_estimate,U==null?void 0:(w=U.reachEstimation)==null?void 0:w.upper_estimate]);l(function(){!R.isValidating&&Z&&n.onReady(function(a){a.log({ad_account_id:e,ads_lwi_goal:c("castToEnum")(x,c("AdsLWIGoal"),null),context:"flow",entry_point:T.entryPoint,event:"promote_not_ready",extra_data:d("LWIBoostedComponentFalcoEvenUtils").getFalcoExtraData(d("LWICometNoticesUtils").getErrorTypeNoticesAsObject(R.notices)),flow:T.flow,flow_id:T.flowID,objective_override:$.toString(),page_id:T.pageID,post_id:T.targetID,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(T.product),side:"client_side"})})},[Z,x,e,T.entryPoint,T.flow,T.flowID,T.pageID,T.product,T.targetID,R.isValidating,R.notices,$]);b("cr:891")();var Ba=d("CometRelay").useRelayEnvironment(),Ca=j(function(){X("SUBMITTING"),Q("save_draft"),S(!0)},[X,Q,S]),Da=j(function(){d("cometPushToast").cometPushSimpleToast(h._("u4f60u7684u8349u7a3fu6709u6548u671fu4e3a 7 u5929u3002u4f60u968fu65f6u53efu4ee5u4f7fu7528u4efbu4f55u8bbeu5907u5b8cu6210u8349u7a3fu3002")),Q&&Q(null),S&&S(!1),X&&X("SUCCEEDED")},[X,Q,S]),Ea=j(function(){d("cometPushToast").cometPushSimpleToast(h._("u8fd9u4f1au66ffu6362u4f60u4fddu5b58u7684u5e7fu544au8349u7a3fu3002u4f60u7684u8349u7a3fu6709u6548u671fu4e3a 7 u5929u3002u4f60u968fu65f6u53efu4ee5u4f7fu7528u4efbu4f55u8bbeu5907u5b8cu6210u8349u7a3fu3002")),Q&&Q(null),S&&S(!1),X&&X("SUCCEEDED")},[X,Q,S]),Fa=j(function(){Q&&Q(null),S&&S(!1),X&&X("FAILED"),c("recoverableViolation")("Failed to create draft","pages_lwi")},[X,Q,S]),Ga=j(function(){Q&&Q(null),S&&S(!1),X&&X("FAILED"),c("recoverableViolation")("Failed to update draft","pages_lwi")},[X,Q,S]);H=j(function(){var a={beforeSetting:Ca,environment:Ba,existingDraftID:W.draftID,flowID:sa,onCompletedCreate:Da,onCompletedUpdate:Ea,onErrorCreate:Fa,onErrorUpdate:Ga,pageID:ta,product:ua,spec:ra,targetID:va};d("LWICometDraftDialogUtils").draftMutation(a)},[Ca,ra,Ba,sa,Da,Ea,Fa,Ga,ta,ua,W.draftID,va]);s=c("useLWICometContextualDataContext")();v=c("gkx")("1745416")&&!O&&!s.postInfo.isScheduledPost;pa!=null&&b("cr:577")!=null?r=i.jsx(b("cr:577"),{boostButtonLabel:q,disabled:Z,onPress:u,onSaveDraftPress:H,secondaryButton:G,showDraftButton:!1}):G!=null?r=i.jsx(c("LWIOmniButtonGroup.react"),{direction:"backward",paddingHorizontal:0,paddingTop:0,primary:{disabled:Z,label:q,onPress:u,testid:"lwi_submit_button",type:"primary"},secondary:G}):v&&b("cr:3236")!=null?r=i.jsx(b("cr:3236"),{boostButtonLabel:q,disabled:Z,onPress:u,onSaveDraftPress:H,showDraftButton:!1}):r=i.jsx(c("LWIOmniButton.react"),{disabled:Z,label:q,onPress:u,padding:"wide",testid:void 0,type:"primary"});r=b("cr:11467")!=null?i.jsxs(c("CometRow.react"),{spacing:4,verticalAlign:"center",children:[i.jsx(c("CometRowItem.react"),{xstyle:da.needHelpItem,children:i.jsx(b("cr:11467"),{canShowPulse:!0,text:h._("u9700u8981u5e2eu52a9uff1f"),withIcon:!0})}),i.jsx(c("CometRowItem.react"),{children:r})]}):r;a=aa(function(){var a;return V.startTime!=null&&V.draftID!=null?"save":O?L:(a=oa)!=null?a:L},[oa,O,V.draftID,V.startTime,L]);w=i.jsx(ca,{href:d("ContentRefComet").get("HELP_CENTER","LWI_SUBMISSION_SECTION"),linkText:d("LWICometSubmissionSectionStrings").HELP_CENTER_LABEL});s=N?i.jsxs(i.Fragment,{children:[r,ea,i.jsx("div",{className:"x6s0dn4 x78zum5 xq8finb xz9dl7a",children:i.jsxs(c("LWIOmniText.react"),{type:"body4",children:[i.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:q,objective:z,tocOverride:na}),!c("gkx")("3865")&&h._("{separator}{Help Center}",[h._param("separator"," | "),h._param("Help Center",w)])]})})]}):i.jsx(b("cr:578"),{buttonArea:r,leftContent:i.jsxs("div",{className:K?"x7a106z x78zum5 x1qi5vpy":"x6s0dn4 x78zum5 xq8finb",children:[i.jsx(c("LWIOmniText.react"),{type:"body4",children:i.jsx(c("LWICometTermsAndConditions.react"),{buttonLabel:q,objective:z,tocOverride:na})}),!c("gkx")("3865")&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"x15elzd x1kpxq89 x1emribx x1i64zmx x1i1rx1s"}),w]})]})});return i.jsxs("div",{className:""+((P!=null?" xsag5q8 xz9dl7a":" xsag5q8 xz9dl7a")+(pa!=null?" xh8yej3":""+(P!=null?"":""))),"data-testid":void 0,children:[s,i.jsx(c("LWICometPostAdDialogWrapper.react"),{additionalBoostTargetIDs:g,backgroundImageOverride:fa,buttonPropsOverride:f,confirmationMessageOverride:ga,confirmationMessageTitleOverride:ha,hideAdCenterLink:y,hideBackgroundImage:ia,postAdDialogType:ja,shouldCheckAutoBoostEntry:ka,showConfirmationBillingList:I,submissionAction:a,submissionIndicatorOverride:ma})]})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountData:a.adAccountData,assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,audienceData:a.audienceData,budget:a.budgetData.budget,budgetType:a.budgetData.budgetType,creative:a.adgroupSpecs[a.selectedAdgroupID].creative,currency:a.adAccountData.currency,durationInDays:a.durationInDays,goal:a.goal,objective:a.objective,regulatedCategories:a.regulatedCategories,specialAdCategoryCountries:a.specialAdCategoryCountries}});g["default"]=e}),98);
-----
AdIntegrityValidationBanner.react",["AdIntegrityAppealAction","AdIntegrityHECCertificationAction","AdIntegrityTextRMRAction","AdIntegrityValidationBannerFooter.react","AdIntegrityValidationBannerState","AdIntegrityValidationBanner_actions.graphql","AdIntegrityValidationBanner_content.graphql","AdIntegrityValidationLoggingConstants","AdsReviewCometIPCUtils","CometExternalLinkedEntityRenderer","CometInlineEntityRenderer","CometRelay","CometTextWithEntitiesRelay.react","JSResourceForInteraction","LWICometNoticeCard.react","LWICometOptionalLoggingDataContext","LWICometProductUtils","lwiCometManualReviewRequestedReducer","react","requireDeferred","useAdIntegrityCertifyMutation","useAdsIntegrityAppeal","useAdsIntegrityCometValidationBannerRenderEventLogger","useCometLazyDialog","useLWILoggerContext","useLWIReducers"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useEffect,n=e.useReducer,o=c("requireDeferred")("LWICometFalcoEvent").__setRef("AdIntegrityValidationBanner.react"),p=c("JSResourceForInteraction")("AdsIntegrityCertificationDialogResource.react").__setRef("AdIntegrityValidationBanner.react"),q="USER_CERTIFICATION";function r(a){var c=d("CometRelay").useFragment(h!==void 0?h:h=b("AdIntegrityValidationBanner_content.graphql"),a.content);a=d("CometRelay").useFragment(i!==void 0?i:i=b("AdIntegrityValidationBanner_actions.graphql"),a.actions);return[c,a]}function a(a){var b,e=c("useLWILoggerContext")(),f=e.entryPoint,g=e.flow,h=e.flowID,i=e.mergeOptionalLoggingData,s=e.pageID,t=e.product,u=e.targetID,v=l(c("LWICometOptionalLoggingDataContext"));e=r(a);var w=e[0];e=e[1];var x=w.disapproval_reason===q;c("useAdsIntegrityCometValidationBannerRenderEventLogger")(a.adCreationStage,a.appID,u,a.callsite,x?null:w.disapproval_reason,w.disapproval_reason_tier,h,a.legacyAccountID,a.selectedAdgroupID);m(function(){if(w.disapproval_reason==null||(v==null?void 0:v.ipcDisapprovalReasons)!=null&&v.ipcDisapprovalReasons.has(w.disapproval_reason)||x)return;(v==null?void 0:v.ipcDisapprovalReasons)==null?i({ipcDisapprovalReasons:new Set([w.disapproval_reason])}):(v.ipcDisapprovalReasons.add(w.disapproval_reason),i({ipcDisapprovalReasons:v.ipcDisapprovalReasons}))},[w.disapproval_reason,i,v==null?void 0:v.ipcDisapprovalReasons,x]);m(function(){if(w.disapproval_reason==null||w.disapproval_reason_tier==null||x)return;o.onReady(function(b){b.log({action:"render",ad_account_id:a.legacyAccountID,context:"validation",entry_point:f,event:"render_warning_message",flow:g,flow_id:h,page_id:s,post_id:u,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(t),side:"client_side"})})},[w.disapproval_reason,w.disapproval_reason_tier,f,g,h,s,t,a.legacyAccountID,x,u]);var y=k(function(b){d("AdsReviewCometIPCUtils").logUnifiedBannerUIEvent(a.legacyAccountID,a.adCreationStage,a.selectedAdgroupID,a.appID,a.callsite,w.disapproval_reason||"UNKNOWN",b,!0,u,h)},[w.disapproval_reason,h,a.adCreationStage,a.appID,u,a.callsite,a.legacyAccountID,a.selectedAdgroupID]);e=d("AdIntegrityValidationBannerState").getInitialState(e.actions,w.action_ids);e=n(d("AdIntegrityValidationBannerState").reducer,e);var z=e[0];e=e[1];b=(b=w.title)==null?void 0:b.text;var A,B=[],C=c("useCometLazyDialog")(p),D=C[0];C=c("AdIntegrityHECCertificationAction").getActionPropertiesFromState(z);var E=c("AdIntegrityHECCertificationAction").getActionCallbacks(C,e,y),F=E[0];E=E[1];var G=c("useAdIntegrityCertifyMutation")(),H=k(function(){y("ui_nondiscrimination_dialog_certify_click"),G({source:"lwi_www"},F,function(){})},[y,G,F]),I=k(function(){y("ui_nondiscrimination_dialog_open"),D({onCertificationDialogSubmit:H})},[y,D,H]);C=c("AdIntegrityHECCertificationAction").getCTAButtonsForAction(C,I,E);C&&(A=C);I=c("AdIntegrityAppealAction").getActionPropertiesFromState(z);E=a.selectedAdgroupID;C=c("useAdsIntegrityAppeal")(I,a.appID,e,a.legacyAccountID,a.selectedAdgroupID);e=c("AdIntegrityAppealAction").getCTAButtonsForAction(I,C);!A&&e&&E!=null&&E!==""&&(A=e);var J=c("useLWIReducers")([c("lwiCometManualReviewRequestedReducer")]);I=c("AdIntegrityTextRMRAction").getActionPropertiesFromState(z);C=function(){y(a.actionProps.textManualReviewRequested?"ui_text_penalty_undo_mark_exception_click":"ui_text_penalty_mark_exception_click"),J({type:"manual_review_requested_reducer.toggle_manual_review_requested"},{side:"user_action"})};E=c("AdIntegrityTextRMRAction").getControlForAction(I,a.actionProps.textManualReviewRequested,C);E!=null&&B.push(E);I=(e=z.actionContent)!=null?e:w.body;if(!I||w.disapproval_reason_tier==="TEXT_PENALTY")return null;return x?null:j.jsx("div",{className:"x1yztbdb",children:j.jsx(c("LWICometNoticeCard.react"),{bizwebFooter:j.jsx(c("AdIntegrityValidationBannerFooter.react"),{accountID:a.legacyAccountID,adgroupID:a.selectedAdgroupID,chatAccessKey:a.chatAccess}),body:j.jsx(c("CometTextWithEntitiesRelay.react"),{renderers:{ExternalUrl:[c("CometExternalLinkedEntityRenderer")],Inline:[c("CometInlineEntityRenderer")]},textWithEntities:I,withParagraphs:!0}),category:(C=z.noticeCategory)!=null?C:w.disapproval_reason_tier==="POLICY"&&a.adCreationStage===d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.POSTCREATE?"ERROR":"WARNING",ctaButton:A,header:(e=(E=z.actionTitle)!=null?E:b)!=null?e:"",isStepperFlow:(I=a.isStepperFlow)!=null?I:!1,items:B,marginVertical:0})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdIntegrityPrecreateValidationBannerRoot.react",["AdIntegrityPrecreateValidationBannerRootQuery.graphql","AdIntegrityValidationBannerSection.react","AdIntegrityValidationLoggingConstants","AdsReviewCometIPCUtils","CometRelay","LWICometLoggingConstants","WebPixelRatio","react","useLWILoggerContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react"),j=d("react").useEffect;function a(a){var e=a.actionProps,f=a.callsite,g=a.clientCreativeSpec,k=a.creativeSpec,l=a.isStepperFlow;l=l===void 0?!1:l;var m=a.legacyAccountID,n=a.selectedAdgroupID;a=a.targetSpec;k={input:{callsite:f,creative_spec:(g==null?void 0:g.asset_feed_spec)!=null?null:k,creative_spec_json:(g==null?void 0:g.asset_feed_spec)!=null?JSON.stringify(g):null,legacy_ad_account_id:m,target_spec:JSON.stringify(a)},scale:d("WebPixelRatio").get()};g=c("useLWILoggerContext")();var o=g.flowID,p=g.targetID;j(function(){d("AdsReviewCometIPCUtils").logPolicyCheckTrigger(m,n,d("LWICometLoggingConstants").APP_ID,f,p,o)},[m,n,f,p,o]);a=d("CometRelay").useLazyLoadQuery(h!==void 0?h:h=b("AdIntegrityPrecreateValidationBannerRootQuery.graphql"),k);k=(g=a.ad_integrity_precreate_validation)==null?void 0:g.validation_response_contents;return k==null?null:i.jsx(c("AdIntegrityValidationBannerSection.react"),{actionProps:{textManualReviewRequested:e.textManualReviewRequested},adCreationStage:d("AdIntegrityValidationLoggingConstants").AD_CREATION_STAGE.PRECREATE,appID:d("LWICometLoggingConstants").APP_ID,callsite:f,isStepperFlow:l,legacyAccountID:m,selectedAdgroupID:n,validation:k})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdIntegrityValidationLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={POSTCREATE:"postcreate",PRECREATE:"precreate"};f.AD_CREATION_STAGE=a}),66);
-----
LWICometWhatsAppBusinessUpsellDialog.react",["fbt","AdproObjectiveType","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometCardedDialogLegacy.react","LWICometLoggingConstants","LWICometWhatsAppBusinessUpsellDialogContent.react","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useCallback;function a(a){var b=a.goal,e=a.objective,f=a.onClose,g=a.onLinkSent,k=a.pageID,l=a.productFlow,m=a.showAlternativeUpsellContent,n=a.whatsAppNumber,o=a.whatsAppNumberType;a=j(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({ads_lwi_goal:b,event:"whatsapp_business_app_download_dialog_close",objective:c("getJSEnumSafe")(c("AdproObjectiveType"),e),page_id:k,product_flow:l,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:n,whatsapp_number_type:o}),f()},[b,e,f,k,l,n,o]);return i.jsx(c("CometCardedDialogLegacy.react"),{onClose:a,title:m===!0?h._("u514du8d39u4e0bu8f7d WhatsApp Business"):h._("u514du8d39u4e0bu8f7d WhatsApp Business"),withCloseButton:!0,children:i.jsx(c("LWICometWhatsAppBusinessUpsellDialogContent.react"),{onClose:f,onLinkSent:g,pageID:k,productFlow:l,showAlternativeUpsellContent:m,whatsAppNumber:n,whatsAppNumberType:o})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometWhatsAppBusinessUpsellDialogContent.react",["fbt","AdsUniqueMetricsHelpID","AdsWhatsAppConnectBusinessAccountFlowAssetsUtils","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","ClicktoWhatsAppLocalizedImages","CometColumn.react","CometColumnItem.react","CometImage.react","CometLink.react","CometRelay","LWICometGenericEventsLoggerLite","LWICometLoggingConstants","LWICometSimpleDialogFooter.react","LWICometWhatsAppSendDownloadBusinessAppLinkMutation","LWIOmniText.react","react","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={dialogRoot:{marginTop:"xw7yly9",marginEnd:"xktsk01",marginBottom:"x1yztbdb",marginStart:"x1d52u69",$$css:!0},image:{display:"x78zum5",justifyContent:"xl56j7k",marginBottom:"x1yztbdb",$$css:!0},imageWidth:{width:"xycev2y",$$css:!0}};function a(a){var b=a.objective,e=a.onClose,f=a.onLinkSent,g=a.pageID,k=a.productFlow,l=a.showAlternativeUpsellContent,m=a.whatsAppNumber,n=a.whatsAppNumberType,o=d("CometRelay").useRelayEnvironment();a=function(){d("LWICometGenericEventsLoggerLite").log({event:"whatsapp_business_app_download_link_send_click",page_id:g}),c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({event:"whatsapp_business_app_download_link_send_click",page_id:g,product_flow:k,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:m,whatsapp_number_type:n}),d("LWICometWhatsAppSendDownloadBusinessAppLinkMutation").sendDownloadBusinessAppLink({pageID:g,whatsappNumber:m},o,function(a){a.send_whatsapp_business_download_link===!0&&f!=null&&f(),e()})};var p=function(){if(l!==!0)return h._("u5982u679cu4e0du4f7fu7528 WhatsApp Businessuff0cu4f60u7684u5e7fu544au5c06u7740u91cdu83b7u5f97u53d7u4f17u7684u5fc3u60c5u3001u8bc4u8bbau548cu5206u4eabuff0cu800cu4e0du662fu4ed6u4eecu7684u6d88u606fu3002");return b==="MESSAGES"?h._("u5b89u88c5 WhatsApp Business u540euff0cu4f60u7684u5e7fu544au5c06u8986u76d6u66f4u53efu80fdu53d1u6d88u606fu7ed9u4f60u7684{link to our people metrics explanation}u3002u5982u4e0du5b89u88c5uff0cu4f60u5c06u4e0du80fdu6709u6548u53d1u6325"u5438u5f15u66f4u591au7528u6237u53d1u6d88u606f"u76eeu6807u7684u4f5cu7528u3002",[h._param("link to our people metrics explanation",i.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("u7528u6237")}))]):h._("u5b89u88c5 WhatsApp Business u540euff0cu4f60u7684u5e7fu544au5c06u8986u76d6u66f4u53efu80fdu53d1u6d88u606fu7ed9u4f60u7684{link to our people metrics explanation}u3002",[h._param("link to our people metrics explanation",i.jsx(c("CometLink.react"),{href:d("AdsUniqueMetricsHelpID").getUniqueMetricsHelpURL(),target:"_blank",children:h._("u7528u6237")}))])};return i.jsxs("div",{className:"xw7yly9 xktsk01 x1yztbdb x1d52u69",children:[i.jsx("div",{className:"x78zum5 xl56j7k x1yztbdb",children:i.jsx(c("CometImage.react"),{src:d("AdsWhatsAppConnectBusinessAccountFlowAssetsUtils").getLocalizedBusinessProfileGraphic(c("ClicktoWhatsAppLocalizedImages").locale),xstyle:j.imageWidth})}),i.jsxs(c("CometColumn.react"),{spacing:16,children:[i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("LWIOmniText.react"),{color:"secondary",type:"body3",children:p()})}),i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("LWIOmniText.react"),{color:"secondary",type:"body3",children:l===!0?h._("u5c06u4e0bu8f7du94feu63a5u53d1u9001u5230u4f60u7684 WhatsApp ({whatsApp Number})uff0cu6216u4ece App Store u6216 Google Play u4e0bu8f7du5e94u7528u3002",[h._param("whatsApp Number",m)]):h._("u6211u4eecu53efu4ee5u5c06u4e0bu8f7du94feu63a5u53d1u9001u5230u4f60u7684 WhatsApp ({whatsApp Number})uff0cu4f60u4e5fu53efu4ee5u5728 App Store u6216 Google Play u4e0bu8f7du5e94u7528u3002",[h._param("whatsApp Number",m)])})})]}),i.jsx(c("LWICometSimpleDialogFooter.react"),{primaryButton:{label:h._("u53d1u9001u94feu63a5"),onPress:a}})]})}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{objective:a.objective}});g["default"]=b}),98);
-----
LWICometWhatsAppBusinessCouponDialog.react",["fbt","AdproObjectiveType","ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite","CometMultiStepDialogLegacy.react","CometTransientDialogProvider.react","LWICometConnectWALoggerContext","LWICometLoggingConstants","LWICometWhatsAppBusinessCouponDialogContent.react","getJSEnumSafe","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useCallback,k=b.useMemo;function a(a){var b=a.couponDialogInstructionHeaderText,e=a.goal,f=a.initialCountryCode,g=a.objective,l=a.onClose,m=a.pageID,n=a.productFlow,o=a.whatsAppNumber,p=a.whatsAppNumberType;a=k(function(){return{page_id:m,product_flow:n,source_app_id:String(d("LWICometConnectWALoggerContext").FBPAGES_APP_ID)}},[m,n]);var q=j(function(){c("ClickToWhatsAppAdsUnifiedEventsTypedLoggerLite").log({ads_lwi_goal:e,event:"whatsapp_business_app_download_dialog_close",objective:c("getJSEnumSafe")(c("AdproObjectiveType"),g),page_id:m,product_flow:n,source_app_id:d("LWICometLoggingConstants").APP_ID,whatsapp_number:o,whatsapp_number_type:p}),l()},[e,g,m,n,o,p,l]);return i.jsx("div",{children:i.jsx(d("LWICometConnectWALoggerContext").LWICometConnectWALoggerContext.Provider,{value:a,children:i.jsx(c("CometTransientDialogProvider.react"),{children:i.jsx(c("CometMultiStepDialogLegacy.react"),{onClose:q,size:"content",title:h._("u66f4u65b0u4e3a WhatsApp Business"),withCloseButton:!0,children:function(a){return i.jsx(c("LWICometWhatsAppBusinessCouponDialogContent.react"),{couponDialogInstructionHeaderText:b,initialCountryCode:f,onClose:l,pageID:m,pushPage:a,whatsAppNumber:o})}})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="1146105192114219";f.APP_ID=a}),66);
-----
AdsLWICoBAdPreviewIframe.react",["CometFeedStoryGlimmer.react","LWICometLoggingConstants","LegacyHidden","XAdPreviewController","areEqual","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useEffect,j=b.useMemo,k=b.useRef,l=b.useState;function a(a){var b=a.adAccountID,e=a.adFormat,f=a.creativeSpecForPreview;a=a.rightColumn;a=a===void 0?!1:a;var g=l(!0),m=g[0],n=g[1];g=l(null);var o=g[0],p=g[1];g=l(null);var q=g[0],r=g[1],s=k(null),t=function(){var a=s.current;a!=null&&(p(a.contentWindow.document.body.scrollHeight),r(a.contentWindow.document.body.scrollWidth))};g=j(function(){var a,g=c("XAdPreviewController").getURIBuilder().setFBID("ad_account_id",b).setEnum("ad_preview_format",e).setFBID("app_id",d("LWICometLoggingConstants").APP_ID).setString("creative_spec",f).getURI().toString();return h.jsx("iframe",{className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x6ikm8r x10wlt62",height:Math.max((a=o)!=null?a:0,142),onLoad:function(){n(!1),s.current!=null&&(s.current.contentWindow.addEventListener("resize",t),t())},ref:s,src:g,width:Math.max((a=q)!=null?a:380,320)},g)},[b,e,f,o,q]);i(function(){n(!0)},[b,e,f]);return h.jsxs("div",{className:""+(a?" x78zum5 xl56j7k x1cvmir6":" x78zum5 xl56j7k xy9ov0e"),children:[m&&h.jsx("div",{className:""+(a?" xh3wvx0 xh8yej3":""),children:h.jsx(c("CometFeedStoryGlimmer.react"),{})}),h.jsx(c("LegacyHidden"),{mode:m?"hidden":"visible",children:g})]})}a.displayName=a.name+" [from "+f.id+"]";e=h.memo(a,c("areEqual"));g["default"]=e}),98);
-----
PagesProfilePictureStoryLink.react",["cx","fbt","FBStoriesActions","FBStoriesStore","FBStoriesViewer2","Link.react","StoriesLoggingConstants","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=i._("u516cu5171u4e3bu9875u52a8u6001");function a(a){var b=a.bucketID;a=a.children;var e=function(){d("FBStoriesActions").userSelectedBucket(b)&&c("FBStoriesStore").getThreadCountForSelectedBucket()>0&&c("FBStoriesViewer2").open({bucketID:b,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.PAGE_PROFILE,cardID:null,traySessionID:null})};return j.jsx(c("Link.react"),{"aria-label":k,className:"_2dgj",onClick:e,children:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
PagesProfilePictureStoryEditMenu.react",["cx","fbt","ActorURI","BUIText.react","FBStoriesActions","FBStoriesStore","FBStoriesViewer2","FileInput.react","FileInputUploader","Link.react","PagesProfilePictureActions","ReactDOM","SUIActionMenu.react","SUIBusinessTheme","StoriesLoggingConstants","ThisControllerNoLongerExists","XPagesProfilePictureUploadAsyncController","XPhotoBrowserDialogController","XPhotoPermalinkController","XProfilePictureOverlayLandingController","goURI","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=i._("u4eceu7167u7247u4e2du9009u62e9"),l=i._("u6dfbu52a0u6548u679cu6846"),m=i._("u62cdu7167"),n=i._("u4e0au4f20u7167u7247"),o=i._("u7f16u8f91u7f29u7565u56fe"),p=i._("u79fbu9664"),q=i._("u66f4u65b0u5934u50cf"),r=i._("u6dfbu52a0u5934u50cf"),s=i._("u67e5u770bu5934u50cf"),t=i._("u67e5u770bu5febu62cd"),u=i._("u5934u50cf"),v=i._("u516cu5171u4e3bu9875u52a8u6001");function w(a,b){return b!==a}function x(a){return j.jsx(c("FileInput.react"),{accept:"image/*",containerClassName:"_6xfx","data-testid":void 0,display:"inline-block",name:"profile_pic",onChange:a.onUploadPhoto,ref:a.fileInputRef,children:j.jsx(c("Link.react"),{className:"_6xfx",href:"#",children:j.jsx(c("BUIText.react"),{color:"secondary",size:"body3",children:n})})})}x.displayName=x.name+" [from "+f.id+"]";function y(a){return j.jsx(c("Link.react"),{ajaxify:a.uri,className:"_6xfx",href:"#",rel:"dialog",children:j.jsx(c("BUIText.react"),{color:"secondary",size:"body3",children:a.labelText})})}y.displayName=y.name+" [from "+f.id+"]";function z(a){a=a.profilePictureData;var b=a.pageID,e=a.photoID;a=a.photoSourcePageID;e=c("XPhotoPermalinkController").getURIBuilder().setInt("photo_id",e).setString("vanity",a).getURI();return j.jsx(c("Link.react"),{"aria-label":u,className:"_6xfx",href:d("ActorURI").create(e,b),rel:"theater",children:j.jsx(c("BUIText.react"),{color:"secondary",size:"body3",weight:"bold",children:s})})}z.displayName=z.name+" [from "+f.id+"]";function A(a){return j.jsx(c("Link.react"),{"aria-label":v,className:"_6xfx",onClick:a.onViewStoryClick,children:j.jsx(c("BUIText.react"),{color:"secondary",size:"body3",weight:"bold",children:t})})}A.displayName=A.name+" [from "+f.id+"]";function B(a,b){return!a?null:c("XPhotoBrowserDialogController").getURIBuilder().setEnum("endpoint",4).setEnum("generator",1).setString("data","pages_profile_picture").setInt("id",b).getURI()}function C(a){var b=d("ThisControllerNoLongerExists").__DEADURI__("o2c2lwdu");return d("ActorURI").create(b,a)}function D(a){var b=a.pageID,c=a.photoID,e=a.photoIsSquare;a=a.photoSourcePageID;if(c===null||e||w(b,a))return null;c=d("ThisControllerNoLongerExists").__DEADURI__("qdcep3c37");return d("ActorURI").create(c,b)}function E(a){var b=a.pageID,c=a.photoID;a=a.photoSourcePageID;if(c===null||w(b,a))return null;c=d("ThisControllerNoLongerExists").__DEADURI__("enn5bg1sk");return d("ActorURI").create(c,b)}function F(a,b,d,e){var f=b.pageID,g=b.pageHasPhotos,h=b.photoID,i=[];g=B(g,f);g!==null&&i.push({type:"item",label:j.jsx(y,{labelText:k,uri:g}),onClick:d});if(h!=null){var n=c("XProfilePictureOverlayLandingController").getURIBuilder().setInt("profile_id",f).setInt("photo_id",h).getURI();i.push({type:"item",label:j.jsx(y,{labelText:l,uri:null}),onClick:function(){return c("goURI")(n)}})}i.push({type:"item",label:j.jsx(y,{labelText:m,uri:C(f)}),onClick:d});i.push({type:"item",label:j.jsx(x,{fileInputRef:a,onUploadPhoto:e}),onClick:function(){}});g=D(b);g!==null&&i.push({type:"item",label:j.jsx(y,{labelText:o,uri:g}),onClick:d});h=E(b);h!==null&&i.push({type:"item",label:j.jsx(y,{labelText:p,uri:h}),onClick:d});return i}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
FBStoriesActions",["CameraPostBucketOwnerHelper","CameraPostGraphQLAPI","FBLogger","FBStoriesActionTypes","FBStoriesActionsHelper","FBStoriesDispatcher","FBStoriesGraphQLAPI","FBStoriesLoggingConstants","FBStoriesLoggingHelper","FBStoriesMutedBucketOwnersActions","FBStoriesPrefetcher","FBStoriesStore","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=function(){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").RESET_STATE})},i=function(a,b,d,e,f){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").LOADED,data:{userInfo:{userName:a,userID:b,userGender:null,userProfilePic:{uri:d}},userBucketData:null,friendsBucketData:f}})},j=function(a){var b=c("FBStoriesStore").isSelectedBucketLive();if(b){l();return}b=c("FBStoriesStore").getThreadsForSelectedBucket();var d=c("FBStoriesStore").getCurrentThreadIndexForSelectedBucket();a=a!==void 0?a:d+1;b.length===0?l():a<=b.length-1?p(a):l()},k=function(a){var b=c("FBStoriesStore").isSelectedBucketLive();if(b){m();return}b=c("FBStoriesStore").getThreadsForSelectedBucket();var d=c("FBStoriesStore").getCurrentThreadIndexForSelectedBucket();a=a!==void 0?a:d-1;b.length===0?m():a>=0?p(a,!0):m()},l=function(){return s(!0)},m=function(){return s(!1)},n=function(a){var b=c("FBStoriesStore").getBucketIndexByBucketId(a);if(b===-1)return!1;var d=c("FBStoriesStore").getUnseenThreadIndex(b),e=Math.max(0,d);a=c("FBStoriesStore").isOwnBucket(a);c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").RESET_LOCAL_SEEN_HISTORY});c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_UNSEEN_MODE,value:!a&&d>=0});c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_ALL_BUCKETS_VIEWED,value:!1});c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_BUCKET_IDX_CHANGED,bucketIndex:b});p(e);return!0},o=function(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_THREAD_PERCENT_DONE,percentDone:a})},p=function(a,b){b===void 0&&(b=!1);var e=c("FBStoriesStore").isOwnBucket();c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_THREAD_IDX_CHANGED,index:a});o(0);a=c("FBStoriesStore").getCurrentThreadData();if(a){if(e&&!a.isLive){var f=a.threadID;c("promiseDone")(d("FBStoriesGraphQLAPI").loadViewerListForThread(f),function(a){return c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").VIEWER_LIST_LOADED_FOR_THREAD,threadID:f,data:a})},function(a){return c("FBLogger")("fbstories").catching(a).mustfix("Cannot load viewer list for thread: %s",f)})}q();d("FBStoriesPrefetcher").prefetchForCurrentThreadAndBucket()}else b?k():j()},q=function(){var a=c("FBStoriesStore").getUserInfo().userID,b=c("FBStoriesStore").getCurrentThreadData();if(!b||b.isLive)return;var e=b.latestMessageID,f=b.cameraPostType;b=b.threadID;c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").UPDATE_THREAD_SEEN_OPTIMISTIC,bucketID:null,threadID:b});d("CameraPostGraphQLAPI").markThreadSeen(a,b,e,f)},r=function(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").UPDATE_THREAD_VIEWERS_SEEN_OPTIMISTIC,threadID:a}),d("FBStoriesGraphQLAPI").updateThreadSeenReciept(a)},s=function(a,b){b=b!==void 0?b:c("FBStoriesStore").getSelectedBucketIndex();b=d("FBStoriesActionsHelper").getNextBucketAndThreadIndex(b,a);var e=b.nextBucketIndex;b=b.nextThreadIndex;var f=d("FBStoriesActionsHelper").checkAllBucketsViewed(e);c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_ALL_BUCKETS_VIEWED,value:f});if(f)return void 0;u();c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SELECTED_BUCKET_IDX_CHANGED,bucketIndex:e});if(!c("FBStoriesStore").hasDataInSelectedBucket()&&!c("FBStoriesStore").isSelectedBucketLive())return a?l():m();p(b);d("FBStoriesLoggingHelper").storyLog(d("FBStoriesLoggingConstants").ACTION_OPEN_STORY);return void 0},t=function(a,b){if(!c("FBStoriesStore").isUserManagedThread(a,b))return;d("FBStoriesGraphQLAPI").deleteStory(c("FBStoriesStore").getUserInfo().userID,a);c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").DELETE_THREAD_FROM_BUCKET,threadID:a,bucketID:b});j(c("FBStoriesStore").getCurrentThreadIndexForSelectedBucket())};function a(a,b){c("FBStoriesMutedBucketOwnersActions").setBucketOwnerMuted(d("CameraPostBucketOwnerHelper").getId(a),d("CameraPostBucketOwnerHelper").getName(a),d("CameraPostBucketOwnerHelper").getProfilePictureUri(a),!0);if(!b)return;c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").REMOVE_BUCKET,bucketID:b});s(!0,c("FBStoriesStore").getSelectedBucketIndex()-1)}function b(a){d("FBStoriesGraphQLAPI").reportThreadToAdmin(c("FBStoriesStore").getUserInfo().userID,a)}function e(a,b){d("FBStoriesGraphQLAPI").takeNegativeFeedbackAction(c("FBStoriesStore").getUserInfo().userID,a,b)}function u(){if(!c("FBStoriesStore").isSelectedBucketLiveAndEnded())return;var a=c("FBStoriesStore").getSelectedBucketId();c("FBStoriesStore").getThreadsForSelectedBucket().length>0?c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").REMOVE_ENDED_LIVE_VIDEO_FROM_BUCKET,bucketID:a}):c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").REMOVE_BUCKET,bucketID:a})}function f(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_IS_COMMERCIAL_BREAK_RUNNING,isCommercialBreakRunning:b,videoID:a})}function v(){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").UNSELECT_BUCKET})}function w(a){if(!a)return;c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").OPTIMISTIC_CREATE_PHOTO_STORY,imageURL:a})}function x(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_USER_BUCKET_UPLOAD_STATUS,isUploading:a})}function y(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").OPTIMISTIC_POLL_VOTE,index:b}),d("FBStoriesGraphQLAPI").pollVote(a,b)}function z(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").TAP_ON_REACTION_STICKER,stickerID:a,count:b}),d("FBStoriesGraphQLAPI").reactToSticker(a,b)}function A(a){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").SET_IS_PRODUCTION_DIALOG_LOADING,value:a})}function B(a,b){c("FBStoriesDispatcher").dispatch({type:c("FBStoriesActionTypes").APPROVE_PENDING_THREAD,bucketID:a,threadID:b})}g.resetStore=h;g.loadData=i;g.nextThread=j;g.prevThread=k;g.nextBucket=l;g.prevBucket=m;g.userSelectedBucket=n;g.updateCurrentThreadPercentDone=o;g.currentThreadIndexChanged=p;g.markCurrentThreadAsSeen=q;g.markThreadViewersSeen=r;g._transitionBucket=s;g.deleteThreadFromBucket=t;g.muteBucketOwner=a;g.reportThreadToAdmin=b;g.takeNegativeFeedbackAction=e;g.removeEndedLiveVideo=u;g.setIsCommercialBreakRunning=f;g.unselectBucket=v;g.optimisticCreateStoryPhoto=w;g.setUserBucketUploadStatus=x;g.onPollOptionVoted=y;g.onReactToSticker=z;g.setIsProductionDialogLoading=A;g.approvePendingThread=B}),98);
-----
CameraPostGraphQLAPI",["Banzai","CameraPostDirectMarkSeenMutation","CameraPostLoggingEvents","CameraPostQuery","CameraPostRepliesQuery","CameraPostReplyMutation","CameraPostUserQuery","DirectMessagingTypedLogger","FBStoriesLoggingConstants","RelayFBEnvironment","RelayModern","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b,e,f,g,h,i){if(f!=null){var j=new(c("DirectMessagingTypedLogger"))().setCameraPostType(b).setProductSurface("www").setName(f).setCardID(a.toString());if(e.message){var k=e.message.length;j.setMessageLength(k)}i&&j.setReplyType(i);e.sticker_id&&j.addToExtraData("sticker_id",e.sticker_id);e.gif_url&&j.addToExtraData("gif_url",e.gif_url);j.log()}var l={is_fb_story:!0,thread_id:a,camera_post_type:b,attempt_name:f,event:d("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT};return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostReplyMutation"),{input:e}).then(function(d){if(g!=null){var e=new(c("DirectMessagingTypedLogger"))().setCameraPostType(b).setProductSurface("www").setName(g).setCardID(a.toString());i&&e.setReplyType(i);e.log()}l.success_name=g;c("Banzai").post("fb_stories_banzai_generic",{ft:l});return d},function(d){if(h!=null){var e=new(c("DirectMessagingTypedLogger"))().setCameraPostType(b).setProductSurface("www").setName(h).setCardID(a.toString());i&&e.setReplyType(i);e.log()}l.failure_name=h;c("Banzai").post("fb_stories_banzai_generic",{ft:l});return d})};a=function(a,b,e,f,g){var i=c("uuid")();i={client_mutation_id:i,actor_id:a,thread_id:b,message:e};a=null;e=null;var j=null;g?a=d("FBStoriesLoggingConstants").ACTION_SEND_REPLY_ATTEMPT:(a=d("CameraPostLoggingEvents").SEND_REPLY_ATTEMPT,e=d("CameraPostLoggingEvents").SEND_REPLY_SUCCESS,j=d("CameraPostLoggingEvents").SEND_REPLY_FAILURE);return h(b,f,i,a,e,j)};b=function(a,b,d,e){var f=c("uuid")();f={client_mutation_id:f,actor_id:a,thread_id:b,sticker_id:e};return h(b,d,f,null,null,null)};e=function(a,b,d,e){var f=c("uuid")();f={client_mutation_id:f,actor_id:a,thread_id:b,gif_url:e};return h(b,d,f,null,null,null)};f=function(a,b,d,e,f){var g="LIGHT_WEIGHT";a={client_mutation_id:c("uuid")(),actor_id:a,thread_id:b,message:e,story_reply_type:g,is_lightweight_reaction:!0,lightweight_reaction_actions:{reaction:e,offsets:[f||0]}};return h(b,d,a,null,null,null,"light_weight")};var i=function(a,b){return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostQuery"),{thread_id:b}).then(function(a){var e;e=(e=a)!=null?(e=e.node)!=null?e.camera_post_type:e:e;new(c("DirectMessagingTypedLogger"))().setCameraPostType(e).setName(d("CameraPostLoggingEvents").THREAD_VIEWED).setProductSurface("www").setCardID(b.toString()).log();return a},function(a){return a})},j=function(){return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostUserQuery"),{})},k=function(a){return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostRepliesQuery"),{thread_id:a})},l=function(a,b,e,f,g){var h={};g?h={client_mutation_id:c("uuid")(),actor_id:a,story_id:g,last_message_seen_id:e}:h={client_mutation_id:c("uuid")(),actor_id:a,thread_id:b,last_message_seen_id:e};g=new(c("DirectMessagingTypedLogger"))().setCameraPostType(f).setName(d("CameraPostLoggingEvents").THREAD_MARK_SEEN_ATTEMPT).setProductSurface("www").setCardID(b.toString());g.log();var i={is_fb_story:!0,camera_post_type:f,event:d("CameraPostLoggingEvents").THREAD_MARK_SEEN_ATTEMPT,thread_id:b,latest_message_id:e};return d("RelayModern").fetchQuery(c("RelayFBEnvironment"),c("CameraPostDirectMarkSeenMutation"),{input:h}).then(function(a){new(c("DirectMessagingTypedLogger"))().setCameraPostType(f).setProductSurface("www").setName(d("CameraPostLoggingEvents").THREAD_MARK_SEEN_SUCCESS).setCardID(b.toString()).log();i.sucess_name=d("CameraPostLoggingEvents").THREAD_MARK_SEEN_SUCCESS;c("Banzai").post("fb_stories_banzai_generic",{ft:i});return a},function(a){new(c("DirectMessagingTypedLogger"))().setCameraPostType(f).setProductSurface("www").setName(d("CameraPostLoggingEvents").THREAD_MARK_SEEN_FAILURE).setCardID(b.toString()).log();i.failur_name=d("CameraPostLoggingEvents").THREAD_MARK_SEEN_FAILURE;c("Banzai").post("fb_stories_banzai_generic",{ft:i});return a})},m=function(){return new(c("DirectMessagingTypedLogger"))()};g.sendDirectMessageReply=a;g.sendDirectStickerReply=b;g.sendDirectGifReply=e;g.sendLightweightReactionReply=f;g.loadThreadFullInformation=i;g.loadUserInfo=j;g.loadRepliesForThread=k;g.markThreadSeen=l;g._getLogger=m}),98);
-----
FBStoriesBucketHelper",["CameraPostBucketOwnerHelper","CameraPostTypesHelper","CurrentUser","FBStoriesLoggingConstants","FBStoriesThreadHelper"],(function(a,b,c,d,e,f,g){"use strict";var h={getUnseenThread:function(a){var b=i.getThreads(a);return b[Math.max(0,i.getUnseenThreadIndex(a))]}},i={isUserBucket:function(a){return i.getOwnerId(a)===c("CurrentUser").getID()},getLiveVideo:function(a){return(a=a)!=null?a.live_video:a},getMediaIDForLiveBucket:function(a){return(a=a)!=null?(a=a.live_video)!=null?a.id:a:a},isLive:function(a){return!!((a=i.getLiveVideo(a))!=null?a.id:a)},setLiveVideo:function(a,b){if(!a)return;a.live_video=b},hasData:function(a){return!a?!1:i.isLive(a)||i.getThreads(a).length>0},getThreads:function(a){a=((a=a)!=null?(a=a.threads)!=null?a.nodes:a:a)||[];return a.filter(function(a){return d("FBStoriesThreadHelper").isPublished(a)&&!d("FBStoriesThreadHelper").isExpired(a)})},getPendingThreads:function(a){return((a=a)!=null?(a=a.pending_threads)!=null?a.nodes:a:a)||[]},getThreadIDs:function(a){a=i.getThreads(a);return a.map(function(a){return((a=a)!=null?a.id:a)||""})},setThreads:function(a,b){if(!a)return;a.threads={nodes:b}},setPendingThreads:function(a,b){if(!a)return;a.pending_threads={nodes:b}},hasPendingThreads:function(a){if(!a.pending_stories)return!1;a=(a=a)!=null?(a=a.pending_stories)!=null?a.count:a:a;return!a?!1:a>0},getUnseenThreadIndex:function(a){var b=i.getThreads(a);a=i.isUserBucket(a);return a?b.findIndex(d("FBStoriesThreadHelper").doesThreadHasUnseenViewers):b.findIndex(d("FBStoriesThreadHelper").notSeenByViewer)},hasNewViewers:function(a){if(!a)return!1;a=i.getThreads(a);a=a.filter(d("FBStoriesThreadHelper").doesThreadHasUnseenViewers);return a.length>0},hasUnseenThreads:function(a){return i.getThreads(a).findIndex(d("FBStoriesThreadHelper").notSeenByViewer)>=0},getPreviewImage:function(a){a=h.getUnseenThread(a);return d("FBStoriesThreadHelper").getMediaPreviewImage(a)},getId:function(a){return((a=a)!=null?a.id:a)||""},getCameraPostType:function(a){return((a=a)!=null?a.camera_post_type:a)||"STORY"},getUnseenCount:function(a){return((a=a)!=null?a.unseen_count:a)||0},setUnseenCount:function(a,b){if(!a)return;a.unseen_count=b},hasLiveVideoEnded:function(a){return!!((a=a)!=null?a.has_live_video_ended:a)},setHasLiveVideoEnded:function(a,b){if(!a)return;a.has_live_video_ended=b},getOwner:function(a){return((a=a)!=null?a.camera_post_bucket_owner:a)||{id:null,name:null,short_name:null,gender:null,is_viewer_friend:!1,profile_picture:null}},getOwnerId:function(a){return d("CameraPostBucketOwnerHelper").getId(i.getOwner(a))},getOwnerGender:function(a){return d("CameraPostBucketOwnerHelper").getGender(i.getOwner(a))},isOwnerEmployee:function(a){return d("CameraPostBucketOwnerHelper").isEmployee(i.getOwner(a))},isViewerEventHost:function(a){return d("CameraPostBucketOwnerHelper").isEventHost(i.getOwner(a))},isViewerPageContentAdmin:function(a){return d("CameraPostBucketOwnerHelper").isViewerPageContentAdmin(i.getOwner(a))},isViewerGroupAdmin:function(a){return d("CameraPostBucketOwnerHelper").isViewerGroupAdmin(i.getOwner(a))},isViewerGroupModerator:function(a){return d("CameraPostBucketOwnerHelper").isViewerGroupModerator(i.getOwner(a))},isViewerFriendOfOwner:function(a){return d("CameraPostBucketOwnerHelper").isViewerFriend(i.getOwner(a))},getOwnerProfilePictureUri:function(a){return d("CameraPostBucketOwnerHelper").getProfilePictureUri(i.getOwner(a))},getOwnerCoverPhotoUri:function(a){return d("CameraPostBucketOwnerHelper").getCoverPhotoUri(i.getOwner(a))},getOwnerName:function(a,b){b===void 0&&(b=!1);var c=i.getCameraPostType(a);a=i.getOwner(a);if(!b&&d("CameraPostTypesHelper").isStory(c)&&a.short_name)return a.short_name;else return a.name},getLatestThreadCreationTime:function(a){return!a?null:(a=a)!=null?a.latest_thread_creation_time:a},getLoggingType:function(a){if(!a)return d("FBStoriesLoggingConstants").MISSING_STORY_DATA;if(i.isUserBucket(a))return d("FBStoriesLoggingConstants").SELF_STORY;var b=i.getCameraPostType(a);if(d("CameraPostTypesHelper").isPageStory(b))return d("FBStoriesLoggingConstants").PAGE_STORY;if(d("CameraPostTypesHelper").isGroupStory(b))return d("FBStoriesLoggingConstants").GROUP_STORY;if(d("CameraPostTypesHelper").isEventStory(b))return d("FBStoriesLoggingConstants").EVENT_STORY;if(d("CameraPostTypesHelper").isPromotionStory(b))return d("FBStoriesLoggingConstants").STORY_PROMOTION;return!i.isViewerFriendOfOwner(a)?d("FBStoriesLoggingConstants").FOLLOWEE_STORY:d("FBStoriesLoggingConstants").FRIEND_STORY},addThreadToBucket:function(a,b){var c=i.getThreads(a);i.setThreads(a,c.concat(b))},getDefaultBucket:function(){return{id:null,camera_post_type:null,unseen_count:0,ranking:null,live_video:null,camera_post_bucket_owner:null,threads:null,pending_threads:null,latest_thread_creation_time:null}},isUploading:function(a){if(!a)return!1;a=(a=a)!=null?a.is_uploading:a;return!!a},setUploading:function(a,b){if(!a)return;a.is_uploading=b}};a=i;g["default"]=a}),98);
-----
FBStoriesLoggingHelper",["Banzai","CloseStoryFalcoEvent","DirectMessagingTypedLogger","FBLogger","FBStoriesBucketHelper","FBStoriesLoggingConstants","FBStoriesStore","StoryNavigationFalcoEvent","uuid"],(function(a,b,c,d,e,f){"use strict";var g=null,h={_traySessionID:null,_viewerSessionID:null,_eventStartTimes:{},logStoryTrayLoad:function(a){h._traySessionID=b("uuid")();var c=a.userBucketData;a=a.friendsBucketData;var d=b("FBStoriesBucketHelper").hasData(c),e=0,f=0,g=0,i=0,j=0,k=0,l=0,m=0,n=0,o=new Map();b("FBStoriesBucketHelper").isLive(c)&&g++;a.forEach(function(a){e++;b("FBStoriesBucketHelper").getUnseenCount(a)>0&&f++;b("FBStoriesBucketHelper").isLive(a)&&g++;var c=b("FBStoriesBucketHelper").getLoggingType(a);switch(c){case b("FBStoriesLoggingConstants").PAGE_STORY:i++;break;case b("FBStoriesLoggingConstants").EVENT_STORY:j++;break;case b("FBStoriesLoggingConstants").GROUP_STORY:k++;break;case b("FBStoriesLoggingConstants").STORY_PROMOTION:l++;break;case b("FBStoriesLoggingConstants").FOLLOWEE_STORY:m++;break;case b("FBStoriesLoggingConstants").FRIEND_STORY:n++;break;default:b("FBLogger")("fbstories").mustfix("storyOwnerType not found: %s",c)}c=b("FBStoriesBucketHelper").getOwnerId(a);var d=b("FBStoriesBucketHelper").getThreadIDs(a);if(b("FBStoriesBucketHelper").isLive(a)){a=(a=b("FBStoriesBucketHelper").getLiveVideo(a))!=null?a.id:a;a&&d.push(a)}o.set(c,d)});h._getLogger().setName(b("FBStoriesLoggingConstants").ACTION_TRAY_LOAD).setHasMyStory(d).setNumberStories(e).setNumberNewStories(f).setNumberLiveStories(g).setLiveStoriesInTray(g).setPageStoriesInTray(i).setGroupStoriesInTray(k).setEventStoriesInTray(j).setFolloweeStoriesInTray(m).setFriendStoriesInTray(n).setPromotionStoriesInTray(l).setClientStoryThreadIds(o).setTraySessionID(h._traySessionID).log()},storyLog:function(a,c,d){g==null&&(g=c);a===b("FBStoriesLoggingConstants").ACTION_OPEN_STORY&&!h._viewerSessionID&&(h._viewerSessionID=b("uuid")());var e=b("FBStoriesStore").getSelectedBucketCameraPostType(),f=b("FBStoriesStore").getSelectedBucketOwnerID(),i=b("FBStoriesStore").getSelectedBucketOwnerType(),j=b("FBStoriesStore").getThreadCountForSelectedBucket(),k=b("FBStoriesStore").getSelectedBucketUnseenCount()>0,l=b("FBStoriesStore").getSelectedBucketIndex();e=h._getLogger().setCameraPostType(e).setName(a).setSource(c==null?g:c).setStoryOwner(f).setStoryOwnerType(i).setThreadCount(j).setHasNewContent(k).setStoryIndex(l).setTraySessionID(h._traySessionID).setClientViewerSessionID(h._viewerSessionID).setTrackingString(d);e.log()},getLoggingMediaType:function(a){var b="unknown";a==="Photo"?b="photo":a==="Video"?b="video":a==="live"&&(b="live");return b},getMediaLogger:function(a,c,d){d=d||{cameraPostType:b("FBStoriesStore").getCurrentThreadCameraPostTypeForSelectedBucket(),storyOwnerFbid:b("FBStoriesStore").getSelectedBucketOwnerID(),storyOwnerType:b("FBStoriesStore").getSelectedBucketOwnerType(),mediaID:b("FBStoriesStore").getCurrentThreadMediaIDForSelectedBucket(),mediaType:b("FBStoriesStore").getCurrentThreadMediaTypeForSelectedBucket(),viewers:b("FBStoriesStore").getCurrentThreadMediaViewerCountForSelectedBucket(),bucketIndex:b("FBStoriesStore").getSelectedBucketIndex(),threadIndex:b("FBStoriesStore").getCurrentThreadIndexForSelectedBucket(),threadID:b("FBStoriesStore").getCurrentThreadIDForSelectedBucket(),threadCount:b("FBStoriesStore").getThreadCountForSelectedBucket()};var e=d.cameraPostType,f=d.storyOwnerFbid,g=d.storyOwnerType,i=d.mediaID,j=d.mediaType,k=d.viewers,l=d.bucketIndex,m=d.threadIndex,n=d.threadID;d=d.threadCount;n=n?n.toString():"";j=h.getLoggingMediaType(j);c=c||b("FBStoriesLoggingConstants").SOURCES.UNKNOWN;return h._getLogger().setCameraPostType(e).setName(a).setSource(c).setStoryOwner(f).setStoryOwnerType(g).setMediaType(j).setClientMediaID(i).setNumberViewers(k).setCardID(n).setStoryIndex(l).setMediaIndex(m).setNumberMedia(d).setTraySessionID(h._traySessionID).setClientViewerSessionID(h._viewerSessionID).setExtraClientData(JSON.stringify({story_size:d}))},mediaLog:function(a,b,c){h.getMediaLogger(a,b,c).log()},_getLogger:function(){return new(b("DirectMessagingTypedLogger"))()},openMediaLog:function(a,c){var d=b("FBStoriesStore").getFeedTrackingData(b("FBStoriesLoggingConstants").ACTION_OPEN_MEDIA);b("Banzai").post("stories_www_vpv_banzai",{media_id:b("FBStoriesStore").getCurrentThreadMediaIDForSelectedBucket(),owner_id:b("FBStoriesStore").getSelectedBucketOwnerID()});b("Banzai").post("fb_stories_banzai_generic",{ft:d});h.mediaLog(b("FBStoriesLoggingConstants").ACTION_OPEN_MEDIA,a,c)},deleteMediaLog:function(){h.mediaLog(b("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA)},openSeenSummaryLog:function(){h.mediaLog(b("FBStoriesLoggingConstants").ACTION_OPEN_SEEN_SUMMARY)},storyNavigationLog:function(a){var c=h.getMediaLogger(b("FBStoriesLoggingConstants").ACTION_STORY_NAVIGATION).setGesture(a);c.log();b("StoryNavigationFalcoEvent").log(function(){return babelHelpers["extends"]({},h._getFalcoLoggingInformation(),{gesture:a})})},closeStoryLog:function(a,c){c=h.getMediaLogger(b("FBStoriesLoggingConstants").ACTION_CLOSE_STORY).setGesture(a).setActionSource(c);c.log();b("CloseStoryFalcoEvent").log(function(){return babelHelpers["extends"]({},h._getFalcoLoggingInformation(),{gesture:a})});h._viewerSessionID=null}};e.exports=h}),null);
-----
MNCommerceShippingDetailsDialogContainer.react",["BanzaiLogger","GeoCoordinates","MNCommerceDialogStateActions","MNCommerceDialogStateStore","MNCommerceLoggingConstants","MNCommerceShipmentActions","MNCommerceShipmentStore","MNCommerceShippingDetailsDialog.react","PureStoreBasedStateMixin","createReactClass_DEPRECATED","immutable","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=c("createReactClass_DEPRECATED")({displayName:"MNCommerceShippingDetailsDialogContainer",mixins:[c("PureStoreBasedStateMixin")(c("MNCommerceShipmentStore"))],statics:{calculateState:function(){var a=c("MNCommerceDialogStateStore").getState(),b=null;a&&(b=a.shipmentID);var e=c("MNCommerceShipmentStore").getShipment(b);e.isLoading()||c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:e.hasError()?"dialog_load_error":"dialog_load_success",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.SHIPMENT,shipment_id:b})});return{shown:!!a,loading:e.isLoading(),shipmentID:b,shipment:e.getValue(),error:e.getError()}}},render:function(){return h.jsx(c("MNCommerceShippingDetailsDialog.react"),{loading:this.state.loading,error:this.state.error,onToggle:this._onToggle,onTryAgain:this._onTryAgainClick,shown:this.state.shown,shipment:this._getParsedShipment(this.state.shipment)})},_getParsedShipment:function(a){if(!a)return{};var b=[],d=a.origin,e=a.events;d&&d.latitude&&(!e||Object.keys(e).length===0)?b=[new(c("GeoCoordinates"))(d.latitude,d.longitude)]:e&&(b=Object.keys(e).map(function(a){a=e[a];if(a.tracking_event_location&&a.tracking_event_location.latitude!=null&&a.tracking_event_location.longitude!=null)return new(c("GeoCoordinates"))(a.tracking_event_location.latitude,a.tracking_event_location.longitude)}));d=Array.isArray(a.destination)?null:a.destination;return{address:d,carrierInfo:a.carrier,changeURL:a.carrier_tracking_url,delivered:a.delivered,deliverDate:a.estimated_delivery_display_time,shipDate:a.display_ship_date,destination:a.destination&&a.destination.latitude?new(c("GeoCoordinates"))(a.destination.latitude,a.destination.longitude):null,items:a.items,legalText:a.legal_text,logo:a.carrier_logo?{height:a.carrier_logo.height,width:a.carrier_logo.width,src:a.carrier_logo.url}:null,name:a.recipient_name?a.recipient_name:null,orderDetailsURL:a.order_details_url,progress:a.events,shippingCheckPoints:c("immutable").List(b),trackingNumber:a.tracking_number}},_onToggle:function(a){a||(c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_closed",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.SHIPMENT,shipment_id:this.state.shipment.shipment_id})}),d("MNCommerceDialogStateActions").hideDialog())},_onTryAgainClick:function(){d("MNCommerceShipmentActions").shipmentReload(this.state.shipmentID)}});b=a;g["default"]=b}),98);
-----
MNCommerceShippingMercuryShareAttachmentReact.bs",["BanzaiLogger","MNCommerceBubbleType","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommerceShippingAttachmentUtils.bs","MNCommerceShippingDetailsDialogContainer.react","MNCommerceShippingMercuryAttachmentReact.bs","bs_array","bs_caml_option","bs_js_dict","bs_js_null_undefined","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=a.attachment,e=a.location;a=a.maxWidth;var f=function(a){if(b!==void 0){a=c("bs_caml_option").valFromOption(b).target;a=a==null?null:a.id}else a=null;c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{debug_data:JSON.stringify({dialog_surface:c("bs_js_null_undefined").fromOption(c("bs_js_dict").get(d("MNCommerceLoggingConstants").DIALOG_SURFACE,"SHIPMENT")),shipment_id:a}),event:"dialog_opened"});d("MNCommerceDialogStateActions").showDialog(c("MNCommerceShippingDetailsDialogContainer.react"),{shipmentID:a})};if(b===void 0)return null;var g=c("bs_caml_option").valFromOption(b).target;if(g==null)return null;var i=d("MNCommerceShippingAttachmentUtils.bs").getCommerceLocation(g.commerce_destination),j=c("bs_js_dict").get(c("MNCommerceBubbleType"),g.bubble_type);j=j!==void 0?j===9:!1;var k=c("bs_array").fold_left(function(a,b){if(b.shipment_tracking_event_type==="DELIVERED")return!0;else return a},!1,g.shipment_tracking_events.nodes),l=g.estimated_delivery_time_for_display.length!==0?g.estimated_delivery_time_for_display:void 0,m=g.retail_carrier.logo;return h.jsx(d("MNCommerceShippingMercuryAttachmentReact.bs").make,{carrierInfo:g.retail_carrier.name,carrierTrackingURL:c("bs_caml_option").nullable_to_opt(g.retail_carrier.carrier_tracking_url),className:void 0,deliveryDate:l,deliveryPeriod:void 0,destination:{city:i.city,latitude:i.latitude,longitude:i.longitude,state:i.state,street_1:i.street_1},hasUnsupportedCarrier:j,items:d("MNCommerceShippingAttachmentUtils.bs").getItems(g.retail_shipment_items.nodes),location:e,logo:m==null?void 0:{height:m.height,src:m.uri,width:m.width},shippingDate:g.shipdate_for_display,type_:void 0,width:a,onAttachmentClick:j?void 0:f,shippingCheckPoints:k?[]:d("MNCommerceShippingAttachmentUtils.bs").getShippingCheckPoints(g),delivered:k})}i.displayName=i.name+" [from "+f.id+"]";function a(a){var b=a.location,d;if(b==null)d=void 0;else switch(b){case"chat":d={_0:void 0,TAG:0};break;case"chat_preview":d={_0:void 0,TAG:1};break;case"messenger":d={_0:void 0,TAG:2};break;case"pages_inbox":d={_0:void 0,TAG:3};break;default:d=void 0}return i({attachment:c("bs_caml_option").nullable_to_opt(a.attachment),location:d,maxWidth:a.maxWidth})}b=i;g.jsComponent=a;g.make=b}),98);
-----
MNCommerceShipmentTrackingEventMercuryShareAttachmentReact.bs",["BanzaiLogger","MNCommerceBubbleType","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommerceShipmentTrackingEventTypes","MNCommerceShippingAttachmentUtils.bs","MNCommerceShippingDetailsDialogContainer.react","MNCommerceShippingMercuryAttachmentReact.bs","bs_caml_option","bs_js_dict","bs_js_null_undefined","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function i(a){var b=a.attachment,e=a.location;a=a.maxWidth;var f=function(a){if(b!==void 0){a=c("bs_caml_option").valFromOption(b).target;a=a==null?null:a.shipment.id}else a=null;c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{debug_data:JSON.stringify({dialog_surface:c("bs_js_null_undefined").fromOption(c("bs_js_dict").get(d("MNCommerceLoggingConstants").DIALOG_SURFACE,"SHIPMENT")),shipment_id:a}),event:"dialog_opened"});d("MNCommerceDialogStateActions").showDialog(c("MNCommerceShippingDetailsDialogContainer.react"),{shipmentID:a})};if(b===void 0)return null;var g=c("bs_caml_option").valFromOption(b).target;if(g==null)return null;var i=d("MNCommerceShippingAttachmentUtils.bs").getCommerceLocation(g.shipment.commerce_destination),j=c("bs_js_dict").get(c("MNCommerceBubbleType"),g.bubble_type);j=j!==void 0?j===9:!1;var k=g.shipment_tracking_event_type==="DELIVERED",l=g.shipment.estimated_delivery_time_for_display.length===0?g.shipment.shipdate_for_display:g.shipment.estimated_delivery_time_for_display,m=g.shipment.retail_carrier.logo;return h.jsx(d("MNCommerceShippingMercuryAttachmentReact.bs").make,{carrierInfo:g.shipment.retail_carrier.name,carrierTrackingURL:c("bs_caml_option").nullable_to_opt(g.shipment.retail_carrier.carrier_tracking_url),className:void 0,deliveryDate:l,deliveryPeriod:void 0,destination:{city:i.city,latitude:i.latitude,longitude:i.longitude,state:i.state,street_1:i.street_1},hasUnsupportedCarrier:j,items:d("MNCommerceShippingAttachmentUtils.bs").getItems(g.shipment.retail_shipment_items.nodes),location:e,logo:m==null?void 0:{height:m.height,src:m.uri,width:m.width},shippingDate:g.shipment.shipdate_for_display,type_:c("bs_js_dict").get(c("MNCommerceShipmentTrackingEventTypes"),g.shipment_tracking_event_type),width:a,onAttachmentClick:j?void 0:f,shippingCheckPoints:k?[]:d("MNCommerceShippingAttachmentUtils.bs").getShippingCheckPoints(g.shipment),delivered:k})}i.displayName=i.name+" [from "+f.id+"]";function a(a){var b=a.location,d;if(b==null)d=void 0;else switch(b){case"chat":d={_0:void 0,TAG:0};break;case"chat_preview":d={_0:void 0,TAG:1};break;case"messenger":d={_0:void 0,TAG:2};break;case"pages_inbox":d={_0:void 0,TAG:3};break;default:d=void 0}return i({attachment:c("bs_caml_option").nullable_to_opt(a.attachment),location:d,maxWidth:a.maxWidth})}b=i;g.jsComponent=a;g.make=b}),98);
-----
MNCommerceReceiptMercuryShareAttachment.react",["BanzaiLogger","MNCommerceDialogStateActions","MNCommerceLoggingConstants","MNCommerceOrderDetailsDialogContainer.react","MNCommerceReceiptMercuryAttachment.react","MercuryShareAttachmentReactShape","mergeDeep","prop-types","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
FBStoryThread.react",["cx","fbt","ix","CameraPostBucketOwnerHelper","CameraPostDeletedToast.react","CameraPostGraphQLAPI","CameraPostMedia.react","CameraPostMediaCaptionComponent.react","CameraPostMediaHelper","CameraPostNFXToast.react","CameraPostOwnerView.react","CameraPostReportButton.react","CameraPostSendReplyDraftEditor.react","CameraPostSendingToast.react","CameraPostTypesHelper","CurrentUser","Event","FBStoriesActions","FBStoriesDeleteConfirmationDialog.react","FBStoriesFooterMetadataRenderer.react","FBStoriesGatingConfig","FBStoriesInteractiveFeedbackOverlay.react","FBStoriesLightweightReactions.react","FBStoriesLinkRenderer.react","FBStoriesLoggingConstants","FBStoriesLoggingHelper","FBStoriesMuteConfirmationDialog.react","FBStoriesNFXConfirmationDialog.react","FBStoriesNuxHelper","FBStoriesOptimisticUploadLabel.react","FBStoriesReportToAdminConfirmationDialog.react","FBStoriesViewersAnchor.react","FBStoryLiveSidePaneContainer.react","FBStoryThreadGroupAdminNux.react","FBStoryThreadTagsSidePane.react","FBStoryThreadViewers.react","FBStoryWarningScreenButton.react","FBStoryWarningScreenMediaDescription.react","Focus","GroupFBStoriesGatingConfig","Image.react","ImagePositioner.react","Keys","LineClamp.react","Locale","ReactCSSTransitionGroup","ReactMenu","SegmentedProgressBar.react","ShimButton.react","Visibility","XUIButton.react","XUISpinner.react","clearTimeout","createCancelableFunction","emptyFunction","getActiveElement","promiseDone","react","setTimeout"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react"),l={enter:"_1gs8",enterActive:"_1gs9",leave:"_1gsa",leaveActive:"_1gsc"},m=Object.freeze({PREV:"prev",NEXT:"next",STAY_HERE:"stay_here"}),n=.3,o=1e3,p=200,q=1e3,r=200,s=200,t=200,u=500,v=500,w=1e3,x={enter:"_3dep",enterActive:"_3deq",leave:"_3der",leaveActive:"_3deu"};a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$2=[];e.state={isPaused:!1,isPausedByDev:!1,isReplyFocused:!1,navDirectionOnClick:m.STAY_HERE,isShowingSendingToast:!1,isShowingDeletedToast:!1,isShowingNFXToast:!1,isTextInMediaComponentOverflow:!1,showPausedOverlay:!1,showDarkWashOverlay:!1,showStoryUI:!0,isViewersPanelShown:!1,isDeleteConfirmationDialogShown:!1,isMuteConfirmationDialogShown:!1,isGroupAdminNuxShown:!1,isReactionSendInProgress:!1,isReportToAdminConfirmationDialogShown:!1,isWithPanelShown:!1,isNFXConfirmationDialogShown:!1,selectedNFX:null,showWarningScreen:!!e.props.currentThreadData&&d("CameraPostMediaHelper").hasObjectionableContent(e.props.currentThreadData.media)};e.$13=!1;e.$23=function(a){a!==e.$5&&(a&&(c("Event").listen(a,"keydown",function(a){return e.$68(a)},c("Event").Priority.URGENT),c("Event").listen(a,"keyup",function(a){return e.$69(a)},c("Event").Priority.URGENT),a.focus())),e.$5=a};e.$34=function(){e.$14(!1,!0),e.$9=!0};e.$35=function(){!e.$8&&!e.state.isReplyFocused&&!e.state.isViewersPanelShown&&e.$15(),e.$8=!1,e.$9=!1};e.$36=function(){e.setState({isPausedByDev:!0}),e.$14()};e.$70=function(){if(!e.props.canOpenCurrentThreadViewerSheet)return;var a=!e.state.isViewersPanelShown;e.setState({isViewersPanelShown:a,isWithPanelShown:!1});a&&e.$22();e.$9||(a?e.$14(!1,!0):e.$15())};e.$45=function(){e.setState({isWithPanelShown:!0,isViewersPanelShown:!1}),e.$9||e.$14(!1,!0)};e.$46=function(a){e.$9||e.$14(!1,!0),a.stopPropagation()};e.$49=function(a){e.$9||e.$14(!1,!1),a.stopPropagation()};e.$71=function(a){e.$9||(e.$14(!1,!1),e.setState({showDarkWashOverlay:!0})),a.stopPropagation()};e.$50=function(a){e.$9||e.$15(),a.stopPropagation()};e.$63=function(){e.setState({isWithPanelShown:!1}),e.$9||e.$15()};e.$37=function(){e.$8=!0,e.$14(!1,!0)};e.$38=function(){if(e.state.isPaused)return;e.$14(!1,!0)};e.$26=function(){e.setState({isDeleteConfirmationDialogShown:!0})};e.$57=function(){e.setState({isDeleteConfirmationDialogShown:!1})};e.$56=function(){e.setState({isDeleteConfirmationDialogShown:!1}),e.$72()};e.$29=function(){e.setState({isMuteConfirmationDialogShown:!0})};e.$58=function(){e.setState({isMuteConfirmationDialogShown:!1})};e.$59=function(){e.setState({isMuteConfirmationDialogShown:!1}),e.props.onMuteBucketOwner()};e.$62=function(){e.setState({isReportToAdminConfirmationDialogShown:!1})};e.$61=function(){e.setState({isReportToAdminConfirmationDialogShown:!1}),e.props.onReportCurrentThreadToAdmin()};e.$74=function(){e.setState({isNFXConfirmationDialogShown:!1,selectedNFX:null})};e.$75=function(){var a;a=(a=e.state.selectedNFX)!=null?a.id:a;a&&(e.props.onTakeNegativeFeedbackAction(a),e.$76(w));e.setState({isNFXConfirmationDialogShown:!1});e.$15()};e.$48=function(){e.$77("auto_jump")};e.$81=c("createCancelableFunction")(function(){e.setState({isShowingSendingToast:!1})});e.$80=c("createCancelableFunction")(function(a){e.setState({isShowingSendingToast:!0},function(){e.$10=c("setTimeout")(function(){e.$10=void 0,e.$81()},a)})});e.$64=function(a){if(a==="")return;var b=e.props.currentThreadData;if(!b||b.isLive)return;var f=b.threadID;b=b.cameraPostType;var g=e.props.userInfo.userID;e.$79();e.$15();e.setState({isReplyFocused:!1});d("Focus").set(e.$5);c("promiseDone")(d("CameraPostGraphQLAPI").sendDirectMessageReply(g,f,a,b,!0))};e.$66=function(a){if(a==="")return;var b=e.props.currentThreadData;if(!b||b.isLive)return;var f=b.threadID;b=b.cameraPostType;var g=e.props.userInfo.userID;e.$79();e.$15();e.setState({isReplyFocused:!1});d("Focus").set(e.$5);c("promiseDone")(d("CameraPostGraphQLAPI").sendDirectStickerReply(g,f,b,a))};e.$67=function(a){if(a){var b=e.props.currentThreadData;if(!b||b.isLive)return;var f=b.threadID;b=b.cameraPostType;var g=e.props.userInfo.userID;a=a.source.url;e.$79();e.$15();e.setState({isReplyFocused:!1});d("Focus").set(e.$5);c("promiseDone")(d("CameraPostGraphQLAPI").sendDirectGifReply(g,f,b,a))}};e.$84=c("createCancelableFunction")(function(a,b){e.setState({isShowingDeletedToast:!1}),b&&(e.$12=c("setTimeout")(function(){e.$12=void 0,b&&b()},a))});e.$83=c("createCancelableFunction")(function(a,b,d){e.setState({isShowingDeletedToast:!0},function(){e.$11=c("setTimeout")(function(){e.$84(b,d)},a)})});e.$85=c("createCancelableFunction")(function(){e.setState({isShowingNFXToast:!1,selectedNFX:null})});e.$76=c("createCancelableFunction")(function(a){e.setState({isShowingNFXToast:!0},function(){e.$10=c("setTimeout")(function(){e.$85()},a)})});e.$65=function(a){e.$14(!1,!0),e.setState({isReplyFocused:!0})};e.$47=function(a){e.state.isPaused?(e.$15(),e.state.isReplyFocused&&e.setState({isReplyFocused:!1})):e.$14(!1,!0)};e.$40=function(a){c("clearTimeout")(e.$4),e.$4=c("setTimeout")(function(){if(e.state.isPaused)return;e.$14(!0,!1)},u)};e.$41=function(a){c("clearTimeout")(e.$4);if(a.target.tagName==="INPUT")return;if(e.state.showDarkWashOverlay)return;if(e.state.isPaused)e.$15(),e.state.isReplyFocused&&e.setState({isReplyFocused:!1});else{if(!e.props.enableNavigation)return;if(a.target.className!=="_ide")return;e.state.navDirectionOnClick===m.PREV?e.$78("tap_backward"):e.state.navDirectionOnClick===m.NEXT&&!e.state.isLastThread&&e.$77("tap_forward")}};e.$43=function(a){e.$1=a.target};e.$44=function(a){var b=a.currentTarget.offsetWidth;a=a.nativeEvent.offsetX;var c=n*b;d("Locale").isRTL()&&(a=b-a);a>=0&&a<=c?e.setState({navDirectionOnClick:m.PREV}):a>=b-c&&a<=b?e.setState({navDirectionOnClick:m.NEXT}):e.setState({navDirectionOnClick:m.STAY_HERE})};e.$53=function(a){e.setState({isReactionSendInProgress:!0}),e.$82(a),e.$14(!1,!1)};e.$54=function(){e.setState({isReactionSendInProgress:!1}),e.$15()};e.$15=function(){if(e.state.isPausedByDev)return;c("clearTimeout")(e.$4);c("clearTimeout")(e.$3);e.setState({isPaused:!1,showPausedOverlay:!1,showDarkWashOverlay:!1,showStoryUI:!0,isViewersPanelShown:!1,isWithPanelShown:!1})};b.autoOpenViewersheet&&(e.state=babelHelpers["extends"]({},e.state,{isViewersPanelShown:!0,isWithPanelShown:!1,isPaused:!0,showStoryUI:!0,showPausedOverlay:!0}));return e}var e=b.prototype;e.componentDidMount=function(){var a=this;this.$2=[c("Visibility").addListener(c("Visibility").HIDDEN,function(){if(a.state.isPaused){a.$13=!1;return}a.$13=!0;a.$14(!1,!0)}),c("Visibility").addListener(c("Visibility").VISIBLE,function(){a.$13&&a.$15()})];this.$5&&d("Focus").set(this.$5);(this.props.currentThreadData||this.props.isBucketLive)&&this.$16();this.$17(this.props)};e.UNSAFE_componentWillUpdate=function(a,b){!this.props.allBucketsViewed&&a.allBucketsViewed&&a.onDone(),this.props.bucketID!==a.bucketID?(this.setState(this.$18(a)),this.$17(a)):this.props.currentThreadIndex!==a.currentThreadIndex&&this.$19(a)};e.componentDidUpdate=function(a,b){(this.props.currentThreadData||this.props.isBucketLive)&&this.props.currentThreadID!==a.currentThreadID&&this.$16();a=c("getActiveElement")();!this.state.isReplyFocused&&this.$5&&!this.props.isBucketLive&&(!this.$1||this.$1===a&&a.tagName!=="A"&&a.tagName!=="BUTTON")&&d("Focus").set(this.$5);b.isViewersPanelShown===!0&&this.state.isViewersPanelShown===!1&&this.$20()};e.$20=function(){this.props.currentThreadID&&d("FBStoriesActions").markThreadViewersSeen(this.props.currentThreadID)};e.$19=function(a){a=a.currentThreadData;if(!a)return;a=d("CameraPostMediaHelper").hasObjectionableContent(a.media);this.setState({isPaused:!1,showDarkWashOverlay:!1,showStoryUI:!0,showPausedOverlay:!1,showWarningScreen:a})};e.$17=function(a){var b=this;a.isGroupAdminBucket&&d("FBStoriesNuxHelper").checkIfNuxShouldBeShown(c("FBStoryThreadGroupAdminNux.react").nuxID(),function(){b.$14(!1,!1),b.setState({isGroupAdminNuxShown:!0})})};e.$16=function(){var a=this.props,b=a.storyActionLoggingData;a=a.storyActionSource;d("FBStoriesLoggingHelper").openMediaLog(a,b)};e.$21=function(){d("FBStoriesLoggingHelper").mediaLog(d("FBStoriesLoggingConstants").ACTION_DELETE_MEDIA)};e.$22=function(){d("FBStoriesLoggingHelper").mediaLog(d("FBStoriesLoggingConstants").ACTION_OPEN_SEEN_SUMMARY)};e.render=function(){var a=this,b="_4tkv"+(this.props.isLandscape&&this.props.isBucketLive?" _fxh":"")+" _24o3"+(this.props.isBucketLive?" _2dnb":""),e=this.props.userInfo.userID,f=this.props.currentThreadData;if(!f)return k.jsx("div",{id:"fbStoryContainer",role:"tabpanel",tabIndex:-1,ref:this.$23,className:b});var g=f.media,h=f.cameraPostType,n=d("CameraPostMediaHelper").getType(g),o=d("CameraPostMediaHelper").getWidth(g),q=d("CameraPostMediaHelper").getHeight(g),u=d("CameraPostMediaHelper").isSphericalPhoto(g),v,y,z,A,B,C,D="",E,F,G,H,I={},J,K,L=[],M=(this.$24()||d("CameraPostTypesHelper").isGroupStory(h)&&c("GroupFBStoriesGatingConfig").isWWWLightweightReactionsEnabled&&c("GroupFBStoriesGatingConfig").isGroupLightweightReactionEnabled&&!this.props.isOwnThread)&&c("FBStoriesGatingConfig").isLightweightReactionEnabled;if(!f.isLive){var N=f.time,O=f.participants,P=f.bucketOwner,Q=f.threadOwner,R=f.cameraPostSource,S=f.wwwTextFormatMetadata,T=f.textFormatMetadata,U=f.originalPostStoryAttribution,V=f.withTags,W=f.inlineActivities,X=f.explicitLocation,Y=f.activityDescription;C=f.threadID;D=f.messageText;E=f.messageRanges;F=f.isPlainText;G=f.backdropImage;H=f.defaultBackground;J=f.linkAttachment;K=f.mediaBackground;L=f.delightRanges;y=d("CameraPostBucketOwnerHelper").getName(P);v=d("CameraPostBucketOwnerHelper").getId(P);d("CameraPostTypesHelper").isGroupStory(h)&&!d("CameraPostBucketOwnerHelper").isViewerGroupMember(P)&&(M=!1);A={rootMessageText:D,wwwTextFormatMetadata:S,textFormatMetadata:T};I={withTags:V,inlineActivities:W,explicitLocation:X,activityDescription:Y,threadID:C};f=[];this.$25()&&f.push(k.jsxs(c("ReactMenu").Item,{disabled:this.props.isStoryUploading,onClick:this.$26,children:[this.props.isStoryUploading&&k.jsx(c("XUISpinner.react"),{size:"small"}),k.jsx(c("Image.react"),{src:j("114073")}),this.$27(n)]},"delete_own_thread"));if(this.$28()){S=d("CameraPostTypesHelper").isGroupStory(h);f.push(k.jsxs(c("ReactMenu").Item,{onClick:this.$29,children:[k.jsx(c("Image.react"),{src:j("113496")}),k.jsx("span",{children:k.jsx(c("LineClamp.react"),{className:S?"":"_65ki",lines:1,children:this.$30(S,y)})})]},"mute_bucket_owner"))}if(this.props.currentThreadData&&!this.props.currentThreadData.isLive&&this.props.currentThreadData.negativeFeedbackActions){T=this.props.currentThreadData.negativeFeedbackActions;for(V=0;V
FBStoriesSingleBucketStoryContainer.react",["Arbiter","CameraPostMediaHelper","CurrentUser","ErrorBoundary.react","FBLogger","FBStoriesBucketHelper","FBStoriesCurrentThreadDataHelper","FBStoriesGraphQLAPI","FBStoriesLoggingConstants","FBStoriesLoggingHelper","FBStoriesSingleBucketStoryDataHelper","FBStoriesThreadHelper","FBStoryThread.react","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
MNCommerceOrderDetailsDialogContainer.react",["BanzaiLogger","MNCommerceDialogStateActions","MNCommerceDialogStateStore","MNCommerceLoggingConstants","MNCommerceOrderDetailsDialog.react","MNCommerceReceiptActions","MNCommerceReceiptStore","PureStoreBasedStateMixin","createReactClass_DEPRECATED","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=c("createReactClass_DEPRECATED")({displayName:"MNCommerceOrderDetailsDialogContainer",mixins:[c("PureStoreBasedStateMixin")(c("MNCommerceReceiptStore"))],statics:{calculateState:function(){var a=c("MNCommerceDialogStateStore").getState(),b=null,e=null;a&&(b=a.receiptID,e=a.messageID);e=c("MNCommerceReceiptStore").getReceipt(b,e);e.isLoading()||c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:e.hasError()?"dialog_load_error":"dialog_load_success",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.RECEIPT,receipt_id:b})});return{shown:!!a,loading:e.isLoading(),receiptID:b,receipt:e.getValue(),error:e.getError()}}},render:function(){return h.jsx(c("MNCommerceOrderDetailsDialog.react"),{loading:this.state.loading,error:this.state.error,onToggle:this._onToggle,onTryAgain:this._onTryAgainClick,shown:this.state.shown,receipt:this.state.receipt})},_onToggle:function(a){a||(c("BanzaiLogger").log("MessengerCommerceLoggerConfig",{event:"dialog_closed",debug_data:JSON.stringify({dialog_surface:d("MNCommerceLoggingConstants").DIALOG_SURFACE.RECEIPT,receipt_id:this.state.receipt.receipt_id})}),d("MNCommerceDialogStateActions").hideDialog())},_onTryAgainClick:function(){d("MNCommerceReceiptActions").receiptReload(this.state.receiptID,this.state.messageID)}});b=a;g["default"]=b}),98);
-----
MNCommerceLoggingConstants",[],(function(a,b,c,d,e,f){a={CHECKOUT_ORDER_CONFIG:"checkout_order_config",SHIPMENT:"shipment",RECEIPT:"receipt",UNLINK:"unlink",UNLINK_ERROR:"unlink_error",MANAGE:"manage"};f.DIALOG_SURFACE=a}),66);
-----
StoriesCommentBar.react",["fbt","CometIcon.react","CometPressable.react","CometRelay","CommentFilled24.svg.react","SVGIcon","StoriesCommentBar_bucket.graphql","StoriesFeedbackCommentStateContext","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspensePauseContext","TetraText.react","react","useCometTooltipQP","useMergeRefs","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m={commentIconContainer:{alignSelf:"xamitd3",paddingStart:"xlu9dua",$$css:!0},placeholder:{alignSelf:"xamitd3",paddingStart:"xurb0ha",$$css:!0},root:{alignItems:"x6s0dn4",alignSelf:"xamitd3",backgroundColor:"xjbqb8w",borderTop:"x46tl6i",borderEnd:"x1cj8nmc",borderBottom:"xw6phed",borderStart:"x1y8pnwx",borderTopStartRadius:"x1v38n6o",borderTopEndRadius:"xg5ltox",borderBottomEndRadius:"x1j3q6us",borderBottomStartRadius:"x1ybjxci",boxShadow:"xg43tsh",boxSizing:"x9f619",display:"x78zum5",flexBasis:"xchdapg",flexDirection:"x1q0g3np",height:"x1vqgdyp",marginEnd:"x1emribx",position:"x1n2onr6",$$css:!0},rootSelected:{borderTop:"xx93lmc",borderEnd:"x6ae448",borderBottom:"xan12lv",borderStart:"x8v2cgj",$$css:!0},tooltip:{maxWidth:"xf6di2m",$$css:!0}},n=h._("u53d1u5e03u8bc4u8bba..."),o=d("StoriesGating").shouldUseCommentsSheet();function a(a){a=a.bucket;var e=l(c("StoriesLoggerContext")),f=e.logger;e=l(c("StoriesSuspensePauseContext"));var g=e.setPause;e=l(c("StoriesFeedbackCommentStateContext"));var p=e.isCommentsRightRailOpen,q=e.setCommentTriggerSource,r=e.setIsCommentsRightRailOpen,s=e.setShowCommentsSheetOverlay,t=e.showCommentsSheetOverlay;e=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesCommentBar_bucket.graphql"),a);a=c("useCometTooltipQP")(e==null?void 0:e.quick_promotion_stories_comments_friend_story,{align:"start",disableOutsideClick:!0,xstyle:m.tooltip});e=c("useVisibilityObserver")({onVisible:function(){f.commentButtonImpressionLog()}});a=c("useMergeRefs")(a,e);e=k(function(){q(c("StoriesLoggingConstants").COMMENT_TRIGGER_SOURCE.STORY_UFI_BUTTON),o?(g(!0,d("StoriesPauseReasons").COMMENTS_SHEET_OVERLAY),s(!t)):r(!p)},[p,q,r,g,s,t]);return j.jsx("div",{className:"x6s0dn4 xamitd3 xjbqb8w x1v38n6o xg5ltox x1j3q6us x1ybjxci xg43tsh x9f619 x78zum5 xchdapg x1q0g3np x1vqgdyp x1emribx x1n2onr6"+(p?" xx93lmc x6ae448 xan12lv x8v2cgj":" x46tl6i x1cj8nmc xw6phed x1y8pnwx"),ref:a,children:j.jsxs(c("CometPressable.react"),{"aria-label":h._("u8bc4u8bbau63a5u5165u70b9"),onPress:e,style:{height:"100%",width:"100%"},children:[j.jsx("div",{className:"xamitd3 xlu9dua",children:j.jsx(c("CometIcon.react"),{color:p?"highlight":"white",icon:d("SVGIcon").svgIcon(c("CommentFilled24.svg.react")),size:24})}),j.jsx("div",{className:"xamitd3 xurb0ha",children:j.jsx(c("TetraText.react"),{color:p?"highlight":"secondary",type:"meta3",children:n})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
NotificationList.react",["Arbiter","BizNotificationFilterUtils","CreatorStudioNotificationTrayBanner.react","FunnelLogger","NotifType","NotificationBucketStoreManager","NotificationConstants","NotificationHiddenState","NotificationJewelFunnelLoggingConstants","NotificationSeenState","NotificationStore","NotificationUpdates","NotificationUserActions","NotificationVPVs","Promise","SubscriptionsHandler","TimeSlice","createCancelableFunction","getObjectValues","isEmpty","mapObject","prop-types","react","regeneratorRuntime","retry"],(function(a,b,c,d,e,f,g){var h=d("react"),i=3,j="notification_clicked",k="WebNotificationsPayloadPagelet";function l(a){return{classification:a.classification,endpointControllerName:a.endpoint!=null?a.endpoint:"WebNotificationsPayloadPagelet",readness:a.readness}}a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){var e;for(var f=arguments.length,g=new Array(f>1?f-1:0),h=1;h
-----
NotificationJewelList.react",["cx","fbt","AdsMgmtPerfScenarioController","Animation","ErrorBoundary.react","Event","FunnelLogger","JewelLogger","LogicalGrid.react","NotificationBucket.react","NotificationJewelFunnelLoggingConstants","NotificationListConfig","NotificationListItem.react","NotificationListPropTypes","NotificationListRetryFetchButton.react","NotificationVPVs","ReactDOM","ScrollableArea.react","SubscriptionsHandler","TimeSlice","TrackingNodes","Vector","WebNotificationsBottomCollisionsTypedLogger","XUISpinner.react","clearTimeout","debounce","getObjectValues","isEmpty","performanceNowNoFallback","react","setTimeoutAcrossTransitions","throttle"],(function(a,b,c,d,e,f,g,h,i){var j=d("react"),k=160,l=530,m=61,n=Math.ceil(m*c("NotificationListConfig").numStoriesFromEndBeforeAFetchIsTriggered),o=430,p;function q(a){p!=a&&(new(c("WebNotificationsBottomCollisionsTypedLogger"))().log(),p=a)}a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
NotificationJewelController",["AdsApplicationUtils","Arbiter","Bootloader","Event","FunnelLogger","IndeterminateNotificationCounter","NotificationConstants","NotificationCounter","NotificationJewelFunnelLoggingConstants","NotificationSeenState","NotificationStore","NotificationUpdates","clearTimeout","createObjectFrom","curry","gkx","ifRequired","setTimeoutAcrossTransitions"],(function(a,b,c,d,e,f,g){var h=0,i=!1;function j(a){var b=c("NotificationSeenState").getUnseenCount();c("Arbiter").inform("jewel/count-updated",{jewel:a,count:b,animation:"none"},"state")}a=function(){function a(a,b){var e=this,f=b.badgeAnimationData,g=b.classification,i=b.endPoint,k=b.isBizsite,l=b.list;b=b.unseenNotifs;i&&d("NotificationStore").registerEndpoint({endpointControllerName:i,classification:g});k?d("IndeterminateNotificationCounter").init(b.length):d("NotificationCounter").init();var m=c("Event").listen(a.getRoot(),"mouseover",function(){d("FunnelLogger").startFunnel(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME),m&&m.remove(),m=null,d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.MOUSE_OVER_ON_JEWEL),e.eagerRender(l)}),n=null;c("Event").listen(a.getRoot(),"mouseover",function(){n=c("setTimeoutAcrossTransitions")(function(){c("Bootloader").loadModules(["QE2Logger"],function(a){a.logExposureForUser("www_jewel_tooltip_experiment")},"NotificationJewelController"),n=null},500)});c("Event").listen(a.getRoot(),"mouseout",function(){n&&c("clearTimeout")(n)});var o=a.subscribe("opened",function(){o&&o.unsubscribe(),o=null,l.open()}),p=l.pause.bind(l);a.subscribe("opened",function(){window.setTimeout(p,0),j(a.name),c("Bootloader").loadModules(["NotificationVPVs"],function(a){return a.clearImpressions()},"NotificationJewelController"),c("Arbiter").inform("notificationJewel/opened")});a.subscribe("closed",function(){l.unpause(),j(a.name),c("Arbiter").inform("notificationJewel/closed"),l.setFlyoutOpenState(!1)});a.subscribe("user-open",function(a,b){d("AdsApplicationUtils").isPowerEditor()&&c("ifRequired")("AdsMgmtPerfScenarioController",function(a){var b=a.startScenario({name:"am:global_nav_bar:notification_init_load"},"outside_flux",null);c("gkx")("3638")&&c("ifRequired")("AdsInteractionIdController",function(a){a.attachScenarioIDToInteraction("am.global_nav_bar.notification_init_load",b)})}),l.setFlyoutOpenState(!0)});a.isOpen()&&l.setFlyoutOpenState(!0);d("NotificationUpdates").subscribe("seen-state-updated",c("curry")(j,a.name));f&&(f.logWithQEUniverse&&c("Bootloader").loadModules(["QE2Logger"],function(a){return a.logExposureForUser(f.logWithQEUniverse)},"NotificationJewelController"),f.injectWithAnimation&&c("Bootloader").loadModules(["RelationshipDelightsBadge"],function(b){return b.inject(a,f.injectWithAnimation)},"NotificationJewelController"));d("NotificationUpdates").handleUpdate(d("NotificationConstants").PayloadSourceType.INITIAL_LOAD,{seenState:c("createObjectFrom")(b,h)});j(a.name);c("Arbiter").inform("jewel_mounted")}var b=a.prototype;b.eagerRender=function(a){i||(i=!0,a.open())};return a}();g["default"]=a}),98);
-----
PartnerIntegrationSetupController.react",["fbt","AdsApplicationUtils","AdsDataAtom","AdsEventsManagerGatingUtils","AdsEventsManagerGiveFeedbackBody.react","AdsEventsManagerGiveFeedbackContextProvider.react","AdsEventsManagerGiveFeedbackGeoFooter.react","AdsEventsManagerGiveFeedbackLink.react","AdsEventsManagerMaguxLoggerHelper","AdsEventsManagerTaskLevelPerceptionEQSurveyUpdateStateAction","AdsLWIPartnerIntegrationDialogDispatchToCompatBroker","AdsS4LConversionsAPIFlowTip.react","AdsS4LIconContainer.react","CAPIPartnerIntegrationPerceptionSurveyHelper","ConversionsAPIMarketingExpertEntryContainer.react","ConversionsAPIMarketingExpertUtils","Env","GeoCancelButton.react","GeoHStack.react","GeoModal.react","GeoModalCard.react","GeoModalFooter.react","GeoModalHeader.react","GeoScrollableArea.react","GeoSection.react","GeoStep.react","GeoStepperBottomSheet.react","LoadingDialog.react","PartnerIntegrationAssetTypeHelper","PartnerIntegrationDialogTypes","PartnerIntegrationLoggerUtils","PartnerIntegrationLoggingScopes","PartnerIntegrationSetupActionTypes","PartnerIntegrationSetupActions","PartnerIntegrationSetupFbt","PartnerIntegrationSetupWindowActions","PartnerIntegrationStepperBottomSheetUtils","PrereqsLoggingConstants","Promise","SignalsFlowPhase.react","SignalsLoggingBoundary.react","SignalsMultiPhaseFlow.react","SimpleNUXMessage","emptyFunction","geoMargin","nullthrows","partnerIntegrationSecondaryLogger","promiseDone","qpl","react","regeneratorRuntime","signalsLoggingPartnerIntegrationsListener"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=d("react").PureComponent;var j={scrollContent:{height:"x5yr21d",width:"xh8yej3",$$css:!0}},k=800,l={areButtonsEnabled:!0,currentSetupStepIndex:0,isHandlingOnceBeforeOnStepStart:!1,maxSetupStepVisitedIndex:-1,setupStartTimeInMs:-1,shouldShowNUX:!c("SimpleNUXMessage").hasUserSeenMessage_LEGACY("623233532396550")};e=function(a){babelHelpers.inheritsLoose(e,a);function e(e){var f;f=a.call(this,e)||this;f.state=l;f.$2=null;f.$5=function(a,b){f.setState(function(a){return{currentSetupStepIndex:b}},function(){return f.$4(b)}),d("PartnerIntegrationSetupActions").setCurrentSetupStepIndex(b),d("PartnerIntegrationSetupActions").resetErrorMessage({logger:f.props.logger})};f.$4=function(a){var c,d,e,g,h,i,j,k,l,m,n,o,p;return b("regeneratorRuntime").async(function(q){while(1)switch(q.prev=q.next){case 0:c=f.state.isHandlingOnceBeforeOnStepStart;d=f.$6(a),e=d.logSuffix,g=d.onceBeforeOnStartStep,h=d.onStartStep,i=d.startAction;j=f.props,k=j.accountID,l=j.businessID,m=j.logger,n=j.partner,o=j.setupFormState,p=j.dependentStates;if(!(!c&&g)){q.next=14;break}f.setState({isHandlingOnceBeforeOnStepStart:!0});q.prev=5;q.next=8;return b("regeneratorRuntime").awrap(g({accountID:k,businessID:l,context:{dependentStates:p,formState:o,logger:m},partner:n}));case 8:q.next=13;break;case 10:q.prev=10,q.t0=q["catch"](5),f.$7(i,q.t0,e);case 13:f.setState({isHandlingOnceBeforeOnStepStart:!1});case 14:q.next=16;return b("regeneratorRuntime").awrap(f.asyncSetState(function(a){return{maxSetupStepVisitedIndex:Math.max(a.maxSetupStepVisitedIndex,a.currentSetupStepIndex)}}));case 16:if(!h){q.next=25;break}q.prev=17;q.next=20;return b("regeneratorRuntime").awrap(h({accountID:k,businessID:l,context:{dependentStates:p,formState:o,logger:m},partnerType:n.type}));case 20:q.next=25;break;case 22:q.prev=22,q.t1=q["catch"](17),f.$7(i,q.t1,e);case 25:f.$8(i,e);case 26:case"end":return q.stop()}},null,this,[[5,10],[17,22]])};f.$9=function(){f.$5(f.state.currentSetupStepIndex,f.state.currentSetupStepIndex-1)};f.$10=function(){f.$11(f.state.currentSetupStepIndex,f.state.currentSetupStepIndex+1)};f.$11=function(a,c){var e,g,h,i,j,k,l,m,n,o,p,q;return b("regeneratorRuntime").async(function(r){while(1)switch(r.prev=r.next){case 0:r.next=2;return b("regeneratorRuntime").awrap(f.asyncSetState(function(a){return{areButtonsEnabled:!1}}));case 2:e=f.$6(a),g=e.completeAction,h=e.logSuffix,i=e.onCompleteStepClick;j=f.props,k=j.accountID,l=j.businessID,m=j.dependentStates,n=j.logger,o=j.partner,p=j.setupFormState;q=i?i({accountID:k,businessID:l,context:{dependentStates:m,formState:p,logger:n},partner:o}):b("Promise").resolve();r.prev=5;r.next=8;return b("regeneratorRuntime").awrap(q);case 8:f.$8(g,h);r.next=11;return b("regeneratorRuntime").awrap(f.asyncSetState(function(a){return{areButtonsEnabled:!0,currentSetupStepIndex:c}}));case 11:d("PartnerIntegrationSetupActions").setCurrentSetupStepIndex(c);f.$4(c);r.next=19;break;case 15:r.prev=15,r.t0=r["catch"](5),f.$7(g,r.t0,h),f.setState(function(a){return{areButtonsEnabled:!0}});case 19:case"end":return r.stop()}},null,this,[[5,15]])};f.$6=function(a){return f.$12()[a]};f.$8=function(a,b){f.$13(a+(b||"")),c("AdsDataAtom").handleUpdateFromViewAction({type:a})};f.$7=function(a,b,c){return d("PartnerIntegrationLoggerUtils").logError({action:a+(c||""),error:b,logger:f.props.logger})};f.$15=function(){f.$14()?f.props.logger.endUserFlowEventSuccess(c("qpl")._(58208337,"680")):f.props.logger.endUserFlowEventCancel(c("qpl")._(58208337,"680"));c("PartnerIntegrationSetupWindowActions").closeChildWindow();if(f.$14())f.$16();else{f.setState({currentSetupStepIndex:0});d("PartnerIntegrationSetupActions").setCurrentSetupStepIndex(0);d("PartnerIntegrationSetupActions").closeSetup({logger:f.props.logger});var a=f.props.onClose;a!=null?a():null;a=f.$6(f.state.currentSetupStepIndex);a=a.onCloseDialogAction;a?a():b("Promise").resolve()}};f.$16=function(){var a=f.$14(),e=f.$6(f.state.currentSetupStepIndex),g=e.completeAction,h=e.logSuffix,i=e.onCompleteStepClick,j=e.onCloseDialogAction;e=f.props;var k=e.accountID,l=e.businessID,m=e.dependentStates,n=e.logger,o=e.partner;e=e.setupFormState;i=b("Promise").resolve(i&&i({accountID:k,businessID:l,context:{dependentStates:m,formState:e,logger:n},partner:o}));c("promiseDone")(i["catch"](function(a){return f.$7(g,a,h)}),function(){f.$8(g,h);f.$8(c("PartnerIntegrationSetupActionTypes").PARTNER_INTEGRATION_SETUP_CLOSE);a&&(f.$8(c("PartnerIntegrationSetupActionTypes").PARTNER_INTEGRATION_SETUP_COMPLETE),d("PartnerIntegrationSetupActions").setCurrentSetupStepIndex(0));var e=f.props.onClose;e!=null?e():null;j?j():b("Promise").resolve()})};f.$17=function(a,b){a=Number(a);b=Number(b);if(b!==f.state.currentSetupStepIndex){a0&&Date.now()-a.state.setupStartTimeInMs>d("CAPIPartnerIntegrationPerceptionSurveyHelper").TIME_SPENT_TRUE_FINISH_IN_MS;e&&t===5&&b===c("PartnerIntegrationDialogTypes").SETUP_STEPS&&c("AdsEventsManagerTaskLevelPerceptionEQSurveyUpdateStateAction").dispatch({shouldShowSurvey:!0,surveyPrimaryDescription:d("CAPIPartnerIntegrationPerceptionSurveyHelper").getSurveyPrimaryDescriptionTextByPartner(s.type),uxFlow:d("CAPIPartnerIntegrationPerceptionSurveyHelper").getUxFlowByPartner(s.type)},{line:"669",module:"PartnerIntegrationSetupController.react.js"});d("AdsEventsManagerMaguxLoggerHelper").logClickSuccesses({hasOptOut3PD:!1,sourceKeys:["em_connect_data_sources","em_connect_data_sources_partner_integration"]})};A=A.nextButton?this.$18(A.nextButton({context:{dependentStates:o,formState:w,logger:r},stepIndex:x,stepsSize:y.length}),x===y.length-1?C:this.$10):null;C=A!=null||g!=null||B!=null;var D=A?B:null,E=function(){c("SimpleNUXMessage").markMessageSeenByUser("623233532396550"),a.setState({shouldShowNUX:!1})},F=d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager()&&d("ConversionsAPIMarketingExpertUtils").marketingExpertCAPIFlowPartners.includes(s.type),G=d("ConversionsAPIMarketingExpertUtils").getSourceTrackingForCAPIPartner(s.type);C=C?i.jsxs(c("GeoHStack.react"),{alignItems:"center",children:[q&&f!=null&&i.jsx("div",{id:d("AdsS4LConversionsAPIFlowTip.react").CAPI_PARTNER_FLOW_S4L_ICON,children:i.jsx(c("AdsS4LIconContainer.react"),{adAccountID:f,"data-testid":void 0,isTooltipDisabled:!1,source:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER,taskName:"capi",tooltipAlign:"start"})}),s.dataSources.includes(0)||s.dataSources.includes(5)?F?i.jsx(c("ConversionsAPIMarketingExpertEntryContainer.react"),{defaultExperience:i.jsx(c("AdsEventsManagerGiveFeedbackLink.react"),{}),sourceTracking:G}):i.jsx(c("AdsEventsManagerGiveFeedbackLink.react"),{xstyle:q&&c("geoMargin").start12}):D,q&&this.state.shouldShowNUX&&i.jsx(d("AdsS4LConversionsAPIFlowTip.react").AdsS4LConversionsAPIFlowTip,{contextID:d("AdsS4LConversionsAPIFlowTip.react").CAPI_PARTNER_FLOW_S4L_ICON,onClose:E})]}):null;D=i.jsx(c("AdsEventsManagerGiveFeedbackGeoFooter.react"),{children:i.jsx(c("GeoModalFooter.react"),{primaryButton:(G=(F=A)!=null?F:g)!=null?G:B,secondaryButton:A?g:null,startContent:C})});q=l?l.size>0:null;E=v?v.size>0:null;F=E===null&&q===null?"UNDEFINED":E===!0?"HAS_SERVER_EVENTS":q===!0?"HAS_BROWSER_EVENTS":"NEW_PIXEL";G=t===5;var H=d("PartnerIntegrationStepperBottomSheetUtils").isShownAsStepperBottomSheet(t,e);B={behaviors:c("Env").isCQuick?{AdsLWIPartnerIntegrationDialogDispatchToCompatBroker:c("AdsLWIPartnerIntegrationDialogDispatchToCompatBroker"),LayerHideOnBlur:null,SUIModalFillViewportHeight:null}:{LayerHideOnBlur:null},"data-testid":"PARTNER_INTEGRATION_SETUP_CONTROLLER",hideOnBlur:!1,isShown:!0,onHide:this.$15};A=h._("Pixel u50cfu7d20u4ee3u7801uff1a{Pixel ID}",[h._param("Pixel ID",u)]);C=(g=z.getDescription)!=null?g:function(){return""};l={footer:D,header:i.jsx(c("GeoModalHeader.react"),{description:d("AdsApplicationUtils").isPowerEditor()&&u!=null?A:C(),heading:this.$19(z,s,H)}),height:c("Env").isCQuick?c("AdsLWIPartnerIntegrationDialogDispatchToCompatBroker").getHeight():void 0};v=i.jsx(c("AdsEventsManagerGiveFeedbackBody.react"),{hasFixedHeight:!0,children:i.jsx(c("GeoScrollableArea.react"),{xstyle:j.scrollContent,children:i.jsx(c("GeoSection.react"),{children:i.jsx(c("SignalsMultiPhaseFlow.react"),{hideProgress:H,isShownInsideStepperBottomSheet:H,numbered:!1,phaseID:this.state.currentSetupStepIndex.toString(),shouldShowStepperBorder:!1,shouldUseSUIModalFooter:!0,stepperSize:"small",onBackOut:this.$15,onCancel:this.$15,onStepOut:this.$16,onTransition:this.$17,children:y.map(function(b,d){return i.jsx(c("SignalsFlowPhase.react"),{"data-testid":void 0,id:d.toString(),isShownInsideStepperBottomSheet:H,label:b.stepName,children:i.jsx(b.configSection,{accountID:f,businessID:n,dependentStates:o,logger:r,partnerName:s.name,partnerType:s.type,setupFormState:w,stepType:b.stepType,substepsData:b.substepsData,vertical:s.vertical,onBack:a.$9,onClickSubstep:b.onClickSubstep,onContinue:a.$10})},"step"+d.toString())})})})})});return i.jsx(c("AdsEventsManagerGiveFeedbackContextProvider.react"),{entryPoint:p,feedbackSource:"PARTNER_INTEGRATION_SETUP_DIALOG",isCAPISetup:G,partnerFlowStep:x+1,partnerName:s.name,pixelSetupStatus:F,signalSourceID:u,useCase:"PARTNER_INTEGRATION",children:H?i.jsx(m,{currentIndex:x,geoComponentProps:B,geoModalProps:l,maxVisitedIndex:b,partnerName:s.name,stepsArray:y,onStepperClick:this.$5,children:v}):i.jsx(c("GeoModal.react"),babelHelpers["extends"]({},l,B,{width:k,children:v}))})};return e}(a);function m(a){var b=a.children,d=a.currentIndex,e=a.geoComponentProps,f=a.geoModalProps,g=a.maxVisitedIndex,j=a.onStepperClick,k=a.partnerName;a=a.stepsArray;function l(a){a=a.stepName;switch(a){case"Download Facebook Business Apps":return h._("u4e0bu8f7du63d2u4ef6");case"Install the Facebook Business Extension":return h._("u5b89u88c5u63d2u4ef6");default:return a}}a=a.map(function(a,b){var e=function(){var a=b>g;if(a)return;j(d,b)};return i.jsx(c("GeoStep.react"),{id:b,label:l(a),status:b
FBStoriesViewer2",["csx","cx","Arbiter","CSS","ChatSidebarActions","ChatSidebarStore","DOM","DOMQuery","FBLogger","FBStoriesTrayReloadXHPTray","FantaHider","PageTransitions","ReactDOM","StoriesArchiveCardStoreForBlue","StoriesCometPlaceholder.react","StoriesLoggingConstants","StoriesTrayLoggerSessionProvider","StoriesViewer2URI","URI","UserAgent","deferredLoadComponent","react","requireDeferred"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=c("deferredLoadComponent")(c("requireDeferred")("StoriesViewerSuspenseRoot.react").__setRef("FBStoriesViewer2")),l=c("deferredLoadComponent")(c("requireDeferred")("StoriesViewerSingleBucketRoot.react").__setRef("FBStoriesViewer2")),m=c("deferredLoadComponent")(c("requireDeferred")("StoriesArchiveRoot.react").__setRef("FBStoriesViewer2")),n="fb_stories_theater",o=4;a=function(){a.getInstance=function(){this.$9||(a.$9=new a());return a.$9};a.open=function(b){a.getInstance().open(b)};function a(){var a=this;this.$6=null;this.$7=null;this.$8=!1;this.$13=function(b){if(d("StoriesViewer2URI").isValid(b))return!0;a.$10();a.$7&&a.$7.unsubscribe();var e=a.$6;if(e&&b.getQualifiedURI().toString()===e.getQualifiedURI().toString()){b.stripTrailingSlash().getPath()===""&&d("FBStoriesTrayReloadXHPTray").reloadTray();c("PageTransitions").transitionComplete();return!0}return!1};this.$1=!1;this.$3=d("DOMQuery").scry(document.body,"._li")[0]}var b=a.prototype;b.toggle=function(a,b){a?this.open(b):this.$10()};b.open=function(a){var b=this,e=a.bucketID,f=a.cardID;this.$1&&this.$10();var g=function e(f){if(d("StoriesViewer2URI").isValid(f)===!1){c("FBLogger")("fbstories").mustfix("Stories Viewer Transition Handler hit with non story viewer URL with uri: "+f.getPath());return!1}c("PageTransitions").removeHandler(e,o);b.$11(a);c("PageTransitions").transitionComplete();return!0};c("PageTransitions").registerHandler(g,o);this.$6=c("PageTransitions").getCurrentURI();this.$8=c("PageTransitions").isTransitioning();c("PageTransitions").go(d("StoriesViewer2URI").getURI(e,f))};b.closeArchiveDialogAndRefresh=function(){c("StoriesArchiveCardStoreForBlue").DeletedStoryList.size>0&&(c("StoriesArchiveCardStoreForBlue").DeletedStoryList.forEach(function(a){if(c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.has(a)){var b=c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.get(a);b&&(b.onDeleted(),c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap["delete"](a))}}),c("StoriesArchiveCardStoreForBlue").DeletedStoryList.clear()),c("StoriesArchiveCardStoreForBlue").SeenStoryList.size>0&&(c("StoriesArchiveCardStoreForBlue").SeenStoryList.forEach(function(a){if(c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.has(a)){a=c("StoriesArchiveCardStoreForBlue").StoriesArchiveDataMap.get(a);a&&a.onSeenStory()}}),c("StoriesArchiveCardStoreForBlue").SeenStoryList.clear()),this.$10()};b.navigateToEntryPoint=function(){this.$6&&d("StoriesViewer2URI").isValid(this.$6)&&(this.$6=new(c("URI"))("/"),this.$8=!1),this.$6?c("PageTransitions").go(this.$6):c("URI").go("/")};b.$12=function(a){var b=a.bucketID,e=a.bucketListFetchPolicy,f=a.cardID,g=a.currentTime,h=a.openSource,i=a.traySessionID,o=a.viewerSessionID,p=a.tilePosition;a=a.trackingString;d("CSS").addClass(this.$3,"_72b0");document.body&&d("CSS").addClass(document.body,"_7d54");var q=c("DOM").create("div",{id:n});d("CSS").setClass(q,"_74r7");var r=c("DOM").create("div");c("DOM").appendContent(r,q);this.$4=r;this.$2=q;d("CSS").setClass(r,"_74r8");c("UserAgent").isBrowser("Edge")||d("CSS").addClass(r,"_7qac");c("DOM").appendContent(this.$3,r);r=null;if(h===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE)g!=null&&(r=j.jsx(m,{currentStoryTime:g,cardID:f||"",fadeIn:!0,openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,traySessionID:i,viewerSessionID:o}));else{g=h===c("StoriesLoggingConstants").ACTION_SOURCE.FACEBOOK_CHAT_TAB||h===c("StoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM||h===c("StoriesLoggingConstants").ACTION_SOURCE.PAGE_PROFILE||h===c("StoriesLoggingConstants").ACTION_SOURCE.POST_HEADER||h===c("StoriesLoggingConstants").ACTION_SOURCE.TODAY_IN;if(g){r=j.jsx(l,{bucketID:b,cardID:f||"",fadeIn:!0,openSource:(g=h)!=null?g:c("StoriesLoggingConstants").ACTION_SOURCE.TRAY,traySessionID:i,tilePosition:p,viewerSessionID:o})}else{r=j.jsx(k,{bucketID:b,bucketListFetchPolicy:e,cardID:f||"",fadeIn:!0,openSource:(g=h)!=null?g:c("StoriesLoggingConstants").ACTION_SOURCE.TRAY,traySessionID:i,tilePosition:p,viewerSessionID:o})}}e=b==="";d("ReactDOM").render(j.jsx(j.Suspense,{fallback:j.jsx(c("StoriesCometPlaceholder.react"),{isNullState:e}),children:j.jsx(c("StoriesTrayLoggerSessionProvider"),{trackingStrings:new Map([[b,a]]),children:r})}),q)};b.openDialogMessenger=function(a){this.openDialog(a)};b.openDialog=function(a){c("Arbiter").inform("jewel/hide");if(this.$1)return;this.$1=!0;this.$12(a)};b.openDialogArchive=function(a){this.$11(a)};b.$11=function(a){var b=this;c("Arbiter").inform("jewel/hide");this.$1=!0;this.$7=c("Arbiter").subscribe("page_transition",function(a,c){a=c.uri;if(d("StoriesViewer2URI").isValid(a))return;if(!b.$1){b.$7&&b.$7.unsubscribe();return}b.$13(a)});this.$12(a);d("FantaHider").hide();c("ChatSidebarStore").isEnabled()?(this.$5=c("ChatSidebarStore").getVisibleType(),d("ChatSidebarActions").disable()):this.$5=null;c("PageTransitions").registerHandler(this.$13)};b.$14=function(){this.$2!=null&&(d("ReactDOM").unmountComponentAtNode(this.$2),this.$2=null),d("CSS").removeClass(this.$3,"_72b0"),document.body&&d("CSS").removeClass(document.body,"_7d54"),this.$4!=null&&(c("DOM").remove(this.$4),this.$4=null)};b.closeDialogMessenger=function(){this.closeDialog()};b.closeDialog=function(){if(this.$1===!1)return;this.$14();this.$1=!1};b.$10=function(){if(this.$1===!1)return;c("PageTransitions").removeHandler(this.$13);this.$14();d("FantaHider").unhide();this.$5!=null&&d("ChatSidebarActions").enable(this.$5);this.$1=!1};return a}();g["default"]=a}),98);
-----
useStoriesViewerClose",["CometRouteRenderType","MessengerEnvironment","StoriesLoggerSession","StoriesLoggingConstants","cr:869845","gkx","useCometRouterDispatcher"],(function(a,b,c,d,e,f,g){"use strict";var h=c("gkx")("708253");function a(){var a=d("CometRouteRenderType").useIsPushView(),e=c("useCometRouterDispatcher")();return function(f){var g=d("StoriesLoggerSession").getOpenViewerSource();d("StoriesLoggerSession").setCloseGesture(f);b("cr:869845")?c("MessengerEnvironment").messengerui?b("cr:869845").getInstance().closeDialogMessenger():g===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?b("cr:869845").getInstance().closeArchiveDialogAndRefresh():b("cr:869845").getInstance().navigateToEntryPoint():h&&f===c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT&&(!a&&e&&e.goBack?e.goBack():a&&e&&e.popPushView&&e.popPushView())}}g["default"]=a}),98);
-----
StoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_SOURCE:{ARCHIVE:"archive",FACEBOOK_CHAT_TAB:"facebook_chat_tab",MESSENGER_DOT_COM:"messenger_dot_com",NOTIFICATION:"notification",PAGE_PROFILE:"page_profile",POST_HEADER:"post_header_actor_photo",STORIES_HOME:"stories_home",THINGS_YOU_SHOULD_DO:"things_you_should_do",TODAY_IN:"today_in",TRAY:"story_tray",UNKNOWN:"unknown",VIEWER:"viewer"},ACTION_TYPE:{CLICK_EMOJI_REPLY_BUTTON:"click_emoji_reply_button",CLICK_GIF_REPLY_BUTTON:"click_gif_reply_button",CLICK_STICKER_REPLY_BUTTON:"click_sticker_reply_button",CLOSE_STORY:"close_story",COMMENT_ADD_ATTEMPTED:"comment_add_attempted",COMMENT_BUTTON_IMPRESSION:"comment_button_impression",COMMENT_CARD_IMPRESSION:"comment_card_impression",DELETE_MEDIA:"delete_media_attempted",OPEN_LINK:"open_link",OPEN_MEDIA:"open_media",OPEN_SEEN_SUMMARY:"open_seen_summary",OPEN_STORY:"open_story",PAUSE_STORY:"pause_story",REACTION_STICKER_INTERACTED:"reaction_sticker_interacted",REPLY_ATTEMPT_COMPLETED:"reply_attempt_completed",REPLY_SENT_WHEN_SMART_REPLY_SHOWN:"reply_sent_when_smart_reply_shown",SEND_REPLY_ATTEMPT:"attempt_to_send_reply",SEND_STORY_FAILED:"send_story_failed",SEND_STORY_SUCCEEDED:"send_story_succeed",SMART_REPLY_IMPRESSION:"smart_reply_impression",SMART_REPLY_TAP:"smart_reply_tap",STORY_MEDIA_VIEW:"story_media_view",STORY_NAVIGATION:"story_navigation",TRAY_LOAD:"story_tray_load",UNPAUSE_STORY:"unpause_story",VISIT_PAGE:"fb_stories_visit_page"},CLOSE_STORY_GESTURE:{AUTO_EXIT:"auto_exit",BACK_BUTTON_EXIT:"back_button_exit",BLUR_BACKGROUND:"blur_background",CLOSE_BUTTON_EXIT:"close_button_exit",KEYBOARD_EXIT:"keyboard_exit"},COMMENT_TRIGGER_SOURCE:{NOTIFICATION_STORY_UFI:"notification_story_ufi",STORY_UFI_BUTTON:"story_ufi_button",STORY_UFI_COMMENT_PREVIEW:"story_ufi_comment_preview"},FB_STORIES_IMPRESSION:75,FB_STORIES_TIMESPENT:76,IMPRESSION_DEDUPLICATION_TIME:6e4,LIVE_IN_STORIES_EVENTS:{STORY_LIVE_PAGE_CTA_IMPRESSION:"story_live_page_cta_impression",STORY_LIVE_PAGE_CTA_TAP:"story_live_page_cta_tap",STORY_LIVE_PROFILE_CTA_IMPRESSION:"story_live_profile_cta_impression",STORY_LIVE_PROFILE_CTA_TAP:"story_live_profile_cta_tap",STORY_LIVE_STICKER_IMPRESSION:"story_live_sticker_impression",STORY_LIVE_STICKER_TAP:"story_live_sticker_tap",STORY_LIVE_TRAY_DROPDOWN_CLICK:"story_live_tray_dropdown_click",STORY_LIVE_TRAY_DROPDOWN_IMPRESSION:"story_live_tray_dropdown_impression",STORY_LIVE_VIEWER_DROPDOWN_CLICK:"story_live_viewer_dropdown_click",STORY_LIVE_VIEWER_DROPDOWN_IMPRESSION:"story_live_viewer_dropdown_impression"},NAVIGATION_GESTURE:{AUTO_JUMP:"auto_jump",NAVIGATE_AWAY:"navigate_away",SWIPE_LEFT:"swipe_left",SWIPE_RIGHT:"swipe_right",TAP_BACKWARD:"tap_backward",TAP_FORWARD:"tap_forward",VIEWER_SHEET:"viewer_sheet"},STORY_REPLY_TYPE:{STICKER:"Sticker",TEXT_SUGGESTION:"TextSuggestion"},STORY_TYPE:{EVENT_STORY:"event",FOLLOWEE_STORY:"followee",FRIEND_STORY:"friend",GROUP_STORY:"group",MISSING_STORY_DATA:"missingStoryData",PAGE_STORY:"page",SELF_STORY:"self",STORY_PROMOTION:"promotion"},TIMESPENT_MINIMUM_TIME:500};b=a;f["default"]=b}),66);
-----
StoriesCloseButton.react",["fbt","ix","CometPressable.react","IconSource","StoriesLoggingConstants","StoriesSuspensePauseContext","TetraIcon.react","cr:1032347","gkx","react","useStoriesViewerClose"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=d("react").useContext,l=c("gkx")("708253");function a(a){a=a.dark;a=a===void 0?!1:a;var d=c("useStoriesViewerClose")(),e=k(c("StoriesSuspensePauseContext"));e=e.setPause;if(l)return null;var f=function(a){d(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.CLOSE_BUTTON_EXIT)};a=a?new(c("IconSource"))("FB",i("1351092"),24):new(c("IconSource"))("FB",i("1495001"),24);return j.jsxs("div",{className:"x78zum5 xds687c xbyyjgo x10l6tqk x13vifvy x13dflua x19991ni xz4gly6 x1o7uuvo","data-testid":void 0,children:[b("cr:1032347")&&j.jsx(b("cr:1032347"),{setPause:e}),j.jsx(c("CometPressable.react"),{"aria-label":h._("u5173u95ed"),display:"inline",onPress:f,overlayDisabled:!0,children:j.jsx("div",{className:"x1ypdohk x78zum5 xw7yly9 xktsk01 x1yztbdb x17adc0v",children:j.jsx(c("TetraIcon.react"),{icon:a,size:24})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBReelsLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={ACTION_TYPE:{PAUSE_REEL:"pause_reel"},CLOSE_REELS_GESTURE:{BACK_BUTTON_EXIT:"back_button_exit",CLOSE_BUTTON_EXIT:"close_button_exit",KEYBOARD_EXIT:"keyboard_exit",UNKNOWN:"unknown"},INSTAGRAM_DEEPLINK_DESTINATION:{VIEWER:"viewer"},OPEN_SOURCE:{BOOKMARK:"bookmark",IFU:"ifu",IFU_END_CARD:"ifu_end_card",IFU_SEE_MORE:"ifu_see_more",NOTIFICATION:"notification",PERMALINK:"permalink",TOFU:"reels_tofu",UNKNOWN:"unknown"},OPEN_SOURCE_FOR_FALCO:{BOOKMARK:"bookmark",COMET_IN_FEED_UNIT:"comet_in_feed_unit",COMET_URL:"comet_url"},PLAYER_ORIGIN:{NEWS_FEED:"newsfeed"},SOURCE_SURFACE:{VIEWER:"fb_shorts_viewer"}};b=a;f["default"]=b}),66);
-----
FBStoriesArchiveLoggingHelper",["CurrentUser","DeleteMediaAttemptedFalcoEvent","FBStoriesLoggingConstants","OpenMediaFalcoEvent","OpenSeenSummaryFalcoEvent","StoriesLoggerSession","StoriesMediaStoreActionsTypedLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){c("DeleteMediaAttemptedFalcoEvent").log(function(){return{thread_id:a,media_id:b,story_owner:c("CurrentUser").getID(),source:d("FBStoriesLoggingConstants").SOURCES.ARCHIVE}})}function b(a,b){h(a,b,"select_media")}function e(a,b){h(a,b,"open_media_in_camera")}function h(a,b,d){new(c("StoriesMediaStoreActionsTypedLogger"))().setProductName("stories_archive").setEvent(d).setStoryCardFbid(a).setMediaFbid(b).setEventType("client").log()}function f(a,b){c("OpenSeenSummaryFalcoEvent").log(function(){return{thread_id:a,media_id:b,story_owner:c("CurrentUser").getID(),source:d("FBStoriesLoggingConstants").SOURCES.ARCHIVE,viewer_session_id:d("StoriesLoggerSession").getViewerSessionID()}})}function i(a,b){c("OpenMediaFalcoEvent").log(function(){return{thread_id:a,media_id:b,story_owner:c("CurrentUser").getID(),source:d("FBStoriesLoggingConstants").SOURCES.ARCHIVE,viewer_session_id:d("StoriesLoggerSession").getViewerSessionID()}})}g.deleteStoryCardLog=a;g.selectMediaLog=b;g.openMediaInComposerLog=e;g._archiveEventLog=h;g.openSeenSummaryLog=f;g.openMediaLog=i}),98);
-----
StoriesSuggestedTextReply.react",["CometRelay","DeferredDraftEditorDEPRECATED.react","EditorState","EmojiInputDecorator","EmojiSpan.react","SelectionState","StoriesFeedbackEditorStateContext","StoriesLoggerContext","StoriesLoggingConstants","StoriesSuggestedTextReplyPill.react","StoriesSuggestedTextReply_suggestions.graphql","StoriesSuspensePauseOnHoverContainer.react","getPlainTextFromDeferredDraftEditorState_DEPRECATED_DO_NOT_USE","react","useStoriesViewerBaseDimensions","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=10,p=30;function a(a){var e=a.guideSuggestionsData,f=a.setHasText,g=n(!1);a=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSuggestedTextReply_suggestions.graphql"),e);e=k(c("StoriesFeedbackEditorStateContext"));var q=e.contextualReplyRef,r=e.editorState,s=e.onFocus,t=e.setContextualReplyTapped,u=e.setEditorState,v=e.setMostRecentTappedID;e=k(c("StoriesLoggerContext"));var w=e.logger,x=a==null?void 0:a.map(function(a){if(a.id!=null&&a.text!=null&&a.text_with_entities!=null){var b=a.id,c=a.text;a=a.text_with_entities;return{id:b,text:c,textWithEntity:a}}return null}).filter(Boolean);l(function(){var a;((a=x==null?void 0:x.length)!=null?a:0)!==0&&f(!0)},[x,f]);var y=j(function(a,b){w.smartReplyTapLog([],c("StoriesLoggingConstants").STORY_REPLY_TYPE.TEXT_SUGGESTION);var d=c("getPlainTextFromDeferredDraftEditorState_DEPRECATED_DO_NOT_USE")(r).trim();d=d.length===0?b:d+" "+b;b=new(c("EmojiInputDecorator"))(c("EmojiSpan.react"),null,{size:16});b=c("EditorState").createWithText(d,b);var e=b.getSelection();e=new(c("SelectionState"))({anchorKey:e.getAnchorKey(),anchorOffset:d.length,focusKey:e.getFocusKey(),focusOffset:d.length,hasFocus:!0,isBackward:!1});u({__type:c("DeferredDraftEditorDEPRECATED.react").EDITOR_STATE,draftEditorState:c("EditorState").forceSelection(b,e)});s();t(!0);v(a)},[w,r,u,s,t,v]),z=c("useStoriesViewerBaseDimensions")().width-p,A=7.5;e=m(function(){var a=z,b=[],d=[],e=[];if(x==null)return{pills:b,smartReplyIDList:d,smartReplyTextList:e};var f=0;while(f
useStoriesSuspenseContuxActions",["QuickPerformanceLogger","StoriesEnums","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseBucketDataContext","qpl","react","storiesViewerSuspenseEmitter","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext;function a(a){var b=a.canUseExtendedViewer,e=a.cardIndex,f=a.isFirstBucket,g=a.isLastBucket,j=a.isLastCard,k=a.isSingleBucketViewer,l=a.logger,m=a.setCardIndex,n=a.setPause,o=a.shouldShowEndCard;a=i(c("StoriesSuspenseBucketDataContext"));var p=a.setNavigationDirection,q=e===0&&f,r=j&&g,s=h(function(a,b){b!=null&&l.storyNavigationLog(b),n(!0,d("StoriesPauseReasons").CARD_TRANSITION_INITIATED),window.requestAnimationFrame(function(){m(a)})},[l,m,n]),t=c("useStoriesViewerClose")(),u=h(function(a,e,h){e===void 0&&(e=!1);h===void 0&&(h=1);if(k&&!b){t(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT);return}e&&l.storyNavigationLog(a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET?c("StoriesLoggingConstants").NAVIGATION_GESTURE.SWIPE_RIGHT:c("StoriesLoggingConstants").NAVIGATION_GESTURE.SWIPE_LEFT);if(a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET&&g)return;if(a===d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET&&f)return;c("QuickPerformanceLogger").markerAnnotate(c("qpl")._(13238356,"3510"),{string:{TRANSITION_TYPE:"BUCKET"}});n(!0,d("StoriesPauseReasons").BUCKET_TRANSITION);p(a);c("storiesViewerSuspenseEmitter").requestBucketTransition(a,h)},[f,g,k,l,p,n,t,b]);a=h(function(a,b){var f=r&&a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,g=q&&a===d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD;if(f||g)return;if(a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD&&j)l.storyNavigationLog(b),u(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET);else if(a===d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD&&(e===0||o))l.storyNavigationLog(b),u(d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET);else{f=a===d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD?e+1:e-1;c("QuickPerformanceLogger").markerEnd(c("qpl")._(13238356,"3510"),4);c("QuickPerformanceLogger").markerStart(c("qpl")._(13238356,"3510"));s(f,b)}},[e,s,q,j,r,l,u,o]);var v=h(function(){j&&u(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET)},[j,u]);return{cardIndexChanged:s,handleCardDeletion:v,performBucketNavigation:u,performCardNavigation:a}}g["default"]=a}),98);
-----
StoriesSuspenseContentPane.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","CometToastBridge.react","FBLogger","HiddenSubtreePassiveContext","StoriesActorContext","StoriesBehaviorHelpContextProvider.react","StoriesBucketError.react","StoriesCloseButton.react","StoriesConstants","StoriesExtendedViewerOverlay.react","StoriesFeedbackCommentStateContext","StoriesFeedbackEditorStateContextProvider.react","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseBucketDataContext","StoriesSuspenseBucketTransitionView.react","StoriesSuspenseContentPane_LWRAnimations.graphql","StoriesSuspenseContentPane_bucket.graphql","StoriesSuspenseContentPane_commentSheetStory.graphql","StoriesSuspenseContentPane_rightRailStory.graphql","StoriesSuspenseContentPane_user.graphql","StoriesSuspenseContentSlidingTransition.react","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesSuspenseEmptyBucketError.react","StoriesSuspenseFeedback.react","StoriesSuspenseNavigationButtons.react","StoriesSuspensePauseContext","StoriesSuspenseViewerSheet.react","StoriesTapStoryOverlay.react","StoriesUnselected.react","StoriesViewerFooter.react","StoriesViewerSheetOverlay.react","StorieslwrPlaybackContextProvider.react","WebPixelRatio","cr:1904","cr:4944","cr:512","react","useStoriesBucketChanged","useStoriesIsUploading","useStoriesLogger","useStoriesShowTapStoryOverlay","useStoriesSuspenseBucketChangeHandler","useStoriesSuspenseCardIndexInitializer","useStoriesSuspenseContentDataSelectors","useStoriesSuspenseContuxActions","useStoriesSuspenseIsLastCardHandler","useStoriesSuspenseRefetchOnPost","useStoriesTransitionPageListener"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=d("react");e=d("react");var n=e.useCallback,o=e.useContext,p=e.useEffect,q=e.useMemo,aa=e.useRef,r=e.useState,ba=d("StoriesGating").shouldUseCommentsSheet(),ca=d("StoriesGating").shouldUseRightRailSheet(),da=h!==void 0?h:h=b("StoriesSuspenseContentPane_bucket.graphql"),ea=i!==void 0?i:i=b("StoriesSuspenseContentPane_commentSheetStory.graphql"),fa=j!==void 0?j:j=b("StoriesSuspenseContentPane_rightRailStory.graphql");function a(a){var e=a.LWRAnimations,f=a.bucket,g=a.initialBucketID,h=a.initialCardIndex,i=a.isSingleBucketViewer,j=a.shouldAutoExit;j=j===void 0?!0:j;var s=a.shouldHideFeedbackBar,t=s===void 0?!1:s;s=a.user;a=o(c("StoriesSuspenseBucketDataContext"));a=a.bucketData;var u=a.bucketID,v=a.bucketIndex,ga=a.canSeeViewerSheet,w=a.canShowStoryOverlay,x=a.isEndOfTray,y=a.isFirstBucket,z=a.isLastBucket,A=a.isSecondBucket,ha=a.nextBuckets;a=a.nextBucketsCount;var B=c("useStoriesBucketChanged")(u),ia=B.bucketChanged,ja=B.bucketChangedFromAnotherBucket;B=c("useStoriesShowTapStoryOverlay")(u);var C=B.onPressTapOverlay;B=B.shouldShowTapOverlay;var D=o(c("StoriesFeedbackCommentStateContext")),ka=D.isCommentsRightRailOpen,la=D.isStoryCommentingEnabled,ma=D.setCommentTriggerSource,na=D.setIsCommentingOnForStory,oa=D.setIsCommentsRightRailOpen,E=D.setShowCommentsSheetOverlay,F=D.showCommentsSheetOverlay;D=r(function(){return u===g?h:d("StoriesConstants").CARD.DEFAULT_SUSPENSE_CARD_INDEX});var pa=D[0];D=D[1];var G=o(c("StoriesSuspensePauseContext")),H=G.setPause;G=o(c("StoriesActorContext"));var I=G.actorID;G=d("CometRelay").useFragment(k!==void 0?k:k=b("StoriesSuspenseContentPane_LWRAnimations.graphql"),e);e=d("CometRelay").useFragment(l!==void 0?l:l=b("StoriesSuspenseContentPane_user.graphql"),s);s=d("CometRelay").useRefetchableFragment(da,f);f=s[0];var J=s[1],K=f==null?void 0:(s=f.story_bucket_owner)==null?void 0:s.id,L=c("useStoriesSuspenseCardIndexInitializer")(f,pa,D);s=(s=f==null?void 0:(s=f.unified_stories)==null?void 0:s.edges)!=null?s:[];s=s.map(function(a){return a.node});var M=s[L],N=M==null?void 0:M.story_card_info,O=(N==null?void 0:N.is_story_commenting_enabled)||!1;N=(N=M==null?void 0:(N=M.feedback)==null?void 0:N.story_comment_count)!=null?N:0;var P=N>0;N=d("CometRelay").useFragment(ea,M);M=d("CometRelay").useFragment(fa,M);p(function(){F&&(!O&&!P?(H(!1,d("StoriesPauseReasons").COMMENTS_SHEET_OVERLAY),E(!1)):H(!0,d("StoriesPauseReasons").COMMENTS_SHEET_OVERLAY)),na(O)},[P,O,na,H,E,F]);var Q=c("useStoriesSuspenseContentDataSelectors")(f,L),R=Q.getCardCount;Q=Q.getCurrentCardID;var qa=Q(),S=R();Q=r(S);R=Q[0];var ra=Q[1],T=c("useStoriesSuspenseIsLastCardHandler")(f,L),U=c("useStoriesLogger")(I,{bucketIndex:v,cardIndex:L},f);c("useStoriesSuspenseBucketChangeHandler")(f,U);var V=i;Q=r(!1);v=Q[0];var W=Q[1];Q=c("useStoriesSuspenseContuxActions")({canUseExtendedViewer:V,cardIndex:L,isFirstBucket:y,isLastBucket:z,isLastCard:T,isSingleBucketViewer:i,logger:U,setCardIndex:D,setPause:H,shouldShowEndCard:x});y=r(!1);var X=y[0],Y=y[1];z=r(t);i=z[0];var Z=z[1],$=aa(!1);p(function(){var a=A&&V&&w;!$.current&&a&&($.current=!0,Y(!0),Z(!0))},[A,V,w,$]);X&&(!w||!A)&&(Y(!1),Z(t));X&&H(!0,d("StoriesPauseReasons").EXTENDED_VIEWER);D=n(function(){H(!1,d("StoriesPauseReasons").EXTENDED_VIEWER),Y(!1),Z(t)},[H,t]);y=n(function(){ma(c("StoriesLoggingConstants").COMMENT_TRIGGER_SOURCE.STORY_UFI_BUTTON),ba?(H(!0,d("StoriesPauseReasons").COMMENTS_SHEET_OVERLAY),E(!F)):oa(!ka)},[ka,ma,oa,H,E,F]);c("useStoriesSuspenseRefetchOnPost")(u,J,K===I);z=n(function(){K===I&&J({id:u,isStoryCommentingEnabled:d("StoriesGating").isCommentEnabled(),scale:d("WebPixelRatio").get(),shouldDeferLoad:d("StoriesGating").shouldDeferLoad(),shouldEnableArmadilloStoryReply:d("StoriesGating").shouldEnableArmadilloStoryReply(),shouldEnableLiveInStories:d("StoriesGating").shouldEnableLiveInStories()},{fetchPolicy:"network-only"})},[I,u,J,K]);c("useStoriesIsUploading")(z);z=q(function(){return{cardIndex:L,isFirstCard:L===0,isLastCard:T,isStoryOverlayActive:X}},[L,T,X]);var sa=o(c("HiddenSubtreePassiveContext"));p(function(){var a=sa.subscribeToChanges(function(a){H(a.hiddenOrBackgrounded,d("StoriesPauseReasons").VISIBILITY_CHANGE)});return function(){return a.remove()}},[sa,H]);c("useStoriesTransitionPageListener")(function(){U.closeStoryLog()});p(function(){ia&&(ra(S),ja&&E(!1),W(!1))},[ia,ja,S,E]);var ta=q(function(){return{logger:U}},[U]);if(B)return m.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:[m.jsx(c("StoriesTapStoryOverlay.react"),{onTap:C}),m.jsx(c("StoriesCloseButton.react"),{})]});if(!x&&(K==null||R===0)&&!V)K==null&&u!==""&&u!=null&&c("FBLogger")("fbstories").warn("Empty story bucket owner id, but bucket id [%s] is not null, initial bucket id is [%s]",u,g),g===""?B=m.jsx(c("StoriesUnselected.react"),{}):B=m.jsx(c("StoriesSuspenseEmptyBucketError.react"),{});else{B=m.jsx(c("StoriesSuspenseContentSlidingTransition.react"),{viewerSheet:function(){return null},children:m.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3","data-testid":void 0,children:m.jsx(c("StorieslwrPlaybackContextProvider.react"),{children:m.jsxs(c("StoriesFeedbackEditorStateContextProvider.react"),{cardID:(C=qa)!=null?C:"",setPause:H,children:[m.jsx(c("StoriesSuspenseNavigationButtons.react"),{children:m.jsxs("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d xl56j7k x1n2onr6",children:[m.jsx(c("StoriesSuspenseBucketTransitionView.react"),{animations:G,bucket:f,bucketID:u,shouldAutoExit:j,userData:e}),!d("StoriesGating").isComet()&&m.jsx("div",{className:"x6s0dn4 xtrxkvy x9f619 x78zum5 xl56j7k xexx8yu x1pi30zi x1l90r2v x1swvt13 x10l6tqk xh8yej3",children:m.jsx("div",{className:"xqhayiu x6ikm8r x10wlt62",children:m.jsx(c("CometToastBridge.react"),{})})}),X&&m.jsx(c("StoriesExtendedViewerOverlay.react"),{nextBuckets:ha,nextBucketsCount:a,onDismiss:D}),m.jsx(c("CometPlaceholder.react"),{fallback:null,children:m.jsx(c("StoriesViewerSheetOverlay.react"),{bucket:f,isEndOfTray:x,showOverlay:v,toggleOverlay:W,children:m.jsx(c("StoriesSuspenseViewerSheet.react"),{bucket:f,toggleViewerSheet:la?W:function(){}})})}),m.jsx(c("CometPlaceholder.react"),{fallback:null,children:b("cr:1904")!=null&&m.jsx(b("cr:1904"),{isEndOfTray:x,shouldShowOverlay:F,storyKey:N,toggleOverlay:E})}),m.jsx(c("CometPlaceholder.react"),{fallback:null,children:b("cr:512")!=null&&ga&&!F&&(O||P||!ba)&&!v&&m.jsx("div",{className:"x9ys34d x160vmok x10l6tqk x1vjfegm",children:m.jsx(b("cr:512"),{bucket:f,onPress:y,story:s[pa]})})})]})}),!i&&m.jsx(c("StoriesViewerFooter.react"),{children:!F&&m.jsx(c("StoriesSuspenseFeedback.react"),{LWRAnimations:G,bucket:f})})]})})})})}return m.jsx(c("StoriesLoggerContext").Provider,{value:ta,children:m.jsx(c("StoriesSuspenseContuxContext").Provider,{value:z,children:m.jsx(c("StoriesSuspenseContuxActionsContext").Provider,{value:Q,children:m.jsx(c("CometErrorBoundary.react"),{fallback:function(a){var b;return m.jsx(c("StoriesBucketError.react"),{bucketID:u,cardID:(b=qa)!=null?b:"",error:a})},children:m.jsx(c("StoriesBehaviorHelpContextProvider.react"),{bucketRef:f,ownerRef:f==null?void 0:f.story_bucket_owner,viewerRef:G,children:ca&&b("cr:4944")!=null?m.jsx(b("cr:4944"),{rightRail:M,children:B}):B})})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuggestedStickerReply.react",["CometRelay","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","StoriesSuggestedStickerReplyPill.react","StoriesSuggestedStickerReply_suggestions.graphql","StoriesSuspensePauseOnHoverContainer.react","react","useStoriesSendReply","useStoriesShowEpdBlockToast","useStoriesViewerBaseDimensions","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=15,p=30,q=25;function a(a){var e=a.cardID,f=a.guideSuggestionsData,g=a.ownerName,r=a.setHasSticker;a=k(c("StoriesLoggerContext"));var s=a.logger;a=c("useStoriesSendReply")(g);var t=a.sendSticker,u=c("useStoriesShowEpdBlockToast")(),v=n(!1);g=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSuggestedStickerReply_suggestions.graphql"),f);var w=g==null?void 0:g.map(function(a){return a.id!=null&&a.label!=null&&a.url!=null?{id:a.id,label:a.label,url:a.url}:null}).filter(Boolean);l(function(){var a;((a=w==null?void 0:w.length)!=null?a:0)!==0&&r(!0)},[w,r]);var x=j(function(a,b){var e;if(!d("StoriesGating").allowedByEPDClientFeatureBlock()){u();return}if(a==null||b==null)return;if(((e=w==null?void 0:w.length)!=null?e:0)>=4){e=(e=w==null?void 0:w.map(function(b){if(a!==b.id)return b.id}).filter(Boolean))!=null?e:[];e=[a].concat(e.slice(0,2)).sort();s.smartReplyTapLog(e,c("StoriesLoggingConstants").STORY_REPLY_TYPE.STICKER)}t({isContextualReply:!0,stickerID:a,storyID:b},s);s.replySentWhenSmartReplyShownLog(!1,a,!0,c("StoriesLoggingConstants").STORY_REPLY_TYPE.STICKER)},[w,s,t,u]),y=c("useStoriesViewerBaseDimensions")().width-q;a=m(function(){var a=[],b=[];if(w==null)return{pills:a,smartReplyIDList:b};var d=Math.floor(y/(p+q+o));for(var f=0;f
StoriesArchiveBucketContainer.react",["CometPlaceholder.react","CometRelay","StoriesArchiveBucketContainer_archiveCards.graphql","StoriesArchiveCardMarkAsSeen","StoriesBucketLoadingView.react","StoriesCardHeader.react","StoriesEnums","StoriesLoggingConstants","StoriesProgressBar.react","StoriesSuspenseBucket.react","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesSuspensePauseContext","react","useStoriesArchiveBucketChangeHandler","useStoriesSuspenseCards","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useState,m=h!==void 0?h:h=b("StoriesArchiveBucketContainer_archiveCards.graphql");function a(a){var b;a=a.archiveStoriesCards;var e=c("useStoriesViewerClose")();a=d("CometRelay").useFragment(m,a);var f=d("CometRelay").useRelayEnvironment(),g=l(null),h=g[0];g=g[1];var n=k(c("StoriesSuspensePauseContext"));n=n.isPaused;var o=k(c("StoriesSuspenseContuxActionsContext")),p=o.cardIndexChanged,q=o.performCardNavigation;o=k(c("StoriesSuspenseContuxContext"));var r=o.cardIndex,s=o.isLastCard;o=k(c("StoriesSuspenseBucketDataContext"));o=o.bucketData;var t=o.bucketID,u=o.isLastBucket;o=j(function(){s&&u?e(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT):q(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.AUTO_JUMP)},[u,s,q,e]);a=c("useStoriesSuspenseCards")(a,r);var v=a.getCardAtCurrentIndex;a=a.getCount;v=v();a=a();var w=v==null?void 0:v.id;b=v==null?void 0:(b=v.story_card_info)==null?void 0:b.original_bucket_owner;var x=j(function(){w!=null&&c("StoriesArchiveCardMarkAsSeen")(f,w)},[w,f]);c("useStoriesArchiveBucketChangeHandler")(t,r,p);return v==null?i.jsx("div",{className:"x78zum5 x5yr21d x1n2onr6 xh8yej3",children:i.jsx(c("StoriesBucketLoadingView.react"),{})},t):i.jsx("div",{className:"x78zum5 x5yr21d x1n2onr6 xh8yej3",children:i.jsxs(c("CometPlaceholder.react"),{fallback:i.jsx(c("StoriesCardHeader.react"),{card:v,owner:b}),children:[i.jsx(c("StoriesSuspenseBucket.react"),{card:v,isSelfStory:!0,onCardSeen:x,onProgressDone:o,onTimerSourceUpdate:g,owner:b}),i.jsx(c("StoriesProgressBar.react"),{cardCount:a,cardTimerSource:h,currentCardIndex:r,isPaused:n,onDone:o})]})},t)}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesCardSingleAuthorHeader.react",["ix","CometImage.react","CometLink.react","CometPressable.react","CometProfileVerificationBadge.react","CometRelativeTimestamp.react","CometRelay","CometTextWithBadge.react","JSResourceForInteraction","Locale","StoriesCardSingleAuthorHeader_attribution.graphql","StoriesCardSingleAuthorHeader_card.graphql","StoriesCardSingleAuthorHeader_owner.graphql","StoriesLoggerSession","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspensePauseContext","TetraIcon.react","TetraText.react","fbicon","formatDate","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=d("react");e=d("react");var m=e.useCallback,n=e.useContext,o=e.useRef,p=c("JSResourceForInteraction")("StoriesCardHeaderSCMEPopup.react").__setRef("StoriesCardSingleAuthorHeader.react"),q={container:{alignItems:"x6s0dn4",display:"x78zum5",position:"x10l6tqk",start:"xoie2o3",top:"x12eol54",width:"x1kp5rob",$$css:!0},creationTime:{color:"x17z8epw",marginStart:"xsgj6o6",textShadow:"x3zf81a",$$css:!0},ownerInfoContainer:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingStart:"x1ye3gou",width:"x10lvyaf",$$css:!0},ownerInfoWithAttributionContainer:{display:"x78zum5",flexDirection:"xdt5ytf",width:"x19sv2k2",$$css:!0},ownerInfoWithTime:{alignItems:"x1pha0wt",display:"x78zum5",flexDirection:"x1q0g3np",$$css:!0},ownerName:{color:"x17z8epw",display:"x78zum5",flexDirection:"x1q0g3np",marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",textShadow:"x3zf81a",whiteSpace:"xeaf4i8",$$css:!0},ownerNameContainer:{maxWidth:"x15w6uyq",$$css:!0},ownerNameContainerWithBadge:{maxWidth:"xidmkao",$$css:!0},ownerNamePressable:{maxWidth:"x193iq5w",$$css:!0},ownerPic:{borderTop:"x140qq3l",borderEnd:"x16cdy7c",borderBottom:"xwxlgbv",borderStart:"xilm9xq",borderTopStartRadius:"xdxvlk3",borderTopEndRadius:"x1fglp",borderBottomEndRadius:"x1rp6h8o",borderBottomStartRadius:"xg6i1s1",display:"x1lliihq",height:"x1vqgdyp",objectFit:"xl1xv1r",width:"x100vrsf",$$css:!0},picContainer:{alignSelf:"xqcrz7y",display:"x78zum5",flexDirection:"xdt5ytf",$$css:!0},scmeLabel:{backgroundColor:"x14hiurz",borderTopStartRadius:"x1lcm9me",borderTopEndRadius:"x1yr5g0i",borderBottomEndRadius:"xrt01vj",borderBottomStartRadius:"x10y3i5r",display:"x1lliihq",marginTop:"x1xmf6yo",paddingTop:"x1iorvi4",paddingEnd:"x1sxyh0",paddingBottom:"xjkvuk6",paddingStart:"xurb0ha",$$css:!0},scmeLabelContainer:{alignItems:"x1cy8zhl",display:"x78zum5",paddingStart:"x1ye3gou",width:"x10lvyaf",$$css:!0},scmeLabelText:{color:"x1p6odiv",fontSize:"x1nxh6w3",fontWeight:"xk50ysn",lineHeight:"xo5v014",$$css:!0},shareableAttribution:{alignItems:"x6s0dn4",color:"x17z8epw",display:"x78zum5",flexDirection:"x1q0g3np",marginTop:"x1xmf6yo",paddingStart:"x1ye3gou",textShadow:"x3zf81a",width:"xx6mhbd",$$css:!0}},r=function(a){return a?d("fbicon")._(h("492482"),12):d("fbicon")._(h("492530"),12)};function a(a){var e,f,g=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesCardSingleAuthorHeader_owner.graphql"),a.owner),h=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesCardSingleAuthorHeader_attribution.graphql"),a.cardInfo),s=d("CometRelay").useFragment(k!==void 0?k:k=b("StoriesCardSingleAuthorHeader_card.graphql"),a.story),t=g==null?void 0:g.name,u=g==null?void 0:(e=g.profile_picture)==null?void 0:e.uri;e=g==null?void 0:g.url;var v=a.creationTime,w=g==null?void 0:g.id;h=h==null?void 0:h.shareable_attribution;var x=h==null?void 0:h.text;h=h==null?void 0:(h=h.ranges[0])==null?void 0:(h=h.entity)==null?void 0:h.url;var y=s==null?void 0:(f=s.profile_location_transparency_subtitle_text_with_entities)==null?void 0:f.text,z=s==null?void 0:(f=s.location_transparency_info)==null?void 0:f.helpcenter_id;s=d("Locale").isRTL();f=o(null);var A=c("useCometLazyDialog")(p),B=A[0];A=n(c("StoriesSuspensePauseContext"));var C=A.setPause;A=m(function(){var a=function(){C(!1,d("StoriesPauseReasons").SCME_DIALOG)};C(!0,d("StoriesPauseReasons").SCME_DIALOG);B({SCMELabel:y,helpcenterID:z,name:t,profilePicUri:u,unPause:a})},[B,t,y,u,z,C]);if(g==null)return null;var D=null;x!=null&&(h==null?D=l.jsx("div",{className:"x6s0dn4 x17z8epw x78zum5 x1q0g3np x1xmf6yo x1ye3gou x3zf81a xx6mhbd",children:l.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"meta4",children:x})}):D=l.jsxs("div",{className:"x6s0dn4 x17z8epw x78zum5 x1q0g3np x1xmf6yo x1ye3gou x3zf81a xx6mhbd",children:[l.jsx(c("CometLink.react"),{href:h,target:"_blank",children:l.jsx(c("TetraText.react"),{color:"primaryOnMedia",type:"meta4",children:x})}),l.jsx(c("TetraIcon.react"),{color:"white",icon:r(s)})]}));h=null;v!=null&&(d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?h=c("formatDate")(new Date(v*1e3),"M j",{utc:!0}):h=l.jsx(c("CometRelativeTimestamp.react"),{date:new Date(v*1e3),format:"minimized"}));x=y!=null&&l.jsx("div",{className:"x1cy8zhl x78zum5 x1ye3gou x10lvyaf",children:l.jsx("div",{className:"x14hiurz x1lcm9me x1yr5g0i xrt01vj x10y3i5r x1lliihq x1xmf6yo x1iorvi4 x1sxyh0 xjkvuk6 xurb0ha",children:l.jsx(c("CometPressable.react"),{display:"block",label:y,onPress:A,overlayDisabled:!0,ref:f,children:l.jsx("div",{className:"x1p6odiv x1nxh6w3 xk50ysn xo5v014",children:y})})})});s=w!=null&&g.is_verified===!0&&l.jsx(c("CometProfileVerificationBadge.react"),{isInverted:!0,profileID:w});v=t!=null&&l.jsx("div",{className:""+(s?" xidmkao":" x15w6uyq"),children:l.jsx("div",{className:"x17z8epw x78zum5 x1q0g3np xdj266r x11i5rnm xat24cr x1mh8g0r x3zf81a xeaf4i8",children:l.jsx(c("CometPressable.react"),{display:"block",linkProps:{url:e},onPress:a.onOwnerClick,overlayDisabled:!0,xstyle:q.ownerNamePressable,children:l.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"bodyLink3",children:t})})})});A=l.jsxs("div",{className:"xdj266r x11i5rnm xat24cr x1mh8g0r x1ye3gou x10lvyaf x1pha0wt x78zum5 x1q0g3np",children:[v,s&&l.jsx(c("CometTextWithBadge.react"),{badgeBefore:s,children:" "}),l.jsx("div",{className:"x17z8epw xsgj6o6 x3zf81a",children:l.jsx(c("TetraText.react"),{color:"primaryOnMedia",numberOfLines:1,type:"meta3",children:h})})]});return l.jsxs("div",{className:"x6s0dn4 x78zum5 x10l6tqk xoie2o3 x12eol54 x1kp5rob","data-testid":void 0,children:[l.jsx("div",{className:"xqcrz7y x78zum5 xdt5ytf",children:l.jsx(c("CometLink.react"),{href:e,onClick:a.onOwnerClick,children:u!=null&&l.jsx(c("CometImage.react"),{alt:(f=t)!=null?f:"",height:40,src:u,width:40,xstyle:q.ownerPic})})}),l.jsxs("div",{className:"x78zum5 xdt5ytf x19sv2k2",children:[A,x,D]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseCardOptionMenu.react",["CometMenu.react","CometRelay","CometSeparatorMenuItem.react","StoriesActorContext","StoriesArchiveDeleteCardOptionMenuItem.react","StoriesArchiveStoryOptionMenuItem.react","StoriesBehaviorHelpContext","StoriesDeleteCardOptionMenuItem.react","StoriesEnums","StoriesFileBugOptionMenuItem.react","StoriesGating","StoriesInspectStoryOptionMenuItem.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesMuteStoryOptionMenuItem.react","StoriesReportOptionMenuItem.react","StoriesSettingsOptionMenuItem.react","StoriesSuspenseCardOptionMenu_card.graphql","StoriesSuspenseCardOptionMenu_owner.graphql","StoriesToggleCommentCardOptionMenuItem.react","StoriesUnfollowPageOptionMenuItem.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react"),k=d("react").useContext,l=function(){function a(){this.$1=[]}var b=a.prototype;b.add=function(a,b){(b!=null?b:!0)&&this.$1.push(a);return this};b.done=function(){var a;return(a=this.$1)!=null?a:[]};return a}();function a(a){var e=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSuspenseCardOptionMenu_card.graphql"),a.card),f=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseCardOptionMenu_owner.graphql"),a.owner),g=k(c("StoriesActorContext")),m=g.actorID;g=k(c("StoriesBehaviorHelpContext"));var n=g.getBucketType;g=g.getIsPageOrProfilePlusStory;n=n();g=g();var o=e==null?void 0:e.id;if(e==null||o==null)return null;function p(){var a=e==null?void 0:e.attachments;return a&&(a==null?void 0:a.length)>0?(a=a[0].media)==null?void 0:a.__typename:null}function q(){var a;return e==null?void 0:(a=e.story_card_info)==null?void 0:a.story_card_type}function r(){var a;if(f==null)return!1;a=e==null?void 0:(a=e.via)==null?void 0:a.id;return a===m||s()}function s(){if(f==null)return!1;var a=f.viewer_profile_permissions!=null&&f.viewer_profile_permissions.includes("EDIT_PROFILE");return f.id===m||a||!!f.is_viewer_host}var t=d("StoriesLoggerSession").getOpenViewerSource(),u=null;t===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?u=c("StoriesArchiveDeleteCardOptionMenuItem.react"):u=c("StoriesDeleteCardOptionMenuItem.react");n=s()&&n===d("StoriesEnums").STORY_CARD_TYPES.HIGHLIGHTED_STORY?null:new l().add(j.jsx(c("StoriesMuteStoryOptionMenuItem.react"),{actorID:m,bucketID:a.bucketID,onHideConfirmationDialog:a.onHideOptionConfirmationDialog,onOpenConfirmationDialog:a.onShowOptionConfirmationDialog,ownerID:f==null?void 0:f.id,ownerName:f==null?void 0:f.name,storyCardType:q()},"mute_owner"),!s()&&n!==d("StoriesEnums").STORY_CARD_TYPES.HIGHLIGHTED_STORY).add(j.jsx(c("StoriesUnfollowPageOptionMenuItem.react"),{actorID:m,bucketID:a.bucketID,onHideConfirmationDialog:a.onHideOptionConfirmationDialog,onOpenConfirmationDialog:a.onShowOptionConfirmationDialog,ownerID:f==null?void 0:f.id,ownerName:f==null?void 0:f.name},"unfollow_page"),!s()&&q()===d("StoriesEnums").STORY_CARD_TYPES.PAGE_STORY).add(j.jsx(c("StoriesReportOptionMenuItem.react"),{card:e,setPause:a.setPause},"report"),!r()).add(j.jsx(c("StoriesToggleCommentCardOptionMenuItem.react"),{cardID:o,onHideConfirmationDialog:a.onHideOptionConfirmationDialog,onOpenConfirmationDialog:a.onShowOptionConfirmationDialog},"comment"),d("StoriesGating").isCommentEnabled()&&r()&&!g&&t!==c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE).add(j.jsx(u,{bucketID:a.bucketID,cardID:o,mediaType:p(),onHideConfirmationDialog:a.onHideOptionConfirmationDialog,onOpenConfirmationDialog:a.onShowOptionConfirmationDialog},"delete"),r()).add(j.jsx(c("StoriesFileBugOptionMenuItem.react"),{setPause:a.setPause},"bug")).add(j.jsx(c("StoriesInspectStoryOptionMenuItem.react"),{cardID:o},"inspect"),c("gkx")("807313")).add(j.jsx(c("CometSeparatorMenuItem.react"),{},"separator"),d("StoriesGating").shouldShowViewerV3()).add(j.jsx(c("StoriesArchiveStoryOptionMenuItem.react"),{actorID:m},"archive"),m!=null&&d("StoriesGating").shouldShowViewerV3()).add(j.jsx(c("StoriesSettingsOptionMenuItem.react"),{refetchNodes:a.refetchNodes},"setting"),d("StoriesGating").shouldShowViewerV3()).done();return j.jsx("div",{"data-testid":void 0,children:j.jsx(c("CometMenu.react"),{withArrow:!0,children:n})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesViewerSingleBucketRoot.react",["CometBlueBridge.react","CometErrorBoundary.react","StoriesLoggingConstants","StoriesRootError.react","StoriesViewerSingleBucket.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return h.jsx(c("CometErrorBoundary.react"),{fallback:function(a){return h.jsx(c("StoriesRootError.react"),{error:a})},children:h.jsx(c("CometBlueBridge.react"),{children:h.jsx("div",{className:"x1ey2m1c xds687c xixxii4 x17qophe"+(a.openSource===c("StoriesLoggingConstants").ACTION_SOURCE.MESSENGER_DOT_COM?" x13vifvy":" x1si2f76"),children:h.jsx(c("StoriesViewerSingleBucket.react"),babelHelpers["extends"]({},a))})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSuspenseBucketChangeHandler",["CometRelay","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseBucketDataContext","StoriesSuspenseBucketTransitioningContext","react","useStoriesBucketChanged","useStoriesSuspenseBucketChangeHandler_bucket.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useContext,j=e.useEffect;function a(a,e){a=d("CometRelay").useFragment(h!==void 0?h:h=b("useStoriesSuspenseBucketChangeHandler_bucket.graphql"),a);a=a==null?void 0:a.id;var f=i(c("StoriesSuspenseBucketTransitioningContext")),g=f.setIsBucketTransitionInProgress;f=i(c("StoriesSuspenseBucketDataContext"));f=f.bucketData;var k=f.isEndOfTray;f=c("useStoriesBucketChanged")(a);var l=f.bucketChanged,m=f.bucketChangedFromAnotherBucket;j(function(){k&&e.openStoryLog(null,!0),l&&(g(!1),m?e.openStoryLog(c("StoriesLoggingConstants").ACTION_SOURCE.VIEWER):e.openStoryLog(d("StoriesLoggerSession").getOpenViewerSource()))},[l,m,e,k,g])}g["default"]=a}),98);
-----
StoriesSuspenseViewerSheetSelfStoryContent.react",["CometRelay","CometRouteRenderType","StoriesEnums","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseViewerSheetPreviewTray.react","StoriesSuspenseViewerSheetSelfStoryContent_bucket.graphql","StoriesSuspenseViewerSheetSelfStoryContent_card.graphql","StoriesSuspenseViewerSheetViewerList.react","StoriesViewerSheetHeader.react","StoriesViewerSheetPollResult.react","cr:3095","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=d("react");function a(a){var e,f,g=a.bucket;a=a.card;var k=d("CometRouteRenderType").useIsPushView();g=d("CometRelay").useFragment(h!==void 0?h:h=b("StoriesSuspenseViewerSheetSelfStoryContent_bucket.graphql"),g);a=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseViewerSheetSelfStoryContent_card.graphql"),a);e=(e=a==null?void 0:a.story_overlays)!=null?e:[];e=e.find(function(a){return a.__typename===d("StoriesEnums").STORY_OVERLAY_TYPES.POLL_STICKER});f=(f=a==null?void 0:(f=a.feedback)==null?void 0:f.story_comment_count)!=null?f:0;var l=d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,m=f===0&&l||!l;l=l&&f>0;var n;m?n=j.jsx(c("StoriesSuspenseViewerSheetViewerList.react"),{card:a}):l&&b("cr:3095")!=null&&(n=j.jsx(b("cr:3095"),{card:a,commentCount:f}));return j.jsxs("div",{className:"x1nxh6w3"+(k?" xn2ks54":" x1p5oq8j"),children:[j.jsx(c("StoriesViewerSheetHeader.react"),{children:g==null?void 0:g.name}),j.jsx(c("StoriesSuspenseViewerSheetPreviewTray.react"),{}),j.jsx(c("StoriesViewerSheetPollResult.react"),{overlayPoll:e}),n]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesLogger",["AttemptToSendReplyFalcoEvent","CloseStoryFalcoEvent","CometRelay","DeleteMediaAttemptedFalcoEvent","DirectMessagingTypedLogger","FBLogger","FBStoriesBanzaiConstants","FbStoriesVisitPageFalcoEvent","OpenLinkFalcoEvent","OpenMediaFalcoEvent","OpenSeenSummaryFalcoEvent","OpenStoryFalcoEvent","StoriesFeedbackFlowTypes","StoriesGating","StoriesInteractiveFeedbackFalcoEvent","StoriesLoggerHelper","StoriesLoggerSession","StoriesLogger_bucketNode.graphql","StoriesLoggingConstants","StoriesPauseReasons","StoriesTestUtils","StoriesUtils","StoryMediaViewFalcoEvent","StoryNavigationFalcoEvent","WebSession"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("StoriesLogger_bucketNode.graphql");a=function(){function a(a){var b=a.actorID,c=a.bucketIndex,e=a.cardIndex,f=a.data;a=a.trackingStrings;this.$1=null;this.$2=0;this.$3=0;this.$4=null;this.$1=b;this.$4=a;this.$2=c;this.$3=e;this.$5=d("CometRelay").readInlineData(i,f)}var b=a.prototype;b.$6=function(){var a=this.$5;a==null&&this.$2>=0&&this.$3>=0&&c("FBLogger")("fbstories").warn("Logger does not have valid card data");return a!=null};b.storyNavigationLog=function(a){var b=this;if(!this.$6())return;c("StoryNavigationFalcoEvent").log(function(){var c=babelHelpers["extends"]({},b.$7(),{gesture:a});return c})};b.replyLog=function(){var a=this;if(!this.$6())return;var b=this.$7();c("AttemptToSendReplyFalcoEvent").log(function(){return{media_id:a.$8(),media_index:b.media_index,media_type:a.$9(),number_media:a.$10(),number_viewers:a.$11(),source:b.source,story_index:a.$2,story_owner:a.$12(),story_owner_type:a.$13(),story_size:a.$10(),thread_id:b.thread_id,tracking_string:b.tracking_string,tray_session_id:b.tray_session_id,viewer_session_id:b.viewer_session_id}})};b.replyAttemptCompletedLog=function(a,b){var d=this;if(!this.$6())return;var e=b==null;c("StoriesInteractiveFeedbackFalcoEvent").log(function(){var b=babelHelpers["extends"]({},d.$7(),{action:c("StoriesLoggingConstants").ACTION_TYPE.REPLY_ATTEMPT_COMPLETED,story_reply_type:a,success:e});return b})};b.replySentWhenSmartReplyShownLog=function(a,b,d,e){var f=this;if(!this.$6())return;c("StoriesInteractiveFeedbackFalcoEvent").log(function(){var g=babelHelpers["extends"]({},f.$7(),{action:c("StoriesLoggingConstants").ACTION_TYPE.REPLY_SENT_WHEN_SMART_REPLY_SHOWN,edit_after_smart_reply_tap:a,smart_reply_id:b,smart_reply_suggestion_type:e,smart_reply_tap_before_sent:d});return g})};b.pauseLog=function(a,b){if(!this.$6())return;if(b!==d("StoriesPauseReasons").BUCKET_TRANSITION)return this.$14(a?c("StoriesLoggingConstants").ACTION_TYPE.PAUSE_STORY:c("StoriesLoggingConstants").ACTION_TYPE.UNPAUSE_STORY).setGesture(b.toLowerCase()).log()};b.openLinkLog=function(){var a=this;if(!this.$6())return;c("OpenLinkFalcoEvent").log(function(){var b=a.$7();b={media_id:a.$8(),media_index:b.media_index,media_type:a.$9(),source:b.source,story_owner:a.$12(),story_owner_type:a.$13(),thread_id:b.thread_id,tray_session_id:b.tray_session_id,viewer_session_id:b.viewer_session_id};return b})};b.openViewerSheetLog=function(){var a=this;if(!this.$6())return;c("OpenSeenSummaryFalcoEvent").log(function(){var b=a.$7();return b})};b.openMediaLog=function(a){var b=this;a!=null&&a!==this.$15()&&c("FBLogger")("fbstories").warn("Logger card id [%s] does not match media card id [%s]",this.$15(),a);if(!this.$6())return;c("OpenMediaFalcoEvent").log(function(){var a=babelHelpers["extends"]({},b.$7(),{sid:d("WebSession").getId()});return a})};b.storyMediaViewLog=function(a){var b=this;if(d("StoriesGating").shouldLogStoryMediaView()!==!0)return;a!=null&&a!==this.$15()&&c("FBLogger")("fbstories").warn("Logger card id [%s] does not match media card id [%s]",this.$15(),a);if(!this.$6())return;c("StoryMediaViewFalcoEvent").log(function(){var a,c=b.$7();a={bucket_id:((a=b.$5)==null?void 0:a.id)||"",media_id:b.$8(),media_index:c.media_index,media_type:b.$9(),number_media:b.$10(),number_viewers:b.$11(),source:c.source,story_index:b.$2,story_owner:b.$12(),story_owner_type:b.$13(),story_size:b.$10(),thread_id:c.thread_id,tracking_string:c.tracking_string,tray_session_id:c.tray_session_id,viewer_session_id:c.viewer_session_id};return a})};b.openStoryLog=function(a,b){var e=this,f;b===void 0&&(b=!1);if(b){c("OpenStoryFalcoEvent").log(function(){var a={story_owner_type:e.$13(b),tray_session_id:d("StoriesLoggerSession").getTraySessionID(),viewer_session_id:d("StoriesLoggerSession").getViewerSessionID()};return a});return}if(!this.$6())return;f=(f=this.$5)==null?void 0:(f=f.unified_stories)==null?void 0:f.edges;var g=(f==null?void 0:f.length)||0,h=!1;if(f==null)return;for(var i=0;i
useStoriesSendReply",["CometRelay","StoriesActorContext","StoriesGating","StoriesLoggingConstants","StoryReplyType","cometPushToast","react","useMinifiedProductAttribution","useStoriesSendReplyMutation.graphql","useStoriesShowSentTextToast","uuid"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useContext,j=e.useMemo,k=function(a,b,d){var e=a.get(b.storyID);e=e&&e.getLinkedRecord("story_card_info");e=e&&e.getLinkedRecord("story_card_reactions",{first:10});if(e==null)return;var f=null,g=null,h=null,i=e.getLinkedRecords("edges");if(i==null||i.length===0){var j=a.create("client:newNode:"+c("uuid")(),"MessagingActor");j.setValue(d,"id");j.setValue("User","__typename");d=a.create("client:newNode:"+c("uuid")(),"MessengerMontageMessageActionsOfReactionConnection");h=[];d.setLinkedRecords(h,"edges");g=d;var k=a.create("client:newNode:"+c("uuid")(),"MessengerMontageMessageReaction");k.setLinkedRecord(j,"messaging_actor");k.setLinkedRecord(d,"messaging_actions");f=k;j=a.create("client:newNode:"+c("uuid")(),"StoryCardReactionsEdge");j.setLinkedRecord(k,"node");i=[j];e.setLinkedRecords(i,"edges")}else f=i[0]&&i[0].getLinkedRecord("node"),g=f&&f.getLinkedRecord("messaging_actions"),h=g&&g.getLinkedRecords("edges");if(g==null||h==null||f==null)return;d=a.create("client:newNode:"+c("uuid")(),"MessengerMontageMessageAction");d.setValue(b.unicode,"reaction");k=a.create("client:newNode:"+c("uuid")(),"MessengerMontageMessageActionsOfReactionEdge");k.setLinkedRecord(d,"node");h.push(k);g.setLinkedRecords(h,"edges");g.setValue(h.length,"count")},l=h!==void 0?h:h=b("useStoriesSendReplyMutation.graphql");function m(a){var b;return(b=Object.keys(c("StoryReplyType")).find(function(b){return c("StoryReplyType")[b]===a}))!=null?b:"UNKNOWN"}function a(a,b){var e=d("CometRelay").useRelayEnvironment(),f=i(c("StoriesActorContext")),g=f.actorID,h=c("useMinifiedProductAttribution")(),n=c("useStoriesShowSentTextToast")(a,b);return j(function(){var a=function(a,b){return d("CometRelay").commitMutation(e,{mutation:l,onCompleted:function(a,d){n(),b.replyAttemptCompletedLog(c("StoryReplyType").GIF,d==null?null:d[0])},onError:function(a){b.replyAttemptCompletedLog(c("StoryReplyType").GIF,a)},variables:{input:{attribution_id_v2:h,gif_url:a.gifUrl,story_id:a.storyID,story_reply_type:m(c("StoryReplyType").GIF)}}})},b=function(a,b){return d("CometRelay").commitMutation(e,{mutation:l,onCompleted:function(a,d){b.replyAttemptCompletedLog(c("StoryReplyType").LIGHT_WEIGHT,d==null?null:d[0])},onError:function(a){b.replyAttemptCompletedLog(c("StoryReplyType").LIGHT_WEIGHT,a)},optimisticUpdater:function(b){return k(b,a,g)},variables:{input:{attribution_id_v2:h,lightweight_reaction_actions:{offsets:[a.timeOffset||0],reaction:a.unicode},message:a.unicode,story_id:a.storyID,story_reply_type:m(c("StoryReplyType").LIGHT_WEIGHT)}}})},f=function(a,b){var f=a.isContextualReply===!0?c("StoryReplyType").CONTEXTUAL_REPLY:c("StoryReplyType").STICKER;return d("CometRelay").commitMutation(e,{mutation:l,onCompleted:function(a,c){n();b.replyAttemptCompletedLog(f,c==null?null:c[0]);a=c==null;d("StoriesGating").isTest()&&a&&d("cometPushToast").cometPushSimpleToast("sticker reply successful")},onError:function(a){b.replyAttemptCompletedLog(f,a)},variables:{input:{attribution_id_v2:h,sticker_id:a.stickerID,story_id:a.storyID,story_reply_type:m(f)}}})},i=function(a,b,f,g){f.replyLog(c("StoriesLoggingConstants").ACTION_TYPE.SEND_REPLY_ATTEMPT);var i=b===!0?c("StoryReplyType").CONTEXTUAL_REPLY:c("StoryReplyType").TEXT;return d("CometRelay").commitMutation(e,{mutation:l,onCompleted:function(b){function a(a,c){return b.apply(this,arguments)}a.toString=function(){return b.toString()};return a}(function(a,b){n();f.replyAttemptCompletedLog(i,b==null?null:b[0]);g&&g(b);a=b==null;d("StoriesGating").isTest()&&a&&d("cometPushToast").cometPushSimpleToast("text reply successful")}),onError:function(a){f.replyAttemptCompletedLog(i,a)},variables:{input:{attribution_id_v2:h,message:a.message,story_id:a.storyID,story_reply_type:m(i)}}})};return{sendGif:a,sendLWR:b,sendSticker:f,sendText:i}},[g,e,h,n])}g["default"]=a}),98);
-----
useStoriesViewerNodes",["CometRelay","FBLogger","QuickPerformanceLogger","StoriesActorContext","StoriesBehaviorHelpers","StoriesEnums","StoriesLoggerSession","StoriesLoggingConstants","cr:899180","qpl","react","useStoriesIsBucketEmpty","useStoriesRemoveEmptyBuckets","useStoriesSuspenseNavListSelectors","useStoriesSuspenseNavListTransitionRequestListener","useStoriesViewerBucketPrefetcher","useStoriesViewerNodes_buckets.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.startTransition,j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useMemo,n=e.useRef,o=e.useState,p=h!==void 0?h:h=b("useStoriesViewerNodes_buckets.graphql");function a(a,e,f,g,h,q,r,s){var t=d("CometRelay").useFragment(p,e),u=d("CometRelay").useFragment(p,a),v=d("CometRelay").useFragment(p,s);e=k(c("StoriesActorContext"));var w=e.actorID,x=c("useStoriesIsBucketEmpty")(u),y=c("useStoriesIsBucketEmpty")(t);c("useStoriesRemoveEmptyBuckets")(u);c("useStoriesRemoveEmptyBuckets")(t);a=m(function(){var a=t==null?void 0:t[0],b=function(b){var c;return(b==null?void 0:(c=b.story_bucket_owner)==null?void 0:c.id)===w||(b==null?void 0:b.id)!==((c=a)==null?void 0:c.id)&&!x(b==null?void 0:b.id)};b=u?u.filter(b):[];b=b.findIndex(function(a){return(a==null?void 0:a.id)===g})!==-1;b||(a=v==null?void 0:v[0]);return{isExtendedViewInitialBucketInNodeData:b,pinnedNode:a}},[g,w,x,u,t,v]);var z=a.isExtendedViewInitialBucketInNodeData,A=a.pinnedNode;s=function(){var a=function(a){var b;return(a==null?void 0:(b=a.story_bucket_owner)==null?void 0:b.id)===w||(a==null?void 0:a.id)!==(A==null?void 0:A.id)&&!x(a==null?void 0:a.id)},b=u==null?void 0:u[0];if(u==null||u.length===0)return[];else if(A==null||y(A.id)&&z)return u.filter(a);else{var c;c=(b==null?void 0:(c=b.story_bucket_owner)==null?void 0:c.id)===w;if(c&&b!=null)if(b.id===A.id)return u.filter(a);else return[b].concat(A).concat(u.slice(1).filter(a));else return[A].concat(u.filter(a))}};var B=s();e=o(function(){var a=B.findIndex(function(a){return(a==null?void 0:a.id)===g}),b=d("StoriesLoggerSession").getOpenViewerSource();a===-1&&g!==""&&g!=null&&b===c("StoriesLoggingConstants").ACTION_SOURCE.TRAY&&c("FBLogger")("fbstories").warn("Initial bucket ID [%s] was found at index -1, [%s]",g,B.length);return a});var C=e[0];a=e[1];s=m(function(){return B.map(function(a){return a==null?void 0:a.id}).filter(Boolean).filter(function(a){return a!=null})},[B]);c("useStoriesViewerBucketPrefetcher")(s,C);var D=n(null),E=n(null),F=n(null),G=n(!0);e=function(){G.current=!1};s=c("useStoriesSuspenseNavListSelectors")(B);var H=s.getBucketCount,I=s.getBucketID,J=s.getIsSecondBucket,K=s.isFirstBucket,L=s.isFriendListEmpty,M=s.isLastBucket,N=s.isUserBucketEmpty;s=s.userBucketIndex;var O=H(f),P=j(function(a){i(function(){h()})},[h,i]);H=d("CometRelay").useRelayEnvironment();l(function(){var a=I(C),e=a!==F.current;if(C!==D.current||O!==E.current){var h;e&&(c("QuickPerformanceLogger").markerEnd(c("qpl")._(13238354,"1306"),4),c("QuickPerformanceLogger").markerStart(c("qpl")._(13238354,"1306")),b("cr:899180")&&b("cr:899180").updateURL(a,""));M(C,f)&&f&&P();e=B==null?void 0:B[C];h=e==null?void 0:(h=e.story_bucket_owner)==null?void 0:h.viewer_profile_permissions;h=h!=null&&h.includes("EDIT_PROFILE");var i=d("StoriesBehaviorHelpers").canSeeViewerSheet(e==null?void 0:e.story_bucket_type,e==null?void 0:(e=e.story_bucket_owner)==null?void 0:e.id,h,w),j=J(C,g),k=null,l=null;j&&(k=B.slice(C,C+3),l=Math.max(0,B.length-1-C));e=function(){q({bucketID:I(C),bucketIndex:C,canSeeViewerSheet:i,canShowStoryOverlay:G.current,isEndOfTray:M(C,f)&&!f,isFirstBucket:K(C),isFriendListEmpty:L,isLastBucket:M(C,f),isSecondBucket:j,nextBuckets:k,nextBucketsCount:l})};e();C!==D.current&&r(D.current!=null&&C>D.current?d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET)}D.current=C;E.current=O;F.current=a},[w,B,O,C,I,f,g,K,J,M,L,N,P,q,r,H]);c("useStoriesSuspenseNavListTransitionRequestListener")(C,a,M(C,f),s===0?1:0);return{bucketIndex:C,disableExtendedViewerOverlay:e,isFriendListEmpty:L,isUserBucketEmpty:N,loadMore:P,nodes:B,prevBucketIndex:D,setBucketIndex:a,userBucketIndex:s}}g["default"]=a}),98);
-----
StoriesRootError.react",["fbt","FBLogger","NullStateGeneral","QPLUserFlow","StoriesCloseButton.react","StoriesLoggingConstants","TetraButton.react","TetraNullState.react","qpl","react","useStoriesViewerClose"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect;function a(a){j(function(){c("FBLogger")("fbstories").catching(a.error).warn("Issue displaying story viewer")},[a.error]);var b=c("useStoriesViewerClose")();c("QPLUserFlow").endFailure(c("qpl")._(13249850,"5510"),a.error.message);var d=function(){return b(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.BACK_BUTTON_EXIT)},e=h._("u51fau9519u4e86"),f=h._("u8bf7u91cdu8bd5u3002"),g=h._("u8fd4u56deu9996u9875");return i.jsxs("div",{className:"x6s0dn4 x1vtvx1t x78zum5 xdt5ytf x1q1vt7x xl56j7k x6ikm8r xh8yej3",children:[i.jsx(c("StoriesCloseButton.react"),{dark:!0}),i.jsx("div",{className:"xvue9z",children:i.jsx(c("TetraNullState.react"),{action:i.jsx(c("TetraButton.react"),{label:g,onPress:d()}),body:f,headline:e,icon:c("NullStateGeneral")})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSuspenseKeyHandler",["CometKeys","StoriesEnums","StoriesLoggingConstants","StoriesPauseReasons","StoriesSuspenseContuxActionsContext","StoriesSuspenseKeyboardContext","StoriesSuspensePauseContext","react","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext,j=b.useEffect,k=b.useRef;function a(){var a=k(null),b=i(c("StoriesSuspenseKeyboardContext")),e=b.addSubscriber;b=i(c("StoriesSuspenseContuxActionsContext"));var f=b.performBucketNavigation,g=b.performCardNavigation;b=i(c("StoriesSuspensePauseContext"));var l=b.isPaused,m=b.setPause,n=c("useStoriesViewerClose")(),o=h(function(a){switch(a.key){case c("CometKeys").LEFT:case c("CometKeys").UP:a.shift===!0?f(d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET):g(d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_BACKWARD);break;case c("CometKeys").RIGHT:case c("CometKeys").DOWN:a.shift===!0?f(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET):g(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_FORWARD);break;case c("CometKeys").SPACE:m(!l,d("StoriesPauseReasons").KEYBOARD);break;case c("CometKeys").ESCAPE:m(!0,d("StoriesPauseReasons").VISIBILITY_CHANGE);n(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.KEYBOARD_EXIT);break}},[n,l,f,g,m]);j(function(){var b=function(){a.current&&a.current()};b();a.current=e(o);return b},[e,o])}g["default"]=a}),98);
-----
StoriesFeedbackDraftEditor.react",["fbt","CometComponentWithKeyCommands.react","CometPressable.react","DeferredDraftEditorDEPRECATED.react","StoriesFeedbackCommentStateContext","StoriesFeedbackEditorStateContext","StoriesFeedbackStickerRepliesWrapper.react","StoriesGating","StoriesLoggerContext","StoriesLoggingConstants","TetraIcon.react","cr:5369","getPlainTextFromDeferredDraftEditorState_DEPRECATED_DO_NOT_USE","react","useGlobalEventListener","useStoriesFeedbackKeyboardCommandsConfig","useStoriesSendReply"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");e=d("react");var j=e.useCallback,k=e.useContext,l=e.useEffect,m=e.useRef,n=e.useState,o={accessibleElement:{clip:"x1qvwoe0",height:"xjm9jq1",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x10l6tqk",whiteSpace:"xuxw1ft",width:"x1i1rx1s",$$css:!0},actionButtons:{alignItems:"x6s0dn4",display:"x78zum5",marginEnd:"xr12ei9",$$css:!0},feedbackDraftEditor:{alignItems:"x6s0dn4",display:"x78zum5",flexDirection:"x1q0g3np",width:"xh8yej3",$$css:!0},input:{overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xh8yej3",$$css:!0},inputWOComments:{height:"x17rw0jw",$$css:!0},sendButton:{marginStart:"xsgj6o6",$$css:!0}};function a(a){var e=a.cardID,f=a.feedbackParentRef,g=a.onBlur,p=a.onFocus,q=a.onSend,r=a.ownerName;a=a.placeholder;var s=n(!1),t=s[0],u=s[1];s=n(!1);var v=s[0],w=s[1];s=k(c("StoriesFeedbackEditorStateContext"));var x=s.contextualReplyRef,y=s.contextualReplyShown,z=s.contextualReplyTapped,A=s.editorState,B=s.inputFocused,C=s.mostRecentTappedID,D=s.onEmojiSelect,E=s.resetEditorState,F=s.setContextualReplyTapped,G=s.setEditorState,H=s.setMostRecentTappedID;s=c("useStoriesSendReply")(r);var I=s.sendGif,J=s.sendSticker;r=k(c("StoriesLoggerContext"));var K=r.logger;s=k(c("StoriesFeedbackCommentStateContext"));r=s.isStoryCommentingEnabled;var L=m(null),M=m(!1),N=m(!1),O=m(null);l(function(){F(!1),w(!1),H(null)},[e,F,w,H]);c("useGlobalEventListener")("keydown",function(a){var b=O.current;if(b&&a.target instanceof Node&&!a.target.contains(b))return;b=String.fromCharCode(a.keyCode);b.match(/w/)&&(O.current&&O.current.focus(),z&&w(!0))});var P=j(function(a){a===void 0&&(a=!0);if(M.current||N.current)return;window.clearTimeout(L.current);L.current=window.setTimeout(function(){u(!1),g(),a&&(O.current&&O.current.blur())})},[g]),Q=j(function(a){a===void 0&&(a=!0),window.clearTimeout(L.current),a&&(u(!0),p())},[u,p]);c("useGlobalEventListener")("click",j(function(a){var b;a=a.target;if(!t)return;if(a===f||a instanceof Node&&(f==null?void 0:(b=f.current)==null?void 0:b.contains(a)))return;P()},[f,t,P]));var R=c("getPlainTextFromDeferredDraftEditorState_DEPRECATED_DO_NOT_USE")(A).trim(),S=R==="";s=j(function(){if(S)return;q(R);y&&K.replySentWhenSmartReplyShownLog(v,C,z,c("StoriesLoggingConstants").STORY_REPLY_TYPE.TEXT_SUGGESTION);E();P()},[y,z,v,P,K,C,S,q,E,R]);var T=j(function(a){a=a.stickerID;a!=null&&a!==""&&(J({stickerID:a,storyID:e},K),P())},[J,e,K,P]),U=j(function(a){I({gifUrl:a.source.url,storyID:e},K),P()},[I,e,K,P]),V=c("useStoriesFeedbackKeyboardCommandsConfig")({onEnter:s,onEscape:P});return i.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np xh8yej3",onBlurCapture:function(a){if(x.current!=null&&x.current.contains(a.relatedTarget))return;P(a.target===O.current)},onFocusCapture:function(a){Q(a.target===O.current)},children:[i.jsx(c("CometComponentWithKeyCommands.react"),{commandConfigs:V,xstyle:[o.input,!r&&o.inputWOComments],children:i.jsx(c("DeferredDraftEditorDEPRECATED.react"),{customStyleFn:function(){return{caretColor:"white",whiteSpace:"pre",wordWrap:"normal"}},editorState:A,handleReturn:function(a){a.preventDefault();return"handled"},onInputRefUpdate:function(a){O.current=a},onStateChange:function(a){G(a)},placeholder:a})}),i.jsxs("div",{className:"x6s0dn4 x78zum5 xr12ei9"+(!t&&!B?" x1qvwoe0 xjm9jq1 x6ikm8r x10wlt62 x10l6tqk xuxw1ft x1i1rx1s":""),children:[!d("StoriesGating").shouldEnableArmadilloStoryReply()&&i.jsx(c("StoriesFeedbackStickerRepliesWrapper.react"),{onEmojiSelect:D,onGifSelect:U,onStickerSelect:T,onVisibilityChange:function(a){N.current=a}}),i.jsx(c("CometPressable.react"),{"aria-label":h._("u5febu62cdu6587u5b57u56deu590du7684u201cu53d1u9001u201du6309u94ae"),disabled:S,hideHoverOverlay:!0,onPress:s,testid:void 0,xstyle:o.sendButton,children:i.jsx(c("TetraIcon.react"),{color:S?"disabled":"white",icon:b("cr:5369"),size:20})})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseBucketContainer.react",["CometRelay","FBLogger","StoriesActorContext","StoriesBehaviorHelpContext","StoriesBucketLoadingView.react","StoriesEnums","StoriesLoggerContext","StoriesLoggingConstants","StoriesProductionEndCard.react","StoriesProgressBar.react","StoriesSuspenseBucket.react","StoriesSuspenseBucketContainer_animations.graphql","StoriesSuspenseBucketContainer_bucket.graphql","StoriesSuspenseBucketContainer_user.graphql","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesSuspensePauseContext","react","storiesUpdateSeenStateMutation","useStoriesLogger","useStoriesSuspenseCards","useStoriesSuspenseNavListItemTransitionListener","useStoriesSuspensePermalinkUpdater","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useContext,n=e.useMemo,o=e.useState,p=h!==void 0?h:h=b("StoriesSuspenseBucketContainer_bucket.graphql");function a(a){var e,f,g=d("CometRelay").useFragment(p,a.bucket),h=c("useStoriesViewerClose")(),q=d("CometRelay").useRelayEnvironment(),r=m(c("StoriesBehaviorHelpContext"));r=r.isSelfStory;var s=d("CometRelay").useFragment(i!==void 0?i:i=b("StoriesSuspenseBucketContainer_animations.graphql"),a.animations),t=d("CometRelay").useFragment(j!==void 0?j:j=b("StoriesSuspenseBucketContainer_user.graphql"),a.userData),u=o(null),v=u[0];u=u[1];var w=m(c("StoriesSuspensePauseContext"));w=w.isPaused;var x=m(c("StoriesSuspenseContuxActionsContext")),y=x.performCardNavigation;x=m(c("StoriesSuspenseContuxContext"));var z=x.cardIndex,A=x.isLastCard;x=m(c("StoriesSuspenseBucketDataContext"));x=x.bucketData;var B=x.bucketID,C=x.bucketIndex,D=x.isEndOfTray,E=x.isLastBucket;x=m(c("StoriesActorContext"));x=x.actorID;var F=c("useStoriesLogger")(x,{bucketIndex:C,cardIndex:z},g),G=(x=a.shouldAutoExit)!=null?x:!0;C=l(function(){A&&E&&G?h(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.AUTO_EXIT):y(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.AUTO_JUMP)},[E,A,y,h]);x=g==null?void 0:g.story_bucket_owner;e=g==null?void 0:(e=g.story_bucket_owner)==null?void 0:e.short_name;var H=(f=g==null?void 0:g.is_bucket_seen_by_viewer)!=null?f:A;f=((f=g==null?void 0:(f=g.unified_stories)==null?void 0:f.edges)!=null?f:[]).map(function(a){return a==null?void 0:a.node});f=c("useStoriesSuspenseCards")(f,z);var I=f.getCardAtCurrentIndex,J=f.getCount,K=f.getFirstCard,L=f.getNextCard;f=I();var M=D?"end_card":f==null?void 0:f.id;I=l(function(){if(B!=null&&B!==""&&M!=null){var a;c("storiesUpdateSeenStateMutation")(q,B,M,H?(a=K())==null?void 0:a.id:(a=L())==null?void 0:a.id,H)}},[B,M,q,K,L,H]);c("useStoriesSuspenseNavListItemTransitionListener")();c("useStoriesSuspensePermalinkUpdater")(g,z);g=n(function(){return{logger:F}},[F]);if(D)return k.jsx(c("StoriesProductionEndCard.react"),{onProgressDone:C,userData:t});if(f==null){r||c("FBLogger")("fbstories").warn("Empty card at index: [%s] for bucket id: [%s]",z,B);return k.jsx("div",{className:"x5yr21d x1n2onr6 xh8yej3",children:k.jsx(c("StoriesBucketLoadingView.react"),{})},B)}return k.jsxs("div",{className:"x5yr21d x1n2onr6 xh8yej3",children:[k.jsx(c("StoriesLoggerContext").Provider,{value:g,children:k.jsx(c("StoriesSuspenseBucket.react"),{animations:s,card:f,isSelfStory:r(),onCardSeen:I,onProgressDone:C,onTimerSourceUpdate:u,owner:x,ownerName:e,refetchNodes:a.refetchNodes})}),k.jsx(c("StoriesProgressBar.react"),{cardCount:J(),cardTimerSource:v,currentCardIndex:z,isPaused:w,onDone:C})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseNavigationButtons.react",["StoriesEnums","StoriesLoggingConstants","StoriesNavigationButton.react","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","react","useStoriesSuspenseKeyHandler"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext;function a(a){a=a.children;var b=i(c("StoriesSuspenseContuxContext")),e=b.isFirstCard,f=b.isLastCard;b=b.isStoryOverlayActive;c("useStoriesSuspenseKeyHandler")();var g=i(c("StoriesSuspenseBucketDataContext"));g=g.bucketData;var j=g.isFirstBucket;g=g.isLastBucket;var k=i(c("StoriesSuspenseContuxActionsContext")),l=k.performCardNavigation;k=h.jsx(c("StoriesNavigationButton.react"),{direction:e?d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD,disabled:j&&e||b,onClick:function(){window.requestAnimationFrame(function(){l(d("StoriesEnums").NAV_DIRECTIONS.PREV_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_BACKWARD)})}},"prev");j=h.jsx(c("StoriesNavigationButton.react"),{direction:f?d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET:d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,disabled:g&&f||b,onClick:function(){window.requestAnimationFrame(function(){l(d("StoriesEnums").NAV_DIRECTIONS.NEXT_CARD,c("StoriesLoggingConstants").NAVIGATION_GESTURE.TAP_FORWARD)})}},"next");return h.jsxs("div",{className:"x6s0dn4 x78zum5 x1q0g3np x5yr21d xl56j7k xh8yej3",children:[k,a,j]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useStoriesSuspensePlaceholderKeyHandler",["CometKeys","StoriesEnums","StoriesLoggingConstants","StoriesSuspenseKeyboardContext","react","storiesViewerSuspenseEmitter","useStoriesViewerClose"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useCallback,i=b.useContext,j=b.useEffect,k=b.useRef;function a(){var a=k(null),b=i(c("StoriesSuspenseKeyboardContext")),e=b.addSubscriber,f=c("useStoriesViewerClose")(),g=h(function(a){switch(a.key){case c("CometKeys").LEFT:case c("CometKeys").UP:c("storiesViewerSuspenseEmitter").requestBucketTransition(d("StoriesEnums").NAV_DIRECTIONS.PREV_BUCKET);break;case c("CometKeys").RIGHT:case c("CometKeys").DOWN:c("storiesViewerSuspenseEmitter").requestBucketTransition(d("StoriesEnums").NAV_DIRECTIONS.NEXT_BUCKET);break;case c("CometKeys").ESCAPE:f(c("StoriesLoggingConstants").CLOSE_STORY_GESTURE.KEYBOARD_EXIT);break}},[f]);j(function(){var b=function(){a.current&&a.current()};b();a.current=e(g);return b},[e,g])}g["default"]=a}),98);
-----
StoriesSuspenseContentPanePlaceholder.react",["StoriesBucketLoadingView.react","StoriesCloseButton.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseNavigationButtonsPlaceholder.react","StoriesSuspenseViewerSheetPlaceholder.react","react","useStoriesViewerDimensions","useStoriesViewerSheetAnimation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){a=a.isNullState;a=a===void 0?!1:a;var b=c("useStoriesViewerDimensions")(),e=d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,f=e;f=c("useStoriesViewerSheetAnimation")(f);var g=f.contentPaneStyle,i=f.placeholderStyle,j=f.setDisplaySideRail,k=f.viewerSheetInlineStyle;f=f.viewerSheetStyle;var l=null;b=h.jsxs("div",{className:"x6s0dn4 x78zum5 x5yr21d xl56j7k x10l6tqk x17qophe x13vifvy xh8yej3",children:[h.jsx(c("StoriesSuspenseNavigationButtonsPlaceholder.react"),{children:h.jsx("div",{className:"x6s0dn4 x78zum5 xdt5ytf x5yr21d x1n2onr6",children:h.jsx("div",{className:"xjbqb8w x1lq5wgf xgqcy7u x30kzoy x9jhf4c x78zum5 x1q0g3np xod5an3 x14vqqas x1bifzbx x17z0pdo x6ikm8r x10wlt62 x1n2onr6 x1k90msu x6o7n8i x9lcvmn x1m6m0jg",style:b,children:h.jsx(c("StoriesBucketLoadingView.react"),{})})})}),h.jsx(c("StoriesCloseButton.react"),{})]});e?l=h.jsxs("div",{className:g,children:[b,h.jsx("div",{className:f,style:k,children:h.jsx("div",{className:i,children:h.jsx(c("StoriesSuspenseViewerSheetPlaceholder.react"),{openSource:c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE,toggleViewerSheet:j})})})]}):l=b;return a?null:h.jsxs("div",{children:[h.jsx("div",{className:"xal61yo x5yr21d x10l6tqk xh8yej3"}),h.jsx("div",{className:"x6s0dn4 x1ey2m1c x78zum5 xds687c xl56j7k x6ikm8r x10wlt62 x10l6tqk x17qophe x13vifvy",children:l})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseViewerSheetPlaceholder.react",["CometGlimmer.react","StoriesCometListItemGlimmer.react","StoriesLoggingConstants","StoriesViewerSheetSection.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useEffect,j={preview:{height:"x1h5wmu3",marginEnd:"xq8finb",width:"xgf8fm",$$css:!0},previewTray:{alignItems:"x6s0dn4",display:"x78zum5",paddingTop:"x1p5oq8j",paddingEnd:"xn6708d",paddingBottom:"xwxc41k",paddingStart:"x1ye3gou",$$css:!0},root:{backgroundColor:"x2izyaf",height:"x5yr21d",width:"xh8yej3",$$css:!0},title:{height:"x1qx5ct2",width:"x1exxlbk",$$css:!0},titleContainer:{paddingTop:"x9tmck8",paddingEnd:"xn6708d",paddingBottom:"x18d9i69",paddingStart:"x1ye3gou",$$css:!0}};function a(a){var b=a.openSource,d=a.toggleViewerSheet;i(function(){b===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE?d(!0):d(!1)},[b,d]);a=[].concat(Array.from(Array(3).keys())).map(function(a){return h.jsx(c("CometGlimmer.react"),{index:a,xstyle:j.preview},a)});return h.jsxs("div",{className:"x2izyaf x5yr21d xh8yej3",children:[h.jsxs(c("StoriesViewerSheetSection.react"),{showSectionLine:!0,children:[h.jsx("div",{className:"x9tmck8 xn6708d x18d9i69 x1ye3gou",children:h.jsx(c("CometGlimmer.react"),{index:0,xstyle:j.title})}),h.jsx("div",{className:"x6s0dn4 x78zum5 x1p5oq8j xn6708d xwxc41k x1ye3gou",children:a})]}),h.jsxs(c("StoriesViewerSheetSection.react"),{showSectionLine:!1,children:[h.jsx("div",{className:"x9tmck8 xn6708d x18d9i69 x1ye3gou",children:h.jsx(c("CometGlimmer.react"),{index:0,xstyle:j.title})}),h.jsx(c("StoriesCometListItemGlimmer.react"),{isViewerSheet:!0,numberOfItems:6})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseViewerSheetPreviewTray.react",["StoriesActorContext","StoriesBehaviorHelpContext","StoriesEnums","StoriesLoggingConstants","StoriesSuspenseBucketDataContext","StoriesSuspenseContuxActionsContext","StoriesSuspenseContuxContext","StoriesViewerSheetContext","StoriesViewerSheetPreviewAddStory.react","StoriesViewerSheetSection.react","StoriesViewerSheetStoryPreview.react","deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useContext,j=132,k=99,l=k/3,m=1.15152,n=12,o=c("deferredLoadComponent")(c("requireDeferredForDisplay")("ProfileCometFeaturedHighlightsEditCollectionButton.react").__setRef("StoriesSuspenseViewerSheetPreviewTray.react"));function a(){var a=i(c("StoriesActorContext"));a=a.actorID;var b=i(c("StoriesSuspenseContuxActionsContext")),e=b.cardIndexChanged;b=i(c("StoriesSuspenseContuxContext"));var f=b.cardIndex;b=i(c("StoriesViewerSheetContext"));var g=b.canAddToStory;b=b.storiesPreviewUriList;var p=i(c("StoriesBehaviorHelpContext")).getBucketType(),q=i(c("StoriesSuspenseBucketDataContext"));q=q.bucketData.bucketID;var r=function(a,b){if(a)return;e(b,c("StoriesLoggingConstants").NAVIGATION_GESTURE.VIEWER_SHEET)},s=f>0?-((k+n)*f-l):0;return h.jsxs(c("StoriesViewerSheetSection.react"),{children:[h.jsxs("div",{className:"x6s0dn4 x78zum5 xqmvywx x1p5oq8j xn6708d xwxc41k x1ye3gou x1n2onr6 x1d8287x x11xpdln xz4gly6 x1so62im",style:{transform:"translateX("+s+"px)"},children:[b.map(function(a,b){var d=a.caption,e=a.contentID,g=a.storyID,i=a.uri;a=a.warningScreen;if(i==null)return null;var l=b===f;return h.jsx("div",{className:"xq8finb",children:h.jsx(c("StoriesViewerSheetStoryPreview.react"),{activeScale:m,caption:d,contentID:e,height:j,index:b,isActive:l,onClick:r,previewImageURI:i,storyID:g,warningScreen:a,width:k})},b)}),g&&h.jsx("div",{className:"xq8finb",children:h.jsx(c("StoriesViewerSheetPreviewAddStory.react"),{height:j,width:k})})]}),p===d("StoriesEnums").STORY_CARD_TYPES.HIGHLIGHTED_STORY&&a!=null?h.jsx("div",{className:"xsag5q8 xn6708d x1ye3gou xexx8yu",children:h.jsx(o,{collectionID:q,profileID:a})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
StoriesSuspenseContentSlidingTransition.react",["CometPlaceholder.react","MWChatVisibilityOverrideContext","StoriesCloseButton.react","StoriesLoggerSession","StoriesLoggingConstants","StoriesSuspenseViewerSheetPlaceholder.react","react","useMWShouldCurrentRouteOverrideChatVisibility","useShouldShowMessagingEntrypointOnCurrentRoute","useStoriesCometWindowFitNavPaneAndViewerSheet","useStoriesViewerSheetAnimation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useCallback;function a(a){var b=a.children;a=a.viewerSheet;var e=c("useStoriesCometWindowFitNavPaneAndViewerSheet")(),f=c("useShouldShowMessagingEntrypointOnCurrentRoute")("CHAT"),g=c("useMWShouldCurrentRouteOverrideChatVisibility")();g=d("MWChatVisibilityOverrideContext").useMWChatVisibilityOverride(g);f=f&&g;g=d("StoriesLoggerSession").getOpenViewerSource()===c("StoriesLoggingConstants").ACTION_SOURCE.ARCHIVE;g=g;g=c("useStoriesViewerSheetAnimation")(g,e,f);e=g.closeButtonStyle;f=g.contentPaneStyle;var j=g.placeholderStyle,k=g.setDisplaySideRail,l=g.viewerSheetInlineStyle;g=g.viewerSheetStyle;var m=i(function(){return h.jsx("div",{className:j,children:h.jsx(c("StoriesSuspenseViewerSheetPlaceholder.react"),{toggleViewerSheet:k})})},[j,k]);return h.jsxs("div",{className:f,children:[b,h.jsx("div",{className:e,children:h.jsx(c("StoriesCloseButton.react"),{})}),h.jsx("div",{className:g,style:l,children:h.jsx(c("CometPlaceholder.react"),{fallback:h.jsx(m,{}),children:a(k)})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
usePolarisSponsoredStoryMediaImpressionLogger",["InstagramAdImpressionFalcoEvent","InstagramAdSubImpressionFalcoEvent","PolarisMonitorErrors","PolarisODS","PolarisReactRedux","PolarisSponsoredStoryLoggingConstants","cometGHLContentDisplayCheck","err","polarisStorySelectors","setTimeout","usePartialViewImpression","usePolarisSponsoredStoryLoggingParams"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map(),i=new Set();function a(a,b,e){var f=d("PolarisReactRedux").useSelector(function(b){return d("polarisStorySelectors").getReel(b,a)});f=c("usePolarisSponsoredStoryLoggingParams")(f,b);var g=f.adId,j=f.adInsertedPosition,k=f.containerModule,l=f.followStatus,m=f.mediaType,n=f.mpk,o=f.postedAt,p=f.reelSize,q=f.reelType,r=f.reelViewerPosition,s=f.sessionReelCounter,t=f.trackingToken,u=f.traySession,v=f.viewerId,w=f.viewerSession;return c("usePartialViewImpression")({onImpressionStart:function(f){var x=f.entry;if(g==null||t==null||v==null){if(b.isSponsored){f=c("err")("Missing critical logging field for InstagramAdImpressionFalcoEvent for story media.");d("PolarisMonitorErrors").logError(f)}return}var y=h.get(b.id),z=Date.now(),A={a_pk:b.ownerId,ad_id:g,m_pk:n,tracking_token:t,reel_id:a,follow_status:l,post_id:b.id,reel_position:e.toString(),reel_size:p,reel_type:q,ad_inserted_position:j,session_reel_counter:s,m_t:m,m_ts:o,reel_viewer_position:r,source_of_action:k,tray_session_id:u,viewer_session_id:w,pigeon_reserved_keyword_module:k,pk:v};if(i.has(b.id))return;i.add(b.id);c("setTimeout")(function(){var a=c("cometGHLContentDisplayCheck")(x.target);y==null?a?(c("PolarisODS").incr("web.ads.story.media.impression"),c("InstagramAdImpressionFalcoEvent").log(function(){return A}),h.set(b.id,z)):c("PolarisODS").incr("web.ads.story.media.impression.hidden"):z-y>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(a?(c("PolarisODS").incr("web.ads.story.media.sub_impression"),c("InstagramAdSubImpressionFalcoEvent").log(function(){return A}),h.set(b.id,z)):c("PolarisODS").incr("web.ads.story.media.sub_impression.hidden"));i["delete"](b.id)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
useStoriesSuspenseNavListItemTransitionListener",["StoriesLoggerContext","StoriesLoggingConstants","react","storiesViewerSuspenseEmitter"],(function(a,b,c,d,e,f,g){"use strict";b=d("react");var h=b.useContext,i=b.useEffect;function a(){var a=h(c("StoriesLoggerContext")),b=a.logger;i(function(){return c("storiesViewerSuspenseEmitter").listenToNavListItemTransition(function(){b.storyNavigationLog(c("StoriesLoggingConstants").NAVIGATION_GESTURE.NAVIGATE_AWAY)})},[b])}g["default"]=a}),98);
-----
usePolarisSponsoredStoryMediaImpressionSecondChannelLogger",["InstagramAdImpressionSecondChannelFalcoEvent","InstagramAdSubImpressionSecondChannelFalcoEvent","PolarisContainerModuleUtils","PolarisInteractionsLogger","PolarisODS","PolarisSponsoredStoryLoggingConstants","PolarisViewpointActionUtils","cometGHLContentDisplayCheck","setTimeout","usePolarisAnalyticsContext","usePolarisViewer","useScrollBasedImpressionTracker"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map(),i=new Set();function a(a,b){var e=c("usePolarisAnalyticsContext")(),f=c("usePolarisViewer")(),g=b.id,j=a==null?void 0:a.ad_id,k=a==null?void 0:a.tracking_token;return c("useScrollBasedImpressionTracker")(function(a){if(j!=null&&k!=null&&(f==null?void 0:f.id)!=null&&e!=null){var l=h.get(g),m=Date.now(),n={ad_id:j,m_pk:d("PolarisViewpointActionUtils").getMPKForFeedMedia(b),tracking_token:k,pk:f==null?void 0:f.id,inventory_source:d("PolarisContainerModuleUtils").getContainerModule(e),m_t:d("PolarisInteractionsLogger").getMediaTypeFromPost(b).toString(),pigeon_reserved_keyword_module:d("PolarisContainerModuleUtils").getContainerModule(e)};if(a.status!=="ENTER")return;if(i.has(g))return;i.add(g);c("setTimeout")(function(){var b=c("cometGHLContentDisplayCheck")(a.target);l==null?b?(c("PolarisODS").incr("web.ads.story.media.impression.second_channel"),c("InstagramAdImpressionSecondChannelFalcoEvent").log(function(){return n}),h.set(g,m)):c("PolarisODS").incr("web.ads.story.media.impression.second_channel.hidden"):m-l>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(b?(c("PolarisODS").incr("web.ads.story.media.sub_impression.second_channel"),c("InstagramAdSubImpressionSecondChannelFalcoEvent").log(function(){return n}),h.set(g,m)):c("PolarisODS").incr("web.ads.story.media.sub_impression.second_channel.hidden"));i["delete"](j)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
PolarisSponsoredStoryLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a=2e3;b=6e4;f.ADBLOCK_CHECK_DELAY=a;f.SUB_IMPRESSION_GAP=b}),66);
-----
usePolarisSponsoredStoryReelImpressionSecondChannelLogger",["InstagramAdReelImpressionSecondChannelFalcoEvent","InstagramAdReelSubImpressionSecondChannelFalcoEvent","PolarisContainerModuleUtils","PolarisInteractionsLogger","PolarisODS","PolarisSponsoredStoryLoggingConstants","PolarisViewpointActionUtils","cometGHLContentDisplayCheck","setTimeout","usePolarisAnalyticsContext","usePolarisViewer","useScrollBasedImpressionTracker"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map(),i=new Set();function a(a,b){var e=c("usePolarisAnalyticsContext")(),f=c("usePolarisViewer")(),g=a==null?void 0:a.ad_id,j=a==null?void 0:a.tracking_token;return c("useScrollBasedImpressionTracker")(function(a){if(g!=null&&j!=null&&(f==null?void 0:f.id)!=null&&e!=null){if(a.status!=="ENTER")return;var k=h.get(g),l=Date.now(),m={ad_id:g,m_pk:d("PolarisViewpointActionUtils").getMPKForFeedMedia(b),tracking_token:j,container_module:d("PolarisContainerModuleUtils").getContainerModule(e),m_t:d("PolarisInteractionsLogger").getMediaTypeFromPost(b).toString()};if(i.has(g))return;i.add(g);c("setTimeout")(function(){var b=c("cometGHLContentDisplayCheck")(a.target);k==null?b?(c("PolarisODS").incr("web.ads.story.reel.impression.second_channel"),c("InstagramAdReelImpressionSecondChannelFalcoEvent").log(function(){return m}),h.set(g,l)):c("PolarisODS").incr("web.ads.story.reel.impression.second_channel.hidden"):l-k>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(b?(c("PolarisODS").incr("web.ads.story.reel.sub_impression.second_channel"),c("InstagramAdReelSubImpressionSecondChannelFalcoEvent").log(function(){return m}),h.set(g,l)):c("PolarisODS").incr("web.ads.story.reel.sub_impression.second_channel.hidden"));i["delete"](g)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
usePolarisSponsoredStoryReelImpressionLogger",["InstagramAdReelImpressionFalcoEvent","InstagramAdReelSubImpressionFalcoEvent","PolarisContainerModuleUtils","PolarisMonitorErrors","PolarisODS","PolarisReactRedux","PolarisSponsoredStoryLoggingConstants","PolarisStoriesLoggingUtils","PolarisViewpointActionUtils","cometGHLContentDisplayCheck","err","polarisRelationshipSelectors","polarisStorySelectors","setTimeout","usePartialViewImpression","usePolarisAnalyticsContext","usePolarisViewer"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map(),i=new Set();function a(a,b,e){var f,g=c("usePolarisViewer")(),j=d("PolarisReactRedux").useSelector(function(a){return d("polarisStorySelectors").getReel(a,b)}),k=d("PolarisReactRedux").useSelector(function(a){return a.stories.currentReelItemIndex}),l=d("PolarisReactRedux").useSelector(function(a){return a.stories.traySession}),m=d("PolarisReactRedux").useSelector(function(a){return a.stories.viewerSession}),n=d("PolarisReactRedux").useSelector(function(a){return a.stories.currentTrayOrder.indexOf(b)});f=d("polarisRelationshipSelectors").useRelationship((f=a.ownerId)!=null?f:"");var o=f!=null?d("PolarisViewpointActionUtils").getFollowStatus(f):null,p=c("usePolarisAnalyticsContext")(),q=e==null?void 0:e.ad_id;return c("usePartialViewImpression")({onImpressionStart:function(f){var r,s=f.entry;if(q==null||(e==null?void 0:e.tracking_token)==null||(g==null?void 0:g.id)==null){if(a.isSponsored){f=c("err")("Missing critical logging field for InstagramAdReelImpressionFalcoEvent.");d("PolarisMonitorErrors").logError(f)}return}var t=h.get(b),u=Date.now();f=d("PolarisStoriesLoggingUtils").StoriesLoggingSession.getData();var v=d("PolarisContainerModuleUtils").getContainerModule(p),w={a_pk:a.ownerId,ad_id:q,m_pk:d("PolarisViewpointActionUtils").getMPKForStoryMedia(a.id,a.owner),tracking_token:e==null?void 0:e.tracking_token,reel_id:b,follow_status:o,post_id:a.id,reel_position:k.toString(),reel_size:j==null?void 0:(r=j.itemIds)==null?void 0:r.length.toString(),reel_type:d("PolarisStoriesLoggingUtils").getTypeForLogging(j==null?void 0:j.type),ad_inserted_position:n.toString(),session_reel_counter:f.reelCounter.toString(),m_t:Number(d("PolarisStoriesLoggingUtils").getMediaTypeFromPost(a)).toString(),m_ts:(r=a.postedAt)==null?void 0:r.toString(),reel_viewer_position:f.reelPositionInTray.toString(),source_of_action:v,tray_session_id:l,viewer_session_id:m,pigeon_reserved_keyword_module:v,pk:g==null?void 0:g.id};if(i.has(q))return;i.add(q);c("setTimeout")(function(){var a=c("cometGHLContentDisplayCheck")(s.target);t==null?a?(c("PolarisODS").incr("web.ads.story.reel.impression"),c("InstagramAdReelImpressionFalcoEvent").log(function(){return w}),h.set(b,u)):c("PolarisODS").incr("web.ads.story.reel.impression.hidden"):u-t>=d("PolarisSponsoredStoryLoggingConstants").SUB_IMPRESSION_GAP&&(a?(c("PolarisODS").incr("web.ads.story.reel.sub_impression"),c("InstagramAdReelSubImpressionFalcoEvent").log(function(){return w}),h.set(b,u)):c("PolarisODS").incr("web.ads.story.reel.sub_impression.hidden"));i["delete"](q)},d("PolarisSponsoredStoryLoggingConstants").ADBLOCK_CHECK_DELAY)}})}g["default"]=a}),98);
-----
JewelBase",["csx","invariant","Arbiter","ArbiterMixin","Bootloader","CSS","CrossWindowEventEmitter","DOM","Event","FriendingSurfaceVisitationTypedLogger","FunnelLogger","HTML","JewelBadgeCountRecorder","JewelCountSideLoader","JewelLogger","Keys","NotificationJewelFunnelLoggingConstants","Promise","Run","TabIsolation","TimeSlice","Toggler","TooltipData","firstClickTimestamp","killswitch","mixin","normalizedEventTimestamp","performance","performanceNow","promiseDone"],(function(a,b,c,d,e,f,g,h,i){var j=new(c("CrossWindowEventEmitter"))("JewelBase"),k={};function l(){if(c("performance")==null?void 0:c("performance").getEntriesByName){var a=c("performance").getEntriesByName("first-paint","paint");if(a&&a[0])return c("normalizedEventTimestamp")(a[0].startTime)}return null}a=function(a){babelHelpers.inheritsLoose(e,a);function e(b,e){var f;f=a.call(this)||this;f.name=e.name;f.label=e.label;f.clickCount=0;f.root=b;f.badge=e.badge;f.countNew=0;f.initialCount=e.count||0;f.userCount=0;f.pageCount=0;f.escHandler=null;f.bootload_module=e.bootload_module;f.bootload_args=e.bootload_args;f.bootload_eager_modules=e.bootload_eager_modules;f.bootload_conf=e.bootload_conf;f.bootloading=null;f.togglerInstance=c("Toggler").getInstance(b).setSticky(!1);f.businessID=e.businessID;f.loggerRef=e.loggerRef;d("JewelLogger").logJewelInitialize({jewelName:f.name,badgeInitialCount:f.initialCount,timestamp:l()});d("JewelBadgeCountRecorder").onCountUpdated("jewel/initial-count",{jewel:f.name,count:f.initialCount});f.bootload_conf&&f.bootload_conf.eagerLoadingOnInteraction?f.$JewelBase3():d("Run").onAfterLoad(function(){return f.$JewelBase4()});f.bootload_conf&&f.bootload_conf.eagerLoadingOnInteraction&&f.$JewelBase5();e.keepOpenForSnowlift&&f.togglerInstance.setPrePageTransitionCallback(f.$JewelBase6.bind(babelHelpers.assertThisInitialized(f)));k[f.name]=babelHelpers.assertThisInitialized(f);f.$JewelBase7();b=f.getFlyout();b||i(0,5194);var g=new(c("TabIsolation"))(b);c("killswitch")("JEWEL_TOGGLER_INSTANCE_FIXES")?c("Toggler").createInstance(b).setSticky(!1):c("Toggler").createInstance(f.root).setSticky(!1);f.$JewelBase8();c("Toggler").listen("show",f.root,function(a){d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.OPEN_JEWEL),f.$JewelBase9(),f.inform("user-open"),f.hasNew()&&f.markSeen(),f.reset(),c("Arbiter").inform("layer_shown",{type:"Jewel",name:f.name}),g.enable(),f.setupEvents(),f.$JewelBase10(),f.bootload_conf&&f.bootload_conf.eagerLoadingOnInteraction?f.$JewelBase11():c("promiseDone")(f.$JewelBase4().then(function(){return f.inform("opened")}))});c("Toggler").listen("hide",f.root,function(a,b){d("JewelLogger").logJewelCancel(),d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CLOSE_JEWEL),d("FunnelLogger").endFunnel(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME),f.hasNew()&&f.markSeen(),f.reset(),f.inform("closed"),c("Arbiter").inform("layer_hidden",{type:"Jewel"}),g.disable(),f.removeEvents(),f.$JewelBase8()});c("Arbiter").subscribe("jewel/count-updated",function(a,b){b.jewel==f.name&&f.update(b)});c("Arbiter").subscribe("jewel/hide",function(a,b){f.hide()});j.addListener("count-updated",function(a){a.jewel==f.name&&f.update(a)});return f}var f=e.prototype;f.getRoot=function(){return this.root};f.hide=function(){this.isOpen()&&c("Toggler").hide(this.root)};f.getFlyout=function(){this.$JewelBase1==null&&(this.$JewelBase1=c("DOM").find(this.root,".__tw"));return this.$JewelBase1};f.hasNew=function(){return d("CSS").hasClass(this.root,"hasNew")};f.isOpen=function(){return d("CSS").hasClass(this.root,"openToggler")};f.reset=function(){d("FunnelLogger").appendAction(d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("NotificationJewelFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CLEAR_BADGE_COUNT),d("CSS").removeClass(this.root,"hasNew")};f.setContent=function(a){var b=c("DOM").find(this.root,"ul.jewelItemList");c("DOM").setContent(b,c("HTML")(a))};f.update=function(a){a.animation&&this.badge.setAnimation&&this.badge.setAnimation(a.animation);this.countNew=a.count;typeof this.countNew==="number"&&this.countNew<0&&(this.countNew=0);this.badge.setLegacyContent(this.countNew);var b=isNaN(this.countNew)||this.countNew>0;d("CSS").conditionClass(this.root,"hasNew",b);this.updatedOnce=!0;this.inform("updated",a,"state")};f.setupEvents=function(){var a=this;this.escHandler=c("Event").listen(document.documentElement,"keydown",function(b){b.keyCode===c("Keys").ESC&&a.hide()})};f.removeEvents=function(){this.escHandler&&(this.escHandler.remove(),this.escHandler=null)};f.markSeen=function(){var a=this,b=function(){c("Arbiter").inform("jewel/count-updated",{jewel:a.name,count:0},"state"),j.emitRemote("count-updated",{jewel:a.name,count:0}),a.inform("marked-seen")};c("TimeSlice").guard(b,"JewelOpen markSeen",{propagationType:c("TimeSlice").PropagationType.ORPHAN})()};f.getButton=function(){this.$JewelBase2==null&&(this.$JewelBase2=c("DOM").find(this.root,"a.jewelButton"));return this.$JewelBase2};f.$JewelBase8=function(){var a=this.getButton();d("TooltipData").set(a,this.label);a.setAttribute("data-tooltip-delay","500")};f.$JewelBase10=function(){d("TooltipData").remove(this.getButton())};f.$JewelBase6=function(a,b){!this.$JewelBase12(b.from)&&!this.$JewelBase12(b.to)&&(this.togglerInstance&&this.togglerInstance.hide())};f.$JewelBase12=function(a){return a&&Object.prototype.hasOwnProperty.call(a.getQueryData(),"theater")};f.$JewelBase9=function(){var a=this;this.clickCount++;var b=this.getButton(),e=c("performanceNow")();this.clickCount===1&&(e=d("firstClickTimestamp").get(b));if(e){b=c("normalizedEventTimestamp")(e);b&&d("JewelLogger").logJewelClick({jewelName:this.name,timestamp:b,badgeCurrentCount:d("JewelBadgeCountRecorder").getCountAtTimestamp(this.name,b),badgeInitialCount:this.initialCount,clickCount:this.clickCount})}this.name==="requests"&&new(c("FriendingSurfaceVisitationTypedLogger"))().setSurface("jewel").setBadgeCount(this.countNew).log();this.name==="mercurymessages"&&c("Bootloader").loadModules(["PageInboxEntryPointsTypedLogger","PageInboxEntryPointEvent","PageInboxEntryPoint"],function(b,c,d){new b().setEvent(c.CLICK).setLocation(d.JEWEL_DROPDOWN).setBadgeNum(a.countNew).log()},"JewelBase")};f.$JewelBase4=function(){var a=this;if(!this.bootload_module)return b("Promise").resolve();this.bootloading||(this.bootloading=new(b("Promise"))(function(b,c){a.bootload_module.load().then(function(c){new c(a,a.bootload_args),b()})["catch"](c)}));return this.bootloading};f.$JewelBase3=function(){var a=this;this.bootload_eager_modules?this.bootload_eager_modules.loadModules(this):d("Run").onAfterLoad(function(){return a.$JewelBase4()})};f.$JewelBase5=function(){this.bootload_eager_modules&&this.bootload_eager_modules.mount(this)};f.$JewelBase11=function(){var a=this;this.bootload_eager_modules?this.bootload_eager_modules.load(this):c("promiseDone")(this.$JewelBase4().then(function(){return a.inform("opened")}))};f.$JewelBase7=function(){if(this.bootloading)return;var a=d("JewelCountSideLoader").getOverwritesForJewel(this);if(!a)return;this.updateCountAndArgs(a.args,a.count)};f.updateCountAndArgs=function(a,b){for(var d in a)a[d]&&(this.bootload_args[d]=a[d]);b&&c("Arbiter").inform("jewel/count-updated",{jewel:this.name,count:b},"state")};return e}(c("mixin")(c("ArbiterMixin")));g["default"]=a}),98);
-----
NotificationJewelFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="WWW_NOTIFICATION_FUNNEL";b={FETCH_NOTIFICATIONS:"fetch_notifications",OPEN_JEWEL:"open_jewel",CLOSE_JEWEL:"close_jewel",MOUSE_OVER_ON_JEWEL:"mouse_over_on_jewel",SCROLL_TO_FETCH:"scroll_to_fetch",FETCH_NEXT_SET:"fetch_next_set",CLEAR_BADGE_COUNT:"clear_badge_count"};f.FUNNEL_LOGGING_NAME=a;f.FUNNEL_LOGGING_EVENT=b}),66);
-----
AdsCanvasButtons.react",["cx","fbt","ix","AdsCanvasAdvancedRendering","AdsCanvasEditorFunnelLoggingConstants","AdsUEditorAdgroupCanvasInlineAdvanceBuilderCreateButton.react","AdsUEditorAdgroupCanvasInlineAdvanceBuilderLink.react","AdsUEditorAdgroupCanvasInlineAdvanceBuilderPreviewButton.react","FunnelLogger","Image.react","XUIButton.react","XUIButtonGroup.react","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
AdsCanvasEditorFunnelLogging",["AdsCanvasEditorFunnelLoggingConstants","CurrentUser","FunnelLogger","RichMediaEditorDataDispatcher","RichMediaEditorStore"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(){if(h)return;h=!0;d("FunnelLogger").startFunnel(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME);d("FunnelLogger").setFunnelTimeout(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TIMEOUT);c("CurrentUser").isEmployee()&&d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.IS_EMPLOYEE);d("RichMediaEditorDataDispatcher").getCanvasPageData(c("RichMediaEditorStore").getCanvasPageId(),null,d("FunnelLogger"))}function b(a){a&&a.map(function(a){d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,a)})}function e(a){d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,a)}function f(){if(!h)return;h=!1;d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.EDITOR_EXIT);d("FunnelLogger").endFunnel(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME);c("RichMediaEditorStore").setIsNotNewUser()}function i(){var a=new Set(),b=d("FunnelLogger").getFunnelInstance(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME);b=b?b.getTags():null;if(!b)return Array.from(a);for(b in b)a.add(b);return Array.from(a)}g.startFunnel=a;g.logGKExposures=b;g.addFunnelTag=e;g.endFunnel=f;g.parseAndMergeFunnelTags=i}),98);
-----
AdsCanvasEditorFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="WWW_CANVAS_EDITOR_FUNNEL";b={ADD_ELEMENT:"add_element",BACK_TO_MENU:"back_to_menu",CREATE_FAILURE:"create_failure",CREATE_POST:"create_post",CREATE_SUCCESS:"create_success",CHANGE_CANVAS_TITLE:"change_canvas_title",CHANGE_ELEMENT_TITLE:"change_element_title",DUPLICATE:"duplicate",DUPLICATE_FAILURE:"duplicate_failure",DUPLICATE_SUCCESS:"duplicate_success",GET_URL:"get_url",GETTING_STARTED_GUIDE:"getting_started_guide",INIT_DUPLICATE:"init_duplicate",INIT_SAVE:"init_save",INSTAGRAM_VALIDATION_ERROR:"instagram_validation_error",LOAD_FAILURE:"load_failure",LOAD_SUCCESS:"load_success",PHOTO_UPLOAD_ERROR:"editor.photo_upload_error",PHOTO_UPLOAD_SUCCESS:"editor.photo_upload_success",EDITOR_PHOTO_UPLOAD_TIMEOUT:"editor.photo_upload_timeout",PHOTO_LIBRARY_UPLOADER_OPEN:"editor.photo_library_uploader_open",PHOTO_LIBRARY_UPLOADER_IMAGE_UPLOAD:"editor.photo_library_uploader_image_upload",PHOTO_LIBRARY_UPLOADER_CANCEL:"editor.photo_library_uploader_cancel",PHOTO_MANUAL_UPLOADER_OPEN:"editor.photo_manual_uploader_open",PHOTO_MANUAL_UPLOADER_IMAGE_UPLOAD:"editor.photo_manual_uploader_image_upload",VIDEO_LIBRARY_UPLOADER_CANCEL:"editor.video_library_uploader_cancel",VIDEO_LIBRARY_UPLOADER_OPEN:"editor.video_library_uploader_open",VIDEO_LIBRARY_UPLOADER_VIDEO_CLICK:"editor.video_library_uploader_video_click",VIDEO_LIBRARY_UPLOADER_VIDEO_IMPORT:"editor.video_library_uploader_video_import",VIDEO_LIBRARY_UPLOADER_VIDEO_SELECT_EXISTING:"editor.video_library_uploader_video_select_existing",VIDEO_LIBRARY_UPLOADER_VIDEO_UPLOAD:"editor.video_library_uploader_video_upload",VIDEO_MANUAL_UPLOADER_OPEN:"editor.video_manual_uploader_open",VIDEO_MANUAL_UPLOADER_VIDEO_UPLOAD:"editor.video_manual_uploader_video_upload",PREVIEW_FAIL:"preview_fail",PREVIEW_SELF:"preview_self",PREVIEW_SHARE:"preview_share",PUBLISH:"publish_canvas",PUBLISH_FAILURE:"publish_failure",REMOVE_ELEMENT:"remove_element",SAVE:"save_canvas",SAVE_INCOMPLETE_ELEMENTS:"save_incomplete_elements",SAVE_FAILURE:"save_failure",SAVE_SUCCESS:"save_success",SWIPE_TO_OPEN_TOGGLED:"swipe_to_open_toggled",SWITCH_ELEMENT:"switch_element",TEMPLATE_PREVIEW_LAYOUT:"template_preview_layout",TEMPLATE_SELECT_LAYOUT:"template_select_layout",TEMPLATE_DOWNLOAD_LAYOUT:"template_download_layout",TOOLBAR_PUBLISH_CLICKED:"toolbar_publish_clicked",UPLOAD_VIDEO:"upload_video",VALIDATION_ERROR:"validation_error",WELCOMESCREEN_BLANKCANVAS:"welcome_screen_blankcanvas",WELCOMESCREEN_EXAMPLES:"welcome_screen_examples",WELCOMESCREEN_TEMPLATE:"welcome_screen_template",WELCOMESCREEN_TIPS:"welcome_screen_tips",WELCOMESCREEN_TOUR:"welcome_screen_tour",WEBPARSING_SET_URL:"webparsing.set_url",WEBPARSING_LOADING_MEDIA:"webparsing.loading_media",WEBPARSING_LOADING_SUCCESS:"webparsing.loading_success",WEBPARSING_LOADING_FAIL:"webparsing.loading_fail",WEBPARSING_TOGGLE_PANNEL:"webparsing.toggle_pannel",WEBPARSING_IMAGE_SELECT:"webparsing.image_select",WEBPARSING_CONTINUE_BUILDER:"webparsing.continue_to_builder"};c=999999;d={EDITOR_EXIT:"editor_exit",FIRST_TIME_USER:"first_time_user",IS_EMPLOYEE:"is_employee",LOAD_EXISTING_DOC_WITH_VALIDATION_ERRORS:"load_existing_doc_with_validation_errors",PAGE_HAS_NEVER_CREATED:"page_has_never_created",PAGE_HAS_NEVER_PUBLISHED:"page_has_never_published",WELCOMESCREEN_SHOWN:"welcome_screen_shown"};f.FUNNEL_LOGGING_NAME=a;f.FUNNEL_LOGGING_EVENT=b;f.FUNNEL_LOGGING_TIMEOUT=c;f.FUNNEL_LOGGING_TAGS=d}),66);
-----
MediaEffectEditorFunnelLogger",["invariant","FunnelLogger","MediaEffectFunnelLoggingConstants","MediaEffectMetadataStore","MediaEffectMetadataViewStore","MediaEffectReactFrameEditorImageAssetRecord","mergeDeep"],(function(a,b,c,d,e,f,g){"use strict";var h=(a=b("MediaEffectFunnelLoggingConstants")).CREATION_FUNNEL_LOGGING_NAME,i=a.FUNNEL_LOGGING_EVENT,j=a.FUNNEL_LOGGING_PAYLOAD,k=a.FUNNEL_LOGGING_TAGS,l={_funnelStarted:!1,_bootstrapData:void 0,startFunnel:function(){b("FunnelLogger").startFunnel(h),l._funnelStarted=!0},startFunnelWithData:function(a){l._bootstrapData=a,l._funnelStarted?l._appendAction(i.DIALOG_LOADED):l.startFunnel()},endFunnel:function(){l._funnelStarted=!1,b("FunnelLogger").endFunnel(h)},logAddDynamicText:function(a){var b;l._appendAction(i.ADD_DYNAMIC_TEXT,(b={},b[j.TEXT]=a,b))},logAddText:function(){l._appendAction(i.ADD_TEXT,{})},logCancel:function(){l._appendAction(i.CANCEL)},logChangeCategory:function(){l._appendActionIfNew(i.CHANGE_CATEGORY)},logChangeEditorBackgroundColor:function(a){var b;l._appendAction(i.CHANGE_EDITOR_BACKGROUND_COLOR,(b={},b[j.COLOR]=a,b))},logChangeEditorBackgroundImage:function(a){var b,c=a&&a.match(/.*?/([^/]*.jpg)/);l._appendAction(i.CHANGE_EDITOR_BACKGROUND_IMAGE,(b={},b[j.IMAGE]=a?c?c[1]:"no image name found":"no image",b))},logChangeEndTime:function(){l._appendActionIfNew(i.CHANGE_END_TIME)},logChangeLocation:function(){l._appendActionIfNew(i.CHANGE_LOCATION)},logChangeName:function(){l._appendActionIfNew(i.CHANGE_NAME)},logPreviewAutoBackgroundRemoval:function(a){var b;l._appendAction(i.BACKGROUND_AUTO_REMOVAL_PREVIEW,(b={},b[j.ASSET_ID]=a,b))},logApplyAutoBackgroundRemoval:function(a){var b;l._appendAction(i.BACKGROUND_AUTO_REMOVAL_APPLIED,(b={},b[j.ASSET_ID]=a,b))},logAutoSnapping:function(a){var b;l._appendAction(i.ASSET_AUTO_SNAPPING,(b={},b[j.ASSET_AUTO_SNAPPING_TYPE]=a,b))},logChangeOwner:function(){l._appendActionIfNew(i.CHANGE_OWNER)},logChangeStartTime:function(){l._appendActionIfNew(i.CHANGE_START_TIME)},logChangeTag:function(){l._appendActionIfNew(i.CHANGE_TAG)},logChangeTextAlignment:function(a){var b;l._appendAction(i.CHANGE_TEXT_ALIGNMENT,(b={},b[j.ALIGNMENT]=a,b))},logChangeTextColor:function(a){var b;l._appendAction(i.CHANGE_TEXT_COLOR,(b={},b[j.COLOR]=a,b))},logChangeTextFont:function(a){var b;l._appendAction(i.CHANGE_TEXT_FONT,(b={},b[j.FONT]=a,b))},logChangeTextContent:function(a){var b;l._appendAction(i.CHANGE_TEXT_CONTENT,(b={},b[j.TEXT]=a,b))},logDeleteAsset:function(){l._appendAction(i.DELETE_ASSET)},logDuplicateAsset:function(){l._appendAction(i.DUPLICATE_ASSET)},logStep:function(a){var b;l._appendAction(i.UPDATE_STEP,(b={},b[j.STEP]=a,b))},logExplicitDropoff:function(a){var b;l._appendAction(i.EXPLICIT_DROPOFF,(b={},b[j.STEP]=a,b))},logSaveAsDraft:function(a,c,d){var e;a=a?k.SUCCESS:k.FAILURE;d=d?d.assets.toArray().map(function(a){var c=a instanceof b("MediaEffectReactFrameEditorImageAssetRecord");return{asset_type:c?"image":"text",is_processed:c?a.processApplied:!1,asset_id:c?a.stickerFBID:null,snappedType:c?a.autoSnappedType:null}}):[];l._appendAction(i.SAVE_AS_DRAFT,(e={},e[j.RESULT]=a,e[j.EFFECT_ID]=c,e[j.ASSETS]=d,e))},logPreviewOnCamera:function(){l._appendAction(i.PREVIEW_ON_CAMERA)},logSetScaleWithHeight:function(a){var b;l._appendAction(i.SET_SCALE_WITH_HEIGHT,(b={},b[j.SCALE_WITH_HEIGHT]=a,b))},logSetScaleWithWidth:function(a){var b;l._appendAction(i.SET_SCALE_WITH_WIDTH,(b={},b[j.SCALE_WITH_WIDTH]=a,b))},logSubmit:function(a,c,d){var e;a=a?k.SUCCESS:k.FAILURE;d=d?d.assets.toArray().map(function(a){var c=a instanceof b("MediaEffectReactFrameEditorImageAssetRecord");return{asset_type:c?"image":"text",is_processed:c?a.processApplied:!1,asset_id:c?a.stickerFBID:null,snappedType:c?a.autoSnappedType:null}}):[];l._appendAction(i.SUBMIT,(e={},e[j.RESULT]=a,e[j.EFFECT_ID]=c,e[j.ASSETS]=d,e))},logUploadFile:function(){l._appendAction(i.UPLOAD_FILE)},logUploadFinished:function(a){var b;a=a?k.SUCCESS:k.FAILURE;l._appendAction(i.UPLOAD_FINISHED,(b={},b[j.RESULT]=a,b))},logShownInlineNUX:function(){l._appendAction(i.SHOWN_INLINE_NUX)},logEnterCreationFlowFromInlineNUX:function(){l._appendAction(i.ENTER_CREATION_FLOW_FROM_INLINE_NUX)},logAssetInPlaceWarning:function(a){var b;l._appendAction(i.ASSET_INPLACE_WARNING,(b={},b[j.ASSET_INPLACE_WARNING_TYPE]=a,b))},logGalleryView:function(){l._appendAction(i.GALLERY_VIEW)},logGalleryMediaClick:function(){l._appendAction(i.GALLERY_MEDIA_CLICK)},_appendActionIfNew:function(a,c){if(!l._funnelStarted)return;c=b("mergeDeep")(c,l._getStandardPayload());b("FunnelLogger").appendActionWithPayloadIfNew(h,a,c)},_appendAction:function(a,c){if(!l._funnelStarted)return;c=b("mergeDeep")(c,l._getStandardPayload());b("FunnelLogger").appendActionWithPayload(h,a,c)},_getStandardPayload:function(){var a,c=b("MediaEffectMetadataStore").getState(),d=l._bootstrapData&&l._bootstrapData.metadataJSData?l._bootstrapData.metadataJSData.id:void 0;c=c.selectedOwnerID;a=(a={},a[j.NEW_EFFECT]=!d,a);if(d){var e;a=babelHelpers["extends"]({},a,(e={},e[j.EFFECT_ID]=d,e))}if(c){d=b("MediaEffectMetadataViewStore").getOwner(c);d||g(0,2281);a=babelHelpers["extends"]({},a,(e={},e[j.OWNER_FIRST_PARTY]=d.isFirstParty,e[j.OWNER_ID]=c,e[j.OWNER_TYPE]=d.type,e))}return a}};e.exports=l}),null);
-----
MediaEffectFunnelLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="CREATIVE_STUDIO_CREATION_FUNNEL";b={ADD_DYNAMIC_TEXT:"add_dynamic_text",ADD_TEXT:"add_text",ASSET_INPLACE_WARNING:"asset_inplace_warning",CANCEL:"cancel",CHANGE_CATEGORY:"change_category",CHANGE_EDITOR_BACKGROUND_COLOR:"change_editor_background_color",CHANGE_EDITOR_BACKGROUND_IMAGE:"change_editor_background_image",CHANGE_END_TIME:"change_end_time",CHANGE_LOCATION:"change_location",CHANGE_NAME:"change_name",CHANGE_OWNER:"change_owner",CHANGE_START_TIME:"change_start_time",CHANGE_TAG:"change_tag",CHANGE_TEXT_ALIGNMENT:"change_text_alignment",CHANGE_TEXT_COLOR:"change_text_color",CHANGE_TEXT_FONT:"change_text_font",CHANGE_TEXT_CONTENT:"change_text_content",DELETE_ASSET:"delete_asset",DUPLICATE_ASSET:"duplicate_asset",ENTER_CREATION_FLOW_FROM_INLINE_NUX:"enter_creation_flow_from_inline_nux",EXPLICIT_DROPOFF:"explicit_dropoff",GALLERY_VIEW:"gallery_view",GALLERY_MEDIA_CLICK:"gallery_media_click",PREVIEW_ON_CAMERA:"preview_on_camera",SAVE_AS_DRAFT:"save_as_draft",SET_SCALE_WITH_WIDTH:"set_scale_with_width",SET_SCALE_WITH_HEIGHT:"set_scale_with_height",SHOW_PREVIEW:"show_preview",SHOWN_INLINE_NUX:"shown_inline_nux",SUBMIT:"submit",UPDATE_STEP:"update_step",UPLOAD_FILE:"upload_file",UPLOAD_FINISHED:"upload_finished",DIALOG_LOADED:"dialog_loaded",BACKGROUND_AUTO_REMOVAL_PREVIEW:"background_auto_removal_preview",BACKGROUND_AUTO_REMOVAL_APPLIED:"background_auto_removal_applied",ASSET_AUTO_SNAPPING:"asset_auto_snapping"};c=999999;d={BROWSER_NAME:"browser_name",CREATION_FLOW_TYPE:"creation_flow_type",EFFECT_ID:"effect_id",FAILURE:"failure",FRAME_EDITOR_SHOWN:"frame_editor_shown",NEW_EFFECT:"new_effect",REF:"ref",SOURCE_ID:"source_id",SUCCESS:"success",DIALOG_TYPE:"dialog_type",IS_FIRST_TIME_SAVE_OR_SUBMIT:"is_first_time_save_or_submit"};e={ALIGNMENT:"alignment",ASSET_INPLACE_WARNING_TYPE:"asset_inplace_warning_type",COLOR:"color",IMAGE:"image",EFFECT_ID:"effect_id",FONT:"font",NEW_EFFECT:"new_effect",OWNER_FIRST_PARTY:"owner_first_party",OWNER_ID:"owner_id",OWNER_TYPE:"owner_type",RESULT:"result",SCALE_WITH_HEIGHT:"scale_with_height",SCALE_WITH_WIDTH:"scale_with_width",TEXT:"text",STEP:"step",ASSET_ID:"asset_id",ASSETS:"assets",ASSET_AUTO_SNAPPING_TYPE:"asset_auto_snapping_type"};f.CREATION_FUNNEL_LOGGING_NAME=a;f.FUNNEL_LOGGING_EVENT=b;f.FUNNEL_LOGGING_TIMEOUT=c;f.FUNNEL_LOGGING_TAGS=d;f.FUNNEL_LOGGING_PAYLOAD=e}),66);
-----
ArchivedStoryCard.react",["cx","fbt","ix","BUIButton.react","Event","FBStoriesArchiveLoggingHelper","FBStoriesQPLUtils","FBStoriesViewer2","Image.react","ShimButton.react","StoriesArchiveCardStoreForBlue","StoriesLoggingConstants","Timestamp.react","XReactSproutComposerShareMediaFromArchiveDialogController","formatDate","qpl","react","uuid"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
-----
RichMediaEditorLoggerStore",["AdsCanvasCollectionPreviewToFacebookDataActionFlux","AdsCanvasCollectionPreviewToInstagramDataActionFlux","AdsCanvasConstants","AdsCanvasDocumentAddNewElementsDataActionFlux","AdsCanvasDocumentCreateErrorDataActionFlux","AdsCanvasDocumentCreateSuccessDataActionFlux","AdsCanvasDocumentDuplicateErrorDataActionFlux","AdsCanvasDocumentDuplicateSuccessDataActionFlux","AdsCanvasDocumentInitDuplicateDataActionFlux","AdsCanvasDocumentInitPublishDataActionFlux","AdsCanvasDocumentInitSaveDataActionFlux","AdsCanvasDocumentLoadErrorDataActionFlux","AdsCanvasDocumentLoadSuccessDataActionFlux","AdsCanvasDocumentReorderElementsDataActionFlux","AdsCanvasDocumentSaveErrorDataActionFlux","AdsCanvasDocumentSaveSuccessDataActionFlux","AdsCanvasDocumentSetTitleDataActionFlux","AdsCanvasEditorFunnelLogging","AdsCanvasEditorFunnelLoggingConstants","AdsCanvasElementDeleteDataActionFlux","AdsCanvasInitDataActionFlux","AdsCanvasInlineBuilderBuilderNuxTourCompleteDataActionFlux","AdsCanvasInlineBuilderBuilderNuxTourXoutDataActionFlux","AdsCanvasInlineBuilderPreviewCanvasDataActionFlux","AdsCanvasInlineBuilderShowInlineModalDataActionFlux","AdsCanvasPhotoUploaderImageUploadErrorDataActionFlux","AdsCanvasPhotoUploaderImageUploadSuccessDataActionFlux","AdsCanvasPhotoUploaderLibraryCancelDataActionFlux","AdsCanvasPhotoUploaderLibraryImageUploadDataActionFlux","AdsCanvasPhotoUploaderLibraryOpenDataActionFlux","AdsCanvasPhotoUploaderManualImageUploadDataActionFlux","AdsCanvasPhotoUploaderManualOpenDataActionFlux","AdsCanvasVideoUploaderLibraryCancelDataActionFlux","AdsCanvasVideoUploaderLibraryOpenDataActionFlux","AdsCanvasVideoUploaderLibraryVideoClickDataActionFlux","AdsCanvasVideoUploaderLibraryVideoImportDataActionFlux","AdsCanvasVideoUploaderLibraryVideoSelectExistingDataActionFlux","AdsCanvasVideoUploaderLibraryVideoUploadDataActionFlux","AdsCanvasVideoUploaderManualOpenDataActionFlux","AdsCanvasVideoUploaderManualVideoUploadDataActionFlux","AdsDataAtom","AdsRichMediaEditorBackToMenuDataActionFlux","AdsRichMediaEditorLoadPageDataErrorDataActionFlux","AdsRichMediaEditorLoadPageDataSuccessDataActionFlux","AdsRichMediaEditorSetDocumentUrlDialogShownDataActionFlux","AdsRichMediaEditorSetInstagramValidationFailedDataActionFlux","AdsRichMediaEditorSetPreviewFailedDataActionFlux","AdsRichMediaEditorSetSendingPreviewDataActionFlux","AdsRichMediaEditorSetSwipeToOpenEnabledDataActionFlux","AdsRichMediaEditorSetValidationFailedDataActionFlux","AdsRichMediaEditorToolbarPublishClickDataActionFlux","AdsSelectorUtils","AdsUEditorAdgroupSetCanvasDocumentDataActionFlux","CanvasCreationWaterfallTypedLogger","FluxStore","FunnelLogger","RichMediaLoggingStoreUtils","SimpleNUXMessage","adsCanvasCurrentDocumentSelector"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){b=a.call(this,c("AdsDataAtom"))||this;b.$RichMediaEditorLoggerStore1=!d("SimpleNUXMessage").hasUserSeenMessage_LEGACY("1733450480268575");return b}var e=b.prototype;e.__onDispatch=function(a){a=a.action;c("AdsDataAtom").waitFor(d("AdsSelectorUtils").getStoreDispatchTokens([c("adsCanvasCurrentDocumentSelector")]));switch(a.type){case d("AdsCanvasDocumentReorderElementsDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SWITCH_ELEMENT);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.reorder_component").setReorderComponentDistance(Math.abs(a.source-a.target)));break;case d("AdsCanvasElementDeleteDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.REMOVE_ELEMENT);break;case d("AdsCanvasInitDataActionFlux").actionType:this.$RichMediaEditorLoggerStore1&&d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.FIRST_TIME_USER);if(a.canvasID){var b=a.canvasID;d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,"load_existing");d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,b);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setCanvasLoadType("load_existing").setEventName("load"))}else d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,"load_new"),d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.WELCOMESCREEN_SHOWN),d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setCanvasLoadType("load_new").setEventName("load"));break;case d("AdsCanvasDocumentInitDuplicateDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.INIT_DUPLICATE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_duplicate").setErrorCode(0));break;case d("AdsCanvasDocumentInitPublishDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.TOOLBAR_PUBLISH_CLICKED);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_publish").setErrorCode(0));break;case d("AdsCanvasDocumentInitSaveDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.INIT_SAVE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.init_save").setErrorCode(0));break;case d("AdsCanvasDocumentCreateSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CREATE_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.create_success").setErrorCode(0));break;case d("AdsCanvasDocumentDuplicateSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.DUPLICATE_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.duplicate_success").setErrorCode(0).setDuplicateParentCanvasID(a.parentCanvasID));break;case d("AdsCanvasDocumentLoadSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.LOAD_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.load_success").setErrorCode(0));break;case d("AdsCanvasDocumentSaveSuccessDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SAVE_SUCCESS);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.save_success").setErrorCode(0),a.canvasID);break;case d("AdsCanvasDocumentCreateErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CREATE_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.create_failure").setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsCanvasDocumentDuplicateErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.DUPLICATE_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.duplicate_failure").setCanvasID(a.canvasID).setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsCanvasDocumentLoadErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.LOAD_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.load_failure").setCanvasID(a.canvasID).setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsCanvasDocumentSaveErrorDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SAVE_FAILURE);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.save_failure").setErrorCode(a.error?a.error.code:0).setErrorMessage(a.error?a.error.message:"").setFbtraceID(a.error?a.error.fbtrace_id:""));break;case d("AdsRichMediaEditorSetInstagramValidationFailedDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.INSTAGRAM_VALIDATION_ERROR);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.instagram_validation_error").setIncompleteElements(a.elementValidation.errorMsg.toString()));break;case d("AdsRichMediaEditorSetValidationFailedDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VALIDATION_ERROR);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.validation_error").setIncompleteElements(a.validation.errorMsg.toString()));break;case d("AdsCanvasDocumentSetTitleDataActionFlux").actionType:d("FunnelLogger").appendActionIfNew(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.CHANGE_CANVAS_TITLE);break;case d("AdsRichMediaEditorLoadPageDataSuccessDataActionFlux").actionType:a.logger!=null&&a.logger.setPageCanvasCount(typeof a.pageCanvasCount==="number"||typeof a.pageCanvasCount==="string"?a.pageCanvasCount:null).setPagePublishedCanvasCount(typeof a.pagePublishedCanvasCount==="number"||typeof a.pagePublishedCanvasCount==="string"?a.pagePublishedCanvasCount:null).log();a.funnelLogger!=null&&(typeof a.pageCanvasCount==="number"&&a.pageCanvasCount<=d("AdsCanvasConstants").DEFAULT_PAGE_CANVAS_COUNT&&(a.funnelLogger instanceof c("CanvasCreationWaterfallTypedLogger")||d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.PAGE_HAS_NEVER_CREATED)),typeof a.pagePublishedCanvasCount==="number"&&a.pagePublishedCanvasCount<=d("AdsCanvasConstants").DEFAULT_PAGE_PUBLISHED_CANVAS_COUNT&&(a.funnelLogger instanceof c("CanvasCreationWaterfallTypedLogger")||d("FunnelLogger").addFunnelTag(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_TAGS.PAGE_HAS_NEVER_PUBLISHED)));this.__emitChange();break;case d("AdsRichMediaEditorLoadPageDataErrorDataActionFlux").actionType:a.logger!=null&&a.logger.log();this.__emitChange();break;case d("AdsCanvasDocumentAddNewElementsDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.ADD_ELEMENT);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventDetails(JSON.stringify(a.elements.toJSON())).setEventName("editor.add_element"));break;case d("AdsRichMediaEditorBackToMenuDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.back_to_menu"));break;case d("AdsRichMediaEditorSetSwipeToOpenEnabledDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.SWIPE_TO_OPEN_TOGGLED);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventDetails(String(a.value)).setEventName("editor.swipe_to_open_toggled"));break;case d("AdsRichMediaEditorToolbarPublishClickDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.TOOLBAR_PUBLISH_CLICKED);d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.toolbar_publish_clicked").setIncompleteElements(a.elementValidation&&!a.elementValidation.isValid?a.elementValidation.errorMsg.toString():null));break;case d("AdsRichMediaEditorSetDocumentUrlDialogShownDataActionFlux").actionType:a.dialogShown&&d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.GET_URL);break;case d("AdsRichMediaEditorSetSendingPreviewDataActionFlux").actionType:a.sendingPreview&&d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_SELF);break;case d("AdsRichMediaEditorSetPreviewFailedDataActionFlux").actionType:d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_FAIL);break;case d("AdsCanvasInlineBuilderBuilderNuxTourCompleteDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("canvas_inline_builder_nux_tour_complete").setEventDetails(String(a.templateID)).setNuxTourStep(a.nuxStep));break;case d("AdsCanvasInlineBuilderBuilderNuxTourXoutDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("canvas_inline_builder_nux_tour_xout").setEventDetails(String(a.templateID)).setNuxTourStep(a.nuxStep));break;case d("AdsCanvasInlineBuilderShowInlineModalDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("exit_inline_modal");this.$RichMediaEditorLoggerStore3();break;case d("AdsCanvasInlineBuilderPreviewCanvasDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.preview_click");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_SELF);break;case d("AdsCanvasCollectionPreviewToFacebookDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.preview_success_to_fb");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_SELF);break;case d("AdsCanvasCollectionPreviewToInstagramDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.preview_success_to_ig");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PREVIEW_SELF);break;case d("AdsUEditorAdgroupSetCanvasDocumentDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("save_from_inline_builder");this.$RichMediaEditorLoggerStore3();break;case d("AdsCanvasPhotoUploaderImageUploadErrorDataActionFlux").actionType:d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName("editor.photo_upload_error").setErrorCode(a.response?a.response.error:0).setErrorMessage(""));this.$RichMediaEditorLoggerStore2("editor.photo_upload_error");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_UPLOAD_ERROR);break;case d("AdsCanvasPhotoUploaderImageUploadSuccessDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.photo_upload_success");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_UPLOAD_SUCCESS);break;case d("AdsCanvasPhotoUploaderLibraryCancelDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.photo_library_uploader_cancel");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_LIBRARY_UPLOADER_CANCEL);break;case d("AdsCanvasPhotoUploaderLibraryImageUploadDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.photo_library_uploader_image_upload");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_LIBRARY_UPLOADER_IMAGE_UPLOAD);break;case d("AdsCanvasPhotoUploaderLibraryOpenDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.photo_library_uploader_open");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_LIBRARY_UPLOADER_OPEN);break;case d("AdsCanvasPhotoUploaderManualImageUploadDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.photo_manual_uploader_image_upload");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_MANUAL_UPLOADER_IMAGE_UPLOAD);break;case d("AdsCanvasPhotoUploaderManualOpenDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.photo_manual_uploader_open");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.PHOTO_MANUAL_UPLOADER_OPEN);break;case d("AdsCanvasVideoUploaderLibraryOpenDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_library_uploader_open");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_OPEN);break;case d("AdsCanvasVideoUploaderLibraryVideoClickDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_library_uploader_video_click");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_CLICK);break;case d("AdsCanvasVideoUploaderLibraryVideoImportDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_library_uploader_video_import");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_IMPORT);break;case d("AdsCanvasVideoUploaderLibraryVideoUploadDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_library_uploader_video_upload");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_UPLOAD);break;case d("AdsCanvasVideoUploaderLibraryVideoSelectExistingDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_library_uploader_video_select_existing");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_VIDEO_SELECT_EXISTING);break;case d("AdsCanvasVideoUploaderLibraryCancelDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_library_uploader_cancel");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_LIBRARY_UPLOADER_CANCEL);break;case d("AdsCanvasVideoUploaderManualOpenDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_manual_uploader_open");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_MANUAL_UPLOADER_OPEN);break;case d("AdsCanvasVideoUploaderManualVideoUploadDataActionFlux").actionType:this.$RichMediaEditorLoggerStore2("editor.video_manual_uploader_video_upload");this.$RichMediaEditorLoggerStore4(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_EVENT.VIDEO_MANUAL_UPLOADER_VIDEO_UPLOAD);break}};e.$RichMediaEditorLoggerStore2=function(a,b){d("RichMediaLoggingStoreUtils").logRichMediaCreationEventWithLogger(new(c("CanvasCreationWaterfallTypedLogger"))().setEventName(a).setEventDetails(JSON.stringify(b)))};e.$RichMediaEditorLoggerStore4=function(a){d("FunnelLogger").appendAction(d("AdsCanvasEditorFunnelLoggingConstants").FUNNEL_LOGGING_NAME,a)};e.$RichMediaEditorLoggerStore3=function(){d("AdsCanvasEditorFunnelLogging").endFunnel()};return b}(c("FluxStore"));a.__moduleID=f.id;b=new a(c("AdsDataAtom"));g["default"]=b}),98);
-----
AdsCanvasComposerDialog.react",["cx","fbt","AdsCanvasAdUtils","AdsCanvasBuilderContainer.react","AdsCanvasEditorFunnelLoggingConstants","FunnelLogger","LayerFadeOnHide","RichMediaCreatePostUtil","RichMediaEditorActions","RichMediaEditorConstants","XUIDialog.react","XUIDialogTitle.react","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
AdsCanvasUnifiedBuilderElementTitleContainer.react",["AdsCanvasEditorFunnelLoggingConstants","AdsCanvasElementActions","AdsCanvasUnifiedBuilderElementTitle.react","AdsFluxContainer","FunnelLogger","GeoSpinner.react","adsCanvasUnifiedBuilderElementTitleSelector","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
RichMediaMobilePreviewDialog.react",["cx","fbt","AdsCanvasEditorFunnelLoggingConstants","AsyncRequest","CanvasCreationWaterfallTypedLogger","FunnelLogger","LayerFadeOnHide","LayerHideOnEscape","RichMediaEditorActions","WebAsyncSearchSource","XCanvasMobilePreviewPageRoleTypeaheadController","XMobileCanvasAdPreviewController","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","XUITokenizer.react","emptyFunction","prop-types","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h
AdsCanvasBuilderSaveButtonContainer.react",["AdsApplicationUtils","AdsCanvasBuilderSaveButton.react","AdsCanvasBuilderUtils","AdsCanvasDocumentActions","AdsCanvasEditorFunnelLoggingConstants","AdsFluxContainer","FunnelLogger","RichMediaEditorActions","RichMediaElementUtil","adsCanvasBuilderSaveButtonSelector","emptyFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g
PrereqsLoggingConstants",["$InternalEnum"],(function(a,b,c,d,e,f){"use strict";a=b("$InternalEnum").Mirrored(["CAPI","CAPI_FULL","CAPI_MANUAL","CAPI_PARTNER","MULTIPLE_INDICES_TYPEAHEAD","SHOPS","OFFSITE_SHOP","PAYOUTS","SYD_BADGE","SYD_BADGE_POPOVER","SYD_WIDGET","SYD_WIDGET_FINISHED","SYD_WIDGET_GET_STARTED","SYD_WIDGET_GET_STARTED_BEST_PIXEL","SYD_WIDGET_IN_PROGRESS","SYD_WIDGET_PARTIALLY_FINISHED","SHIPPING_AND_RETURNS","IPM_ACCOUNT_OVERVIEW","IPM_ACCOUNT_OVERVIEW_POPOVER","IPM_CAPI_INLINE","IPM_CAPI_INLINE_POPOVER","SAVE_FOR_LATER_ICON","SYD_WIDGET_CAPI_MARKETING_EXPERT_CARD"]);c=b("$InternalEnum").Mirrored(["GET_STARTED","FINISH_SETUP","IPM_CAPI_INLINE_OPEN_FLOW","IPM_GO_TO_ACCOUNT_OVERVIEW","MULTIPLE_INDEX_SELECTION","SAVE_FOR_LATER","SETUP_NEXT_INDEX_CTA","SUCCESS_STORY_FAIR_HARBOR","SUCCESS_STORY_SEE_MORE","UNSAVE_FOR_LATER","SYD_WIDGET_CAPI_MARKETING_EXPERT_REQUEST_CALL"]);f.PrerequisitesLocation=a;f.PrerequisitesClickEvent=c}),66);
-----
BusinessSetupsCapiPlugin",["ix","BsuCapiUtils","BusinessSetupsCapiUtils","CAPIPrereqsTypes.flow","CAPISetupGetStartedDisplayData","GeoText.react","Image.react","PrereqsLoggingConstants","SYDPrereqsCAPIContainers.react","SYDPrereqsWidgetCAPITextContent","SYDPrereqsWidgetTextContent","XAdsEventsManagerController","nullthrows","react","useCAPIPrereqsSteps","useCapiPrereqsEntries.react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function a(a){return a.current_step_id!==d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.DISMISSED}function b(a){return(a=a.pixel_id)!=null?a:""}function e(a){var b=c("XAdsEventsManagerController").getURIBuilder().setFBID("data_source_id",c("nullthrows")(a.pixel_id,"SYDPrereqsWidgetCAPIContent: pixel id should not be null when generating Events Manager URI")).setString("data_source_type","PIXEL").getURI();return{linkText:d("SYDPrereqsWidgetCAPITextContent").getFinishedStateLink(),linkURI:b,text:d("SYDPrereqsWidgetCAPITextContent").finishedStateText(a),title:d("SYDPrereqsWidgetCAPITextContent").finishedStateTitle}}function j(a){a=a.integration_flow==="PARTNER";return{description:a?d("SYDPrereqsWidgetCAPITextContent").setupCAPIPartnerDescriptionText:d("SYDPrereqsWidgetCAPITextContent").capiPartiallyFinishedDescription,headerText:d("SYDPrereqsWidgetCAPITextContent").capiPartiallyFinishedHeader,learnMoreLink:i.jsx(d("CAPISetupGetStartedDisplayData").LearnMoreLink,{url:a?d("SYDPrereqsWidgetTextContent").PARTNER_LEARN_MORE_URL:d("SYDPrereqsWidgetTextContent").FULL_FLOW_LEARN_MORE_URL}),loggingSourceName:a?d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_FULL}}function k(){return i.jsx(c("Image.react"),{src:h("1259992")})}k.displayName=k.name+" [from "+f.id+"]";function l(a){return{selectorDisplayData:{getIndexIDFbtWithLabel:d("SYDPrereqsWidgetCAPITextContent").getCapiPixelIDFbtWithLabel,getSelectorDescription:d("SYDPrereqsWidgetCAPITextContent").getCapiPixelSelectorDescription,placeholderText:d("SYDPrereqsWidgetCAPITextContent").capiSelectPixelPlaceholderText,selectorLabel:d("SYDPrereqsWidgetCAPITextContent").capiPixelSelectorLabel},selectedIndexDisplayData:{selectedIndexImage:k,selectedIndexLabel:d("SYDPrereqsWidgetCAPITextContent").capiSelectedPixelLabel,selectedIndexName:a.pixel_name}}}function m(a,b,c){b=[d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_OVERVIEW,d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_REVIEW_SETUP,d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_SEE_INSTRUCTIONS,d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_SELECT_EVENTS,d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_SELECT_EVENT_DETAILS,d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_SELECT_PIXEL];b=b.includes(a.current_step_id);var e=c.find(function(a){return a.stepID===d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.CHOOSE_A_PARTNER}),f=c.find(function(a){return a.stepID===d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.MANUAL_OVERVIEW});return b?[{onClick:function(){return e==null?void 0:e.onClick(a)},label:d("SYDPrereqsWidgetCAPITextContent").finishAsPartnerText,confirmModalData:{header:d("SYDPrereqsWidgetCAPITextContent").finishAsPartnerModalHeader,paragraph:d("SYDPrereqsWidgetCAPITextContent").finishAsPartnerModalText}}]:[{onClick:function(){return f==null?void 0:f.onClick(a)},label:d("SYDPrereqsWidgetCAPITextContent").finishAsManualText,confirmModalData:{header:d("SYDPrereqsWidgetCAPITextContent").finishAsManualModalHeader,paragraph:d("SYDPrereqsWidgetCAPITextContent").finishAsManualModalText}}]}function n(a,b,c){b(d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.INITIAL,a.pixel_id),c!=null&&c.forEach(function(c){c.indexID!==a.pixel_id&&b(d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.INITIAL,c.indexID)}),d("BusinessSetupsCapiUtils").inFinalState(a,c==null?void 0:c.length)&&window.location.reload()}function o(a,b){a=a.integration_flow==="PARTNER";b=i.jsxs(c("GeoText.react"),{children:[d("SYDPrereqsWidgetCAPITextContent").capiToCompleteText," ",d("SYDPrereqsWidgetCAPITextContent").capiEligibleAndFinishedPixelsText(b)]});return{header:d("SYDPrereqsWidgetCAPITextContent").capiToCompleteHeader,paragraphComponent:b,loggingSourceName:a?d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_FULL}}f={type:"businessSetups",key:"capi",dataFetchingHook:c("useCapiPrereqsEntries.react"),isEntryEligible:a,isImmutableStep:function(a){return!1},dismissData:{modalHeader:d("SYDPrereqsWidgetCAPITextContent").dismissHeaderText,modalParagraph:d("SYDPrereqsWidgetCAPITextContent").dismissContentText,modalError:d("SYDPrereqsWidgetCAPITextContent").dismissErrorText},setupStepsHook:c("useCAPIPrereqsSteps"),setupContainer:function(){return i.jsx(c("SYDPrereqsCAPIContainers.react"),{})},filterStepsListByEntry:d("BsuCapiUtils").filterCAPIStepsListByEntry,inFinalState:d("BusinessSetupsCapiUtils").inFinalState,inInitialState:d("BusinessSetupsCapiUtils").inInitialState,inPartiallyFinishedState:d("BusinessSetupsCapiUtils").inPartiallyFinishedState,getEntryID:b,getStartingDisplayData:d("CAPISetupGetStartedDisplayData").getStartingDisplayData,getFinishedDisplayData:e,getInProgressDisplayData:o,getPartiallyFinishedDisplayData:j,getAdditionalInProgressMenuItems:m,getMultipleIndicesDisplayData:l,onResetButtonClick:n};a=f;g["default"]=a}),98);
-----
SYDInProgressDisplay.react",["GeoDropdownMenu.react","GeoFlexbox.react","GeoHeading.react","GeoMenuItem.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetConfirmModal.react","SYDPrereqsWidgetInProgressSelectedIndex.react","SYDPrereqsWidgetSteps.react","SYDPrereqsWidgetTextContent","emptyFunction","geoMargin","react","stylex","useUpsertAdsS4LtaskMutation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(a){var b=a.adAccount,e=a.entry;a=a.pluginWithData;var f=a.plugin,g=a.entryIndexIDs,j=a.finishedEntriesCount,k=a.onDismiss,l=a.updater;a=a.steps;var m={modalState:{header:null,onConfirm:c("emptyFunction"),contentText:null,confirmText:null,contentError:null},isShown:!1,isLoading:!1},n=i(m),o=n[0],p=n[1];n=f.filterStepsListByEntry(e,a,b);g=g!=null&&j!=null?{eligibleEntriesCount:g.length,finishedEntriesCount:j}:null;j=f.getInProgressDisplayData(e,g);g=j.header;j=j.paragraphComponent;var q=f.getMultipleIndicesDisplayData==null?void 0:f.getMultipleIndicesDisplayData(e).selectedIndexDisplayData,r=c("useUpsertAdsS4LtaskMutation")({connectionID:null}),s=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_IN_PROGRESS,f.key),t=function(){return p(m)};return h.jsxs("div",{ref:s,children:[h.jsx(c("SYDPrereqsWidgetConfirmModal.react"),{isLoading:o.isLoading,isShown:o.isShown,modalState:o.modalState,onHide:t}),h.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[h.jsxs(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",children:[h.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").vert12,children:g}),h.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat",label:"More",useEllipsisIcon:!0,children:[f.getAdditionalInProgressMenuItems&&f.getAdditionalInProgressMenuItems(e,l,a).map(function(a){var b=a.confirmModalData,d=a.label,e=a.onClick;if(b!=null)return h.jsx(c("GeoMenuItem.react"),{label:d,onClick:function(){p({modalState:{header:b==null?void 0:b.header,onConfirm:function(){e(),t()},contentText:b==null?void 0:b.paragraph,confirmText:null,contentError:null},isShown:!0,isLoading:!1})}},d.toString()+"-"+f.key);else return h.jsx(c("GeoMenuItem.react"),{label:d,onClick:function(){return e()}},d.toString()+"-"+f.key)}),b!=null?h.jsx(c("GeoMenuItem.react"),{label:d("SYDPrereqsWidgetTextContent").dismissText,onClick:function(){p({modalState:{header:f.dismissData.modalHeader,contentText:f.dismissData.modalParagraph,contentError:null,confirmText:d("SYDPrereqsWidgetTextContent").dismissButtonText,onConfirm:function(){p(function(a){return babelHelpers["extends"]({},a,{modalState:babelHelpers["extends"]({},a.modalState,{contentError:null}),isLoading:!0})});var a=function(){p(function(a){return babelHelpers["extends"]({},a,{isLoading:!1})}),k()},c=function(){return p(function(a){return babelHelpers["extends"]({},a,{modalState:babelHelpers["extends"]({},a.modalState,{contentError:f.dismissData.modalError}),isLoading:!1})})};r(f.key,"closed",b==null?void 0:b.account_id,a,c)}},isShown:!0,isLoading:!1})}}):null]})]}),h.jsx("div",{className:c("stylex")(c("geoMargin").bottom12),display:"block",children:j}),q&&h.jsx(c("SYDPrereqsWidgetInProgressSelectedIndex.react"),babelHelpers["extends"]({selectedIndexID:f.getEntryID(e),setupName:f.key},q)),h.jsx(c("SYDPrereqsWidgetSteps.react"),{entry:e,plugin:f,steps:n})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
usePrereqsCAPIEntries.react",["AdsFluxHooks","AdsMgmtPixelIDProvider","BusinessSetupsCapiUtils","CAPIPrereqEntryUtils","PrereqsLoggingConstants","PrereqsLoggingUtils","RelayHooks","adsCreateStructuredSelector","compactArray","firstx","nullthrows","usePrereqsCAPIEntries_am_prereqs_module.graphql","usePrereqsUpsertCAPISetupFlowStateMutation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=c("adsCreateStructuredSelector")({pixel:c("AdsMgmtPixelIDProvider").toFluxSelector()},f.id+".selector");function a(a){var e,f,g=a.am_prereqs_module,j=a.selectedIndexID;a=d("RelayHooks").useFragment(h!==void 0?h:h=b("usePrereqsCAPIEntries_am_prereqs_module.graphql"),g);a==null?d("PrereqsLoggingUtils").logPrereqsError(d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI,"am_prereqs_module is null"):a.saved_capi_setup_flow_states==null?d("PrereqsLoggingUtils").logPrereqsError(d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI,"am_prereqs_module.saved_capi_setup_flow_states is null"):a.saved_capi_setup_flow_states.connection_id==null&&d("PrereqsLoggingUtils").logPrereqsError(d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI,"am_prereqs_module.saved_capi_setup_flow_states.connection_id is null");g=c("usePrereqsUpsertCAPISetupFlowStateMutation")({connectionID:a==null?void 0:(g=a.saved_capi_setup_flow_states)==null?void 0:g.connection_id});e=(e=a==null?void 0:a.capi_entries)!=null?e:[];var k=((a=a==null?void 0:(a=a.saved_capi_setup_flow_states)==null?void 0:a.edges)!=null?a:[]).map(function(a){return a==null?void 0:a.node}).filter(Boolean),l=e.map(function(a){var b=a==null?void 0:a.pixel_id,d=a==null?void 0:a.pixel_name,e=a==null?void 0:a.integration_flow;a=a==null?void 0:a.best_pixel_pi_upsell;var f=k.find(function(a){return((a=a.pixel)==null?void 0:a.id)===b});return f==null?{current_step_id:"INITIAL",current_step_status:"NOT_STARTED",integration_flow:e,is_selected:!1,type:"CAPI",pixel_id:b,pixel_name:d,best_pixel_pi_upsell:a,update_time:0}:{current_step_id:c("nullthrows")(f.current_step_id,"usePrereqsCAPIEntries: current_step_id should never be null"),current_step_status:c("nullthrows")(f.current_step_status,"usePrereqsCAPIEntries: current_step_status should never be null"),integration_flow:e,is_selected:f.is_selected,type:"CAPI",pixel_id:b,pixel_name:d,best_pixel_pi_upsell:a,update_time:f.update_time||0}});a=e.map(function(a){var b=a==null?void 0:a.pixel_id;a=a==null?void 0:a.pixel_name;if(b==null||a==null)return null;var c=l.find(function(a){return a.pixel_id===b});return d("BusinessSetupsCapiUtils").isFinalStep(c==null?void 0:c.current_step_id)?null:{indexName:a,indexID:b}});e=k.filter(function(a){return d("BusinessSetupsCapiUtils").isFinalStep(a.current_step_id)}).length;var m=l.every(d("BusinessSetupsCapiUtils").isInitialStep),n=(f=d("AdsFluxHooks").useAdsSelector(i))==null?void 0:(f=f.pixel)==null?void 0:f.pixelID;f=[];if(l.length>0){var o;j!=null?o=l.find(function(a){return a.pixel_id===j}):n!=null?o=l.find(function(a){return a.pixel_id===n}):o=l.filter(function(a){return a.update_time!=null}).reduce(d("CAPIPrereqEntryUtils").selectEntryToDisplay);o=(o=o)!=null?o:c("firstx")(l);f.push(o)}return{areAllEntriesInitial:m,entries:f,entryIndexIDs:c("compactArray")(a),finishedEntriesCount:e,upsertSetupState:g}}g["default"]=a}),98);
-----
SYDPrereqsWidgetContent.react",["AdsFluxHooks","CurrentUser","GeoCard.react","GeoFlexbox.react","GeoSection.react","JSResource","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetEntriesUI.react","SYDPrereqsWidgetLoadingContent.react","SYDPrereqsWidgetSummary.react","SYDWidget.react","SYDWidgetLogger.react","SYDWidgetStatusEnum","lazyLoadComponent","react","useIsFromBizSetupsCAPIEmailRecommendation"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=c("lazyLoadComponent")(c("JSResource")("PrereqsCAPIRecommendationIsStaleModal.react").__setRef("SYDPrereqsWidgetContent.react")),j=c("lazyLoadComponent")(c("JSResource")("SYDPrereqsWidgetDebugger.react").__setRef("SYDPrereqsWidgetContent.react"));function a(a){var b=a.adAccount,e=a.pluginsWithData,f=a.connectionIDSelectedIndexFragment,g=a.unfilteredPluginsWithData;a=a.setIsDismissed;var k="",l=e.map(function(a){return a.plugin.key});l.forEach(function(a,b){b=b===l.length-1;b?k+=a:k+=a+" + "});var m=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET,k),n=c("useIsFromBizSetupsCAPIEmailRecommendation")(),o=e.map(function(a){return h.jsx("div",{children:a.plugin.setupContainer({updater:a.updater})},a.plugin.key)});return h.jsxs(h.Fragment,{children:[e.length!==0?h.jsx(c("SYDWidgetLogger.react"),{status:c("SYDWidgetStatusEnum").Visible,children:h.jsx(c("SYDWidget.react"),{fallback:h.jsx(c("SYDPrereqsWidgetLoadingContent.react"),{}),children:h.jsx("div",{ref:m,children:h.jsx(c("GeoCard.react"),{children:h.jsx(c("GeoSection.react"),{children:h.jsxs(c("GeoFlexbox.react"),{"data-testid":void 0,direction:"column",children:[o,h.jsx(c("SYDPrereqsWidgetSummary.react"),{adAccount:b,pluginsWithData:e}),h.jsx(c("SYDPrereqsWidgetEntriesUI.react"),{adAccount:b,connectionIDSelectedIndexFragment:f,pluginsWithData:e})]})})})})})}):h.jsx(c("SYDWidgetLogger.react"),{status:c("SYDWidgetStatusEnum").Hidden}),n&&h.jsx(i,{pluginsWithData:e}),c("CurrentUser").isEmployee()&&h.jsx(j,{setIsDismissed:a,unfilteredPluginsWithData:g})]})}a.displayName=a.name+" [from "+f.id+"]";b=d("AdsFluxHooks").adsFluxContainer(a);g["default"]=b}),98);
-----
SYDPrereqsWidgetEntryUI.react",["invariant","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDEventTypesEnum","SYDInProgressDisplay.react","SYDPrereqsWidgetFinishedDisplay.react","SYDPrereqsWidgetGetStartedDisplay.react","SYDPrereqsWidgetPartiallyFinishedDisplay.react","SYDUnifiedLoggingUtils","emptyFunction","react","useUpsertAdsS4LtaskMutation"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=d("react").useEffect;function a(a){var b=a.adAccount,e=a.entry,f=a.pluginWithData;a=a.connectionIDSelectedIndexFragment;var g=f.areAllEntriesInitial,k=f.entryIndexIDs,l=f.finishedEntriesCount,m=f.steps,n=f.plugin,o=n.getMultipleIndicesDisplayData,p=c("useUpsertAdsS4LtaskMutation")({connectionID:null}),q=n.inFinalStateWithErrors!=null&&n.getFinishedDisplayWithErrorsData!=null&&n.inFinalStateWithErrors(e),r=n.inFinalState(e,k==null?void 0:k.length)||q;j(function(){r&&p(n.key,"closed",b==null?void 0:b.account_id,c("emptyFunction"),c("emptyFunction"))},[b,n.key,r,p]);if(r){var s=q?n.getFinishedDisplayWithErrorsData(e):n.getFinishedDisplayData(e),t=s.linkText,u=s.linkURI,v=s.text;s=s.title;return i.jsx(c("SYDPrereqsWidgetFinishedDisplay.react"),{hasErrors:q,linkText:t,linkURI:u,taskName:n.key,text:v,title:s})}if(n.inInitialState(e,g)){q=n.getStartingDisplayData(e);var w=q.loggingSourceName,x=q.stepToOpen,y=m.find(function(a){return a.stepID===x});t=function(){var a,b;y==null?void 0:y.onClick(e);d("SYDUnifiedLoggingUtils").logClick("Prereqs",c("SYDEventTypesEnum").CallToAction,!0,void 0,(b={},b.message=d("PrereqsLoggingConstants").PrerequisitesClickEvent.GET_STARTED,b.source=(a=w)!=null?a:n.key,b));d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.GET_STARTED,(a=w)!=null?a:n.key,n.getEntryID(e))};return i.jsx(c("SYDPrereqsWidgetGetStartedDisplay.react"),{adAccount:b,currentEntryID:n.getEntryID(e),customCallToAction:y==null?void 0:y.customCallToAction,entryIndexIDs:k,multipleIndicesSelectorDisplayData:o==null?void 0:o(e).selectorDisplayData,startingDisplayData:q,taskName:n.key,onGetStartedClick:t})}if(n.inPartiallyFinishedState!=null&&k!=null&&n.inPartiallyFinishedState(e,k.length)&&n.getPartiallyFinishedDisplayData!=null&&o!=null){u=n.inPartiallyFinishedStateWithErrors!=null&&k!=null&&n.inPartiallyFinishedStateWithErrors(e,k.length);v=u&&n.getFinishedDisplayWithErrorsData!=null?n.getFinishedDisplayWithErrorsData(e):n.getFinishedDisplayData(e);l!=null||h(0,62604);s=n.getPartiallyFinishedDisplayData(e);return i.jsx(c("SYDPrereqsWidgetPartiallyFinishedDisplay.react"),{adAccount:b,connectionIDSelectedIndexFragment:a,entryIndexIDs:k,finishedDisplayData:v,finishedEntriesCount:l,hasErrors:u,multipleIndicesSelectorDisplayData:o(e).selectorDisplayData,partiallyFinishedDisplayData:s,taskName:n.key})}return i.jsx(c("SYDInProgressDisplay.react"),{adAccount:b,entry:e,pluginWithData:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
CAPISetupGetStartedDisplayData",["ix","AdsEventsManagerGatingUtils","BusinessPersonRolloutPhase","CAPIPrereqsTypes.flow","GeoLink.react","GeoText.react","PrereqsLoggingConstants","SYDPartnerRecommendationDescription.react","SYDPrereqsWidgetCAPITextContent","SYDPrereqsWidgetTextContent","StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent","URI","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");function j(a){a=a.url;return d("BusinessPersonRolloutPhase").canUserAccess("HELP_CENTER")?i.jsx(c("GeoLink.react"),{href:new(c("URI"))(a),target:"_blank",children:d("SYDPrereqsWidgetTextContent").learnMoreText}):null}function a(a){var b=a.integration_flow==="PARTNER";return b&&!d("AdsEventsManagerGatingUtils").isCurrentlyAdsEventsManager()?{descriptionComponent:i.jsx(c("GeoText.react"),{children:d("SYDPrereqsWidgetCAPITextContent").setupCAPIPartnerDescriptionText}),headerText:d("SYDPrereqsWidgetCAPITextContent").setupCAPIPartnerHeader,imagePath:h("12974"),learnMoreLink:i.jsx(j,{url:d("SYDPrereqsWidgetTextContent").PARTNER_LEARN_MORE_URL}),shouldShowEntryInMultipleIndicesSelector:a.best_pixel_pi_upsell!=null,stepToOpen:d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.CHOOSE_A_PARTNER,loggingSourceName:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_PARTNER}:{descriptionComponent:i.jsx(c("SYDPartnerRecommendationDescription.react"),{best_pixel_pi_upsell:a.best_pixel_pi_upsell}),headerText:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrCAPIInitialHeaderText(a.best_pixel_pi_upsell),imagePath:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrInitialImagePath(a.best_pixel_pi_upsell),learnMoreLink:i.jsx(j,{url:d("SYDPrereqsWidgetTextContent").FULL_FLOW_LEARN_MORE_URL}),shouldShowEntryInMultipleIndicesSelector:a.best_pixel_pi_upsell!=null,stepToOpen:d("CAPIPrereqsTypes.flow").CAPIPrereqsStepID.BEST_PIXEL_PI_UPSELL,loggingSourceName:d("PrereqsLoggingConstants").PrerequisitesLocation.CAPI_FULL,"data-testid":"syd-prereqs-widget-capi-content-get-started-button"}}g.LearnMoreLink=j;g.getStartingDisplayData=a}),98);
-----
SYDPrereqsWidgetIndexTypeahead.react",["GeoBaseTypeaheadItem.react","GeoTypeahead.react","PrereqsLoggingConstants","PrereqsLoggingUtils","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k=b.useState;function a(a){var b=a["data-testid"],e=a.eligibleEntriesCount,f=a.isDisabled;f=f===void 0?!1:f;var g=a.isLoading,l=g===void 0?!1:g;g=a.initialEntry;var m=a.loggingMessage,n=a.searchSource,o=a.setGetStartedButtonIsDisabled,p=a.additionalOnSelectAttempt,q=a.getIndexIDFbtWithLabel,r=a.getSelectorDescription,s=a.placeholderText,t=a.selectorLabel,u=a.updateSelectedIndex;a=k(g);var v=a[0],w=a[1];g=k((a=g==null?void 0:g.getTitle())!=null?a:"");a=g[0];var x=g[1];g=i(function(){x(v!=null?v.getTitle():"")},[v,x]);j(function(){o!=null&&(l?o(!0):o(v==null))},[v,l,o]);var y=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.MULTIPLE_INDICES_TYPEAHEAD,m);r=r&&r(e);return h.jsx(c("GeoTypeahead.react"),{"data-container-testid_DO_NOT_USE":"multiple-indices-typeahead-"+b+"-temp","data-testid":void 0,description:r,inputRef:y,isDisabled:f||l,isLoading:l,label:t,placeholder:s,queryString:a,searchSource:n,showEntriesOnFocus:!0,onBlur:g,onChange:x,onSelectAttempt:function(a){w(a),x(a.getTitle()),u(a.getUniqueID()),p!=null&&p(a),d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.MULTIPLE_INDEX_SELECTION,m)},children:function(a){return h.jsx(c("GeoBaseTypeaheadItem.react"),{"data-testid":void 0,description:q(a.getSubtitle()),label:a.getTitle()})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetFinishedDisplay.react",["ix","GeoBaseText.react","GeoFlexbox.react","GeoHeading.react","GeoIcon.react","GeoLink.react","PrereqsLoggingConstants","PrereqsLoggingUtils","fbicon","geoMargin","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j={container:{backgroundColor:"x1r7ttyx",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",$$css:!0}};function a(a){var b=a.hasErrors,e=a.linkText,f=a.linkURI,g=a.taskName,k=a.text;a=a.title;var l=b!==!0?d("fbicon")._(h("498146"),20):d("fbicon")._(h("681771"),20);b=b!==!0?"success":"warning";g=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_FINISHED,g);return i.jsxs(c("GeoFlexbox.react"),{containerRef:g,"data-testid":void 0,xstyle:j.container,children:[i.jsx(c("GeoIcon.react"),{color:b,icon:l}),i.jsxs(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz8,children:[i.jsx(c("GeoHeading.react"),{level:4,xstyle:c("geoMargin").bottom4,children:a}),i.jsx(c("GeoBaseText.react"),{color:"value","data-testid":void 0,size:"accent",xstyle:c("geoMargin").bottom4,children:k}),i.jsx(c("GeoLink.react"),{href:f,target:"_blank",children:e})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetGetStartedDisplay.react",["ConversionsAPISave4LaterTipWrapper.react","GeoBaseSpacingLayout.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","IPB4BImage.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetIndexTypeaheadWrapper.react","SYDPrereqsWidgetTextContent","geoMargin","react","stylex","uniqueID"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState,j={image:{borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",marginBottom:"xod5an3",$$css:!0}};function k(a){var b=a.adAccountID,d=a.entryIndexIDs,e=a.multipleIndicesPreselectedEntryID,f=a.multipleIndicesSelectorDisplayData,g=a.setGetStartedButtonIsDisabled;a=a.setupName;return d!=null&&f!=null?h.jsx("div",{className:c("stylex")(c("geoMargin").bottom8),children:h.jsx(c("SYDPrereqsWidgetIndexTypeaheadWrapper.react"),babelHelpers["extends"]({adAccountID:b,"data-testid":void 0,entryIndexIDs:d,loggingMessage:a+" Get Started Display",preselectedEntryID:e,setGetStartedButtonIsDisabled:g,setupName:a},f))}):null}k.displayName=k.name+" [from "+f.id+"]";function a(a){var b=a.adAccount,e=a.entryIndexIDs,f=a.currentEntryID,g=a.multipleIndicesSelectorDisplayData,l=a.onGetStartedClick,m=a.startingDisplayData,n=a.taskName;a=a.customCallToAction;var o=i(c("uniqueID")("get_started_heading"));o=o[0];var p=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_GET_STARTED,n),q=m["data-testid"],r=m.descriptionComponent,s=m.headerText,t=m.imagePath,u=m.learnMoreLink;m=m.shouldShowEntryInMultipleIndicesSelector;q=(q=q)!=null?q:"syd-prereqs-widget-get-started-button";q=i(!1);var v=q[0];q=q[1];return h.jsxs("div",{ref:p,children:[h.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[h.jsx(c("GeoFlexbox.react"),{justifyContent:"center",xstyle:j.image,children:h.jsx(c("IPB4BImage.react"),{src:t})}),h.jsx(c("GeoHeading.react"),{id:o,level:3,xstyle:c("geoMargin").bottom4,children:s}),h.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",xstyle:c("geoMargin").bottom4,children:[r,u]}),h.jsx(k,{adAccountID:b==null?void 0:b.account_id,entryIndexIDs:e,multipleIndicesPreselectedEntryID:m===!0?f:null,multipleIndicesSelectorDisplayData:g,setGetStartedButtonIsDisabled:q,setupName:n}),h.jsx(c("GeoFlexbox.react"),{alignItems:"center",justifyContent:"space-between",xstyle:c("geoMargin").top4,children:(p=a)!=null?p:h.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:v,label:d("SYDPrereqsWidgetTextContent").getStartedButtonText,variant:"primary",width:120,onClick:l})})]}),h.jsx(c("ConversionsAPISave4LaterTipWrapper.react"),{contextNodeID:o,messageID:"bsu_s4l_syd_widget_tip",position:"left",taskName:n})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPartnerRecommendationDescription.react",["CAPIBestPixelUtils","GeoText.react","PrereqsLoggingConstants","PrereqsLoggingUtils","StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b;a=a.best_pixel_pi_upsell;b=(b=d("CAPIBestPixelUtils").getFriendlyPartnerNameForUpsell(a))!=null?b:"GENERAL_PI_UPSELL";b=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_GET_STARTED_BEST_PIXEL,b);return h.jsx(c("GeoText.react"),{containerRef:b,children:d("StartYourDayBSUWidgetCAPIPartnerRecommendationAssetContent").getPartnerRecommendationOrCAPIInitialDescriptionText(a)})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
SYDPrereqsWidgetPartiallyFinishedDisplay.react",["invariant","BizSiteIdentifier.brands","GeoBaseSpacingLayout.react","GeoButton.react","GeoFlexbox.react","GeoHeading.react","GeoText.react","PrereqsLoggingConstants","PrereqsLoggingUtils","SYDPrereqsWidgetFinishedDisplay.react","SYDPrereqsWidgetIndexSearchSource","SYDPrereqsWidgetIndexTypeahead.react","SYDPrereqsWidgetTextContent","geoMargin","react","stylex","useAdsBSUSetupMetadata","useUpsertAdsBSUSetupBusinessMetadata","useUpsertAdsBSUSetupMetadata"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useMemo,k=b.useState;function l(a){var b=a.entryIndexIDs,d=a.isDisabled,e=a.multipleIndicesSelectorDisplayData,f=a.setSelectedIndex;a=a.setupName;var g=j(function(){return new(c("SYDPrereqsWidgetIndexSearchSource"))({entryIndexIDs:b})},[b]);return i.jsx("div",{className:c("stylex")(c("geoMargin").bottom8),children:i.jsx(c("SYDPrereqsWidgetIndexTypeahead.react"),babelHelpers["extends"]({"data-testid":void 0,eligibleEntriesCount:b.length,isDisabled:d,loggingMessage:a+" Partially Finished Display",searchSource:g,updateSelectedIndex:f},e))})}l.displayName=l.name+" [from "+f.id+"]";function a(a){var b=a.adAccount,e=a.entryIndexIDs,f=a.finishedDisplayData,g=a.finishedEntriesCount,j=a.hasErrors,m=a.multipleIndicesSelectorDisplayData,n=a.partiallyFinishedDisplayData,o=a.taskName;a=a.connectionIDSelectedIndexFragment;var p=f.linkText,q=f.linkURI,r=f.text;f=f.title;var s=b==null?void 0:b.account_id,t=n.description,u=n.headerText,v=n.loggingSourceName;n=n.learnMoreLink;var w=d("BizSiteIdentifier.brands").getBusinessID(),x=k(null),y=x[0];x=x[1];var z=k(!1),A=z[0],B=z[1];z=d("useAdsBSUSetupMetadata").useAdsBSUSetupMetadataSelectedIndex(b==null?void 0:b.account_id,w);b=z.connectionID;z=d("useUpsertAdsBSUSetupMetadata").useUpsertAdsBSUSetupMetadataSelectedIndex({connectionID:a!=null?a:b,adAccountID:s});a=d("useUpsertAdsBSUSetupBusinessMetadata").useUpsertAdsBSUSetupBusinessMetadataSelectedIndex({connectionID:b,adAccountID:s,businessID:w});var C=s!=null?z:a;b=function(){var a;y!=null||h(0,56207);B(!0);d("PrereqsLoggingUtils").logPrereqsClick(d("PrereqsLoggingConstants").PrerequisitesClickEvent.SETUP_NEXT_INDEX_CTA,((a=v)!=null?a:o)+" entry "+(g+1));C(o,y,function(){B(!1)})};w=d("PrereqsLoggingUtils").usePrereqsImpressionLogger(d("PrereqsLoggingConstants").PrerequisitesLocation.SYD_WIDGET_PARTIALLY_FINISHED,o+" entry "+g+" finished");return i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",containerRef:w,context:"container",direction:"vertical",relation:"unrelated",children:[i.jsx(c("SYDPrereqsWidgetFinishedDisplay.react"),{hasErrors:j,linkText:p,linkURI:q,taskName:o,text:r,title:f}),i.jsxs(c("GeoFlexbox.react"),{direction:"column",children:[i.jsx(c("GeoHeading.react"),{level:3,xstyle:c("geoMargin").bottom4,children:u}),i.jsxs(c("GeoBaseSpacingLayout.react"),{align:"start",direction:"vertical",xstyle:c("geoMargin").bottom4,children:[i.jsx(c("GeoText.react"),{children:t}),n]}),i.jsx(l,{entryIndexIDs:e,isDisabled:A,multipleIndicesSelectorDisplayData:m,setSelectedIndex:x,setupName:o}),i.jsx(c("GeoButton.react"),{"data-testid":void 0,isDisabled:A||y==null,isLoading:A,label:d("SYDPrereqsWidgetTextContent").getStartedButtonText,variant:"primary",width:120,xstyle:c("geoMargin").top4,onClick:b})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
FBStoriesRing",["csx","cx","Arbiter","CSS","DOM","FBStoriesLoggingConstants","XFBStoriesSingleStoryAsyncController"],(function(a,b,c,d,e,f,g,h,i){"use strict";a=function(){function a(a){this.$1=a.element;this.$2=a.profileId;this.$3=a.storyId;this.$4=!1;a=c("DOM").scry(this.$1,"._6_ut");a.length>0&&(this.$4=!0);this.$5()}var b=a.prototype;b.$5=function(){var a=this;c("Arbiter").subscribe("has_story_bucket_been_seen",function(b,e){if(a.$2===e){b=c("DOM").scry(a.$1,"._6_ut");b.length>0&&(d("CSS").removeClass(b[0],"_6_ut"),a.$4=!1)}});c("Arbiter").subscribe("update_next_thread_to_view",function(b,e){b=e.bucketOwnerId;e=e.threadId;if(a.$2===b&&a.$4){b=c("XFBStoriesSingleStoryAsyncController").getURIBuilder().setFBID("story_id",a.$3).setFBID("card_id",e).setBool("auto_open_viewersheet",!1).setString("story_action_source",d("FBStoriesLoggingConstants").SOURCES.POST_HEADER).getURI();a.$1.setAttribute("ajaxify",b)}})};return a}();g["default"]=a}),98);
-----
FBStoriesLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="event";b="followee";c="friend";d="group";e="missingStoryData";var g="page",h="self",i="promotion",j="open_media",k="delete_media_attempted",l="attempt_to_send_reply",m="reaction_sticker_interacted",n="open_seen_summary",o="open_story",p="close_story",q="story_tray_load",r="send_story_failed",s="send_story_succeed",t="reply_attempt_completed",u="story_navigation",v="reshared_story_tap",w="reshared_story_view_story_tap",x={CLOSE_STORY:{CLICK_RIGHT:"click_right",CLICK_LEFT:"click_left",AUTO_JUMP:"auto_jump",AUTO_EXIT:"auto_exit",CLICK_EXIT:"click_exit",SWIPE_RIGHT:"swipe_right",SWIPE_LEFT:"swipe_left",SWIPE_EXIT:"swipe_exit",SWIPE_DOWN_EXIT:"swipe_down_exit",CLOSE_BUTTON_EXIT:"close_button_exit",BACK_BUTTON_EXIT:"back_button_exit"}},y="closeFromClickingOnModal",z="closeFromClickingOnModalCloseButton",A="closeFromLastStoryFinishing",B={ARCHIVE:"archive",POST_HEADER:"post_header_actor_photo",STORY_TRAY:"story_tray",IN_FEED:"in_feed",UNKNOWN:"unknown"};f.EVENT_STORY=a;f.FOLLOWEE_STORY=b;f.FRIEND_STORY=c;f.GROUP_STORY=d;f.MISSING_STORY_DATA=e;f.PAGE_STORY=g;f.SELF_STORY=h;f.STORY_PROMOTION=i;f.ACTION_OPEN_MEDIA=j;f.ACTION_DELETE_MEDIA=k;f.ACTION_SEND_REPLY_ATTEMPT=l;f.ACTION_SEND_REACTION_STICKER_INTERACTED=m;f.ACTION_OPEN_SEEN_SUMMARY=n;f.ACTION_OPEN_STORY=o;f.ACTION_CLOSE_STORY=p;f.ACTION_TRAY_LOAD=q;f.ACTION_SEND_STORY_FAILED=r;f.ACTION_SEND_STORY_SUCCEEDED=s;f.ACTION_REPLY_ATTEMPT_COMPLETED=t;f.ACTION_STORY_NAVIGATION=u;f.INTERACTION_TAP_RESHARED_STORY=v;f.INTERACTION_TAP_RESHARED_TOOLTIP=w;f.GESTURES=x;f.SOURCE_CLOSE_FROM_MODAL=y;f.SOURCE_CLOSE_FROM_MODAL_CLOSE_BUTTON=z;f.SOURCE_CLOSE_FROM_LAST_STORY_FINISHING=A;f.SOURCES=B}),66);
-----
AdsAdgroupPreviewsV2.react",["cssVar","cx","fbt","AdsAPIAdgroupRecord","AdsAPIAdgroupRecordUtils","AdsAdgroupPreviewsLoggingConstants","AdsAdgroupPreviewsV2Comments.react","AdsAdgroupPreviewsV2DCOPreviewEntry.react","AdsAdgroupPreviewsV2DCOPreviewEntryButtonContainer.react","AdsAdgroupPreviewsV2Header.react","AdsAdgroupPreviewsV2Section.react","AdsAdgroupSpecUtils","AdsAssetFeedUtils","AdsDynamicPreviewItemTypes","AdsHeroPagelet.react","AdsLoadState_LEGACY","AdsObjectivesV2Utils","AdsPlacementAssetUtils","AdsPlacementEditorEvents","AdsPreviewNoMediaSelectedView.react","AdsPreviewV2ErrorUtils","AdsPreviewV4SidebarWrapperLazyContainer.react","AdsPreviewsV2Constants","AdsSbsEntryPointContext","AdsSbsPreloadAPIFormatsSitevarConfig","AdsStaticGuidanceCard.react","AdsUEditorCreativeToolDialogPreviewSelector.react","AdsUEditorPlacementEditorUtils","CometPlaceholder.react","FBLogger","FBOverlayBase.react","FBOverlayContainer.react","FBOverlayElement.react","FlexLayout.react","FlexLayoutItem.react","GeoFlexbox.react","GeoGlimmer.react","GeoSpinner.react","LRUKeyedCache","LazyLatchBoundary.react","LoadingContext.react","OptimisticAdPreviewUtils","XUICarousel.react","XUICarouselItem.react","adsPreviewHasInstagramStoryFormat","areEqual","createArrayFromMixed","deepCompare","emptyFunction","emptyObject","geoMargin","gkx","immutable","isTruthy","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");function l(a){return k.jsx("div",{className:"_3-97 _3-8u",children:k.jsx(c("AdsStaticGuidanceCard.react"),{ccCardProps:{category:a.category,messageID:a.messageID,textData:[{type:"PARAGRAPH",data:{text:a.message}}]}})})}l.displayName=l.name+" [from "+f.id+"]";var m=function(a){return a==null?[]:c("createArrayFromMixed")(a.getElementsByTagName("video"))},n=function(a){a.forEach(function(a){return a.pause()})},o=function(a){m(a).forEach(function(a){a=a.play();a["catch"](function(a){c("FBLogger")("ads","video_player_issues").warn("Tried to play a video in %s, but failed because of error %s. This needs the right paused fallback UI, see https://goo.gl/LdLk22.",f.id,a.message)})})},p=0;a=10;var q=new(c("LRUKeyedCache"))(function(a){return a},a);b=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e,f;for(var g=arguments.length,h=new Array(g),i=0;i
-----
AdsAdgroupPreviewsV2Header.react",["cx","fbt","invariant","AdsAdgroupPreviewsLoggingConstants","AdsAdgroupPreviewsV2NavigationSection.react","AdsAdgroupPreviewsV2Selector.react","AdsIXIGCollectionPreviewNoticeContainer.react","AdsPreviewSelectorEntrypoints","AdsUEditorAdgroupContext","FlexLayout.react","JSResource","lazyLoadComponent","react"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";var k=d("react");b=d("react");var l=b.useCallback,m=b.useContext,n=210,o=c("lazyLoadComponent")(c("JSResource")("AdsAdgroupPreviewsV2CountrySelector.react").__setRef("AdsAdgroupPreviewsV2Header.react"));function a(a){var b=a.index,d=b===void 0?0:b,e=a.maxIndex,f=a.minIndex,g=a.onChange;b=babelHelpers.objectWithoutPropertiesLoose(a,["index","maxIndex","minIndex","onChange"]);a=m(c("AdsUEditorAdgroupContext"));a=a.adgroupEditorContext;var h=l(function(a){var b=e-f+1,h=d;h=(h+a)%b;g&&g(h,c("AdsAdgroupPreviewsLoggingConstants").PAGINATION)},[e,f,g,d]),p=l(function(a){h(1)},[h]),q=l(function(a){h(-1)},[h]),r=l(function(a){g&&g(a,c("AdsAdgroupPreviewsLoggingConstants").SELECTOR)},[g]);e>=f||j(0,1077);return k.jsxs("div",{className:"_5q46",children:[k.jsxs(c("FlexLayout.react"),{children:[a?k.jsx(c("AdsIXIGCollectionPreviewNoticeContainer.react"),{}):null,k.jsx(c("AdsAdgroupPreviewsV2Selector.react"),{entrypoint:c("AdsPreviewSelectorEntrypoints").AD_LEVEL,previewPlugins:b.previewPlugins,selectedAdFormat:b.previewPlugins.toIndexedSeq().get(d).apiFormat,width:b.fixedWidthSelector===!0?n:null,onPreviewItemSelected:r}),b.customHeaderComponent,b.showCountryDropdown===!0&&k.jsx(o,{selectedCountry:b.selectedCountry}),b.showSharingElement===!0&&b.sharingElement!=null?k.jsx("div",{className:"_3-99",children:b.sharingElement}):null]}),k.jsx(c("AdsAdgroupPreviewsV2NavigationSection.react"),{className:"_5q47",handleDecrementClick:q,handleIncrementClick:p,index:d,maxIndex:e,minIndex:f,nextLabel:i._("u4e0bu4e00u4e2au5e7fu544au683cu5f0f"),previousLabel:i._("u524du4e00u4e2au5e7fu544au683cu5f0f")})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsAdgroupPreviewsLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a={COMPONENT_CLAMP:"preview-component-clamp",PAGINATION:"pagination",SELECTOR:"selector",MINI_PREVIEW:"mini_preview"};b=a;f["default"]=b}),66);
-----
AdsPEUploadLoggerHelper",["AdDraftPublishStatuses","AdsAccountStore","AdsAdgroupDraftFragmentStore","AdsCampaignDraftFragmentStore","AdsCampaignGroupDraftFragmentStore","AdsDraftProvider","AdsError","AdsErrorUtils","AdsFragmentsUtils","AdsLoadStateUtils_LEGACY","AdsManagerDowntimeProductionFiredrill","AdsMgmtPerfScenarioController","AdsMgmtQPLLogger","AdsObjectLevelToFragmentStore","AdsObjectLevelToStore","AdsPEAdgroupSelectors","AdsPECampaignGroupSelectors","AdsPECampaignSelectors","AdsPEDraftPublishLoggerHelper","AdsPELegacyLoggerState","AdsPEUploadStore","PowerEditorEventCategory","PowerEditorLoggingConstants","adsDraftActivePublishSelector","flattenArray","immutable","normalizeErrorPath","qpl","requireWeak","sumOfArray"],(function(a,b,c,d,e,f,g){"use strict";var h=c("AdsDraftProvider").toFluxStore(),i;c("requireWeak")("AdsObjectLevelToValidationErrorsSelectors",function(a){i=a});var j=["instant_publish_inline","instant_publish_rolldown","instant_publish_editor","instant_publish_bulkedit","review_and_publish"],k=(a={},a.ad="adgroup_start_publish",a.ad_set="campaign_start_publish",a.campaign="campaign_group_start_publish",a.ad_account="",a.topline="",a),l=(b={},b.ad="adgroup_id",b.ad_set="campaign_id",b.campaign="campaign_group_id",b.ad_account="original_ad_object_id",b.topline="original_ad_object_id",b),m=["ad","ad_set","campaign"],n={_uploadStartTime:0,getLogsForUploadStart:function(a){var b;d("AdsPELegacyLoggerState").startFlow(d("PowerEditorLoggingConstants").FLOW.UPLOAD);n.measureUploadStart();b=(b=a.selection)!=null?b:c("immutable").Map();var e=b.map(function(a){return a.toSet()}).toSet().flatten(),g=c("immutable").OrderedMap(),h=c("immutable").OrderedMap(),j=[];m.forEach(function(a){var b=c("AdsObjectLevelToFragmentStore").get(a),k;i!=null&&(k=i.get(a).combinedErrorsSelector);var l=c("AdsObjectLevelToStore").get(a);b=b.getFragmentsInDraftFor(c("AdsAccountStore").getSelectedAccountID()).filter(function(a){return!a.isLoading()&&a.hasValue()}).map(function(a){return a.getValueEnforcing()}).filter(function(a){return e.has(a.objectID)}).map(function(b){var e=[];k!=null&&(e=k(b.objectID));var g=l.getObject(b.objectID);j=j.concat(e.map(function(a){return a.message}));var h,i,m,n,o,p;if(g.hasValue()){g=g.getValueEnforcing();a==="ad"?(h=g.campaign_id,i=g.adset_id,m=d("AdsPEAdgroupSelectors").getSelector_LEGACY()(b.objectID).getValue(),p=c("AdsAdgroupDraftFragmentStore").isNew(b.objectID)):a==="ad_set"?(h=g.campaign_id,n=d("AdsPECampaignSelectors").getSelector()(b.objectID).getValue(),p=c("AdsCampaignDraftFragmentStore").isNew(b.objectID)):a==="campaign"&&(p=c("AdsCampaignGroupDraftFragmentStore").isNew(b.objectID),o=d("AdsPECampaignGroupSelectors").getByFieldsSelector()(b.objectID,{is_skadnetwork_attribution:null},f.id).getValue())}return{id:b.objectID,fragmentID:b.fragmentID,isNewFragment:p,isValid:!e.length,adgroupSpec:m,campaignSpec:n,isSKAdNetworkAttribution:(g=o)==null?void 0:g.is_skadnetwork_attribution,parentCampaignGroupID:h,parentCampaignID:i,validationErrors:e}}).valueSeq().toArray();g=g.set(a,b);b.length&&(h=h.set(a,b.length))});b=q(!1,h,j,null,a.fakePublishID);var r=[];g.forEach(function(a,b){var d=k[b],e=l[b];a.forEach(function(f){var g,a=(f.validationErrors||[]).map(function(a){return a.message});a=(g={action_session_id:c("AdsPEUploadStore").getSessionID(),campaign_group_id:f.parentCampaignGroupID,campaign_id:f.parentCampaignID},g[e]=f.id,g.adgroup_spec=JSON.stringify(f.adgroupSpec),g.campaign_spec=JSON.stringify(f.campaignSpec),g.client_error_messages=a,g.event_source=c("AdsPEUploadStore").getPreviewSource(),g.fragment_id=f.fragmentID,g.has_client_error=!f.isValid,g.is_new_fragment=f.isNewFragment,g.is_skadnetwork_attribution=f.isSKAdNetworkAttribution,g);r=[].concat(r,[o(d,a,c("PowerEditorEventCategory").PUBLISH)],p(f,b))})});d("AdsMgmtQPLLogger").markEvent(c("qpl")._(270218326,"5877"),"success",7);return[o("start_upload",b,c("PowerEditorEventCategory").UPLOAD)].concat(r)},getLogsForUploadFinished:function(a,b,e,f){var g;a=d("AdsLoadStateUtils_LEGACY").fromLoadObjectTreatEmptyAsLoading(h.getState().get(a));a=a.account_id;var i=c("adsDraftActivePublishSelector")();if(!a||!i.hasValue())return[];i=i.getValueEnforcing();var j=i.success_count,k=i.status;k=k===c("AdDraftPublishStatuses").FAILED;j=!!j;i=((i=i)!=null?(i=i.fragment_statuses)!=null?i.data:i:i)||[];var l=i.map(function(a){return a.error_message}).filter(Boolean);i=c("immutable").OrderedMap((g={},g.campaign=d("AdsFragmentsUtils").filterFragmentsByObjectType(i,"campaign").length,g.ad_set=d("AdsFragmentsUtils").filterFragmentsByObjectType(i,"ad_set").length,g.ad=d("AdsFragmentsUtils").filterFragmentsByObjectType(i,"ad").length,g)).filter(function(a){return a>0});g=q(!0,i,l,a,f);i=[];k&&i.push(o("upload_failed",babelHelpers["extends"]({},g,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD));if(j){i.push(o("upload_succeed",babelHelpers["extends"]({},g,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD));d("AdsPELegacyLoggerState").endFlow(d("PowerEditorLoggingConstants").FLOW.UPLOAD);for(l=d("AdsManagerDowntimeProductionFiredrill").getFakeSignals(),a=Array.isArray(l),f=0,l=a?l:l[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){if(a){if(f>=l.length)break;k=l[f++]}else{f=l.next();if(f.done)break;k=f.value}j=k;i.push(o(j,babelHelpers["extends"]({},g,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD))}d("AdsMgmtQPLLogger").markEvent(c("qpl")._(270207765,"2118"),"success",7)}return i},getLogsForPublishReview:function(){var a=c("AdsAccountStore").getSelectedAccountID();a=c("immutable").Seq().concat(c("AdsAdgroupDraftFragmentStore").getFragmentsInDraftFor(a).valueSeq(),c("AdsCampaignDraftFragmentStore").getFragmentsInDraftFor(a).valueSeq(),c("AdsCampaignGroupDraftFragmentStore").getFragmentsInDraftFor(a).valueSeq()).filter(function(a){return!a.isLoading()&&a.hasValue()}).toArray().map(function(a){a=a.getValueEnforcing();var b,d=[];i!=null&&(b=i.get(a.objectType).combinedErrorsSelector,d=b(a.objectID));return{id:a.objectID,fragmentID:a.fragmentID,errors:c("AdsErrorUtils").getAllErrorsAtLevel(d,c("AdsError").Level.WARN),idField:l[a.objectType]}});var b=c("AdsPEUploadStore").getSessionID();return c("flattenArray")(a.map(function(a){return a.errors.map(function(d){return o("validation_error_on_review",(d={fragment_id:a.fragmentID,action_session_id:b,error_type:(d.isServerError?"s-":"c-")+d.key,error_sub_code:d.key,error_message:d.message,blame_field_specs:c("normalizeErrorPath")(d.path),event_source:c("AdsPEUploadStore").getPreviewSource(),has_client_error:!0},d[a.idField]=a.id,d),c("PowerEditorEventCategory").UPLOAD)})}))},getLogsForDraftPublishCompleted:function(a,b,e){var f=a.response||{},g=[];if(d("AdsPEDraftPublishLoggerHelper").hasPublishError(f)){f=d("AdsPEDraftPublishLoggerHelper").getDraftPublishErrorData(a);g.push(o("publish_failed",babelHelpers["extends"]({},f,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD))}f=d("AdsPEDraftPublishLoggerHelper").getDraftFragmentPublishErrorsData(a);return g.concat(f.map(function(a){return o("publish_item_failed",babelHelpers["extends"]({},a,{immediate:b,object_creation_source:e}),c("PowerEditorEventCategory").UPLOAD)}))},measureUploadStart:function(){n._uploadStartTime=Date.now()},getTotalUploadTime:function(){return n._uploadStartTime&&n._uploadStartTime>0?Date.now()-n._uploadStartTime:null}};function o(a,b,c){return{category:c,data:b,eventName:a}}function p(a,b){var d=null,e=null;switch(b){case"campaign":d="campaign_group_error_on_start_publish";break;case"ad_set":d="campaign_error_on_start_publish";break;case"ad":d="adgroup_error_on_start_publish";break}i!=null&&(e=i.get(b).combinedErrorsSelector);if(!d||!e)return[];b=c("AdsErrorUtils").getAllErrorsAtLevel(e(a.id),c("AdsError").Level.WARN);return b.map(function(b){return o(d||"",{fragment_id:a.fragmentID,action_session_id:c("AdsPEUploadStore").getSessionID(),error_code:b.key,error_message:b.message,event_source:c("AdsPEUploadStore").getPreviewSource(),blame_field_specs:c("normalizeErrorPath")(b.path)},c("PowerEditorEventCategory").UPLOAD)})}function q(a,b,d,e,f){a=a?n.getTotalUploadTime():null;var g=c("sumOfArray")(b.valueSeq().toArray()),h=[],i=[];j.forEach(function(a){return c("AdsMgmtPerfScenarioController").getActiveScenarioIDsForScenario(a).forEach(function(b){h.push(b),i.push(a)})});a={current_action_time:a,current_action_ads_count:b.get("ad")||0,current_action_campaigns_count:b.get("ad_set")||0,current_action_campaign_groups_count:b.get("campaign")||0,current_action_items_count:g,client_error_messages:d,event_source:c("AdsPEUploadStore").getPreviewSource(),has_client_error:d.length>0,action_session_id:c("AdsPEUploadStore").getSessionID(),vital:!0,publish_ids:[f||""],active_scenario_ids:h,active_scenarios:i};e&&(a.ad_account_id=e);return a}e=n;g["default"]=e}),98);
-----
PowerEditorLoggingConstants",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";b={ADGROUP:"adgroup",CAMPAIGN_GROUP:"campaign_group",CAMPAIGN:"campaign",DRAFT:"draft"};var i=new Map([[b.ADGROUP,h._("u5e7fu544a")],[b.CAMPAIGN_GROUP,h._("u5e7fu544au7cfbu5217")],[b.CAMPAIGN,h._("u5e7fu544au7ec4")],[b.DRAFT,h._("u8349u7a3f")]]);function a(a){return i.get(a)||a}c={UPLOAD:"upload"};d="get_object";e="get_object_by_negative_id";g.ITEM_TYPE=b;g.getItemTypeLabel=a;g.FLOW=c;g.GET_OBJECT_API_ENDPOINT=d;g.GET_OBJECT_BY_NEGATIVE_ID_API_ENDPOINT=e}),98);
-----
AdsDeliveryContainerLoggingConstants",[],(function(a,b,c,d,e,f){"use strict";a="bp_landing_page_views_default_notice";b=0;f.BP_LANDING_PAGE_VIEWS_DEFAULT_NOTICE=a;f.DEFAULT_AUTOMATIC_OPTION_INDEX=b}),66);
-----
adsDeliveryContainerLoggingGetLoggingEventForFrequencyChangeForPublish",["AdsDeliveryContainerLoggingConstants","AdsInterfacesLogEvents"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case d("AdsDeliveryContainerLoggingConstants").DEFAULT_AUTOMATIC_OPTION_INDEX:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_PUBLISH_WITH_AUTOMATIC_OPTION;default:return c("AdsInterfacesLogEvents").Event.FREQUENCY_CONTROL_PUBLISH_WITH_CUSTOM_OPTION}}g["default"]=a}),98);
-----
AnalyticsLogger.brands",["AdsPerfTiming","ApiErrorHandler.brands","AppLogger.brands","GraphAPI","LoggingConstants.brands","ads-lib-connect_DEPRECATED"],(function(a,b,c,d,e,f,g){"use strict";var h=!1;function a(){i(c("AppLogger.brands").CATEGORY.HOMEPAGE_V3)}function b(a){var b=c("AppLogger.brands").CATEGORY.HOMEPAGE_V4;i(b,{pane:a})}function e(a){var b=c("AppLogger.brands").CATEGORY.SETTINGS_V2;i(b,{pane:a})}function i(a,b){if(h)return;h=!0;var e=Date.now()-d("AdsPerfTiming").start;c("AppLogger.brands").logForAnalytics(a,"app_init",babelHelpers["extends"]({current_action_time:e,actual_event_time:Date.now(),extra:window.performance&&window.performance.now&&window.performance.now()},b))}function f(a,b){if(a===b)return;var d=c("AppLogger.brands").CATEGORY.SETTINGS_V2;c("AppLogger.brands").logForAnalytics(d,"change_pane",{previous_tab:a,tab:b})}function j(a){if(a&&a.type==="http"&&a.message==="unknown error")return;c("AppLogger.brands").logError("javascript_error",{error_message:a.message,error_type:a.name,stack_trace:a.stack,error_data:JSON.stringify(a)})}function k(a,b){if(!d("ads-lib-connect_DEPRECATED").isError(a))return;a=a.error;if(!a)return;c("AppLogger.brands").logForAnalytics(c("AppLogger.brands").CATEGORY.API_CALL,"api_call_failed",{api_fields:b.fields&&JSON.stringify(b.fields),api_endpoint:l(b.endpoint),raw_endpoint:b.endpoint,error_code:a.code,error_sub_code:a.subcode,error_message:a.message,error_type:a.type})}function l(a){if(!a||a.length===0||a==="/")return a;a[0]==="/"&&(a=a.slice(1));a[a.length-1]==="/"&&(a=a.slice(0,-1));var b,c;b=/^[a-z/\_]+$/;c=a.match(b);if(c)return c[0];b=/^[0-9\_]+$/;c=a.match(b);if(c)return d("LoggingConstants.brands").GET_OBJECT_API_ENDPOINT;b=/^[0-9-]+$/;c=a.match(b);if(c)return d("LoggingConstants.brands").GET_OBJECT_BY_NEGATIVE_ID_API_ENDPOINT;b=/^act\_[0-9]+/(.+)+$/;c=a.match(b);if(c)return c[1];b=/^[0-9]+/(.+)+$/;c=a.match(b);if(c)return c[1];b=/.*facebook.com/[0-9]*/*(.+)?/;c=a.match(b);return c?c[1]:a}c("GraphAPI").hasCustomErrorHandler()||c("GraphAPI").addErrorHandler(c("ApiErrorHandler.brands").setDefaultHandler(j).handleApiError);g.logHomePageInteractive=a;g.logNewHomePageInteractive=b;g.logSettingsPageInteractive=e;g.logInteractive=i;g.logPaneChange=f;g.logJSError=j;g.logApiCall=k;g._getAPIEndPoint=l}),98);
-----
LoggingConstants.brands",[],(function(a,b,c,d,e,f){a="get_object";b="get_object_by_negative_id";f.GET_OBJECT_API_ENDPOINT=a;f.GET_OBJECT_BY_NEGATIVE_ID_API_ENDPOINT=b}),66);
-----
AdsBidStrategyLoggingUtils",["AdsBidStrategyLoggingConstants","AdsInterfacesLogger"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){c("AdsInterfacesLogger").log({eventName:c("AdsBidStrategyLoggingConstants").BID_STRATEGY_IS_NOT_THE_SAME,data:(d={event_source:d},d.new_value=b,d.old_value=a,d)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function b(a){c("AdsInterfacesLogger").log({eventName:c("AdsBidStrategyLoggingConstants").BID_STRATEGY_IS_NULL,data:{event_source:a}},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function h(a,b,d){c("AdsInterfacesLogger").log({eventName:a,data:(a={event_source:b},a.message=d,a)},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP)}function d(a,b,d){b=b.get("bid_strategy");d=d.get("bid_strategy");var e;b==null||d==null?e="not available":b.getValues().toString()===d.getValues().toString()?e="bid strategy did not change":e="different bid strategy.old bid strategy: "+b.getValues().toString()+", new bid strategy: "+d.getValues().toString();h(c("AdsBidStrategyLoggingConstants").BID_STRATEGY_CHANGED_BY_BILLING_EVENT,a,e)}g.logInconsistentBidStrategy=a;g.logNullBidStrategy=b;g.logFieldChange=h;g.logBidStrategyChangeByBillingEvent=d}),98);
-----
AdsBidStrategyLoggingConstants",["keyMirror"],(function(a,b,c,d,e,f,g){"use strict";a=c("keyMirror")({BID_STRATEGY_IS_NOT_THE_SAME:"",BID_STRATEGY_IS_NOT_THE_SAME_ON_CAMPAIGN_GROUP:"",BID_STRATEGY_IS_NULL:"",FLIP_IS_AUTOBID:"",BID_STRATEGY_CHANGED_BY_BILLING_EVENT:""});g["default"]=a}),98);
-----