tweb/public/554.7d2b9a9c4096088ac7e1.ch...

2 lines
9.5 KiB
JavaScript
Raw Normal View History

2022-03-25 11:56:31 +01:00
"use strict";(this.webpackChunktweb=this.webpackChunktweb||[]).push([[554],{9818:(t,e,n)=>{n.d(e,{Z:()=>h});var i=n(410),s=n(4762),o=n(5003),a=n(8799),r=n(3910),d=n(3444),c=n(1655);const l=new class{constructor(){this.navigations=[],this.id=Date.now(),this.manual=!1,this.log=(0,o.kg)("NC"),this.debug=!0,this.currentHash=window.location.hash;let t=!1;if(window.addEventListener("popstate",(e=>{if(this.debug&&this.log("popstate",e,t),window.location.hash!==this.currentHash)return this.onHashChange&&this.onHashChange(),void this.replaceState();if(this.currentHash=window.location.hash,e.state!==this.id)return void this.pushState();const n=this.navigations.pop();n?(this.manual=!t,this.handleItem(n)):this.pushState()})),window.addEventListener("keydown",(t=>{const e=this.navigations[this.navigations.length-1];e&&("Escape"!==t.key||e.onEscape&&!e.onEscape()||((0,r.d)(t),this.back(e.type)))}),{capture:!0,passive:!1}),s.IS_MOBILE_SAFARI){const e={passive:!0};window.addEventListener("touchstart",(e=>{e.touches.length>1||(this.debug&&this.log("touchstart"),(0,d.Z)(e)&&(t=!0,window.addEventListener("touchend",(()=>{setTimeout((()=>{t=!1}),100)}),{passive:!0,once:!0})))}),e)}history.scrollRestoration="manual",this.pushState()}handleItem(t){const e=t.onPop(!!this.manual&&void 0);this.debug&&this.log("popstate, navigation:",t,this.navigations),!1===e?this.pushItem(t):t.noBlurOnPop||(0,a.Z)(),this.manual=!1}findItemByType(t){for(let e=this.navigations.length-1;e>=0;--e){const n=this.navigations[e];if(n.type===t)return{item:n,index:e}}}back(t){if(t){const e=this.findItemByType(t);if(e)return void this.backByItem(e.item,e.index)}history.back()}backByItem(t,e=this.navigations.indexOf(t)){this.manual=!0,this.navigations.splice(e,1),this.handleItem(t)}onItemAdded(t){this.debug&&this.log("pushstate",t,this.navigations),t.noHistory||this.pushState()}pushItem(t){this.navigations.push(t),this.onItemAdded(t)}unshiftItem(t){this.navigations.unshift(t),this.onItemAdded(t)}pushState(){this.manual=!1,history.pushState(this.id,"")}replaceState(){history.replaceState(this.id,"",location.origin+location.pathname)}removeItem(t){t&&(0,c.Z)(this.navigations,t)}removeByType(t,e=!1){for(let n=this.navigations.length-1;n>=0&&(this.navigations[n].type!==t||(this.navigations.splice(n,1),!e));--n);}};i.GO.appNavigationController=l;const h=l},4494:(t,e,n)=>{n.d(e,{Z:()=>o});var i=n(4727),s=n(1405);const o=(t,e={})=>{const n=document.createElement(e.asDiv?"div":"button");return n.className=t+(e.icon?" tgico-"+e.icon:""),e.noRipple||(e.rippleSquare&&n.classList.add("rp-square"),(0,s.ripple)(n)),e.onlyMobile&&n.classList.add("only-handhelds"),e.disabled&&n.setAttribute("disabled","true"),e.text&&n.append((0,i.i18n)(e.text)),n}},6858:(t,e,n)=>{n.d(e,{Eo:()=>I,UR:()=>v,YP:()=>E,oy:()=>L,px:()=>u,s3:()=>S,y7:()=>h});var i=n(410),s=n(3910),o=n(2738),a=n(4755),r=n(5432),d=n(4762),c=n(3512),l=n(9818);function h(t,e=!1){const n='\n <svg xmlns="http://www.w3.org/2000/svg" class="preloader-circular" viewBox="25 25 50 50">\n <circle class="preloader-path" cx="50" cy="50" r="20" fill="none" stroke-miterlimit="10"/>\n </svg>';if(e){const e=document.createElement("div");return e.classList.add("preloader"),e.innerHTML=n,t&&t.appendChild(e),e}return t.insertAdjacentHTML("beforeend",n),t.lastElementChild}function u(t,e="check"){return t.classList.remove("tgico-"+e),t.disabled=!0,h(t),()=>{t.innerHTML="",t.classList.add("tgico-"+e),t.removeAttribute("disabled")}}i.GO.putPreloader=h;let p=t=>{let e=g.getBoundingClientRect(),{clientX:n,clientY:i}=t,s=n>=e.right?n-e.right:e.left-n,o=i>=e.bottom?i-e.bottom:e.top-i;(s>=100||o>=100)&&v()};const m=t=>{v()},v=()=>{g&&(g.classList.remove("active"),g.parentElement.classList.remove("menu-open"),f&&f.remove(),g=null,c.default.dispatchEvent("context_menu_toggle",!1)),w&&(w(),w=null),r.IS_TOUCH_SUPPORTED||(window.removeEventListener("mousemove",p),window.removeEventListener("contextmenu",m)),document.removeEventListener(o.pf,m),d.IS_MOBILE_SAFARI||l.Z.removeByType("menu")};window.addEventListener("resize",(()=>{g&&v()}));let g=null,w=null,f=nu
//# sourceMappingURL=554.7d2b9a9c4096088ac7e1.chunk.js.map