import e from"react";import"../../../node_modules/prop-types/index.js";import r from"../../common/Slider/Slider.js";import{p as t}from"../../../_virtual/index.js_commonjs-module";var a=function(t){var a=t.type,n=t.mediaUrl,s=t.mediaType,i=t.account;try{JSON.parse(n)}catch(e){[n]}return e.createElement("div",{className:"primary-header","com-type":a},e.createElement("div",{className:"row align-items-center"},e.createElement("div",{className:"col-12 position-relative"},e.createElement("div",{className:"header-media-wrapper"},function(){if(null==n||0==n.length||null==s)return e.createElement(e.Fragment,null);try{JSON.parse(n)}catch(e){[n]}var t=n.map((function(e,r){return{url:e.includes(i.assetsEndpoint)?e:i.assetsEndpoint+e,heroText:""}}));return e.createElement("div",{className:"slider header"},e.createElement(r,{images:t}))}()))))};a.propTypes={type:t.exports.string,heroText:t.exports.string,imageUrl:t.exports.string,mediaType:t.exports.string,mediaUrl:t.exports.arrayOf(t.exports.string),onHeaderChange:t.exports.func};export default a;
//# sourceMappingURL=SliderHeader.js.map
