PageSourceSearch

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

js aalborg.dk collected 2026-09-24 09:32:00 UTC 3,583 bytes, 1 lines download raw bytes

1import{C as e,D as t,E as a,M as l,N as r,T as p,Wt as s,_ as u,ct as n,dn as i,gt as d,it as o,mn as x,st as g,ut as y,wt as f}from"./A7A7LHMD.js";import{j as c}from"#entry";var b={key:0,class:"text-body-sm-regular text-subtle"},h={__name:"InputLabel",props:{tag:{type:String,default:"label"},for:{type:String,default:""},text:{type:String,default:""},requiredAppendage:{type:String,default:void 0},required:{type:Boolean,default:!1}},setup(r){const u=r,n=e(()=>u.requiredAppendage??c("REQUIRED",{capitalize:!0})),i=e(()=>"label"===u.tag?u.for:null);return(e,u)=>r.text||r.required&&s(n)?(o(),p(y(r.tag),{key:0,for:s(i),class:"c-input-label"},{default:f(()=>[l(x(r.text)+" ",1),r.required?(o(),t("span",b,x(s(n)),1)):a("",!0)]),_:1},8,["for"])):a("",!0)}},T={key:0,class:"c-input-help-text"},v=["textContent"],_=["textContent"],m={__name:"InputHelpText",props:{text:{type:String,default:""},supText:{type:String,default:""}},setup:e=>(l,r)=>e.text||e.supText?(o(),t("div",T,[e.text?(o(),t("span",{key:0,textContent:x(e.text)},null,8,v)):a("",!0),e.supText?(o(),t("span",{key:1,class:"ml-auto",textContent:x(e.supText)},null,8,_)):a("",!0)])):a("",!0)},I={key:0,class:"c-input-errors"},k={__name:"InputErrors",props:{errors:{type:Array,default:()=>[]}},setup(l){const r=l,p=e(()=>r.errors?.map(e=>"string"==typeof e?e:"object"==typeof e&&e?.value&&"raw"===e?.type?e.value:"object"==typeof e&&e?.value&&"dictionary"===e?.type?c(e.value,{capitalize:!0}):e));return(e,l)=>s(p)?.length?(o(),t("ul",I,[(o(!0),t(u,null,g(s(p),e=>(o(),t("li",{key:e,class:"text-caption-md-strong text-danger"},x(e),1))),128))])):a("",!0)}},q={key:2,class:"grid grid-cols-1 gap-5xs pb-[calc(var(--theme-spacing-2xs)-var(--theme-spacing-4xs))]"},S={key:3,class:"grid grid-cols-1 gap-5xs"},B={__name:"InputWrap",props:{baseId:String,labelIsLabel:{type:Boolean,default:!0},label:{type:String,default:""},ariaLabel:{type:String,default:""},requiredLabelAppendage:{type:String,default:""},helpText:{type:String,default:""},supHelpText:{type:String,default:""},helpTextBeforeInput:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},required:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},errors:{type:Array,default:()=>[]}},setup(l){const u=l,x=e(()=>u.requiredLabelAppendage||`(${c("REQUIRED")})`),g=e(()=>u.baseId||d()),y=e(()=>`${g.value}__label`),f=e(()=>`${g.value}__help-text`),b=e(()=>`${g.value}__error`);return(e,u)=>{const d=h,T=m,v=k;return o(),t("div",{class:i(["c-input-wrap",{"c-input-wrap--highlighted":l.highlighted}])},[l.label||l.readonly?(o(),p(d,{key:0,id:s(y),tag:l.labelIsLabel?"label":"div",for:s(g),text:l.label,required:l.required||l.readonly,"required-appendage":l.readonly?`(${("localize"in e?e.localize:s(c))("READ_ONLY")})`:s(x),class:"max-w-fit"},null,8,["id","tag","for","text","required","required-appendage"])):a("",!0),!l.label&&l.ariaLabel?(o(),p(d,{key:1,id:s(y),tag:l.labelIsLabel?"label":"div",for:s(g),text:l.ariaLabel,class:"sr-only"},null,8,["id","tag","for","text"])):a("",!0),(l.helpText||l.supHelpText)&&l.helpTextBeforeInput?(o(),t("div",q,[r(T,{id:s(f),text:l.helpText,"sup-text":l.supHelpText},null,8,["id","text","sup-text"])])):a("",!0),n(e.$slots,"default"),l.errors?.length||(l.helpText||l.supHelpText)&&!l.helpTextBeforeInput?(o(),t("div",S,[!l.helpText&&!l.supHelpText||l.helpTextBeforeInput?a("",!0):(o(),p(T,{key:0,id:s(f),text:l.helpText,"sup-text":l.supHelpText},null,8,["id","text","sup-text"])),l.errors?.length?(o(),p(v,{key:1,id:s(b),errors:l.errors},null,8,["id","errors"])):a("",!0)])):a("",!0)],2)}}};export{k as n,B as t};

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.