cuwebframework 0.4.9 → 0.4.11

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,6 +1,6 @@
1
- import{r as O}from"./global-events-DX4cMJDc.js";function Y(){const r=["u-theme-dark","u-theme-light"],t=document.documentElement,n=document.getElementById("tgl-theme");if(!n){console.warn('Toggle-Button mit ID "tgl-theme" nicht gefunden.');return}n.addEventListener("click",()=>{const e=t.classList.contains("u-theme-dark")?"u-theme-light":"u-theme-dark";t.classList.remove(...r),t.classList.add(e),t.setAttribute("color-scheme",e==="u-theme-dark"?"dark":"light");try{localStorage.setItem("theme",e)}catch(s){}})}function F(){const r=document.body,t=document.documentElement;["u-brand-bos","u-brand-cu"].forEach(o=>{r.classList.contains(o)&&(r.classList.remove(o),t.classList.add(o))}),r.classList.length===0&&r.removeAttribute("class")}function H(){var m,f;if(!window.gsap)return;const r=window.gsap,t=document.getElementById("g_nav_menu_toggle"),n=document.querySelector('label[for="g_nav_menu_toggle"]'),o=document.querySelector(".g_nav_menu"),e=(m=n==null?void 0:n.querySelector("use"))!=null?m:null;if(!t||!n||!e)return;const s=u=>{n.setAttribute("aria-label",u?"Menü schließen":"Menü öffnen"),n.setAttribute("aria-expanded",u?"true":"false")},i=u=>{e.setAttribute("href",u?"#icon-x-lg":"#icon-menu")},c=u=>{document.body.classList.toggle("u-overflow-hidden",u)},d=u=>{o&&r.to(o,u?{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"})},a=()=>{const u=!!t.checked;s(u),i(u),d(u),c(u)};document.documentElement.classList.add("js-nav");const l=(f=r.matchMedia)==null?void 0:f.call(r);l&&typeof l.add=="function"?l.add("(max-width: 1040px)",()=>{r.set(o,{height:0,opacity:0,display:"none"}),a(),t.addEventListener("change",a)}):(a(),t.addEventListener("change",a))}function M(){if(!window.gsap||!window.ScrollTrigger)return;const r=window.gsap,t=document.querySelector(".g_nav");if(!t)return;let n="shown";const o=50,e=350,s=()=>{n!=="shown"&&(r.to(t,{yPercent:0,duration:.25,ease:"power2.out",overwrite:!0}),n="shown")},i=()=>{n!=="hidden"&&(r.to(t,{yPercent:-100,duration:.25,ease:"power2.out",overwrite:!0}),n="hidden")},c=()=>{t.querySelectorAll("details[open]").forEach(d=>{d.dispatchEvent(new CustomEvent("details:request-close",{bubbles:!0}))})};window.ScrollTrigger.create({start:0,end:document.body.scrollHeight,onUpdate(d){if(d.scroll()<=o){s();return}Math.abs(d.getVelocity())<e||(d.direction===1?(c(),i()):s())}}),window.ScrollTrigger.addEventListener("refresh",()=>{window.scrollY<=o&&s()}),window.scrollY<=o?s():i()}function V(){if(!window.gsap)return;const t=e=>e==null?!0:window.innerWidth>e,n=(e,s,i)=>{var d,a;const c=(a=(d=e.dataset)==null?void 0:d[s])!=null?a:void 0;return c===void 0?i:c==="true"},o=(e,s,i)=>{var a,l;const c=(l=(a=e.dataset)==null?void 0:a[s])!=null?l:void 0;if(c===void 0||c==="")return i;const d=parseInt(c,10);return Number.isNaN(d)?i:d};document.querySelectorAll("details").forEach(e=>{var P;const s=e.querySelector("summary"),i=s==null?void 0:s.nextElementSibling;if(!s||!i)return;const c=Array.from(i.children),d=n(e,"hover",!1),a=o(e,"hoverMinWidth",null),l=(P=o(e,"hoverDelay",750))!=null?P:750,m=n(e,"animate",!0);let f=!1,u=!1,C=null;const p=()=>{C!=null&&(clearTimeout(C),C=null)};let E=null;const g=n(e,"autoclose",!1),y=()=>{!g||E||(E=h=>{var k,N;if(!e.open)return;const b=(N=(k=h.composedPath)==null?void 0:k.call(h))!=null?N:[];if(b.length){if(b.includes(s)||b.includes(i))return;A();return}const I=h.target;!!(I&&(s.contains(I)||i.contains(I)))||A()},document.addEventListener("pointerdown",E,{capture:!0}))},S=()=>{E&&(document.removeEventListener("pointerdown",E,{capture:!0}),E=null)},_=m;let v=null;const w={open:()=>{e.open=!0},close:()=>{e.open=!1}};if(_){const h=window.gsap;h.set(i,{height:0,overflow:"hidden"}),c.length>0&&h.set(c,{opacity:0}),v=h.timeline({paused:!0,defaults:{duration:.35,ease:"power2.out"},onReverseComplete:()=>{e.open=!1,S()}}),v.set(e,{attr:{open:""}},0),v.to(i,{height:()=>i.scrollHeight}),v.set(i,{clearProps:"height"}),c.length>0&&v.to(c,{opacity:1,stagger:.04,duration:.38},"-=0.25"),w.open=()=>{v.invalidate().play(0),y()},w.close=()=>{v.reverse()}}function D(){w.open(),_||y()}function A(){w.close(),_||S()}e.addEventListener("details:request-close",h=>{h.stopPropagation(),e.open&&A()}),s.addEventListener("click",h=>{if(h.preventDefault(),!e.open)D();else{if(f&&u){y();return}A()}}),d&&(e.addEventListener("mouseenter",()=>{t(a)&&(e.open||(f=!0,u=!0,p(),C=window.setTimeout(()=>{u=!1},l),D()))}),e.addEventListener("mouseleave",()=>{f&&(f=!1,u=!1,p(),e.open&&A())}))})}function R(){document.querySelectorAll('[cu-list-sort="abc"]').forEach(t=>{const n=Array.from(t.children);n.sort((o,e)=>o.textContent.trim().localeCompare(e.textContent.trim(),"de",{sensitivity:"base"})),n.forEach(o=>t.appendChild(o))})}function W(){const r=String(new Date().getFullYear()),t=document.querySelectorAll('time[datetime="currentYear"]');t.length!==0&&t.forEach(n=>{n.setAttribute("datetime",r),n.textContent=r})}function Z(){const r=(t,n=100)=>{let o;return(...e)=>{clearTimeout(o),o=setTimeout(()=>t(...e),n)}};document.querySelectorAll(".horizontal_slider_container").forEach(t=>{const n=t.querySelector('[data-slider="content"]'),o=t.querySelector('[data-slider="btn-right"]'),e=t.querySelector('[data-slider="btn-left"]'),s=t.querySelector(".button_group_wrapper"),i=o==null?void 0:o.closest(".button_main_wrap"),c=e==null?void 0:e.closest(".button_main_wrap"),d=()=>n.querySelectorAll('[data-slider="item"]').length?Array.from(n.querySelectorAll('[data-slider="item"]')):Array.from(n.children),a=C=>{const p=d();C<0||C>=p.length||p[C].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},l=()=>{const C=d(),p=n.getBoundingClientRect().left+n.clientWidth/2;let E=0,g=1/0;return C.forEach((y,S)=>{const _=y.getBoundingClientRect(),v=_.left+_.width/2,w=Math.abs(v-p);w<g&&(g=w,E=S)}),E},m=()=>a(l()+1),f=()=>a(l()-1),u=()=>{const C=n.scrollLeft,p=n.scrollWidth-n.clientWidth,E=C<=0,g=C>=p-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",g?"none":"flex")};o==null||o.addEventListener("click",m),e==null||e.addEventListener("click",f),n==null||n.addEventListener("scroll",r(u)),window.addEventListener("resize",r(u,150)),setTimeout(u,200)})}const L={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"},x={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 j(){O("showSecondLayer",()=>{var r;(r=window.__ucCmp)==null||r.showSecondLayer()}),O("showServiceDetails",r=>{var o;const t=r.closest("[data-uc-id]"),n=t==null?void 0:t.getAttribute("data-uc-id");if(!t||!n){console.warn("Ungültiges Element oder fehlende data-uc-id");return}(o=window.__ucCmp)==null||o.showServiceDetails(n)}),O("updateServicesConsents",async r=>{var c,d,a;const t=r.closest("[data-uc-id]"),n=t==null?void 0:t.dataset.ucId;if(!n){console.warn("Für die Action 'updateServicesConsents' wurde kein 'data-uc-id' im Elternelement gefunden.");return}const o=Object.keys(L).find(l=>L[l]===n);if(!o){console.warn(`Kein Service-Key für die ID '${n}' gefunden.`);return}const e=(c=x[o])!=null?c:[],s=new Set([o,...e]),i=Array.from(s).map(l=>{const m=L[l];return m?{id:m,consent:!0}:(console.warn(`(updateServicesConsents) Unbekannter Service-Key: ${l}`),null)}).filter(l=>l!==null);i.length>0&&(console.log("Service-Consents, die gesetzt werden:",i),await((d=window.__ucCmp)==null?void 0:d.updateServicesConsents(i)),(a=window.__ucCmp)==null||a.saveConsents())})}function X(r,t){return t.every(n=>{const o=r.services[n];return(o==null?void 0:o.consent.given)===!0})}const z="modulepreload",J=function(r){return"/"+r},U={},G=function(t,n,o){let e=Promise.resolve();if(n&&n.length>0){let d=function(a){return Promise.all(a.map(l=>Promise.resolve(l).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"));e=d(n.map(a=>{if(a=J(a),a in U)return;U[a]=!0;const l=a.endsWith(".css"),m=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${m}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":z,l||(f.as="script"),f.crossOrigin="",f.href=a,c&&f.setAttribute("nonce",c),document.head.appendChild(f),l)return new Promise((u,C)=>{f.addEventListener("load",u),f.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return e.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function K(r){const t=document.createElement("div");t.className="u-height-100 u-text-align-center u-vflex-center-center u-gap-3 u-background-color-auto";const n=document.createElement("div");n.className="u-icon-1x1-xlarge u-text-color-brand",n.innerHTML=`
1
+ import{r as O}from"./global-events-DX4cMJDc.js";function Y(){const r=["u-theme-dark","u-theme-light"],t=document.documentElement,n=document.getElementById("tgl-theme");if(!n){console.warn('Toggle-Button mit ID "tgl-theme" nicht gefunden.');return}n.addEventListener("click",()=>{const e=t.classList.contains("u-theme-dark")?"u-theme-light":"u-theme-dark";t.classList.remove(...r),t.classList.add(e),t.setAttribute("color-scheme",e==="u-theme-dark"?"dark":"light");try{localStorage.setItem("theme",e)}catch(s){}})}function F(){const r=document.body,t=document.documentElement;["u-brand-bos","u-brand-cu"].forEach(o=>{r.classList.contains(o)&&(r.classList.remove(o),t.classList.add(o))}),r.classList.length===0&&r.removeAttribute("class")}function H(){var m,f;if(!window.gsap)return;const r=window.gsap,t=document.getElementById("g_nav_menu_toggle"),n=document.querySelector('label[for="g_nav_menu_toggle"]'),o=document.querySelector(".g_nav_menu"),e=(m=n==null?void 0:n.querySelector("use"))!=null?m:null;if(!t||!n||!e)return;const s=u=>{n.setAttribute("aria-label",u?"Menü schließen":"Menü öffnen"),n.setAttribute("aria-expanded",u?"true":"false")},i=u=>{e.setAttribute("href",u?"#icon-x-lg":"#icon-menu")},c=u=>{document.body.classList.toggle("u-overflow-hidden",u)},d=u=>{o&&r.to(o,u?{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 u=!!t.checked;s(u),i(u),d(u),c(u)};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(),t.addEventListener("change",l)}):(l(),t.addEventListener("change",l))}function M(){if(!window.gsap||!window.ScrollTrigger)return;const r=window.gsap,t=document.querySelector(".g_nav");if(!t)return;let n="shown";const o=50,e=350,s=()=>{n!=="shown"&&(r.to(t,{yPercent:0,duration:.25,ease:"power2.out",overwrite:!0}),n="shown")},i=()=>{n!=="hidden"&&(r.to(t,{yPercent:-100,duration:.25,ease:"power2.out",overwrite:!0}),n="hidden")},c=()=>{t.querySelectorAll("details[open]").forEach(d=>{d.dispatchEvent(new CustomEvent("details:request-close",{bubbles:!0}))})};window.ScrollTrigger.create({start:0,end:document.body.scrollHeight,onUpdate(d){if(d.scroll()<=o){s();return}Math.abs(d.getVelocity())<e||(d.direction===1?(c(),i()):s())}}),window.ScrollTrigger.addEventListener("refresh",()=>{window.scrollY<=o&&s()}),window.scrollY<=o?s():i()}function V(){if(!window.gsap)return;const t=e=>e==null?!0:window.innerWidth>e,n=(e,s,i)=>{var d,l;const c=(l=(d=e.dataset)==null?void 0:d[s])!=null?l:void 0;return c===void 0?i:c==="true"},o=(e,s,i)=>{var l,a;const c=(a=(l=e.dataset)==null?void 0:l[s])!=null?a:void 0;if(c===void 0||c==="")return i;const d=parseInt(c,10);return Number.isNaN(d)?i:d};document.querySelectorAll("details").forEach(e=>{var P;const s=e.querySelector("summary"),i=s==null?void 0:s.nextElementSibling;if(!s||!i)return;const c=Array.from(i.children),d=n(e,"hover",!1),l=o(e,"hoverMinWidth",null),a=(P=o(e,"hoverDelay",750))!=null?P:750,m=n(e,"animate",!0);let f=!1,u=!1,C=null;const p=()=>{C!=null&&(clearTimeout(C),C=null)};let E=null;const g=n(e,"autoclose",!1),y=()=>{!g||E||(E=h=>{var k,N;if(!e.open)return;const b=(N=(k=h.composedPath)==null?void 0:k.call(h))!=null?N:[];if(b.length){if(b.includes(s)||b.includes(i))return;A();return}const I=h.target;!!(I&&(s.contains(I)||i.contains(I)))||A()},document.addEventListener("pointerdown",E,{capture:!0}))},S=()=>{E&&(document.removeEventListener("pointerdown",E,{capture:!0}),E=null)},_=m;let v=null;const w={open:()=>{e.open=!0},close:()=>{e.open=!1}};if(_){const h=window.gsap;h.set(i,{height:0,overflow:"hidden"}),c.length>0&&h.set(c,{opacity:0}),v=h.timeline({paused:!0,defaults:{duration:.35,ease:"power2.out"},onReverseComplete:()=>{e.open=!1,S()}}),v.set(e,{attr:{open:""}},0),v.to(i,{height:()=>i.scrollHeight}),v.set(i,{clearProps:"height"}),c.length>0&&v.to(c,{opacity:1,stagger:.04,duration:.38},"-=0.25"),w.open=()=>{v.invalidate().play(0),y()},w.close=()=>{v.reverse()}}function D(){w.open(),_||y()}function A(){w.close(),_||S()}e.addEventListener("details:request-close",h=>{h.stopPropagation(),e.open&&A()}),s.addEventListener("click",h=>{if(h.preventDefault(),!e.open)D();else{if(f&&u){y();return}A()}}),d&&(e.addEventListener("mouseenter",()=>{t(l)&&(e.open||(f=!0,u=!0,p(),C=window.setTimeout(()=>{u=!1},a),D()))}),e.addEventListener("mouseleave",()=>{f&&(f=!1,u=!1,p(),e.open&&A())}))})}function R(){document.querySelectorAll('[cu-list-sort="abc"]').forEach(t=>{const n=Array.from(t.children);n.sort((o,e)=>o.textContent.trim().localeCompare(e.textContent.trim(),"de",{sensitivity:"base"})),n.forEach(o=>t.appendChild(o))})}function W(){const r=String(new Date().getFullYear()),t=document.querySelectorAll('time[datetime="currentYear"]');t.length!==0&&t.forEach(n=>{n.setAttribute("datetime",r),n.textContent=r})}function Z(){const r=(t,n=100)=>{let o;return(...e)=>{clearTimeout(o),o=setTimeout(()=>t(...e),n)}};document.querySelectorAll(".horizontal_slider_container").forEach(t=>{const n=t.querySelector('[data-slider="content"]'),o=t.querySelector('[data-slider="btn-right"]'),e=t.querySelector('[data-slider="btn-left"]'),s=t.querySelector(".button_group_wrapper"),i=o==null?void 0:o.closest(".button_main_wrap"),c=e==null?void 0:e.closest(".button_main_wrap"),d=()=>n.querySelectorAll('[data-slider="item"]').length?Array.from(n.querySelectorAll('[data-slider="item"]')):Array.from(n.children),l=C=>{const p=d();C<0||C>=p.length||p[C].scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})},a=()=>{const C=d(),p=n.getBoundingClientRect().left+n.clientWidth/2;let E=0,g=1/0;return C.forEach((y,S)=>{const _=y.getBoundingClientRect(),v=_.left+_.width/2,w=Math.abs(v-p);w<g&&(g=w,E=S)}),E},m=()=>l(a()+1),f=()=>l(a()-1),u=()=>{const C=n.scrollLeft,p=n.scrollWidth-n.clientWidth,E=C<=0,g=C>=p-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",g?"none":"flex")};o==null||o.addEventListener("click",m),e==null||e.addEventListener("click",f),n==null||n.addEventListener("scroll",r(u)),window.addEventListener("resize",r(u,150)),setTimeout(u,200)})}const L={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"},x={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 j(){O("showSecondLayer",()=>{var r;(r=window.__ucCmp)==null||r.showSecondLayer()}),O("showServiceDetails",r=>{var o;const t=r.closest("[data-uc-id]"),n=t==null?void 0:t.getAttribute("data-uc-id");if(!t||!n){console.warn("Ungültiges Element oder fehlende data-uc-id");return}(o=window.__ucCmp)==null||o.showServiceDetails(n)}),O("updateServicesConsents",async r=>{var c,d,l;const t=r.closest("[data-uc-id]"),n=t==null?void 0:t.dataset.ucId;if(!n){console.warn("Für die Action 'updateServicesConsents' wurde kein 'data-uc-id' im Elternelement gefunden.");return}const o=Object.keys(L).find(a=>L[a]===n);if(!o){console.warn(`Kein Service-Key für die ID '${n}' gefunden.`);return}const e=(c=x[o])!=null?c:[],s=new Set([o,...e]),i=Array.from(s).map(a=>{const m=L[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((d=window.__ucCmp)==null?void 0:d.updateServicesConsents(i)),(l=window.__ucCmp)==null||l.saveConsents())})}function X(r,t){return t.every(n=>{const o=r.services[n];return(o==null?void 0:o.consent.given)===!0})}const z="modulepreload",J=function(r){return"/"+r},U={},G=function(t,n,o){let e=Promise.resolve();if(n&&n.length>0){let d=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"));e=d(n.map(l=>{if(l=J(l),l in U)return;U[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((u,C)=>{f.addEventListener("load",u),f.addEventListener("error",()=>C(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 e.then(i=>{for(const c of i||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};function K(r){const t=document.createElement("div");t.className="u-height-100 u-text-align-center u-vflex-center-center u-gap-3 u-background-color-auto u-overflow-auto u-p-small";const n=document.createElement("div");n.className="u-icon-1x1-xlarge u-text-color-brand",n.innerHTML=`
2
2
  <svg fill="currentColor" width="100%" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
3
3
  <path d="M 16 4 C 9.371094 4 4 9.371094 4 16 C 4 22.628906 9.371094 28 16 28 C 22.628906 28 28 22.628906 28 16 C 28 15.515625 27.964844 15.039063 27.90625 14.566406 C 27.507813 14.839844 27.023438 15 26.5 15 C 25.421875 15 24.511719 14.3125 24.160156 13.359375 C 23.535156 13.757813 22.796875 14 22 14 C 19.789063 14 18 12.210938 18 10 C 18 9.265625 18.210938 8.585938 18.558594 7.992188 C 18.539063 7.996094 18.519531 8 18.5 8 C 17.117188 8 16 6.882813 16 5.5 C 16 4.941406 16.1875 4.433594 16.496094 4.019531 C 16.332031 4.011719 16.167969 4 16 4 Z M 23.5 4 C 22.671875 4 22 4.671875 22 5.5 C 22 6.328125 22.671875 7 23.5 7 C 24.328125 7 25 6.328125 25 5.5 C 25 4.671875 24.328125 4 23.5 4 Z M 14.050781 6.1875 C 14.25 7.476563 15 8.585938 16.046875 9.273438 C 16.015625 9.511719 16 9.757813 16 10 C 16 13.308594 18.691406 16 22 16 C 22.496094 16 22.992188 15.9375 23.46875 15.8125 C 24.152344 16.4375 25.015625 16.851563 25.953125 16.96875 C 25.464844 22.03125 21.1875 26 16 26 C 10.484375 26 6 21.515625 6 16 C 6 11.152344 9.46875 7.097656 14.050781 6.1875 Z M 22 9 C 21.449219 9 21 9.449219 21 10 C 21 10.550781 21.449219 11 22 11 C 22.550781 11 23 10.550781 23 10 C 23 9.449219 22.550781 9 22 9 Z M 14 10 C 13.449219 10 13 10.449219 13 11 C 13 11.550781 13.449219 12 14 12 C 14.550781 12 15 11.550781 15 11 C 15 10.449219 14.550781 10 14 10 Z M 27 10 C 26.449219 10 26 10.449219 26 11 C 26 11.550781 26.449219 12 27 12 C 27.550781 12 28 11.550781 28 11 C 28 10.449219 27.550781 10 27 10 Z M 11 13 C 9.894531 13 9 13.894531 9 15 C 9 16.105469 9.894531 17 11 17 C 12.105469 17 13 16.105469 13 15 C 13 13.894531 12.105469 13 11 13 Z M 16 15 C 15.449219 15 15 15.449219 15 16 C 15 16.550781 15.449219 17 16 17 C 16.550781 17 17 16.550781 17 16 C 17 15.449219 16.550781 15 16 15 Z M 12.5 19 C 11.671875 19 11 19.671875 11 20.5 C 11 21.328125 11.671875 22 12.5 22 C 13.328125 22 14 21.328125 14 20.5 C 14 19.671875 13.328125 19 12.5 19 Z M 19.5 20 C 18.671875 20 18 20.671875 18 21.5 C 18 22.328125 18.671875 23 19.5 23 C 20.328125 23 21 22.328125 21 21.5 C 21 20.671875 20.328125 20 19.5 20 Z"/>
4
4
  </svg>
5
5
  `;const o=document.createElement("p");o.innerHTML=`Dieser Inhalt kann nur angezeigt werden, wenn die <span class="u-text-color-primary">${r}</span> Cookies erlaubt sind.
6
- `;const e=document.createElement("button");e.type="button",e.className="u-text-link-color-brand-inv u-text-decoration-underline u-p-small",e.innerText="Cookies akzeptieren und Medien Laden",e.setAttribute("data-action","updateServicesConsents");const s=document.createElement("button");return s.type="button",s.className="u-text-link-color-brand-inv u-p-small",s.innerText="Details",s.setAttribute("data-action","showServiceDetails"),t.appendChild(n),t.appendChild(o),t.appendChild(e),t.appendChild(s),t}async function Q(r,t,n,o){const e=r.dataset.embedLoaded==="true";if(n&&t){if(!e){if(r.dataset.embedLoaded="true",!o.fn){const s=await G(()=>import("./ytLoader-DLd5o3iy.js"),[]);o.fn=s.ytLoader1}o.fn&&r.replaceChildren(o.fn(t))}}else r.replaceChildren(K("YouTube Video")),r.dataset.embedLoaded="false"}async function $(r,t,n,o){const e=r.dataset.embedLoaded==="true";if(n&&t){if(!e){if(r.dataset.embedLoaded="true",!o.fn){const s=await G(()=>import("./VideoAskLoader-xM3qhhQB.js"),[]);o.fn=s.videoAskLoader}o.fn&&r.replaceChildren(o.fn(t))}}else r.replaceChildren(K("Videoask")),r.dataset.embedLoaded="false"}function ee(r){var o;const t=new Set([r]);return((o=x[r])!=null?o:[]).forEach(e=>t.add(e)),Array.from(t).map(e=>L[e]).filter(e=>!!e)}async function T(r){const t=document.querySelectorAll("[data-uc-id]");if(!t.length)return;const n={fn:null},o={fn:null};for(const e of t){const s=e.getAttribute("data-uc-id"),i=e.getAttribute("data-embed-src"),c=Object.keys(L).find(l=>L[l]===s);if(!c)continue;const d=ee(c),a=r?X(r,d):!0;switch(c){case"YOUTUBE_VIDEO":{await Q(e,i,a,n);break}case"VIDEOASK":{await $(e,i,a,o);break}}}}function te(r=200){return new Promise(t=>{let n=!1;const o=s=>{n||(n=!0,t(s))};if(window.__ucCmp){o(window.__ucCmp);return}const e=()=>{var s;window.removeEventListener("UC_UI_INITIALIZED",e),o((s=window.__ucCmp)!=null?s:null)};window.addEventListener("UC_UI_INITIALIZED",e),setTimeout(()=>{var s;window.removeEventListener("UC_UI_INITIALIZED",e),o((s=window.__ucCmp)!=null?s:null)},r)})}let q=!1;async function ne(){if(q)return;q=!0;const r=await te();if(!r){await T();return}try{if(typeof r.getConsentDetails=="function"){const t=await r.getConsentDetails();await T(t)}else console.warn("Usercentrics vorhanden, aber getConsentDetails() ist nicht verfügbar – Embeds bleiben blockiert.")}catch(t){console.warn("Fehler beim Laden der ConsentDetails oder Zugriff auf __ucCmp.getConsentDetails():",t)}window.addEventListener("UC_CONSENT",t=>{const n=t.detail;T(n)})}function oe(){Y(),F(),H(),M(),V(),R(),W(),Z()}function re(){j(),ne()}function B(){oe(),re()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",B,{once:!0}):B();
6
+ `;const e=document.createElement("button");e.type="button",e.className="u-text-link-color-brand-inv u-text-decoration-underline u-p-small",e.innerText="Cookies akzeptieren und Medien Laden",e.setAttribute("data-action","updateServicesConsents");const s=document.createElement("button");return s.type="button",s.className="u-text-link-color-brand-inv u-p-small",s.innerText="Details",s.setAttribute("data-action","showServiceDetails"),t.appendChild(n),t.appendChild(o),t.appendChild(e),t.appendChild(s),t}async function Q(r,t,n,o){const e=r.dataset.embedLoaded==="true";if(n&&t){if(!e){if(r.dataset.embedLoaded="true",!o.fn){const s=await G(()=>import("./ytLoader-DLd5o3iy.js"),[]);o.fn=s.ytLoader1}o.fn&&r.replaceChildren(o.fn(t))}}else r.replaceChildren(K("YouTube Video")),r.dataset.embedLoaded="false"}async function $(r,t,n,o){const e=r.dataset.embedLoaded==="true";if(n&&t){if(!e){if(r.dataset.embedLoaded="true",!o.fn){const s=await G(()=>import("./VideoAskLoader-xM3qhhQB.js"),[]);o.fn=s.videoAskLoader}o.fn&&r.replaceChildren(o.fn(t))}}else r.replaceChildren(K("Videoask")),r.dataset.embedLoaded="false"}function ee(r){var o;const t=new Set([r]);return((o=x[r])!=null?o:[]).forEach(e=>t.add(e)),Array.from(t).map(e=>L[e]).filter(e=>!!e)}async function T(r){const t=document.querySelectorAll("[data-uc-id]");if(!t.length)return;const n={fn:null},o={fn:null};for(const e of t){const s=e.getAttribute("data-uc-id"),i=e.getAttribute("data-embed-src"),c=Object.keys(L).find(a=>L[a]===s);if(!c)continue;const d=ee(c),l=r?X(r,d):!0;switch(c){case"YOUTUBE_VIDEO":{await Q(e,i,l,n);break}case"VIDEOASK":{await $(e,i,l,o);break}}}}function te(r=200){return new Promise(t=>{let n=!1;const o=s=>{n||(n=!0,t(s))};if(window.__ucCmp){o(window.__ucCmp);return}const e=()=>{var s;window.removeEventListener("UC_UI_INITIALIZED",e),o((s=window.__ucCmp)!=null?s:null)};window.addEventListener("UC_UI_INITIALIZED",e),setTimeout(()=>{var s;window.removeEventListener("UC_UI_INITIALIZED",e),o((s=window.__ucCmp)!=null?s:null)},r)})}let q=!1;async function ne(){if(q)return;q=!0;const r=await te();if(!r){await T();return}try{if(typeof r.getConsentDetails=="function"){const t=await r.getConsentDetails();await T(t)}else console.warn("Usercentrics vorhanden, aber getConsentDetails() ist nicht verfügbar – Embeds bleiben blockiert.")}catch(t){console.warn("Fehler beim Laden der ConsentDetails oder Zugriff auf __ucCmp.getConsentDetails():",t)}window.addEventListener("UC_CONSENT",t=>{const n=t.detail;T(n)})}function oe(){Y(),F(),H(),M(),V(),R(),W(),Z()}function re(){j(),ne()}function B(){oe(),re()}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",B,{once:!0}):B();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cuwebframework",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "Lightweight web framework by Copteruni",
5
5
  "type": "module",
6
6
  "main": "dist/scripts/main.built.j∆ºs",