cuwebframework 0.4.20 → 0.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as b}from"./global-events-DX4cMJDc.js";function Y(){const r=["u-theme-dark","u-theme-light"],e=document.documentElement,n=document.getElementById("tgl-theme");if(!n){console.warn('Toggle-Button mit ID "tgl-theme" nicht gefunden.');return}n.addEventListener("click",()=>{const t=e.classList.contains("u-theme-dark")?"u-theme-light":"u-theme-dark";e.classList.remove(...r),e.classList.add(t),e.setAttribute("color-scheme",t==="u-theme-dark"?"dark":"light");try{localStorage.setItem("theme",t)}catch(s){}})}function F(){const r=document.body,e=document.documentElement;["u-brand-bos","u-brand-cu"].forEach(o=>{r.classList.contains(o)&&(r.classList.remove(o),e.classList.add(o))}),r.classList.length===0&&r.removeAttribute("class")}function V(){var m,f;if(!window.gsap)return;const r=window.gsap,e=document.getElementById("g_nav_menu_toggle"),n=document.querySelector('label[for="g_nav_menu_toggle"]'),o=document.querySelector(".g_nav_menu"),t=(m=n==null?void 0:n.querySelector("use"))!=null?m:null;if(!e||!n||!t)return;const s=d=>{n.setAttribute("aria-label",d?"Menü schließen":"Menü öffnen"),n.setAttribute("aria-expanded",d?"true":"false")},i=d=>{t.setAttribute("href",d?"#icon-x-lg":"#icon-menu")},c=d=>{document.body.classList.toggle("u-overflow-hidden",d)},u=d=>{o&&r.to(o,d?{display:"block",height:"calc(100vh - var(--global-nav--height))",opacity:1,duration:.3,ease:"power2.out"}:{display:"none",height:0,opacity:0,duration:.25,ease:"power2.in"})},l=()=>{const d=!!e.checked;s(d),i(d),u(d),c(d)};document.documentElement.classList.add("js-nav");const a=(f=r.matchMedia)==null?void 0:f.call(r);a&&typeof a.add=="function"?a.add("(max-width: 1040px)",()=>{r.set(o,{height:0,opacity:0,display:"none"}),l(),e.addEventListener("change",l)}):(l(),e.addEventListener("change",l))}function x(){if(!window.gsap||!window.ScrollTrigger)return;const r=window.gsap,e=document.querySelector(".g_nav"),n=document.querySelector(".global_header"),o=n==null?void 0:n.querySelector(".g_banner");if(!e)return;let t="shown";const s=50,i=350,c=()=>{t!=="shown"&&(n&&r.to(n,{y:0,duration:.25,ease:"power2.out",overwrite:!0}),t="shown")},u=()=>{if(t==="hidden"||!e)return;const a=e.offsetHeight;n&&r.to(n,{y:-a,duration:.25,ease:"power2.out",overwrite:!0}),t="hidden"},l=()=>{e&&e.querySelectorAll("details[open]").forEach(a=>{a.dispatchEvent(new CustomEvent("details:request-close",{bubbles:!0}))})};window.ScrollTrigger.create({start:0,end:document.body.scrollHeight,onUpdate(a){if(a.scroll()<=s){o&&(o.style.display="none"),c();return}o&&(o.style.display=""),!(Math.abs(a.getVelocity())<i)&&(a.direction===1?(l(),u()):c())}}),window.ScrollTrigger.addEventListener("refresh",()=>{window.scrollY<=s&&c()}),window.scrollY<=s?(c(),o&&(o.style.display="none")):(u(),o&&(o.style.display=""))}function W(){if(!window.gsap)return;const e=t=>t==null?!0:window.innerWidth>t,n=(t,s,i)=>{var u,l;const c=(l=(u=t.dataset)==null?void 0:u[s])!=null?l:void 0;return c===void 0?i:c==="true"},o=(t,s,i)=>{var l,a;const c=(a=(l=t.dataset)==null?void 0:l[s])!=null?a:void 0;if(c===void 0||c==="")return i;const u=parseInt(c,10);return Number.isNaN(u)?i:u};document.querySelectorAll("details").forEach(t=>{var P;const s=t.querySelector("summary"),i=s==null?void 0:s.nextElementSibling;if(!s||!i)return;const c=Array.from(i.children),u=n(t,"hover",!1),l=o(t,"hoverMinWidth",null),a=(P=o(t,"hoverDelay",750))!=null?P:750,m=n(t,"animate",!0);let f=!1,d=!1,h=null;const g=()=>{h!=null&&(clearTimeout(h),h=null)};let E=null;const y=n(t,"autoclose",!1),C=()=>{!y||E||(E=p=>{var k,N;if(!t.open)return;const I=(N=(k=p.composedPath)==null?void 0:k.call(p))!=null?N:[];if(I.length){if(I.includes(s)||I.includes(i))return;S();return}const O=p.target;!!(O&&(s.contains(O)||i.contains(O)))||S()},document.addEventListener("pointerdown",E,{capture:!0}))},L=()=>{E&&(document.removeEventListener("pointerdown",E,{capture:!0}),E=null)},_=m;let w=null;const v={open:()=>{t.open=!0},close:()=>{t.open=!1}};if(_){const p=window.gsap;p.set(i,{height:0,overflow:"hidden"}),c.length>0&&p.set(c,{opacity:0}),w=p.timeline({paused:!0,defaults:{duration:.35,ease:"power2.out"},onReverseComplete:()=>{t.open=!1,L()}}),w.set(t,{attr:{open:""}},0),w.to(i,{height:()=>i.scrollHeight}),w.set(i,{clearProps:"height"}),c.length>0&&w.to(c,{opacity:1,stagger:.04,duration:.38},"-=0.25"),v.open=()=>{w.invalidate().play(0),C()},v.close=()=>{w.reverse()}}function T(){v.open(),_||C()}function S(){v.close(),_||L()}t.addEventListener("details:request-close",p=>{p.stopPropagation(),t.open&&S()}),s.addEventListener("click",p=>{if(p.preventDefault(),!t.open)T();else{if(f&&d){C();return}S()}}),u&&(t.addEventListener("mouseenter",()=>{e(l)&&(t.open||(f=!0,d=!0,g(),h=window.setTimeout(()=>{d=!1},a),T()))}),t.addEventListener("mouseleave",()=>{f&&(f=!1,d=!1,g(),t.open&&S())}))})}function R(){document.querySelectorAll('[cu-list-sort="abc"]').forEach(e=>{const n=Array.from(e.children);n.sort((o,t)=>o.textContent.trim().localeCompare(t.textContent.trim(),"de",{sensitivity:"base"})),n.forEach(o=>e.appendChild(o))})}function M(){const r=String(new Date().getFullYear()),e=document.querySelectorAll('time[datetime="currentYear"]');e.length!==0&&e.forEach(n=>{n.setAttribute("datetime",r),n.textContent=r})}function j(){const r=(e,n=100)=>{let o;return(...t)=>{clearTimeout(o),o=setTimeout(()=>e(...t),n)}};document.querySelectorAll(".horizontal_slider_container").forEach(e=>{const n=e.querySelector('[data-slider="content"]'),o=e.querySelector('[data-slider="btn-right"]'),t=e.querySelector('[data-slider="btn-left"]'),s=e.querySelector(".button_group_wrapper"),i=o==null?void 0:o.closest(".button_main_wrap"),c=t==null?void 0:t.closest(".button_main_wrap"),u=()=>n.querySelectorAll('[data-slider="item"]').length?Array.from(n.querySelectorAll('[data-slider="item"]')):Array.from(n.children),l=h=>{const g=u();h<0||h>=g.length||g[h].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},a=()=>{const h=u(),g=n.getBoundingClientRect().left+n.clientWidth/2;let E=0,y=1/0;return h.forEach((C,L)=>{const _=C.getBoundingClientRect(),w=_.left+_.width/2,v=Math.abs(w-g);v<y&&(y=v,E=L)}),E},m=()=>l(a()+1),f=()=>l(a()-1),d=()=>{const h=n.scrollLeft,g=n.scrollWidth-n.clientWidth,E=h<=0,y=h>=g-1;if(!(n.scrollWidth>n.clientWidth)){s==null||s.style.setProperty("display","none"),c==null||c.style.setProperty("display","none"),i==null||i.style.setProperty("display","none");return}s==null||s.style.setProperty("display","flex"),c==null||c.style.setProperty("display",E?"none":"flex"),i==null||i.style.setProperty("display",y?"none":"flex")};o==null||o.addEventListener("click",m),t==null||t.addEventListener("click",f),n==null||n.addEventListener("scroll",r(d)),window.addEventListener("resize",r(d,150)),setTimeout(d,200)})}const A={UC_CMP:"H1Vl5NidjWX",CLOUDFRONT:"BJ_ocNjds-X",JSDELIVR:"F-REmjGq7",VIDEOASK:"VtnVCeUzx",WEBFLOW:"BJ0H5NjOjWX",TIKTOK:"Z0TcXjY0P",FACEBOOK_PIXEL:"ko1w5PpFl",FACEBOOK_SOCIAL_PLUGIN:"XYQZBUojc",YOUTUBE_VIDEO:"BJz7qNsdj-7",GOOGLE_TAG_MANAGER:"BJ59EidsWQ",GOOGlE_ANALYTICS:"HkocEodjb7",GOOGLE_FONTS:"HkPBYFofN",GOOGLE_AJAX:"H1PKqNodoWQ",GOOGLE_PLAY:"rw4DyFQcg6s3-W",RECAPTCHA:"Hko_qNsui-Q",CLICKCEASE:"jgGgfqxe0",TYPEFORM:"r1PkZcEs_iWQ",DOUBLECLICK_AD:"9V8bg4D63"},B={YOUTUBE_VIDEO:["RECAPTCHA","GOOGLE_AJAX","GOOGLE_FONTS","GOOGLE_PLAY","DOUBLECLICK_AD"],VIDEOASK:["TYPEFORM","CLICKCEASE","FACEBOOK_PIXEL","FACEBOOK_SOCIAL_PLUGIN","GOOGLE_TAG_MANAGER","GOOGlE_ANALYTICS","TYPEFORM","TIKTOK"]};function $(){b("showSecondLayer",()=>{var r;(r=window.__ucCmp)==null||r.showSecondLayer()}),b("showServiceDetails",r=>{var o;const e=r.closest("[data-uc-id]"),n=e==null?void 0:e.getAttribute("data-uc-id");if(!e||!n){console.warn("Ungültiges Element oder fehlende data-uc-id");return}(o=window.__ucCmp)==null||o.showServiceDetails(n)}),b("updateServicesConsents",async r=>{var c,u,l;const e=r.closest("[data-uc-id]"),n=e==null?void 0:e.dataset.ucId;if(!n){console.warn("Für die Action 'updateServicesConsents' wurde kein 'data-uc-id' im Elternelement gefunden.");return}const o=Object.keys(A).find(a=>A[a]===n);if(!o){console.warn(`Kein Service-Key für die ID '${n}' gefunden.`);return}const t=(c=B[o])!=null?c:[],s=new Set([o,...t]),i=Array.from(s).map(a=>{const m=A[a];return m?{id:m,consent:!0}:(console.warn(`(updateServicesConsents) Unbekannter Service-Key: ${a}`),null)}).filter(a=>a!==null);i.length>0&&(console.log("Service-Consents, die gesetzt werden:",i),await((u=window.__ucCmp)==null?void 0:u.updateServicesConsents(i)),(l=window.__ucCmp)==null||l.saveConsents())})}function X(r,e){return e.every(n=>{const o=r.services[n];return(o==null?void 0:o.consent.given)===!0})}const z="modulepreload",J=function(r){return"/"+r},q={},K=function(e,n,o){let t=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(a=>Promise.resolve(a).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),c=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));t=u(n.map(l=>{if(l=J(l),l in q)return;q[l]=!0;const a=l.endsWith(".css"),m=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${m}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":z,a||(f.as="script"),f.crossOrigin="",f.href=l,c&&f.setAttribute("nonce",c),document.head.appendChild(f),a)return new Promise((d,h)=>{f.addEventListener("load",d),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return t.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return e().catch(s)})};function H(r){const e=document.createElement("div");e.className="u-text-align-center u-vflex-center-top u-gap-3 u-background-color-auto u-overflow-auto u-p-small";const n=document.createElement("p");n.innerHTML=`Dieser Inhalt kann nur angezeigt werden, wenn die <span class="u-text-color-primary">${r}</span> Cookies erlaubt sind.
|
|
2
|
-
`;const o=document.createElement("button");o.type="button",o.className="u-text-link-color-brand-inv u-text-decoration-underline u-p-small",o.innerText="Cookies akzeptieren und Medien Laden",o.setAttribute("data-action","updateServicesConsents");const
|
|
1
|
+
function F(){const r=["u-theme-dark","u-theme-light"],e=document.documentElement,t=document.getElementById("tgl-theme");if(!t){console.warn('Toggle-Button mit ID "tgl-theme" nicht gefunden.');return}t.addEventListener("click",()=>{const n=e.classList.contains("u-theme-dark")?"u-theme-light":"u-theme-dark";e.classList.remove(...r),e.classList.add(n),e.setAttribute("color-scheme",n==="u-theme-dark"?"dark":"light");try{localStorage.setItem("theme",n)}catch(s){}})}function V(){const r=document.body,e=document.documentElement;["u-brand-bos","u-brand-cu"].forEach(o=>{r.classList.contains(o)&&(r.classList.remove(o),e.classList.add(o))}),r.classList.length===0&&r.removeAttribute("class")}function x(){var f,m;if(!window.gsap)return;const r=window.gsap,e=document.getElementById("g_nav_menu_toggle"),t=document.querySelector('label[for="g_nav_menu_toggle"]'),o=document.querySelector(".g_nav_menu"),n=(f=t==null?void 0:t.querySelector("use"))!=null?f:null;if(!e||!t||!n)return;const s=l=>{t.setAttribute("aria-label",l?"Menü schließen":"Menü öffnen"),t.setAttribute("aria-expanded",l?"true":"false")},a=l=>{n.setAttribute("href",l?"#icon-x-lg":"#icon-menu")},i=l=>{document.body.classList.toggle("u-overflow-hidden",l)},d=l=>{o&&r.to(o,l?{display:"block",height:"calc(100vh - var(--global-nav--height))",opacity:1,duration:.3,ease:"power2.out"}:{display:"none",height:0,opacity:0,duration:.25,ease:"power2.in"})},u=()=>{const l=!!e.checked;s(l),a(l),d(l),i(l)};document.documentElement.classList.add("js-nav");const c=(m=r.matchMedia)==null?void 0:m.call(r);c&&typeof c.add=="function"?c.add("(max-width: 1040px)",()=>{r.set(o,{height:0,opacity:0,display:"none"}),u(),e.addEventListener("change",u)}):(u(),e.addEventListener("change",u))}function W(){if(!window.gsap||!window.ScrollTrigger)return;const r=window.gsap,e=document.querySelector(".g_nav"),t=document.querySelector(".global_header"),o=t==null?void 0:t.querySelector(".g_banner");if(!e)return;let n="shown";const s=50,a=350,i=()=>{n!=="shown"&&(t&&r.to(t,{y:0,duration:.25,ease:"power2.out",overwrite:!0}),n="shown")},d=()=>{if(n==="hidden"||!e)return;const c=e.offsetHeight;t&&r.to(t,{y:-c,duration:.25,ease:"power2.out",overwrite:!0}),n="hidden"},u=()=>{e&&e.querySelectorAll("details[open]").forEach(c=>{c.dispatchEvent(new CustomEvent("details:request-close",{bubbles:!0}))})};window.ScrollTrigger.create({start:0,end:document.body.scrollHeight,onUpdate(c){if(c.scroll()<=s){o&&(o.style.display="none"),i();return}o&&(o.style.display=""),!(Math.abs(c.getVelocity())<a)&&(c.direction===1?(u(),d()):i())}}),window.ScrollTrigger.addEventListener("refresh",()=>{window.scrollY<=s&&i()}),window.scrollY<=s?(i(),o&&(o.style.display="none")):(d(),o&&(o.style.display=""))}function R(){if(!window.gsap)return;const e=n=>n==null?!0:window.innerWidth>n,t=(n,s,a)=>{var d,u;const i=(u=(d=n.dataset)==null?void 0:d[s])!=null?u:void 0;return i===void 0?a:i==="true"},o=(n,s,a)=>{var u,c;const i=(c=(u=n.dataset)==null?void 0:u[s])!=null?c:void 0;if(i===void 0||i==="")return a;const d=parseInt(i,10);return Number.isNaN(d)?a:d};document.querySelectorAll("details").forEach(n=>{var k;const s=n.querySelector("summary"),a=s==null?void 0:s.nextElementSibling;if(!s||!a)return;const i=Array.from(a.children),d=t(n,"hover",!1),u=o(n,"hoverMinWidth",null),c=(k=o(n,"hoverDelay",750))!=null?k:750,f=t(n,"animate",!0);let m=!1,l=!1,h=null;const E=()=>{h!=null&&(clearTimeout(h),h=null)};let g=null;const y=t(n,"autoclose",!1),C=()=>{!y||g||(g=p=>{var P,N;if(!n.open)return;const I=(N=(P=p.composedPath)==null?void 0:P.call(p))!=null?N:[];if(I.length){if(I.includes(s)||I.includes(a))return;L();return}const O=p.target;!!(O&&(s.contains(O)||a.contains(O)))||L()},document.addEventListener("pointerdown",g,{capture:!0}))},S=()=>{g&&(document.removeEventListener("pointerdown",g,{capture:!0}),g=null)},b=f;let w=null;const v={open:()=>{n.open=!0},close:()=>{n.open=!1}};if(b){const p=window.gsap;p.set(a,{height:0,overflow:"hidden"}),i.length>0&&p.set(i,{opacity:0}),w=p.timeline({paused:!0,defaults:{duration:.35,ease:"power2.out"},onReverseComplete:()=>{n.open=!1,S()}}),w.set(n,{attr:{open:""}},0),w.to(a,{height:()=>a.scrollHeight}),w.set(a,{clearProps:"height"}),i.length>0&&w.to(i,{opacity:1,stagger:.04,duration:.38},"-=0.25"),v.open=()=>{w.invalidate().play(0),C()},v.close=()=>{w.reverse()}}function T(){v.open(),b||C()}function L(){v.close(),b||S()}n.addEventListener("details:request-close",p=>{p.stopPropagation(),n.open&&L()}),s.addEventListener("click",p=>{if(p.preventDefault(),!n.open)T();else{if(m&&l){C();return}L()}}),d&&(n.addEventListener("mouseenter",()=>{e(u)&&(n.open||(m=!0,l=!0,E(),h=window.setTimeout(()=>{l=!1},c),T()))}),n.addEventListener("mouseleave",()=>{m&&(m=!1,l=!1,E(),n.open&&L())}))})}function M(){document.querySelectorAll('[cu-list-sort="abc"]').forEach(e=>{const t=Array.from(e.children);t.sort((o,n)=>o.textContent.trim().localeCompare(n.textContent.trim(),"de",{sensitivity:"base"})),t.forEach(o=>e.appendChild(o))})}function j(){const r=String(new Date().getFullYear()),e=document.querySelectorAll('time[datetime="currentYear"]');e.length!==0&&e.forEach(t=>{t.setAttribute("datetime",r),t.textContent=r})}function $(){const r=(e,t=100)=>{let o;return(...n)=>{clearTimeout(o),o=setTimeout(()=>e(...n),t)}};document.querySelectorAll(".horizontal_slider_container").forEach(e=>{const t=e.querySelector('[data-slider="content"]'),o=e.querySelector('[data-slider="btn-right"]'),n=e.querySelector('[data-slider="btn-left"]'),s=e.querySelector(".button_group_wrapper"),a=o==null?void 0:o.closest(".button_main_wrap"),i=n==null?void 0:n.closest(".button_main_wrap"),d=()=>t.querySelectorAll('[data-slider="item"]').length?Array.from(t.querySelectorAll('[data-slider="item"]')):Array.from(t.children),u=h=>{const E=d();h<0||h>=E.length||E[h].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},c=()=>{const h=d(),E=t.getBoundingClientRect().left+t.clientWidth/2;let g=0,y=1/0;return h.forEach((C,S)=>{const b=C.getBoundingClientRect(),w=b.left+b.width/2,v=Math.abs(w-E);v<y&&(y=v,g=S)}),g},f=()=>u(c()+1),m=()=>u(c()-1),l=()=>{const h=t.scrollLeft,E=t.scrollWidth-t.clientWidth,g=h<=0,y=h>=E-1;if(!(t.scrollWidth>t.clientWidth)){s==null||s.style.setProperty("display","none"),i==null||i.style.setProperty("display","none"),a==null||a.style.setProperty("display","none");return}s==null||s.style.setProperty("display","flex"),i==null||i.style.setProperty("display",g?"none":"flex"),a==null||a.style.setProperty("display",y?"none":"flex")};o==null||o.addEventListener("click",f),n==null||n.addEventListener("click",m),t==null||t.addEventListener("scroll",r(l)),window.addEventListener("resize",r(l,150)),setTimeout(l,200)})}const B={};function _(r,e){B[r]=e}function X(){document.addEventListener("click",r=>{const e=r.target;if(!e)return;const t=e.getAttribute("data-action");if(!t)return;const o=B[t];if(!o){console.warn(`Keine Action für data-action="${t}" registriert`);return}r.preventDefault(),o(e,r)})}const A={UC_CMP:"H1Vl5NidjWX",CLOUDFRONT:"BJ_ocNjds-X",JSDELIVR:"F-REmjGq7",VIDEOASK:"VtnVCeUzx",WEBFLOW:"BJ0H5NjOjWX",TIKTOK:"Z0TcXjY0P",FACEBOOK_PIXEL:"ko1w5PpFl",FACEBOOK_SOCIAL_PLUGIN:"XYQZBUojc",YOUTUBE_VIDEO:"BJz7qNsdj-7",GOOGLE_TAG_MANAGER:"BJ59EidsWQ",GOOGlE_ANALYTICS:"HkocEodjb7",GOOGLE_FONTS:"HkPBYFofN",GOOGLE_AJAX:"H1PKqNodoWQ",GOOGLE_PLAY:"rw4DyFQcg6s3-W",RECAPTCHA:"Hko_qNsui-Q",CLICKCEASE:"jgGgfqxe0",TYPEFORM:"r1PkZcEs_iWQ",DOUBLECLICK_AD:"9V8bg4D63"},K={YOUTUBE_VIDEO:["RECAPTCHA","GOOGLE_AJAX","GOOGLE_FONTS","GOOGLE_PLAY","DOUBLECLICK_AD"],VIDEOASK:["TYPEFORM","CLICKCEASE","FACEBOOK_PIXEL","FACEBOOK_SOCIAL_PLUGIN","GOOGLE_TAG_MANAGER","GOOGlE_ANALYTICS","TYPEFORM","TIKTOK"]};function z(){_("showSecondLayer",()=>{var r;(r=window.__ucCmp)==null||r.showSecondLayer()}),_("showServiceDetails",r=>{var o;const e=r.closest("[data-uc-id]"),t=e==null?void 0:e.getAttribute("data-uc-id");if(!e||!t){console.warn("Ungültiges Element oder fehlende data-uc-id");return}(o=window.__ucCmp)==null||o.showServiceDetails(t)}),_("updateServicesConsents",async r=>{var i,d,u;const e=r.closest("[data-uc-id]"),t=e==null?void 0:e.dataset.ucId;if(!t){console.warn("Für die Action 'updateServicesConsents' wurde kein 'data-uc-id' im Elternelement gefunden.");return}const o=Object.keys(A).find(c=>A[c]===t);if(!o){console.warn(`Kein Service-Key für die ID '${t}' gefunden.`);return}const n=(i=K[o])!=null?i:[],s=new Set([o,...n]),a=Array.from(s).map(c=>{const f=A[c];return f?{id:f,consent:!0}:(console.warn(`(updateServicesConsents) Unbekannter Service-Key: ${c}`),null)}).filter(c=>c!==null);a.length>0&&(console.log("Service-Consents, die gesetzt werden:",a),await((d=window.__ucCmp)==null?void 0:d.updateServicesConsents(a)),(u=window.__ucCmp)==null||u.saveConsents())})}function J(r,e){return e.every(t=>{const o=r.services[t];return(o==null?void 0:o.consent.given)===!0})}const Z="modulepreload",Q=function(r){return"/"+r},q={},H=function(e,t,o){let n=Promise.resolve();if(t&&t.length>0){let u=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};var a=u;document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),d=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));n=u(t.map(c=>{if(c=Q(c),c in q)return;q[c]=!0;const f=c.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${m}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":Z,f||(l.as="script"),l.crossOrigin="",l.href=c,d&&l.setAttribute("nonce",d),document.head.appendChild(l),f)return new Promise((h,E)=>{l.addEventListener("load",h),l.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(i){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=i,window.dispatchEvent(d),!d.defaultPrevented)throw i}return n.then(i=>{for(const d of i||[])d.status==="rejected"&&s(d.reason);return e().catch(s)})};function Y(r){const e=document.createElement("div");e.className="u-text-align-center u-vflex-center-top u-gap-3 u-background-color-auto u-overflow-auto u-p-small";const t=document.createElement("p");t.innerHTML=`Dieser Inhalt kann nur angezeigt werden, wenn die <span class="u-text-color-primary">${r}</span> Cookies erlaubt sind.
|
|
2
|
+
`;const o=document.createElement("button");o.type="button",o.className="u-text-link-color-brand-inv u-text-decoration-underline u-p-small",o.innerText="Cookies akzeptieren und Medien Laden",o.setAttribute("data-action","updateServicesConsents");const n=document.createElement("button");return n.type="button",n.className="u-text-link-color-brand-inv u-p-small",n.innerText="Details",n.setAttribute("data-action","showServiceDetails"),e.appendChild(t),e.appendChild(o),e.appendChild(n),e}async function ee(r,e,t,o){const n=r.dataset.embedLoaded==="true";if(t&&e){if(!n){if(r.dataset.embedLoaded="true",!o.fn){const s=await H(()=>import("./ytLoader-DLd5o3iy.js"),[]);o.fn=s.ytLoader1}o.fn&&r.replaceChildren(o.fn(e))}}else r.replaceChildren(Y("YouTube Video")),r.dataset.embedLoaded="false"}async function te(r,e,t,o){const n=r.dataset.embedLoaded==="true";if(t&&e){if(!n){if(r.dataset.embedLoaded="true",!o.fn){const s=await H(()=>import("./VideoAskLoader-xM3qhhQB.js"),[]);o.fn=s.videoAskLoader}o.fn&&r.replaceChildren(o.fn(e))}}else r.replaceChildren(Y("Videoask")),r.dataset.embedLoaded="false"}function ne(r){var o;const e=new Set([r]);return((o=K[r])!=null?o:[]).forEach(n=>e.add(n)),Array.from(e).map(n=>A[n]).filter(n=>!!n)}async function D(r){const e=document.querySelectorAll("[data-uc-id]");if(!e.length)return;const t={fn:null},o={fn:null};for(const n of e){const s=n.getAttribute("data-uc-id"),a=n.getAttribute("data-embed-src"),i=Object.keys(A).find(c=>A[c]===s);if(!i)continue;const d=ne(i),u=r?J(r,d):!0;switch(i){case"YOUTUBE_VIDEO":{await ee(n,a,u,t);break}case"VIDEOASK":{await te(n,a,u,o);break}}}}function oe(r=200){return new Promise(e=>{let t=!1;const o=s=>{t||(t=!0,e(s))};if(window.__ucCmp){o(window.__ucCmp);return}const n=()=>{var s;window.removeEventListener("UC_UI_INITIALIZED",n),o((s=window.__ucCmp)!=null?s:null)};window.addEventListener("UC_UI_INITIALIZED",n),setTimeout(()=>{var s;window.removeEventListener("UC_UI_INITIALIZED",n),o((s=window.__ucCmp)!=null?s:null)},r)})}let G=!1;async function re(){if(G)return;G=!0;const r=await oe();if(!r){await D();return}try{if(typeof r.getConsentDetails=="function"){const e=await r.getConsentDetails();await D(e)}else console.warn("Usercentrics vorhanden, aber getConsentDetails() ist nicht verfügbar – Embeds bleiben blockiert.")}catch(e){console.warn("Fehler beim Laden der ConsentDetails oder Zugriff auf __ucCmp.getConsentDetails():",e)}window.addEventListener("UC_CONSENT",e=>{const t=e.detail;D(t)})}function se(){const r=document.querySelectorAll("[data-banner]");r.length!==0&&r.forEach(e=>{const t=e.getAttribute("data-banner");if(!t)return;const o=e.getAttribute("data-banner-close-area");let n;o==="global"?n=`bannerClosed:${t}`:n=`bannerClosed:${location.pathname}:${t}`,localStorage.getItem(n)==="true"||e.classList.toggle("u-display-none")})}function ie(){_("closeGlobalBanner",r=>{const e=r.closest("[data-banner]");if(!e){console.error("Global banner element not found.",r);return}const t=e.getAttribute("data-banner");if(!t)return;const o=e.getAttribute("data-banner-close-area");if(e.classList.add("u-display-none"),!o)return;let n;o==="global"?n=`bannerClosed:${t}`:n=`bannerClosed:${location.pathname}:${t}`,localStorage.setItem(n,"true")})}function ce(){_("openModalWindow",r=>{const e=r.getAttribute("data-modal-id");if(!e)return;const t=document.querySelector(`#${e}`);t==null||t.showModal()})}function ae(){_("closeModalWindow",r=>{const e=r.closest("dialog");e==null||e.close()})}function le(){X(),F(),V(),x(),W(),R(),M(),j(),$(),ie(),se(),ce(),ae()}function de(){z(),re()}function U(){le(),de()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",U,{once:!0}):U();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{margin:0;padding:0;box-sizing:border-box}h1,h2,h3,h4,h5,h6,p,li{margin:0}section,header,footer{position:relative}button{background-color:unset;text-align:inherit}button:not(:disabled){cursor:pointer}summary{cursor:pointer}details summary .summary_icon{transform-style:preserve-3d;transition:transform .3s ease}details[open] summary .summary_icon{transform:rotateX(180deg)}summary::-webkit-details-marker,summary::marker{display:none}dialog{background-color:var(--_theme---background--secondary);color:inherit;padding:1rem;border:none;border-radius:12px}dialog:open{max-width:600px;width:90vw;max-height:90vh;overflow:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}dialog:open::backdrop{background-color:#000000bf;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}*[tabindex]:focus-visible,input[type=file]:focus-visible{outline:.125em solid #4d65ff;outline-offset:.125em}.u-container-medium,.u-container-small,.u-container-large{margin-right:auto!important;margin-left:auto!important}.w-richtext>:not(div):first-child,.w-richtext>div:first-child>:first-child{margin-top:0!important}.w-richtext>:last-child,.w-richtext ol li:last-child,.w-richtext ul li:last-child{margin-bottom:0!important}:lang(de) .u-text-style-hyphens{hyphens:auto}:lang(en) .u-text-style-hyphens{hyphens:none}.u-stack-p p+p{margin-top:1.1rem}.u-text-style-2lines,.u-text-style-3lines,.u-text-style-10lines{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.u-text-style-2lines{-webkit-line-clamp:2;line-clamp:2}.u-text-style-3lines{-webkit-line-clamp:3;line-clamp:3}.u-text-style-10lines{-webkit-line-clamp:10;line-clamp:10}.u-view-only-p>*:not(p){display:none!important}.u-margin-trim>:first-child,.u-margin-trim>:not(:not(.w-condition-invisible)~:not(.w-condition-invisible)){margin-top:0}.u-margin-trim>:last-child,.u-margin-trim>:not(:has(~:not(.w-condition-invisible))){margin-bottom:0}.is-hyphens{overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto}.visuallyhidden{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(0px 0px 99.9% 99.9%);overflow:hidden;width:1px;height:1px;border:0;padding:0}.u-hflex-left-stretch>*:first-child .u-icon-1x1-small,.u-hflex-left-stretch>.u-icon-1x1-small:first-child{flex:none}.u-flex-basis-30ch,.u-flex-basis-30ch>:first-child{flex:0 1 30ch}.u-flex-basis-40ch,.u-flex-basis-40ch>*{flex:0 1 40ch}.pointer-events-off{pointer-events:none}.pointer-events-on{pointer-events:auto}.u-background-color-auto{background-color:var(--_theme---background--secondary)}.u-background-color-secondary .u-background-color-auto,.u-background-color-brand800 .u-background-color-auto{background-color:var(--_theme---background--primary)}.
|
|
1
|
+
*{margin:0;padding:0;box-sizing:border-box}h1,h2,h3,h4,h5,h6,p,li{margin:0}section,header,footer{position:relative}button{background-color:unset;text-align:inherit}button:not(:disabled){cursor:pointer}summary{cursor:pointer}details summary .summary_icon{transform-style:preserve-3d;transition:transform .3s ease}details[open] summary .summary_icon{transform:rotateX(180deg)}summary::-webkit-details-marker,summary::marker{display:none}dialog{background-color:var(--_theme---background--secondary);color:inherit;padding:1rem;border:none;border-radius:12px}dialog:open{max-width:600px;width:90vw;max-height:90vh;overflow:hidden;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}dialog:open::backdrop{background-color:#000000bf;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}*[tabindex]:focus-visible,input[type=file]:focus-visible{outline:.125em solid #4d65ff;outline-offset:.125em}.u-container-medium,.u-container-small,.u-container-large{margin-right:auto!important;margin-left:auto!important}.w-richtext>:not(div):first-child,.w-richtext>div:first-child>:first-child{margin-top:0!important}.w-richtext>:last-child,.w-richtext ol li:last-child,.w-richtext ul li:last-child{margin-bottom:0!important}:lang(de) .u-text-style-hyphens{hyphens:auto}:lang(en) .u-text-style-hyphens{hyphens:none}.u-stack-p p+p{margin-top:1.1rem}.u-text-style-2lines,.u-text-style-3lines,.u-text-style-10lines{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}.u-text-style-2lines{-webkit-line-clamp:2;line-clamp:2}.u-text-style-3lines{-webkit-line-clamp:3;line-clamp:3}.u-text-style-10lines{-webkit-line-clamp:10;line-clamp:10}.u-view-only-p>*:not(p){display:none!important}.u-margin-trim>:first-child,.u-margin-trim>:not(:not(.w-condition-invisible)~:not(.w-condition-invisible)){margin-top:0}.u-margin-trim>:last-child,.u-margin-trim>:not(:has(~:not(.w-condition-invisible))){margin-bottom:0}.is-hyphens{overflow-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto}.visuallyhidden{position:absolute;clip:rect(1px,1px,1px,1px);clip-path:inset(0px 0px 99.9% 99.9%);overflow:hidden;width:1px;height:1px;border:0;padding:0}.u-hflex-left-stretch>*:first-child .u-icon-1x1-small,.u-hflex-left-stretch>.u-icon-1x1-small:first-child{flex:none}.u-flex-basis-30ch,.u-flex-basis-30ch>:first-child{flex:0 1 30ch}.u-flex-basis-40ch,.u-flex-basis-40ch>*{flex:0 1 40ch}.pointer-events-off{pointer-events:none}.pointer-events-on{pointer-events:auto}.u-background-color-auto{background-color:var(--_theme---background--secondary)}.u-background-color-secondary .u-background-color-auto,.u-background-color-brand800 .u-background-color-auto{background-color:var(--_theme---background--primary)}.u-background-color-section800 .u-background-color-auto{background-color:var(--_theme---background--secondary)}.u-background-color-secondary .g_card.u-background-color-auto{background-color:color-mix(in srgb,var(--_theme---background--primary) 50%,transparent)}.u-theme-light .g_card.u-background-color-auto{background-color:var(--_theme---background--secondary)}.u-theme-light .u-background-color-secondary .g_card.u-background-color-auto{background-color:var(--_theme---background--primary)}.i-underline{position:relative}.i-underline:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background:currentColor;transform-origin:left;transform:scaleX(1);opacity:1;transition:transform .3s ease,opacity .3s ease}.i-underline.on-hover-transform-x:after{transform:scaleX(0)}.i-underline.on-hover-transform-x:hover:after{transform:scaleX(1)}.i-underline.on-hover-transform-y:after{transform:translateY(-4px);opacity:0}.i-underline.on-hover-transform-y:hover:after{transform:translateY(0);opacity:1}.i-underline.on-hover-opacity:after{opacity:0}.i-underline.on-hover-opacity:hover:after{opacity:1}.cu-scrollbar{overflow-y:auto;padding-right:12px}.cu-scrollbar::-webkit-scrollbar{width:10px}.cu-scrollbar::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.5);border-radius:10px}.cu-scrollbar::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(4,36,36,1)}.cu-scrollbar::-webkit-scrollbar-corner{display:none;height:0px;width:0px}[data-animation=ScaleInnerImage] :is(img,svg){transform-origin:center;transition:transform .3s ease-in-out;will-change:transform}[data-animation=ScaleInnerImage]:hover :is(img,svg),[data-animation=ScaleInnerImage]:focus-visible :is(img,svg){transform:scale(1.03)}.cu-slider-content>*,[data-slider=item]{scroll-snap-align:center;flex:0 0 100%}@media(prefers-reduced-motion:reduce){[data-animation=ScaleInnerImage] :is(img,svg){transition:none}}@supports (-webkit-appearance: none){.u-transform-z{transform:translateZ(0);transform-style:preserve-3d}}:root{--nav-gap-x: 1rem;--nav-width: 90rem}.global_header{background-color:var(--_theme---global-nav--background-close);transition:background-color .25s ease;width:100%;position:fixed;z-index:50}.g_nav{position:relative;z-index:10}.g_nav:has(details[open] .g_nav_megamenu,#g_nav_menu_toggle:checked){background-color:var(--_theme---global-nav--background-open)}.g_nav_content{max-width:90rem;width:100%;display:flex;align-items:center;justify-content:space-between;margin:0 auto}.g_nav_menu{display:contents}.g_nav_menu_list{display:flex;justify-content:space-around;flex-grow:1}.g_nav_buttons{display:flex;gap:var(--nav-gap-x)}.g_nav_item{flex-shrink:0;flex-grow:0;height:var(--global-nav--height);display:flex;align-items:center;justify-content:center;padding:.375rem 12px;color:var(--_brand---tintsshades--brand-500);position:relative;z-index:2}.g_nav_item:hover,details[open] .g_nav_item,#g_nav_menu_toggle:checked~.g_nav_item{color:var(--_theme---color--text)}.g_nav_logo{display:block;height:calc(.75 * var(--global-nav--height))}#nav-logo-small{display:none}.g_nav_icon{width:1.75rem;height:1.75rem;pointer-events:none}.g_nav_menu li>details{display:contents}.g_nav_megamenu{background-color:var(--_theme---global-nav--background-open);position:absolute;top:100%;left:0;right:0;z-index:10}#g_nav_btn_mobile_menu,label[for=g_nav_menu_toggle]{display:none;cursor:pointer}.global_header:before,.g_backdrop_blur:before{content:"";position:absolute;inset:0;z-index:-1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.g_backdrop_blur_full:before{content:"";position:fixed;inset:0;z-index:-1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@media(max-width:1040px){#g_nav_btn_mobile_menu,label[for=g_nav_menu_toggle]{display:flex}.g_nav_menu{display:none;background-color:var(--_theme---global-nav--background-open);position:absolute;height:calc(100vh - var(--global-nav--height));top:100%;left:0;right:0;padding-top:32px;padding-bottom:160px;overflow-y:auto;scrollbar-width:none}.g_nav_menu[open]{display:block}html:not(.js-nav) .g_nav_menu{display:none}html:not(.js-nav) .g_nav_content:has(#g_nav_menu_toggle:checked) .g_nav_menu{display:block}html.js-nav .g_nav_menu{will-change:height,opacity}.g_nav_menu_list{display:flex;flex-direction:column;align-items:stretch;justify-content:start;gap:var(--nav-gap-x)}.g_nav_menu details{display:block}.g_nav_menu .g_nav_megamenu{position:static}.g_nav_menu li>details>summary,.g_nav_menu li>a{justify-content:left;font-size:24px}}@media(max-width:500px){#nav-logo-large{display:none}#nav-logo-small{display:block}}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid hsl(0 0% 20% / .4);border-radius:.5rem}.cu-table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}.cu-table caption{text-align:left;font-weight:700;font-size:1.125rem;padding:.75rem 1rem}.cu-table th,.cu-table td{padding:.5rem .625rem;border:1px solid hsl(0 0% 30% / .6);text-align:center}.cu-table thead th{position:sticky;top:0;z-index:2;background-color:var(--_theme---card--background);text-align:center}.cu-table th:first-child,.cu-table td:first-child{max-width:50ch}.u-rich-text-blog h1:after,.u-rich-text-blog h2:after,.u-rich-text-blog h3:after{content:"";display:block;height:.1875rem;margin:auto;border-radius:100%;background-image:linear-gradient(90deg,hsla(0,0%,0%,0) 5%,var(--_brand---tintsshades--brand-500) 54%,hsla(0,0%,0%,0) 95%)}.u-rich-text-blog h1:after,.u-rich-text-blog h2:after{margin-bottom:1.25rem}.u-rich-text-blog p+h2{margin-top:var(--_fluid-responsive---paddings--padding-medium)}.u-rich-text-blog p+p,.u-view-only-p h2+p,.u-view-only-p h1+p{margin-top:1.1rem}.u-view-only-p>p:first-of-type{margin-top:0}.u-view-only-p>*{display:none}.u-view-only-p p{display:block}.u-rich-text-blog p+:is(ul,ol),.u-rich-text-blog :is(ul,ol)+p{margin-top:var(--_fluid-responsive---paddings--padding-small)}.u-rich-text-blog li>:is(ul,ol){margin-top:var(--_fluid-responsive---paddings--padding-xsmall)}.u-rich-text-doc>h2{margin:var(--_fluid-responsive---paddings--padding-medium) 0}.u-rich-text-doc>h3{margin:var(--_fluid-responsive---paddings--padding-small) 0}.u-rich-text-doc>p+p{margin-top:var(--_fluid-responsive---paddings--padding-small)}.u-rich-text-doc code{color:var(--_theme---color--header)}.u-rich-text-doc code.u-code-id{color:#ff634d}.u-rich-text-doc code.u-code-tag{color:#c792ea}.u-rich-text-doc code.u-code-class{color:#4da6ff}.u-rich-text-doc code.u-code-attr{color:#79e09c}.u-rich-text-doc code.u-code-value{color:#f5f5f7}.u-rich-text-doc .w-code-block{margin:var(--_fluid-responsive---paddings--padding-small) 0;font-size:var(--_fluid-responsive---text--text-size-small);border-radius:var(--radius--main);line-height:1.5}.u-rich-text-doc .u-list-bp,.u-rich-text-doc .u-list-nr{margin:var(--_fluid-responsive---paddings--padding-xsmall) 0}.u-list-bp>li+li,.u-list-nr>li+li{margin-top:var(--_spacing---2)}.u-code-attr{color:#79e09c}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={};function a(t,n){e[t]=n}function c(){document.addEventListener("click",t=>{const n=t.target;if(!n)return;const i=n.getAttribute("data-action");if(!i)return;const r=e[i];if(!r){console.warn(`Keine Action für data-action="${i}" registriert`);return}t.preventDefault(),r(n,t)})}export{c as i,a as r};
|