import e from"react";import{Heading as t}from"../../Typography/Heading.js";import"../../../node_modules/prop-types/index.js";import{Video as r}from"../../Media/Video.js";import{Image as a}from"../../Media/Image.js";import n from"../../common/Breadcrumb/Breadcrumb.js";import{p as o}from"../../../_virtual/index.js_commonjs-module";var m=function(o){var m,l=o.type,i=o.heroText,s=o.mediaUrl,c=o.mediaType,p=o.mediaHref,d=o.onHeaderChange,g=o.breadcrumb;return e.createElement(e.Fragment,null,e.createElement("div",{className:"container secondary-header","com-type":l},e.createElement("div",{className:"row align-items-center h-100"},e.createElement("div",{className:"col-sm-12 col-md-12 col-lg-5 col-xl-5"},e.createElement("div",{className:"d-sm-block"},g&&e.createElement(n,{pathname:"/news-and-events/articles",title:"Back to News and Events"}),e.createElement(t,{onTextEditorChange:d,text:(m=i,m&&!m.includes("<p>")?"<p>"+m+"</p>":m),align:"left",fontSize:"65",wrapperStyle:{marginBottom:"52px"},lineHeight:"69",letterSpacing:-.4,textTransform:"lowercase",fontFamily:"Avenir Next Bold",lumo:"secondary-base"}))),e.createElement("div",{className:"col-sm-12 col-md-12 col-lg-7 col-xl-7 h-100"},null==s||""==s||null==c?e.createElement(e.Fragment,null):e.createElement(e.Fragment,null,"video"===c?e.createElement(r,{url:s,autoPlay:!0,mediaType:c}):e.createElement(a,{src:s[0],alt:i,maxHeight:"400",objectFit:"cover",href:p,mediaType:c}))))),e.createElement("style",{jsx:!0},"\n\n            .col-12 {\n                padding-top: 1rem;\n            }\n            @media (max-width: 991px) {\n                :global(.section-wrapper) {\n                    margin-top: 52px !important;\n                }\n            }\n            "))};m.propTypes={type:o.exports.string,heroText:o.exports.string,videoUrl:o.exports.string,mediaType:o.exports.string,mediaHref:o.exports.string,mediaUrl:o.exports.arrayOf(o.exports.string),onHeaderChange:o.exports.func};export default m;
//# sourceMappingURL=SecondaryHeader.js.map
