PageSourceSearch

https://viborg.dk/_nuxt/BUzp6XU-.js

js viborg.dk collected 2026-10-02 05:39:53 UTC 5,060 bytes, 1 lines download raw bytes

1import{C as t,D as e,E as s,Gt as a,J as l,Lt as r,N as o,T as i,Tt as c,_ as n,ct as u,dt as d,fn as f,it as m,mn as b,st as p,w as _}from"./B8XHxhss.js";import{t as y}from"./DgLP3hnZ.js";import{t as w}from"./DIbUQTKT.js";import{t as h}from"./tKPW4sCS.js";import{t as g}from"./fhAWvw3q.js";import{t as A}from"./CjQrlwK1.js";var H={name:"StructuredData",props:{cells:{type:Array,default:()=>[]},useFirstRowAsHeader:{type:Boolean,default:!1},useFirstColumnAsHeader:{type:Boolean,default:!1},firstRowSticky:{type:Boolean,default:!1},firstColumnSticky:{type:Boolean,default:!1},fullWidth:{type:Boolean,default:!1},tbodyClassNames:{type:[String,Object,Array],default:null}},computed:{computedCells(){return this.cells.map((t,e)=>Array.isArray(t)?t.map((t,s)=>{const a=0===s&&this.useFirstColumnAsHeader,l=0===e&&this.useFirstRowAsHeader,r=t.scope?"none"===t.scope?null:t.scope:(l?"col":a&&"row")||null;return{...t,scope:r}}):[])}}},k=["innerHTML"];var C=Object.assign(y(H,[["render",function(t,s,a,r,o,b){return m(),e("table",{class:f(["c-structured-data",a.fullWidth&&"c-structured-data--full-width"])},[u(t.$slots,"default"),_("tbody",{class:f(a.tbodyClassNames)},[(m(!0),e(n,null,p(b.computedCells,(s,r)=>(m(),e("tr",{key:`row-r${r}`,class:f(["c-structured-data__row",{"c-structured-data__row--sticky":a.firstRowSticky&&a.useFirstRowAsHeader&&0===r}])},[(m(!0),e(n,null,p(s,(e,s)=>(m(),i(d(e.scope?"th":"td"),l({key:`cell-r${r}-c${s}`,class:["c-structured-data__cell",{"c-structured-data__cell--sticky":a.firstColumnSticky&&a.useFirstColumnAsHeader&&0===s}]},{ref_for:!0},{scope:e.scope}),{default:c(()=>[u(t.$slots,"cell",{html:e.value,isRowHeader:a.useFirstRowAsHeader&&0===r,isColumnHeader:a.useFirstColumnAsHeader&&0===s},()=>[_("div",{innerHTML:e.value},null,8,k)])]),_:2},1040,["class"]))),128))],2))),128))],2)],2)}]]),{__name:"StructuredData"}),F={class:"c-base-table__content flex"},v=["innerHTML"],S={__name:"BaseTable",props:{id:String,context:String,cells:Array,useFirstRowAsHeader:{type:Boolean,default:!1},useFirstColumnAsHeader:{type:Boolean,default:!1},settings:Object},setup(e){const s=e,l=r(null),n=r(!1),u=t(()=>{const t=s.cells.reduce((t,e)=>e.length>t?e.length:t,0);return 0===t?1:1-Math.max(0,t-3)/t}),d=()=>{if(l.value){const t=l.value.$el,e=t?.querySelector?.("th:first-child, td:first-child");let s=0;if(e){const{paddingLeft:t}=window.getComputedStyle(e);s=Math.max(0,parseInt(t,10)/2)}n.value=(t?.scrollLeft??0)>s}};return(t,s)=>{const r=C,p=g;return m(),i(p,{id:e.id,ref_key:"container",ref:l,"aria-controls":e.id,class:f(["c-base-table",{"c-base-table--first-row-header":e.useFirstRowAsHeader,"c-base-table--first-col-header":e.useFirstColumnAsHeader,"c-base-table--scrolled":e.useFirstColumnAsHeader&&a(n)}]),"horizontal-scrollbar-class":"sticky left-0 bottom-0",onScroll:d},{default:c(t=>[_("div",F,[_("div",{class:f(["c-base-table__scroll-shadow relative flex w-full min-w-fit",{"c-base-table__scroll-shadow--active":!e.useFirstColumnAsHeader&&a(n),"pb-xs":t.isVisible}])},[o(r,{tabindex:"0","data-focus":`#${e.id} .c-base-table__scroll-shadow`,class:"c-base-table__table flex-grow flex-shrink-0",style:b({"--print-zoom":a(u)}),cells:e.cells,"use-first-row-as-header":e.useFirstRowAsHeader,"use-first-column-as-header":e.useFirstColumnAsHeader,settings:e.settings,"first-column-sticky":e.useFirstColumnAsHeader},{cell:c(({html:t})=>[_("div",{innerHTML:t},null,8,v)]),_:1},8,["data-focus","style","cells","use-first-row-as-header","use-first-column-as-header","settings","first-column-sticky"])],2)])]),_:1},8,["id","aria-controls","class"])}}},x=["id"],B=["innerHTML"],L=Object.assign({inheritAttrs:!1},{__name:"BlockListBlocksBlockListStructuredData",props:{id:String,context:String,isLastBlock:Boolean,data:Object,title:String,label:String,settings:Object},setup:t=>(r,n)=>{const u=w,d=S,b=A;return m(),e("div",l({id:t.id,class:["c-block-list-structured-data",[`c-block-list-structured-data--ctx--${t.context}`,r.$attrs.class]]},("useAttrsSome"in r?r.useAttrsSome:a(h))(["style","data-n-ids"],r.$attrs)),[t.title?(m(),i(u,{key:0,overline:t.label,"long-read-id":t.settings?.includeInToc&&t.id,"long-read-title":t.settings?.includeInToc&&t.title,class:f(["w-12/12col >=1280:w-8/12col mx-auto print:!ml-0",{">=1280:mx-0":"with-aside"===t.context}])},{default:c(()=>[_("span",{innerHTML:t.title},null,8,B)]),_:1},8,["overline","long-read-id","long-read-title","class"])):s("",!0),o(d,{id:`${t.id}__table`,class:f(["c-block-list-structured-data__table overflow-x-auto !print:ml-0 print:overflow-visible",{"c-block-list-structured-data__table--sticky-first-column":t.data.useFirstColumnAsHeader}]),cells:t.data.cells,"use-first-row-as-header":t.data.useFirstRowAsHeader,"use-first-column-as-header":t.data.useFirstColumnAsHeader,"enable-horizontal":!1},null,8,["id","class","cells","use-first-row-as-header","use-first-column-as-header"]),o(b,{class:"c-block-list-structured-data__buttons","aria-controls":`${t.id}__table`,"floating-buttons":!t.isLastBlock},null,8,["aria-controls","floating-buttons"])],16,x)}});
1export{L 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.