PageSourceSearch

https://regeringen.dk/dist/assets/content-rte-DMd_yubi.js

js regeringen.dk collected 2026-10-02 03:38:53 UTC 1,510 bytes, 1 lines download raw bytes

1import{s as d}from"./set-aria-prop-BL99Jnpu.js";import{c as h}from"./theme-settings-C6A0L8ST.js";import{t as p}from"./try-parse-json-PNnY1j55.js";const m=t=>{const r=t.querySelectorAll("table");if(!r.length)return;r.forEach(e=>{e.parentElement===t&&(e.outerHTML=`<div class="responsive-table"><div class="responsive-table__inner">${e.outerHTML}</div></div>`)}),t.querySelectorAll(".responsive-table__inner").forEach(e=>{var a;if(e.scrollWidth>e.clientWidth){const l="responsive-table--scrollable";(a=e.parentElement)==null||a.classList.add(l),e.addEventListener("scroll",()=>{var n,c;(n=e.parentElement)==null||n.classList[e.scrollLeft<=0?"remove":"add"]("responsive-table--scrolled");const i=e.scrollLeft+e.clientWidth+1>=e.scrollWidth;(c=e.parentElement)==null||c.classList[i?"remove":"add"](l)})}})},b=t=>{const r=t.querySelectorAll("span.btn, span.btn-arrow, span.btn-arrow-solid, span.link-arrow, span.btn-b, span.btn-c");r.length&&r.forEach(s=>{var o;const e=s.querySelector("a");!e&&((o=s.parentElement)==null?void 0:o.nodeName.toLowerCase())==="a"?(s.parentElement.className=s.className,s.className=""):e?(e.className=s.className,s.className=""):s.classList.add("link-format-without-link")})},f=t=>{const r="rte-anchor";Array.from(t.querySelectorAll("a[id]:not([href])")).forEach(s=>{s.classList.add(r),s.href="#"+s.id,d(s,"label",window.themeSettings.rteGenerateClickableAnchorsDictionary)})},L=t=>{m(t),b(t),p(h().getPropertyValue("--rte-generate-clickable-anchors"))&&f(t)};export{L as ContentRte};

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.