PageSourceSearch

https://www.ucn.dk/dist/event-list.6c54189d.js

js ucn.dk collected 2026-10-01 12:31:52 UTC 11,476 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkucn=self.webpackChunkucn||[]).push([[6998],{2085:function(e,n,r){r.d(n,{EventList:function(){return f}});var t=r(4848),l=r(6540),c=r(5440),o=r(9208),a=r(1439),i=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,l,c=r.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(t=c.next()).done;)o.push(t.value)}catch(e){l={error:e}}finally{try{t&&!t.done&&(r=c.return)&&r.call(c)}finally{if(l)throw l.error}}return o},s=r(3156),u=r(3516),d=r(7873),h=function(){return h=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var l in n=arguments[r])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},h.apply(this,arguments)},f=function(e){var n=e.pageTypeTags,r=e.showFilters,f=e.dictionary,v=e.locale,p=e.pageSize,j=e.headline,m=e.content,x=(0,l.useMemo)(function(){return function(e){var n=Array.from(Array((new Date).getFullYear()-e),function(n,r){return(r+e).toString()});return n.push((new Date).getFullYear().toString()),n.reverse()}(2010)},[]),y=(0,l.useMemo)(function(){return function(e){for(var n=[],r=new Date,t=0;t<12;++t)r.setMonth(t),n.push({value:"".concat(t+1).padStart(2,"0"),label:r.toLocaleString(e,{month:"long"})});return n}(v)},[]),b=function(e,n,r){var t=(0,l.useMemo)(function(){return{method:"GET"}},[]),s=i((0,l.useState)(""),2),u=s[0],d=s[1],h=i((0,l.useState)(""),2),f=h[0],v=h[1],p=i((0,l.useState)(!1),2),j=p[0],m=p[1],x=(0,a.Ay)(function(l,c){var a;return c&&!(null===(a=null==c?void 0:c.collection)||void 0===a?void 0:a.length)?null:e?["".concat(o.H.eventList,"?contentTags=").concat(e,"&pageNumber=").concat(l+1,"&pageSize=").concat(r||50,"&year=").concat(f,"&month=").concat(u,"&locale=").concat(n),t]:null},c.m),y=x.data,b=x.error,g=x.isValidating,_=x.mutate,w=x.size,O=x.setSize;return{pageTypeCollection:y,isLastPage:!!(null==y?void 0:y.find(function(e){return!e.hasNextPage})),error:b,isValidating:g,mutate:_,size:w,setSize:O,setMonth:function(e){d(e),m(!0)},setYear:function(e){v(e),m(!0)},month:u,year:f,filtersChanged:j}}(n,v,p),g=b.pageTypeCollection,_=b.isLastPage,w=b.error,O=b.setSize,N=b.isValidating,S=b.setMonth,C=b.setYear,P=b.month,z=b.year,L=b.filtersChanged;return w?(console.log({error:w}),null):0!==(null==g?void 0:g.flatMap(function(e){return e.collection}).length)||L?(0,t.jsxs)(s.jZ,{children:[(j||m)&&(0,t.jsxs)("div",{className:"module-text module-text--no-pad",children:[j&&(0,t.jsx)("h2",{className:"h2",children:j}),m&&(0,t.jsx)("div",{className:"richtext",dangerouslySetInnerHTML:{__html:m}})]}),r&&(0,t.jsxs)(s.s1,{children:[(0,t.jsxs)(u.l,{label:f.month,onChange:function(e){return S("clear"===e?"":e)},children:[(0,t.jsx)(u.c,{value:"clear",children:P?(0,t.jsx)("span",{className:"text-bold",children:f.clear}):f.month},"select-month-clear"),y.map(function(e){return(0,t.jsx)(u.c,{value:e.value,label:e.label,className:"select__option event-list__dropdown-months",children:e.label},"select-month-".concat(e.value))})]}),(0,t.jsxs)(u.l,{label:f.year,onChange:function(e){return C("clear"===e?"":e)},children:[(0,t.jsx)(u.c,{value:"clear",children:z?(0,t.jsx)("span",{className:"text-bold",children:f.clear}):f.year},"select-month-clear"),x.map(function(e){return(0,t.jsx)(u.c,{value:"".concat(e),label:"".concat(e),children:e},"select-year-".concat(e))})]})]}),(0,t.jsx)(s.P6,{keyPrefix:"event-list",collection:null==g?void 0:g.flatMap(function(e){return e.collection}),renderEntry:function(e){return(0,t.jsx)(d.m,h({},e,{pageTypeName:e.trumpet||"­",width:[390,510,270,245,295,345],height:[190,195,195,195,195,195],useRatio:!0}))}}),!_&&(0,t.jsx)(s.Cs,{disable:N,onClick:function(){return O(function(e){return e+1})},children:(null==f?void 0:f.loadMore)&&(null==f?void 0:f.loadMore)})]}):null}},5767:function(e,n,r){r.d(n,{F:function(){return s}});var t=r(4848),l=r(6540),c=r(8719),o=r(3700),a=function(){return a=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var l in n=arguments[r])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},a.apply(this,arguments)},i=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,l,c=r.call(e),o=[];try{for(;(void 0===n||n-- >0)&&!(t=c.next()).done;)o.push(t.value)}catch(e){l={error:e}}finally{try{t&&!t.done&&(r=c.return)&&r.call(c)}finally{if(l)throw l.error}}return o},s=function(e){var n,r=e.autoFitToContainer,s=e.height,u=e.children,d=e.hide
1Scrollbar,h=null===(n=null==r?void 0:r.current)||void 0===n?void 0:n.clientWidth,f=i((0,l.useState)("auto"),2),v=f[0],p=f[1],j=(0,l.useCallback)(function(){var e;if(h){var n=null===(e=null==r?void 0:r.current)||void 0===e?void 0:e.clientWidth;p(n?"".concat(n,"px"):"auto")}},[r,h]);return(0,l.useLayoutEffect)(function(){j();var e=(0,o.n)(100,j);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}},[j]),(0,t.jsxs)(c.bL,{className:"scroll-area",children:[(0,t.jsx)(c.LM,{className:"scroll-area__viewport",style:a({width:"".concat(v)},s&&{maxHeight:"".concat(s,"px")}),children:u}),!d&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.Ze,{className:"scroll-area__scrollbar",orientation:"vertical",children:(0,t.jsx)(c.zi,{className:"scroll-area__thumb"})}),(0,t.jsx)(c.Ze,{className:"scroll-area__scrollbar",orientation:"horizontal",children:(0,t.jsx)(c.zi,{className:"scroll-area__thumb"})}),(0,t.jsx)(c.OK,{className:"scroll-area__corner"})]})]})}},3156:function(e,n,r){r.d(n,{P6:function(){return m},s1:function(){return x},Cs:function(){return y},jZ:function(){return j}});var t=r(4848),l=r(6540),c=r(9556),o=r(4982),a=r(3023),i=function(e){var n=e.children;return(0,t.jsx)(t.Fragment,{children:n})},s=r(7166),u=r(3840),d=r(788),h=r(2105),f=r(876),v=function(){return v=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var l in n=arguments[r])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},v.apply(this,arguments)},p=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]])}return r},j=function(e){var n,r=e.children,l=e.columnSizes;return(0,t.jsx)(c.j,{children:(0,t.jsx)("div",{className:"collection container",children:(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)("div",{className:"col-12",children:(0,t.jsx)("div",{className:"collection__bg",children:(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)("div",{className:"".concat(null!==(n=(0,h.T)(l))&&void 0!==n?n:"col-11 col-md-10"," collection__column"),children:(0,t.jsx)("div",{className:"collection__container",children:r})})})})})})})})},m=function(e){var n=e.defaultCardType,r=e.collection,l=e.showLoader,c=e.renderEntry,a=e.columnSizes,i=e.totalCollectionSize,j=e.renderEntryHeader,m=p(e,["defaultCardType","collection","showLoader","renderEntry","columnSizes","totalCollectionSize","renderEntryHeader"]),x=(0,f.l)().dictionary;return(0,t.jsxs)("div",{className:"row",children:[(0,t.jsx)("div",{className:"col-12",children:(0,t.jsx)("div",{className:"collection__total",children:j?(0,t.jsx)(j,{}):(0,t.jsxs)(t.Fragment,{children:[i," ",x.totalResultsCount]})})}),l?(0,t.jsx)("div",{className:"col-12",children:(0,t.jsx)("div",{className:"row justify-content-center",children:(0,t.jsx)(u.d,{size:12})})}):(0,t.jsx)(o.P,v({collection:null!=r?r:[],renderEntry:function(e){var r,l;return(0,t.jsx)("div",{className:"".concat(null!==(r=(0,h.T)(a))&&void 0!==r?r:"col-12 col-md-6 col-lg-4"," collection__entry-wrap"),children:c?c(e):(0,t.jsx)(s.Q,{componentType:null!=n?n:(l=e,"contentPage"===l.alias?d.s.ContentCard:null),imageWidth:[576,250,null,null,308,367],imageHeight:[195,195,null,null,195,195],useRatio:!0,props:e})})}},m))]})},x=function(e){var n=e.children;return(0,t.jsx)(i,{children:(0,t.jsx)("div",{className:"filters",children:(0,t.jsx)("div",{className:"filters__row",children:l.Children.map(n,function(e){return l.isValidElement(e)&&(0,t.jsx)("div",{className:"filters__col",children:e})})})})})},y=function(e){var n=e.isValidating,r=e.children,l=p(e,["isValidating","children"]);return(0,t.jsx)("div",{className:"collection__button-wrap",children:(0,t.jsxs)(a.C,v({},l,{children:[r,n&&(0,t.jsx)("div",{className:"ml-2",children:(0,t.jsx)(u.d,{})})]}))})}},3516:function(e,n,r){r.d(n,{c:function(){return b},l:function(){return y}});var t=r(4848),l=r(6540),c=r(6883),o=r(7708),a=r(8169),i=function(){return i=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var l in n=arguments[r])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},i.apply(this,arguments)},s=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]])}return r},u=function(e){var n=e.button,r=s(e,["button"]);return(0,t.jsx)(c.go,i({className:"select__button"},r,{children:function(e){var r=e.value,l=e.label,c=e.isExpanded;return(0,t.jsxs)("div",{className:"select__button-inner ".concat(c?"select__button-inner--open":""),children:[n?n({value:r,label:l}):(0,t.jsx)("span",{children:l}),(0,t.jsx)(o.cL,{})]})}}))},d=function(e){var n=e.children,r=s(e,["children"]);return(0,t.jsx)(c.yf,i({className:"select"},r,{children:n}))},h=function(e){var n=e.children,r=s(e,["children"]);return(0,t.jsx)(c.zk,i({className:"select select--popover"},r,{children:n}))},f=function(e){var n=e.children,r=s(e,["children"]);return(0,t.jsx)(c.W1,i({className:"select__list"},r,{children:n}))},v=l.forwardRef(function(e,n){var r=e.button,l=e.children,c=e.selectListClass,o=s(e,["button","children","selectListClass"]);return(0,t.jsxs)(d,i({},o,{ref:n,children:[(0,t.jsx)(u,i({},r&&{button:r})),(0,t.jsx)(h,{children:(0,t.jsx)(a.v,{condition:!!c,wrap:function(e){return(0,t.jsx)("div",{className:c,children:e})},children:(0,t.jsx)(f,{children:l})})})]}))}),p=function(e){var n=e.children,r=s(e,["children"]);return(0,t.jsx)(c.h7,i({className:"select__option"},r,{children:n}))},j=r(5767),m=function(){return m=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var l in n=arguments[r])Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l]);return e},m.apply(this,arguments)},x=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(t=Object.getOwnPropertySymbols(e);l<t.length;l++)n.indexOf(t[l])<0&&Object.prototype.propertyIsEnumerable.call(e,t[l])&&(r[t[l]]=e[t[l]])}return r},y=l.forwardRef(function(e,n){var r=e.children,l=e.useInlineTheme,c=x(e,["children","useInlineTheme"]);return(0,t.jsx)(a.v,{condition:!!l,wrap:function(e){return(0,t.jsx)("div",{className:"select--inline",children:e})},children:(0,t.jsx)(v,m({},!!l&&{selectListClass:"select__list--inline"},c,{ref:n},c.label&&{button:function(e){return(0,t.jsx)("span",{children:e.value?e.label:c.label})}},{children:(0,t.jsx)(j.F,{height:400,children:r})}))})}),b=function(e){var n=e.children,r=e.value,l=x(e,["children","value"]);return(0,t.jsx)(p,m({},l,{value:r,children:n}))}}}]);
2//# sourceMappingURL=event-list.6c54189d.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.