import{__assign as e}from"../../node_modules/tslib/tslib.es6.js";import n,{useState as t,useEffect as r}from"react";import{DEFAULT_BLOC_PROPERTIES as i}from"../Bloc/BlocProperties.js";import{Paragraph as o}from"../Typography/Paragraph/Paragraph.js";import"../Typography/Paragraph/Paragraph-utils.js";import{PropsGeneratorForGivenComponent as a}from"../../prop-utils.js";import{NewsEventItemContainer as l}from"@/components/NewsEventItem/news-event-item-container";import s from"../../node_modules/react-image-masonry/build/index.js";var p,m=e(e({},i),{title:"Replace this text...",content:"Replace this text...",category:"",filledIn:"",publishedOn:"",author:"",images:[],pdf:"",video:""}),d=(p=a({title:"Replace this text"},["title","content","category","filledIn"],[])).propsGenerator,c=p.propsParser;export default function(e){e.editorMode;var i=e.title,a=e.content,p=e.publishedOn,m=e.category,d=e.filledIn,c=e.author,g=e.onNewsArticleChange,f=e.images,h=e.pdf,u=e.video,x=t(window.innerWidth),y=x[0],w=x[1];r((function(){window.addEventListener("resize",(function(){w(window.innerWidth)}))}));var b=function(e){var n=e.properties;g({properties:{title:i,content:n.content,category:m,filledIn:d,publishedOn:p,author:c,images:f,pdf:h,video:u}})};return n.createElement(n.Fragment,null,n.createElement(n.Fragment,null,n.createElement(l,{filledIn:d,publishedOn:p,filledInUrl:"",relatedCategories:"",relatedCategoriesLink:""},n.createElement(o,{content:a,onTextEditorChange:b,align:"left",fontSize:"1.3125rem",lineHeight:"30.03px",fontFamily:"Bressay, Sukhumvit Set",letterSpacing:"0",textTransform:"normal",lumo:"primary-dark"}),f&&f.length>1?n.createElement(s,{imageUrls:f,numCols:y<600?1:2,containerWidth:"100%"}):n.createElement("img",{src:f?f[0]:""}),u&&n.createElement("iframe",{style:{textAlign:"center"},width:"550",height:"309",src:u,frameBorder:"0"})),n.createElement("style",null,"\n        .news-article-image-wrapper {\n          max-height: 375px;\n          max-width: 675px;\n        }\n\n        .Heading__breadcrumb {\n          padding-left: 11px;\n          width: 100%;\n          position: relative;\n          z-index: 1;\n          margin-bottom: 25px;\n          margin-top: 15px;\n        }\n\n        .Link {\n          text-decoration: underline;\n        }\n\n        .Link__icon {\n            flex: none;\n            line-height: 1;\n\n        }\n\n        .Link__inner {\n          font: 600 13px/1.38 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;\n          letter-spacing: .1108em;\n          color: #002C77;\n          font-size: 14px;\n          text-transform: uppercase;\n          cursor: pointer;\n        }\n\n        .arrow {\n            display: inline-block;\n        }\n\n        .left {\n          transform: rotate(130deg);\n          -webkit-transform: rotate(130deg);\n        }\n\n      ")))}export{m as DEFAULT_NEWS_ARTICLE_CONTENT,d as newsArticleContentPropsGenerator,c as newsArticleContentPropsParser};
//# sourceMappingURL=NewsArticleContent.js.map
