1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[747,483],{1483:function(e,t,l){l.r(t);var a=l(5893),n=l(1481),s=l(1163),d=l(7294),i=l(1210),r=l(727),o=l(5363);function NewsDate(e){let{dateStart:t,dateEnd:l}=e,{locale:n}=(0,s.useRouter)(),d=t,i=new Date(t).getFullYear()===new Date().getFullYear(),r={day:"numeric",month:"short",year:i?void 0:"numeric"};return t&&!l&&(d=new Date(t).toLocaleDateString(n,r)),t&&l&&(d=new Date(t).toLocaleDateString(n,{...r,year:void 0})+" â "+new Date(l).toLocaleDateString(n,r)),(0,a.jsx)("div",{className:"h3",children:d})}t.default=function(e){var t,l,s,c,u,h,x,v,m,p,j;let{blok:b,idx:w}=e,[_,N]=(0,d.useState)(!1),f=null===(l=b.button)||void 0===l?void 0:null===(t=l[0])||void 0===t?void 0:t.link,g=(null==f?void 0:f.linktype)==="story"?"".concat("https://www.nuwa.swiss","/").concat(f.story.full_slug):null==f?void 0:f.url;return(0,a.jsxs)(a.Fragment,{children:[b.date_start?(0,a.jsx)(o.hg,{item:{"@context":"https://schema.org","@type":"Event",name:b.headline,about:null===(h=b.text)||void 0===h?void 0:null===(u=h.content)||void 0===u?void 0:null===(c=u[0])||void 0===c?void 0:null===(s=c.content)||void 0===s?void 0:s[0].text,startDate:b.date_start,endDate:b.date_end,url:g}}):(0,a.jsx)(o.hg,{item:{"@context":"https://schema.org","@type":"NewsArticle",headline:b.headline,articleBody:null===(p=b.text)||void 0===p?void 0:null===(m=p.content)||void 0===m?void 0:null===(v=m[0])||void 0===v?void 0:null===(x=v.content)||void 0===x?void 0:x[0].text,url:g}}),(0,a.jsxs)("button",{type:"button",onClick:()=>N(!0),className:"block h-full md:px-6 text-center cursor-pointer".concat(0!==w?" md:border-l border-brand-black":""),children:[b.date_start&&(0,a.jsx)(d.Suspense,{fallback:(0,a.jsx)("p",{children:"loading ..."}),children:(0,a.jsx)(NewsDate,{dateStart:b.date_start,dateEnd:b.date_end})}),b.headline&&(0,a.jsx)("h3",{className:"text-base font-sans",children:b.headline})]}),_&&(0,a.jsx)(i.Z,{onClose:()=>N(!1),size:"small",children:(0,a.jsxs)("div",{className:"p-8",children:[b.date_start&&(0,a.jsx)(NewsDate,{dateStart:b.date_start,dateEnd:b.date_end}),b.headline&&(0,a.jsx)("h3",{className:"text-base font-sans font-semibold",children:b.headline}),b.text&&(0,a.jsx)("div",{className:"richtext mb-6",children:(0,a.jsx)(r.Z,{text:b.text})}),null===(j=b.button)||void 0===j?void 0:j.map(e=>(0,a.jsx)(n.Xj,{blok:e},e._uid))]})})]})}},4747:function(e,t,l){l.r(t);var a=l(5893),n=l(7677);l(3666);var s=l(1481),d=l(6030),i=l(5735),r=l(1483),o=l(8811);t.default=function(e){var t;let{blok:l}=e,c=(0,o.a)("(min-width: 1024px)"),u=null===(t=l.news)||void 0===t?void 0:t.filter(e=>!e.hidden);return(null==u?void 0:u.length)?(0,a.jsx)("div",{className:"container grid-12",...(0,s.LF)(l),children:(0,a.jsxs)("div",{className:"col-span-full flex items-stretch",children:[l.headline&&(0,a.jsx)("h2",{className:"hidden md:flex items-center h-full pr-8 border-r border-brand-black",children:l.headline}),(0,a.jsx)(n.tv,{hasTrack:!1,options:{perPage:c?2:1,focus:0,omitEnd:!0,padding:{right:c?"10rem":null}},className:"w-full",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(n.Gj,{children:u.map((e,t)=>(0,a.jsx)(n.jw,{children:(0,a.jsx)(r.default,{blok:e,idx:t})},e._uid))}),(0,a.jsxs)("div",{className:"splide__arrows absolute hidden md:flex -bottom-4 right-8 bg-black",children:[(0,a.jsxs)("button",{className:"splide__arrow splide__arrow--prev px-4 py-2 text-white disabled:opacity-25",children:[(0,a.jsx)(d.GN,{icon:i.wK6}),(0,a.jsx)("span",{className:"sr-only",children:"Previous"})]}),(0,a.jsxs)("button",{className:"splide__arrow splide__arrow--next px-4 py-2 text-white disabled:opacity-25",children:[(0,a.jsx)(d.GN,{icon:i.jmi}),(0,a.jsx)("span",{className:"sr-only",children:"Next"})]})]})]})})]})}):null}}}]);
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.