PageSourceSearch

https://www.vejle.dk/_nuxt/BlSuKGhQ2.js

js vejle.dk collected 2026-10-02 03:04:22 UTC 3,021 bytes, 1 lines download raw bytes

1import{C as e,D as t,Gt as a,J as l,St as r,T as i,Tt as d,_ as s,_t as o,fn as u,hn as n,it as p,st as c,w as f}from"./B8XHxhss.js";import{S as m}from"#entry";import{t as y}from"./tKPW4sCS.js";import{t as b}from"./Cqgb3bEL.js";import{t as g}from"./DMKwYA8Z2.js";var h=["id","data-value","aria-labelledby","aria-describedby"],v={class:"text-medium text-caption-lg-regular"},x=Object.assign({inheritAttrs:!1},{__name:"InputRadioList",props:{id:{type:[String,Number]},items:{type:Array,default:()=>[]},layout:{type:String,default:"col",validate:e=>["col","row","row-wrap"].includes(e)},placeholder:{type:String,default:void 0},name:{type:String,default:void 0},required:{type:Boolean,default:!1},requiredLabelAppendage:{type:String,default:""},label:{type:String,default:void 0},helpText:{type:String,default:null},modelValue:{type:String,default:void 0},errors:{type:Array,default:()=>[]}},emits:["change","update:modelValue"],setup(x,{emit:S}){const _=S,k=x,q=o(),w=e(()=>k.id&&"string"==typeof k.id?k.id:"number"==typeof k.id?`radio-list-${k.id}`:`radio-list-${q}`),A=e(()=>"string"==typeof k.modelValue?k.modelValue:void 0);r(()=>A.value,E,{immediate:!0});const $=e(()=>!!k.required&&!k.items?.some(e=>e.checked));function j(){const e=k.items||[];[...document.getElementById(w.value)?.querySelectorAll("input")??[]].forEach((t,a)=>{const l=e[a];l&&(l.checked=t.checked)});const t=[...new Set(e.filter(e=>e.checked).map(e=>e.value))].join(",");_("update:modelValue",t),t!==A.value&&_("change",t),E()}function E(){k.items?.forEach?.(e=>{"string"==typeof A.value?e.checked=String(A.value)===String(e.value):e.checked??=!1,e.checkedDefault??=e.checked})}return(e,r)=>{const o=g,S=b;return p(),i(S,l({"base-id":a(w),class:"c-input-radio-list"},("useAttrsSome"in e?e.useAttrsSome:a(y))(["class","style","aria-label","data-n-ids"],e.$attrs),{label:
1x.label,"label-is-label":!1,"help-text":x.helpText,required:a($),"required-label-appendage":x.requiredLabelAppendage,"help-text-before-input":"",errors:x.errors}),{default:d(()=>[f("div",{id:a(w),role:"group",class:u(["flex items-start gap-x-layout-gutter gap-y-3xs",{"flex-col":"col"===x.layout,"flex-row":"row"===x.layout,"flex-row flex-wrap":"row-wrap"===x.layout}]),"data-value":a(A),"aria-labelledby":[x.label&&`${a(w)}__label`].filter(Boolean).join(" ")||null,"aria-describedby":[x.helpText&&`${a(w)}__help-text`,x.errors?.length&&`${a(w)}__error`].filter(Boolean).join(" ")||null},[(p(!0),t(s,null,c(x.items,(t,r)=>(p(),i(o,l({id:`${a(w)}__${r}`,key:t.value,ref_for:!0,ref:"input",name:x.name,required:a($),"aria-invalid":x.errors?.length?"true":null,value:t.value,checked:t.checked,disabled:t.disabled},{ref_for:!0},("useAttrsExcept"in e?e.useAttrsExcept:a(m))(["class","style","data-n-ids","value"],e.$attrs),{onInput:j}),{default:d(()=>[f("span",v,n(t.label),1)]),_:2},1040,["id","name","required","aria-invalid","value","checked","disabled"]))),128))],10,h)]),_:1},16,["base-id","label","help-text","required","required-label-appendage","errors"])}}});export{x 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.