Theme Assets
This commit is contained in:
211
assets/vendor/simplebar/index.cjs
vendored
Normal file
211
assets/vendor/simplebar/index.cjs
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
/**
|
||||
* simplebar - v6.2.5
|
||||
* Scrollbars, simpler.
|
||||
* https://grsmto.github.io/simplebar/
|
||||
*
|
||||
* Made by Adrien Denat from a fork by Jonathan Nicol
|
||||
* Under MIT License
|
||||
*/
|
||||
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('can-use-dom'), require('simplebar-core')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'can-use-dom', 'simplebar-core'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SimpleBar = {}, global.canUseDOM, global.SimpleBar));
|
||||
})(this, (function (exports, canUseDOM, SimpleBarCore) { 'use strict';
|
||||
|
||||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
||||
|
||||
var canUseDOM__default = /*#__PURE__*/_interopDefaultLegacy(canUseDOM);
|
||||
var SimpleBarCore__default = /*#__PURE__*/_interopDefaultLegacy(SimpleBarCore);
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global Reflect, Promise */
|
||||
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
|
||||
function __extends(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
}
|
||||
|
||||
var _a = SimpleBarCore__default["default"].helpers, getOptions = _a.getOptions, addClasses = _a.addClasses;
|
||||
var SimpleBar = /** @class */ (function (_super) {
|
||||
__extends(SimpleBar, _super);
|
||||
function SimpleBar() {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
var _this = _super.apply(this, args) || this;
|
||||
// // Save a reference to the instance, so we know this DOM node has already been instancied
|
||||
SimpleBar.instances.set(args[0], _this);
|
||||
return _this;
|
||||
}
|
||||
SimpleBar.initDOMLoadedElements = function () {
|
||||
document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
|
||||
window.removeEventListener('load', this.initDOMLoadedElements);
|
||||
Array.prototype.forEach.call(document.querySelectorAll('[data-simplebar]'), function (el) {
|
||||
if (el.getAttribute('data-simplebar') !== 'init' &&
|
||||
!SimpleBar.instances.has(el))
|
||||
new SimpleBar(el, getOptions(el.attributes));
|
||||
});
|
||||
};
|
||||
SimpleBar.removeObserver = function () {
|
||||
var _a;
|
||||
(_a = SimpleBar.globalObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
||||
};
|
||||
SimpleBar.prototype.initDOM = function () {
|
||||
var _this = this;
|
||||
var _a, _b, _c;
|
||||
// make sure this element doesn't have the elements yet
|
||||
if (!Array.prototype.filter.call(this.el.children, function (child) {
|
||||
return child.classList.contains(_this.classNames.wrapper);
|
||||
}).length) {
|
||||
// Prepare DOM
|
||||
this.wrapperEl = document.createElement('div');
|
||||
this.contentWrapperEl = document.createElement('div');
|
||||
this.offsetEl = document.createElement('div');
|
||||
this.maskEl = document.createElement('div');
|
||||
this.contentEl = document.createElement('div');
|
||||
this.placeholderEl = document.createElement('div');
|
||||
this.heightAutoObserverWrapperEl = document.createElement('div');
|
||||
this.heightAutoObserverEl = document.createElement('div');
|
||||
addClasses(this.wrapperEl, this.classNames.wrapper);
|
||||
addClasses(this.contentWrapperEl, this.classNames.contentWrapper);
|
||||
addClasses(this.offsetEl, this.classNames.offset);
|
||||
addClasses(this.maskEl, this.classNames.mask);
|
||||
addClasses(this.contentEl, this.classNames.contentEl);
|
||||
addClasses(this.placeholderEl, this.classNames.placeholder);
|
||||
addClasses(this.heightAutoObserverWrapperEl, this.classNames.heightAutoObserverWrapperEl);
|
||||
addClasses(this.heightAutoObserverEl, this.classNames.heightAutoObserverEl);
|
||||
while (this.el.firstChild) {
|
||||
this.contentEl.appendChild(this.el.firstChild);
|
||||
}
|
||||
this.contentWrapperEl.appendChild(this.contentEl);
|
||||
this.offsetEl.appendChild(this.contentWrapperEl);
|
||||
this.maskEl.appendChild(this.offsetEl);
|
||||
this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);
|
||||
this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);
|
||||
this.wrapperEl.appendChild(this.maskEl);
|
||||
this.wrapperEl.appendChild(this.placeholderEl);
|
||||
this.el.appendChild(this.wrapperEl);
|
||||
(_a = this.contentWrapperEl) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', '0');
|
||||
(_b = this.contentWrapperEl) === null || _b === void 0 ? void 0 : _b.setAttribute('role', 'region');
|
||||
(_c = this.contentWrapperEl) === null || _c === void 0 ? void 0 : _c.setAttribute('aria-label', this.options.ariaLabel);
|
||||
}
|
||||
if (!this.axis.x.track.el || !this.axis.y.track.el) {
|
||||
var track = document.createElement('div');
|
||||
var scrollbar = document.createElement('div');
|
||||
addClasses(track, this.classNames.track);
|
||||
addClasses(scrollbar, this.classNames.scrollbar);
|
||||
track.appendChild(scrollbar);
|
||||
this.axis.x.track.el = track.cloneNode(true);
|
||||
addClasses(this.axis.x.track.el, this.classNames.horizontal);
|
||||
this.axis.y.track.el = track.cloneNode(true);
|
||||
addClasses(this.axis.y.track.el, this.classNames.vertical);
|
||||
this.el.appendChild(this.axis.x.track.el);
|
||||
this.el.appendChild(this.axis.y.track.el);
|
||||
}
|
||||
SimpleBarCore__default["default"].prototype.initDOM.call(this);
|
||||
this.el.setAttribute('data-simplebar', 'init');
|
||||
};
|
||||
SimpleBar.prototype.unMount = function () {
|
||||
SimpleBarCore__default["default"].prototype.unMount.call(this);
|
||||
SimpleBar.instances["delete"](this.el);
|
||||
};
|
||||
SimpleBar.initHtmlApi = function () {
|
||||
this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this);
|
||||
// MutationObserver is IE11+
|
||||
if (typeof MutationObserver !== 'undefined') {
|
||||
// Mutation observer to observe dynamically added elements
|
||||
this.globalObserver = new MutationObserver(SimpleBar.handleMutations);
|
||||
this.globalObserver.observe(document, { childList: true, subtree: true });
|
||||
}
|
||||
// Taken from jQuery `ready` function
|
||||
// Instantiate elements already present on the page
|
||||
if (document.readyState === 'complete' || // @ts-ignore: IE specific
|
||||
(document.readyState !== 'loading' && !document.documentElement.doScroll)) {
|
||||
// Handle it asynchronously to allow scripts the opportunity to delay init
|
||||
window.setTimeout(this.initDOMLoadedElements);
|
||||
}
|
||||
else {
|
||||
document.addEventListener('DOMContentLoaded', this.initDOMLoadedElements);
|
||||
window.addEventListener('load', this.initDOMLoadedElements);
|
||||
}
|
||||
};
|
||||
SimpleBar.handleMutations = function (mutations) {
|
||||
mutations.forEach(function (mutation) {
|
||||
mutation.addedNodes.forEach(function (addedNode) {
|
||||
if (addedNode.nodeType === 1) {
|
||||
if (addedNode.hasAttribute('data-simplebar')) {
|
||||
!SimpleBar.instances.has(addedNode) &&
|
||||
document.documentElement.contains(addedNode) &&
|
||||
new SimpleBar(addedNode, getOptions(addedNode.attributes));
|
||||
}
|
||||
else {
|
||||
addedNode
|
||||
.querySelectorAll('[data-simplebar]')
|
||||
.forEach(function (el) {
|
||||
if (el.getAttribute('data-simplebar') !== 'init' &&
|
||||
!SimpleBar.instances.has(el) &&
|
||||
document.documentElement.contains(el))
|
||||
new SimpleBar(el, getOptions(el.attributes));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
mutation.removedNodes.forEach(function (removedNode) {
|
||||
if (removedNode.nodeType === 1) {
|
||||
if (removedNode.getAttribute('data-simplebar') === 'init') {
|
||||
SimpleBar.instances.has(removedNode) &&
|
||||
!document.documentElement.contains(removedNode) &&
|
||||
SimpleBar.instances.get(removedNode).unMount();
|
||||
}
|
||||
else {
|
||||
Array.prototype.forEach.call(removedNode.querySelectorAll('[data-simplebar="init"]'), function (el) {
|
||||
SimpleBar.instances.has(el) &&
|
||||
!document.documentElement.contains(el) &&
|
||||
SimpleBar.instances.get(el).unMount();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
SimpleBar.instances = new WeakMap();
|
||||
return SimpleBar;
|
||||
}(SimpleBarCore__default["default"]));
|
||||
/**
|
||||
* HTML API
|
||||
* Called only in a browser env.
|
||||
*/
|
||||
if (canUseDOM__default["default"]) {
|
||||
SimpleBar.initHtmlApi();
|
||||
}
|
||||
|
||||
exports["default"] = SimpleBar;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
}));
|
||||
200
assets/vendor/simplebar/index.mjs
vendored
Normal file
200
assets/vendor/simplebar/index.mjs
vendored
Normal file
@@ -0,0 +1,200 @@
|
||||
/**
|
||||
* simplebar - v6.2.5
|
||||
* Scrollbars, simpler.
|
||||
* https://grsmto.github.io/simplebar/
|
||||
*
|
||||
* Made by Adrien Denat from a fork by Jonathan Nicol
|
||||
* Under MIT License
|
||||
*/
|
||||
|
||||
import canUseDOM from 'can-use-dom';
|
||||
import SimpleBarCore from 'simplebar-core';
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global Reflect, Promise */
|
||||
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
|
||||
function __extends(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
}
|
||||
|
||||
var _a = SimpleBarCore.helpers, getOptions = _a.getOptions, addClasses = _a.addClasses;
|
||||
var SimpleBar = /** @class */ (function (_super) {
|
||||
__extends(SimpleBar, _super);
|
||||
function SimpleBar() {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
var _this = _super.apply(this, args) || this;
|
||||
// // Save a reference to the instance, so we know this DOM node has already been instancied
|
||||
SimpleBar.instances.set(args[0], _this);
|
||||
return _this;
|
||||
}
|
||||
SimpleBar.initDOMLoadedElements = function () {
|
||||
document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
|
||||
window.removeEventListener('load', this.initDOMLoadedElements);
|
||||
Array.prototype.forEach.call(document.querySelectorAll('[data-simplebar]'), function (el) {
|
||||
if (el.getAttribute('data-simplebar') !== 'init' &&
|
||||
!SimpleBar.instances.has(el))
|
||||
new SimpleBar(el, getOptions(el.attributes));
|
||||
});
|
||||
};
|
||||
SimpleBar.removeObserver = function () {
|
||||
var _a;
|
||||
(_a = SimpleBar.globalObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
||||
};
|
||||
SimpleBar.prototype.initDOM = function () {
|
||||
var _this = this;
|
||||
var _a, _b, _c;
|
||||
// make sure this element doesn't have the elements yet
|
||||
if (!Array.prototype.filter.call(this.el.children, function (child) {
|
||||
return child.classList.contains(_this.classNames.wrapper);
|
||||
}).length) {
|
||||
// Prepare DOM
|
||||
this.wrapperEl = document.createElement('div');
|
||||
this.contentWrapperEl = document.createElement('div');
|
||||
this.offsetEl = document.createElement('div');
|
||||
this.maskEl = document.createElement('div');
|
||||
this.contentEl = document.createElement('div');
|
||||
this.placeholderEl = document.createElement('div');
|
||||
this.heightAutoObserverWrapperEl = document.createElement('div');
|
||||
this.heightAutoObserverEl = document.createElement('div');
|
||||
addClasses(this.wrapperEl, this.classNames.wrapper);
|
||||
addClasses(this.contentWrapperEl, this.classNames.contentWrapper);
|
||||
addClasses(this.offsetEl, this.classNames.offset);
|
||||
addClasses(this.maskEl, this.classNames.mask);
|
||||
addClasses(this.contentEl, this.classNames.contentEl);
|
||||
addClasses(this.placeholderEl, this.classNames.placeholder);
|
||||
addClasses(this.heightAutoObserverWrapperEl, this.classNames.heightAutoObserverWrapperEl);
|
||||
addClasses(this.heightAutoObserverEl, this.classNames.heightAutoObserverEl);
|
||||
while (this.el.firstChild) {
|
||||
this.contentEl.appendChild(this.el.firstChild);
|
||||
}
|
||||
this.contentWrapperEl.appendChild(this.contentEl);
|
||||
this.offsetEl.appendChild(this.contentWrapperEl);
|
||||
this.maskEl.appendChild(this.offsetEl);
|
||||
this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl);
|
||||
this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl);
|
||||
this.wrapperEl.appendChild(this.maskEl);
|
||||
this.wrapperEl.appendChild(this.placeholderEl);
|
||||
this.el.appendChild(this.wrapperEl);
|
||||
(_a = this.contentWrapperEl) === null || _a === void 0 ? void 0 : _a.setAttribute('tabindex', '0');
|
||||
(_b = this.contentWrapperEl) === null || _b === void 0 ? void 0 : _b.setAttribute('role', 'region');
|
||||
(_c = this.contentWrapperEl) === null || _c === void 0 ? void 0 : _c.setAttribute('aria-label', this.options.ariaLabel);
|
||||
}
|
||||
if (!this.axis.x.track.el || !this.axis.y.track.el) {
|
||||
var track = document.createElement('div');
|
||||
var scrollbar = document.createElement('div');
|
||||
addClasses(track, this.classNames.track);
|
||||
addClasses(scrollbar, this.classNames.scrollbar);
|
||||
track.appendChild(scrollbar);
|
||||
this.axis.x.track.el = track.cloneNode(true);
|
||||
addClasses(this.axis.x.track.el, this.classNames.horizontal);
|
||||
this.axis.y.track.el = track.cloneNode(true);
|
||||
addClasses(this.axis.y.track.el, this.classNames.vertical);
|
||||
this.el.appendChild(this.axis.x.track.el);
|
||||
this.el.appendChild(this.axis.y.track.el);
|
||||
}
|
||||
SimpleBarCore.prototype.initDOM.call(this);
|
||||
this.el.setAttribute('data-simplebar', 'init');
|
||||
};
|
||||
SimpleBar.prototype.unMount = function () {
|
||||
SimpleBarCore.prototype.unMount.call(this);
|
||||
SimpleBar.instances["delete"](this.el);
|
||||
};
|
||||
SimpleBar.initHtmlApi = function () {
|
||||
this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this);
|
||||
// MutationObserver is IE11+
|
||||
if (typeof MutationObserver !== 'undefined') {
|
||||
// Mutation observer to observe dynamically added elements
|
||||
this.globalObserver = new MutationObserver(SimpleBar.handleMutations);
|
||||
this.globalObserver.observe(document, { childList: true, subtree: true });
|
||||
}
|
||||
// Taken from jQuery `ready` function
|
||||
// Instantiate elements already present on the page
|
||||
if (document.readyState === 'complete' || // @ts-ignore: IE specific
|
||||
(document.readyState !== 'loading' && !document.documentElement.doScroll)) {
|
||||
// Handle it asynchronously to allow scripts the opportunity to delay init
|
||||
window.setTimeout(this.initDOMLoadedElements);
|
||||
}
|
||||
else {
|
||||
document.addEventListener('DOMContentLoaded', this.initDOMLoadedElements);
|
||||
window.addEventListener('load', this.initDOMLoadedElements);
|
||||
}
|
||||
};
|
||||
SimpleBar.handleMutations = function (mutations) {
|
||||
mutations.forEach(function (mutation) {
|
||||
mutation.addedNodes.forEach(function (addedNode) {
|
||||
if (addedNode.nodeType === 1) {
|
||||
if (addedNode.hasAttribute('data-simplebar')) {
|
||||
!SimpleBar.instances.has(addedNode) &&
|
||||
document.documentElement.contains(addedNode) &&
|
||||
new SimpleBar(addedNode, getOptions(addedNode.attributes));
|
||||
}
|
||||
else {
|
||||
addedNode
|
||||
.querySelectorAll('[data-simplebar]')
|
||||
.forEach(function (el) {
|
||||
if (el.getAttribute('data-simplebar') !== 'init' &&
|
||||
!SimpleBar.instances.has(el) &&
|
||||
document.documentElement.contains(el))
|
||||
new SimpleBar(el, getOptions(el.attributes));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
mutation.removedNodes.forEach(function (removedNode) {
|
||||
if (removedNode.nodeType === 1) {
|
||||
if (removedNode.getAttribute('data-simplebar') === 'init') {
|
||||
SimpleBar.instances.has(removedNode) &&
|
||||
!document.documentElement.contains(removedNode) &&
|
||||
SimpleBar.instances.get(removedNode).unMount();
|
||||
}
|
||||
else {
|
||||
Array.prototype.forEach.call(removedNode.querySelectorAll('[data-simplebar="init"]'), function (el) {
|
||||
SimpleBar.instances.has(el) &&
|
||||
!document.documentElement.contains(el) &&
|
||||
SimpleBar.instances.get(el).unMount();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
SimpleBar.instances = new WeakMap();
|
||||
return SimpleBar;
|
||||
}(SimpleBarCore));
|
||||
/**
|
||||
* HTML API
|
||||
* Called only in a browser env.
|
||||
*/
|
||||
if (canUseDOM) {
|
||||
SimpleBar.initHtmlApi();
|
||||
}
|
||||
|
||||
export { SimpleBar as default };
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
136
assets/vendor/simplebar/simplebar.cjs
vendored
Normal file
136
assets/vendor/simplebar/simplebar.cjs
vendored
Normal file
@@ -0,0 +1,136 @@
|
||||
/**
|
||||
* simplebar - v6.0.0-beta.10
|
||||
* Scrollbars, simpler.
|
||||
* https://grsmto.github.io/simplebar/
|
||||
*
|
||||
* Made by Adrien Denat from a fork by Jonathan Nicol
|
||||
* Under MIT License
|
||||
*/
|
||||
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('can-use-dom'), require('simplebar-core')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'can-use-dom', 'simplebar-core'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.SimpleBar = {}, global.canUseDOM, global.SimpleBar));
|
||||
})(this, (function (exports, canUseDOM, SimpleBarCore) { 'use strict';
|
||||
|
||||
/******************************************************************************
|
||||
Copyright (c) Microsoft Corporation.
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
PERFORMANCE OF THIS SOFTWARE.
|
||||
***************************************************************************** */
|
||||
/* global Reflect, Promise */
|
||||
|
||||
var extendStatics = function(d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
|
||||
function __extends(d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
}
|
||||
|
||||
var SimpleBar = /** @class */ (function (_super) {
|
||||
__extends(SimpleBar, _super);
|
||||
function SimpleBar() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
SimpleBar.initDOMLoadedElements = function () {
|
||||
document.removeEventListener('DOMContentLoaded', this.initDOMLoadedElements);
|
||||
window.removeEventListener('load', this.initDOMLoadedElements);
|
||||
Array.prototype.forEach.call(document.querySelectorAll('[data-simplebar]'), function (el) {
|
||||
if (el.getAttribute('data-simplebar') !== 'init' &&
|
||||
!SimpleBar.instances.has(el))
|
||||
new SimpleBar(el, SimpleBarCore.getOptions(el.attributes));
|
||||
});
|
||||
};
|
||||
SimpleBar.prototype.removeObserver = function () {
|
||||
var _a;
|
||||
(_a = SimpleBar.globalObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
||||
};
|
||||
SimpleBar.initHtmlApi = function () {
|
||||
this.initDOMLoadedElements = this.initDOMLoadedElements.bind(this);
|
||||
// MutationObserver is IE11+
|
||||
if (typeof MutationObserver !== 'undefined') {
|
||||
// Mutation observer to observe dynamically added elements
|
||||
this.globalObserver = new MutationObserver(SimpleBar.handleMutations);
|
||||
this.globalObserver.observe(document, { childList: true, subtree: true });
|
||||
}
|
||||
// Taken from jQuery `ready` function
|
||||
// Instantiate elements already present on the page
|
||||
if (document.readyState === 'complete' || // @ts-ignore: IE specific
|
||||
(document.readyState !== 'loading' && !document.documentElement.doScroll)) {
|
||||
// Handle it asynchronously to allow scripts the opportunity to delay init
|
||||
window.setTimeout(this.initDOMLoadedElements);
|
||||
}
|
||||
else {
|
||||
document.addEventListener('DOMContentLoaded', this.initDOMLoadedElements);
|
||||
window.addEventListener('load', this.initDOMLoadedElements);
|
||||
}
|
||||
};
|
||||
SimpleBar.handleMutations = function (mutations) {
|
||||
mutations.forEach(function (mutation) {
|
||||
Array.prototype.forEach.call(mutation.addedNodes, function (addedNode) {
|
||||
if (addedNode.nodeType === 1) {
|
||||
if (addedNode.hasAttribute('data-simplebar')) {
|
||||
!SimpleBar.instances.has(addedNode) &&
|
||||
document.documentElement.contains(addedNode) &&
|
||||
new SimpleBar(addedNode, SimpleBarCore.getOptions(addedNode.attributes));
|
||||
}
|
||||
else {
|
||||
Array.prototype.forEach.call(addedNode.querySelectorAll('[data-simplebar]'), function (el) {
|
||||
if (el.getAttribute('data-simplebar') !== 'init' &&
|
||||
!SimpleBar.instances.has(el) &&
|
||||
document.documentElement.contains(el))
|
||||
new SimpleBar(el, SimpleBarCore.getOptions(el.attributes));
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
Array.prototype.forEach.call(mutation.removedNodes, function (removedNode) {
|
||||
if (removedNode.nodeType === 1) {
|
||||
if (removedNode.getAttribute('data-simplebar') === 'init') {
|
||||
SimpleBar.instances.has(removedNode) &&
|
||||
!document.documentElement.contains(removedNode) &&
|
||||
SimpleBar.instances.get(removedNode).unMount();
|
||||
}
|
||||
else {
|
||||
Array.prototype.forEach.call(removedNode.querySelectorAll('[data-simplebar="init"]'), function (el) {
|
||||
SimpleBar.instances.has(el) &&
|
||||
!document.documentElement.contains(el) &&
|
||||
SimpleBar.instances.get(el).unMount();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
return SimpleBar;
|
||||
}(SimpleBarCore));
|
||||
/**
|
||||
* HTML API
|
||||
* Called only in a browser env.
|
||||
*/
|
||||
if (canUseDOM) {
|
||||
SimpleBar.initHtmlApi();
|
||||
}
|
||||
|
||||
exports.default = SimpleBar;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
}));
|
||||
1
assets/vendor/simplebar/simplebar.min.css
vendored
Normal file
1
assets/vendor/simplebar/simplebar.min.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:' ';display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:'';background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
||||
10
assets/vendor/simplebar/simplebar.min.js
vendored
Normal file
10
assets/vendor/simplebar/simplebar.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user