PageSourceSearch

https://www.kolitzheim.de/_/scripts/rgElements/HtmlElements.js

js kolitzheim.de collected 2026-10-02 21:30:37 UTC 50,507 bytes, 5 lines download raw bytes

vendor: 6,726 bytes, lines 1-4
1!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var s in n)("object"==typeof exports?exports:e)[s]=n[s]}}(self,()=>(()=>{var e={947(){
2/*! (c) Andrea Giammarchi @webreflection ISC */
3!function(){"use strict";var e=function(e,t){var n=function(e){for(var t=0,n=e.length;t<n;t++)s(e[t])},s=function(e){var t=e.target,n=e.attributeName,s=e.oldValue;t.attributeChangedCallback(n,s,t.getAttribute(n))};return function(a,i){var r=a.constructor.observedAttributes;return r&&e(i).then(function(){new t(n).observe(a,{attributes:!0,attributeOldValue:!0,attributeFilter:r});for(var e=0,i=r.length;e<i;e++)a.hasAttribute(r[e])&&s({target:a,attributeName:r[e],oldValue:null})}),a}};function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function n(e,n){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!s){if(Array.isArray(e)||(s=function(e,n){if(e){if("string"==typeof e)return t(e,n);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){s&&(e=s);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){s=s.call(e)},n:function(){var e=s.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==s.return||s.return()}finally{if(l)throw r}}}}
4/*! (c) Andrea Giammarchi - ISC */var s=!0,a=!1,i="querySelectorAll",r="querySelectorAll",o=self,l=o.document,c=o.Element,d=o.MutationObserver,h=o.Set,u=o.WeakMap,m=function(e){return r in e},p=[].filter,f=function(e){var t=new u,o=function(n,s){var a;if(s)for(var i,r=function(e){return e.matches||e.webkitMatchesSelector||e.msMatchesSelector}(n),o=0,l=g.length;o<l;o++)r.call(n,i=g[o])&&(t.has(n)||t.set(n,new h),(a=t.get(n)).has(i)||(a.add(i),e.handle(n,s,i)));else t.has(n)&&(a=t.get(n),t.delete(n),a.forEach(function(t){e.handle(n,s,t)}))},f=function(e){for(var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0,s=e.length;n<s;n++)o(e[n],t)},g=e.query,v=e.root||l,y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:MutationObserver,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:["*"],l=function t(a,r,o,l,c,d){var h,u=n(a);try{for(u.s();!(h=u.n()).done;){var m=h.value;(d||i in m)&&(c?o.has(m)||(o.add(m),l.delete(m),e(m,c)):l.has(m)||(l.add(m),o.delete(m),e(m,c)),d||t(m[i](r),r,o,l,c,s))}}catch(e){u.e(e)}finally{u.f()}},c=new r(function(e){if(o.length){var t,i=o.join(","),r=new Set,c=new Set,d=n(e);try{for(d.s();!(t=d.n()).done;){var h=t.value,u=h.addedNodes,m=h.removedNodes;l(m,i,r,c,a,a),l(u,i,r,c,s,a)}}catch(e){d.e(e)}finally{d.f()}}}),d=c.observe;return(c.observe=function(e){return d.call(c,e,{subtree:s,childList:s})})(t),c}(o,v,d,g),b=c.prototype.attachShadow;return b&&(c.prototype.attachShadow=function(e){var t=b.call(this,e);return y.observe(t),t}),g.length&&f(v[r](g)),{drop:function(e){for(var n=0,s=e.length;n<s;n++)t.delete(e[n])},flush:function(){for(var e=y.takeRecords(),t=0,n=e.length;t<n;t++)f(p.call(e[t].removedNodes,m),!1),f(p.call(e[t].addedNodes,m),!0)},observer:y,parse:f}},g=self,v=g.document,y=g.Map,b=g.MutationObserver,w=g.Object,E=g.Set,S=g.WeakMap,k=g.Element,$=g.HTMLElement,L=g.Node,A=g.Error,C=g.TypeError,x=g.Reflect,T=w.defineProperty,N=w.keys,_=w.getOwnPropertyNames,D=w.setPrototypeOf,R=!self.customElements,q=function(e){for(var t=N(e),n=[],s=new E,a=t.length,i=0;i<a;i++){n[i]=e[t[i]];try{delete e[t[i]]}catch(e){s.add(i)}}return function(){for(var i=0;i<a;i++)s.has(i)||(e[t[i]]=n[i])}};if(R){var P=function(){var e=this.constructor;if(!j.has(e))throw new C("Illegal constructor");var t=j.get(e);if(I)return z(I,t);var n=M.call(v,t);return z(D(n,e.prototype),t)},M=v.createElement,j=new y,O=new y,H=new y,F=new y,B=[],V=f({query:B,handle:function(e,t,n){var s=H.get(n);if(t&&!s.isPrototypeOf(e)){var a=q(e);I=D(e,s);try{new s.constructor}finally{I=null,a()}}var i="".concat(t?"":"dis","connectedCallback");i in s&&e[i]()}}).parse,I=null,U=function(e){if(!O.has(e)){var t,n=new Promise(function(e){t=e});O.set(e,{$:n,_:t})}return O.get(e).$},z=e(U,b);self.customElements={define:function(e,t){if(F.has(e))throw new A('the name "'.concat(e,'" has already been used with this registry'));j.set(t,e),H.set(e,t.prototype),F.set(e,t),B.push(e),U(e).then(function(){V(v.querySelectorAll(e))}),O.get(e)._(t)},get:function(e){return F.get(e)},whenDefined:U},T(P.prototype=$.prototype,"constructor",{value:P}),self.HTMLElement=P,v.createElement=function(e,t){var n=t&&t.is,s=n?F.get(n):F.get(e);return s?new s:M.call(v,e)},"isConnected"in L.prototype||T(L.prototype,"isConnected",{configurable:!0,get:function(){return!(this.ownerDocument.compareDocumentPosition(this)&this.DOCUMENT_POSITION_DISCONNECTED)}})}else if(R=!self.customElements.get("extends-br"))try{var Y=function e(){return self.Reflect.construct(HTMLBRElement,[],e)};Y.prototype=HTMLLIElement.prototype;var W="extends-br";self.customElements.define("extends-br",Y,{extends:"br"}),R=v.createElement("br",{is:W}).outerHTML.indexOf(W)<0;var G=self.customElements,K=G.get,Q=G.whenDefined;self.customElements.whenDefined=function(e){var t=this;return Q.call(this,e).then(function(n){return n||K.call(t,e)})}}catch(e){}if(R){var X=function(e){var t=ie.get(e);pe(t.querySelectorAll(this),e.isConnected)},Z=self.customElements,J=v.createElement,ee=Z.define,te=Z.get,ne=Z.upgrade,se=x||{construct:function(e){return e.call(this)}},ae=se.construct,ie=new S,re=new E,oe=new y,le=new y,ce=new y,de=new y,he=[],ue=[],me=function(e){return de.get(e)||te.call(Z,e)},pe=f({query:ue,handle:function(e,t,n){var s=ce.get(n);if(t&&!s.isPrototypeOf(e)){var a=q(e);be=D(e,s);try{new s.constructor}finally{be=null,a()}}var i="".concat(t?"":"dis","connectedCallback");i in s&&e[i]()}}).parse,fe=f({query:he,handle:function(e,t){ie.has(e)&&(t?re.add(e):re.delete(e),ue.length&&X.call(ue,e))}}).parse,ge=k.prototype.attachShadow;ge&&(k.prototype.attachShadow=function(e){var t=ge.call(this,e);return ie.set(this,t),t});var ve=function(e){if(!le.has(e)){var t,n=new Promise(function(e){t=e});le.set(e,{$:n,_:t})}return le.get(e).$},ye=e(ve,b),be=null;_(self).filter(function(e){return/^HTML.*Element$/.test(e)}
4).forEach(function(e){var t=self[e];function n(){var e=this.constructor;if(!oe.has(e))throw new C("Illegal constructor");var n=oe.get(e),s=n.is,a=n.tag;if(s){if(be)return ye(be,s);var i=J.call(v,a);return i.setAttribute("is",s),ye(D(i,e.prototype),s)}return ae.call(this,t,[],e)}T(n.prototype=t.prototype,"constructor",{value:n}),T(self,e,{value:n})}),v.createElement=function(e,t){var n=t&&t.is;if(n){var s=de.get(n);if(s&&oe.get(s).tag===e)return new s}var a=J.call(v,e);return n&&a.setAttribute("is",n),a},Z.get=me,Z.whenDefined=ve,Z.upgrade=function(e){var t=e.getAttribute("is");if(t){var n=de.get(t);if(n)return void ye(D(e,n.prototype),t)}ne.call(Z,e)},Z.define=function(e,t,n){if(me(e))throw new A("'".concat(e,"' has already been defined as a custom element"));var s,a=n&&n.extends;oe.set(t,a?{is:e,tag:a}:{is:"",tag:e}),a?(s="".concat(a,'[is="').concat(e,'"]'),ce.set(s,t.prototype),de.set(e,t),ue.push(s)):(ee.apply(Z,arguments),he.push(s=e)),ve(e).then(function(){a?(pe(v.querySelectorAll(s)),re.forEach(X,[s])):fe(v.querySelectorAll(s))}),le.get(e)._(t)}}}()}};const t={};function n(s){const a=t[s];if(void 0!==a)return a.exports;const i=t[s]={exports:{}};return e[s](i,i.exports,n),i.exports}let s={};return(()=>{"use strict";n(947);const e={d:function(e,t){let n=this.getDate();return n=n<10?"0"+n:String(n),e=e.replace(t,n)},D:function(e,t){return e},j:function(e,t){return e},l:function(e,t){return e},S:function(e,t){return e},w:function(e,t){return e},z:function(e,t){return e},W:function(e,t){return e},F:function(e,t){return e},m:function(e,t){let n=this.getMonth()+1;return n=n<10?"0"+n:String(n),e=e.replace(t,n)},M:function(e,t){return e},n:function(e,t){return e},t:function(e,t){return e},L:function(e,t){return e},Y:function(e,t){return e=e.replace(t,this.getFullYear())},y:function(e,t){return e},a:function(e,t){return e},A:function(e,t){return e},g:function(e,t){return e},G:function(e,t){return e},h:function(e,t){return e},H:function(e,t){let n=this.getHours();return n=n<10?"0"+n:String(n),e=e.replace(t,n)},i:function(e,t){let n=this.getMinutes();return n=n<10?"0"+n:String(n),e=e.replace(t,n)},s:function(e,t){let n=this.getSeconds();return n=n<10?"0"+n:String(n),e=e.replace(t,n)},O:function(e,t){return e},T:function(e,t){return e},Z:function(e,t){return e}};class t extends HTMLScriptElement{constructor(){super(),this.data=new Map}connectedCallback(){if(!this.childElementCount){const e=(new DOMParser).parseFromString(this.textContent,"text/html");this.textContent="",e.body.childNodes.forEach(function(e){this.append(e)}.bind(this))}const e=function(e,t){for(const t of e)document.dispatchEvent(new CustomEvent("rgdata:dataChanged",{detail:{el:this,mutation:t}}))}.bind(this);new MutationObserver(e).observe(this,{attributes:!0,childList:!0,subtree:!0}),document.dispatchEvent(new CustomEvent("rgdata:dataAdded",{detail:{el:this}}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("rgdata:dataDeleted",{detail:{el:this}}))}}const s=new Map,a=document.querySelector('script[src*="HtmlElements.js"]'),i=a?a.src:document.location.origin+"/_/scripts/rgElements/HtmlElements.js",r=new URL(i).pathname.split("/");r.pop(),r.includes("src")&&r.push("Elements");class o extends HTMLElement{rootpath="";form=null;constructor(){super()}setUpElement(){this.rootpath=r.join("/")+(this.constructor.name?"/"+this.constructor.name:""),this.form=this.closest("form"),this.setAttribute("data-rgelement",!0)}setupComplete(){document.dispatchEvent(new CustomEvent("rgelement:initialized",{detail:{element:this}}))}getStyles(e,t){e=e.replace(".","\\.");let n="";return[...document.styleSheets].map(s=>{try{let a=s.cssRules||s.rules,i=new RegExp(e,"g");[...a].map(s=>{let a="";s.selectorText&&s.selectorText.match(e)?(s.selectorText=s.selectorText.replace(i,t),n+=s.cssText):s.media&&s.cssRules&&([...s.cssRules].map(n=>{n.selectorText&&n.selectorText.match(e)&&(n.selectorText=n.selectorText.replace(i,t),a+=n.cssText)}),""!==a&&(n=n+" @media "+s.conditionText+"{"+a+"} "))})}catch(e){}}),n}copyStyles(e){let t="";return[...document.styleSheets].map(n=>{try{[...n.cssRules||n.rules].map(n=>{let s="";n.selectorText&&n.selectorText.match(e)?t+=n.cssText:n.media&&n.cssRules&&([...n.cssRules].map(t=>{t.selectorText&&t.selectorText.match(e)&&(s+=t.cssText)}),""!==s&&(t=t+" @media "+n.conditionText+"{"+s+"} "))})}catch(e){}}),t}parseAttribute(e){if(void 0!==e){if("false"===e||"true"===e)return JSON.parse(e);if(e.match(/^\d+$/))return Number(e)}return e}loadFile(e,t,n,a=null){if(!["css","js"].includes(n))return void console.error('unsupportet type: "'+n+'"');null===a&&(a=document.querySelector("head"));let i=s.get(a);i||(i=new Map,s.set(a,i));let r=i.get(e);if(r||(r={loading:!0,callbacks:[]},i.set(e,r),s.set(a,i)),r.loading||"function"!=typeof t){let o;switch(r.callbacks.push(t),i.set(e,r),s.set(a,i),n){case"css":o='link[href="'+e+'"]';break;case"js":o='script[src="'+e+'"]'}if(!a.querySelector(o)){let t;switch(n){case"css":t=document.createElement("link"),t.setAttribute("rel","stylesheet"),t.setAttribute("href",e);break;case"js":t=document.createElement("script"),t.setAttribute("src",e)}t.onload=function(){r.loading=!1,i.set(e,r),s.set(a,i),r.callbacks.forEach(e
4=>{"function"==typeof e&&e()})},a?.append(t)}}else t()}loadCss(e,t){this.loadFile(e,t,"css")}loadScript(e,t){this.loadFile(e,t,"js")}loadFiles(e,t){let n=[];for(const t of e)n.push(new Promise((e,n)=>{this.loadFile(t.path,()=>{"callback"in t&&t.callback(),"followup"in t?this.loadFiles(t.followup,()=>{e()}):e()},t.type,t.insertPoint??null)}));Promise.all(n).then(()=>{t()})}extendApi(e){import(this.rootpath+e).then(function(e){this.dispatchEvent(new CustomEvent(this.tagName.toLowerCase()+":apiloaded",{detail:{el:this,defaultExport:e}}))}.bind(this))}}const l=function(){document.querySelectorAll("*[data-toggle="+this.tagName.toLowerCase()+"]").forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),this.toggleSearch()}.bind(this)),e.addEventListener("keydown",function(e){32===e.keyCode&&(e.preventDefault(),this.toggleSearch())}.bind(this))}.bind(this)),this.dialog?.addEventListener("click",function(e){e.target===this.dialog&&this.hideSearch()}.bind(this))},c=function(){const e=this.getStyles(".rg-search",".rg-search__wrapper"),t=new URLSearchParams(window.location.search),n=Object.fromEntries(t.entries()),s=this.redirectTarget||"/suche",a=this.rootpath+"/css/rg-search.css",i=s,r=this.dataset.placeholder||"Suchbegriff eingeben!",o=function(e){const t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"};return e.replace(/[&<>"'/]/gi,e=>t[e])}(decodeURIComponent(n.q||"")),l=this.dataset.customcss?`<link rel="stylesheet" href="${this.dataset.customcss}">`:"",c=""!==e?"<style>"+e+"</style>":"",d=this.dataset.buttonText||"SUCHE",h=!0===this.parseAttribute(this.dataset.usedialog);return`\n                <link rel="stylesheet" href="${a}">\n                ${l}\n                ${c}\n                ${!1===this.parseAttribute(this.dataset.showtoggle)?"":`<a href="${s}" class="rg-search__trigger" part="trigger"><li class="fas fa-search" aria-hidden="true"></li></a>`}\n                ${!0===h?'<dialog class="rg-search__dialog"><div class="rg-search__overlayclose" part="overlayclose"></div>':'<div class="rg-search__overlay" part="overlay">\n                    <div class="rg-search__overlayclose" part="overlayclose"></div>\n                </div>'}\n                <div class="rg-search__wrapper" part="wrapper">\n                    <div class="rg-search__description" part="description"><slot name="description"></slot></div>\n                    <form class="rg-search__form" method="GET" action="${i}" part="form">\n                        <input class="rg-search__input" name="q" placeholder="${r}" required="required" value="${o}" part="input" role="searchbox" aria-label="Suchfeld">\n                        <button class="rg-search__button" type="submit" part="button" aria-label="Suche starten"><slot name="buttonContent">${d}</slot></button>\n                    </form>\n                </div>\n                ${!0===h?"</dialog>":""}\n            `},d={wrapper:"rg-search__typeahead",input:"tt-input",hint:"tt-hint",highlight:"tt-highlight",list:"tt-list",hide:"tt-hide",show:"tt-show",selected:"tt-selected",header:"tt-header",footer:"tt-footer",loader:"tt-loader",suggestion:["tt-suggestion"],group:"tt-group",empty:"tt-empty",notFound:"tt-notFound"};let h=!1;const u=function(e){if(!this.offcanvasNav){let e=this.defaultConfig;for(const[t,n]of Object.entries(this.defaultConfig)){let n=this.getAttribute("data-"+t);n&&(e[t]=this.parseAttribute(n))}if(this.toggleButton.addEventListener("click",function(){let e=new KeyboardEvent("keydown",{keyCode:13});this.toggleButton.dispatchEvent(e)}.bind(this)),e.customToggle=this.toggleButton,"megamenu"===this.mode&&(e.closeOnClick=!1),this.offcanvasNav=new hcOffcanvasNav("dropdown"===this.mode?this.firstElementChild:this.wrapper.firstElementChild,e),"offcanvas"===this.mode&&this.offcanvasNav.setAttribute("inert",""),this.templates.forEac
4h(e=>{let t=document.querySelector(e.dataset.target),n=this.parseAttribute(e.dataset.dynamic);if(t){const s=document.createElement("div"),a=e.dataset.operation||"prepend";if(e.dataset.wrapperclass&&s.classList.add(e.dataset.wrapperclass),s.append(e.content),"append"===a)t.append(s);else t.prepend(s);n&&(this.offcanvasNav.on("open.level",m.bind(e,t,s)),this.offcanvasNav.on("close.level",m.bind(e,t,s)))}}),!1===e.closeOpenLevels)try{let e=this.offcanvasNav.querySelector('a[href^="'+document.location.pathname.split("/").filter(e=>!e.match(".html")).join("/")+'"]')?.closest("*[data-index]"),t=Number(e?.getAttribute("data-level")),n=Number(e?.getAttribute("data-index"));t&&window.setTimeout(function(){this.offcanvasNav.style.display="none",this.offcanvasNav.open(t,n),this.offcanvasNav.close(),this.offcanvasNav.style.display=""}.bind(this),100)}catch(e){}this.offcanvasNav.on("open",()=>{"offcanvas"===this.mode&&this.offcanvasNav.removeAttribute("inert"),!1===e.closeOpenLevels?this.offcanvasNav.querySelector('a[href="'+document.location.pathname+'"], a[href="'+document.location.pathname+'index.html"]')?.focus():this.offcanvasNav.querySelector("ul a")?.focus(),document.dispatchEvent(new CustomEvent("rgnav:open",{detail:{el:this}}))}),this.offcanvasNav.on("close",()=>{"offcanvas"===this.mode&&this.offcanvasNav.setAttribute("inert","")}),document.querySelectorAll("a[data-containeronly]").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();let n=e.closest("li").querySelector("*[data-index]"),s=Number(n?.getAttribute("data-level")),a=Number(n?.getAttribute("data-index"));s&&window.setTimeout(function(){this.offcanvasNav.open(s,a)}.bind(this),100)})}),document.dispatchEvent(new CustomEvent("rgnav:setupComplete",{detail:{el:this}}))}},m=function(e,t,n,s){let a=e.querySelector('div[data-level="'+n.data.currentLevel+'"][data-index="'+n.data.currentIndex+'"]'),i=a?a.querySelector(this.dataset.target):e;switch(this.dataset.operation){case"append":i.append(t);break;case"prepend":i.prepend(t)}},p=function(){let e=document.createElement("nav");e.classList.add("megamenu"),e.setAttribute("role","navigation");const t=this.querySelector("ul");return e.append(f.call(this,t,0)),e},f=function(e,t,n=null){const s=document.createElement("ul");if(s.classList.add("megamenu--level"+t),t>0?(s.classList.add("megamenu__submenu"),s.setAttribute("role","menu"),s.setAttribute("aria-hidden","true")):(s.classList.add("megamenu__mainmenu"),s.setAttribute("role","menubar")),s.setAttribute("data-level",t),n){const e=document.createElement("li");e.setAttribute("role","menuitem");const t=n.cloneNode(!0);t.classList.add("megamenu__entry"),t.innerHTML="Übersicht",e.append(t),s.append(e)}return Array.from(e.children).forEach(e=>{let n=null;const a=document.createElement("li");a.setAttribute("role","menuitem");let i=null!==e.querySelector(":scope > ul");Array.from(e.children).forEach(r=>{if("UL"!==r.tagName){let e;i?(r.dataset.containeronly||(n=r),e=document.createElement("span"),e.innerHTML=r.innerHTML):e=r.cloneNode(!0),e.setAttribute("tabindex",0),e.classList.add("megamenu__entry"),"SPAN"===e.tagName&&(a.setAttribute("aria-haspopup","menu"),a.setAttribute("aria-expanded","false")),a.append(e)}else{a.classList.add("megamenu--has_submenu"),i=!0;const o=document.createElement("i");o.classList.add("megamenu__arrow"),o.classList.add("fas"),o.setAttribute("tabindex",0),a.append(o);const l=f.call(this,r,t+1,n);if(0===t&&e.dataset.extracontentid){const t=this.querySelector('.megamenu-extracontent-template[data-extracontentid="'+e.dataset.extracontentid+'"]');if(t){const e=document.createElement("li");e.classList.add("megamenu__extracontent-container");const n=t.cloneNode(!0);n.classList.remove("megamenu-extracontent-template"),e.append(n),s.append(e),l.append(e)}}a.append(l)}}),i&&(a.addEventListener("click",e=>g.call(this,e)),a.addEventListener("keydown",e=>{"Enter"===e.code&&g.call(this,e),"Escape"===e.code&&document.querySelectorAll(".megamenu--level0 > li.megamenu--open").forEach(e=>{e.dispatchEvent(new PointerEvent("pointerdown",{view:window,bubbles:!1,cancelable:!0}))})})),s.append(a)}),s},g=function(e){if("pointerdown"===e.type&&"mouse"===e.pointerType&&1!==e.buttons)return;if("A"===e.target.tagName)return;const t=e.currentTarget;let n;const s=t.querySelector("ul");if(t.classList.contains("megamenu--open"))n="closing",v.call(this,t),t.parentNode.classList.contains("megamenu--level0")&&document.querySelectorAll(".megamenu__overlay").forEach(e
4=>e.remove());else{n="opening";if((t&&t.parentNode&&[...t.parentNode.children].filter(e=>e!==t&&e.classList.contains("megamenu--open"))).forEach(e=>{v.call(this,e)}),t.classList.add("megamenu--open"),t.setAttribute("aria-expanded","true"),s.setAttribute("aria-hidden","false"),t.parentNode.classList.contains("megamenu--level0")){document.querySelectorAll(".megamenu__overlay").forEach(e=>e.remove());const e=document.createElement("div");e.classList.add("megamenu__overlay"),t.append(e)}}this.megamenuSubmenuSizes.has(s)||(this.megamenuSubmenuSizes.set(s,s.offsetHeight),s.classList.add("megamenu--expand-submenu"));const a=parseInt(getComputedStyle(t).getPropertyValue("--megamenu-padding")),i=t.parentNode.classList.contains("megamenu--level0")?t.querySelector(".megamenu__extracontent-container"):t.closest(".megamenu--level1")?.querySelector(".megamenu__extracontent-container");let r="";if(i&&(r=i.offsetHeight),t.parentNode.classList.contains("megamenu--level0"))t.querySelector(".megamenu--level1").style.minHeight=r+2*a+"px";else{"opening"===n&&this.megamenuOpenSubmenus.set(s,s);let e=r;this.megamenuOpenSubmenus.forEach(t=>{this.megamenuSubmenuSizes.get(t)>e&&(e=this.megamenuSubmenuSizes.get(t))}),t.closest(".megamenu--level1").offsetHeight<e+2*a?t.closest(".megamenu--level1").style.minHeight=e+2*a+"px":window.setTimeout(()=>{t.closest(".megamenu--level1").style.minHeight=e+2*a+"px"},300)}e.cancelBubble=!0},v=function(e){e.classList.remove("megamenu--open"),e.querySelector("ul").setAttribute("aria-hidden","true"),e.setAttribute("aria-expanded","false"),this.megamenuOpenSubmenus.delete(e.querySelector("ul")),e.querySelectorAll(".megamenu--open").forEach(e=>{e.classList.remove("megamenu--open"),e.setAttribute("aria-expanded","false"),e.querySelector("ul").setAttribute("aria-hidden","true"),this.megamenuOpenSubmenus.delete(e.querySelector("ul"))})},y=function(){if(!this.querySelectorAll("ul").length)return;let e=this.getStyles(".rg-nav",".rg-nav-wrapper");const t=e.match(/color:(.*?);/);t&&(e=e+" .hc-nav-trigger {--nav-trigger-color: "+t[1]+"}");const n=document.createElement("style");n.innerHTML=e,this.templates=this.querySelectorAll("template");const s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href","https://cdn.regiogate.net/hc-offcanvas-nav/hc-offcanvas-nav.css");let a="";this.dataset.customcss&&(a=document.createElement("link"),a.setAttribute("rel","stylesheet"),a.setAttribute("href",this.dataset.customcss)),this.dataset.mode?this.mode=this.dataset.mode:this.mode="offcanvas";const i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",this.rootpath+"/css/rg-nav.css");const r=document.createElement("script");this.wrapper=document.createElement("div");const o=document.createElement("slot");switch(this.wrapper.append(o),this.wrapper.setAttribute("class","rg-nav-wrapper"),this.classList.forEach(e=>{"rg-nav"!==e&&this.wrapper.classList.add(e)}),void 0!==this.dataset.customtoggle?this.toggleButton=document.querySelector(this.dataset.customtoggle):(this.toggleButton=document.createElement("a"),this.toggleButton.setAttribute("href","#"),this.toggleButton.setAttribute("class","hc-nav-trigger fas fa-bars"),this.toggleButton.append(document.createElement("span"))),document.head.append(s,a),this.mode){case"dropdown":break;case"megamenu":this.wrapper.innerHTML=this.innerHTML+this.wrapper.innerHTML;const e=p.call(this);this.innerHTML="",this.append(e);break;default:this.wrapper.innerHTML=this.innerHTML+this.wrapper.innerHTML,this.innerHTML=""}void 0===this.dataset.customtoggle&&this.wrapper.append(this.toggleButton),this.shadowRoot.append(i,n,r,this.wrapper),r.onload=function(){u.call(this),this.style.display="",this.toggleButton.querySelector(".menu-button__icon")&&this.toggleButton.classList.remove("hc-nav-trigger")}.bind(this),r.src="https://cdn.regiogate.net/hc-offcanvas-nav/hc-offcanvas-nav.js",this.setupComplete()};const b=function(e){let t=[];for(const n of e){let e="https://cdn.regiogate.net/flatpickr/dist/plugins";switch(n){case"confirmDate":t.push({path:e+"/confirmDate/confirmDate.js",type:"js",insertPoint:this.shadowRoot}),t.push({path:e+"/confirmDate/confirmDate.css",type:"css",insertPoint:this.shadowRoot});break;case"labelPlugin":t.push({path:e+"/labelPlugin/labelPlugin.js",type:"js",insertPoint:this.shadowRoot});break;case"monthSelect":t.push({path:e+"/monthSelect/index.js",type:"js",insertPoint:this.shadowRoot}),t.push({path:e+"/monthSelect/style.css",type:"css",insertPoint:this.shadowRoot});break;case"weekSelect":t.push({path:e+"/weekSelect/weekSelect.js",type:"js",insertPoint:this.shadowRoot});break;case"minmaxTimePlugin":t.push({path:e+"/minmaxTimePlugin.js",type:"js",insertPoint:this.shadowRoot});break;case"momentPlugin":t.push({path:e+"/momentPlugin.js",type:"js",insertPoint:this.shadowRoot});break;case"rangePlugin":t.push({path:e+"/rangePlugin.js",type:"js",insertPoint:this.shadowRoot});break;case"scrollPlugin":t.push({path:e+"/scrollPlugin.js",type:"js",insertPoint:this.shadowRoot})}}return t},w=function(e,t){const n=new RegExp(t);return null!==e.match(n)},E=function(e){e.preventDefault();let t=Number(this.value),n=Number(this.min),s=Number(this.max),a=Number(this.step);t=e.wheelDeltaY>0?t+a:t-a,t<n?t=Math.floor(s/a)*a:t>s&&(t=n),this.value=t<10?"0"+t:String(t),this.select(),this.focus()},S=new Map([["date","^(\\d{4})-(\\d{2})-(\\d{2})$"],["datetime-local","^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2})$"],["time","^(\\d{2}):(\\d{2}
4)$"],["week","^(\\d{4})-W(\\d{2})$"],["month","^(\\d{4})-(\\d{2})$"]]);function k(e,t){this.addEventListener("rg-map:apiready",function(){"function"==typeof this[t]&&this[t](...e)}.bind(this),{once:!0,passive:!0})}const $={"data-content":null,"data-format":"svg","data-modulesize":5,"data-margin":4},L=function(){const{modulesize:e,margin:t,format:n}=this.dataset;return{modulesize:e?parseInt(e):$["data-modulesize"],margin:t?parseInt(t):$["data-margin"],format:n||$["data-format"]}};let A=!1,C=!1,x={};Date.prototype.format=function(t){if(isNaN(this))return"";for(const[n,s]of Object.entries(e))t=s.call(this,t,n);return t},Date.prototype.clearTime=function(){return new Date(this.toDateString())},Date.parseDateString=function(e){if(!e)return new Date;const t=["123456","12345","123","123456","321456","32145","321","321","123456"];let n=new Date;return[/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2})$/,/^(\d{4})-(\d{2})-(\d{2})$/,/^(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})$/,/^(\d{1,2})[-.,: ](\d{1,2})[-.,: ](\d{2,4})[-.,: ](\d{1,2})[-.,: ](\d{1,2})[-.,: ](\d{1,2})$/,/^(\d{1,2})[-.,: ](\d{1,2})[-.,: ](\d{2,4})[-.,: ](\d{1,2})[-.,: ](\d{1,2})$/,/^(\d{1,2})[-.,: ](\d{1,2})[-.,: ](\d{2,4})$/,/^(\d{2})(\d{2})(\d{2,4})$/,/^(\d{4})-(\d{2})-(\d{2})[\s*]?[A-Za-z]?(\d{2}):(\d{2}):(\d{2})(.*)$/].every((s,a)=>{const i=e.match(s);if(i){let e=[];for(let n=0;n<t[a].length;n++)e[t[a].substring(n,n+1)]=parseInt(i[n+1]);return e[1]<70&&(e[1]+=2e3),e[1]<100&&(e[1]+=1900),e[1]=e[1]??0,e[2]=e[2]??0,e[3]=e[3]??0,e[4]=e[4]??0,e[5]=e[5]??0,e[6]=e[6]??0,n=new Date(e[1],e[2]-1,e[3],e[4],e[5],e[6]),!1}return!0}),n},customElements.define("rg-data",t,{extends:"script"}),customElements.define("rg-search",class extends o{searchPanel=null;searchInput=null;toggleButton=null;internalToggleButton=!0;alwaysOpen=!1;typeAhead=!1;overlayClose=null;overlay=null;dialog=null;isVisible=!1;redirectTarget="/suche";constructor(){super()}connectedCallback(){this.setUpElement(),!this.shadowRoot&&this.attachShadow({mode:"open"}),this.shadowRoot.innerHTML=c.call(this),this.classList.remove(".rg-search"),this.overlay=this.shadowRoot.querySelector(".rg-search__overlay"),this.dialog=this.shadowRoot.querySelector("dialog.rg-search__dialog"),this.overlayClose=this.shadowRoot.querySelector(".rg-search__overlayclose"),this.overlayClose?.addEventListener("click",this.hideSearch.bind(this)),!0===this.parseAttribute(this.dataset.showoverlay)&&this.overlay&&(this.overlay.addEventListener("click",this.hideSearch.bind(this)),!this.dialog&&(this.overlay.style.display="block")),this.searchPanel=this.shadowRoot.querySelector(".rg-search__wrapper"),this.classList.forEach(e=>{"rg-nav"!==e&&this.searchPanel.classList.add(e)}),this.searchInput=this.shadowRoot.querySelector(".rg-search__input"),this.internalToggleButton=!0===this.parseAttribute(this.dataset.showtoggle),this.alwaysOpen=!0===this.parseAttribute(this.dataset.alwaysopen),this.redirectTarget=this.dataset.action||"/suche",this.typeAhead=!0===this.parseAttribute(this.dataset.typeahead),this.typeAhead&&this.setTypeAheadEnabled(!0),this.internalToggleButton?(this.toggleButton=this.shadowRoot.querySelector(".rg-search__trigger"),this.toggleButton.addEventListener("click",function(e){e.preventDefault(),this.toggleSearch()}.bind(this)),!this.dialog&&this.overlay&&(this.overlay.style.display="none"),this.style.display="block"):this.alwaysOpen||(this.style.display="none"),!0!==this.parseAttribute(this.dataset.notoggle)&&("complete"===document.readyState?l.call(this):window.addEventListener("load",l.bind(this))),this.setupComplete(),this.alwaysOpen||document.addEventListener("rgnav:open",this.hideSearch.bind(this)),this.dialog&&this.dialog.addEventListener("close",this.hideSearch.bind(this))}showSearch(){this.isVisible=!0,this.dialog?(this.dialog.showModal(),document.body.style.overflow="hidden",document.body.style.paddingRight="17px"):this.searchPanel.style.display="",document.dispatchEvent(new CustomEvent("rgsearch:show",{detail:{el:this}})),this.internalToggleButton?!this.dialog&&this.overlay&&!0===this.parseAttribute(this.dataset.showoverlay)&&(this.overlay.style.display="block"):this.style.display="block",this.searchInput.focus(),document.querySelectorAll("[data-inert]").forEach(e
4=>e.setAttribute("inert","inert"))}hideSearch(){this.isVisible=!1,this.dialog?(this.dialog.close(),document.body.style.overflow="",document.body.style.paddingRight=""):this.searchPanel.style.display="none",document.dispatchEvent(new CustomEvent("rgsearch:hide",{detail:{el:this}})),this.internalToggleButton?!this.dialog&&this.overlay&&!0===this.parseAttribute(this.dataset.showoverlay)&&(this.overlay.style.display="none"):this.style.display="none",document.querySelectorAll("[data-inert]").forEach(e=>e.removeAttribute("inert"))}toggleSearch(){this.isVisible?this.hideSearch():this.showSearch()}getInputField(){return this.searchInput}setTypeAheadEnabled(e){this.addEventListener("rg-search:apiloaded",function(e){const t=e.detail.defaultExport.default;h=!0;const n=function(e){const t={header:null,footer:null,suggestion:null,group:null,loader:null,notFound:null,empty:null};e.querySelectorAll("template").forEach(e=>{if(e.dataset.for&&t.hasOwnProperty(e.dataset.for)){let n="return `"+e.innerHTML.replace(/{%/g,"${")+"`";switch(e.dataset.for){case"header":case"footer":case"notFound":case"empty":t[e.dataset.for]=new Function("resultSet",n);break;case"suggestion":t[e.dataset.for]=new Function("item","resultSet",n);break;case"group":t[e.dataset.for]=new Function("groupName","resultSet",n);break;case"loader":t[e.dataset.for]=new Function(n)}}});for(const[e,n]of Object.entries(Object.assign({},t)))n||delete t[e];return t}(this);t({input:this.searchInput,templates:n,limit:50,diacritics:!0,source:{remote:{url:"/searchapi?mode=suggest&q=%QUERY",wildcard:"%QUERY",debounce:500,requestOptions:{}}},classNames:d,hooks:{sortByStartingLetter:e=>{}}})}.bind(this)),this.extendApi("/api/rg-search-api.js")}}),customElements.define("rg-nav",class extends o{defaultConfig={width:280,height:"auto",disableAt:!1,pushContent:null,swipeGestures:!0,expanded:!1,position:"right",levelOpen:"overlap",levelSpacing:40,levelTitles:!0,closeOpenLevels:!1,closeActiveLevel:!1,navTitle:null,navClass:"",disableBody:!0,closeOnClick:!0,closeOnEsc:!0,activeToggleClass:null,bodyInsert:"prepend",keepClasses:!0,removeOriginalNav:!1,rtl:!1,insertClose:!0,insertBack:!0,levelTitleAsBack:!0,labelClose:"",labelBack:"Back"};toggleButton=null;wrapper=null;templates=[];mode="default";megamenuSubmenuSizes=new Map;megamenuOpenSubmenus=new Map;constructor(){super()}connectedCallback(){this.setUpElement(),this.offcanvasNav=null,!this.shadowRoot&&this.attachShadow({mode:"open"}),this.style.display="none","complete"===document.readyState?y.call(this):window.addEventListener("load",y.bind(this)),document.addEventListener("rgsearch:show",this.hideNav.bind(this))}showNav(){this.offcanvasNav&&this.offcanvasNav.open(),document.dispatchEvent(new CustomEvent("rgnav:open",{detail:{el:this}}))}hideNav(){this.offcanvasNav&&this.offcanvasNav.close()}toggleNav(){this.offcanvasNav&&(this.offcanvasNav.toggle(),this.offcanvasNav.isOpen()&&document.dispatchEvent(new CustomEvent("rgnav:open",{detail:{el:this}})))}isOpen(){return!!this.offcanvasNav&&this.offcanvasNav.isOpen()}}),customElements.define("rg-datetimepicker",class extends o{$element=null;$hiddenElement=null;datePicker=null;dependent=null;outputFormat=new Map([["date","d.m.Y"],["datetime-local","d.m.Y H:i"],["time","H:i"],["week","\\WW.Y"],["month","m.Y"],["monthview","d.m.Y"]]);inputFormat=new Map([["date","Y-m-d"],["datetime-local","Y-m-dTH:i"],["time","H:i"],["week","Y-\\WW"],["month","Y-m"],["monthview","Y-m-dTH:i"]]);constructor(){super()}connectedCallback(){if(this.setUpElement(),!this.shadowRoot&&this.attachShadow({mode:"open"}),this.style.display="block",this.form&&this.dataset.name?this.$element=this.form.querySelector('*[name="'+this.dataset.name+'"]'):this.dataset.name&&(this.$element=document.querySelector('*[name="'+this.dataset.name+'"]')),!this.$element||"INPUT"!==this.$element.tagName){let e=document.createElement("input");this.$element&&"INPUT"!==this.$element.tagName?this.$element.replaceWith(e):this.shadowRoot.host.parentElement.insertBefore(e,this.shadowRoot.host),this.$element=e}this.type=this.dataset.type||"datetime-local",["date","datetime-local","time","week","month","monthview"].includes(this.type)||(this.t
4ype="datetime-local"),"monthview"===this.type&&(this.dataset.inline="true"),this.dataset.name||(this.dataset.name="date");const e=new URLSearchParams(location.search);e.has(this.dataset.name)&&(this.dataset.value=e.get(this.dataset.name));this.getAttributeNames().filter(e=>e.includes("aria")).forEach(e=>{this.$element.setAttribute(e,this.getAttribute(e))}),this.$element.setAttribute("type",this.dataset.inline?"hidden":this.type);let t=Date.parseDateString(this.dataset.value);this.$element.value=t.format(this.inputFormat.get(this.type)),this.$element.dataset.name=this.dataset.name,this.$element.removeAttribute("name"),this.dataset.required&&this.$element.setAttribute("required","required"),this.dataset.min&&this.$element.setAttribute("min",Date.parseDateString(this.dataset.min).format(this.inputFormat.get(this.type))),this.dataset.max&&this.$element.setAttribute("max",Date.parseDateString(this.dataset.max).format(this.inputFormat.get(this.type))),this.$hiddenElement=document.createElement("input"),this.$hiddenElement.type="hidden",this.$hiddenElement.value=new Date(this.$element.value).format(this.outputFormat.get(this.type)),this.$hiddenElement.setAttribute("name",this.dataset.name),this.shadowRoot.host.parentElement.insertBefore(this.$hiddenElement,this.shadowRoot.host),this.$element.setValue=this.setValue.bind(this),this.$element.getDate=this.getDate.bind(this),this.$element.setOutputFormat=this.setOutputFormat.bind(this),this.setAttribute("aria-hidden","true");let n=!1;this.$element.addEventListener("change",function(e){const t=this.$element.checkValidity();this.$hiddenElement.value=t?new Date(this.$element.value).format(this.outputFormat.get(this.type)):""}.bind(this)),this.$element.addEventListener("pointerdown",e=>{0!==e.pressure&&1===e.width&&(n=!0,e.preventDefault(),document.dispatchEvent(new MouseEvent("mousedown")),this.$element.datePicker.open())}),this.$element.addEventListener("click",function(e){n&&(e.preventDefault(),n=!1)}),this.$element.addEventListener("change",e=>{this.$element.checkValidity()?(this.$element.datePicker.setDate(this.$element.value),document.dispatchEvent(new CustomEvent("rgdatetimepicker:externalChange",{detail:{el:this}}))):this.$element.value=this.$element.datePicker.selectedDates[0].format(this.inputFormat.get(this.type))}),!0===this.parseAttribute(this.dataset.autosubmit)&&this.$element.addEventListener("change",e=>{this.form?.requestSubmit()}),this.$element.addEventListener("keydown",e=>{"Escape"===e.code&&this.$element.datePicker.isOpen&&this.$element.datePicker.close()});let s=[{path:"https://cdn.regiogate.net/flatpickr/dist/flatpickr"+(recon.debugmode?"":".min")+".js",type:"js",followup:[{path:"https://cdn.regiogate.net/flatpickr/dist/l10n/de.js",type:"js",callback:()=>{flatpickr.localize(flatpickr.l10ns.de)}}]},{path:"https://cdn.regiogate.net/flatpickr/dist/flatpickr.min.css",type:"css",insertPoint:this.shadowRoot},{path:"https://cdn.regiogate.net/flatpickr/dist/themes/airbnb.css",type:"css",insertPoint:this.shadowRoot},{path:this.rootpath+"/css/rg-datetimepicker.css",type:"css",insertPoint:this.shadowRoot}],a=[];switch(this.type){case"week":a.push("weekSelect");break;case"month":a.push("monthSelect");break;case"monthview":s.push({path:this.rootpath+"/api/monthview.js",type:"js",insertPoint:this.shadowRoot})}s=s.concat(b.call(this,a)),this.loadFiles(s,()=>{!function(e){let t=[];switch(e.type){case"week":t.push(new weekSelect);break;case"month":t.push(new monthSelectPlugin({dateFormat:"Y-m"}));break;case"monthview":const n=e.dataset.prfx||"ev",s={dateFormat:"Y-m",module:e.dataset.module,prefix:n,entriesPerDay:e.dataset.entriesperday||10,rgDatePicker:e,param:{}};e.querySelectorAll('script[is="rg-data"] param').forEach(e=>{s.param[e.dataset.name]=e.dataset.value}),t.push(new monthViewPlugin(s))}let n=!!e.dataset.enabletime||"datetime-local"===e.type||"time"===e.type,s={appendTo:e.shadowRoot,mode:e.dataset.mode&&["single","multiple","range"].includes(e.dataset.mode)?e.dataset.mode:"single",enableTime:n,time_24hr:!0,plugins:t,weekNumbers:"week"===e.type,noCalendar:"time"===e.type,showMonths:"week"===e.type?1:e.dataset.showmonths?Number(e.dataset.showmonths):1,maxDate:e.dataset.max?Date.parseDateString(e.dataset.max):null,minDate:e.dataset.min?Date.parseDateString(e.dataset.min):null,disableMobile:!0,allowInput:!0,clickOpens:!1,inline:!!e.dataset.inline,position:function(e,t){e.calendarContainer.style.top="0",e.calendarContainer.style.left="0"}.bind(e),onOpen:function(t,s,a){let i=a.calendarContainer.querySelector(".flatpickr_button-container"),r=a.latestSelectedDateObj;if(r&&a.jumpToDate(r,!1),!i&&"time"!==e.type){let t=document.createElement("div"),n="week"===e.type?"Diese Woche":"Heute";t.classList.add("flatpickr_button-container"),t.classList.add("todayButton"),i=document.createElement("button"),i.innerText=n,t.append(i),a.calendarContainer.append(t),i.addEventListener("click",function(){a.jumpToDate(new Date,!1)})}if(n){let e=a.calendarContainer.querySelector(".flatpickr__timelabel-container");if(null===e){const t=a.calendarContainer.querySelector(".flatpickr-time");e=document.createElement("div"),e.classList.add("flatpickr__timelabel-container");const n=document.createElement("div");n.classList.add("flatpickr__timelabel-hour"),n.innerText="Stunden";const s=document.createElement("div");s.classList.add("flatpickr__timelabel-minute"),s.innerText="Minuten",e.appendChild(n),e.appendChild(s),t.insertAdjacentElement("beforebegin",e)}}e.setAttribute("aria-hidden","false"),document.dispatchEvent(new CustomEvent("rgdatetimepicker:open",{detail:{el:this}}))}.bind(e),onClose:function(){e.setAttribute("aria-hidden","true"),document.dispatchEvent(new CustomEvent("rgdatetimepicker:close",{detail:{el:this}}))}.bind(e),onChange:function(){document.dispatchEvent(new CustomEvent("rgdatetimepicker:change",{detail:{el:this}}))}.bind(e),onReady:function(t,n,s){e.$element.type=e.$element._type}.bind(e)};if(!w(e.$element.value,S.get(e.type))){let t=Date.parseDateString(e.dataset.value);isNaN(t)&&(t=new Date),e.$element.setAttribute("value",flatpickr.formatDate(t,e.inputFormat.get(e.type)))}e.$element.datePicker=flatpickr(e.$element,s),e.$element.datePicker.hourElement&&e.$element.datePicker.hourElement.addEventListener("wheel",E),e.$element.datePicker.minuteElement&&e.$element.datePicker.minuteElement.addEventListener("wheel",E),setTimeout(function(){e.form&&e.$element.dataset.name&&e.$element.dataset.name.match("end")&&(e.depen
4dent=e.form.querySelector('input[data-name*="'+e.$element.dataset.name.replace("end","start")+'"]'),e.dependent&&e.dependent.datePicker&&e.dependent!==e.$element&&(e.$element.datePicker.set("minDate",e.dependent.datePicker.selectedDates[0]),e.dependent.datePicker.config.onChange.push(function(t,n,s){let a=t[0],i=e.$element.datePicker.selectedDates[0];e.$element.datePicker.set("minDate",a),a>i&&(e.$element.datePicker.setDate(a),e.$hiddenElement.value=new Date(e.$element.value).format(this.outputFormat.get(this.type)))}.bind(e))))}.bind(e),500)}(this)});const i=document.createElement("style");i.innerHTML=this.copyStyles(".flatpickr"),this.shadowRoot.append(i),this.setupComplete()}setValue(e){const t=Date.parseDateString(e);this.$element.value=t.format(this.inputFormat.get(this.type)),this.$hiddenElement.value=t.format(this.outputFormat.get(this.type))}getDate(){return new Date(this.$element.value)}setOutputFormat(e){this.outputFormat.set(this.type,e),this.$hiddenElement.value=this.$element.getDate().format(this.outputFormat.get(this.type))}}),customElements.define("rg-selectcontent",class extends o{$element=null;$hiddenelement=null;$listelement=null;#e=null;#t=null;#n=!1;#s=null;#a={value:"",displayText:""};#i=0;#r=10;#o=!1;constructor(){super()}connectedCallback(){if(this.setUpElement(),!this.shadowRoot&&this.attachShadow({mode:"open"}),this.style.display="block",this.#e=this.dataset.trtype,this.#t=this.dataset.root,!this.$element){let e=document.createElement("input");e.setAttribute("type","text"),e.setAttribute("value",this.dataset.displayvalue),e.setAttribute("name","livesearch"+this.dataset.name),this.$element=this.shadowRoot.host.parentElement.insertBefore(e,this.shadowRoot.host)}const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",this.rootpath+"/css/rg-selectcontent.css");let t=document.createElement("input");t.setAttribute("type","hidden"),t.setAttribute("name",this.dataset.name),t.setAttribute("value",this.dataset.value),this.$hiddenelement=this.shadowRoot.host.parentElement.insertBefore(t,this.shadowRoot.host);const n=document.createElement("style");n.innerHTML=this.copyStyles(".selectcontent"),this.shadowRoot.append(e,n),this.$element.addEventListener("keydown",e=>{if(["Enter","NumpadEnter","ArrowUp","ArrowDown"].includes(e.code))return e.preventDefault(),!1}),this.$element.addEventListener("keyup",this.#l.bind(this)),this.$element.addEventListener("click",function(e){this.$listelement&&this.$listelement.hasChildNodes()&&(this.$listelement.style.display="block")}.bind(this)),this.#a.displayText=this.$element.value,this.#a.value=this.$hiddenelement.value,this.$element.addEventListener("blur",function(e){this.#o||(this.$listelement&&(this.$listelement.style.display="none"),""===this.$hiddenelement.value&&(this.$element.value=this.#a.displayText,this.$hiddenelement.value=this.#a.value))}.bind(this)),"object"==typeof recon&&recon.on("categorySelect",function(e){e.contentroot&&e.contentroot[this.$hiddenelement.name]&&(this.#t=e.contentroot[this.$hiddenelement.name])}.bind(this)),this.setupComplete()}static get observedAttributes(){return["data-value","data-displayvalue","data-trtype"]}attributeChangedCallback(e,t,n){this.$element}#c(){let e=this.$element.value.trim(),t=this.#t?"&r="+this.#t:"",n=e.match(/(^\d+)\s+/);return n&&(e=n[1]),`livesearch.js?_func=fndCnt&trcl=${this.#e}&viewmode=list&_trid=-1&start=${this.#i}&limit=${this.#r}&filter=${e}${t}`}#l(e){switch(e.key){case"Escape":this.$listelement&&(this.$listelement.style.display="none");break;case"Enter":case"NumpadEnter":if(this.$listelement&&"block"===this.$listelement.style.display){let e=this.$listelement.querySelector(".active");if(e){let t=new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0});e.dispatchEvent(t)}}break;case"ArrowLeft":case"ArrowRight":break;case"ArrowDown":case"ArrowUp":if(this.$listelement){this.$listelement.style.display="block";let t,n=this.$listelement.querySelector(".active"),s=new MouseEvent("mouseover",{bubbles:!0,cancelable:!0});n?(n.classList.remove("active"),t="ArrowDown"===e.key?n.nextElementSibling||n:n.previousElementSibling||n,t.dispatchEvent(s)):this.$listelement.firstChild.dispatchEvent(s)}break;default:this.$hiddenelement.value="",this.#i=0;let t=this.$element.value.trim();!this.#n&&t.length>=3&&(this.#s&&clearTimeout(this.#s),this.#s=setTimeout(function(){this.#d()}.bind(this),500))}}#d(){this.#n=!0,this.#h(),fetch(this.#c(),{method:"GET",mode:"same-origin",cache:"no-cache",headers:{"X-Requested-With":"XMLHttpRequest"},redirect:"follow"}).then(e=>e.json()).then(function(e){this.#n=!1,this.#u(e),this.#o=!1}
4.bind(this)).catch(e=>{console.error(e)})}#m(){if(!this.$listelement){this.$listelement=document.createElement("div"),this.$listelement.classList.add("rg-selectcontent"),this.shadowRoot.append(this.$listelement);let e=this.$element.getBoundingClientRect();this.$listelement.style.minWidth=e.width+"px"}}#h(){this.#p();let e=document.createElement("div");e.classList.add("rg-selectcontent__loading"),e.innerHTML="<div></div><div></div><div></div><div></div>",this.$listelement.append(e)}#p(){this.#m();let e=this.$listelement.firstChild;for(;e;)this.$listelement.removeChild(e),e=this.$listelement.firstChild}#u(e){this.#m(),this.#p();for(const[t,n]of Object.entries(e.contents)){let e=document.createElement("div");e.classList.add("rg-selectcontent__listelement"),e.innerHTML=n.title,e.setAttribute("data-id",n.id),e.setAttribute("data-title",n.title),this.$listelement.append(e),e.addEventListener("pointerdown",function(e){this.$hiddenelement.value=e.target.dataset.id,this.$element.value=e.target.dataset.title,this.#a.value=e.target.dataset.id,this.#a.displayText=e.target.dataset.title,this.$listelement.style.display="none"}.bind(this)),e.addEventListener("mouseover",function(e){this.classList.add("active")}),e.addEventListener("mouseout",function(e){this.classList.remove("active")})}let t=Number(e.totalCount);if(0!==t){if(t>10){let e=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div");n.innerHTML="&lt;&lt;",s.innerHTML="&gt;&gt;",0===this.#i&&n.classList.add("hidden"),this.#i+this.#r>=t&&s.classList.add("hidden"),n.addEventListener("pointerdown",function(e){this.#o=!0,this.#i-=this.#r,this.#i<0&&(this.#i=0),this.#d()}.bind(this)),s.addEventListener("pointerdown",function(e){this.#o=!0,this.#i+=this.#r,this.#d()}.bind(this)),e.append(n,s),e.classList.add("rg-selectcontent__pager"),this.$listelement.append(e)}this.$listelement.style.display="block"}else this.$listelement.style.display="none"}}),customElements.define("rg-map",class extends o{lat=null;lon=null;center=null;zoom=14;maxzoom=null;usecluster=!1;location="";map=null;apiReady=!1;mapReady=!1;config=new Map([["baseLayer",""],["layers",[]],["ApiKeys",new Map],["displayProjection","EPSG:900913"],["nominatimUrls",["https://photon.komoot.io/api/?lang=de&q=","https://nominatim.openstreetmap.org/search?format=geojson&q="]],["lastLocation",""]]);status=new Map([["manipulatingAttributes",!1]]);layers=new Map;features=new Map;static observedAttributes=["data-zoom","data-lat","data-lon","data-center","data-location"];constructor(){super()}connectedCallback(){this.setUpElement(),!this.shadowRoot&&this.attachShadow({mode:"open"}),this.loadCss(this.rootpath+"/css/rg-map.css"),this.addEventListener("rg-map:apiloaded",function(){rgMapApi.assignTo(this),this.dispatchEvent(new CustomEvent(this.tagName.toLowerCase()+":apiready",{detail:{el:this}})),this.setup()}.bind(this)),this.extendApi("/api/rg-map-api.js"),this.setupComplete()}attributeChangedCallback(e,t,n){!this.status.get("manipulatingAttributes")&&this.map&&n&&("data-center"===e&&(this.lat=null,this.lon=null),this.setAttributes())}setAttributes(){k.call(this,arguments,"setAttributes")}addDataLayer(){k.call(this,arguments,"addDataLayer")}zoomToMaxExtent(){k.call(this,arguments,"zoomToMaxExtent")}zoomToLayerExtent(){k.call(this,arguments,"zoomToLayerExtent")}getDataLayer(){k.call(this,arguments,"getDataLayer")}showLocation(){k.call(this,arguments,"showLocation")}}),customElements.define("rg-qrcode",class extends o{constructor(){super()}connectedCallback(){!this.shadowRoot&&this.attachShadow({mode:"open"}),this.setUpElement(),this.addEventListener("rg-qrcode:apiloaded",function(e){Object.assign(x,e.detail.defaultExport.default),A=!0,this.generate()}.bind(this)),this.extendApi("/api/rg-qrcode-api.js"),this.setupComplete()}static get observedAttributes(){return Object.keys($)}attributeChangedCallback(e,t,n){this.dispatchEvent(new CustomEvent(this.tagName.toLowerCase()+":changed",{detail:{el:this,attributeName:e,oldValue:t,newValue:n}})),this.generate()}generate(){if(A&&!C){C=!0;try{if(this.clear(),this.dataset.format||(this.dataset.format="svg"),this.dataset.content)switch(this.dataset.format.toLowerCase()){case"svg":default:this.generateSVG();break;case"png":this.generatePNG();break;case"html":this.generateHTML()}else this.shadowRoot.textContent="qr-code: no data!"}catch(e){console.error(e),this.shadowRoot.textContent="qr-code: error!"}C=!1}}generatePNG(){const e=document.createElement("img");e.src=x.generatePNG(this.dataset.content,L.call(this)),e.setAttribute("part","img"),this.shadowRoot.appendChild(e)}generateHTML(){const e=x.generateHTML(this.dataset.content,L.call(this)).firstChild;e.setAttribute("part","table"),this.shadowRoot.appendChild(e)}generateSVG(){const e=x.generateSVG(this.dataset.content,L.call(this));e.setAttribute("part","svg"),this.shadowRoot.appendChild(e)}clear(){for(;this.shadowRoot.lastChild;)this.shadowRoot.removeChild(this.shadowRoot.lastChild)}}),Object.defineProperty(window.recon,"rgElementsLoaded",{value:!0,writable:!1})})(),s=s.default,s})());
5//# sourceMappingURL=HtmlElements.js.map

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.