PageSourceSearch

https://www.we-online.com/assets/main.js

js we-online.com collected 2026-10-02 03:56:44 UTC 120,112 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwe_frontend=self.webpackChunkwe_frontend||[]).push([[179],{8742:function(e,t,n){function i(){return n.e(24).then(n.bind(n,2620))}n.d(t,{u:function(){return i}})},9166:function(e,t,n){function i(){return n.e(390).then(n.bind(n,4251))}n.d(t,{c:function(){return i}})},8196:function(e,t,n){n(2822);var i=n(3141),s=n(7579),r=n(2122),o=n(3296);function a(){document.querySelectorAll(".weMediaImage__aspect[data-aspect]").forEach((e=>{const t=e.getAttribute("data-aspect");t&&e.style.setProperty("--aspect-ratio",t)})),document.querySelectorAll(".weMediaVideoFrame[data-aspect]").forEach((e=>{const t=e.getAttribute("data-aspect");t&&e.style.setProperty("--aspect-ratio",t)})),document.querySelectorAll(".weSwiperNewsImage__image[data-aspect]").forEach((e=>{const t=e.getAttribute("data-aspect");t&&e.style.setProperty("--aspect-ratio",t)}))}(0,r.on)(document,"click",o.D.onLinkClick,{selector:"a[data-create-layer]"}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a(),(0,s.mS)(i)},3296:function(e,t,n){n.d(t,{D:function(){return h}});var i=n(655),s=n(6433),r=n(2593),o=n(5464);var a=n(6521);const l="*[data-layer-content]",c=".weFormLayer__panelContent";function d({content:e}){const t=document.createElement("div");t.className="weFormLayer",t.innerHTML='\n  <div class="weFormLayer__container weGrid__container">\n    <div class="weFormLayer__panel">\n      <button class="weFormLayer__panelCloser" data-layer-close>\n        <svg width="24" height="24"><use href="#webSvg__closeLg-24"/></svg>\n      </button>\n      <div class="weFormLayer__panelContent"></div>\n    </div>\n  </div>',document.body.append(t);return u(t.querySelector(c),e),t}function u(e,t){if(!e||!t)return null;const n=document.createElement("div");return n.className="weFormLayer__panelPage",n.append(t),e.append(n),n}class h extends o.H{constructor(e){super(Object.assign(Object.assign({},e),{autoRemove:!0,dimensions:{duration:200,transistHeight:!0},el:d(e),viewport:c})),this.isFetching=!1,(0,a.to)(this,!1),this.addListeners({onClick:{type:"click"},onSubmit:{type:"submit"}})}fadeOut(){const{classList:e}=this.el,t=`${this.className}--fadeOut`;e.contains(t)||(e.add(t),setTimeout((()=>this.remove()),200))}fetchContent(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){if(this.isFetching)return;this.isFetching=!0;const n=yield(0,s.lC)(e,t),i=(0,r.Qc)(n,l);this.el.scrollTo({top:0}),this.setContent(u(this.viewport,i)),this.isFetching=!1}))}onClick(e){let t=e.target;for(;t&&!t.hasAttribute("data-layer-close");){if(t.classList.contains("weFormLayer__panel"))return;t=t.parentElement}e.preventDefault(),this.fadeOut()}onDispose(){(0,a.to)(this,!0)}onSubmit(e){const t=e.target;(0,r.YR)(t,"FORM")&&(e.preventDefault(),this.fetchContent(t.action,{body:new FormData(t),method:t.method}))}static onLinkClick(e){return(0,i.mG)(this,void 0,void 0,(function*(){const{current:t}=e,n=(0,r.YR)(t,"A")?t:null,i=n?n.href:void 0;if(i&&n&&!n.classList.contains("loading")){e.preventDefault(),n.classList.add("loading");const t=(0,r.Qc)(yield(0,s.lC)(i),l);t?new h({content:t}):window.location.href=i,n.classList.remove("loading")}}))}}},6442:function(e,t,n){n.d(t,{M:function(){return r},n:function(){return o}});var i=n(6444),s=n(1121);const r="we:FormPanelExpander.toggle";class o extends s.G7{constructor(e){super(e),this.addListeners({onExpandClick:{selector:`.${this.className}__button`,type:"click"}})}onExpandClick(){const{classList:e}=this.el,t=`${this.className}--expanded`,n=`${this.className}--scrollable`;(0,i.Oc)(this.el,(()=>{e.remove(n),e.toggle(t),this.trigger(r)}),{duration:400,transistHeight:!0}).then((()=>{e.toggle(n,e.contains(t))}))}}},8198:function(e,t,n){n.d(t,{E:function(){return a}});var i=n(8782),s=n(8116),r=n(9323);const o="weFormPanelExpander",a=({multiple:e,options:t},n)=>`\n  <div class="${(0,s.AK)(o,n)}">\n    <div class="${o}__body">\n      ${(0,r.H)(t.slice(0,5),e)}\n      <div class="${o}__mask">\n        <div class="${o}__maskContent">\n          ${(0,r.H)(t.slice(5),e)}\n        </div>\n      </div>\n    </div>\n    <button class="${o}__button" type="button">\n      <div class="${o}__buttonMore">${(0,i.t)("Show all")}</div>\n      <div class="${o}__buttonLess">${(0,i.t)("Show less")}</div>\n    </button>\n  </div>`},2252:function(e,t,n){n.d(t,{a:function(){return h}});var i=n(655),s=n(8116),r=n(6444),o=n(1121),a=n(8198),l=n(9323);const c="weFormPanelFilter",d=e=>{return`\n  <dt class="${c}__header">\n    <div class="${c}__headerCaption">${e.label}</div>\n    <div class="${c}__headerWidget">\n      <svg class="${c}__headerWidgetIcon" width="24" height="24" viewBox="0 0 24 24">\n        <use href="#webSvg__chevronDown-24" />\n      </svg>\n    </div>\n  </dt>\n  <dd class="${c}__body">\n    ${(t=e.options,t.sort(((e,t)=>""===e.value&&""!==t.value?-1:""===t.value&&""!==e.value?1:e.selected&&!t.selected?-1:t.selected&&!e.selected?1:e.index-t.index))).length>5?(0,a.E)(e):(0,l.H)(e.options,e.multiple)}\n  </dd>`;var t};var u=n(6829);class h extends o.G7{constructor(e){var{className:t,data:n,isExpanded:r=!0,select:o}=e,a=(0,i._T)(e,["className","data","isExpanded","select"]);super(Object.assign(Object.assign({},a),{className:(0,s.AK)(t,{"--expanded":r}),tagName:"dl",template:a.template||(n?d(n):"")})),this.select=o||document.createElement("select"),this.addListeners({onHeaderClick:{selector:`.${this.className}__header`,type:"click"}
1,onOptionClick:{type:"click",selector:"*[data-option]"},onSelectChange:{type:["change",u.oA],target:o}}),this.update()}onHeaderClick(){const{el:e}=this;(0,r.Oc)(e,(()=>e.classList.toggle(`${this.className}--expanded`)),{duration:400,transistHeight:!0})}onOptionClick(e){(0,u.WA)(this.select,e)}onSelectChange(){this.update()}update(){(0,u.Rk)(this)}}},6236:function(e,t,n){n.d(t,{by:function(){return p},nc:function(){return h.n},aH:function(){return c.a}});var i=n(655),s=n(9361),r=n(9750),o=n(8941),a=n(6521),l=n(1121),c=n(2252),d=n(8782);const u=({canReset:e})=>`\n  <div class="weFormPanel__panel">\n    <div class="weFormPanel__header">\n      <div class="weFormPanel__headerCaption">${(0,d.t)("Filter by")}</div>\n      ${e?`<button class="weFormPanel__headerReset" type="button">${(0,d.t)("Reset all")}</button>`:""}\n      <div class="weFormPanel__headerDivider"></div>\n      <button class="weFormPanel__headerClose" type="button">\n        <svg class="weFormPanel__headerCloseIcon" width="24" height="24" viewBox="0 0 24 24">\n          <use href="#webSvg__closeLg-24" />\n        </svg>\n      </button>\n    </div>\n\n    <div class="weFormPanel__body"></div>\n\n    <div class="weFormPanel__footer">\n      <button class="weFormPanel__footerApply" type="button">\n        <span class="weFormPanel__footerApplyLabel">${(0,d.t)("Apply filter")}</span>\n        <svg class="weFormPanel__footerApplyIcon" width="24" height="24" viewBox="0 0 24 24">\n          <use href="#webSvg__arrowRight-24" />\n        </svg>\n      </button>\n    </div>\n  </div>`;var h=n(6442);class p extends l.G7{constructor(e){var{filters:t=[],reset:n}=e,l=(0,i._T)(e,["filters","reset"]);super(Object.assign(Object.assign({},l),{template:u({canReset:!!n})}));const{className:c}=this;this.filters=this.createFilters(t),this.reset=n||o.ZT,(0,s.j)(this.el,`${c}--fadeIn`,400),(0,a.to)(this,!1),this.addListener("click",this.onCloseClick,{self:!0}),this.addListeners({onBreakoint:{type:r.KM,target:window},onCloseClick:{selector:`.${c}__footerApply,.${c}__headerClose`,type:"click"},onResetClick:{selector:`.${c}__headerReset`,type:"click"}})}remove(){return(0,a.to)(this,!0),super.remove()}fadeOut(){return(0,i.mG)(this,void 0,void 0,(function*(){(0,s.U)(this)}))}createFilters(e){const t=this.find(".weFormPanel__body");return t?e.map((e=>new c.a({appendTo:t,data:e.getTemplateData(),select:e.select}))):[]}onBreakoint({detail:{index:e}}){e>3&&this.remove()}onCloseClick(){this.fadeOut()}onResetClick(){this.reset()}}},7631:function(e,t,n){n.d(t,{K:function(){return a}});var i=n(9323),s=n(9750),r=n(7792),o=n(6829);class a extends r.G{constructor(e){super(e),this.focused=null,this.forceUpdate=!0,this.maxWidth=0,this.minWidth=0,this.panel=null,this.searchbarIsEnabled=0,this.searchbarPlaceholder="Suche",this.searchbarNoResult="Bitte Suche anpassen",this.searchbarReset="Suche zurücksetzen";const{className:t}=this,{labelClass:n=`${t}__label`,panelClass:i=`${t}__panel`}=e,s=this.find(`.${n}Caption`);this.label=s||document.createElement("label"),this.labelClass=n,this.select=this.find("select")||document.createElement("select"),this.initialLabel=s?s.innerText:"",this.panelClass=i,this.el.dataset.searchbarPlaceholder&&(this.searchbarPlaceholder=this.el.dataset.searchbarPlaceholder),this.el.dataset.searchbarNoresult&&(this.searchbarNoResult=this.el.dataset.searchbarNoresult),this.el.dataset.searchbarReset&&(this.searchbarReset=this.el.dataset.searchbarReset),this.el.dataset.searchbar&&(this.searchbarIsEnabled=parseInt(this.el.dataset.searchbar)),this.updateLabel(),this.addListeners({onBlur:{type:"focusout"},onLabelMouseDown:{type:"mousedown",selector:`.${n}`},onMouseEnter:{type:"mouseenter"},onOptionClick:{type:"click",selector:"*[data-option]"},onOptionsUpdated:{type:o.rV,target:this.select},onSelectChange:{type:["change",o.oA],target:this.select}})}ensurePanel(){let{panel:e}=this;e||(e=this.panel=document.createElement("div"),e.className=this.panelClass,e.innerHTML=(0,i.E)(this.getTemplateData()),this.el.append(e),this.triggerUpdate("onMeasure"),this.onFindAsYouType(e))}getAlignClass(e){return`${this.panelClass}--${e}`}getDesiredLeft(e,t){const n=(0,s.fM)(),i=e.left>n-e.right?e.left+e.width-t.width:e.left,r=Math.round(n-i-32),o=Math.round(e.width);if(this.maxWidth!==r||this.minWidth!==o){this.maxWidth=r,this.minWidth=o;const{style:e}=this.el;e.setProperty("--we-select-max-width",`${this.maxWidth}px`),e.setProperty("--we-select-min-width",`${this.minWidth}px`)}return Math.round(i-e.left)}getName(){return this.select.name}getTemplateData(){const{initialLabel:e,select:t}=this;return{className:this.panelClass,label:e,multiple:t.multiple,options:(0,o.YM)(t).map(((e,t)=>({index:t,label:e.innerText,selected:e.selected,value:e.value,link:e.dataset.link,linkTitle:e.dataset.linkTitle}))),searchbarPlaceholder:this.searchbarPlaceholder,searchbarNoResult:this.searchbarNoResult,searchbarReset:this.searchbarReset}}onBlur(e){let t=e.relatedTarget;for(;t;){if(t===this.el)return;t=t.parentElement}this.focused=null}onFocus(e){this.select.disabled?this.el.blur():(this.ensurePanel(),this.update(),this.focused=e.target,super.onFocus(e))}onLabelMouseDown(e){this.focused&&(this.focused.blur(),e.preventDefault())}onMeasure(){return super.onMeasure()}onMouseEnter(){this.ensurePanel()}onOptionClick(e){(0,o.WA)(this.select,e),!this.select.multiple&&this.focused&&this.focused.blur()}onOptionsUpdated(e){this.rebuild(),this.reset()}onSelectChange(e){this.update()}rebuild(){const{panel:e}=this;e&&(e.remove(),this.panel=null),this.update()}reset(){(0,o.mc)(this.select)}
1update(){this.updateOptions(),this.updateLabel()}updateLabel(){const{label:e,select:t}=this;if(!t.multiple){const t=(0,o.ec)(this.select).shift();let n;n=t&&""!==t.value?t.innerText:this.initialLabel,n=n.trim(),n?e.innerText=n:e.innerHTML="&nbsp;"}}updateOptions(){(0,o.Rk)(this)}onFindAsYouType(e){if(1!==this.searchbarIsEnabled)return;const t=`${e.className}`,n=`${e.className}List`,i=e.querySelector(`.${n}`);let s;i&&(s=i.offsetHeight);const r=`${e.className}SearchBar`,o=e.querySelector(`#${r}--input`);if(!o)return;e.querySelector(`.${r}--noResultContainer`);const a=e.querySelectorAll(`.${e.className}Item`),l=(e.querySelector(`.${r}--searchIcon`),e.querySelector(`.${r}--resetIcon`),e.querySelectorAll(`.${r}--reset`));document.addEventListener("keypress",(e=>{"top"===this.panelAlign?s&&(i.style.minHeight=s+"px"):i.style.minHeight="",o.focus()})),o.addEventListener("input",(()=>{const n=o.value.toLowerCase().trim();let i=!1;null==e||e.classList.add(`${t}--onInput`),n||null==e||e.classList.remove(`${t}--onInput`),a.forEach((e=>{const t=e.textContent;if(t){t.toLowerCase().includes(n)?(null==e||e.classList.remove("weUtils__dNone"),i=!0):null==e||e.classList.add("weUtils__dNone")}})),null==e||e.classList.remove(`${t}--noResult`),i||null==e||e.classList.add(`${t}--noResult`)})),l.forEach((n=>{n.addEventListener("click",(n=>{n.preventDefault(),o.value="",a.forEach((e=>{null==e||e.classList.remove("weUtils__dNone")})),null==e||e.classList.remove(`${t}--onInput`,`${t}--noResult`)}))}))}}},9323:function(e,t,n){n.d(t,{H:function(){return s},E:function(){return r}});var i=n(8116);function s(e,t,n="weFormSelect__panel"){return(0,i.xy)(e,t?e=>`\n    <div class="${n}Item" data-option="${e.value}">
1\n      <span class="${n}Widget">\n        <svg class="${n}WidgetIcon" width="16" height="16" viewBox="0 0 16 16">\n          <use href="#webSvg__checkbox-16" />\n        </svg>\n      </span>\n      <span class="${n}Label">${e.label}</span>\n      ${e.link?`<a href="${e.link}" target="_blank" class="${n}OptionLink" onclick="event.stopPropagation()">${e.linkTitle}</a>`:""}\n    </div>`:e=>`\n    <div class="${n}Item" data-option="${e.value}">\n      <span class="${n}Label">${e.label}</span>\n      ${e.link?`<a href="${e.link}" target="_blank" class="${n}OptionLink" onclick="event.stopPropagation()">${e.linkTitle}</a>`:""}\n    </div>`)}function r(e){const t=e.className,n=e.searchbarPlaceholder,i=e.searchbarNoResult,r=e.searchbarReset;return`\n    <div class="${t}List weUtilsScrollarea weUtilsScrollarea--padded">\n      <div class="${t}SearchBar">\n        <input type="text" placeholder="${n}" id="${t}SearchBar--input" />\n        <svg width="24" height="24" class="${t}SearchBar--searchIcon">\n          <use href="#webSvg__search-24"></use>\n        </svg>\n        <svg width="24" height="24" class="${t}SearchBar--resetIcon ${t}SearchBar--reset">\n            <use href="#webSvg__closeLg-24"></use>\n        </svg>\n      </div>\n      ${s(e.options,e.multiple,t)}\n      <div class="${t}SearchBar--noResultContainer">\n        <div class="${t}SearchBar--noResult">${i}</div>\n        <span>|</span>\n        <a class="${t}SearchBar--reset weButton weButton--plain">${r}</a>\n      </div>\n    </div>`}},6829:function(e,t,n){n.d(t,{rV:function(){return r},oA:function(){return o},h$:function(){return a},WA:function(){return l},YM:function(){return c},mc:function(){return d},ec:function(){return u},ZN:function(){return h},Rk:function(){return m}});var i=n(8941),s=n(2122);const r="we:FormSelect.optionsUpdated",o="we:FormSelect.change";function a(e,t){c(e).forEach((n=>{e.multiple?n.value===t&&(n.selected=!1):n.selected=""===n.value})),p(e)}function l(e,{current:t}){h(e,t?t.getAttribute("data-option"):null)}function c(e){return(0,i.tP)(e.options)}function d(e){if(e.multiple)u(e).forEach((e=>e.selected=!1));else{const t=c(e).shift();t&&(t.selected=!0)}p(e)}function u(e){return c(e).filter((e=>e.selected))}function h(e,t){c(e).forEach((n=>{n.value===t&&(n.selected=!e.multiple||!n.selected)})),p(e)}function p(e){(0,s.X$)(e,o)}function m(e){const t=u(e.select).map((e=>e.value)),{panelClass:n="weFormSelect__panel"}=e;e.findAll("*[data-option]").forEach((e=>{const i=e.getAttribute("data-option")||"";e.classList.toggle(`${n}Item--selected`,-1!==t.indexOf(i))}))}},3913:function(e,t,n){n.d(t,{P:function(){return a}});var i=n(4535);var s=n(8782),r=n(6444),o=n(1121);class a extends o.G7{constructor(e){super(e),this.clear=null,this.content=null,this.hasClear=!0,this.tags=[];const t=e.baseClass||this.className;this.baseClass=t,this.hasClear=!!e.hasClear,this.addListeners({onClearClick:{selector:`.${t}__clear`,type:"click"},onTagClick:{selector:`.${t}__item`,type:"click"}})}append(e){this.getContent().append(e)}createClear(){let{clear:e}=this;return e||(e=this.clear=document.createElement("div"),e.className=`${this.baseClass}__clear`,e.innerHTML=(0,s.t)("Remove all")),this.append(e),e}createTag(e){const t=document.createElement("div");var n,i;return t.className=`${this.baseClass}__item`,t.innerHTML=(n=e.text,`\n  <span class="${i=this.baseClass}__itemCaption" >${n}</span>\n  <svg class="${i}__itemIcon" width="16" height="16" viewBox="0 0 16 16">\n    <use href="#webSvg__close-16" />\n  </svg>`),this.append(t),Object.assign(Object.assign({},e),{el:t})}equals(e,t){return e.value===t.value}getContent(){let{content:e}=this;return e||(e=this.content=document.createElement("div"),e.className="weFormTags__content",this.el.append(e)),e}onChange(){this.render()}onClearClick(){this.clearTags()}onTagClick({current:e}){const t=this.tags.find((t=>t.el===e));t&&this.removeTag(t)}render(){const{clear:e,tags:t}=this,n=t.map((e=>e.el));e&&n.push(e),(0,r.Oc)(this.el,(()=>{(0,i.tF)(n,(()=>this.renderChildren()),{detach:!0,fadeIn:"weAnim__zoomFadeIn",fadeOut:"weAnim__zoomFadeOut",origin:this.getContent()})}))}renderChildren(){const{baseClass:e,el:t,hasClear:n}=this,i=this.updateTags(),s=i.map((e=>e.el));return t.classList.toggle(`${e}--active`,!!i.length),i.length&&n?s.push(this.createClear()):this.clear=null,s}updateTags(){const{tags:e}=this,t=this.getTags().map((t=>{const n=e.findIndex((e=>this.equals(e,t)));return-1===n?this.createTag(t):e.splice(n,1)[0]}));return e.forEach((e=>{e.el.classList.add("weUtils__pAbsolute")}
1)),this.tags=t,t}}},5968:function(e,t,n){n.d(t,{cs:function(){return s},FP:function(){return r},QJ:function(){return o}});var i=n(2122);const s="we:Header.menuAction",r="we:Header.scrollHidden";function o(e){return(0,i.yM)(s,!0,!1,{action:e})}},2698:function(e,t,n){n.d(t,{v:function(){return i}});const i="we:SwiperInpage.ensureVisibility"},4641:function(e,t,n){n.d(t,{tq:function(){return i.t},Cz:function(){return o},Lv:function(){return a},Td:function(){return c},Sz:function(){return u},Do:function(){return h},p$:function(){return f},jd:function(){return g},t2:function(){return v},MU:function(){return _},ZI:function(){return b},n8:function(){return y}});var i=n(5097),s=n(9750);function r({el:e}){return!e||!e.hasAttribute("data-not-centered-slides")}class o extends i.t{constructor(e={}){const t=function({el:e}){return e?e.querySelectorAll(".weGrid__row > *").length:0}(e),n=parseInt(function({el:e}){return(null==e?void 0:e.getAttribute("data-swiper-slides-per-view"))||"0"}(e)),i=parseInt(function({el:e}){return(null==e?void 0:e.getAttribute("data-swiper-app-more-adaptation"))||"0"}(e));let o=0,a={centeredSlides:r(e),pagination:!0};i?(a.slidesPerView=3,a.breakpoints={[s.Cb]:{centeredSlides:!1,slidesPerView:2},[s.Y5]:{centeredSlides:!1,slidesPerView:2},[s.HT]:{centeredSlides:!1,slidesPerView:1},[s.H_]:{centeredSlides:!1,slidesPerView:1},[s.r$]:{centeredSlides:!1,slidesPerView:3}}):n?(a.slidesPerView=n,a.breakpoints={[s.Cb]:{centeredSlides:!1,slidesPerView:n}}):t>3?(a.slidesPerView=1,a.breakpoints={[s.Cb]:{centeredSlides:!1,slidesPerView:3}}):o=3;const l=Object.assign(Object.assign({},e),{swiperOptions:a});void 0!==o&&0!==o&&(l.maxBreakpoint=o),super(l)}}class a extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{autoHeight:!0,navigation:!0,pagination:!0}}))}}const l=e=>e.el?Math.max(0,e.el.querySelectorAll(".weForm__progressListItem--active").length-1):0;class c extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{centeredSlides:!0,initialSlide:l(e),slidesPerView:"auto",spaceBetween:0}})),this.contentWidth=0,this.viewportWidth=0,this.content=this.find(".weForm__progressList")||this.el,this.viewport=this.find(".weForm__progressViewport")||this.el}onMeasure(){const{content:e,viewport:t}=this;this.contentWidth=e.offsetWidth,this.viewportWidth=t.offsetWidth,this.isEnabled!==this.shouldBeEnabled()&&setTimeout((()=>this.setEnabled()),0)}shouldBeEnabled(){return this.viewportWidth<this.contentWidth}}var d=n(2698);class u extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{freeMode:!0,navigation:{nextEl:"weSwiperInpage__arrow--next"},slidesPerView:"auto",on:{beforeInit(t){const{el:n}=e,i=null==n?void 0:n.querySelector(".weSwiper__wrapper");i&&(t.wrapperEl=i,t.$wrapperEl.push(i))}}}})),this.addListener(d.v,this.onEnsureVisibility)}onEnsureVisibility({detail:e}){const{instance:t}=this,n=t?t.slides.indexOf(e):-1;if(!t||-1===n)return;const{left:i,right:r}=e.getBoundingClientRect();(i<0||r>(0,s.fM)())&&t.slideTo(n)}}class h extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{centeredSlides:!0,loop:!0,loopedSlides:2,navigation:!0,slidesPerView:"auto"}}))}}const p="weSwiperNewsImage__arrow",m=({el:e},t)=>e&&e.parentElement&&e.parentElement.querySelector(`.${p}--${t}`)||null;class f extends i.t{constructor(e={}){const t=parseInt(function({el:e}){return(null==e?void 0:e.getAttribute("data-swiper-app-video"))||"0"}(e));let n={slidesPerView:2,navigation:{disabledClass:`${p}--disabled`,hiddenClass:`${p}--hidden`,lockClass:`${p}--lock`,nextEl:m(e,"next"),prevEl:m(e,"prev")}};t?(n.slidesPerView=2,n.breakpoints={[s.r$]:{centeredSlides:!1,slidesPerView:2},[s.Y5]:{centeredSlides:!1,slidesPerView:1},[s.Cb]:{centeredSlides:!1,slidesPerView:1},[s.HT]:{centeredSlides:!1,slidesPerView:1},[s.H_]:{centeredSlides:!1,slidesPerView:1}}):n.breakpoints={[s.r$]:{slidesPerView:2}};super(Object.assign(Object.assign({},e),{swiperOptions:n})),this.initializeAspectRatios()}initializeAspectRatios(){this.el.querySelectorAll(".weSwiperNewsImage__image[data-aspect]").forEach((e=>{const t=e.getAttribute("data-aspect");t&&e.style.setProperty("--aspect-ratio",t)}))}}class g extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{breakpoints:{[s.Cb]:{slidesPerView:4}},navigation:!0,slidesPerView:2}})),this.hasMask=!1}getNumItems(){return void 0===this.numItems&&(this.numItems=this.findAll(".weSwiperNewsText__gridItem").length),this.numItems}setInstance(e){if(this.instance=e,e&&!this.hasMask){const t=document.createElement("div");t.className="weSwiperNewsText__mask",t.append(e.wrapperEl),e.el.prepend(t),this.hasMask=!0}}
1shouldBeEnabled(){return this.getNumItems()>4&&super.shouldBeEnabled()}}var w=n(9166);class v extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{autoplay:{delay:3e3,disableOnInteraction:!1},effect:"fade",loop:!0,navigation:!0,pagination:{el:".weSwiperStage__pagination",clickable:!0},on:{activeIndexChange:e=>{this.updateBulletColors(e.realIndex)}}}})),this.bullets=[],this.activeBullet=null,(0,w.c)().then((()=>{this.init()}))}init(){this.bullets=this.findAll(".weSwiper__paginationBullet"),this.activeBullet=this.find(".weSwiper__paginationBullet--active")}updateBulletColors(e){if(!this.bullets||!this.activeBullet)return;const t=this.bullets;if(0===e&&t.forEach((e=>{e.classList.remove("weSwiper__paginationBullet--progressed")})),e>=1)for(let n=0;n<e;n++)t[n].classList.add("weSwiper__paginationBullet--progressed");this.activeBullet=t[e]}onBreakpoint(){}}class _ extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{maxBreakpoint:3,swiperOptions:{freeMode:!0,slidesPerView:"auto"}}))}}class b extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{breakpoints:{[s.Cb]:{slidesPerView:3}},navigation:!0,pagination:!0,slidesPerView:1}}))}}class y extends i.t{constructor(e={}){super(Object.assign(Object.assign({},e),{swiperOptions:{centeredSlides:!0,navigation:!0,pagination:!0,slidesPerView:"auto"}}))}}},5097:function(e,t,n){n.d(t,{t:function(){return r}});var i=n(9166),s=n(6146);class r extends s.y{constructor(e={}){super(e),this.instance=null,this.isEnabled=!1,this.swiperOptions=e.swiperOptions||{},this.setEnabled()}activate(){const{el:e,swiperOptions:t}=this;(0,i.c)().then((({expandOptions:n,SwiperComponent:i})=>{if(!this.isEnabled||this.instance)return;this.toggleSwiperClasses(!0);const s=this.find("*[data-swiper-el]")||e,r=n(this,t);this.setInstance(new i(s,r)),this.modifyDuplicatedSlides(s)}))}deactivate(){const{instance:e}=this;e&&(e.destroy(),this.toggleSwiperClasses(!1),this.setInstance(null))}setInstance(e){this.instance=e}toggleSwiperClasses(e){this.findAll("[data-swiper-class]").forEach((t=>t.classList.toggle(t.getAttribute("data-swiper-class")||"",e)))}modifyDuplicatedSlides(e){e.querySelectorAll(".weSwiper__slide").forEach((e=>{e.classList.contains("weSwiper__slide--duplicate")&&e.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach((e=>{var t;const n=document.createElement("p");n.innerHTML=e.innerHTML,null===(t=e.parentNode)||void 0===t||t.replaceChild(n,e)}))}))}}},7792:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(9750),s=n(2593),r=n(1121);const o=20;class a extends r.G7{constructor(e){super(e),this.forceUpdate=!1,this.hasFocus=!1,this.panel=null,this.panelAlign=null,this.panelLeft=null,this.el.tabIndex<0&&(this.el.tabIndex=0);const t=(0,s.aT)(this.el,"align",e.defaultAlign);this.defaultAlign="top"===t?"top":"bottom",this.verticalOffset=e.verticalOffset||0,this.addListeners({onFocus:{type:"focusin"}})}applyPosition({align:e,lastAlign:t,lastLeft:n,left:i,panel:s}){e!==t&&(t&&s.classList.remove(this.getAlignClass(t)),s.classList.add(this.getAlignClass(e))),n!==i&&(s.style.left=`${i}px`)}getDesiredAlign(e,{height:t}){const{verticalOffset:n}=this;let s=this.defaultAlign;return"top"===s&&e.top-t-n<o&&(s="bottom"),"bottom"===s&&e.bottom+t+n>(0,i.gp)()-o&&(s="top"),s}getDesiredLeft(e,t){const n=(0,i.fM)();let s=e.left+.5*(e.width-t.width);return s+t.width>n-o?s=n-t.width-o:s<o&&(s=o),s-e.left}onFocus(e){this.triggerUpdate("onMeasure")}onMeasure(){return this.updatePosition()}onScroll(){return this.updatePosition()}updatePosition(){const{forceUpdate:e,panel:t,panelAlign:n,panelLeft:i}=this;if(!t)return;const s=t.getBoundingClientRect(),r=this.el.getBoundingClientRect(),o=this.getDesiredAlign(r,s),a=this.getDesiredLeft(r,s);return e||n!==o||i!==a?(this.panelAlign=o,this.panelLeft=a,()=>this.applyPosition({align:o,elRect:r,lastAlign:n,lastLeft:i,left:a,panel:t,panelRect:s})):void 0}}},5464:function(e,t,n){n.d(t,{H:function(){return l}});var i=n(7899),s=n(2593);class r{constructor(e={}){this.callbackContext=null,this.dismissCallback=null,this.endCallback=null,this.startCallback=null,this._sequence=null,this._shelved=null,Object.assign(this,e)}inTransition(){return!!this._sequence}transist(e){const{callbackContext:t,dismissCallback:n,_sequence:i}=this;i?(this._shelved&&n&&n.call(t,this._shelved),this._shelved=e):this._sequence=this._createSequence(e)}_createSequence(e){const{transition:t,from:n,to:i}=e;return this._onTransitionStart(e),t(n,i).then((()=>this._onTransitionEnd(e)))}_onTransitionEnd(e){const{callbackContext:t,_shelved:n,endCallback:i}=this;this._shelved=null,n?(n.from=e.to,this._sequence=this._createSequence(n)):this._sequence=null,i&&i.call(t,e)}_onTransitionStart(e){const{callbackContext:t,startCallback:n}=this;n&&n.call(t,e)}}var o=n(1121),a=n(6444);class l extends o.G7{constructor(e={}){super(e),this._content=null,this.autoAppend=e.autoAppend||!1,this.autoRemove=e.autoRemove||!1,this.dimensions=e.dimensions||null,this.selectedClass=e.selectedClass||"weUtilsSwap__selected",this.transition=e.transition||(0,i.E)();const t=this.viewport=e.viewport&&this.find(e.viewport)||this.el,n=this._content=t.firstElementChild;n&&n.classList.add("weUtilsSwap__selected"),this.sequencer=new r({callbackContext:this,dismissCallback:this.onTransitionDismiss,endCallback:this.onTransitionEnd,startCallback:this.onTransitionStart})}getContent(){return this._content}onTransitionDismiss({to:e}){e&&this.autoRemove&&(0,s.Od)(e)}onTransitionStart({dimensions:e,from:t,to:n}){const{autoAppend:i,selectedClass:s,viewport:r}=this,o=()=>{t&&t.classList.remove(s),n&&n.classList.add(s)};n&&i&&r.appendChild(n),e?(0,a.Oc)(this.viewport,o,e):o()}onTransitionEnd({from:e,to:t}){e&&this.autoRemove&&(0,s.Od)(e)}setContent(e=null,t={}){const{_content:n,dimensions:i,sequencer:s,transition:r}=this;
1n!==e&&(this._content=e,s.transist(Object.assign(Object.assign({transition:r,dimensions:i},t),{from:n,to:e})))}}},7899:function(e,t,n){n.d(t,{E:function(){return r}});var i=n(655),s=n(5751);function r(e={}){const{noCrossFade:t,noPureFadeIn:n,noPureFadeOut:r}=e,o=(0,i._T)(e,["noCrossFade","noPureFadeIn","noPureFadeOut"]);return(e,i)=>{const a=[];return e&&i&&t?a.push((0,s.j)(i,"weAnim__fadeIn",o)):(!e||r&&!i||a.push((0,s.j)(e,"weAnim__fadeOut",o)),!i||n&&!e||a.push((0,s.j)(i,"weAnim__fadeIn",o))),a.length?Promise.all(a).then((()=>{})):Promise.resolve()}}},360:function(e,t,n){n.d(t,{HY:function(){return C.H},cY:function(){return c},ty:function(){return h},Uy:function(){return m},NH:function(){return b},mu:function(){return S},wN:function(){return x}});var i=n(8116),s=n(6444),r=n(1121);const o="weUtilsAccordion",a=`${o}--expanded`,l="weUtils__overflowVisible";class c extends r.G7{constructor(e){super(e),this.addListener("click",this.onHeaderClick,{selector:`.${o}__headerButton`})}getSiblings(){const{parentElement:e}=this.el,t=[];let n=e?e.firstElementChild:null;for(;n;){const e=(0,r.Xe)(n,c);e&&e!==this&&t.push(e),n=n.nextElementSibling}return t}isExpanded(){return this.el.classList.contains(a)}onHeaderClick(){var e=!this.isExpanded();
1this.setExpanded(e),e&&this.getSiblings().forEach((e=>e.setExpanded(!1)))}setExpanded(e){if(this.isExpanded()===e)return;const{el:t}=this,n=this.find(`.${o}__body`),r=this.find(`.${o}__headerButton`);n&&(0,s.Oc)(n,(()=>{t.classList.toggle(a,e),n.classList.remove(l),r&&r.setAttribute("aria-expanded",(0,i.w0)(e)),!0===e&&setTimeout((function(){t.scrollIntoView(!0),window.scrollTo(0,window.scrollY-150)}),400)})).then((()=>{n.classList.add(l)}))}}var d=n(8941);var u=n(6146);class h extends u.y{constructor(e={}){super(e),this.response=null,this.options={clamp:3,useNativeClamp:!1},this.onMeasure=(0,d.Ds)((()=>{this.isEnabled&&this.updateClamp()}),150),this.setEnabled()}activate(){n.e(29).then(n.bind(n,7255)).then((({clamp:e})=>{this.response=e(this.el,this.options)}))}deactivate(){const{el:e,response:t}=this;t&&(e.innerHTML=t.original,this.response=null)}updateClamp(){this.deactivate(),this.activate()}}var p=n(7792);class m extends p.G{constructor(e){super(Object.assign({defaultAlign:"top",verticalOffset:10},e)),this.handle=null,this.panel=this.find(".weUtilsFlyout__panel")||this.el}applyPosition(e){super.applyPosition(e);const{elRect:t,left:n,panelRect:i}=e,s=this.getHandle();s&&(s.style.left=`${(0,d.uZ)(.5*t.width-n,16,i.width-16)}px`)}getAlignClass(e){return`weUtilsFlyout__panel--${e}`}getHandle(){let{handle:e,panel:t}=this;return!e&&t&&(e=this.handle=document.createElement("div"),e.className="weUtilsFlyout__panelHandle",t.appendChild(e),this.triggerUpdate("onMeasure")),e}}var f=n(2698),g=n(6521),w=n(2122);function v(e){const t=e.getAttribute("href")||"",n=new URL(t,window.location.href).hash.substring(1),i=document.getElementById(n);return i?{id:n,link:e,target:i}:null}function _(e,t){const{top:n}=e.target.getBoundingClientRect();return t?(0,g.cx)()+n:n}class b extends r.G7{constructor(e={}){super(e),this.currentIndex=-1,this.isSticky=!1,this.marginTop=0,this.anchors=this.findAll(".weUtilsInpage__link").map(v).filter((e=>!!e)).reverse(),this.addListener("click",this.onClick,{selector:".weUtilsInpage__link"})}onClick(e){const t=this.anchors.find((t=>t.link===e.current));t&&(window.scrollTo({top:_(t,!0),behavior:"smooth"}),e.preventDefault(),window.history.pushState(null,"",function(e){const t=window.location.href,n=t.indexOf("#");return`${-1===n?t:t.substring(0,n)}#${e.id}`}(t)))}onMeasure(){const e=window.getComputedStyle(this.el);return this.marginTop=parseInt(e.marginTop),this.update()}onScroll(){return this.update()}setCurrentIndex(e){if(this.currentIndex===e)return;this.currentIndex=e;const{anchors:t}=this;t.forEach((({link:t},n)=>t.classList.toggle("current",n===e)));const n=this.find(".weSwiper__wrapper");n&&t[e]&&(0,w.X$)(n,f.v,t[e].link.parentElement)}setIsSticky(e){this.isSticky!==e&&(this.isSticky=e,this.el.classList.toggle("sticky",e))}update(){const{el:e,marginTop:t}=this,n=e.getBoundingClientRect().top,i=this.anchors.findIndex((e=>_(e)<10)),s=e.previousElementSibling;let r=s?s.getBoundingClientRect().bottom+t:n;const o=this.anchors.filter((e=>{const{top:t,bottom:n}=e.target.getBoundingClientRect();return t>=0&&n<=window.innerHeight}));let a=null,l=0;if(o.forEach((e=>{const t=e.target.clientHeight;t>l&&(l=t,a=e)})),a){const e=this.anchors.findIndex((e=>e===a));this.setCurrentIndex(e)}else this.setCurrentIndex(i);this.setIsSticky(n!=r)}}var y=n(2593),L=n(8742);class S extends r.G7{constructor(e){super(e),this.simpleBar=null,(0,L.u)().then((({SimpleBar:e})=>{this.simpleBar=new e(this.el,{autoHide:!1,forceVisible:(0,y.aT)(this.el,"forceVisible","auto")}),this.onMeasure()}))}onMeasure(){const{simpleBar:e}=this;if(e){const t=e.getContentElement();this.el.style.width=`${t.clientWidth}px`}}onDispose(){const{simpleBar:e}=this;e&&(e.unMount(),this.simpleBar=null)}}var C=n(5464),T=n(4641);const k="weUtilsTabs__headerButton",$="weUtilsTabs__headerButtonLi";class x extends C.H{constructor(e={}){super(Object.assign(Object.assign({},e),{dimensions:{transistHeight:!0},selectedClass:"weUtilsTabs__bodyRegion--selected",viewport:".weUtilsTabs__body"})),this.addListeners({onHeaderClick:{type:"click",selector:`.${k}`}
1,onTabsButtonClick:{type:"click",selector:`.${$}`},onTabsPaginationClick:{type:"click",selector:".weUtilsTabs__headerButtonX"}})}onHeaderClick({current:e}){const t=e?e.getAttribute("aria-controls"):null,n=t?this.find(`#${t}`):null;this.setContent(n)}onTransitionStart(e){super.onTransitionStart(e);const{to:t}=e,n=this.findAll(`.${k}`),s=t?t.getAttribute("aria-labelledby"):null;let o=-1;n.forEach(((e,t)=>{const n=e.id===s;n&&(o=t),e.classList.toggle(`${k}--selected`,n),e.classList.toggle(`${$}--selected`,n),e.setAttribute("aria-expanded",(0,i.w0)(n)),e.setAttribute("aria-disabled",(0,i.w0)(n))})),(0,r.I_)(this.el,T.MU).forEach((e=>{var t;return null===(t=e.instance)||void 0===t?void 0:t.slideTo(o)}))}onTabsButtonClick({current:e}){const t=e?e.closest(".weSwiperTabHeaders"):null;if(t){const n=e?e.getAttribute("data-controls"):null,i=t.querySelector(`.weUtilsTabs__headerButtonX[data-controls="${n}"]`);if(i){t.querySelectorAll(".weUtilsTabs__headerButtonX").forEach((e=>{e.classList.remove("weUtilsTabs__headerButtonX--active")})),i.classList.toggle("weUtilsTabs__headerButtonX--active")}}}onTabsPaginationClick({current:e}){const t=e?e.closest(".weSwiperTabHeaders"):null;if(t){const n=e?e.getAttribute("data-controls"):null,i=t.querySelector(`.weUtilsTabs__headerButtonLi[data-controls="${n}"]`);i&&i.click()}}}},3141:function(e,t,n){n.r(t),n.d(t,{FooterAccordion:function(){return r},FormCart:function(){return o},FormCartPn:function(){return a},FormDateSelect:function(){return u},FormLayer:function(){return h.D},FormPanel:function(){return p.by},FormPanelExpander:function(){return p.nc},FormPanelFilter:function(){return p.aH},FormSelect:function(){return d},FormTags:function(){return f},FormUpload:function(){return g},Header:function(){return ae},HeaderAuth:function(){return le},HeaderMenuDesktop:function(){return Q},HeaderMenuMobile:function(){return ie},HeaderPath:function(){return de},HeaderSearch:function(){return we},InfoBanner:function(){return Ge},MaterialRequest:function(){return ze},MediaCover:function(){return ye},MediaImage:function(){return Te},MediaVideoFrame:function(){return $e},MediaZoom:function(){return Ae},Modal:function(){return He},ModalInfo:function(){return Be},SearchLayer:function(){return ge},SectorMenu:function(){return ve},Swap:function(){return F.HY},Swiper:function(){return Oe.tq},SwiperColumns:function(){return Oe.Cz},SwiperContent:function(){return Oe.Lv},SwiperFormProgress:function(){return Oe.Td},SwiperInpage:function(){return Oe.Sz},SwiperMedia:function(){return Oe.Do},SwiperNewsImage:function(){return Oe.p$},SwiperNewsText:function(){return Oe.jd},SwiperStage:function(){return Oe.t2},SwiperTabHeaders:function(){return Oe.MU},SwiperTeaser:function(){return Oe.ZI},SwiperTopic:function(){return Oe.n8},TeaserGrid:function(){return De},TeaserImage:function(){return Re},TeaserList:function(){return Ne},UtilsAccordion:function(){return F.cY},UtilsClamp:function(){return F.ty},UtilsFlyout:function(){return F.Uy},UtilsInpage:function(){return F.NH},UtilsScrollarea:function(){return F.mu},UtilsTabs:function(){return F.wN},WidgetSide:function(){return We}});var i=n(6444),s=n(1121);class r extends s.G7{constructor(e){super(e),this.addListener("click",this.onHeaderClick,{selector:".weFooterAccordion__header"})}onHeaderClick(){const{el:e}=this;(0,i.Oc)(e,(()=>{e.classList.toggle("weFooterAccordion--expanded")}))}}class o extends s.G7{constructor(e){super(e),this.cookieDomain=this.getCookieDomain(),this.cookieLifetime=180,this.cookieName="we-cart",this.storage={},this.table=null,this.loadData(),this.renderTemplate(),this.save(),this.addListener("click",this.onDeleteClick,{selector:".weFormCart__action--delete"}),this.addListener("change",this.onQuantityChange,{selector:".weFormCart__offerQuantities .weForm__fieldInput, .weFormCart__samples .weForm__fieldInput"})}renderTemplate(){var e,t,n;if(0===Object.keys(this.storage).length)return;null===(e=this.find(".weFormCart__empty"))||void 0===e||e.classList.add("weUtils__dNone");const i=this.find("template.weFormCart__templateTable"),s=null===(t=null==i?void 0:i.content)||void 0===t?void 0:t.cloneNode(!0),r=this.find("template.weFormCart__templateItem");if(s){this.el.append(s),this.table=this.find(".weFormCart__table");for(let e in this.storage){let t=this.storage[e],i=null===(n=null==r?void 0:r.content)||void 0===n?void 0:n.cloneNode(!0);this.table.querySelector("tbody").appendChild(i);let s=this.table.querySelector(".weFormCart__item:last-child");s.querySelectorAll("input").forEach((t=>{let n=t.getAttribute("name");null!==n&&(n=n.replace(/cart\[\{articlenumber\}\]/,"cart["+e+"]"),t.setAttribute("name",n))})),s.querySelector(".weFormCart__articlenumber").innerText=e,s.dataset.articlenumber=e;let o=document.createElement("a");o.innerText=t[0],o.href=t[1],s.querySelector(".weFormCart__description").appendChild(o),s.querySelector(".weFormCart__inputDescription").value=t[0],s.querySelector(".weFormCart__inputSector").value=t[2],"designkit"==t[3]?(s.querySelectorAll(".weFormCart__offerQuantities .weForm__fieldInput:not(:first-child)").forEach((e=>{e.remove()})),s.querySelector(".weFormCart__offerQuantities .weForm__fieldInput").value=t[4],s.querySelector(".weFormCart__samples").remove(),s.querySelector(".weFormCart__offerQuantities").setAttribute("colspan",2)):(s.querySelector(".weFormCart__samples .weForm__fieldInput").value=t[4],s.querySelectorAll(".weFormCart__offerQuantities .weForm__fieldInput").forEach(((e,n)=>{let i=t[5][n];i>0&&(e.value=i)})),s.querySelector(".weFormCart__itemInfo").remove())}}}getCookieDomain(){const e=window.location.hostname,t=e.split(".");return t.length>2?t.slice(-2).join("."):e}loadData(){const e=document.cookie.split("; ");let t={};for(let n=e.length-1;n>=0;n--){let i=e[n].split("=");t[i[0]]=i[1]}let n=t[this.cookieName];if(n){this.storage=JSON.parse(decodeURIComponent(n));for(let e in this.storage)"string"==typeof this.storage[e]&&(this.storage[e]=[this.storage[e],"","","",1]),this.storage[e][4]=Math.max(1,1*this.storage[e][4]),this.storage[e].length<6&&(this.storage[e][5]=[0,0,0])}else this.storage={}}save(){this.setCookie(this.cookieName,encodeURIComponent(JSON.stringify(this.storage)),this.cookieLifetime,this.cookieDomain)}setCookie(e,t,n,i){var s=new Date;s.setTime(s.getTime()+864e5*n),document.cookie=e+"="+t+";path=/;expires="+s.toUTCString()+";SameSite=Lax"+(i.length>0?";domain="+i:"")}onQuantityChange(e){let t=e.target,n=null==t?void 0:t.closest(".weFormCart__item");if(n){let e=n.dataset.articlenumber;if(e){let n=0;(null==t?void 0:t.value)&&(n=parseInt(t.value));let i="samples",s=0;(null==t?void 0:t.closest(".weFormCart__offerQuantities"))?(i="offer",t.parentElement&&(s=[...t.parentElement.children].indexOf(t)),this.storage[e][5][s]=n):this.storage[e][4]=n,this.save()}}}onDeleteClick(e){var t,n;let i=e.target,s=null==i?void 0:i.closest(".weFormCart__item");if(s){let e=s.dataset.articlenumber;e&&(delete this.storage[e],this.save()),s.remove()}0===Object.keys(this.storage).length&&(null===(t=this.find(".weFormCart__empty"))||void 0===t||t.classList.remove("weUtils__dNone"),null===(n=this.table)||void 0===n||n.remove())}}class a extends s.G7{constructor(e){super(e),this.cookieDomain=this.getCookieDomain(),this.cookieLifetime=180,this.cookieName="we-pn-order",this.storage={},this.table=null,this.loadData(),this.renderTemplate(),this.save()}renderTemplate(){var e,t,n;if(console.log("test-1"),0===Object.keys(this.storage).length)return;null===(e=this.find(".weFormCart__empty"))||void 0===e||e.classList.add("weUtils__dNone");const i=this.find("template.weFormCart__templateTable"),s=null===(t=null==i?void 0:i.content)||void 0===t?void 0:t.cloneNode(!0),r=this.find("template.weFormCart__templateItem");if(s){this.el.append(s),this.table=this.find(".weFormCart__table");for(let e in this.storage){let t=this.storage[e],i=null===(n=null==r?void 0:r.content)||void 0===n?void 0:n.cloneNode(!0);this.table.querySelector("tbody").appendChild(i);let s=this.table.querySelector(".weFormCart__item:last-child");s.querySelectorAll("input").forEach((t=>{let n=t.getAttribute("name");null!==n&&(n=n.replace(/cart\[\{articlenumber\}\]/,"cart["+e+"]"),t.setAttribute("name",n))})),s.querySelector(".weFormCart__articlenumber").innerText=e,s.dataset.articlenumber=e;let o=document.createElement("a");o.innerText=t[0],o.href=t[1],s.querySelector(".weFormCart__description").appendChild(o),s.querySelector(".weFormCart__inputDescription").value=t[0],s.querySelector(".weFormCart__inputSector").value=t[2]}}}loadData(){const e=document.cookie.split("; ");let t={};for(let n=e.length-1;n>=0;n--){let i=e[n].split("=");t[i[0]]=i[1]}let n=t[this.cookieName];if(n){this.storage=JSON.parse(decodeURIComponent(n));for(let e in this.storage)"string"==typeof this.storage[e]&&(this.storage[e]=[this.storage[e],"","",""])}else this.storage={}}getCookieDomain(){const e=window.location.hostname,t=e.split(".");return t.length>2?t.slice(-2).join("."):e}save(){this.setCookie(this.cookieName,encodeURIComponent(JSON.stringify(this.storage)),this.cookieLifetime,this.cookieDomain)}setCookie(e,t,n,i){var s=new Date;s.setTime(s.getTime()+864e5*n),document.cookie=e+"="+t+";path=/;expires="+s.toUTCString()+";SameSite=Lax"+(i.length>0?";domain="+i:"")}onQuantityChange(e){let t=e.target,n=null==t?void 0:t.closest(".weFormCart__item");if(n){let e=n.dataset.articlenumber;if(e){let n=0;(null==t?void 0:t.value)&&(n=parseInt(t.value));let i="samples",s=0;(null==t?void 0:t.closest(".weFormCart__offerQuantities"))?(i="offer",t.parentElement&&(s=[...t.parentElement.children].indexOf(t)),this.storage[e][5][s]=n):this.storage[e][4]=n,this.save()}}}onDeleteClick(e){var t,n;let i=e.target,s=null==i?void 0:i.closest(".weFormCart__item");if(s){let e=s.dataset.articlenumber;e&&(delete this.storage[e],this.save()),s.remove()}0===Object.keys(this.storage).length&&(null===(t=this.find(".weFormCart__empty"))||void 0===t||t.classList.remove("weUtils__dNone"),null===(n=this.table)||void 0===n||n.remove())}}var l=n(6829),c=n(7631);class d extends c.K{}class u extends s.G7{constructor(e){super(e),this.day=null,this.month=null,this.year=null,this.addListeners({onChange:{type:l.oA}}),setTimeout((()=>this.init()),0)}init(){const e=this.children(".weFormSelect",d);for(const t of e){const e=/(day|month|year)$/.exec(t.select.name);e&&(this[e[0]]=t)}this.onChange()}onChange(){const{day:e,month:t,year:n}=this;if(!e||!t||!n)return;const i=parseInt(n.select.value),s=parseInt(t.select.value),r=parseInt(e.select.value),o=new Date(i,s,0).getDate();for(;e.select.firstElementChild;)e.select.removeChild(e.select.firstElementChild);for(let t=1;t<=o;t++){const n=document.createElement("option");n.value=n.textContent=t.toString(),e.select.appendChild(n)}e.select.value=Math.max(1,Math.min(o,r)).toString(),e.rebuild()}}var h=n(3296),p=n(6236),m=n(3913);class f extends m.P{constructor(e){super(e);const t=this.el.previousElementSibling||this.el;this.field=(0,s.Xe)(t,d),this.renderChildren(),this.addListeners({onChange:{target:t,type:["change",l.oA]}
1})}clearTags(){const{field:e}=this;e&&(0,l.mc)(e.select)}getTags(){const{field:e}=this;return e?(0,l.ec)(e.select).map((e=>({text:e.innerText,value:e.value}))):[]}removeTag(e){const{field:t}=this;t&&(0,l.h$)(t.select,e.value)}}class g extends s.G7{constructor(e){super(e);const t=this.find(".weFormUpload__labelCaption")||document.createElement("span");this.caption=t,this.defaultCaption=t.innerText,this.addListeners({onChange:{type:"change",selector:"input"}})}onChange(){const{caption:e,el:t}=this,n=this.find("input"),i=n?n.files:null;if(t.classList.toggle("weFormUpload--hasUpload",!(!i||!i.length)),i&&i.length){e.innerHTML="";for(let t=0;t<i.length;t++){const n=document.createElement("span");if(n.innerText=i[t].name,e.appendChild(n),t<i.length-1){const t=document.createElement("span");t.innerText=", ",e.appendChild(t)}}}else e.innerText=this.defaultCaption}}var w=n(655),v=n(2593),_=n(9750),b=n(6521),y=n(9361),L=n(5751),S=n(4535);function C(e,t){const{tiles:n}=e,{tileIds:i=[]}=t;return i.map((e=>n.find((t=>t.id===e)))).filter((e=>!!e))}function T(e,t=e.root){const n=C(e,t);return{item:t,parents:[],tiles:n,tilesTitle:t.tilesTitle,hasOwnTiles:!!n.length}}function k(e,t,n){const i=Array.isArray(e)?e:[(n=e).root];if(!n)return null;if(0===t)return T(n);for(const e of i){if(e.id===t)return T(n,e);if(e.children){const i=k(e.children,t,n);if(i)return i.parents.push(e),i.tiles.length||(i.tiles=C(n,e),i.tilesTitle=e.tilesTitle),i}}return null}function $(e){return(0,w.mG)(this,void 0,void 0,(function*(){yield function(e=1e3){return new Promise((t=>{"requestIdleCallback"in window?window.requestIdleCallback(t,{timeout:e}):setTimeout(t,e)}))}();return(yield fetch(e)).json()}))}var x=n(7899),F=n(360);const M=()=>"";class E extends F.HY{constructor(e={}){super(Object.assign(Object.assign({},e),{transition:(0,x.E)({noPureFadeIn:!0})})),this.currentPage=null,this.header=e.header||null,this.payload=e.payload||{root:{id:0,title:"",url:""},tiles:[]},this.pageTemplate=e.pageTemplate||M}fadeOut(){return(0,w.mG)(this,void 0,void 0,(function*(){(0,y.U)(this)}))}getTransition(e,t){return this.transition}handlePageChange(e,t){const{_content:n,pageTemplate:i}=this,s=(0,v.Qc)(i(t)),r={from:e,to:t};!n&&s?(this.onInitialTransition(r),s.classList.add(this.selectedClass),this._content=s,this.viewport.append(s)):this.setContent(s,{data:r,transition:this.getTransition(e,t)})}onInitialTransition(e){}setMenuPage(e){const{currentPage:t}=this;t&&t.item.id===e.item.id||(this.currentPage=e,this.handlePageChange(t,e))}setMenuPageById(e=0){const t=k(this.payload,e);t&&this.setMenuPage(t)}}const I=(e,t)=>`\n  <a class="weHeaderMenu__tile${t?` weHeaderMenu__tile--${t}`:""}" href="${e.url}" data-tile-id="${e.id}">\n    <img class="weHeaderMenu__tileImage" src="${e.image}" />\n    <div class="weHeaderMenu__tileTitle">${e.title}</div>\n  </a>`;var A=n(8116);const H="weHeaderMenuDesktop__",B="weHeaderMenu__menu",O=(e,t)=>[`${B}Link`,`${B}Link--bold`,...void 0===t?[`${B}Link--compact`]:[`${B}Link--compacter`,e.id===t?`${B}Link--current`:`${B}Link--dimmed`]],P=e=>`\n  <li class="${B}Item">\n    <a${(0,A.Lj)({class:`${B}Link ${B}Link--compact`,dataMenuId:e.children&&e.children.length?e.id:"",href:e.url})}>\n      <span class="${B}Label">\n        <span class="weHeaderMenu__menuLabelText">${(0,A.YU)(e.title)}</span>\n      </span>\n      <svg class="${B}Icon" width="24" height="24">\n        <use href="#webSvg__chevronLeft-24"/>\n      </svg>\n    </a>\n  </li>`,D=(e,t)=>`\n  <li class="${B}Item${void 0!==t?` ${B}Item--noBorder`:""}">\n    <a${(0,A.Lj)({class:O(e,t),dataMenuId:e.children&&e.children.length?e.id:"",href:e.url})}>\n      <span class="weHeaderMenu__menuLabel">\n        <span class="weHeaderMenu__menuLabelText">${(0,A.YU)(e.title)}</span>\n      </span>\n    </a>\n  </li>`,U=e=>e.parents.length>1?(({item:{children:e=[],id:t},parents:n})=>`\n  <div class="${H}page">\n    <div class="${H}menu ${H}menu--parent weUtilsScrollarea weUtilsScrollarea--white" data-force-visible="y">\n      <ul class="${B}">\n        ${(0,A.xy)(n[0].children,D,t)}\n      </ul>\n    </div>\n    <div class="${H}menu ${H}menu--child weUtilsScrollarea weUtilsScrollarea--white" data-force-visible="y">\n      <ul class="${B}">\n        ${(0,A.xy)(e,P)}\n      </ul>\n    </div>\n  </div>`)(e):(({item:{children:e=[]}})=>`\n  <div class="${H}page">\n    <div class="${H}menu ${H}menu--root weUtilsScrollarea weUtilsScrollarea--white">\n      <ul class="${B}">\n        ${(0,A.xy)(e,D,void 0)}\n      </ul>\n    </div>\n  </div>`)(e);function q(e,t={}){const{direction:n="Left"}=t,i=(0,w._T)(t,["direction"]),s=function(e){switch(e){case"Bottom":return"Top";case"Left":return"Right";case"Right":return"Left";case"Top":return"Bottom"}}(n);return(t,r)=>{const o=[];if(t){const s=`${e}To${n}`;o.push((0,L.j)(t,s,i))}if(r){const t=`${e}From${s}`;o.push((0,L.j)(r,t,i))}return o.length?Promise.all(o).then((()=>{})):Promise.resolve()}}function R(e={}){return q("weAnim__roll",e)}const N=(e,t)=>(0,L.j)(e.querySelector(".weHeaderMenuDesktop__menu--child")||e,`weAnim__shift${t}`),j=e=>(0,v.Qc)(I(e))||document.createElement("div"),V=({from:e,to:t})=>null!==e&&e.parents.length>0&&e.parents.length===t.parents.length&&e.parents.every(((e,n)=>e===t.parents[n])),W=e=>e?(e=>e&&e.parents.length&&e.parents[0].children||[])(e).findIndex((t=>t.id===e.item.id)):-1,G=e=>e.el;
1class Q extends E{constructor(e={}){super(Object.assign(Object.assign({},e),{autoAppend:!0,autoRemove:!0,dimensions:{transistWidth:!0},pageTemplate:U,selectedClass:"weHeaderMenuDesktop__page--selected",template:`\n  <div class="${H}row">\n    <button class="${H}closer" data-menu-action="hideMenu">\n      <svg width="24" height="24"><use href="#webSvg__closeLg-24"/></svg>\n    </button>\n    <div class="${H}viewport"></div>\n    <div class="${H}tiles weHeaderMenu__tileGrid"></div>\n  </div>`,viewport:".weHeaderMenuDesktop__viewport"})),this.tileInstances=[],this.tileContainer=this.find(".weHeaderMenuDesktop__tiles")||this.el,this.setMenuPageById(e.initialId||0),this.addListeners({onPointerDown:{type:"mousedown pointerdown touchstart",target:document}}),(0,y.j)(this.el,"weHeaderMenuDesktop--fadeIn",400);const t=new ResizeObserver((e=>{for(const t of e)t.target.classList.contains("weHeader__bar")&&this.setTopStyle()})),n=document.querySelector(".weHeader__bar");n&&t.observe(n)}setTopStyle(){const e=document.querySelector(".weHeader__bar"),t=document.querySelector(".weHeaderMenuDesktop");if(e&&t){const n=e.offsetHeight;t.style.top=`${n}px`}}createTiles(e,t=[]){const{tileContainer:n}=this,i=e.map((e=>{let i=(e=>t.find((t=>t.tile===e)))(e);return i||(i={el:j(e),tile:e}),n.append(i.el),i}));return t.filter((e=>-1===i.indexOf(e))).forEach((e=>e.el.classList.add("weHeaderMenu__tile--trashed"))),this.tileInstances=i}getTransition(e,t){if(e&&1===e.parents.length&&V({from:e,to:t})){return function(e={}){return q("weAnim__shift",e)}({direction:W(t)>W(e)?"Left":"Right"})}return this.transition}onInitialTransition(e){this.createTiles(e.to.tiles)}onPointerDown(e){const{header:t}=this;let n=(0,v.kK)(e.target)?e.target:null;if(t&&n){for(;n;){if(n===t.el)return;n=n.parentElement}t.hideMenu()}}onTransitionStart(e){super.onTransitionStart(e),this.transistChildMenu(e),this.transistTiles(e)}transistChildMenu({data:e,from:t,to:n}){if(!(e&&t&&n&&V(e)))return;const i=W(e.to)>W(e.from);N(t,i?"ToTop":"ToBottom"),N(n,i?"FromBottom":"FromTop")}transistTiles({data:e}){if(!e)return;const{tileContainer:t,tileInstances:n}=this,{tiles:i}=e.to;(0,S.tF)(n.map(G),(()=>this.createTiles(i,n).map(G)),{detach:!0,fadeIn:"weHeaderMenuDesktop__tileFadeIn",fadeOut:"weHeaderMenuDesktop__tileFadeOut",origin:t})}}var z=n(5968);const X=(e,t)=>e.children&&e.children.length?Z(e,t):Y(e,t),Y=(e,t)=>`\n  <li class="weHeaderMenu__menuItem">\n    <a class="${t}" href="${e.url}">
1\n      <span class="weHeaderMenu__menuLinkLabel">\n        <span class="weHeaderMenu__menuLabelText">${(0,A.YU)(e.title)}</span>\n      </span>\n    </a>\n  </li>`,Z=(e,t)=>`\n  <li class="weHeaderMenu__menuItem">\n    <a class="${t}" href="${e.url}" data-menu-id="${e.id}">\n      <span class="weHeaderMenu__menuLabel">\n        <span class="weHeaderMenu__menuLabelText">${(0,A.YU)(e.title)}</span>\n      </span>\n      <svg class="weHeaderMenu__menuIcon" width="24" height="24"><use href="#webSvg__chevronLeft-24"/></svg>\n    </a>\n  </li>`,K=({hasOwnTiles:e,item:{children:t=[],title:n},parents:i,tiles:s,tilesTitle:r})=>{return`\n  <div class="weHeaderMenuMobile__page">\n    ${i.length?(e=>`<p class="weHeaderMenu__menuTitle">${(0,A.YU)(e)}</p>`)(n):""}\n    <ul class="weHeaderMenu__menu">\n      ${(0,A.xy)(t,X,(o=!i.length,"weHeaderMenu__menuLink"+(o?" weHeaderMenu__menuLink--bold":"")))}\n    </ul>\n    ${i.length?"":(()=>{const e=document.querySelector('script[data-menu-fragment="mobileLoginButton"]');return e?e.innerHTML:""})()}\n    ${e&&s.length?((e,t)=>`\n  <div class="weHeaderMenuMobile__tiles weUtils__dNone weUtils__dBlock--md">\n    ${t?`<p class="weHeaderMenuMobile__tilesTitle">${t}</p>`:""}\n    <div class="weHeaderMenu__tileGrid weHeaderMenu__tileGrid--small">\n      ${(0,A.xy)(e,I,"small")}\n    </div>\n  </div>`)(s,r):""}\n    ${i.length?"":(()=>{const e=document.querySelector('script[data-menu-fragment="mobileRootFooter"]');return e?e.innerHTML:""})()}\n  </div>`;var o},J=()=>{const e=document.querySelector('script[data-menu-fragment="mobileHeader"]');return`\n    <div class="weHeaderMenuMobile__panel">\n      ${e?e.innerHTML:""}\n      <div class="weHeaderMenuMobile__viewport"></div>\n    </div>`},ee={duration:400,timingFunction:"ease"},te="weHeaderMenuMobile__widget",ne=e=>`${te}--${e}`;class ie extends E{constructor(e={}){super(Object.assign(Object.assign({},e),{autoAppend:!0,autoRemove:!0,pageTemplate:K,selectedClass:"weHeaderMenuMobile__page--selected",template:J(),viewport:".weHeaderMenuMobile__viewport"})),this.current=null,this.widgetMode="root",(0,y.j)(this.el,"weHeaderMenuMobile--fadeIn",400),(0,b.to)(this,!1),this.addListeners({onClick:{type:"click"}}),this.setMenuPageById(e.initialId||0)}getTransition(e,t){const n=t.parents.length,i=e?e.parents.length:n;return i>n?R(Object.assign({direction:"Right"},ee)):i<n?R(Object.assign({direction:"Left"},ee)):this.transition}handlePageChange(e,t){super.handlePageChange(e,t),this.setWidgetMode(t.parents.length>0?"child":"root")}onClick(e){e.target===this.el&&this.trigger((0,z.QJ)("hideMenu"))}onDispose(){super.onDispose(),(0,b.to)(this,!0)}setWidgetMode(e){const{widgetMode:t}=this;if(t===e)return;this.widgetMode=e;const n=this.find(`.${te}`);if(n){const{classList:i}=n;i.remove(ne(t)),i.add(ne(e))}}}var se=n(2122);const re="weHeader__barNavLink";function oe(){return(0,_.iu)().index<6?ie:Q}class ae extends s.G7{constructor(e){super(e),this.isScrollHidden=!1,this.isScrollingUp=!1,this.menu=null,this.scrollTop=0,this.scrollTurn=0,this.scrollFoldThreshold=50,this.scrollUpThreshold=50,this.hasInpageNav=null!=document.querySelector(".weUtilsInpage"),this.payload=$(this.getPayloadUrl()),this.navLinks=this.findNavLinks(),this.searchForm=this.find(".weHeaderSearch"),this.searchInput=this.find(".weHeaderSearch__input"),this.find(".weHeader__barSector")&&(this.scrollFoldThreshold=100,this.scrollUpThreshold=100),this.addListeners({onBreakpoint:{type:_.KM,target:window},onMenuActionEvent:{type:z.cs},onMenuActionClick:{type:"click",selector:"[data-menu-action]"},onMenuIdClick:{type:"click",selector:"[data-menu-id]"},onSubmitSearchForm:{type:"submit",selector:".weHeaderSearch"}})}findNavLinks(){return this.findAll(".weHeader__barNavLink").map((e=>({id:parseInt((0,v.aT)(e,"menuId")),link:e,state:""})))}getPayloadUrl(){return this.el.getAttribute("data-menu-payload")||"/menu.json"}gotoParent(){return(0,w.mG)(this,void 0,void 0,(function*(){const{menu:e}=this;if(!e)return;const{currentPage:t}=e;t&&t.parents.length&&e.setMenuPageById(t.parents[0].id)}))}hideMenu(){const{menu:e}=this;e&&(e.fadeOut(),this.updateNavLinks(null),this.menu=null)}onBreakpoint(){const{menu:e}=this,t=oe();!e||e instanceof t||(e.remove(),this.updateNavLinks(null),this.menu=null)}onSubmitSearchForm(e){e.preventDefault();const t=new URL(window.location.href+"#hiddenInputFields");t.searchParams.delete("sword");const n=t.toString();fetch(n).then((e=>e.text())).then((e=>{const t=document.createElement("div");t.innerHTML=e;const n=t.querySelector("#hiddenInputFields");if(n){const e=document.getElementById("hiddenInputFields");e&&(e.innerHTML=n.innerHTML)}})).then((()=>{this.searchForm&&this.searchForm.submit()})).catch((e=>console.error("Error updating content:",e)))}onMenuActionClick({current:e}){this.runAction(e?e.getAttribute("data-menu-action"):null)}onMenuActionEvent(e){this.runAction(e.detail.action)}onMenuIdClick(e){return(0,w.mG)(this,void 0,void 0,(function*(){const{current:t}=e,n=t?t.getAttribute("data-menu-id"):null;null!==n&&(e.preventDefault(),this.showMenu(parseInt(n)))}))}onScroll(){const e=(0,b.cx)();if(!(0,b.Dx)()||e===this.scrollTop)return;const t=!this.hasInpageNav&&e<this.scrollTop;this.isScrollingUp!==t&&(this.isScrollingUp=t,this.scrollTurn=e);const n=e>this.scrollFoldThreshold,i=n&&t&&this.scrollTurn-e>this.scrollUpThreshold;this.setScrollHidden(n&&!i&&!this.menu),this.scrollTop=e}runAction(e){switch(e){case"gotoParent":return this.gotoParent();case"hideMenu":return this.hideMenu();case"showMenu":return this.showMenu();case"showSearch":return this.showSearchForm();case"hideSearch":return this.hideSearchForm()}}showMenu(e=0){return(0,w.mG)(this,void 0,void 0,(function*(){let{menu:t}=this;if(t)t.setMenuPageById(e);else{const n=oe();t=this.menu=new n({appendTo:this.el,header:this,initialId:e,payload:yield this.payload})}return this.updateNavLinks(t.currentPage),t}))}setScrollHidden(e){this.isScrollHidden!==e&&(this.isScrollHidden=e,this.el.classList.toggle(`${this.className}--scrollHidden`,e),(0,se.X$)(document,z.FP,e),e&&(0,v.nn)(this.el,(e=>"blur"in e?e.blur():null)))}updateNavLinks(e){const{navLinks:t}=this,n=e?[e.item,...e.parents]:[],i=n.length>1?n[n.length-2].id:-1;t.forEach((e=>function(e,t){const n=e.state;if(n===t)return;e.state=t;const{classList:i}=e.link;n&&i.remove(`${re}--${n}`),t&&i.add(`${re}--${t}`)}(e,-1===i?"":i===e.id?"current":"dimmed")))}showSearchForm(){const{searchForm:e,searchInput:t}=this;
1e&&t&&(e.classList.add("weHeaderSearch--active"),t.focus())}hideSearchForm(){const{searchForm:e}=this;e&&e.classList.remove("weHeaderSearch--active")}}class le extends s.G7{constructor(e){super(e),this.initDefaultTemplate();const t=new CustomEvent("weHeaderAuthReady",{detail:this});document.dispatchEvent(t),requestAnimationFrame((()=>this.setBottomPanel()))}initDefaultTemplate(){const e=this.find(".weHeaderLogin__template");if(!e||!e.content)return;const t=e.content.cloneNode(!0),n=this.el;n&&n.appendChild(t)}setBottomPanel(){const e=this.find(".weHeaderUser__initials"),t=this.find(".weHeaderUser__panel");if(!e||!t)return;const n=e.getBoundingClientRect(),i=t.offsetWidth,s=e.offsetWidth,r=(i-s)/2,o=n.left+s/2,a=o-i/2,l=o+i/2,c=window.innerWidth;let d=r;if(a<10){d=r-(10-a)}if(l>c-10){d=r+(l-(c-10))}d=Math.max(0,d),t.style.left=`-${d}px`;const u=t.querySelector(".weHeaderUser__panelHandle");if(u){const e=t.getBoundingClientRect(),i=n.left+n.width/2-e.left;u.style.left=`${i}px`}const h=n.bottom,p=window.innerWidth<768?8:4;t.style.setProperty("--panel-top",`${h+p}px`)}setUserAuthorized(e){this.user=e;const t=document.querySelector(".weHeaderUser__template");if(!t||!t.content)return;const n=t.closest(".weHeaderAuth");if(n){n.innerHTML="";const e=t.content.cloneNode(!0),i=this.userDataInitials();if(!i)return;const s=e.querySelector(".weHeaderUser__initials");s&&(s.textContent=i),n.appendChild(e),this.setUserNameIntoBottomPanel(),this.removeMobileMenuLoginBar(),requestAnimationFrame((()=>this.setBottomPanel()))}}getUserData(){if(this.user)return`${this.user.firstName} ${this.user.lastName}`}userDataInitials(){var e,t;if(!this.user)return;return`${null===(e=this.user.firstName)||void 0===e?void 0:e[0]}${null===(t=this.user.lastName)||void 0===t?void 0:t[0]}`.toUpperCase()}setUserNameIntoBottomPanel(){const e=document.querySelector(".weHeaderUser__panelName");if(!e)return;const t=this.getUserData();t&&(e.innerText=t)}removeMobileMenuLoginBar(){const e=document.querySelector('script[data-menu-fragment="mobileLoginButton"]');e&&e.remove()}}function ce(e){let t=0,n=!0;for(let i=0;i<e.length;i++){const s=e[i];s.shouldBeVisible?t+=s.width+24:n&&(t+=48),n=s.shouldBeVisible}return t}class de extends s.G7{constructor(e){super(e),this.width=0,this.container=this.find(".weHeaderPath__breadcrumbs")||this.el,this.items=this.findAll(".weHeaderPath__item").map((e=>({el:e,isVisible:!0,shouldBeVisible:!0,width:0})))}onMeasure(){const{items:e}=this,t=e.length,n=this.container.getBoundingClientRect().width;e.forEach((e=>{e.shouldBeVisible=!0,e.width=e.el.getBoundingClientRect().width}));let i=0;for(;i<t-2&&ce(e)>n;)e[++i].shouldBeVisible=!1;return ce(e)>n&&t>1&&(e[0].shouldBeVisible=!1),this.renderItems}renderItems(){this.items.forEach((e=>{e.isVisible!==e.shouldBeVisible&&(e.isVisible=e.shouldBeVisible,e.el.classList.toggle("weHeaderPath__item--hidden",!e.isVisible))}))}}var ue=n(6433),he=n(5464);const pe=".weSearchLayer__panelContent";function me({content:e}){var t;const n=document.querySelector("template.weSearchLayer__template"),i=null===(t=null==n?void 0:n.content)||void 0===t?void 0:t.cloneNode(!0);if(!i)return;document.body.append(i);const s=document.querySelector(".weSearchLayer");if(!s)return;return fe(s.querySelector(pe),e),s}function fe(e,t){if(!e||!t)return null;const n=document.createElement("div");return n.className="weSearchLayer__panelPage",n.append(t),e.append(n),n}class ge extends he.H{constructor(e){if(super(Object.assign(Object.assign({},e),{autoRemove:!0,dimensions:{duration:0,transistHeight:!1},el:me(e),viewport:pe})),this.isFetching=!1,this.allResultsButton=null,this.form=null,this.formInput=null,this.formBaseUrl="",this.parentSearch=null,this.preloader=null,this.preloaderInterval=null,this.preloaderTimeout=null,this.prevResultList=null,this.resultsLimit=5,this.searchValue="",this.searchTerm=null,this.totalResultsLabel=null,this.requestCount=0,this.requestLimit=15,this.resetInterval=3e3,this.blockDuration=3e3,this.isWindowBlocked=!1,this.isRequestCompleted=!1,this.lastSearchValue=null,this.lastQueryUrl=null,this.debounceTimer=null,this.inactivityTimeout=null,(0,b.to)(this,!1),this.form=this.el.querySelector(".weSearchLayer__form"),this.form){this.formInput=this.form.querySelector(".weSearchLayer__formInput"),e.parentSearch&&(this.parentSearch=e.parentSearch,this.parentSearch.el.classList.contains("weHeaderSearch--menuMobile")&&this.el.classList.add("weSearchLayer--sidebar"),this.syncDimensionsToParent()),this.formInput&&(this.formInput.value=e.parentSearchValue||"",this.searchValue=this.formInput.value,this.formInput.focus(),this.formInput.selectionStart=this.formInput.selectionEnd=this.formInput.value.length),this.formBaseUrl=this.form.getAttribute("action")||"";
1let t=this.getQueryUrl();new AbortController;this.fetchContent(t,{},this.searchValue)}this.allResultsButton=this.el.querySelector(".weButton"),this.totalResultsLabel=this.el.querySelector(".weSearchLayer__totalResultsLabel"),this.searchTerm=this.el.querySelector(".weSearchLayer__searchTerm"),this.preloader=this.el.querySelector(".weSearchLayer__panelPreloader"),this.showPreloader(),this.addListeners({onClick:{type:"click"},onInput:{type:"keyup",selector:".weSearchLayer__formInput"},onRowClick:{type:"click",selector:".weCollectionList__item"}})}getQueryUrl(e="preview"){if(!this.form||!this.formInput)return"";let t=this.formBaseUrl+"?sword="+encodeURI(this.formInput.value);return"preview"===e&&(t+="&mode=preview&resultsPerPage="+this.resultsLimit),t}fadeOut(){var e;const{classList:t}=this.el,n=`${this.className}--fadeOut`;t.contains(n)||(this.parentSearch&&(this.parentSearch.searchLayerActive=!1,this.parentSearch.el.classList.remove("weHeaderSearch--focused"),null===(e=this.parentSearch.el.closest(".weHeader"))||void 0===e||e.classList.remove("weHeader--searchFocused")),t.add(n),setTimeout((()=>{this.parentSearch&&(this.parentSearch.searchLayer=null),this.remove()}),200))}syncDimensionsToParent(){if(this.parentSearch){const e=this.parentSearch.maxFormDimensions,t=this.find(".weSearchLayer__panel");if(e&&t&&(t.style.width=t.style.top=t.style.left=t.style.right="",(0,_.iu)().index>2)){let n=e.width;this.el.classList.contains("weSearchLayer--sidebar")&&(n+=21),t.style.width=n.toString()+"px",t.style.top=e.top.toString()+"px",t.style.left=e.left.toString()+"px",t.style.right=e.right.toString()+"px"}}}fetchContent(e,t,n){var i,s;return(0,w.mG)(this,void 0,void 0,(function*(){if(!this.isWindowBlocked){this.isFetching=!0,this.preloaderTimeout&&clearTimeout(this.preloaderTimeout),this.preloaderTimeout=setTimeout((()=>{this.showPreloader()}),500);try{const r=yield(0,ue.lC)(e,{body:t.body,method:t.method});if(n!==this.searchValue)return;clearTimeout(this.preloaderTimeout),this.hidePreloader();const o=(0,v.Qc)(r,"#weCollectionSwap-fulltextsearch1 .weCollectionSwap__page");let a=0;o&&o.dataset.resultsLabel&&(a=parseInt(o.dataset.resultsLabel));let l=(0,v.Qc)(r,"#weCollectionSwap-fulltextsearch1 .weCollectionList");l&&l.querySelectorAll("li").forEach(((e,t)=>{t>this.resultsLimit-1&&e.remove()})),0===a?(null===(i=this.find(".weSearchLayer__panelBody"))||void 0===i||i.classList.add("weUtils__dNone"),this.searchTerm&&(this.searchTerm.textContent=this.searchValue||"")):null===(s=this.find(".weSearchLayer__panelBody"))||void 0===s||s.classList.remove("weUtils__dNone");const c=this.find(".weSearchLayer__panelFooter");c&&(a<this.resultsLimit?c.classList.add("weUtils__dNone"):c.classList.remove("weUtils__dNone")),this.totalResultsLabel&&(this.totalResultsLabel.innerHTML=a.toString()),this.el.scrollTo({top:0}),this.prevResultList&&this.prevResultList.isEqualNode(l)||this.setContent(fe(this.viewport,l),{transition:(0,x.E)({duration:200})}),this.isRequestCompleted=!0,this.prevResultList=(null==l?void 0:l.cloneNode(!0))||null}catch(e){}finally{this.hidePreloader(),this.isFetching=!1}}}))}showPreloader(){this.preloader&&(this.preloader.classList.remove("weUtils__dNone"),this.preloaderInterval||(this.preloaderInterval=setInterval((()=>{if(this.preloader){const e=this.preloader.querySelector("span");if(!e)return;let t=e.innerText||"...";t+=".",t.length>3&&(t="."),e.innerText=t}}),300)))}hidePreloader(){this.preloaderTimeout&&window.clearTimeout(this.preloaderTimeout),this.preloaderInterval&&(window.clearInterval(this.preloaderInterval),this.preloaderInterval=null),this.preloader&&this.preloader.classList.add("weUtils__dNone")}onClick(e){let t=e.target;for(;t&&!t.hasAttribute("data-layer-close");){if(t.classList.contains("weSearchLayer__panel"))return;t=t.parentElement}this.parentSearch&&this.parentSearch.input&&(this.parentSearch.input.value="",this.parentSearch.el.classList.remove("weHeaderSearch--active")),e.preventDefault(),this.fadeOut()}onInput(){var e,t;let n=null===(e=this.formInput)||void 0===e?void 0:e.value;n&&0!==n.length||(n=""),this.searchValue=n,""!==n?(this.debounceTimer&&clearTimeout(this.debounceTimer),this.isWindowBlocked||(this.requestCount++,this.requestCount>=this.requestLimit&&(this.isWindowBlocked=!0,setTimeout((()=>{this.isWindowBlocked=!1}),this.blockDuration)),this.lastSearchValue=n,this.lastQueryUrl=this.getQueryUrl(
1),this.isRequestCompleted=!1,this.allResultsButton&&(this.allResultsButton.href=this.getQueryUrl("full")),this.fetchContent(this.getQueryUrl(),{},n),this.resetRequestCountAfterInactivity())):null===(t=this.find(".weSearchLayer__panelBody"))||void 0===t||t.classList.add("weUtils__dNone")}resetRequestCountAfterInactivity(){this.inactivityTimeout&&clearTimeout(this.inactivityTimeout),this.inactivityTimeout=setTimeout((()=>{this.requestCount=0,!this.isRequestCompleted&&this.lastSearchValue&&this.lastQueryUrl&&this.fetchContent(this.lastQueryUrl,{},this.lastSearchValue).then((()=>{this.hidePreloader()}))}),this.resetInterval)}onMeasure(){this.syncDimensionsToParent()}onRowClick(e){const{current:t,target:n}=e;if(!t||!(n instanceof Element)||n.closest("a"))return;const i=t.querySelector(".weCollectionList__itemLink");i&&i.click()}onDispose(){(0,b.to)(this,!0)}}class we extends s.G7{constructor(e){super(e),this.input=this.find('input[name="sword"]'),this.maxFormDimensions=null,this.searchLayer=null,this.searchLayerActive=!1,this.setMaxFormDimensions(),this.addListeners({onInputChange:{type:"keyup",selector:".weHeaderSearch__input"},onInputFocus:{type:"focus",target:this.input},onInputBlur:{type:"blur",target:this.input}})}setMaxFormDimensions(){let e=this.el.getBoundingClientRect();this.maxFormDimensions=e}onInputChange(){var e;const t=null===(e=this.input)||void 0===e?void 0:e.value;!t||t.length<-1||(this.setMaxFormDimensions(),this.el.classList.contains("weHeaderSearch--incremental")&&(this.el.closest(".weSearchLayer__form")||this.searchLayer||(this.searchLayerActive=!0,this.searchLayer=new ge({parentSearch:this,parentSearchValue:t}))))}onInputFocus(){var e;this.el.classList.add("weHeaderSearch--focused"),null===(e=this.el.closest(".weHeader"))||void 0===e||e.classList.add("weHeader--searchFocused")}onInputBlur(){var e;this.searchLayerActive||(this.el.classList.remove("weHeaderSearch--focused"),null===(e=this.el.closest(".weHeader"))||void 0===e||e.classList.remove("weHeader--searchFocused"))}}class ve extends s.G7{constructor(e){super(e),this.menu=null,this.mask=null,this.toggle=null,this.menu=this.el.querySelector(".weSectorMenu__level1"),this.mask=this.el.querySelector(".weSectorMenu__mask"),this.toggle=this.el.querySelector(".weSectorMenu__toggle"),this.addListener("click",this.onToggleClick,{selector:".weSectorMenu__toggle"}),this.addListener("click",this.onItemClick,{selector:".weSectorMenu__item"})}onToggleClick(){var e;null===(e=this.toggle)||void 0===e||e.classList.toggle("weSectorMenu__toggle--expanded"),(0,i.Oc)(this.mask,(()=>{var e;null===(e=this.menu)||void 0===e||e.classList.toggle("weSectorMenu__level1--expanded")}))}onItemClick(e){if(this.toggle&&"none"===window.getComputedStyle(this.toggle).display)return;const t=e.target,n=t.closest(".weSectorMenu__item"),s=t.closest(".weSectorMenu__link"),r=null==n?void 0:n.querySelector(".weSectorMenu__level2");return s&&n&&r?(e.preventDefault(),(0,i.Oc)(n,(()=>{n.classList.toggle("weSectorMenu__item--expanded")})),!1):void 0}}var _e=n(437);const{transform:be}=_e.q1;class ye extends s.G7{constructor(e){super(e),this.maskHeight=0,this.maskWidth=0,this.mediaHeight=0,this.mediaWidth=0;const t=this.media=this.find("canvas,img,video");t&&(this.mediaHeight=parseInt(t.getAttribute("height")||"0"),this.mediaWidth=parseInt(t.getAttribute("width")||"0"))}onMeasure(){const{maskHeight:e,maskWidth:t,media:n}=this,{offsetHeight:i,offsetWidth:s}=this.el;if(!n||e===i&&t===s)return;const{mediaHeight:r,mediaWidth:o}=this;return this.maskHeight=i,this.maskWidth=s,function(){const e=Math.max(i/r,s/o),t=.5*(s-o*e),a=.5*(i-r*e);n.style.setProperty("--transform-x",`${t}px`),n.style.setProperty("--transform-y",`${a}px`),n.style.setProperty("--transform-scale",`${e}`)}}}const Le=window.IntersectionObserver||class{constructor(e,{rootMargin:t="0 0"}={}){let n=!1;const[i,s]=(t||"0 0").split(" ").map((e=>parseFloat(e)));this.root=null,this.rootMargin=t,this.thresholds=[],this.targets=[],this.offsetTop=i,this.offsetLeft=s,this.apply=()=>{n||(n=requestAnimationFrame((()=>setTimeout((()=>{const t=this.takeRecords();t.length&&e(t,this),n=!1})))))},this.off=(0,se.on)(window,"scroll resize load",this.apply,{passive:!0,capture:!0})}disconnect(){this.targets=[],this.off()}observe(e){this.targets.push({target:e,isIntersecting:null}),this.apply()}takeRecords(){return this.targets.filter((e=>{const t=function(e,t,n){if(!((i=e).offsetWidth||i.offsetHeight||i.getClientRects().length))return!1;var i;const{innerHeight:s,innerWidth:r}=window,o=e.getBoundingClientRect();return o.left<r+n&&o.right>-n&&o.top<s+t&&o.bottom>-t}(e.target,this.offsetTop,this.offsetLeft);if(t!==e.isIntersecting)return e.isIntersecting=t,!0}))}unobserve(e){this.targets=this.targets.filter((t=>t.target!==e))}};const Se=new class{constructor(){this.targets=[];this.observer=new Le((e=>{const{targets:t}=this;e.forEach((e=>{t.filter((t=>
1t.el===e.target)).forEach((t=>t.setVisible(e.isIntersecting)))}))}),{rootMargin:"500px 0px"})}hasTargets(e){return this.targets.some((t=>t.el===e))}observe(e){const t=this.hasTargets(e.el);this.targets.push(e),t||this.observer.observe(e.el)}unobserve(e){this.targets=this.targets.filter((t=>t!==e)),this.hasTargets(e.el)||this.observer.unobserve(e.el)}};function Ce(e,t){const n=`data-${t}`,i=e.getAttribute(n);i&&(e.setAttribute(t,i),e.removeAttribute(n))}class Te extends s.G7{constructor(e){super(e),this.isLoaded=!1,Se.observe(this),this.addListeners({onLoad:{type:"load"}}),this.initializeAspectRatio()}initializeAspectRatio(){const e=this.el.closest(".weMediaImage__aspect");if(e instanceof HTMLElement){const t=e.getAttribute("data-aspect");t&&e.style.setProperty("--aspect-ratio",t)}}onLoad(){const e=this.el.closest(".weMediaImage__aspect");e&&e.classList.add("loaded")}setVisible(e){if(!e||this.isLoaded)return;this.isLoaded=!0;const{el:t}=this;Ce(t,"src"),Ce(t,"srcset")}}let ke=null;class $e extends s.G7{constructor(e){super(e),this.player=null,this.image=null,this.addListener("click",this.onClick),this.initializeAspectRatio()}initializeAspectRatio(){const e=this.el.getAttribute("data-aspect");e&&this.el.style.setProperty("--aspect-ratio",e)}load(){const e=this.find("script");if(this.player||!e)return;const{el:t}=this,n=(0,v.Qc)(e.innerHTML,"iframe,video");n&&(ke&&ke.unload(),ke=this,t.classList.add("weMediaVideoFrame__loaded"),t.appendChild(n),this.player=n,this.image=t.querySelector(".weMediaImage"))}onClick(){this.player||(this.load(),this.updateImageStyle())}unload(){const{el:e,player:t}=this;t&&(e.classList.remove("weMediaVideoFrame__loaded"),e.removeChild(t),this.player=null,this.image=null)}updateImageStyle(){this.image&&(this.image.style.display="none")}}let xe=0;const Fe={bgOpacity:.95,closeOnScroll:!1,history:!1};function Me(e){return t=>{const{origin:n}=e[t],i=(0,b.cx)(),s=n.getBoundingClientRect();let r=s.top+i;const{sources:o}=e[t],a=o&&o.length?o[0]:{},{w:l,h:c}=a;if(l&&c){const e=c/l*s.width;r+=(s.height-e)/2}return{x:s.left,y:r,w:s.width}}}function Ee(){(0,b.to)(this,!0);const e=this.container.closest(".pswp");e&&e.parentElement&&e.parentElement.removeChild(e),Ae.instance===this&&(Ae.instance=null)}function Ie(e,t){t.src=t.sources[0].src,t.msrc=t.sources[0].src,t.h=t.sources[0].h,t.w=t.sources[0].w}class Ae extends s.G7{constructor(e){super(e),this.id=xe++,this.addListeners({onClick:{type:"click"}})}getItem(){try{const t=this.el.getAttribute("data-zoom")||"null",n=JSON.parse(t),{origin:i}=n,s=(0,w._T)(n,["origin"]),{el:r}=this,o=Object.assign(Object.assign({},s),{id:this.id,origin:i&&this.find(i)||r});return"object"==typeof(e=o)&&"sources"in e&&Array.isArray(e.sources)?o:null}catch(e){return console.error(e),null}var e}getItems(){return(0,s.I_)(document.body,Ae).map((e=>e.getItem())).filter((e=>null!==e))}onClick(e){return(0,w.mG)(this,void 0,void 0,(function*(){e.preventDefault(),Ae.instance&&Ae.instance.close();const{PhotoSwipe:t,PhotoSwipeUI_Default:i,template:s}=yield n.e(799).then(n.bind(n,1239)),r=this.getItems(),o=r.findIndex((e=>e.id===this.id)),a=r[o],l=function(e){const t=(0,v.Qc)(e);return t&&document.body.append(t),t}(s),{showHideOpacity:c}=a;if(l){const e=new t(l,i,r,Object.assign(Object.assign({},Fe),{getThumbBoundsFn:Me(r),index:o,showHideOpacity:c}));!function(e){(0,b.to)(e,!1),e.listen("gettingData",Ie),e.listen("destroy",Ee),e.init()}(e),Ae.instance=e}}))}}Ae.instance=null;class He extends s.G7{constructor(e){super(e),this.forceUpdate=!1,this.panel=null,this.el.tabIndex<0&&(this.el.tabIndex=0)}fadeOut(){const{classList:e}=this.el,t=`${this.className}--fadeOut`;e.contains(t)||e.add(t)}onDispose(){(0,b.to)(this,!0)}onFocus(e){this.triggerUpdate("onMeasure")}onMeasure(){return this.updatePosition()}onScroll(){return this.updatePosition()}updatePosition(){const{forceUpdate:e,panel:t}=this;if(!t)return;t.getBoundingClientRect(),this.el.getBoundingClientRect();return e?()=>{}:void 0}}class Be extends He{constructor(e){super(e),this.cookie=null,this.cookieLifetimeInDays=365,this.cookie=this.el.dataset.cookie?this.el.dataset.cookie:null,this.cookieLifetimeInDays=this.el.dataset.cookieLifetime?parseInt(this.el.dataset.cookieLifetime):365,this.initializeVisibility(),this.addListeners({onClick:{type:"click"}})}initializeVisibility(){if(!this.cookie)return;const e=document.cookie.split("; ");let t={};for(let n=e.length-1;n>=0;n--){let i=e[n].split("=");t[i[0]]=i[1]}const n=t[this.cookie];n&&"1"===n||this.el.classList.remove("weUtils__dNone")}onClick(e){let t=e.target;for(;t;){if(t.hasAttribute("data-modal-hide-permanently"))return this.setCookie(),void this.fadeOut();if(t.hasAttribute("data-modal-close"))break;if(t.classList.contains("weModalInfo__panel"))return;t=t.parentElement}e.preventDefault(),this.fadeOut()}setCookie(){var e=new Date;e.setTime(e.getTime()+864e5*this.cookieLifetimeInDays),document.cookie=this.cookie+"=1;SameSite=Strict;path=/;expires="+e.toUTCString()}}
1var Oe=n(4641),Pe=n(5097);class De extends Pe.t{constructor(e){super(Object.assign(Object.assign({},e),{maxBreakpoint:2,swiperOptions:{centeredSlides:!0,pagination:!0}}))}}const{transform:Ue}=_e.q1,qe="weTeaserImage__caption";class Re extends s.G7{constructor(e){super(e),this.bodyHeight=0,this.body=this.find(`.${qe}Body`),this.caption=this.find(`.${qe}`),this.hasIcon=!!this.find(".weTeaserImage__icon")}onMeasure(){const{body:e,caption:t,hasIcon:n}=this;if(!e||!t)return;let s=e.offsetHeight;return this.bodyHeight!==s?(this.bodyHeight=s,function(){s*=n?.5:1,(0,i.XQ)(t,(()=>{t.style[Ue]=`translate(0, ${s}px)`}))}):void 0}}class Ne extends s.G7{constructor(e){super(e),this.products=[{imageUrl:"",title:"Lorem Ipsum",description:"Dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod."}],this.selectedCategories=[],this.apiBaseUrl=null,this.apiDisplayMode="single",this.apiBaseUrl=this.el.dataset.apiBaseUrl||null,this.apiDisplayMode=this.el.dataset.apiDisplayMode||null,this.teaser=this.findAll(".weTeaserList__itemLink").map((e=>({el:e})));let t=this.getApiCategories(this.el);const n=this.find(".weTeaserListGrid");n&&t.length>0&&this.fillContainerWithProducts(this.el,t,n)}fillContainerWithProducts(e,t,n){let i=Math.random().toString(16).slice(2);if(t.length>1)for(let e=1;e<t.length;e++){let e=this.products[0];this.products.push(e)}if(n.innerHTML=this.renderProductItems(this.el,this.products,i,!0,this.selectedCategories),t.length>0)if(1===t.length&&"single"!==this.apiDisplayMode)this.fetchSubcategories(t[0],(e=>{e.length>0?n.innerHTML=this.renderProductItems(this.el,e,i,!1,this.selectedCategories):n.innerHTML=""}));else{const e=t.map((e=>this.fetchOneProduct(e)));Promise.all(e).then((e=>{this.products=e.filter((e=>null!==e));const t=this.find(".weTeaserListGrid");t&&(t.innerHTML=this.renderProductItems(this.el,this.products,i,!1,this.selectedCategories))}))}else n.innerHTML=this.renderProductItems(this.el,this.products,i,!0)}fetchSubcategories(e,t){if(!this.apiBaseUrl)return console.error("API_PRODUCTS_ROOT_URL is not defined."),void t([]);const n=`weComponents-subcategories-${this.apiBaseUrl.indexOf("/de/")>-1?"de":"en"}-${e}`,i=localStorage.getItem(n);if(i)try{const{data:e,ts:n}=JSON.parse(i);if(Date.now()-n<108e5)return void t(e)}catch(e){}fetch(this.apiBaseUrl+e,{headers:{Authorization:"Bearer S0Kxh5swsAVLGXsPFgNhXB2dWLqZkgpukrarmskZto7ZrXv6fD9lGOelYZ6GOCaf"}}).then((e=>{if(!e.ok)throw new Error(`Failed to fetch products: ${e.statusText}`);return e.json()})).then((e=>{var i;const s=Array.isArray(null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.subcategories)?e.data.subcategories:[];this.products=s,localStorage.setItem(n,JSON.stringify({data:s,ts:Date.now()})),t(s)})).catch((e=>{console.error("Error loading product data:",e),t([])}))}fetchOneProduct(e){if(!this.apiBaseUrl)return console.error("API_PRODUCTS_ROOT_URL is not defined."),Promise.resolve(null);const t=`weComponents-category-${this.apiBaseUrl.indexOf("/de/")>-1?"de":"en"}-${e}`,n=localStorage.getItem(t);if(n)try{const{data:e,ts:t}=JSON.parse(n);if(Date.now()-t<108e5)return Promise.resolve(e)}catch(e){}return fetch(this.apiBaseUrl+e,{headers:{Authorization:"Bearer S0Kxh5swsAVLGXsPFgNhXB2dWLqZkgpukrarmskZto7ZrXv6fD9lGOelYZ6GOCaf"}}).then((e=>{if(!e.ok)throw new Error(`Failed to fetch product: ${e.statusText}`);return e.json()})).then((n=>{if(n&&"object"==typeof n&&n.data){const i=e.indexOf("#");let s="";return i>0&&(s=e.substring(i+1)),""!==s&&(n.data.description=s,n.data.url+="#"+s),localStorage.setItem(t,JSON.stringify({data:n.data,ts:Date.now()})),n.data}return console.warn("Unexpected API format:",n),null})).catch((e=>(console.error("Error loading product data:",e),null))),Promise.resolve(null)}getApiCategories(e){if(!e)return[];const t=e.getAttribute("data-api-categories");return"string"==typeof t?t.split(",").map((e=>e.trim())).filter(Boolean):[]}getAttributes(e,t){if(!e)return"";const n=e.getAttribute("data-"+t);return"string"==typeof n?n:void 0}renderProductItems(e,t,n,i,s){return`${t.map((t=>{const n=!!t.description&&""!==t.description.trim();let s=n?"":"weTeaserList__item--headlineOnly";
1i&&(s+=(s?" ":"")+"weTeaserList__itemLoader");return(({product:e,customCssClasses:t="",tagLevel:n,hasDescription:i=!1})=>{var s;return`\n  <li class="weTeaserGrid__listItem weTeaserList__item">\n    <a class="weTeaserList__itemLink ${t}" href="${null!==(s=e.url)&&void 0!==s?s:"#"}" target="weProducts">\n      <div class="weTeaserList__itemImageContainer">\n        <img class="weTeaserList__itemImage" src="${e.imageUrl}" alt="${e.title}" />\n      </div>\n\n      <div class="weTeaserList__itemContent">\n        <h5 class="weTeaserList__itemTitle weTypo__h${n}">\n          ${e.title}\n        </h5>\n        ${i&&e.description?`<p class="weTeaserList__itemDescription">${e.description}</p>`:""}\n      </div>\n\n      <div class="weTeaserList__itemIconContainer">\n        <svg width="18" height="32" viewBox="0 0 18 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n          <path fill-rule="evenodd" clip-rule="evenodd" d="M0.930664 30.9308L15.8615 16L0.930664 1.06921L1.99987 0L17.9999 16L1.99987 32L0.930664 30.9308Z" fill="#1D252D"/>\n        </svg>\n      </div>\n    </a>\n  </li>\n`})({product:t,customCssClasses:s,tagLevel:this.getAttributes(e,"tooltip")||n?5:4,hasDescription:n})})).join("")}`}}const je="weWidgetSide__toggleButton",Ve="weWidgetSide__content";class We extends s.G7{constructor(e={}){super(e),this.addListener("click",this.toggleWidget.bind(this),{selector:`.${je}`}),this.addListener("click",this.clickToggleButtonContainer,{selector:`.${Ve}__toggleButton`}),this.initializeWidget()}initializeWidget(){return(0,w.mG)(this,void 0,void 0,(function*(){const e=document.querySelector(".weWidgetSide");yield this.delay(2e3),null==e||e.classList.toggle("weWidgetSide--hidden")}))}delay(e){return new Promise((t=>setTimeout(t,e)))}toggleWidget({current:e}){if(e){const t=null==e?void 0:e.nextElementSibling;t&&t.classList.toggle(`${Ve}--hidden`),e.classList.toggle(`${je}--hidden`)}}clickToggleButtonContainer({current:e}){if(e){const t=document.querySelector(`.${je}`);t&&t.classList.toggle(`${je}--hidden`);const n=e?e.closest(`.${Ve}`):null;n&&n.classList.toggle(`${Ve}--hidden`)}}}class Ge extends s.G7{constructor(e){super(e),this.cookie=null,this.cookieLifetimeInDays=365,this.bannerElement=document.querySelector(".weInfoBanner"),this.closeButton=document.querySelector(".weInfoBanner__panelCloser"),this.cookie=this.el.dataset.cookie?this.el.dataset.cookie:null,this.cookieLifetimeInDays=this.el.dataset.cookieLifetime?parseInt(this.el.dataset.cookieLifetime):7,this.addListener("click",this.handleCloseButtonClick,{selector:".weInfoBanner__panelCloser"}),this.initializeWidget()}initializeWidget(){return(0,w.mG)(this,void 0,void 0,(function*(){document.querySelector(".weInfoBanner");this.bannerElement&&!this.isBannerDismissed()&&this.bannerElement.classList.remove("weUtils__dNone")}))}isBannerDismissed(){return document.cookie.split("; ").some((e=>e.startsWith(`${this.cookie}=`)))}handleCloseButtonClick(){this.bannerElement.classList.add("weUtils__dNone"),this.cookie&&this.setCookie(this.cookie,"dismissed",this.cookieLifetimeInDays)}setCookie(e,t,n){const i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);const s=`expires=${i.toUTCString()}`;document.cookie=`${e}=${t}; ${s}; path=/`}}const Qe="weMaterialRequest";class ze extends s.G7{constructor(e){super(e),this.processingForms=new Set,this.selectedFilesMap={},this.formSnapshots={},this.formsWithRemovedFiles=new Set,this.addListener("click",this.onMRQuotesClick,{selector:`.${Qe}__itemMetaQuotesAdd--btn`}),this.addListener("click",this.onProcessAllForms,{selector:`.${Qe}__itemMRButtonsFooter__btn`}),this.addListener("click",this.onTagMRRemoveFile,{selector:`.${Qe}__removeMRFile`}),this.addListener("change",this.onFileInputChange,{selector:'input[type="file"][data-item-key]'}),this.addListener("click",this.onRemoveSelectedFile,{selector:".weFormTags__removeSelectedFile"}),this.initializeFileLimitDisplays()}snapshotForm(e){const t=document.getElementById(`form-${e}`);if(!t)return;const n=new FormData(t),i=[];n.forEach(((e,t)=>{e instanceof File||i.push(`${t}=${e}`)})),this.formSnapshots[e]=i.sort().join("&")}isFormDirty(e){if(this.selectedFilesMap[e]&&this.selectedFilesMap[e].length>0)return!0;
1if(this.formsWithRemovedFiles.has(e))return!0;if(!this.formSnapshots[e])return!0;const t=document.getElementById(`form-${e}`);if(!t)return!0;const n=new FormData(t),i=[];n.forEach(((e,t)=>{e instanceof File||i.push(`${t}=${e}`)}));return i.sort().join("&")!==this.formSnapshots[e]}disableButton(e,t=""){if(e){if(t){const n=e.innerHTML||"";e.setAttribute("data-original-text",n),e.innerHTML=t}e.classList.add("disabled"),e.classList.add("weMaterialRequest__button--disabled")}}enableButton(e){e&&(e.classList.remove("disabled"),e.classList.remove("weMaterialRequest__button--disabled"),e.getAttribute("data-original-text")&&(e.innerHTML=e.getAttribute("data-original-text")||"",e.removeAttribute("data-original-text")))}showFormLoader(e,t="Saving..."){const n=document.getElementById(`form-${e}`);if(!n)return;const i=n.closest("[data-key-form]")||n.parentElement;if(!(i&&i instanceof HTMLElement))return;"static"===getComputedStyle(i).position&&(i.style.position="relative"),this.hideFormLoader(e);const s=document.createElement("div");s.className="weMaterialRequest__formLoader",s.setAttribute("data-loader-key",e),s.innerHTML=`\n      <div class="weMaterialRequest__formLoaderSpinner"></div>\n      <div class="weMaterialRequest__formLoaderText">${t}</div>\n    `,i.appendChild(s)}updateFormLoaderMessage(e,t){const n=document.querySelector(`[data-loader-key="${e}"]`);if(n){const e=n.querySelector(".weMaterialRequest__formLoaderText");e&&(e.textContent=t)}}hideFormLoader(e){const t=document.querySelector(`[data-loader-key="${e}"]`);t&&t.remove()}disableAllButtons(){document.querySelectorAll(".weMaterialRequest__itemMRButtonsFooter__btn").forEach((e=>{e instanceof HTMLElement&&this.disableButton(e)}))}resetButtons(){document.querySelectorAll(".weMaterialRequest__itemMRButtonsFooter__btn").forEach((e=>{e instanceof HTMLElement&&this.enableButton(e)}))}onMRQuotesClick(e){return(0,w.mG)(this,void 0,void 0,(function*(){const{current:t}=e,n=null==t?void 0:t.closest(`.${Qe}__itemMetaQuotesAdd--btn`);if(n){n instanceof HTMLElement&&this.disableButton(n);const e=n.parentElement,t=n.getAttribute("data-key"),i=n.getAttribute("data-submit");try{if("1"==i&&t?this.isFormDirty(t)&&(yield this.processSingleForm(t,!0)):t&&this.snapshotForm(t),e){Array.from(e.children).forEach((e=>{e.classList.contains("weCollectionList__itemMetaQuotesAdd--btnHidden")?e.classList.remove("weCollectionList__itemMetaQuotesAdd--btnHidden"):e.classList.contains("weCollectionList__itemMetaQuotesAdd--btn")&&e.classList.add("weCollectionList__itemMetaQuotesAdd--btnHidden")}));const n=document.querySelector(`[data-key-form="${t}"]`);n&&n.classList.toggle("weUtils__dNone")}}catch(e){console.error(`Error processing form ${t}:`,e)}finally{n instanceof HTMLElement&&this.enableButton(n)}}}))}processSingleForm(e,t=!1,n="saveData"){return(0,w.mG)(this,void 0,void 0,(function*(){if(this.processingForms.has(e))console.log(`Form ${e} is already being processed. Skipping duplicate request.`);else{this.processingForms.add(e);try{const i=document.getElementById(`form-${e}`);if(!i)return void console.error(`Form with ID form-${e} not found`);if("submit"===n){const e=e=>(0,w.mG)(this,void 0,void 0,(function*(){const t=e.querySelectorAll('input[type="text"]:not([placeholder="Search"]):not([name^="factoryNotes-"]), input[type="date"], input[type="number"], select[name^="quotedLeadTime-"]');let n=!1;for(const i of t){if(i.classList.contains("invalid")){const e=i.parentElement;if(e){const t=e.querySelector(".weForm__fieldError");t&&!t.classList.contains("weUtils__dNone")&&t.classList.add("weUtils__dNone")}i.classList.remove("invalid")}if(!i.value.trim()){console.error(`Form ${e.id} has empty required fields.`),console.log("invalid: ",i),i.focus();const t=i.parentElement;if(t){const e=t.querySelector(".weForm__fieldError");e&&e.classList.toggle("weUtils__dNone")}i.classList.toggle("invalid"),n=!0}}return!n}));if(!(yield e(i)))return console.warn(`Form ${i.id} validation failed.`),void this.showToast("Form validation failed")}const s=new FormData(i),r={},o=[],a=[".doc",".docx",".dotx",".docm",".dotm",".pdf",".xls",".xlsb",".xlsm",".xltm",".xlsx",".xltx",".ppt",".pptx",".ppsx",".potx",".ppsm",".gif",".jpg",".jpeg",".jpe",".svg",".tiff",".tif",".png"];if(s.forEach(((e,t)=>{var n;if(e instanceof File&&e.size>0){const i=null===(n=e.name.split(".").pop())||void 0===n?void 0:n.toLowerCase();if(i&&a.includes(`.${i}`)){let n=o.find((e=>e.key===t));
1n||(n={key:t,files:[]},o.push(n)),n.files.push(e)}}else e instanceof File||(r[t]=e.toString())})),this.selectedFilesMap[e]&&this.selectedFilesMap[e].length>0){const t=`files-${e}`;let n=o.find((e=>e.key===t));n||(n={key:t,files:[]},o.push(n)),this.selectedFilesMap[e].forEach((e=>{var t;const i=null===(t=e.name.split(".").pop())||void 0===t?void 0:t.toLowerCase();if(i&&a.includes(`.${i}`)){n.files.some((t=>t.name===e.name&&t.size===e.size))||n.files.push(e)}}))}r.actionType=n;const l=o.reduce(((e,t)=>e+t.files.length),0);if(console.log(`📁 Found ${l} files to upload`),!this.validateFileLimits(e,o))return;let c=!0;this.showFormLoader(e,l>0?"Saving data...":"Saving...");const d=yield fetch(window.location.href,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.origin},body:JSON.stringify(r)});if(!d.ok)throw new Error(`Form submission failed: ${d.statusText}`);const u=yield d.json();if(u.details&&u.details.length>0){const e=u.details.find((e=>"FILE_LIMIT_EXCEEDED"===e.errorType));if(e)throw new Error(e.message||"File limit exceeded")}if(l>0){console.log(`🚀 Uploading ${l} file(s) via multipart/form-data...`);let t=0;for(const n of o)for(let i=0;i<n.files.length;i++){const s=n.files[i];t++,this.updateFormLoaderMessage(e,`Uploading file ${t} of ${l}...`);try{console.log(`📤 Uploading file ${i+1}: ${s.name}`);const t=new FormData;t.append("actionType","uploadFile"),t.append("uuid",e),t.append("file",s);const n=yield fetch(window.location.href,{method:"POST",body:t});if(!n.ok)throw new Error(`File upload failed: ${n.statusText}`);const r=yield n.json();if(r.details&&r.details.length>0){const e=r.details.find((e=>"FILE_LIMIT_EXCEEDED"===e.errorType));if(e)throw new Error(e.message||"File limit exceeded")}console.log(`✅ File uploaded successfully: ${s.name}`)}catch(e){if(console.error(`❌ File upload failed: ${s.name}`,e),c=!1,e instanceof Error&&e.message.includes("File limit exceeded")){console.error("File limit exceeded, stopping further uploads");break}}}}if("submit"!==n&&t){this.updateFormLoaderMessage(e,"Refreshing..."),this.clearSelectedFiles(e);const t=yield fetch(window.location.href+"&fragment="+e,{method:"GET"});if(t.ok){const n=yield t.text(),s=(new DOMParser).parseFromString(n,"text/html"),r=s.getElementById(`form-${e}`),o=document.getElementById(`table-details-${e}`),a=s.getElementById(`table-details-${e}`);r&&i&&(i.innerHTML=r.innerHTML),a&&o&&(o.innerHTML=a.innerHTML);const l=document.getElementById(`existingFiles-${e}`),c=s.getElementById(`existingFiles-${e}`);l&&c&&(l.innerHTML=c.innerHTML)}else console.error("Failed to fetch updated form:",t.statusText)}c?this.showToast("Form saved successfully"):this.showToast("Form saved but some files failed to upload")}catch(t){console.error(`Error processing form ${e}:`,t),t instanceof Error&&t.message.includes("File limit exceeded")?this.showToast(t.message,5e3):this.showToast("An error occurred while processing the form")}finally{this.hideFormLoader(e),this.formsWithRemovedFiles.delete(e),this.processingForms.delete(e)}}}))}onProcessAllForms(e){return(0,w.mG)(this,void 0,void 0,(function*(){const{current:t}=e;t&&t instanceof HTMLElement&&(this.disableButton(t,"Processing..."),this.disableAllButtons());const n=null==t?void 0:t.getAttribute("data-type"),i=document.querySelectorAll('[id^="form-"]');try{if(n&&"submitAll"===n){const e=e=>(0,w.mG)(this,void 0,void 0,(function*(){var t;const n=e.querySelectorAll('input[type="text"]:not([placeholder="Search"]):not([name^="factoryNotes-"]), input[type="date"], input[type="number"], select[name^="quotedLeadTime-"]');let i=!1;for(const s of n){if(s.classList.contains("invalid")){const e=s.parentElement;if(e){const t=e.querySelector(".weForm__fieldError");t&&!t.classList.contains("weUtils__dNone")&&t.classList.add("weUtils__dNone")}s.classList.remove("invalid")}if(!s.value.trim()){console.error(`Form ${e.id} has empty required fields.`);const n=document.querySelectorAll(".weCollectionList__itemMetaQuotesAdd--btnHidden");for(const t of n)if("1"===t.getAttribute("data-submit")&&t.getAttribute("data-key")===e.id.replace("form-","")){const e=document.querySelector(`.weMaterialRequest__itemMetaQuotesAdd--btn[data-key="${t.getAttribute("data-key")}"][data-submit="0"]`);if(e){const t={current:e,target:e,preventDefault:()=>{},stopPropagation:()=>{}};yield this.onMRQuotesClick(t)}}const r=s.parentElement;if(r){const e=r.querySelector(".weForm__fieldError");e&&e.classList.toggle("weUtils__dNone")}s.classList.toggle("invalid"),s instanceof HTMLSelectElement?null===(t=null==r?void 0:r.querySelector("label"))||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center"}):s.focus(),i=!0}}return!i})),t=Array.from(i).map((t=>(0,w.mG)(this,void 0,void 0,(function*(){const i=t;i.id.replace("form-","");if(n){if(!(yield e(i)))return Promise.reject(`Form ${i.id} has empty required fields.`)}}))));yield Promise.all(t)}const e=Array.from(i).map((e=>(0,w.mG)(this,void 0,void 0,(function*(){const t=e.id.replace("form-","");if(n){if("submitAll"===n)return this.processSingleForm(t,!1,"submit");
1if("saveAll"===n||"saveAllBack"===n)return this.processSingleForm(t)}}))));if(yield Promise.all(e),n)if("submitAll"===n){const e={actionType:"submitAllFinished"};e.rfqnumber=window.location.search.split("=")[1];try{this.showToast("Submitting data, please wait...");const t=yield fetch(window.location.href,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw new Error("Submission failed");yield t.json();this.showToast("Data submitted successfully! Redirecting...",1500),this.clearAllSelectedFiles(),setTimeout((()=>{const e=window.location.origin+window.location.pathname;window.location.href=e}),1500)}catch(e){console.error("Error during final submission:",e),this.showToast("Error submitting data. Please try again."),this.resetButtons()}}else if("saveAll"===n)window.location.reload();else if("saveAllBack"===n){const e=window.location.origin+window.location.pathname;window.location.href=e}}catch(e){console.error(e),this.resetButtons()}finally{"submitAll"!==n&&"saveAllBack"!==n&&"saveAll"!==n&&this.resetButtons()}}))}onTagMRRemoveFile(e){const{current:t}=e,n=null==t?void 0:t.getAttribute("data-filename"),i=null==t?void 0:t.getAttribute("data-identifier");if(!n||!i)return void console.error("Tag value not found for removal.");t instanceof HTMLElement&&this.disableButton(t);window.confirm(`Are you sure you want to remove "${n}"?`)?fetch(window.location.href,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:n,actionType:"removeFile",requestId:i})}).then((e=>{if(!e.ok)throw new Error(`Failed to remove tag: ${e.statusText}`);return e.json()})).then((e=>{var n,i;if(t){const e=t.closest('[id^="existingFiles-"]'),s=e?e.id.replace("existingFiles-",""):(null===(n=t.closest("form"))||void 0===n?void 0:n.id.replace("form-",""))||"";if(null===(i=t.parentElement)||void 0===i||i.remove(),s){this.formsWithRemovedFiles.add(s);const e=document.getElementById(`files-${s}`);if(e){const t=parseInt(e.getAttribute("data-existing-files")||"0",10),n=Math.max(0,t-1);e.setAttribute("data-existing-files",n.toString()),this.updateFileLimitDisplay(s,e)}}}})).catch((e=>{console.error("Error removing tag:",e),t instanceof HTMLElement&&this.enableButton(t)})):t instanceof HTMLElement&&this.enableButton(t)}showToast(e,t=3e3){const n=document.getElementById("toast");n?(n.textContent=e,n.classList.add("show"),setTimeout((()=>{n.classList.remove("show")}),t)):console.error("Toast container not found.")}onFileInputChange(e){const{current:t}=e;if(t instanceof HTMLInputElement&&"file"===t.type){const e=t.getAttribute("data-item-key");e&&this.handleMultipleFileSelection(e,t)}}onRemoveSelectedFile(e){const{current:t}=e;if(t instanceof HTMLElement){const e=t.getAttribute("data-item-key"),n=t.getAttribute("data-file-index");e&&null!==n&&this.removeSelectedFile(e,parseInt(n,10))}}handleMultipleFileSelection(e,t){const n=parseInt(t.getAttribute("data-max-files")||"10",10),i=n-parseInt(t.getAttribute("data-existing-files")||"0",10);this.selectedFilesMap[e]||(this.selectedFilesMap[e]=[]);const s=Array.from(t.files||[]),r=this.selectedFilesMap[e].length;if(r+s.length>i){const t=i-r;this.showToast(`You can only upload ${t} more file(s). Maximum ${n} files allowed including existing files.`);s.slice(0,t).forEach((t=>{this.selectedFilesMap[e].some((e=>e.name===t.name&&e.size===t.size))||this.selectedFilesMap[e].push(t)}))}else s.forEach((t=>{this.selectedFilesMap[e].some((e=>e.name===t.name&&e.size===t.size))||this.selectedFilesMap[e].push(t)}));this.updateFileInput(e,t),this.updateFileDisplay(e),this.updateFileLimitDisplay(e,t)}updateFileInput(e,t){const n=new DataTransfer;this.selectedFilesMap[e].forEach((e=>{n.items.add(e)})),t.files=n.files}updateFileDisplay(e){const t=document.getElementById(`selectedFiles-${e}`);if(!t)return;this.updateLabelCaption(e);let n="";this.selectedFilesMap[e]&&this.selectedFilesMap[e].length>0&&(n+='<div class="weFormUpload__files"><div class="weFormTags">',this.selectedFilesMap[e].forEach(((t,i)=>{n+='<div class="weFormTags__item weFormTags__item--preloaded">',n+=`<span class="weFormTags__itemCaption">${t.name}</span>`,n+=`<a class="weFormTags__removeSelectedFile" data-item-key="${e}" data-file-index="${i}">`,n+='<svg class="weFormTags__itemIcon" width="16" height="16" viewB
1ox="0 0 16 16">',n+='<use href="#webSvg__close-16"></use>',n+="</svg>",n+="</a>",n+="</div>"})),n+="</div></div>"),t.innerHTML=n}updateLabelCaption(e){const t=document.getElementById(`files-${e}`);t&&this.updateFileLimitDisplay(e,t)}removeSelectedFile(e,t){if(this.selectedFilesMap[e]&&this.selectedFilesMap[e][t]){this.selectedFilesMap[e].splice(t,1);const n=document.getElementById(`files-${e}`);n&&(this.updateFileInput(e,n),this.updateFileLimitDisplay(e,n)),this.updateFileDisplay(e)}}clearSelectedFiles(e){this.selectedFilesMap[e]=[];const t=document.getElementById(`files-${e}`);t&&(t.value="",this.updateFileLimitDisplay(e,t)),this.updateFileDisplay(e)}clearAllSelectedFiles(){Object.keys(this.selectedFilesMap).forEach((e=>{this.clearSelectedFiles(e)}))}updateFileLimitDisplay(e,t){const n=parseInt(t.getAttribute("data-max-files")||"10",10),i=parseInt(t.getAttribute("data-existing-files")||"0",10),s=this.selectedFilesMap[e]?this.selectedFilesMap[e].length:0,r=n-(i+s),o=document.querySelector(`label[for="files-${e}"] .weFormUpload__labelCaption`);if(o)if(r<=0){o.textContent=`Max files reached (${n})`,t.disabled=!0;const e=t.nextElementSibling;e&&e.classList.add("weFormUpload__label--disabled")}else{t.setAttribute("data-remaining-files",r.toString()),o.textContent=0===s?`Upload file (max ${r} more)`:1===s?`1 file selected (max ${r} more)`:`${s} files selected (max ${r} more)`,t.disabled=!1;const e=t.nextElementSibling;e&&e.classList.remove("weFormUpload__label--disabled")}}initializeFileLimitDisplays(){document.querySelectorAll('input[type="file"][data-item-key]').forEach((e=>{const t=e.getAttribute("data-item-key");t&&this.updateFileLimitDisplay(t,e)}))}validateFileLimits(e,t){const n=document.getElementById(`files-${e}`);if(!n)return!0;const i=parseInt(n.getAttribute("data-max-files")||10..toString(),10),s=parseInt(n.getAttribute("data-existing-files")||"0",10);if(s+t.reduce(((e,t)=>e+t.files.length),0)>i){const e=i-s;return this.showToast(`File limit exceeded! Maximum ${i} files allowed. You have ${s} existing files and can only upload ${e} more file(s).`,5e3),!1}return!0}}},6146:function(e,t,n){n.d(t,{y:function(){return r}});var i=n(9750),s=n(1121);class r extends s.G7{constructor(e={}){super(e),this.isEnabled=!1,this.maxBreakpoint=e.maxBreakpoint||-1,this.minBreakpoint=e.minBreakpoint||-1,this.addListeners({onBreakpoint:{type:i.KM,target:window}})}onBreakpoint(){this.setEnabled()}onDispose(){this.setEnabled(!1),super.onDispose()}shouldBeEnabled(){const{maxBreakpoint:e,minBreakpoint:t}=this,{index:n}=(0,i.iu)();return(-1===e||n<=e)&&(-1===t||n>=t)}setEnabled(e=this.shouldBeEnabled()){this.isEnabled!==e&&(this.isEnabled=e,e?this.activate():this.deactivate())}}},5751:function(e,t,n){n.d(t,{j:function(){return l}});var i=n(437),s=n(2122);const{animation:r,onAnimationEnd:o}=i.q1,a={delay:0,duration:400,timingFunction:"ease",fillMode:"both"};function l(e,t,n={}){const i=a,{duration:l=i.duration,delay:c=i.delay,timingFunction:d=i.timingFunction,fillMode:u=i.fillMode}=n;return new Promise((n=>{const i=e.style,a=`${t} ${l}ms ${d} ${c}ms ${u}`;function h(t){t&&t.target!==e||(i[r]="",clearTimeout(p),m(),n())}const p=setTimeout(h,l+c+100),m=(0,s.on)(e,o,h);i[r]=a}))}},9750:function(e,t,n){n.d(t,{gp:function(){return s},fM:function(){return r},KM:function(){return o},H_:function(){return a},HT:function(){return l},Cb:function(){return c},Y5:function(){return d},r$:function(){return u},iu:function(){return _},P0:function(){return b}});var i=n(2122);function s(){return document.documentElement.clientHeight||window.innerHeight}function r(){return document.documentElement.clientWidth||window.innerWidth}const o="we:breakpoint",a=335,l=374,c=700,d=960,u=1140,h=[{index:0,name:"xxs",width:0},{index:1,name:"xs",width:a},{index:2,name:"sm",width:l},{index:3,name:"md",width:c},{index:4,name:"lg",width:d},{index:5,name:"xl",width:u},{index:6,name:"xxl",width:1400}];let p=g(),m=!1,f=null;function g(){const e=h.length,t=r();for(let n=1;n<e;n++)if(h[n].width>t)return n-1;return e-1}function w(e){return h.findIndex((t=>t.name===e))}function v(){null===f?f=window.setTimeout(v,0):(window.clearTimeout(f),f=null);const e=g();e!==p&&(p=e,(0,i.X$)(window,o,{breakpoint:h[e],index:e}))}function _(){return m||(v(),m=!0),h[p]}function b(e){return w(e)<p}(0,i.on)(window,"resize",v)},9361:function(e,t,n){n.d(t,{j:function(){return s},U:function(){return r}});var i=n(655);function s(e,t,n){return e.classList.add(t),new Promise((i=>{setTimeout((()=>{e.classList.remove(t),i()}),n)}))}function r(e){return(0,i.mG)(this,void 0,void 0,(function*(){const{className:t,el:n}=e,i=`${t}--fadeOut`;n.classList.contains(i)||(yield s(n,i,300),e.remove())}
1))}},4535:function(e,t,n){n.d(t,{tF:function(){return l}});var i=n(5751),s=n(9750),r=n(2593),o=n(6444);function a(e,t,n={}){const i=function(e,t){const n=[],i=[],r=[],o=e.map((e=>e.getBoundingClientRect())),a=(0,s.gp)(),l=({top:e,bottom:t})=>t>0&&e<a;return t().forEach((t=>{const n=t.getBoundingClientRect(),s=e.indexOf(t),a=l(n);if(-1==s)i.push({element:t,position:n,inViewport:a});else{const e=o[s];if(o[s]=null,!e)return;r.push({element:t,from:e,to:n,inViewport:a||l(e)})}})),e.forEach(((e,t)=>{const i=o[t];i&&n.push({element:e,position:i,inViewport:l(i)})})),{animations:[],changed:r,created:i,deleted:n}}(e,t),{ignoreX:r,ignoreY:a,stackedDelay:l=0}=n;return i.changed.filter((e=>e.inViewport)).forEach((({element:e,from:t,to:n},s)=>{const c=r?0:t.left-n.left,d=a?0:t.top-n.top;0==c&&0==d||i.animations.push((0,o.tF)(e,{transform:{clear:!0,from:`translate(${c}px, ${d}px)`,to:"translate(0, 0)",delay:(i.deleted.length+s)*l}}))})),i}function l(e,t,n){const s=a(e,t,n),{created:o,deleted:l}=s,{detach:c=!1,fadeIn:d,fadeOut:u,origin:h,stackedDelay:p=0}=n,m=l.length+s.changed.length;let f=0,g=0;if(h){const e=h.getBoundingClientRect();f=-e.top,g=-e.left}return o.forEach((({element:e,inViewport:t},n)=>{const r=(m+n)*p;t&&s.animations.push((0,i.j)(e,d,{delay:r}))})),l.forEach((({element:e,inViewport:t,position:n},o)=>{if(!t)return void(c&&(0,r.Od)(e));const a=o*p,{style:l}=e;l.position="absolute",l.top=`${n.top+f}px`,l.left=`${n.left+g}px`,s.animations.push((0,i.j)(e,u,{delay:a}).then((()=>{c&&(0,r.Od)(e),l.position="",l.top="",l.left=""})))})),s}},2593:function(e,t,n){n.d(t,{nn:function(){return a},aT:function(){return l},kK:function(){return c},J2:function(){return d},YR:function(){return u},wV:function(){return h},Qc:function(){return p},dW:function(){return m},Od:function(){return f},dx:function(){return g},PZ:function(){return w}});var i=n(8941);let s=null;const r=Element?Element.prototype:{},o=r.matches||r.webkitMatchesSelector||r.msMatchesSelector||function(){return null};function a(e,t){t(e);let n=e.firstElementChild;for(;n;){const e=n.nextElementSibling;a(n,t),n=e}}function l(e,t,n=""){return e.getAttribute(`data-${(0,i.H0)(t)}`)||n}function c(e){return e instanceof Element}function d(e){return c(e)&&("INPUT"===e.nodeName||"SELECT"===e.nodeName||"TEXTAREA"===e.nodeName)}function u(e,t){return c(e)&&e.tagName===t}function h(e,t){const n=[];let i=e;for(;i&&(i=i.parentElement);)t&&!o.call(i,t)||n.push(i);return n}function p(e,t){const n=m(e);return t?n.querySelector(t):n.body.firstElementChild}function m(e){return s||(s=new DOMParser),s.parseFromString(e,"text/html")}function f(e){const{parentElement:t}=e;t&&t.removeChild(e)}function g(e){const{parentElement:t}=e,n=[];let i=t?t.firstElementChild:null;for(;i;)n.push(i),i=i.nextElementSibling;return n}function w(e){return function(e){return Array.prototype.slice.apply(e)}(e).filter(c)}},437:function(e,t,n){n.d(t,{w1:function(){return s},q1:function(){return r}});var i=n(8941);const s="undefined"!=typeof window&&/msie|trident/i.test(window.navigator.userAgent),r=function(){const e=!("WebkitAnimation"in document.body.style),t="ontransitionend"in document.body,n=e?e=>e.toLowerCase():e=>`webkit${e}`,s=e?e=>e:e=>`webkit${(0,i.Ps)(e)}`,r=t?e=>e.toLowerCase():e=>`webkit${e}`,o=t?e=>e:e=>`webkit${(0,i.Ps)(e)}`,a="transform"in document.body.style?e=>e:e=>`webkit${(0,i.Ps)(e)}`;return{animation:s("animation"),onAnimationEnd:n("AnimationEnd"),onTransitionEnd:r("transitionend"),perspective:a("perspective"),transform:a("transform"),transformOrigin:a("transformOrigin"),transition:o("transition")}}()},2122:function(e,t,n){n.d(t,{yM:function(){return a},oh:function(){return l},on:function(){return c},X$:function(){return d}});var i=n(655),s=n(2593),r=n(437);function o(e){return e&&r.w1&&"boolean"!=typeof e?!!e.capture:e}function a(e,t=!0,n=!1,i){if("string"!=typeof e)return e;const s=document.createEvent("CustomEvent");return s.initCustomEvent(e,t,n,i),s}function l(e){return function(e){return e&&e instanceof CustomEvent}(e)&&e.detail&&"object"==typeof e.detail}function c(e,t,n,r={}){var{selector:a,self:l,scope:c}=r,d=(0,i._T)(r,["selector","self","scope"]);c&&(n=n.bind(c)),l&&(n=function(e){return function(t){if(t.target===t.currentTarget)return e(t)}}(n)),a&&(n=function(e,t,n){return function(i){const{target:r}=i,o=(0,s.kK)(r)?r.closest(t):null;o&&(i.delegate=e,i.current=o,n.call(this,i))}}(e,a,n));const u=o(d);return t.split(" ").forEach((t=>e.addEventListener(t,n,u))),function(){!function(e,t,n,i=!1){i=o(i),t.split(" ").forEach((t=>e.removeEventListener(t,n,i)))}(e,t,n,u)}}function d(e,t,n){return e.dispatchEvent(a(t,!0,!0,n))}},4292:function(e,t,n){n.d(t,{E:function(){return l}});let i=!1;function s(e=1){o(l.reads),o(l.writes.splice(0)),i=!1,(l.reads.length||l.writes.length)&&r(e+1)}
1function r(e=0){i||(i=!0,e&&e<4?Promise.resolve().then((()=>s(e))):requestAnimationFrame((()=>s())))}function o(e){let t;for(;t=e.shift();)try{const e=t();e&&l.write(e)}catch(e){console.error(e)}}function a(e,t){const n=e.indexOf(t);return!(!~n||!e.splice(n,1))}const l={reads:[],writes:[],read(e){return this.reads.push(e),r(),e},write(e){return this.writes.push(e),r(),e},clear(e){a(this.reads,e),a(this.writes,e)},flush:s}},8782:function(e,t,n){n.d(t,{t:function(){return r}});const i={"Apply filter":"Filter anwenden","Filter by":"Filtern nach","Remove all":"Alle löschen","Reset all":"Alle zurücksetzen","Show all":"Alle anzeigen","Show less":"Weniger anzeigen"},s=document.documentElement.lang;function r(e){return"de"===s?i[e]:e}},8941:function(e,t,n){n.d(t,{uZ:function(){return r},H0:function(){return o},Ds:function(){return a},ZT:function(){return l},tP:function(){return d},Ps:function(){return u},EL:function(){return h}});let i=0;function s(e,t){return t?t.toUpperCase():""}function r(e,t=0,n=1){return e<t?t:e>n?n:e}function o(e){return e.trim().replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()}function a(e,t,n){let i,s,r,o=null,a=null;const l=function(){var d=c()-i;t>d?o=window.setTimeout(l,t-d):(o=null,!n&&a&&(s=e.apply(r,a)),o||(a=r=null))},d=function(...d){return r=this,a=d,i=c(),o||(o=window.setTimeout(l,t),n&&(s=e.apply(r,a))),s};return d.cancel=function(){o&&window.clearTimeout(o),o=a=r=null},d}const l=()=>null,c=Date.now||function(){return(new Date).getTime()};function d(e){return Array.prototype.slice.call(e)}function u(e){return e.length?s(0,e.charAt(0))+e.slice(1):""}function h(e="we"){return`${e}-${i++}`}},6433:function(e,t,n){function i(e,{body:t,method:n="get"}={}){const i=new XMLHttpRequest,s=function(e){return new Promise(((t,n)=>{e.responseType="text",e.addEventListener("load",(()=>{t(e.response)})),e.addEventListener("error",(()=>{n()}))}))}(i);return i.open(n,e),i.send(t),s}function s(e){const t=e.indexOf("?");-1!==t&&(e=e.substr(t+1));const n={};return e.split("&").forEach((e=>{const[t,i]=e.split("=",2).map(decodeURIComponent);n[t]=i})),n}function r(e){function t(e){return encodeURIComponent(e).replace("%5B","[").replace("%5D","]")}const n=[];for(const[i,s]of e.entries())"object"!=typeof s&&s&&n.push(`${t(i)}=${encodeURIComponent(s)}`);return n.join("&")}n.d(t,{lC:function(){return i},dD:function(){return s},UK:function(){return r}})},2822:function(e,t,n){const i=Element.prototype;i.matches||(i.matches=i.msMatchesSelector||i.webkitMatchesSelector),i.closest||(i.closest=function(e){let t=this;for(;null!==t&&1===t.nodeType;){if(i.matches.call(t,e))return t;t=t.parentElement||t.parentNode}return null}),n.p=function(){const e=function(){const{currentScript:e}=document;return e||document.getElementById("weRootScript")}(),t=e?e.src:"/assets/";return t.substr(0,t.lastIndexOf("/")+1)}()},6521:function(e,t,n){n.d(t,{cx:function(){return d},Dx:function(){return u},to:function(){return h}});var i=n(2122);const s=[];let r=!0,o=Number.NaN,a=0,l=0;function c(e){if(r===e)return;r=e;const{body:t}=document,{style:n}=t;if(e)n.setProperty("--we-scrollbar-width",null),n.position="",n.paddingRight="",n.width="",n.left="",n.top="",window.scrollTo({left:a,top:l,behavior:"instant"});else{if(a=window.pageXOffset||document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft,l=d(),isNaN(o)){const{offsetWidth:e}=t;n.position="fixed",n.width="100%",o=t.offsetWidth-e}n.setProperty("--we-scrollbar-width",`${o}px`),n.position="fixed",n.paddingRight=`${o}px`,n.width="100%",n.left=-a+"px",n.top=-l+"px"}(0,i.X$)(t,"tyny:scrollbarsChange",{hasScrollbars:r,scrollBarSize:o})}function d(){return window.pageYOffset||document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}function u(){return r}function h(e,t){const n=s.indexOf(e);t||-1!==n?t&&-1!==n&&s.splice(n,1):s.push(e),c(0===s.length)}},8116:function(e,t,n){n.d(t,{Lj:function(){return r},w0:function(){return o},AK:function(){return a},YU:function(){return l},xy:function(){return c}});var i=n(8941);function s(e){return"boolean"==typeof e?o(e):"number"==typeof e?`${e}`:l(e)}function r(e){const t=[];for(const n in e){const r="class"===n?a(e[n]):e[n];if("boolean"==typeof r){r&&t.push((0,i.H0)(n));continue}const o=Array.isArray(r)?r.filter((e=>!!e)).map(s).join(" "):s(r);o&&t.push(`${(0,i.H0)(n)}="${o}"`)}return(t.length?" ":"")+t.join(" ")}function o(e){return e?"true":"false"}function a(...e){let t="";return e.reduce((function e(n,i){function s(e){e.startsWith("--")?e=t+e:t=e,n.push(e)}if(Array.isArray(i))i.reduce(e,n);else if("object"==typeof i)for(const e in i)i[e]&&s(e);else i&&s(`${i}`);return n}),[]).filter((e=>!!e)).join(" ")}function l(e){return e.replace(/&/g,"&amp;").replace(/&amp;shy;/g,"&shy;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function c(e,t,...n){return e&&e.length?e.map((e=>t(e,...n))).join(""):""}},6444:function(e,t,n){n.d(t,{tF:function(){return l},XQ:function(){return c},Oc:function(){return d}});var i=n(655),s=n(437);const{onTransitionEnd:r,transition:o}=s.q1,a={delay:0,duration:400,timingFunction:"ease-in-out"};function l(e,t,n={}){const s=e.style,l=Object.assign(Object.assign({},a),n),d=[o],u=[],h=[];return h.push([o,Object.keys(t).map((e=>{const n=t[e];let s;if("string"==typeof n)h.push([e,n]),s=l;else{const{clear:t,from:r,to:o}=n,a=(0,i._T)(n,["clear","from","to"]);r&&u.push([e,r]),t&&d.push(e),s=Object.assign(Object.assign({},l),a),h.push([e,o])}const{delay:r,duration:o,timingFunction:a}=s;return`${e} ${o}ms ${r}ms ${a}`})).join(",")]),new Promise((t=>{let n=h.length-1;u.length&&c(e,(()=>{u.forEach((([e,t])=>s[e]=t))})),e.addEventListener(r,(function i(o){o.target===e&&("propertyName"in o&&--n>0||(e.removeEventListener(r,i),d.forEach((e=>s[e]="")),t()))})),h.forEach((([e,t])=>s[e]=t))}))}function c(e,t){const{style:n}=e;n[o]="none",t(),e.getBoundingClientRect(),n[o]=""}function d(e,t,n={}){if(!e)return t(),Promise.resolve();const{extraProps:i,transistHeight:s=!0,transistWidth:r=!1}=n,a=e.clientHeight,d=e.clientWidth,u=e.style,h=i?Object.assign({},i):{};c(e,(function(){u.height="",u.width="",u[o]="none",t()}));const p=e.clientHeight,m=e.clientWidth;return s&&a!==p&&(h.height={clear:!0,from:`${a}px`,to:`${p}px`}),r&&d!==m&&(h.width={clear:!0,from:`${d}px`,to:`${m}px`}),Object.keys(h).length?l(e,h,n):Promise.resolve()}},7579:function(e,t,n){n.d(t,{oG:function(){return v},sE:function(){return _},mS:function(){return b}});var i=n(2593),s=n(2122),r=n(4292),o=n(8941);const a=[],l={};let c=!1,d=!1;function u({addedNodes:e,removedNodes:t}){(0,i.PZ)(e).forEach((e=>(0,i.nn)(e,p))),(0,i.PZ)(t).forEach((e=>(0,i.nn)(e,m)))}function h({target:e}){(0,i.kK)(e)&&p(e)}function p(e){let t=e.__weViews;const n=t?Object.keys(t):[];for(let i=0;i<e.classList.length;i++){const s=e.classList[i];if(!(s in l))continue;const o=n.indexOf(s);if(-1===o){const n=l[s];c=!0,t=t||(e.__weViews={}),t[s]=new n({el:e}),d&&r.E.read((()=>{f(e,"onMeasure"),f(e,"onScroll")}))}else n.splice(o,1)}if(t&&n.length)for(let e=0;e<n.length;e++){const i=n[e];t[i].onDispose(),c=!0,delete t[i]}}function m(e){const t=e.__weViews;if(t){c=!0,e.__weViews=void 0;for(const e in t)t[e].onDispose()}}function f(e,t){const n=e.__weViews;if(n)for(const e in n){const i=n[e],s=i[t]();"function"==typeof s&&r.E.writes.push(s.bind(i))}}function g(e){c?(c=!1,a.length=0,(0,i.nn)(document.body,(t=>{t.__weViews&&a.push(t),f(t,e)}
1))):a.forEach((t=>f(t,e)))}function w(e){let t=!1;return function(){t||(t=!0,r.E.read((()=>{t=!1,g(e)})))}}function v(e,t=document.body){if(t===document.body)return g(e);(0,i.wV)(t).reverse().forEach((t=>f(t,e))),(0,i.nn)(t,(t=>f(t,e)))}function _(e,t){const n=[];return(0,i.nn)(e,(e=>{if(e.__weViews)for(const i in e.__weViews){const s=e.__weViews[i];t(s,i)&&n.push(s)}})),n}function b(e){for(const t in e){const n=e[t],i=`we${(0,o.Ps)(t)}`;n.prototype.className=i,l[i]=n}d&&(0,i.nn)(document.body,p)}r.E.read((function(){(0,s.on)(window,"load resize",w("onMeasure")),(0,s.on)(window,"scroll",w("onScroll"),{capture:!0}),new MutationObserver((e=>e.forEach(u))).observe(document,{childList:!0,subtree:!0}),new MutationObserver((e=>e.forEach(h))).observe(document,{attributes:!0,attributeFilter:["class"],subtree:!0}),document.body&&((0,i.nn)(document.body,p),d=!0,v("onMeasure"),v("onScroll"))}))},1121:function(e,t,n){n.d(t,{G7:function(){return c},I_:function(){return d},XC:function(){return u},Xe:function(){return p}});var i=n(655),s=n(2593),r=n(8116),o=n(7579),a=n(4292),l=n(2122);class c{constructor(e={}){this._listeners=null;const{className:t}=this;let{el:n}=e;if(n)n.classList.contains(t)||n.classList.add(t);else{const{appendTo:i,tagName:s="div",template:o}=e;n=document.createElement(s),n.className=(0,r.AK)(t,e.className),o&&(n.innerHTML=o),i&&i.append(n)}(n.__weViews||(n.__weViews={}))[t]=this,this.el=n}addListener(e,t,n={}){var{target:s}=n,r=(0,i._T)(n,["target"]);const o=this._listeners||(this._listeners=[]),a=(0,l.on)(s||this.el,e,t,Object.assign({scope:this},r));return o.push(a),a}addListeners(e){for(let t in e){const n=e[t],{type:s}=n,r=(0,i._T)(n,["type"]);(Array.isArray(s)?s:[s]).forEach((e=>this.addListener(e,this[t],r)))}}child(e,t){return this.children(e,t).shift()||null}children(e,t){return this.findAll(e).map((e=>p(e,t))).filter((e=>!!e))}find(e){return this.el.querySelector(e)}findAll(e){return Array.prototype.slice.call(this.el.querySelectorAll(e))}onDispose(){this.removeListener()}onMeasure(){}onScroll(){}parent(e,t){const n=this.el.closest(e);return n?p(n,t):null}remove(){(0,s.Od)(this.el)}removeListener(e){const{_listeners:t}=this;e?(e(),this._listeners=t?t.filter((t=>t!==e)):null):(this._listeners=null,t&&t.forEach((e=>e())))}trigger(e,t){(0,l.X$)(this.el,e,t)}triggerUpdate(e){a.E.read((()=>{(0,o.oG)(e,this.el)}))}}function d(e,t){const n=[];return(0,s.nn)(e,(e=>{const i=p(e,t);i&&n.push(i)})),n}function u(e){return(0,s.dx)(e).reduce(((t,n)=>n===e?t:[...t,...h(n)]),[])}function h(e){const t=e.__weViews||{};return Object.keys(t).map((e=>t[e]))}function p(e,t){return h(e).find((e=>e instanceof t))||null}},655:function(e,t,n){n.d(t,{_T:function(){return i},mG:function(){return s}});function i(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(n[i[s]]=e[i[s]])}return n}function s(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))}Object.create;Object.create}},function(e){var t;t=8196,e(e.s=t)}]);

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.