PageSourceSearch

https://www.roskilde.dk/_nuxt/Db0WVVs9.js

js roskilde.dk collected 2026-09-24 09:25:46 UTC 14,885 bytes, 1 lines download raw bytes

1import{C as e,D as a,E as l,Gt as t,J as i,Lt as o,M as n,N as r,Nt as s,St as c,T as u,Tt as p,_ as d,hn as m,it as g,mn as f,st as v,tt as _,w as E}from"./B8XHxhss.js";import{D as x,F as S,V as h,_ as y,i as O,n as z,r as b}from"#entry";import{t as I}from"./CB9WeAtJ.js";import{t as R}from"./9SR_uiiV2.js";import{t as k}from"./nmS8ks872.js";import{t as w}from"./NtaF48fl2.js";import{t as C}from"./SBKPo-5z2.js";var T={class:"p-accessibility-report"},A={class:"mt-lg w-full max-w-layout-max px-layout-margin relative flex flex-col gap-sm mx-auto"},N={class:"p-cardInset bg-surface rounded-md flex flex-col gap-sm"},D={key:0,class:"flex flex-col >=656:flex-row >=656:items-center gap-xs justify-between"},P={class:"text-body-sm text-medium"},j={class:"text-strong"},L={key:0},$={class:"flex flex-wrap gap-2xs"},M=["textContent"],U={key:0,class:"p-cardInset bg-surface rounded-md grid gap-sm"},V={class:"text-heading-sm"},G={class:"flex flex-col >=656:flex-row gap-sm"},K={class:"mt-beforeBlocks mb-afterBlocks grid grid-cols-1 gap-betweenBlocks"},F={key:0,class:"s-rich-text"},B={key:1},Y={class:"grid grid-cols-1 >=960:grid-cols-2 >=1280:grid-cols-3 gap-sm items-start"},W={class:"grid gap-xs"},H={class:"grid gap-4xs min-w-0"},J=["href"],X={class:"text-body-md-strong text-strong break-words"},q={class:"grid gap-2xs"},Q={class:"grid gap-4xs"},Z={class:"text-caption-md-strong uppercase text-medium"},ee={class:"text-body-sm text-strong whitespace-pre-line"},ae={class:"p-accessibility-report__details text-caption-md-regular text-medium"},le={class:"cursor-pointer text-interactive text-caption-md-strong"},te={class:"mt-2xs grid gap-4xs"},ie=["href"],oe={class:"flex flex-wrap gap-2xs items-center"},ne={class:"text-caption-md-regular text-medium"},re="limbo-accessibility-report-tool",se="skal-undersoeges",ce='Se "Gennemgående elementer".',ue={__name:"accessibility-report",setup(ue){O({key:h,name:"Accessibility report"});const pe={5:"generiske-krav/",6:"informations-og-kommunikationsteknologi-med-tovejs-talekommunikation/",7:"informations-og-kommunikationsteknologi-med-mulighed-for-video/",9:"web/",10:"dokumenter-ikke-web/",11:"software/",12:"dokumentation-og-supporttjenester/"},de=["KultuNaut","Muni","Kiri","Cookie Information","Monsido","Google Translate","Google Maps","Google reCAPTCHA","reCAPTCHA","Cludo","Siteimprove","YouTube","Vimeo","Facebook","LinkedIn","Instagram"],me=[{value:"tredjepart",labelKey:"THIRD_PARTY",color:"#d92d20",exportColor:"var(--highlight-3)"},{value:"redaktoer",labelKey:"EDITOR",color:"#d92d20",exportColor:"var(--highlight-3)"},{value:"ikke-enig",labelKey:"DISAGREE",color:"#7a3fb0",exportColor:"var(--highlight-5)"},{value:"skal-undersoeges",labelKey:"NEEDS_INVESTIGATION",color:"#b7791f",exportColor:"var(--highlight-1)"},{value:"skal-loeses",labelKey:"NEEDS_FIXING",color:"#111827",exportColor:""},{value:"allerede-loest",labelKey:"ALREADY_FIXED",color:"#04864d",exportColor:"var(--highlight-7)"}],ge=Object.fromEntries(me.map(e=>[e.value,e])),fe=o(0),ve=o(""),_e=o(""),Ee=o([]),xe=o(""),Se=o(me.map(e=>e.value)),he=e({get:()=>Se.value.join(","),set(e){Se.value=String(e||"").split(",").filter(Boolean)}}),ye=e(()=>me.map(e=>({label:Ae(e.value),value:e.value}))),Oe=e(()=>me.map(e=>({label:`${Ae(e.value)} (${ke.value[e.value]||0})`,value:e.value,checked:Se.value.includes(e.value)}))),ze=e(()=>Ee.value.filter(e=>Se.value.includes(e.group)&&(!xe.value||e.demand===xe.value))),be=e(()=>[...new Set(Ee.value.map(e=>e.demand))].sort(Fe)),Ie=e(()=>Ee.value.reduce((e,a)=>(e[a.demand]??=a.title,e),{})),Re=e(()=>[{label:y("ALL_DEMANDS",{capitalize:!0}),value:""},...be.value.map(e=>({label:`${e} ${Ie.value[e]}`,value:e}))]),ke=e(()=>Ee.value.reduce((e,a)=>(e[a.group]??=0,e[a.group]+=1,e),{}));async function we(e){const[a]=e.target.files??[];if(a){_e.value=y("LOADING_REPORT",{capitalize:!0})+"...";try{if(function(e){return e.name.endsWith(".a11y.json")||"application/json"===e.type}(a))return void(await async function(e){const a=JSON.parse(await e.text()),l=(a.issues??[]).map(Te);ve.value=a.fileName??e.name,Ee.value=l,xe.value=a.selectedDemand??"",Se.value=a.visibleGroups??me.map(e=>e.value),_e.value=y("X_ISSUES_IMPORTED_FROM_Y",{capitalize:!0,populate:[l.length,e.name]})+"."}(a));await async function(e){const a=function(e){const a=new Map;
1return e.SheetNames.forEach(l=>{const t=e.Sheets[l],i=b.sheet_to_json(t,{header:1,raw:!1,defval:""}),{pageTitle:o,pageUrl:n}=function(e){const a=e[0]?.map(Ve)??[],l=a.indexOf("Webside"),t=a.indexOf("URL");return{pageTitle:Ve(e[1]?.[-1===l?0:l]),pageUrl:Ve(e[1]?.[-1===t?1:t])}}(i);if(!o||"Sidens navn"===o||"Indholdsfortegnelse"===l)return;const r=i.findIndex(e=>e.some(e=>"Krav"===Ve(e)));if(-1===r)return;const s=i[r].map(Ve),c=s.indexOf("Krav"),u=s.indexOf("Titel"),p=s.indexOf("Fundne brud på krav"),d=s.indexOf("Kommentar");[c,u,p,d].includes(-1)||i.slice(r+1).forEach(e=>{const l=Ve(e[p]).toLowerCase(),t=Ve(e[c]),i=Ve(e[u]),r=Ve(e[d]);"ja"===l&&t&&!function(e,a){return"WCAG-overensstemmelseskrav"===e||Ve(a)===ce}(i,r)&&function(e){return e.split(/\r?\n\s*\r?\n/g).map(Ve).filter(e=>e&&e!==ce)}(r).forEach(e=>{const l=Ue(t,i,e),r=a.get(l);if(r)return void Me(r,o,n);const s=Te({id:Ge(l),demand:t,title:i,description:e,group:Le(e),note:"",urls:[]});Me(s,o,n),a.set(l,s)})})}),[...a.values()].sort(Ke)}(z(await e.arrayBuffer(),{type:"array"}));ve.value=e.name,Ee.value=a,xe.value="",Se.value=me.map(e=>e.value),_e.value=y("X_ISSUES_IMPORTED_FROM_Y",{capitalize:!0,populate:[a.length,e.name]})+"."}(a)}catch(l){_e.value=y("REPORT_COULD_NOT_BE_LOADED",{capitalize:!0})+"."}}}function Ce(){return{version:1,fileName:ve.value,issues:Ee.value,visibleGroups:Se.value,selectedDemand:xe.value}}function Te(e){const a=Ne(e.urlsText??e.urls??[]);return{id:e.id??Ge(Ue(e.demand,e.title,e.description)),demand:Ve(e.demand),title:Ve(e.title),description:Ve(e.description),group:ge[e.group]?.value??se,note:e.note??"",urls:a,urlsText:a.join("\n")}}function Ae(e){return y(ge[e]?.labelKey??"UNKNOWN",{capitalize:!0})}function Ne(e){const a=Array.isArray(e)?e:String(e).split(/\r?\n/g);return[...new Set(a.map(Ve).filter(Boolean))]}function De(e){return Ne(e.urlsText??e.urls??[])}function Pe(e){return e.match(/https?:\/\/[^\s)]+/)?.[0]??""}function je(e){const a=Ve(e),l=a.match(/^\d+/)?.[0],t=new URL(pe[l]??"","https://digst.dk/tilsyn/webtilgaengelighed/forstaa-den-tekniske-standard/").href;return a?`${t}#:~:text=${encodeURIComponent(a)}`:t}function Le(e){const a=$e(e);return de.map(Ve).filter(Boolean).some(e=>a.includes($e(e)))?"tredjepart":se}function $e(e){return Ve(e).toLocaleLowerCase("da")}function Me(e,a,l){const t=Pe(l),i=t?`${a}: ${t}`:a;i&&!e.urls.includes(i)&&(e.urls.push(i),e.urlsText=e.urls.join("\n"))}function Ue(e,a,l){return[e,a,l].map(Ve).join("\n---\n")}function Ve(e){return String(e??"").replace(/\r\n/g,"\n").replace(/\u00a0/g," ").replace(/[ \t]+\n/g,"\n").replace(/\n[ \t]+/g,"\n").trim()}function Ge(e){let a=0;for(let l=0;l<e.length;l+=1)a=(a<<5)-a+e.charCodeAt(l),a|=0;return`issue-${Math.abs(a)}`}function Ke(e,a){return Fe(e.demand,a.demand)||e.title.localeCompare(a.title,"da")||e.description.localeCompare(a.description,"da")}function Fe(e,a){return e.localeCompare(a,"da",{numeric:!0,sensitivity:"base"})}function Be(e=""){const a=function(e){const a=new Map;return e.forEach(e=>{De(e).forEach(l=>{const t=function(e){const a=Pe(e);return{title:Ve((a?e.slice(0,e.indexOf(a)):e).replace(/:\s*$/,"").replace(/:\s*0$/,""))||a,url:a}}(l),i=t.url||t.title;a.has(i)||a.set(i,{...t,issues:[]}),a.get(i).issues.push(e)})}),[...a.values()].sort((e,a)=>e.title.localeCompare(a.title,"da",{numeric:!0,sensitivity:"base"}))}(ze.value.filter(a=>!e||a.demand===e)),l=[];return a.forEach(e=>{l.push([`## ${e.title}`,e.url&&`[${e.url}](${e.url})`].filter(Boolean).join("\n")),e.issues.reduce((e,a)=>{const l=`${a.demand} ${a.title}`;return e.has(l)||e.set(l,[]),e.get(l).push(a),e},new Map).forEach((e,a)=>{l.push("",`### ${function(e,a){const[l]=a;return l&&a.every(e=>e.group===l.group)?We(e,l.group):e}(a,e)}`),e.forEach(e=>{var a;l.push("",`- ${Ye(e)}`),l.push(...(a=function(e){return e.note?e.note:"tredjepart"===e.group?y("PHRASE_TASK_IS_THIRD_PARTY",{capitalize:!0}):"redaktoer"===e.group?y("PHRASE_TASK_IS_EDITOR_TASK",{capitalize:!0}):""}(e),Ve(a).split("\n").map(Ve).filter(Boolean).map(e=>`**${e}**`)))})}),l.push("")}),l.join("\n").trim()}function Ye(e){return We(e.description,e.group)}function We(e,a){const l=ge[a]?.exportColor;return l?`<mark data-lexical-text="true" style="color: ${l}"><span class="lexxy_content__highlight">${(t=e,String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")).replace(/\n/g,"<br>")}</span></mark>`:e;var t}async function He(e=""){await qe(Be(e)),_e.value=e?y("MARKDOWN_FOR_X_COPIED",{capitalize:!0,populate:[e]}):y("MARKDOWN_FOR_VISIBLE_ISSUES_COPIED",{capitalize:!0})}async function Je(e){await qe(function(e){const a=De(e);return[`## ${We(`${e.demand} ${e.title}`,e.group)}`,"",`- ${Ye(e)}`,`  **${y("GROUP",{capitalize:!0})}:** ${Ae(e.group)}`,e.note?`  **${y("COMMENT",{capitalize:!0})}:** ${e.note}`:"",a.length?`  **${y("PAGES",{capitalize:!0})}:**`:"",...a.map(e=>`  - ${e}
1`)].filter(Boolean).join("\n")}(e)),_e.value=y("ISSUE_COPIED_AS_MARKDOWN",{capitalize:!0})}async function Xe(){const e=JSON.stringify(Ce(),null,"\t"),a=`${(ve.value||"accessibility-report").replace(/\.(xlsx|xls|a11y\.json|json)$/i,"")}.a11y.json`;if(window.showSaveFilePicker)try{const l=await(await window.showSaveFilePicker({suggestedName:a,types:[{description:"Accessibility report JSON",accept:{"application/json":[".a11y.json",".json"]}}]})).createWritable();return await l.write(e),await l.close(),void(_e.value=y("JSON_FILE_DOWNLOADED",{capitalize:!0}))}catch(o){if("AbortError"===o.name)return}const l=new Blob([e],{type:"application/json"}),t=URL.createObjectURL(l),i=document.createElement("a");i.href=t,i.download=a,i.click(),URL.revokeObjectURL(t),_e.value=y("JSON_FILE_DOWNLOADED",{capitalize:!0})}async function qe(e){window.navigator.clipboard?await window.navigator.clipboard.writeText(e):window.prompt(y("COPY_MARKDOWN",{capitalize:!0}),e)}function Qe(){window.confirm(y("CONFIRM_CLEAR_REPORT"))&&(ve.value="",Ee.value=[],xe.value="",Se.value=me.map(e=>e.value),_e.value="",localStorage.removeItem(re),fe.value+=1)}return _(()=>{const e=localStorage.getItem(re);if(e)try{const a=JSON.parse(e);ve.value=a.fileName??"",Ee.value=(a.issues??[]).map(Te),Se.value=a.visibleGroups??Se.value,xe.value=a.selectedDemand??""}catch{localStorage.removeItem(re)}}),c([ve,Ee,Se,xe],()=>{localStorage.setItem(re,JSON.stringify(Ce()))},{deep:!0}),(e,o)=>{const c=w,_=x,h=R,O=k,z=I,b=C,re=S;return g(),a("article",T,[r(re,i({name:"content-page-layout"},{title:("localize"in e?e.localize:t(y))("ACCESSIBILITY_REPORT_TOOL",{capitalize:!0}),description:("localize"in e?e.localize:t(y))("PHRASE_ACCESSIBILITY_REPORT_TOOL_DESCRIPTION",{capitalize:!0})}),{afterHeader:p(()=>[E("div",A,[E("div",N,[(g(),u(c,{key:t(fe),label:("localize"in e?e.localize:t(y))("REPORT_FILE",{capitalize:!0}),accept:".xlsx,.xls,application/json",color:"surfaceVariant","handling-mode":"simple",onChange:we},null,8,["label"])),t(ve)||t(Ee).length?(g(),a("div",D,[E("div",P,[E("strong",j,m(t(ve)),1),t(Ee).length?(g(),a("span",L," - "+m(("localize"in e?e.localize:t(y))("X_OF_Y_ISSUES_SHOWN",{populate:[t(ze).length,t(Ee).length]})),1)):l("",!0)]),E("div",$,[r(_,{type:"button",size:"sm",color:"secondary",onClick:Xe},{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("SAVE_AS_JSON",{capitalize:!0})),1)]),_:1}),r(_,{type:"button",size:"sm",color:"secondary",onClick:o[0]||(o[0]=e=>He())},{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("COPY_VISIBLE_AS_MARKDOWN",{capitalize:!0})),1)]),_:1}),r(_,{type:"button",size:"sm",color:"danger",onClick:Qe},{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("CLEAR_REPORT",{capitalize:!0})),1)]),_:1})])])):l("",!0),t(_e)?(g(),a("p",{key:1,class:"text-body-sm text-medium",textContent:m(t(_e))},null,8,M)):l("",!0)]),t(Ee).length?(g(),a("div",U,[E("div",V,m(("localize"in e?e.localize:t(y))("FILTERING",{capitalize:!0})),1),r(h,{modelValue:t(he),"onUpdate:modelValue":o[1]||(o[1]=e=>s(he)?he.value=e:null),label:("localize"in e?e.localize:t(y))("GROUPS",{capitalize:!0}),items:t(Oe),layout:"row-wrap"},null,8,["modelValue","label","items"]),E("div",G,[r(O,{modelValue:t(xe),"onUpdate:modelValue":o[2]||(o[2]=e=>s(xe)?xe.value=e:null),label:("localize"in e?e.localize:t(y))("DEMAND",{capitalize:!0}),items:t(Re),color:"surfaceVariant",class:"flex-grow w-full >=656:w-1/2"},null,8,["modelValue","label","items"]),t(xe)?(g(),u(_,{key:0,type:"button",color:"secondary",class:">=656:self-end",onClick:o[3]||(o[3]=e=>He(t(xe)))},{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("COPY_SELECTED_DEMAND",{capitalize:!0})),1)]),_:1})):l("",!0)])])):l("",!0)])]),default:p(()=>[E("div",K,[t(Ee).length?(g(),a("section",B,[r(z,null,{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("ISSUES",{capitalize:!0})),1)]),_:1}),E("div",Y,[(g(!0),a(d,null,v(t(ze),l=>{return g(),a("article",{key:l.id,class:"p-cardInset bg-surface rounded-md grid gap-xs border-l-6",style:f({borderColor:t(ge)[l.group].color})},[E("div",W,[E("div",H,[E("a",{href:je(l.demand),target:"_blank",rel:"noopener noreferrer",class:"text-caption-md-strong uppercase text-interactive"}
1,m(l.demand),9,J),E("h2",X,m(l.title),1)]),r(O,{modelValue:l.group,"onUpdate:modelValue":e=>l.group=e,label:("localize"in e?e.localize:t(y))("GROUP",{capitalize:!0}),items:t(ye),color:"surfaceVariant",class:"w-full"},null,8,["modelValue","onUpdate:modelValue","label","items"])]),E("div",q,[E("div",Q,[E("div",Z,m(("localize"in e?e.localize:t(y))("REPORT_DESCRIPTION_OR_COMMENT",{capitalize:!0})),1),E("p",ee,m(l.description),1)]),E("details",ae,[E("summary",le,m(("localize"in e?e.localize:t(y))("SHOW_PAGE_REFERENCES",{capitalize:!0})),1),E("ul",te,[(g(!0),a(d,null,v(De(l),e=>(g(),a("li",{key:e},[Pe(e)?(g(),a("a",{key:0,href:Pe(e),target:"_blank",rel:"noopener noreferrer",class:"text-interactive underline"},m(e),9,ie)):(g(),a(d,{key:1},[n(m(e),1)],64))]))),128))])])]),r(b,{modelValue:l.note,"onUpdate:modelValue":e=>l.note=e,label:("localize"in e?e.localize:t(y))("MY_COMMENT",{capitalize:!0}),rows:3},null,8,["modelValue","onUpdate:modelValue","label"]),E("div",oe,[r(_,{type:"button",size:"sm",color:"secondary",onClick:e=>Je(l)},{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("COPY_ISSUE",{capitalize:!0})),1)]),_:1},8,["onClick"]),E("span",ne,m((i=De(l).length,y(1===i?"X_PAGE":"X_PAGES",{populate:[i]}))),1)])],4);var i}),128))])])):(g(),a("section",F,[r(z,null,{default:p(()=>[n(m(("localize"in e?e.localize:t(y))("NO_REPORT_LOADED",{capitalize:!0})),1)]),_:1}),E("p",null,m(("localize"in e?e.localize:t(y))("PHRASE_ACCESSIBILITY_REPORT_EMPTY_STATE",{capitalize:!0})),1)]))])]),_:1},16)])}}};export{ue 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.