1"use strict";(globalThis.webpackChunk_danishagro_cms=globalThis.webpackChunk_danishagro_cms||[]).push([[7166],{2719(e,t,r){r.r(t),r.d(t,{default:()=>v});var n=r(1462),s=r(3167),i=r(3032),a=r(7768),l=r(4800),o=r(8620),c=r(1594),d=r(1879),u=r(9162);const g={wrapper:"Events_wrapper__By+rf",imageWrapper:"Events_imageWrapper__2qbbA",tags:"Events_tags__VYdfj",tag:"Events_tag__OUIW1",tagNews:"Events_tagNews__G+4qF",tagPress:"Events_tagPress__keoCM",tagPartnership:"Events_tagPartnership__OZFh-",inner:"Events_inner__oyWvh",image:"Events_image__TpKN1",textWrapper:"Events_textWrapper__fdqPH",title:"Events_title__XF2u1"};var h=r(9334);const v=e=>{var t;const{getDictionaryString:r}=(0,c.c)(),[v,p]=(0,s.Wx)({triggerOnce:!1,threshold:.3,rootMargin:"0px -80px 0px 0px"}),_=!0===p?"in_view":void 0,{tagClass:f}=(b=e.tags[0],m=g,{tagClass:(0,n.useMemo)(()=>{switch(b){case"News":return m.tagNews;case"Press":return m.tagPress;case"Partnership":return m.tagPartnership}},[b,m])});var b,m;const w=(0,d.A)(null===e||void 0===e?void 0:e.publishedDate);return(0,h.jsx)("div",{className:(0,a.cn)(g.wrapper,v,_,e.className),ref:v,children:(0,h.jsxs)("div",{className:g.inner,children:[(0,h.jsxs)("div",{className:g.imageWrapper,children:[e.thumbnail?(0,h.jsx)(u.a,{src:(0,o.L)(null===e||void 0===e||null===(t=e.thumbnail)||void 0===t?void 0:t.url),className:g.image}):null,e.tags?(0,h.jsx)("div",{className:g.tags,children:e.tags.map((e,t)=>(0,h.jsx)("div",{className:(0,a.cn)(g.tag,f),children:e},t))}):null]}),(0,h.jsxs)("div",{className:g.textWrapper,children:[e.publishedDate?(0,h.jsx)("span",{children:w}):null,e.title?(0,h.jsx)("div",{className:g.title,children:(0,h.jsx)(i.je,{h3:!0,tag:i.Nw.H3,noMargin:!0,children:e.title})}):null,e.url?(0,h.jsx)("div",{children:(0,h.jsx)(l.r,{title:r("General.Read"),href:e.url,target:"_blank"})}):null]})]})})}},3167(e,t,r){r.d(t,{Wx:()=>g});var n=r(1462),s=Object.defineProperty,i=(e,t,r)=>(((e,t,r)=>{t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),a=new Map,l=new WeakMap,o=0,c=void 0;function d(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(r=e.root,r?(l.has(r)||(o+=1,l.set(r,o.toString())),l.get(r)):"0"):e[t]}`;var r}).toString()}function u(e,t,r={},n=c){if("undefined"===typeof window.IntersectionObserver&&void 0!==n){const s=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"===typeof r.threshold?r.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:s,observer:i,elements:l}=function(e){let t=d(e),r=a.get(t);if(!r){const n=new Map;let s;const i=new IntersectionObserver(t=>{t.forEach(t=>{var r;const i=t.isIntersecting&&s.some(e=>t.intersectionRatio>=e);e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=i),null==(r=n.get(t.target))||r.forEach(e=>{e(i,t)})})},e);s=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:n},a.set(t,r)}return r}(r);let o=l.get(e)||[];return l.has(e)||l.set(e,o),o.push(t),i.observe(e),function(){o.splice(o.indexOf(t),1),0===o.length&&(l.delete(e),i.unobserve(e)),0===l.size&&(i.disconnect(),a.delete(s))}}n.Component;function g({threshold:e,delay:t,trackVisibility:r,rootMargin:s,root:i,triggerOnce:a,skip:l,initialInView:o,fallbackInView:c,onChange:d}={}){var g;const[h,v]=n.useState(null),p=n.useRef(),[_,f]=n.useState({inView:!!o,entry:void 0});p.current=d,n.useEffect(()=>{if(l||!h)return;let n;return n=u(h,(e,t)=>{f({inView:e,entry:t}),p.current&&p.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)},{root:i,rootMargin:s,threshold:e,trackVisibility:r,delay:t},c),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,h,i,s,a,l,r,c,t]);const b=null==(g=_.entry)?void 0:g.target,m=n.useRef();h||!b||a||l||m.current===b||(m.current=b,f({inView:!!o,entry:void 0}));const w=[v,_.inView,_.entry];return w.ref=w[0],w.inView=w[1],w.entry=w[2],w}}}]); 2//# sourceMappingURL=blocks18.70a84c32.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.