PageSourceSearch

https://www.pustervik.nu/_next/static/chunks/0vexyf3t6t6az.js?dpl=dpl_HhFXQ4yUJc4NGeZj6vwSUETHsMPW

js pustervik.nu collected 2026-10-02 12:46:23 UTC 15,952 bytes, 14 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="92c2cdf0-7310-4ff9-e71f-523ec004e9a5")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,702272,(e,t,r)=>{t.exports=e.r(308082)},495070,e=>{"use strict";e.s(["monthKey",0,function(e){let t=new Date(e);return`${t.getFullYear()}-${t.getMonth()}`},"monthLabel",0,function(e,t){var r;let n=new Date(e),a=(r=n.toLocaleDateString("sv-SE",{month:"long"})).charAt(0).toUpperCase()+r.slice(1);return t?`${a} ${n.getFullYear()}`:a}])},282001,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:i,dataNtpc:s=""}){return(0,a.useEffect)(()=>{s&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${s}`}})},[s]),(0,n.jsxs)(n.Fragment,{children:[i,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":s,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(384027),a=e.r(515401)},367550,(e,t,r)=>{t.exports=e.r(489242)},442296,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:o,preview:c,dataLayer:u,nonce:d}=e;l=n;let p=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&p.searchParams.set("id",t),"dataLayer"!==n&&p.searchParams.set("l",n),o&&p.searchParams.set("gtm_auth",o),c&&(p.searchParams.set("gtm_preview",c),p.searchParams.set("gtm_cookies_win","x")),(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:`
3      (function(w,l){
4        w[l]=w[l]||[];
5        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
6        ${u?`w[l].push(${JSON.stringify(u)})`:""}
7      })(window,'${n}');`},nonce:d}),(0,a.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:p.href,nonce:d})]})};let a=e.r(384027),i=e.r(515401),s=n(e.r(367550)),l="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||l;window[r]=window[r]||[],window[r].push(e)}},524536,(e,t,r)=>{"use strict";let n;var a=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:a="dataLayer",nonce:o}=e;return void 0===n&&(n=a),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:`
8          window['${a}'] = window['${a}'] || [];
9          function gtag(){window['${a}'].push(arguments);}
10          gtag('js', new Date());
11
12          gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:o}),(0,i.jsx)(l.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:o})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let i=e.r(384027),s=e.r(515401),l=a(e.r(367550))},629457,e=>{"use strict";var t=e.i(384027),r=e.i(515401);e.s(["SponsorMarquee",0,function({sponsors:e}){let n=(0,r.useRef)(null),a=(0,r.useRef)(null),[i,s]=(0,r.useState)(!1),[l,o]=(0,r.useState)(0);(0,r.useEffect)(()=>{function e(){let e=n.current,t=a.current;if(!e||!t)return;let r=t.scrollWidth>e.clientWidth;s(r),r&&o(t.scrollWidth)}return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let c=e.map(e=>(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex shrink-0 items-center",children:(0,t.jsx)("img",{src:e.logo.url,alt:e.logo.alt??e.name,className:"h-4 max-w-26 w-auto object-contain sm:h-5 sm:max-w-32"})},e.id));return(0,t.jsxs)("div",{className:"flex py-pustervik-8 sm:py-pustervik-16 items-center gap-pustervik-16 overflow-hidden",children:[(0,t.jsx)("span",{className:"shrink-0 typography-body-sm text-paper-700",children:"Med 
12stöd från"}),(0,t.jsx)("div",{ref:n,className:"relative flex-1 overflow-hidden",children:(0,t.jsxs)("div",{className:"flex items-center",style:i?{animation:`sponsor-scroll ${l/20}s linear infinite`}:void 0,children:[(0,t.jsx)("div",{ref:a,className:"flex shrink-0 items-center gap-pustervik-16",children:c}),i&&(0,t.jsx)("div",{className:"flex shrink-0 items-center gap-pustervik-16 pl-pustervik-32",children:c})]})}),i&&(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:`@keyframes sponsor-scroll { 0%, 20% { transform: translateX(0); } 100% { transform: translateX(calc(-${l}px - 32px)); } }`}})]})}])},565561,e=>{"use strict";var t=e.i(384027),r=e.i(421666),n=e.i(329879),a=e.i(702272);function i(e){let t=e.link?.link;if(!t)return null;switch(t.__typename){case"InternalLinkRecord":{if(!t.link)return null;let e="slug"in t.link?t.link.slug:null;return e?e.startsWith("/")?e:`/${e}`:"/"}case"ExternalLinkRecord":return t.url;case"AnchorLinkRecord":return t.anchor?`#${t.anchor}`:null;default:return null}}e.s(["NavigationLinks",0,function({items:e}){let s=(0,a.usePathname)();return(0,t.jsx)("nav",{className:"flex items-center gap-pustervik-16",children:e.map(e=>{let a=i(e);return(0,t.jsx)(r.DatoLink,{link:e.link,children:(0,t.jsx)("span",{className:(0,n.cn)("typography-body-sm transition-colors",null!=a&&s===a?"text-ink-500":"text-paper-500 hover:text-ink-500"),children:e.label})},e.id)})})},"resolveHref",0,i])},167748,995176,e=>{"use strict";var t=e.i(515401);let r=new Set;function n(){document.body.style.overflow=r.size>0?"hidden":""}function a(e,a){(0,t.useEffect)(()=>(a?r.add(e):r.delete(e),n(),()=>{r.delete(e),n()}),[e,a])}e.s(["useScrollLock",0,a],167748);var i=e.i(384027),s=e.i(421666),l=e.i(589679),o=e.i(329879),c=e.i(511440),u=e.i(76543),d=e.i(525782),p=e.i(621700),m=e.i(702272),f=e.i(565561);function x(){return(0,i.jsxs)("div",{className:"flex flex-col gap-1.25",children:[(0,i.jsx)("div",{className:"h-0.25 w-4.5 bg-current"}),(0,i.jsx)("div",{className:"h-0.25 w-4.5 bg-current"}),(0,i.jsx)("div",{className:"h-0.25 w-4.5 bg-current"})]})}let h=(0,t.createContext)(null);function v(){let e=(0,t.useContext)(h);if(!e)throw Error("MobileNavigation components must be used within MobileNavigationProvider");return e}function g(){let e=(0,t.useContext)(h);return(0,t.useCallback)(()=>e?.setOpen(!1),[e])}e.s(["MobileLogoLink",0,function({children:e,className:t}){let r=g();return(0,i.jsx)(p.default,{href:"/",onClick:r,className:t,children:e})},"MobileNavigationOverlay",0,function({items:e}){let{open:r,setOpen:n,triggerRef:a}=v(),l=(0,m.usePathname)(),c=(0,t.useCallback)(()=>{n(!1)},[n]);return(0,i.jsx)(u.AnimatePresence,{onExitComplete:()=>a.current?.focus(),children:r&&(0,i.jsx)(d.motion.div,{initial:{opacity:0}
12,animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.2,delay:.1}},role:"dialog","aria-label":"Navigation",className:"pointer-events-auto fixed inset-0 z-10 overflow-y-auto overscroll-y-contain bg-ink-900 pt-pustervik-64",children:(0,i.jsx)(d.motion.nav,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0,transition:{duration:.2,delay:.1}},exit:{opacity:0,y:-10,transition:{duration:.2}},className:"flex flex-col gap-pustervik-16 p-6",children:e.map(e=>{let t=(0,f.resolveHref)(e);return(0,i.jsx)(s.DatoLink,{link:e.link,onClick:c,children:(0,i.jsx)("span",{className:(0,o.cn)("typography-h2",null!=t&&l===t?"text-ink-500":"text-paper-500"),children:e.label})},e.id)})})})})},"MobileNavigationProvider",0,function({children:e}){let[r,n]=(0,t.useState)(!1),s=(0,t.useRef)(null);a("mobile-nav",r),(0,t.useEffect)(()=>{if(r)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&n(!1)}},[r]);let{isDesktop:o}=(0,l.useScreenSize)("lg");return(0,t.useEffect)(()=>{o&&n(!1)},[o]),(0,i.jsx)(h.Provider,{value:{open:r,setOpen:n,triggerRef:s},children:e})},"MobileNavigationTrigger",0,function(){let{open:e,setOpen:t,triggerRef:r}=v();return(0,i.jsx)("button",{ref:r,type:"button",onClick:()=>t(e=>!e),className:"flex items-center justify-center p-2 text-paper-500","aria-label":e?"Close menu":"Open menu","aria-expanded":e,children:e?(0,i.jsx)(c.XIcon,{className:"size-4.5"}):(0,i.jsx)(x,{})})},"useCloseMobileNav",0,g],995176)},509097,e=>{"use strict";var t=e.i(384027),r=e.i(525782),n=e.i(515401);e.s(["NavigationSponsorBar",0,function({children:e}){let[a,i]=(0,n.useState)(!0);return(0,n.useEffect)(()=>{function e(){i(window.scrollY<=16)}return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.motion.div,{initial:!1,className:"pointer-events-none absolute inset-x-0 top-0 -z-10 bg-[linear-gradient(0deg,transparent_0%,color-mix(in_srgb,var(--ink-900)_20%,transparent)_30%,color-mix(in_srgb,var(--ink-900)_50%,transparent)_60%,var(--ink-900)_100%)]",animate:{height:a?"calc(var(--navigation-height) * 1.5)":"var(--navigation-height)"},transition:{duration:.2}}),(0,t.jsx)(r.motion.div,{initial:!1,animate:{opacity:+!!a,y:a?0:-10},transition:{duration:.2},className:"relative",style:{pointerEvents:a?"auto":"none"},inert:!a||void 0,children:e})]})}])},927245,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return i.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let i=e.r(428312),s=e.r(27725),l=e.r(596545)},864321,e=>{"use strict";var t=e.i(384027),r=e.i(62220),n=e.i(167748);let a=(0,e.i(199395).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);var i=e.i(511440),s=e.i(76543),l=e.i(525782),o=e.i(515401),c=e.i(927245);let u=(0,c.createServerReference)("40eb7ec9880705e5a95421e9a3bc60c3bf63e20112",c.callServer,void 0,c.findSourceMapURL,"searchEvents");var d=e.i(995176),p=e.i(495070);function m({children:e}){return(0,t.jsx)("div",{className:"mx-auto w-full px-page",children:(0,t.jsx)("div",{className:"mx-auto w-full max-w-page",children:e})})}let f=(0,o.createContext)(null);function x(){let e=(0,o.useContext)(f);if(!e)throw Error("SiteSearch components must be used within SiteSearchProvider");return e}e.s(["SiteSearchOverlay",0,function(){var e;let n,c,d,{open:f,setOpen:h}=x(),[v,g]=(0,o.useState)(""),[y,k]=(0,o.useState)([]),[j,b]=(0,o.useState)(!1),[w,N]=(0,o.useTransition)(),S=(0,o.useRef)(null),_=(e=e=>{if(!e.trim()){k([]),b(!1);return}N(async()=>{k(await u(e)),b(!0)})},n=(0,o.useRef)(e),c=(0,o.useRef)(void 0),(0,o.useEffect)(()=>{n.current=e}),d=(0,o.useCallback)((...e)=>{clearTimeout(c.current),c.current=setTimeout(()=>n.current(...e),250)},[250]),(0,o.useEffect)(()=>()=>clearTimeout(c.current),[]),d),L=(0,o.useCallback)(e=>{let t=e.target.value;g(t),_(t)},[_]),E=(0,o.useCallback)(()=>{g(""),k([]),b(!1)},[]),C=(0,o.useCallback)(()=>{E(),S.current?.focus()},[E]),M=(0,o.useCallback)(()=>{h(!1)}
12,[h]),P=(0,o.useMemo)(()=>{let e=new Map;for(let t of y){let r=(0,p.monthKey)(t.eventDate),n=e.get(r);n?n.events.push(t):e.set(r,{label:(0,p.monthLabel)(t.eventDate,!0),events:[t]})}return Array.from(e.entries()).map(([e,t])=>({key:e,...t}))},[y]);return(0,o.useEffect)(()=>{f&&setTimeout(()=>S.current?.focus(),50)},[f]),(0,t.jsx)(s.AnimatePresence,{children:f&&(0,t.jsx)(l.motion.div,{initial:{opacity:0},animate:{opacity:1,transition:{duration:.2}},exit:{opacity:0,transition:{duration:.2,delay:.1}},onAnimationComplete:e=>{"exit"===e&&E()},className:"pointer-events-auto fixed inset-0 z-50 overflow-y-auto bg-ink-900",children:(0,t.jsx)(m,{children:(0,t.jsxs)("div",{className:"flex flex-col gap-pustervik-32 py-pustervik-16 md:py-pustervik-24",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("button",{type:"button",onClick:M,className:"flex items-center justify-center p-2 cursor-pointer text-paper-500 transition-colors hover:text-paper-600 mt-[-3px] md:-mt-1 md:-mr-2","aria-label":"Stäng sök",children:(0,t.jsx)(i.XIcon,{className:"size-4.5"})})}),(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0,transition:{duration:.2,delay:.1}},exit:{opacity:0,y:-10,transition:{duration:.2}},className:"flex flex-col gap-pustervik-32",children:[(0,t.jsxs)("div",{className:"flex items-center gap-pustervik-16 border-b border-ink-500 pb-pustervik-16",children:[(0,t.jsx)(a,{className:"size-5 shrink-0 text-paper-600"}),(0,t.jsx)("input",{ref:S,type:"text",value:v,onChange:L,placeholder:"Sök efter event...",className:"flex-1 bg-transparent typography-body-md text-paper-500 placeholder:text-paper-700 outline-none"}),v&&(0,t.jsx)("button",{type:"button",onClick:C,className:"shrink-0 typography-tag text-paper-600 uppercase transition-colors hover:text-paper-500",children:"Rensa"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-pustervik-24",children:[!v.trim()&&(0,t.jsx)("p",{className:"typography-body-md text-paper-600",children:"Sök efter konserter via artist och bandnamn."}),v.trim()&&j&&y.length>0&&(0,t.jsxs)("div",{className:"flex flex-col gap-pustervik-24",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)("h2",{className:"typography-h2 text-paper-500",children:"Sökresultat"}),(0,t.jsxs)("span",{className:"typography-meta text-ink-500 uppercase",children:[y.length," resultat"]})]}),(0,t.jsx)("div",{className:"flex flex-col gap-pustervik-32",children:P.map(e=>(0,t.jsxs)("div",{className:"flex flex-col gap-pustervik-16",children:[(0,t.jsx)("h3",{className:"typography-meta text-paper-500",children:e.label}),(0,t.jsx)("div",{className:"flex flex-col border-t border-ink-500",children:e.events.map(e=>(0,t.jsx)(r.EventCard,{event:e,variant:"row",simple:!0,onClick:M},e.id))})]},e.key))})]}),v.trim()&&j&&0===y.length&&!w&&(0,t.jsxs)("div",{className:"flex flex-col gap-pustervik-16",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,t.jsx)("h2",{className:"typography-h2 text-paper-500",children:"Sökresultat"}),(0,t.jsx)("span",{className:"typography-meta text-ink-500 uppercase",children:"0 resultat"})]}),(0,t.jsx)("p",{className:"typography-body-md text-paper-600",children:"Tyvärr gav din sökning inget resultat. Prova en annan sökterm."})]}),w&&(0,t.jsx)("p",{className:"typography-body-md text-paper-600 animate-pulse",children:"Söker..."})]})]})]})})})})},"SiteSearchProvider",0,function({children:e}){let[r,a]=(0,o.useState)(!1);return(0,n.useScrollLock)("site-search",r),(0,o.useEffect)(()=>{if(r)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&a(!1)}},[r]),(0,t.jsx)(f.Provider,{value:{open:r,setOpen:a},children:e})},"SiteSearchTrigger",0,function({variant:e}){let{setOpen:r}=x(),n=(0,d.useCloseMobileNav)();return(0,t.jsxs)("button",{type:"button",onClick:()=>{n(),r(!0)},className:"flex items-center gap-2 cursor-pointer text-paper-500 transition-colors hover:text-ink-500",children:["desktop"===e&&(0,t.jsx)("span",{className:"typography-body-sm",children:"Sök event..."}),(0,t.jsx)(a,{className:"size-4"})]})},"useCloseSiteSearch",0,function(){let e=(0,o.useContext)(f);return(0,o.useCallback)(()=>e?.setOpen(!1),[e])}],864321)},891613,e=>{e.v(t=>Promise.all(["static/chunks/0z8aphqm2s_vs.js"].map(t=>e.l(t))).then(()=>t(369577)))}]);
13
14//# debugId=92c2cdf0-7310-4ff9-e71f-523ec004e9a5

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.