Module 577381

955 characters · in a47768fc7477158e.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{i:()=>h});var l=n(627968),i=n(64700),r=n(877624),a=n(549996),s=n(562708),o=n(144165),u=n(262427),c=n(139286),d=n(726813);function p(e){let{componentId:t,promotionBannerMarketingComponentFields:n}=e;(0,c.A)({type:s.ImpressionTypes.VIEW,name:s.ImpressionNames.PREMIUM_MARKETING_COMPONENT,properties:{component_type:r.C.PAYMENT_MODAL_BANNER,component_id:t}});let i=(0,l.jsx)(o._,{src:n.assetUrl,width:48,height:48,zoomable:!1});return(0,l.jsx)(u.J,{className:d.No,customGraphic:i,text:n.body})}var m=n(937008),C=n(202541);function h(e){let{planSkuId:t,invoice:n}=e,{isGift:s}=(0,m.Pv)(),o=(0,a.c)(r.C.PAYMENT_MODAL_BANNER);return i.useMemo(()=>s||t!==C.pe.TIER_2||null==o||"paymentModalBanner"!==o.properties.properties.oneofKind||o.properties.contentIdentifier===C.iu&&n?.orbsReward!==C.Qm?null:(0,l.jsx)(p,{componentId:o.id,promotionBannerMarketingComponentFields:o.properties.properties.paymentModalBanner}),[s,t,o,n?.orbsReward])}}