!function(t,e){var s=function(t){var e={};function s(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=t,s.c=e,s.d=function(t,e,n){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)s.d(n,i,function(e){return t[e]}.bind(null,i));return n},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=310)}({248:function(t,e){t.exports='
×





'},249:function(t,e){t.exports=' '},310:function(t,e,s){"use strict";s.r(e),s.d(e,"ThemeSettings",function(){return p});var n=s(311),i=(s.n(n),s(248)),a=s.n(i),r=s(249),o=s.n(r),l=s(38),c=s.n(l);function d(t,e){for(var s=0;s1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(this._hasControls("themes")){var r=this._getThemeByName(t);if(r){this.settings.theme=r,i&&this._setSetting("Theme",t);var o=this.pathResolver(this.settings.themesPath+this.settings.cssFilenamePattern.replace("%name%",t+(this.settings.material?"-material":"")));this._loadStylesheets((e={},s=o,n=document.querySelector(".theme-settings-theme-css"),s in e?Object.defineProperty(e,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[s]=n,e),a||function(){}),i&&this.settings.onSettingsChange.call(this,this.settings)}}}},{key:"setLayoutPosition",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutPosition")&&("static"!==t&&"static-offcanvas"!==t&&"fixed"!==t&&"fixed-offcanvas"!==t||(this.settings.layoutPosition=t,e&&this._setSetting("LayoutPosition",t),window.layoutHelpers.setPosition("fixed"===t||"fixed-offcanvas"===t,"static-offcanvas"===t||"fixed-offcanvas"===t),e&&this.settings.onSettingsChange.call(this,this.settings)))}},{key:"setLayoutNavbarFixed",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutNavbarFixed")&&(this.settings.layoutNavbarFixed=t,e&&this._setSetting("FixedNavbar",t),window.layoutHelpers.setNavbarFixed(t),e&&this.settings.onSettingsChange.call(this,this.settings))}},{key:"setLayoutFooterFixed",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutFooterFixed")&&(this.settings.layoutFooterFixed=t,e&&this._setSetting("FixedFooter",t),window.layoutHelpers.setFooterFixed(t),e&&this.settings.onSettingsChange.call(this,this.settings))}},{key:"setLayoutReversed",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._hasControls("layoutReversed")&&(this.settings.layoutReversed=t,e&&this._setSetting("LayoutReversed",t),window.layoutHelpers.setReversed(t),e&&this.settings.onSettingsChange.call(this,this.settings))}},{key:"setNavbarBg",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;if(this._hasControls("navbarBg")&&-1!==this.settings.navbarBgs.indexOf(t)){this.settings.navbarBg=t,e&&this._setSetting("NavbarBg",t);var n=s.querySelector(".layout-navbar.navbar, .layout-navbar .navbar");if(n){n.className=n.className.replace(/^bg\-[^ ]+| bg\-[^ ]+/gi,""),n.classList.remove("navbar-light"),n.classList.remove("navbar-dark");var i=t.split(" ");n.classList.add("bg-".concat(i[0]));for(var a=1,r=i.length;a1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;if(this._hasControls("sidenavBg")&&-1!==this.settings.sidenavBgs.indexOf(t)){this.settings.sidenavBg=t,e&&this._setSetting("SidenavBg",t);var n=s.querySelector(".layout-sidenav.sidenav, .layout-sidenav .sidenav, .layout-sidenav-horizontal.sidenav, .layout-sidenav-horizontal .sidenav");if(n){n.className=n.className.replace(/^bg\-[^ ]+| bg\-[^ ]+/gi,""),n.classList.remove("sidenav-light"),n.classList.remove("sidenav-dark");var i=t.split(" ");n.classList.contains("sidenav-horizontal")&&((i=i.join(" ").replace(" sidenav-dark","").replace(" sidenav-light","").split(" "))[0]=i[0].replace(/-darke?r?$/,"")),n.classList.add("bg-".concat(i[0]));for(var a=1,r=i.length;a1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;if(this._hasControls("footerBg")&&-1!==this.settings.footerBgs.indexOf(t)){this.settings.footerBg=t,e&&this._setSetting("FooterBg",t);var n=s.querySelector(".layout-footer.footer, .layout-footer .footer");if(n){n.className=n.className.replace(/^bg\-[^ ]+| bg\-[^ ]+/gi,""),n.classList.remove("footer-light"),n.classList.remove("footer-dark");var i=t.split(" ");n.classList.add("bg-".concat(i[0]));for(var a=1,r=i.length;a1&&void 0!==arguments[1]&&arguments[1];if(e!==this.settings.lang||n){if(!t.LANGUAGES[e])throw new Error('Language "'.concat(e,'" not found!'));var i=t.LANGUAGES[e];["panel_header","rtl_switcher","material_switcher","layout_header","layout_static","layout_offcanvas","layout_fixed","layout_fixed_offcanvas","layout_navbar_swicher","layout_footer_swicher","layout_reversed_swicher","navbar_bg_header","sidenav_bg_header","footer_bg_header","theme_header"].forEach(function(t){var e=s.container.querySelector(".theme-settings-t-".concat(t));e&&(e.textContent=i[t])});for(var a=i.themes||{},r=this.container.querySelectorAll(".theme-settings-theme-item")||[],o=0,l=r.length;o0&&void 0!==arguments[0]?arguments[0]:document;this.setNavbarBg(this.settings.navbarBg,!1,t)}},{key:"updateSidenavBg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;this.setSidenavBg(this.settings.sidenavBg,!1,t)}},{key:"updateFooterBg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;this.setFooterBg(this.settings.footerBg,!1,t)}},{key:"clearLocalStorage",value:function(){this._ssr||(this._setSetting("Theme",""),this._setSetting("Rtl",""),this._setSetting("Material",""),this._setSetting("LayoutReversed",""),this._setSetting("FixedNavbar",""),this._setSetting("FixedFooter",""),this._setSetting("LayoutPosition",""),this._setSetting("NavbarBg",""),this._setSetting("SidenavBg",""),this._setSetting("FooterBg",""))}},{key:"destroy",value:function(){this._ssr||(this._cleanup(),this.settings=null,this.container.parentNode.removeChild(this.container),this.container=null)}},{key:"_loadSettings",value:function(){var t,e=document.documentElement.classList,s=this._getSetting("Rtl"),n=this._getSetting("Material"),i=this._getSetting("LayoutReversed"),a=this._getSetting("FixedNavbar"),r=this._getSetting("FixedFooter"),o=this._getSetting("NavbarBg"),l=this._getSetting("SidenavBg"),c=this._getSetting("FooterBg"),d=this._getSetting("LayoutPosition");t=""!==d&&-1!==["static","static-offcanvas","fixed","fixed-offcanvas"].indexOf(d)?d:e.contains("layout-offcanvas")?"static-offcanvas":e.contains("layout-fixed")?"fixed":e.contains("layout-fixed-offcanvas")?"fixed-offcanvas":"static",this.settings.rtl=""!==s?"true"===s:"rtl"===document.documentElement.getAttribute("dir"),this.settings.material=""!==n?"true"===n:e.contains("material-style"),this.settings.layoutPosition=t,this.settings.layoutReversed=""!==i?"true"===i:e.contains("layout-reversed"),this.settings.layoutNavbarFixed=""!==a?"true"===a:e.contains("layout-navbar-fixed"),this.settings.layoutFooterFixed=""!==r?"true"===r:e.contains("layout-footer-fixed"),this.settings.navbarBg=-1!==this.settings.navbarBgs.indexOf(o)?o:this.settings.defaultNavbarBg,this.settings.sidenavBg=-1!==this.settings.sidenavBgs.indexOf(l)?l:this.settings.defaultSidenavBg,this.settings.footerBg=-1!==this.settings.footerBgs.indexOf(c)?c:this.settings.defaultFooterBg,this.settings.theme=this._getThemeByName(this._getSetting("Theme"),!0),this._hasControls("rtl")||(this.settings.rtl="rtl"===document.documentElement.getAttribute("dir")),this._hasControls("material")||(this.settings.material=e.contains("material-style")),this._hasControls("layoutPosition")||(this.settings.layoutPosition=null),this._hasControls("layoutReversed")||(this.settings.layoutReversed=null),this._hasControls("layoutNavbarFixed")||(this.settings.layoutNavbarFixed=null),this._hasControls("layoutFooterFixed")||(this.settings.layoutFooterFixed=null),this._hasControls("navbarBg")||(this.settings.navbarBg=null),this._hasControls("sidenavBg")||(this.settings.sidenavBg=null),this._hasControls("footerBg")||(this.settings.footerBg=null),this._hasControls("themes")||(this.settings.theme=null)}},{key:"_setup",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;this._cleanup(),this.container=this._getElementFromString(a.a);var s=this.container.querySelector(".theme-settings-open-btn"),n=function(){t.container.classList.add("theme-settings-open"),t.update(),t._updateInterval&&clearInterval(t._updateInterval),t._updateInterval=setInterval(function(){t.update()},1e3)};s.addEventListener("click",n),this._listeners.push([s,"click",n]);var i=this.container.querySelector(".theme-settings-close-btn"),r=function(){t.container.classList.remove("theme-settings-open"),t._updateInterval&&(clearInterval(t._updateInterval),t._updateInterval=null)};i.addEventListener("click",r),this._listeners.push([i,"click",r]);var l=this.container.querySelector(".theme-settings-rtl");if(this._hasControls("rtl")){var d=l.querySelector("input");this.settings.rtl&&d.setAttribute("checked","checked");var h=function(e){t._loadingState(!0),t.setRtl(e.target.checked)};d.addEventListener("change",h),this._listeners.push([d,"change",h])}else l.parentNode.removeChild(l);var u=this.container.querySelector(".theme-settings-material");if(this._hasControls("material")){var g=u.querySelector("input");this.settings.material&&g.setAttribute("checked","checked");var v=function(e){t._loadingState(!0),t.setMaterial(e.target.checked)};g.addEventListener("change",v),this._listeners.push([g,"change",v])}else u.parentNode.removeChild(u);var f=this.container.querySelector(".theme-settings-layout");if(this._hasControls("layoutPosition layoutNavbarFixed layoutFooterFixed layoutReversed",!0)){var m=this.container.querySelector(".theme-settings-layoutPosition");if(this._hasControls("layoutPosition")){this._controls.layoutPosition=m.querySelector("select"),this._controls.layoutPosition.value=this.settings.layoutPosition;var p=function(e){return t.setLayoutPosition(e.target.value)};this._controls.layoutPosition.addEventListener("change",p),this._listeners.push([this._controls.layoutPosition,"change",p])}else m.parentNode.removeChild(m);if(this._controls.layoutNavbarFixedW=this.container.querySelector(".theme-settings-layoutNavbarFixed"),this._hasControls("layoutNavbarFixed")){this._controls.layoutNavbarFixed=this._controls.layoutNavbarFixedW.querySelector("input"),this.settings.layoutNavbarFixed&&this._controls.layoutNavbarFixed.setAttribute("checked","checked");var b=function(e){return t.setLayoutNavbarFixed(e.target.checked)};this._controls.layoutNavbarFixed.addEventListener("change",b),this._listeners.push([this._controls.layoutNavbarFixed,"change",b])}else this._controls.layoutNavbarFixedW.parentNode.removeChild(this._controls.layoutNavbarFixedW);if(this._controls.layoutFooterFixedW=this.container.querySelector(".theme-settings-layoutFooterFixed"),this._hasControls("layoutFooterFixed")){this._controls.layoutFooterFixed=this._controls.layoutFooterFixedW.querySelector("input"),this.settings.layoutFooterFixed&&this._controls.layoutFooterFixed.setAttribute("checked","checked");var y=function(e){return t.setLayoutFooterFixed(e.target.checked)};this._controls.layoutFooterFixed.addEventListener("change",y),this._listeners.push([this._controls.layoutFooterFixed,"change",y])}else this._controls.layoutFooterFixedW.parentNode.removeChild(this._controls.layoutFooterFixedW);if(this._controls.layoutReversedW=this.container.querySelector(".theme-settings-layoutReversed"),this._hasControls("layoutReversed")){this._controls.layoutReversed=this._controls.layoutReversedW.querySelector("input"),this.settings.layoutReversed&&this._controls.layoutReversed.setAttribute("checked","checked");var _=function(e){return t.setLayoutReversed(e.target.checked)};this._controls.layoutReversed.addEventListener("change",_),this._listeners.push([this._controls.layoutReversed,"change",_])}else this._controls.layoutReversedW.parentNode.removeChild(this._controls.layoutReversedW)}else f.parentNode.removeChild(f);var x=this.container.querySelector(".theme-settings-navbarBg");this._hasControls("navbarBg")?(this._controls.navbarBgWInner=x.querySelector(".theme-settings-navbarBg-inner"),this.settings.navbarBgs.forEach(function(e){var s=t._getElementFromString(c.a),n=s.querySelector("input");s.classList.add("bg-".concat(e.split(" ")[0])),n.name="theme-settings-navbarBg-input",n.value=e,t.settings.navbarBg===e&&(n.setAttribute("checked","checked"),s.classList.add("active"));var i=function(e){for(var s=t._controls.navbarBgWInner.querySelectorAll(".theme-settings-bg-item"),n=0,i=s.length;n\n \n \n ');var i=function(e){t._loading||(t._loading=!0,t._loadingState(!0,!0),t.setTheme(e.target.value,!0,function(){t._loading=!1,t._loadingState(!1,!0)}))};n.addEventListener("change",i),t._listeners.push([n,"change",i]),B.appendChild(s)})}else S.parentNode.removeChild(S);this.setLang(this.settings.lang,!0),e===document?e.body?e.body.appendChild(this.container):window.addEventListener("DOMContentLoaded",function(){return e.body.appendChild(t.container)}):e.appendChild(this.container)}},{key:"_initDirection",value:function(){this._hasControls("rtl")&&document.documentElement.setAttribute("dir",this.settings.rtl?"rtl":"ltr")}},{key:"_initStyle",value:function(){if(this._hasControls("material")){var t=this.settings.material;this._insertStylesheet("theme-settings-bootstrap-css",this.pathResolver(this.settings.cssPath+this.settings.cssFilenamePattern.replace("%name%","bootstrap"+(t?"-material":"")))),this._insertStylesheet("theme-settings-appwork-css",this.pathResolver(this.settings.cssPath+this.settings.cssFilenamePattern.replace("%name%","appwork"+(t?"-material":"")))),this._insertStylesheet("theme-settings-colors-css",this.pathResolver(this.settings.cssPath+this.settings.cssFilenamePattern.replace("%name%","colors"+(t?"-material":"")))),document.documentElement.classList.remove(t?"default-style":"material-style"),document.documentElement.classList.add(t?"material-style":"default-style"),t&&window.attachMaterialRipple&&(document.body?window.attachMaterialRipple():window.addEventListener("DOMContentLoaded",function(){return window.attachMaterialRipple()}))}}},{key:"_initTheme",value:function(){this._hasControls("themes")&&this._insertStylesheet("theme-settings-theme-css",this.pathResolver(this.settings.themesPath+this.settings.cssFilenamePattern.replace("%name%",this.settings.theme.name+(this.settings.material?"-material":""))))}},{key:"_insertStylesheet",value:function(t,e){var s=document.querySelector(".".concat(t));if("number"==typeof document.documentMode&&document.documentMode<11){if(!s)return;if(e===s.getAttribute("href"))return;var n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.className=t,n.setAttribute("href",e),s.parentNode.insertBefore(n,s.nextSibling)}else document.write(''));s.parentNode.removeChild(s)}},{key:"_loadStylesheets",value:function(t,e){var s=Object.keys(t),n=s.length,i=0;function a(t,e,s){var n=document.createElement("link");n.setAttribute("href",t),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.className=e.className;var i,a,r="sheet"in n?"sheet":"styleSheet",o="sheet"in n?"cssRules":"rules";i=setTimeout(function(){clearInterval(a),clearTimeout(i),e.parentNode.removeChild(n),s(!1,t)},15e3),a=setInterval(function(){try{n[r]&&n[r][o].length&&(clearInterval(a),clearTimeout(i),e.parentNode.removeChild(e),s(!0))}catch(t){console.error(t)}},10),e.parentNode.insertBefore(n,e.nextSibling)}for(var r=0;r=n&&e()})}},{key:"_loadingState",value:function(t,e){this.container.classList[t?"add":"remove"]("theme-settings-loading".concat(e?"-theme":""))}},{key:"_waitForNavs",value:function(){var t=this;this._addObserver(".layout-navbar.navbar, .layout-navbar .navbar",function(t){return t&&t.classList&&t.classList.contains("layout-navbar")&&(t.classList.contains("navbar")||t.querySelector(".navbar"))},function(){return t.setNavbarBg(t.settings.navbarBg,!1)}),this._addObserver(".layout-sidenav.sidenav, .layout-sidenav .sidenav, .layout-sidenav-horizontal.sidenav, .layout-sidenav-horizontal .sidenav",function(t){return t&&t.classList&&(t.classList.contains("layout-sidenav")||t.classList.contains("layout-sidenav-horizontal"))&&(t.classList.contains("sidenav")||t.querySelector(".sidenav"))},function(){return t.setSidenavBg(t.settings.sidenavBg,!1)}),this._addObserver(".layout-footer.footer, .layout-footer .footer",function(t){return t&&t.classList&&t.classList.contains("layout-footer")&&(t.classList.contains("footer")||t.querySelector(".footer"))},function(){return t.setFooterBg(t.settings.footerBg,!1)}),!document.body&&(this._observers&&this._observers.length||this._intervals&&this._intervals.length)&&window.addEventListener("load",function e(){t._clearObservers(),t.setNavbarBg(t.settings.navbarBg,!1),t.setSidenavBg(t.settings.sidenavBg,!1),t.setFooterBg(t.settings.footerBg,!1),window.removeEventListener("load",e)})}},{key:"_addObserver",value:function(t,e,s){var n,i,a=this;this._observers||(this._observers=[]),this._intervals||(this._intervals=[]),document.querySelector(t)?s.call(this):document.body||("undefined"!=typeof MutationObserver?(n=new MutationObserver(function(t){t.forEach(function(t){if(t.addedNodes)for(var i=0;i1&&void 0!==arguments[1]&&arguments[1];return t.split(" ").reduce(function(t,n){return-1!==e.settings.controls.indexOf(n)?(s||!1!==t)&&(t=!0):s&&!0===t||(t=!1),t},null)}},{key:"_getDefaultTheme",value:function(t){var e;if(!(e="string"==typeof t?this._getThemeByName(t,!1):this.settings.availableThemes[t]))throw new Error('Theme ID "'.concat(t,'" not found!'));return e}},{key:"_getThemeByName",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=this.settings.availableThemes,n=0,i=s.length;n=0&&d.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=s.nc;n&&(t.attrs.nonce=n)}return p(e,t.attrs),v(t,e),e}function p(t,e){Object.keys(e).forEach(function(s){t.setAttribute(s,e[s])})}function b(t,e){var s,n,i,a;if(e.transform&&t.css){if(!(a="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=a}if(e.singleton){var r=c++;s=l||(l=m(e)),n=x.bind(null,s,r,!1),i=x.bind(null,s,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(s=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",p(e,t.attrs),v(t,e),e}(e),n=function(t,e,s){var n=s.css,i=s.sourceMap,a=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||a)&&(n=h(n)),i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var r=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(r),o&&URL.revokeObjectURL(o)}.bind(null,s,e),i=function(){f(s),s.href&&URL.revokeObjectURL(s.href)}):(s=m(e),n=function(t,e){var s=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=s;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(s))}}.bind(null,s),i=function(){f(s)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var s=g(t,e);return u(s,e),function(t){for(var n=[],i=0;i