From 1c74db30ed29cf56fe92b818fedd22e7e70a9af4 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 21 Jun 2020 18:29:23 +0200 Subject: [PATCH] More layout stuff --- frontend/public/js/dashboard.js | 2 +- frontend/public/js/dashboard.js.map | 2 +- frontend/src/bootstrap.js | 9 ++ .../src/components/charts/DataConverter.vue | 67 +++++++-- .../components/charts/DefaultLineOptions.vue | 127 ++++++++++++++++++ .../src/components/dashboard/MainAccount.vue | 9 +- .../components/dashboard/MainAccountChart.vue | 7 +- public/v2/js/dashboard.js | 2 +- public/v2/js/dashboard.js.map | 2 +- resources/views/v2/layout/default.twig | 3 +- .../views/v2/partials/layout/sidebar.twig | 2 +- 11 files changed, 211 insertions(+), 21 deletions(-) create mode 100644 frontend/src/components/charts/DefaultLineOptions.vue diff --git a/frontend/public/js/dashboard.js b/frontend/public/js/dashboard.js index efb2b0867f..9b3dceb953 100644 --- a/frontend/public/js/dashboard.js +++ b/frontend/public/js/dashboard.js @@ -1,3 +1,3 @@ /*! For license information please see dashboard.js.LICENSE.txt */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{157:function(t,e,s){s(215),t.exports=s(216)},159:function(t,e,s){var n={"./af":11,"./af.js":11,"./ar":12,"./ar-dz":13,"./ar-dz.js":13,"./ar-kw":14,"./ar-kw.js":14,"./ar-ly":15,"./ar-ly.js":15,"./ar-ma":16,"./ar-ma.js":16,"./ar-sa":17,"./ar-sa.js":17,"./ar-tn":18,"./ar-tn.js":18,"./ar.js":12,"./az":19,"./az.js":19,"./be":20,"./be.js":20,"./bg":21,"./bg.js":21,"./bm":22,"./bm.js":22,"./bn":23,"./bn.js":23,"./bo":24,"./bo.js":24,"./br":25,"./br.js":25,"./bs":26,"./bs.js":26,"./ca":27,"./ca.js":27,"./cs":28,"./cs.js":28,"./cv":29,"./cv.js":29,"./cy":30,"./cy.js":30,"./da":31,"./da.js":31,"./de":32,"./de-at":33,"./de-at.js":33,"./de-ch":34,"./de-ch.js":34,"./de.js":32,"./dv":35,"./dv.js":35,"./el":36,"./el.js":36,"./en-au":37,"./en-au.js":37,"./en-ca":38,"./en-ca.js":38,"./en-gb":39,"./en-gb.js":39,"./en-ie":40,"./en-ie.js":40,"./en-il":41,"./en-il.js":41,"./en-in":42,"./en-in.js":42,"./en-nz":43,"./en-nz.js":43,"./en-sg":44,"./en-sg.js":44,"./eo":45,"./eo.js":45,"./es":46,"./es-do":47,"./es-do.js":47,"./es-us":48,"./es-us.js":48,"./es.js":46,"./et":49,"./et.js":49,"./eu":50,"./eu.js":50,"./fa":51,"./fa.js":51,"./fi":52,"./fi.js":52,"./fil":53,"./fil.js":53,"./fo":54,"./fo.js":54,"./fr":55,"./fr-ca":56,"./fr-ca.js":56,"./fr-ch":57,"./fr-ch.js":57,"./fr.js":55,"./fy":58,"./fy.js":58,"./ga":59,"./ga.js":59,"./gd":60,"./gd.js":60,"./gl":61,"./gl.js":61,"./gom-deva":62,"./gom-deva.js":62,"./gom-latn":63,"./gom-latn.js":63,"./gu":64,"./gu.js":64,"./he":65,"./he.js":65,"./hi":66,"./hi.js":66,"./hr":67,"./hr.js":67,"./hu":68,"./hu.js":68,"./hy-am":69,"./hy-am.js":69,"./id":70,"./id.js":70,"./is":71,"./is.js":71,"./it":72,"./it-ch":73,"./it-ch.js":73,"./it.js":72,"./ja":74,"./ja.js":74,"./jv":75,"./jv.js":75,"./ka":76,"./ka.js":76,"./kk":77,"./kk.js":77,"./km":78,"./km.js":78,"./kn":79,"./kn.js":79,"./ko":80,"./ko.js":80,"./ku":81,"./ku.js":81,"./ky":82,"./ky.js":82,"./lb":83,"./lb.js":83,"./lo":84,"./lo.js":84,"./lt":85,"./lt.js":85,"./lv":86,"./lv.js":86,"./me":87,"./me.js":87,"./mi":88,"./mi.js":88,"./mk":89,"./mk.js":89,"./ml":90,"./ml.js":90,"./mn":91,"./mn.js":91,"./mr":92,"./mr.js":92,"./ms":93,"./ms-my":94,"./ms-my.js":94,"./ms.js":93,"./mt":95,"./mt.js":95,"./my":96,"./my.js":96,"./nb":97,"./nb.js":97,"./ne":98,"./ne.js":98,"./nl":99,"./nl-be":100,"./nl-be.js":100,"./nl.js":99,"./nn":101,"./nn.js":101,"./oc-lnc":102,"./oc-lnc.js":102,"./pa-in":103,"./pa-in.js":103,"./pl":104,"./pl.js":104,"./pt":105,"./pt-br":106,"./pt-br.js":106,"./pt.js":105,"./ro":107,"./ro.js":107,"./ru":108,"./ru.js":108,"./sd":109,"./sd.js":109,"./se":110,"./se.js":110,"./si":111,"./si.js":111,"./sk":112,"./sk.js":112,"./sl":113,"./sl.js":113,"./sq":114,"./sq.js":114,"./sr":115,"./sr-cyrl":116,"./sr-cyrl.js":116,"./sr.js":115,"./ss":117,"./ss.js":117,"./sv":118,"./sv.js":118,"./sw":119,"./sw.js":119,"./ta":120,"./ta.js":120,"./te":121,"./te.js":121,"./tet":122,"./tet.js":122,"./tg":123,"./tg.js":123,"./th":124,"./th.js":124,"./tl-ph":125,"./tl-ph.js":125,"./tlh":126,"./tlh.js":126,"./tr":127,"./tr.js":127,"./tzl":128,"./tzl.js":128,"./tzm":129,"./tzm-latn":130,"./tzm-latn.js":130,"./tzm.js":129,"./ug-cn":131,"./ug-cn.js":131,"./uk":132,"./uk.js":132,"./ur":133,"./ur.js":133,"./uz":134,"./uz-latn":135,"./uz-latn.js":135,"./uz.js":134,"./vi":136,"./vi.js":136,"./x-pseudo":137,"./x-pseudo.js":137,"./yo":138,"./yo.js":138,"./zh-cn":139,"./zh-cn.js":139,"./zh-hk":140,"./zh-hk.js":140,"./zh-mo":141,"./zh-mo.js":141,"./zh-tw":142,"./zh-tw.js":142};function a(t){var e=i(t);return s(e)}function i(t){if(!s.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}a.keys=function(){return Object.keys(n)},a.resolve=i,t.exports=a,a.id=159},160:function(t,e,s){"use strict";var n=s(7);s.n(n).a},161:function(t,e,s){(t.exports=s(162)(!1)).push([t.i,"\n.main-account-chart[data-v-14c203c8] {\n}\n\n",""])},165:function(t,e,s){"use strict";s.r(e);var n=s(9),a=s.n(n),i=s(155),o=s(10);window.$=window.jQuery=s(4),window.axios=s(168),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var r=document.head.querySelector('meta[name="csrf-token"]');r?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=r.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"),s(185),s(153),s(188),s(189),window.vuei18n=i.a,window.uiv=o,a.a.use(vuei18n),a.a.use(o),window.Vue=a.a},188:function(t,e,s){var n,a,i,o;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=function(t){"use strict";var e=function(t){var e="ControlSidebar",s="lte.controlsidebar",n=t.fn[e],a={COLLAPSED:"collapsed.lte.controlsidebar",EXPANDED:"expanded.lte.controlsidebar"},i=".control-sidebar",o=".control-sidebar-content",r='[data-widget="control-sidebar"]',l=".main-header",c=".main-footer",d="control-sidebar-animate",h="control-sidebar-open",u="control-sidebar-slide-open",f="layout-fixed",_="layout-navbar-fixed",p="layout-sm-navbar-fixed",g="layout-md-navbar-fixed",m="layout-lg-navbar-fixed",v="layout-xl-navbar-fixed",b="layout-footer-fixed",y="layout-sm-footer-fixed",C="layout-md-footer-fixed",w="layout-lg-footer-fixed",j="layout-xl-footer-fixed",x={controlsidebarSlide:!0,scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l"},E=function(){function e(t,e){this._element=t,this._config=e,this._init()}var n=e.prototype;return n.collapse=function(){this._config.controlsidebarSlide?(t("html").addClass(d),t("body").removeClass(u).delay(300).queue((function(){t(i).hide(),t("html").removeClass(d),t(this).dequeue()}))):t("body").removeClass(h);var e=t.Event(a.COLLAPSED);t(this._element).trigger(e)},n.show=function(){this._config.controlsidebarSlide?(t("html").addClass(d),t(i).show().delay(10).queue((function(){t("body").addClass(u).delay(300).queue((function(){t("html").removeClass(d),t(this).dequeue()})),t(this).dequeue()}))):t("body").addClass(h);var e=t.Event(a.EXPANDED);t(this._element).trigger(e)},n.toggle=function(){t("body").hasClass(h)||t("body").hasClass(u)?this.collapse():this.show()},n._init=function(){var e=this;this._fixHeight(),this._fixScrollHeight(),t(window).resize((function(){e._fixHeight(),e._fixScrollHeight()})),t(window).scroll((function(){(t("body").hasClass(h)||t("body").hasClass(u))&&e._fixScrollHeight()}))},n._fixScrollHeight=function(){var e={scroll:t(document).height(),window:t(window).height(),header:t(l).outerHeight(),footer:t(c).outerHeight()},s=Math.abs(e.window+t(window).scrollTop()-e.scroll),n=t(window).scrollTop(),a=!1,r=!1;t("body").hasClass(f)&&((t("body").hasClass(_)||t("body").hasClass(p)||t("body").hasClass(g)||t("body").hasClass(m)||t("body").hasClass(v))&&"fixed"===t(l).css("position")&&(a=!0),(t("body").hasClass(b)||t("body").hasClass(y)||t("body").hasClass(C)||t("body").hasClass(w)||t("body").hasClass(j))&&"fixed"===t(c).css("position")&&(r=!0),0===n&&0===s?(t(i).css("bottom",e.footer),t(i).css("top",e.header),t(i+", "+i+" "+o).css("height",e.window-(e.header+e.footer))):s<=e.footer?!1===r?(t(i).css("bottom",e.footer-s),t(i+", "+i+" "+o).css("height",e.window-(e.footer-s))):t(i).css("bottom",e.footer):n<=e.header?!1===a?(t(i).css("top",e.header-n),t(i+", "+i+" "+o).css("height",e.window-(e.header-n))):t(i).css("top",e.header):!1===a?(t(i).css("top",0),t(i+", "+i+" "+o).css("height",e.window)):t(i).css("top",e.header))},n._fixHeight=function(){var e=t(window).height(),s=t(l).outerHeight(),n=t(c).outerHeight();if(t("body").hasClass(f)){var a=e-s;(t("body").hasClass(b)||t("body").hasClass(y)||t("body").hasClass(C)||t("body").hasClass(w)||t("body").hasClass(j))&&"fixed"===t(c).css("position")&&(a=e-s-n),t(i+" "+o).css("height",a),void 0!==t.fn.overlayScrollbars&&t(i+" "+o).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}})}},e._jQueryInterface=function(n){return this.each((function(){var a=t(this).data(s),i=t.extend({},x,t(this).data());if(a||(a=new e(this,i),t(this).data(s,a)),"undefined"===a[n])throw new Error(n+" is not a function");a[n]()}))},e}();return t(document).on("click",r,(function(e){e.preventDefault(),E._jQueryInterface.call(t(this),"toggle")})),t.fn[e]=E._jQueryInterface,t.fn[e].Constructor=E,t.fn[e].noConflict=function(){return t.fn[e]=n,E._jQueryInterface},E}(jQuery),s=function(t){var e="Layout",s=t.fn[e],n=".main-header",a=".main-sidebar",i=".main-sidebar .sidebar",o=".content-wrapper",r=".control-sidebar-content",l='[data-widget="control-sidebar"]',c=".main-footer",d='[data-widget="pushmenu"]',h=".login-box",u=".register-box",f="sidebar-focused",_="layout-fixed",p="control-sidebar-slide-open",g="control-sidebar-open",m={scrollbarTheme:"os-theme-light",scrollbarAutoHide:"l",panelAutoHeight:!0,loginRegisterAutoHeight:!0},v=function(){function e(t,e){this._config=e,this._element=t,this._init()}var s=e.prototype;return s.fixLayoutHeight=function(e){void 0===e&&(e=null);var s=0;(t("body").hasClass(p)||t("body").hasClass(g)||"control_sidebar"==e)&&(s=t(r).height());var a={window:t(window).height(),header:0!==t(n).length?t(n).outerHeight():0,footer:0!==t(c).length?t(c).outerHeight():0,sidebar:0!==t(i).length?t(i).height():0,control_sidebar:s},l=this._max(a),d=this._config.panelAutoHeight;!0===d&&(d=0),!1!==d&&(l==a.control_sidebar?t(o).css("min-height",l+d):l==a.window?t(o).css("min-height",l+d-a.header-a.footer):t(o).css("min-height",l+d-a.header),this._isFooterFixed()&&t(o).css("min-height",parseFloat(t(o).css("min-height"))+a.footer)),t("body").hasClass(_)&&(!1!==d&&t(o).css("min-height",l+d-a.header-a.footer),void 0!==t.fn.overlayScrollbars&&t(i).overlayScrollbars({className:this._config.scrollbarTheme,sizeAutoCapable:!0,scrollbars:{autoHide:this._config.scrollbarAutoHide,clickScrolling:!0}}))},s.fixLoginRegisterHeight=function(){if(0===t(h+", "+u).length)t("body, html").css("height","auto");else if(0!==t(h+", "+u).length){var e=t(h+", "+u).height();t("body").css("min-height")!==e&&t("body").css("min-height",e)}},s._init=function(){var e=this;this.fixLayoutHeight(),!0===this._config.loginRegisterAutoHeight?this.fixLoginRegisterHeight():Number.isInteger(this._config.loginRegisterAutoHeight)&&setInterval(this.fixLoginRegisterHeight,this._config.loginRegisterAutoHeight),t(i).on("collapsed.lte.treeview expanded.lte.treeview",(function(){e.fixLayoutHeight()})),t(d).on("collapsed.lte.pushmenu shown.lte.pushmenu",(function(){e.fixLayoutHeight()})),t(l).on("collapsed.lte.controlsidebar",(function(){e.fixLayoutHeight()})).on("expanded.lte.controlsidebar",(function(){e.fixLayoutHeight("control_sidebar")})),t(window).resize((function(){e.fixLayoutHeight()})),setTimeout((function(){t("body.hold-transition").removeClass("hold-transition")}),50)},s._max=function(t){var e=0;return Object.keys(t).forEach((function(s){t[s]>e&&(e=t[s])})),e},s._isFooterFixed=function(){return"fixed"===t(".main-footer").css("position")},e._jQueryInterface=function(s){return void 0===s&&(s=""),this.each((function(){var n=t(this).data("lte.layout"),a=t.extend({},m,t(this).data());n||(n=new e(t(this),a),t(this).data("lte.layout",n)),"init"===s||""===s?n._init():"fixLayoutHeight"!==s&&"fixLoginRegisterHeight"!==s||n[s]()}))},e}();return t(window).on("load",(function(){v._jQueryInterface.call(t("body"))})),t(i+" a").on("focusin",(function(){t(a).addClass(f)})),t(i+" a").on("focusout",(function(){t(a).removeClass(f)})),t.fn[e]=v._jQueryInterface,t.fn[e].Constructor=v,t.fn[e].noConflict=function(){return t.fn[e]=s,v._jQueryInterface},v}(jQuery),n=function(t){var e="PushMenu",s=".lte.pushmenu",n=t.fn[e],a={COLLAPSED:"collapsed"+s,SHOWN:"shown"+s},i={autoCollapseSize:992,enableRemember:!1,noTransitionAfterReload:!0},o='[data-widget="pushmenu"]',r="body",l="#sidebar-overlay",c=".wrapper",d="sidebar-collapse",h="sidebar-open",u="sidebar-closed",f=function(){function e(e,s){this._element=e,this._options=t.extend({},i,s),t(l).length||this._addOverlay(),this._init()}var n=e.prototype;return n.expand=function(){this._options.autoCollapseSize&&t(window).width()<=this._options.autoCollapseSize&&t(r).addClass(h),t(r).removeClass(d).removeClass(u),this._options.enableRemember&&localStorage.setItem("remember"+s,h);var e=t.Event(a.SHOWN);t(this._element).trigger(e)},n.collapse=function(){this._options.autoCollapseSize&&t(window).width()<=this._options.autoCollapseSize&&t(r).removeClass(h).addClass(u),t(r).addClass(d),this._options.enableRemember&&localStorage.setItem("remember"+s,d);var e=t.Event(a.COLLAPSED);t(this._element).trigger(e)},n.toggle=function(){t(r).hasClass(d)?this.expand():this.collapse()},n.autoCollapse=function(e){void 0===e&&(e=!1),this._options.autoCollapseSize&&(t(window).width()<=this._options.autoCollapseSize?t(r).hasClass(h)||this.collapse():1==e&&(t(r).hasClass(h)?t(r).removeClass(h):t(r).hasClass(u)&&this.expand()))},n.remember=function(){this._options.enableRemember&&(localStorage.getItem("remember"+s)==d?this._options.noTransitionAfterReload?t("body").addClass("hold-transition").addClass(d).delay(50).queue((function(){t(this).removeClass("hold-transition"),t(this).dequeue()})):t("body").addClass(d):this._options.noTransitionAfterReload?t("body").addClass("hold-transition").removeClass(d).delay(50).queue((function(){t(this).removeClass("hold-transition"),t(this).dequeue()})):t("body").removeClass(d))},n._init=function(){var e=this;this.remember(),this.autoCollapse(),t(window).resize((function(){e.autoCollapse(!0)}))},n._addOverlay=function(){var e=this,s=t("
",{id:"sidebar-overlay"});s.on("click",(function(){e.collapse()})),t(c).append(s)},e._jQueryInterface=function(s){return this.each((function(){var n=t(this).data("lte.pushmenu"),a=t.extend({},i,t(this).data());n||(n=new e(this,a),t(this).data("lte.pushmenu",n)),"string"==typeof s&&s.match(/collapse|expand|toggle/)&&n[s]()}))},e}();return t(document).on("click",o,(function(e){e.preventDefault();var s=e.currentTarget;"pushmenu"!==t(s).data("widget")&&(s=t(s).closest(o)),f._jQueryInterface.call(t(s),"toggle")})),t(window).on("load",(function(){f._jQueryInterface.call(t(o))})),t.fn[e]=f._jQueryInterface,t.fn[e].Constructor=f,t.fn[e].noConflict=function(){return t.fn[e]=n,f._jQueryInterface},f}(jQuery),a=function(t){var e="Treeview",s=t.fn[e],n={SELECTED:"selected.lte.treeview",EXPANDED:"expanded.lte.treeview",COLLAPSED:"collapsed.lte.treeview",LOAD_DATA_API:"load.lte.treeview"},a=".nav-item",i=".nav-treeview",o=".menu-open",r='[data-widget="treeview"]',l="menu-open",c="sidebar-collapse",d={trigger:r+" .nav-link",animationSpeed:300,accordion:!0,expandSidebar:!1,sidebarButtonSelector:'[data-widget="pushmenu"]'},h=function(){function e(t,e){this._config=e,this._element=t}var s=e.prototype;return s.init=function(){this._setupListeners()},s.expand=function(e,s){var a=this,r=t.Event(n.EXPANDED);if(this._config.accordion){var c=s.siblings(o).first(),d=c.find(i).first();this.collapse(d,c)}e.stop().slideDown(this._config.animationSpeed,(function(){s.addClass(l),t(a._element).trigger(r)})),this._config.expandSidebar&&this._expandSidebar()},s.collapse=function(e,s){var a=this,r=t.Event(n.COLLAPSED);e.stop().slideUp(this._config.animationSpeed,(function(){s.removeClass(l),t(a._element).trigger(r),e.find(o+" > "+i).slideUp(),e.find(o).removeClass(l)}))},s.toggle=function(e){var s=t(e.currentTarget),n=s.parent(),o=n.find("> "+i);if(o.is(i)||(n.is(a)||(o=n.parent().find("> "+i)),o.is(i))){e.preventDefault();var r=s.parents(a).first();r.hasClass(l)?this.collapse(t(o),r):this.expand(t(o),r)}},s._setupListeners=function(){var e=this;t(document).on("click",this._config.trigger,(function(t){e.toggle(t)}))},s._expandSidebar=function(){t("body").hasClass(c)&&t(this._config.sidebarButtonSelector).PushMenu("expand")},e._jQueryInterface=function(s){return this.each((function(){var n=t(this).data("lte.treeview"),a=t.extend({},d,t(this).data());n||(n=new e(t(this),a),t(this).data("lte.treeview",n)),"init"===s&&n[s]()}))},e}();return t(window).on(n.LOAD_DATA_API,(function(){t(r).each((function(){h._jQueryInterface.call(t(this),"init")}))})),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=s,h._jQueryInterface},h}(jQuery),i=function(t){var e="DirectChat",s=t.fn[e],n="toggled{EVENT_KEY}",a='[data-widget="chat-pane-toggle"]',i=".direct-chat",o="direct-chat-contacts-open",r=function(){function e(t,e){this._element=t}return e.prototype.toggle=function(){t(this._element).parents(i).first().toggleClass(o);var e=t.Event(n);t(this._element).trigger(e)},e._jQueryInterface=function(s){return this.each((function(){var n=t(this).data("lte.directchat");n||(n=new e(t(this)),t(this).data("lte.directchat",n)),n[s]()}))},e}();return t(document).on("click",a,(function(e){e&&e.preventDefault(),r._jQueryInterface.call(t(this),"toggle")})),t.fn[e]=r._jQueryInterface,t.fn[e].Constructor=r,t.fn[e].noConflict=function(){return t.fn[e]=s,r._jQueryInterface},r}(jQuery),o=function(t){var e="TodoList",s=t.fn[e],n='[data-widget="todo-list"]',a="done",i={onCheck:function(t){return t},onUnCheck:function(t){return t}},o=function(){function e(t,e){this._config=e,this._element=t,this._init()}var s=e.prototype;return s.toggle=function(e){e.parents("li").toggleClass(a),t(e).prop("checked")?this.check(e):this.unCheck(t(e))},s.check=function(t){this._config.onCheck.call(t)},s.unCheck=function(t){this._config.onUnCheck.call(t)},s._init=function(){var e=this;t(n).find("input:checkbox:checked").parents("li").toggleClass(a),t(n).on("change","input:checkbox",(function(s){e.toggle(t(s.target))}))},e._jQueryInterface=function(s){return this.each((function(){var n=t(this).data("lte.todolist"),a=t.extend({},i,t(this).data());n||(n=new e(t(this),a),t(this).data("lte.todolist",n)),"init"===s&&n[s]()}))},e}();return t(window).on("load",(function(){o._jQueryInterface.call(t(n))})),t.fn[e]=o._jQueryInterface,t.fn[e].Constructor=o,t.fn[e].noConflict=function(){return t.fn[e]=s,o._jQueryInterface},o}(jQuery),l=function(t){var e="CardWidget",s=".lte.cardwidget",n=t.fn[e],a={EXPANDED:"expanded"+s,COLLAPSED:"collapsed"+s,MAXIMIZED:"maximized"+s,MINIMIZED:"minimized"+s,REMOVED:"removed"+s},i="card",o="collapsed-card",l="collapsing-card",c="expanding-card",d="was-collapsed",h="maximized-card",u={DATA_REMOVE:'[data-card-widget="remove"]',DATA_COLLAPSE:'[data-card-widget="collapse"]',DATA_MAXIMIZE:'[data-card-widget="maximize"]',CARD:"."+i,CARD_HEADER:".card-header",CARD_BODY:".card-body",CARD_FOOTER:".card-footer",COLLAPSED:"."+o},f={animationSpeed:"normal",collapseTrigger:u.DATA_COLLAPSE,removeTrigger:u.DATA_REMOVE,maximizeTrigger:u.DATA_MAXIMIZE,collapseIcon:"fa-minus",expandIcon:"fa-plus",maximizeIcon:"fa-expand",minimizeIcon:"fa-compress"},_=function(){function e(e,s){this._element=e,this._parent=e.parents(u.CARD).first(),e.hasClass(i)&&(this._parent=e),this._settings=t.extend({},f,s)}var s=e.prototype;return s.collapse=function(){var e=this;this._parent.addClass(l).children(u.CARD_BODY+", "+u.CARD_FOOTER).slideUp(this._settings.animationSpeed,(function(){e._parent.addClass(o).removeClass(l)})),this._parent.find("> "+u.CARD_HEADER+" "+this._settings.collapseTrigger+" ."+this._settings.collapseIcon).addClass(this._settings.expandIcon).removeClass(this._settings.collapseIcon);var s=t.Event(a.COLLAPSED);this._element.trigger(s,this._parent)},s.expand=function(){var e=this;this._parent.addClass(c).children(u.CARD_BODY+", "+u.CARD_FOOTER).slideDown(this._settings.animationSpeed,(function(){e._parent.removeClass(o).removeClass(c)})),this._parent.find("> "+u.CARD_HEADER+" "+this._settings.collapseTrigger+" ."+this._settings.expandIcon).addClass(this._settings.collapseIcon).removeClass(this._settings.expandIcon);var s=t.Event(a.EXPANDED);this._element.trigger(s,this._parent)},s.remove=function(){this._parent.slideUp();var e=t.Event(a.REMOVED);this._element.trigger(e,this._parent)},s.toggle=function(){this._parent.hasClass(o)?this.expand():this.collapse()},s.maximize=function(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.maximizeIcon).addClass(this._settings.minimizeIcon).removeClass(this._settings.maximizeIcon),this._parent.css({height:this._parent.height(),width:this._parent.width(),transition:"all .15s"}).delay(150).queue((function(){t(this).addClass(h),t("html").addClass(h),t(this).hasClass(o)&&t(this).addClass(d),t(this).dequeue()}));var e=t.Event(a.MAXIMIZED);this._element.trigger(e,this._parent)},s.minimize=function(){this._parent.find(this._settings.maximizeTrigger+" ."+this._settings.minimizeIcon).addClass(this._settings.maximizeIcon).removeClass(this._settings.minimizeIcon),this._parent.css("cssText","height:"+this._parent[0].style.height+" !important;width:"+this._parent[0].style.width+" !important; transition: all .15s;").delay(10).queue((function(){t(this).removeClass(h),t("html").removeClass(h),t(this).css({height:"inherit",width:"inherit"}),t(this).hasClass(d)&&t(this).removeClass(d),t(this).dequeue()}));var e=t.Event(a.MINIMIZED);this._element.trigger(e,this._parent)},s.toggleMaximize=function(){this._parent.hasClass(h)?this.minimize():this.maximize()},s._init=function(e){var s=this;this._parent=e,t(this).find(this._settings.collapseTrigger).click((function(){s.toggle()})),t(this).find(this._settings.maximizeTrigger).click((function(){s.toggleMaximize()})),t(this).find(this._settings.removeTrigger).click((function(){s.remove()}))},e._jQueryInterface=function(s){var n=t(this).data("lte.cardwidget"),a=t.extend({},f,t(this).data());n||(n=new e(t(this),a),t(this).data("lte.cardwidget","string"==typeof s?n:s)),"string"==typeof s&&s.match(/collapse|expand|remove|toggle|maximize|minimize|toggleMaximize/)?n[s]():"object"===r(s)&&n._init(t(this))},e}();return t(document).on("click",u.DATA_COLLAPSE,(function(e){e&&e.preventDefault(),_._jQueryInterface.call(t(this),"toggle")})),t(document).on("click",u.DATA_REMOVE,(function(e){e&&e.preventDefault(),_._jQueryInterface.call(t(this),"remove")})),t(document).on("click",u.DATA_MAXIMIZE,(function(e){e&&e.preventDefault(),_._jQueryInterface.call(t(this),"toggleMaximize")})),t.fn[e]=_._jQueryInterface,t.fn[e].Constructor=_,t.fn[e].noConflict=function(){return t.fn[e]=n,_._jQueryInterface},_}(jQuery),c=function(t){var e="CardRefresh",s=t.fn[e],n={LOADED:"loaded.lte.cardrefresh",OVERLAY_ADDED:"overlay.added.lte.cardrefresh",OVERLAY_REMOVED:"overlay.removed.lte.cardrefresh"},a="card",i={CARD:"."+a,DATA_REFRESH:'[data-card-widget="card-refresh"]'},o={source:"",sourceSelector:"",params:{},trigger:i.DATA_REFRESH,content:".card-body",loadInContent:!0,loadOnInit:!0,responseType:"",overlayTemplate:'
',onLoadStart:function(){},onLoadDone:function(t){return t}},r=function(){function e(e,s){if(this._element=e,this._parent=e.parents(i.CARD).first(),this._settings=t.extend({},o,s),this._overlay=t(this._settings.overlayTemplate),e.hasClass(a)&&(this._parent=e),""===this._settings.source)throw new Error("Source url was not defined. Please specify a url in your CardRefresh source option.")}var s=e.prototype;return s.load=function(){this._addOverlay(),this._settings.onLoadStart.call(t(this)),t.get(this._settings.source,this._settings.params,function(e){this._settings.loadInContent&&(""!=this._settings.sourceSelector&&(e=t(e).find(this._settings.sourceSelector).html()),this._parent.find(this._settings.content).html(e)),this._settings.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this._settings.responseType&&this._settings.responseType);var e=t.Event(n.LOADED);t(this._element).trigger(e)},s._addOverlay=function(){this._parent.append(this._overlay);var e=t.Event(n.OVERLAY_ADDED);t(this._element).trigger(e)},s._removeOverlay=function(){this._parent.find(this._overlay).remove();var e=t.Event(n.OVERLAY_REMOVED);t(this._element).trigger(e)},s._init=function(e){var s=this;t(this).find(this._settings.trigger).on("click",(function(){s.load()})),this._settings.loadOnInit&&this.load()},e._jQueryInterface=function(s){var n=t(this).data("lte.cardrefresh"),a=t.extend({},o,t(this).data());n||(n=new e(t(this),a),t(this).data("lte.cardrefresh","string"==typeof s?n:s)),"string"==typeof s&&s.match(/load/)?n[s]():n._init(t(this))},e}();return t(document).on("click",i.DATA_REFRESH,(function(e){e&&e.preventDefault(),r._jQueryInterface.call(t(this),"load")})),t(document).ready((function(){t(i.DATA_REFRESH).each((function(){r._jQueryInterface.call(t(this))}))})),t.fn[e]=r._jQueryInterface,t.fn[e].Constructor=r,t.fn[e].noConflict=function(){return t.fn[e]=s,r._jQueryInterface},r}(jQuery),d=function(t){var e="Dropdown",s=t.fn[e],n=".navbar",a=".dropdown-menu",i=".dropdown-menu.show",o='[data-toggle="dropdown"]',r="dropdown-menu-right",l={},c=function(){function e(t,e){this._config=e,this._element=t}var s=e.prototype;return s.toggleSubmenu=function(){this._element.siblings().show().toggleClass("show"),this._element.next().hasClass("show")||this._element.parents(".dropdown-menu").first().find(".show").removeClass("show").hide(),this._element.parents("li.nav-item.dropdown.show").on("hidden.bs.dropdown",(function(e){t(".dropdown-submenu .show").removeClass("show").hide()}))},s.fixPosition=function(){var e=t(i);if(0!==e.length){e.hasClass(r)?(e.css("left","inherit"),e.css("right",0)):(e.css("left",0),e.css("right","inherit"));var s=e.offset(),n=e.width(),a=t(window).width()-s.left;s.left<0?(e.css("left","inherit"),e.css("right",s.left-5)):a');e.data("autohide",this._config.autohide),e.data("animation",this._config.fade),this._config.class&&e.addClass(this._config.class),this._config.delay&&500!=this._config.delay&&e.data("delay",this._config.delay);var s=t('
');if(null!=this._config.image){var a=t("").addClass("rounded mr-2").attr("src",this._config.image).attr("alt",this._config.imageAlt);null!=this._config.imageHeight&&a.height(this._config.imageHeight).width("auto"),s.append(a)}if(null!=this._config.icon&&s.append(t("").addClass("mr-2").addClass(this._config.icon)),null!=this._config.title&&s.append(t("").addClass("mr-auto").html(this._config.title)),null!=this._config.subtitle&&s.append(t("").html(this._config.subtitle)),1==this._config.close){var i=t('