PageSourceSearch

https://www.aalborg.dk/_nuxt/Bh12DF57.js

js aalborg.dk collected 2026-10-01 11:47:08 UTC 1,929 bytes, 1 lines download raw bytes

1import{C as a,D as e,E as t,Gt as s,Lt as l,N as i,T as n,Tt as r,fn as c,hn as o,it as u,w as E}from"./B8XHxhss.js";import{A as h,Mt as f,jt as p,st as _,ut as S,x as R,z as T}from"#entry";function b(a,e){return"]"===e&&(e="\\]"),"^"===e&&(e="\\^"),"\\"===e&&(e="\\\\"),a.replace(new RegExp("^["+e+"]+|["+e+"]+$","g"),"")}var z={key:0,class:"<656:sr-only flex-shrink-0"},k={class:"inline-block flex-shrink-0"},m=["aria-label"],A={key:0,class:"<656:sr-only flex-shrink-0"},H={class:"inline-block flex-shrink-0"},d={__name:"SiteHeaderSearchButton",props:{name:String,url:String},setup(d){const w=f(),{site:C}=S(),y=d,I=l(y.url),g=a(()=>function(a){const{path:e}=p();return b(e,"/")===b(a,"/")}(y.url));async function x(){const a=window.location.pathname;let e=window.history.length;if(a===y.url?.split("#")[0]?.split("?")[0])return e>0&&(w.back(),setTimeout(x,100)),void w.replace(C?.url??"/")}return(a,l)=>{const f=T,p=R;return s(g)?(u(),e("button",{key:1,class:c(["c-site-header-search-button",{"c-site-header-search-button--with-label":("feature"in a?a.feature:s(_))("SITE_HEADER_WRITE_OUT_SEARCH")}]),"aria-label":("localize"in a?a.localize:s(h))("CLOSE",{capitalize:!0}),onClick:x},[("feature"in a?a.feature:s(_))("SITE_HEADER_WRITE_OUT_SEARCH")?(u(),e("span",A,o(("localize"in a?a.localize:s(h))("CLOSE",{capitalize:!0})),1)):t("",!0),E("span",H,[i(f,{name:"close",weight:"400"})])],10,m)):(u(),n(p,{key:0,class:c(["c-site-header-search-button",{"c-site-header-search-button--with-label":("feature"in a?a.feature:s(_))("SITE_HEADER_WRITE_OUT_SEARCH")}]),to:s(I),"aria-label":("localize"in a?a.localize:s(h))("SEARCH",{capitalize:!0})},{default:r(()=>[("feature"in a?a.feature:s(_))("SITE_HEADER_WRITE_OUT_SEARCH")?(u(),e("span",z,o(d.name||("localize"in a?a.localize:s(h))("SEARCH",{capitalize:!0})),1)):t("",!0),E("span",k,[i(f,{name:"search",weight:"400"})])]),_:1},8,["class","to","aria-label"]))}}};export{d as default};

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.