PageSourceSearch

https://aulainfo.dk/_next/static/chunks/8626.ed9cd7abee01ed7e.js

js aulainfo.dk collected 2026-10-02 03:38:00 UTC 6,514 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8626],{41876:e=>{e.exports={news_wrapper:"NewsList_news_wrapper__wgA8b",main_content:"NewsList_main_content__Ffvew",cards_wrapper:"NewsList_cards_wrapper__0c8Ty",is_expanded:"NewsList_is_expanded__Say0t",filter_wrapper:"NewsList_filter_wrapper__Cq7v2",filters:"NewsList_filters__YrgrQ",filters_title:"NewsList_filters_title___UcMy",pagination_wrapper:"NewsList_pagination_wrapper__2KlsE",news_container:"NewsList_news_container__oTgl_",news_list:"NewsList_news_list__jjYzZ",my_masonry_grid:"NewsList_my_masonry_grid__OVGU4",filter_button:"NewsList_filter_button__8e7B7",mobile_filter_button:"NewsList_mobile_filter_button__a1Rsk",icon:"NewsList_icon__3fndM",button_wrapper:"NewsList_button_wrapper__XfYkE",pagination_button:"NewsList_pagination_button__nfHNU",filter_section:"NewsList_filter_section__GWSjX",filter_section_btn:"NewsList_filter_section_btn__NEMpS",filter_list:"NewsList_filter_list___7dZv",is_open:"NewsList_is_open__sCOUx"}},70455:(e,t,a)=>{"use strict";a.d(t,{Ay:()=>i});let s=e=>{let t=e.getDate().toString().padStart(2,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),s=e.getFullYear();return"".concat(t,"-").concat(a,"-").concat(s)},r=e=>{let t=e.getHours().toString().padStart(2,"0"),a=e.getMinutes().toString().padStart(2,"0");return"".concat(t,":").concat(a)},n=e=>new Intl.DateTimeFormat("da-DK",{day:"numeric",month:"long",year:"numeric"}).format(e),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Date(e),l=a?n(i):s(i),_=r(i);return t?"".concat(l," ").concat(_):l}},98626:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>C});var s=a(95155),r=a(35543),n=a(12115),i=a(41876),l=a.n(i),_=a(52243),c=a(60760),o=a(48599),d=a(20212),u=a(67298),p=a(50985);let g=e=>{if(!e||!(e.length>0))return null;{let t={};return e.forEach(e=>{e.tags&&e.tags.length>0&&e.tags.forEach(e=>{t[e.text]?t[e.text]++:t[e.text]=1})}),Object.keys(t).map(e=>({value:e,amount:t[e]}))}},h=(e,t,a)=>{if(!e||!(e.length>0)||!t||!(t.length>0))return e;{let s=t.map(e=>e.value),r=e.filter(e=>e.tags&&s.every(t=>e.tags.some(e=>e.text===t)));return a(Array.from(new Set(r.flatMap(e=>e.tags?e.tags.map(e=>e.text):[]).filter(e=>!s.includes(e))))),r}};var m=a(78625),w=a(62758),f=a(99505),N=a.n(f),v=a(6874),x=a.n(v),j=a(70455),y=a(55669);let b=(0,n.forwardRef)((e,t)=>{var a,r;let n=e.tags&&e.tags.length>0?e.tags:null;return(0,s.jsx)("div",{className:N().wrapper,children:(0,s.jsxs)(x(),{"aria-label":"G\xe5 til "+(null!==(a=e.urlPath)&&void 0!==a?a:e.title),href:null!==(r=e.urlPath)&&void 0!==r?r:"",passHref:!0,ref:t,children:[(0,s.jsxs)("div",{className:N().media,children:[(0,s.jsx)("span",{className:N().date,children:(0,j.Ay)(e.customDate?e.customDate:e.publishedDate,!1,!0)}),(0,s.jsx)("div",{className:N().tags,children:(null==n?void 0:n.length)?n.map((e,t)=>(0,s.jsx)("p",{className:N().tag,children:e.text},"".concat(e.group,"-").concat(t))):null})]}),(0,s.jsx)("h2",{className:N().heading,children:e.title}),(0,s.jsx)(y.A,{className:N().bodytext,innerHtml:e.shortDescription})]})})});b.displayName="NewsCard";var L=a(35695),A=a(26428);let C=e=>{let{activeTags:t,setActiveTags:a,tabExpanded:i,paginationStep:f,setPaginationStep:N,possibleTags:v,setPossibleTags:x,selectedCards:j,setSelectedCards:y,totalCards:C,setTotalCards:S,setMoreCardTrigger:E,isFilterAnimation:T,setIsFilterAnimation:k,pageType:U}=(0,m.A)(),{newsData:D}=(0,u.U)(),M=e.content.properties.articlesOrUpdates,R=(0,n.useMemo)(()=>{var e;return null!==(e="Updates"===M&&D&&D.updates.json&&D.updates.json.length>0?D.updates.json:"Articles"===M&&D&&D.articles.json&&D.articles.json.length>0?D.articles.json:void 0)&&void 0!==e?e:[]}
1,[D]),O=(0,L.useRouter)(),P=(0,L.usePathname)(),V=(0,L.useSearchParams)(),H=(0,n.useRef)(null),B=g(R);(0,n.useEffect)(()=>{var e;let t=(null==V?void 0:null===(e=V.get("tags"))||void 0===e?void 0:e.split(","))||[];t.length>0&&B&&a(B.filter(e=>t.includes(e.value))),R&&y(R)},[]),(0,n.useEffect)(()=>{B&&Array.isArray(t)&&0===t.length&&x(["all"])},[t]);let F=(0,n.useRef)([]),W=(0,n.useCallback)(()=>{k(!1);let e=t.map(e=>e.value);if(O.replace("".concat(P,"?").concat(null==e?void 0:e.toString()),{scroll:!1}),setTimeout(()=>{k(!0)},100),R&&R.length>0){let e=h(R,t,x);e&&(y(e.slice(0,6*f)),S(e.length))}},[t,f,6,R]),Y=(0,n.useCallback)(()=>{H.current&&t&&t.length>0&&H.current.scrollIntoView({behavior:"smooth"})},[t]);(0,n.useEffect)(()=>{e.content.properties.filter&&W()},[t,W]),(0,n.useEffect)(()=>{Y()},[Y]);let G=()=>{N(f+1),E(!0),setTimeout(()=>{var e,t;let a=F.current[6*f];null==a||null===(t=a.current)||void 0===t||null===(e=t.querySelector("a"))||void 0===e||e.focus()},100)},I=()=>{if(!j||j.length<=0)return null;let e=i?l().is_expanded:"";return(0,s.jsxs)("div",{className:l().main_content,children:[(0,s.jsx)(_.P.div,{className:(0,d.A)(l().cards_wrapper,e),children:(0,s.jsx)(c.N,{children:(0,s.jsx)("div",{className:l().my_masonry_grid,children:j.map((e,t)=>(t===6*f&&(F.current[t]=F.current[t]||(0,n.createRef)()),(0,s.jsx)(_.P.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},layout:"position",transition:{opacity:{duration:.4},scale:{duration:.2},layout:{duration:.4}},children:(0,s.jsx)("div",{ref:e=>{F.current[t]=F.current[t]||(0,n.createRef)(),F.current[t].current=e},children:(0,s.jsx)(b,{...e})})},t)))})})}),j.length<C&&(0,s.jsx)("div",{className:l().pagination_wrapper,children:(0,s.jsx)("button",{onClick:G,className:l().pagination_button,"aria-label":"Vis 6 mere opdateringer",children:(0,s.jsx)("span",{children:(0,s.jsx)(o.A,{name:"SHOW_MORE_BUTTON_LABEL"})})})})]})},X=t&&t.length>0;return(0,s.jsx)(r.t,{children:(0,s.jsx)(p.A,{...e.settings,contentWidth:"Small ( 60% )",children:(0,s.jsx)(_.P.div,{layout:!0,className:(0,d.A)(l().news_wrapper,i?l().expanded:""),ref:H,children:e.content.properties.filter?(0,s.jsx)(w.A,{filterTagChildren:(0,s.jsx)("div",{className:l().filter_wrapper,children:(0,s.jsx)("div",{className:l().filters,children:B&&B.length>0?B.map(e=>(0,s.jsx)(A.A,{value:e.value,amount:e.amount,activeTags:t,setActiveTags:a,possibleTags:v},e.value)):null})}),cardsChildren:I(),resetTags:()=>{a([])},filterActive:X,isFilterAnimation:T}):I()})})})}},99505:e=>{e.exports={wrapper:"NewsCard_wrapper__xJtV5",media:"NewsCard_media__jhl4I",tags:"NewsCard_tags__X9hch",tag:"NewsCard_tag__BNhJw",heading:"NewsCard_heading__V4_WQ",date:"NewsCard_date__wVyUm",bodytext:"NewsCard_bodytext__kzloE"}}}]);

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.