-
Notifications
You must be signed in to change notification settings - Fork 0
/
6354.8d0156c9544832683d0d.js
1 lines (1 loc) · 2.63 KB
/
6354.8d0156c9544832683d0d.js
1
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6354],{56354:function(e,a,t){t.d(a,{N:function(){return d}});var n=t(25773),r=t(18808),o=t(55175),l=t(34864),i=t(27378),s=t(40251),c=t(37305),p=t(92361),m=t(43415);var d=function(e){var a=e.align,t=e.beforeCtaContent,d=e.beforeEyebrowContent,y=e.beforeHeaderContent,b=e.beforeSubCopyContent,h=e.children,u=e.className,C=e.componentClassName,f=e.copy,v=e.copyProps,g=e.ctaProps,x=e.eyebrow,N=e.eyebrowProps,k=e.header,E=e.headerProps,P=e.subCopy,w=e.subCopyProps,V=e.textProps,Z=e.theme,_=e.variant,A=(0,r.Z)(e,["align","beforeCtaContent","beforeEyebrowContent","beforeHeaderContent","beforeSubCopyContent","children","className","componentClassName","copy","copyProps","ctaProps","eyebrow","eyebrowProps","header","headerProps","subCopy","subCopyProps","textProps","theme","variant"]),H=function(e){var a=e.variant,t=void 0===a?"default":a,n=e.isDarkTheme,r=void 0!==n&&n,o={};return"default"===t?(o.headerAndCopyVariant="heading-500",o.subCopyVariant="sub-heading-400",o.ctaVariant="heading-300",o.copyColor=r?s.G.grey400:s.G.grey500):"uniform"===t&&(o.headerAndCopyVariant="heading-400",o.subCopyVariant="body-copy-500",o.ctaVariant="button-500"),o.textColorFallback=r?s.G.white:s.G.black,o}({variant:_,isDarkTheme:"dark"===Z}),G=H.headerAndCopyVariant,T=H.subCopyVariant,F=H.ctaVariant,I=H.textColorFallback,S=H.copyColor;return i.createElement(c.W,(0,n.Z)({className:(0,o.A)(C,u),textAlign:a},A),d&&d,(x||N)&&i.createElement(p.x,(0,n.Z)({className:"headline-sub-copy",element:"h3",color:S||I,variant:"sub-heading-400",text:x,m:0,display:"block"},f||v||k||E?{cmb:{0:3,768:2,1024:1}}:{},V,N)),y&&y,(k||E)&&i.createElement(p.x,(0,n.Z)({className:"headline-header",variant:G,element:"h2",color:I,text:k,fixOrphans:!1,m:0,display:"inline",fontWeight:"500"},V,E)),(f||v)&&i.createElement(i.Fragment,null,i.createElement(p.x,{variant:V&&(0,l.w)(V,"variant")?V.variant:G,element:"span",m:0},i.createElement("span",{dangerouslySetInnerHTML:{__html:" "}})),i.createElement(p.x,(0,n.Z)({className:"headline-copy",element:"p",color:S||I,variant:G,text:f,m:0,display:"inline",fontWeight:"500"},V,v))),b&&b,(P||w)&&i.createElement(p.x,(0,n.Z)({className:"headline-sub-copy",element:"p",color:S||I,variant:T,text:P,m:0,display:"block"},f||v||k||E?{cmt:{0:3,768:2,1024:1}}:{},g?{cmb:{0:1.5,768:1,1024:.5}}:{},V,w)),t&&t,g&&i.createElement(m.k,(0,n.Z)({className:"headline-cta",align:a,location:"body",actionType:"follow",textVariant:F,appearance:"pink"},g)),h&&h)};d.displayName="HeadlinesInline",d.defaultProps={align:"left",componentClassName:"headlines-inline",theme:"light",variant:"default"},d.displayName="HeadlinesInline"}}]);