Module 371764

1,383 characters · in 8e06c0ab4fcf7182.js
Dependencies
Required by (3)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,s){s.d(t,{x:()=>E});var a=s(627968);s(64700);var i=s(562708),n=s(877624),r=s(403581),l=s(534514),c=s(834730),o=s(232582),d=s(821609),u=s(349288),m=s(212245),A=s(688810),N=s(139286),p=s(498470),g=s(637706),x=s(975841);let E=e=>{let{componentId:t,promotionBannerMarketingComponentFields:s}=e,{analyticsLocations:E}=(0,A.Ay)(),h=(0,m.p)();(0,N.A)({type:i.ImpressionTypes.VIEW,name:i.ImpressionNames.PREMIUM_MARKETING_COMPONENT,properties:{component_type:n.C.MARKETING_PAGE_BANNER,component_id:t}});let f=(0,p.h)({buttonAction:s.button?.buttonAction??o.dz.OPEN_TIER_2_PAYMENT_MODAL,deeplinkSection:s.button?.deeplinkSection,analyticsLocations:E,analyticsLocation:h.location}),C=(0,g.a)(s.body),R=(0,g.C)(s.helpArticle,s.helpArticleId);return(0,a.jsxs)("div",{className:x.kL,children:[(0,a.jsx)("div",{className:x.LY,children:(0,a.jsx)("img",{src:s.assetUrl,className:x.ot,alt:""})}),(0,a.jsxs)("div",{className:x.IH,children:[(0,a.jsx)(l.D,{variant:"heading-md/semibold",color:"text-strong",children:s.header}),(0,a.jsxs)(c.E,{variant:"text-md/medium",color:"text-subtle",className:x.tb,children:[C,null!=R&&(0,a.jsxs)(a.Fragment,{children:["\xa0",(0,a.jsx)(u.Anchor,{className:x.$T,href:R.url,children:R.linkText})]})]})]}),null!=s.button&&(0,a.jsx)("div",{className:x.UD,children:(0,a.jsx)(d.$,{variant:"expressive",size:"md",onClick:f,text:s.button.copy,icon:r.t})})]})}}