PageSourceSearch

https://www.dekra.com/_nuxt/TMt3P8JD.js

js dekra.com collected 2026-09-24 18:52:34 UTC 3,812 bytes, 1 lines download raw bytes

1import{d as C,a7 as _,o as h,k as u,e as g,r as f,H as y,F as A,v as S,L as k,a9 as I,aJ as L,b as B,z as $,Y as w,g as F,A as x}from"./D2XzVb-v.js";import{u as E}from"./B1xr_hxw.js";import"./CQb_7WEP.js";const N=["aria-labelledby"],O=["id"],R={class:"flex flex-col gap-3 list-none p-0 m-0"},V=["href","onClick"],j=C({__name:"TableOfContents",props:{toc:{},headline:{},includeH3Headers:{type:Boolean}},setup(t){const a=_(),n=s=>s.trim().toLowerCase().replace(/[^\w]+/g,"-").replace(/^-|-$/g,""),e=(s,o)=>{const i=t.toc[o].text,r=t.toc.slice(0,o).filter(p=>p.text===i).length,m=[...document.querySelectorAll(t.includeH3Headers?"h2, h3":"h2")].filter(p=>p.textContent.trim()===i.trim()),l=m[r]||m[m.length-1];if(!l||l.textContent?.trim()!==t.toc[o].text.trim()){k.error(I,`Wanted to navigate to TOC entry #${o} ("${t.toc[o].text}"), but the heading at that position did not match!`);return}s.preventDefault(),l.hasAttribute("tabindex")||l.setAttribute("tabindex","-1"),l.scrollIntoView({behavior:"smooth",block:"start"}),l.focus({preventScroll:!0})};return(s,o)=>(h(),u("nav",{class:"p-6 bg-darkgreen-50 rounded-lg flex flex-col sm:max-w-[480px]","aria-labelledby":g(a)},[f("div",{id:g(a),class:"text-black text-xl font-bold"},y(t.headline),9,O),o[0]||(o[0]=f("div",{class:"mt-1.5 mb-4 h-[1px] w-full bg-gray-300"},null,-1)),f("ul",R,[(h(!0),u(A,null,S(t.toc,(i,r)=>(h(),u("li",{key:r},[f("a",{href:`#${n(i.text)}-${r}`,class:"underline cursor-pointer text-darkgreen-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-darkgreen-600 rounded-sm",onClick:v=>e(v,r)},y(i.text),9,V)]))),128))])],8,N))}}),c=(t,a)=>{const n=[];return t.forEach(e=>{if(!D(e))return;const s=o=>e.sectionType===o;s("StTextImage")&&(e.data?.headline&&n.push({text:e.data.headline,level:"h2"}),e.data?.text?.type==="RichText"&&n.push(...d(e.data.text,a))),s("StHighlightBulletList")&&n.push(...T(e.data,a)),s("StContainer")&&(e.data.headline&&n.push({text:e.data.headline,level:"h2"}),e.data.content&&e.data.content.length&&n.push(...c(e.data.content,a))),s("StContainerTabsAccordion")&&(n.push(...T(e.data,a)),e.data?.elements?.length&&n.push(...c(e.data.elements,a))),s("StElementTabsAccordion")&&e.data?.content?.length&&n.push(...c(e.data.content,a)),e.children?.length&&n.push(...c(e.children,a))}),n},D=t=>t.lifespan?L(t.lifespan.start,t.lifespan.end):!0;function b(t){return typeof t=="string"?t:Array.isArray(t)?t.map(b).join(""):t&&typeof t=="object"?b(t.content):""}const d=(t,a,n=[])=>{if(Array.isArray(t))return t.forEach(i=>d(i,a,n)),n;if(!t||typeof t!="object")return n;const e=t;if("elements"in e)return d(e.elements,a,n),n;const s=e.data?.["data-fs-style"];if(typeof s=="string"&&(a?["format.h3","format.h2"]:["format.h2"]).includes(s)){const i=b(e.content).trim();return i&&n.push({text:i,level:s.split(".")[1]}),n}return d(e.content,a,n),n},T=(t,a)=>t.headline&&t.headlineFormat.value==="H2 (semantic)"?[{text:t.headline,level:"h2"}]:t.headline&&t.headlineFormat.value==="H3 (semantic)"&&a?[{text:t.headline,level:"h3"}]:[],q=C({__name:"TableOfContents",props:{headline:{default:""},includeH3Headers:{type:Boolean}},setup(t){const a=B(),{children:n}=a,{isInsideContainer:e}=E(),s=F(()=>{const o=[];a.layout==="PtLocationPage"&&o.push({text:x("location_contact_details_headline"),level:"h2"},{text:x("location_opening_hours_headline"),level:"h2"},{text:x("location_next_locations_headline"),level:"h2"});const i=c(n,t.includeH3Headers);return[...o,...i]});return(o,i)=>{const r=j;return h(),u("section",{"data-t-name":"table_of_contents",class:w({"page-grid-small vertical-spacing-enabled":!g(e)})},[$(r,{class:"grid-inside",headline:t.headline,"include-h3-headers":t.includeH3Headers,toc:g(s)},null,8,["headline","include-h3-headers","toc"])],2)}}});export{q 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.